1 | System.register(['./index-c6ef8482.system.js'], function (exports) {
|
2 | 'use strict';
|
3 | var registerInstance, h;
|
4 | return {
|
5 | setters: [function (module) {
|
6 | registerInstance = module.r;
|
7 | h = module.h;
|
8 | }],
|
9 | execute: function () {
|
10 | var checkboxCss = ".radio,.checkbox{cursor:pointer;display:inline-block;line-height:1.25;position:relative}.radio input,.checkbox input{cursor:pointer}.radio:hover,.checkbox:hover{color:#363636}[disabled].radio,[disabled].checkbox,fieldset[disabled] .radio,fieldset[disabled] .checkbox{color:#7a7a7a;cursor:not-allowed}.radio+.radio{margin-left:0.5em}bm-checkbox[disabled=true] .checkbox{color:#7a7a7a;cursor:not-allowed}";
|
11 | var Checkbox = exports('bm_checkbox', (function () {
|
12 | function class_1(hostRef) {
|
13 | registerInstance(this, hostRef);
|
14 | |
15 |
|
16 |
|
17 | this.inputClass = '';
|
18 | |
19 |
|
20 |
|
21 | this.labelClass = '';
|
22 | |
23 |
|
24 |
|
25 | this.checked = false;
|
26 | |
27 |
|
28 |
|
29 | this.disabled = false;
|
30 | }
|
31 | class_1.prototype.render = function () {
|
32 | var _a, _b;
|
33 | return (h("label", { class: (_a = {
|
34 | checkbox: true
|
35 | },
|
36 | _a[this.labelClass] = Boolean(this.labelClass),
|
37 | _a) }, h("input", { type: "checkbox", class: (_b = {},
|
38 | _b[this.inputClass] = Boolean(this.inputClass),
|
39 | _b), disabled: this.disabled, checked: this.checked }), h("slot", null)));
|
40 | };
|
41 | return class_1;
|
42 | }()));
|
43 | Checkbox.style = checkboxCss;
|
44 | }
|
45 | };
|
46 | });
|