@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
|
@@ -91,7 +91,6 @@ export class Select {
|
|
|
91
91
|
this.expandedIcon = undefined;
|
|
92
92
|
this.shape = undefined;
|
|
93
93
|
this.value = undefined;
|
|
94
|
-
this.required = false;
|
|
95
94
|
}
|
|
96
95
|
styleChanged() {
|
|
97
96
|
this.emitStyle();
|
|
@@ -629,8 +628,8 @@ export class Select {
|
|
|
629
628
|
return renderedLabel;
|
|
630
629
|
}
|
|
631
630
|
renderListbox() {
|
|
632
|
-
const { disabled, inputId, isExpanded
|
|
633
|
-
return (h("button", { disabled: disabled, id: inputId, "aria-label": this.ariaLabel, "aria-haspopup": "dialog", "aria-expanded": `${isExpanded}`,
|
|
631
|
+
const { disabled, inputId, isExpanded } = this;
|
|
632
|
+
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) }));
|
|
634
633
|
}
|
|
635
634
|
render() {
|
|
636
635
|
const { disabled, el, isExpanded, expandedIcon, labelPlacement, justify, placeholder, fill, shape, name, value } = this;
|
|
@@ -661,7 +660,7 @@ export class Select {
|
|
|
661
660
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
662
661
|
*/
|
|
663
662
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
664
|
-
return (h(Host, { key: '
|
|
663
|
+
return (h(Host, { key: '144dfa5c49549a74fe516c65b9b8104a477ac789', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
665
664
|
[mode]: true,
|
|
666
665
|
'in-item': inItem,
|
|
667
666
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -677,7 +676,7 @@ export class Select {
|
|
|
677
676
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
678
677
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
679
678
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
680
|
-
}) }, h("label", { key: '
|
|
679
|
+
}) }, 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" }))));
|
|
681
680
|
}
|
|
682
681
|
static get is() { return "ion-select"; }
|
|
683
682
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1043,24 +1042,6 @@ export class Select {
|
|
|
1043
1042
|
},
|
|
1044
1043
|
"attribute": "value",
|
|
1045
1044
|
"reflect": false
|
|
1046
|
-
},
|
|
1047
|
-
"required": {
|
|
1048
|
-
"type": "boolean",
|
|
1049
|
-
"mutable": false,
|
|
1050
|
-
"complexType": {
|
|
1051
|
-
"original": "boolean",
|
|
1052
|
-
"resolved": "boolean",
|
|
1053
|
-
"references": {}
|
|
1054
|
-
},
|
|
1055
|
-
"required": false,
|
|
1056
|
-
"optional": false,
|
|
1057
|
-
"docs": {
|
|
1058
|
-
"tags": [],
|
|
1059
|
-
"text": "If true, screen readers will announce it as a required field. This property\nworks only for accessibility purposes, it will not prevent the form from\nsubmitting if the value is invalid."
|
|
1060
|
-
},
|
|
1061
|
-
"attribute": "required",
|
|
1062
|
-
"reflect": false,
|
|
1063
|
-
"defaultValue": "false"
|
|
1064
1045
|
}
|
|
1065
1046
|
};
|
|
1066
1047
|
}
|
|
@@ -48,10 +48,10 @@ export class Tab {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
const { tab, active, component } = this;
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: 'cb75d0877979b3b8df8f7e1952bfa9677da1eaa5', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
52
52
|
'ion-page': component === undefined,
|
|
53
53
|
'tab-hidden': !active,
|
|
54
|
-
} }, h("slot", { key: '
|
|
54
|
+
} }, h("slot", { key: '37fbb7b7a6b03eb93b1dacd2dc1025b78eb2aa6b' })));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "ion-tab"; }
|
|
57
57
|
static get encapsulation() { return "shadow"; }
|
|
@@ -82,7 +82,7 @@ export class TabButton {
|
|
|
82
82
|
'ion-activatable': true,
|
|
83
83
|
'ion-selectable': true,
|
|
84
84
|
'ion-focusable': true,
|
|
85
|
-
} }, h("a", Object.assign({ key: '
|
|
85
|
+
} }, 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" }))));
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "ion-tab-button"; }
|
|
88
88
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,6 @@ export class Tabs {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
this.transitioning = false;
|
|
13
13
|
this.onTabClicked = (ev) => {
|
|
14
|
-
console.log("onTabClicked");
|
|
15
14
|
const { href, tab } = ev.detail;
|
|
16
15
|
if (this.useRouter && href !== undefined) {
|
|
17
16
|
const router = document.querySelector('ion-router');
|
|
@@ -146,7 +145,7 @@ export class Tabs {
|
|
|
146
145
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
147
146
|
}
|
|
148
147
|
render() {
|
|
149
|
-
return (h(Host, { key: '
|
|
148
|
+
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" })));
|
|
150
149
|
}
|
|
151
150
|
static get is() { return "ion-tabs"; }
|
|
152
151
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,7 +71,6 @@ export class Toggle {
|
|
|
71
71
|
this.labelPlacement = 'start';
|
|
72
72
|
this.justify = undefined;
|
|
73
73
|
this.alignment = undefined;
|
|
74
|
-
this.required = false;
|
|
75
74
|
}
|
|
76
75
|
disabledChanged() {
|
|
77
76
|
if (this.gesture) {
|
|
@@ -153,12 +152,12 @@ export class Toggle {
|
|
|
153
152
|
return this.el.textContent !== '';
|
|
154
153
|
}
|
|
155
154
|
render() {
|
|
156
|
-
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment
|
|
155
|
+
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment } = this;
|
|
157
156
|
const mode = getIonMode(this);
|
|
158
157
|
const value = this.getValue();
|
|
159
158
|
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
|
160
159
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
161
|
-
return (h(Host, { key: '
|
|
160
|
+
return (h(Host, { key: 'f52195ec3bc14c024647cb41319c32a4cd330e19', onClick: this.onClick, class: createColorClasses(color, {
|
|
162
161
|
[mode]: true,
|
|
163
162
|
'in-item': hostContext('ion-item', el),
|
|
164
163
|
'toggle-activated': activated,
|
|
@@ -168,10 +167,10 @@ export class Toggle {
|
|
|
168
167
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
169
168
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
170
169
|
[`toggle-${rtl}`]: true,
|
|
171
|
-
}) }, h("label", { key: '
|
|
170
|
+
}) }, 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: {
|
|
172
171
|
'label-text-wrapper': true,
|
|
173
172
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
174
|
-
}, part: "label" }, h("slot", { key: '
|
|
173
|
+
}, part: "label" }, h("slot", { key: '80a6672e2e792c15011a9496dcd75363cdba31c6' })), h("div", { key: '2b2b318b38ab27b194c0dab4cecd77d9d780f2ca', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
175
174
|
}
|
|
176
175
|
static get is() { return "ion-toggle"; }
|
|
177
176
|
static get encapsulation() { return "shadow"; }
|
|
@@ -353,24 +352,6 @@ export class Toggle {
|
|
|
353
352
|
},
|
|
354
353
|
"attribute": "alignment",
|
|
355
354
|
"reflect": false
|
|
356
|
-
},
|
|
357
|
-
"required": {
|
|
358
|
-
"type": "boolean",
|
|
359
|
-
"mutable": false,
|
|
360
|
-
"complexType": {
|
|
361
|
-
"original": "boolean",
|
|
362
|
-
"resolved": "boolean",
|
|
363
|
-
"references": {}
|
|
364
|
-
},
|
|
365
|
-
"required": false,
|
|
366
|
-
"optional": false,
|
|
367
|
-
"docs": {
|
|
368
|
-
"tags": [],
|
|
369
|
-
"text": "If true, screen readers will announce it as a required field. This property\nworks only for accessibility purposes, it will not prevent the form from\nsubmitting if the value is invalid."
|
|
370
|
-
},
|
|
371
|
-
"attribute": "required",
|
|
372
|
-
"reflect": false,
|
|
373
|
-
"defaultValue": "false"
|
|
374
355
|
}
|
|
375
356
|
};
|
|
376
357
|
}
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-02-
|
|
2
|
+
"timestamp": "2025-02-18T19:20:37",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.20.0",
|
|
@@ -6018,28 +6018,6 @@
|
|
|
6018
6018
|
"optional": false,
|
|
6019
6019
|
"required": false
|
|
6020
6020
|
},
|
|
6021
|
-
{
|
|
6022
|
-
"name": "required",
|
|
6023
|
-
"type": "boolean",
|
|
6024
|
-
"complexType": {
|
|
6025
|
-
"original": "boolean",
|
|
6026
|
-
"resolved": "boolean",
|
|
6027
|
-
"references": {}
|
|
6028
|
-
},
|
|
6029
|
-
"mutable": false,
|
|
6030
|
-
"attr": "required",
|
|
6031
|
-
"reflectToAttr": false,
|
|
6032
|
-
"docs": "If true, screen readers will announce it as a required field. This property\nworks only for accessibility purposes, it will not prevent the form from\nsubmitting if the value is invalid.",
|
|
6033
|
-
"docsTags": [],
|
|
6034
|
-
"default": "false",
|
|
6035
|
-
"values": [
|
|
6036
|
-
{
|
|
6037
|
-
"type": "boolean"
|
|
6038
|
-
}
|
|
6039
|
-
],
|
|
6040
|
-
"optional": false,
|
|
6041
|
-
"required": false
|
|
6042
|
-
},
|
|
6043
6021
|
{
|
|
6044
6022
|
"name": "value",
|
|
6045
6023
|
"type": "any",
|
|
@@ -17046,28 +17024,6 @@
|
|
|
17046
17024
|
"optional": true,
|
|
17047
17025
|
"required": false
|
|
17048
17026
|
},
|
|
17049
|
-
{
|
|
17050
|
-
"name": "expandToScroll",
|
|
17051
|
-
"type": "boolean",
|
|
17052
|
-
"complexType": {
|
|
17053
|
-
"original": "boolean",
|
|
17054
|
-
"resolved": "boolean",
|
|
17055
|
-
"references": {}
|
|
17056
|
-
},
|
|
17057
|
-
"mutable": false,
|
|
17058
|
-
"attr": "expand-to-scroll",
|
|
17059
|
-
"reflectToAttr": false,
|
|
17060
|
-
"docs": "Controls whether scrolling or dragging within the sheet modal expands\nit to a larger breakpoint. This only takes effect when `breakpoints`\nand `initialBreakpoint` are set.\n\nIf `true`, scrolling or dragging anywhere in the modal will first expand\nit to the next breakpoint. Once fully expanded, scrolling will affect the content.\nIf `false`, scrolling will always affect the content, and the modal will only expand\nwhen dragging the header or handle.",
|
|
17061
|
-
"docsTags": [],
|
|
17062
|
-
"default": "true",
|
|
17063
|
-
"values": [
|
|
17064
|
-
{
|
|
17065
|
-
"type": "boolean"
|
|
17066
|
-
}
|
|
17067
|
-
],
|
|
17068
|
-
"optional": false,
|
|
17069
|
-
"required": false
|
|
17070
|
-
},
|
|
17071
17027
|
{
|
|
17072
17028
|
"name": "focusTrap",
|
|
17073
17029
|
"type": "boolean",
|
|
@@ -22148,6 +22104,18 @@
|
|
|
22148
22104
|
{
|
|
22149
22105
|
"name": "part",
|
|
22150
22106
|
"text": "mark - The checkmark or dot used to indicate the checked state."
|
|
22107
|
+
},
|
|
22108
|
+
{
|
|
22109
|
+
"name": "part",
|
|
22110
|
+
"text": "supporting-text - Supporting text displayed beneath the radio label."
|
|
22111
|
+
},
|
|
22112
|
+
{
|
|
22113
|
+
"name": "part",
|
|
22114
|
+
"text": "helper-text - Supporting text displayed beneath the radio label when the radio is valid."
|
|
22115
|
+
},
|
|
22116
|
+
{
|
|
22117
|
+
"name": "part",
|
|
22118
|
+
"text": "error-text - Supporting text displayed beneath the radio label when the radio is invalid and touched."
|
|
22151
22119
|
}
|
|
22152
22120
|
],
|
|
22153
22121
|
"usage": {},
|
|
@@ -22269,6 +22237,54 @@
|
|
|
22269
22237
|
"optional": false,
|
|
22270
22238
|
"required": false
|
|
22271
22239
|
},
|
|
22240
|
+
{
|
|
22241
|
+
"name": "errorText",
|
|
22242
|
+
"type": "string | undefined",
|
|
22243
|
+
"complexType": {
|
|
22244
|
+
"original": "string",
|
|
22245
|
+
"resolved": "string | undefined",
|
|
22246
|
+
"references": {}
|
|
22247
|
+
},
|
|
22248
|
+
"mutable": false,
|
|
22249
|
+
"attr": "error-text",
|
|
22250
|
+
"reflectToAttr": false,
|
|
22251
|
+
"docs": "Text that is placed under the radio label and displayed when an error is detected.",
|
|
22252
|
+
"docsTags": [],
|
|
22253
|
+
"values": [
|
|
22254
|
+
{
|
|
22255
|
+
"type": "string"
|
|
22256
|
+
},
|
|
22257
|
+
{
|
|
22258
|
+
"type": "undefined"
|
|
22259
|
+
}
|
|
22260
|
+
],
|
|
22261
|
+
"optional": true,
|
|
22262
|
+
"required": false
|
|
22263
|
+
},
|
|
22264
|
+
{
|
|
22265
|
+
"name": "helperText",
|
|
22266
|
+
"type": "string | undefined",
|
|
22267
|
+
"complexType": {
|
|
22268
|
+
"original": "string",
|
|
22269
|
+
"resolved": "string | undefined",
|
|
22270
|
+
"references": {}
|
|
22271
|
+
},
|
|
22272
|
+
"mutable": false,
|
|
22273
|
+
"attr": "helper-text",
|
|
22274
|
+
"reflectToAttr": false,
|
|
22275
|
+
"docs": "Text that is placed under the radio label and displayed when no error is detected.",
|
|
22276
|
+
"docsTags": [],
|
|
22277
|
+
"values": [
|
|
22278
|
+
{
|
|
22279
|
+
"type": "string"
|
|
22280
|
+
},
|
|
22281
|
+
{
|
|
22282
|
+
"type": "undefined"
|
|
22283
|
+
}
|
|
22284
|
+
],
|
|
22285
|
+
"optional": true,
|
|
22286
|
+
"required": false
|
|
22287
|
+
},
|
|
22272
22288
|
{
|
|
22273
22289
|
"name": "justify",
|
|
22274
22290
|
"type": "\"end\" | \"space-between\" | \"start\" | undefined",
|
|
@@ -22495,6 +22511,14 @@
|
|
|
22495
22511
|
"name": "container",
|
|
22496
22512
|
"docs": "The container for the radio mark."
|
|
22497
22513
|
},
|
|
22514
|
+
{
|
|
22515
|
+
"name": "error-text",
|
|
22516
|
+
"docs": "Supporting text displayed beneath the radio label when the radio is invalid and touched."
|
|
22517
|
+
},
|
|
22518
|
+
{
|
|
22519
|
+
"name": "helper-text",
|
|
22520
|
+
"docs": "Supporting text displayed beneath the radio label when the radio is valid."
|
|
22521
|
+
},
|
|
22498
22522
|
{
|
|
22499
22523
|
"name": "label",
|
|
22500
22524
|
"docs": "The label text describing the radio."
|
|
@@ -22502,6 +22526,10 @@
|
|
|
22502
22526
|
{
|
|
22503
22527
|
"name": "mark",
|
|
22504
22528
|
"docs": "The checkmark or dot used to indicate the checked state."
|
|
22529
|
+
},
|
|
22530
|
+
{
|
|
22531
|
+
"name": "supporting-text",
|
|
22532
|
+
"docs": "Supporting text displayed beneath the radio label."
|
|
22505
22533
|
}
|
|
22506
22534
|
],
|
|
22507
22535
|
"dependents": [
|
|
@@ -27742,28 +27770,6 @@
|
|
|
27742
27770
|
"optional": true,
|
|
27743
27771
|
"required": false
|
|
27744
27772
|
},
|
|
27745
|
-
{
|
|
27746
|
-
"name": "required",
|
|
27747
|
-
"type": "boolean",
|
|
27748
|
-
"complexType": {
|
|
27749
|
-
"original": "boolean",
|
|
27750
|
-
"resolved": "boolean",
|
|
27751
|
-
"references": {}
|
|
27752
|
-
},
|
|
27753
|
-
"mutable": false,
|
|
27754
|
-
"attr": "required",
|
|
27755
|
-
"reflectToAttr": false,
|
|
27756
|
-
"docs": "If true, screen readers will announce it as a required field. This property\nworks only for accessibility purposes, it will not prevent the form from\nsubmitting if the value is invalid.",
|
|
27757
|
-
"docsTags": [],
|
|
27758
|
-
"default": "false",
|
|
27759
|
-
"values": [
|
|
27760
|
-
{
|
|
27761
|
-
"type": "boolean"
|
|
27762
|
-
}
|
|
27763
|
-
],
|
|
27764
|
-
"optional": false,
|
|
27765
|
-
"required": false
|
|
27766
|
-
},
|
|
27767
27773
|
{
|
|
27768
27774
|
"name": "selectedText",
|
|
27769
27775
|
"type": "null | string | undefined",
|
|
@@ -32725,28 +32731,6 @@
|
|
|
32725
32731
|
"optional": false,
|
|
32726
32732
|
"required": false
|
|
32727
32733
|
},
|
|
32728
|
-
{
|
|
32729
|
-
"name": "required",
|
|
32730
|
-
"type": "boolean",
|
|
32731
|
-
"complexType": {
|
|
32732
|
-
"original": "boolean",
|
|
32733
|
-
"resolved": "boolean",
|
|
32734
|
-
"references": {}
|
|
32735
|
-
},
|
|
32736
|
-
"mutable": false,
|
|
32737
|
-
"attr": "required",
|
|
32738
|
-
"reflectToAttr": false,
|
|
32739
|
-
"docs": "If true, screen readers will announce it as a required field. This property\nworks only for accessibility purposes, it will not prevent the form from\nsubmitting if the value is invalid.",
|
|
32740
|
-
"docsTags": [],
|
|
32741
|
-
"default": "false",
|
|
32742
|
-
"values": [
|
|
32743
|
-
{
|
|
32744
|
-
"type": "boolean"
|
|
32745
|
-
}
|
|
32746
|
-
],
|
|
32747
|
-
"optional": false,
|
|
32748
|
-
"required": false
|
|
32749
|
-
},
|
|
32750
32734
|
{
|
|
32751
32735
|
"name": "value",
|
|
32752
32736
|
"type": "null | string | undefined",
|
|
@@ -475,20 +475,20 @@ const Content = class {
|
|
|
475
475
|
const forceOverscroll = this.shouldForceOverscroll();
|
|
476
476
|
const transitionShadow = mode === 'ios';
|
|
477
477
|
this.resize();
|
|
478
|
-
return (h(Host, Object.assign({ key: '
|
|
478
|
+
return (h(Host, Object.assign({ key: 'f2a24aa66dbf5c76f9d4b06f708eb73cadc239df', role: isMainContent ? 'main' : undefined, class: createColorClasses(this.color, {
|
|
479
479
|
[mode]: true,
|
|
480
480
|
'content-sizing': hostContext('ion-popover', this.el),
|
|
481
481
|
overscroll: forceOverscroll,
|
|
482
482
|
[`content-${rtl}`]: true,
|
|
483
|
-
}),
|
|
483
|
+
}), style: {
|
|
484
484
|
'--offset-top': `${this.cTop}px`,
|
|
485
485
|
'--offset-bottom': `${this.cBottom}px`,
|
|
486
|
-
} }, inheritedAttributes), h("div", { key: '
|
|
486
|
+
} }, 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: {
|
|
487
487
|
'inner-scroll': true,
|
|
488
488
|
'scroll-x': scrollX,
|
|
489
489
|
'scroll-y': scrollY,
|
|
490
490
|
overscroll: (scrollX || scrollY) && forceOverscroll,
|
|
491
|
-
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: '
|
|
491
|
+
}, 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));
|
|
492
492
|
}
|
|
493
493
|
get el() { return getElement(this); }
|
|
494
494
|
};
|
|
@@ -60,7 +60,6 @@ const Checkbox = class {
|
|
|
60
60
|
this.labelPlacement = 'start';
|
|
61
61
|
this.justify = undefined;
|
|
62
62
|
this.alignment = undefined;
|
|
63
|
-
this.required = false;
|
|
64
63
|
}
|
|
65
64
|
componentWillLoad() {
|
|
66
65
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
@@ -72,11 +71,11 @@ const Checkbox = class {
|
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
render() {
|
|
75
|
-
const { color, checked, disabled, el, getSVGPath, indeterminate, inheritedAttributes, inputId, justify, labelPlacement, name, value, alignment,
|
|
74
|
+
const { color, checked, disabled, el, getSVGPath, indeterminate, inheritedAttributes, inputId, justify, labelPlacement, name, value, alignment, } = this;
|
|
76
75
|
const mode = getIonMode(this);
|
|
77
76
|
const path = getSVGPath(mode, indeterminate);
|
|
78
77
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
79
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: '6dc787e1100521d08c4900104e1a3e2f594e919f', "aria-checked": indeterminate ? 'mixed' : `${checked}`, class: createColorClasses(color, {
|
|
80
79
|
[mode]: true,
|
|
81
80
|
'in-item': hostContext('ion-item', el),
|
|
82
81
|
'checkbox-checked': checked,
|
|
@@ -86,10 +85,10 @@ const Checkbox = class {
|
|
|
86
85
|
[`checkbox-justify-${justify}`]: justify !== undefined,
|
|
87
86
|
[`checkbox-alignment-${alignment}`]: alignment !== undefined,
|
|
88
87
|
[`checkbox-label-placement-${labelPlacement}`]: true,
|
|
89
|
-
}), onClick: this.onClick }, h("label", { key: '
|
|
88
|
+
}), 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: {
|
|
90
89
|
'label-text-wrapper': true,
|
|
91
90
|
'label-text-wrapper-hidden': el.textContent === '',
|
|
92
|
-
}, part: "label" }, h("slot", { key: '
|
|
91
|
+
}, 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)))));
|
|
93
92
|
}
|
|
94
93
|
getSVGPath(mode, indeterminate) {
|
|
95
94
|
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" }));
|