@ionic/core 8.0.1 → 8.0.2-dev.11714165638.13e7dd5b
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 +3 -3
- package/components/ion-accordion-group.js +2 -2
- package/components/ion-datetime.js +2 -2
- package/components/ion-input.js +3 -3
- package/components/ion-range.js +3 -3
- package/components/ion-searchbar.js +4 -4
- package/components/ion-segment.js +2 -2
- package/components/ion-select.js +2 -2
- package/components/ion-textarea.js +2 -2
- package/components/ion-toggle.js +3 -3
- package/components/label.js +1 -1
- package/components/picker-column.js +3 -3
- package/components/radio-group.js +1 -1
- package/components/select-popover.js +1 -1
- package/css/core.css.map +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/palettes/high-contrast-dark.always.css.map +1 -1
- package/css/palettes/high-contrast-dark.class.css.map +1 -1
- package/css/palettes/high-contrast-dark.system.css.map +1 -1
- package/css/palettes/high-contrast.always.css.map +1 -1
- package/css/palettes/high-contrast.class.css.map +1 -1
- package/css/palettes/high-contrast.system.css.map +1 -1
- package/css/typography.css.map +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/ion-datetime_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-input.cjs.entry.js +3 -3
- package/dist/cjs/ion-item_8.cjs.entry.js +1 -1
- package/dist/cjs/ion-picker-column.cjs.entry.js +3 -3
- package/dist/cjs/ion-radio_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-range.cjs.entry.js +3 -3
- package/dist/cjs/ion-searchbar.cjs.entry.js +4 -4
- package/dist/cjs/ion-segment_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-select_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/collection/components/accordion-group/accordion-group.js +3 -3
- package/dist/collection/components/checkbox/checkbox.js +4 -4
- package/dist/collection/components/datetime/datetime.js +3 -3
- package/dist/collection/components/input/input.js +4 -4
- package/dist/collection/components/item/test/a11y/item.e2e.js +1 -4
- package/dist/collection/components/label/label.ios.css +1 -1
- package/dist/collection/components/picker-column/picker-column.js +4 -4
- package/dist/collection/components/radio-group/radio-group.js +2 -2
- package/dist/collection/components/range/range.js +4 -4
- package/dist/collection/components/searchbar/searchbar.js +5 -5
- package/dist/collection/components/segment/segment.js +3 -3
- package/dist/collection/components/select/select.js +3 -3
- package/dist/collection/components/select/test/fill/select.e2e.js +25 -0
- package/dist/collection/components/select-popover/select-popover.md.css +8 -1
- package/dist/collection/components/textarea/textarea.js +3 -3
- package/dist/collection/components/toggle/toggle.js +4 -4
- package/dist/docs.json +13 -13
- package/dist/esm/ion-accordion_2.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +3 -3
- package/dist/esm/ion-datetime_3.entry.js +2 -2
- package/dist/esm/ion-input.entry.js +3 -3
- package/dist/esm/ion-item_8.entry.js +1 -1
- package/dist/esm/ion-picker-column.entry.js +3 -3
- package/dist/esm/ion-radio_2.entry.js +1 -1
- package/dist/esm/ion-range.entry.js +3 -3
- package/dist/esm/ion-searchbar.entry.js +4 -4
- package/dist/esm/ion-segment_2.entry.js +2 -2
- package/dist/esm/ion-select_3.entry.js +3 -3
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +3 -3
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-cdee3a44.system.entry.js → p-031b070b.system.entry.js} +1 -1
- package/dist/ionic/{p-4324e8a4.entry.js → p-0b3861eb.entry.js} +1 -1
- package/dist/ionic/{p-583f8865.system.entry.js → p-34619a37.system.entry.js} +1 -1
- package/dist/ionic/{p-720927ad.entry.js → p-3ef93daf.entry.js} +1 -1
- package/dist/ionic/{p-a801da4b.system.entry.js → p-45aec799.system.entry.js} +1 -1
- package/dist/ionic/p-4737e73a.entry.js +4 -0
- package/dist/ionic/{p-0d960144.system.entry.js → p-4da143c9.system.entry.js} +1 -1
- package/dist/ionic/{p-4c153abb.entry.js → p-515a47f5.entry.js} +1 -1
- package/dist/ionic/{p-0d56dea9.entry.js → p-5a6d3cd9.entry.js} +1 -1
- package/dist/ionic/{p-e49099b0.entry.js → p-6123d531.entry.js} +1 -1
- package/dist/ionic/{p-ee3bbaf2.entry.js → p-69fca47b.entry.js} +1 -1
- package/dist/ionic/p-7536b4b3.system.js +1 -1
- package/dist/ionic/{p-8e031d97.entry.js → p-75f262d3.entry.js} +1 -1
- package/dist/ionic/{p-576786c0.system.entry.js → p-a0fa6344.system.entry.js} +1 -1
- package/dist/ionic/{p-42f00e72.system.entry.js → p-a5721afd.system.entry.js} +1 -1
- package/dist/ionic/{p-80f85095.system.entry.js → p-b17549e8.system.entry.js} +1 -1
- package/dist/ionic/{p-5d4d89e0.system.entry.js → p-b1f78948.system.entry.js} +1 -1
- package/dist/ionic/{p-70181008.entry.js → p-b4d78e71.entry.js} +1 -1
- package/dist/ionic/{p-5d3a8503.system.entry.js → p-ba9ca25a.system.entry.js} +1 -1
- package/dist/ionic/{p-3f5b86b4.entry.js → p-c687e632.entry.js} +1 -1
- package/dist/ionic/{p-49cdc4f2.entry.js → p-c977c5bc.entry.js} +1 -1
- package/dist/ionic/{p-f5c42f72.entry.js → p-d3ceed28.entry.js} +1 -1
- package/dist/ionic/{p-819e8479.system.entry.js → p-d5460f2d.system.entry.js} +1 -1
- package/dist/ionic/{p-fc94e18f.entry.js → p-d77dc6ea.entry.js} +1 -1
- package/dist/ionic/{p-1a5227b3.system.entry.js → p-ee54bbd2.system.entry.js} +1 -1
- package/dist/ionic/{p-567a21a2.system.entry.js → p-f4bc5429.system.entry.js} +1 -1
- package/dist/ionic/{p-94731a92.system.entry.js → p-fc6301cd.system.entry.js} +1 -1
- package/dist/types/components/accordion-group/accordion-group.d.ts +3 -4
- package/dist/types/components/checkbox/checkbox.d.ts +3 -4
- package/dist/types/components/datetime/datetime.d.ts +2 -0
- package/dist/types/components/input/input.d.ts +2 -0
- package/dist/types/components/picker-column/picker-column.d.ts +2 -0
- package/dist/types/components/radio-group/radio-group.d.ts +2 -0
- package/dist/types/components/range/range.d.ts +1 -1
- package/dist/types/components/searchbar/searchbar.d.ts +2 -0
- package/dist/types/components/segment/segment.d.ts +3 -2
- package/dist/types/components/select/select.d.ts +2 -0
- package/dist/types/components/textarea/textarea.d.ts +2 -0
- package/dist/types/components/toggle/toggle.d.ts +3 -2
- package/dist/types/components.d.ts +12 -12
- package/hydrate/index.js +32 -32
- package/package.json +1 -1
- package/dist/ionic/p-057b5866.entry.js +0 -4
|
@@ -127,7 +127,7 @@ export declare class Range implements ComponentInterface {
|
|
|
127
127
|
* - When the user releases the knob after dragging;
|
|
128
128
|
* - When the user moves the knob with keyboard arrows
|
|
129
129
|
*
|
|
130
|
-
*
|
|
130
|
+
* This event will not emit when programmatically setting the `value` property.
|
|
131
131
|
*/
|
|
132
132
|
ionChange: EventEmitter<RangeChangeEventDetail>;
|
|
133
133
|
/**
|
|
@@ -153,6 +153,8 @@ export declare class Searchbar implements ComponentInterface {
|
|
|
153
153
|
* by the user. This can happen when the element loses focus or
|
|
154
154
|
* when the "Enter" key is pressed. `ionChange` can also fire
|
|
155
155
|
* when clicking the clear or cancel buttons.
|
|
156
|
+
*
|
|
157
|
+
* This event will not emit when programmatically setting the `value` property.
|
|
156
158
|
*/
|
|
157
159
|
ionChange: EventEmitter<SearchbarChangeEventDetail>;
|
|
158
160
|
/**
|
|
@@ -43,8 +43,9 @@ export declare class Segment implements ComponentInterface {
|
|
|
43
43
|
*/
|
|
44
44
|
selectOnFocus: boolean;
|
|
45
45
|
/**
|
|
46
|
-
* Emitted when the value property has changed and any
|
|
47
|
-
*
|
|
46
|
+
* Emitted when the value property has changed and any dragging pointer has been released from `ion-segment`.
|
|
47
|
+
*
|
|
48
|
+
* This event will not emit when programmatically setting the `value` property.
|
|
48
49
|
*/
|
|
49
50
|
ionChange: EventEmitter<SegmentChangeEventDetail>;
|
|
50
51
|
/**
|
|
@@ -139,6 +139,8 @@ export declare class Select implements ComponentInterface {
|
|
|
139
139
|
value?: any | null;
|
|
140
140
|
/**
|
|
141
141
|
* Emitted when the value has changed.
|
|
142
|
+
*
|
|
143
|
+
* This event will not emit when programmatically setting the `value` property.
|
|
142
144
|
*/
|
|
143
145
|
ionChange: EventEmitter<SelectChangeEventDetail>;
|
|
144
146
|
/**
|
|
@@ -176,6 +176,8 @@ export declare class Textarea implements ComponentInterface {
|
|
|
176
176
|
* The `ionChange` event is fired when the user modifies the textarea's value.
|
|
177
177
|
* Unlike the `ionInput` event, the `ionChange` event is fired when
|
|
178
178
|
* the element loses focus after its value has been modified.
|
|
179
|
+
*
|
|
180
|
+
* This event will not emit when programmatically setting the `value` property.
|
|
179
181
|
*/
|
|
180
182
|
ionChange: EventEmitter<TextareaChangeEventDetail>;
|
|
181
183
|
/**
|
|
@@ -75,8 +75,9 @@ export declare class Toggle implements ComponentInterface {
|
|
|
75
75
|
*/
|
|
76
76
|
alignment: 'start' | 'center';
|
|
77
77
|
/**
|
|
78
|
-
* Emitted when the user switches the toggle on or off.
|
|
79
|
-
*
|
|
78
|
+
* Emitted when the user switches the toggle on or off.
|
|
79
|
+
*
|
|
80
|
+
* This event will not emit when programmatically setting the `checked` property.
|
|
80
81
|
*/
|
|
81
82
|
ionChange: EventEmitter<ToggleChangeEventDetail>;
|
|
82
83
|
/**
|
|
@@ -4770,7 +4770,7 @@ declare namespace LocalJSX {
|
|
|
4770
4770
|
*/
|
|
4771
4771
|
"multiple"?: boolean;
|
|
4772
4772
|
/**
|
|
4773
|
-
* Emitted when the value property has changed as a result of a user action such as a click.
|
|
4773
|
+
* Emitted when the value property has changed as a result of a user action such as a click. This event will not emit when programmatically setting the `value` property.
|
|
4774
4774
|
*/
|
|
4775
4775
|
"onIonChange"?: (event: IonAccordionGroupCustomEvent<AccordionGroupChangeEventDetail>) => void;
|
|
4776
4776
|
/**
|
|
@@ -5328,7 +5328,7 @@ declare namespace LocalJSX {
|
|
|
5328
5328
|
*/
|
|
5329
5329
|
"onIonBlur"?: (event: IonCheckboxCustomEvent<void>) => void;
|
|
5330
5330
|
/**
|
|
5331
|
-
* Emitted when the checked property has changed as a result of a user action such as a click.
|
|
5331
|
+
* Emitted when the checked property has changed as a result of a user action such as a click. This event will not emit when programmatically setting the `checked` property.
|
|
5332
5332
|
*/
|
|
5333
5333
|
"onIonChange"?: (event: IonCheckboxCustomEvent<CheckboxChangeEventDetail>) => void;
|
|
5334
5334
|
/**
|
|
@@ -5584,7 +5584,7 @@ declare namespace LocalJSX {
|
|
|
5584
5584
|
*/
|
|
5585
5585
|
"onIonCancel"?: (event: IonDatetimeCustomEvent<void>) => void;
|
|
5586
5586
|
/**
|
|
5587
|
-
* Emitted when the value (selected date) has changed.
|
|
5587
|
+
* Emitted when the value (selected date) has changed. This event will not emit when programmatically setting the `value` property.
|
|
5588
5588
|
*/
|
|
5589
5589
|
"onIonChange"?: (event: IonDatetimeCustomEvent<DatetimeChangeEventDetail>) => void;
|
|
5590
5590
|
/**
|
|
@@ -5942,7 +5942,7 @@ declare namespace LocalJSX {
|
|
|
5942
5942
|
*/
|
|
5943
5943
|
"onIonBlur"?: (event: IonInputCustomEvent<FocusEvent>) => void;
|
|
5944
5944
|
/**
|
|
5945
|
-
* The `ionChange` event is fired when the user modifies the input's value. Unlike the `ionInput` event, the `ionChange` event is only fired when changes are committed, not as the user types. Depending on the way the users interacts with the element, the `ionChange` event fires at a different moment: - When the user commits the change explicitly (e.g. by selecting a date from a date picker for `<ion-input type="date">`, pressing the "Enter" key, etc.). - When the element loses focus after its value has changed: for elements where the user's interaction is typing.
|
|
5945
|
+
* The `ionChange` event is fired when the user modifies the input's value. Unlike the `ionInput` event, the `ionChange` event is only fired when changes are committed, not as the user types. Depending on the way the users interacts with the element, the `ionChange` event fires at a different moment: - When the user commits the change explicitly (e.g. by selecting a date from a date picker for `<ion-input type="date">`, pressing the "Enter" key, etc.). - When the element loses focus after its value has changed: for elements where the user's interaction is typing. This event will not emit when programmatically setting the `value` property.
|
|
5946
5946
|
*/
|
|
5947
5947
|
"onIonChange"?: (event: IonInputCustomEvent<InputChangeEventDetail>) => void;
|
|
5948
5948
|
/**
|
|
@@ -6546,7 +6546,7 @@ declare namespace LocalJSX {
|
|
|
6546
6546
|
*/
|
|
6547
6547
|
"mode"?: "ios" | "md";
|
|
6548
6548
|
/**
|
|
6549
|
-
* Emitted when the value has changed.
|
|
6549
|
+
* Emitted when the value has changed. This event will not emit when programmatically setting the `value` property.
|
|
6550
6550
|
*/
|
|
6551
6551
|
"onIonChange"?: (event: IonPickerColumnCustomEvent<PickerColumnChangeEventDetail>) => void;
|
|
6552
6552
|
/**
|
|
@@ -6868,7 +6868,7 @@ declare namespace LocalJSX {
|
|
|
6868
6868
|
*/
|
|
6869
6869
|
"name"?: string;
|
|
6870
6870
|
/**
|
|
6871
|
-
* Emitted when the value has changed.
|
|
6871
|
+
* Emitted when the value has changed. This event will not emit when programmatically setting the `value` property.
|
|
6872
6872
|
*/
|
|
6873
6873
|
"onIonChange"?: (event: IonRadioGroupCustomEvent<RadioGroupChangeEventDetail>) => void;
|
|
6874
6874
|
/**
|
|
@@ -6926,7 +6926,7 @@ declare namespace LocalJSX {
|
|
|
6926
6926
|
*/
|
|
6927
6927
|
"onIonBlur"?: (event: IonRangeCustomEvent<void>) => void;
|
|
6928
6928
|
/**
|
|
6929
|
-
* The `ionChange` event is fired for `<ion-range>` elements when the user modifies the element's value: - When the user releases the knob after dragging; - When the user moves the knob with keyboard arrows
|
|
6929
|
+
* The `ionChange` event is fired for `<ion-range>` elements when the user modifies the element's value: - When the user releases the knob after dragging; - When the user moves the knob with keyboard arrows This event will not emit when programmatically setting the `value` property.
|
|
6930
6930
|
*/
|
|
6931
6931
|
"onIonChange"?: (event: IonRangeCustomEvent<RangeChangeEventDetail>) => void;
|
|
6932
6932
|
/**
|
|
@@ -7222,7 +7222,7 @@ declare namespace LocalJSX {
|
|
|
7222
7222
|
*/
|
|
7223
7223
|
"onIonCancel"?: (event: IonSearchbarCustomEvent<void>) => void;
|
|
7224
7224
|
/**
|
|
7225
|
-
* The `ionChange` event is fired for `<ion-searchbar>` elements when the user modifies the element's value. Unlike the `ionInput` event, the `ionChange` event is not necessarily fired for each alteration to an element's value. The `ionChange` event is fired when the value has been committed by the user. This can happen when the element loses focus or when the "Enter" key is pressed. `ionChange` can also fire when clicking the clear or cancel buttons.
|
|
7225
|
+
* The `ionChange` event is fired for `<ion-searchbar>` elements when the user modifies the element's value. Unlike the `ionInput` event, the `ionChange` event is not necessarily fired for each alteration to an element's value. The `ionChange` event is fired when the value has been committed by the user. This can happen when the element loses focus or when the "Enter" key is pressed. `ionChange` can also fire when clicking the clear or cancel buttons. This event will not emit when programmatically setting the `value` property.
|
|
7226
7226
|
*/
|
|
7227
7227
|
"onIonChange"?: (event: IonSearchbarCustomEvent<SearchbarChangeEventDetail>) => void;
|
|
7228
7228
|
/**
|
|
@@ -7280,7 +7280,7 @@ declare namespace LocalJSX {
|
|
|
7280
7280
|
*/
|
|
7281
7281
|
"mode"?: "ios" | "md";
|
|
7282
7282
|
/**
|
|
7283
|
-
* Emitted when the value property has changed and any dragging pointer has been released from `ion-segment`.
|
|
7283
|
+
* Emitted when the value property has changed and any dragging pointer has been released from `ion-segment`. This event will not emit when programmatically setting the `value` property.
|
|
7284
7284
|
*/
|
|
7285
7285
|
"onIonChange"?: (event: IonSegmentCustomEvent<SegmentChangeEventDetail>) => void;
|
|
7286
7286
|
/**
|
|
@@ -7392,7 +7392,7 @@ declare namespace LocalJSX {
|
|
|
7392
7392
|
*/
|
|
7393
7393
|
"onIonCancel"?: (event: IonSelectCustomEvent<void>) => void;
|
|
7394
7394
|
/**
|
|
7395
|
-
* Emitted when the value has changed.
|
|
7395
|
+
* Emitted when the value has changed. This event will not emit when programmatically setting the `value` property.
|
|
7396
7396
|
*/
|
|
7397
7397
|
"onIonChange"?: (event: IonSelectCustomEvent<SelectChangeEventDetail>) => void;
|
|
7398
7398
|
/**
|
|
@@ -7674,7 +7674,7 @@ declare namespace LocalJSX {
|
|
|
7674
7674
|
*/
|
|
7675
7675
|
"onIonBlur"?: (event: IonTextareaCustomEvent<FocusEvent>) => void;
|
|
7676
7676
|
/**
|
|
7677
|
-
* The `ionChange` event is fired when the user modifies the textarea's value. Unlike the `ionInput` event, the `ionChange` event is fired when the element loses focus after its value has been modified.
|
|
7677
|
+
* The `ionChange` event is fired when the user modifies the textarea's value. Unlike the `ionInput` event, the `ionChange` event is fired when the element loses focus after its value has been modified. This event will not emit when programmatically setting the `value` property.
|
|
7678
7678
|
*/
|
|
7679
7679
|
"onIonChange"?: (event: IonTextareaCustomEvent<TextareaChangeEventDetail>) => void;
|
|
7680
7680
|
/**
|
|
@@ -7886,7 +7886,7 @@ declare namespace LocalJSX {
|
|
|
7886
7886
|
*/
|
|
7887
7887
|
"onIonBlur"?: (event: IonToggleCustomEvent<void>) => void;
|
|
7888
7888
|
/**
|
|
7889
|
-
* Emitted when the user switches the toggle on or off.
|
|
7889
|
+
* Emitted when the user switches the toggle on or off. This event will not emit when programmatically setting the `checked` property.
|
|
7890
7890
|
*/
|
|
7891
7891
|
"onIonChange"?: (event: IonToggleCustomEvent<ToggleChangeEventDetail>) => void;
|
|
7892
7892
|
/**
|
package/hydrate/index.js
CHANGED
|
@@ -13305,12 +13305,12 @@ class AccordionGroup {
|
|
|
13305
13305
|
render() {
|
|
13306
13306
|
const { disabled, readonly, expand } = this;
|
|
13307
13307
|
const mode = getIonMode$1(this);
|
|
13308
|
-
return (hAsync(Host, { key: '
|
|
13308
|
+
return (hAsync(Host, { key: '82f3e77066fabb4736638ee4c487ad56efd39c63', class: {
|
|
13309
13309
|
[mode]: true,
|
|
13310
13310
|
'accordion-group-disabled': disabled,
|
|
13311
13311
|
'accordion-group-readonly': readonly,
|
|
13312
13312
|
[`accordion-group-expand-${expand}`]: true,
|
|
13313
|
-
}, role: "presentation" }, hAsync("slot", { key: '
|
|
13313
|
+
}, role: "presentation" }, hAsync("slot", { key: 'a3c791ea887fc640b512f81d429be465ae902b3d' })));
|
|
13314
13314
|
}
|
|
13315
13315
|
get el() { return getElement(this); }
|
|
13316
13316
|
static get watchers() { return {
|
|
@@ -18289,7 +18289,7 @@ class Checkbox {
|
|
|
18289
18289
|
const mode = getIonMode$1(this);
|
|
18290
18290
|
const path = getSVGPath(mode, indeterminate);
|
|
18291
18291
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
18292
|
-
return (hAsync(Host, { key: '
|
|
18292
|
+
return (hAsync(Host, { key: '0ac95890562c7f035704c40959c69f8c8ca4bc9f', "aria-checked": indeterminate ? 'mixed' : `${checked}`, class: createColorClasses$1(color, {
|
|
18293
18293
|
[mode]: true,
|
|
18294
18294
|
'in-item': hostContext('ion-item', el),
|
|
18295
18295
|
'checkbox-checked': checked,
|
|
@@ -18299,10 +18299,10 @@ class Checkbox {
|
|
|
18299
18299
|
[`checkbox-justify-${justify}`]: true,
|
|
18300
18300
|
[`checkbox-alignment-${alignment}`]: true,
|
|
18301
18301
|
[`checkbox-label-placement-${labelPlacement}`]: true,
|
|
18302
|
-
}), onClick: this.onClick }, hAsync("label", { key: '
|
|
18302
|
+
}), onClick: this.onClick }, hAsync("label", { key: '3f9f7c8383dded8f7997086b25399d052df76b5c', class: "checkbox-wrapper" }, hAsync("input", Object.assign({ key: '6fb11d06c424c289357d5d7c1a4d1b967be231d0', 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)), hAsync("div", { key: 'f577a272e5e3f9f1852fc95e40466c80b76309c7', class: {
|
|
18303
18303
|
'label-text-wrapper': true,
|
|
18304
18304
|
'label-text-wrapper-hidden': el.textContent === '',
|
|
18305
|
-
}, part: "label" }, hAsync("slot", { key: '
|
|
18305
|
+
}, part: "label" }, hAsync("slot", { key: '7c9b0b4513e797a1acdf55a5f286563e5f397e9c' })), hAsync("div", { key: 'e47c50a078b8d761ddc5efcb9a9635281b5818f6', class: "native-wrapper" }, hAsync("svg", { key: '4dca47179ae15e9094e01c799ef4ed25fbb0d840', class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path)))));
|
|
18306
18306
|
}
|
|
18307
18307
|
getSVGPath(mode, indeterminate) {
|
|
18308
18308
|
let path = indeterminate ? (hAsync("path", { d: "M6 12L18 12", part: "mark" })) : (hAsync("path", { d: "M5.9,12.5l3.8,3.8l8.8-8.8", part: "mark" }));
|
|
@@ -22414,7 +22414,7 @@ class Datetime {
|
|
|
22414
22414
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
22415
22415
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
22416
22416
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
22417
|
-
return (hAsync(Host, { key: '
|
|
22417
|
+
return (hAsync(Host, { key: '0b8c97bfb84dff5f8ef8097bba44f6c4ad119f76', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses$1(color, {
|
|
22418
22418
|
[mode]: true,
|
|
22419
22419
|
['datetime-readonly']: readonly,
|
|
22420
22420
|
['datetime-disabled']: disabled,
|
|
@@ -22424,7 +22424,7 @@ class Datetime {
|
|
|
22424
22424
|
[`datetime-size-${size}`]: true,
|
|
22425
22425
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
22426
22426
|
[`datetime-grid`]: isGridStyle,
|
|
22427
|
-
})) }, hAsync("div", { key: '
|
|
22427
|
+
})) }, hAsync("div", { key: '36e389a8c49944b5bbc0429f6b86d9c28a5b860a', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
|
|
22428
22428
|
}
|
|
22429
22429
|
get el() { return getElement(this); }
|
|
22430
22430
|
static get watchers() { return {
|
|
@@ -25176,7 +25176,7 @@ class Input {
|
|
|
25176
25176
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
25177
25177
|
*/
|
|
25178
25178
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
25179
|
-
return (hAsync(Host, { key: '
|
|
25179
|
+
return (hAsync(Host, { key: 'b0697cdbb71e680d904c11445a9bd7c28567b0e4', class: createColorClasses$1(this.color, {
|
|
25180
25180
|
[mode]: true,
|
|
25181
25181
|
'has-value': hasValue,
|
|
25182
25182
|
'has-focus': hasFocus,
|
|
@@ -25187,7 +25187,7 @@ class Input {
|
|
|
25187
25187
|
'in-item': inItem,
|
|
25188
25188
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
25189
25189
|
'input-disabled': disabled,
|
|
25190
|
-
}) }, hAsync("label", { key: '
|
|
25190
|
+
}) }, hAsync("label", { key: 'eb9851f62c4aa62dd3b2ebe2e169182ea9fa12d8', class: "input-wrapper", htmlFor: inputId }, this.renderLabelContainer(), hAsync("div", { key: 'e8cd537de25d25ed7fd3a6c3450643f0bfe10f82', class: "native-wrapper" }, hAsync("slot", { key: '00590a3d52896465102d0f9e75a9165f9a3f5936', name: "start" }), hAsync("input", Object.assign({ key: '26fd41169cbf5c5b7efc9989d6e9300c20db321a', class: "native-input", ref: (input) => (this.nativeInput = input), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, multiple: this.multiple, name: this.name, pattern: this.pattern, placeholder: this.placeholder || '', readOnly: readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, type: this.type, value: value, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeydown, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd }, this.inheritedAttributes)), this.clearInput && !readonly && !disabled && (hAsync("button", { key: '4dc7c673179fa5c0f84a251ceed2599f8b7e9b8b', "aria-label": "reset", type: "button", class: "input-clear-icon", onPointerDown: (ev) => {
|
|
25191
25191
|
/**
|
|
25192
25192
|
* This prevents mobile browsers from
|
|
25193
25193
|
* blurring the input when the clear
|
|
@@ -25202,7 +25202,7 @@ class Input {
|
|
|
25202
25202
|
* for screen readers as it means users would be unable to swipe past the clear button.
|
|
25203
25203
|
*/
|
|
25204
25204
|
ev.stopPropagation();
|
|
25205
|
-
}, onClick: this.clearTextInput }, hAsync("ion-icon", { key: '
|
|
25205
|
+
}, onClick: this.clearTextInput }, hAsync("ion-icon", { key: '22faa709020c08c3fbd44955c2cfa77c2117e47e', "aria-hidden": "true", icon: mode === 'ios' ? closeCircle : closeSharp }))), hAsync("slot", { key: '6b2c0138fd1aa0e8f004e807d842856278960d8a', name: "end" })), shouldRenderHighlight && hAsync("div", { key: '2db65ebfa53b4490490d3f1dc4a1a21875e239a2', class: "input-highlight" })), this.renderBottomContent()));
|
|
25206
25206
|
}
|
|
25207
25207
|
get el() { return getElement(this); }
|
|
25208
25208
|
static get watchers() { return {
|
|
@@ -26295,7 +26295,7 @@ const swipeShouldReset = (isResetDirection, isMovingFast, isOnResetZone) => {
|
|
|
26295
26295
|
return (!isMovingFast && isOnResetZone) || (isResetDirection && isMovingFast);
|
|
26296
26296
|
};
|
|
26297
26297
|
|
|
26298
|
-
const labelIosCss = ".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-nowrap.sc-ion-label-ios-h{overflow:hidden}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{-ms-flex-item-align:baseline;align-self:baseline}.item-skeleton-text.sc-ion-label-ios-h,.item-skeleton-text .sc-ion-label-ios-h{overflow:hidden}.label-fixed.sc-ion-label-ios-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{-webkit-transition:none;transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h{font-size:0.875rem;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:0.875rem}.label-floating.sc-ion-label-ios-h{margin-bottom:0;-webkit-transform:translate(0, 29px);transform:translate(0, 29px);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms ease-in-out;transition:-webkit-transform 150ms ease-in-out;transition:transform 150ms ease-in-out;transition:transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.label-floating.sc-ion-label-ios-h:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{-webkit-transform:translate(0, 28px);transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{-webkit-transform:scale(0.82);transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:1.375rem;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.0625rem;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:var(--ion-text-color-step-
|
|
26298
|
+
const labelIosCss = ".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-nowrap.sc-ion-label-ios-h{overflow:hidden}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{-ms-flex-item-align:baseline;align-self:baseline}.item-skeleton-text.sc-ion-label-ios-h,.item-skeleton-text .sc-ion-label-ios-h{overflow:hidden}.label-fixed.sc-ion-label-ios-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{-webkit-transition:none;transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h{font-size:0.875rem;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:0.875rem}.label-floating.sc-ion-label-ios-h{margin-bottom:0;-webkit-transform:translate(0, 29px);transform:translate(0, 29px);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms ease-in-out;transition:-webkit-transform 150ms ease-in-out;transition:transform 150ms ease-in-out;transition:transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.label-floating.sc-ion-label-ios-h:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{-webkit-transform:translate(0, 28px);transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{-webkit-transform:scale(0.82);transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:1.375rem;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.0625rem;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:var(--ion-color-step-400, var(--ion-text-color-step-600, #999999))}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}";
|
|
26299
26299
|
var IonLabelIosStyle0 = labelIosCss;
|
|
26300
26300
|
|
|
26301
26301
|
const labelMdCss = ".item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-nowrap.sc-ion-label-md-h{overflow:hidden}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{-ms-flex-item-align:baseline;align-self:baseline}.item-skeleton-text.sc-ion-label-md-h,.item-skeleton-text .sc-ion-label-md-h{overflow:hidden}.label-fixed.sc-ion-label-md-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{-webkit-transition:none;transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:top left;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform-origin:top right;transform-origin:top right}.label-stacked.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{-webkit-transform:translateY(96%);transform:translateY(96%);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #0054e9)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:1.25rem;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}";
|
|
@@ -32037,14 +32037,14 @@ class PickerColumn {
|
|
|
32037
32037
|
render() {
|
|
32038
32038
|
const { color, disabled, isActive, numericInput } = this;
|
|
32039
32039
|
const mode = getIonMode$1(this);
|
|
32040
|
-
return (hAsync(Host, { key: '
|
|
32040
|
+
return (hAsync(Host, { key: '54d3ea9f92136ac446a6c0a2b1389d93c5ff31ee', class: createColorClasses$1(color, {
|
|
32041
32041
|
[mode]: true,
|
|
32042
32042
|
['picker-column-active']: isActive,
|
|
32043
32043
|
['picker-column-numeric-input']: numericInput,
|
|
32044
32044
|
['picker-column-disabled']: disabled,
|
|
32045
|
-
}) }, hAsync("slot", { key: '
|
|
32045
|
+
}) }, hAsync("slot", { key: '969279123f09d37a28aa726936c9f484b0de33e4', name: "prefix" }), hAsync("div", { key: 'd4d09a561213c408cf1c42a28cdef37f14367724', class: "picker-opts", tabindex: disabled ? undefined : 0, ref: (el) => {
|
|
32046
32046
|
this.scrollEl = el;
|
|
32047
|
-
} }, hAsync("div", { key: '
|
|
32047
|
+
} }, hAsync("div", { key: '3710d8980682c819be33eeb6611a5c707b0e6a29', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), hAsync("div", { key: '65b7d8d523db669a2df107ae7aaacf62daf13232', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), hAsync("div", { key: '694657e475edcdbc93561e826e0db016738f119d', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), hAsync("slot", { key: 'ecbbd8db6ffdd8d8506a16d94f001d434f4daf97' }), hAsync("div", { key: 'e19a7f7e5e4aeb7d52339e962314d68c31c6337b', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), hAsync("div", { key: '103e6a5863efc526de3ea35c63230cc37e487594', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), hAsync("div", { key: 'c9e2313ae630ec0b39cbc92d5261fc194dc22a5f', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0")), hAsync("slot", { key: '1537926d9ed8d4251ded95dcb249197491fc2616', name: "suffix" })));
|
|
32048
32048
|
}
|
|
32049
32049
|
get el() { return getElement(this); }
|
|
32050
32050
|
static get watchers() { return {
|
|
@@ -34279,7 +34279,7 @@ class RadioGroup {
|
|
|
34279
34279
|
const { label, labelId, el, name, value } = this;
|
|
34280
34280
|
const mode = getIonMode$1(this);
|
|
34281
34281
|
renderHiddenInput(true, el, name, value, false);
|
|
34282
|
-
return hAsync(Host, { key: '
|
|
34282
|
+
return hAsync(Host, { key: '672d1df4a5d2fd22415e8772b054313907aba8f6', role: "radiogroup", "aria-labelledby": label ? labelId : null, onClick: this.onClick, class: mode });
|
|
34283
34283
|
}
|
|
34284
34284
|
get el() { return getElement(this); }
|
|
34285
34285
|
static get watchers() { return {
|
|
@@ -34908,7 +34908,7 @@ class Range {
|
|
|
34908
34908
|
const needsEndAdjustment = inItem && !hasEndContent;
|
|
34909
34909
|
const mode = getIonMode$1(this);
|
|
34910
34910
|
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
34911
|
-
return (hAsync(Host, { key: '
|
|
34911
|
+
return (hAsync(Host, { key: 'f66f03965290003b8a2b74b6f16ebf5615291688', onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses$1(this.color, {
|
|
34912
34912
|
[mode]: true,
|
|
34913
34913
|
'in-item': inItem,
|
|
34914
34914
|
'range-disabled': disabled,
|
|
@@ -34917,10 +34917,10 @@ class Range {
|
|
|
34917
34917
|
[`range-label-placement-${labelPlacement}`]: true,
|
|
34918
34918
|
'range-item-start-adjustment': needsStartAdjustment,
|
|
34919
34919
|
'range-item-end-adjustment': needsEndAdjustment,
|
|
34920
|
-
}) }, hAsync("label", { key: '
|
|
34920
|
+
}) }, hAsync("label", { key: '4b0035999693e241afb753f4c335ec386a2f5a2b', class: "range-wrapper", id: "range-label" }, hAsync("div", { key: 'f03119f14a4c6bb2f6c529e885002df633cd1797', class: {
|
|
34921
34921
|
'label-text-wrapper': true,
|
|
34922
34922
|
'label-text-wrapper-hidden': !hasLabel,
|
|
34923
|
-
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '
|
|
34923
|
+
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '72678b1d17ac2a6dfeee26d40a6a80bcc0e7e2fe', class: "native-wrapper" }, hAsync("slot", { key: 'c555ac9598427b81fddd5415ea673479c2247977', name: "start" }), this.renderRangeSlider(), hAsync("slot", { key: 'bf58ccc934a246b303c766d16df5eeb62c225b12', name: "end" })))));
|
|
34924
34924
|
}
|
|
34925
34925
|
get el() { return getElement(this); }
|
|
34926
34926
|
static get watchers() { return {
|
|
@@ -37995,8 +37995,8 @@ class Searchbar {
|
|
|
37995
37995
|
const clearIcon = this.clearIcon || (mode === 'ios' ? closeCircle : closeSharp);
|
|
37996
37996
|
const searchIcon = this.searchIcon || (mode === 'ios' ? searchOutline : searchSharp);
|
|
37997
37997
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
37998
|
-
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '
|
|
37999
|
-
return (hAsync(Host, { key: '
|
|
37998
|
+
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '2e53057ad0dcb8ea930fe4a4a03f08af5163d31e', "aria-label": cancelButtonText, "aria-hidden": shouldShowCancelButton ? undefined : 'true', type: "button", tabIndex: mode === 'ios' && !shouldShowCancelButton ? -1 : undefined, onMouseDown: this.onCancelSearchbar, onTouchStart: this.onCancelSearchbar, class: "searchbar-cancel-button" }, hAsync("div", { key: '10b06fdbb3ae51bf02bd094205d075e1f9b60ea3', "aria-hidden": "true" }, mode === 'md' ? (hAsync("ion-icon", { "aria-hidden": "true", mode: mode, icon: this.cancelButtonIcon, lazy: false })) : (cancelButtonText))));
|
|
37999
|
+
return (hAsync(Host, { key: 'f1a07f9e2f27f5297581e66c80097cf7843c1a5a', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses$1(this.color, {
|
|
38000
38000
|
[mode]: true,
|
|
38001
38001
|
'searchbar-animated': animated,
|
|
38002
38002
|
'searchbar-disabled': this.disabled,
|
|
@@ -38006,14 +38006,14 @@ class Searchbar {
|
|
|
38006
38006
|
'searchbar-has-focus': this.focused,
|
|
38007
38007
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
38008
38008
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
38009
|
-
}) }, hAsync("div", { key: '
|
|
38009
|
+
}) }, hAsync("div", { key: '9b7dc9abf5b1925872c75f6c992aac465700b615', class: "searchbar-input-container" }, hAsync("input", Object.assign({ key: 'd0e11e98bfb8b9e9225de80c8f132f68c3466f13', "aria-label": "search text", disabled: this.disabled, ref: (el) => (this.nativeInput = el), class: "searchbar-input", inputMode: this.inputmode, enterKeyHint: this.enterkeyhint, name: this.name, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, minLength: this.minlength, maxLength: this.maxlength, placeholder: this.placeholder, type: this.type, value: this.getValue(), autoCapitalize: autocapitalize === 'default' ? undefined : autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, spellcheck: this.spellcheck }, this.inheritedAttributes)), mode === 'md' && cancelButton, hAsync("ion-icon", { key: 'd475776f64b55d13d49f8193f3b84a4e669403c7', "aria-hidden": "true", mode: mode, icon: searchIcon, lazy: false, class: "searchbar-search-icon" }), hAsync("button", { key: '9b5b681edfac608ed1c20175086ec40c652a7f07', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: (ev) => {
|
|
38010
38010
|
/**
|
|
38011
38011
|
* This prevents mobile browsers from
|
|
38012
38012
|
* blurring the input when the clear
|
|
38013
38013
|
* button is activated.
|
|
38014
38014
|
*/
|
|
38015
38015
|
ev.preventDefault();
|
|
38016
|
-
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '
|
|
38016
|
+
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '44c85c0d3a1346c5e9306a65f6a7cf0fcdc1f149', "aria-hidden": "true", mode: mode, icon: clearIcon, lazy: false, class: "searchbar-clear-icon" }))), mode === 'ios' && cancelButton));
|
|
38017
38017
|
}
|
|
38018
38018
|
get el() { return getElement(this); }
|
|
38019
38019
|
static get watchers() { return {
|
|
@@ -38487,14 +38487,14 @@ class Segment {
|
|
|
38487
38487
|
}
|
|
38488
38488
|
render() {
|
|
38489
38489
|
const mode = getIonMode$1(this);
|
|
38490
|
-
return (hAsync(Host, { key: '
|
|
38490
|
+
return (hAsync(Host, { key: '107be9ad856d855db449d24cd75f9fb82746e9aa', role: "tablist", onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
38491
38491
|
[mode]: true,
|
|
38492
38492
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
38493
38493
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
38494
38494
|
'segment-activated': this.activated,
|
|
38495
38495
|
'segment-disabled': this.disabled,
|
|
38496
38496
|
'segment-scrollable': this.scrollable,
|
|
38497
|
-
}) }, hAsync("slot", { key: '
|
|
38497
|
+
}) }, hAsync("slot", { key: 'bdb223b18a62af921084301f01a728c421379646' })));
|
|
38498
38498
|
}
|
|
38499
38499
|
get el() { return getElement(this); }
|
|
38500
38500
|
static get watchers() { return {
|
|
@@ -39222,7 +39222,7 @@ class Select {
|
|
|
39222
39222
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
39223
39223
|
*/
|
|
39224
39224
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
39225
|
-
return (hAsync(Host, { key: '
|
|
39225
|
+
return (hAsync(Host, { key: 'df8333e037d8cb9fd34af7f3525608d7bd0ec0f4', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
39226
39226
|
[mode]: true,
|
|
39227
39227
|
'in-item': inItem,
|
|
39228
39228
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -39238,7 +39238,7 @@ class Select {
|
|
|
39238
39238
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
39239
39239
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
39240
39240
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
39241
|
-
}) }, hAsync("label", { key: '
|
|
39241
|
+
}) }, hAsync("label", { key: '3b165b4c7512bcf750bac885aef67745db53a840', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), hAsync("div", { key: '1b0cac005aff58ba067efe7e1165b3375716c57e', class: "select-wrapper-inner" }, hAsync("slot", { key: '0552b33874ec305d3406876d5714a1dc4f0dc2c1', name: "start" }), hAsync("div", { key: '7d56e2610cc026f844373590f8229164baff2c62', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), hAsync("slot", { key: '79d8daef62fce370d804734390d8ba47dc611d36', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && hAsync("div", { key: 'be8b6f8c45b5062618ba50b2311f1143210bcc59', class: "select-highlight" }))));
|
|
39242
39242
|
}
|
|
39243
39243
|
get el() { return getElement(this); }
|
|
39244
39244
|
static get watchers() { return {
|
|
@@ -39350,7 +39350,7 @@ let selectOptionIds = 0;
|
|
|
39350
39350
|
const selectPopoverIosCss = ".sc-ion-select-popover-ios-h ion-list.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-ios,ion-label.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-select-popover-ios-h{overflow-y:auto}";
|
|
39351
39351
|
var IonSelectPopoverIosStyle0 = selectPopoverIosCss;
|
|
39352
39352
|
|
|
39353
|
-
const selectPopoverMdCss = ".sc-ion-select-popover-md-h ion-list.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-md,ion-label.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-select-popover-md-h{overflow-y:auto}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(container){
|
|
39353
|
+
const selectPopoverMdCss = ".sc-ion-select-popover-md-h ion-list.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-md,ion-label.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-select-popover-md-h{overflow-y:auto}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(container){display:none}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(label){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-item.sc-ion-select-popover-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-popover-md{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-popover-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #0054e9)}";
|
|
39354
39354
|
var IonSelectPopoverMdStyle0 = selectPopoverMdCss;
|
|
39355
39355
|
|
|
39356
39356
|
/**
|
|
@@ -40500,7 +40500,7 @@ class Textarea {
|
|
|
40500
40500
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
40501
40501
|
*/
|
|
40502
40502
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
40503
|
-
return (hAsync(Host, { key: '
|
|
40503
|
+
return (hAsync(Host, { key: '16eeb87ea5dbac1b37f1a376cd74e6f41af1b5f6', class: createColorClasses$1(this.color, {
|
|
40504
40504
|
[mode]: true,
|
|
40505
40505
|
'has-value': hasValue,
|
|
40506
40506
|
'has-focus': hasFocus,
|
|
@@ -40509,7 +40509,7 @@ class Textarea {
|
|
|
40509
40509
|
[`textarea-shape-${shape}`]: shape !== undefined,
|
|
40510
40510
|
[`textarea-label-placement-${labelPlacement}`]: true,
|
|
40511
40511
|
'textarea-disabled': disabled,
|
|
40512
|
-
}) }, hAsync("label", { key: '
|
|
40512
|
+
}) }, hAsync("label", { key: '5f7946957517614b937eb37533a87c124cf3eabb', class: "textarea-wrapper", htmlFor: inputId }, this.renderLabelContainer(), hAsync("div", { key: '4e950025447d83f3ec77b515a2c5cd6511819b7e', class: "textarea-wrapper-inner" }, hAsync("div", { key: 'a508e5879a9f7b3f2a91d5b1851ab990302044fe', class: "start-slot-wrapper" }, hAsync("slot", { key: 'a2b18078c602896be5ae2da71519f534aa24bbc4', name: "start" })), hAsync("div", { key: '5a4d07c72794548d7f0945aebc5bc2c65118cac3', class: "native-wrapper", ref: (el) => (this.textareaWrapper = el) }, hAsync("textarea", Object.assign({ key: 'f13d0e8b96a798d3cec017b2b618e4979555c5ee', 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 }, this.inheritedAttributes), value)), hAsync("div", { key: '10b8792a1506b41928869a4460b6f780c39947b6', class: "end-slot-wrapper" }, hAsync("slot", { key: '26362017095ffdda6749a19e0152ef4da8759fba', name: "end" }))), shouldRenderHighlight && hAsync("div", { key: '06a6135b05848b3855192f162ec293d9eae6e171', class: "textarea-highlight" })), this.renderBottomContent()));
|
|
40513
40513
|
}
|
|
40514
40514
|
get el() { return getElement(this); }
|
|
40515
40515
|
static get watchers() { return {
|
|
@@ -41626,7 +41626,7 @@ class Toggle {
|
|
|
41626
41626
|
const value = this.getValue();
|
|
41627
41627
|
const rtl = isRTL$1(el) ? 'rtl' : 'ltr';
|
|
41628
41628
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
41629
|
-
return (hAsync(Host, { key: '
|
|
41629
|
+
return (hAsync(Host, { key: '9083d3ea92131df1480dfdaacd62037ffd5a69ec', onClick: this.onClick, class: createColorClasses$1(color, {
|
|
41630
41630
|
[mode]: true,
|
|
41631
41631
|
'in-item': hostContext('ion-item', el),
|
|
41632
41632
|
'toggle-activated': activated,
|
|
@@ -41636,10 +41636,10 @@ class Toggle {
|
|
|
41636
41636
|
[`toggle-alignment-${alignment}`]: true,
|
|
41637
41637
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
41638
41638
|
[`toggle-${rtl}`]: true,
|
|
41639
|
-
}) }, hAsync("label", { key: '
|
|
41639
|
+
}) }, hAsync("label", { key: '554e11ac1db370363b251b83e4d57c32a2bd4577', class: "toggle-wrapper" }, hAsync("input", Object.assign({ key: '327540a212dfe686310e8a587fa8c81edfd2e229', 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)), hAsync("div", { key: '9ba185a8afaf65c8ba0d2044b1abfa376aee4db3', class: {
|
|
41640
41640
|
'label-text-wrapper': true,
|
|
41641
41641
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
41642
|
-
}, part: "label" }, hAsync("slot", { key: '
|
|
41642
|
+
}, part: "label" }, hAsync("slot", { key: '730287f916c13ec437f39f2304a70afa50f41dc7' })), hAsync("div", { key: '0e810cdf6dc7623d4efd2092a642ef12906efcae', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
41643
41643
|
}
|
|
41644
41644
|
get el() { return getElement(this); }
|
|
41645
41645
|
static get watchers() { return {
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,d as e,h as a,f as r,i as o}from"./p-4af0b730.js";import{i,d as n}from"./p-b51e4004.js";import{c as l}from"./p-89b61afc.js";import{i as s}from"./p-fb813dab.js";import{c as g,h as c}from"./p-47794def.js";import{f as d,r as h,g as p}from"./p-da2b833b.js";import{c as b,b as m}from"./p-34511b1d.js";import"./p-c61cc894.js";import"./p-7b30edcc.js";const w=class{constructor(a){t(this,a),this.ionChange=e(this,"ionChange",7),this.ionFocus=e(this,"ionFocus",7),this.ionBlur=e(this,"ionBlur",7),this.inputId="ion-tg-"+x++,this.lastDrag=0,this.inheritedAttributes={},this.didLoad=!1,this.setupGesture=async()=>{const{toggleTrack:t}=this;t&&(this.gesture=(await import("./p-8ededb41.js")).createGesture({el:t,gestureName:"toggle",gesturePriority:100,threshold:5,passive:!1,onStart:()=>this.onStart(),onMove:t=>this.onMove(t),onEnd:t=>this.onEnd(t)}),this.disabledChanged())},this.onClick=t=>{this.disabled||(t.preventDefault(),this.lastDrag+300<Date.now()&&this.toggleChecked())},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.getSwitchLabelIcon=(t,e)=>"md"===t?e?d:h:e?h:p,this.activated=!1,this.color=void 0,this.name=this.inputId,this.checked=!1,this.disabled=!1,this.value="on",this.enableOnOffLabels=b.get("toggleOnOffLabels"),this.labelPlacement="start",this.justify="space-between",this.alignment="center"}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}toggleChecked(){const{checked:t,value:e}=this,a=!t;this.checked=a,this.ionChange.emit({checked:a,value:e})}async connectedCallback(){this.didLoad&&this.setupGesture()}componentDidLoad(){this.setupGesture(),this.didLoad=!0}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentWillLoad(){this.inheritedAttributes=Object.assign({},i(this.el))}onStart(){this.activated=!0,this.setFocus()}onMove(t){f(s(this.el),this.checked,t.deltaX,-10)&&(this.toggleChecked(),l())}onEnd(t){this.activated=!1,this.lastDrag=Date.now(),t.event.preventDefault(),t.event.stopImmediatePropagation()}getValue(){return this.value||""}setFocus(){this.focusEl&&this.focusEl.focus()}renderOnOffSwitchLabels(t,e){const r=this.getSwitchLabelIcon(t,e);return a("ion-icon",{class:{"toggle-switch-icon":!0,"toggle-switch-icon-checked":e},icon:r,"aria-hidden":"true"})}renderToggleControl(){const t=m(this),{enableOnOffLabels:e,checked:r}=this;return a("div",{class:"toggle-icon",part:"track",ref:t=>this.toggleTrack=t},e&&"ios"===t&&[this.renderOnOffSwitchLabels(t,!0),this.renderOnOffSwitchLabels(t,!1)],a("div",{class:"toggle-icon-wrapper"},a("div",{class:"toggle-inner",part:"handle"},e&&"md"===t&&this.renderOnOffSwitchLabels(t,r))))}get hasLabel(){return""!==this.el.textContent}render(){const{activated:t,color:e,checked:o,disabled:i,el:l,justify:d,labelPlacement:h,inputId:p,name:b,alignment:w}=this,f=m(this),x=this.getValue(),k=s(l)?"rtl":"ltr";return n(!0,l,b,o?x:"",i),a(r,{key:"c945ab955306b2fcb7833f7ff771ac943d73d27d",onClick:this.onClick,class:g(e,{[f]:!0,"in-item":c("ion-item",l),"toggle-activated":t,"toggle-checked":o,"toggle-disabled":i,[`toggle-justify-${d}`]:!0,[`toggle-alignment-${w}`]:!0,[`toggle-label-placement-${h}`]:!0,[`toggle-${k}`]:!0})},a("label",{key:"71fb6976e877639ca9f28c2103f6290917cdb6ce",class:"toggle-wrapper"},a("input",Object.assign({key:"ed2495568197928ef1f17fc60470f4d9754a6244",type:"checkbox",role:"switch","aria-checked":`${o}`,checked:o,disabled:i,id:p,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:t=>this.focusEl=t},this.inheritedAttributes)),a("div",{key:"953ab9a29c432de4b869aeac296007e703bcdf27",class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel},part:"label"},a("slot",{key:"718b24b4d59b979c11edfb1d90fa0270ac248b2f"})),a("div",{key:"293595f9dc291df38a54e23f81797b89428ff2c5",class:"native-wrapper"},this.renderToggleControl())))}get el(){return o(this)}static get watchers(){return{disabled:["disabledChanged"]}}},f=(t,e,a,r)=>e?!t&&r>a||t&&-r<a:!t&&-r<a||t&&r>a;let x=0;w.style={ios:":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){width:auto}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.toggle-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.toggle-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.toggle-justify-space-between) .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.toggle-justify-start) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-end) .toggle-wrapper{-ms-flex-pack:end;justify-content:end}:host(.toggle-alignment-start) .toggle-wrapper{-ms-flex-align:start;align-items:start}:host(.toggle-alignment-center) .toggle-wrapper{-ms-flex-align:center;align-items:center}:host(.toggle-label-placement-start) .toggle-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.toggle-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.toggle-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.toggle-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.toggle-label-placement-stacked) .toggle-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.toggle-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--track-background);overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--track-background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;left:var(--handle-spacing);width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--track-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.088);--track-background-checked:var(--ion-color-primary, #0054e9);--border-radius:15.5px;--handle-background:#ffffff;--handle-background-checked:#ffffff;--handle-border-radius:25.5px;--handle-box-shadow:0 3px 4px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.06);--handle-height:calc(31px - (2px * 2));--handle-max-height:calc(100% - var(--handle-spacing) * 2);--handle-width:calc(31px - (2px * 2));--handle-spacing:2px;--handle-transition:transform 300ms, width 120ms ease-in-out 80ms, left 110ms ease-in-out 80ms, right 110ms ease-in-out 80ms}.native-wrapper .toggle-icon{width:51px;height:31px;overflow:hidden}:host(.ion-color.toggle-checked) .toggle-icon{background:var(--ion-color-base)}:host(.toggle-activated) .toggle-switch-icon{opacity:0}.toggle-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:background-color 300ms;transition:background-color 300ms}.toggle-inner{will-change:transform}.toggle-switch-icon{position:absolute;top:50%;width:11px;height:11px;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:opacity 300ms, color 300ms;transition:opacity 300ms, color 300ms}.toggle-switch-icon{position:absolute;color:var(--ion-color-dark, #222428)}:host(.toggle-ltr) .toggle-switch-icon{right:6px}:host(.toggle-rtl) .toggle-switch-icon{right:initial;left:6px;}:host(.toggle-checked) .toggle-switch-icon.toggle-switch-icon-checked{color:var(--ion-color-contrast, #fff)}:host(.toggle-checked) .toggle-switch-icon:not(.toggle-switch-icon-checked){opacity:0}.toggle-switch-icon-checked{position:absolute;width:15px;height:15px;-webkit-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}:host(.toggle-ltr) .toggle-switch-icon-checked{right:initial;left:4px;}:host(.toggle-rtl) .toggle-switch-icon-checked{right:4px}:host(.toggle-activated) .toggle-icon::before,:host(.toggle-checked) .toggle-icon::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated.toggle-checked) .toggle-inner::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated) .toggle-inner{width:calc(var(--handle-width) + 6px)}:host(.toggle-ltr.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0);transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0)}:host(.toggle-rtl.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0);transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0)}:host(.toggle-disabled){opacity:0.3}",md:":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){width:auto}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.toggle-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.toggle-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.toggle-justify-space-between) .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.toggle-justify-start) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-end) .toggle-wrapper{-ms-flex-pack:end;justify-content:end}:host(.toggle-alignment-start) .toggle-wrapper{-ms-flex-align:start;align-items:start}:host(.toggle-alignment-center) .toggle-wrapper{-ms-flex-align:center;align-items:center}:host(.toggle-label-placement-start) .toggle-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.toggle-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.toggle-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.toggle-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.toggle-label-placement-stacked) .toggle-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.toggle-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--track-background);overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--track-background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;left:var(--handle-spacing);width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--track-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.39);--track-background-checked:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.5);--border-radius:14px;--handle-background:#ffffff;--handle-background-checked:var(--ion-color-primary, #0054e9);--handle-border-radius:50%;--handle-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--handle-width:20px;--handle-height:20px;--handle-max-height:calc(100% + 6px);--handle-spacing:0;--handle-transition:transform 160ms cubic-bezier(0.4, 0, 0.2, 1), background-color 160ms cubic-bezier(0.4, 0, 0.2, 1)}.native-wrapper .toggle-icon{width:36px;height:14px}:host(.ion-color.toggle-checked) .toggle-icon{background:rgba(var(--ion-color-base-rgb), 0.5)}:host(.ion-color.toggle-checked) .toggle-inner{background:var(--ion-color-base)}:host(.toggle-checked) .toggle-inner{color:var(--ion-color-contrast, #fff)}.toggle-icon{-webkit-transition:background-color 160ms;transition:background-color 160ms}.toggle-inner{will-change:background-color, transform;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:#000}.toggle-inner .toggle-switch-icon{-webkit-padding-start:1px;padding-inline-start:1px;-webkit-padding-end:1px;padding-inline-end:1px;padding-top:1px;padding-bottom:1px;width:100%;height:100%}:host(.toggle-disabled){opacity:0.38}"};export{w as ion_toggle}
|