@ionic/core 7.5.2-dev.11697834896.1fed55cc → 7.5.2-dev.11698269070.1738c1a7
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 +3 -3
- package/components/alert.js +3 -3
- package/components/animation.js +29 -15
- package/components/backdrop.js +12 -5
- package/components/checkbox.js +0 -2
- package/components/index8.js +0 -1
- package/components/input-shims.js +9 -1
- package/components/ion-datetime.js +2 -2
- package/components/ion-fab.js +1 -1
- package/components/ion-input.js +9 -4
- package/components/ion-loading.js +1 -1
- package/components/ion-menu.js +15 -3
- package/components/ion-picker.js +1 -1
- package/components/ion-range.js +0 -2
- package/components/ion-refresher.js +8 -1
- package/components/ion-reorder.js +2 -2
- package/components/ion-searchbar.js +9 -2
- package/components/ion-select.js +2 -4
- package/components/ion-skeleton-text.js +1 -14
- package/components/ion-textarea.js +9 -4
- package/components/ion-toggle.js +0 -2
- package/components/item.js +2 -2
- package/components/label.js +2 -2
- package/components/overlays.js +6 -0
- package/components/popover.js +1 -1
- package/components/radio.js +0 -3
- package/components/watch-options.js +14 -3
- package/css/core.css.map +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/dist/cjs/{animation-1a53c50e.js → animation-1083855c.js} +29 -15
- package/dist/cjs/{index-d0fdb56d.js → index-174dc666.js} +2 -2
- package/dist/cjs/{index-4eedbc59.js → index-5a2463aa.js} +1 -1
- package/dist/cjs/{index-10873539.js → index-da2c7a37.js} +0 -1
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/{input-shims-da7dc0de.js → input-shims-b0a75a01.js} +10 -2
- package/dist/cjs/ion-action-sheet.cjs.entry.js +5 -5
- package/dist/cjs/ion-alert.cjs.entry.js +5 -5
- package/dist/cjs/ion-app_8.cjs.entry.js +4 -4
- package/dist/cjs/ion-backdrop.cjs.entry.js +9 -4
- package/dist/cjs/ion-checkbox.cjs.entry.js +0 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-fab_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-input.cjs.entry.js +8 -3
- package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-item_8.cjs.entry.js +4 -17
- package/dist/cjs/ion-loading.cjs.entry.js +3 -3
- package/dist/cjs/ion-menu_3.cjs.entry.js +18 -6
- package/dist/cjs/ion-modal.cjs.entry.js +4 -4
- package/dist/cjs/ion-nav_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +4 -4
- package/dist/cjs/ion-radio_2.cjs.entry.js +0 -3
- package/dist/cjs/ion-range.cjs.entry.js +1 -3
- package/dist/cjs/ion-refresher_2.cjs.entry.js +10 -3
- package/dist/cjs/ion-reorder_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-searchbar.cjs.entry.js +8 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +4 -6
- package/dist/cjs/ion-textarea.cjs.entry.js +8 -3
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- package/dist/cjs/ion-toggle.cjs.entry.js +0 -2
- package/dist/cjs/ionic.cjs.js +2 -2
- package/dist/cjs/{ios.transition-2af7c625.js → ios.transition-74ad019b.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{md.transition-992379b5.js → md.transition-efcc0ad3.js} +2 -2
- package/dist/cjs/{overlays-1a734051.js → overlays-3e58eaad.js} +6 -0
- package/dist/cjs/{status-tap-778e8054.js → status-tap-b19eb3c8.js} +1 -1
- package/dist/cjs/{watch-options-f3f77e54.js → watch-options-53bbb124.js} +14 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/action-sheet/action-sheet.ios.css +16 -3
- package/dist/collection/components/action-sheet/action-sheet.js +1 -1
- package/dist/collection/components/action-sheet/action-sheet.md.css +16 -3
- package/dist/collection/components/alert/alert.ios.css +18 -5
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/alert.md.css +18 -5
- package/dist/collection/components/backdrop/backdrop.js +53 -4
- package/dist/collection/components/checkbox/checkbox.js +0 -2
- package/dist/collection/components/datetime/datetime.ios.css +0 -1
- package/dist/collection/components/datetime/datetime.md.css +0 -1
- package/dist/collection/components/fab/fab.css +24 -36
- package/dist/collection/components/fab/test/safe-area/fab.e2e.js +63 -0
- package/dist/collection/components/input/input.js +9 -4
- package/dist/collection/components/item/item.ios.css +3 -25
- package/dist/collection/components/item/item.md.css +3 -25
- package/dist/collection/components/item/test/disabled/item.e2e.js +1 -0
- package/dist/collection/components/item/test/text/item.e2e.js +14 -0
- package/dist/collection/components/label/label.ios.css +3 -14
- package/dist/collection/components/label/label.md.css +3 -14
- package/dist/collection/components/loading/loading.js +1 -1
- package/dist/collection/components/menu/menu.js +15 -3
- package/dist/collection/components/note/test/a11y/note.e2e.js +0 -43
- package/dist/collection/components/picker/picker.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/radio/radio.js +5 -4
- package/dist/collection/components/radio/test/legacy/a11y/radio.e2e.js +5 -5
- package/dist/collection/components/range/range.js +0 -2
- package/dist/collection/components/refresher/refresher.utils.js +8 -1
- package/dist/collection/components/reorder/reorder.ios.css +1 -34
- package/dist/collection/components/reorder/reorder.md.css +1 -34
- package/dist/collection/components/searchbar/searchbar.js +9 -2
- package/dist/collection/components/select/select.ios.css +0 -5
- package/dist/collection/components/select/select.js +0 -2
- package/dist/collection/components/select/select.md.css +0 -5
- package/dist/collection/components/select/test/legacy/wrapping/select.e2e.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +0 -39
- package/dist/collection/components/split-pane/test/multiple/split-pane.e2e.js +31 -0
- package/dist/collection/components/textarea/textarea.js +9 -4
- package/dist/collection/components/toggle/toggle.js +0 -2
- package/dist/collection/utils/animation/animation.js +29 -15
- package/dist/collection/utils/content/index.js +0 -1
- package/dist/collection/utils/input-shims/hacks/common.js +9 -1
- package/dist/collection/utils/overlays.js +6 -0
- package/dist/collection/utils/test/overlays/overlays.e2e.js +65 -0
- package/dist/collection/utils/watch-options.js +14 -3
- package/dist/docs.json +2 -2
- package/dist/esm/{animation-a9cdd18b.js → animation-8aa13916.js} +29 -15
- package/dist/esm/{index-746a238e.js → index-4392efa5.js} +0 -1
- package/dist/esm/{index-5c647d55.js → index-aae132ba.js} +1 -1
- package/dist/esm/{index-533d569d.js → index-ec72506a.js} +2 -2
- package/dist/esm/index.js +6 -6
- package/dist/esm/{input-shims-d78a3c77.js → input-shims-d0c93e5d.js} +10 -2
- package/dist/esm/ion-action-sheet.entry.js +5 -5
- package/dist/esm/ion-alert.entry.js +5 -5
- package/dist/esm/ion-app_8.entry.js +4 -4
- package/dist/esm/ion-backdrop.entry.js +10 -5
- package/dist/esm/ion-checkbox.entry.js +0 -2
- package/dist/esm/ion-datetime_3.entry.js +5 -5
- package/dist/esm/ion-fab_3.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm/ion-input.entry.js +9 -4
- package/dist/esm/ion-item-option_3.entry.js +2 -2
- package/dist/esm/ion-item_8.entry.js +4 -17
- package/dist/esm/ion-loading.entry.js +3 -3
- package/dist/esm/ion-menu_3.entry.js +18 -6
- package/dist/esm/ion-modal.entry.js +4 -4
- package/dist/esm/ion-nav_2.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +4 -4
- package/dist/esm/ion-radio_2.entry.js +0 -3
- package/dist/esm/ion-range.entry.js +1 -3
- package/dist/esm/ion-refresher_2.entry.js +10 -3
- package/dist/esm/ion-reorder_2.entry.js +3 -3
- package/dist/esm/ion-searchbar.entry.js +9 -2
- package/dist/esm/ion-select_3.entry.js +4 -6
- package/dist/esm/ion-textarea.entry.js +9 -4
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +0 -2
- package/dist/esm/ionic.js +2 -2
- package/dist/esm/{ios.transition-b3053722.js → ios.transition-f1cea7e0.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{md.transition-bdf2eec2.js → md.transition-1bf39c32.js} +2 -2
- package/dist/esm/{overlays-cec6bac8.js → overlays-9b1b807c.js} +6 -0
- package/dist/esm/{status-tap-9aeeaca5.js → status-tap-4e96ecf3.js} +1 -1
- package/dist/esm/{watch-options-355a920a.js → watch-options-02d8498b.js} +14 -3
- package/dist/esm-es5/animation-8aa13916.js +4 -0
- package/dist/esm-es5/{index-5c647d55.js → index-aae132ba.js} +1 -1
- package/dist/esm-es5/{index-533d569d.js → index-ec72506a.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{input-shims-d78a3c77.js → input-shims-d0c93e5d.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-backdrop.entry.js +2 -2
- package/dist/esm-es5/ion-checkbox.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-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-popover.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-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-b3053722.js → ios.transition-f1cea7e0.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{md.transition-bdf2eec2.js → md.transition-1bf39c32.js} +1 -1
- package/dist/esm-es5/{overlays-cec6bac8.js → overlays-9b1b807c.js} +1 -1
- package/dist/esm-es5/{status-tap-9aeeaca5.js → status-tap-4e96ecf3.js} +1 -1
- package/dist/esm-es5/{watch-options-355a920a.js → watch-options-02d8498b.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-017631df.system.entry.js +4 -0
- package/dist/ionic/{p-307b0e77.entry.js → p-0362c48a.entry.js} +1 -1
- package/dist/ionic/p-0c0d536f.system.entry.js +4 -0
- package/dist/ionic/{p-8286f6d4.system.js → p-0c78d548.system.js} +1 -1
- package/dist/ionic/p-0fb53284.system.js +4 -0
- package/dist/ionic/{p-32d17eee.entry.js → p-14f61991.entry.js} +1 -1
- package/dist/ionic/p-16520f50.system.entry.js +4 -0
- package/dist/ionic/p-19707956.entry.js +4 -0
- package/dist/ionic/{p-ad12e632.system.entry.js → p-2222b68a.system.entry.js} +1 -1
- package/dist/ionic/{p-b45118c0.system.entry.js → p-23410b18.system.entry.js} +1 -1
- package/dist/ionic/p-2e8e0045.js +4 -0
- package/dist/ionic/{p-408e5ee6.system.entry.js → p-306d845d.system.entry.js} +1 -1
- package/dist/ionic/{p-8e24ebbc.js → p-311d91cc.js} +1 -1
- package/dist/ionic/p-354d016f.entry.js +4 -0
- package/dist/ionic/{p-bc08029e.system.entry.js → p-3574440a.system.entry.js} +1 -1
- package/dist/ionic/p-3602001b.system.js +4 -0
- package/dist/ionic/{p-12445803.system.entry.js → p-372f1f80.system.entry.js} +1 -1
- package/dist/ionic/{p-aac723ac.system.entry.js → p-3e2ddf5e.system.entry.js} +1 -1
- package/dist/ionic/{p-7e77a185.system.entry.js → p-43cdeb48.system.entry.js} +1 -1
- package/dist/ionic/p-4a329bd3.entry.js +4 -0
- package/dist/ionic/{p-1f81b5be.entry.js → p-4e9114af.entry.js} +1 -1
- package/dist/ionic/p-4ef4a7ba.entry.js +4 -0
- package/dist/ionic/{p-074d4971.js → p-507845ca.js} +1 -1
- package/dist/ionic/{p-c87827ca.system.js → p-5aac9314.system.js} +1 -1
- package/dist/ionic/{p-7c08106a.entry.js → p-623a953a.entry.js} +1 -1
- package/dist/ionic/{p-5416c18a.system.js → p-62b29300.system.js} +1 -1
- package/dist/ionic/p-62bfd4cb.system.entry.js +4 -0
- package/dist/ionic/{p-0b24c4e7.entry.js → p-630ceef5.entry.js} +1 -1
- package/dist/ionic/{p-5a12d57c.system.entry.js → p-65ab4cb5.system.entry.js} +1 -1
- package/dist/ionic/{p-5ffd6742.system.js → p-664d1430.system.js} +1 -1
- package/dist/ionic/{p-b132c2c0.system.js → p-67eecef4.system.js} +1 -1
- package/dist/ionic/{p-8f01a9a2.system.js → p-78ce7391.system.js} +1 -1
- package/dist/ionic/{p-2743fb40.js → p-79fdc224.js} +1 -1
- package/dist/ionic/p-7b48cf4f.system.entry.js +4 -0
- package/dist/ionic/p-7e80194c.entry.js +4 -0
- package/dist/ionic/p-83198481.entry.js +4 -0
- package/dist/ionic/{p-7b3cfd36.system.entry.js → p-8ab12bec.system.entry.js} +1 -1
- package/dist/ionic/p-8b1237b9.entry.js +4 -0
- package/dist/ionic/{p-acbcc508.system.entry.js → p-8fdd6396.system.entry.js} +1 -1
- package/dist/ionic/p-97c65aa5.js +4 -0
- package/dist/ionic/p-9d166dc1.js +4 -0
- package/dist/ionic/p-a7f83510.entry.js +4 -0
- package/dist/ionic/{p-c49672d8.system.js → p-b216de09.system.js} +1 -1
- package/dist/ionic/p-b9a17fcb.system.entry.js +4 -0
- package/dist/ionic/{p-64416e79.system.js → p-be7fcb09.system.js} +1 -1
- package/dist/ionic/{p-64b36ecd.system.js → p-c50ea33f.system.js} +1 -1
- package/dist/ionic/{p-0f10b5f5.system.entry.js → p-c6cae705.system.entry.js} +1 -1
- package/dist/ionic/{p-b20b49ba.js → p-c842da0a.js} +1 -1
- package/dist/ionic/p-c9f70283.entry.js +4 -0
- package/dist/ionic/p-cf04003c.system.entry.js +4 -0
- package/dist/ionic/p-cf67c66c.entry.js +4 -0
- package/dist/ionic/p-d3ba42e6.system.entry.js +4 -0
- package/dist/ionic/{p-49367d48.entry.js → p-d70cc00d.entry.js} +1 -1
- package/dist/ionic/{p-cf62e1c8.js → p-d99ceb6a.js} +1 -1
- package/dist/ionic/{p-a3fe2e01.entry.js → p-db0140c0.entry.js} +1 -1
- package/dist/ionic/{p-f094de62.system.entry.js → p-db6fb00c.system.entry.js} +1 -1
- package/dist/ionic/{p-ec4f26da.system.entry.js → p-dd043db2.system.entry.js} +1 -1
- package/dist/ionic/p-dd213cdd.system.entry.js +4 -0
- package/dist/ionic/{p-623dd07e.entry.js → p-df189fa7.entry.js} +1 -1
- package/dist/ionic/p-e21ca02c.entry.js +4 -0
- package/dist/ionic/p-e552cf80.entry.js +4 -0
- package/dist/ionic/p-e97b48ff.entry.js +4 -0
- package/dist/ionic/p-ebdf4f41.entry.js +4 -0
- package/dist/ionic/{p-0ae4c173.entry.js → p-f089f3b1.entry.js} +1 -1
- package/dist/ionic/p-f10de93b.js +4 -0
- package/dist/ionic/p-f1e15f7a.entry.js +4 -0
- package/dist/ionic/p-f3185dcb.system.entry.js +4 -0
- package/dist/ionic/p-f45792a4.system.entry.js +4 -0
- package/dist/ionic/p-f4bd51c5.entry.js +4 -0
- package/dist/ionic/p-f9017b2c.system.entry.js +4 -0
- package/dist/types/components/action-sheet/action-sheet.d.ts +1 -0
- package/dist/types/components/alert/alert.d.ts +1 -0
- package/dist/types/components/backdrop/backdrop.d.ts +5 -2
- package/dist/types/components/loading/loading.d.ts +1 -0
- package/dist/types/components/menu/menu.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +1 -1
- package/dist/types/components/picker/picker.d.ts +1 -0
- package/dist/types/components/popover/popover.d.ts +1 -0
- package/dist/types/components/radio/radio.d.ts +1 -1
- package/dist/types/components/skeleton-text/skeleton-text.d.ts +1 -9
- package/dist/types/components.d.ts +627 -5
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/dist/types/utils/animation/animation-interface.d.ts +4 -4
- package/dist/types/utils/content/index.d.ts +1 -1
- package/dist/types/utils/focus-visible.d.ts +3 -2
- package/dist/types/utils/overlays-interface.d.ts +1 -0
- package/dist/types/utils/watch-options.d.ts +9 -1
- package/hydrate/index.js +146 -94
- package/package.json +3 -3
- package/dist/esm-es5/animation-a9cdd18b.js +0 -4
- package/dist/ionic/p-0866bf93.entry.js +0 -4
- package/dist/ionic/p-22beb08d.entry.js +0 -4
- package/dist/ionic/p-23f57624.system.entry.js +0 -4
- package/dist/ionic/p-27381a03.entry.js +0 -4
- package/dist/ionic/p-29b56db6.system.entry.js +0 -4
- package/dist/ionic/p-31a8fd9a.entry.js +0 -4
- package/dist/ionic/p-35e399bd.entry.js +0 -4
- package/dist/ionic/p-449f4377.js +0 -4
- package/dist/ionic/p-4ba4bbf8.entry.js +0 -4
- package/dist/ionic/p-4f97c112.entry.js +0 -4
- package/dist/ionic/p-505cc23b.entry.js +0 -4
- package/dist/ionic/p-5bf16a18.js +0 -4
- package/dist/ionic/p-69613961.system.entry.js +0 -4
- package/dist/ionic/p-6b097e5f.entry.js +0 -4
- package/dist/ionic/p-755b2917.system.js +0 -4
- package/dist/ionic/p-75cba889.entry.js +0 -4
- package/dist/ionic/p-7a4bb59b.entry.js +0 -4
- package/dist/ionic/p-7c6a16c1.system.entry.js +0 -4
- package/dist/ionic/p-7f8844bd.system.entry.js +0 -4
- package/dist/ionic/p-8277369c.entry.js +0 -4
- package/dist/ionic/p-87c3c4ec.entry.js +0 -4
- package/dist/ionic/p-9d93e024.system.entry.js +0 -4
- package/dist/ionic/p-9f2e0db9.js +0 -4
- package/dist/ionic/p-af37e8de.system.entry.js +0 -4
- package/dist/ionic/p-b77734e0.entry.js +0 -4
- package/dist/ionic/p-c2e6cc69.entry.js +0 -4
- package/dist/ionic/p-c7612d99.system.entry.js +0 -4
- package/dist/ionic/p-d0c77b0e.system.entry.js +0 -4
- package/dist/ionic/p-d625ae76.js +0 -4
- package/dist/ionic/p-d6f6b311.system.entry.js +0 -4
- package/dist/ionic/p-db1a1e00.entry.js +0 -4
- package/dist/ionic/p-f63446a2.system.entry.js +0 -4
- package/dist/ionic/p-f6c370f4.system.entry.js +0 -4
- package/dist/ionic/p-f735392d.system.js +0 -4
- /package/dist/esm-es5/{index-746a238e.js → index-4392efa5.js} +0 -0
- /package/dist/ionic/{p-b24aa895.js → p-114a36ed.js} +0 -0
- /package/dist/ionic/{p-64475ab5.system.js → p-8a308596.system.js} +0 -0
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const animation = require('./animation-
|
|
7
|
-
const index = require('./index-
|
|
6
|
+
const animation = require('./animation-1083855c.js');
|
|
7
|
+
const index = require('./index-174dc666.js');
|
|
8
8
|
require('./index-306a7476.js');
|
|
9
9
|
require('./helpers-ea4ccbcb.js');
|
|
10
10
|
require('./index-305a23dc.js');
|
|
@@ -391,6 +391,9 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
|
|
|
391
391
|
return;
|
|
392
392
|
}
|
|
393
393
|
setRootAriaHidden(true);
|
|
394
|
+
if (overlay.backdropEl) {
|
|
395
|
+
overlay.backdropEl.block();
|
|
396
|
+
}
|
|
394
397
|
overlay.presented = true;
|
|
395
398
|
overlay.willPresent.emit();
|
|
396
399
|
(_a = overlay.willPresentShorthand) === null || _a === void 0 ? void 0 : _a.emit();
|
|
@@ -474,6 +477,9 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
474
477
|
if (role !== GESTURE) {
|
|
475
478
|
await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
|
|
476
479
|
}
|
|
480
|
+
if (overlay.backdropEl) {
|
|
481
|
+
overlay.backdropEl.unblock();
|
|
482
|
+
}
|
|
477
483
|
overlay.didDismiss.emit({ data, role });
|
|
478
484
|
(_b = overlay.didDismissShorthand) === null || _b === void 0 ? void 0 : _b.emit({ data, role });
|
|
479
485
|
activeAnimations.delete(overlay);
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
// TODO(FW-2832): types
|
|
7
6
|
const watchForOptions = (containerEl, tagName, onChange) => {
|
|
8
7
|
if (typeof MutationObserver === 'undefined') {
|
|
9
8
|
return;
|
|
@@ -27,10 +26,22 @@ const getSelectedOption = (mutationList, tagName) => {
|
|
|
27
26
|
});
|
|
28
27
|
return newOption;
|
|
29
28
|
};
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
/**
|
|
30
|
+
* The "value" key is only set on some components such as ion-select-option.
|
|
31
|
+
* As a result, we create a default union type of HTMLElement and the "value" key.
|
|
32
|
+
* However, implementers are required to provide the appropriate component type
|
|
33
|
+
* such as HTMLIonSelectOptionElement.
|
|
34
|
+
*/
|
|
35
|
+
const findCheckedOption = (node, tagName) => {
|
|
36
|
+
/**
|
|
37
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
|
38
|
+
* The above check ensures "node" is an Element (nodeType 1).
|
|
39
|
+
*/
|
|
40
|
+
if (node.nodeType !== 1) {
|
|
32
41
|
return undefined;
|
|
33
42
|
}
|
|
43
|
+
// HTMLElement inherits from Element, so we cast "el" as T.
|
|
44
|
+
const el = node;
|
|
34
45
|
const options = el.tagName === tagName.toUpperCase() ? [el] : Array.from(el.querySelectorAll(tagName));
|
|
35
46
|
return options.find((o) => o.value === el.value);
|
|
36
47
|
};
|
|
@@ -153,10 +153,23 @@
|
|
|
153
153
|
background: var(--background);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
/**
|
|
157
|
+
* Scrollbars on mobile devices will be hidden.
|
|
158
|
+
* Users can still scroll the content by swiping.
|
|
159
|
+
* If a user has a fine pointing device, such as a
|
|
160
|
+
* mouse or trackpad, then scrollbars will be
|
|
161
|
+
* visible. This allows users to scroll the
|
|
162
|
+
* content with their pointing device.
|
|
163
|
+
* Otherwise, the user would have to use the
|
|
164
|
+
* keyboard to navigate through the options.
|
|
165
|
+
* This may not be intuitive for users who
|
|
166
|
+
* are not familiar with keyboard navigation.
|
|
167
|
+
*/
|
|
168
|
+
@media (any-pointer: coarse) {
|
|
169
|
+
.action-sheet-group::-webkit-scrollbar {
|
|
170
|
+
display: none;
|
|
171
|
+
}
|
|
158
172
|
}
|
|
159
|
-
|
|
160
173
|
.action-sheet-group-cancel {
|
|
161
174
|
flex-shrink: 0;
|
|
162
175
|
overflow: hidden;
|
|
@@ -179,7 +179,7 @@ export class ActionSheet {
|
|
|
179
179
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
180
180
|
return (h(Host, Object.assign({ role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
181
181
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
182
|
-
}, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { tappable: this.backdropDismiss }), h("div", { tabindex: "0" }), h("div", { class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { class: "action-sheet-container" }, h("div", { class: "action-sheet-group", ref: (el) => (this.groupEl = el) }, header !== undefined && (h("div", { id: headerID, class: {
|
|
182
|
+
}, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { ref: (el) => (this.backdropEl = el), tappable: this.backdropDismiss }), h("div", { tabindex: "0" }), h("div", { class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { class: "action-sheet-container" }, h("div", { class: "action-sheet-group", ref: (el) => (this.groupEl = el) }, header !== undefined && (h("div", { id: headerID, class: {
|
|
183
183
|
'action-sheet-title': true,
|
|
184
184
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
185
185
|
} }, header, this.subHeader && h("div", { class: "action-sheet-sub-title" }, this.subHeader))), buttons.map((b) => (h("button", Object.assign({}, b.htmlAttributes, { type: "button", id: b.id, class: buttonClass(b), onClick: () => this.buttonClick(b) }), h("span", { class: "action-sheet-button-inner" }, b.icon && h("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), b.text), mode === 'md' && h("ion-ripple-effect", null))))), cancelButton && (h("div", { class: "action-sheet-group action-sheet-group-cancel" }, h("button", Object.assign({}, cancelButton.htmlAttributes, { type: "button", class: buttonClass(cancelButton), onClick: () => this.buttonClick(cancelButton) }), h("span", { class: "action-sheet-button-inner" }, cancelButton.icon && (h("ion-icon", { icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && h("ion-ripple-effect", null)))))), h("div", { tabindex: "0" })));
|
|
@@ -153,10 +153,23 @@
|
|
|
153
153
|
background: var(--background);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
/**
|
|
157
|
+
* Scrollbars on mobile devices will be hidden.
|
|
158
|
+
* Users can still scroll the content by swiping.
|
|
159
|
+
* If a user has a fine pointing device, such as a
|
|
160
|
+
* mouse or trackpad, then scrollbars will be
|
|
161
|
+
* visible. This allows users to scroll the
|
|
162
|
+
* content with their pointing device.
|
|
163
|
+
* Otherwise, the user would have to use the
|
|
164
|
+
* keyboard to navigate through the options.
|
|
165
|
+
* This may not be intuitive for users who
|
|
166
|
+
* are not familiar with keyboard navigation.
|
|
167
|
+
*/
|
|
168
|
+
@media (any-pointer: coarse) {
|
|
169
|
+
.action-sheet-group::-webkit-scrollbar {
|
|
170
|
+
display: none;
|
|
171
|
+
}
|
|
158
172
|
}
|
|
159
|
-
|
|
160
173
|
.action-sheet-group-cancel {
|
|
161
174
|
flex-shrink: 0;
|
|
162
175
|
overflow: hidden;
|
|
@@ -122,12 +122,25 @@
|
|
|
122
122
|
overscroll-behavior-y: contain;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
.
|
|
127
|
-
.
|
|
128
|
-
|
|
125
|
+
/**
|
|
126
|
+
* Scrollbars on mobile devices will be hidden.
|
|
127
|
+
* Users can still scroll the content by swiping.
|
|
128
|
+
* If a user has a fine pointing device, such as a
|
|
129
|
+
* mouse or trackpad, then scrollbars will be
|
|
130
|
+
* visible. This allows users to scroll the
|
|
131
|
+
* content with their pointing device.
|
|
132
|
+
* Otherwise, the user would have to use the
|
|
133
|
+
* keyboard to navigate through the options.
|
|
134
|
+
* This may not be intuitive for users who
|
|
135
|
+
* are not familiar with keyboard navigation.
|
|
136
|
+
*/
|
|
137
|
+
@media (any-pointer: coarse) {
|
|
138
|
+
.alert-checkbox-group::-webkit-scrollbar,
|
|
139
|
+
.alert-radio-group::-webkit-scrollbar,
|
|
140
|
+
.alert-message::-webkit-scrollbar {
|
|
141
|
+
display: none;
|
|
142
|
+
}
|
|
129
143
|
}
|
|
130
|
-
|
|
131
144
|
.alert-input {
|
|
132
145
|
padding-left: 0;
|
|
133
146
|
padding-right: 0;
|
|
@@ -379,7 +379,7 @@ export class Alert {
|
|
|
379
379
|
const ariaLabelledBy = header ? hdrId : subHeader ? subHdrId : null;
|
|
380
380
|
return (h(Host, Object.assign({ role: role, "aria-modal": "true", "aria-labelledby": ariaLabelledBy, "aria-describedby": message !== undefined ? msgId : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
381
381
|
zIndex: `${20000 + overlayIndex}`,
|
|
382
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { tappable: this.backdropDismiss }), h("div", { tabindex: "0" }), h("div", { class: "alert-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { class: "alert-head" }, header && (h("h2", { id: hdrId, class: "alert-title" }, header)), subHeader && (h("h2", { id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), h("div", { tabindex: "0" })));
|
|
382
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { ref: (el) => (this.backdropEl = el), tappable: this.backdropDismiss }), h("div", { tabindex: "0" }), h("div", { class: "alert-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { class: "alert-head" }, header && (h("h2", { id: hdrId, class: "alert-title" }, header)), subHeader && (h("h2", { id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), h("div", { tabindex: "0" })));
|
|
383
383
|
}
|
|
384
384
|
static get is() { return "ion-alert"; }
|
|
385
385
|
static get encapsulation() { return "scoped"; }
|
|
@@ -122,12 +122,25 @@
|
|
|
122
122
|
overscroll-behavior-y: contain;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
.
|
|
127
|
-
.
|
|
128
|
-
|
|
125
|
+
/**
|
|
126
|
+
* Scrollbars on mobile devices will be hidden.
|
|
127
|
+
* Users can still scroll the content by swiping.
|
|
128
|
+
* If a user has a fine pointing device, such as a
|
|
129
|
+
* mouse or trackpad, then scrollbars will be
|
|
130
|
+
* visible. This allows users to scroll the
|
|
131
|
+
* content with their pointing device.
|
|
132
|
+
* Otherwise, the user would have to use the
|
|
133
|
+
* keyboard to navigate through the options.
|
|
134
|
+
* This may not be intuitive for users who
|
|
135
|
+
* are not familiar with keyboard navigation.
|
|
136
|
+
*/
|
|
137
|
+
@media (any-pointer: coarse) {
|
|
138
|
+
.alert-checkbox-group::-webkit-scrollbar,
|
|
139
|
+
.alert-radio-group::-webkit-scrollbar,
|
|
140
|
+
.alert-message::-webkit-scrollbar {
|
|
141
|
+
display: none;
|
|
142
|
+
}
|
|
129
143
|
}
|
|
130
|
-
|
|
131
144
|
.alert-input {
|
|
132
145
|
padding-left: 0;
|
|
133
146
|
padding-right: 0;
|
|
@@ -7,19 +7,23 @@ import { getIonMode } from "../../global/ionic-global";
|
|
|
7
7
|
export class Backdrop {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.blocker = GESTURE_CONTROLLER.createBlocker({
|
|
10
|
-
disableScroll:
|
|
10
|
+
disableScroll: false,
|
|
11
11
|
});
|
|
12
12
|
this.visible = true;
|
|
13
13
|
this.tappable = true;
|
|
14
14
|
this.stopPropagation = true;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
/** @internal */
|
|
17
|
+
async block() {
|
|
17
18
|
if (this.stopPropagation) {
|
|
18
19
|
this.blocker.block();
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
/** @internal */
|
|
23
|
+
async unblock() {
|
|
24
|
+
if (this.stopPropagation) {
|
|
25
|
+
this.blocker.unblock();
|
|
26
|
+
}
|
|
23
27
|
}
|
|
24
28
|
onMouseDown(ev) {
|
|
25
29
|
this.emitTap(ev);
|
|
@@ -131,6 +135,51 @@ export class Backdrop {
|
|
|
131
135
|
}
|
|
132
136
|
}];
|
|
133
137
|
}
|
|
138
|
+
static get methods() {
|
|
139
|
+
return {
|
|
140
|
+
"block": {
|
|
141
|
+
"complexType": {
|
|
142
|
+
"signature": "() => Promise<void>",
|
|
143
|
+
"parameters": [],
|
|
144
|
+
"references": {
|
|
145
|
+
"Promise": {
|
|
146
|
+
"location": "global",
|
|
147
|
+
"id": "global::Promise"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"return": "Promise<void>"
|
|
151
|
+
},
|
|
152
|
+
"docs": {
|
|
153
|
+
"text": "",
|
|
154
|
+
"tags": [{
|
|
155
|
+
"name": "internal",
|
|
156
|
+
"text": undefined
|
|
157
|
+
}]
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"unblock": {
|
|
161
|
+
"complexType": {
|
|
162
|
+
"signature": "() => Promise<void>",
|
|
163
|
+
"parameters": [],
|
|
164
|
+
"references": {
|
|
165
|
+
"Promise": {
|
|
166
|
+
"location": "global",
|
|
167
|
+
"id": "global::Promise"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"return": "Promise<void>"
|
|
171
|
+
},
|
|
172
|
+
"docs": {
|
|
173
|
+
"text": "",
|
|
174
|
+
"tags": [{
|
|
175
|
+
"name": "internal",
|
|
176
|
+
"text": undefined
|
|
177
|
+
}]
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
static get elementRef() { return "el"; }
|
|
134
183
|
static get listeners() {
|
|
135
184
|
return [{
|
|
136
185
|
"name": "click",
|
|
@@ -146,49 +146,37 @@
|
|
|
146
146
|
margin-inline-end: auto;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
:host(.fab-horizontal-start) {
|
|
150
|
+
/* stylelint-disable */
|
|
151
|
+
left: calc(10px + var(--ion-safe-area-left, 0px));
|
|
152
|
+
/* stylelint-enable */
|
|
153
153
|
}
|
|
154
|
-
|
|
155
|
-
:
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
154
|
+
:host-context([dir=rtl]):host(.fab-horizontal-start), :host-context([dir=rtl]).fab-horizontal-start {
|
|
155
|
+
right: calc(10px + var(--ion-safe-area-right, 0px));
|
|
156
|
+
left: unset;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@supports selector(:dir(rtl)) {
|
|
160
|
+
:host(.fab-horizontal-start:dir(rtl)) {
|
|
161
|
+
right: calc(10px + var(--ion-safe-area-right, 0px));
|
|
159
162
|
left: unset;
|
|
160
|
-
right: unset;
|
|
161
|
-
right: calc(10px + var(--ion-safe-area-left, 0px));
|
|
162
|
-
}
|
|
163
|
-
@supports selector(:dir(rtl)) {
|
|
164
|
-
:host(.fab-horizontal-start:dir(rtl)) {
|
|
165
|
-
left: unset;
|
|
166
|
-
right: unset;
|
|
167
|
-
right: calc(10px + var(--ion-safe-area-left, 0px));
|
|
168
|
-
}
|
|
169
163
|
}
|
|
170
164
|
}
|
|
171
165
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
166
|
+
:host(.fab-horizontal-end) {
|
|
167
|
+
/* stylelint-disable */
|
|
168
|
+
right: calc(10px + var(--ion-safe-area-right, 0px));
|
|
169
|
+
/* stylelint-enable */
|
|
176
170
|
}
|
|
177
|
-
|
|
178
|
-
:
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
171
|
+
:host-context([dir=rtl]):host(.fab-horizontal-end), :host-context([dir=rtl]).fab-horizontal-end {
|
|
172
|
+
left: calc(10px + var(--ion-safe-area-left, 0px));
|
|
173
|
+
right: unset;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@supports selector(:dir(rtl)) {
|
|
177
|
+
:host(.fab-horizontal-end:dir(rtl)) {
|
|
178
|
+
left: calc(10px + var(--ion-safe-area-left, 0px));
|
|
183
179
|
right: unset;
|
|
184
|
-
left: calc(10px + var(--ion-safe-area-right, 0px));
|
|
185
|
-
}
|
|
186
|
-
@supports selector(:dir(rtl)) {
|
|
187
|
-
:host(.fab-horizontal-end:dir(rtl)) {
|
|
188
|
-
left: unset;
|
|
189
|
-
right: unset;
|
|
190
|
-
left: calc(10px + var(--ion-safe-area-right, 0px));
|
|
191
|
-
}
|
|
192
180
|
}
|
|
193
181
|
}
|
|
194
182
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { expect } from "@playwright/test";
|
|
5
|
+
import { configs, test } from "../../../../utils/test/playwright/index";
|
|
6
|
+
configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => {
|
|
7
|
+
test.describe(title('fab: safe area'), () => {
|
|
8
|
+
test('should ignore document direction in safe area positioning for start-positioned fab', async ({ page }) => {
|
|
9
|
+
await page.setContent(`
|
|
10
|
+
<style>
|
|
11
|
+
:root {
|
|
12
|
+
--ion-safe-area-left: 40px;
|
|
13
|
+
--ion-safe-area-right: 20px;
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
|
|
17
|
+
<ion-content>
|
|
18
|
+
<ion-fab vertical="center" horizontal="start">
|
|
19
|
+
<ion-fab-button>
|
|
20
|
+
<ion-icon name="add"></ion-icon>
|
|
21
|
+
</ion-fab-button>
|
|
22
|
+
</ion-fab>
|
|
23
|
+
</ion-content>
|
|
24
|
+
`, config);
|
|
25
|
+
/**
|
|
26
|
+
* We need to capture the entire page to check the fab's position,
|
|
27
|
+
* but we don't need much extra white space.
|
|
28
|
+
*/
|
|
29
|
+
await page.setViewportSize({
|
|
30
|
+
width: 200,
|
|
31
|
+
height: 200,
|
|
32
|
+
});
|
|
33
|
+
await expect(page).toHaveScreenshot(screenshot('fab-safe-area-horizontal-start'));
|
|
34
|
+
});
|
|
35
|
+
test('should ignore document direction in safe area positioning for end-positioned fab', async ({ page }) => {
|
|
36
|
+
await page.setContent(`
|
|
37
|
+
<style>
|
|
38
|
+
:root {
|
|
39
|
+
--ion-safe-area-left: 40px;
|
|
40
|
+
--ion-safe-area-right: 20px;
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
43
|
+
|
|
44
|
+
<ion-content>
|
|
45
|
+
<ion-fab vertical="center" horizontal="end">
|
|
46
|
+
<ion-fab-button>
|
|
47
|
+
<ion-icon name="add"></ion-icon>
|
|
48
|
+
</ion-fab-button>
|
|
49
|
+
</ion-fab>
|
|
50
|
+
</ion-content>
|
|
51
|
+
`, config);
|
|
52
|
+
/**
|
|
53
|
+
* We need to capture the entire page to check the fab's position,
|
|
54
|
+
* but we don't need much extra white space.
|
|
55
|
+
*/
|
|
56
|
+
await page.setViewportSize({
|
|
57
|
+
width: 200,
|
|
58
|
+
height: 200,
|
|
59
|
+
});
|
|
60
|
+
await expect(page).toHaveScreenshot(screenshot('fab-safe-area-horizontal-end'));
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Build, Host, forceUpdate, h } from "@stencil/core";
|
|
5
5
|
import { createLegacyFormController, createNotchController } from "../../utils/forms/index";
|
|
6
|
-
import { inheritAriaAttributes, debounceEvent, findItemLabel, inheritAttributes } from "../../utils/helpers";
|
|
6
|
+
import { inheritAriaAttributes, debounceEvent, findItemLabel, inheritAttributes, componentOnReady, } from "../../utils/helpers";
|
|
7
7
|
import { printIonWarning } from "../../utils/logging/index";
|
|
8
8
|
import { createSlotMutationController } from "../../utils/slot-mutation-controller";
|
|
9
9
|
import { createColorClasses, hostContext } from "../../utils/theme";
|
|
@@ -207,7 +207,14 @@ export class Input {
|
|
|
207
207
|
/**
|
|
208
208
|
* Returns the native `<input>` element used under the hood.
|
|
209
209
|
*/
|
|
210
|
-
getInputElement() {
|
|
210
|
+
async getInputElement() {
|
|
211
|
+
/**
|
|
212
|
+
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
213
|
+
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
214
|
+
*/
|
|
215
|
+
if (!this.nativeInput) {
|
|
216
|
+
await new Promise((resolve) => componentOnReady(this.el, resolve));
|
|
217
|
+
}
|
|
211
218
|
return Promise.resolve(this.nativeInput);
|
|
212
219
|
}
|
|
213
220
|
/**
|
|
@@ -249,8 +256,6 @@ export class Input {
|
|
|
249
256
|
'has-value': this.hasValue(),
|
|
250
257
|
'has-focus': this.hasFocus,
|
|
251
258
|
'interactive-disabled': this.disabled,
|
|
252
|
-
// TODO(FW-2764): remove this
|
|
253
|
-
legacy: !!this.legacy,
|
|
254
259
|
});
|
|
255
260
|
}
|
|
256
261
|
}
|
|
@@ -208,7 +208,6 @@
|
|
|
208
208
|
color: inherit;
|
|
209
209
|
display: flex;
|
|
210
210
|
position: relative;
|
|
211
|
-
flex-wrap: wrap;
|
|
212
211
|
align-items: inherit;
|
|
213
212
|
justify-content: inherit;
|
|
214
213
|
width: 100%;
|
|
@@ -220,12 +219,8 @@
|
|
|
220
219
|
outline: none;
|
|
221
220
|
background: var(--background);
|
|
222
221
|
overflow: inherit;
|
|
223
|
-
z-index: 1;
|
|
224
222
|
box-sizing: border-box;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
:host(.item-legacy) .item-native {
|
|
228
|
-
flex-wrap: unset;
|
|
223
|
+
z-index: 1;
|
|
229
224
|
}
|
|
230
225
|
|
|
231
226
|
.item-native::-moz-focus-inner {
|
|
@@ -263,12 +258,10 @@ button, a {
|
|
|
263
258
|
padding-bottom: var(--inner-padding-bottom);
|
|
264
259
|
display: flex;
|
|
265
260
|
position: relative;
|
|
266
|
-
flex: 1
|
|
261
|
+
flex: 1;
|
|
267
262
|
flex-direction: inherit;
|
|
268
|
-
flex-wrap: wrap;
|
|
269
263
|
align-items: inherit;
|
|
270
264
|
align-self: stretch;
|
|
271
|
-
max-width: 100%;
|
|
272
265
|
min-height: inherit;
|
|
273
266
|
border-width: var(--inner-border-width);
|
|
274
267
|
border-style: var(--border-style);
|
|
@@ -278,12 +271,6 @@ button, a {
|
|
|
278
271
|
box-sizing: border-box;
|
|
279
272
|
}
|
|
280
273
|
|
|
281
|
-
:host(.item-legacy) .item-inner {
|
|
282
|
-
flex: 1;
|
|
283
|
-
flex-wrap: unset;
|
|
284
|
-
max-width: unset;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
274
|
.item-bottom {
|
|
288
275
|
margin-left: 0;
|
|
289
276
|
margin-right: 0;
|
|
@@ -331,7 +318,6 @@ button, a {
|
|
|
331
318
|
|
|
332
319
|
::slotted(ion-label:not([slot=end])) {
|
|
333
320
|
flex: 1;
|
|
334
|
-
width: min-content;
|
|
335
321
|
}
|
|
336
322
|
|
|
337
323
|
:host(.item-input) {
|
|
@@ -340,23 +326,15 @@ button, a {
|
|
|
340
326
|
|
|
341
327
|
.input-wrapper {
|
|
342
328
|
display: flex;
|
|
343
|
-
flex: 1
|
|
329
|
+
flex: 1;
|
|
344
330
|
flex-direction: inherit;
|
|
345
|
-
flex-wrap: wrap;
|
|
346
331
|
align-items: inherit;
|
|
347
332
|
align-self: stretch;
|
|
348
|
-
max-width: 100%;
|
|
349
333
|
text-overflow: ellipsis;
|
|
350
334
|
overflow: inherit;
|
|
351
335
|
box-sizing: border-box;
|
|
352
336
|
}
|
|
353
337
|
|
|
354
|
-
:host(.item-legacy) .input-wrapper {
|
|
355
|
-
flex: 1;
|
|
356
|
-
flex-wrap: unset;
|
|
357
|
-
max-width: unset;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
338
|
:host(.item-label-stacked),
|
|
361
339
|
:host(.item-label-floating) {
|
|
362
340
|
align-items: start;
|
|
@@ -208,7 +208,6 @@
|
|
|
208
208
|
color: inherit;
|
|
209
209
|
display: flex;
|
|
210
210
|
position: relative;
|
|
211
|
-
flex-wrap: wrap;
|
|
212
211
|
align-items: inherit;
|
|
213
212
|
justify-content: inherit;
|
|
214
213
|
width: 100%;
|
|
@@ -220,12 +219,8 @@
|
|
|
220
219
|
outline: none;
|
|
221
220
|
background: var(--background);
|
|
222
221
|
overflow: inherit;
|
|
223
|
-
z-index: 1;
|
|
224
222
|
box-sizing: border-box;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
:host(.item-legacy) .item-native {
|
|
228
|
-
flex-wrap: unset;
|
|
223
|
+
z-index: 1;
|
|
229
224
|
}
|
|
230
225
|
|
|
231
226
|
.item-native::-moz-focus-inner {
|
|
@@ -263,12 +258,10 @@ button, a {
|
|
|
263
258
|
padding-bottom: var(--inner-padding-bottom);
|
|
264
259
|
display: flex;
|
|
265
260
|
position: relative;
|
|
266
|
-
flex: 1
|
|
261
|
+
flex: 1;
|
|
267
262
|
flex-direction: inherit;
|
|
268
|
-
flex-wrap: wrap;
|
|
269
263
|
align-items: inherit;
|
|
270
264
|
align-self: stretch;
|
|
271
|
-
max-width: 100%;
|
|
272
265
|
min-height: inherit;
|
|
273
266
|
border-width: var(--inner-border-width);
|
|
274
267
|
border-style: var(--border-style);
|
|
@@ -278,12 +271,6 @@ button, a {
|
|
|
278
271
|
box-sizing: border-box;
|
|
279
272
|
}
|
|
280
273
|
|
|
281
|
-
:host(.item-legacy) .item-inner {
|
|
282
|
-
flex: 1;
|
|
283
|
-
flex-wrap: unset;
|
|
284
|
-
max-width: unset;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
274
|
.item-bottom {
|
|
288
275
|
margin-left: 0;
|
|
289
276
|
margin-right: 0;
|
|
@@ -331,7 +318,6 @@ button, a {
|
|
|
331
318
|
|
|
332
319
|
::slotted(ion-label:not([slot=end])) {
|
|
333
320
|
flex: 1;
|
|
334
|
-
width: min-content;
|
|
335
321
|
}
|
|
336
322
|
|
|
337
323
|
:host(.item-input) {
|
|
@@ -340,23 +326,15 @@ button, a {
|
|
|
340
326
|
|
|
341
327
|
.input-wrapper {
|
|
342
328
|
display: flex;
|
|
343
|
-
flex: 1
|
|
329
|
+
flex: 1;
|
|
344
330
|
flex-direction: inherit;
|
|
345
|
-
flex-wrap: wrap;
|
|
346
331
|
align-items: inherit;
|
|
347
332
|
align-self: stretch;
|
|
348
|
-
max-width: 100%;
|
|
349
333
|
text-overflow: ellipsis;
|
|
350
334
|
overflow: inherit;
|
|
351
335
|
box-sizing: border-box;
|
|
352
336
|
}
|
|
353
337
|
|
|
354
|
-
:host(.item-legacy) .input-wrapper {
|
|
355
|
-
flex: 1;
|
|
356
|
-
flex-wrap: unset;
|
|
357
|
-
max-width: unset;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
338
|
:host(.item-label-stacked),
|
|
361
339
|
:host(.item-label-floating) {
|
|
362
340
|
align-items: start;
|