@ionic/core 7.5.8-dev.11701894917.1c1465bd → 7.5.8-dev.11702074871.1238046f
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/data.js +1 -1
- package/components/ion-datetime.js +39 -30
- package/components/ion-picker-column-option.d.ts +11 -0
- package/components/ion-picker-column-option.js +9 -0
- package/components/ion-picker-column.js +2 -2
- package/components/ion-picker-legacy-column.d.ts +11 -0
- package/components/ion-picker-legacy-column.js +9 -0
- package/components/{ion-picker-internal.d.ts → ion-picker-legacy.d.ts} +4 -4
- package/components/ion-picker-legacy.js +309 -0
- package/components/ion-picker.js +1 -309
- package/components/overlays.js +6 -3
- package/components/picker-column-option.js +122 -0
- package/components/picker-column.js +351 -322
- package/components/picker-column2.js +379 -0
- package/components/{picker-internal.js → picker.js} +29 -22
- package/dist/cjs/{data-36b9094e.js → data-e7526b58.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +1 -1
- package/dist/cjs/ion-alert.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime-button.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +29 -35
- package/dist/cjs/ion-loading.cjs.entry.js +1 -1
- package/dist/cjs/ion-menu_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +104 -0
- package/dist/cjs/{ion-picker-column-internal.cjs.entry.js → ion-picker-column.cjs.entry.js} +104 -87
- package/dist/cjs/{ion-picker-internal.cjs.entry.js → ion-picker.cjs.entry.js} +26 -19
- package/dist/cjs/ion-popover.cjs.entry.js +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-toast.cjs.entry.js +1 -1
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{overlays-2c6b1072.js → overlays-e8e05b0e.js} +6 -3
- package/dist/collection/collection-manifest.json +7 -6
- package/dist/collection/components/datetime/datetime.ios.css +8 -13
- package/dist/collection/components/datetime/datetime.js +19 -16
- package/dist/collection/components/datetime/datetime.md.css +8 -13
- package/dist/collection/components/datetime/test/datetime.e2e.js +2 -2
- package/dist/collection/components/datetime/test/disabled/datetime.spec.js +4 -4
- package/dist/collection/components/datetime/test/locale/datetime.e2e.js +2 -2
- package/dist/collection/components/datetime/test/minmax/datetime.e2e.js +6 -6
- package/dist/collection/components/datetime/test/prefer-wheel/datetime.e2e.js +43 -41
- package/dist/collection/components/datetime/test/presentation/datetime.e2e.js +1 -1
- package/dist/collection/components/datetime/test/readonly/datetime.e2e.js +2 -2
- package/dist/collection/components/datetime/test/values/datetime.e2e.js +15 -12
- package/dist/collection/components/datetime/utils/data.js +1 -1
- package/dist/collection/components/picker/picker.ios.css +113 -211
- package/dist/collection/components/picker/picker.js +468 -743
- package/dist/collection/components/picker/picker.md.css +109 -198
- package/dist/collection/components/{picker-internal/test/a11y/picker-internal.e2e.js → picker/test/a11y/picker.e2e.js} +2 -2
- package/dist/collection/components/picker/test/basic/picker.e2e.js +99 -13
- package/dist/collection/components/picker/test/custom/picker.e2e.js +85 -0
- package/dist/collection/components/{picker-internal/test/keyboard-entry/picker-internal.e2e.js → picker/test/keyboard-entry/picker.e2e.js} +63 -32
- package/dist/collection/components/{picker-column-internal/picker-column-internal.md.css → picker-column/picker-column.css} +96 -83
- package/dist/collection/components/picker-column/picker-column.js +497 -335
- package/dist/collection/components/{picker-column-internal/test/basic/picker-column-internal.e2e.js → picker-column/test/basic/picker-column.e2e.js} +8 -8
- package/dist/collection/components/picker-column/test/disabled/picker-column.e2e.js +91 -0
- package/dist/collection/components/picker-column/test/slots/picker-column.e2e.js +39 -0
- package/dist/collection/components/picker-column-option/picker-column-option.ios.css +87 -0
- package/dist/collection/components/picker-column-option/picker-column-option.js +173 -0
- package/dist/collection/components/{picker-column-internal/picker-column-internal.ios.css → picker-column-option/picker-column-option.md.css} +6 -53
- package/dist/collection/components/picker-column-option/test/a11y/picker-column-option.e2e.js +18 -0
- package/dist/collection/components/picker-column-option/test/basic/picker-column-option.e2e.js +37 -0
- package/dist/collection/components/picker-column-option/test/picker-column-option.spec.js +29 -0
- package/dist/collection/components/{picker-internal/picker-internal.md.css → picker-legacy/picker.ios.css} +207 -98
- package/dist/collection/components/picker-legacy/picker.js +817 -0
- package/dist/collection/components/{picker-internal/picker-internal.ios.css → picker-legacy/picker.md.css} +192 -100
- package/dist/collection/components/picker-legacy/test/basic/picker.e2e.js +25 -0
- package/dist/collection/components/{picker → picker-legacy}/test/is-open/picker.e2e.js +4 -4
- package/dist/collection/components/{picker → picker-legacy}/test/picker-id.spec.js +5 -5
- package/dist/collection/components/{picker → picker-legacy}/test/trigger/picker.e2e.js +1 -1
- package/dist/collection/components/picker-legacy-column/picker-column.js +419 -0
- package/dist/collection/components/{picker-column → picker-legacy-column}/test/picker-column-aria.spec.js +3 -3
- package/dist/collection/components/{picker-column → picker-legacy-column}/test/picker-column-dynamic.spec.js +2 -2
- package/dist/collection/components/{picker-column → picker-legacy-column}/test/picker-column.spec.js +2 -2
- package/dist/collection/components/{picker-column → picker-legacy-column}/test/standalone/picker-column.e2e.js +3 -3
- package/dist/collection/utils/overlays.js +6 -3
- package/dist/docs.json +493 -24
- package/dist/esm/{data-f5c75b4e.js → data-4b9508c9.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +1 -1
- package/dist/esm/ion-alert.entry.js +1 -1
- package/dist/esm/ion-datetime-button.entry.js +1 -1
- package/dist/esm/ion-datetime_3.entry.js +28 -34
- package/dist/esm/ion-loading.entry.js +1 -1
- package/dist/esm/ion-menu_3.entry.js +1 -1
- package/dist/esm/ion-modal.entry.js +1 -1
- package/dist/esm/ion-picker-column-option.entry.js +100 -0
- package/dist/esm/{ion-picker-column-internal.entry.js → ion-picker-column.entry.js} +104 -87
- package/dist/esm/{ion-picker-internal.entry.js → ion-picker.entry.js} +26 -19
- package/dist/esm/ion-popover.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +1 -1
- package/dist/esm/ion-toast.entry.js +1 -1
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{overlays-d23ea6e1.js → overlays-fbc5cab5.js} +6 -3
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.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-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +4 -0
- package/dist/esm-es5/ion-picker-column.entry.js +4 -0
- package/dist/esm-es5/ion-picker.entry.js +4 -0
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/overlays-fbc5cab5.js +4 -0
- package/dist/html.html-data.json +152 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-2f300cca.entry.js → p-21c3515a.entry.js} +1 -1
- package/dist/ionic/{p-1f620cd4.system.entry.js → p-26798a7b.system.entry.js} +1 -1
- package/dist/ionic/{p-e1e5afe1.system.entry.js → p-27bcbbc7.system.entry.js} +1 -1
- package/dist/ionic/p-36d194c5.entry.js +4 -0
- package/dist/ionic/{p-3b568d18.entry.js → p-4a081ea9.entry.js} +1 -1
- package/dist/ionic/{p-2f2293da.system.entry.js → p-4a36430f.system.entry.js} +1 -1
- package/dist/ionic/{p-fff7a57e.system.js → p-54dfc9b5.system.js} +1 -1
- package/dist/ionic/{p-60b386c9.system.entry.js → p-563c41f0.system.entry.js} +1 -1
- package/dist/ionic/p-5a1aac13.system.entry.js +4 -0
- package/dist/ionic/{p-27ea6f4e.entry.js → p-5d42b6b4.entry.js} +1 -1
- package/dist/ionic/{p-2dc43d20.entry.js → p-6b7c55cd.entry.js} +1 -1
- package/dist/ionic/{p-f78efbd1.entry.js → p-73190c5f.entry.js} +1 -1
- package/dist/ionic/{p-af19a573.entry.js → p-73aa7604.entry.js} +1 -1
- package/dist/ionic/{p-39a335b6.system.entry.js → p-8017aad2.system.entry.js} +1 -1
- package/dist/ionic/{p-1e57bd24.entry.js → p-846ee227.entry.js} +1 -1
- package/dist/ionic/p-8e42850f.entry.js +4 -0
- package/dist/ionic/p-8fa6583d.system.js +4 -0
- package/dist/ionic/{p-4df97e3c.system.entry.js → p-96dbbac1.system.entry.js} +1 -1
- package/dist/ionic/p-9f1b2214.entry.js +4 -0
- package/dist/ionic/{p-8780cc2a.entry.js → p-a8baa23e.entry.js} +1 -1
- package/dist/ionic/p-afcf4620.entry.js +4 -0
- package/dist/ionic/{p-ddb30596.entry.js → p-b133e9b4.entry.js} +1 -1
- package/dist/ionic/{p-3e3d06a6.system.entry.js → p-c18de88a.system.entry.js} +1 -1
- package/dist/ionic/p-c41bff4e.system.entry.js +4 -0
- package/dist/ionic/p-ca846d0b.system.entry.js +4 -0
- package/dist/ionic/p-ca8938f4.js +4 -0
- package/dist/ionic/p-e3584231.system.js +1 -1
- package/dist/ionic/{p-9eec42cc.system.entry.js → p-f910cc73.system.entry.js} +1 -1
- package/dist/ionic/{p-e3ad9607.system.entry.js → p-fbf3a689.system.entry.js} +1 -1
- package/dist/ionic/p-ffd5dba4.system.entry.js +4 -0
- package/dist/types/components/datetime/utils/data.d.ts +11 -7
- package/dist/types/components/picker/picker-interfaces.d.ts +8 -0
- package/dist/types/components/picker/picker.d.ts +74 -131
- package/dist/types/components/picker-column/picker-column-interfaces.d.ts +4 -0
- package/dist/types/components/picker-column/picker-column.d.ts +99 -39
- package/dist/types/components/picker-column-option/picker-column-option.d.ts +66 -0
- package/dist/types/components/picker-legacy/picker.d.ts +158 -0
- package/dist/types/components/picker-legacy-column/picker-column.d.ts +46 -0
- package/dist/types/components.d.ts +155 -122
- package/dist/types/interface.d.ts +1 -1
- package/dist/types/utils/config.d.ts +2 -2
- package/dist/types/utils/overlays.d.ts +5 -2
- package/hydrate/index.js +1486 -1362
- package/package.json +1 -1
- package/components/ion-picker-column-internal.d.ts +0 -11
- package/components/ion-picker-column-internal.js +0 -9
- package/components/ion-picker-internal.js +0 -9
- package/components/picker-column-internal.js +0 -390
- package/dist/collection/components/picker-column-internal/picker-column-internal.js +0 -565
- package/dist/collection/components/picker-column-internal/test/disabled/picker-column-internal.e2e.js +0 -162
- package/dist/collection/components/picker-internal/picker-internal.js +0 -544
- package/dist/collection/components/picker-internal/test/basic/picker-internal.e2e.js +0 -118
- package/dist/esm-es5/ion-picker-column-internal.entry.js +0 -4
- package/dist/esm-es5/ion-picker-internal.entry.js +0 -4
- package/dist/esm-es5/overlays-d23ea6e1.js +0 -4
- package/dist/ionic/p-60502e3f.system.entry.js +0 -4
- package/dist/ionic/p-67da080d.entry.js +0 -4
- package/dist/ionic/p-73ea8f82.system.entry.js +0 -4
- package/dist/ionic/p-80fa068e.entry.js +0 -4
- package/dist/ionic/p-ab11130c.system.js +0 -4
- package/dist/ionic/p-af16fe62.entry.js +0 -4
- package/dist/ionic/p-c14f8ac8.js +0 -4
- package/dist/ionic/p-cce9f61a.system.entry.js +0 -4
- package/dist/types/components/picker-column-internal/picker-column-internal-interfaces.d.ts +0 -5
- package/dist/types/components/picker-column-internal/picker-column-internal.d.ts +0 -102
- package/dist/types/components/picker-internal/picker-internal-interfaces.d.ts +0 -8
- package/dist/types/components/picker-internal/picker-internal.d.ts +0 -102
- /package/dist/collection/components/{picker-internal/picker-internal-interfaces.js → picker/picker-interfaces.js} +0 -0
- /package/dist/collection/components/{picker-column-internal/picker-column-internal-interfaces.js → picker-column/picker-column-interfaces.js} +0 -0
- /package/dist/collection/components/{picker → picker-legacy}/animations/ios.enter.js +0 -0
- /package/dist/collection/components/{picker → picker-legacy}/animations/ios.leave.js +0 -0
- /package/dist/collection/components/{picker → picker-legacy}/picker-interface.js +0 -0
- /package/dist/collection/components/{picker-column → picker-legacy-column}/picker-column.ios.css +0 -0
- /package/dist/collection/components/{picker-column → picker-legacy-column}/picker-column.md.css +0 -0
- /package/dist/collection/components/{picker-column → picker-legacy-column}/test/test.utils.js +0 -0
- /package/dist/esm-es5/{data-f5c75b4e.js → data-4b9508c9.js} +0 -0
- /package/dist/ionic/{p-2aea8b1e.js → p-368f5215.js} +0 -0
- /package/dist/ionic/{p-82e3d633.system.js → p-f58981c2.system.js} +0 -0
- /package/dist/types/components/{picker → picker-legacy}/animations/ios.enter.d.ts +0 -0
- /package/dist/types/components/{picker → picker-legacy}/animations/ios.leave.d.ts +0 -0
- /package/dist/types/components/{picker → picker-legacy}/picker-interface.d.ts +0 -0
- /package/dist/types/components/{picker-column → picker-legacy-column}/test/test.utils.d.ts +0 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import type { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import type { AnimationBuilder, OverlayInterface, FrameworkDelegate } from '../../interface';
|
|
3
|
+
import type { OverlayEventDetail } from '../../utils/overlays-interface';
|
|
4
|
+
import type { PickerButton, PickerColumn } from './picker-interface';
|
|
5
|
+
/**
|
|
6
|
+
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Picker implements ComponentInterface, OverlayInterface {
|
|
9
|
+
private readonly delegateController;
|
|
10
|
+
private readonly lockController;
|
|
11
|
+
private readonly triggerController;
|
|
12
|
+
private durationTimeout?;
|
|
13
|
+
lastFocus?: HTMLElement;
|
|
14
|
+
el: HTMLIonPickerLegacyElement;
|
|
15
|
+
presented: boolean;
|
|
16
|
+
/** @internal */
|
|
17
|
+
overlayIndex: number;
|
|
18
|
+
/** @internal */
|
|
19
|
+
delegate?: FrameworkDelegate;
|
|
20
|
+
/** @internal */
|
|
21
|
+
hasController: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* If `true`, the keyboard will be automatically dismissed when the overlay is presented.
|
|
24
|
+
*/
|
|
25
|
+
keyboardClose: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Animation to use when the picker is presented.
|
|
28
|
+
*/
|
|
29
|
+
enterAnimation?: AnimationBuilder;
|
|
30
|
+
/**
|
|
31
|
+
* Animation to use when the picker is dismissed.
|
|
32
|
+
*/
|
|
33
|
+
leaveAnimation?: AnimationBuilder;
|
|
34
|
+
/**
|
|
35
|
+
* Array of buttons to be displayed at the top of the picker.
|
|
36
|
+
*/
|
|
37
|
+
buttons: PickerButton[];
|
|
38
|
+
/**
|
|
39
|
+
* Array of columns to be displayed in the picker.
|
|
40
|
+
*/
|
|
41
|
+
columns: PickerColumn[];
|
|
42
|
+
/**
|
|
43
|
+
* Additional classes to apply for custom CSS. If multiple classes are
|
|
44
|
+
* provided they should be separated by spaces.
|
|
45
|
+
*/
|
|
46
|
+
cssClass?: string | string[];
|
|
47
|
+
/**
|
|
48
|
+
* Number of milliseconds to wait before dismissing the picker.
|
|
49
|
+
*/
|
|
50
|
+
duration: number;
|
|
51
|
+
/**
|
|
52
|
+
* If `true`, a backdrop will be displayed behind the picker.
|
|
53
|
+
*/
|
|
54
|
+
showBackdrop: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* If `true`, the picker will be dismissed when the backdrop is clicked.
|
|
57
|
+
*/
|
|
58
|
+
backdropDismiss: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* If `true`, the picker will animate.
|
|
61
|
+
*/
|
|
62
|
+
animated: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Additional attributes to pass to the picker.
|
|
65
|
+
*/
|
|
66
|
+
htmlAttributes?: {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* If `true`, the picker will open. If `false`, the picker will close.
|
|
71
|
+
* Use this if you need finer grained control over presentation, otherwise
|
|
72
|
+
* just use the pickerController or the `trigger` property.
|
|
73
|
+
* Note: `isOpen` will not automatically be set back to `false` when
|
|
74
|
+
* the picker dismisses. You will need to do that in your code.
|
|
75
|
+
*/
|
|
76
|
+
isOpen: boolean;
|
|
77
|
+
onIsOpenChange(newValue: boolean, oldValue: boolean): void;
|
|
78
|
+
/**
|
|
79
|
+
* An ID corresponding to the trigger element that
|
|
80
|
+
* causes the picker to open when clicked.
|
|
81
|
+
*/
|
|
82
|
+
trigger: string | undefined;
|
|
83
|
+
triggerChanged(): void;
|
|
84
|
+
/**
|
|
85
|
+
* Emitted after the picker has presented.
|
|
86
|
+
*/
|
|
87
|
+
didPresent: EventEmitter<void>;
|
|
88
|
+
/**
|
|
89
|
+
* Emitted before the picker has presented.
|
|
90
|
+
*/
|
|
91
|
+
willPresent: EventEmitter<void>;
|
|
92
|
+
/**
|
|
93
|
+
* Emitted before the picker has dismissed.
|
|
94
|
+
*/
|
|
95
|
+
willDismiss: EventEmitter<OverlayEventDetail>;
|
|
96
|
+
/**
|
|
97
|
+
* Emitted after the picker has dismissed.
|
|
98
|
+
*/
|
|
99
|
+
didDismiss: EventEmitter<OverlayEventDetail>;
|
|
100
|
+
/**
|
|
101
|
+
* Emitted after the picker has presented.
|
|
102
|
+
* Shorthand for ionPickerWillDismiss.
|
|
103
|
+
*/
|
|
104
|
+
didPresentShorthand: EventEmitter<void>;
|
|
105
|
+
/**
|
|
106
|
+
* Emitted before the picker has presented.
|
|
107
|
+
* Shorthand for ionPickerWillPresent.
|
|
108
|
+
*/
|
|
109
|
+
willPresentShorthand: EventEmitter<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Emitted before the picker has dismissed.
|
|
112
|
+
* Shorthand for ionPickerWillDismiss.
|
|
113
|
+
*/
|
|
114
|
+
willDismissShorthand: EventEmitter<OverlayEventDetail>;
|
|
115
|
+
/**
|
|
116
|
+
* Emitted after the picker has dismissed.
|
|
117
|
+
* Shorthand for ionPickerDidDismiss.
|
|
118
|
+
*/
|
|
119
|
+
didDismissShorthand: EventEmitter<OverlayEventDetail>;
|
|
120
|
+
connectedCallback(): void;
|
|
121
|
+
disconnectedCallback(): void;
|
|
122
|
+
componentWillLoad(): void;
|
|
123
|
+
componentDidLoad(): void;
|
|
124
|
+
/**
|
|
125
|
+
* Present the picker overlay after it has been created.
|
|
126
|
+
*/
|
|
127
|
+
present(): Promise<void>;
|
|
128
|
+
/**
|
|
129
|
+
* Dismiss the picker overlay after it has been presented.
|
|
130
|
+
*
|
|
131
|
+
* @param data Any data to emit in the dismiss events.
|
|
132
|
+
* @param role The role of the element that is dismissing the picker.
|
|
133
|
+
* This can be useful in a button handler for determining which button was
|
|
134
|
+
* clicked to dismiss the picker.
|
|
135
|
+
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
136
|
+
*/
|
|
137
|
+
dismiss(data?: any, role?: string): Promise<boolean>;
|
|
138
|
+
/**
|
|
139
|
+
* Returns a promise that resolves when the picker did dismiss.
|
|
140
|
+
*/
|
|
141
|
+
onDidDismiss<T = any>(): Promise<OverlayEventDetail<T>>;
|
|
142
|
+
/**
|
|
143
|
+
* Returns a promise that resolves when the picker will dismiss.
|
|
144
|
+
*/
|
|
145
|
+
onWillDismiss<T = any>(): Promise<OverlayEventDetail<T>>;
|
|
146
|
+
/**
|
|
147
|
+
* Get the column that matches the specified name.
|
|
148
|
+
*
|
|
149
|
+
* @param name The name of the column.
|
|
150
|
+
*/
|
|
151
|
+
getColumn(name: string): Promise<PickerColumn | undefined>;
|
|
152
|
+
private buttonClick;
|
|
153
|
+
private callButtonHandler;
|
|
154
|
+
private getSelected;
|
|
155
|
+
private onBackdropTap;
|
|
156
|
+
private dispatchCancelHandler;
|
|
157
|
+
render(): any;
|
|
158
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import type { PickerColumn } from '../picker-legacy/picker-interface';
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare class PickerColumnCmp implements ComponentInterface {
|
|
7
|
+
private bounceFrom;
|
|
8
|
+
private lastIndex?;
|
|
9
|
+
private minY;
|
|
10
|
+
private maxY;
|
|
11
|
+
private optHeight;
|
|
12
|
+
private rotateFactor;
|
|
13
|
+
private scaleFactor;
|
|
14
|
+
private velocity;
|
|
15
|
+
private y;
|
|
16
|
+
private optsEl?;
|
|
17
|
+
private gesture?;
|
|
18
|
+
private rafId?;
|
|
19
|
+
private tmrId?;
|
|
20
|
+
private noAnimate;
|
|
21
|
+
private colDidChange;
|
|
22
|
+
el: HTMLElement;
|
|
23
|
+
/**
|
|
24
|
+
* Emitted when the selected value has changed
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
ionPickerColChange: EventEmitter<PickerColumn>;
|
|
28
|
+
/** Picker column data */
|
|
29
|
+
col: PickerColumn;
|
|
30
|
+
protected colChanged(): void;
|
|
31
|
+
connectedCallback(): Promise<void>;
|
|
32
|
+
componentDidLoad(): void;
|
|
33
|
+
componentDidUpdate(): void;
|
|
34
|
+
disconnectedCallback(): void;
|
|
35
|
+
private emitColChange;
|
|
36
|
+
private setSelected;
|
|
37
|
+
private update;
|
|
38
|
+
private decelerate;
|
|
39
|
+
private indexForY;
|
|
40
|
+
private onStart;
|
|
41
|
+
private onMove;
|
|
42
|
+
private onEnd;
|
|
43
|
+
private refresh;
|
|
44
|
+
private onDomChange;
|
|
45
|
+
render(): any;
|
|
46
|
+
}
|
|
@@ -23,9 +23,9 @@ import { MenuChangeEventDetail, Side } from "./components/menu/menu-interface";
|
|
|
23
23
|
import { ModalBreakpointChangeEventDetail, ModalHandleBehavior } from "./components/modal/modal-interface";
|
|
24
24
|
import { NavComponent, NavComponentWithProps, NavOptions, RouterOutletOptions, SwipeGestureHandler, TransitionDoneFn, TransitionInstruction } from "./components/nav/nav-interface";
|
|
25
25
|
import { ViewController } from "./components/nav/view-controller";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
26
|
+
import { PickerChangeEventDetail } from "./components/picker/picker-interfaces";
|
|
27
|
+
import { PickerColumnChangeEventDetail, PickerColumnValue } from "./components/picker-column/picker-column-interfaces";
|
|
28
|
+
import { PickerButton, PickerColumn } from "./components/picker-legacy/picker-interface";
|
|
29
29
|
import { PopoverSize, PositionAlign, PositionReference, PositionSide, TriggerAction } from "./components/popover/popover-interface";
|
|
30
30
|
import { RadioGroupChangeEventDetail } from "./components/radio-group/radio-group-interface";
|
|
31
31
|
import { PinFormatter, RangeChangeEventDetail, RangeKnobMoveEndEventDetail, RangeKnobMoveStartEventDetail, RangeValue } from "./components/range/range-interface";
|
|
@@ -59,9 +59,9 @@ export { MenuChangeEventDetail, Side } from "./components/menu/menu-interface";
|
|
|
59
59
|
export { ModalBreakpointChangeEventDetail, ModalHandleBehavior } from "./components/modal/modal-interface";
|
|
60
60
|
export { NavComponent, NavComponentWithProps, NavOptions, RouterOutletOptions, SwipeGestureHandler, TransitionDoneFn, TransitionInstruction } from "./components/nav/nav-interface";
|
|
61
61
|
export { ViewController } from "./components/nav/view-controller";
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
62
|
+
export { PickerChangeEventDetail } from "./components/picker/picker-interfaces";
|
|
63
|
+
export { PickerColumnChangeEventDetail, PickerColumnValue } from "./components/picker-column/picker-column-interfaces";
|
|
64
|
+
export { PickerButton, PickerColumn } from "./components/picker-legacy/picker-interface";
|
|
65
65
|
export { PopoverSize, PositionAlign, PositionReference, PositionSide, TriggerAction } from "./components/popover/popover-interface";
|
|
66
66
|
export { RadioGroupChangeEventDetail } from "./components/radio-group/radio-group-interface";
|
|
67
67
|
export { PinFormatter, RangeChangeEventDetail, RangeKnobMoveEndEventDetail, RangeKnobMoveStartEventDetail, RangeValue } from "./components/range/range-interface";
|
|
@@ -1949,6 +1949,58 @@ export namespace Components {
|
|
|
1949
1949
|
"mode"?: "ios" | "md";
|
|
1950
1950
|
}
|
|
1951
1951
|
interface IonPicker {
|
|
1952
|
+
"exitInputMode": () => Promise<void>;
|
|
1953
|
+
/**
|
|
1954
|
+
* The mode determines which platform styles to use.
|
|
1955
|
+
*/
|
|
1956
|
+
"mode"?: "ios" | "md";
|
|
1957
|
+
}
|
|
1958
|
+
interface IonPickerColumn {
|
|
1959
|
+
/**
|
|
1960
|
+
* 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).
|
|
1961
|
+
*/
|
|
1962
|
+
"color"?: Color;
|
|
1963
|
+
/**
|
|
1964
|
+
* If `true`, the user cannot interact with the picker.
|
|
1965
|
+
*/
|
|
1966
|
+
"disabled": boolean;
|
|
1967
|
+
/**
|
|
1968
|
+
* The mode determines which platform styles to use.
|
|
1969
|
+
*/
|
|
1970
|
+
"mode"?: "ios" | "md";
|
|
1971
|
+
/**
|
|
1972
|
+
* If `true`, tapping the picker will reveal a number input keyboard that lets the user type in values for each picker column. This is useful when working with time pickers.
|
|
1973
|
+
*/
|
|
1974
|
+
"numericInput": boolean;
|
|
1975
|
+
"scrollActiveItemIntoView": (smooth?: boolean) => Promise<void>;
|
|
1976
|
+
/**
|
|
1977
|
+
* Sets focus on the scrollable container within the picker column. Use this method instead of the global `pickerColumn.focus()`.
|
|
1978
|
+
*/
|
|
1979
|
+
"setFocus": () => Promise<void>;
|
|
1980
|
+
/**
|
|
1981
|
+
* Sets the value prop and fires the ionChange event. This is used when we need to fire ionChange from user-generated events that cannot be caught with normal input/change event listeners.
|
|
1982
|
+
*/
|
|
1983
|
+
"setValue": (value: PickerColumnValue) => Promise<void>;
|
|
1984
|
+
/**
|
|
1985
|
+
* The selected option in the picker.
|
|
1986
|
+
*/
|
|
1987
|
+
"value"?: string | number;
|
|
1988
|
+
}
|
|
1989
|
+
interface IonPickerColumnOption {
|
|
1990
|
+
/**
|
|
1991
|
+
* 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).
|
|
1992
|
+
*/
|
|
1993
|
+
"color"?: Color;
|
|
1994
|
+
/**
|
|
1995
|
+
* If `true`, the user cannot interact with the picker column option.
|
|
1996
|
+
*/
|
|
1997
|
+
"disabled": boolean;
|
|
1998
|
+
/**
|
|
1999
|
+
* The text value of the option.
|
|
2000
|
+
*/
|
|
2001
|
+
"value"?: any | null;
|
|
2002
|
+
}
|
|
2003
|
+
interface IonPickerLegacy {
|
|
1952
2004
|
/**
|
|
1953
2005
|
* If `true`, the picker will animate.
|
|
1954
2006
|
*/
|
|
@@ -2032,50 +2084,12 @@ export namespace Components {
|
|
|
2032
2084
|
*/
|
|
2033
2085
|
"trigger": string | undefined;
|
|
2034
2086
|
}
|
|
2035
|
-
interface
|
|
2087
|
+
interface IonPickerLegacyColumn {
|
|
2036
2088
|
/**
|
|
2037
2089
|
* Picker column data
|
|
2038
2090
|
*/
|
|
2039
2091
|
"col": PickerColumn;
|
|
2040
2092
|
}
|
|
2041
|
-
interface IonPickerColumnInternal {
|
|
2042
|
-
/**
|
|
2043
|
-
* 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).
|
|
2044
|
-
*/
|
|
2045
|
-
"color"?: Color;
|
|
2046
|
-
/**
|
|
2047
|
-
* If `true`, the user cannot interact with the picker.
|
|
2048
|
-
*/
|
|
2049
|
-
"disabled": boolean;
|
|
2050
|
-
/**
|
|
2051
|
-
* A list of options to be displayed in the picker
|
|
2052
|
-
*/
|
|
2053
|
-
"items": PickerColumnItem[];
|
|
2054
|
-
/**
|
|
2055
|
-
* The mode determines which platform styles to use.
|
|
2056
|
-
*/
|
|
2057
|
-
"mode"?: "ios" | "md";
|
|
2058
|
-
/**
|
|
2059
|
-
* If `true`, tapping the picker will reveal a number input keyboard that lets the user type in values for each picker column. This is useful when working with time pickers.
|
|
2060
|
-
*/
|
|
2061
|
-
"numericInput": boolean;
|
|
2062
|
-
"scrollActiveItemIntoView": () => Promise<void>;
|
|
2063
|
-
/**
|
|
2064
|
-
* Sets the value prop and fires the ionChange event. This is used when we need to fire ionChange from user-generated events that cannot be caught with normal input/change event listeners.
|
|
2065
|
-
*/
|
|
2066
|
-
"setValue": (value?: string | number) => Promise<void>;
|
|
2067
|
-
/**
|
|
2068
|
-
* The selected option in the picker.
|
|
2069
|
-
*/
|
|
2070
|
-
"value"?: string | number;
|
|
2071
|
-
}
|
|
2072
|
-
interface IonPickerInternal {
|
|
2073
|
-
"exitInputMode": () => Promise<void>;
|
|
2074
|
-
/**
|
|
2075
|
-
* The mode determines which platform styles to use.
|
|
2076
|
-
*/
|
|
2077
|
-
"mode"?: "ios" | "md";
|
|
2078
|
-
}
|
|
2079
2093
|
interface IonPopover {
|
|
2080
2094
|
/**
|
|
2081
2095
|
* Describes how to align the popover content with the `reference` point. Defaults to `"center"` for `ios` mode, and `"start"` for `md` mode.
|
|
@@ -3330,13 +3344,13 @@ export interface IonPickerColumnCustomEvent<T> extends CustomEvent<T> {
|
|
|
3330
3344
|
detail: T;
|
|
3331
3345
|
target: HTMLIonPickerColumnElement;
|
|
3332
3346
|
}
|
|
3333
|
-
export interface
|
|
3347
|
+
export interface IonPickerLegacyCustomEvent<T> extends CustomEvent<T> {
|
|
3334
3348
|
detail: T;
|
|
3335
|
-
target:
|
|
3349
|
+
target: HTMLIonPickerLegacyElement;
|
|
3336
3350
|
}
|
|
3337
|
-
export interface
|
|
3351
|
+
export interface IonPickerLegacyColumnCustomEvent<T> extends CustomEvent<T> {
|
|
3338
3352
|
detail: T;
|
|
3339
|
-
target:
|
|
3353
|
+
target: HTMLIonPickerLegacyColumnElement;
|
|
3340
3354
|
}
|
|
3341
3355
|
export interface IonPopoverCustomEvent<T> extends CustomEvent<T> {
|
|
3342
3356
|
detail: T;
|
|
@@ -4020,14 +4034,7 @@ declare global {
|
|
|
4020
4034
|
new (): HTMLIonNoteElement;
|
|
4021
4035
|
};
|
|
4022
4036
|
interface HTMLIonPickerElementEventMap {
|
|
4023
|
-
"
|
|
4024
|
-
"ionPickerWillPresent": void;
|
|
4025
|
-
"ionPickerWillDismiss": OverlayEventDetail;
|
|
4026
|
-
"ionPickerDidDismiss": OverlayEventDetail;
|
|
4027
|
-
"didPresent": void;
|
|
4028
|
-
"willPresent": void;
|
|
4029
|
-
"willDismiss": OverlayEventDetail;
|
|
4030
|
-
"didDismiss": OverlayEventDetail;
|
|
4037
|
+
"ionInputModeChange": PickerChangeEventDetail;
|
|
4031
4038
|
}
|
|
4032
4039
|
interface HTMLIonPickerElement extends Components.IonPicker, HTMLStencilElement {
|
|
4033
4040
|
addEventListener<K extends keyof HTMLIonPickerElementEventMap>(type: K, listener: (this: HTMLIonPickerElement, ev: IonPickerCustomEvent<HTMLIonPickerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -4044,7 +4051,7 @@ declare global {
|
|
|
4044
4051
|
new (): HTMLIonPickerElement;
|
|
4045
4052
|
};
|
|
4046
4053
|
interface HTMLIonPickerColumnElementEventMap {
|
|
4047
|
-
"
|
|
4054
|
+
"ionChange": PickerColumnChangeEventDetail;
|
|
4048
4055
|
}
|
|
4049
4056
|
interface HTMLIonPickerColumnElement extends Components.IonPickerColumn, HTMLStencilElement {
|
|
4050
4057
|
addEventListener<K extends keyof HTMLIonPickerColumnElementEventMap>(type: K, listener: (this: HTMLIonPickerColumnElement, ev: IonPickerColumnCustomEvent<HTMLIonPickerColumnElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -4060,39 +4067,52 @@ declare global {
|
|
|
4060
4067
|
prototype: HTMLIonPickerColumnElement;
|
|
4061
4068
|
new (): HTMLIonPickerColumnElement;
|
|
4062
4069
|
};
|
|
4063
|
-
interface
|
|
4064
|
-
"ionChange": PickerColumnItem;
|
|
4070
|
+
interface HTMLIonPickerColumnOptionElement extends Components.IonPickerColumnOption, HTMLStencilElement {
|
|
4065
4071
|
}
|
|
4066
|
-
|
|
4067
|
-
|
|
4072
|
+
var HTMLIonPickerColumnOptionElement: {
|
|
4073
|
+
prototype: HTMLIonPickerColumnOptionElement;
|
|
4074
|
+
new (): HTMLIonPickerColumnOptionElement;
|
|
4075
|
+
};
|
|
4076
|
+
interface HTMLIonPickerLegacyElementEventMap {
|
|
4077
|
+
"ionPickerDidPresent": void;
|
|
4078
|
+
"ionPickerWillPresent": void;
|
|
4079
|
+
"ionPickerWillDismiss": OverlayEventDetail;
|
|
4080
|
+
"ionPickerDidDismiss": OverlayEventDetail;
|
|
4081
|
+
"didPresent": void;
|
|
4082
|
+
"willPresent": void;
|
|
4083
|
+
"willDismiss": OverlayEventDetail;
|
|
4084
|
+
"didDismiss": OverlayEventDetail;
|
|
4085
|
+
}
|
|
4086
|
+
interface HTMLIonPickerLegacyElement extends Components.IonPickerLegacy, HTMLStencilElement {
|
|
4087
|
+
addEventListener<K extends keyof HTMLIonPickerLegacyElementEventMap>(type: K, listener: (this: HTMLIonPickerLegacyElement, ev: IonPickerLegacyCustomEvent<HTMLIonPickerLegacyElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4068
4088
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4069
4089
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4070
4090
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4071
|
-
removeEventListener<K extends keyof
|
|
4091
|
+
removeEventListener<K extends keyof HTMLIonPickerLegacyElementEventMap>(type: K, listener: (this: HTMLIonPickerLegacyElement, ev: IonPickerLegacyCustomEvent<HTMLIonPickerLegacyElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
4072
4092
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4073
4093
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4074
4094
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4075
4095
|
}
|
|
4076
|
-
var
|
|
4077
|
-
prototype:
|
|
4078
|
-
new ():
|
|
4096
|
+
var HTMLIonPickerLegacyElement: {
|
|
4097
|
+
prototype: HTMLIonPickerLegacyElement;
|
|
4098
|
+
new (): HTMLIonPickerLegacyElement;
|
|
4079
4099
|
};
|
|
4080
|
-
interface
|
|
4081
|
-
"
|
|
4100
|
+
interface HTMLIonPickerLegacyColumnElementEventMap {
|
|
4101
|
+
"ionPickerColChange": PickerColumn;
|
|
4082
4102
|
}
|
|
4083
|
-
interface
|
|
4084
|
-
addEventListener<K extends keyof
|
|
4103
|
+
interface HTMLIonPickerLegacyColumnElement extends Components.IonPickerLegacyColumn, HTMLStencilElement {
|
|
4104
|
+
addEventListener<K extends keyof HTMLIonPickerLegacyColumnElementEventMap>(type: K, listener: (this: HTMLIonPickerLegacyColumnElement, ev: IonPickerLegacyColumnCustomEvent<HTMLIonPickerLegacyColumnElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4085
4105
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4086
4106
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4087
4107
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4088
|
-
removeEventListener<K extends keyof
|
|
4108
|
+
removeEventListener<K extends keyof HTMLIonPickerLegacyColumnElementEventMap>(type: K, listener: (this: HTMLIonPickerLegacyColumnElement, ev: IonPickerLegacyColumnCustomEvent<HTMLIonPickerLegacyColumnElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
4089
4109
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4090
4110
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4091
4111
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4092
4112
|
}
|
|
4093
|
-
var
|
|
4094
|
-
prototype:
|
|
4095
|
-
new ():
|
|
4113
|
+
var HTMLIonPickerLegacyColumnElement: {
|
|
4114
|
+
prototype: HTMLIonPickerLegacyColumnElement;
|
|
4115
|
+
new (): HTMLIonPickerLegacyColumnElement;
|
|
4096
4116
|
};
|
|
4097
4117
|
interface HTMLIonPopoverElementEventMap {
|
|
4098
4118
|
"ionPopoverDidPresent": void;
|
|
@@ -4647,8 +4667,9 @@ declare global {
|
|
|
4647
4667
|
"ion-note": HTMLIonNoteElement;
|
|
4648
4668
|
"ion-picker": HTMLIonPickerElement;
|
|
4649
4669
|
"ion-picker-column": HTMLIonPickerColumnElement;
|
|
4650
|
-
"ion-picker-column-
|
|
4651
|
-
"ion-picker-
|
|
4670
|
+
"ion-picker-column-option": HTMLIonPickerColumnOptionElement;
|
|
4671
|
+
"ion-picker-legacy": HTMLIonPickerLegacyElement;
|
|
4672
|
+
"ion-picker-legacy-column": HTMLIonPickerLegacyColumnElement;
|
|
4652
4673
|
"ion-popover": HTMLIonPopoverElement;
|
|
4653
4674
|
"ion-progress-bar": HTMLIonProgressBarElement;
|
|
4654
4675
|
"ion-radio": HTMLIonRadioElement;
|
|
@@ -6504,6 +6525,49 @@ declare namespace LocalJSX {
|
|
|
6504
6525
|
"mode"?: "ios" | "md";
|
|
6505
6526
|
}
|
|
6506
6527
|
interface IonPicker {
|
|
6528
|
+
/**
|
|
6529
|
+
* The mode determines which platform styles to use.
|
|
6530
|
+
*/
|
|
6531
|
+
"mode"?: "ios" | "md";
|
|
6532
|
+
"onIonInputModeChange"?: (event: IonPickerCustomEvent<PickerChangeEventDetail>) => void;
|
|
6533
|
+
}
|
|
6534
|
+
interface IonPickerColumn {
|
|
6535
|
+
/**
|
|
6536
|
+
* 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).
|
|
6537
|
+
*/
|
|
6538
|
+
"color"?: Color;
|
|
6539
|
+
/**
|
|
6540
|
+
* If `true`, the user cannot interact with the picker.
|
|
6541
|
+
*/
|
|
6542
|
+
"disabled"?: boolean;
|
|
6543
|
+
/**
|
|
6544
|
+
* The mode determines which platform styles to use.
|
|
6545
|
+
*/
|
|
6546
|
+
"mode"?: "ios" | "md";
|
|
6547
|
+
/**
|
|
6548
|
+
* Emitted when the value has changed.
|
|
6549
|
+
*/
|
|
6550
|
+
"onIonChange"?: (event: IonPickerColumnCustomEvent<PickerColumnChangeEventDetail>) => void;
|
|
6551
|
+
/**
|
|
6552
|
+
* The selected option in the picker.
|
|
6553
|
+
*/
|
|
6554
|
+
"value"?: string | number;
|
|
6555
|
+
}
|
|
6556
|
+
interface IonPickerColumnOption {
|
|
6557
|
+
/**
|
|
6558
|
+
* 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).
|
|
6559
|
+
*/
|
|
6560
|
+
"color"?: Color;
|
|
6561
|
+
/**
|
|
6562
|
+
* If `true`, the user cannot interact with the picker column option.
|
|
6563
|
+
*/
|
|
6564
|
+
"disabled"?: boolean;
|
|
6565
|
+
/**
|
|
6566
|
+
* The text value of the option.
|
|
6567
|
+
*/
|
|
6568
|
+
"value"?: any | null;
|
|
6569
|
+
}
|
|
6570
|
+
interface IonPickerLegacy {
|
|
6507
6571
|
/**
|
|
6508
6572
|
* If `true`, the picker will animate.
|
|
6509
6573
|
*/
|
|
@@ -6555,35 +6619,35 @@ declare namespace LocalJSX {
|
|
|
6555
6619
|
/**
|
|
6556
6620
|
* Emitted after the picker has dismissed. Shorthand for ionPickerDidDismiss.
|
|
6557
6621
|
*/
|
|
6558
|
-
"onDidDismiss"?: (event:
|
|
6622
|
+
"onDidDismiss"?: (event: IonPickerLegacyCustomEvent<OverlayEventDetail>) => void;
|
|
6559
6623
|
/**
|
|
6560
6624
|
* Emitted after the picker has presented. Shorthand for ionPickerWillDismiss.
|
|
6561
6625
|
*/
|
|
6562
|
-
"onDidPresent"?: (event:
|
|
6626
|
+
"onDidPresent"?: (event: IonPickerLegacyCustomEvent<void>) => void;
|
|
6563
6627
|
/**
|
|
6564
6628
|
* Emitted after the picker has dismissed.
|
|
6565
6629
|
*/
|
|
6566
|
-
"onIonPickerDidDismiss"?: (event:
|
|
6630
|
+
"onIonPickerDidDismiss"?: (event: IonPickerLegacyCustomEvent<OverlayEventDetail>) => void;
|
|
6567
6631
|
/**
|
|
6568
6632
|
* Emitted after the picker has presented.
|
|
6569
6633
|
*/
|
|
6570
|
-
"onIonPickerDidPresent"?: (event:
|
|
6634
|
+
"onIonPickerDidPresent"?: (event: IonPickerLegacyCustomEvent<void>) => void;
|
|
6571
6635
|
/**
|
|
6572
6636
|
* Emitted before the picker has dismissed.
|
|
6573
6637
|
*/
|
|
6574
|
-
"onIonPickerWillDismiss"?: (event:
|
|
6638
|
+
"onIonPickerWillDismiss"?: (event: IonPickerLegacyCustomEvent<OverlayEventDetail>) => void;
|
|
6575
6639
|
/**
|
|
6576
6640
|
* Emitted before the picker has presented.
|
|
6577
6641
|
*/
|
|
6578
|
-
"onIonPickerWillPresent"?: (event:
|
|
6642
|
+
"onIonPickerWillPresent"?: (event: IonPickerLegacyCustomEvent<void>) => void;
|
|
6579
6643
|
/**
|
|
6580
6644
|
* Emitted before the picker has dismissed. Shorthand for ionPickerWillDismiss.
|
|
6581
6645
|
*/
|
|
6582
|
-
"onWillDismiss"?: (event:
|
|
6646
|
+
"onWillDismiss"?: (event: IonPickerLegacyCustomEvent<OverlayEventDetail>) => void;
|
|
6583
6647
|
/**
|
|
6584
6648
|
* Emitted before the picker has presented. Shorthand for ionPickerWillPresent.
|
|
6585
6649
|
*/
|
|
6586
|
-
"onWillPresent"?: (event:
|
|
6650
|
+
"onWillPresent"?: (event: IonPickerLegacyCustomEvent<void>) => void;
|
|
6587
6651
|
/**
|
|
6588
6652
|
* If `true`, a backdrop will be displayed behind the picker.
|
|
6589
6653
|
*/
|
|
@@ -6593,45 +6657,12 @@ declare namespace LocalJSX {
|
|
|
6593
6657
|
*/
|
|
6594
6658
|
"trigger"?: string | undefined;
|
|
6595
6659
|
}
|
|
6596
|
-
interface
|
|
6660
|
+
interface IonPickerLegacyColumn {
|
|
6597
6661
|
/**
|
|
6598
6662
|
* Picker column data
|
|
6599
6663
|
*/
|
|
6600
6664
|
"col": PickerColumn;
|
|
6601
6665
|
}
|
|
6602
|
-
interface IonPickerColumnInternal {
|
|
6603
|
-
/**
|
|
6604
|
-
* 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).
|
|
6605
|
-
*/
|
|
6606
|
-
"color"?: Color;
|
|
6607
|
-
/**
|
|
6608
|
-
* If `true`, the user cannot interact with the picker.
|
|
6609
|
-
*/
|
|
6610
|
-
"disabled"?: boolean;
|
|
6611
|
-
/**
|
|
6612
|
-
* A list of options to be displayed in the picker
|
|
6613
|
-
*/
|
|
6614
|
-
"items"?: PickerColumnItem[];
|
|
6615
|
-
/**
|
|
6616
|
-
* The mode determines which platform styles to use.
|
|
6617
|
-
*/
|
|
6618
|
-
"mode"?: "ios" | "md";
|
|
6619
|
-
/**
|
|
6620
|
-
* Emitted when the value has changed.
|
|
6621
|
-
*/
|
|
6622
|
-
"onIonChange"?: (event: IonPickerColumnInternalCustomEvent<PickerColumnItem>) => void;
|
|
6623
|
-
/**
|
|
6624
|
-
* The selected option in the picker.
|
|
6625
|
-
*/
|
|
6626
|
-
"value"?: string | number;
|
|
6627
|
-
}
|
|
6628
|
-
interface IonPickerInternal {
|
|
6629
|
-
/**
|
|
6630
|
-
* The mode determines which platform styles to use.
|
|
6631
|
-
*/
|
|
6632
|
-
"mode"?: "ios" | "md";
|
|
6633
|
-
"onIonInputModeChange"?: (event: IonPickerInternalCustomEvent<PickerInternalChangeEventDetail>) => void;
|
|
6634
|
-
}
|
|
6635
6666
|
interface IonPopover {
|
|
6636
6667
|
/**
|
|
6637
6668
|
* Describes how to align the popover content with the `reference` point. Defaults to `"center"` for `ios` mode, and `"start"` for `md` mode.
|
|
@@ -7926,8 +7957,9 @@ declare namespace LocalJSX {
|
|
|
7926
7957
|
"ion-note": IonNote;
|
|
7927
7958
|
"ion-picker": IonPicker;
|
|
7928
7959
|
"ion-picker-column": IonPickerColumn;
|
|
7929
|
-
"ion-picker-column-
|
|
7930
|
-
"ion-picker-
|
|
7960
|
+
"ion-picker-column-option": IonPickerColumnOption;
|
|
7961
|
+
"ion-picker-legacy": IonPickerLegacy;
|
|
7962
|
+
"ion-picker-legacy-column": IonPickerLegacyColumn;
|
|
7931
7963
|
"ion-popover": IonPopover;
|
|
7932
7964
|
"ion-progress-bar": IonProgressBar;
|
|
7933
7965
|
"ion-radio": IonRadio;
|
|
@@ -8023,8 +8055,9 @@ declare module "@stencil/core" {
|
|
|
8023
8055
|
"ion-note": LocalJSX.IonNote & JSXBase.HTMLAttributes<HTMLIonNoteElement>;
|
|
8024
8056
|
"ion-picker": LocalJSX.IonPicker & JSXBase.HTMLAttributes<HTMLIonPickerElement>;
|
|
8025
8057
|
"ion-picker-column": LocalJSX.IonPickerColumn & JSXBase.HTMLAttributes<HTMLIonPickerColumnElement>;
|
|
8026
|
-
"ion-picker-column-
|
|
8027
|
-
"ion-picker-
|
|
8058
|
+
"ion-picker-column-option": LocalJSX.IonPickerColumnOption & JSXBase.HTMLAttributes<HTMLIonPickerColumnOptionElement>;
|
|
8059
|
+
"ion-picker-legacy": LocalJSX.IonPickerLegacy & JSXBase.HTMLAttributes<HTMLIonPickerLegacyElement>;
|
|
8060
|
+
"ion-picker-legacy-column": LocalJSX.IonPickerLegacyColumn & JSXBase.HTMLAttributes<HTMLIonPickerLegacyColumnElement>;
|
|
8028
8061
|
"ion-popover": LocalJSX.IonPopover & JSXBase.HTMLAttributes<HTMLIonPopoverElement>;
|
|
8029
8062
|
"ion-progress-bar": LocalJSX.IonProgressBar & JSXBase.HTMLAttributes<HTMLIonProgressBarElement>;
|
|
8030
8063
|
"ion-radio": LocalJSX.IonRadio & JSXBase.HTMLAttributes<HTMLIonRadioElement>;
|
|
@@ -18,7 +18,7 @@ export { LoadingOptions } from './components/loading/loading-interface';
|
|
|
18
18
|
export { MenuCustomEvent, MenuI, MenuControllerI } from './components/menu/menu-interface';
|
|
19
19
|
export { ModalOptions, ModalCustomEvent } from './components/modal/modal-interface';
|
|
20
20
|
export { NavDirection, NavCustomEvent } from './components/nav/nav-interface';
|
|
21
|
-
export { PickerOptions, PickerColumnOption } from './components/picker/picker-interface';
|
|
21
|
+
export { PickerOptions, PickerColumnOption } from './components/picker-legacy/picker-interface';
|
|
22
22
|
export { PopoverOptions } from './components/popover/popover-interface';
|
|
23
23
|
export { RadioGroupCustomEvent } from './components/radio-group/radio-group-interface';
|
|
24
24
|
export { RangeCustomEvent, PinFormatter } from './components/range/range-interface';
|
|
@@ -117,7 +117,7 @@ export interface IonicConfig {
|
|
|
117
117
|
*/
|
|
118
118
|
toastEnter?: AnimationBuilder;
|
|
119
119
|
/**
|
|
120
|
-
* Provides a custom enter animation for all `ion-picker`, overriding the default "animation".
|
|
120
|
+
* Provides a custom enter animation for all `ion-picker-legacy`, overriding the default "animation".
|
|
121
121
|
*/
|
|
122
122
|
pickerEnter?: AnimationBuilder;
|
|
123
123
|
/**
|
|
@@ -145,7 +145,7 @@ export interface IonicConfig {
|
|
|
145
145
|
*/
|
|
146
146
|
toastLeave?: AnimationBuilder;
|
|
147
147
|
/**
|
|
148
|
-
* Provides a custom leave animation for all `ion-picker`, overriding the default "animation".
|
|
148
|
+
* Provides a custom leave animation for all `ion-picker-legacy`, overriding the default "animation".
|
|
149
149
|
*/
|
|
150
150
|
pickerLeave?: AnimationBuilder;
|
|
151
151
|
/**
|