@ionic/core 7.7.4 → 7.7.5-dev.11710260658.1fc29a6c
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/checkbox.js +1 -1
- package/components/ion-range.js +126 -21
- package/components/overlays.js +66 -17
- package/dist/cjs/{app-globals-4d26cb5a.js → app-globals-fec13f9b.js} +1 -1
- package/dist/cjs/{button-active-fcf4bd60.js → button-active-e74be007.js} +1 -1
- package/dist/cjs/{hardware-back-button-4cb049f1.js → hardware-back-button-1d378ca9.js} +2 -2
- package/dist/cjs/{index-19f1b25e.js → index-04f3624f.js} +2 -2
- package/dist/cjs/{index-ea266398.js → index-c42c9063.js} +10 -1
- package/dist/cjs/{index-905e8955.js → index-ccddf5be.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 +5 -5
- package/dist/cjs/ion-alert.cjs.entry.js +5 -5
- 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 +3 -3
- 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 +4 -4
- 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 +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +4 -4
- package/dist/cjs/ion-menu_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-modal.cjs.entry.js +5 -5
- 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 +5 -5
- 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 +128 -23
- 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 +4 -4
- 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 +4 -4
- package/dist/cjs/ion-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{ionic-global-59aa7eb7.js → ionic-global-34d0d04a.js} +1 -1
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-b03f91d9.js → ios.transition-de1c813a.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{md.transition-27c337ce.js → md.transition-beea67b4.js} +2 -2
- package/dist/cjs/{overlays-53b60f81.js → overlays-dd5e1ec9.js} +68 -19
- package/dist/cjs/{status-tap-dbe2342f.js → status-tap-d9ebd6d3.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/checkbox/test/checkbox.spec.js +12 -0
- package/dist/collection/components/range/range.js +126 -21
- package/dist/collection/components/range/test/range-events.e2e.js +27 -0
- package/dist/collection/utils/overlays.js +66 -17
- package/dist/collection/utils/test/overlays/overlays.spec.js +53 -0
- package/dist/docs.json +2 -2
- package/dist/esm/{app-globals-cfb6787b.js → app-globals-4689f35b.js} +1 -1
- package/dist/esm/{button-active-01502123.js → button-active-57422dbf.js} +1 -1
- package/dist/esm/{hardware-back-button-3a14f99e.js → hardware-back-button-adcc28d5.js} +2 -2
- package/dist/esm/{index-c43cf47f.js → index-84ee782d.js} +3 -3
- package/dist/esm/{index-9c9d8b49.js → index-a3478902.js} +2 -2
- package/dist/esm/{index-9b6d6df3.js → index-eab5468b.js} +10 -1
- 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 +5 -5
- package/dist/esm/ion-alert.entry.js +5 -5
- 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 +3 -3
- 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 +4 -4
- 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 +2 -2
- package/dist/esm/ion-loading.entry.js +4 -4
- package/dist/esm/ion-menu_3.entry.js +5 -5
- package/dist/esm/ion-modal.entry.js +5 -5
- 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 +5 -5
- 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 +128 -23
- 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 +4 -4
- 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 +4 -4
- package/dist/esm/ion-toggle.entry.js +2 -2
- package/dist/esm/{ionic-global-c976d684.js → ionic-global-c836c8c6.js} +1 -1
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-da7d9344.js → ios.transition-eb28f539.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-bdaf610c.js → md.transition-fd4e98e6.js} +2 -2
- package/dist/esm/{overlays-9d04d779.js → overlays-f2c5fc7a.js} +68 -19
- package/dist/esm/{status-tap-cba549d9.js → status-tap-da5c40cc.js} +1 -1
- package/dist/esm-es5/app-globals-4689f35b.js +4 -0
- package/dist/esm-es5/{button-active-01502123.js → button-active-57422dbf.js} +1 -1
- package/dist/esm-es5/{hardware-back-button-3a14f99e.js → hardware-back-button-adcc28d5.js} +1 -1
- package/dist/esm-es5/{index-c43cf47f.js → index-84ee782d.js} +1 -1
- package/dist/esm-es5/{index-9c9d8b49.js → index-a3478902.js} +1 -1
- package/dist/esm-es5/{index-9b6d6df3.js → index-eab5468b.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-c976d684.js → ionic-global-c836c8c6.js} +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-da7d9344.js → ios.transition-eb28f539.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-fd4e98e6.js +4 -0
- package/dist/esm-es5/overlays-f2c5fc7a.js +4 -0
- package/dist/esm-es5/{status-tap-cba549d9.js → status-tap-da5c40cc.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-5274fce5.system.entry.js → p-059fcb53.system.entry.js} +1 -1
- package/dist/ionic/{p-26dcbe9f.system.js → p-05dc41cc.system.js} +1 -1
- package/dist/ionic/{p-71999ab7.system.entry.js → p-08410e29.system.entry.js} +1 -1
- package/dist/ionic/{p-2eb313e5.entry.js → p-09b047e0.entry.js} +1 -1
- package/dist/ionic/{p-edae1e04.system.entry.js → p-0a0759ec.system.entry.js} +1 -1
- package/dist/ionic/p-0e603dd6.system.js +4 -0
- package/dist/ionic/{p-d80d274f.system.entry.js → p-0e7c8334.system.entry.js} +1 -1
- package/dist/ionic/p-0ffca6ae.js +4 -0
- package/dist/ionic/{p-30892e0c.system.js → p-10ce62b0.system.js} +1 -1
- package/dist/ionic/{p-1fa738c4.js → p-11c04506.js} +1 -1
- package/dist/ionic/p-1522bf28.entry.js +4 -0
- package/dist/ionic/{p-4535eff0.system.entry.js → p-156ba1f2.system.entry.js} +1 -1
- package/dist/ionic/{p-44145d23.entry.js → p-16ad3c38.entry.js} +1 -1
- package/dist/ionic/{p-d64ed0f8.entry.js → p-209fac74.entry.js} +1 -1
- package/dist/ionic/{p-7b3d8eec.system.entry.js → p-231a3636.system.entry.js} +1 -1
- package/dist/ionic/{p-ccca27da.system.entry.js → p-2403ed8c.system.entry.js} +1 -1
- package/dist/ionic/{p-43bbda95.system.entry.js → p-2bc2b22c.system.entry.js} +1 -1
- package/dist/ionic/{p-ecf59a91.system.entry.js → p-2f418c5e.system.entry.js} +1 -1
- package/dist/ionic/{p-238f5153.entry.js → p-2fe2c8b0.entry.js} +1 -1
- package/dist/ionic/{p-16e3ba5d.entry.js → p-3270e211.entry.js} +1 -1
- package/dist/ionic/{p-e5db268b.js → p-33d70d46.js} +1 -1
- package/dist/ionic/{p-ad9c0d92.system.entry.js → p-33dd4d0b.system.entry.js} +1 -1
- package/dist/ionic/{p-bb0bf325.system.entry.js → p-345e2dac.system.entry.js} +1 -1
- package/dist/ionic/{p-d1f0eea5.system.entry.js → p-35675fdc.system.entry.js} +1 -1
- package/dist/ionic/{p-8d602214.system.js → p-36cd9903.system.js} +3 -3
- package/dist/ionic/{p-e23090ae.system.entry.js → p-38515fc5.system.entry.js} +1 -1
- package/dist/ionic/{p-792629d9.entry.js → p-38cda7af.entry.js} +1 -1
- package/dist/ionic/{p-47ba1196.entry.js → p-3ca0c7f2.entry.js} +1 -1
- package/dist/ionic/{p-03f63663.system.js → p-45aca628.system.js} +1 -1
- package/dist/ionic/{p-a5aba83a.entry.js → p-45ea497f.entry.js} +1 -1
- package/dist/ionic/{p-3096c7af.entry.js → p-479402e1.entry.js} +1 -1
- package/dist/ionic/{p-0a3aef8e.entry.js → p-48b5a2ce.entry.js} +1 -1
- package/dist/ionic/{p-439f2946.system.entry.js → p-494e7d57.system.entry.js} +1 -1
- package/dist/ionic/{p-b340444b.entry.js → p-49ace8c0.entry.js} +1 -1
- package/dist/ionic/{p-4c79142c.system.entry.js → p-56872eba.system.entry.js} +1 -1
- package/dist/ionic/{p-eec92f77.system.js → p-5d78544e.system.js} +1 -1
- package/dist/ionic/{p-4e657e07.entry.js → p-5d8fca58.entry.js} +1 -1
- package/dist/ionic/p-5dca1253.entry.js +4 -0
- package/dist/ionic/{p-134d4936.system.js → p-60c9fd9e.system.js} +1 -1
- package/dist/ionic/{p-0b58e9d1.system.js → p-61505c72.system.js} +1 -1
- package/dist/ionic/{p-7c71b2d5.entry.js → p-616255de.entry.js} +1 -1
- package/dist/ionic/{p-378464fa.entry.js → p-66f99461.entry.js} +1 -1
- package/dist/ionic/{p-c093d16d.system.entry.js → p-68d49b47.system.entry.js} +1 -1
- package/dist/ionic/{p-74c240bf.system.entry.js → p-6b5630b9.system.entry.js} +1 -1
- package/dist/ionic/{p-4694ca86.system.js → p-6d8d931b.system.js} +1 -1
- package/dist/ionic/p-6de43e85.js +4 -0
- package/dist/ionic/{p-aadc0fc9.system.entry.js → p-6e7d3ff4.system.entry.js} +1 -1
- package/dist/ionic/{p-077f2815.system.entry.js → p-6f5b32c7.system.entry.js} +1 -1
- package/dist/ionic/{p-6f3e6442.entry.js → p-6fe606ab.entry.js} +1 -1
- package/dist/ionic/{p-a55fee0d.system.entry.js → p-72246a4d.system.entry.js} +1 -1
- package/dist/ionic/{p-22d83d7d.system.entry.js → p-72c8ca65.system.entry.js} +1 -1
- package/dist/ionic/{p-5f498870.system.entry.js → p-755539d1.system.entry.js} +1 -1
- package/dist/ionic/{p-a9e462b3.entry.js → p-76afa95f.entry.js} +1 -1
- package/dist/ionic/{p-95a30504.system.entry.js → p-775ebdb4.system.entry.js} +1 -1
- package/dist/ionic/{p-26aa2e31.entry.js → p-7874e304.entry.js} +1 -1
- package/dist/ionic/{p-7f9440bc.system.entry.js → p-7b809cc0.system.entry.js} +1 -1
- package/dist/ionic/{p-411244d7.system.js → p-8186fa23.system.js} +1 -1
- package/dist/ionic/{p-bc43ca1f.system.entry.js → p-81f18ed1.system.entry.js} +1 -1
- package/dist/ionic/{p-37ac2b8f.entry.js → p-823ecf45.entry.js} +1 -1
- package/dist/ionic/{p-f7e9141e.entry.js → p-84283745.entry.js} +1 -1
- package/dist/ionic/p-84a2dcfa.system.js +4 -0
- package/dist/ionic/{p-18ba7085.system.entry.js → p-86438241.system.entry.js} +1 -1
- package/dist/ionic/{p-27594fc2.js → p-8ac5c948.js} +1 -1
- package/dist/ionic/{p-08656497.js → p-8be73ce2.js} +1 -1
- package/dist/ionic/{p-410cfe8e.system.js → p-8c39b5ba.system.js} +1 -1
- package/dist/ionic/{p-8a3d9b80.system.entry.js → p-8c74bd0e.system.entry.js} +1 -1
- package/dist/ionic/{p-693832fb.entry.js → p-8f127180.entry.js} +1 -1
- package/dist/ionic/{p-a7f34ffe.system.entry.js → p-8f466a2c.system.entry.js} +1 -1
- package/dist/ionic/{p-8a46dbfe.system.entry.js → p-9362ad14.system.entry.js} +1 -1
- package/dist/ionic/{p-86be82c0.entry.js → p-95c2fa04.entry.js} +1 -1
- package/dist/ionic/{p-96fa4567.system.entry.js → p-98068218.system.entry.js} +1 -1
- package/dist/ionic/{p-83cdb98f.system.entry.js → p-9854082a.system.entry.js} +1 -1
- package/dist/ionic/{p-2897c9d5.system.entry.js → p-996922b4.system.entry.js} +1 -1
- package/dist/ionic/{p-010d5feb.system.entry.js → p-9a029f3b.system.entry.js} +1 -1
- package/dist/ionic/{p-48e48816.system.entry.js → p-9ae5e5ee.system.entry.js} +1 -1
- package/dist/ionic/p-9c253805.js +4 -0
- package/dist/ionic/{p-941f492e.entry.js → p-a5a3315f.entry.js} +1 -1
- package/dist/ionic/{p-13fecc8b.entry.js → p-abcc9680.entry.js} +1 -1
- package/dist/ionic/{p-ea04a24e.entry.js → p-addb7662.entry.js} +1 -1
- package/dist/ionic/{p-c5c8c151.entry.js → p-ae3aeb39.entry.js} +1 -1
- package/dist/ionic/{p-5af368cf.entry.js → p-b74ece49.entry.js} +1 -1
- package/dist/ionic/p-b80ef521.entry.js +4 -0
- package/dist/ionic/{p-317e3e37.system.entry.js → p-b9b8e462.system.entry.js} +1 -1
- package/dist/ionic/{p-98e263df.system.entry.js → p-ba385465.system.entry.js} +1 -1
- package/dist/ionic/{p-e1a33d7e.entry.js → p-c05202a7.entry.js} +1 -1
- package/dist/ionic/{p-bd5c8c40.entry.js → p-c67c9644.entry.js} +1 -1
- package/dist/ionic/{p-e3964478.entry.js → p-c6f9f608.entry.js} +1 -1
- package/dist/ionic/p-c71f1193.js +4 -0
- package/dist/ionic/{p-45e15529.entry.js → p-c764f978.entry.js} +1 -1
- package/dist/ionic/{p-b0e68334.entry.js → p-c7d8cec2.entry.js} +1 -1
- package/dist/ionic/{p-60efe117.js → p-c7ee2812.js} +2 -2
- package/dist/ionic/{p-93779e0b.entry.js → p-ca935c03.entry.js} +1 -1
- package/dist/ionic/{p-167d876d.entry.js → p-cfe767f1.entry.js} +1 -1
- package/dist/ionic/{p-d8c3f2f5.system.entry.js → p-d070ab1e.system.entry.js} +1 -1
- package/dist/ionic/{p-534e85eb.system.entry.js → p-db6a5af3.system.entry.js} +1 -1
- package/dist/ionic/{p-01a0eccb.system.js → p-ddef8aa2.system.js} +1 -1
- package/dist/ionic/{p-517a4200.entry.js → p-de0392f4.entry.js} +1 -1
- package/dist/ionic/{p-462b7b8d.entry.js → p-defe82a5.entry.js} +1 -1
- package/dist/ionic/{p-208c40aa.system.entry.js → p-e155f315.system.entry.js} +1 -1
- package/dist/ionic/{p-426b54ec.system.entry.js → p-e19a78e3.system.entry.js} +1 -1
- package/dist/ionic/p-e1e67879.js +4 -0
- package/dist/ionic/{p-9b7d721e.system.entry.js → p-e4bf5d87.system.entry.js} +1 -1
- package/dist/ionic/{p-481fce9a.entry.js → p-e54e332c.entry.js} +1 -1
- package/dist/ionic/{p-cc24988a.entry.js → p-e59803ca.entry.js} +1 -1
- package/dist/ionic/{p-6d075752.entry.js → p-e8cd9b25.entry.js} +1 -1
- package/dist/ionic/{p-a7a8e7d7.entry.js → p-e8d46a2e.entry.js} +1 -1
- package/dist/ionic/{p-bf260dee.system.entry.js → p-f2a3bece.system.entry.js} +1 -1
- package/dist/ionic/{p-02370c2e.system.entry.js → p-f3e0a78c.system.entry.js} +1 -1
- package/dist/ionic/{p-727a4979.system.entry.js → p-f5bc27d6.system.entry.js} +1 -1
- package/dist/ionic/{p-9aea6c76.entry.js → p-f5dce0c6.entry.js} +1 -1
- package/dist/ionic/p-f5f9511b.entry.js +4 -0
- package/dist/ionic/{p-e938745c.system.entry.js → p-f9f7b24a.system.entry.js} +1 -1
- package/dist/ionic/{p-94ac85ab.entry.js → p-faa9c806.entry.js} +1 -1
- package/dist/ionic/{p-d9b2497b.entry.js → p-fb8bb5bb.entry.js} +1 -1
- package/dist/ionic/{p-5aa60929.js → p-fd14636e.js} +1 -1
- package/dist/ionic/{p-d8e97396.system.entry.js → p-fef4907e.system.entry.js} +1 -1
- package/dist/types/components/range/range.d.ts +29 -0
- package/hydrate/index.js +198 -42
- package/package.json +1 -1
- package/dist/esm-es5/app-globals-cfb6787b.js +0 -4
- package/dist/esm-es5/md.transition-bdaf610c.js +0 -4
- package/dist/esm-es5/overlays-9d04d779.js +0 -4
- package/dist/ionic/p-38a75a00.entry.js +0 -4
- package/dist/ionic/p-3f5d82c9.js +0 -4
- package/dist/ionic/p-4aad8a93.js +0 -4
- package/dist/ionic/p-578c7107.js +0 -4
- package/dist/ionic/p-833579b4.system.js +0 -4
- package/dist/ionic/p-9ce15e22.entry.js +0 -4
- package/dist/ionic/p-9d9c50a0.js +0 -4
- package/dist/ionic/p-af4e42b4.entry.js +0 -4
- package/dist/ionic/p-c977af5e.entry.js +0 -4
- package/dist/ionic/p-d1f6231b.system.js +0 -4
- package/dist/ionic/p-dd5cc4c8.js +0 -4
|
@@ -186,10 +186,39 @@ export declare class Range implements ComponentInterface {
|
|
|
186
186
|
* This API should not be used for external value changes.
|
|
187
187
|
*/
|
|
188
188
|
private emitValueChange;
|
|
189
|
+
/**
|
|
190
|
+
* The value should be updated on touch end or
|
|
191
|
+
* when the component is being dragged.
|
|
192
|
+
* This follows the native behavior of mobile devices.
|
|
193
|
+
*
|
|
194
|
+
* For example: When the user lifts their finger from the
|
|
195
|
+
* screen after tapping the bar or dragging the bar or knob.
|
|
196
|
+
*/
|
|
189
197
|
private onStart;
|
|
198
|
+
/**
|
|
199
|
+
* The value should be updated while dragging the
|
|
200
|
+
* bar or knob.
|
|
201
|
+
*
|
|
202
|
+
* While the user is dragging, the view
|
|
203
|
+
* should not scroll. This is to prevent the user from
|
|
204
|
+
* feeling disoriented while dragging.
|
|
205
|
+
*
|
|
206
|
+
* The user can scroll on the view if the knob or
|
|
207
|
+
* bar is not being dragged.
|
|
208
|
+
*
|
|
209
|
+
* @param detail The details of the gesture event.
|
|
210
|
+
*/
|
|
190
211
|
private onMove;
|
|
212
|
+
/**
|
|
213
|
+
* The value should be updated on touch end:
|
|
214
|
+
* - When the user lifts their finger from the screen after
|
|
215
|
+
* tapping the bar.
|
|
216
|
+
*
|
|
217
|
+
* @param detail The details of the gesture or mouse event.
|
|
218
|
+
*/
|
|
191
219
|
private onEnd;
|
|
192
220
|
private update;
|
|
221
|
+
private setPressedKnob;
|
|
193
222
|
private get valA();
|
|
194
223
|
private get valB();
|
|
195
224
|
private get ratioLower();
|
package/hydrate/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
/*!
|
|
9
|
-
Stencil Mock Doc v4.12.
|
|
9
|
+
Stencil Mock Doc v4.12.5 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
const CONTENT_REF_ID = 'r';
|
|
12
12
|
const ORG_LOCATION_ID = 'o';
|
|
@@ -7680,7 +7680,9 @@ const callRender = (e, t, o, n) => {
|
|
|
7680
7680
|
}, initializeComponent = async (e, t, o, n) => {
|
|
7681
7681
|
let s;
|
|
7682
7682
|
if (0 == (32 & t.$flags$)) {
|
|
7683
|
-
|
|
7683
|
+
t.$flags$ |= 32;
|
|
7684
|
+
const n = o.$lazyBundleId$;
|
|
7685
|
+
if (n) {
|
|
7684
7686
|
if (s = loadModule(o), s.then) {
|
|
7685
7687
|
s = await s;
|
|
7686
7688
|
}
|
|
@@ -7695,7 +7697,7 @@ const callRender = (e, t, o, n) => {
|
|
|
7695
7697
|
}
|
|
7696
7698
|
(t.$flags$ &= -9), (t.$flags$ |= 128), e(),
|
|
7697
7699
|
fireConnectedCallback(t.$lazyInstance$);
|
|
7698
|
-
}
|
|
7700
|
+
} else s = e.constructor, customElements.whenDefined(o.$tagName$).then((() => t.$flags$ |= 128));
|
|
7699
7701
|
if (s.style) {
|
|
7700
7702
|
let n = s.style;
|
|
7701
7703
|
"string" != typeof n && (n = n[t.$modeName$ = computeMode(e)], t.$modeName$ && e.setAttribute("s-mode", t.$modeName$));
|
|
@@ -10484,15 +10486,7 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
|
|
|
10484
10486
|
return;
|
|
10485
10487
|
}
|
|
10486
10488
|
setRootAriaHidden(true);
|
|
10487
|
-
|
|
10488
|
-
* Hide all other overlays from screen readers so only this one
|
|
10489
|
-
* can be read. Note that presenting an overlay always makes
|
|
10490
|
-
* it the topmost one.
|
|
10491
|
-
*/
|
|
10492
|
-
if (doc !== undefined) {
|
|
10493
|
-
const presentedOverlays = getPresentedOverlays(doc);
|
|
10494
|
-
presentedOverlays.forEach((o) => o.setAttribute('aria-hidden', 'true'));
|
|
10495
|
-
}
|
|
10489
|
+
hideOverlaysFromScreenReaders(overlay.el);
|
|
10496
10490
|
overlay.presented = true;
|
|
10497
10491
|
overlay.willPresent.emit();
|
|
10498
10492
|
(_a = overlay.willPresentShorthand) === null || _a === void 0 ? void 0 : _a.emit();
|
|
@@ -10585,7 +10579,7 @@ const restoreElementFocus = async (overlayEl) => {
|
|
|
10585
10579
|
}
|
|
10586
10580
|
};
|
|
10587
10581
|
const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnimation, opts) => {
|
|
10588
|
-
var _a, _b
|
|
10582
|
+
var _a, _b;
|
|
10589
10583
|
if (!overlay.presented) {
|
|
10590
10584
|
return false;
|
|
10591
10585
|
}
|
|
@@ -10636,13 +10630,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
10636
10630
|
console.error(err);
|
|
10637
10631
|
}
|
|
10638
10632
|
overlay.el.remove();
|
|
10639
|
-
|
|
10640
|
-
* If there are other overlays presented, unhide the new
|
|
10641
|
-
* topmost one from screen readers.
|
|
10642
|
-
*/
|
|
10643
|
-
if (doc !== undefined) {
|
|
10644
|
-
(_c = getPresentedOverlay(doc)) === null || _c === void 0 ? void 0 : _c.removeAttribute('aria-hidden');
|
|
10645
|
-
}
|
|
10633
|
+
revealOverlaysToScreenReaders();
|
|
10646
10634
|
return true;
|
|
10647
10635
|
};
|
|
10648
10636
|
const getAppRoot = (doc) => {
|
|
@@ -10838,6 +10826,69 @@ const createTriggerController = () => {
|
|
|
10838
10826
|
removeClickListener,
|
|
10839
10827
|
};
|
|
10840
10828
|
};
|
|
10829
|
+
/**
|
|
10830
|
+
* Ensure that underlying overlays have aria-hidden if necessary so that screen readers
|
|
10831
|
+
* cannot move focus to these elements. Note that we cannot rely on focus/focusin/focusout
|
|
10832
|
+
* events here because those events do not fire when the screen readers moves to a non-focusable
|
|
10833
|
+
* element such as text.
|
|
10834
|
+
* Without this logic screen readers would be able to move focus outside of the top focus-trapped overlay.
|
|
10835
|
+
*
|
|
10836
|
+
* @param newTopMostOverlay - The overlay that is being presented. Since the overlay has not been
|
|
10837
|
+
* fully presented yet at the time this function is called it will not be included in the getPresentedOverlays result.
|
|
10838
|
+
*/
|
|
10839
|
+
const hideOverlaysFromScreenReaders = (newTopMostOverlay) => {
|
|
10840
|
+
var _a;
|
|
10841
|
+
if (doc === undefined)
|
|
10842
|
+
return;
|
|
10843
|
+
const overlays = getPresentedOverlays(doc);
|
|
10844
|
+
for (let i = overlays.length - 1; i >= 0; i--) {
|
|
10845
|
+
const presentedOverlay = overlays[i];
|
|
10846
|
+
const nextPresentedOverlay = (_a = overlays[i + 1]) !== null && _a !== void 0 ? _a : newTopMostOverlay;
|
|
10847
|
+
// If next overlay has aria-hidden then all remaining overlays will have it too.
|
|
10848
|
+
if (nextPresentedOverlay.hasAttribute('aria-hidden')) {
|
|
10849
|
+
presentedOverlay.setAttribute('aria-hidden', 'true');
|
|
10850
|
+
/**
|
|
10851
|
+
* If the next overlay is a Toast this does not have aria-hidden then current overlay
|
|
10852
|
+
* should not have aria-hidden either so focus can remain in the current overlay.
|
|
10853
|
+
*/
|
|
10854
|
+
}
|
|
10855
|
+
else if (nextPresentedOverlay.tagName !== 'ION-TOAST') {
|
|
10856
|
+
presentedOverlay.setAttribute('aria-hidden', 'true');
|
|
10857
|
+
}
|
|
10858
|
+
}
|
|
10859
|
+
};
|
|
10860
|
+
/**
|
|
10861
|
+
* When dismissing an overlay we need to reveal the new top-most overlay to screen readers.
|
|
10862
|
+
* If the top-most overlay is a Toast we potentially need to reveal more overlays since
|
|
10863
|
+
* focus is never automatically moved to the Toast.
|
|
10864
|
+
*/
|
|
10865
|
+
const revealOverlaysToScreenReaders = () => {
|
|
10866
|
+
if (doc === undefined)
|
|
10867
|
+
return;
|
|
10868
|
+
// If there are other overlays presented, unhide the new topmost one from screen readers.
|
|
10869
|
+
const overlays = getPresentedOverlays(doc);
|
|
10870
|
+
for (let i = overlays.length - 1; i >= 0; i--) {
|
|
10871
|
+
const currentOverlay = overlays[i];
|
|
10872
|
+
/**
|
|
10873
|
+
* If the current we are looking at is a Toast then we can remove aria-hidden.
|
|
10874
|
+
* However, we potentially need to keep looking at the overlay stack because there
|
|
10875
|
+
* could be more Toasts underneath. Additionally, we need to unhide the closest non-Toast
|
|
10876
|
+
* overlay too so focus can move there since focus is never automatically moved to the Toast.
|
|
10877
|
+
*/
|
|
10878
|
+
if (currentOverlay.tagName === 'ION-TOAST') {
|
|
10879
|
+
currentOverlay.removeAttribute('aria-hidden');
|
|
10880
|
+
/**
|
|
10881
|
+
* If we found a non-Toast element then we can just remove aria-hidden and stop searching entirely
|
|
10882
|
+
* since this overlay should always receive focus. As a result, all underlying overlays should still
|
|
10883
|
+
* be hidden from screen readers.
|
|
10884
|
+
*/
|
|
10885
|
+
}
|
|
10886
|
+
else {
|
|
10887
|
+
currentOverlay.removeAttribute('aria-hidden');
|
|
10888
|
+
break;
|
|
10889
|
+
}
|
|
10890
|
+
}
|
|
10891
|
+
};
|
|
10841
10892
|
|
|
10842
10893
|
const hostContext = (selector, el) => {
|
|
10843
10894
|
return el.closest(selector) !== null;
|
|
@@ -14361,7 +14412,7 @@ class Checkbox {
|
|
|
14361
14412
|
const mode = getIonMode$1(this);
|
|
14362
14413
|
const path = getSVGPath(mode, indeterminate);
|
|
14363
14414
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
14364
|
-
return (hAsync(Host, { class: createColorClasses$1(color, {
|
|
14415
|
+
return (hAsync(Host, { "aria-checked": indeterminate ? 'mixed' : `${checked}`, class: createColorClasses$1(color, {
|
|
14365
14416
|
[mode]: true,
|
|
14366
14417
|
'in-item': hostContext('ion-item', el),
|
|
14367
14418
|
'checkbox-checked': checked,
|
|
@@ -30268,8 +30319,14 @@ class Range {
|
|
|
30268
30319
|
el: rangeSlider,
|
|
30269
30320
|
gestureName: 'range',
|
|
30270
30321
|
gesturePriority: 100,
|
|
30271
|
-
|
|
30272
|
-
|
|
30322
|
+
/**
|
|
30323
|
+
* Provide a threshold since the drag movement
|
|
30324
|
+
* might be a user scrolling the view.
|
|
30325
|
+
* If this is true, then the range
|
|
30326
|
+
* should not move.
|
|
30327
|
+
*/
|
|
30328
|
+
threshold: 10,
|
|
30329
|
+
onStart: () => this.onStart(),
|
|
30273
30330
|
onMove: (ev) => this.onMove(ev),
|
|
30274
30331
|
onEnd: (ev) => this.onEnd(ev),
|
|
30275
30332
|
});
|
|
@@ -30452,33 +30509,93 @@ class Range {
|
|
|
30452
30509
|
this.value = this.ensureValueInBounds(this.value);
|
|
30453
30510
|
this.ionChange.emit({ value: this.value });
|
|
30454
30511
|
}
|
|
30455
|
-
|
|
30456
|
-
|
|
30457
|
-
|
|
30512
|
+
/**
|
|
30513
|
+
* The value should be updated on touch end or
|
|
30514
|
+
* when the component is being dragged.
|
|
30515
|
+
* This follows the native behavior of mobile devices.
|
|
30516
|
+
*
|
|
30517
|
+
* For example: When the user lifts their finger from the
|
|
30518
|
+
* screen after tapping the bar or dragging the bar or knob.
|
|
30519
|
+
*/
|
|
30520
|
+
onStart() {
|
|
30521
|
+
this.ionKnobMoveStart.emit({ value: this.ensureValueInBounds(this.value) });
|
|
30522
|
+
}
|
|
30523
|
+
/**
|
|
30524
|
+
* The value should be updated while dragging the
|
|
30525
|
+
* bar or knob.
|
|
30526
|
+
*
|
|
30527
|
+
* While the user is dragging, the view
|
|
30528
|
+
* should not scroll. This is to prevent the user from
|
|
30529
|
+
* feeling disoriented while dragging.
|
|
30530
|
+
*
|
|
30531
|
+
* The user can scroll on the view if the knob or
|
|
30532
|
+
* bar is not being dragged.
|
|
30533
|
+
*
|
|
30534
|
+
* @param detail The details of the gesture event.
|
|
30535
|
+
*/
|
|
30536
|
+
onMove(detail) {
|
|
30537
|
+
const { contentEl, pressedKnob } = this;
|
|
30538
|
+
const currentX = detail.currentX;
|
|
30539
|
+
/**
|
|
30540
|
+
* Since the user is dragging on the bar or knob, the view should not scroll.
|
|
30541
|
+
*
|
|
30542
|
+
* This only needs to be done once.
|
|
30543
|
+
*/
|
|
30544
|
+
if (contentEl && this.initialContentScrollY === undefined) {
|
|
30458
30545
|
this.initialContentScrollY = disableContentScrollY(contentEl);
|
|
30459
30546
|
}
|
|
30460
|
-
|
|
30461
|
-
|
|
30462
|
-
|
|
30463
|
-
|
|
30464
|
-
|
|
30465
|
-
|
|
30547
|
+
/**
|
|
30548
|
+
* The `pressedKnob` can be undefined if the user just
|
|
30549
|
+
* started dragging the knob.
|
|
30550
|
+
*
|
|
30551
|
+
* This is necessary to determine which knob the user is dragging,
|
|
30552
|
+
* especially when it's a dual knob.
|
|
30553
|
+
* Plus, it determines when to apply certain styles.
|
|
30554
|
+
*
|
|
30555
|
+
* This only needs to be done once since the knob won't change
|
|
30556
|
+
* while the user is dragging.
|
|
30557
|
+
*/
|
|
30558
|
+
if (pressedKnob === undefined) {
|
|
30559
|
+
this.setPressedKnob(currentX);
|
|
30466
30560
|
}
|
|
30467
|
-
this.pressedKnob = !this.dualKnobs || Math.abs(this.ratioA - ratio) < Math.abs(this.ratioB - ratio) ? 'A' : 'B';
|
|
30468
|
-
this.setFocus(this.pressedKnob);
|
|
30469
|
-
// update the active knob's position
|
|
30470
30561
|
this.update(currentX);
|
|
30471
|
-
this.ionKnobMoveStart.emit({ value: this.ensureValueInBounds(this.value) });
|
|
30472
|
-
}
|
|
30473
|
-
onMove(detail) {
|
|
30474
|
-
this.update(detail.currentX);
|
|
30475
30562
|
}
|
|
30563
|
+
/**
|
|
30564
|
+
* The value should be updated on touch end:
|
|
30565
|
+
* - When the user lifts their finger from the screen after
|
|
30566
|
+
* tapping the bar.
|
|
30567
|
+
*
|
|
30568
|
+
* @param detail The details of the gesture or mouse event.
|
|
30569
|
+
*/
|
|
30476
30570
|
onEnd(detail) {
|
|
30477
30571
|
const { contentEl, initialContentScrollY } = this;
|
|
30478
|
-
|
|
30572
|
+
const currentX = detail.currentX || detail.clientX;
|
|
30573
|
+
/**
|
|
30574
|
+
* The `pressedKnob` can be undefined if the user never
|
|
30575
|
+
* dragged the knob. They just tapped on the bar.
|
|
30576
|
+
*
|
|
30577
|
+
* This is necessary to determine which knob the user is changing,
|
|
30578
|
+
* especially when it's a dual knob.
|
|
30579
|
+
* Plus, it determines when to apply certain styles.
|
|
30580
|
+
*/
|
|
30581
|
+
if (this.pressedKnob === undefined) {
|
|
30582
|
+
this.setPressedKnob(currentX);
|
|
30583
|
+
}
|
|
30584
|
+
/**
|
|
30585
|
+
* The user is no longer dragging the bar or
|
|
30586
|
+
* knob (if they were dragging it).
|
|
30587
|
+
*
|
|
30588
|
+
* The user can now scroll on the view in the next gesture event.
|
|
30589
|
+
*/
|
|
30590
|
+
if (contentEl && initialContentScrollY !== undefined) {
|
|
30479
30591
|
resetContentScrollY(contentEl, initialContentScrollY);
|
|
30480
30592
|
}
|
|
30481
|
-
|
|
30593
|
+
// update the active knob's position
|
|
30594
|
+
this.update(currentX);
|
|
30595
|
+
/**
|
|
30596
|
+
* Reset the pressed knob to undefined since the user
|
|
30597
|
+
* may start dragging a different knob in the next gesture event.
|
|
30598
|
+
*/
|
|
30482
30599
|
this.pressedKnob = undefined;
|
|
30483
30600
|
this.emitValueChange();
|
|
30484
30601
|
this.ionKnobMoveEnd.emit({ value: this.ensureValueInBounds(this.value) });
|
|
@@ -30505,6 +30622,16 @@ class Range {
|
|
|
30505
30622
|
// Update input value
|
|
30506
30623
|
this.updateValue();
|
|
30507
30624
|
}
|
|
30625
|
+
setPressedKnob(currentX) {
|
|
30626
|
+
const rect = (this.rect = this.rangeSlider.getBoundingClientRect());
|
|
30627
|
+
// figure out which knob they started closer to
|
|
30628
|
+
let ratio = clamp(0, (currentX - rect.left) / rect.width, 1);
|
|
30629
|
+
if (isRTL$1(this.el)) {
|
|
30630
|
+
ratio = 1 - ratio;
|
|
30631
|
+
}
|
|
30632
|
+
this.pressedKnob = !this.dualKnobs || Math.abs(this.ratioA - ratio) < Math.abs(this.ratioB - ratio) ? 'A' : 'B';
|
|
30633
|
+
this.setFocus(this.pressedKnob);
|
|
30634
|
+
}
|
|
30508
30635
|
get valA() {
|
|
30509
30636
|
return ratioToValue(this.ratioA, this.min, this.max, this.step);
|
|
30510
30637
|
}
|
|
@@ -30707,7 +30834,36 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
30707
30834
|
if (!this.legacyFormController.hasLegacyControl() && this.hasLabel) {
|
|
30708
30835
|
labelledBy = 'range-label';
|
|
30709
30836
|
}
|
|
30710
|
-
return (hAsync("div", { class: "range-slider", ref: (rangeEl) => (this.rangeSlider = rangeEl)
|
|
30837
|
+
return (hAsync("div", { class: "range-slider", ref: (rangeEl) => (this.rangeSlider = rangeEl),
|
|
30838
|
+
/**
|
|
30839
|
+
* Since the gesture has a threshold, the value
|
|
30840
|
+
* won't change until the user has dragged past
|
|
30841
|
+
* the threshold. This is to prevent the range
|
|
30842
|
+
* from moving when the user is scrolling.
|
|
30843
|
+
*
|
|
30844
|
+
* This results in the value not being updated
|
|
30845
|
+
* and the event emitters not being triggered
|
|
30846
|
+
* if the user taps on the range. This is why
|
|
30847
|
+
* we need to listen for the "pointerUp" event.
|
|
30848
|
+
*/
|
|
30849
|
+
onPointerUp: (ev) => {
|
|
30850
|
+
/**
|
|
30851
|
+
* If the user drags the knob on the web
|
|
30852
|
+
* version (does not occur on mobile),
|
|
30853
|
+
* the "pointerUp" event will be triggered
|
|
30854
|
+
* along with the gesture's events.
|
|
30855
|
+
* This leads to duplicate events.
|
|
30856
|
+
*
|
|
30857
|
+
* By checking if the pressedKnob is undefined,
|
|
30858
|
+
* we can determine if the "pointerUp" event was
|
|
30859
|
+
* triggered by a tap or a drag. If it was
|
|
30860
|
+
* dragged, the pressedKnob will be defined.
|
|
30861
|
+
*/
|
|
30862
|
+
if (this.pressedKnob === undefined) {
|
|
30863
|
+
this.onStart();
|
|
30864
|
+
this.onEnd(ev);
|
|
30865
|
+
}
|
|
30866
|
+
} }, ticks.map((tick) => (hAsync("div", { style: tickStyle(tick), role: "presentation", class: {
|
|
30711
30867
|
'range-tick': true,
|
|
30712
30868
|
'range-tick-active': tick.active,
|
|
30713
30869
|
}, part: tick.active ? 'tick-active' : 'tick' }))), hAsync("div", { class: "range-bar-container" }, hAsync("div", { class: "range-bar", role: "presentation", part: "bar" }), hAsync("div", { class: {
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{c as createAnimation}from"./animation-6a0c5338.js";import{g as getIonPageElement}from"./index-c43cf47f.js";import"./index-a5d50daf.js";import"./helpers-be245865.js";import"./index-9b6d6df3.js";var mdTransitionAnimation=function(a,i){var n,e,t;var r="40px";var o="0px";var m=i.direction==="back";var c=i.enteringEl;var s=i.leavingEl;var l=getIonPageElement(c);var v=l.querySelector("ion-toolbar");var f=createAnimation();f.addElement(l).fill("both").beforeRemoveClass("ion-page-invisible");if(m){f.duration(((n=i.duration)!==null&&n!==void 0?n:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)")}else{f.duration(((e=i.duration)!==null&&e!==void 0?e:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(".concat(r,")"),"translateY(".concat(o,")")).fromTo("opacity",.01,1)}if(v){var d=createAnimation();d.addElement(v);f.addAnimation(d)}if(s&&m){f.duration(((t=i.duration)!==null&&t!==void 0?t:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var p=createAnimation();p.addElement(getIonPageElement(s)).onFinish((function(a){if(a===1&&p.elements.length>0){p.elements[0].style.setProperty("display","none")}})).fromTo("transform","translateY(".concat(o,")"),"translateY(".concat(r,")")).fromTo("opacity",1,0);f.addAnimation(p)}return f};export{mdTransitionAnimation};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{__awaiter,__generator,__spreadArray}from"tslib";
|
|
2
|
-
/*!
|
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/import{d as doc}from"./index-a5d50daf.js";import{OVERLAY_BACK_BUTTON_PRIORITY,shoudUseCloseWatcher}from"./hardware-back-button-3a14f99e.js";import{b as getIonMode,c as config}from"./ionic-global-c976d684.js";import{C as CoreDelegate}from"./framework-delegate-ed4ba327.js";import{c as componentOnReady,f as focusVisibleElement,a as addEventListener,b as removeEventListener,g as getElementRoot}from"./helpers-be245865.js";import{p as printIonWarning}from"./index-9b0d46f4.js";var lastOverlayIndex=0;var lastId=0;var activeAnimations=new WeakMap;var createController=function(e){return{create:function(n){return createOverlay(e,n)},dismiss:function(n,r,t){return dismissOverlay(document,n,r,e,t)},getTop:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,getPresentedOverlay(document,e)]}))}))}}};var alertController=createController("ion-alert");var actionSheetController=createController("ion-action-sheet");var loadingController=createController("ion-loading");var modalController=createController("ion-modal");var pickerController=createController("ion-picker");var popoverController=createController("ion-popover");var toastController=createController("ion-toast");var prepareOverlay=function(e){if(typeof document!=="undefined"){connectListeners(document)}var n=lastOverlayIndex++;e.overlayIndex=n};var setOverlayId=function(e){if(!e.hasAttribute("id")){e.id="ion-overlay-".concat(++lastId)}return e.id};var createOverlay=function(e,n){if(typeof window!=="undefined"&&typeof window.customElements!=="undefined"){return window.customElements.whenDefined(e).then((function(){var r=document.createElement(e);r.classList.add("overlay-hidden");Object.assign(r,Object.assign(Object.assign({},n),{hasController:true}));getAppRoot(document).appendChild(r);return new Promise((function(e){return componentOnReady(r,e)}))}))}return Promise.resolve()};var focusableQueryString='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])';var isOverlayHidden=function(e){return e.classList.contains("overlay-hidden")};var focusFirstDescendant=function(e,n){var r=e.querySelector(focusableQueryString);focusElementInOverlay(r,n)};var focusLastDescendant=function(e,n){var r=Array.from(e.querySelectorAll(focusableQueryString));var t=r.length>0?r[r.length-1]:null;focusElementInOverlay(t,n)};var focusElementInOverlay=function(e,n){var r=e;var t=e===null||e===void 0?void 0:e.shadowRoot;if(t){r=t.querySelector(focusableQueryString)||e}if(r){focusVisibleElement(r)}else{n.focus()}};var trapKeyboardFocus=function(e,n){var r=getPresentedOverlay(n,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover");var t=e.target;if(!r||!t){return}if(r.classList.contains("ion-disable-focus-trap")){return}var o=function(){if(r===t){r.lastFocus=undefined}else if(t.tagName==="ION-TOAST"){focusElementInOverlay(r.lastFocus,r)}else{var e=getElementRoot(r);if(!e.contains(t)){return}var o=e.querySelector(".ion-overlay-wrapper");if(!o){return}if(o.contains(t)||t===e.querySelector("ion-backdrop")){r.lastFocus=t}else{var i=r.lastFocus;focusFirstDescendant(o,r);if(i===n.activeElement){focusLastDescendant(o,r)}r.lastFocus=n.activeElement}}};var i=function(){if(r.contains(t)){r.lastFocus=t}else if(t.tagName==="ION-TOAST"){focusElementInOverlay(r.lastFocus,r)}else{var e=r.lastFocus;focusFirstDescendant(r,r);if(e===n.activeElement){focusLastDescendant(r,r)}r.lastFocus=n.activeElement}};if(r.shadowRoot){i()}else{o()}};var connectListeners=function(e){if(lastOverlayIndex===0){lastOverlayIndex=1;e.addEventListener("focus",(function(n){trapKeyboardFocus(n,e)}),true);e.addEventListener("ionBackButton",(function(n){var r=getPresentedOverlay(e);if(r===null||r===void 0?void 0:r.backdropDismiss){n.detail.register(OVERLAY_BACK_BUTTON_PRIORITY,(function(){r.dismiss(undefined,BACKDROP)}))}}));if(!shoudUseCloseWatcher()){e.addEventListener("keydown",(function(n){if(n.key==="Escape"){var r=getPresentedOverlay(e);if(r===null||r===void 0?void 0:r.backdropDismiss){r.dismiss(undefined,BACKDROP)}}}))}}};var dismissOverlay=function(e,n,r,t,o){var i=getPresentedOverlay(e,t,o);if(!i){return Promise.reject("overlay does not exist")}return i.dismiss(n,r)};var getOverlays=function(e,n){if(n===undefined){n="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"}return Array.from(e.querySelectorAll(n)).filter((function(e){return e.overlayIndex>0}))};var getPresentedOverlays=function(e,n){return getOverlays(e,n).filter((function(e){return!isOverlayHidden(e)}))};var getPresentedOverlay=function(e,n,r){var t=getPresentedOverlays(e,n);return r===undefined?t[t.length-1]:t.find((function(e){return e.id===r}))};var setRootAriaHidden=function(e){if(e===void 0){e=false}var n=getAppRoot(document);var r=n.querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");if(!r){return}if(e){r.setAttribute("aria-hidden","true")}else{r.removeAttribute("aria-hidden")}};var present=function(e,n,r,t,o){return __awaiter(void 0,void 0,void 0,(function(){var i,a,d,u,s,l;return __generator(this,(function(c){switch(c.label){case 0:if(e.presented){return[2]}setRootAriaHidden(true);if(doc!==undefined){d=getPresentedOverlays(doc);d.forEach((function(e){return e.setAttribute("aria-hidden","true")}))}e.presented=true;e.willPresent.emit();(i=e.willPresentShorthand)===null||i===void 0?void 0:i.emit();u=getIonMode(e);s=e.enterAnimation?e.enterAnimation:config.get(n,u==="ios"?r:t);return[4,overlayAnimation(e,s,e.el,o)];case 1:l=c.sent();if(l){e.didPresent.emit();(a=e.didPresentShorthand)===null||a===void 0?void 0:a.emit()}if(e.el.tagName!=="ION-TOAST"){restoreElementFocus(e.el)}if(e.keyboardClose&&(document.activeElement===null||!e.el.contains(document.activeElement))){e.el.focus()}e.el.removeAttribute("aria-hidden");return[2]}}))}))};var restoreElementFocus=function(e){return __awaiter(void 0,void 0,void 0,(function(){var n,r;return __generator(this,(function(t){switch(t.label){case 0:n=document.activeElement;if(!n){return[2]}r=n===null||n===void 0?void 0:n.shadowRoot;if(r){n=r.querySelector(focusableQueryString)||n}return[4,e.onDidDismiss()];case 1:t.sent();if(document.activeElement===null||document.activeElement===document.body){n.focus()}return[2]}}))}))};var dismiss=function(e,n,r,t,o,i,a){return __awaiter(void 0,void 0,void 0,(function(){var d,u,s,l,c,f,v;return __generator(this,(function(m){switch(m.label){case 0:if(!e.presented){return[2,false]}if(doc!==undefined&&getPresentedOverlays(doc).length===1){setRootAriaHidden(false)}e.presented=false;m.label=1;case 1:m.trys.push([1,4,,5]);e.el.style.setProperty("pointer-events","none");e.willDismiss.emit({data:n,role:r});(d=e.willDismissShorthand)===null||d===void 0?void 0:d.emit({data:n,role:r});l=getIonMode(e);c=e.leaveAnimation?e.leaveAnimation:config.get(t,l==="ios"?o:i);if(!(r!==GESTURE))return[3,3];return[4,overlayAnimation(e,c,e.el,a)];case 2:m.sent();m.label=3;case 3:e.didDismiss.emit({data:n,role:r});(u=e.didDismissShorthand)===null||u===void 0?void 0:u.emit({data:n,role:r});f=activeAnimations.get(e)||[];f.forEach((function(e){return e.destroy()}));activeAnimations.delete(e);e.el.classList.add("overlay-hidden");e.el.style.removeProperty("pointer-events");if(e.el.lastFocus!==undefined){e.el.lastFocus=undefined}return[3,5];case 4:v=m.sent();console.error(v);return[3,5];case 5:e.el.remove();if(doc!==undefined){(s=getPresentedOverlay(doc))===null||s===void 0?void 0:s.removeAttribute("aria-hidden")}return[2,true]}}))}))};var getAppRoot=function(e){return e.querySelector("ion-app")||e.body};var overlayAnimation=function(e,n,r,t){return __awaiter(void 0,void 0,void 0,(function(){var o,i,a;return __generator(this,(function(d){switch(d.label){case 0:r.classList.remove("overlay-hidden");o=e.el;i=n(o,t);if(!e.animated||!config.getBoolean("animated",true)){i.duration(0)}if(e.keyboardClose){i.beforeAddWrite((function(){var e=r.ownerDocument.activeElement;if(e===null||e===void 0?void 0:e.matches("input,ion-input, ion-textarea")){e.blur()}}))}a=activeAnimations.get(e)||[];activeAnimations.set(e,__spreadArray(__spreadArray([],a,true),[i],false));return[4,i.play()];case 1:d.sent();return[2,true]}}))}))};var eventMethod=function(e,n){var r;var t=new Promise((function(e){return r=e}));onceEvent(e,n,(function(e){r(e.detail)}));return t};var onceEvent=function(e,n,r){var t=function(o){removeEventListener(e,n,t);r(o)};addEventListener(e,n,t)};var isCancel=function(e){return e==="cancel"||e===BACKDROP};var defaultGate=function(e){return e()};var safeCall=function(e,n){if(typeof e==="function"){var r=config.get("_zoneGate",defaultGate);return r((function(){try{return e(n)}catch(e){throw e}}))}return undefined};var BACKDROP="backdrop";var GESTURE="gesture";var OVERLAY_GESTURE_PRIORITY=39;var createDelegateController=function(e){var n=false;var r;var t=CoreDelegate();var o=function(o){if(o===void 0){o=false}if(r&&!o){return{delegate:r,inline:n}}var i=e.el,a=e.hasController,d=e.delegate;var u=i.parentNode;n=u!==null&&!a;r=n?d||t:d;return{inline:n,delegate:r}};var i=function(n){return __awaiter(void 0,void 0,void 0,(function(){var r,t;return __generator(this,(function(i){switch(i.label){case 0:r=o(true).delegate;if(!r)return[3,2];return[4,r.attachViewToDom(e.el,n)];case 1:return[2,i.sent()];case 2:t=e.hasController;if(t&&n!==undefined){throw new Error("framework delegate is missing")}return[2,null]}}))}))};var a=function(){var n=o().delegate;if(n&&e.el!==undefined){n.removeViewFromDom(e.el.parentElement,e.el)}};return{attachViewToDom:i,removeViewFromDom:a}};var createTriggerController=function(){var e;var n=function(){if(e){e();e=undefined}};var r=function(r,t){n();var o=t!==undefined?document.getElementById(t):null;if(!o){printIonWarning('A trigger element with the ID "'.concat(t,'" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.'),r);return}var i=function(e,n){var r=function(){n.present()};e.addEventListener("click",r);return function(){e.removeEventListener("click",r)}};e=i(o,r)};return{addClickListener:r,removeClickListener:n}};export{BACKDROP as B,GESTURE as G,OVERLAY_GESTURE_PRIORITY as O,alertController as a,actionSheetController as b,popoverController as c,createDelegateController as d,createTriggerController as e,present as f,dismiss as g,eventMethod as h,isCancel as i,prepareOverlay as j,setOverlayId as k,loadingController as l,modalController as m,focusFirstDescendant as n,getPresentedOverlay as o,pickerController as p,safeCall as s,toastController as t};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,d as t,h as o,H as r,f as i}from"./p-60efe117.js";import{c}from"./p-46bcc2f5.js";import{i as a,d as n,e as l}from"./p-1b3ffb2f.js";import{p as s}from"./p-06fee233.js";import{c as h,h as b}from"./p-47794def.js";import{b as p}from"./p-5aa60929.js";const x=class{constructor(o){e(this,o),this.ionChange=t(this,"ionChange",7),this.ionFocus=t(this,"ionFocus",7),this.ionBlur=t(this,"ionBlur",7),this.ionStyle=t(this,"ionStyle",7),this.inputId="ion-cb-"+d++,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.setChecked=e=>{const t=this.checked=e;this.ionChange.emit({checked:t,value:this.value})},this.toggleChecked=e=>{e.preventDefault(),this.setFocus(),this.setChecked(!this.checked),this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=e=>{this.disabled||this.toggleChecked(e)},this.color=void 0,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.labelPlacement="start",this.justify="space-between",this.alignment="center",this.legacy=void 0}connectedCallback(){this.legacyFormController=c(this.el)}componentWillLoad(){this.emitStyle(),this.legacyFormController.hasLegacyControl()||(this.inheritedAttributes=Object.assign({},a(this.el)))}styleChanged(){this.emitStyle()}emitStyle(){const e={"interactive-disabled":this.disabled,legacy:!!this.legacy};this.legacyFormController.hasLegacyControl()&&(e["checkbox-checked"]=this.checked),this.ionStyle.emit(e)}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{legacyFormController:e}=this;return e.hasLegacyControl()?this.renderLegacyCheckbox():this.renderCheckbox()}renderCheckbox(){const{color:e,checked:t,disabled:i,el:c,getSVGPath:a,indeterminate:l,inheritedAttributes:s,inputId:x,justify:d,labelPlacement:k,name:m,value:g,alignment:w}=this,f=p(this),u=a(f,l);return n(!0,c,m,t?g:"",i),o(r,{class:h(e,{[f]:!0,"in-item":b("ion-item",c),"checkbox-checked":t,"checkbox-disabled":i,"checkbox-indeterminate":l,interactive:!0,[`checkbox-justify-${d}`]:!0,[`checkbox-alignment-${w}`]:!0,[`checkbox-label-placement-${k}`]:!0}),onClick:this.onClick},o("label",{class:"checkbox-wrapper"},o("input",Object.assign({type:"checkbox",checked:!!t||void 0,disabled:i,id:x,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:e=>this.focusEl=e},s)),o("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":""===c.textContent},part:"label"},o("slot",null)),o("div",{class:"native-wrapper"},o("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},u))))}renderLegacyCheckbox(){this.hasLoggedDeprecationWarning||(s('ion-checkbox now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.\n\nExample: <ion-checkbox>Label</ion-checkbox>\nExample with aria-label: <ion-checkbox aria-label="Label"></ion-checkbox>\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&s('ion-checkbox is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new checkbox syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{color:e,checked:t,disabled:i,el:c,getSVGPath:a,indeterminate:x,inputId:d,name:k,value:m}=this,g=p(this),{label:w,labelId:f,labelText:u}=l(c,d),y=a(g,x);return n(!0,c,k,t?m:"",i),o(r,{"aria-labelledby":w?f:null,"aria-checked":`${t}`,"aria-hidden":i?"true":null,role:"checkbox",class:h(e,{[g]:!0,"in-item":b("ion-item",c),"checkbox-checked":t,"checkbox-disabled":i,"checkbox-indeterminate":x,"legacy-checkbox":!0,interactive:!0}),onClick:this.onClick},o("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},y),o("label",{htmlFor:d},u),o("input",{type:"checkbox","aria-checked":`${t}`,disabled:i,id:d,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:e=>this.focusEl=e}))}getSVGPath(e,t){let r=o("path",t?{d:"M6 12L18 12",part:"mark"}:{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return"md"===e&&(r=o("path",t?{d:"M2 12H22",part:"mark"}:{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),r}get el(){return i(this)}static get watchers(){return{checked:["styleChanged"],disabled:["styleChanged"]}}};let d=0;x.style={ios:":host{--checkbox-background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){width:100%;height:100%}:host([slot=start]:not(.legacy-checkbox)),:host([slot=end]:not(.legacy-checkbox)){width:auto}:host(.legacy-checkbox){width:var(--size);height:var(--size)}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.legacy-checkbox) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-checkbox) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-checkbox) label{left:0}:host-context([dir=rtl]):host(.legacy-checkbox) label,:host-context([dir=rtl]).legacy-checkbox label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-checkbox:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-checkbox) label::-moz-focus-inner{border:0}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-checkbox) .checkbox-icon{display:block;width:100%;height:100%}:host(:not(.legacy-checkbox)) .checkbox-icon{width:var(--size);height:var(--size)}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:0.0625rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.625rem, 65.988px)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item.legacy-checkbox){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}:host(.in-item.legacy-checkbox[slot=start]){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:8px;margin-bottom:8px}",md:":host{--checkbox-background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){width:100%;height:100%}:host([slot=start]:not(.legacy-checkbox)),:host([slot=end]:not(.legacy-checkbox)){width:auto}:host(.legacy-checkbox){width:var(--size);height:var(--size)}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.legacy-checkbox) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-checkbox) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-checkbox) label{left:0}:host-context([dir=rtl]):host(.legacy-checkbox) label,:host-context([dir=rtl]).legacy-checkbox label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-checkbox:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-checkbox) label::-moz-focus-inner{border:0}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-checkbox) .checkbox-icon{display:block;width:100%;height:100%}:host(:not(.legacy-checkbox)) .checkbox-icon{width:var(--size);height:var(--size)}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--checkmark-width:3;--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}:host(.legacy-checkbox.checkbox-disabled),:host(.checkbox-disabled) .label-text-wrapper{opacity:0.38}:host(.checkbox-disabled) .native-wrapper{opacity:0.63}:host(.in-item.legacy-checkbox){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item.legacy-checkbox[slot=start]){-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px;margin-top:18px;margin-bottom:18px}"};export{x as ion_checkbox}
|
package/dist/ionic/p-3f5d82c9.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{c as o}from"./p-942a9358.js";import{g as t}from"./p-4aad8a93.js";import"./p-7b30edcc.js";import"./p-1b3ffb2f.js";import"./p-60efe117.js";const i=(i,a)=>{var r,n,s;const e="40px",p="back"===a.direction,c=a.leavingEl,b=t(a.enteringEl),l=b.querySelector("ion-toolbar"),f=o();if(f.addElement(b).fill("both").beforeRemoveClass("ion-page-invisible"),p?f.duration((null!==(r=a.duration)&&void 0!==r?r:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):f.duration((null!==(n=a.duration)&&void 0!==n?n:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${e})`,"translateY(0px)").fromTo("opacity",.01,1),l){const t=o();t.addElement(l),f.addAnimation(t)}if(c&&p){f.duration((null!==(s=a.duration)&&void 0!==s?s:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const i=o();i.addElement(t(c)).onFinish((o=>{1===o&&i.elements.length>0&&i.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY(0px)",`translateY(${e})`).fromTo("opacity",1,0),f.addAnimation(i)}return f};export{i as mdTransitionAnimation}
|
package/dist/ionic/p-4aad8a93.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{w as i,B as n}from"./p-60efe117.js";import{r as e}from"./p-1b3ffb2f.js";const a="ionViewWillEnter",o="ionViewDidEnter",s="ionViewWillLeave",t="ionViewDidLeave",r="ionViewWillUnload",c=n=>new Promise(((e,a)=>{i((()=>{p(n),w(n).then((i=>{i.animation&&i.animation.destroy(),l(n),e(i)}),(i=>{l(n),a(i)}))}))})),p=i=>{const n=i.enteringEl,e=i.leavingEl;k(n,e,i.direction),i.showGoBack?n.classList.add("can-go-back"):n.classList.remove("can-go-back"),j(n,!1),n.style.setProperty("pointer-events","none"),e&&(j(e,!1),e.style.setProperty("pointer-events","none"))},w=async i=>{const e=await d(i);return e&&n.isBrowser?m(e,i):v(i)},l=i=>{const n=i.enteringEl,e=i.leavingEl;n.classList.remove("ion-page-invisible"),n.style.removeProperty("pointer-events"),void 0!==e&&(e.classList.remove("ion-page-invisible"),e.style.removeProperty("pointer-events"))},d=async i=>{if(i.leavingEl&&i.animated&&0!==i.duration)return i.animationBuilder?i.animationBuilder:"ios"===i.mode?(await import("./p-08656497.js")).iosTransitionAnimation:(await import("./p-3f5d82c9.js")).mdTransitionAnimation},m=async(i,n)=>{await u(n,!0);const e=i(n.baseEl,n);g(n.enteringEl,n.leavingEl);const a=await b(e,n);return n.progressCallback&&n.progressCallback(void 0),a&&y(n.enteringEl,n.leavingEl),{hasCompleted:a,animation:e}},v=async i=>{const n=i.enteringEl,e=i.leavingEl;return await u(i,!1),g(n,e),y(n,e),{hasCompleted:!0}},u=async(i,n)=>{(void 0!==i.deepWait?i.deepWait:n)&&await Promise.all([V(i.enteringEl),V(i.leavingEl)]),await f(i.viewIsReady,i.enteringEl)},f=async(i,n)=>{i&&await i(n)},b=(i,n)=>{const e=n.progressCallback,a=new Promise((n=>{i.onFinish((i=>n(1===i)))}));return e?(i.progressStart(!0),e(i)):i.play(),a},g=(i,n)=>{h(n,s),h(i,a)},y=(i,n)=>{h(i,o),h(n,t)},h=(i,n)=>{if(i){const e=new CustomEvent(n,{bubbles:!1,cancelable:!1});i.dispatchEvent(e)}},P=()=>new Promise((i=>e((()=>e((()=>i())))))),V=async i=>{const n=i;if(n){if(null!=n.componentOnReady){if(null!=await n.componentOnReady())return}else if(null!=n.__registerHost){const i=new Promise((i=>e(i)));return void await i}await Promise.all(Array.from(n.children).map(V))}},j=(i,n)=>{n?(i.setAttribute("aria-hidden","true"),i.classList.add("ion-page-hidden")):(i.hidden=!1,i.removeAttribute("aria-hidden"),i.classList.remove("ion-page-hidden"))},k=(i,n,e)=>{void 0!==i&&(i.style.zIndex="back"===e?"99":"101"),void 0!==n&&(n.style.zIndex="100")},C=i=>{if(i.classList.contains("ion-page"))return i;return i.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||i};export{a as L,o as a,s as b,t as c,r as d,V as e,C as g,h as l,j as s,c as t,P as w}
|
package/dist/ionic/p-578c7107.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{w as t}from"./p-60efe117.js";import{h as o,a as e,b as n}from"./p-42f189f4.js";import{createGesture as r}from"./p-f5d2dc9b.js";const s=(s,a)=>{let i,c;const d=(t,o,e)=>{if("undefined"==typeof document)return;const n=document.elementFromPoint(t,o);n&&a(n)?n!==i&&(m(),f(n,e)):m()},f=(o,e)=>{i=o,c||(c=i);const n=i;t((()=>n.classList.add("ion-activated"))),e()},m=(o=!1)=>{if(!i)return;const e=i;t((()=>e.classList.remove("ion-activated"))),o&&c!==i&&i.click(),i=void 0};return r({el:s,gestureName:"buttonActiveDrag",threshold:0,onStart:t=>d(t.currentX,t.currentY,e),onMove:t=>d(t.currentX,t.currentY,n),onEnd:()=>{m(!0),o(),c=void 0}})};export{s as c}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
System.register(["./p-fe320051.system.js","./p-4694ca86.system.js","./p-792919fd.system.js","./p-5fc8d5ef.system.js","./p-8d602214.system.js"],(function(n){"use strict";var t,i;return{setters:[function(n){t=n.c},function(n){i=n.g},function(){},function(){},function(){}],execute:function(){var a=n("mdTransitionAnimation",(function(n,a){var r,e,s;var o="40px";var c="0px";var f=a.direction==="back";var u=a.enteringEl;var v=a.leavingEl;var l=i(u);var p=l.querySelector("ion-toolbar");var b=t();b.addElement(l).fill("both").beforeRemoveClass("ion-page-invisible");if(f){b.duration(((r=a.duration)!==null&&r!==void 0?r:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)")}else{b.duration(((e=a.duration)!==null&&e!==void 0?e:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(".concat(o,")"),"translateY(".concat(c,")")).fromTo("opacity",.01,1)}if(p){var m=t();m.addElement(p);b.addAnimation(m)}if(v&&f){b.duration(((s=a.duration)!==null&&s!==void 0?s:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var y=t();y.addElement(i(v)).onFinish((function(n){if(n===1&&y.elements.length>0){y.elements[0].style.setProperty("display","none")}})).fromTo("transform","translateY(".concat(c,")"),"translateY(".concat(o,")")).fromTo("opacity",1,0);b.addAnimation(y)}return b}))}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{r as o,h as s,H as r}from"./p-60efe117.js";import{c as t}from"./p-47794def.js";import{b as a}from"./p-5aa60929.js";const c=class{constructor(s){o(this,s),this.color=void 0}render(){const o=a(this);return s(r,{key:"8922ebdd7486c9cb9f9b547a49e5be2261df4ba1",class:t(this.color,{[o]:!0})},s("slot",{key:"164cbd0f81a00adfac04f544524e905f721c121c"}))}};c.style=":host(.ion-color){color:var(--ion-color-base)}";export{c as ion_text}
|
package/dist/ionic/p-9d9c50a0.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{d as e}from"./p-7b30edcc.js";import{OVERLAY_BACK_BUTTON_PRIORITY as n,shoudUseCloseWatcher as o}from"./p-27594fc2.js";import{b as t,c as i}from"./p-5aa60929.js";import{C as a}from"./p-779aede8.js";import{c as r,f as d,a as s,b as l,g as c}from"./p-1b3ffb2f.js";import{p as u}from"./p-06fee233.js";let m=0,p=0;const v=new WeakMap,f=e=>({create:n=>T(e,n),dismiss:(n,o,t)=>B(document,n,o,e,t),getTop:async()=>N(document,e)}),h=f("ion-alert"),b=f("ion-action-sheet"),w=f("ion-loading"),y=f("ion-modal"),g=f("ion-picker"),k=f("ion-popover"),x=f("ion-toast"),O=e=>{"undefined"!=typeof document&&P(document);const n=m++;e.overlayIndex=n},j=e=>(e.hasAttribute("id")||(e.id="ion-overlay-"+ ++p),e.id),T=(e,n)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(e).then((()=>{const o=document.createElement(e);return o.classList.add("overlay-hidden"),Object.assign(o,Object.assign(Object.assign({},n),{hasController:!0})),V(document).appendChild(o),new Promise((e=>r(o,e)))})):Promise.resolve(),A='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',C=(e,n)=>{const o=e.querySelector(A);I(o,n)},D=(e,n)=>{const o=Array.from(e.querySelectorAll(A));I(o.length>0?o[o.length-1]:null,n)},I=(e,n)=>{let o=e;const t=null==e?void 0:e.shadowRoot;t&&(o=t.querySelector(A)||e),o?d(o):n.focus()},P=e=>{0===m&&(m=1,e.addEventListener("focus",(n=>{((e,n)=>{const o=N(n,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),t=e.target;o&&t&&(o.classList.contains("ion-disable-focus-trap")||(o.shadowRoot?(()=>{if(o.contains(t))o.lastFocus=t;else if("ION-TOAST"===t.tagName)I(o.lastFocus,o);else{const e=o.lastFocus;C(o,o),e===n.activeElement&&D(o,o),o.lastFocus=n.activeElement}})():(()=>{if(o===t)o.lastFocus=void 0;else if("ION-TOAST"===t.tagName)I(o.lastFocus,o);else{const e=c(o);if(!e.contains(t))return;const i=e.querySelector(".ion-overlay-wrapper");if(!i)return;if(i.contains(t)||t===e.querySelector("ion-backdrop"))o.lastFocus=t;else{const e=o.lastFocus;C(i,o),e===n.activeElement&&D(i,o),o.lastFocus=n.activeElement}}})()))})(n,e)}),!0),e.addEventListener("ionBackButton",(o=>{const t=N(e);(null==t?void 0:t.backdropDismiss)&&o.detail.register(n,(()=>{t.dismiss(void 0,H)}))})),o()||e.addEventListener("keydown",(n=>{if("Escape"===n.key){const n=N(e);(null==n?void 0:n.backdropDismiss)&&n.dismiss(void 0,H)}})))},B=(e,n,o,t,i)=>{const a=N(e,t,i);return a?a.dismiss(n,o):Promise.reject("overlay does not exist")},M=(e,n)=>((e,n)=>(void 0===n&&(n="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(n)).filter((e=>e.overlayIndex>0))))(e,n).filter((e=>!e.classList.contains("overlay-hidden"))),N=(e,n,o)=>{const t=M(e,n);return void 0===o?t[t.length-1]:t.find((e=>e.id===o))},S=(e=!1)=>{const n=V(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");n&&(e?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden"))},E=async(n,o,a,r,d)=>{var s,l;if(n.presented)return;S(!0),void 0!==e&&M(e).forEach((e=>e.setAttribute("aria-hidden","true"))),n.presented=!0,n.willPresent.emit(),null===(s=n.willPresentShorthand)||void 0===s||s.emit();const c=t(n),u=n.enterAnimation?n.enterAnimation:i.get(o,"ios"===c?a:r);await z(n,u,n.el,d)&&(n.didPresent.emit(),null===(l=n.didPresentShorthand)||void 0===l||l.emit()),"ION-TOAST"!==n.el.tagName&&G(n.el),!n.keyboardClose||null!==document.activeElement&&n.el.contains(document.activeElement)||n.el.focus(),n.el.removeAttribute("aria-hidden")},G=async e=>{let n=document.activeElement;if(!n)return;const o=null==n?void 0:n.shadowRoot;o&&(n=o.querySelector(A)||n),await e.onDidDismiss(),null!==document.activeElement&&document.activeElement!==document.body||n.focus()},L=async(n,o,a,r,d,s,l)=>{var c,u,m;if(!n.presented)return!1;void 0!==e&&1===M(e).length&&S(!1),n.presented=!1;try{n.el.style.setProperty("pointer-events","none"),n.willDismiss.emit({data:o,role:a}),null===(c=n.willDismissShorthand)||void 0===c||c.emit({data:o,role:a});const e=t(n),m=n.leaveAnimation?n.leaveAnimation:i.get(r,"ios"===e?d:s);a!==J&&await z(n,m,n.el,l),n.didDismiss.emit({data:o,role:a}),null===(u=n.didDismissShorthand)||void 0===u||u.emit({data:o,role:a}),(v.get(n)||[]).forEach((e=>e.destroy())),v.delete(n),n.el.classList.add("overlay-hidden"),n.el.style.removeProperty("pointer-events"),void 0!==n.el.lastFocus&&(n.el.lastFocus=void 0)}catch(e){console.error(e)}return n.el.remove(),void 0!==e&&(null===(m=N(e))||void 0===m||m.removeAttribute("aria-hidden")),!0},V=e=>e.querySelector("ion-app")||e.body,z=async(e,n,o,t)=>{o.classList.remove("overlay-hidden");const a=n(e.el,t);e.animated&&i.getBoolean("animated",!0)||a.duration(0),e.keyboardClose&&a.beforeAddWrite((()=>{const e=o.ownerDocument.activeElement;(null==e?void 0:e.matches("input,ion-input, ion-textarea"))&&e.blur()}));const r=v.get(e)||[];return v.set(e,[...r,a]),await a.play(),!0},F=(e,n)=>{let o;const t=new Promise((e=>o=e));return W(e,n,(e=>{o(e.detail)})),t},W=(e,n,o)=>{const t=i=>{l(e,n,t),o(i)};s(e,n,t)},$=e=>"cancel"===e||e===H,_=e=>e(),q=(e,n)=>{if("function"==typeof e)return i.get("_zoneGate",_)((()=>{try{return e(n)}catch(e){throw e}}))},H="backdrop",J="gesture",K=39,Q=e=>{let n,o=!1;const t=a(),i=(i=!1)=>{if(n&&!i)return{delegate:n,inline:o};const{el:a,hasController:r,delegate:d}=e;return o=null!==a.parentNode&&!r,n=o?d||t:d,{inline:o,delegate:n}};return{attachViewToDom:async n=>{const{delegate:o}=i(!0);if(o)return await o.attachViewToDom(e.el,n);const{hasController:t}=e;if(t&&void 0!==n)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:n}=i();n&&void 0!==e.el&&n.removeViewFromDom(e.el.parentElement,e.el)}}},R=()=>{let e;const n=()=>{e&&(e(),e=void 0)};return{addClickListener:(o,t)=>{n();const i=void 0!==t?document.getElementById(t):null;i?e=((e,n)=>{const o=()=>{n.present()};return e.addEventListener("click",o),()=>{e.removeEventListener("click",o)}})(i,o):u(`A trigger element with the ID "${t}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,o)},removeClickListener:n}};export{H as B,J as G,K as O,h as a,b,k as c,Q as d,R as e,E as f,L as g,F as h,$ as i,O as j,j as k,w as l,y as m,C as n,N as o,g as p,q as s,x as t}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,d as o,f as n,h as e,H as i}from"./p-60efe117.js";import{c as r,q as s}from"./p-1b3ffb2f.js";import{o as a,c}from"./p-47794def.js";import{b as h}from"./p-5aa60929.js";const u=class{constructor(n){t(this,n),this.ionRouteDataChanged=o(this,"ionRouteDataChanged",7),this.url="",this.component=void 0,this.componentProps=void 0,this.beforeLeave=void 0,this.beforeEnter=void 0}onUpdate(t){this.ionRouteDataChanged.emit(t)}onComponentProps(t,o){if(t===o)return;const n=t?Object.keys(t):[],e=o?Object.keys(o):[];if(n.length===e.length){for(const e of n)if(t[e]!==o[e])return void this.onUpdate(t)}else this.onUpdate(t)}connectedCallback(){this.ionRouteDataChanged.emit()}static get watchers(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}}},l=class{constructor(n){t(this,n),this.ionRouteRedirectChanged=o(this,"ionRouteRedirectChanged",7),this.from=void 0,this.to=void 0}propDidChange(){this.ionRouteRedirectChanged.emit()}connectedCallback(){this.ionRouteRedirectChanged.emit()}static get watchers(){return{from:["propDidChange"],to:["propDidChange"]}}},f="root",d="forward",w=t=>"/"+t.filter((t=>t.length>0)).join("/"),p=t=>{let o,n=[""];if(null!=t){const e=t.indexOf("?");e>-1&&(o=t.substring(e+1),t=t.substring(0,e)),n=t.split("/").map((t=>t.trim())).filter((t=>t.length>0)),0===n.length&&(n=[""])}return{segments:n,queryString:o}},m=async(t,o,n,e,i=!1,s)=>{try{const a=v(t);if(e>=o.length||!a)return i;await new Promise((t=>r(a,t)));const c=o[e],h=await a.setRouteId(c.id,c.params,n,s);return h.changed&&(n=f,i=!0),i=await m(h.element,o,n,e+1,i,s),h.markVisible&&await h.markVisible(),i}catch(t){return console.error(t),!1}},b=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet",v=t=>{if(!t)return;if(t.matches(b))return t;const o=t.querySelector(b);return null!=o?o:void 0},g=(t,o)=>o.find((o=>((t,o)=>{const{from:n,to:e}=o;if(void 0===e)return!1;if(n.length>t.length)return!1;for(let o=0;o<n.length;o++){const e=n[o];if("*"===e)return!0;if(e!==t[o])return!1}return n.length===t.length})(t,o))),y=(t,o)=>{const n=Math.min(t.length,o.length);let e=0;for(let i=0;i<n;i++){const n=t[i],r=o[i];if(n.id.toLowerCase()!==r.id)break;if(n.params){const t=Object.keys(n.params);if(t.length===r.segments.length){const o=t.map((t=>`:${t}`));for(let t=0;t<o.length&&o[t].toLowerCase()===r.segments[t];t++)e++}}e++}return e},R=(t,o)=>{const n=new O(t);let e,i=!1;for(let t=0;t<o.length;t++){const r=o[t].segments;if(""===r[0])i=!0;else{for(const o of r){const i=n.next();if(":"===o[0]){if(""===i)return null;e=e||[],(e[t]||(e[t]={}))[o.slice(1)]=i}else if(i!==o)return null}i=!1}}return i&&i!==(""===n.next())?null:e?o.map(((t,o)=>({id:t.id,segments:t.segments,params:C(t.params,e[o]),beforeEnter:t.beforeEnter,beforeLeave:t.beforeLeave}))):o},C=(t,o)=>t||o?Object.assign(Object.assign({},t),o):void 0,k=(t,o)=>{let n=null,e=0;for(const i of o){const o=R(t,i);if(null!==o){const t=j(o);t>e&&(e=t,n=o)}}return n},j=t=>{let o=1,n=1;for(const e of t)for(const t of e.segments)":"===t[0]?o+=Math.pow(1,n):""!==t&&(o+=Math.pow(2,n)),n++;return o};class O{constructor(t){this.segments=t.slice()}next(){return this.segments.length>0?this.segments.shift():""}}const D=(t,o)=>o in t?t[o]:t.hasAttribute(o)?t.getAttribute(o):null,E=t=>Array.from(t.children).filter((t=>"ION-ROUTE-REDIRECT"===t.tagName)).map((t=>{const o=D(t,"to");return{from:p(D(t,"from")).segments,to:null==o?void 0:p(o)}})),S=t=>L($(t)),$=t=>Array.from(t.children).filter((t=>"ION-ROUTE"===t.tagName&&t.component)).map((t=>{const o=D(t,"component");return{segments:p(D(t,"url")).segments,id:o.toLowerCase(),params:t.componentProps,beforeLeave:t.beforeLeave,beforeEnter:t.beforeEnter,children:$(t)}})),L=t=>{const o=[];for(const n of t)P([],o,n);return o},P=(t,o,n)=>{if(t=[...t,{id:n.id,segments:n.segments,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}],0!==n.children.length)for(const e of n.children)P(t,o,e);else o.push(t)},U=class{constructor(n){t(this,n),this.ionRouteWillChange=o(this,"ionRouteWillChange",7),this.ionRouteDidChange=o(this,"ionRouteDidChange",7),this.previousPath=null,this.busy=!1,this.state=0,this.lastState=0,this.root="/",this.useHash=!0}async componentWillLoad(){await(v(document.body)?Promise.resolve():new Promise((t=>{window.addEventListener("ionNavWillLoad",(()=>t()),{once:!0})})));const t=await this.runGuards(this.getSegments());if(!0!==t){if("object"==typeof t){const{redirect:o}=t,n=p(o);this.setSegments(n.segments,f,n.queryString),await this.writeNavStateRoot(n.segments,f)}}else await this.onRoutesChanged()}componentDidLoad(){window.addEventListener("ionRouteRedirectChanged",s(this.onRedirectChanged.bind(this),10)),window.addEventListener("ionRouteDataChanged",s(this.onRoutesChanged.bind(this),100))}async onPopState(){const t=this.historyDirection();let o=this.getSegments();const n=await this.runGuards(o);if(!0!==n){if("object"!=typeof n)return!1;o=p(n.redirect).segments}return this.writeNavStateRoot(o,t)}onBackButton(t){t.detail.register(0,(t=>{this.back(),t()}))}async canTransition(){const t=await this.runGuards();return!0===t||"object"==typeof t&&t.redirect}async push(t,o="forward",n){var e;if(t.startsWith(".")){const o=null!==(e=this.previousPath)&&void 0!==e?e:"/",n=new URL(t,`https://host/${o}`);t=n.pathname+n.search}let i=p(t);const r=await this.runGuards(i.segments);if(!0!==r){if("object"!=typeof r)return!1;i=p(r.redirect)}return this.setSegments(i.segments,o,i.queryString),this.writeNavStateRoot(i.segments,o,n)}back(){return window.history.back(),Promise.resolve(this.waitPromise)}async printDebug(){(t=>{console.group(`[ion-core] ROUTES[${t.length}]`);for(const o of t){const t=[];o.forEach((o=>t.push(...o.segments)));const n=o.map((t=>t.id));console.debug(`%c ${w(t)}`,"font-weight: bold; padding-left: 20px","=>\t",`(${n.join(", ")})`)}console.groupEnd()})(S(this.el)),(t=>{console.group(`[ion-core] REDIRECTS[${t.length}]`);for(const o of t)o.to&&console.debug("FROM: ",`$c ${w(o.from)}`,"font-weight: bold"," TO: ",`$c ${w(o.to.segments)}`,"font-weight: bold");console.groupEnd()})(E(this.el))}async navChanged(t){if(this.busy)return console.warn("[ion-router] router is busy, navChanged was cancelled"),!1;const{ids:o,outlet:n}=await(async()=>{const t=[];let o,n=window.document.body;for(;o=v(n);){const e=await o.getRouteId();if(!e)break;n=e.element,e.element=void 0,t.push(e)}return{ids:t,outlet:o}})(),e=((t,o)=>{let n=null,e=0;for(const i of o){const o=y(t,i);o>e&&(n=i,e=o)}return n?n.map(((o,n)=>{var e;return{id:o.id,segments:o.segments,params:C(o.params,null===(e=t[n])||void 0===e?void 0:e.params)}})):null})(o,S(this.el));if(!e)return console.warn("[ion-router] no matching URL for ",o.map((t=>t.id))),!1;const i=(t=>{const o=[];for(const n of t)for(const t of n.segments)if(":"===t[0]){const e=n.params&&n.params[t.slice(1)];if(!e)return null;o.push(e)}else""!==t&&o.push(t);return o})(e);return i?(this.setSegments(i,t),await this.safeWriteNavState(n,e,f,i,null,o.length),!0):(console.warn("[ion-router] router could not match path because some required param is missing"),!1)}onRedirectChanged(){const t=this.getSegments();t&&g(t,E(this.el))&&this.writeNavStateRoot(t,f)}onRoutesChanged(){return this.writeNavStateRoot(this.getSegments(),f)}historyDirection(){var t;const o=window;null===o.history.state&&(this.state++,o.history.replaceState(this.state,o.document.title,null===(t=o.document.location)||void 0===t?void 0:t.href));const n=o.history.state,e=this.lastState;return this.lastState=n,n>e||n>=e&&e>0?d:n<e?"back":f}async writeNavStateRoot(t,o,n){if(!t)return console.error("[ion-router] URL is not part of the routing set"),!1;const e=E(this.el),i=g(t,e);let r=null;if(i){const{segments:n,queryString:e}=i.to;this.setSegments(n,o,e),r=i.from,t=n}const s=S(this.el),a=k(t,s);return a?this.safeWriteNavState(document.body,a,o,t,r,0,n):(console.error("[ion-router] the path does not match any route"),!1)}async safeWriteNavState(t,o,n,e,i,r=0,s){const a=await this.lock();let c=!1;try{c=await this.writeNavState(t,o,n,e,i,r,s)}catch(t){console.error(t)}return a(),c}async lock(){const t=this.waitPromise;let o;return this.waitPromise=new Promise((t=>o=t)),void 0!==t&&await t,o}async runGuards(t=this.getSegments(),o){if(void 0===o&&(o=p(this.previousPath).segments),!t||!o)return!0;const n=S(this.el),e=k(o,n),i=e&&e[e.length-1].beforeLeave,r=!i||await i();if(!1===r||"object"==typeof r)return r;const s=k(t,n),a=s&&s[s.length-1].beforeEnter;return!a||a()}async writeNavState(t,o,n,e,i,r=0,s){if(this.busy)return console.warn("[ion-router] router is busy, transition was cancelled"),!1;this.busy=!0;const a=this.routeChangeEvent(e,i);a&&this.ionRouteWillChange.emit(a);const c=await m(t,o,n,r,!1,s);return this.busy=!1,a&&this.ionRouteDidChange.emit(a),c}setSegments(t,o,n){this.state++,((t,o,n,e,i,r,s)=>{const a=((t,o,n)=>{let e=w(t);return o&&(e="#"+e),void 0!==n&&(e+="?"+n),e})([...p(o).segments,...e],n,s);i===d?t.pushState(r,"",a):t.replaceState(r,"",a)})(window.history,this.root,this.useHash,t,o,this.state,n)}getSegments(){return((t,o,n)=>{const e=p(this.root).segments,i=n?t.hash.slice(1):t.pathname;return((t,o)=>{if(t.length>o.length)return null;if(t.length<=1&&""===t[0])return o;for(let n=0;n<t.length;n++)if(t[n]!==o[n])return null;return o.length===t.length?[""]:o.slice(t.length)})(e,p(i).segments)})(window.location,0,this.useHash)}routeChangeEvent(t,o){const n=this.previousPath,e=w(t);return this.previousPath=e,e===n?null:{from:n,redirectedFrom:o?w(o):null,to:e}}get el(){return n(this)}},x=class{constructor(o){t(this,o),this.onClick=t=>{a(this.href,t,this.routerDirection,this.routerAnimation)},this.color=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0}render(){const t=h(this),o={href:this.href,rel:this.rel,target:this.target};return e(i,{key:"9944573e56abecc47afd2df03b386e38fc7ed2f3",onClick:this.onClick,class:c(this.color,{[t]:!0,"ion-activatable":!0})},e("a",Object.assign({key:"383de10c02eb9ab87e27890548ef681dccf2a765"},o),e("slot",{key:"584a5a52e2b116f3827596cc5869a3557d6bcb6b"})))}};x.style=":host{--background:transparent;--color:var(--ion-color-primary, #3880ff);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}";export{u as ion_route,l as ion_route_redirect,U as ion_router,x as ion_router_link}
|