@ionic/core 8.4.4-dev.11738863153.1dafb0b9 → 8.4.4-dev.11739906326.1989484f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox.js +4 -6
- package/components/content.js +4 -4
- package/components/ion-select.js +4 -6
- package/components/ion-tab-button.js +1 -1
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -2
- package/components/ion-toggle.js +4 -6
- package/components/modal.js +35 -259
- package/components/radio.js +37 -5
- package/css/core.css.map +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/dist/cjs/ion-app_8.cjs.entry.js +4 -4
- package/dist/cjs/ion-checkbox.cjs.entry.js +4 -5
- package/dist/cjs/ion-modal.cjs.entry.js +35 -258
- package/dist/cjs/ion-radio_2.cjs.entry.js +35 -5
- package/dist/cjs/ion-select_3.cjs.entry.js +4 -5
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -4
- package/dist/cjs/ion-toggle.cjs.entry.js +4 -5
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +4 -23
- package/dist/collection/components/content/content.js +4 -4
- package/dist/collection/components/modal/animations/ios.enter.js +4 -50
- package/dist/collection/components/modal/animations/ios.leave.js +2 -24
- package/dist/collection/components/modal/animations/md.enter.js +5 -52
- package/dist/collection/components/modal/animations/md.leave.js +3 -26
- package/dist/collection/components/modal/animations/sheet.js +2 -11
- package/dist/collection/components/modal/gestures/sheet.js +10 -79
- package/dist/collection/components/modal/modal.ios.css +0 -16
- package/dist/collection/components/modal/modal.js +7 -32
- package/dist/collection/components/modal/modal.md.css +0 -6
- package/dist/collection/components/radio/radio.ios.css +52 -15
- package/dist/collection/components/radio/radio.js +70 -3
- package/dist/collection/components/radio/radio.md.css +52 -15
- package/dist/collection/components/select/select.js +4 -23
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -2
- package/dist/collection/components/toggle/toggle.js +4 -23
- package/dist/docs.json +73 -89
- package/dist/esm/ion-app_8.entry.js +4 -4
- package/dist/esm/ion-checkbox.entry.js +4 -5
- package/dist/esm/ion-modal.entry.js +35 -258
- package/dist/esm/ion-radio_2.entry.js +35 -5
- package/dist/esm/ion-select_3.entry.js +4 -5
- package/dist/esm/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm/ion-tab_2.entry.js +3 -4
- package/dist/esm/ion-toggle.entry.js +4 -5
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/html.html-data.json +8 -16
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-1a11f49f.entry.js +4 -0
- package/dist/ionic/p-1b1af767.system.entry.js +4 -0
- package/dist/ionic/p-2172893e.system.entry.js +4 -0
- package/dist/ionic/p-322c5fb4.system.js +1 -1
- package/dist/ionic/p-4ec778aa.entry.js +4 -0
- package/dist/ionic/p-5ab1b709.entry.js +4 -0
- package/dist/ionic/{p-8ac07653.system.entry.js → p-69666e8a.system.entry.js} +2 -2
- package/dist/ionic/{p-1199e388.system.entry.js → p-797eeea8.system.entry.js} +1 -1
- package/dist/ionic/p-908d6080.entry.js +4 -0
- package/dist/ionic/p-92a0f863.entry.js +4 -0
- package/dist/ionic/p-98ff6b32.entry.js +4 -0
- package/dist/ionic/p-a0eb506c.system.entry.js +4 -0
- package/dist/ionic/p-bc64bd27.system.entry.js +4 -0
- package/dist/ionic/p-e06057c9.entry.js +4 -0
- package/dist/ionic/{p-bdf2cb2e.system.entry.js → p-ebf042e0.system.entry.js} +1 -1
- package/dist/ionic/p-f55baa37.entry.js +4 -0
- package/dist/ionic/{p-9f364443.system.entry.js → p-fd1c40cc.system.entry.js} +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +0 -6
- package/dist/types/components/modal/animations/sheet.d.ts +0 -1
- package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
- package/dist/types/components/modal/modal-interface.d.ts +0 -1
- package/dist/types/components/modal/modal.d.ts +0 -11
- package/dist/types/components/radio/radio.d.ts +19 -0
- package/dist/types/components/select/select.d.ts +0 -6
- package/dist/types/components/toggle/toggle.d.ts +0 -6
- package/dist/types/components.d.ts +16 -32
- package/hydrate/index.js +95 -291
- package/hydrate/index.mjs +95 -291
- package/package.json +1 -1
- package/dist/ionic/p-0430c2e0.entry.js +0 -4
- package/dist/ionic/p-126be614.system.entry.js +0 -4
- package/dist/ionic/p-6c95736e.entry.js +0 -4
- package/dist/ionic/p-6d6cedc5.entry.js +0 -4
- package/dist/ionic/p-722ec9c7.entry.js +0 -4
- package/dist/ionic/p-783411f1.entry.js +0 -4
- package/dist/ionic/p-7ddc46c3.system.entry.js +0 -4
- package/dist/ionic/p-98e41e4f.system.entry.js +0 -4
- package/dist/ionic/p-d57a57d6.entry.js +0 -4
- package/dist/ionic/p-d7dd8fb1.entry.js +0 -4
- package/dist/ionic/p-e3171ff3.entry.js +0 -4
- package/dist/ionic/p-e6376b93.system.entry.js +0 -4
package/components/checkbox.js
CHANGED
|
@@ -62,7 +62,6 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
|
|
|
62
62
|
this.labelPlacement = 'start';
|
|
63
63
|
this.justify = undefined;
|
|
64
64
|
this.alignment = undefined;
|
|
65
|
-
this.required = false;
|
|
66
65
|
}
|
|
67
66
|
componentWillLoad() {
|
|
68
67
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
@@ -74,11 +73,11 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
|
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
75
|
render() {
|
|
77
|
-
const { color, checked, disabled, el, getSVGPath, indeterminate, inheritedAttributes, inputId, justify, labelPlacement, name, value, alignment,
|
|
76
|
+
const { color, checked, disabled, el, getSVGPath, indeterminate, inheritedAttributes, inputId, justify, labelPlacement, name, value, alignment, } = this;
|
|
78
77
|
const mode = getIonMode(this);
|
|
79
78
|
const path = getSVGPath(mode, indeterminate);
|
|
80
79
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
81
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '6dc787e1100521d08c4900104e1a3e2f594e919f', "aria-checked": indeterminate ? 'mixed' : `${checked}`, class: createColorClasses(color, {
|
|
82
81
|
[mode]: true,
|
|
83
82
|
'in-item': hostContext('ion-item', el),
|
|
84
83
|
'checkbox-checked': checked,
|
|
@@ -88,10 +87,10 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
|
|
|
88
87
|
[`checkbox-justify-${justify}`]: justify !== undefined,
|
|
89
88
|
[`checkbox-alignment-${alignment}`]: alignment !== undefined,
|
|
90
89
|
[`checkbox-label-placement-${labelPlacement}`]: true,
|
|
91
|
-
}), onClick: this.onClick }, h("label", { key: '
|
|
90
|
+
}), onClick: this.onClick }, h("label", { key: '68222fb736a5ec3f2e488649b0e2ce0417dcb224', class: "checkbox-wrapper" }, h("input", Object.assign({ key: 'f12962d7e9b19c744cfdbdeccc67ae7f5d080281', type: "checkbox", checked: checked ? true : undefined, disabled: disabled, id: inputId, onChange: this.toggleChecked, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, inheritedAttributes)), h("div", { key: 'c72df2699414b1e5a41a1bc267bc634f0c93dcff', class: {
|
|
92
91
|
'label-text-wrapper': true,
|
|
93
92
|
'label-text-wrapper-hidden': el.textContent === '',
|
|
94
|
-
}, part: "label" }, h("slot", { key: '
|
|
93
|
+
}, part: "label" }, h("slot", { key: 'a2a80285178a7e0e3b536fc9ca26b8b444aa4307' })), h("div", { key: 'c2b05e0d1fe8df5dcd72858220b5ff51ecaee4cc', class: "native-wrapper" }, h("svg", { key: 'ee24913fded72258ebd9713654a6dba92a18fcf7', class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path)))));
|
|
95
94
|
}
|
|
96
95
|
getSVGPath(mode, indeterminate) {
|
|
97
96
|
let path = indeterminate ? (h("path", { d: "M6 12L18 12", part: "mark" })) : (h("path", { d: "M5.9,12.5l3.8,3.8l8.8-8.8", part: "mark" }));
|
|
@@ -115,7 +114,6 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
|
|
|
115
114
|
"labelPlacement": [1, "label-placement"],
|
|
116
115
|
"justify": [1],
|
|
117
116
|
"alignment": [1],
|
|
118
|
-
"required": [4],
|
|
119
117
|
"setFocus": [64]
|
|
120
118
|
}]);
|
|
121
119
|
let checkboxIds = 0;
|
package/components/content.js
CHANGED
|
@@ -342,20 +342,20 @@ const Content = /*@__PURE__*/ proxyCustomElement(class Content extends HTMLEleme
|
|
|
342
342
|
const forceOverscroll = this.shouldForceOverscroll();
|
|
343
343
|
const transitionShadow = mode === 'ios';
|
|
344
344
|
this.resize();
|
|
345
|
-
return (h(Host, Object.assign({ key: '
|
|
345
|
+
return (h(Host, Object.assign({ key: 'f2a24aa66dbf5c76f9d4b06f708eb73cadc239df', role: isMainContent ? 'main' : undefined, class: createColorClasses(this.color, {
|
|
346
346
|
[mode]: true,
|
|
347
347
|
'content-sizing': hostContext('ion-popover', this.el),
|
|
348
348
|
overscroll: forceOverscroll,
|
|
349
349
|
[`content-${rtl}`]: true,
|
|
350
|
-
}),
|
|
350
|
+
}), style: {
|
|
351
351
|
'--offset-top': `${this.cTop}px`,
|
|
352
352
|
'--offset-bottom': `${this.cBottom}px`,
|
|
353
|
-
} }, inheritedAttributes), h("div", { key: '
|
|
353
|
+
} }, inheritedAttributes), h("div", { key: '6480ca7648b278abb36477b3838bccbcd4995e2a', ref: (el) => (this.backgroundContentEl = el), id: "background-content", part: "background" }), fixedSlotPlacement === 'before' ? h("slot", { name: "fixed" }) : null, h("div", { key: '29a23b663f5f0215bb000820c01e1814c0d55985', class: {
|
|
354
354
|
'inner-scroll': true,
|
|
355
355
|
'scroll-x': scrollX,
|
|
356
356
|
'scroll-y': scrollY,
|
|
357
357
|
overscroll: (scrollX || scrollY) && forceOverscroll,
|
|
358
|
-
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: '
|
|
358
|
+
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: '0fe1bd05609a4b88ae2ce9addf5d5dc5dc1806f0' })), transitionShadow ? (h("div", { class: "transition-effect" }, h("div", { class: "transition-cover" }), h("div", { class: "transition-shadow" }))) : null, fixedSlotPlacement === 'after' ? h("slot", { name: "fixed" }) : null));
|
|
359
359
|
}
|
|
360
360
|
get el() { return this; }
|
|
361
361
|
static get style() { return IonContentStyle0; }
|
package/components/ion-select.js
CHANGED
|
@@ -115,7 +115,6 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
115
115
|
this.expandedIcon = undefined;
|
|
116
116
|
this.shape = undefined;
|
|
117
117
|
this.value = undefined;
|
|
118
|
-
this.required = false;
|
|
119
118
|
}
|
|
120
119
|
styleChanged() {
|
|
121
120
|
this.emitStyle();
|
|
@@ -607,8 +606,8 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
607
606
|
return renderedLabel;
|
|
608
607
|
}
|
|
609
608
|
renderListbox() {
|
|
610
|
-
const { disabled, inputId, isExpanded
|
|
611
|
-
return (h("button", { disabled: disabled, id: inputId, "aria-label": this.ariaLabel, "aria-haspopup": "dialog", "aria-expanded": `${isExpanded}`,
|
|
609
|
+
const { disabled, inputId, isExpanded } = this;
|
|
610
|
+
return (h("button", { disabled: disabled, id: inputId, "aria-label": this.ariaLabel, "aria-haspopup": "dialog", "aria-expanded": `${isExpanded}`, onFocus: this.onFocus, onBlur: this.onBlur, ref: (focusEl) => (this.focusEl = focusEl) }));
|
|
612
611
|
}
|
|
613
612
|
render() {
|
|
614
613
|
const { disabled, el, isExpanded, expandedIcon, labelPlacement, justify, placeholder, fill, shape, name, value } = this;
|
|
@@ -639,7 +638,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
639
638
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
640
639
|
*/
|
|
641
640
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
642
|
-
return (h(Host, { key: '
|
|
641
|
+
return (h(Host, { key: '144dfa5c49549a74fe516c65b9b8104a477ac789', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
643
642
|
[mode]: true,
|
|
644
643
|
'in-item': inItem,
|
|
645
644
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -655,7 +654,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
655
654
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
656
655
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
657
656
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
658
|
-
}) }, h("label", { key: '
|
|
657
|
+
}) }, h("label", { key: '0edcfcbac575a9dccc77991531b6980d1caebf42', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), h("div", { key: '348151d90cb093f5d21c7d4a834264ac4a312c40', class: "select-wrapper-inner" }, h("slot", { key: '8b7708c7f81217435c58276da0c08bba766d9500', name: "start" }), h("div", { key: '10c520a335da0a0d1cf40f9365597beb244d3b48', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: '0f15c40a5495e98e29d2a21ba21e0bc6f1c0125a', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: 'c87faad2e5ebf7f9453397d7ede43abd64d21294', class: "select-highlight" }))));
|
|
659
658
|
}
|
|
660
659
|
get el() { return this; }
|
|
661
660
|
static get watchers() { return {
|
|
@@ -688,7 +687,6 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
688
687
|
"expandedIcon": [1, "expanded-icon"],
|
|
689
688
|
"shape": [1],
|
|
690
689
|
"value": [1032],
|
|
691
|
-
"required": [4],
|
|
692
690
|
"isExpanded": [32],
|
|
693
691
|
"open": [64]
|
|
694
692
|
}, undefined, {
|
|
@@ -88,7 +88,7 @@ const TabButton = /*@__PURE__*/ proxyCustomElement(class TabButton extends HTMLE
|
|
|
88
88
|
'ion-activatable': true,
|
|
89
89
|
'ion-selectable': true,
|
|
90
90
|
'ion-focusable': true,
|
|
91
|
-
} }, h("a", Object.assign({ key: '
|
|
91
|
+
} }, h("a", Object.assign({ key: '1db09d861b67ff292018fb4b0dc7b85bd4677eb8' }, attrs, { class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : undefined }, inheritedAttributes), h("span", { key: '4381eafcb27e8c7bb0d86d4f115ceb0caf03b9b4', class: "button-inner" }, h("slot", { key: '1981135f6fbb88376c1bd923c55c70fe8b5c5159' })), mode === 'md' && h("ion-ripple-effect", { key: '0509bc7155d055d1ed710600e9cf4df135881491', type: "unbounded" }))));
|
|
92
92
|
}
|
|
93
93
|
get el() { return this; }
|
|
94
94
|
static get style() { return {
|
package/components/ion-tab.js
CHANGED
|
@@ -55,10 +55,10 @@ const Tab = /*@__PURE__*/ proxyCustomElement(class Tab extends HTMLElement {
|
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
57
|
const { tab, active, component } = this;
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: 'cb75d0877979b3b8df8f7e1952bfa9677da1eaa5', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
59
59
|
'ion-page': component === undefined,
|
|
60
60
|
'tab-hidden': !active,
|
|
61
|
-
} }, h("slot", { key: '
|
|
61
|
+
} }, h("slot", { key: '37fbb7b7a6b03eb93b1dacd2dc1025b78eb2aa6b' })));
|
|
62
62
|
}
|
|
63
63
|
get el() { return this; }
|
|
64
64
|
static get watchers() { return {
|
package/components/ion-tabs.js
CHANGED
|
@@ -16,7 +16,6 @@ const Tabs = /*@__PURE__*/ proxyCustomElement(class Tabs extends HTMLElement {
|
|
|
16
16
|
this.ionTabsDidChange = createEvent(this, "ionTabsDidChange", 3);
|
|
17
17
|
this.transitioning = false;
|
|
18
18
|
this.onTabClicked = (ev) => {
|
|
19
|
-
console.log("onTabClicked");
|
|
20
19
|
const { href, tab } = ev.detail;
|
|
21
20
|
if (this.useRouter && href !== undefined) {
|
|
22
21
|
const router = document.querySelector('ion-router');
|
|
@@ -151,7 +150,7 @@ const Tabs = /*@__PURE__*/ proxyCustomElement(class Tabs extends HTMLElement {
|
|
|
151
150
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
152
151
|
}
|
|
153
152
|
render() {
|
|
154
|
-
return (h(Host, { key: '
|
|
153
|
+
return (h(Host, { key: 'e01ccf6bfaccad094515be50e407399c733fc226', onIonTabButtonClick: this.onTabClicked }, h("slot", { key: '38d2d01dbfd8a08f01e6f0e27274b21d75424e37', name: "top" }), h("div", { key: '7e894f0f423e2d43e1c68daff5f9f6c442fad237', class: "tabs-inner" }, h("slot", { key: 'df16be529a0370a26d0adf850530b31607507c23' })), h("slot", { key: '44642e1cb24c3281c43db75fd69a32fe0defe40a', name: "bottom" })));
|
|
155
154
|
}
|
|
156
155
|
get el() { return this; }
|
|
157
156
|
static get style() { return IonTabsStyle0; }
|
package/components/ion-toggle.js
CHANGED
|
@@ -75,7 +75,6 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
75
75
|
this.labelPlacement = 'start';
|
|
76
76
|
this.justify = undefined;
|
|
77
77
|
this.alignment = undefined;
|
|
78
|
-
this.required = false;
|
|
79
78
|
}
|
|
80
79
|
disabledChanged() {
|
|
81
80
|
if (this.gesture) {
|
|
@@ -157,12 +156,12 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
157
156
|
return this.el.textContent !== '';
|
|
158
157
|
}
|
|
159
158
|
render() {
|
|
160
|
-
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment
|
|
159
|
+
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment } = this;
|
|
161
160
|
const mode = getIonMode(this);
|
|
162
161
|
const value = this.getValue();
|
|
163
162
|
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
|
164
163
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
165
|
-
return (h(Host, { key: '
|
|
164
|
+
return (h(Host, { key: 'f52195ec3bc14c024647cb41319c32a4cd330e19', onClick: this.onClick, class: createColorClasses(color, {
|
|
166
165
|
[mode]: true,
|
|
167
166
|
'in-item': hostContext('ion-item', el),
|
|
168
167
|
'toggle-activated': activated,
|
|
@@ -172,10 +171,10 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
172
171
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
173
172
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
174
173
|
[`toggle-${rtl}`]: true,
|
|
175
|
-
}) }, h("label", { key: '
|
|
174
|
+
}) }, h("label", { key: 'f8b3a215ad85b2cee611ad63449b584e1640f27f', class: "toggle-wrapper" }, h("input", Object.assign({ key: 'f387b1ea840737a9737917e516834c887be99c09', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, this.inheritedAttributes)), h("div", { key: '936af880db59fe377cd2de9101eb28a1c4fb8914', class: {
|
|
176
175
|
'label-text-wrapper': true,
|
|
177
176
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
178
|
-
}, part: "label" }, h("slot", { key: '
|
|
177
|
+
}, part: "label" }, h("slot", { key: '80a6672e2e792c15011a9496dcd75363cdba31c6' })), h("div", { key: '2b2b318b38ab27b194c0dab4cecd77d9d780f2ca', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
179
178
|
}
|
|
180
179
|
get el() { return this; }
|
|
181
180
|
static get watchers() { return {
|
|
@@ -195,7 +194,6 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
195
194
|
"labelPlacement": [1, "label-placement"],
|
|
196
195
|
"justify": [1],
|
|
197
196
|
"alignment": [1],
|
|
198
|
-
"required": [4],
|
|
199
197
|
"activated": [32]
|
|
200
198
|
}, undefined, {
|
|
201
199
|
"disabled": ["disabledChanged"]
|