@ionic/core 8.8.12-dev.11781813448.16e7a064 → 8.8.12-dev.11782342444.186b6e9c
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/index.js +1 -1
- package/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-back-button.js +1 -1
- package/components/ion-button.js +1 -1
- package/components/ion-card.js +1 -1
- package/components/ion-chip.js +1 -1
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-fab-button.js +1 -1
- package/components/ion-infinite-scroll-content.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-input.js +1 -1
- package/components/ion-item-option.js +1 -1
- package/components/ion-item.js +1 -1
- package/components/ion-loading.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-modal.js +1 -1
- package/components/ion-popover.js +1 -1
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-radio.js +1 -1
- package/components/ion-range.js +1 -1
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-ripple-effect.js +1 -1
- package/components/ion-router-link.js +1 -1
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +1 -1
- package/components/ion-segment-button.js +1 -1
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +1 -1
- package/components/ion-segment.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select-option.js +1 -1
- package/components/ion-select-popover.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-skeleton-text.js +1 -1
- package/components/ion-spinner.js +1 -1
- package/components/ion-split-pane.js +1 -1
- package/components/ion-tab-bar.js +1 -1
- package/components/ion-tab-button.js +1 -1
- package/components/ion-tab.js +1 -1
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +1 -1
- package/components/ion-textarea.js +1 -1
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +1 -1
- package/components/ion-toast.js +1 -1
- package/components/ion-toggle.js +1 -1
- package/components/ion-toolbar.js +1 -1
- package/components/p-BSQPZ79H.js +4 -0
- package/components/p-BwKpO3Is.js +4 -0
- package/components/p-C6x7QJKS.js +4 -0
- package/components/p-CHzfYZbv.js +4 -0
- package/components/p-CMpqV7Co.js +4 -0
- package/components/p-CWo79Ftj.js +4 -0
- package/components/p-CgGiBa26.js +4 -0
- package/components/p-D4h1H_hh.js +4 -0
- package/components/{p-C2lKgrXx.js → p-DEBD4LvH.js} +1 -1
- package/components/{p-BSEgsdFI.js → p-DhkITZ-y.js} +1 -1
- package/components/p-DiCu-HwG.js +4 -0
- package/components/{p-5bE_Wz4Y.js → p-DpV-p5Xs.js} +1 -1
- package/components/{p-Cfx4M1Bn.js → p-Dz74mwlk.js} +1 -1
- package/components/p-VlRjwhIK.js +4 -0
- package/components/{p-BLmJ0zRm.js → p-XJWMAP8m.js} +1 -1
- package/components/{p-B60hm8Qv.js → p-r0aq7dpt.js} +1 -1
- package/components/p-uTR_dEqg.js +4 -0
- package/components/{p-rCa2eL0j.js → p-wk2QqrAo.js} +1 -1
- package/dist/cjs/config-DWdFbSNK.js +35 -0
- package/dist/cjs/index-C147NqgL.js +414 -0
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/ion-action-sheet.cjs.entry.js +27 -7
- package/dist/cjs/ion-alert.cjs.entry.js +64 -25
- package/dist/cjs/ion-app_8.cjs.entry.js +23 -9
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +1 -1
- package/dist/cjs/{ion-datetime_3.cjs.entry.js → ion-datetime.cjs.entry.js} +1 -639
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +3 -2
- package/dist/cjs/ion-input.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +10 -5
- package/dist/cjs/ion-menu_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-modal.cjs.entry.js +21 -10
- package/dist/cjs/ion-popover.cjs.entry.js +9 -5
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-range.cjs.entry.js +3 -3
- package/dist/cjs/ion-refresher_2.cjs.entry.js +6 -5
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +5 -5
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-select-modal.cjs.entry.js +84 -30
- package/dist/cjs/ion-select_3.cjs.entry.js +406 -48
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +6 -5
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/overlay-control-label-D2sdL2O8.js +50 -0
- package/dist/cjs/{overlays-TbKsuC-K.js → overlays-DSmSrd_4.js} +26 -7
- package/dist/cjs/select-option-render-BUmJxlqW.js +116 -0
- package/dist/collection/collection-manifest.json +6 -10
- package/dist/collection/components/action-sheet/action-sheet.ios.css +229 -2
- package/dist/collection/components/action-sheet/action-sheet.js +24 -5
- package/dist/collection/components/action-sheet/action-sheet.md.css +175 -2
- package/dist/collection/components/alert/alert.ios.css +280 -10
- package/dist/collection/components/alert/alert.js +59 -21
- package/dist/collection/components/alert/alert.md.css +269 -20
- package/dist/collection/components/input/input.js +8 -8
- package/dist/collection/components/loading/loading.js +7 -3
- package/dist/collection/components/modal/modal.js +23 -12
- package/dist/collection/components/popover/popover.ios.css +15 -0
- package/dist/collection/components/popover/popover.js +7 -3
- package/dist/collection/components/popover/popover.md.css +15 -0
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +4 -4
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.js +38 -5
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +9 -9
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.js +2 -2
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.ios.css +33 -0
- package/dist/collection/components/select/select.js +323 -16
- package/dist/collection/components/select/select.md.css +33 -0
- package/dist/collection/components/select-modal/select-modal.ios.css +219 -0
- package/dist/collection/components/select-modal/select-modal.js +79 -26
- package/dist/collection/components/select-modal/select-modal.md.css +165 -0
- package/dist/collection/components/select-option/select-option.js +65 -1
- package/dist/collection/components/select-popover/select-popover.ios.css +219 -0
- package/dist/collection/components/select-popover/select-popover.js +78 -26
- package/dist/collection/components/select-popover/select-popover.md.css +165 -0
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/overlay-control-label.js +45 -0
- package/dist/collection/utils/overlays.js +25 -6
- package/dist/collection/utils/sanitization/index.js +255 -14
- package/dist/collection/utils/select-option-render.js +111 -0
- package/dist/docs.json +479 -1175
- package/dist/esm/config-BwKpO3Is.js +31 -0
- package/dist/esm/{index-DV3sJJW8.js → index-AlrZKoWR.js} +1 -1
- package/dist/esm/index-CtAGDdQq.js +409 -0
- package/dist/esm/index.js +3 -2
- package/dist/esm/ion-accordion_2.entry.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +27 -7
- package/dist/esm/ion-alert.entry.js +63 -24
- package/dist/esm/ion-app_8.entry.js +23 -9
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-back-button.entry.js +1 -1
- package/dist/esm/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +1 -1
- package/dist/esm/{ion-datetime_3.entry.js → ion-datetime.entry.js} +5 -641
- package/dist/esm/ion-fab_3.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -1
- package/dist/esm/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm/ion-input.entry.js +5 -5
- package/dist/esm/ion-item_8.entry.js +3 -3
- package/dist/esm/ion-loading.entry.js +9 -4
- package/dist/esm/ion-menu_3.entry.js +2 -2
- package/dist/esm/ion-modal.entry.js +21 -10
- package/dist/esm/ion-popover.entry.js +9 -5
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +3 -3
- package/dist/esm/ion-range.entry.js +3 -3
- package/dist/esm/ion-refresher_2.entry.js +5 -4
- package/dist/esm/ion-reorder_2.entry.js +3 -3
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +6 -6
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +4 -4
- package/dist/esm/ion-select-modal.entry.js +84 -30
- package/dist/esm/ion-select_3.entry.js +409 -51
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +5 -4
- package/dist/esm/ion-toggle.entry.js +4 -4
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/overlay-control-label-BSQPZ79H.js +47 -0
- package/dist/esm/{overlays-TbiM4mdr.js → overlays-DLNOHWNc.js} +26 -7
- package/dist/esm/select-option-render-CZcvbJ--.js +114 -0
- package/dist/html.html-data.json +50 -78
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-0feac19e.entry.js +4 -0
- package/dist/ionic/{p-8fce95d5.entry.js → p-14095ba5.entry.js} +1 -1
- package/dist/ionic/p-1c5a5a59.entry.js +4 -0
- package/dist/ionic/{p-3a126bca.entry.js → p-259d0d98.entry.js} +1 -1
- package/dist/ionic/{p-fabcce6c.entry.js → p-341032b3.entry.js} +1 -1
- package/dist/ionic/{p-3a7d1e91.entry.js → p-4502a274.entry.js} +1 -1
- package/dist/ionic/p-4621c387.entry.js +4 -0
- package/dist/ionic/p-4bb3eb60.entry.js +4 -0
- package/dist/ionic/{p-874b4bd8.entry.js → p-51cd1643.entry.js} +1 -1
- package/dist/ionic/p-5be4fdc3.entry.js +4 -0
- package/dist/ionic/p-5c3ec490.entry.js +4 -0
- package/dist/ionic/p-5d1ac2c7.entry.js +4 -0
- package/dist/ionic/p-5x6vmGTf.js +4 -0
- package/dist/ionic/{p-3ae5f277.entry.js → p-627fabd9.entry.js} +1 -1
- package/dist/ionic/{p-e0be05c5.entry.js → p-629e4703.entry.js} +1 -1
- package/dist/ionic/p-74c540f5.entry.js +4 -0
- package/dist/ionic/{p-5d1da0a2.entry.js → p-76e92a84.entry.js} +1 -1
- package/dist/ionic/p-79a36078.entry.js +4 -0
- package/dist/ionic/{p-9f1103ce.entry.js → p-7a37b3ce.entry.js} +1 -1
- package/dist/ionic/{p-3353c229.entry.js → p-80b44b3c.entry.js} +1 -1
- package/dist/ionic/p-8d624ee5.entry.js +4 -0
- package/dist/ionic/p-8e00858b.entry.js +4 -0
- package/dist/ionic/{p-390ca786.entry.js → p-9177f4ac.entry.js} +1 -1
- package/dist/ionic/{p-DV3sJJW8.js → p-AlrZKoWR.js} +1 -1
- package/dist/ionic/p-BSQPZ79H.js +4 -0
- package/dist/ionic/p-BwKpO3Is.js +4 -0
- package/dist/ionic/p-Cg5-OQYy.js +4 -0
- package/dist/ionic/p-D3I30-jC.js +4 -0
- package/dist/ionic/{p-4858af1f.entry.js → p-a5213260.entry.js} +1 -1
- package/dist/ionic/{p-37e720da.entry.js → p-a7628bc7.entry.js} +1 -1
- package/dist/ionic/p-aedf1108.entry.js +4 -0
- package/dist/ionic/{p-ef4c3bee.entry.js → p-b1599fca.entry.js} +1 -1
- package/dist/ionic/{p-84d5ce05.entry.js → p-b9ac1fe0.entry.js} +1 -1
- package/dist/ionic/p-c11135d4.entry.js +4 -0
- package/dist/ionic/p-c4156e73.entry.js +4 -0
- package/dist/ionic/{p-94f2a736.entry.js → p-c93553d2.entry.js} +1 -1
- package/dist/ionic/p-ce7992c4.entry.js +4 -0
- package/dist/ionic/{p-75dc25ba.entry.js → p-d2c7f046.entry.js} +1 -1
- package/dist/ionic/{p-c4d8641b.entry.js → p-d8387b99.entry.js} +1 -1
- package/dist/ionic/{p-9a65ac7f.entry.js → p-db1b6738.entry.js} +1 -1
- package/dist/ionic/p-ed797c72.entry.js +4 -0
- package/dist/ionic/{p-8eb8ee76.entry.js → p-ef93ca92.entry.js} +1 -1
- package/dist/ionic/p-f09f9642.entry.js +4 -0
- package/dist/ionic/p-f1c06f82.entry.js +4 -0
- package/dist/ionic/{p-0fa9c382.entry.js → p-fe4aa1db.entry.js} +1 -1
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +11 -4
- package/dist/types/components/router-outlet/router-outlet.d.ts +7 -0
- package/dist/types/components/searchbar/searchbar.d.ts +1 -1
- package/dist/types/components/select/select-interface.d.ts +31 -0
- package/dist/types/components/select/select.d.ts +18 -0
- package/dist/types/components/select-option/select-option.d.ts +41 -0
- package/dist/types/components.d.ts +58 -286
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interface.d.ts +0 -1
- package/dist/types/utils/config.d.ts +0 -8
- package/dist/types/utils/overlay-control-label.d.ts +32 -0
- package/dist/types/utils/overlays.d.ts +11 -9
- package/dist/types/utils/sanitization/index.d.ts +54 -2
- package/dist/types/utils/select-option-render.d.ts +53 -0
- package/hydrate/index.js +1376 -1141
- package/hydrate/index.mjs +1376 -1141
- package/package.json +37 -5
- package/components/ion-picker-legacy-column.d.ts +0 -11
- package/components/ion-picker-legacy-column.js +0 -4
- package/components/ion-picker-legacy.d.ts +0 -11
- package/components/ion-picker-legacy.js +0 -4
- package/components/p-0NRupjzW.js +0 -4
- package/components/p-Bth-EzJ0.js +0 -4
- package/components/p-CU5rbWAW.js +0 -4
- package/components/p-DDWp95gH.js +0 -4
- package/components/p-W9CZ2mWX.js +0 -4
- package/components/p-dhLYXa7A.js +0 -4
- package/components/p-k_E4tX5Z.js +0 -4
- package/components/p-nQi4oKcG.js +0 -4
- package/components/p-uVRyUM3z.js +0 -4
- package/dist/cjs/config-xninhj0J.js +0 -201
- package/dist/collection/components/picker-legacy/animations/ios.enter.js +0 -27
- package/dist/collection/components/picker-legacy/animations/ios.leave.js +0 -23
- package/dist/collection/components/picker-legacy/picker-interface.js +0 -1
- package/dist/collection/components/picker-legacy/picker.ios.css +0 -300
- package/dist/collection/components/picker-legacy/picker.js +0 -890
- package/dist/collection/components/picker-legacy/picker.md.css +0 -287
- package/dist/collection/components/picker-legacy-column/picker-column.ios.css +0 -231
- package/dist/collection/components/picker-legacy-column/picker-column.js +0 -422
- package/dist/collection/components/picker-legacy-column/picker-column.md.css +0 -222
- package/dist/collection/components/picker-legacy-column/test/test.utils.js +0 -43
- package/dist/esm/config-DQCONYYp.js +0 -195
- package/dist/ionic/p-00dbb17e.entry.js +0 -4
- package/dist/ionic/p-01f81ea5.entry.js +0 -4
- package/dist/ionic/p-0d005398.entry.js +0 -4
- package/dist/ionic/p-20b1a044.entry.js +0 -4
- package/dist/ionic/p-21eb76d5.entry.js +0 -4
- package/dist/ionic/p-27d30585.entry.js +0 -4
- package/dist/ionic/p-2bb2cb18.entry.js +0 -4
- package/dist/ionic/p-2f55dc1a.entry.js +0 -4
- package/dist/ionic/p-30bf9737.entry.js +0 -4
- package/dist/ionic/p-3a541154.entry.js +0 -4
- package/dist/ionic/p-485fda23.entry.js +0 -4
- package/dist/ionic/p-4baa5b82.entry.js +0 -4
- package/dist/ionic/p-4dc1c33c.entry.js +0 -4
- package/dist/ionic/p-5fc7e542.entry.js +0 -4
- package/dist/ionic/p-DzWaWHGc.js +0 -4
- package/dist/ionic/p-a21add2f.entry.js +0 -4
- package/dist/ionic/p-aa5d6b8f.entry.js +0 -4
- package/dist/ionic/p-e847a888.entry.js +0 -4
- package/dist/ionic/p-ec090e0a.entry.js +0 -4
- package/dist/ionic/p-xOfi7-Zn.js +0 -4
- package/dist/types/components/picker-legacy/animations/ios.enter.d.ts +0 -5
- package/dist/types/components/picker-legacy/animations/ios.leave.d.ts +0 -5
- package/dist/types/components/picker-legacy/picker-interface.d.ts +0 -52
- package/dist/types/components/picker-legacy/picker.d.ts +0 -158
- package/dist/types/components/picker-legacy-column/picker-column.d.ts +0 -46
- package/dist/types/components/picker-legacy-column/test/test.utils.d.ts +0 -9
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { ActionSheetButton } from '../action-sheet/action-sheet-interface';
|
|
2
|
+
import type { AlertInput } from '../alert/alert-interface';
|
|
3
|
+
import type { SelectPopoverOption } from '../select-popover/select-popover-interface';
|
|
1
4
|
export type SelectInterface = 'action-sheet' | 'popover' | 'alert' | 'modal';
|
|
2
5
|
export type SelectCompareFn = (currentValue: any, compareValue: any) => boolean;
|
|
3
6
|
export interface SelectChangeEventDetail<T = any> {
|
|
@@ -7,3 +10,31 @@ export interface SelectCustomEvent<T = any> extends CustomEvent {
|
|
|
7
10
|
detail: SelectChangeEventDetail<T>;
|
|
8
11
|
target: HTMLIonSelectElement;
|
|
9
12
|
}
|
|
13
|
+
export interface SelectActionSheetButton extends Omit<ActionSheetButton, 'text'>, RichContentOption {
|
|
14
|
+
/** The main text for the option as a string or an HTMLElement. */
|
|
15
|
+
text?: string | HTMLElement;
|
|
16
|
+
}
|
|
17
|
+
export interface SelectAlertInput extends Omit<AlertInput, 'label'>, RichContentOption {
|
|
18
|
+
/** The main label for the option as a string or an HTMLElement. */
|
|
19
|
+
label?: string | HTMLElement;
|
|
20
|
+
/** Where the label sits relative to the option's selection control. */
|
|
21
|
+
labelPlacement?: 'start' | 'end';
|
|
22
|
+
/** How to pack the label and the option's selection control within a line. */
|
|
23
|
+
justify?: 'start' | 'end' | 'space-between';
|
|
24
|
+
}
|
|
25
|
+
export interface SelectOverlayOption extends Omit<SelectPopoverOption, 'text'>, RichContentOption {
|
|
26
|
+
/** The main text for the option as a string or an HTMLElement. */
|
|
27
|
+
text?: string | HTMLElement;
|
|
28
|
+
/** Where the label sits relative to the option's selection control. */
|
|
29
|
+
labelPlacement?: 'start' | 'end';
|
|
30
|
+
/** How to pack the label and the option's selection control within a line. */
|
|
31
|
+
justify?: 'start' | 'end' | 'space-between';
|
|
32
|
+
}
|
|
33
|
+
export interface RichContentOption {
|
|
34
|
+
/** Content to display at the start of the option. */
|
|
35
|
+
startContent?: HTMLElement;
|
|
36
|
+
/** Content to display at the end of the option. */
|
|
37
|
+
endContent?: HTMLElement;
|
|
38
|
+
/** A description for the option. */
|
|
39
|
+
description?: string;
|
|
40
|
+
}
|
|
@@ -32,6 +32,7 @@ export declare class Select implements ComponentInterface {
|
|
|
32
32
|
private notchSpacerEl;
|
|
33
33
|
private validationObserver?;
|
|
34
34
|
private notchController?;
|
|
35
|
+
private customHTMLEnabled;
|
|
35
36
|
el: HTMLIonSelectElement;
|
|
36
37
|
isExpanded: boolean;
|
|
37
38
|
/**
|
|
@@ -203,6 +204,7 @@ export declare class Select implements ComponentInterface {
|
|
|
203
204
|
ionStyle: EventEmitter<StyleEventDetail>;
|
|
204
205
|
protected styleChanged(): void;
|
|
205
206
|
private setValue;
|
|
207
|
+
private isValueEqual;
|
|
206
208
|
connectedCallback(): Promise<void>;
|
|
207
209
|
componentWillLoad(): void;
|
|
208
210
|
componentDidLoad(): void;
|
|
@@ -238,6 +240,12 @@ export declare class Select implements ComponentInterface {
|
|
|
238
240
|
* was passed.
|
|
239
241
|
*/
|
|
240
242
|
private get labelText();
|
|
243
|
+
/**
|
|
244
|
+
* Returns the text to display in the select based on the selected value.
|
|
245
|
+
*
|
|
246
|
+
* @param useHTML If `true`, the returned text will include any custom HTML content from the selected option. If `false`, the returned text will be plain text without any HTML. Defaults to `false`.
|
|
247
|
+
* @returns The text to display in the select, either with or without HTML based on the `useHTML` parameter.
|
|
248
|
+
*/
|
|
241
249
|
private getText;
|
|
242
250
|
private setFocus;
|
|
243
251
|
private emitStyle;
|
|
@@ -268,6 +276,16 @@ export declare class Select implements ComponentInterface {
|
|
|
268
276
|
* when fill="outline".
|
|
269
277
|
*/
|
|
270
278
|
private renderLabelContainer;
|
|
279
|
+
/**
|
|
280
|
+
* Wraps text nodes in the select text with span elements
|
|
281
|
+
* so spacing can be added between elements without
|
|
282
|
+
* changing the display to prevent losing the ellipses
|
|
283
|
+
* behavior.
|
|
284
|
+
*
|
|
285
|
+
* Only wraps when the string contains HTML elements
|
|
286
|
+
* alongside text.
|
|
287
|
+
*/
|
|
288
|
+
private wrapSelectTextNodes;
|
|
271
289
|
/**
|
|
272
290
|
* Renders either the placeholder
|
|
273
291
|
* or the selected values based on
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import type { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* @virtualProp {"ios" | "md"} mode - The mode determines the platform behaviors of the component.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Content is placed between the named slots if provided without a slot.
|
|
6
|
+
* @slot start - Content is placed to the left of the select option text in LTR, and to the right in RTL.
|
|
7
|
+
* @slot end - Content is placed to the right of the select option text in LTR, and to the left in RTL.
|
|
8
|
+
*/
|
|
2
9
|
export declare class SelectOption implements ComponentInterface {
|
|
3
10
|
private inputId;
|
|
4
11
|
el: HTMLElement;
|
|
@@ -10,5 +17,39 @@ export declare class SelectOption implements ComponentInterface {
|
|
|
10
17
|
* The text value of the option.
|
|
11
18
|
*/
|
|
12
19
|
value?: any | null;
|
|
20
|
+
/**
|
|
21
|
+
* Text that is placed underneath the option text to provide additional details about the option.
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Where the label is placed relative to the option's selection control
|
|
26
|
+
* (radio circle or checkbox box) when the option is rendered in an
|
|
27
|
+
* `alert`, `popover`, or `modal` interface.
|
|
28
|
+
* `"start"`: The label will appear to the left of the radio in LTR and to the right in RTL.
|
|
29
|
+
* `"end"`: The label will appear to the right of the radio in LTR and to the left in RTL.
|
|
30
|
+
*
|
|
31
|
+
* Applies to the `alert`, `popover`, and `modal` interfaces, but has no
|
|
32
|
+
* visible effect on radio options in `popover` or `modal` on `md` (the radio control is hidden there).
|
|
33
|
+
*
|
|
34
|
+
* When unset, the interface picks a default based on mode and control
|
|
35
|
+
* type.
|
|
36
|
+
*/
|
|
37
|
+
labelPlacement?: 'start' | 'end';
|
|
38
|
+
/**
|
|
39
|
+
* How to pack the label and the option's selection control within a line.
|
|
40
|
+
* `"start"`: The label and radio will appear on the left in LTR and
|
|
41
|
+
* on the right in RTL.
|
|
42
|
+
* `"end"`: The label and radio will appear on the right in LTR and
|
|
43
|
+
* on the left in RTL.
|
|
44
|
+
* `"space-between"`: The label and radio will appear on opposite
|
|
45
|
+
* ends of the line with space between the two elements.
|
|
46
|
+
*
|
|
47
|
+
* Applies to the `alert`, `popover`, and `modal` interfaces, but has no
|
|
48
|
+
* visible effect on radio options in `popover` or `modal` on `md` (the radio control is hidden there).
|
|
49
|
+
*
|
|
50
|
+
* When unset, the interface picks a default based on mode and control
|
|
51
|
+
* type.
|
|
52
|
+
*/
|
|
53
|
+
justify?: 'start' | 'end' | 'space-between';
|
|
13
54
|
render(): any;
|
|
14
55
|
}
|
|
@@ -25,7 +25,6 @@ import { NavComponent, NavComponentWithProps, NavOptions, RouterOutletOptions, S
|
|
|
25
25
|
import { ViewController } from "./components/nav/view-controller";
|
|
26
26
|
import { PickerChangeEventDetail } from "./components/picker/picker-interfaces";
|
|
27
27
|
import { PickerColumnChangeEventDetail, PickerColumnValue } from "./components/picker-column/picker-column-interfaces";
|
|
28
|
-
import { PickerButton, PickerColumn } from "./components/picker-legacy/picker-interface";
|
|
29
28
|
import { PopoverSize, PositionAlign, PositionReference, PositionSide, TriggerAction } from "./components/popover/popover-interface";
|
|
30
29
|
import { RadioGroupChangeEventDetail, RadioGroupCompareFn } from "./components/radio-group/radio-group-interface";
|
|
31
30
|
import { PinFormatter, RangeChangeEventDetail, RangeKnobMoveEndEventDetail, RangeKnobMoveStartEventDetail, RangeValue } from "./components/range/range-interface";
|
|
@@ -63,7 +62,6 @@ export { NavComponent, NavComponentWithProps, NavOptions, RouterOutletOptions, S
|
|
|
63
62
|
export { ViewController } from "./components/nav/view-controller";
|
|
64
63
|
export { PickerChangeEventDetail } from "./components/picker/picker-interfaces";
|
|
65
64
|
export { PickerColumnChangeEventDetail, PickerColumnValue } from "./components/picker-column/picker-column-interfaces";
|
|
66
|
-
export { PickerButton, PickerColumn } from "./components/picker-legacy/picker-interface";
|
|
67
65
|
export { PopoverSize, PositionAlign, PositionReference, PositionSide, TriggerAction } from "./components/popover/popover-interface";
|
|
68
66
|
export { RadioGroupChangeEventDetail, RadioGroupCompareFn } from "./components/radio-group/radio-group-interface";
|
|
69
67
|
export { PinFormatter, RangeChangeEventDetail, RangeKnobMoveEndEventDetail, RangeKnobMoveStartEventDetail, RangeValue } from "./components/range/range-interface";
|
|
@@ -1295,9 +1293,9 @@ export namespace Components {
|
|
|
1295
1293
|
"autocomplete": AutocompleteTypes;
|
|
1296
1294
|
/**
|
|
1297
1295
|
* Whether auto correction should be enabled when the user is entering/editing the text value.
|
|
1298
|
-
* @default
|
|
1296
|
+
* @default false
|
|
1299
1297
|
*/
|
|
1300
|
-
"autocorrect":
|
|
1298
|
+
"autocorrect": boolean;
|
|
1301
1299
|
/**
|
|
1302
1300
|
* Sets the [`autofocus` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus) on the native input element. This may not be sufficient for the element to be focused on page load. See [managing focus](/docs/developing/managing-focus) for more information.
|
|
1303
1301
|
* @default false
|
|
@@ -2005,8 +2003,8 @@ export namespace Components {
|
|
|
2005
2003
|
*/
|
|
2006
2004
|
"handle"?: boolean;
|
|
2007
2005
|
/**
|
|
2008
|
-
* The interaction behavior for the sheet modal when the handle is pressed.
|
|
2009
|
-
* @default '
|
|
2006
|
+
* The interaction behavior for the sheet modal when the handle is pressed. Handle behavior is unavailable when the `handle` property is set to `false` or when the `breakpoints` property is not set (using a fullscreen or card modal). Set to `"cycle"` to make the handle focusable and let the sheet modal cycle between available breakpoints when pressed. This keeps the sheet operable with assistive technology. Set to `"none"` to make the handle purely decorative when pressed and removed from the tab order. Defaults to `"cycle"`.
|
|
2007
|
+
* @default 'cycle'
|
|
2010
2008
|
*/
|
|
2011
2009
|
"handleBehavior"?: ModalHandleBehavior;
|
|
2012
2010
|
/**
|
|
@@ -2289,107 +2287,6 @@ export namespace Components {
|
|
|
2289
2287
|
*/
|
|
2290
2288
|
"value"?: any | null;
|
|
2291
2289
|
}
|
|
2292
|
-
interface IonPickerLegacy {
|
|
2293
|
-
/**
|
|
2294
|
-
* If `true`, the picker will animate.
|
|
2295
|
-
* @default true
|
|
2296
|
-
*/
|
|
2297
|
-
"animated": boolean;
|
|
2298
|
-
/**
|
|
2299
|
-
* If `true`, the picker will be dismissed when the backdrop is clicked.
|
|
2300
|
-
* @default true
|
|
2301
|
-
*/
|
|
2302
|
-
"backdropDismiss": boolean;
|
|
2303
|
-
/**
|
|
2304
|
-
* Array of buttons to be displayed at the top of the picker.
|
|
2305
|
-
* @default []
|
|
2306
|
-
*/
|
|
2307
|
-
"buttons": PickerButton[];
|
|
2308
|
-
/**
|
|
2309
|
-
* Array of columns to be displayed in the picker.
|
|
2310
|
-
* @default []
|
|
2311
|
-
*/
|
|
2312
|
-
"columns": PickerColumn[];
|
|
2313
|
-
/**
|
|
2314
|
-
* Additional classes to apply for custom CSS. If multiple classes are provided they should be separated by spaces.
|
|
2315
|
-
*/
|
|
2316
|
-
"cssClass"?: string | string[];
|
|
2317
|
-
"delegate"?: FrameworkDelegate;
|
|
2318
|
-
/**
|
|
2319
|
-
* Dismiss the picker overlay after it has been presented.
|
|
2320
|
-
* @param data Any data to emit in the dismiss events.
|
|
2321
|
-
* @param role The role of the element that is dismissing the picker. This can be useful in a button handler for determining which button was clicked to dismiss the picker. Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
2322
|
-
*/
|
|
2323
|
-
"dismiss": (data?: any, role?: string) => Promise<boolean>;
|
|
2324
|
-
/**
|
|
2325
|
-
* Number of milliseconds to wait before dismissing the picker.
|
|
2326
|
-
* @default 0
|
|
2327
|
-
*/
|
|
2328
|
-
"duration": number;
|
|
2329
|
-
/**
|
|
2330
|
-
* Animation to use when the picker is presented.
|
|
2331
|
-
*/
|
|
2332
|
-
"enterAnimation"?: AnimationBuilder;
|
|
2333
|
-
/**
|
|
2334
|
-
* Get the column that matches the specified name.
|
|
2335
|
-
* @param name The name of the column.
|
|
2336
|
-
*/
|
|
2337
|
-
"getColumn": (name: string) => Promise<PickerColumn | undefined>;
|
|
2338
|
-
/**
|
|
2339
|
-
* @default false
|
|
2340
|
-
*/
|
|
2341
|
-
"hasController": boolean;
|
|
2342
|
-
/**
|
|
2343
|
-
* Additional attributes to pass to the picker.
|
|
2344
|
-
*/
|
|
2345
|
-
"htmlAttributes"?: { [key: string]: any };
|
|
2346
|
-
/**
|
|
2347
|
-
* If `true`, the picker will open. If `false`, the picker will close. Use this if you need finer grained control over presentation, otherwise just use the pickerController or the `trigger` property. Note: `isOpen` will not automatically be set back to `false` when the picker dismisses. You will need to do that in your code.
|
|
2348
|
-
* @default false
|
|
2349
|
-
*/
|
|
2350
|
-
"isOpen": boolean;
|
|
2351
|
-
/**
|
|
2352
|
-
* If `true`, the keyboard will be automatically dismissed when the overlay is presented.
|
|
2353
|
-
* @default true
|
|
2354
|
-
*/
|
|
2355
|
-
"keyboardClose": boolean;
|
|
2356
|
-
/**
|
|
2357
|
-
* Animation to use when the picker is dismissed.
|
|
2358
|
-
*/
|
|
2359
|
-
"leaveAnimation"?: AnimationBuilder;
|
|
2360
|
-
/**
|
|
2361
|
-
* The mode determines which platform styles to use.
|
|
2362
|
-
*/
|
|
2363
|
-
"mode"?: "ios" | "md";
|
|
2364
|
-
/**
|
|
2365
|
-
* Returns a promise that resolves when the picker did dismiss.
|
|
2366
|
-
*/
|
|
2367
|
-
"onDidDismiss": <T = any>() => Promise<OverlayEventDetail<T>>;
|
|
2368
|
-
/**
|
|
2369
|
-
* Returns a promise that resolves when the picker will dismiss.
|
|
2370
|
-
*/
|
|
2371
|
-
"onWillDismiss": <T = any>() => Promise<OverlayEventDetail<T>>;
|
|
2372
|
-
"overlayIndex": number;
|
|
2373
|
-
/**
|
|
2374
|
-
* Present the picker overlay after it has been created.
|
|
2375
|
-
*/
|
|
2376
|
-
"present": () => Promise<void>;
|
|
2377
|
-
/**
|
|
2378
|
-
* If `true`, a backdrop will be displayed behind the picker.
|
|
2379
|
-
* @default true
|
|
2380
|
-
*/
|
|
2381
|
-
"showBackdrop": boolean;
|
|
2382
|
-
/**
|
|
2383
|
-
* An ID corresponding to the trigger element that causes the picker to open when clicked.
|
|
2384
|
-
*/
|
|
2385
|
-
"trigger": string | undefined;
|
|
2386
|
-
}
|
|
2387
|
-
interface IonPickerLegacyColumn {
|
|
2388
|
-
/**
|
|
2389
|
-
* Picker column data
|
|
2390
|
-
*/
|
|
2391
|
-
"col": PickerColumn;
|
|
2392
|
-
}
|
|
2393
2290
|
interface IonPopover {
|
|
2394
2291
|
/**
|
|
2395
2292
|
* Describes how to align the popover content with the `reference` point. Defaults to `"center"` for `ios` mode, and `"start"` for `md` mode.
|
|
@@ -2915,6 +2812,10 @@ export namespace Components {
|
|
|
2915
2812
|
*/
|
|
2916
2813
|
"mode": "ios" | "md";
|
|
2917
2814
|
"setRouteId": (id: string, params: ComponentProps | undefined, direction: RouterDirection, animation?: AnimationBuilder) => Promise<RouteWrite>;
|
|
2815
|
+
/**
|
|
2816
|
+
* If `true`, the router-outlet should allow navigation via swipe-to-go-back gesture. Defaults to `true` for `"ios"` mode and `false` for `"md"` mode.
|
|
2817
|
+
*/
|
|
2818
|
+
"swipeGesture"?: boolean;
|
|
2918
2819
|
"swipeHandler"?: SwipeGestureHandler;
|
|
2919
2820
|
}
|
|
2920
2821
|
interface IonRow {
|
|
@@ -2937,9 +2838,9 @@ export namespace Components {
|
|
|
2937
2838
|
"autocomplete": AutocompleteTypes;
|
|
2938
2839
|
/**
|
|
2939
2840
|
* Set the input's autocorrect property.
|
|
2940
|
-
* @default
|
|
2841
|
+
* @default false
|
|
2941
2842
|
*/
|
|
2942
|
-
"autocorrect":
|
|
2843
|
+
"autocorrect": boolean;
|
|
2943
2844
|
/**
|
|
2944
2845
|
* Set the cancel button icon. Only applies to `md` mode. Defaults to `arrow-back-sharp`.
|
|
2945
2846
|
* @default config.get('backButtonIcon', arrowBackSharp) as string
|
|
@@ -3241,11 +3142,27 @@ export namespace Components {
|
|
|
3241
3142
|
"options": SelectModalOption[];
|
|
3242
3143
|
}
|
|
3243
3144
|
interface IonSelectOption {
|
|
3145
|
+
/**
|
|
3146
|
+
* Text that is placed underneath the option text to provide additional details about the option.
|
|
3147
|
+
*/
|
|
3148
|
+
"description"?: string;
|
|
3244
3149
|
/**
|
|
3245
3150
|
* If `true`, the user cannot interact with the select option. This property does not apply when `interface="action-sheet"` as `ion-action-sheet` does not allow for disabled buttons.
|
|
3246
3151
|
* @default false
|
|
3247
3152
|
*/
|
|
3248
3153
|
"disabled": boolean;
|
|
3154
|
+
/**
|
|
3155
|
+
* How to pack the label and the option's selection control within a line. `"start"`: The label and radio will appear on the left in LTR and on the right in RTL. `"end"`: The label and radio will appear on the right in LTR and on the left in RTL. `"space-between"`: The label and radio will appear on opposite ends of the line with space between the two elements. Applies to the `alert`, `popover`, and `modal` interfaces, but has no visible effect on radio options in `popover` or `modal` on `md` (the radio control is hidden there). When unset, the interface picks a default based on mode and control type.
|
|
3156
|
+
*/
|
|
3157
|
+
"justify"?: 'start' | 'end' | 'space-between';
|
|
3158
|
+
/**
|
|
3159
|
+
* Where the label is placed relative to the option's selection control (radio circle or checkbox box) when the option is rendered in an `alert`, `popover`, or `modal` interface. `"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. Applies to the `alert`, `popover`, and `modal` interfaces, but has no visible effect on radio options in `popover` or `modal` on `md` (the radio control is hidden there). When unset, the interface picks a default based on mode and control type.
|
|
3160
|
+
*/
|
|
3161
|
+
"labelPlacement"?: 'start' | 'end';
|
|
3162
|
+
/**
|
|
3163
|
+
* The mode determines the platform behaviors of the component.
|
|
3164
|
+
*/
|
|
3165
|
+
"mode"?: "ios" | "md";
|
|
3249
3166
|
/**
|
|
3250
3167
|
* The text value of the option.
|
|
3251
3168
|
*/
|
|
@@ -3858,14 +3775,6 @@ export interface IonPickerColumnCustomEvent<T> extends CustomEvent<T> {
|
|
|
3858
3775
|
detail: T;
|
|
3859
3776
|
target: HTMLIonPickerColumnElement;
|
|
3860
3777
|
}
|
|
3861
|
-
export interface IonPickerLegacyCustomEvent<T> extends CustomEvent<T> {
|
|
3862
|
-
detail: T;
|
|
3863
|
-
target: HTMLIonPickerLegacyElement;
|
|
3864
|
-
}
|
|
3865
|
-
export interface IonPickerLegacyColumnCustomEvent<T> extends CustomEvent<T> {
|
|
3866
|
-
detail: T;
|
|
3867
|
-
target: HTMLIonPickerLegacyColumnElement;
|
|
3868
|
-
}
|
|
3869
3778
|
export interface IonPopoverCustomEvent<T> extends CustomEvent<T> {
|
|
3870
3779
|
detail: T;
|
|
3871
3780
|
target: HTMLIonPopoverElement;
|
|
@@ -4623,47 +4532,6 @@ declare global {
|
|
|
4623
4532
|
prototype: HTMLIonPickerColumnOptionElement;
|
|
4624
4533
|
new (): HTMLIonPickerColumnOptionElement;
|
|
4625
4534
|
};
|
|
4626
|
-
interface HTMLIonPickerLegacyElementEventMap {
|
|
4627
|
-
"ionPickerDidPresent": void;
|
|
4628
|
-
"ionPickerWillPresent": void;
|
|
4629
|
-
"ionPickerWillDismiss": OverlayEventDetail;
|
|
4630
|
-
"ionPickerDidDismiss": OverlayEventDetail;
|
|
4631
|
-
"didPresent": void;
|
|
4632
|
-
"willPresent": void;
|
|
4633
|
-
"willDismiss": OverlayEventDetail;
|
|
4634
|
-
"didDismiss": OverlayEventDetail;
|
|
4635
|
-
}
|
|
4636
|
-
interface HTMLIonPickerLegacyElement extends Components.IonPickerLegacy, HTMLStencilElement {
|
|
4637
|
-
addEventListener<K extends keyof HTMLIonPickerLegacyElementEventMap>(type: K, listener: (this: HTMLIonPickerLegacyElement, ev: IonPickerLegacyCustomEvent<HTMLIonPickerLegacyElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4638
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4639
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4640
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4641
|
-
removeEventListener<K extends keyof HTMLIonPickerLegacyElementEventMap>(type: K, listener: (this: HTMLIonPickerLegacyElement, ev: IonPickerLegacyCustomEvent<HTMLIonPickerLegacyElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
4642
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4643
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4644
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4645
|
-
}
|
|
4646
|
-
var HTMLIonPickerLegacyElement: {
|
|
4647
|
-
prototype: HTMLIonPickerLegacyElement;
|
|
4648
|
-
new (): HTMLIonPickerLegacyElement;
|
|
4649
|
-
};
|
|
4650
|
-
interface HTMLIonPickerLegacyColumnElementEventMap {
|
|
4651
|
-
"ionPickerColChange": PickerColumn;
|
|
4652
|
-
}
|
|
4653
|
-
interface HTMLIonPickerLegacyColumnElement extends Components.IonPickerLegacyColumn, HTMLStencilElement {
|
|
4654
|
-
addEventListener<K extends keyof HTMLIonPickerLegacyColumnElementEventMap>(type: K, listener: (this: HTMLIonPickerLegacyColumnElement, ev: IonPickerLegacyColumnCustomEvent<HTMLIonPickerLegacyColumnElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4655
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4656
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4657
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4658
|
-
removeEventListener<K extends keyof HTMLIonPickerLegacyColumnElementEventMap>(type: K, listener: (this: HTMLIonPickerLegacyColumnElement, ev: IonPickerLegacyColumnCustomEvent<HTMLIonPickerLegacyColumnElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
4659
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4660
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4661
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4662
|
-
}
|
|
4663
|
-
var HTMLIonPickerLegacyColumnElement: {
|
|
4664
|
-
prototype: HTMLIonPickerLegacyColumnElement;
|
|
4665
|
-
new (): HTMLIonPickerLegacyColumnElement;
|
|
4666
|
-
};
|
|
4667
4535
|
interface HTMLIonPopoverElementEventMap {
|
|
4668
4536
|
"ionPopoverDidPresent": void;
|
|
4669
4537
|
"ionPopoverWillPresent": void;
|
|
@@ -5261,8 +5129,6 @@ declare global {
|
|
|
5261
5129
|
"ion-picker": HTMLIonPickerElement;
|
|
5262
5130
|
"ion-picker-column": HTMLIonPickerColumnElement;
|
|
5263
5131
|
"ion-picker-column-option": HTMLIonPickerColumnOptionElement;
|
|
5264
|
-
"ion-picker-legacy": HTMLIonPickerLegacyElement;
|
|
5265
|
-
"ion-picker-legacy-column": HTMLIonPickerLegacyColumnElement;
|
|
5266
5132
|
"ion-popover": HTMLIonPopoverElement;
|
|
5267
5133
|
"ion-progress-bar": HTMLIonProgressBarElement;
|
|
5268
5134
|
"ion-radio": HTMLIonRadioElement;
|
|
@@ -6548,9 +6414,9 @@ declare namespace LocalJSX {
|
|
|
6548
6414
|
"autocomplete"?: AutocompleteTypes;
|
|
6549
6415
|
/**
|
|
6550
6416
|
* Whether auto correction should be enabled when the user is entering/editing the text value.
|
|
6551
|
-
* @default
|
|
6417
|
+
* @default false
|
|
6552
6418
|
*/
|
|
6553
|
-
"autocorrect"?:
|
|
6419
|
+
"autocorrect"?: boolean;
|
|
6554
6420
|
/**
|
|
6555
6421
|
* Sets the [`autofocus` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus) on the native input element. This may not be sufficient for the element to be focused on page load. See [managing focus](/docs/developing/managing-focus) for more information.
|
|
6556
6422
|
* @default false
|
|
@@ -7229,8 +7095,8 @@ declare namespace LocalJSX {
|
|
|
7229
7095
|
*/
|
|
7230
7096
|
"handle"?: boolean;
|
|
7231
7097
|
/**
|
|
7232
|
-
* The interaction behavior for the sheet modal when the handle is pressed.
|
|
7233
|
-
* @default '
|
|
7098
|
+
* The interaction behavior for the sheet modal when the handle is pressed. Handle behavior is unavailable when the `handle` property is set to `false` or when the `breakpoints` property is not set (using a fullscreen or card modal). Set to `"cycle"` to make the handle focusable and let the sheet modal cycle between available breakpoints when pressed. This keeps the sheet operable with assistive technology. Set to `"none"` to make the handle purely decorative when pressed and removed from the tab order. Defaults to `"cycle"`.
|
|
7099
|
+
* @default 'cycle'
|
|
7234
7100
|
*/
|
|
7235
7101
|
"handleBehavior"?: ModalHandleBehavior;
|
|
7236
7102
|
/**
|
|
@@ -7432,110 +7298,6 @@ declare namespace LocalJSX {
|
|
|
7432
7298
|
*/
|
|
7433
7299
|
"value"?: any | null;
|
|
7434
7300
|
}
|
|
7435
|
-
interface IonPickerLegacy {
|
|
7436
|
-
/**
|
|
7437
|
-
* If `true`, the picker will animate.
|
|
7438
|
-
* @default true
|
|
7439
|
-
*/
|
|
7440
|
-
"animated"?: boolean;
|
|
7441
|
-
/**
|
|
7442
|
-
* If `true`, the picker will be dismissed when the backdrop is clicked.
|
|
7443
|
-
* @default true
|
|
7444
|
-
*/
|
|
7445
|
-
"backdropDismiss"?: boolean;
|
|
7446
|
-
/**
|
|
7447
|
-
* Array of buttons to be displayed at the top of the picker.
|
|
7448
|
-
* @default []
|
|
7449
|
-
*/
|
|
7450
|
-
"buttons"?: PickerButton[];
|
|
7451
|
-
/**
|
|
7452
|
-
* Array of columns to be displayed in the picker.
|
|
7453
|
-
* @default []
|
|
7454
|
-
*/
|
|
7455
|
-
"columns"?: PickerColumn[];
|
|
7456
|
-
/**
|
|
7457
|
-
* Additional classes to apply for custom CSS. If multiple classes are provided they should be separated by spaces.
|
|
7458
|
-
*/
|
|
7459
|
-
"cssClass"?: string | string[];
|
|
7460
|
-
/**
|
|
7461
|
-
* Number of milliseconds to wait before dismissing the picker.
|
|
7462
|
-
* @default 0
|
|
7463
|
-
*/
|
|
7464
|
-
"duration"?: number;
|
|
7465
|
-
/**
|
|
7466
|
-
* Animation to use when the picker is presented.
|
|
7467
|
-
*/
|
|
7468
|
-
"enterAnimation"?: AnimationBuilder;
|
|
7469
|
-
/**
|
|
7470
|
-
* Additional attributes to pass to the picker.
|
|
7471
|
-
*/
|
|
7472
|
-
"htmlAttributes"?: { [key: string]: any };
|
|
7473
|
-
/**
|
|
7474
|
-
* If `true`, the picker will open. If `false`, the picker will close. Use this if you need finer grained control over presentation, otherwise just use the pickerController or the `trigger` property. Note: `isOpen` will not automatically be set back to `false` when the picker dismisses. You will need to do that in your code.
|
|
7475
|
-
* @default false
|
|
7476
|
-
*/
|
|
7477
|
-
"isOpen"?: boolean;
|
|
7478
|
-
/**
|
|
7479
|
-
* If `true`, the keyboard will be automatically dismissed when the overlay is presented.
|
|
7480
|
-
* @default true
|
|
7481
|
-
*/
|
|
7482
|
-
"keyboardClose"?: boolean;
|
|
7483
|
-
/**
|
|
7484
|
-
* Animation to use when the picker is dismissed.
|
|
7485
|
-
*/
|
|
7486
|
-
"leaveAnimation"?: AnimationBuilder;
|
|
7487
|
-
/**
|
|
7488
|
-
* The mode determines which platform styles to use.
|
|
7489
|
-
*/
|
|
7490
|
-
"mode"?: "ios" | "md";
|
|
7491
|
-
/**
|
|
7492
|
-
* Emitted after the picker has dismissed. Shorthand for ionPickerDidDismiss.
|
|
7493
|
-
*/
|
|
7494
|
-
"onDidDismiss"?: (event: IonPickerLegacyCustomEvent<OverlayEventDetail>) => void;
|
|
7495
|
-
/**
|
|
7496
|
-
* Emitted after the picker has presented. Shorthand for ionPickerWillDismiss.
|
|
7497
|
-
*/
|
|
7498
|
-
"onDidPresent"?: (event: IonPickerLegacyCustomEvent<void>) => void;
|
|
7499
|
-
/**
|
|
7500
|
-
* Emitted after the picker has dismissed.
|
|
7501
|
-
*/
|
|
7502
|
-
"onIonPickerDidDismiss"?: (event: IonPickerLegacyCustomEvent<OverlayEventDetail>) => void;
|
|
7503
|
-
/**
|
|
7504
|
-
* Emitted after the picker has presented.
|
|
7505
|
-
*/
|
|
7506
|
-
"onIonPickerDidPresent"?: (event: IonPickerLegacyCustomEvent<void>) => void;
|
|
7507
|
-
/**
|
|
7508
|
-
* Emitted before the picker has dismissed.
|
|
7509
|
-
*/
|
|
7510
|
-
"onIonPickerWillDismiss"?: (event: IonPickerLegacyCustomEvent<OverlayEventDetail>) => void;
|
|
7511
|
-
/**
|
|
7512
|
-
* Emitted before the picker has presented.
|
|
7513
|
-
*/
|
|
7514
|
-
"onIonPickerWillPresent"?: (event: IonPickerLegacyCustomEvent<void>) => void;
|
|
7515
|
-
/**
|
|
7516
|
-
* Emitted before the picker has dismissed. Shorthand for ionPickerWillDismiss.
|
|
7517
|
-
*/
|
|
7518
|
-
"onWillDismiss"?: (event: IonPickerLegacyCustomEvent<OverlayEventDetail>) => void;
|
|
7519
|
-
/**
|
|
7520
|
-
* Emitted before the picker has presented. Shorthand for ionPickerWillPresent.
|
|
7521
|
-
*/
|
|
7522
|
-
"onWillPresent"?: (event: IonPickerLegacyCustomEvent<void>) => void;
|
|
7523
|
-
/**
|
|
7524
|
-
* If `true`, a backdrop will be displayed behind the picker.
|
|
7525
|
-
* @default true
|
|
7526
|
-
*/
|
|
7527
|
-
"showBackdrop"?: boolean;
|
|
7528
|
-
/**
|
|
7529
|
-
* An ID corresponding to the trigger element that causes the picker to open when clicked.
|
|
7530
|
-
*/
|
|
7531
|
-
"trigger"?: string | undefined;
|
|
7532
|
-
}
|
|
7533
|
-
interface IonPickerLegacyColumn {
|
|
7534
|
-
/**
|
|
7535
|
-
* Picker column data
|
|
7536
|
-
*/
|
|
7537
|
-
"col": PickerColumn;
|
|
7538
|
-
}
|
|
7539
7301
|
interface IonPopover {
|
|
7540
7302
|
/**
|
|
7541
7303
|
* Describes how to align the popover content with the `reference` point. Defaults to `"center"` for `ios` mode, and `"start"` for `md` mode.
|
|
@@ -8100,6 +7862,10 @@ declare namespace LocalJSX {
|
|
|
8100
7862
|
* @default getIonMode(this)
|
|
8101
7863
|
*/
|
|
8102
7864
|
"mode"?: "ios" | "md";
|
|
7865
|
+
/**
|
|
7866
|
+
* If `true`, the router-outlet should allow navigation via swipe-to-go-back gesture. Defaults to `true` for `"ios"` mode and `false` for `"md"` mode.
|
|
7867
|
+
*/
|
|
7868
|
+
"swipeGesture"?: boolean;
|
|
8103
7869
|
}
|
|
8104
7870
|
interface IonRow {
|
|
8105
7871
|
}
|
|
@@ -8121,9 +7887,9 @@ declare namespace LocalJSX {
|
|
|
8121
7887
|
"autocomplete"?: AutocompleteTypes;
|
|
8122
7888
|
/**
|
|
8123
7889
|
* Set the input's autocorrect property.
|
|
8124
|
-
* @default
|
|
7890
|
+
* @default false
|
|
8125
7891
|
*/
|
|
8126
|
-
"autocorrect"?:
|
|
7892
|
+
"autocorrect"?: boolean;
|
|
8127
7893
|
/**
|
|
8128
7894
|
* Set the cancel button icon. Only applies to `md` mode. Defaults to `arrow-back-sharp`.
|
|
8129
7895
|
* @default config.get('backButtonIcon', arrowBackSharp) as string
|
|
@@ -8458,11 +8224,27 @@ declare namespace LocalJSX {
|
|
|
8458
8224
|
"options"?: SelectModalOption[];
|
|
8459
8225
|
}
|
|
8460
8226
|
interface IonSelectOption {
|
|
8227
|
+
/**
|
|
8228
|
+
* Text that is placed underneath the option text to provide additional details about the option.
|
|
8229
|
+
*/
|
|
8230
|
+
"description"?: string;
|
|
8461
8231
|
/**
|
|
8462
8232
|
* If `true`, the user cannot interact with the select option. This property does not apply when `interface="action-sheet"` as `ion-action-sheet` does not allow for disabled buttons.
|
|
8463
8233
|
* @default false
|
|
8464
8234
|
*/
|
|
8465
8235
|
"disabled"?: boolean;
|
|
8236
|
+
/**
|
|
8237
|
+
* How to pack the label and the option's selection control within a line. `"start"`: The label and radio will appear on the left in LTR and on the right in RTL. `"end"`: The label and radio will appear on the right in LTR and on the left in RTL. `"space-between"`: The label and radio will appear on opposite ends of the line with space between the two elements. Applies to the `alert`, `popover`, and `modal` interfaces, but has no visible effect on radio options in `popover` or `modal` on `md` (the radio control is hidden there). When unset, the interface picks a default based on mode and control type.
|
|
8238
|
+
*/
|
|
8239
|
+
"justify"?: 'start' | 'end' | 'space-between';
|
|
8240
|
+
/**
|
|
8241
|
+
* Where the label is placed relative to the option's selection control (radio circle or checkbox box) when the option is rendered in an `alert`, `popover`, or `modal` interface. `"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. Applies to the `alert`, `popover`, and `modal` interfaces, but has no visible effect on radio options in `popover` or `modal` on `md` (the radio control is hidden there). When unset, the interface picks a default based on mode and control type.
|
|
8242
|
+
*/
|
|
8243
|
+
"labelPlacement"?: 'start' | 'end';
|
|
8244
|
+
/**
|
|
8245
|
+
* The mode determines the platform behaviors of the component.
|
|
8246
|
+
*/
|
|
8247
|
+
"mode"?: "ios" | "md";
|
|
8466
8248
|
/**
|
|
8467
8249
|
* The text value of the option.
|
|
8468
8250
|
*/
|
|
@@ -9242,7 +9024,7 @@ declare namespace LocalJSX {
|
|
|
9242
9024
|
"color": Color;
|
|
9243
9025
|
"autocapitalize": string;
|
|
9244
9026
|
"autocomplete": AutocompleteTypes;
|
|
9245
|
-
"autocorrect":
|
|
9027
|
+
"autocorrect": boolean;
|
|
9246
9028
|
"autofocus": boolean;
|
|
9247
9029
|
"clearInput": boolean;
|
|
9248
9030
|
"clearInputIcon": string;
|
|
@@ -9410,16 +9192,6 @@ declare namespace LocalJSX {
|
|
|
9410
9192
|
"value": string;
|
|
9411
9193
|
"color": Color;
|
|
9412
9194
|
}
|
|
9413
|
-
interface IonPickerLegacyAttributes {
|
|
9414
|
-
"keyboardClose": boolean;
|
|
9415
|
-
"cssClass": string | string[];
|
|
9416
|
-
"duration": number;
|
|
9417
|
-
"showBackdrop": boolean;
|
|
9418
|
-
"backdropDismiss": boolean;
|
|
9419
|
-
"animated": boolean;
|
|
9420
|
-
"isOpen": boolean;
|
|
9421
|
-
"trigger": string | undefined;
|
|
9422
|
-
}
|
|
9423
9195
|
interface IonPopoverAttributes {
|
|
9424
9196
|
"component": ComponentRef;
|
|
9425
9197
|
"keyboardClose": boolean;
|
|
@@ -9523,13 +9295,14 @@ declare namespace LocalJSX {
|
|
|
9523
9295
|
interface IonRouterOutletAttributes {
|
|
9524
9296
|
"mode": "ios" | "md";
|
|
9525
9297
|
"animated": boolean;
|
|
9298
|
+
"swipeGesture": boolean;
|
|
9526
9299
|
}
|
|
9527
9300
|
interface IonSearchbarAttributes {
|
|
9528
9301
|
"color": Color;
|
|
9529
9302
|
"animated": boolean;
|
|
9530
9303
|
"autocapitalize": string;
|
|
9531
9304
|
"autocomplete": AutocompleteTypes;
|
|
9532
|
-
"autocorrect":
|
|
9305
|
+
"autocorrect": boolean;
|
|
9533
9306
|
"cancelButtonIcon": string;
|
|
9534
9307
|
"cancelButtonText": string;
|
|
9535
9308
|
"clearIcon": string;
|
|
@@ -9599,6 +9372,9 @@ declare namespace LocalJSX {
|
|
|
9599
9372
|
interface IonSelectOptionAttributes {
|
|
9600
9373
|
"disabled": boolean;
|
|
9601
9374
|
"value": string;
|
|
9375
|
+
"description": string;
|
|
9376
|
+
"labelPlacement": 'start' | 'end';
|
|
9377
|
+
"justify": 'start' | 'end' | 'space-between';
|
|
9602
9378
|
}
|
|
9603
9379
|
interface IonSelectPopoverAttributes {
|
|
9604
9380
|
"header": string;
|
|
@@ -9770,8 +9546,6 @@ declare namespace LocalJSX {
|
|
|
9770
9546
|
"ion-picker": IonPicker;
|
|
9771
9547
|
"ion-picker-column": Omit<IonPickerColumn, keyof IonPickerColumnAttributes> & { [K in keyof IonPickerColumn & keyof IonPickerColumnAttributes]?: IonPickerColumn[K] } & { [K in keyof IonPickerColumn & keyof IonPickerColumnAttributes as `attr:${K}`]?: IonPickerColumnAttributes[K] } & { [K in keyof IonPickerColumn & keyof IonPickerColumnAttributes as `prop:${K}`]?: IonPickerColumn[K] };
|
|
9772
9548
|
"ion-picker-column-option": Omit<IonPickerColumnOption, keyof IonPickerColumnOptionAttributes> & { [K in keyof IonPickerColumnOption & keyof IonPickerColumnOptionAttributes]?: IonPickerColumnOption[K] } & { [K in keyof IonPickerColumnOption & keyof IonPickerColumnOptionAttributes as `attr:${K}`]?: IonPickerColumnOptionAttributes[K] } & { [K in keyof IonPickerColumnOption & keyof IonPickerColumnOptionAttributes as `prop:${K}`]?: IonPickerColumnOption[K] };
|
|
9773
|
-
"ion-picker-legacy": Omit<IonPickerLegacy, keyof IonPickerLegacyAttributes> & { [K in keyof IonPickerLegacy & keyof IonPickerLegacyAttributes]?: IonPickerLegacy[K] } & { [K in keyof IonPickerLegacy & keyof IonPickerLegacyAttributes as `attr:${K}`]?: IonPickerLegacyAttributes[K] } & { [K in keyof IonPickerLegacy & keyof IonPickerLegacyAttributes as `prop:${K}`]?: IonPickerLegacy[K] };
|
|
9774
|
-
"ion-picker-legacy-column": IonPickerLegacyColumn;
|
|
9775
9549
|
"ion-popover": Omit<IonPopover, keyof IonPopoverAttributes> & { [K in keyof IonPopover & keyof IonPopoverAttributes]?: IonPopover[K] } & { [K in keyof IonPopover & keyof IonPopoverAttributes as `attr:${K}`]?: IonPopoverAttributes[K] } & { [K in keyof IonPopover & keyof IonPopoverAttributes as `prop:${K}`]?: IonPopover[K] };
|
|
9776
9550
|
"ion-progress-bar": Omit<IonProgressBar, keyof IonProgressBarAttributes> & { [K in keyof IonProgressBar & keyof IonProgressBarAttributes]?: IonProgressBar[K] } & { [K in keyof IonProgressBar & keyof IonProgressBarAttributes as `attr:${K}`]?: IonProgressBarAttributes[K] } & { [K in keyof IonProgressBar & keyof IonProgressBarAttributes as `prop:${K}`]?: IonProgressBar[K] };
|
|
9777
9551
|
"ion-radio": Omit<IonRadio, keyof IonRadioAttributes> & { [K in keyof IonRadio & keyof IonRadioAttributes]?: IonRadio[K] } & { [K in keyof IonRadio & keyof IonRadioAttributes as `attr:${K}`]?: IonRadioAttributes[K] } & { [K in keyof IonRadio & keyof IonRadioAttributes as `prop:${K}`]?: IonRadio[K] };
|
|
@@ -9873,8 +9647,6 @@ declare module "@stencil/core" {
|
|
|
9873
9647
|
"ion-picker": LocalJSX.IntrinsicElements["ion-picker"] & JSXBase.HTMLAttributes<HTMLIonPickerElement>;
|
|
9874
9648
|
"ion-picker-column": LocalJSX.IntrinsicElements["ion-picker-column"] & JSXBase.HTMLAttributes<HTMLIonPickerColumnElement>;
|
|
9875
9649
|
"ion-picker-column-option": LocalJSX.IntrinsicElements["ion-picker-column-option"] & JSXBase.HTMLAttributes<HTMLIonPickerColumnOptionElement>;
|
|
9876
|
-
"ion-picker-legacy": LocalJSX.IntrinsicElements["ion-picker-legacy"] & JSXBase.HTMLAttributes<HTMLIonPickerLegacyElement>;
|
|
9877
|
-
"ion-picker-legacy-column": LocalJSX.IntrinsicElements["ion-picker-legacy-column"] & JSXBase.HTMLAttributes<HTMLIonPickerLegacyColumnElement>;
|
|
9878
9650
|
"ion-popover": LocalJSX.IntrinsicElements["ion-popover"] & JSXBase.HTMLAttributes<HTMLIonPopoverElement>;
|
|
9879
9651
|
"ion-progress-bar": LocalJSX.IntrinsicElements["ion-progress-bar"] & JSXBase.HTMLAttributes<HTMLIonProgressBarElement>;
|
|
9880
9652
|
"ion-radio": LocalJSX.IntrinsicElements["ion-radio"] & JSXBase.HTMLAttributes<HTMLIonRadioElement>;
|