@ionic/core 8.7.3-dev.11755195979.1ec83531 → 8.7.3-dev.11755551681.10d084fd
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 +1 -1
- package/components/ion-input.js +7 -38
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +2 -2
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-range.js +3 -3
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +18 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +4 -4
- package/components/ion-segment-button.js +2 -2
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +2 -2
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +2 -2
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-textarea.js +6 -37
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +3 -3
- package/components/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/modal.js +4 -4
- package/components/picker-column-option.js +2 -2
- package/components/picker-column2.js +2 -2
- package/components/popover.js +2 -2
- package/components/radio-group.js +1 -1
- package/components/radio.js +3 -3
- package/components/ripple-effect.js +1 -1
- package/components/select-modal.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -1
- package/components/title.js +2 -2
- package/components/toolbar.js +2 -2
- package/dist/cjs/ion-app_8.cjs.entry.js +5 -5
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-input.cjs.entry.js +7 -37
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +11 -11
- package/dist/cjs/ion-loading.cjs.entry.js +2 -2
- package/dist/cjs/ion-menu_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-modal.cjs.entry.js +4 -4
- package/dist/cjs/ion-nav_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +2 -2
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-range.cjs.entry.js +3 -3
- package/dist/cjs/ion-refresher_2.cjs.entry.js +19 -2
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +4 -4
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-select-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +6 -36
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/input/input.js +8 -39
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/modal.js +4 -4
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/refresher/refresher.js +18 -1
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +4 -4
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.js +2 -2
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/select-modal/select-modal.js +1 -1
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +7 -38
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/docs.json +1 -1
- package/dist/esm/ion-app_8.entry.js +5 -5
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-checkbox.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +1 -1
- package/dist/esm/ion-datetime_3.entry.js +4 -4
- package/dist/esm/ion-input.entry.js +7 -37
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +11 -11
- package/dist/esm/ion-loading.entry.js +2 -2
- package/dist/esm/ion-menu_3.entry.js +6 -6
- package/dist/esm/ion-modal.entry.js +4 -4
- package/dist/esm/ion-nav_2.entry.js +2 -2
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +2 -2
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +4 -4
- package/dist/esm/ion-range.entry.js +3 -3
- package/dist/esm/ion-refresher_2.entry.js +19 -2
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +4 -4
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +4 -4
- package/dist/esm/ion-select-modal.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +4 -4
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +6 -36
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +3 -3
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-92e8f208.entry.js → p-039c8f8e.entry.js} +1 -1
- package/dist/ionic/{p-f9eb54ee.entry.js → p-0c580145.entry.js} +1 -1
- package/dist/ionic/{p-40d56a51.entry.js → p-0e45320b.entry.js} +1 -1
- package/dist/ionic/{p-1bbd0a23.entry.js → p-12b99129.entry.js} +1 -1
- package/dist/ionic/p-1488b7cc.entry.js +4 -0
- package/dist/ionic/{p-6383afc2.entry.js → p-165d1309.entry.js} +1 -1
- package/dist/ionic/{p-7b12d853.entry.js → p-165d8e84.entry.js} +1 -1
- package/dist/ionic/p-1a91f317.entry.js +4 -0
- package/dist/ionic/{p-c575e7ce.entry.js → p-1cfb0bc4.entry.js} +1 -1
- package/dist/ionic/{p-4f2c5845.entry.js → p-1e8b1767.entry.js} +1 -1
- package/dist/ionic/{p-e6c465ff.entry.js → p-22351d1b.entry.js} +1 -1
- package/dist/ionic/{p-3624b640.entry.js → p-2e967897.entry.js} +1 -1
- package/dist/ionic/p-332e4eac.entry.js +4 -0
- package/dist/ionic/p-3364562a.entry.js +4 -0
- package/dist/ionic/{p-d04d66fc.entry.js → p-4c79bd85.entry.js} +1 -1
- package/dist/ionic/{p-cde6d39b.entry.js → p-5420fd3e.entry.js} +1 -1
- package/dist/ionic/{p-54dec9b1.entry.js → p-70e05fd1.entry.js} +1 -1
- package/dist/ionic/{p-16116947.entry.js → p-78aff731.entry.js} +1 -1
- package/dist/ionic/p-7922ca30.entry.js +4 -0
- package/dist/ionic/{p-ab33ef20.entry.js → p-82ce0043.entry.js} +1 -1
- package/dist/ionic/{p-29032e49.entry.js → p-8ca65589.entry.js} +1 -1
- package/dist/ionic/p-8de104c4.entry.js +4 -0
- package/dist/ionic/{p-7bac2c5f.entry.js → p-9cf01220.entry.js} +1 -1
- package/dist/ionic/{p-1191a2d9.entry.js → p-c32b6c20.entry.js} +1 -1
- package/dist/ionic/{p-982fe1c4.entry.js → p-c7d2c21b.entry.js} +1 -1
- package/dist/ionic/p-c91aa324.entry.js +4 -0
- package/dist/ionic/p-dff5b0b6.entry.js +4 -0
- package/dist/ionic/{p-ec76fec4.entry.js → p-e1310192.entry.js} +1 -1
- package/dist/ionic/{p-dbba38cf.entry.js → p-e8429777.entry.js} +1 -1
- package/dist/ionic/{p-528af4e6.entry.js → p-ee881603.entry.js} +1 -1
- package/dist/ionic/{p-ac434970.entry.js → p-f267c7dc.entry.js} +1 -1
- package/dist/ionic/{p-7a53f04c.entry.js → p-f4e6e570.entry.js} +1 -1
- package/dist/ionic/{p-c0d58c8e.entry.js → p-f550f186.entry.js} +1 -1
- package/dist/ionic/{p-f456d176.entry.js → p-f5da8541.entry.js} +1 -1
- package/dist/ionic/{p-f7db572a.entry.js → p-f868d51c.entry.js} +1 -1
- package/dist/types/components/input/input.d.ts +0 -9
- package/dist/types/components/textarea/textarea.d.ts +0 -9
- package/hydrate/index.js +123 -138
- package/hydrate/index.mjs +123 -138
- package/package.json +1 -1
- package/dist/ionic/p-0f396661.entry.js +0 -4
- package/dist/ionic/p-44415a3b.entry.js +0 -4
- package/dist/ionic/p-8d96a0cd.entry.js +0 -4
- package/dist/ionic/p-ac2be9d6.entry.js +0 -4
- package/dist/ionic/p-c836e1a2.entry.js +0 -4
- package/dist/ionic/p-d3df6032.entry.js +0 -4
- package/dist/ionic/p-e6c3214c.entry.js +0 -4
- package/dist/ionic/p-f80f7416.entry.js +0 -4
package/components/ion-select.js
CHANGED
|
@@ -755,7 +755,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
755
755
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
756
756
|
*/
|
|
757
757
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
758
|
-
return (h(Host, { key: '
|
|
758
|
+
return (h(Host, { key: 'c1e6967b3ccc9631bfceeadd074a6e87b4e96dbe', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
759
759
|
[mode]: true,
|
|
760
760
|
'in-item': inItem,
|
|
761
761
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -773,7 +773,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
773
773
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
774
774
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
775
775
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
776
|
-
}) }, h("label", { key: '
|
|
776
|
+
}) }, h("label", { key: 'b890417073d5a622869549173f9cdac695d51079', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick }, this.renderLabelContainer(), h("div", { key: '43deb671a8570f9b407617dd3153f8ed37cf77b9', class: "select-wrapper-inner" }, h("slot", { key: '91b64e1926ea44912e85eec336992c36ca5a6fff', name: "start" }), h("div", { key: '4d3b26a304b18c68576302440ba7810a91324b86', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: '64d839f2e862efffd32e01204e567c58f59c20cb', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: 'edffaee197d2f9ee8268cd2ecac6d6ce4ed28bfb', class: "select-highlight" })), this.renderBottomContent()));
|
|
777
777
|
}
|
|
778
778
|
get el() { return this; }
|
|
779
779
|
static get watchers() { return {
|
|
@@ -35,11 +35,11 @@ const SkeletonText = /*@__PURE__*/ proxyCustomElement(class SkeletonText extends
|
|
|
35
35
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
36
36
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
37
37
|
const mode = getIonMode(this);
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: 'cb8da9aba121811b9a4ffdae60ed88105897cb3c', class: {
|
|
39
39
|
[mode]: true,
|
|
40
40
|
'skeleton-text-animated': animated,
|
|
41
41
|
'in-media': inMedia,
|
|
42
|
-
} }, h("span", { key: '
|
|
42
|
+
} }, h("span", { key: '5379deee3c76d46d615be0cba14b4f60129ffa25' }, "\u00A0")));
|
|
43
43
|
}
|
|
44
44
|
get el() { return this; }
|
|
45
45
|
static get style() { return skeletonTextCss; }
|
|
@@ -135,12 +135,12 @@ const SplitPane = /*@__PURE__*/ proxyCustomElement(class SplitPane extends HTMLE
|
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
const mode = getIonMode(this);
|
|
138
|
-
return (h(Host, { key: '
|
|
138
|
+
return (h(Host, { key: '05c88c009fbe2e223fd261760a2b49da1653ff62', class: {
|
|
139
139
|
[mode]: true,
|
|
140
140
|
// Used internally for styling
|
|
141
141
|
[`split-pane-${mode}`]: true,
|
|
142
142
|
'split-pane-visible': this.visible,
|
|
143
|
-
} }, h("slot", { key: '
|
|
143
|
+
} }, h("slot", { key: 'b35865082661253c4468520d79234fa5dab5bd35' })));
|
|
144
144
|
}
|
|
145
145
|
get el() { return this; }
|
|
146
146
|
static get watchers() { return {
|
|
@@ -61,11 +61,11 @@ const TabBar = /*@__PURE__*/ proxyCustomElement(class TabBar extends HTMLElement
|
|
|
61
61
|
const { color, translucent, keyboardVisible } = this;
|
|
62
62
|
const mode = getIonMode(this);
|
|
63
63
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: '7384afd3f2d364c8a052ea5a27131c51ce7ef94b', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses(color, {
|
|
65
65
|
[mode]: true,
|
|
66
66
|
'tab-bar-translucent': translucent,
|
|
67
67
|
'tab-bar-hidden': shouldHide,
|
|
68
|
-
}) }, h("slot", { key: '
|
|
68
|
+
}) }, h("slot", { key: '4330de4be572cb2c88a37c88124fe66b8da98cc5' })));
|
|
69
69
|
}
|
|
70
70
|
get el() { return this; }
|
|
71
71
|
static get watchers() { return {
|
|
@@ -75,7 +75,7 @@ const TabButton = /*@__PURE__*/ proxyCustomElement(class TabButton extends HTMLE
|
|
|
75
75
|
rel,
|
|
76
76
|
target,
|
|
77
77
|
};
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: '638b93ef40701ec3aefb89b1579eb91aaf6d4f8a', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
79
79
|
[mode]: true,
|
|
80
80
|
'tab-selected': selected,
|
|
81
81
|
'tab-disabled': disabled,
|
|
@@ -87,7 +87,7 @@ const TabButton = /*@__PURE__*/ proxyCustomElement(class TabButton extends HTMLE
|
|
|
87
87
|
'ion-activatable': true,
|
|
88
88
|
'ion-selectable': true,
|
|
89
89
|
'ion-focusable': true,
|
|
90
|
-
} }, h("a", Object.assign({ key: '
|
|
90
|
+
} }, h("a", Object.assign({ key: 'c053d32fbcdad8d5e4a409956b47164d7a080c6b' }, 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: 'b3b460d33ec978a46b069442280d31b23bc8e794', class: "button-inner" }, h("slot", { key: '87b3928475c941263261101b8fae27c6370d4671' })), mode === 'md' && h("ion-ripple-effect", { key: '6532e5b4546aebe4becaebe1c93ce0e6aedaffe7', type: "unbounded" }))));
|
|
91
91
|
}
|
|
92
92
|
get el() { return this; }
|
|
93
93
|
static get style() { return {
|
package/components/ion-tab.js
CHANGED
|
@@ -53,10 +53,10 @@ const Tab = /*@__PURE__*/ proxyCustomElement(class Tab extends HTMLElement {
|
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
55
|
const { tab, active, component } = this;
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: 'fbd837bad7a0632336d46a597ace23673b153e48', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
57
57
|
'ion-page': component === undefined,
|
|
58
58
|
'tab-hidden': !active,
|
|
59
|
-
} }, h("slot", { key: '
|
|
59
|
+
} }, h("slot", { key: '35c218169fda826c9c1337558e0278d0c7f5f26a' })));
|
|
60
60
|
}
|
|
61
61
|
get el() { return this; }
|
|
62
62
|
static get watchers() { return {
|
package/components/ion-tabs.js
CHANGED
|
@@ -167,7 +167,7 @@ const Tabs = /*@__PURE__*/ proxyCustomElement(class Tabs extends HTMLElement {
|
|
|
167
167
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
|
-
return (h(Host, { key: '
|
|
170
|
+
return (h(Host, { key: '97d3548ef12a33b783b4ea090ba19ca5055ef6d7', onIonTabButtonClick: this.onTabClicked }, h("slot", { key: '13fc2090ff2d030803caec332f30b2dd41352644', name: "top" }), h("div", { key: '5f5c12c96efca85cba50442e7633b8a95f699918', class: "tabs-inner" }, h("slot", { key: '92e702217cb2bab6133928adae8a6a516796ca1a' })), h("slot", { key: '57a08296c8d77d62e4832a4eca431fea8ace3616', name: "bottom" })));
|
|
171
171
|
}
|
|
172
172
|
get el() { return this; }
|
|
173
173
|
static get style() { return tabsCss; }
|
package/components/ion-text.js
CHANGED
|
@@ -15,9 +15,9 @@ const Text = /*@__PURE__*/ proxyCustomElement(class Text extends HTMLElement {
|
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
17
|
const mode = getIonMode(this);
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'bfaa49d35f43b8036725ae8a322c716fc6e43bdf', class: createColorClasses(this.color, {
|
|
19
19
|
[mode]: true,
|
|
20
|
-
}) }, h("slot", { key: '
|
|
20
|
+
}) }, h("slot", { key: 'c04880cd1935b42cbe60f58fd523b4d8a96072dc' })));
|
|
21
21
|
}
|
|
22
22
|
static get style() { return textCss; }
|
|
23
23
|
}, [257, "ion-text", {
|
|
@@ -40,10 +40,6 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
40
40
|
* is applied in both cases.
|
|
41
41
|
*/
|
|
42
42
|
this.hasFocus = false;
|
|
43
|
-
/**
|
|
44
|
-
* Track validation state for proper aria-live announcements
|
|
45
|
-
*/
|
|
46
|
-
this.isInvalid = false;
|
|
47
43
|
/**
|
|
48
44
|
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
|
49
45
|
* Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
@@ -190,31 +186,10 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
190
186
|
this.el.click();
|
|
191
187
|
}
|
|
192
188
|
}
|
|
193
|
-
/**
|
|
194
|
-
* Checks if the textarea is in an invalid state based on validation classes
|
|
195
|
-
*/
|
|
196
|
-
checkValidationState() {
|
|
197
|
-
return this.el.classList.contains('ion-touched') && this.el.classList.contains('ion-invalid');
|
|
198
|
-
}
|
|
199
189
|
connectedCallback() {
|
|
200
190
|
const { el } = this;
|
|
201
191
|
this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () => forceUpdate(this));
|
|
202
192
|
this.notchController = createNotchController(el, () => this.notchSpacerEl, () => this.labelSlot);
|
|
203
|
-
// Watch for class changes to update validation state
|
|
204
|
-
if (Build.isBrowser) {
|
|
205
|
-
this.validationObserver = new MutationObserver(() => {
|
|
206
|
-
const newIsInvalid = this.checkValidationState();
|
|
207
|
-
if (this.isInvalid !== newIsInvalid) {
|
|
208
|
-
this.isInvalid = newIsInvalid;
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
this.validationObserver.observe(el, {
|
|
212
|
-
attributes: true,
|
|
213
|
-
attributeFilter: ['class'],
|
|
214
|
-
});
|
|
215
|
-
// Set initial state
|
|
216
|
-
this.isInvalid = this.checkValidationState();
|
|
217
|
-
}
|
|
218
193
|
this.debounceChanged();
|
|
219
194
|
if (Build.isBrowser) {
|
|
220
195
|
document.dispatchEvent(new CustomEvent('ionInputDidLoad', {
|
|
@@ -236,11 +211,6 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
236
211
|
this.notchController.destroy();
|
|
237
212
|
this.notchController = undefined;
|
|
238
213
|
}
|
|
239
|
-
// Clean up validation observer to prevent memory leaks
|
|
240
|
-
if (this.validationObserver) {
|
|
241
|
-
this.validationObserver.disconnect();
|
|
242
|
-
this.validationObserver = undefined;
|
|
243
|
-
}
|
|
244
214
|
}
|
|
245
215
|
componentWillLoad() {
|
|
246
216
|
this.inheritedAttributes = Object.assign(Object.assign({}, inheritAriaAttributes(this.el)), inheritAttributes(this.el, ['data-form-type', 'title', 'tabindex', 'dir']));
|
|
@@ -411,15 +381,15 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
411
381
|
* Renders the helper text or error text values
|
|
412
382
|
*/
|
|
413
383
|
renderHintText() {
|
|
414
|
-
const { helperText, errorText, helperTextId, errorTextId
|
|
384
|
+
const { helperText, errorText, helperTextId, errorTextId } = this;
|
|
415
385
|
return [
|
|
416
386
|
h("div", { id: helperTextId, class: "helper-text" }, helperText),
|
|
417
|
-
h("div", { id: errorTextId, class: "error-text"
|
|
387
|
+
h("div", { id: errorTextId, class: "error-text" }, errorText),
|
|
418
388
|
];
|
|
419
389
|
}
|
|
420
390
|
getHintTextID() {
|
|
421
|
-
const {
|
|
422
|
-
if (
|
|
391
|
+
const { el, helperText, errorText, helperTextId, errorTextId } = this;
|
|
392
|
+
if (el.classList.contains('ion-touched') && el.classList.contains('ion-invalid') && errorText) {
|
|
423
393
|
return errorTextId;
|
|
424
394
|
}
|
|
425
395
|
if (helperText) {
|
|
@@ -478,7 +448,7 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
478
448
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
479
449
|
*/
|
|
480
450
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
481
|
-
return (h(Host, { key: '
|
|
451
|
+
return (h(Host, { key: '9fd36834a8ed8496212e00e5cc684c7fa6e8f6d5', class: createColorClasses(this.color, {
|
|
482
452
|
[mode]: true,
|
|
483
453
|
'has-value': hasValue,
|
|
484
454
|
'has-focus': hasFocus,
|
|
@@ -487,7 +457,7 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
487
457
|
[`textarea-shape-${shape}`]: shape !== undefined,
|
|
488
458
|
[`textarea-label-placement-${labelPlacement}`]: true,
|
|
489
459
|
'textarea-disabled': disabled,
|
|
490
|
-
}) }, h("label", { key: '
|
|
460
|
+
}) }, h("label", { key: '60dd748594cb8e710bd6be8779c5bbafc7bb129c', class: "textarea-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderLabelContainer(), h("div", { key: 'dc11a0e37279c142cde124e3868144024a5439ed', class: "textarea-wrapper-inner" }, h("div", { key: '49aee693a69bf17cf9d05a903d5e176f5ef7c50d', class: "start-slot-wrapper" }, h("slot", { key: '7307aad65706b8191dac46b7e61e662af8976e97', name: "start" })), h("div", { key: '81fb54829e4dd759d812fe98e24893071fdfb92a', class: "native-wrapper", ref: (el) => (this.textareaWrapper = el) }, h("textarea", Object.assign({ key: 'fe51fca195f8e2ec6607ba6d92bce72e0a94e2cd', class: "native-textarea", ref: (el) => (this.nativeInput = el), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, minLength: this.minlength, maxLength: this.maxlength, name: this.name, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, "aria-describedby": this.getHintTextID(), "aria-invalid": this.getHintTextID() === this.errorTextId }, this.inheritedAttributes), value)), h("div", { key: '87fd163075ea795ddb75b8d6bbf2f89ddceca4dc', class: "end-slot-wrapper" }, h("slot", { key: 'b09b52993d2471e7e75773a8f36c49995959ce7a', name: "end" }))), shouldRenderHighlight && h("div", { key: 'acad88bca506ebf44d3bedab29f6d53ff8f92981', class: "textarea-highlight" })), this.renderBottomContent()));
|
|
491
461
|
}
|
|
492
462
|
get el() { return this; }
|
|
493
463
|
static get watchers() { return {
|
|
@@ -529,7 +499,6 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
529
499
|
"labelPlacement": [1, "label-placement"],
|
|
530
500
|
"shape": [1],
|
|
531
501
|
"hasFocus": [32],
|
|
532
|
-
"isInvalid": [32],
|
|
533
502
|
"setFocus": [64],
|
|
534
503
|
"getInputElement": [64]
|
|
535
504
|
}, [[2, "click", "onClickCapture"]], {
|
|
@@ -13,7 +13,7 @@ const Thumbnail = /*@__PURE__*/ proxyCustomElement(class Thumbnail extends HTMLE
|
|
|
13
13
|
this.__attachShadow();
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'b250e01664238f1dca8f9757b15bc3d5d9387ffa', class: getIonMode(this) }, h("slot", { key: '72cb568bccabc983c5186a7596ef6c6d4ebf5ad9' })));
|
|
17
17
|
}
|
|
18
18
|
static get style() { return thumbnailCss; }
|
|
19
19
|
}, [257, "ion-thumbnail"]);
|
package/components/ion-toast.js
CHANGED
|
@@ -853,9 +853,9 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
853
853
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
854
854
|
printIonWarning('[ion-toast] - This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
|
|
855
855
|
}
|
|
856
|
-
return (h(Host, Object.assign({ key: '
|
|
856
|
+
return (h(Host, Object.assign({ key: '4a303f9ebb69614e9dca677d9d80a4a275de0d85', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
857
857
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
858
|
-
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '
|
|
858
|
+
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '4f58fcbba8dce9834eab743fc91715935216f3d0', class: wrapperClass }, h("div", { key: 'bbc7b73b186432bd4be8247c5de2ce3b2551fb0a', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (h("ion-icon", { key: '0b953478eb739ceb864373416183bfbf5ce2f9f1', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), h("div", { key: '7a63497d1c0440256218426194851a969b042ca6', class: "toast-content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
|
|
859
859
|
}
|
|
860
860
|
get el() { return this; }
|
|
861
861
|
static get watchers() { return {
|
package/components/ion-toggle.js
CHANGED
|
@@ -241,7 +241,7 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
241
241
|
const value = this.getValue();
|
|
242
242
|
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
|
243
243
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
244
|
-
return (h(Host, { key: '
|
|
244
|
+
return (h(Host, { key: '4bfaf87191b3ba4daef9d7afc693e290dbb2c5d2', role: "switch", "aria-checked": `${checked}`, "aria-describedby": this.getHintTextID(), "aria-invalid": this.getHintTextID() === errorTextId, onClick: this.onClick, "aria-labelledby": hasLabel ? inputLabelId : null, "aria-label": inheritedAttributes['aria-label'] || null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? undefined : 0, onKeyDown: this.onKeyDown, class: createColorClasses(color, {
|
|
245
245
|
[mode]: true,
|
|
246
246
|
'in-item': hostContext('ion-item', el),
|
|
247
247
|
'toggle-activated': activated,
|
|
@@ -251,10 +251,10 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
251
251
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
252
252
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
253
253
|
[`toggle-${rtl}`]: true,
|
|
254
|
-
}) }, h("label", { key: '
|
|
254
|
+
}) }, h("label", { key: '08a7744d71410f8befc04776a0ef7d3b03e9cfaf', class: "toggle-wrapper", htmlFor: inputId }, h("input", Object.assign({ key: 'e41f1cc9779e3ea364f3b0cee91686bd177bc883', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl), required: required }, inheritedAttributes)), h("div", { key: '986ee5fd8f7011dc8f2857b3ed19ea391070f20b', class: {
|
|
255
255
|
'label-text-wrapper': true,
|
|
256
256
|
'label-text-wrapper-hidden': !hasLabel,
|
|
257
|
-
}, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, h("slot", { key: '
|
|
257
|
+
}, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, h("slot", { key: '0cb70572a622b68d8e49239314bf00a32d7551c0' }), this.renderHintText()), h("div", { key: 'f6e2a4f074af1398af3b6eaeb1a2ef2125e1ba67', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
258
258
|
}
|
|
259
259
|
get el() { return this; }
|
|
260
260
|
static get watchers() { return {
|
package/components/label.js
CHANGED
|
@@ -59,13 +59,13 @@ const Label = /*@__PURE__*/ proxyCustomElement(class Label extends HTMLElement {
|
|
|
59
59
|
render() {
|
|
60
60
|
const position = this.position;
|
|
61
61
|
const mode = getIonMode(this);
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '684ddfa719e34d743489ff05a0df067829257c73', class: createColorClasses(this.color, {
|
|
63
63
|
[mode]: true,
|
|
64
64
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
65
65
|
[`label-${position}`]: position !== undefined,
|
|
66
66
|
[`label-no-animate`]: this.noAnimate,
|
|
67
67
|
'label-rtl': document.dir === 'rtl',
|
|
68
|
-
}) }, h("slot", { key: '
|
|
68
|
+
}) }, h("slot", { key: '4aace3e2b36250e832c44f63bea21116d77220fb' })));
|
|
69
69
|
}
|
|
70
70
|
get el() { return this; }
|
|
71
71
|
static get watchers() { return {
|
|
@@ -18,10 +18,10 @@ const ListHeader = /*@__PURE__*/ proxyCustomElement(class ListHeader extends HTM
|
|
|
18
18
|
render() {
|
|
19
19
|
const { lines } = this;
|
|
20
20
|
const mode = getIonMode(this);
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '2e529021279761b2b2889885437f619b0e8f71c4', class: createColorClasses(this.color, {
|
|
22
22
|
[mode]: true,
|
|
23
23
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
24
|
-
}) }, h("div", { key: '
|
|
24
|
+
}) }, h("div", { key: '9a6a11b0db015df79374f6489a40b959bc80b3e4', class: "list-header-inner" }, h("slot", { key: 'ef347fc6afb47850797e2e4d1aeefcd6a318f789' }))));
|
|
25
25
|
}
|
|
26
26
|
static get style() { return {
|
|
27
27
|
ios: listHeaderIosCss,
|
package/components/modal.js
CHANGED
|
@@ -2317,20 +2317,20 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
2317
2317
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
2318
2318
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
2319
2319
|
const isSheetModalWithHandle = isSheetModal && showHandle;
|
|
2320
|
-
return (h(Host, Object.assign({ key: '
|
|
2320
|
+
return (h(Host, Object.assign({ key: '3fc94b846a80cf23ab9c4d4534d5835f2ada5449', "no-router": true,
|
|
2321
2321
|
// Allow the modal to be navigable when the handle is focusable
|
|
2322
2322
|
tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1 }, htmlAttributes, { style: {
|
|
2323
2323
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
2324
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }), h("ion-backdrop", { key: '
|
|
2324
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }), h("ion-backdrop", { key: 'a99663c15d2374448a2a2243da63cfc5fac769f4', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { key: '840e71a6e0d334b413766b3b00fa60841b8abdaf', class: "modal-shadow" }), h("div", Object.assign({ key: 'a77a8a58fbb541fb78319bd8fc790cc7c35133e7',
|
|
2325
2325
|
/*
|
|
2326
2326
|
role and aria-modal must be used on the
|
|
2327
2327
|
same element. They must also be set inside the
|
|
2328
2328
|
shadow DOM otherwise ion-button will not be highlighted
|
|
2329
2329
|
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
2330
2330
|
*/
|
|
2331
|
-
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: '
|
|
2331
|
+
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: '4856c8e31055dc33b8dc997c891507c2b556cd7b', class: "modal-handle",
|
|
2332
2332
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
2333
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", ref: (el) => (this.dragHandleEl = el) })), h("slot", { key: '
|
|
2333
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", ref: (el) => (this.dragHandleEl = el) })), h("slot", { key: 'ecc33d1c0670d884aeee5a0c9fe4f16030edb511', onSlotchange: this.onSlotChange }))));
|
|
2334
2334
|
}
|
|
2335
2335
|
get el() { return this; }
|
|
2336
2336
|
static get watchers() { return {
|
|
@@ -99,10 +99,10 @@ const PickerColumnOption = /*@__PURE__*/ proxyCustomElement(class PickerColumnOp
|
|
|
99
99
|
render() {
|
|
100
100
|
const { color, disabled, ariaLabel } = this;
|
|
101
101
|
const mode = getIonMode(this);
|
|
102
|
-
return (h(Host, { key: '
|
|
102
|
+
return (h(Host, { key: 'c45a1c14a351bf57d7113671164852349be5aa8a', class: createColorClasses(color, {
|
|
103
103
|
[mode]: true,
|
|
104
104
|
['option-disabled']: disabled,
|
|
105
|
-
}) }, h("button", { key: '
|
|
105
|
+
}) }, h("button", { key: '67334c3bc6fbff93f65aaf9a0979b5ef62db1e5b', tabindex: "-1", "aria-label": ariaLabel, disabled: disabled, onClick: () => this.onClick() }, h("slot", { key: 'a4766c43931d1a5cb3124a2a97141d1a4ca2bf24' }))));
|
|
106
106
|
}
|
|
107
107
|
get el() { return this; }
|
|
108
108
|
static get watchers() { return {
|
|
@@ -340,9 +340,9 @@ const PickerColumnCmp = /*@__PURE__*/ proxyCustomElement(class PickerColumnCmp e
|
|
|
340
340
|
render() {
|
|
341
341
|
const col = this.col;
|
|
342
342
|
const mode = getIonMode(this);
|
|
343
|
-
return (h(Host, { key: '
|
|
343
|
+
return (h(Host, { key: '86125e95f18837dfd021db01777d72a1562d8ee3', class: Object.assign({ [mode]: true, 'picker-col': true, 'picker-opts-left': this.col.align === 'left', 'picker-opts-right': this.col.align === 'right' }, getClassMap(col.cssClass)), style: {
|
|
344
344
|
'max-width': this.col.columnWidth,
|
|
345
|
-
} }, col.prefix && (h("div", { key: '
|
|
345
|
+
} }, col.prefix && (h("div", { key: 'b0f3d39e0bd128781066ffefb7a1e40d12a9e76d', class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), h("div", { key: '0b106ac4d56916eaaa7f09d1b68348b3754b7bba', class: "picker-opts", style: { maxWidth: col.optionsWidth }, ref: (el) => (this.optsEl = el) }, col.options.map((o, index) => (h("button", { "aria-label": o.ariaLabel, class: { 'picker-opt': true, 'picker-opt-disabled': !!o.disabled }, "opt-index": index }, o.text)))), col.suffix && (h("div", { key: '00ff2f9dbb4561787e5a5223327c6a2a33f8362e', class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
346
346
|
}
|
|
347
347
|
get el() { return this; }
|
|
348
348
|
static get watchers() { return {
|
package/components/popover.js
CHANGED
|
@@ -1387,9 +1387,9 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
1387
1387
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
1388
1388
|
const desktop = isPlatform('desktop');
|
|
1389
1389
|
const enableArrow = arrow && !parentPopover;
|
|
1390
|
-
return (h(Host, Object.assign({ key: '
|
|
1390
|
+
return (h(Host, Object.assign({ key: 'f977b26ee1607d83bc78418e319da90d1691b49f', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
1391
1391
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
1392
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { key: '
|
|
1392
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { key: '3cfc18823bca1fd43f9f7da876a69a5d8b1eac4e', tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: '060bc23b567e92bd4740397d3d2c1994cebd2859', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && h("div", { key: 'cbb21b281a69713dd4233ea27256d696173a634b', class: "popover-arrow", part: "arrow" }), h("div", { key: 'a28dc0557aac79410d56828746d1b77aaa9d636c', class: "popover-content", part: "content" }, h("slot", { key: 'cd29600cb42be78005e635672ee2ec1e251116cc' })))));
|
|
1393
1393
|
}
|
|
1394
1394
|
get el() { return this; }
|
|
1395
1395
|
static get watchers() { return {
|
|
@@ -196,7 +196,7 @@ const RadioGroup = /*@__PURE__*/ proxyCustomElement(class RadioGroup extends HTM
|
|
|
196
196
|
const { label, labelId, el, name, value } = this;
|
|
197
197
|
const mode = getIonMode(this);
|
|
198
198
|
renderHiddenInput(true, el, name, value, false);
|
|
199
|
-
return (h(Host, { key: '81b8ebc96b2f383c36717f290d2959cc921ad6e8', role: "radiogroup", "aria-labelledby": label ? labelId : null, "aria-describedby": this.getHintTextID(), "aria-invalid": this.getHintTextID() === this.errorTextId, onClick: this.onClick, class: mode }, this.renderHintText(), h("
|
|
199
|
+
return (h(Host, { key: '81b8ebc96b2f383c36717f290d2959cc921ad6e8', role: "radiogroup", "aria-labelledby": label ? labelId : null, "aria-describedby": this.getHintTextID(), "aria-invalid": this.getHintTextID() === this.errorTextId, onClick: this.onClick, class: mode }, this.renderHintText(), h("slot", { key: '77f7b5a2040b65222c9c2178c8e87d58b347ef7c' })));
|
|
200
200
|
}
|
|
201
201
|
get el() { return this; }
|
|
202
202
|
static get watchers() { return {
|
package/components/radio.js
CHANGED
|
@@ -173,7 +173,7 @@ const Radio = /*@__PURE__*/ proxyCustomElement(class Radio extends HTMLElement {
|
|
|
173
173
|
const { checked, disabled, color, el, justify, labelPlacement, hasLabel, buttonTabindex, alignment } = this;
|
|
174
174
|
const mode = getIonMode(this);
|
|
175
175
|
const inItem = hostContext('ion-item', el);
|
|
176
|
-
return (h(Host, { key: '
|
|
176
|
+
return (h(Host, { key: 'af5dc59ed528150872e907ed1036e3e2decba939', onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, class: createColorClasses(color, {
|
|
177
177
|
[mode]: true,
|
|
178
178
|
'in-item': inItem,
|
|
179
179
|
'radio-checked': checked,
|
|
@@ -184,10 +184,10 @@ const Radio = /*@__PURE__*/ proxyCustomElement(class Radio extends HTMLElement {
|
|
|
184
184
|
// Focus and active styling should not apply when the radio is in an item
|
|
185
185
|
'ion-activatable': !inItem,
|
|
186
186
|
'ion-focusable': !inItem,
|
|
187
|
-
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, h("label", { key: '
|
|
187
|
+
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, h("label", { key: '1312aba3259a87fe23a6911cdfa477e309469c8b', class: "radio-wrapper" }, h("div", { key: 'b342aa27e240a300836d2a135658d346b95daf09', class: {
|
|
188
188
|
'label-text-wrapper': true,
|
|
189
189
|
'label-text-wrapper-hidden': !hasLabel,
|
|
190
|
-
}, part: "label" }, h("slot", { key: '
|
|
190
|
+
}, part: "label" }, h("slot", { key: '0a4613d29aa783d1882cf889377f7e4fd4fea51d' })), h("div", { key: '191faea79dc4cd8befc4b873f5bd9f5af8ca2acc', class: "native-wrapper" }, this.renderRadioControl()))));
|
|
191
191
|
}
|
|
192
192
|
get el() { return this; }
|
|
193
193
|
static get watchers() { return {
|
|
@@ -74,7 +74,7 @@ const RippleEffect = /*@__PURE__*/ proxyCustomElement(class RippleEffect extends
|
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
76
|
const mode = getIonMode(this);
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '3b59cbb44741569a7350f9638b4392add673b6f1', role: "presentation", class: {
|
|
78
78
|
[mode]: true,
|
|
79
79
|
unbounded: this.unbounded,
|
|
80
80
|
} }));
|
|
@@ -97,7 +97,7 @@ const SelectModal = /*@__PURE__*/ proxyCustomElement(class SelectModal extends H
|
|
|
97
97
|
} }, option.text))));
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
|
-
return (h(Host, { key: '
|
|
100
|
+
return (h(Host, { key: '5bffdb106e6f628dae2e2aeb9ee8008b5c547b3a', class: getIonMode(this) }, h("ion-header", { key: '4de1c33b0504372f8a0a26123e4e086080ee1ecb' }, h("ion-toolbar", { key: '5d55a67d1db4352c260e9e0457d5dac6110b6598' }, this.header !== undefined && h("ion-title", { key: '4f07fe8a9af8c9bd0852af2a9b95517d16356e50' }, this.header), h("ion-buttons", { key: 'ca676a34f7cd3dd6b465b0d803434c2e2c8536c5', slot: "end" }, h("ion-button", { key: '801ed63a357c7c9d354668851db65e5c1b0e1abe', onClick: () => this.closeModal() }, "Close")))), h("ion-content", { key: 'f3c239ec9d84b8ed7413ea9db6efa18e29aca285' }, h("ion-list", { key: '40c157e9abe477171a39ae7e6e1cd4ed08735cb4' }, this.multiple === true ? this.renderCheckboxOptions() : this.renderRadioOptions()))));
|
|
101
101
|
}
|
|
102
102
|
get el() { return this; }
|
|
103
103
|
static get style() { return {
|
|
@@ -114,7 +114,7 @@ const SelectPopover = /*@__PURE__*/ proxyCustomElement(class SelectPopover exten
|
|
|
114
114
|
render() {
|
|
115
115
|
const { header, message, options, subHeader } = this;
|
|
116
116
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
117
|
-
return (h(Host, { key: '
|
|
117
|
+
return (h(Host, { key: '0c9845a40d3fc392b0a7d64e2a6ed27d94bb7634', class: getIonMode(this) }, h("ion-list", { key: '84a30f6661b0f8c00e6fa199658ed2adbcf27358' }, header !== undefined && h("ion-list-header", { key: '13f5f56bbfbc06751fa516291a2da72629b60ece' }, header), hasSubHeaderOrMessage && (h("ion-item", { key: '3d39d18e720e798bbde334e79e6832091c7dfb81' }, h("ion-label", { key: 'd3051b0d140120b44bf5e79572f6f287e7cfb03a', class: "ion-text-wrap" }, subHeader !== undefined && h("h3", { key: 'b16805956f3316f8ec703c123b76f717488e8637' }, subHeader), message !== undefined && h("p", { key: '2215ac4ab4146a14e75a79192e319a8016286b5f' }, message)))), this.renderOptions(options))));
|
|
118
118
|
}
|
|
119
119
|
get el() { return this; }
|
|
120
120
|
static get style() { return {
|
package/components/spinner.js
CHANGED
|
@@ -185,7 +185,7 @@ const Spinner = /*@__PURE__*/ proxyCustomElement(class Spinner extends HTMLEleme
|
|
|
185
185
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
return (h(Host, { key: '
|
|
188
|
+
return (h(Host, { key: 'dd1954e557fa14b943e761474e29e4316ba53938', class: createColorClasses(self.color, {
|
|
189
189
|
[mode]: true,
|
|
190
190
|
[`spinner-${spinnerName}`]: true,
|
|
191
191
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
package/components/title.js
CHANGED
|
@@ -34,11 +34,11 @@ const ToolbarTitle = /*@__PURE__*/ proxyCustomElement(class ToolbarTitle extends
|
|
|
34
34
|
render() {
|
|
35
35
|
const mode = getIonMode(this);
|
|
36
36
|
const size = this.getSize();
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '44e63f8439df64c470692904427b417e19406476', class: createColorClasses(this.color, {
|
|
38
38
|
[mode]: true,
|
|
39
39
|
[`title-${size}`]: true,
|
|
40
40
|
'title-rtl': document.dir === 'rtl',
|
|
41
|
-
}) }, h("div", { key: '
|
|
41
|
+
}) }, h("div", { key: '784cf60a0db16045391891cc8fad0c7dbeba4039', class: "toolbar-title" }, h("slot", { key: '0c720a50479ba257e8756337aeb9b0ab7516a227' }))));
|
|
42
42
|
}
|
|
43
43
|
get el() { return this; }
|
|
44
44
|
static get watchers() { return {
|
package/components/toolbar.js
CHANGED
|
@@ -60,10 +60,10 @@ const Toolbar = /*@__PURE__*/ proxyCustomElement(class Toolbar extends HTMLEleme
|
|
|
60
60
|
this.childrenStyles.forEach((value) => {
|
|
61
61
|
Object.assign(childStyles, value);
|
|
62
62
|
});
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: 'b849db2863778dee6c5a251bffa1b3a657aeb036', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
|
|
64
64
|
[mode]: true,
|
|
65
65
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
66
|
-
})) }, h("div", { key: '
|
|
66
|
+
})) }, h("div", { key: '67f5bba9c4f527c3f35bfe1313a2b85741f9b246', class: "toolbar-background", part: "background" }), h("div", { key: '085e8c68f056e5b0deb9d1606431fbeb45dae8e5', class: "toolbar-container", part: "container" }, h("slot", { key: '15227c79c3baf883fd8c43fdb7e1313453933c79', name: "start" }), h("slot", { key: '0b8a7f7e685aa31c80d9bc03446ccc3a9d07e0e8', name: "secondary" }), h("div", { key: '57e4628c1fa89df79dd80456259db961bb691404', class: "toolbar-content", part: "content" }, h("slot", { key: '82c2f6e1acf8d96db259bd8baf295881801edbd5' })), h("slot", { key: 'b2d4afb15214199f206c0a5e08b581e4c9c2f58a', name: "primary" }), h("slot", { key: 'bfb909a0c472f8834046c2ea23bef2f562167ad3', name: "end" }))));
|
|
67
67
|
}
|
|
68
68
|
get el() { return this; }
|
|
69
69
|
static get style() { return {
|
|
@@ -1239,7 +1239,7 @@ const RouterOutlet = class {
|
|
|
1239
1239
|
return true;
|
|
1240
1240
|
}
|
|
1241
1241
|
render() {
|
|
1242
|
-
return index.h("slot", { key: '
|
|
1242
|
+
return index.h("slot", { key: '386c41745b61daba161cf75063da97fe29ba36cb' });
|
|
1243
1243
|
}
|
|
1244
1244
|
get el() { return index.getElement(this); }
|
|
1245
1245
|
static get watchers() { return {
|
|
@@ -1275,11 +1275,11 @@ const ToolbarTitle = class {
|
|
|
1275
1275
|
render() {
|
|
1276
1276
|
const mode = ionicGlobal.getIonMode(this);
|
|
1277
1277
|
const size = this.getSize();
|
|
1278
|
-
return (index.h(index.Host, { key: '
|
|
1278
|
+
return (index.h(index.Host, { key: '44e63f8439df64c470692904427b417e19406476', class: theme.createColorClasses(this.color, {
|
|
1279
1279
|
[mode]: true,
|
|
1280
1280
|
[`title-${size}`]: true,
|
|
1281
1281
|
'title-rtl': document.dir === 'rtl',
|
|
1282
|
-
}) }, index.h("div", { key: '
|
|
1282
|
+
}) }, index.h("div", { key: '784cf60a0db16045391891cc8fad0c7dbeba4039', class: "toolbar-title" }, index.h("slot", { key: '0c720a50479ba257e8756337aeb9b0ab7516a227' }))));
|
|
1283
1283
|
}
|
|
1284
1284
|
get el() { return index.getElement(this); }
|
|
1285
1285
|
static get watchers() { return {
|
|
@@ -1344,10 +1344,10 @@ const Toolbar = class {
|
|
|
1344
1344
|
this.childrenStyles.forEach((value) => {
|
|
1345
1345
|
Object.assign(childStyles, value);
|
|
1346
1346
|
});
|
|
1347
|
-
return (index.h(index.Host, { key: '
|
|
1347
|
+
return (index.h(index.Host, { key: 'b849db2863778dee6c5a251bffa1b3a657aeb036', class: Object.assign(Object.assign({}, childStyles), theme.createColorClasses(this.color, {
|
|
1348
1348
|
[mode]: true,
|
|
1349
1349
|
'in-toolbar': theme.hostContext('ion-toolbar', this.el),
|
|
1350
|
-
})) }, index.h("div", { key: '
|
|
1350
|
+
})) }, index.h("div", { key: '67f5bba9c4f527c3f35bfe1313a2b85741f9b246', class: "toolbar-background", part: "background" }), index.h("div", { key: '085e8c68f056e5b0deb9d1606431fbeb45dae8e5', class: "toolbar-container", part: "container" }, index.h("slot", { key: '15227c79c3baf883fd8c43fdb7e1313453933c79', name: "start" }), index.h("slot", { key: '0b8a7f7e685aa31c80d9bc03446ccc3a9d07e0e8', name: "secondary" }), index.h("div", { key: '57e4628c1fa89df79dd80456259db961bb691404', class: "toolbar-content", part: "content" }, index.h("slot", { key: '82c2f6e1acf8d96db259bd8baf295881801edbd5' })), index.h("slot", { key: 'b2d4afb15214199f206c0a5e08b581e4c9c2f58a', name: "primary" }), index.h("slot", { key: 'bfb909a0c472f8834046c2ea23bef2f562167ad3', name: "end" }))));
|
|
1351
1351
|
}
|
|
1352
1352
|
get el() { return index.getElement(this); }
|
|
1353
1353
|
};
|
|
@@ -51,7 +51,7 @@ const Thumbnail = class {
|
|
|
51
51
|
index.registerInstance(this, hostRef);
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (index.h(index.Host, { key: '
|
|
54
|
+
return (index.h(index.Host, { key: 'b250e01664238f1dca8f9757b15bc3d5d9387ffa', class: ionicGlobal.getIonMode(this) }, index.h("slot", { key: '72cb568bccabc983c5186a7596ef6c6d4ebf5ad9' })));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
Thumbnail.style = thumbnailCss;
|
|
@@ -164,7 +164,7 @@ const Checkbox = class {
|
|
|
164
164
|
}), onClick: this.onClick }, index.h("label", { key: 'f025cec5ff08e8be4487b9cc0324616ca5dfae2a', class: "checkbox-wrapper", htmlFor: inputId }, index.h("input", Object.assign({ key: 'dc53f7e4e240dc2e18556e6350df2b5c3169f553', type: "checkbox", checked: checked ? true : undefined, disabled: disabled, id: inputId, onChange: this.toggleChecked, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl), required: required }, inheritedAttributes)), index.h("div", { key: 'a625e9b50c3b617de8bbbfd624d772454fecaf2d', class: {
|
|
165
165
|
'label-text-wrapper': true,
|
|
166
166
|
'label-text-wrapper-hidden': !hasLabelContent,
|
|
167
|
-
}, part: "label", id: this.inputLabelId, onClick: this.onDivLabelClick }, index.h("slot", { key: '87d1a90691327945f4343406706e4ab27f453844' }), this.renderHintText()), index.h("div", { key: 'b57fed8cdecee4df1ef0d57f157267ee77fac653', class: "native-wrapper" }, index.h("svg", { key: '
|
|
167
|
+
}, part: "label", id: this.inputLabelId, onClick: this.onDivLabelClick }, index.h("slot", { key: '87d1a90691327945f4343406706e4ab27f453844' }), this.renderHintText()), index.h("div", { key: 'b57fed8cdecee4df1ef0d57f157267ee77fac653', class: "native-wrapper" }, index.h("svg", { key: '13a8aac044d46dc99e3b60a1a643785511f216ac', class: "checkbox-icon", viewBox: "0 0 24 24", part: "container", "aria-hidden": "true" }, path)))));
|
|
168
168
|
}
|
|
169
169
|
getSVGPath(mode, indeterminate) {
|
|
170
170
|
let path = indeterminate ? (index.h("path", { d: "M6 12L18 12", part: "mark" })) : (index.h("path", { d: "M5.9,12.5l3.8,3.8l8.8-8.8", part: "mark" }));
|