@amwaljs/checkout-button 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/checkout/checkout.esm.js +1 -1
- package/dist/checkout/{p-c03b6161.entry.js → p-00045a8c.entry.js} +1 -1
- package/dist/checkout/p-01bbe74f.entry.js +1 -0
- package/dist/checkout/p-051412fa.entry.js +1 -0
- package/dist/checkout/p-09cbe586.entry.js +4 -0
- package/dist/checkout/{p-439ad699.entry.js → p-0a85a01f.entry.js} +2 -2
- package/dist/checkout/{p-d5652cd4.entry.js → p-0bbfeb3c.entry.js} +1 -1
- package/dist/checkout/{p-4ae1a390.entry.js → p-0d96b482.entry.js} +1 -1
- package/dist/checkout/{p-DUa_5Mmb.js → p-0f03cd28.js} +2 -2
- package/dist/checkout/p-104d7733.entry.js +1 -0
- package/dist/checkout/{p-8036cf49.entry.js → p-10ad151a.entry.js} +5 -5
- package/dist/checkout/p-112455b1.js +1 -0
- package/dist/checkout/p-11beffea.entry.js +1 -0
- package/dist/checkout/p-13245fd4.js +1 -0
- package/dist/checkout/p-13741a94.entry.js +1 -0
- package/dist/checkout/p-14ea2c82.entry.js +1 -0
- package/dist/checkout/p-167dc7a7.entry.js +4 -0
- package/dist/checkout/p-1a749b59.entry.js +1 -0
- package/dist/checkout/p-1c718939.entry.js +1 -0
- package/dist/checkout/{p-11205aeb.entry.js → p-1cbb13f2.entry.js} +1 -1
- package/dist/checkout/{p-46ff73b3.entry.js → p-20df5234.entry.js} +1 -1
- package/dist/checkout/p-24068b1c.entry.js +1 -0
- package/dist/checkout/{p-7006753a.entry.js → p-28ccecc7.entry.js} +2 -2
- package/dist/checkout/p-361649c3.js +4 -0
- package/dist/{components/p-DoR35tr_.js → checkout/p-39ad94cf.js} +2 -2
- package/dist/checkout/p-3b75b22a.js +5 -0
- package/dist/checkout/p-3b80783d.js +8 -0
- package/dist/checkout/p-3d3eefc3.js +4 -0
- package/dist/checkout/p-3e1e3453.js +4 -0
- package/dist/checkout/p-3e681e57.js +4 -0
- package/dist/checkout/{p-bf933eb6.entry.js → p-3e8da476.entry.js} +1 -1
- package/dist/checkout/{p-1dc08181.entry.js → p-4028c0d2.entry.js} +1 -1
- package/dist/checkout/p-44c91c42.entry.js +1 -0
- package/dist/checkout/p-464f5a60.entry.js +1 -0
- package/dist/checkout/p-46b7ee7f.entry.js +1 -0
- package/dist/checkout/p-48784250.entry.js +1 -0
- package/dist/{components/p-wiOwkFtc.js → checkout/p-4be20bf2.js} +1 -1
- package/dist/{components/p-Dl_WhQZu.js → checkout/p-4f78d3a0.js} +2 -2
- package/dist/checkout/{p-4da4ecc4.entry.js → p-529bce3f.entry.js} +1 -1
- package/dist/checkout/p-536a0294.js +4 -0
- package/dist/checkout/{p-eae2d3f2.entry.js → p-5eecd5ef.entry.js} +1 -1
- package/dist/checkout/p-64257c8d.entry.js +1 -0
- package/dist/checkout/{p-5903b3af.entry.js → p-64bd1dd3.entry.js} +1 -1
- package/dist/checkout/{p-9b7d7231.entry.js → p-68a4caba.entry.js} +1 -1
- package/dist/checkout/{p-978b3762.entry.js → p-69242ed6.entry.js} +1 -1
- package/dist/checkout/{p-62b7c8b0.entry.js → p-6d886d7e.entry.js} +1 -1
- package/dist/checkout/{p-ofaUly0p.js → p-6fa979e3.js} +2 -2
- package/dist/checkout/p-6fb474f3.entry.js +1 -0
- package/dist/checkout/p-77104220.js +7 -0
- package/dist/checkout/{p-aba43d04.entry.js → p-79ec3e4b.entry.js} +1 -1
- package/dist/checkout/{p-cd2c344b.entry.js → p-7b51bf67.entry.js} +2 -2
- package/dist/checkout/p-7f0004c9.js +4 -0
- package/dist/checkout/p-7fe50ab4.entry.js +1 -0
- package/dist/checkout/p-880b451c.entry.js +4 -0
- package/dist/checkout/p-886dad62.entry.js +1 -0
- package/dist/checkout/p-886e8746.entry.js +1 -0
- package/dist/checkout/p-88abdf59.js +4 -0
- package/dist/checkout/{p-f845e91b.entry.js → p-8a97a411.entry.js} +1 -1
- package/dist/checkout/p-8af3c6cc.entry.js +1 -0
- package/dist/checkout/{p-8b015c21.entry.js → p-8c022f5d.entry.js} +1 -1
- package/dist/checkout/{p-56e307eb.entry.js → p-91855eae.entry.js} +1 -1
- package/dist/checkout/{p-ca257d45.entry.js → p-9185e55b.entry.js} +1 -1
- package/dist/checkout/{p-4b34896c.entry.js → p-926eda98.entry.js} +1 -1
- package/dist/checkout/p-93e5b313.entry.js +4 -0
- package/dist/checkout/{p-4a86b731.entry.js → p-97024acb.entry.js} +1 -1
- package/dist/checkout/p-99e447f9.js +1 -0
- package/dist/{components/p-BgOwfqIY.js → checkout/p-9b519de5.js} +2 -2
- package/dist/checkout/{p-b8245f6a.entry.js → p-9b65a6e5.entry.js} +1 -1
- package/dist/checkout/{p-53ae9dd0.entry.js → p-9cc1fdfb.entry.js} +1 -1
- package/dist/checkout/{p-8fc1287a.entry.js → p-9f26fb71.entry.js} +1 -1
- package/dist/checkout/p-9f41a631.entry.js +1 -0
- package/dist/checkout/{p-5f005b5e.entry.js → p-a2ce8858.entry.js} +1 -1
- package/dist/checkout/{p-e4d0702d.entry.js → p-a3fca65c.entry.js} +1 -1
- package/dist/checkout/{p-d370e756.entry.js → p-a6056eb1.entry.js} +2 -2
- package/dist/checkout/{p-c929d6ea.entry.js → p-a7b2cbb9.entry.js} +1 -1
- package/dist/{components/p-Dwo-QLgs.js → checkout/p-ab16e6ce.js} +1 -1
- package/dist/checkout/{p-63db3363.entry.js → p-ab9a18c4.entry.js} +1 -1
- package/dist/checkout/p-b038db20.js +4 -0
- package/dist/checkout/p-b4ad8642.entry.js +1 -0
- package/dist/checkout/p-b4cf78ad.entry.js +1 -0
- package/dist/checkout/p-b7be2ec0.js +4 -0
- package/dist/checkout/p-b84d9e44.js +4 -0
- package/dist/{components/p-CwRU9ccI.js → checkout/p-b8fdd517.js} +1 -1
- package/dist/checkout/{p-d799009b.entry.js → p-b9d8ab12.entry.js} +1 -1
- package/dist/checkout/p-bb1f698e.js +4 -0
- package/dist/checkout/p-bd17be25.js +4 -0
- package/dist/checkout/p-bd4df0bc.entry.js +1 -0
- package/dist/checkout/p-c152bdea.js +4 -0
- package/dist/checkout/{p-f22v7XAM.js → p-c30e2b28.js} +2 -2
- package/dist/checkout/{p-c2296aa1.entry.js → p-c61a3d5d.entry.js} +1 -1
- package/dist/checkout/p-c6ee4bb6.entry.js +1 -0
- package/dist/checkout/p-c771a565.entry.js +1 -0
- package/dist/checkout/{p-3c9a8bee.entry.js → p-c82b2823.entry.js} +1 -1
- package/dist/checkout/p-c8f7d1b5.entry.js +1 -0
- package/dist/checkout/p-ceef30cd.entry.js +1 -0
- package/dist/checkout/p-d5733333.entry.js +1 -0
- package/dist/checkout/p-d5bba69c.entry.js +1 -0
- package/dist/checkout/p-d60b2328.js +4 -0
- package/dist/checkout/p-d60e05e2.entry.js +1 -0
- package/dist/checkout/p-d6b04157.entry.js +1 -0
- package/dist/checkout/p-d7a430bf.js +2 -0
- package/dist/checkout/{p-B3WORC1a.js → p-d839c693.js} +1 -1
- package/dist/checkout/{p-141f2eab.entry.js → p-d9dfb3ae.entry.js} +3 -3
- package/dist/checkout/p-dc51d318.js +5 -0
- package/dist/checkout/p-ddbe30b8.entry.js +1 -0
- package/dist/checkout/p-de418dd1.entry.js +1 -0
- package/dist/checkout/{p-b4000357.entry.js → p-defa5f72.entry.js} +2 -2
- package/dist/checkout/{p-b90c064e.entry.js → p-df0fa5e1.entry.js} +2 -2
- package/dist/checkout/{p-c8740acc.entry.js → p-e0f073f1.entry.js} +3 -3
- package/dist/checkout/p-e237d611.entry.js +1 -0
- package/dist/checkout/p-ea71fb8d.entry.js +1 -0
- package/dist/checkout/{p-95563c4c.entry.js → p-eda93a0b.entry.js} +1 -1
- package/dist/checkout/p-eee05053.entry.js +1 -0
- package/dist/checkout/{p-95431a73.entry.js → p-f8460dc4.entry.js} +1 -1
- package/dist/checkout/p-f875507d.entry.js +1 -0
- package/dist/checkout/p-faf06441.js +4 -0
- package/dist/checkout/p-fb147065.entry.js +1 -0
- package/dist/checkout/{p-af32124b.entry.js → p-fb45cdd1.entry.js} +1 -1
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/amwal-checkout-button_5.cjs.entry.js +1298 -2881
- package/dist/cjs/amwal-installments-guide.cjs.entry.js +42 -43
- package/dist/cjs/amwal-pos.cjs.entry.js +3180 -3452
- package/dist/cjs/amwal-widget-modal.cjs.entry.js +162 -175
- package/dist/cjs/amwal-widget.cjs.entry.js +314 -343
- package/dist/cjs/{animation-BhN-MT4J.js → animation-26241cb2.js} +2 -2
- package/dist/cjs/{app-globals-NtXImkuk.js → app-globals-42a13029.js} +1 -1
- package/dist/cjs/{ar-CbT6TM-Q.js → ar-3a6829a4.js} +10 -4
- package/dist/cjs/{capacitor-CqhugS19.js → capacitor-a9365f60.js} +1 -1
- package/dist/cjs/checkout.cjs.js +19 -16
- package/dist/cjs/{data-UgkxeXMB.js → data-19081291.js} +1 -1
- package/dist/cjs/{form-controller-DRf0gBOg.js → form-controller-3ffb27b1.js} +1 -1
- package/dist/cjs/{framework-delegate-D-6PUvOi.js → framework-delegate-ab2cc190.js} +1 -1
- package/dist/cjs/{gesture-controller-IMq9Cgi2.js → gesture-controller-b1c0efac.js} +1 -1
- package/dist/cjs/{haptic-CC9tl6g8.js → haptic-80174512.js} +1 -1
- package/dist/cjs/{hardware-back-button-C2D2eOk8.js → hardware-back-button-ddfefd22.js} +3 -3
- package/dist/cjs/{helpers-B4vhh9gt.js → helpers-72ba682d.js} +4 -1
- package/dist/cjs/i18n-18ad02d5.js +13 -0
- package/dist/cjs/{index-CKcQE8Zg.js → index-0d0b84fb.js} +4 -3
- package/dist/cjs/{index-6eOg4xTk.js → index-2602a653.js} +0 -1
- package/dist/cjs/{index-DZA7ogU0.js → index-2cd1a895.js} +4 -4
- package/dist/cjs/index-7522b3a9.js +2256 -0
- package/dist/cjs/{index-bc_r9XRf.js → index-9b7d2c31.js} +9 -9
- package/dist/cjs/{index-q1ImtF5k.js → index-ce06e6a3.js} +3 -3
- package/dist/cjs/{index-XMjUjboS.js → index-da554121.js} +3 -3
- package/dist/cjs/{input-shims-CCRbO2DB.js → input-shims-1a8ed779.js} +6 -6
- package/dist/cjs/{input.utils-CyVgmmWQ.js → input.utils-67143876.js} +3 -3
- package/dist/cjs/ion-accordion-group.cjs.entry.js +199 -203
- package/dist/cjs/ion-accordion.cjs.entry.js +305 -305
- package/dist/cjs/ion-action-sheet_3.cjs.entry.js +695 -705
- package/dist/cjs/ion-app.cjs.entry.js +95 -93
- package/dist/cjs/ion-avatar.cjs.entry.js +14 -12
- package/dist/cjs/ion-back-button.cjs.entry.js +78 -76
- package/dist/cjs/ion-backdrop.cjs.entry.js +44 -42
- package/dist/cjs/ion-badge.cjs.entry.js +19 -17
- package/dist/cjs/ion-breadcrumb.cjs.entry.js +86 -84
- package/dist/cjs/ion-breadcrumbs.cjs.entry.js +120 -124
- package/dist/cjs/ion-buttons_3.cjs.entry.js +822 -822
- package/dist/cjs/ion-card-content.cjs.entry.js +19 -17
- package/dist/cjs/ion-card-header.cjs.entry.js +22 -20
- package/dist/cjs/ion-card-subtitle.cjs.entry.js +20 -18
- package/dist/cjs/ion-card-title.cjs.entry.js +20 -18
- package/dist/cjs/ion-card.cjs.entry.js +55 -53
- package/dist/cjs/ion-checkbox_7.cjs.entry.js +862 -882
- package/dist/cjs/ion-chip.cjs.entry.js +24 -22
- package/dist/cjs/ion-col.cjs.entry.js +110 -108
- package/dist/cjs/ion-content.cjs.entry.js +376 -374
- package/dist/cjs/ion-datetime-button.cjs.entry.js +330 -328
- package/dist/cjs/ion-datetime.cjs.entry.js +1547 -1567
- package/dist/cjs/ion-fab-button.cjs.entry.js +78 -76
- package/dist/cjs/ion-fab-list.cjs.entry.js +31 -31
- package/dist/cjs/ion-fab.cjs.entry.js +58 -58
- package/dist/cjs/ion-footer.cjs.entry.js +94 -92
- package/dist/cjs/ion-grid.cjs.entry.js +17 -15
- package/dist/cjs/ion-header.cjs.entry.js +143 -141
- package/dist/cjs/ion-icon.cjs.entry.js +104 -112
- package/dist/cjs/ion-img.cjs.entry.js +83 -83
- package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +34 -32
- package/dist/cjs/ion-infinite-scroll.cjs.entry.js +174 -176
- package/dist/cjs/ion-input.cjs.entry.js +447 -453
- package/dist/cjs/ion-item-divider.cjs.entry.js +23 -21
- package/dist/cjs/ion-item-group.cjs.entry.js +20 -18
- package/dist/cjs/ion-item-option.cjs.entry.js +45 -43
- package/dist/cjs/ion-item-options.cjs.entry.js +40 -38
- package/dist/cjs/ion-item-sliding.cjs.entry.js +391 -391
- package/dist/cjs/ion-loading.cjs.entry.js +162 -164
- package/dist/cjs/ion-menu-button.cjs.entry.js +60 -58
- package/dist/cjs/ion-menu-toggle.cjs.entry.js +36 -34
- package/dist/cjs/ion-menu.cjs.entry.js +606 -612
- package/dist/cjs/ion-modal.cjs.entry.js +551 -553
- package/dist/cjs/ion-nav-link.cjs.entry.js +17 -15
- package/dist/cjs/ion-nav.cjs.entry.js +823 -825
- package/dist/cjs/ion-note.cjs.entry.js +19 -17
- package/dist/cjs/ion-picker-column.cjs.entry.js +327 -327
- package/dist/cjs/ion-picker.cjs.entry.js +198 -200
- package/dist/cjs/ion-popover.cjs.entry.js +326 -330
- package/dist/cjs/ion-progress-bar.cjs.entry.js +44 -42
- package/dist/cjs/ion-range.cjs.entry.js +644 -654
- package/dist/cjs/ion-refresher-content.cjs.entry.js +53 -51
- package/dist/cjs/ion-refresher.cjs.entry.js +586 -586
- package/dist/cjs/ion-reorder-group.cjs.entry.js +252 -252
- package/dist/cjs/ion-reorder.cjs.entry.js +26 -24
- package/dist/cjs/ion-route-redirect.cjs.entry.js +19 -21
- package/dist/cjs/ion-route.cjs.entry.js +37 -41
- package/dist/cjs/ion-router-link.cjs.entry.js +31 -29
- package/dist/cjs/ion-router-outlet.cjs.entry.js +178 -178
- package/dist/cjs/ion-router.cjs.entry.js +266 -264
- package/dist/cjs/ion-row.cjs.entry.js +12 -10
- package/dist/cjs/ion-searchbar.cjs.entry.js +388 -396
- package/dist/cjs/ion-segment-button.cjs.entry.js +96 -96
- package/dist/cjs/ion-segment.cjs.entry.js +414 -420
- package/dist/cjs/ion-select-option.cjs.entry.js +16 -14
- package/dist/cjs/ion-select.cjs.entry.js +693 -699
- package/dist/cjs/ion-skeleton-text.cjs.entry.js +35 -33
- package/dist/cjs/ion-spinner.cjs.entry.js +50 -48
- package/dist/cjs/ion-split-pane.cjs.entry.js +120 -124
- package/dist/cjs/ion-tab-bar.cjs.entry.js +66 -66
- package/dist/cjs/ion-tab-button.cjs.entry.js +82 -80
- package/dist/cjs/ion-tab.cjs.entry.js +50 -50
- package/dist/cjs/ion-tabs.cjs.entry.js +134 -132
- package/dist/cjs/ion-textarea.cjs.entry.js +396 -400
- package/dist/cjs/ion-thumbnail.cjs.entry.js +12 -10
- package/dist/cjs/ion-title.cjs.entry.js +43 -43
- package/dist/cjs/ion-toast.cjs.entry.js +371 -375
- package/dist/cjs/ion-toggle.cjs.entry.js +230 -230
- package/dist/cjs/ion-toolbar.cjs.entry.js +61 -59
- package/dist/cjs/{ionic-global-DRLi5Iq3.js → ionic-global-3915f1f1.js} +55 -58
- package/dist/cjs/{ios.transition-D4vyO_a_.js → ios.transition-b9c0b967.js} +5 -5
- package/dist/cjs/{keyboard-iyHR2ZF4.js → keyboard-5d4b83b3.js} +3 -3
- package/dist/cjs/{keyboard-DuKzsHsS.js → keyboard-bc8ebbf7.js} +1 -1
- package/dist/cjs/{keyboard-controller-rH21qC_2.js → keyboard-controller-c6633754.js} +2 -2
- package/dist/cjs/loader.cjs.js +19 -8
- package/dist/cjs/{md.transition-Dkxy3kpE.js → md.transition-830acbb7.js} +5 -5
- package/dist/cjs/{menu-toggle-util-CmPuayU0.js → menu-toggle-util-315c26b3.js} +1 -1
- package/dist/cjs/{notch-controller-Dtpow1eD.js → notch-controller-dcf09601.js} +2 -2
- package/dist/cjs/{overlays-Bc8tk6t5.js → overlays-08819e3f.js} +6 -6
- package/dist/cjs/{refresher.utils-CPl6gciv.js → refresher.utils-e41509f7.js} +3 -3
- package/dist/cjs/{status-tap-XtIhF72O.js → status-tap-ec021cb4.js} +4 -4
- package/dist/cjs/{swipe-back-C9j0kufI.js → swipe-back-3d3a5129.js} +4 -4
- package/dist/collection/collection-manifest.json +8 -8
- package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.js +1714 -1888
- package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.stories.js +84 -84
- package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.js +75 -80
- package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.stories.js +25 -25
- package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.js +506 -569
- package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.stories.js +80 -80
- package/dist/collection/components/amwal-pos/amwal-pos.js +1022 -1094
- package/dist/collection/components/amwal-pos/amwal-pos.stories.js +209 -209
- package/dist/collection/components/amwal-widget/amwal-widget-modal.js +326 -350
- package/dist/collection/components/amwal-widget/amwal-widget.js +673 -736
- package/dist/collection/components/amwal-widget/amwal-widget.stories.js +184 -184
- package/dist/collection/lang/i18n.js +7 -7
- package/dist/components/amwal-checkout-button.d.ts +2 -2
- package/dist/components/amwal-checkout-button.js +3811 -1
- package/dist/components/amwal-installments-guide.d.ts +2 -2
- package/dist/components/amwal-installments-guide.js +75 -1
- package/dist/components/amwal-installments-timeline.d.ts +2 -2
- package/dist/components/amwal-installments-timeline.js +6 -1
- package/dist/components/amwal-pos.d.ts +2 -2
- package/dist/components/amwal-pos.js +3391 -1
- package/dist/components/amwal-widget-modal.d.ts +2 -2
- package/dist/components/amwal-widget-modal.js +6 -1
- package/dist/components/amwal-widget.d.ts +2 -2
- package/dist/components/amwal-widget.js +389 -1
- package/dist/components/index.d.ts +0 -6
- package/dist/components/index.js +6 -1
- package/dist/components/ion-accordion-group.js +248 -1
- package/dist/components/ion-accordion.js +353 -1
- package/dist/components/ion-action-sheet.js +6 -1
- package/dist/components/ion-alert.js +6 -1
- package/dist/components/ion-app.js +125 -1
- package/dist/components/ion-avatar.js +39 -1
- package/dist/components/ion-back-button.js +127 -1
- package/dist/components/ion-backdrop.js +6 -1
- package/dist/components/ion-badge.js +46 -1
- package/dist/components/ion-breadcrumb.js +131 -1
- package/dist/components/ion-breadcrumbs.js +152 -1
- package/dist/components/ion-button.js +6 -1
- package/dist/components/ion-buttons.js +6 -1
- package/dist/components/ion-card-content.js +43 -1
- package/dist/components/ion-card-header.js +50 -1
- package/dist/components/ion-card-subtitle.js +47 -1
- package/dist/components/ion-card-title.js +47 -1
- package/dist/components/ion-card.js +98 -1
- package/dist/components/ion-checkbox.js +6 -1
- package/dist/components/ion-chip.js +59 -1
- package/dist/components/ion-col.js +186 -2
- package/dist/components/ion-content.js +440 -1
- package/dist/components/ion-datetime-button.js +378 -1
- package/dist/components/ion-datetime.js +1961 -2
- package/dist/components/ion-fab-button.js +130 -1
- package/dist/components/ion-fab-list.js +56 -1
- package/dist/components/ion-fab.js +90 -1
- package/dist/components/ion-footer.js +152 -2
- package/dist/components/ion-grid.js +41 -1
- package/dist/components/ion-header.js +356 -2
- package/dist/components/ion-icon.js +6 -1
- package/dist/components/ion-img.js +124 -1
- package/dist/components/ion-infinite-scroll-content.js +69 -1
- package/dist/components/ion-infinite-scroll.js +209 -1
- package/dist/components/ion-input.js +564 -1
- package/dist/components/ion-item-divider.js +51 -1
- package/dist/components/ion-item-group.js +44 -1
- package/dist/components/ion-item-option.js +85 -1
- package/dist/components/ion-item-options.js +67 -1
- package/dist/components/ion-item-sliding.js +449 -1
- package/dist/components/ion-item.js +6 -1
- package/dist/components/ion-label.js +6 -1
- package/dist/components/ion-list-header.js +6 -1
- package/dist/components/ion-list.js +6 -1
- package/dist/components/ion-loading.js +325 -3
- package/dist/components/ion-menu-button.js +100 -1
- package/dist/components/ion-menu-toggle.js +57 -1
- package/dist/components/ion-menu.js +679 -1
- package/dist/components/ion-modal.js +1775 -3
- package/dist/components/ion-nav-link.js +63 -2
- package/dist/components/ion-nav.js +945 -2
- package/dist/components/ion-note.js +6 -1
- package/dist/components/ion-picker-column-internal.js +6 -1
- package/dist/components/ion-picker-column.js +6 -1
- package/dist/components/ion-picker-internal.js +6 -1
- package/dist/components/ion-picker.js +317 -3
- package/dist/components/ion-popover.js +6 -1
- package/dist/components/ion-progress-bar.js +79 -1
- package/dist/components/ion-radio-group.js +6 -1
- package/dist/components/ion-radio.js +6 -1
- package/dist/components/ion-range.js +778 -2
- package/dist/components/ion-refresher-content.js +90 -1
- package/dist/components/ion-refresher.js +652 -1
- package/dist/components/ion-reorder-group.js +300 -1
- package/dist/components/ion-reorder.js +58 -1
- package/dist/components/ion-ripple-effect.js +6 -1
- package/dist/components/ion-route-redirect.js +42 -1
- package/dist/components/ion-route.js +66 -1
- package/dist/components/ion-router-link.js +60 -1
- package/dist/components/ion-router-outlet.js +219 -1
- package/dist/components/ion-router.js +833 -3
- package/dist/components/ion-row.js +34 -1
- package/dist/components/ion-searchbar.js +472 -1
- package/dist/components/ion-segment-button.js +139 -1
- package/dist/components/ion-segment.js +472 -1
- package/dist/components/ion-select-option.js +42 -1
- package/dist/components/ion-select-popover.js +6 -1
- package/dist/components/ion-select.js +864 -1
- package/dist/components/ion-skeleton-text.js +59 -1
- package/dist/components/ion-spinner.js +6 -1
- package/dist/components/ion-split-pane.js +166 -1
- package/dist/components/ion-tab-bar.js +95 -1
- package/dist/components/ion-tab-button.js +125 -1
- package/dist/components/ion-tab.js +80 -1
- package/dist/components/ion-tabs.js +176 -1
- package/dist/components/ion-text.js +6 -1
- package/dist/components/ion-textarea.js +496 -1
- package/dist/components/ion-thumbnail.js +34 -1
- package/dist/components/ion-title.js +71 -1
- package/dist/components/ion-toast.js +914 -3
- package/dist/components/ion-toggle.js +282 -1
- package/dist/components/ion-toolbar.js +91 -1
- package/dist/components/p-01b49f83.js +269 -0
- package/dist/{esm/ios.transition-DMsViooj.js → components/p-02b77441.js} +2 -5
- package/dist/components/p-02bc6b21.js +203 -0
- package/dist/components/p-031ed92d.js +389 -0
- package/dist/components/p-03803c7d.js +369 -0
- package/dist/components/p-089e034e.js +234 -0
- package/dist/components/p-0dc7a5ff.js +512 -0
- package/dist/components/p-110f8490.js +566 -0
- package/dist/components/p-112455b1.js +17 -0
- package/dist/{esm/index-BMJhFU53.js → components/p-1596e301.js} +4 -4
- package/dist/components/p-1785e30a.js +318 -0
- package/dist/{esm/helpers-C6kqtbmV.js → components/p-2bb89b46.js} +5 -2
- package/dist/components/p-2d7d745d.js +224 -0
- package/dist/components/p-2fc99fef.js +262 -0
- package/dist/{esm/input-shims-DSFPFhb7.js → components/p-3296ebd9.js} +4 -6
- package/dist/{esm/data-Cl-_yBA0.js → components/p-39ad94cf.js} +2 -2
- package/dist/{esm/capacitor-CG3xQUND.js → components/p-3d3eefc3.js} +1 -1
- package/dist/{esm/form-controller-xetTxjL6.js → components/p-3e1d2896.js} +1 -1
- package/dist/{esm/keyboard-controller-CqGCg8tB.js → components/p-3e1e3453.js} +2 -2
- package/dist/{esm/md.transition-BQT2r4ED.js → components/p-503328f2.js} +2 -5
- package/dist/components/p-51c44f42.js +98 -0
- package/dist/components/p-5280b372.js +42 -0
- package/dist/{esm/index-DuUXGZp2.js → components/p-53e2dbe4.js} +3 -3
- package/dist/components/p-5441c730.js +851 -0
- package/dist/{esm/refresher.utils-D4tPnZsM.js → components/p-74e68924.js} +4 -4
- package/dist/{esm/framework-delegate-D_uGiYYw.js → components/p-76525f0f.js} +1 -1
- package/dist/{esm/index-CcopIPA0.js → components/p-77104220.js} +6 -4
- package/dist/components/p-77ccb793.js +185 -0
- package/dist/components/p-83e529db.js +380 -0
- package/dist/{esm/animation-DRf3dwMu.js → components/p-89c4c5cb.js} +2 -2
- package/dist/components/p-8b3d1e06.js +67 -0
- package/dist/components/p-901c16c5.js +210 -0
- package/dist/components/p-93e2a608.js +374 -0
- package/dist/components/p-95c79593.js +43 -0
- package/dist/components/p-96073863.js +82 -0
- package/dist/components/p-99e447f9.js +13 -0
- package/dist/{esm/keyboard-DgiyREKb.js → components/p-9b519de5.js} +1 -1
- package/dist/{esm/input.utils-BuIvhxo3.js → components/p-9d350d61.js} +3 -3
- package/dist/{esm/notch-controller-CQeDnZLe.js → components/p-9df67c24.js} +2 -2
- package/dist/components/p-a0e691dd.js +39 -0
- package/dist/components/p-ab10d1ae.js +47 -0
- package/dist/components/p-abc01c5d.js +194 -0
- package/dist/components/p-abd248d1.js +196 -0
- package/dist/{esm/haptic-D5jGzBs8.js → components/p-af073aaf.js} +2 -2
- package/dist/{esm/swipe-back-DE05lWQD.js → components/p-b32529b9.js} +3 -4
- package/dist/{esm/index-C75BfBAE.js → components/p-b8fdd517.js} +1 -2
- package/dist/components/p-cebc113f.js +38 -0
- package/dist/components/p-d25fd077.js +331 -0
- package/dist/{esm/menu-toggle-util-wdO31cdC.js → components/p-d3596f64.js} +1 -1
- package/dist/{esm/keyboard-DcbqYXj5.js → components/p-d60b2328.js} +1 -3
- package/dist/components/p-d69dc32f.js +97 -0
- package/dist/{esm/hardware-back-button-CzxcJiYO.js → components/p-d72e8d7b.js} +2 -3
- package/dist/{esm/ar-B3WORC1a.js → components/p-d839c693.js} +12 -5
- package/dist/{esm/index-D8d_89Nl.js → components/p-e187a77c.js} +1 -1
- package/dist/components/p-e65ea9fb.js +1379 -0
- package/dist/components/p-ec0e3f3f.js +2040 -0
- package/dist/components/p-ecb4db1c.js +64 -0
- package/dist/{esm/gesture-controller-CukVBo5-.js → components/p-f728a68f.js} +1 -1
- package/dist/components/p-f7e3c502.js +73 -0
- package/dist/components/p-fe463a42.js +272 -0
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/amwal-checkout-button_5.entry.js +1296 -2881
- package/dist/esm/amwal-installments-guide.entry.js +40 -43
- package/dist/esm/amwal-pos.entry.js +3178 -3452
- package/dist/esm/amwal-widget-modal.entry.js +160 -175
- package/dist/esm/amwal-widget.entry.js +312 -343
- package/dist/esm/animation-a6d5c3b1.js +1063 -0
- package/dist/esm/{app-globals-BHnkZZiH.js → app-globals-c817b28b.js} +1 -1
- package/dist/esm/ar-7d2629bf.js +51 -0
- package/dist/esm/capacitor-ba4337da.js +13 -0
- package/dist/esm/checkout.js +18 -16
- package/dist/esm/config-8e06237c.js +171 -0
- package/dist/esm/cubic-bezier-874f336d.js +90 -0
- package/dist/esm/data-8916315d.js +1628 -0
- package/dist/esm/dir-1d4aa386.js +18 -0
- package/dist/esm/focus-visible-32968d3d.js +75 -0
- package/dist/esm/form-controller-b1aa7393.js +64 -0
- package/dist/esm/framework-delegate-de1aa369.js +140 -0
- package/dist/esm/gesture-controller-58ffa500.js +195 -0
- package/dist/esm/haptic-4d4d8eb1.js +206 -0
- package/dist/esm/hardware-back-button-f93acff0.js +116 -0
- package/dist/esm/helpers-f0dcbd72.js +418 -0
- package/dist/esm/i18n-53f85411.js +13 -0
- package/dist/esm/{index-CNcx43L8.js → index-0b560278.js} +4 -4
- package/dist/esm/index-5894dd63.js +196 -0
- package/dist/esm/{index-DUF6JAQL.js → index-5a126e54.js} +6 -6
- package/dist/esm/index-5e663431.js +128 -0
- package/dist/esm/index-8cc94b11.js +2219 -0
- package/dist/esm/index-afdf867c.js +26 -0
- package/dist/esm/index-d9b41a43.js +34 -0
- package/dist/esm/index-f6dce931.js +466 -0
- package/dist/esm/index-fb97e55c.js +7 -0
- package/dist/esm/input-shims-75d4750d.js +617 -0
- package/dist/esm/input.utils-79bde07f.js +138 -0
- package/dist/esm/ion-accordion-group.entry.js +197 -203
- package/dist/esm/ion-accordion.entry.js +303 -305
- package/dist/esm/ion-action-sheet_3.entry.js +693 -705
- package/dist/esm/ion-app.entry.js +93 -93
- package/dist/esm/ion-avatar.entry.js +12 -12
- package/dist/esm/ion-back-button.entry.js +76 -76
- package/dist/esm/ion-backdrop.entry.js +42 -42
- package/dist/esm/ion-badge.entry.js +17 -17
- package/dist/esm/ion-breadcrumb.entry.js +84 -84
- package/dist/esm/ion-breadcrumbs.entry.js +118 -124
- package/dist/esm/ion-buttons_3.entry.js +820 -822
- package/dist/esm/ion-card-content.entry.js +17 -17
- package/dist/esm/ion-card-header.entry.js +20 -20
- package/dist/esm/ion-card-subtitle.entry.js +18 -18
- package/dist/esm/ion-card-title.entry.js +18 -18
- package/dist/esm/ion-card.entry.js +53 -53
- package/dist/esm/ion-checkbox_7.entry.js +860 -882
- package/dist/esm/ion-chip.entry.js +22 -22
- package/dist/esm/ion-col.entry.js +108 -108
- package/dist/esm/ion-content.entry.js +374 -374
- package/dist/esm/ion-datetime-button.entry.js +328 -328
- package/dist/esm/ion-datetime.entry.js +1545 -1567
- package/dist/esm/ion-fab-button.entry.js +76 -76
- package/dist/esm/ion-fab-list.entry.js +29 -31
- package/dist/esm/ion-fab.entry.js +56 -58
- package/dist/esm/ion-footer.entry.js +92 -92
- package/dist/esm/ion-grid.entry.js +15 -15
- package/dist/esm/ion-header.entry.js +141 -141
- package/dist/esm/ion-icon.entry.js +102 -112
- package/dist/esm/ion-img.entry.js +81 -83
- package/dist/esm/ion-infinite-scroll-content.entry.js +32 -32
- package/dist/esm/ion-infinite-scroll.entry.js +172 -176
- package/dist/esm/ion-input.entry.js +445 -453
- package/dist/esm/ion-item-divider.entry.js +21 -21
- package/dist/esm/ion-item-group.entry.js +18 -18
- package/dist/esm/ion-item-option.entry.js +43 -43
- package/dist/esm/ion-item-options.entry.js +38 -38
- package/dist/esm/ion-item-sliding.entry.js +389 -391
- package/dist/esm/ion-loading.entry.js +160 -164
- package/dist/esm/ion-menu-button.entry.js +58 -58
- package/dist/esm/ion-menu-toggle.entry.js +34 -34
- package/dist/esm/ion-menu.entry.js +604 -612
- package/dist/esm/ion-modal.entry.js +549 -553
- package/dist/esm/ion-nav-link.entry.js +15 -15
- package/dist/esm/ion-nav.entry.js +821 -825
- package/dist/esm/ion-note.entry.js +17 -17
- package/dist/esm/ion-picker-column.entry.js +325 -327
- package/dist/esm/ion-picker.entry.js +196 -200
- package/dist/esm/ion-popover.entry.js +324 -330
- package/dist/esm/ion-progress-bar.entry.js +42 -42
- package/dist/esm/ion-range.entry.js +642 -654
- package/dist/esm/ion-refresher-content.entry.js +51 -51
- package/dist/esm/ion-refresher.entry.js +584 -586
- package/dist/esm/ion-reorder-group.entry.js +250 -252
- package/dist/esm/ion-reorder.entry.js +24 -24
- package/dist/esm/ion-route-redirect.entry.js +17 -21
- package/dist/esm/ion-route.entry.js +35 -41
- package/dist/esm/ion-router-link.entry.js +29 -29
- package/dist/esm/ion-router-outlet.entry.js +176 -178
- package/dist/esm/ion-router.entry.js +264 -264
- package/dist/esm/ion-row.entry.js +10 -10
- package/dist/esm/ion-searchbar.entry.js +386 -396
- package/dist/esm/ion-segment-button.entry.js +94 -96
- package/dist/esm/ion-segment.entry.js +412 -420
- package/dist/esm/ion-select-option.entry.js +14 -14
- package/dist/esm/ion-select.entry.js +691 -699
- package/dist/esm/ion-skeleton-text.entry.js +33 -33
- package/dist/esm/ion-spinner.entry.js +48 -48
- package/dist/esm/ion-split-pane.entry.js +118 -124
- package/dist/esm/ion-tab-bar.entry.js +64 -66
- package/dist/esm/ion-tab-button.entry.js +80 -80
- package/dist/esm/ion-tab.entry.js +48 -50
- package/dist/esm/ion-tabs.entry.js +132 -132
- package/dist/esm/ion-textarea.entry.js +394 -400
- package/dist/esm/ion-thumbnail.entry.js +10 -10
- package/dist/esm/ion-title.entry.js +41 -43
- package/dist/esm/ion-toast.entry.js +369 -375
- package/dist/esm/ion-toggle.entry.js +228 -230
- package/dist/esm/ion-toolbar.entry.js +59 -59
- package/dist/esm/{ionic-global-DXXzPLPc.js → ionic-global-0b7766cb.js} +55 -58
- package/dist/esm/ios.transition-22fb53bc.js +651 -0
- package/dist/esm/keyboard-1f073554.js +82 -0
- package/dist/esm/keyboard-96b6e80b.js +146 -0
- package/dist/esm/keyboard-controller-5a2f625f.js +165 -0
- package/dist/esm/loader.js +17 -8
- package/dist/esm/lock-controller-632e3c10.js +38 -0
- package/dist/esm/md.transition-f6ff9834.js +57 -0
- package/dist/esm/menu-toggle-util-594849ff.js +12 -0
- package/dist/esm/notch-controller-d511b3b3.js +153 -0
- package/dist/esm/{overlays-SBLrmFy6.js → overlays-642a91df.js} +7 -7
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/refresher.utils-19137568.js +196 -0
- package/dist/esm/{status-tap-CjxQA4Bj.js → status-tap-bb6959a8.js} +4 -4
- package/dist/esm/swipe-back-6cec4c33.js +79 -0
- package/dist/esm/theme-35c700b7.js +43 -0
- package/dist/esm/watch-options-7bf43687.js +47 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +193 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +135 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +127 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +229 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +456 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +384 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +755 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +770 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +17 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +132 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +132 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +372 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +385 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +136 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +136 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +168 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +164 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +326 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +310 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +81 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +80 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +596 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +517 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +279 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +299 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +203 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +198 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +163 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +165 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +141 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +138 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +138 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +136 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +137 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +137 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +536 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +552 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +212 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +207 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +200 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +282 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +850 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +706 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +100 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +366 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +422 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +393 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +240 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +146 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +129 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +235 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +250 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +133 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +12 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +8 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +156 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +156 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +833 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +1446 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +815 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +1187 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +351 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +417 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +114 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +114 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +242 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +236 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +287 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +284 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +121 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +334 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +421 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +242 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +287 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +285 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +266 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +205 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +196 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +378 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +374 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +279 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +282 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +357 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +272 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +64 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +127 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +127 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +367 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +354 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +255 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +246 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +138 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +196 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +262 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +258 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +366 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +266 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +261 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +261 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +557 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +580 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +660 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +819 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +321 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +316 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +77 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +77 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +89 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +113 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +84 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/router-outlet.css +64 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +136 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +477 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +456 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +224 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +214 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +520 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +506 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +787 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +1374 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +190 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +212 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +108 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +232 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +265 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +265 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +252 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +239 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +477 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +501 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +74 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +58 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +987 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +1553 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +76 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +183 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +102 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +399 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +429 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +680 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +625 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +265 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +244 -0
- package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +144 -0
- package/dist/types/components/amwal-checkout-button/amwal-checkout-button.d.ts +327 -327
- package/dist/types/components/amwal-checkout-button/amwal-checkout-button.stories.d.ts +34 -34
- package/dist/types/components/amwal-installments-guide/amwal-installments-guide.d.ts +14 -14
- package/dist/types/components/amwal-installments-guide/amwal-installments-guide.stories.d.ts +17 -17
- package/dist/types/components/amwal-installments-timeline/amwal-installments-timeline.d.ts +106 -106
- package/dist/types/components/amwal-installments-timeline/amwal-installments-timeline.stories.d.ts +67 -67
- package/dist/types/components/amwal-pos/amwal-pos.d.ts +228 -228
- package/dist/types/components/amwal-pos/amwal-pos.stories.d.ts +185 -185
- package/dist/types/components/amwal-widget/amwal-widget-modal.d.ts +56 -56
- package/dist/types/components/amwal-widget/amwal-widget.d.ts +165 -165
- package/dist/types/components/amwal-widget/amwal-widget.stories.d.ts +101 -101
- package/dist/types/components.d.ts +0 -206
- package/dist/types/lang/i18n.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +21 -191
- package/loader/cdn.js +3 -1
- package/loader/index.cjs.js +3 -1
- package/loader/index.d.ts +1 -4
- package/loader/index.es2017.js +3 -1
- package/loader/index.js +3 -1
- package/loader/package.json +11 -0
- package/package.json +28 -34
- package/dist/checkout/p-0161d109.entry.js +0 -1
- package/dist/checkout/p-0a8ef1ec.entry.js +0 -1
- package/dist/checkout/p-10a72fbe.entry.js +0 -1
- package/dist/checkout/p-12ed4081.entry.js +0 -1
- package/dist/checkout/p-13c36adc.entry.js +0 -1
- package/dist/checkout/p-194b17d8.entry.js +0 -1
- package/dist/checkout/p-272a1ffd.entry.js +0 -1
- package/dist/checkout/p-307af48b.entry.js +0 -1
- package/dist/checkout/p-3207674d.entry.js +0 -1
- package/dist/checkout/p-3208e56f.entry.js +0 -1
- package/dist/checkout/p-4426eb3b.entry.js +0 -1
- package/dist/checkout/p-458da59f.entry.js +0 -1
- package/dist/checkout/p-46e69508.entry.js +0 -1
- package/dist/checkout/p-49046c16.entry.js +0 -4
- package/dist/checkout/p-53dc0e86.entry.js +0 -1
- package/dist/checkout/p-5a6fc9fd.entry.js +0 -1
- package/dist/checkout/p-5e65653a.entry.js +0 -1
- package/dist/checkout/p-5f124c24.entry.js +0 -1
- package/dist/checkout/p-6a8ad104.entry.js +0 -1
- package/dist/checkout/p-76fb4325.entry.js +0 -1
- package/dist/checkout/p-78db60fb.entry.js +0 -1
- package/dist/checkout/p-8e34a1bb.entry.js +0 -1
- package/dist/checkout/p-91474b10.entry.js +0 -1
- package/dist/checkout/p-93OyAGoo.js +0 -2
- package/dist/checkout/p-94a57258.entry.js +0 -1
- package/dist/checkout/p-BEVStXwd.js +0 -7
- package/dist/checkout/p-BQu7QPd5.js +0 -4
- package/dist/checkout/p-BR7SJd-v.js +0 -4
- package/dist/checkout/p-BcFRJSFv.js +0 -4
- package/dist/checkout/p-BcUxrseY.js +0 -1
- package/dist/checkout/p-BdG893XR.js +0 -4
- package/dist/checkout/p-BgOwfqIY.js +0 -4
- package/dist/checkout/p-Bm9bMvCb.js +0 -4
- package/dist/checkout/p-C03M5ZSM.js +0 -1
- package/dist/checkout/p-C6kqtbmV.js +0 -4
- package/dist/checkout/p-C75BfBAE.js +0 -1
- package/dist/checkout/p-CVrvo9Qz.js +0 -4
- package/dist/checkout/p-ChixdDt6.js +0 -4
- package/dist/checkout/p-Cjnmql4G.js +0 -8
- package/dist/checkout/p-D0I0TqZU.js +0 -4
- package/dist/checkout/p-D2NxOvQ8.js +0 -4
- package/dist/checkout/p-D8d_89Nl.js +0 -4
- package/dist/checkout/p-DAhcxcAh.js +0 -4
- package/dist/checkout/p-DDtPO7yO.js +0 -4
- package/dist/checkout/p-DKg_dYcq.js +0 -4
- package/dist/checkout/p-DMAPbDyG.js +0 -4
- package/dist/checkout/p-DihS-5gH.js +0 -4
- package/dist/checkout/p-DkrNcwKK.js +0 -5
- package/dist/checkout/p-Dzj_jqIY.js +0 -4
- package/dist/checkout/p-E8AXUhZ3.js +0 -7
- package/dist/checkout/p-Ufaww5Lq.js +0 -4
- package/dist/checkout/p-a90efa79.entry.js +0 -1
- package/dist/checkout/p-abd12b84.entry.js +0 -1
- package/dist/checkout/p-abe1becc.entry.js +0 -1
- package/dist/checkout/p-b2f66c60.entry.js +0 -4
- package/dist/checkout/p-b45f5952.entry.js +0 -1
- package/dist/checkout/p-c2240d19.entry.js +0 -1
- package/dist/checkout/p-c28b4374.entry.js +0 -1
- package/dist/checkout/p-cb2db223.entry.js +0 -1
- package/dist/checkout/p-cb3967fc.entry.js +0 -1
- package/dist/checkout/p-cef16f11.entry.js +0 -1
- package/dist/checkout/p-df1b4347.entry.js +0 -4
- package/dist/checkout/p-e4bc42fb.entry.js +0 -1
- package/dist/checkout/p-e785fb8a.entry.js +0 -1
- package/dist/checkout/p-e8bd206a.entry.js +0 -1
- package/dist/checkout/p-ef749875.entry.js +0 -1
- package/dist/checkout/p-f157b6b2.entry.js +0 -4
- package/dist/checkout/p-f351a19a.entry.js +0 -1
- package/dist/checkout/p-ff2e59e3.entry.js +0 -1
- package/dist/checkout/p-hAETByzF.js +0 -5
- package/dist/checkout/p-vn1iXXUO.js +0 -9
- package/dist/cjs/i18n-uGNv9SLK.js +0 -13
- package/dist/cjs/index-DncWzXDA.js +0 -3738
- package/dist/components/p-55BwDerf.js +0 -8
- package/dist/components/p-B-M4K7iJ.js +0 -7
- package/dist/components/p-B-hirT0v.js +0 -4
- package/dist/components/p-B3WORC1a.js +0 -1
- package/dist/components/p-B5XH2zAk.js +0 -1
- package/dist/components/p-B5ZghgSh.js +0 -4
- package/dist/components/p-BEVStXwd.js +0 -7
- package/dist/components/p-BH0TCnxk.js +0 -4
- package/dist/components/p-BIA8A9ZO.js +0 -1
- package/dist/components/p-BOkYKP6F.js +0 -1
- package/dist/components/p-BOm0KT2x.js +0 -1
- package/dist/components/p-Bb_Zji0h.js +0 -4
- package/dist/components/p-BmVRXR1y.js +0 -4
- package/dist/components/p-BnQDByf2.js +0 -1
- package/dist/components/p-BoxjYI-Q.js +0 -4
- package/dist/components/p-BriBxgcM.js +0 -1
- package/dist/components/p-BwKjt_Dc.js +0 -4
- package/dist/components/p-Bx78uXfc.js +0 -5
- package/dist/components/p-C-20JWsp.js +0 -4
- package/dist/components/p-C03M5ZSM.js +0 -1
- package/dist/components/p-C53feagD.js +0 -4
- package/dist/components/p-CLrB3zV0.js +0 -4
- package/dist/components/p-CN34uOrj.js +0 -9
- package/dist/components/p-CQmcNwZM.js +0 -4
- package/dist/components/p-CYd0Smt1.js +0 -1
- package/dist/components/p-CgPXSjzI.js +0 -4
- package/dist/components/p-Cho32MPa.js +0 -4
- package/dist/components/p-ClE6rMJs.js +0 -4
- package/dist/components/p-Cm9b7fIl.js +0 -1
- package/dist/components/p-CukVBo5-.js +0 -4
- package/dist/components/p-D2NxOvQ8.js +0 -4
- package/dist/components/p-D4DqwBlW.js +0 -4
- package/dist/components/p-D7YY0NXg.js +0 -4
- package/dist/components/p-D8OVJo1v.js +0 -7
- package/dist/components/p-DKg_dYcq.js +0 -4
- package/dist/components/p-DLVYPrYs.js +0 -1
- package/dist/components/p-DMmSL7_l.js +0 -1
- package/dist/components/p-DOPF2QRF.js +0 -1
- package/dist/components/p-DTgJTJD6.js +0 -1
- package/dist/components/p-DiVJyqlX.js +0 -4
- package/dist/components/p-DrS88eFz.js +0 -1
- package/dist/components/p-Dtdm8lKC.js +0 -4
- package/dist/components/p-DuZ7hY1a.js +0 -4
- package/dist/components/p-Dx-C8Ob_.js +0 -7
- package/dist/components/p-DxEgz9x_.js +0 -1
- package/dist/components/p-DxSo4SXG.js +0 -1
- package/dist/components/p-HSPzo8it.js +0 -1
- package/dist/components/p-OrwCUtWu.js +0 -4
- package/dist/components/p-UgkI2Wa4.js +0 -1
- package/dist/components/p-VeNdmYSo.js +0 -1
- package/dist/components/p-YbpebnFS.js +0 -4
- package/dist/components/p-ZjP4CjeZ.js +0 -4
- package/dist/components/p-_VuKPdkD.js +0 -4
- package/dist/components/p-aWL6BxTN.js +0 -4
- package/dist/components/p-hHmYLOfE.js +0 -4
- package/dist/components/p-qoI-S7yk.js +0 -4
- package/dist/components/p-uXV7tzS3.js +0 -1
- package/dist/components/p-yu3xCFhr.js +0 -7
- package/dist/components/p-zp5f483d.js +0 -1
- package/dist/esm/i18n-C_AfxZ5D.js +0 -13
- package/dist/esm/index-93OyAGoo.js +0 -3721
- /package/dist/checkout/{p-B-hirT0v.js → p-01ad898f.js} +0 -0
- /package/dist/checkout/{p-DiVJyqlX.js → p-350e7423.js} +0 -0
- /package/dist/checkout/{p-sObYyvOy.js → p-52b4c112.js} +0 -0
- /package/dist/checkout/{p-BmVRXR1y.js → p-620fa0ec.js} +0 -0
- /package/dist/checkout/{p-hHmYLOfE.js → p-94286cc3.js} +0 -0
- /package/dist/checkout/{p-D4RIp70E.js → p-9efbca93.js} +0 -0
- /package/dist/checkout/{p-Dtdm8lKC.js → p-9f4ac833.js} +0 -0
- /package/dist/checkout/{p-yu3xCFhr.js → p-b2289937.js} +0 -0
- /package/dist/checkout/{p-C53feagD.js → p-d5862637.js} +0 -0
- /package/dist/checkout/{p-ZjP4CjeZ.js → p-d7fe59ee.js} +0 -0
- /package/dist/{components/p-CYPPT3AE.js → checkout/p-e187a77c.js} +0 -0
- /package/dist/checkout/{p-CukVBo5-.js → p-f728a68f.js} +0 -0
- /package/dist/cjs/{compare-with-utils-JlLIkecm.js → compare-with-utils-adbe64a6.js} +0 -0
- /package/dist/cjs/{config-ptk2Lf4l.js → config-e2a8c0c7.js} +0 -0
- /package/dist/cjs/{cubic-bezier-Bv3PvaRI.js → cubic-bezier-5ff9b04e.js} +0 -0
- /package/dist/cjs/{dir-Br-7_bel.js → dir-374f13f2.js} +0 -0
- /package/dist/cjs/{focus-visible-Da2o6bTP.js → focus-visible-b7381162.js} +0 -0
- /package/dist/cjs/{index-CH3IFTaK.js → index-071786b4.js} +0 -0
- /package/dist/cjs/{index-D3mJ1Cix.js → index-a281cac3.js} +0 -0
- /package/dist/cjs/{lock-controller-58TZFRHC.js → lock-controller-e2dfece6.js} +0 -0
- /package/dist/cjs/{spinner-configs-BN41iw42.js → spinner-configs-036ebfd8.js} +0 -0
- /package/dist/cjs/{theme-DbHdw1Nx.js → theme-12dec869.js} +0 -0
- /package/dist/cjs/{watch-options-DOFUPyuf.js → watch-options-1cccbe6a.js} +0 -0
- /package/dist/{esm/lock-controller-B-hirT0v.js → components/p-01ad898f.js} +0 -0
- /package/dist/{esm/theme-DiVJyqlX.js → components/p-350e7423.js} +0 -0
- /package/dist/{esm/focus-visible-BmVRXR1y.js → components/p-620fa0ec.js} +0 -0
- /package/dist/{esm/cubic-bezier-hHmYLOfE.js → components/p-94286cc3.js} +0 -0
- /package/dist/{esm/watch-options-Dtdm8lKC.js → components/p-9f4ac833.js} +0 -0
- /package/dist/{esm/config-yu3xCFhr.js → components/p-b2289937.js} +0 -0
- /package/dist/{esm/dir-C53feagD.js → components/p-d5862637.js} +0 -0
- /package/dist/{esm/index-ZjP4CjeZ.js → components/p-d7fe59ee.js} +0 -0
- /package/dist/esm/{compare-with-utils-sObYyvOy.js → compare-with-utils-d58be312.js} +0 -0
- /package/dist/esm/{spinner-configs-D4RIp70E.js → spinner-configs-c9fb0813.js} +0 -0
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
require('./
|
|
20
|
-
require('./
|
|
21
|
-
require('./
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index$3 = require('./index-7522b3a9.js');
|
|
6
|
+
const index$2 = require('./index-ce06e6a3.js');
|
|
7
|
+
const frameworkDelegate = require('./framework-delegate-ab2cc190.js');
|
|
8
|
+
const helpers = require('./helpers-72ba682d.js');
|
|
9
|
+
const lockController = require('./lock-controller-e2dfece6.js');
|
|
10
|
+
const index$4 = require('./index-071786b4.js');
|
|
11
|
+
const capacitor = require('./capacitor-a9365f60.js');
|
|
12
|
+
const overlays = require('./overlays-08819e3f.js');
|
|
13
|
+
const theme = require('./theme-12dec869.js');
|
|
14
|
+
const index$5 = require('./index-2cd1a895.js');
|
|
15
|
+
const ionicGlobal = require('./ionic-global-3915f1f1.js');
|
|
16
|
+
const keyboard = require('./keyboard-5d4b83b3.js');
|
|
17
|
+
const animation = require('./animation-26241cb2.js');
|
|
18
|
+
const cubicBezier = require('./cubic-bezier-5ff9b04e.js');
|
|
19
|
+
const index$1 = require('./index-0d0b84fb.js');
|
|
20
|
+
const index = require('./index-a281cac3.js');
|
|
21
|
+
require('./hardware-back-button-ddfefd22.js');
|
|
22
|
+
require('./keyboard-bc8ebbf7.js');
|
|
23
|
+
require('./gesture-controller-b1c0efac.js');
|
|
22
24
|
|
|
23
25
|
/*!
|
|
24
26
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
@@ -469,7 +471,7 @@ const createSwipeToCloseGesture = (el, animation, statusBarStyle, onDismiss) =>
|
|
|
469
471
|
* canDismiss is checked.
|
|
470
472
|
*/
|
|
471
473
|
const shouldComplete = !isAttemptingDismissWithCanDismiss && threshold >= DISMISS_THRESHOLD;
|
|
472
|
-
let newStepValue = shouldComplete ? -
|
|
474
|
+
let newStepValue = shouldComplete ? -0.001 : 0.001;
|
|
473
475
|
if (!shouldComplete) {
|
|
474
476
|
animation.easing('cubic-bezier(1, 0, 0.68, 0.28)');
|
|
475
477
|
newStepValue += cubicBezier.getTimeGivenProgression([0, 0], [1, 0], [0.68, 0.28], [1, 1], clampedStep)[0];
|
|
@@ -1150,584 +1152,580 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
1150
1152
|
};
|
|
1151
1153
|
};
|
|
1152
1154
|
|
|
1153
|
-
const modalIosCss =
|
|
1155
|
+
const modalIosCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:flex;position:absolute;align-items:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-card:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.modal-card){--backdrop-opacity:0;--width:100%;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{box-shadow:none}:host(.modal-card) .modal-shadow{box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-sheet:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}";
|
|
1154
1156
|
|
|
1155
|
-
const modalMdCss =
|
|
1157
|
+
const modalMdCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:flex;position:absolute;align-items:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{transform:translate3d(0, 40px, 0);opacity:0.01}";
|
|
1156
1158
|
|
|
1157
1159
|
const Modal = class {
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
}
|
|
1244
|
-
else if (newValue === false && oldValue === true) {
|
|
1245
|
-
this.dismiss();
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
triggerChanged() {
|
|
1249
|
-
const { trigger, el, triggerController } = this;
|
|
1250
|
-
if (trigger) {
|
|
1251
|
-
triggerController.addClickListener(el, trigger);
|
|
1252
|
-
}
|
|
1160
|
+
constructor(hostRef) {
|
|
1161
|
+
index$3.registerInstance(this, hostRef);
|
|
1162
|
+
this.didPresent = index$3.createEvent(this, "ionModalDidPresent", 7);
|
|
1163
|
+
this.willPresent = index$3.createEvent(this, "ionModalWillPresent", 7);
|
|
1164
|
+
this.willDismiss = index$3.createEvent(this, "ionModalWillDismiss", 7);
|
|
1165
|
+
this.didDismiss = index$3.createEvent(this, "ionModalDidDismiss", 7);
|
|
1166
|
+
this.ionBreakpointDidChange = index$3.createEvent(this, "ionBreakpointDidChange", 7);
|
|
1167
|
+
this.didPresentShorthand = index$3.createEvent(this, "didPresent", 7);
|
|
1168
|
+
this.willPresentShorthand = index$3.createEvent(this, "willPresent", 7);
|
|
1169
|
+
this.willDismissShorthand = index$3.createEvent(this, "willDismiss", 7);
|
|
1170
|
+
this.didDismissShorthand = index$3.createEvent(this, "didDismiss", 7);
|
|
1171
|
+
this.ionMount = index$3.createEvent(this, "ionMount", 7);
|
|
1172
|
+
this.lockController = lockController.createLockController();
|
|
1173
|
+
this.triggerController = overlays.createTriggerController();
|
|
1174
|
+
this.coreDelegate = frameworkDelegate.CoreDelegate();
|
|
1175
|
+
this.isSheetModal = false;
|
|
1176
|
+
this.inheritedAttributes = {};
|
|
1177
|
+
this.inline = false;
|
|
1178
|
+
// Whether or not modal is being dismissed via gesture
|
|
1179
|
+
this.gestureAnimationDismissing = false;
|
|
1180
|
+
this.onHandleClick = () => {
|
|
1181
|
+
const { sheetTransition, handleBehavior } = this;
|
|
1182
|
+
if (handleBehavior !== 'cycle' || sheetTransition !== undefined) {
|
|
1183
|
+
/**
|
|
1184
|
+
* The sheet modal should not advance to the next breakpoint
|
|
1185
|
+
* if the handle behavior is not `cycle` or if the handle
|
|
1186
|
+
* is clicked while the sheet is moving to a breakpoint.
|
|
1187
|
+
*/
|
|
1188
|
+
return;
|
|
1189
|
+
}
|
|
1190
|
+
this.moveToNextBreakpoint();
|
|
1191
|
+
};
|
|
1192
|
+
this.onBackdropTap = () => {
|
|
1193
|
+
const { sheetTransition } = this;
|
|
1194
|
+
if (sheetTransition !== undefined) {
|
|
1195
|
+
/**
|
|
1196
|
+
* When the handle is double clicked at the largest breakpoint,
|
|
1197
|
+
* it will start to move to the first breakpoint. While transitioning,
|
|
1198
|
+
* the backdrop will often receive the second click. We prevent the
|
|
1199
|
+
* backdrop from dismissing the modal while moving between breakpoints.
|
|
1200
|
+
*/
|
|
1201
|
+
return;
|
|
1202
|
+
}
|
|
1203
|
+
this.dismiss(undefined, overlays.BACKDROP);
|
|
1204
|
+
};
|
|
1205
|
+
this.onLifecycle = (modalEvent) => {
|
|
1206
|
+
const el = this.usersElement;
|
|
1207
|
+
const name = LIFECYCLE_MAP[modalEvent.type];
|
|
1208
|
+
if (el && name) {
|
|
1209
|
+
const ev = new CustomEvent(name, {
|
|
1210
|
+
bubbles: false,
|
|
1211
|
+
cancelable: false,
|
|
1212
|
+
detail: modalEvent.detail,
|
|
1213
|
+
});
|
|
1214
|
+
el.dispatchEvent(ev);
|
|
1215
|
+
}
|
|
1216
|
+
};
|
|
1217
|
+
this.presented = false;
|
|
1218
|
+
this.hasController = false;
|
|
1219
|
+
this.overlayIndex = undefined;
|
|
1220
|
+
this.delegate = undefined;
|
|
1221
|
+
this.keyboardClose = true;
|
|
1222
|
+
this.enterAnimation = undefined;
|
|
1223
|
+
this.leaveAnimation = undefined;
|
|
1224
|
+
this.breakpoints = undefined;
|
|
1225
|
+
this.initialBreakpoint = undefined;
|
|
1226
|
+
this.backdropBreakpoint = 0;
|
|
1227
|
+
this.handle = undefined;
|
|
1228
|
+
this.handleBehavior = 'none';
|
|
1229
|
+
this.component = undefined;
|
|
1230
|
+
this.componentProps = undefined;
|
|
1231
|
+
this.cssClass = undefined;
|
|
1232
|
+
this.backdropDismiss = true;
|
|
1233
|
+
this.showBackdrop = true;
|
|
1234
|
+
this.animated = true;
|
|
1235
|
+
this.presentingElement = undefined;
|
|
1236
|
+
this.htmlAttributes = undefined;
|
|
1237
|
+
this.isOpen = false;
|
|
1238
|
+
this.trigger = undefined;
|
|
1239
|
+
this.keepContentsMounted = false;
|
|
1240
|
+
this.canDismiss = true;
|
|
1241
|
+
}
|
|
1242
|
+
onIsOpenChange(newValue, oldValue) {
|
|
1243
|
+
if (newValue === true && oldValue === false) {
|
|
1244
|
+
this.present();
|
|
1253
1245
|
}
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
this.sortedBreakpoints = breakpoints.sort((a, b) => a - b);
|
|
1257
|
-
}
|
|
1246
|
+
else if (newValue === false && oldValue === true) {
|
|
1247
|
+
this.dismiss();
|
|
1258
1248
|
}
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1249
|
+
}
|
|
1250
|
+
triggerChanged() {
|
|
1251
|
+
const { trigger, el, triggerController } = this;
|
|
1252
|
+
if (trigger) {
|
|
1253
|
+
triggerController.addClickListener(el, trigger);
|
|
1263
1254
|
}
|
|
1264
|
-
|
|
1265
|
-
|
|
1255
|
+
}
|
|
1256
|
+
breakpointsChanged(breakpoints) {
|
|
1257
|
+
if (breakpoints !== undefined) {
|
|
1258
|
+
this.sortedBreakpoints = breakpoints.sort((a, b) => a - b);
|
|
1266
1259
|
}
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1260
|
+
}
|
|
1261
|
+
connectedCallback() {
|
|
1262
|
+
const { el } = this;
|
|
1263
|
+
overlays.prepareOverlay(el);
|
|
1264
|
+
this.triggerChanged();
|
|
1265
|
+
}
|
|
1266
|
+
disconnectedCallback() {
|
|
1267
|
+
this.triggerController.removeClickListener();
|
|
1268
|
+
}
|
|
1269
|
+
componentWillLoad() {
|
|
1270
|
+
const { breakpoints, initialBreakpoint, el, htmlAttributes } = this;
|
|
1271
|
+
const isSheetModal = (this.isSheetModal = breakpoints !== undefined && initialBreakpoint !== undefined);
|
|
1272
|
+
const attributesToInherit = ['aria-label', 'role'];
|
|
1273
|
+
this.inheritedAttributes = helpers.inheritAttributes(el, attributesToInherit);
|
|
1274
|
+
/**
|
|
1275
|
+
* When using a controller modal you can set attributes
|
|
1276
|
+
* using the htmlAttributes property. Since the above attributes
|
|
1277
|
+
* need to be inherited inside of the modal, we need to look
|
|
1278
|
+
* and see if these attributes are being set via htmlAttributes.
|
|
1279
|
+
*
|
|
1280
|
+
* We could alternatively move this to componentDidLoad to simplify the work
|
|
1281
|
+
* here, but we'd then need to make inheritedAttributes a State variable,
|
|
1282
|
+
* thus causing another render to always happen after the first render.
|
|
1283
|
+
*/
|
|
1284
|
+
if (htmlAttributes !== undefined) {
|
|
1285
|
+
attributesToInherit.forEach((attribute) => {
|
|
1286
|
+
const attributeValue = htmlAttributes[attribute];
|
|
1287
|
+
if (attributeValue) {
|
|
1288
|
+
/**
|
|
1289
|
+
* If an attribute we need to inherit was
|
|
1290
|
+
* set using htmlAttributes then add it to
|
|
1291
|
+
* inheritedAttributes and remove it from htmlAttributes.
|
|
1292
|
+
* This ensures the attribute is inherited and not
|
|
1293
|
+
* set on the host.
|
|
1294
|
+
*
|
|
1295
|
+
* In this case, if an inherited attribute is set
|
|
1296
|
+
* on the host element and using htmlAttributes then
|
|
1297
|
+
* htmlAttributes wins, but that's not a pattern that we recommend.
|
|
1298
|
+
* The only time you'd need htmlAttributes is when using modalController.
|
|
1299
|
+
*/
|
|
1300
|
+
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attribute]: htmlAttributes[attribute] });
|
|
1301
|
+
delete htmlAttributes[attribute];
|
|
1308
1302
|
}
|
|
1309
|
-
|
|
1303
|
+
});
|
|
1310
1304
|
}
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
* If modal was rendered with isOpen="true"
|
|
1314
|
-
* then we should open modal immediately.
|
|
1315
|
-
*/
|
|
1316
|
-
if (this.isOpen === true) {
|
|
1317
|
-
helpers.raf(() => this.present());
|
|
1318
|
-
}
|
|
1319
|
-
this.breakpointsChanged(this.breakpoints);
|
|
1320
|
-
/**
|
|
1321
|
-
* When binding values in frameworks such as Angular
|
|
1322
|
-
* it is possible for the value to be set after the Web Component
|
|
1323
|
-
* initializes but before the value watcher is set up in Stencil.
|
|
1324
|
-
* As a result, the watcher callback may not be fired.
|
|
1325
|
-
* We work around this by manually calling the watcher
|
|
1326
|
-
* callback when the component has loaded and the watcher
|
|
1327
|
-
* is configured.
|
|
1328
|
-
*/
|
|
1329
|
-
this.triggerChanged();
|
|
1305
|
+
if (isSheetModal) {
|
|
1306
|
+
this.currentBreakpoint = this.initialBreakpoint;
|
|
1330
1307
|
}
|
|
1308
|
+
if (breakpoints !== undefined && initialBreakpoint !== undefined && !breakpoints.includes(initialBreakpoint)) {
|
|
1309
|
+
index$4.printIonWarning('Your breakpoints array must include the initialBreakpoint value.');
|
|
1310
|
+
}
|
|
1311
|
+
overlays.setOverlayId(el);
|
|
1312
|
+
}
|
|
1313
|
+
componentDidLoad() {
|
|
1331
1314
|
/**
|
|
1332
|
-
*
|
|
1333
|
-
*
|
|
1334
|
-
* and returns the correct delegate.
|
|
1335
|
-
* By default, subsequent calls to getDelegate
|
|
1336
|
-
* will use a cached version of the delegate.
|
|
1337
|
-
* This is useful for calling dismiss after
|
|
1338
|
-
* present so that the correct delegate is given.
|
|
1315
|
+
* If modal was rendered with isOpen="true"
|
|
1316
|
+
* then we should open modal immediately.
|
|
1339
1317
|
*/
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
return {
|
|
1343
|
-
delegate: this.workingDelegate,
|
|
1344
|
-
inline: this.inline,
|
|
1345
|
-
};
|
|
1346
|
-
}
|
|
1347
|
-
/**
|
|
1348
|
-
* If using overlay inline
|
|
1349
|
-
* we potentially need to use the coreDelegate
|
|
1350
|
-
* so that this works in vanilla JS apps.
|
|
1351
|
-
* If a developer has presented this component
|
|
1352
|
-
* via a controller, then we can assume
|
|
1353
|
-
* the component is already in the
|
|
1354
|
-
* correct place.
|
|
1355
|
-
*/
|
|
1356
|
-
const parentEl = this.el.parentNode;
|
|
1357
|
-
const inline = (this.inline = parentEl !== null && !this.hasController);
|
|
1358
|
-
const delegate = (this.workingDelegate = inline ? this.delegate || this.coreDelegate : this.delegate);
|
|
1359
|
-
return { inline, delegate };
|
|
1318
|
+
if (this.isOpen === true) {
|
|
1319
|
+
helpers.raf(() => this.present());
|
|
1360
1320
|
}
|
|
1321
|
+
this.breakpointsChanged(this.breakpoints);
|
|
1361
1322
|
/**
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1364
|
-
*
|
|
1323
|
+
* When binding values in frameworks such as Angular
|
|
1324
|
+
* it is possible for the value to be set after the Web Component
|
|
1325
|
+
* initializes but before the value watcher is set up in Stencil.
|
|
1326
|
+
* As a result, the watcher callback may not be fired.
|
|
1327
|
+
* We work around this by manually calling the watcher
|
|
1328
|
+
* callback when the component has loaded and the watcher
|
|
1329
|
+
* is configured.
|
|
1365
1330
|
*/
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1331
|
+
this.triggerChanged();
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* Determines whether or not an overlay
|
|
1335
|
+
* is being used inline or via a controller/JS
|
|
1336
|
+
* and returns the correct delegate.
|
|
1337
|
+
* By default, subsequent calls to getDelegate
|
|
1338
|
+
* will use a cached version of the delegate.
|
|
1339
|
+
* This is useful for calling dismiss after
|
|
1340
|
+
* present so that the correct delegate is given.
|
|
1341
|
+
*/
|
|
1342
|
+
getDelegate(force = false) {
|
|
1343
|
+
if (this.workingDelegate && !force) {
|
|
1344
|
+
return {
|
|
1345
|
+
delegate: this.workingDelegate,
|
|
1346
|
+
inline: this.inline,
|
|
1347
|
+
};
|
|
1372
1348
|
}
|
|
1373
1349
|
/**
|
|
1374
|
-
*
|
|
1350
|
+
* If using overlay inline
|
|
1351
|
+
* we potentially need to use the coreDelegate
|
|
1352
|
+
* so that this works in vanilla JS apps.
|
|
1353
|
+
* If a developer has presented this component
|
|
1354
|
+
* via a controller, then we can assume
|
|
1355
|
+
* the component is already in the
|
|
1356
|
+
* correct place.
|
|
1375
1357
|
*/
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
* Emit ionMount so JS Frameworks have an opportunity
|
|
1391
|
-
* to add the child component to the DOM. The child
|
|
1392
|
-
* component will be assigned to this.usersElement below.
|
|
1393
|
-
*/
|
|
1394
|
-
this.ionMount.emit();
|
|
1395
|
-
this.usersElement = await frameworkDelegate.attachComponent(delegate, el, this.component, ['ion-page'], this.componentProps, inline);
|
|
1396
|
-
/**
|
|
1397
|
-
* When using the lazy loaded build of Stencil, we need to wait
|
|
1398
|
-
* for every Stencil component instance to be ready before presenting
|
|
1399
|
-
* otherwise there can be a flash of unstyled content. With the
|
|
1400
|
-
* custom elements bundle we need to wait for the JS framework
|
|
1401
|
-
* mount the inner contents of the overlay otherwise WebKit may
|
|
1402
|
-
* get the transition incorrect.
|
|
1403
|
-
*/
|
|
1404
|
-
if (helpers.hasLazyBuild(el)) {
|
|
1405
|
-
await index$5.deepReady(this.usersElement);
|
|
1406
|
-
/**
|
|
1407
|
-
* If keepContentsMounted="true" then the
|
|
1408
|
-
* JS Framework has already mounted the inner
|
|
1409
|
-
* contents so there is no need to wait.
|
|
1410
|
-
* Otherwise, we need to wait for the JS
|
|
1411
|
-
* Framework to mount the inner contents
|
|
1412
|
-
* of this component.
|
|
1413
|
-
*/
|
|
1414
|
-
}
|
|
1415
|
-
else if (!this.keepContentsMounted) {
|
|
1416
|
-
await index$5.waitForMount();
|
|
1417
|
-
}
|
|
1418
|
-
index$3.writeTask(() => this.el.classList.add('show-modal'));
|
|
1419
|
-
const hasCardModal = presentingElement !== undefined;
|
|
1420
|
-
/**
|
|
1421
|
-
* We need to change the status bar at the
|
|
1422
|
-
* start of the animation so that it completes
|
|
1423
|
-
* by the time the card animation is done.
|
|
1424
|
-
*/
|
|
1425
|
-
if (hasCardModal && ionicGlobal.getIonMode(this) === 'ios') {
|
|
1426
|
-
// Cache the original status bar color before the modal is presented
|
|
1427
|
-
this.statusBarStyle = await StatusBar.getStyle();
|
|
1428
|
-
setCardStatusBarDark();
|
|
1429
|
-
}
|
|
1430
|
-
await overlays.present(this, 'modalEnter', iosEnterAnimation, mdEnterAnimation, {
|
|
1431
|
-
presentingEl: presentingElement,
|
|
1432
|
-
currentBreakpoint: this.initialBreakpoint,
|
|
1433
|
-
backdropBreakpoint: this.backdropBreakpoint,
|
|
1434
|
-
});
|
|
1435
|
-
/* tslint:disable-next-line */
|
|
1436
|
-
if (typeof window !== 'undefined') {
|
|
1437
|
-
/**
|
|
1438
|
-
* This needs to be setup before any
|
|
1439
|
-
* non-transition async work so it can be dereferenced
|
|
1440
|
-
* in the dismiss method. The dismiss method
|
|
1441
|
-
* only waits for the entering transition
|
|
1442
|
-
* to finish. It does not wait for all of the `present`
|
|
1443
|
-
* method to resolve.
|
|
1444
|
-
*/
|
|
1445
|
-
this.keyboardOpenCallback = () => {
|
|
1446
|
-
if (this.gesture) {
|
|
1447
|
-
/**
|
|
1448
|
-
* When the native keyboard is opened and the webview
|
|
1449
|
-
* is resized, the gesture implementation will become unresponsive
|
|
1450
|
-
* and enter a free-scroll mode.
|
|
1451
|
-
*
|
|
1452
|
-
* When the keyboard is opened, we disable the gesture for
|
|
1453
|
-
* a single frame and re-enable once the contents have repositioned
|
|
1454
|
-
* from the keyboard placement.
|
|
1455
|
-
*/
|
|
1456
|
-
this.gesture.enable(false);
|
|
1457
|
-
helpers.raf(() => {
|
|
1458
|
-
if (this.gesture) {
|
|
1459
|
-
this.gesture.enable(true);
|
|
1460
|
-
}
|
|
1461
|
-
});
|
|
1462
|
-
}
|
|
1463
|
-
};
|
|
1464
|
-
window.addEventListener(keyboard.KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
|
|
1465
|
-
}
|
|
1466
|
-
if (this.isSheetModal) {
|
|
1467
|
-
this.initSheetGesture();
|
|
1468
|
-
}
|
|
1469
|
-
else if (hasCardModal) {
|
|
1470
|
-
this.initSwipeToClose();
|
|
1471
|
-
}
|
|
1472
|
-
unlock();
|
|
1358
|
+
const parentEl = this.el.parentNode;
|
|
1359
|
+
const inline = (this.inline = parentEl !== null && !this.hasController);
|
|
1360
|
+
const delegate = (this.workingDelegate = inline ? this.delegate || this.coreDelegate : this.delegate);
|
|
1361
|
+
return { inline, delegate };
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Determines whether or not the
|
|
1365
|
+
* modal is allowed to dismiss based
|
|
1366
|
+
* on the state of the canDismiss prop.
|
|
1367
|
+
*/
|
|
1368
|
+
async checkCanDismiss(data, role) {
|
|
1369
|
+
const { canDismiss } = this;
|
|
1370
|
+
if (typeof canDismiss === 'function') {
|
|
1371
|
+
return canDismiss(data, role);
|
|
1473
1372
|
}
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
const ani = (this.animation = animationBuilder(el, { presentingEl: this.presentingElement }));
|
|
1485
|
-
const contentEl = index$2.findIonContent(el);
|
|
1486
|
-
if (!contentEl) {
|
|
1487
|
-
index$2.printIonContentErrorMsg(el);
|
|
1488
|
-
return;
|
|
1489
|
-
}
|
|
1490
|
-
const statusBarStyle = (_a = this.statusBarStyle) !== null && _a !== void 0 ? _a : Style.Default;
|
|
1491
|
-
this.gesture = createSwipeToCloseGesture(el, ani, statusBarStyle, () => {
|
|
1492
|
-
/**
|
|
1493
|
-
* While the gesture animation is finishing
|
|
1494
|
-
* it is possible for a user to tap the backdrop.
|
|
1495
|
-
* This would result in the dismiss animation
|
|
1496
|
-
* being played again. Typically this is avoided
|
|
1497
|
-
* by setting `presented = false` on the overlay
|
|
1498
|
-
* component; however, we cannot do that here as
|
|
1499
|
-
* that would prevent the element from being
|
|
1500
|
-
* removed from the DOM.
|
|
1501
|
-
*/
|
|
1502
|
-
this.gestureAnimationDismissing = true;
|
|
1503
|
-
/**
|
|
1504
|
-
* Reset the status bar style as the dismiss animation
|
|
1505
|
-
* starts otherwise the status bar will be the wrong
|
|
1506
|
-
* color for the duration of the dismiss animation.
|
|
1507
|
-
* The dismiss method does this as well, but
|
|
1508
|
-
* in this case it's only called once the animation
|
|
1509
|
-
* has finished.
|
|
1510
|
-
*/
|
|
1511
|
-
setCardStatusBarDefault(this.statusBarStyle);
|
|
1512
|
-
this.animation.onFinish(async () => {
|
|
1513
|
-
await this.dismiss(undefined, overlays.GESTURE);
|
|
1514
|
-
this.gestureAnimationDismissing = false;
|
|
1515
|
-
});
|
|
1516
|
-
});
|
|
1517
|
-
this.gesture.enable(true);
|
|
1373
|
+
return canDismiss;
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* Present the modal overlay after it has been created.
|
|
1377
|
+
*/
|
|
1378
|
+
async present() {
|
|
1379
|
+
const unlock = await this.lockController.lock();
|
|
1380
|
+
if (this.presented) {
|
|
1381
|
+
unlock();
|
|
1382
|
+
return;
|
|
1518
1383
|
}
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1384
|
+
const { presentingElement, el } = this;
|
|
1385
|
+
/**
|
|
1386
|
+
* If the modal is presented multiple times (inline modals), we
|
|
1387
|
+
* need to reset the current breakpoint to the initial breakpoint.
|
|
1388
|
+
*/
|
|
1389
|
+
this.currentBreakpoint = this.initialBreakpoint;
|
|
1390
|
+
const { inline, delegate } = this.getDelegate(true);
|
|
1391
|
+
/**
|
|
1392
|
+
* Emit ionMount so JS Frameworks have an opportunity
|
|
1393
|
+
* to add the child component to the DOM. The child
|
|
1394
|
+
* component will be assigned to this.usersElement below.
|
|
1395
|
+
*/
|
|
1396
|
+
this.ionMount.emit();
|
|
1397
|
+
this.usersElement = await frameworkDelegate.attachComponent(delegate, el, this.component, ['ion-page'], this.componentProps, inline);
|
|
1398
|
+
/**
|
|
1399
|
+
* When using the lazy loaded build of Stencil, we need to wait
|
|
1400
|
+
* for every Stencil component instance to be ready before presenting
|
|
1401
|
+
* otherwise there can be a flash of unstyled content. With the
|
|
1402
|
+
* custom elements bundle we need to wait for the JS framework
|
|
1403
|
+
* mount the inner contents of the overlay otherwise WebKit may
|
|
1404
|
+
* get the transition incorrect.
|
|
1405
|
+
*/
|
|
1406
|
+
if (helpers.hasLazyBuild(el)) {
|
|
1407
|
+
await index$5.deepReady(this.usersElement);
|
|
1408
|
+
/**
|
|
1409
|
+
* If keepContentsMounted="true" then the
|
|
1410
|
+
* JS Framework has already mounted the inner
|
|
1411
|
+
* contents so there is no need to wait.
|
|
1412
|
+
* Otherwise, we need to wait for the JS
|
|
1413
|
+
* Framework to mount the inner contents
|
|
1414
|
+
* of this component.
|
|
1415
|
+
*/
|
|
1540
1416
|
}
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
* While the gesture animation is finishing
|
|
1544
|
-
* it is possible for a user to tap the backdrop.
|
|
1545
|
-
* This would result in the dismiss animation
|
|
1546
|
-
* being played again. Typically this is avoided
|
|
1547
|
-
* by setting `presented = false` on the overlay
|
|
1548
|
-
* component; however, we cannot do that here as
|
|
1549
|
-
* that would prevent the element from being
|
|
1550
|
-
* removed from the DOM.
|
|
1551
|
-
*/
|
|
1552
|
-
this.gestureAnimationDismissing = true;
|
|
1553
|
-
this.animation.onFinish(async () => {
|
|
1554
|
-
this.currentBreakpoint = 0;
|
|
1555
|
-
this.ionBreakpointDidChange.emit({ breakpoint: this.currentBreakpoint });
|
|
1556
|
-
await this.dismiss(undefined, overlays.GESTURE);
|
|
1557
|
-
this.gestureAnimationDismissing = false;
|
|
1558
|
-
});
|
|
1417
|
+
else if (!this.keepContentsMounted) {
|
|
1418
|
+
await index$5.waitForMount();
|
|
1559
1419
|
}
|
|
1420
|
+
index$3.writeTask(() => this.el.classList.add('show-modal'));
|
|
1421
|
+
const hasCardModal = presentingElement !== undefined;
|
|
1560
1422
|
/**
|
|
1561
|
-
*
|
|
1562
|
-
*
|
|
1563
|
-
*
|
|
1564
|
-
* @param role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.
|
|
1565
|
-
*
|
|
1566
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
1567
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
1568
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
1423
|
+
* We need to change the status bar at the
|
|
1424
|
+
* start of the animation so that it completes
|
|
1425
|
+
* by the time the card animation is done.
|
|
1569
1426
|
*/
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
this.keyboardOpenCallback = undefined;
|
|
1604
|
-
}
|
|
1605
|
-
const dismissed = await overlays.dismiss(this, data, role, 'modalLeave', iosLeaveAnimation, mdLeaveAnimation, {
|
|
1606
|
-
presentingEl: presentingElement,
|
|
1607
|
-
currentBreakpoint: (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : this.initialBreakpoint,
|
|
1608
|
-
backdropBreakpoint: this.backdropBreakpoint,
|
|
1609
|
-
});
|
|
1610
|
-
if (dismissed) {
|
|
1611
|
-
const { delegate } = this.getDelegate();
|
|
1612
|
-
await frameworkDelegate.detachComponent(delegate, this.usersElement);
|
|
1613
|
-
index$3.writeTask(() => this.el.classList.remove('show-modal'));
|
|
1614
|
-
if (this.animation) {
|
|
1615
|
-
this.animation.destroy();
|
|
1616
|
-
}
|
|
1427
|
+
if (hasCardModal && ionicGlobal.getIonMode(this) === 'ios') {
|
|
1428
|
+
// Cache the original status bar color before the modal is presented
|
|
1429
|
+
this.statusBarStyle = await StatusBar.getStyle();
|
|
1430
|
+
setCardStatusBarDark();
|
|
1431
|
+
}
|
|
1432
|
+
await overlays.present(this, 'modalEnter', iosEnterAnimation, mdEnterAnimation, {
|
|
1433
|
+
presentingEl: presentingElement,
|
|
1434
|
+
currentBreakpoint: this.initialBreakpoint,
|
|
1435
|
+
backdropBreakpoint: this.backdropBreakpoint,
|
|
1436
|
+
});
|
|
1437
|
+
/* tslint:disable-next-line */
|
|
1438
|
+
if (typeof window !== 'undefined') {
|
|
1439
|
+
/**
|
|
1440
|
+
* This needs to be setup before any
|
|
1441
|
+
* non-transition async work so it can be dereferenced
|
|
1442
|
+
* in the dismiss method. The dismiss method
|
|
1443
|
+
* only waits for the entering transition
|
|
1444
|
+
* to finish. It does not wait for all of the `present`
|
|
1445
|
+
* method to resolve.
|
|
1446
|
+
*/
|
|
1447
|
+
this.keyboardOpenCallback = () => {
|
|
1448
|
+
if (this.gesture) {
|
|
1449
|
+
/**
|
|
1450
|
+
* When the native keyboard is opened and the webview
|
|
1451
|
+
* is resized, the gesture implementation will become unresponsive
|
|
1452
|
+
* and enter a free-scroll mode.
|
|
1453
|
+
*
|
|
1454
|
+
* When the keyboard is opened, we disable the gesture for
|
|
1455
|
+
* a single frame and re-enable once the contents have repositioned
|
|
1456
|
+
* from the keyboard placement.
|
|
1457
|
+
*/
|
|
1458
|
+
this.gesture.enable(false);
|
|
1459
|
+
helpers.raf(() => {
|
|
1617
1460
|
if (this.gesture) {
|
|
1618
|
-
|
|
1461
|
+
this.gesture.enable(true);
|
|
1619
1462
|
}
|
|
1463
|
+
});
|
|
1620
1464
|
}
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1465
|
+
};
|
|
1466
|
+
window.addEventListener(keyboard.KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
|
|
1467
|
+
}
|
|
1468
|
+
if (this.isSheetModal) {
|
|
1469
|
+
this.initSheetGesture();
|
|
1470
|
+
}
|
|
1471
|
+
else if (hasCardModal) {
|
|
1472
|
+
this.initSwipeToClose();
|
|
1473
|
+
}
|
|
1474
|
+
unlock();
|
|
1475
|
+
}
|
|
1476
|
+
initSwipeToClose() {
|
|
1477
|
+
var _a;
|
|
1478
|
+
if (ionicGlobal.getIonMode(this) !== 'ios') {
|
|
1479
|
+
return;
|
|
1480
|
+
}
|
|
1481
|
+
const { el } = this;
|
|
1482
|
+
// All of the elements needed for the swipe gesture
|
|
1483
|
+
// should be in the DOM and referenced by now, except
|
|
1484
|
+
// for the presenting el
|
|
1485
|
+
const animationBuilder = this.leaveAnimation || ionicGlobal.config.get('modalLeave', iosLeaveAnimation);
|
|
1486
|
+
const ani = (this.animation = animationBuilder(el, { presentingEl: this.presentingElement }));
|
|
1487
|
+
const contentEl = index$2.findIonContent(el);
|
|
1488
|
+
if (!contentEl) {
|
|
1489
|
+
index$2.printIonContentErrorMsg(el);
|
|
1490
|
+
return;
|
|
1491
|
+
}
|
|
1492
|
+
const statusBarStyle = (_a = this.statusBarStyle) !== null && _a !== void 0 ? _a : Style.Default;
|
|
1493
|
+
this.gesture = createSwipeToCloseGesture(el, ani, statusBarStyle, () => {
|
|
1494
|
+
/**
|
|
1495
|
+
* While the gesture animation is finishing
|
|
1496
|
+
* it is possible for a user to tap the backdrop.
|
|
1497
|
+
* This would result in the dismiss animation
|
|
1498
|
+
* being played again. Typically this is avoided
|
|
1499
|
+
* by setting `presented = false` on the overlay
|
|
1500
|
+
* component; however, we cannot do that here as
|
|
1501
|
+
* that would prevent the element from being
|
|
1502
|
+
* removed from the DOM.
|
|
1503
|
+
*/
|
|
1504
|
+
this.gestureAnimationDismissing = true;
|
|
1505
|
+
/**
|
|
1506
|
+
* Reset the status bar style as the dismiss animation
|
|
1507
|
+
* starts otherwise the status bar will be the wrong
|
|
1508
|
+
* color for the duration of the dismiss animation.
|
|
1509
|
+
* The dismiss method does this as well, but
|
|
1510
|
+
* in this case it's only called once the animation
|
|
1511
|
+
* has finished.
|
|
1512
|
+
*/
|
|
1513
|
+
setCardStatusBarDefault(this.statusBarStyle);
|
|
1514
|
+
this.animation.onFinish(async () => {
|
|
1515
|
+
await this.dismiss(undefined, overlays.GESTURE);
|
|
1516
|
+
this.gestureAnimationDismissing = false;
|
|
1517
|
+
});
|
|
1518
|
+
});
|
|
1519
|
+
this.gesture.enable(true);
|
|
1520
|
+
}
|
|
1521
|
+
initSheetGesture() {
|
|
1522
|
+
const { wrapperEl, initialBreakpoint, backdropBreakpoint } = this;
|
|
1523
|
+
if (!wrapperEl || initialBreakpoint === undefined) {
|
|
1524
|
+
return;
|
|
1625
1525
|
}
|
|
1526
|
+
const animationBuilder = this.enterAnimation || ionicGlobal.config.get('modalEnter', iosEnterAnimation);
|
|
1527
|
+
const ani = (this.animation = animationBuilder(this.el, {
|
|
1528
|
+
presentingEl: this.presentingElement,
|
|
1529
|
+
currentBreakpoint: initialBreakpoint,
|
|
1530
|
+
backdropBreakpoint,
|
|
1531
|
+
}));
|
|
1532
|
+
ani.progressStart(true, 1);
|
|
1533
|
+
const { gesture, moveSheetToBreakpoint } = createSheetGesture(this.el, this.backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, ani, this.sortedBreakpoints, () => { var _a; return (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : 0; }, () => this.sheetOnDismiss(), (breakpoint) => {
|
|
1534
|
+
if (this.currentBreakpoint !== breakpoint) {
|
|
1535
|
+
this.currentBreakpoint = breakpoint;
|
|
1536
|
+
this.ionBreakpointDidChange.emit({ breakpoint });
|
|
1537
|
+
}
|
|
1538
|
+
});
|
|
1539
|
+
this.gesture = gesture;
|
|
1540
|
+
this.moveSheetToBreakpoint = moveSheetToBreakpoint;
|
|
1541
|
+
this.gesture.enable(true);
|
|
1542
|
+
}
|
|
1543
|
+
sheetOnDismiss() {
|
|
1626
1544
|
/**
|
|
1627
|
-
*
|
|
1545
|
+
* While the gesture animation is finishing
|
|
1546
|
+
* it is possible for a user to tap the backdrop.
|
|
1547
|
+
* This would result in the dismiss animation
|
|
1548
|
+
* being played again. Typically this is avoided
|
|
1549
|
+
* by setting `presented = false` on the overlay
|
|
1550
|
+
* component; however, we cannot do that here as
|
|
1551
|
+
* that would prevent the element from being
|
|
1552
|
+
* removed from the DOM.
|
|
1628
1553
|
*/
|
|
1629
|
-
|
|
1630
|
-
|
|
1554
|
+
this.gestureAnimationDismissing = true;
|
|
1555
|
+
this.animation.onFinish(async () => {
|
|
1556
|
+
this.currentBreakpoint = 0;
|
|
1557
|
+
this.ionBreakpointDidChange.emit({ breakpoint: this.currentBreakpoint });
|
|
1558
|
+
await this.dismiss(undefined, overlays.GESTURE);
|
|
1559
|
+
this.gestureAnimationDismissing = false;
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
/**
|
|
1563
|
+
* Dismiss the modal overlay after it has been presented.
|
|
1564
|
+
*
|
|
1565
|
+
* @param data Any data to emit in the dismiss events.
|
|
1566
|
+
* @param role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.
|
|
1567
|
+
*
|
|
1568
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
1569
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
1570
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
1571
|
+
*/
|
|
1572
|
+
async dismiss(data, role) {
|
|
1573
|
+
var _a;
|
|
1574
|
+
if (this.gestureAnimationDismissing && role !== overlays.GESTURE) {
|
|
1575
|
+
return false;
|
|
1631
1576
|
}
|
|
1632
1577
|
/**
|
|
1633
|
-
*
|
|
1578
|
+
* Because the canDismiss check below is async,
|
|
1579
|
+
* we need to claim a lock before the check happens,
|
|
1580
|
+
* in case the dismiss transition does run.
|
|
1634
1581
|
*/
|
|
1635
|
-
|
|
1636
|
-
return overlays.eventMethod(this.el, 'ionModalWillDismiss');
|
|
1637
|
-
}
|
|
1582
|
+
const unlock = await this.lockController.lock();
|
|
1638
1583
|
/**
|
|
1639
|
-
*
|
|
1640
|
-
*
|
|
1584
|
+
* If a canDismiss handler is responsible
|
|
1585
|
+
* for calling the dismiss method, we should
|
|
1586
|
+
* not run the canDismiss check again.
|
|
1641
1587
|
*/
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
return;
|
|
1646
|
-
}
|
|
1647
|
-
if (!this.breakpoints.includes(breakpoint)) {
|
|
1648
|
-
index$4.printIonWarning(`Attempted to set invalid breakpoint value ${breakpoint}. Please double check that the breakpoint value is part of your defined breakpoints.`);
|
|
1649
|
-
return;
|
|
1650
|
-
}
|
|
1651
|
-
const { currentBreakpoint, moveSheetToBreakpoint, canDismiss, breakpoints, animated } = this;
|
|
1652
|
-
if (currentBreakpoint === breakpoint) {
|
|
1653
|
-
return;
|
|
1654
|
-
}
|
|
1655
|
-
if (moveSheetToBreakpoint) {
|
|
1656
|
-
this.sheetTransition = moveSheetToBreakpoint({
|
|
1657
|
-
breakpoint,
|
|
1658
|
-
breakpointOffset: 1 - currentBreakpoint,
|
|
1659
|
-
canDismiss: canDismiss !== undefined && canDismiss !== true && breakpoints[0] === 0,
|
|
1660
|
-
animated,
|
|
1661
|
-
});
|
|
1662
|
-
await this.sheetTransition;
|
|
1663
|
-
this.sheetTransition = undefined;
|
|
1664
|
-
}
|
|
1588
|
+
if (role !== 'handler' && !(await this.checkCanDismiss(data, role))) {
|
|
1589
|
+
unlock();
|
|
1590
|
+
return false;
|
|
1665
1591
|
}
|
|
1592
|
+
const { presentingElement } = this;
|
|
1666
1593
|
/**
|
|
1667
|
-
*
|
|
1594
|
+
* We need to start the status bar change
|
|
1595
|
+
* before the animation so that the change
|
|
1596
|
+
* finishes when the dismiss animation does.
|
|
1668
1597
|
*/
|
|
1669
|
-
|
|
1670
|
-
|
|
1598
|
+
const hasCardModal = presentingElement !== undefined;
|
|
1599
|
+
if (hasCardModal && ionicGlobal.getIonMode(this) === 'ios') {
|
|
1600
|
+
setCardStatusBarDefault(this.statusBarStyle);
|
|
1671
1601
|
}
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
* If the modal does not have breakpoints and/or the current
|
|
1677
|
-
* breakpoint is not set, we can't move to the next breakpoint.
|
|
1678
|
-
*/
|
|
1679
|
-
return false;
|
|
1680
|
-
}
|
|
1681
|
-
const allowedBreakpoints = breakpoints.filter((b) => b !== 0);
|
|
1682
|
-
const currentBreakpointIndex = allowedBreakpoints.indexOf(currentBreakpoint);
|
|
1683
|
-
const nextBreakpointIndex = (currentBreakpointIndex + 1) % allowedBreakpoints.length;
|
|
1684
|
-
const nextBreakpoint = allowedBreakpoints[nextBreakpointIndex];
|
|
1685
|
-
/**
|
|
1686
|
-
* Sets the current breakpoint to the next available breakpoint.
|
|
1687
|
-
* If the current breakpoint is the last breakpoint, we set the current
|
|
1688
|
-
* breakpoint to the first non-zero breakpoint to avoid dismissing the sheet.
|
|
1689
|
-
*/
|
|
1690
|
-
await this.setCurrentBreakpoint(nextBreakpoint);
|
|
1691
|
-
return true;
|
|
1602
|
+
/* tslint:disable-next-line */
|
|
1603
|
+
if (typeof window !== 'undefined' && this.keyboardOpenCallback) {
|
|
1604
|
+
window.removeEventListener(keyboard.KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
|
|
1605
|
+
this.keyboardOpenCallback = undefined;
|
|
1692
1606
|
}
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1607
|
+
const dismissed = await overlays.dismiss(this, data, role, 'modalLeave', iosLeaveAnimation, mdLeaveAnimation, {
|
|
1608
|
+
presentingEl: presentingElement,
|
|
1609
|
+
currentBreakpoint: (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : this.initialBreakpoint,
|
|
1610
|
+
backdropBreakpoint: this.backdropBreakpoint,
|
|
1611
|
+
});
|
|
1612
|
+
if (dismissed) {
|
|
1613
|
+
const { delegate } = this.getDelegate();
|
|
1614
|
+
await frameworkDelegate.detachComponent(delegate, this.usersElement);
|
|
1615
|
+
index$3.writeTask(() => this.el.classList.remove('show-modal'));
|
|
1616
|
+
if (this.animation) {
|
|
1617
|
+
this.animation.destroy();
|
|
1618
|
+
}
|
|
1619
|
+
if (this.gesture) {
|
|
1620
|
+
this.gesture.destroy();
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
this.currentBreakpoint = undefined;
|
|
1624
|
+
this.animation = undefined;
|
|
1625
|
+
unlock();
|
|
1626
|
+
return dismissed;
|
|
1627
|
+
}
|
|
1628
|
+
/**
|
|
1629
|
+
* Returns a promise that resolves when the modal did dismiss.
|
|
1630
|
+
*/
|
|
1631
|
+
onDidDismiss() {
|
|
1632
|
+
return overlays.eventMethod(this.el, 'ionModalDidDismiss');
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
* Returns a promise that resolves when the modal will dismiss.
|
|
1636
|
+
*/
|
|
1637
|
+
onWillDismiss() {
|
|
1638
|
+
return overlays.eventMethod(this.el, 'ionModalWillDismiss');
|
|
1639
|
+
}
|
|
1640
|
+
/**
|
|
1641
|
+
* Move a sheet style modal to a specific breakpoint. The breakpoint value must
|
|
1642
|
+
* be a value defined in your `breakpoints` array.
|
|
1643
|
+
*/
|
|
1644
|
+
async setCurrentBreakpoint(breakpoint) {
|
|
1645
|
+
if (!this.isSheetModal) {
|
|
1646
|
+
index$4.printIonWarning('setCurrentBreakpoint is only supported on sheet modals.');
|
|
1647
|
+
return;
|
|
1648
|
+
}
|
|
1649
|
+
if (!this.breakpoints.includes(breakpoint)) {
|
|
1650
|
+
index$4.printIonWarning(`Attempted to set invalid breakpoint value ${breakpoint}. Please double check that the breakpoint value is part of your defined breakpoints.`);
|
|
1651
|
+
return;
|
|
1652
|
+
}
|
|
1653
|
+
const { currentBreakpoint, moveSheetToBreakpoint, canDismiss, breakpoints, animated } = this;
|
|
1654
|
+
if (currentBreakpoint === breakpoint) {
|
|
1655
|
+
return;
|
|
1711
1656
|
}
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1657
|
+
if (moveSheetToBreakpoint) {
|
|
1658
|
+
this.sheetTransition = moveSheetToBreakpoint({
|
|
1659
|
+
breakpoint,
|
|
1660
|
+
breakpointOffset: 1 - currentBreakpoint,
|
|
1661
|
+
canDismiss: canDismiss !== undefined && canDismiss !== true && breakpoints[0] === 0,
|
|
1662
|
+
animated,
|
|
1663
|
+
});
|
|
1664
|
+
await this.sheetTransition;
|
|
1665
|
+
this.sheetTransition = undefined;
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* Returns the current breakpoint of a sheet style modal
|
|
1670
|
+
*/
|
|
1671
|
+
async getCurrentBreakpoint() {
|
|
1672
|
+
return this.currentBreakpoint;
|
|
1673
|
+
}
|
|
1674
|
+
async moveToNextBreakpoint() {
|
|
1675
|
+
const { breakpoints, currentBreakpoint } = this;
|
|
1676
|
+
if (!breakpoints || currentBreakpoint == null) {
|
|
1677
|
+
/**
|
|
1678
|
+
* If the modal does not have breakpoints and/or the current
|
|
1679
|
+
* breakpoint is not set, we can't move to the next breakpoint.
|
|
1680
|
+
*/
|
|
1681
|
+
return false;
|
|
1682
|
+
}
|
|
1683
|
+
const allowedBreakpoints = breakpoints.filter((b) => b !== 0);
|
|
1684
|
+
const currentBreakpointIndex = allowedBreakpoints.indexOf(currentBreakpoint);
|
|
1685
|
+
const nextBreakpointIndex = (currentBreakpointIndex + 1) % allowedBreakpoints.length;
|
|
1686
|
+
const nextBreakpoint = allowedBreakpoints[nextBreakpointIndex];
|
|
1687
|
+
/**
|
|
1688
|
+
* Sets the current breakpoint to the next available breakpoint.
|
|
1689
|
+
* If the current breakpoint is the last breakpoint, we set the current
|
|
1690
|
+
* breakpoint to the first non-zero breakpoint to avoid dismissing the sheet.
|
|
1691
|
+
*/
|
|
1692
|
+
await this.setCurrentBreakpoint(nextBreakpoint);
|
|
1693
|
+
return true;
|
|
1694
|
+
}
|
|
1695
|
+
render() {
|
|
1696
|
+
const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes } = this;
|
|
1697
|
+
const showHandle = handle !== false && isSheetModal;
|
|
1698
|
+
const mode = ionicGlobal.getIonMode(this);
|
|
1699
|
+
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
1700
|
+
const isHandleCycle = handleBehavior === 'cycle';
|
|
1701
|
+
return (index$3.h(index$3.Host, Object.assign({ key: 'e4ad28e6e794560d85252aebdca7f4752e4e7e99', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
1702
|
+
zIndex: `${20000 + this.overlayIndex}`,
|
|
1703
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, theme.getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), index$3.h("ion-backdrop", { key: '6efd67361a062d15488390f9f0d6c0841e541893', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && index$3.h("div", { key: '557b1c6b297df75acc80d1350b971e65ace6c343', class: "modal-shadow" }), index$3.h("div", Object.assign({ key: '67f9b27b662303fbaadaee2ae89972caadfd9994',
|
|
1704
|
+
/*
|
|
1705
|
+
role and aria-modal must be used on the
|
|
1706
|
+
same element. They must also be set inside the
|
|
1707
|
+
shadow DOM otherwise ion-button will not be highlighted
|
|
1708
|
+
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
1709
|
+
*/
|
|
1710
|
+
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (index$3.h("button", { key: '8f1eecc451b52467a8c3cfe500335cf6254bbfbc', class: "modal-handle",
|
|
1711
|
+
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
1712
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), index$3.h("slot", { key: 'cdc923404f01a14b9071a434c68547da3b22c71e' }))));
|
|
1713
|
+
}
|
|
1714
|
+
get el() { return index$3.getElement(this); }
|
|
1715
|
+
static get watchers() { return {
|
|
1716
|
+
"isOpen": ["onIsOpenChange"],
|
|
1717
|
+
"trigger": ["triggerChanged"]
|
|
1718
|
+
}; }
|
|
1721
1719
|
};
|
|
1722
1720
|
const LIFECYCLE_MAP = {
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1721
|
+
ionModalDidPresent: 'ionViewDidEnter',
|
|
1722
|
+
ionModalWillPresent: 'ionViewWillEnter',
|
|
1723
|
+
ionModalWillDismiss: 'ionViewWillLeave',
|
|
1724
|
+
ionModalDidDismiss: 'ionViewDidLeave',
|
|
1727
1725
|
};
|
|
1728
1726
|
Modal.style = {
|
|
1729
|
-
|
|
1730
|
-
|
|
1727
|
+
ios: modalIosCss,
|
|
1728
|
+
md: modalMdCss
|
|
1731
1729
|
};
|
|
1732
1730
|
|
|
1733
1731
|
exports.ion_modal = Modal;
|