{"size": 1878, "ext": "js", "max_stars_repo_path": "build/es6/node_modules/@polymer/paper-radio-group/paper-radio-group.js", "max_stars_repo_name": "profmikegreene/HAXcms", "max_stars_repo_stars_event_min_datetime": "2019-09-04T20:40:47.000Z", "max_stars_repo_stars_event_max_datetime": "2019-09-04T20:40:47.000Z", "max_issues_repo_path": "build/es6/node_modules/@polymer/paper-radio-group/paper-radio-group.js", "max_issues_repo_name": "profmikegreene/HAXcms", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "build/es6/node_modules/@polymer/paper-radio-group/paper-radio-group.js", "max_forks_repo_name": "profmikegreene/HAXcms", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 144.4615384615, "max_line_length": 1223, "alphanum_fraction": 0.7752928647}
import"../polymer/polymer-legacy.js";import"../iron-a11y-keys-behavior/iron-a11y-keys-behavior.js";import"../paper-radio-button/paper-radio-button.js";import{IronMenubarBehavior,IronMenubarBehaviorImpl}from"../iron-menu-behavior/iron-menubar-behavior.js";import{IronSelectableBehavior}from"../iron-selector/iron-selectable.js";import{Polymer}from"../polymer/lib/legacy/polymer-fn.js";import{html}from"../polymer/lib/utils/html-tag.js";Polymer({_template:html`
    <style>
      :host {
        display: inline-block;
      }

      :host ::slotted(*) {
        padding: var(--paper-radio-group-item-padding, 12px);
      }
    </style>

    <slot></slot>
`,is:"paper-radio-group",behaviors:[IronMenubarBehavior],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(value){var newItem=this._valueToItem(value);if(!newItem||!newItem.hasAttribute("disabled")){if(this.selected){var oldItem=this._valueToItem(this.selected);if(this.selected==value){if(!this.allowEmptySelection)return void(oldItem&&(oldItem.checked=!0));value=""}oldItem&&(oldItem.checked=!1)}IronSelectableBehavior.select.apply(this,[value]),this.fire("paper-radio-group-changed")}},_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},_onUpKey:function(event){this._focusPrevious(),event.preventDefault(),this._activateFocusedItem()},_onDownKey:function(event){this._focusNext(),event.preventDefault(),this._activateFocusedItem()},_onLeftKey:function(event){IronMenubarBehaviorImpl._onLeftKey.apply(this,arguments),this._activateFocusedItem()},_onRightKey:function(event){IronMenubarBehaviorImpl._onRightKey.apply(this,arguments),this._activateFocusedItem()}});