@ionic/core 8.8.14-dev.11784216165.1ecbf364 → 8.8.14-dev.11784222473.142aed23
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-img.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-nav.js +1 -1
- package/components/ion-picker-legacy-column.d.ts +11 -0
- package/components/ion-picker-legacy-column.js +4 -0
- package/components/ion-picker-legacy.d.ts +11 -0
- package/components/ion-picker-legacy.js +4 -0
- 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-router.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-3hGiN2uq.js +4 -0
- package/components/{p-DpV-p5Xs.js → p-5bE_Wz4Y.js} +1 -1
- package/components/{p-r0aq7dpt.js → p-B60hm8Qv.js} +1 -1
- package/components/{p-Buf_7zcy.js → p-BHrrc-3d.js} +1 -1
- package/components/p-BIPPbW0M.js +4 -0
- package/components/{p-XJWMAP8m.js → p-BLmJ0zRm.js} +1 -1
- package/components/{p-DhkITZ-y.js → p-BSEgsdFI.js} +1 -1
- package/components/p-BUYFy35a.js +4 -0
- package/components/p-BWEZufiK.js +4 -0
- package/components/p-BqpciLfi.js +4 -0
- package/components/p-BsQPAqo9.js +4 -0
- package/components/p-CU5rbWAW.js +4 -0
- package/components/{p-Dz74mwlk.js → p-Cfx4M1Bn.js} +1 -1
- package/components/p-k_E4tX5Z.js +4 -0
- package/components/p-nyXeHk23.js +4 -0
- package/components/{p-wk2QqrAo.js → p-rCa2eL0j.js} +1 -1
- package/dist/cjs/config-xninhj0J.js +201 -0
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/ion-action-sheet.cjs.entry.js +7 -27
- package/dist/cjs/ion-alert.cjs.entry.js +25 -64
- package/dist/cjs/ion-app_8.cjs.entry.js +9 -23
- 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.cjs.entry.js → ion-datetime_3.cjs.entry.js} +639 -1
- package/dist/cjs/ion-img.cjs.entry.js +1 -3
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -3
- 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 +5 -10
- package/dist/cjs/ion-menu_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-modal.cjs.entry.js +18 -23
- package/dist/cjs/ion-nav_2.cjs.entry.js +115 -2
- package/dist/cjs/ion-popover.cjs.entry.js +5 -9
- 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 +5 -6
- 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 +4 -18
- 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 +30 -84
- package/dist/cjs/ion-select_3.cjs.entry.js +49 -407
- 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 +5 -6
- 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/{overlays-DSmSrd_4.js → overlays-DdtIYQUH.js} +31 -27
- package/dist/collection/collection-manifest.json +10 -6
- package/dist/collection/components/action-sheet/action-sheet.ios.css +2 -229
- package/dist/collection/components/action-sheet/action-sheet.js +5 -24
- package/dist/collection/components/action-sheet/action-sheet.md.css +2 -175
- package/dist/collection/components/alert/alert.ios.css +10 -280
- package/dist/collection/components/alert/alert.js +21 -59
- package/dist/collection/components/alert/alert.md.css +20 -269
- package/dist/collection/components/img/img.js +1 -6
- package/dist/collection/components/input/input.js +8 -8
- package/dist/collection/components/loading/loading.js +3 -7
- package/dist/collection/components/modal/modal.ios.css +8 -0
- package/dist/collection/components/modal/modal.js +18 -23
- package/dist/collection/components/modal/modal.md.css +8 -0
- package/dist/collection/components/nav/nav.js +219 -4
- package/dist/collection/components/picker-legacy/animations/ios.enter.js +27 -0
- package/dist/collection/components/picker-legacy/animations/ios.leave.js +23 -0
- package/dist/collection/components/picker-legacy/picker-interface.js +1 -0
- package/dist/collection/components/picker-legacy/picker.ios.css +300 -0
- package/dist/collection/components/picker-legacy/picker.js +890 -0
- package/dist/collection/components/picker-legacy/picker.md.css +287 -0
- package/dist/collection/components/picker-legacy-column/picker-column.ios.css +231 -0
- package/dist/collection/components/picker-legacy-column/picker-column.js +422 -0
- package/dist/collection/components/picker-legacy-column/picker-column.md.css +222 -0
- package/dist/collection/components/picker-legacy-column/test/test.utils.js +43 -0
- package/dist/collection/components/popover/popover.ios.css +0 -15
- package/dist/collection/components/popover/popover.js +3 -7
- package/dist/collection/components/popover/popover.md.css +0 -15
- 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/route/route.js +1 -1
- package/dist/collection/components/router/utils/dom.js +3 -22
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.js +5 -38
- 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 +0 -33
- package/dist/collection/components/select/select.js +16 -323
- package/dist/collection/components/select/select.md.css +0 -33
- package/dist/collection/components/select-modal/select-modal.ios.css +0 -219
- package/dist/collection/components/select-modal/select-modal.js +26 -79
- package/dist/collection/components/select-modal/select-modal.md.css +0 -165
- package/dist/collection/components/select-option/select-option.js +3 -67
- package/dist/collection/components/select-popover/select-popover.ios.css +0 -219
- package/dist/collection/components/select-popover/select-popover.js +26 -78
- package/dist/collection/components/select-popover/select-popover.md.css +0 -165
- 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/overlays.js +30 -26
- package/dist/collection/utils/sanitization/index.js +18 -274
- package/dist/docs.json +1189 -497
- package/dist/esm/config-DQCONYYp.js +195 -0
- package/dist/esm/{index-AlrZKoWR.js → index-DV3sJJW8.js} +1 -1
- package/dist/esm/index.js +2 -3
- package/dist/esm/ion-accordion_2.entry.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +7 -27
- package/dist/esm/ion-alert.entry.js +24 -63
- package/dist/esm/ion-app_8.entry.js +9 -23
- 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.entry.js → ion-datetime_3.entry.js} +641 -5
- package/dist/esm/ion-fab_3.entry.js +1 -1
- package/dist/esm/ion-img.entry.js +2 -4
- package/dist/esm/ion-infinite-scroll_2.entry.js +1 -2
- 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 +4 -9
- package/dist/esm/ion-menu_3.entry.js +2 -2
- package/dist/esm/ion-modal.entry.js +18 -23
- package/dist/esm/ion-nav_2.entry.js +116 -3
- package/dist/esm/ion-popover.entry.js +5 -9
- 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 +4 -5
- 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 +4 -18
- 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 +30 -84
- package/dist/esm/ion-select_3.entry.js +52 -410
- 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 +4 -5
- 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/{overlays-DLNOHWNc.js → overlays-Dg0q2_tJ.js} +32 -28
- package/dist/html.html-data.json +80 -52
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-01f81ea5.entry.js +4 -0
- package/dist/ionic/p-0cc11f99.entry.js +4 -0
- package/dist/ionic/p-0dc33652.entry.js +4 -0
- package/dist/ionic/{p-fe4aa1db.entry.js → p-0fa9c382.entry.js} +1 -1
- package/dist/ionic/p-20b1a044.entry.js +4 -0
- package/dist/ionic/p-21eb76d5.entry.js +4 -0
- package/dist/ionic/p-27d30585.entry.js +4 -0
- package/dist/ionic/p-2a05aa64.entry.js +4 -0
- package/dist/ionic/p-2bb2cb18.entry.js +4 -0
- package/dist/ionic/{p-80b44b3c.entry.js → p-3353c229.entry.js} +1 -1
- package/dist/ionic/{p-c93553d2.entry.js → p-34586ead.entry.js} +1 -1
- package/dist/ionic/{p-a7628bc7.entry.js → p-37e720da.entry.js} +1 -1
- package/dist/ionic/{p-9177f4ac.entry.js → p-390ca786.entry.js} +1 -1
- package/dist/ionic/{p-259d0d98.entry.js → p-3a126bca.entry.js} +1 -1
- package/dist/ionic/{p-4502a274.entry.js → p-3a7d1e91.entry.js} +1 -1
- package/dist/ionic/{p-627fabd9.entry.js → p-3ae5f277.entry.js} +1 -1
- package/dist/ionic/{p-a5213260.entry.js → p-4858af1f.entry.js} +1 -1
- package/dist/ionic/p-485fda23.entry.js +4 -0
- package/dist/ionic/p-4baa5b82.entry.js +4 -0
- package/dist/ionic/p-5018dfc8.entry.js +4 -0
- package/dist/ionic/p-50e1194a.entry.js +4 -0
- package/dist/ionic/{p-76e92a84.entry.js → p-5d1da0a2.entry.js} +1 -1
- package/dist/ionic/p-5eb8e86d.entry.js +4 -0
- package/dist/ionic/p-65ebdf1b.entry.js +4 -0
- package/dist/ionic/p-6ebdbebe.entry.js +4 -0
- package/dist/ionic/{p-d2c7f046.entry.js → p-75dc25ba.entry.js} +1 -1
- package/dist/ionic/{p-b9ac1fe0.entry.js → p-84d5ce05.entry.js} +1 -1
- package/dist/ionic/{p-51cd1643.entry.js → p-874b4bd8.entry.js} +1 -1
- package/dist/ionic/{p-ef93ca92.entry.js → p-8eb8ee76.entry.js} +1 -1
- package/dist/ionic/p-8fce95d5.entry.js +4 -0
- package/dist/ionic/{p-db1b6738.entry.js → p-9a65ac7f.entry.js} +1 -1
- package/dist/ionic/{p-7a37b3ce.entry.js → p-9f1103ce.entry.js} +1 -1
- package/dist/ionic/p-9f9db3a2.entry.js +4 -0
- package/dist/ionic/p-D-3ycHmd.js +4 -0
- package/dist/ionic/{p-AlrZKoWR.js → p-DV3sJJW8.js} +1 -1
- package/dist/ionic/p-DzWaWHGc.js +4 -0
- package/dist/ionic/p-a21add2f.entry.js +4 -0
- package/dist/ionic/{p-d8387b99.entry.js → p-c4d8641b.entry.js} +1 -1
- package/dist/ionic/p-ca2ab74d.entry.js +4 -0
- package/dist/ionic/{p-629e4703.entry.js → p-e0be05c5.entry.js} +1 -1
- package/dist/ionic/p-ec090e0a.entry.js +4 -0
- package/dist/ionic/{p-b1599fca.entry.js → p-ef4c3bee.entry.js} +1 -1
- package/dist/ionic/p-f386f6ae.entry.js +4 -0
- package/dist/ionic/{p-341032b3.entry.js → p-fabcce6c.entry.js} +1 -1
- package/dist/types/components/img/img.d.ts +0 -2
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +4 -11
- package/dist/types/components/nav/nav-interface.d.ts +1 -0
- package/dist/types/components/nav/nav.d.ts +22 -2
- package/dist/types/components/picker-legacy/animations/ios.enter.d.ts +5 -0
- package/dist/types/components/picker-legacy/animations/ios.leave.d.ts +5 -0
- package/dist/types/components/picker-legacy/picker-interface.d.ts +52 -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/picker-legacy-column/test/test.utils.d.ts +9 -0
- package/dist/types/components/route/route.d.ts +1 -1
- package/dist/types/components/router-outlet/router-outlet.d.ts +0 -7
- package/dist/types/components/searchbar/searchbar.d.ts +1 -1
- package/dist/types/components/select/select-interface.d.ts +0 -31
- package/dist/types/components/select/select.d.ts +0 -18
- package/dist/types/components/select-option/select-option.d.ts +1 -42
- package/dist/types/components.d.ts +303 -74
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/utils/config.d.ts +8 -0
- package/dist/types/utils/overlays.d.ts +9 -11
- package/dist/types/utils/sanitization/index.d.ts +2 -58
- package/hydrate/index.js +1268 -1400
- package/hydrate/index.mjs +1268 -1400
- package/package.json +5 -37
- package/components/p-279dFMvg.js +0 -4
- package/components/p-BSQPZ79H.js +0 -4
- package/components/p-BwKpO3Is.js +0 -4
- package/components/p-C-Rx1zny.js +0 -4
- package/components/p-CHzfYZbv.js +0 -4
- package/components/p-D4h1H_hh.js +0 -4
- package/components/p-LMGfIvTf.js +0 -4
- package/components/p-_lHSumhG.js +0 -4
- package/components/p-j9Da6cYO.js +0 -4
- package/components/p-jOtMJMv8.js +0 -4
- package/components/p-uTR_dEqg.js +0 -4
- package/dist/cjs/config-DWdFbSNK.js +0 -35
- package/dist/cjs/index-Cueg3U4w.js +0 -429
- package/dist/cjs/overlay-control-label-D2sdL2O8.js +0 -50
- package/dist/cjs/select-option-render-DTF50t5r.js +0 -124
- package/dist/collection/utils/overlay-control-label.js +0 -45
- package/dist/collection/utils/select-option-render.js +0 -119
- package/dist/esm/config-BwKpO3Is.js +0 -31
- package/dist/esm/index-DQSkZyOJ.js +0 -424
- package/dist/esm/overlay-control-label-BSQPZ79H.js +0 -47
- package/dist/esm/select-option-render-B8nWZRnd.js +0 -122
- package/dist/ionic/p-038eb991.entry.js +0 -4
- package/dist/ionic/p-4621c387.entry.js +0 -4
- package/dist/ionic/p-4ace7762.entry.js +0 -4
- package/dist/ionic/p-4bb3eb60.entry.js +0 -4
- package/dist/ionic/p-4e9ec5c5.entry.js +0 -4
- package/dist/ionic/p-5c3ec490.entry.js +0 -4
- package/dist/ionic/p-5d1ac2c7.entry.js +0 -4
- package/dist/ionic/p-700795f6.entry.js +0 -4
- package/dist/ionic/p-79a36078.entry.js +0 -4
- package/dist/ionic/p-913b218a.entry.js +0 -4
- package/dist/ionic/p-BDtODLZ4.js +0 -4
- package/dist/ionic/p-BSQPZ79H.js +0 -4
- package/dist/ionic/p-BwKpO3Is.js +0 -4
- package/dist/ionic/p-Cg5-OQYy.js +0 -4
- package/dist/ionic/p-DCOvXkOm.js +0 -4
- package/dist/ionic/p-a18dcb3c.entry.js +0 -4
- package/dist/ionic/p-a9a33367.entry.js +0 -4
- package/dist/ionic/p-ad728198.entry.js +0 -4
- package/dist/ionic/p-bfc8c629.entry.js +0 -4
- package/dist/ionic/p-c08e666a.entry.js +0 -4
- package/dist/ionic/p-c474f471.entry.js +0 -4
- package/dist/ionic/p-ce7992c4.entry.js +0 -4
- package/dist/ionic/p-ed797c72.entry.js +0 -4
- package/dist/ionic/p-f09f9642.entry.js +0 -4
- package/dist/ionic/p-f1c06f82.entry.js +0 -4
- package/dist/ionic/p-f718fccb.entry.js +0 -4
- package/dist/types/utils/overlay-control-label.d.ts +0 -32
- package/dist/types/utils/select-option-render.d.ts +0 -53
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
var index = require('./index-Ct7gcRif.js');
|
|
7
|
-
var index$1 = require('./index-Cueg3U4w.js');
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Converts a DOM node into a Stencil VNode (or text string) so the
|
|
11
|
-
* resulting tree is rendered through the component's normal render
|
|
12
|
-
* path. Rendering through Stencil ensures that scoped CSS classes
|
|
13
|
-
* (e.g. `sc-ion-action-sheet-ionic`) are applied to every element.
|
|
14
|
-
*
|
|
15
|
-
* Highly recommended to pre-sanitize the source DOM (see
|
|
16
|
-
* `getOptionContent` in select.tsx). This function performs pure
|
|
17
|
-
* structural conversion — no security filtering.
|
|
18
|
-
*
|
|
19
|
-
* Preserves attributes only — properties set imperatively on the source
|
|
20
|
-
* element (e.g. `input.value` after a user types) won't carry through.
|
|
21
|
-
* In practice this isn't a concern: interactive controls shouldn't
|
|
22
|
-
* appear in select-option rich content since they'd nest inside the
|
|
23
|
-
* overlay's button/radio/checkbox wrapper, which is invalid HTML and
|
|
24
|
-
* an accessibility issue.
|
|
25
|
-
*
|
|
26
|
-
* @param node - The DOM node to convert. Text nodes become strings,
|
|
27
|
-
* element nodes become VNodes, and any other node types are skipped.
|
|
28
|
-
* @param keyPrefix - String prefix used to build a stable VNode key,
|
|
29
|
-
* so Stencil's diff can preserve elements across re-renders.
|
|
30
|
-
* @param index - Position of this node among its siblings. Combined
|
|
31
|
-
* with `keyPrefix` to form the final unique key.
|
|
32
|
-
* @returns The converted VNode, a text string, or `null` if the node
|
|
33
|
-
* type isn't supported.
|
|
34
|
-
*
|
|
35
|
-
* @internal Exported only so it can be unit tested; not part of the
|
|
36
|
-
* public API.
|
|
37
|
-
*/
|
|
38
|
-
const cloneToVNode = (node, keyPrefix, index$1) => {
|
|
39
|
-
var _a;
|
|
40
|
-
if (node.nodeType === Node.TEXT_NODE) {
|
|
41
|
-
return (_a = node.textContent) !== null && _a !== void 0 ? _a : '';
|
|
42
|
-
}
|
|
43
|
-
if (node.nodeType !== Node.ELEMENT_NODE) {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
const el = node;
|
|
47
|
-
const tag = el.tagName.toLowerCase();
|
|
48
|
-
const key = `${keyPrefix}-${index$1}`;
|
|
49
|
-
const attrs = { key };
|
|
50
|
-
for (let i = 0; i < el.attributes.length; i++) {
|
|
51
|
-
const attr = el.attributes.item(i);
|
|
52
|
-
attrs[attr.name] = attr.value;
|
|
53
|
-
}
|
|
54
|
-
const children = Array.from(el.childNodes)
|
|
55
|
-
.map((child, i) => cloneToVNode(child, key, i))
|
|
56
|
-
.filter((c) => c !== null);
|
|
57
|
-
return index.h(tag, attrs, children);
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Renders cloned DOM content as Stencil JSX. Walking the source DOM
|
|
61
|
-
* into VNodes (rather than injecting it via innerHTML) keeps the
|
|
62
|
-
* content inside Stencil's render path, so scoped CSS classes are
|
|
63
|
-
* applied automatically and component attributes like `size` or
|
|
64
|
-
* `color` survive intact.
|
|
65
|
-
*
|
|
66
|
-
* Span elements should be used when this content renders within buttons,
|
|
67
|
-
* depending on the select interface. Buttons can only have phrasing
|
|
68
|
-
* content to prevent accessibility issues.
|
|
69
|
-
*
|
|
70
|
-
* @param id - Unique identifier for generating stable virtual DOM keys.
|
|
71
|
-
* @param content - The HTMLElement container whose child nodes will be cloned.
|
|
72
|
-
* @param className - CSS class applied to the wrapper element.
|
|
73
|
-
* @param useSpan - Whether to use a span element instead of a div for the wrapper.
|
|
74
|
-
*/
|
|
75
|
-
const renderClonedContent = (id, content, className, useSpan = false) => {
|
|
76
|
-
const Tag = useSpan ? 'span' : 'div';
|
|
77
|
-
const keyPrefix = `${className}-${id}`;
|
|
78
|
-
/**
|
|
79
|
-
* Do not remove. This is the only sanitization pass for callers that pass
|
|
80
|
-
* an `HTMLElement` straight to `renderOptionLabel` (e.g. vanilla JS)
|
|
81
|
-
* without going through `getOptionContent`, which sanitizes upstream.
|
|
82
|
-
* `cloneToVNode` does pure structural conversion and no security
|
|
83
|
-
* filtering, so dropping this call would reopen an XSS hole on the
|
|
84
|
-
* direct `HTMLElement` path.
|
|
85
|
-
*/
|
|
86
|
-
index$1.sanitizeDOMTree(content);
|
|
87
|
-
return (index.h(Tag, { class: className, key: keyPrefix }, Array.from(content.childNodes).map((child, i) => cloneToVNode(child, keyPrefix, i))));
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Renders the label content for a select option within an overlay
|
|
91
|
-
* interface based on the presence of rich content.
|
|
92
|
-
*
|
|
93
|
-
* Span elements should be used when this content renders within buttons,
|
|
94
|
-
* depending on the select interface. Buttons can only have phrasing
|
|
95
|
-
* content to prevent accessibility issues.
|
|
96
|
-
*
|
|
97
|
-
* @param option - The content option data containing label, slots,
|
|
98
|
-
* and description.
|
|
99
|
-
* @param className - The base CSS class for the label element.
|
|
100
|
-
* @param useSpan - Whether to use a span element instead of a div for the label.
|
|
101
|
-
*/
|
|
102
|
-
const renderOptionLabel = (option, className, useSpan = false) => {
|
|
103
|
-
const { id, label, startContent, endContent, description } = option;
|
|
104
|
-
const hasRichContent = !!startContent || !!endContent || !!description;
|
|
105
|
-
const Tag = useSpan ? 'span' : 'div';
|
|
106
|
-
// Render simple string label if there is no rich content to display
|
|
107
|
-
if (!hasRichContent && (typeof label === 'string' || !label)) {
|
|
108
|
-
return (index.h(Tag, { class: className, key: `${className}-${id}` }, label));
|
|
109
|
-
}
|
|
110
|
-
// Render the main label
|
|
111
|
-
const labelEl = typeof label === 'string' || !label ? (
|
|
112
|
-
// Label is a simple string or undefined
|
|
113
|
-
index.h(Tag, { key: `${className}-label-${id}` }, label)) : (
|
|
114
|
-
// Label is an HTMLElement with potential rich content
|
|
115
|
-
renderClonedContent(id, label, `${className}-text`, useSpan));
|
|
116
|
-
// No rich content, render just the label
|
|
117
|
-
if (!hasRichContent) {
|
|
118
|
-
return (index.h(Tag, { class: className, key: `${className}-${id}` }, labelEl));
|
|
119
|
-
}
|
|
120
|
-
// Render label with rich content (start, end, description)
|
|
121
|
-
return (index.h(Tag, { class: `${className} ${className}-has-rich-content`, key: `${className}-${id}` }, startContent && renderClonedContent(id, startContent, 'select-option-start', useSpan), index.h(Tag, { class: "select-option-content", key: `${className}-content-${id}` }, labelEl, description && (index.h(Tag, { class: "select-option-description", key: `${className}-desc-${id}` }, description))), endContent && renderClonedContent(id, endContent, 'select-option-end', useSpan)));
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
exports.renderOptionLabel = renderOptionLabel;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
// TODO(FW-6886, FW-6892, FW-6891): Remove this file in favor of the Modular Ionic component config. Each overlay will be able to select its own defaults for label placement and justify based on the interface and mode, so this utility will no longer be necessary.
|
|
5
|
-
/**
|
|
6
|
-
* Returns the default `labelPlacement` for a radio or checkbox option
|
|
7
|
-
* rendered inside an overlay. Defaults follow each mode's established
|
|
8
|
-
* option-row layout:
|
|
9
|
-
* - `ios`: `"start"` for radio in `alert` and `popover`. The `modal`
|
|
10
|
-
* interface flips iOS radio back to `"end"`. Checkbox is always
|
|
11
|
-
* `"end"` on iOS.
|
|
12
|
-
* - everything else (e.g. `md`): `"end"`.
|
|
13
|
-
*
|
|
14
|
-
* `interfaceType` is optional; only `"modal"` changes the result, so
|
|
15
|
-
* callers that aren't a modal can omit it.
|
|
16
|
-
*
|
|
17
|
-
* Used by `select-popover` and `select-modal` as the fallback when an
|
|
18
|
-
* option doesn't explicitly set `labelPlacement`.
|
|
19
|
-
*/
|
|
20
|
-
export const getOverlayLabelPlacement = (mode, control, interfaceType) => {
|
|
21
|
-
if (mode === 'ios' && control === 'radio' && interfaceType !== 'modal') {
|
|
22
|
-
return 'start';
|
|
23
|
-
}
|
|
24
|
-
return 'end';
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Returns the default `justify` for a radio or checkbox option rendered
|
|
28
|
-
* inside an overlay. Defaults follow each mode's option-row layout:
|
|
29
|
-
* - `ios`: `"space-between"` for radio in `alert` and `popover`. The
|
|
30
|
-
* `modal` interface falls back to `"start"`. Checkbox is always `"start"`
|
|
31
|
-
* on iOS.
|
|
32
|
-
* - everything else (e.g. `md`): `"start"`.
|
|
33
|
-
*
|
|
34
|
-
* `interfaceType` is optional; only `"modal"` changes the result, so
|
|
35
|
-
* callers that aren't a modal can omit it.
|
|
36
|
-
*
|
|
37
|
-
* Used by `select-popover` and `select-modal` as the fallback when an
|
|
38
|
-
* option doesn't explicitly set `justify`.
|
|
39
|
-
*/
|
|
40
|
-
export const getOverlayLabelJustify = (mode, control, interfaceType) => {
|
|
41
|
-
if (mode === 'ios' && control === 'radio' && interfaceType !== 'modal') {
|
|
42
|
-
return 'space-between';
|
|
43
|
-
}
|
|
44
|
-
return 'start';
|
|
45
|
-
};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { h } from "@stencil/core";
|
|
5
|
-
import { sanitizeDOMTree } from "./sanitization/index";
|
|
6
|
-
/**
|
|
7
|
-
* Converts a DOM node into a Stencil VNode (or text string) so the
|
|
8
|
-
* resulting tree is rendered through the component's normal render
|
|
9
|
-
* path. Rendering through Stencil ensures that scoped CSS classes
|
|
10
|
-
* (e.g. `sc-ion-action-sheet-ionic`) are applied to every element.
|
|
11
|
-
*
|
|
12
|
-
* Highly recommended to pre-sanitize the source DOM (see
|
|
13
|
-
* `getOptionContent` in select.tsx). This function performs pure
|
|
14
|
-
* structural conversion — no security filtering.
|
|
15
|
-
*
|
|
16
|
-
* Preserves attributes only — properties set imperatively on the source
|
|
17
|
-
* element (e.g. `input.value` after a user types) won't carry through.
|
|
18
|
-
* In practice this isn't a concern: interactive controls shouldn't
|
|
19
|
-
* appear in select-option rich content since they'd nest inside the
|
|
20
|
-
* overlay's button/radio/checkbox wrapper, which is invalid HTML and
|
|
21
|
-
* an accessibility issue.
|
|
22
|
-
*
|
|
23
|
-
* @param node - The DOM node to convert. Text nodes become strings,
|
|
24
|
-
* element nodes become VNodes, and any other node types are skipped.
|
|
25
|
-
* @param keyPrefix - String prefix used to build a stable VNode key,
|
|
26
|
-
* so Stencil's diff can preserve elements across re-renders.
|
|
27
|
-
* @param index - Position of this node among its siblings. Combined
|
|
28
|
-
* with `keyPrefix` to form the final unique key.
|
|
29
|
-
* @returns The converted VNode, a text string, or `null` if the node
|
|
30
|
-
* type isn't supported.
|
|
31
|
-
*
|
|
32
|
-
* @internal Exported only so it can be unit tested; not part of the
|
|
33
|
-
* public API.
|
|
34
|
-
*/
|
|
35
|
-
export const cloneToVNode = (node, keyPrefix, index) => {
|
|
36
|
-
var _a;
|
|
37
|
-
if (node.nodeType === Node.TEXT_NODE) {
|
|
38
|
-
return (_a = node.textContent) !== null && _a !== void 0 ? _a : '';
|
|
39
|
-
}
|
|
40
|
-
if (node.nodeType !== Node.ELEMENT_NODE) {
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
const el = node;
|
|
44
|
-
const tag = el.tagName.toLowerCase();
|
|
45
|
-
const key = `${keyPrefix}-${index}`;
|
|
46
|
-
const attrs = { key };
|
|
47
|
-
for (let i = 0; i < el.attributes.length; i++) {
|
|
48
|
-
const attr = el.attributes.item(i);
|
|
49
|
-
attrs[attr.name] = attr.value;
|
|
50
|
-
}
|
|
51
|
-
const children = Array.from(el.childNodes)
|
|
52
|
-
.map((child, i) => cloneToVNode(child, key, i))
|
|
53
|
-
.filter((c) => c !== null);
|
|
54
|
-
return h(tag, attrs, children);
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Renders cloned DOM content as Stencil JSX. Walking the source DOM
|
|
58
|
-
* into VNodes (rather than injecting it via innerHTML) keeps the
|
|
59
|
-
* content inside Stencil's render path, so scoped CSS classes are
|
|
60
|
-
* applied automatically and component attributes like `size` or
|
|
61
|
-
* `color` survive intact.
|
|
62
|
-
*
|
|
63
|
-
* Span elements should be used when this content renders within buttons,
|
|
64
|
-
* depending on the select interface. Buttons can only have phrasing
|
|
65
|
-
* content to prevent accessibility issues.
|
|
66
|
-
*
|
|
67
|
-
* @param id - Unique identifier for generating stable virtual DOM keys.
|
|
68
|
-
* @param content - The HTMLElement container whose child nodes will be cloned.
|
|
69
|
-
* @param className - CSS class applied to the wrapper element.
|
|
70
|
-
* @param useSpan - Whether to use a span element instead of a div for the wrapper.
|
|
71
|
-
*/
|
|
72
|
-
const renderClonedContent = (id, content, className, useSpan = false) => {
|
|
73
|
-
const Tag = useSpan ? 'span' : 'div';
|
|
74
|
-
const keyPrefix = `${className}-${id}`;
|
|
75
|
-
/**
|
|
76
|
-
* Do not remove. This is the only sanitization pass for callers that pass
|
|
77
|
-
* an `HTMLElement` straight to `renderOptionLabel` (e.g. vanilla JS)
|
|
78
|
-
* without going through `getOptionContent`, which sanitizes upstream.
|
|
79
|
-
* `cloneToVNode` does pure structural conversion and no security
|
|
80
|
-
* filtering, so dropping this call would reopen an XSS hole on the
|
|
81
|
-
* direct `HTMLElement` path.
|
|
82
|
-
*/
|
|
83
|
-
sanitizeDOMTree(content);
|
|
84
|
-
return (h(Tag, { class: className, key: keyPrefix }, Array.from(content.childNodes).map((child, i) => cloneToVNode(child, keyPrefix, i))));
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* Renders the label content for a select option within an overlay
|
|
88
|
-
* interface based on the presence of rich content.
|
|
89
|
-
*
|
|
90
|
-
* Span elements should be used when this content renders within buttons,
|
|
91
|
-
* depending on the select interface. Buttons can only have phrasing
|
|
92
|
-
* content to prevent accessibility issues.
|
|
93
|
-
*
|
|
94
|
-
* @param option - The content option data containing label, slots,
|
|
95
|
-
* and description.
|
|
96
|
-
* @param className - The base CSS class for the label element.
|
|
97
|
-
* @param useSpan - Whether to use a span element instead of a div for the label.
|
|
98
|
-
*/
|
|
99
|
-
export const renderOptionLabel = (option, className, useSpan = false) => {
|
|
100
|
-
const { id, label, startContent, endContent, description } = option;
|
|
101
|
-
const hasRichContent = !!startContent || !!endContent || !!description;
|
|
102
|
-
const Tag = useSpan ? 'span' : 'div';
|
|
103
|
-
// Render simple string label if there is no rich content to display
|
|
104
|
-
if (!hasRichContent && (typeof label === 'string' || !label)) {
|
|
105
|
-
return (h(Tag, { class: className, key: `${className}-${id}` }, label));
|
|
106
|
-
}
|
|
107
|
-
// Render the main label
|
|
108
|
-
const labelEl = typeof label === 'string' || !label ? (
|
|
109
|
-
// Label is a simple string or undefined
|
|
110
|
-
h(Tag, { key: `${className}-label-${id}` }, label)) : (
|
|
111
|
-
// Label is an HTMLElement with potential rich content
|
|
112
|
-
renderClonedContent(id, label, `${className}-text`, useSpan));
|
|
113
|
-
// No rich content, render just the label
|
|
114
|
-
if (!hasRichContent) {
|
|
115
|
-
return (h(Tag, { class: className, key: `${className}-${id}` }, labelEl));
|
|
116
|
-
}
|
|
117
|
-
// Render label with rich content (start, end, description)
|
|
118
|
-
return (h(Tag, { class: `${className} ${className}-has-rich-content`, key: `${className}-${id}` }, startContent && renderClonedContent(id, startContent, 'select-option-start', useSpan), h(Tag, { class: "select-option-content", key: `${className}-content-${id}` }, labelEl, description && (h(Tag, { class: "select-option-description", key: `${className}-desc-${id}` }, description))), endContent && renderClonedContent(id, endContent, 'select-option-end', useSpan)));
|
|
119
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
const setupConfig = (config) => {
|
|
5
|
-
const win = window;
|
|
6
|
-
const Ionic = win.Ionic;
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
8
|
-
if (Ionic && Ionic.config && Ionic.config.constructor.name !== 'Object') {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
win.Ionic = win.Ionic || {};
|
|
12
|
-
win.Ionic.config = Object.assign(Object.assign({}, win.Ionic.config), config);
|
|
13
|
-
return win.Ionic.config;
|
|
14
|
-
};
|
|
15
|
-
const getMode = () => {
|
|
16
|
-
var _a;
|
|
17
|
-
const win = window;
|
|
18
|
-
const config = (_a = win === null || win === void 0 ? void 0 : win.Ionic) === null || _a === void 0 ? void 0 : _a.config;
|
|
19
|
-
if (config) {
|
|
20
|
-
if (config.mode) {
|
|
21
|
-
return config.mode;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
return config.get('mode');
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return 'md';
|
|
28
|
-
};
|
|
29
|
-
const ENABLE_HTML_CONTENT_DEFAULT = false;
|
|
30
|
-
|
|
31
|
-
export { ENABLE_HTML_CONTENT_DEFAULT as E, getMode as g, setupConfig as s };
|