voyager-ionic-core 7.7.0 → 7.7.2
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/action-sheet.js +8 -4
- package/components/alert.js +6 -2
- package/components/ion-loading.js +6 -2
- package/components/ion-modal.js +8 -6
- package/components/ion-picker.js +6 -2
- package/components/ion-toast.js +6 -2
- package/components/item.js +3 -12
- package/components/overlays.js +54 -9
- package/components/popover.js +7 -3
- package/components/select-popover.js +2 -2
- package/dist/cjs/{app-globals-5a17c5e1.js → app-globals-92ad1b3d.js} +1 -1
- package/dist/cjs/{button-active-b8c3f603.js → button-active-2d6520ec.js} +1 -1
- package/dist/cjs/{hardware-back-button-d23873bb.js → hardware-back-button-2696acaf.js} +2 -2
- package/dist/cjs/{index-5a471146.js → index-0ffe376d.js} +25 -22
- package/dist/cjs/{index-8c679cbf.js → index-a43f7a0f.js} +2 -2
- package/dist/cjs/{index-84351d21.js → index-c3580a90.js} +3 -3
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-action-sheet.cjs.entry.js +13 -9
- package/dist/cjs/ion-alert.cjs.entry.js +11 -7
- package/dist/cjs/ion-app_8.cjs.entry.js +6 -6
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +10 -6
- package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-input.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-item_8.cjs.entry.js +4 -4
- package/dist/cjs/ion-loading.cjs.entry.js +10 -6
- package/dist/cjs/ion-menu_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-modal.cjs.entry.js +12 -10
- package/dist/cjs/ion-nav_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column-internal.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-internal.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +12 -8
- package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/ion-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-range.cjs.entry.js +2 -2
- package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-select_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
- 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 +10 -6
- package/dist/cjs/ion-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{ionic-global-7358c23e.js → ionic-global-59a10130.js} +1 -1
- package/dist/cjs/ionic.cjs.js +6 -6
- package/dist/cjs/{ios.transition-8e40c54e.js → ios.transition-c3b11cc3.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{md.transition-597a2479.js → md.transition-82a8c649.js} +2 -2
- package/dist/cjs/{overlays-eaf2075f.js → overlays-fb7ca451.js} +55 -11
- package/dist/cjs/{status-tap-b0bfea34.js → status-tap-692f6d32.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/action-sheet/action-sheet.ios.css +13 -1
- package/dist/collection/components/action-sheet/action-sheet.js +9 -5
- package/dist/collection/components/alert/alert.js +8 -4
- package/dist/collection/components/item/item.js +3 -12
- package/dist/collection/components/loading/loading.js +8 -4
- package/dist/collection/components/modal/modal.js +10 -8
- package/dist/collection/components/modal/test/animations/modal.e2e.js +36 -0
- package/dist/collection/components/picker/picker.js +8 -4
- package/dist/collection/components/popover/popover.ios.css +7 -0
- package/dist/collection/components/popover/popover.js +8 -4
- package/dist/collection/components/select-popover/select-popover.ios.css +10 -0
- package/dist/collection/components/select-popover/select-popover.md.css +10 -0
- package/dist/collection/components/toast/test/toast.spec.js +12 -0
- package/dist/collection/components/toast/toast.js +8 -4
- package/dist/collection/utils/overlays.js +53 -8
- package/dist/collection/utils/test/overlays/overlays.e2e.js +33 -0
- package/dist/collection/utils/test/overlays/overlays.spec.js +51 -0
- package/dist/docs.json +23 -23
- package/dist/esm/{app-globals-47226a12.js → app-globals-5cf6195b.js} +1 -1
- package/dist/esm/{button-active-4bee452c.js → button-active-47ac8092.js} +1 -1
- package/dist/esm/{hardware-back-button-f42b9c80.js → hardware-back-button-b410a047.js} +2 -2
- package/dist/esm/{index-4b98143d.js → index-0b4beb69.js} +3 -3
- package/dist/esm/{index-48209844.js → index-47b2066d.js} +2 -2
- package/dist/esm/{index-73881b51.js → index-4c30cddd.js} +25 -22
- package/dist/esm/index.js +8 -8
- package/dist/esm/ion-accordion_2.entry.js +2 -2
- package/dist/esm/ion-action-sheet.entry.js +13 -9
- package/dist/esm/ion-alert.entry.js +11 -7
- package/dist/esm/ion-app_8.entry.js +6 -6
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +2 -2
- package/dist/esm/ion-card_5.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +2 -2
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +10 -6
- package/dist/esm/ion-fab_3.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
- package/dist/esm/ion-input.entry.js +2 -2
- package/dist/esm/ion-item-option_3.entry.js +2 -2
- package/dist/esm/ion-item_8.entry.js +4 -4
- package/dist/esm/ion-loading.entry.js +10 -6
- package/dist/esm/ion-menu_3.entry.js +5 -5
- package/dist/esm/ion-modal.entry.js +12 -10
- package/dist/esm/ion-nav_2.entry.js +3 -3
- package/dist/esm/ion-picker-column-internal.entry.js +2 -2
- package/dist/esm/ion-picker-internal.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +12 -8
- package/dist/esm/ion-progress-bar.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +2 -2
- package/dist/esm/ion-range.entry.js +2 -2
- package/dist/esm/ion-refresher_2.entry.js +2 -2
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +2 -2
- package/dist/esm/ion-select_3.entry.js +6 -6
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +2 -2
- package/dist/esm/ion-tab_2.entry.js +1 -1
- 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 +10 -6
- package/dist/esm/ion-toggle.entry.js +2 -2
- package/dist/esm/{ionic-global-778b7863.js → ionic-global-ad9a1810.js} +1 -1
- package/dist/esm/ionic.js +7 -7
- package/dist/esm/{ios.transition-7ff7381d.js → ios.transition-b76c7020.js} +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{md.transition-28a9a26b.js → md.transition-564937a7.js} +2 -2
- package/dist/esm/{overlays-fad5fe01.js → overlays-04a9a43f.js} +56 -11
- package/dist/esm/{status-tap-2b335fb7.js → status-tap-5a95077d.js} +1 -1
- package/dist/esm-es5/app-globals-5cf6195b.js +4 -0
- package/dist/esm-es5/{button-active-4bee452c.js → button-active-47ac8092.js} +1 -1
- package/dist/esm-es5/{hardware-back-button-f42b9c80.js → hardware-back-button-b410a047.js} +1 -1
- package/dist/esm-es5/{index-4b98143d.js → index-0b4beb69.js} +1 -1
- package/dist/esm-es5/{index-48209844.js → index-47b2066d.js} +1 -1
- package/dist/esm-es5/{index-73881b51.js → index-4c30cddd.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-internal.entry.js +1 -1
- package/dist/esm-es5/ion-picker-internal.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/{ionic-global-778b7863.js → ionic-global-ad9a1810.js} +1 -1
- package/dist/esm-es5/ionic.js +2 -2
- package/dist/esm-es5/{ios.transition-7ff7381d.js → ios.transition-b76c7020.js} +1 -1
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/md.transition-564937a7.js +4 -0
- package/dist/esm-es5/overlays-04a9a43f.js +4 -0
- package/dist/esm-es5/{status-tap-2b335fb7.js → status-tap-5a95077d.js} +1 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/{p-ce2eabd5.entry.js → p-027f3674.entry.js} +1 -1
- package/dist/ionic/{p-dce9bc53.entry.js → p-0457213c.entry.js} +1 -1
- package/dist/ionic/{p-9db1e4c5.entry.js → p-05d560ec.entry.js} +1 -1
- package/dist/ionic/p-0b34d3a7.system.js +4 -0
- package/dist/ionic/{p-eb1fdf9f.system.entry.js → p-0e23c289.system.entry.js} +1 -1
- package/dist/ionic/{p-8569d759.system.entry.js → p-1131946f.system.entry.js} +1 -1
- package/dist/ionic/{p-8ddc00f7.js → p-123b4809.js} +1 -1
- package/dist/ionic/{p-5eea8b4c.system.js → p-1636923f.system.js} +1 -1
- package/dist/ionic/{p-333f06ed.entry.js → p-16a61810.entry.js} +1 -1
- package/dist/ionic/p-18beebdf.system.entry.js +4 -0
- package/dist/ionic/{p-e6cfaa07.system.entry.js → p-1924f2e0.system.entry.js} +2 -2
- package/dist/ionic/{p-396c1a55.entry.js → p-1f16d040.entry.js} +1 -1
- package/dist/ionic/{p-e6aaff14.system.entry.js → p-1f19958f.system.entry.js} +1 -1
- package/dist/ionic/p-21ca1f1c.js +4 -0
- package/dist/ionic/{p-df468a8f.entry.js → p-2327064c.entry.js} +1 -1
- package/dist/ionic/{p-5a0c301f.entry.js → p-23c73017.entry.js} +1 -1
- package/dist/ionic/{p-3a98f8db.entry.js → p-275705e5.entry.js} +1 -1
- package/dist/ionic/{p-c6fef62b.system.js → p-2e14c533.system.js} +1 -1
- package/dist/ionic/{p-34947dff.system.entry.js → p-2e1f014a.system.entry.js} +1 -1
- package/dist/ionic/{p-aa7ae6aa.entry.js → p-3079950e.entry.js} +1 -1
- package/dist/ionic/{p-b4d8fe47.js → p-30cd5e7b.js} +1 -1
- package/dist/ionic/{p-b8c4df21.entry.js → p-337ac0f5.entry.js} +1 -1
- package/dist/ionic/{p-9eb4ea47.system.entry.js → p-3471a7c0.system.entry.js} +1 -1
- package/dist/ionic/{p-0e29919c.system.entry.js → p-3481d54e.system.entry.js} +1 -1
- package/dist/ionic/{p-51f08a9f.entry.js → p-396083cc.entry.js} +1 -1
- package/dist/ionic/{p-f88dd429.entry.js → p-3a7de59c.entry.js} +1 -1
- package/dist/ionic/{p-9f6397ce.entry.js → p-3d961d93.entry.js} +1 -1
- package/dist/ionic/p-3e9ad72a.system.entry.js +4 -0
- package/dist/ionic/{p-70026e8f.system.entry.js → p-42a9f663.system.entry.js} +1 -1
- package/dist/ionic/{p-400574bf.entry.js → p-43a5edee.entry.js} +1 -1
- package/dist/ionic/{p-3eb2da31.js → p-49aba878.js} +1 -1
- package/dist/ionic/{p-5e60dbc8.entry.js → p-4fda5c35.entry.js} +1 -1
- package/dist/ionic/{p-3cdbaa49.entry.js → p-502780e4.entry.js} +1 -1
- package/dist/ionic/{p-108f730a.entry.js → p-508a4c87.entry.js} +1 -1
- package/dist/ionic/{p-9f5b40c0.system.entry.js → p-5928fac9.system.entry.js} +1 -1
- package/dist/ionic/p-5b40d967.entry.js +4 -0
- package/dist/ionic/p-5c2ae448.js +4 -0
- package/dist/ionic/{p-a2ad515b.entry.js → p-5c580e89.entry.js} +1 -1
- package/dist/ionic/{p-a02b2d75.entry.js → p-5c6a04bd.entry.js} +1 -1
- package/dist/ionic/{p-30c9e049.system.entry.js → p-5cb5f63d.system.entry.js} +1 -1
- package/dist/ionic/{p-1aa7c019.js → p-5d7e32ce.js} +1 -1
- package/dist/ionic/{p-3a54c070.system.entry.js → p-5e23bea8.system.entry.js} +1 -1
- package/dist/ionic/{p-a114530c.entry.js → p-5f169eba.entry.js} +1 -1
- package/dist/ionic/{p-1c531ca2.entry.js → p-601e17b4.entry.js} +1 -1
- package/dist/ionic/{p-84f589e1.entry.js → p-64761c90.entry.js} +1 -1
- package/dist/ionic/{p-bc2c03d7.system.entry.js → p-64856c3c.system.entry.js} +1 -1
- package/dist/ionic/{p-d181166c.system.entry.js → p-6486e393.system.entry.js} +1 -1
- package/dist/ionic/{p-efe9180b.entry.js → p-64db1331.entry.js} +1 -1
- package/dist/ionic/{p-3f028207.system.js → p-6525a8cd.system.js} +1 -1
- package/dist/ionic/{p-d8607ede.entry.js → p-657ccdd6.entry.js} +1 -1
- package/dist/ionic/p-667e3e2d.entry.js +4 -0
- package/dist/ionic/{p-cd055d60.system.entry.js → p-68ba8e77.system.entry.js} +1 -1
- package/dist/ionic/{p-2f66e177.system.entry.js → p-70e34286.system.entry.js} +1 -1
- package/dist/ionic/{p-df281664.system.entry.js → p-7173ba59.system.entry.js} +1 -1
- package/dist/ionic/{p-20a6513f.system.entry.js → p-717e2526.system.entry.js} +1 -1
- package/dist/ionic/{p-76893257.system.js → p-72fa96bf.system.js} +1 -1
- package/dist/ionic/{p-25b08bc4.system.js → p-74deb358.system.js} +1 -1
- package/dist/ionic/{p-a1bfaa5c.system.entry.js → p-7b1ed642.system.entry.js} +1 -1
- package/dist/ionic/{p-fd3f475f.entry.js → p-7ce40e7b.entry.js} +1 -1
- package/dist/ionic/{p-58e3ae88.system.entry.js → p-86813176.system.entry.js} +1 -1
- package/dist/ionic/{p-0eef8b34.system.entry.js → p-8794fa00.system.entry.js} +1 -1
- package/dist/ionic/{p-a051c371.entry.js → p-88e9052d.entry.js} +1 -1
- package/dist/ionic/{p-b94882a9.system.js → p-89ca4c4b.system.js} +1 -1
- package/dist/ionic/{p-f46775e4.entry.js → p-8e651c29.entry.js} +1 -1
- package/dist/ionic/{p-f97b9cdd.system.entry.js → p-9056778e.system.entry.js} +1 -1
- package/dist/ionic/{p-594ead2f.entry.js → p-91cb3f9a.entry.js} +1 -1
- package/dist/ionic/{p-97eca294.entry.js → p-95d5a097.entry.js} +1 -1
- package/dist/ionic/{p-95c44e02.system.js → p-9cd7ba27.system.js} +1 -1
- package/dist/ionic/{p-fd36799d.system.js → p-9ec7208d.system.js} +1 -1
- package/dist/ionic/{p-4fc40349.system.entry.js → p-a022b684.system.entry.js} +1 -1
- package/dist/ionic/{p-078fd095.system.entry.js → p-a0b28c69.system.entry.js} +1 -1
- package/dist/ionic/{p-eda7a1db.system.entry.js → p-a3df16b9.system.entry.js} +1 -1
- package/dist/ionic/{p-62a3c609.system.js → p-a5951821.system.js} +1 -1
- package/dist/ionic/{p-c569d1c8.entry.js → p-a6e465f5.entry.js} +1 -1
- package/dist/ionic/{p-9a6ab80a.system.entry.js → p-a85d9047.system.entry.js} +1 -1
- package/dist/ionic/{p-88ca4854.entry.js → p-a8a56449.entry.js} +1 -1
- package/dist/ionic/{p-5615cf3f.system.entry.js → p-aaaa615c.system.entry.js} +1 -1
- package/dist/ionic/{p-ac20160b.system.entry.js → p-abcedc15.system.entry.js} +1 -1
- package/dist/ionic/{p-0ae25399.system.entry.js → p-ae35294f.system.entry.js} +1 -1
- package/dist/ionic/{p-6f38d0c5.system.entry.js → p-afd6d696.system.entry.js} +1 -1
- package/dist/ionic/{p-d7260b87.entry.js → p-b0ff8075.entry.js} +1 -1
- package/dist/ionic/{p-e68980ff.system.entry.js → p-b2595011.system.entry.js} +1 -1
- package/dist/ionic/{p-fe92da17.entry.js → p-b6279412.entry.js} +1 -1
- package/dist/ionic/{p-1d8c2cfc.system.entry.js → p-ba97a133.system.entry.js} +1 -1
- package/dist/ionic/{p-38a6fee7.entry.js → p-bd4787eb.entry.js} +1 -1
- package/dist/ionic/p-bdca4784.js +4 -0
- package/dist/ionic/{p-2da0a76c.entry.js → p-bf05cbc7.entry.js} +1 -1
- package/dist/ionic/{p-dbb4c012.entry.js → p-c11bab7e.entry.js} +1 -1
- package/dist/ionic/{p-78edc0cd.system.entry.js → p-c1797ec5.system.entry.js} +1 -1
- package/dist/ionic/{p-d95c8e90.entry.js → p-c308f773.entry.js} +1 -1
- package/dist/ionic/{p-f7b43141.system.entry.js → p-c39cc96d.system.entry.js} +1 -1
- package/dist/ionic/{p-92c2178e.system.entry.js → p-c747f89b.system.entry.js} +1 -1
- package/dist/ionic/{p-a19f5ae1.entry.js → p-cb9e71e0.entry.js} +1 -1
- package/dist/ionic/{p-5f456b3c.system.entry.js → p-cd9a7017.system.entry.js} +1 -1
- package/dist/ionic/{p-20f7a91e.system.entry.js → p-cde3ac34.system.entry.js} +1 -1
- package/dist/ionic/{p-4b2d5b9c.js → p-ceceac26.js} +1 -1
- package/dist/ionic/{p-89b5aff2.entry.js → p-d39ab63d.entry.js} +1 -1
- package/dist/ionic/{p-55d5cd00.system.js → p-d4cadd34.system.js} +1 -1
- package/dist/ionic/{p-c3d041af.entry.js → p-db30f71b.entry.js} +1 -1
- package/dist/ionic/p-dbcba5a2.js +4 -0
- package/dist/ionic/{p-ea8fbf09.entry.js → p-dcb5711d.entry.js} +1 -1
- package/dist/ionic/{p-341b4519.js → p-de55ec45.js} +1 -1
- package/dist/ionic/{p-001010b6.system.js → p-df504a37.system.js} +1 -1
- package/dist/ionic/{p-84879f61.system.entry.js → p-e04b9647.system.entry.js} +1 -1
- package/dist/ionic/{p-dd60faa5.system.entry.js → p-e81bf09e.system.entry.js} +1 -1
- package/dist/ionic/p-e9f9388e.system.js +4 -0
- package/dist/ionic/{p-1f6cdf2c.system.entry.js → p-ea25b4c8.system.entry.js} +1 -1
- package/dist/ionic/{p-8a671f16.entry.js → p-eb07b88f.entry.js} +1 -1
- package/dist/ionic/p-ed7a529f.js +5 -0
- package/dist/ionic/p-edcada2b.system.entry.js +4 -0
- package/dist/ionic/{p-7c32fb95.system.entry.js → p-f0194418.system.entry.js} +1 -1
- package/dist/ionic/{p-ef441122.entry.js → p-f460c7ae.entry.js} +1 -1
- package/dist/ionic/{p-680f96e8.system.entry.js → p-f53d074d.system.entry.js} +1 -1
- package/dist/ionic/{p-d74ca358.entry.js → p-f840d817.entry.js} +1 -1
- package/dist/ionic/{p-044ad008.system.entry.js → p-f8c96502.system.entry.js} +1 -1
- package/dist/ionic/{p-0fd295ef.system.entry.js → p-fb9f8495.system.entry.js} +1 -1
- package/dist/types/components/action-sheet/action-sheet.d.ts +4 -0
- package/dist/types/components/alert/alert.d.ts +4 -0
- package/dist/types/components/loading/loading.d.ts +4 -0
- package/dist/types/components/modal/modal.d.ts +4 -0
- package/dist/types/components/picker/picker.d.ts +4 -0
- package/dist/types/components/popover/popover.d.ts +4 -0
- package/dist/types/components/toast/toast.d.ts +4 -0
- package/dist/types/components.d.ts +7 -7
- package/hydrate/index.d.ts +1 -1
- package/hydrate/index.js +222 -44
- package/package.json +6 -6
- package/dist/esm-es5/app-globals-47226a12.js +0 -4
- package/dist/esm-es5/md.transition-28a9a26b.js +0 -4
- package/dist/esm-es5/overlays-fad5fe01.js +0 -4
- package/dist/ionic/p-0b955124.system.js +0 -4
- package/dist/ionic/p-1375f21f.js +0 -4
- package/dist/ionic/p-41fde260.entry.js +0 -4
- package/dist/ionic/p-52e02877.entry.js +0 -4
- package/dist/ionic/p-62067818.system.entry.js +0 -4
- package/dist/ionic/p-6b02edd6.js +0 -4
- package/dist/ionic/p-86670b91.system.js +0 -4
- package/dist/ionic/p-8f1ce253.js +0 -4
- package/dist/ionic/p-b1f0c48e.system.entry.js +0 -4
- package/dist/ionic/p-b4a95b80.system.entry.js +0 -4
- package/dist/ionic/p-c5c3710c.js +0 -4
- package/dist/ionic/p-e1271366.js +0 -5
|
@@ -109,6 +109,10 @@ export class Picker {
|
|
|
109
109
|
* This can be useful in a button handler for determining which button was
|
|
110
110
|
* clicked to dismiss the picker.
|
|
111
111
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
112
|
+
*
|
|
113
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
114
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
115
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
112
116
|
*/
|
|
113
117
|
async dismiss(data, role) {
|
|
114
118
|
const unlock = await this.lockController.lock();
|
|
@@ -180,11 +184,11 @@ export class Picker {
|
|
|
180
184
|
render() {
|
|
181
185
|
const { htmlAttributes } = this;
|
|
182
186
|
const mode = getIonMode(this);
|
|
183
|
-
return (h(Host, Object.assign({ key: '
|
|
187
|
+
return (h(Host, Object.assign({ key: 'c266cc072afaba2da22f70d8b62dc4bc6756d188', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
184
188
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
185
189
|
}, class: Object.assign({ [mode]: true,
|
|
186
190
|
// Used internally for styling
|
|
187
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '
|
|
191
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '35ee3e5028028835580e28ac2c8db65a924d5d6a', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: '8b454e6edbcfc45c57d3d8baf7c14b7905921a6e', tabindex: "0" }), h("div", { key: 'e0fee78ec6d097bf0963190f748e5daad602e0f7', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, h("div", { key: 'ce66bca18fc3e982ad7d6660f27cb1a03fb8247b', class: "picker-toolbar" }, this.buttons.map((b) => (h("div", { class: buttonWrapperClass(b) }, h("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass(b) }, b.text))))), h("div", { key: 'a58b9523fe16f109dd6de0610717c5077fed964b', class: "picker-columns" }, h("div", { key: 'acd54c0314cff51e8513a08dd9755c4b847c0617', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => h("ion-picker-column", { col: c })), h("div", { key: '604730bd87582d048d850c6e0a0f29ba33258918', class: "picker-below-highlight" }))), h("div", { key: '93baf5e6e57aec5f084d7d5b24af14e7d8126b5a', tabindex: "0" })));
|
|
188
192
|
}
|
|
189
193
|
static get is() { return "ion-picker"; }
|
|
190
194
|
static get encapsulation() { return "scoped"; }
|
|
@@ -693,7 +697,7 @@ export class Picker {
|
|
|
693
697
|
}, {
|
|
694
698
|
"name": "role",
|
|
695
699
|
"type": "string | undefined",
|
|
696
|
-
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
700
|
+
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
697
701
|
}],
|
|
698
702
|
"references": {
|
|
699
703
|
"Promise": {
|
|
@@ -710,7 +714,7 @@ export class Picker {
|
|
|
710
714
|
"text": "data Any data to emit in the dismiss events."
|
|
711
715
|
}, {
|
|
712
716
|
"name": "param",
|
|
713
|
-
"text": "role The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
717
|
+
"text": "role The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
714
718
|
}]
|
|
715
719
|
}
|
|
716
720
|
},
|
|
@@ -258,6 +258,13 @@
|
|
|
258
258
|
width: 20px;
|
|
259
259
|
height: 10px;
|
|
260
260
|
overflow: hidden;
|
|
261
|
+
/*
|
|
262
|
+
* Required for the arrow to render above the backdrop.
|
|
263
|
+
* Otherwise, the arrow will appear slightly transparent.
|
|
264
|
+
* The value is set to 11 since it's the minimum value that
|
|
265
|
+
* will allow the arrow to render above the backdrop.
|
|
266
|
+
*/
|
|
267
|
+
z-index: 11;
|
|
261
268
|
}
|
|
262
269
|
|
|
263
270
|
.popover-arrow::after {
|
|
@@ -280,6 +280,10 @@ export class Popover {
|
|
|
280
280
|
* @param role The role of the element that is dismissing the popover. For example, 'cancel' or 'backdrop'.
|
|
281
281
|
* @param dismissParentPopover If `true`, dismissing this popover will also dismiss
|
|
282
282
|
* a parent popover if this popover is nested. Defaults to `true`.
|
|
283
|
+
*
|
|
284
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
285
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
286
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
283
287
|
*/
|
|
284
288
|
async dismiss(data, role, dismissParentPopover = true) {
|
|
285
289
|
const unlock = await this.lockController.lock();
|
|
@@ -331,9 +335,9 @@ export class Popover {
|
|
|
331
335
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes } = this;
|
|
332
336
|
const desktop = isPlatform('desktop');
|
|
333
337
|
const enableArrow = arrow && !parentPopover;
|
|
334
|
-
return (h(Host, Object.assign({ key: '
|
|
338
|
+
return (h(Host, Object.assign({ key: '104a5bf92a9bbd2efc71d499a8500e5d55f81711', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
335
339
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
336
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: '
|
|
340
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: 'ef0baa04c22444d4bc705220235a892308d67586', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && h("div", { class: "popover-arrow", part: "arrow" }), h("div", { key: '5cc5f5c353de614e484e9cfeacecfca9fbfde0e0', class: "popover-content", part: "content" }, h("slot", { key: '2d85c591cdc85efa98afbf40f676525f1402efcf' })))));
|
|
337
341
|
}
|
|
338
342
|
static get is() { return "ion-popover"; }
|
|
339
343
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1130,7 +1134,7 @@ export class Popover {
|
|
|
1130
1134
|
}, {
|
|
1131
1135
|
"name": "dismissParentPopover",
|
|
1132
1136
|
"type": "boolean",
|
|
1133
|
-
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true
|
|
1137
|
+
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1134
1138
|
}],
|
|
1135
1139
|
"references": {
|
|
1136
1140
|
"Promise": {
|
|
@@ -1154,7 +1158,7 @@ export class Popover {
|
|
|
1154
1158
|
"text": "role The role of the element that is dismissing the popover. For example, 'cancel' or 'backdrop'."
|
|
1155
1159
|
}, {
|
|
1156
1160
|
"name": "param",
|
|
1157
|
-
"text": "dismissParentPopover If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true
|
|
1161
|
+
"text": "dismissParentPopover If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1158
1162
|
}]
|
|
1159
1163
|
}
|
|
1160
1164
|
},
|
|
@@ -68,6 +68,16 @@ ion-label {
|
|
|
68
68
|
margin-bottom: 0;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
/**
|
|
72
|
+
* The main content inside of a popover has overflow: hidden
|
|
73
|
+
* so that a descendant ion-content can be scrolled.
|
|
74
|
+
* However, select-popover does not use ion-content so we need
|
|
75
|
+
* to explicitly make this container scrollable.
|
|
76
|
+
*/
|
|
77
|
+
:host {
|
|
78
|
+
overflow-y: auto;
|
|
79
|
+
}
|
|
80
|
+
|
|
71
81
|
/**
|
|
72
82
|
* Convert a font size to a dynamic font size.
|
|
73
83
|
* Fonts that participate in Dynamic Type should use
|
|
@@ -68,6 +68,16 @@ ion-label {
|
|
|
68
68
|
margin-bottom: 0;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
/**
|
|
72
|
+
* The main content inside of a popover has overflow: hidden
|
|
73
|
+
* so that a descendant ion-content can be scrolled.
|
|
74
|
+
* However, select-popover does not use ion-content so we need
|
|
75
|
+
* to explicitly make this container scrollable.
|
|
76
|
+
*/
|
|
77
|
+
:host {
|
|
78
|
+
overflow-y: auto;
|
|
79
|
+
}
|
|
80
|
+
|
|
71
81
|
/**
|
|
72
82
|
* Convert a font size to a dynamic font size.
|
|
73
83
|
* Fonts that participate in Dynamic Type should use
|
|
@@ -80,6 +80,18 @@ describe('toast: a11y smoke test', () => {
|
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
describe('toast: duration config', () => {
|
|
83
|
+
afterEach(() => {
|
|
84
|
+
/**
|
|
85
|
+
* Important: Reset the config
|
|
86
|
+
* after each test as it is not
|
|
87
|
+
* automatically reset.
|
|
88
|
+
* Otherwise, toasts in other tests
|
|
89
|
+
* will take on any toastDuration value
|
|
90
|
+
* set and timeouts will potentially run
|
|
91
|
+
* after tests are finished.
|
|
92
|
+
*/
|
|
93
|
+
config.reset({});
|
|
94
|
+
});
|
|
83
95
|
it('should have duration set to 0', async () => {
|
|
84
96
|
const page = await newSpecPage({
|
|
85
97
|
components: [Toast],
|
|
@@ -217,6 +217,10 @@ export class Toast {
|
|
|
217
217
|
* This can be useful in a button handler for determining which button was
|
|
218
218
|
* clicked to dismiss the toast.
|
|
219
219
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
220
|
+
*
|
|
221
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
222
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
223
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
220
224
|
*/
|
|
221
225
|
async dismiss(data, role) {
|
|
222
226
|
var _a, _b;
|
|
@@ -384,9 +388,9 @@ export class Toast {
|
|
|
384
388
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
385
389
|
printIonWarning('This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
|
|
386
390
|
}
|
|
387
|
-
return (h(Host, Object.assign({ key: '
|
|
391
|
+
return (h(Host, Object.assign({ key: 'c8d7e7d2baa01d3ed5d65a845bc61acf087c0b18', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
388
392
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
389
|
-
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '
|
|
393
|
+
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '27c0feeb89c4efb47c42623a4b036ed84338ed10', class: wrapperClass }, h("div", { key: '41d5a3069f92e4a6acef2793fa4e236cdbdaae88', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (h("ion-icon", { class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), h("div", { key: '176f497bc990ef2ecc14c7fa90dd3a54a912030a', class: "toast-content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
|
|
390
394
|
}
|
|
391
395
|
static get is() { return "ion-toast"; }
|
|
392
396
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1032,7 +1036,7 @@ export class Toast {
|
|
|
1032
1036
|
}, {
|
|
1033
1037
|
"name": "role",
|
|
1034
1038
|
"type": "string | undefined",
|
|
1035
|
-
"docs": "The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
1039
|
+
"docs": "The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1036
1040
|
}],
|
|
1037
1041
|
"references": {
|
|
1038
1042
|
"Promise": {
|
|
@@ -1054,7 +1058,7 @@ export class Toast {
|
|
|
1054
1058
|
"text": "data Any data to emit in the dismiss events."
|
|
1055
1059
|
}, {
|
|
1056
1060
|
"name": "param",
|
|
1057
|
-
"text": "role The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
1061
|
+
"text": "role The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1058
1062
|
}]
|
|
1059
1063
|
}
|
|
1060
1064
|
},
|
|
@@ -409,6 +409,15 @@ export const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation
|
|
|
409
409
|
return;
|
|
410
410
|
}
|
|
411
411
|
setRootAriaHidden(true);
|
|
412
|
+
/**
|
|
413
|
+
* Hide all other overlays from screen readers so only this one
|
|
414
|
+
* can be read. Note that presenting an overlay always makes
|
|
415
|
+
* it the topmost one.
|
|
416
|
+
*/
|
|
417
|
+
if (doc !== undefined) {
|
|
418
|
+
const presentedOverlays = getPresentedOverlays(doc);
|
|
419
|
+
presentedOverlays.forEach((o) => o.setAttribute('aria-hidden', 'true'));
|
|
420
|
+
}
|
|
412
421
|
overlay.presented = true;
|
|
413
422
|
overlay.willPresent.emit();
|
|
414
423
|
(_a = overlay.willPresentShorthand) === null || _a === void 0 ? void 0 : _a.emit();
|
|
@@ -431,7 +440,7 @@ export const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation
|
|
|
431
440
|
* from returning focus as a result.
|
|
432
441
|
*/
|
|
433
442
|
if (overlay.el.tagName !== 'ION-TOAST') {
|
|
434
|
-
|
|
443
|
+
restoreElementFocus(overlay.el);
|
|
435
444
|
}
|
|
436
445
|
/**
|
|
437
446
|
* If the focused element is already
|
|
@@ -442,6 +451,14 @@ export const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation
|
|
|
442
451
|
if (overlay.keyboardClose && (document.activeElement === null || !overlay.el.contains(document.activeElement))) {
|
|
443
452
|
overlay.el.focus();
|
|
444
453
|
}
|
|
454
|
+
/**
|
|
455
|
+
* If this overlay was previously dismissed without being
|
|
456
|
+
* the topmost one (such as by manually calling dismiss()),
|
|
457
|
+
* it would still have aria-hidden on being presented again.
|
|
458
|
+
* Removing it here ensures the overlay is visible to screen
|
|
459
|
+
* readers.
|
|
460
|
+
*/
|
|
461
|
+
overlay.el.removeAttribute('aria-hidden');
|
|
445
462
|
};
|
|
446
463
|
/**
|
|
447
464
|
* When an overlay component is dismissed,
|
|
@@ -453,7 +470,7 @@ export const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation
|
|
|
453
470
|
* to where they were before they
|
|
454
471
|
* opened the overlay.
|
|
455
472
|
*/
|
|
456
|
-
const
|
|
473
|
+
const restoreElementFocus = async (overlayEl) => {
|
|
457
474
|
let previousElement = document.activeElement;
|
|
458
475
|
if (!previousElement) {
|
|
459
476
|
return;
|
|
@@ -465,18 +482,35 @@ const focusPreviousElementOnDismissIfNeeded = async (overlayEl) => {
|
|
|
465
482
|
}
|
|
466
483
|
await overlayEl.onDidDismiss();
|
|
467
484
|
/**
|
|
468
|
-
*
|
|
469
|
-
*
|
|
470
|
-
*
|
|
471
|
-
*
|
|
472
|
-
*
|
|
485
|
+
* After onDidDismiss, the overlay loses focus
|
|
486
|
+
* because it is removed from the document
|
|
487
|
+
*
|
|
488
|
+
* > An element will also lose focus [...]
|
|
489
|
+
* > if the element is removed from the document)
|
|
490
|
+
*
|
|
491
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
|
|
492
|
+
*
|
|
493
|
+
* Additionally, `document.activeElement` returns:
|
|
494
|
+
*
|
|
495
|
+
* > The Element which currently has focus,
|
|
496
|
+
* > `<body>` or null if there is
|
|
497
|
+
* > no focused element.
|
|
498
|
+
*
|
|
499
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Document/activeElement#value
|
|
500
|
+
*
|
|
501
|
+
* However, if the user has already focused
|
|
502
|
+
* an element sometime between onWillDismiss
|
|
503
|
+
* and onDidDismiss (for example, focusing a
|
|
504
|
+
* text box after tapping a button in an
|
|
505
|
+
* action sheet) then don't restore focus to
|
|
506
|
+
* previous element
|
|
473
507
|
*/
|
|
474
508
|
if (document.activeElement === null || document.activeElement === document.body) {
|
|
475
509
|
previousElement.focus();
|
|
476
510
|
}
|
|
477
511
|
};
|
|
478
512
|
export const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnimation, opts) => {
|
|
479
|
-
var _a, _b;
|
|
513
|
+
var _a, _b, _c;
|
|
480
514
|
if (!overlay.presented) {
|
|
481
515
|
return false;
|
|
482
516
|
}
|
|
@@ -503,6 +537,10 @@ export const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLe
|
|
|
503
537
|
}
|
|
504
538
|
overlay.didDismiss.emit({ data, role });
|
|
505
539
|
(_b = overlay.didDismissShorthand) === null || _b === void 0 ? void 0 : _b.emit({ data, role });
|
|
540
|
+
// Get a reference to all animations currently assigned to this overlay
|
|
541
|
+
// Then tear them down to return the overlay to its initial visual state
|
|
542
|
+
const animations = activeAnimations.get(overlay) || [];
|
|
543
|
+
animations.forEach((ani) => ani.destroy());
|
|
506
544
|
activeAnimations.delete(overlay);
|
|
507
545
|
/**
|
|
508
546
|
* Make overlay hidden again in case it is being reused.
|
|
@@ -523,6 +561,13 @@ export const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLe
|
|
|
523
561
|
console.error(err);
|
|
524
562
|
}
|
|
525
563
|
overlay.el.remove();
|
|
564
|
+
/**
|
|
565
|
+
* If there are other overlays presented, unhide the new
|
|
566
|
+
* topmost one from screen readers.
|
|
567
|
+
*/
|
|
568
|
+
if (doc !== undefined) {
|
|
569
|
+
(_c = getPresentedOverlay(doc)) === null || _c === void 0 ? void 0 : _c.removeAttribute('aria-hidden');
|
|
570
|
+
}
|
|
526
571
|
return true;
|
|
527
572
|
};
|
|
528
573
|
const getAppRoot = (doc) => {
|
|
@@ -175,5 +175,38 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
|
|
|
175
175
|
await modalInputOne.click();
|
|
176
176
|
await expect(modalInputOne).toBeFocused();
|
|
177
177
|
});
|
|
178
|
+
test('should not return focus to another element if focus already manually returned', async ({ page, skip, }, testInfo) => {
|
|
179
|
+
skip.browser('webkit', 'WebKit does not consider buttons to be focusable, so this test always passes since the input is the only focusable element.');
|
|
180
|
+
testInfo.annotations.push({
|
|
181
|
+
type: 'issue',
|
|
182
|
+
description: 'https://github.com/ionic-team/ionic-framework/issues/28849',
|
|
183
|
+
});
|
|
184
|
+
await page.setContent(`
|
|
185
|
+
<button id="open-action-sheet">open</button>
|
|
186
|
+
<ion-action-sheet trigger="open-action-sheet"></ion-action-sheet>
|
|
187
|
+
<input id="test-input" />
|
|
188
|
+
|
|
189
|
+
<script>
|
|
190
|
+
const actionSheet = document.querySelector('ion-action-sheet');
|
|
191
|
+
|
|
192
|
+
actionSheet.addEventListener('ionActionSheetWillDismiss', () => {
|
|
193
|
+
requestAnimationFrame(() => {
|
|
194
|
+
document.querySelector('#test-input').focus();
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
</script>
|
|
198
|
+
`, config);
|
|
199
|
+
const ionActionSheetDidPresent = await page.spyOnEvent('ionActionSheetDidPresent');
|
|
200
|
+
const actionSheet = page.locator('ion-action-sheet');
|
|
201
|
+
const input = page.locator('#test-input');
|
|
202
|
+
const trigger = page.locator('#open-action-sheet');
|
|
203
|
+
// present action sheet
|
|
204
|
+
await trigger.click();
|
|
205
|
+
await ionActionSheetDidPresent.next();
|
|
206
|
+
// dismiss action sheet
|
|
207
|
+
await actionSheet.evaluate((el) => el.dismiss());
|
|
208
|
+
// verify focus is in correct location
|
|
209
|
+
await expect(input).toBeFocused();
|
|
210
|
+
});
|
|
178
211
|
});
|
|
179
212
|
});
|
|
@@ -100,3 +100,54 @@ describe('setRootAriaHidden()', () => {
|
|
|
100
100
|
expect(routerOutlet.hasAttribute('aria-hidden')).toEqual(false);
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
|
+
describe('aria-hidden on individual overlays', () => {
|
|
104
|
+
it('should hide non-topmost overlays from screen readers', async () => {
|
|
105
|
+
const page = await newSpecPage({
|
|
106
|
+
components: [Modal],
|
|
107
|
+
html: `
|
|
108
|
+
<ion-modal id="one"></ion-modal>
|
|
109
|
+
<ion-modal id="two"></ion-modal>
|
|
110
|
+
`,
|
|
111
|
+
});
|
|
112
|
+
const modalOne = page.body.querySelector('ion-modal#one');
|
|
113
|
+
const modalTwo = page.body.querySelector('ion-modal#two');
|
|
114
|
+
await modalOne.present();
|
|
115
|
+
await modalTwo.present();
|
|
116
|
+
expect(modalOne.hasAttribute('aria-hidden')).toEqual(true);
|
|
117
|
+
expect(modalTwo.hasAttribute('aria-hidden')).toEqual(false);
|
|
118
|
+
});
|
|
119
|
+
it('should unhide new topmost overlay from screen readers when topmost is dismissed', async () => {
|
|
120
|
+
const page = await newSpecPage({
|
|
121
|
+
components: [Modal],
|
|
122
|
+
html: `
|
|
123
|
+
<ion-modal id="one"></ion-modal>
|
|
124
|
+
<ion-modal id="two"></ion-modal>
|
|
125
|
+
`,
|
|
126
|
+
});
|
|
127
|
+
const modalOne = page.body.querySelector('ion-modal#one');
|
|
128
|
+
const modalTwo = page.body.querySelector('ion-modal#two');
|
|
129
|
+
await modalOne.present();
|
|
130
|
+
await modalTwo.present();
|
|
131
|
+
// dismiss modalTwo so that modalOne becomes the new topmost overlay
|
|
132
|
+
await modalTwo.dismiss();
|
|
133
|
+
expect(modalOne.hasAttribute('aria-hidden')).toEqual(false);
|
|
134
|
+
});
|
|
135
|
+
it('should not keep overlays hidden from screen readers if presented after being dismissed while non-topmost', async () => {
|
|
136
|
+
const page = await newSpecPage({
|
|
137
|
+
components: [Modal],
|
|
138
|
+
html: `
|
|
139
|
+
<ion-modal id="one"></ion-modal>
|
|
140
|
+
<ion-modal id="two"></ion-modal>
|
|
141
|
+
`,
|
|
142
|
+
});
|
|
143
|
+
const modalOne = page.body.querySelector('ion-modal#one');
|
|
144
|
+
const modalTwo = page.body.querySelector('ion-modal#two');
|
|
145
|
+
await modalOne.present();
|
|
146
|
+
await modalTwo.present();
|
|
147
|
+
// modalOne is not the topmost overlay at this point and is hidden from screen readers
|
|
148
|
+
await modalOne.dismiss();
|
|
149
|
+
// modalOne will become the topmost overlay; ensure it isn't still hidden from screen readers
|
|
150
|
+
await modalOne.present();
|
|
151
|
+
expect(modalOne.hasAttribute('aria-hidden')).toEqual(false);
|
|
152
|
+
});
|
|
153
|
+
});
|
package/dist/docs.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-02-
|
|
2
|
+
"timestamp": "2024-02-15T03:07:15",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "4.12.
|
|
5
|
+
"version": "4.12.2",
|
|
6
6
|
"typescriptVersion": "5.3.3"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
@@ -806,7 +806,7 @@
|
|
|
806
806
|
{
|
|
807
807
|
"name": "role",
|
|
808
808
|
"type": "string | undefined",
|
|
809
|
-
"docs": "The role of the element that is dismissing the action sheet.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the action sheet.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
809
|
+
"docs": "The role of the element that is dismissing the action sheet.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the action sheet.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
810
810
|
}
|
|
811
811
|
],
|
|
812
812
|
"references": {
|
|
@@ -827,7 +827,7 @@
|
|
|
827
827
|
{
|
|
828
828
|
"name": "role",
|
|
829
829
|
"type": "string | undefined",
|
|
830
|
-
"docs": "The role of the element that is dismissing the action sheet.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the action sheet.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
830
|
+
"docs": "The role of the element that is dismissing the action sheet.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the action sheet.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
831
831
|
}
|
|
832
832
|
],
|
|
833
833
|
"docs": "Dismiss the action sheet overlay after it has been presented.",
|
|
@@ -838,7 +838,7 @@
|
|
|
838
838
|
},
|
|
839
839
|
{
|
|
840
840
|
"name": "param",
|
|
841
|
-
"text": "role The role of the element that is dismissing the action sheet.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the action sheet.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
841
|
+
"text": "role The role of the element that is dismissing the action sheet.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the action sheet.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
842
842
|
}
|
|
843
843
|
]
|
|
844
844
|
},
|
|
@@ -1637,7 +1637,7 @@
|
|
|
1637
1637
|
{
|
|
1638
1638
|
"name": "role",
|
|
1639
1639
|
"type": "string | undefined",
|
|
1640
|
-
"docs": "The role of the element that is dismissing the alert.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the alert.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
1640
|
+
"docs": "The role of the element that is dismissing the alert.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the alert.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1641
1641
|
}
|
|
1642
1642
|
],
|
|
1643
1643
|
"references": {
|
|
@@ -1658,7 +1658,7 @@
|
|
|
1658
1658
|
{
|
|
1659
1659
|
"name": "role",
|
|
1660
1660
|
"type": "string | undefined",
|
|
1661
|
-
"docs": "The role of the element that is dismissing the alert.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the alert.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
1661
|
+
"docs": "The role of the element that is dismissing the alert.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the alert.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1662
1662
|
}
|
|
1663
1663
|
],
|
|
1664
1664
|
"docs": "Dismiss the alert overlay after it has been presented.",
|
|
@@ -1669,7 +1669,7 @@
|
|
|
1669
1669
|
},
|
|
1670
1670
|
{
|
|
1671
1671
|
"name": "param",
|
|
1672
|
-
"text": "role The role of the element that is dismissing the alert.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the alert.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
1672
|
+
"text": "role The role of the element that is dismissing the alert.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the alert.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1673
1673
|
}
|
|
1674
1674
|
]
|
|
1675
1675
|
},
|
|
@@ -13797,7 +13797,7 @@
|
|
|
13797
13797
|
{
|
|
13798
13798
|
"name": "role",
|
|
13799
13799
|
"type": "string | undefined",
|
|
13800
|
-
"docs": "The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
13800
|
+
"docs": "The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
13801
13801
|
}
|
|
13802
13802
|
],
|
|
13803
13803
|
"references": {
|
|
@@ -13818,7 +13818,7 @@
|
|
|
13818
13818
|
{
|
|
13819
13819
|
"name": "role",
|
|
13820
13820
|
"type": "string | undefined",
|
|
13821
|
-
"docs": "The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
13821
|
+
"docs": "The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
13822
13822
|
}
|
|
13823
13823
|
],
|
|
13824
13824
|
"docs": "Dismiss the loading overlay after it has been presented.",
|
|
@@ -13829,7 +13829,7 @@
|
|
|
13829
13829
|
},
|
|
13830
13830
|
{
|
|
13831
13831
|
"name": "param",
|
|
13832
|
-
"text": "role The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
13832
|
+
"text": "role The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
13833
13833
|
}
|
|
13834
13834
|
]
|
|
13835
13835
|
},
|
|
@@ -15526,7 +15526,7 @@
|
|
|
15526
15526
|
{
|
|
15527
15527
|
"name": "role",
|
|
15528
15528
|
"type": "string | undefined",
|
|
15529
|
-
"docs": "The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'."
|
|
15529
|
+
"docs": "The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
15530
15530
|
}
|
|
15531
15531
|
],
|
|
15532
15532
|
"references": {
|
|
@@ -15551,7 +15551,7 @@
|
|
|
15551
15551
|
{
|
|
15552
15552
|
"name": "role",
|
|
15553
15553
|
"type": "string | undefined",
|
|
15554
|
-
"docs": "The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'."
|
|
15554
|
+
"docs": "The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
15555
15555
|
}
|
|
15556
15556
|
],
|
|
15557
15557
|
"docs": "Dismiss the modal overlay after it has been presented.",
|
|
@@ -15562,7 +15562,7 @@
|
|
|
15562
15562
|
},
|
|
15563
15563
|
{
|
|
15564
15564
|
"name": "param",
|
|
15565
|
-
"text": "role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'."
|
|
15565
|
+
"text": "role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
15566
15566
|
}
|
|
15567
15567
|
]
|
|
15568
15568
|
},
|
|
@@ -17787,7 +17787,7 @@
|
|
|
17787
17787
|
{
|
|
17788
17788
|
"name": "role",
|
|
17789
17789
|
"type": "string | undefined",
|
|
17790
|
-
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
17790
|
+
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
17791
17791
|
}
|
|
17792
17792
|
],
|
|
17793
17793
|
"references": {
|
|
@@ -17808,7 +17808,7 @@
|
|
|
17808
17808
|
{
|
|
17809
17809
|
"name": "role",
|
|
17810
17810
|
"type": "string | undefined",
|
|
17811
|
-
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
17811
|
+
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
17812
17812
|
}
|
|
17813
17813
|
],
|
|
17814
17814
|
"docs": "Dismiss the picker overlay after it has been presented.",
|
|
@@ -17819,7 +17819,7 @@
|
|
|
17819
17819
|
},
|
|
17820
17820
|
{
|
|
17821
17821
|
"name": "param",
|
|
17822
|
-
"text": "role The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
17822
|
+
"text": "role The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
17823
17823
|
}
|
|
17824
17824
|
]
|
|
17825
17825
|
},
|
|
@@ -18829,7 +18829,7 @@
|
|
|
18829
18829
|
{
|
|
18830
18830
|
"name": "dismissParentPopover",
|
|
18831
18831
|
"type": "boolean",
|
|
18832
|
-
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true
|
|
18832
|
+
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
18833
18833
|
}
|
|
18834
18834
|
],
|
|
18835
18835
|
"references": {
|
|
@@ -18859,7 +18859,7 @@
|
|
|
18859
18859
|
{
|
|
18860
18860
|
"name": "dismissParentPopover",
|
|
18861
18861
|
"type": "boolean",
|
|
18862
|
-
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true
|
|
18862
|
+
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
18863
18863
|
}
|
|
18864
18864
|
],
|
|
18865
18865
|
"docs": "Dismiss the popover overlay after it has been presented.",
|
|
@@ -18874,7 +18874,7 @@
|
|
|
18874
18874
|
},
|
|
18875
18875
|
{
|
|
18876
18876
|
"name": "param",
|
|
18877
|
-
"text": "dismissParentPopover If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true
|
|
18877
|
+
"text": "dismissParentPopover If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
18878
18878
|
}
|
|
18879
18879
|
]
|
|
18880
18880
|
},
|
|
@@ -28180,7 +28180,7 @@
|
|
|
28180
28180
|
{
|
|
28181
28181
|
"name": "role",
|
|
28182
28182
|
"type": "string | undefined",
|
|
28183
|
-
"docs": "The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
28183
|
+
"docs": "The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
28184
28184
|
}
|
|
28185
28185
|
],
|
|
28186
28186
|
"references": {
|
|
@@ -28206,7 +28206,7 @@
|
|
|
28206
28206
|
{
|
|
28207
28207
|
"name": "role",
|
|
28208
28208
|
"type": "string | undefined",
|
|
28209
|
-
"docs": "The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
28209
|
+
"docs": "The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
28210
28210
|
}
|
|
28211
28211
|
],
|
|
28212
28212
|
"docs": "Dismiss the toast overlay after it has been presented.",
|
|
@@ -28217,7 +28217,7 @@
|
|
|
28217
28217
|
},
|
|
28218
28218
|
{
|
|
28219
28219
|
"name": "param",
|
|
28220
|
-
"text": "role The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
28220
|
+
"text": "role The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
28221
28221
|
}
|
|
28222
28222
|
]
|
|
28223
28223
|
},
|