@ionic/core 7.3.5-dev.11694621267.1e5f63c2 → 7.4.0
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/button-active.js +1 -1
- package/components/checkbox.js +6 -3
- package/components/data.js +31 -7
- package/components/index.js +2 -2
- package/components/index2.js +203 -429
- package/components/index3.js +429 -203
- package/components/ion-datetime-button.js +3 -0
- package/components/ion-datetime.js +132 -92
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-modal.js +2 -2
- package/components/ion-nav.js +1 -1
- package/components/ion-range.js +3 -3
- package/components/ion-refresher.js +3 -3
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-segment.js +1 -1
- package/components/ion-toggle.js +7 -4
- package/components/ios.transition.js +1 -1
- package/components/md.transition.js +1 -1
- package/components/notch-controller.js +1 -1
- package/components/picker-column.js +1 -1
- package/components/popover.js +1 -1
- package/components/radio.js +6 -3
- package/components/swipe-back.js +1 -1
- package/css/core.css.map +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/dist/cjs/{data-967b9c15.js → data-db832785.js} +31 -7
- package/dist/cjs/index.cjs.js +10 -9
- package/dist/cjs/ion-checkbox.cjs.entry.js +5 -3
- package/dist/cjs/ion-datetime-button.cjs.entry.js +4 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +132 -93
- package/dist/cjs/ion-input.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +5 -3
- package/dist/cjs/ion-range.cjs.entry.js +2 -2
- package/dist/cjs/ion-select_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-textarea.cjs.entry.js +1 -1
- package/dist/cjs/ion-toggle.cjs.entry.js +5 -3
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{notch-controller-c27fe0b7.js → notch-controller-f4f6af5d.js} +1 -1
- package/dist/collection/components/checkbox/checkbox.ios.css +67 -0
- package/dist/collection/components/checkbox/checkbox.js +24 -4
- package/dist/collection/components/checkbox/checkbox.md.css +67 -0
- package/dist/collection/components/checkbox/test/item/checkbox.e2e.js +13 -0
- package/dist/collection/components/checkbox/test/label/checkbox.e2e.js +27 -0
- package/dist/collection/components/datetime/datetime.ios.css +32 -29
- package/dist/collection/components/datetime/datetime.js +137 -93
- package/dist/collection/components/datetime/datetime.md.css +20 -28
- package/dist/collection/components/datetime/test/basic/datetime.e2e.js +25 -0
- package/dist/collection/components/datetime/test/color/datetime.e2e.js +1 -1
- package/dist/collection/components/datetime/test/custom/datetime.e2e.js +27 -1
- package/dist/collection/components/datetime/test/prefer-wheel/datetime.e2e.js +15 -0
- package/dist/collection/components/datetime/test/set-value/datetime.e2e.js +9 -12
- package/dist/collection/components/datetime/utils/data.js +14 -6
- package/dist/collection/components/datetime/utils/parse.js +18 -1
- package/dist/collection/components/datetime-button/datetime-button.js +3 -0
- package/dist/collection/components/radio/radio.ios.css +67 -0
- package/dist/collection/components/radio/radio.js +24 -4
- package/dist/collection/components/radio/radio.md.css +67 -0
- package/dist/collection/components/radio/test/item/radio.e2e.js +15 -0
- package/dist/collection/components/radio/test/label-placement/radio.e2e.js +31 -0
- package/dist/collection/components/range/range.ios.css +66 -1
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/range/range.md.css +66 -1
- package/dist/collection/components/range/test/item/range.e2e.js +15 -0
- package/dist/collection/components/range/test/label/range.e2e.js +59 -0
- package/dist/collection/components/toggle/test/item/toggle.e2e.js +15 -0
- package/dist/collection/components/toggle/test/label/toggle.e2e.js +27 -0
- package/dist/collection/components/toggle/toggle.ios.css +67 -1
- package/dist/collection/components/toggle/toggle.js +24 -4
- package/dist/collection/components/toggle/toggle.md.css +67 -1
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/forms/notch-controller.js +1 -1
- package/dist/docs.json +147 -18
- package/dist/esm/{data-4b448e3a.js → data-009dbf15.js} +31 -7
- package/dist/esm/index.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +5 -3
- package/dist/esm/ion-datetime-button.entry.js +4 -1
- package/dist/esm/ion-datetime_3.entry.js +132 -93
- package/dist/esm/ion-input.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +5 -3
- package/dist/esm/ion-range.entry.js +2 -2
- package/dist/esm/ion-select_3.entry.js +1 -1
- package/dist/esm/ion-textarea.entry.js +1 -1
- package/dist/esm/ion-toggle.entry.js +5 -3
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{notch-controller-cb5bbe6a.js → notch-controller-8c9c0e54.js} +1 -1
- package/dist/esm-es5/data-009dbf15.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.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-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.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/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/html.html-data.json +52 -4
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-dc4c9086.system.entry.js → p-264b5dd9.system.entry.js} +1 -1
- package/dist/ionic/{p-4d2807fa.entry.js → p-37c9e295.entry.js} +1 -1
- package/dist/ionic/p-3d575698.system.entry.js +4 -0
- package/dist/ionic/p-44ef7224.system.js +4 -0
- package/dist/ionic/{p-1c236453.system.entry.js → p-46058a1e.system.entry.js} +1 -1
- package/dist/ionic/{p-68deb933.entry.js → p-52edd6b0.entry.js} +1 -1
- package/dist/ionic/p-60f22efc.system.entry.js +4 -0
- package/dist/ionic/p-6d640b2b.entry.js +4 -0
- package/dist/ionic/p-74ef17ea.system.entry.js +4 -0
- package/dist/ionic/p-7cfd253c.js +4 -0
- package/dist/ionic/p-9fccec52.system.js +4 -0
- package/dist/ionic/p-aa702daf.entry.js +4 -0
- package/dist/ionic/p-ab051966.entry.js +4 -0
- package/dist/ionic/p-c005eb67.system.entry.js +4 -0
- package/dist/ionic/p-c68a8814.system.js +1 -1
- package/dist/ionic/p-cc758251.system.entry.js +4 -0
- package/dist/ionic/{p-0ce43a8f.system.entry.js → p-d0d09178.system.entry.js} +1 -1
- package/dist/ionic/p-dfee12f6.entry.js +4 -0
- package/dist/ionic/{p-8db97b90.entry.js → p-e3ca182a.entry.js} +1 -1
- package/dist/ionic/p-f0c28fbd.entry.js +4 -0
- package/dist/ionic/p-fdfc7b98.entry.js +4 -0
- package/dist/ionic/p-ff0611e6.system.entry.js +4 -0
- package/dist/types/components/checkbox/checkbox.d.ts +8 -1
- package/dist/types/components/datetime/datetime.d.ts +23 -10
- package/dist/types/components/datetime/utils/data.d.ts +1 -1
- package/dist/types/components/datetime/utils/parse.d.ts +3 -3
- package/dist/types/components/radio/radio.d.ts +8 -1
- package/dist/types/components/range/range.d.ts +2 -1
- package/dist/types/components/toast/toast-interface.d.ts +3 -0
- package/dist/types/components/toggle/toggle.d.ts +8 -1
- package/dist/types/components.d.ts +40 -16
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interface.d.ts +1 -0
- package/hydrate/index.js +193 -111
- package/package.json +1 -1
- package/dist/esm-es5/data-4b448e3a.js +0 -4
- package/dist/ionic/p-17e961cf.entry.js +0 -4
- package/dist/ionic/p-1b533a76.system.entry.js +0 -4
- package/dist/ionic/p-44a6f15d.system.entry.js +0 -4
- package/dist/ionic/p-4f7109fa.entry.js +0 -4
- package/dist/ionic/p-601fd53c.js +0 -4
- package/dist/ionic/p-7106c152.system.js +0 -4
- package/dist/ionic/p-9eaaa910.entry.js +0 -4
- package/dist/ionic/p-af6125d1.system.entry.js +0 -4
- package/dist/ionic/p-b8d7f0eb.system.entry.js +0 -4
- package/dist/ionic/p-b9179eab.entry.js +0 -4
- package/dist/ionic/p-cc8910e7.system.js +0 -4
- package/dist/ionic/p-dc7d392d.entry.js +0 -4
- package/dist/ionic/p-e65aed58.system.entry.js +0 -4
- package/dist/ionic/p-f3ec1f2b.entry.js +0 -4
- package/dist/ionic/p-fb26fa56.system.entry.js +0 -4
- /package/dist/esm-es5/{notch-controller-cb5bbe6a.js → notch-controller-8c9c0e54.js} +0 -0
- /package/dist/ionic/{p-4b37d92d.js → p-3bad5c1a.js} +0 -0
- /package/dist/ionic/{p-46b2991d.system.js → p-ab4cff27.system.js} +0 -0
|
@@ -48,8 +48,9 @@ export declare class Radio implements ComponentInterface {
|
|
|
48
48
|
* `"start"`: The label will appear to the left of the radio in LTR and to the right in RTL.
|
|
49
49
|
* `"end"`: The label will appear to the right of the radio in LTR and to the left in RTL.
|
|
50
50
|
* `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
51
|
+
* `"stacked"`: The label will appear above the radio regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
51
52
|
*/
|
|
52
|
-
labelPlacement: 'start' | 'end' | 'fixed';
|
|
53
|
+
labelPlacement: 'start' | 'end' | 'fixed' | 'stacked';
|
|
53
54
|
/**
|
|
54
55
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup.
|
|
55
56
|
* Ionic will only opt components in to the modern form markup when they are
|
|
@@ -70,6 +71,12 @@ export declare class Radio implements ComponentInterface {
|
|
|
70
71
|
* ends of the line with space between the two elements.
|
|
71
72
|
*/
|
|
72
73
|
justify: 'start' | 'end' | 'space-between';
|
|
74
|
+
/**
|
|
75
|
+
* How to control the alignment of the radio and label on the cross axis.
|
|
76
|
+
* `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.
|
|
77
|
+
* `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
78
|
+
*/
|
|
79
|
+
alignment: 'start' | 'center';
|
|
73
80
|
/**
|
|
74
81
|
* Emitted when the styles change.
|
|
75
82
|
* @internal
|
|
@@ -116,8 +116,9 @@ export declare class Range implements ComponentInterface {
|
|
|
116
116
|
* `"start"`: The label will appear to the left of the range in LTR and to the right in RTL.
|
|
117
117
|
* `"end"`: The label will appear to the right of the range in LTR and to the left in RTL.
|
|
118
118
|
* `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
119
|
+
* `"stacked"`: The label will appear above the range regardless of the direction.
|
|
119
120
|
*/
|
|
120
|
-
labelPlacement: 'start' | 'end' | 'fixed';
|
|
121
|
+
labelPlacement: 'start' | 'end' | 'fixed' | 'stacked';
|
|
121
122
|
/**
|
|
122
123
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup.
|
|
123
124
|
* Ionic will only opt components in to the modern form markup when they are
|
|
@@ -27,6 +27,9 @@ export interface ToastButton {
|
|
|
27
27
|
icon?: string;
|
|
28
28
|
side?: 'start' | 'end';
|
|
29
29
|
role?: 'cancel' | string;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Use the toast button's CSS Shadow Parts instead.
|
|
32
|
+
*/
|
|
30
33
|
cssClass?: string | string[];
|
|
31
34
|
htmlAttributes?: {
|
|
32
35
|
[key: string]: any;
|
|
@@ -56,8 +56,9 @@ export declare class Toggle implements ComponentInterface {
|
|
|
56
56
|
* `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL.
|
|
57
57
|
* `"end"`: The label will appear to the right of the toggle in LTR and to the left in RTL.
|
|
58
58
|
* `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
59
|
+
* `"stacked"`: The label will appear above the toggle regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
59
60
|
*/
|
|
60
|
-
labelPlacement: 'start' | 'end' | 'fixed';
|
|
61
|
+
labelPlacement: 'start' | 'end' | 'fixed' | 'stacked';
|
|
61
62
|
/**
|
|
62
63
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup.
|
|
63
64
|
* Ionic will only opt components in to the modern form markup when they are
|
|
@@ -78,6 +79,12 @@ export declare class Toggle implements ComponentInterface {
|
|
|
78
79
|
* ends of the line with space between the two elements.
|
|
79
80
|
*/
|
|
80
81
|
justify: 'start' | 'end' | 'space-between';
|
|
82
|
+
/**
|
|
83
|
+
* How to control the alignment of the toggle and label on the cross axis.
|
|
84
|
+
* ``"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.
|
|
85
|
+
* `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
86
|
+
*/
|
|
87
|
+
alignment: 'start' | 'center';
|
|
81
88
|
/**
|
|
82
89
|
* Emitted when the user switches the toggle on or off. Does not emit
|
|
83
90
|
* when programmatically changing the value of the `checked` property.
|
|
@@ -602,6 +602,10 @@ export namespace Components {
|
|
|
602
602
|
"mode"?: "ios" | "md";
|
|
603
603
|
}
|
|
604
604
|
interface IonCheckbox {
|
|
605
|
+
/**
|
|
606
|
+
* How to control the alignment of the checkbox and label on the cross axis. `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
607
|
+
*/
|
|
608
|
+
"alignment": 'start' | 'center';
|
|
605
609
|
/**
|
|
606
610
|
* If `true`, the checkbox is selected.
|
|
607
611
|
*/
|
|
@@ -623,9 +627,9 @@ export namespace Components {
|
|
|
623
627
|
*/
|
|
624
628
|
"justify": 'start' | 'end' | 'space-between';
|
|
625
629
|
/**
|
|
626
|
-
* Where to place the label relative to the checkbox. `"start"`: The label will appear to the left of the checkbox in LTR and to the right in RTL. `"end"`: The label will appear to the right of the checkbox in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
630
|
+
* Where to place the label relative to the checkbox. `"start"`: The label will appear to the left of the checkbox in LTR and to the right in RTL. `"end"`: The label will appear to the right of the checkbox in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the checkbox regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
627
631
|
*/
|
|
628
|
-
"labelPlacement": 'start' | 'end' | 'fixed';
|
|
632
|
+
"labelPlacement": 'start' | 'end' | 'fixed' | 'stacked';
|
|
629
633
|
/**
|
|
630
634
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt checkboxes in to the modern form markup when they are using either the `aria-label` attribute or have text in the default slot. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
631
635
|
*/
|
|
@@ -2216,6 +2220,10 @@ export namespace Components {
|
|
|
2216
2220
|
"value": number;
|
|
2217
2221
|
}
|
|
2218
2222
|
interface IonRadio {
|
|
2223
|
+
/**
|
|
2224
|
+
* How to control the alignment of the radio and label on the cross axis. `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
2225
|
+
*/
|
|
2226
|
+
"alignment": 'start' | 'center';
|
|
2219
2227
|
/**
|
|
2220
2228
|
* The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics).
|
|
2221
2229
|
*/
|
|
@@ -2229,9 +2237,9 @@ export namespace Components {
|
|
|
2229
2237
|
*/
|
|
2230
2238
|
"justify": 'start' | 'end' | 'space-between';
|
|
2231
2239
|
/**
|
|
2232
|
-
* Where to place the label relative to the radio. `"start"`: The label will appear to the left of the radio in LTR and to the right in RTL. `"end"`: The label will appear to the right of the radio in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
2240
|
+
* Where to place the label relative to the radio. `"start"`: The label will appear to the left of the radio in LTR and to the right in RTL. `"end"`: The label will appear to the right of the radio in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the radio regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
2233
2241
|
*/
|
|
2234
|
-
"labelPlacement": 'start' | 'end' | 'fixed';
|
|
2242
|
+
"labelPlacement": 'start' | 'end' | 'fixed' | 'stacked';
|
|
2235
2243
|
/**
|
|
2236
2244
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt components in to the modern form markup when they are using either the `aria-label` attribute or the default slot that contains the label text. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
2237
2245
|
*/
|
|
@@ -2291,9 +2299,9 @@ export namespace Components {
|
|
|
2291
2299
|
*/
|
|
2292
2300
|
"label"?: string;
|
|
2293
2301
|
/**
|
|
2294
|
-
* Where to place the label relative to the range. `"start"`: The label will appear to the left of the range in LTR and to the right in RTL. `"end"`: The label will appear to the right of the range in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
2302
|
+
* Where to place the label relative to the range. `"start"`: The label will appear to the left of the range in LTR and to the right in RTL. `"end"`: The label will appear to the right of the range in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the range regardless of the direction.
|
|
2295
2303
|
*/
|
|
2296
|
-
"labelPlacement": 'start' | 'end' | 'fixed';
|
|
2304
|
+
"labelPlacement": 'start' | 'end' | 'fixed' | 'stacked';
|
|
2297
2305
|
/**
|
|
2298
2306
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt components in to the modern form markup when they are using either the `aria-label` attribute or the `label` property. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
2299
2307
|
*/
|
|
@@ -3165,6 +3173,10 @@ export namespace Components {
|
|
|
3165
3173
|
"trigger": string | undefined;
|
|
3166
3174
|
}
|
|
3167
3175
|
interface IonToggle {
|
|
3176
|
+
/**
|
|
3177
|
+
* How to control the alignment of the toggle and label on the cross axis. ``"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
3178
|
+
*/
|
|
3179
|
+
"alignment": 'start' | 'center';
|
|
3168
3180
|
/**
|
|
3169
3181
|
* If `true`, the toggle is selected.
|
|
3170
3182
|
*/
|
|
@@ -3186,9 +3198,9 @@ export namespace Components {
|
|
|
3186
3198
|
*/
|
|
3187
3199
|
"justify": 'start' | 'end' | 'space-between';
|
|
3188
3200
|
/**
|
|
3189
|
-
* Where to place the label relative to the input. `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL. `"end"`: The label will appear to the right of the toggle in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
3201
|
+
* Where to place the label relative to the input. `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL. `"end"`: The label will appear to the right of the toggle in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the toggle regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
3190
3202
|
*/
|
|
3191
|
-
"labelPlacement": 'start' | 'end' | 'fixed';
|
|
3203
|
+
"labelPlacement": 'start' | 'end' | 'fixed' | 'stacked';
|
|
3192
3204
|
/**
|
|
3193
3205
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt components in to the modern form markup when they are using either the `aria-label` attribute or the default slot that contains the label text. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
3194
3206
|
*/
|
|
@@ -4608,6 +4620,10 @@ declare namespace LocalJSX {
|
|
|
4608
4620
|
"mode"?: "ios" | "md";
|
|
4609
4621
|
}
|
|
4610
4622
|
interface IonCheckbox {
|
|
4623
|
+
/**
|
|
4624
|
+
* How to control the alignment of the checkbox and label on the cross axis. `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
4625
|
+
*/
|
|
4626
|
+
"alignment"?: 'start' | 'center';
|
|
4611
4627
|
/**
|
|
4612
4628
|
* If `true`, the checkbox is selected.
|
|
4613
4629
|
*/
|
|
@@ -4629,9 +4645,9 @@ declare namespace LocalJSX {
|
|
|
4629
4645
|
*/
|
|
4630
4646
|
"justify"?: 'start' | 'end' | 'space-between';
|
|
4631
4647
|
/**
|
|
4632
|
-
* Where to place the label relative to the checkbox. `"start"`: The label will appear to the left of the checkbox in LTR and to the right in RTL. `"end"`: The label will appear to the right of the checkbox in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
4648
|
+
* Where to place the label relative to the checkbox. `"start"`: The label will appear to the left of the checkbox in LTR and to the right in RTL. `"end"`: The label will appear to the right of the checkbox in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the checkbox regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
4633
4649
|
*/
|
|
4634
|
-
"labelPlacement"?: 'start' | 'end' | 'fixed';
|
|
4650
|
+
"labelPlacement"?: 'start' | 'end' | 'fixed' | 'stacked';
|
|
4635
4651
|
/**
|
|
4636
4652
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt checkboxes in to the modern form markup when they are using either the `aria-label` attribute or have text in the default slot. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
4637
4653
|
*/
|
|
@@ -6127,6 +6143,10 @@ declare namespace LocalJSX {
|
|
|
6127
6143
|
"value"?: number;
|
|
6128
6144
|
}
|
|
6129
6145
|
interface IonRadio {
|
|
6146
|
+
/**
|
|
6147
|
+
* How to control the alignment of the radio and label on the cross axis. `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
6148
|
+
*/
|
|
6149
|
+
"alignment"?: 'start' | 'center';
|
|
6130
6150
|
/**
|
|
6131
6151
|
* The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics).
|
|
6132
6152
|
*/
|
|
@@ -6140,9 +6160,9 @@ declare namespace LocalJSX {
|
|
|
6140
6160
|
*/
|
|
6141
6161
|
"justify"?: 'start' | 'end' | 'space-between';
|
|
6142
6162
|
/**
|
|
6143
|
-
* Where to place the label relative to the radio. `"start"`: The label will appear to the left of the radio in LTR and to the right in RTL. `"end"`: The label will appear to the right of the radio in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
6163
|
+
* Where to place the label relative to the radio. `"start"`: The label will appear to the left of the radio in LTR and to the right in RTL. `"end"`: The label will appear to the right of the radio in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the radio regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
6144
6164
|
*/
|
|
6145
|
-
"labelPlacement"?: 'start' | 'end' | 'fixed';
|
|
6165
|
+
"labelPlacement"?: 'start' | 'end' | 'fixed' | 'stacked';
|
|
6146
6166
|
/**
|
|
6147
6167
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt components in to the modern form markup when they are using either the `aria-label` attribute or the default slot that contains the label text. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
6148
6168
|
*/
|
|
@@ -6212,9 +6232,9 @@ declare namespace LocalJSX {
|
|
|
6212
6232
|
*/
|
|
6213
6233
|
"label"?: string;
|
|
6214
6234
|
/**
|
|
6215
|
-
* Where to place the label relative to the range. `"start"`: The label will appear to the left of the range in LTR and to the right in RTL. `"end"`: The label will appear to the right of the range in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
6235
|
+
* Where to place the label relative to the range. `"start"`: The label will appear to the left of the range in LTR and to the right in RTL. `"end"`: The label will appear to the right of the range in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the range regardless of the direction.
|
|
6216
6236
|
*/
|
|
6217
|
-
"labelPlacement"?: 'start' | 'end' | 'fixed';
|
|
6237
|
+
"labelPlacement"?: 'start' | 'end' | 'fixed' | 'stacked';
|
|
6218
6238
|
/**
|
|
6219
6239
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt components in to the modern form markup when they are using either the `aria-label` attribute or the `label` property. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
6220
6240
|
*/
|
|
@@ -7143,6 +7163,10 @@ declare namespace LocalJSX {
|
|
|
7143
7163
|
"trigger"?: string | undefined;
|
|
7144
7164
|
}
|
|
7145
7165
|
interface IonToggle {
|
|
7166
|
+
/**
|
|
7167
|
+
* How to control the alignment of the toggle and label on the cross axis. ``"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
7168
|
+
*/
|
|
7169
|
+
"alignment"?: 'start' | 'center';
|
|
7146
7170
|
/**
|
|
7147
7171
|
* If `true`, the toggle is selected.
|
|
7148
7172
|
*/
|
|
@@ -7164,9 +7188,9 @@ declare namespace LocalJSX {
|
|
|
7164
7188
|
*/
|
|
7165
7189
|
"justify"?: 'start' | 'end' | 'space-between';
|
|
7166
7190
|
/**
|
|
7167
|
-
* Where to place the label relative to the input. `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL. `"end"`: The label will appear to the right of the toggle in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
7191
|
+
* Where to place the label relative to the input. `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL. `"end"`: The label will appear to the right of the toggle in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the toggle regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
7168
7192
|
*/
|
|
7169
|
-
"labelPlacement"?: 'start' | 'end' | 'fixed';
|
|
7193
|
+
"labelPlacement"?: 'start' | 'end' | 'fixed' | 'stacked';
|
|
7170
7194
|
/**
|
|
7171
7195
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt components in to the modern form markup when they are using either the `aria-label` attribute or the default slot that contains the label text. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
7172
7196
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import 'ionicons';
|
|
2
2
|
export { createAnimation } from './utils/animation/animation';
|
|
3
|
+
export { getIonPageElement } from './utils/transition';
|
|
3
4
|
export { iosTransitionAnimation } from './utils/transition/ios.transition';
|
|
4
5
|
export { mdTransitionAnimation } from './utils/transition/md.transition';
|
|
5
6
|
export { getTimeGivenProgression } from './utils/animation/cubic-bezier';
|
|
@@ -43,6 +43,7 @@ export {
|
|
|
43
43
|
AnimationKeyFrames,
|
|
44
44
|
AnimationLifecycle,
|
|
45
45
|
} from './utils/animation/animation-interface';
|
|
46
|
+
export { TransitionOptions } from './utils/transition';
|
|
46
47
|
export { HTMLIonOverlayElement, OverlayController, OverlayInterface } from './utils/overlays-interface';
|
|
47
48
|
export { Config, config } from './global/config';
|
|
48
49
|
export { Gesture, GestureConfig, GestureDetail } from './utils/gesture';
|