123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- 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 = {
- '.checkbox': 'checkbox--*',
- '.checkbox__input': 'checkbox--*__input',
- '.checkbox__checkmark': 'checkbox--*__checkmark'
- };
-
-
-
- var CheckboxElement = function (_BaseCheckboxElement) {
- _inherits(CheckboxElement, _BaseCheckboxElement);
-
- function CheckboxElement() {
- _classCallCheck(this, CheckboxElement);
-
- return _possibleConstructorReturn(this, (CheckboxElement.__proto__ || _Object$getPrototypeOf(CheckboxElement)).apply(this, arguments));
- }
-
- _createClass(CheckboxElement, [{
- key: '_scheme',
- get: function get() {
- return scheme;
- }
- }, {
- key: '_defaultClassName',
- get: function get() {
- return 'checkbox';
- }
- }, {
- key: 'type',
- get: function get() {
- return 'checkbox';
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
- }]);
-
- return CheckboxElement;
- }(BaseCheckboxElement);
-
- export default CheckboxElement;
-
-
- onsElements.Checkbox = CheckboxElement;
- customElements.define('ons-checkbox', CheckboxElement);
|