123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of';
- import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
- import _createClass from 'babel-runtime/helpers/createClass';
- import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
- import _inherits from 'babel-runtime/helpers/inherits';
-
-
- import onsElements from '../ons/elements';
- import BaseCheckboxElement from './base/base-checkbox';
-
- var scheme = {
- '.radio-button': 'radio-button--*',
- '.radio-button__input': 'radio-button--*__input',
- '.radio-button__checkmark': 'radio-button--*__checkmark'
- };
-
-
-
- var RadioElement = function (_BaseCheckboxElement) {
- _inherits(RadioElement, _BaseCheckboxElement);
-
- function RadioElement() {
- _classCallCheck(this, RadioElement);
-
- return _possibleConstructorReturn(this, (RadioElement.__proto__ || _Object$getPrototypeOf(RadioElement)).apply(this, arguments));
- }
-
- _createClass(RadioElement, [{
- key: '_scheme',
- get: function get() {
- return scheme;
- }
- }, {
- key: '_defaultClassName',
- get: function get() {
- return 'radio-button';
- }
- }, {
- key: 'type',
- get: function get() {
- return 'radio';
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
- }]);
-
- return RadioElement;
- }(BaseCheckboxElement);
-
- export default RadioElement;
-
-
- onsElements.Radio = RadioElement;
- customElements.define('ons-radio', RadioElement);
|