@venite/components 0.16.33 → 0.16.36
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/dist/cjs/animation-ee586546.js +986 -0
- package/dist/cjs/app-globals-5906b2f0.js +7 -0
- package/dist/cjs/cubic-bezier-53d26d05.js +93 -0
- package/dist/cjs/dir-5af5259a.js +20 -0
- package/dist/cjs/focus-visible-b0b07ba6.js +76 -0
- package/dist/cjs/framework-delegate-59a98abd.js +111 -0
- package/dist/cjs/gesture-controller-0eb5579e.js +196 -0
- package/dist/cjs/haptic-780f33c4.js +116 -0
- package/dist/cjs/hardware-back-button-92d97ff8.js +76 -0
- package/dist/cjs/helpers-c2496722.js +425 -0
- package/dist/{esm/index-f0f6a379.js → cjs/index-01fdec29.js} +566 -132
- package/dist/cjs/index-12082cba.js +465 -0
- package/dist/cjs/index-25a76ef5.js +30 -0
- package/dist/cjs/index-59bd9a39.js +232 -0
- package/dist/cjs/index-8b5629a6.js +186 -0
- package/dist/cjs/index-9c7b27e4.js +140 -0
- package/dist/cjs/index-af080b50.js +139 -0
- package/dist/cjs/index-b6879fbc.js +48 -0
- package/dist/cjs/index-e56e09b8.js +38 -0
- package/dist/cjs/index-f8a7d3a6.js +314 -0
- package/dist/cjs/input-shims-f9d0c582.js +428 -0
- package/dist/cjs/ion-accordion-group.cjs.entry.js +205 -0
- package/dist/cjs/ion-accordion.cjs.entry.js +336 -0
- package/dist/cjs/ion-action-sheet_10.cjs.entry.js +3053 -0
- package/dist/cjs/ion-app.cjs.entry.js +30 -11
- package/dist/cjs/ion-avatar.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +27 -12
- package/dist/cjs/ion-backdrop.cjs.entry.js +5 -5
- package/dist/cjs/ion-badge.cjs.entry.js +6 -4
- package/dist/cjs/ion-breadcrumb.cjs.entry.js +101 -0
- package/dist/cjs/ion-breadcrumbs.cjs.entry.js +133 -0
- package/dist/cjs/ion-button_14.cjs.entry.js +2231 -0
- package/dist/cjs/ion-card-content_6.cjs.entry.js +51 -41
- package/dist/cjs/ion-card-subtitle.cjs.entry.js +7 -4
- package/dist/cjs/ion-card_2.cjs.entry.js +21 -15
- package/dist/cjs/ion-chip.cjs.entry.js +15 -6
- package/dist/cjs/ion-datetime-button.cjs.entry.js +312 -0
- package/dist/cjs/ion-datetime_4.cjs.entry.js +2584 -0
- package/dist/cjs/ion-fab-button.cjs.entry.js +43 -9
- package/dist/cjs/ion-fab-list.cjs.entry.js +4 -4
- package/dist/cjs/ion-fab.cjs.entry.js +15 -13
- package/dist/cjs/ion-footer.cjs.entry.js +139 -9
- package/dist/cjs/ion-img.cjs.entry.js +38 -9
- package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +5 -5
- package/dist/cjs/ion-infinite-scroll.cjs.entry.js +13 -13
- package/dist/cjs/ion-input_2.cjs.entry.js +102 -23
- package/dist/cjs/ion-item-divider.cjs.entry.js +8 -4
- package/dist/cjs/ion-item-group.cjs.entry.js +3 -3
- package/dist/cjs/ion-item-option.cjs.entry.js +13 -8
- package/dist/cjs/ion-item-options.cjs.entry.js +5 -5
- package/dist/cjs/ion-item-sliding.cjs.entry.js +69 -30
- package/dist/cjs/ion-loading.cjs.entry.js +92 -90
- package/dist/cjs/ion-menu-button.cjs.entry.js +27 -12
- package/dist/cjs/ion-menu-toggle.cjs.entry.js +7 -7
- package/dist/cjs/ion-menu.cjs.entry.js +172 -53
- package/dist/cjs/ion-modal.cjs.entry.js +1517 -318
- package/dist/cjs/ion-nav-link.cjs.entry.js +23 -20
- package/dist/cjs/ion-nav.cjs.entry.js +284 -224
- package/dist/cjs/ion-picker-column.cjs.entry.js +31 -27
- package/dist/cjs/ion-picker.cjs.entry.js +59 -52
- package/dist/cjs/ion-progress-bar.cjs.entry.js +23 -16
- package/dist/cjs/ion-range.cjs.entry.js +182 -62
- package/dist/cjs/ion-refresher-content.cjs.entry.js +7 -12
- package/dist/cjs/ion-refresher.cjs.entry.js +264 -293
- package/dist/cjs/ion-reorder-group.cjs.entry.js +19 -19
- package/dist/cjs/ion-reorder.cjs.entry.js +12 -5
- package/dist/cjs/ion-route-redirect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route.cjs.entry.js +1 -1
- package/dist/cjs/ion-router-link.cjs.entry.js +9 -6
- package/dist/cjs/ion-router-outlet.cjs.entry.js +65 -25
- package/dist/cjs/ion-router.cjs.entry.js +598 -398
- package/dist/cjs/ion-segment_16.cjs.entry.js +172 -47
- package/dist/cjs/ion-slide.cjs.entry.js +3 -3
- package/dist/cjs/ion-slides.cjs.entry.js +38 -51
- package/dist/cjs/ion-spinner.cjs.entry.js +12 -8
- package/dist/cjs/ion-split-pane.cjs.entry.js +16 -12
- package/dist/cjs/ion-tab-bar.cjs.entry.js +24 -15
- package/dist/cjs/ion-tab-button.cjs.entry.js +11 -7
- package/dist/cjs/ion-tab.cjs.entry.js +4 -3
- package/dist/cjs/ion-tabs.cjs.entry.js +4 -5
- package/dist/cjs/ion-text.cjs.entry.js +6 -4
- package/dist/cjs/ion-textarea.cjs.entry.js +67 -36
- package/dist/cjs/ion-thumbnail.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +105 -113
- package/dist/cjs/ion-virtual-scroll.cjs.entry.js +239 -228
- package/dist/cjs/ionic-global-bd0aab94.js +230 -0
- package/dist/cjs/ios.transition-f008fdcc.js +482 -0
- package/dist/cjs/keyboard-91096619.js +140 -0
- package/dist/cjs/ldf-day-name_5.cjs.entry.js +7 -7
- package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-boolean_2.cjs.entry.js +129 -0
- package/dist/cjs/ldf-editable-condition-piece.cjs.entry.js +5 -2
- package/dist/cjs/ldf-editable-condition.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-metadata.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-preference-option.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-preference.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-preferences.cjs.entry.js +5 -4
- package/dist/cjs/ldf-editable-string-list.cjs.entry.js +3 -2
- package/dist/cjs/ldf-editor-cursors.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editor.cjs.entry.js +1 -1
- package/dist/cjs/ldf.cjs.js +5 -5
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/md.transition-19d9d9b2.js +57 -0
- package/dist/cjs/menu-toggle-util-b6fb068f.js +14 -0
- package/dist/cjs/overlays-240c867b.js +509 -0
- package/dist/cjs/parse-c36185aa.js +1303 -0
- package/dist/cjs/spinner-configs-0ac05f2d.js +147 -0
- package/dist/cjs/status-tap-edb6375f.js +42 -0
- package/dist/cjs/swipe-back-4a826f9b.js +76 -0
- package/dist/cjs/{swiper.bundle-cb0f61f7.js → swiper.bundle-8c897c07.js} +260 -86
- package/dist/cjs/theme-b0b295c1.js +48 -0
- package/dist/collection/collection-manifest.json +9 -2
- package/dist/collection/components/bible-reading/bible-reading.js +1 -2
- package/dist/collection/components/day-name/day-name.js +1 -2
- package/dist/collection/components/editable-antiphon-field/editable-antiphon-field.js +1 -2
- package/dist/collection/components/editable-condition-piece/dist/editable-condition-piece.js +6 -4
- package/dist/collection/components/editable-condition-piece/editable-condition-piece.js +6 -4
- package/dist/collection/components/editable-string-list/dist/editable-string-list.js +51 -51
- package/dist/collection/components/editable-string-list/editable-string-list.js +2 -1
- package/dist/collection/components/editable-text/editable-text.js +1 -1
- package/dist/collection/components/string/string.css +1 -1
- package/dist/esm/animation-fa1c28fc.js +984 -0
- package/dist/esm/app-globals-07fa76a3.js +5 -0
- package/dist/esm/cubic-bezier-4c0db14f.js +91 -0
- package/dist/esm/dir-03012648.js +18 -0
- package/dist/esm/focus-visible-4e9a0764.js +74 -0
- package/dist/esm/framework-delegate-d512b396.js +107 -0
- package/dist/esm/gesture-controller-7be18351.js +194 -0
- package/dist/esm/haptic-522f76f2.js +110 -0
- package/dist/esm/hardware-back-button-fa04d6e9.js +71 -0
- package/dist/esm/helpers-af86adf0.js +403 -0
- package/dist/{cjs/index-8fe0df8d.js → esm/index-034add74.js} +530 -167
- package/dist/esm/index-09acb2ac.js +128 -0
- package/dist/esm/index-21661af2.js +463 -0
- package/dist/esm/index-5aa6aa3e.js +28 -0
- package/dist/esm/index-7a608887.js +312 -0
- package/dist/esm/index-ac6e5d74.js +34 -0
- package/dist/esm/index-be6112f8.js +137 -0
- package/dist/esm/index-ef8020d2.js +184 -0
- package/dist/esm/index-f258b2dd.js +25 -0
- package/dist/esm/index-faad3da4.js +223 -0
- package/dist/esm/input-shims-5f3fd3d0.js +426 -0
- package/dist/esm/ion-accordion-group.entry.js +201 -0
- package/dist/esm/ion-accordion.entry.js +332 -0
- package/dist/esm/ion-action-sheet_10.entry.js +3040 -0
- package/dist/esm/ion-app.entry.js +30 -11
- package/dist/esm/ion-avatar.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +27 -12
- package/dist/esm/ion-backdrop.entry.js +5 -5
- package/dist/esm/ion-badge.entry.js +6 -4
- package/dist/esm/ion-breadcrumb.entry.js +97 -0
- package/dist/esm/ion-breadcrumbs.entry.js +129 -0
- package/dist/esm/ion-button_14.entry.js +2214 -0
- package/dist/esm/ion-card-content_6.entry.js +51 -41
- package/dist/esm/ion-card-subtitle.entry.js +7 -4
- package/dist/esm/ion-card_2.entry.js +21 -15
- package/dist/esm/ion-chip.entry.js +15 -6
- package/dist/esm/ion-datetime-button.entry.js +308 -0
- package/dist/esm/ion-datetime_4.entry.js +2577 -0
- package/dist/esm/ion-fab-button.entry.js +43 -9
- package/dist/esm/ion-fab-list.entry.js +4 -4
- package/dist/esm/ion-fab.entry.js +15 -13
- package/dist/esm/ion-footer.entry.js +137 -7
- package/dist/esm/ion-img.entry.js +38 -9
- package/dist/esm/ion-infinite-scroll-content.entry.js +5 -5
- package/dist/esm/ion-infinite-scroll.entry.js +13 -13
- package/dist/esm/ion-input_2.entry.js +102 -23
- package/dist/esm/ion-item-divider.entry.js +8 -4
- package/dist/esm/ion-item-group.entry.js +3 -3
- package/dist/esm/ion-item-option.entry.js +13 -8
- package/dist/esm/ion-item-options.entry.js +5 -5
- package/dist/esm/ion-item-sliding.entry.js +69 -30
- package/dist/esm/ion-loading.entry.js +92 -90
- package/dist/esm/ion-menu-button.entry.js +27 -12
- package/dist/esm/ion-menu-toggle.entry.js +7 -7
- package/dist/esm/ion-menu.entry.js +172 -53
- package/dist/esm/ion-modal.entry.js +1509 -310
- package/dist/esm/ion-nav-link.entry.js +23 -20
- package/dist/esm/ion-nav.entry.js +284 -224
- package/dist/esm/ion-picker-column.entry.js +31 -27
- package/dist/esm/ion-picker.entry.js +59 -52
- package/dist/esm/ion-progress-bar.entry.js +23 -16
- package/dist/esm/ion-range.entry.js +182 -62
- package/dist/esm/ion-refresher-content.entry.js +7 -12
- package/dist/esm/ion-refresher.entry.js +263 -292
- package/dist/esm/ion-reorder-group.entry.js +19 -19
- package/dist/esm/ion-reorder.entry.js +12 -5
- package/dist/esm/ion-route-redirect.entry.js +1 -1
- package/dist/esm/ion-route.entry.js +1 -1
- package/dist/esm/ion-router-link.entry.js +9 -6
- package/dist/esm/ion-router-outlet.entry.js +65 -25
- package/dist/esm/ion-router.entry.js +598 -398
- package/dist/esm/ion-segment_16.entry.js +172 -47
- package/dist/esm/ion-slide.entry.js +3 -3
- package/dist/esm/ion-slides.entry.js +38 -51
- package/dist/esm/ion-spinner.entry.js +12 -8
- package/dist/esm/ion-split-pane.entry.js +16 -12
- package/dist/esm/ion-tab-bar.entry.js +24 -15
- package/dist/esm/ion-tab-button.entry.js +11 -7
- package/dist/esm/ion-tab.entry.js +4 -3
- package/dist/esm/ion-tabs.entry.js +4 -5
- package/dist/esm/ion-text.entry.js +6 -4
- package/dist/esm/ion-textarea.entry.js +67 -36
- package/dist/esm/ion-thumbnail.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +105 -113
- package/dist/esm/ion-virtual-scroll.entry.js +239 -228
- package/dist/esm/ionic-global-24253941.js +225 -0
- package/dist/esm/ios.transition-971db583.js +479 -0
- package/dist/esm/keyboard-7e8329b3.js +128 -0
- package/dist/esm/ldf-day-name_5.entry.js +7 -7
- package/dist/esm/ldf-editable-add-block-menu.entry.js +1 -1
- package/dist/esm/ldf-editable-boolean_2.entry.js +124 -0
- package/dist/esm/ldf-editable-condition-piece.entry.js +5 -2
- package/dist/esm/ldf-editable-condition.entry.js +1 -1
- package/dist/esm/ldf-editable-filter-documents.entry.js +1 -1
- package/dist/esm/ldf-editable-lookup_2.entry.js +1 -1
- package/dist/esm/ldf-editable-metadata.entry.js +1 -1
- package/dist/esm/ldf-editable-preference-option.entry.js +1 -1
- package/dist/esm/ldf-editable-preference.entry.js +1 -1
- package/dist/esm/ldf-editable-preferences.entry.js +5 -4
- package/dist/esm/ldf-editable-string-list.entry.js +3 -2
- package/dist/esm/ldf-editor-cursors.entry.js +1 -1
- package/dist/esm/ldf-editor.entry.js +1 -1
- package/dist/esm/ldf.js +5 -5
- package/dist/esm/loader.js +5 -5
- package/dist/esm/md.transition-e0dd51e0.js +55 -0
- package/dist/esm/menu-toggle-util-22353199.js +12 -0
- package/dist/esm/overlays-59377e10.js +492 -0
- package/dist/esm/parse-9ce69067.js +1260 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/spinner-configs-a37e628a.js +145 -0
- package/dist/esm/status-tap-39682200.js +40 -0
- package/dist/esm/swipe-back-cac0fc31.js +74 -0
- package/dist/esm/{swiper.bundle-13b9da83.js → swiper.bundle-b6a959de.js} +260 -86
- package/dist/esm/theme-7ef00c83.js +43 -0
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/p-011c0279.js +4 -0
- package/dist/ldf/p-01454f1d.entry.js +1 -0
- package/dist/ldf/p-05c32d13.entry.js +1 -0
- package/dist/ldf/{p-aeaa99ba.entry.js → p-06480ead.entry.js} +1 -1
- package/dist/ldf/{p-78da8fe1.js → p-076f0239.js} +3 -0
- package/dist/ldf/p-0aca5787.entry.js +1 -0
- package/dist/ldf/p-0bd969ec.entry.js +1 -0
- package/dist/ldf/p-0d66aa76.entry.js +1 -0
- package/dist/ldf/p-0e4de1d0.js +4 -0
- package/dist/ldf/p-0f1ea192.js +4 -0
- package/dist/ldf/p-0f92b1b7.entry.js +1 -0
- package/dist/ldf/p-12ee702d.entry.js +7 -0
- package/dist/ldf/p-14744625.js +4 -0
- package/dist/ldf/{p-6fe24d85.entry.js → p-16c0303d.entry.js} +1 -1
- package/dist/ldf/p-23ba057c.entry.js +4 -0
- package/dist/ldf/p-252f09bb.entry.js +7 -0
- package/dist/ldf/{p-1411d9f8.entry.js → p-25fb58d0.entry.js} +1 -1
- package/dist/ldf/p-27bcb5ae.entry.js +1 -0
- package/dist/ldf/p-28c57ab2.entry.js +1 -0
- package/dist/ldf/p-2aae7b1d.js +5 -0
- package/dist/ldf/p-2d75b171.entry.js +1 -0
- package/dist/ldf/p-35c5e6ed.js +4 -0
- package/dist/ldf/p-371e3c25.js +1 -0
- package/dist/ldf/p-37b167f9.entry.js +5 -0
- package/dist/ldf/p-39b04d83.entry.js +1 -0
- package/dist/ldf/p-3bd0921b.entry.js +1 -0
- package/dist/ldf/p-41a3d41c.entry.js +1 -0
- package/dist/ldf/p-421481d2.js +1 -0
- package/dist/ldf/p-463c08f0.entry.js +1 -0
- package/dist/ldf/p-477b1f19.entry.js +7 -0
- package/dist/ldf/p-4aeedb04.js +4 -0
- package/dist/ldf/{p-70e47f8b.entry.js → p-4bdbb2e9.entry.js} +1 -1
- package/dist/ldf/p-4c623761.entry.js +4 -0
- package/dist/ldf/{p-177ede88.js → p-4d4077ea.js} +3 -0
- package/dist/ldf/p-4d92cd8f.entry.js +1 -0
- package/dist/ldf/{p-5906d820.entry.js → p-4ecb68ed.entry.js} +1 -1
- package/dist/ldf/p-506221fe.js +4 -0
- package/dist/ldf/p-554d477d.js +4 -0
- package/dist/ldf/p-5aeeffc1.entry.js +1 -0
- package/dist/ldf/p-5cd022a2.entry.js +1 -0
- package/dist/ldf/{p-c77ba7ad.entry.js → p-5e7c2a87.entry.js} +1 -1
- package/dist/ldf/p-604a7987.js +4 -0
- package/dist/ldf/p-63030685.entry.js +1 -0
- package/dist/ldf/p-6444fbf7.entry.js +4 -0
- package/dist/ldf/{p-0f706bcd.entry.js → p-6677c236.entry.js} +1 -1
- package/dist/ldf/{p-07d6d3ad.entry.js → p-683be896.entry.js} +1 -1
- package/dist/ldf/{p-c3807857.entry.js → p-6bde308b.entry.js} +1 -1
- package/dist/ldf/p-6c98ad19.entry.js +1 -0
- package/dist/ldf/p-7029115d.js +4 -0
- package/dist/ldf/p-787f82be.entry.js +1 -0
- package/dist/ldf/p-7b1975f8.entry.js +7 -0
- package/dist/ldf/p-7d8427eb.js +4 -0
- package/dist/ldf/p-7dbfc316.js +1 -0
- package/dist/ldf/p-7e55016b.entry.js +1 -0
- package/dist/ldf/p-7e7ce516.js +4 -0
- package/dist/ldf/p-814a5a13.js +2 -0
- package/dist/ldf/p-81b0dc47.entry.js +1 -0
- package/dist/ldf/p-81e57a8c.entry.js +1 -0
- package/dist/ldf/p-8311f0dc.entry.js +4 -0
- package/dist/ldf/{p-84ab4f0c.entry.js → p-83ec2b27.entry.js} +1 -1
- package/dist/ldf/p-851881fb.entry.js +1 -0
- package/dist/ldf/p-8582914d.entry.js +1 -0
- package/dist/ldf/{p-ea66c343.entry.js → p-8d4a57f4.entry.js} +1 -1
- package/dist/ldf/p-924b2917.js +4 -0
- package/dist/ldf/p-924f3f49.js +4 -0
- package/dist/ldf/p-95c875aa.entry.js +1 -0
- package/dist/ldf/p-963ace47.entry.js +1 -0
- package/dist/ldf/p-98bed85f.entry.js +1 -0
- package/dist/ldf/p-98f56fbf.entry.js +21 -0
- package/dist/ldf/p-9a866be1.js +4 -0
- package/dist/ldf/p-a15235e5.entry.js +1 -0
- package/dist/ldf/{p-d195c957.entry.js → p-a2af4e4a.entry.js} +1 -1
- package/dist/ldf/p-a4c2fe67.entry.js +1 -0
- package/dist/ldf/p-a7f912f0.js +4 -0
- package/dist/ldf/{p-dc445c36.entry.js → p-ad00fdd0.entry.js} +1 -1
- package/dist/ldf/p-ad0bf896.entry.js +1 -0
- package/dist/ldf/p-add30d46.js +4 -0
- package/dist/ldf/p-b78117ea.js +4 -0
- package/dist/ldf/p-b791c821.entry.js +1 -0
- package/dist/ldf/p-b7c33573.js +4 -0
- package/dist/ldf/p-bcb0ac1a.entry.js +1 -0
- package/dist/ldf/p-bf0050d8.entry.js +1 -0
- package/dist/ldf/p-c0777dea.js +4 -0
- package/dist/ldf/p-c30ef23d.entry.js +1 -0
- package/dist/ldf/{p-b7388aec.entry.js → p-c394b5c0.entry.js} +1 -1
- package/dist/ldf/p-c5583a99.entry.js +1 -0
- package/dist/ldf/p-c6d911c3.entry.js +1 -0
- package/dist/ldf/{p-c6163f81.entry.js → p-ce2e4949.entry.js} +1 -1
- package/dist/ldf/p-d0088940.js +4 -0
- package/dist/ldf/p-d0606e37.entry.js +7 -0
- package/dist/ldf/p-d06a35ea.js +7 -0
- package/dist/ldf/p-d289236b.entry.js +1 -0
- package/dist/ldf/p-de8a07a7.entry.js +5 -0
- package/dist/ldf/p-df5eb5f6.entry.js +1 -0
- package/dist/ldf/p-e23817f2.entry.js +1 -0
- package/dist/ldf/{p-8932ec85.entry.js → p-e2f62b3b.entry.js} +1 -1
- package/dist/ldf/p-e6ca76b2.entry.js +1 -0
- package/dist/ldf/p-e8ce0eea.entry.js +1 -0
- package/dist/ldf/{p-791369ff.entry.js → p-e930dae9.entry.js} +1 -1
- package/dist/ldf/p-e9431eeb.js +7 -0
- package/dist/ldf/p-e9aa89e8.entry.js +4 -0
- package/dist/ldf/p-ee42b36f.entry.js +1 -0
- package/dist/ldf/p-ef9aa667.entry.js +1 -0
- package/dist/ldf/p-f18e0f91.entry.js +7 -0
- package/dist/ldf/p-f3cba72a.js +4 -0
- package/dist/ldf/p-f503561a.entry.js +1 -0
- package/dist/ldf/p-f67dae27.entry.js +1 -0
- package/dist/ldf/p-f6e844e9.entry.js +1 -0
- package/dist/ldf/p-fdd761c5.entry.js +1 -0
- package/dist/ldf/p-fed23985.js +4 -0
- package/dist/ldf/p-ff287d5e.js +4 -0
- package/dist/ldf/svg/accessibility-outline.svg +1 -0
- package/dist/ldf/svg/accessibility-sharp.svg +1 -0
- package/dist/ldf/svg/accessibility.svg +1 -0
- package/dist/ldf/svg/add-circle-outline.svg +1 -1
- package/dist/ldf/svg/add-circle-sharp.svg +1 -1
- package/dist/ldf/svg/add-circle.svg +1 -1
- package/dist/ldf/svg/add-outline.svg +1 -1
- package/dist/ldf/svg/add-sharp.svg +1 -1
- package/dist/ldf/svg/add.svg +1 -1
- package/dist/ldf/svg/airplane-outline.svg +1 -1
- package/dist/ldf/svg/airplane-sharp.svg +1 -1
- package/dist/ldf/svg/airplane.svg +1 -1
- package/dist/ldf/svg/alarm-outline.svg +1 -1
- package/dist/ldf/svg/alarm-sharp.svg +1 -1
- package/dist/ldf/svg/alarm.svg +1 -1
- package/dist/ldf/svg/albums-outline.svg +1 -1
- package/dist/ldf/svg/albums-sharp.svg +1 -1
- package/dist/ldf/svg/albums.svg +1 -1
- package/dist/ldf/svg/alert-circle-outline.svg +1 -1
- package/dist/ldf/svg/alert-circle-sharp.svg +1 -1
- package/dist/ldf/svg/alert-circle.svg +1 -1
- package/dist/ldf/svg/alert-outline.svg +1 -1
- package/dist/ldf/svg/alert-sharp.svg +1 -1
- package/dist/ldf/svg/alert.svg +1 -1
- package/dist/ldf/svg/american-football-outline.svg +1 -1
- package/dist/ldf/svg/american-football-sharp.svg +1 -1
- package/dist/ldf/svg/american-football.svg +1 -1
- package/dist/ldf/svg/analytics-outline.svg +1 -1
- package/dist/ldf/svg/analytics-sharp.svg +1 -1
- package/dist/ldf/svg/analytics.svg +1 -1
- package/dist/ldf/svg/aperture-outline.svg +1 -1
- package/dist/ldf/svg/aperture-sharp.svg +1 -1
- package/dist/ldf/svg/aperture.svg +1 -1
- package/dist/ldf/svg/apps-outline.svg +1 -1
- package/dist/ldf/svg/apps-sharp.svg +1 -1
- package/dist/ldf/svg/apps.svg +1 -1
- package/dist/ldf/svg/archive-outline.svg +1 -1
- package/dist/ldf/svg/archive-sharp.svg +1 -1
- package/dist/ldf/svg/archive.svg +1 -1
- package/dist/ldf/svg/arrow-back-circle-outline.svg +1 -1
- package/dist/ldf/svg/arrow-back-circle-sharp.svg +1 -1
- package/dist/ldf/svg/arrow-back-circle.svg +1 -1
- package/dist/ldf/svg/arrow-back-outline.svg +1 -1
- package/dist/ldf/svg/arrow-back-sharp.svg +1 -1
- package/dist/ldf/svg/arrow-back.svg +1 -1
- package/dist/ldf/svg/arrow-down-circle-outline.svg +1 -1
- package/dist/ldf/svg/arrow-down-circle-sharp.svg +1 -1
- package/dist/ldf/svg/arrow-down-circle.svg +1 -1
- package/dist/ldf/svg/arrow-down-outline.svg +1 -1
- package/dist/ldf/svg/arrow-down-sharp.svg +1 -1
- package/dist/ldf/svg/arrow-down.svg +1 -1
- package/dist/ldf/svg/arrow-forward-circle-outline.svg +1 -1
- package/dist/ldf/svg/arrow-forward-circle-sharp.svg +1 -1
- package/dist/ldf/svg/arrow-forward-circle.svg +1 -1
- package/dist/ldf/svg/arrow-forward-outline.svg +1 -1
- package/dist/ldf/svg/arrow-forward-sharp.svg +1 -1
- package/dist/ldf/svg/arrow-forward.svg +1 -1
- package/dist/ldf/svg/arrow-redo-circle-outline.svg +1 -1
- package/dist/ldf/svg/arrow-redo-circle-sharp.svg +1 -1
- package/dist/ldf/svg/arrow-redo-circle.svg +1 -1
- package/dist/ldf/svg/arrow-redo-outline.svg +1 -1
- package/dist/ldf/svg/arrow-redo-sharp.svg +1 -1
- package/dist/ldf/svg/arrow-redo.svg +1 -1
- package/dist/ldf/svg/arrow-undo-circle-outline.svg +1 -1
- package/dist/ldf/svg/arrow-undo-circle-sharp.svg +1 -1
- package/dist/ldf/svg/arrow-undo-circle.svg +1 -1
- package/dist/ldf/svg/arrow-undo-outline.svg +1 -1
- package/dist/ldf/svg/arrow-undo-sharp.svg +1 -1
- package/dist/ldf/svg/arrow-undo.svg +1 -1
- package/dist/ldf/svg/arrow-up-circle-outline.svg +1 -1
- package/dist/ldf/svg/arrow-up-circle-sharp.svg +1 -1
- package/dist/ldf/svg/arrow-up-circle.svg +1 -1
- package/dist/ldf/svg/arrow-up-outline.svg +1 -1
- package/dist/ldf/svg/arrow-up-sharp.svg +1 -1
- package/dist/ldf/svg/arrow-up.svg +1 -1
- package/dist/ldf/svg/at-circle-outline.svg +1 -1
- package/dist/ldf/svg/at-circle-sharp.svg +1 -1
- package/dist/ldf/svg/at-circle.svg +1 -1
- package/dist/ldf/svg/at-outline.svg +1 -1
- package/dist/ldf/svg/at-sharp.svg +1 -1
- package/dist/ldf/svg/at.svg +1 -1
- package/dist/ldf/svg/attach-outline.svg +1 -1
- package/dist/ldf/svg/attach-sharp.svg +1 -1
- package/dist/ldf/svg/attach.svg +1 -1
- package/dist/ldf/svg/backspace-outline.svg +1 -1
- package/dist/ldf/svg/backspace-sharp.svg +1 -1
- package/dist/ldf/svg/backspace.svg +1 -1
- package/dist/ldf/svg/bag-add-outline.svg +1 -0
- package/dist/ldf/svg/bag-add-sharp.svg +1 -0
- package/dist/ldf/svg/bag-add.svg +1 -0
- package/dist/ldf/svg/bag-check-outline.svg +1 -0
- package/dist/ldf/svg/bag-check-sharp.svg +1 -0
- package/dist/ldf/svg/bag-check.svg +1 -0
- package/dist/ldf/svg/bag-handle-outline.svg +1 -0
- package/dist/ldf/svg/bag-handle-sharp.svg +1 -0
- package/dist/ldf/svg/bag-handle.svg +1 -0
- package/dist/ldf/svg/bag-outline.svg +1 -0
- package/dist/ldf/svg/bag-remove-outline.svg +1 -0
- package/dist/ldf/svg/bag-remove-sharp.svg +1 -0
- package/dist/ldf/svg/bag-remove.svg +1 -0
- package/dist/ldf/svg/bag-sharp.svg +1 -0
- package/dist/ldf/svg/bag.svg +1 -0
- package/dist/ldf/svg/balloon-outline.svg +1 -0
- package/dist/ldf/svg/balloon-sharp.svg +1 -0
- package/dist/ldf/svg/balloon.svg +1 -0
- package/dist/ldf/svg/ban-outline.svg +1 -0
- package/dist/ldf/svg/ban-sharp.svg +1 -0
- package/dist/ldf/svg/ban.svg +1 -0
- package/dist/ldf/svg/bandage-outline.svg +1 -1
- package/dist/ldf/svg/bandage-sharp.svg +1 -1
- package/dist/ldf/svg/bandage.svg +1 -1
- package/dist/ldf/svg/bar-chart-outline.svg +1 -1
- package/dist/ldf/svg/bar-chart-sharp.svg +1 -1
- package/dist/ldf/svg/bar-chart.svg +1 -1
- package/dist/ldf/svg/barbell-outline.svg +1 -1
- package/dist/ldf/svg/barbell-sharp.svg +1 -1
- package/dist/ldf/svg/barbell.svg +1 -1
- package/dist/ldf/svg/barcode-outline.svg +1 -1
- package/dist/ldf/svg/barcode-sharp.svg +1 -1
- package/dist/ldf/svg/barcode.svg +1 -1
- package/dist/ldf/svg/baseball-outline.svg +1 -1
- package/dist/ldf/svg/baseball-sharp.svg +1 -1
- package/dist/ldf/svg/baseball.svg +1 -1
- package/dist/ldf/svg/basket-outline.svg +1 -1
- package/dist/ldf/svg/basket-sharp.svg +1 -1
- package/dist/ldf/svg/basket.svg +1 -1
- package/dist/ldf/svg/basketball-outline.svg +1 -1
- package/dist/ldf/svg/basketball-sharp.svg +1 -1
- package/dist/ldf/svg/basketball.svg +1 -1
- package/dist/ldf/svg/battery-charging-outline.svg +1 -1
- package/dist/ldf/svg/battery-charging-sharp.svg +1 -1
- package/dist/ldf/svg/battery-charging.svg +1 -1
- package/dist/ldf/svg/battery-dead-outline.svg +1 -1
- package/dist/ldf/svg/battery-dead-sharp.svg +1 -1
- package/dist/ldf/svg/battery-dead.svg +1 -1
- package/dist/ldf/svg/battery-full-outline.svg +1 -1
- package/dist/ldf/svg/battery-full-sharp.svg +1 -1
- package/dist/ldf/svg/battery-full.svg +1 -1
- package/dist/ldf/svg/battery-half-outline.svg +1 -1
- package/dist/ldf/svg/battery-half-sharp.svg +1 -1
- package/dist/ldf/svg/battery-half.svg +1 -1
- package/dist/ldf/svg/beaker-outline.svg +1 -1
- package/dist/ldf/svg/beaker-sharp.svg +1 -1
- package/dist/ldf/svg/beaker.svg +1 -1
- package/dist/ldf/svg/bed-outline.svg +1 -1
- package/dist/ldf/svg/bed-sharp.svg +1 -1
- package/dist/ldf/svg/bed.svg +1 -1
- package/dist/ldf/svg/beer-outline.svg +1 -1
- package/dist/ldf/svg/beer-sharp.svg +1 -1
- package/dist/ldf/svg/beer.svg +1 -1
- package/dist/ldf/svg/bicycle-outline.svg +1 -1
- package/dist/ldf/svg/bicycle-sharp.svg +1 -1
- package/dist/ldf/svg/bicycle.svg +1 -1
- package/dist/ldf/svg/bluetooth-outline.svg +1 -1
- package/dist/ldf/svg/bluetooth-sharp.svg +1 -1
- package/dist/ldf/svg/bluetooth.svg +1 -1
- package/dist/ldf/svg/boat-outline.svg +1 -1
- package/dist/ldf/svg/boat-sharp.svg +1 -1
- package/dist/ldf/svg/boat.svg +1 -1
- package/dist/ldf/svg/body-outline.svg +1 -1
- package/dist/ldf/svg/body-sharp.svg +1 -1
- package/dist/ldf/svg/body.svg +1 -1
- package/dist/ldf/svg/bonfire-outline.svg +1 -1
- package/dist/ldf/svg/bonfire-sharp.svg +1 -1
- package/dist/ldf/svg/bonfire.svg +1 -1
- package/dist/ldf/svg/book-outline.svg +1 -1
- package/dist/ldf/svg/book-sharp.svg +1 -1
- package/dist/ldf/svg/book.svg +1 -1
- package/dist/ldf/svg/bookmark-outline.svg +1 -1
- package/dist/ldf/svg/bookmark-sharp.svg +1 -1
- package/dist/ldf/svg/bookmark.svg +1 -1
- package/dist/ldf/svg/bookmarks-outline.svg +1 -1
- package/dist/ldf/svg/bookmarks-sharp.svg +1 -1
- package/dist/ldf/svg/bookmarks.svg +1 -1
- package/dist/ldf/svg/bowling-ball-outline.svg +1 -0
- package/dist/ldf/svg/bowling-ball-sharp.svg +1 -0
- package/dist/ldf/svg/bowling-ball.svg +1 -0
- package/dist/ldf/svg/briefcase-outline.svg +1 -1
- package/dist/ldf/svg/briefcase-sharp.svg +1 -1
- package/dist/ldf/svg/briefcase.svg +1 -1
- package/dist/ldf/svg/browsers-outline.svg +1 -1
- package/dist/ldf/svg/browsers-sharp.svg +1 -1
- package/dist/ldf/svg/browsers.svg +1 -1
- package/dist/ldf/svg/brush-outline.svg +1 -1
- package/dist/ldf/svg/brush-sharp.svg +1 -1
- package/dist/ldf/svg/brush.svg +1 -1
- package/dist/ldf/svg/bug-outline.svg +1 -1
- package/dist/ldf/svg/bug-sharp.svg +1 -1
- package/dist/ldf/svg/bug.svg +1 -1
- package/dist/ldf/svg/build-outline.svg +1 -1
- package/dist/ldf/svg/build-sharp.svg +1 -1
- package/dist/ldf/svg/build.svg +1 -1
- package/dist/ldf/svg/bulb-outline.svg +1 -1
- package/dist/ldf/svg/bulb-sharp.svg +1 -1
- package/dist/ldf/svg/bulb.svg +1 -1
- package/dist/ldf/svg/bus-outline.svg +1 -1
- package/dist/ldf/svg/bus-sharp.svg +1 -1
- package/dist/ldf/svg/bus.svg +1 -1
- package/dist/ldf/svg/business-outline.svg +1 -1
- package/dist/ldf/svg/business-sharp.svg +1 -1
- package/dist/ldf/svg/business.svg +1 -1
- package/dist/ldf/svg/cafe-outline.svg +1 -1
- package/dist/ldf/svg/cafe-sharp.svg +1 -1
- package/dist/ldf/svg/cafe.svg +1 -1
- package/dist/ldf/svg/calculator-outline.svg +1 -1
- package/dist/ldf/svg/calculator-sharp.svg +1 -1
- package/dist/ldf/svg/calculator.svg +1 -1
- package/dist/ldf/svg/calendar-clear-outline.svg +1 -0
- package/dist/ldf/svg/calendar-clear-sharp.svg +1 -0
- package/dist/ldf/svg/calendar-clear.svg +1 -0
- package/dist/ldf/svg/calendar-number-outline.svg +1 -0
- package/dist/ldf/svg/calendar-number-sharp.svg +1 -0
- package/dist/ldf/svg/calendar-number.svg +1 -0
- package/dist/ldf/svg/calendar-outline.svg +1 -1
- package/dist/ldf/svg/calendar-sharp.svg +1 -1
- package/dist/ldf/svg/calendar.svg +1 -1
- package/dist/ldf/svg/call-outline.svg +1 -1
- package/dist/ldf/svg/call-sharp.svg +1 -1
- package/dist/ldf/svg/call.svg +1 -1
- package/dist/ldf/svg/camera-outline.svg +1 -1
- package/dist/ldf/svg/camera-reverse-outline.svg +1 -1
- package/dist/ldf/svg/camera-reverse-sharp.svg +1 -1
- package/dist/ldf/svg/camera-reverse.svg +1 -1
- package/dist/ldf/svg/camera-sharp.svg +1 -1
- package/dist/ldf/svg/camera.svg +1 -1
- package/dist/ldf/svg/car-outline.svg +1 -1
- package/dist/ldf/svg/car-sharp.svg +1 -1
- package/dist/ldf/svg/car-sport-outline.svg +1 -1
- package/dist/ldf/svg/car-sport-sharp.svg +1 -1
- package/dist/ldf/svg/car-sport.svg +1 -1
- package/dist/ldf/svg/car.svg +1 -1
- package/dist/ldf/svg/card-outline.svg +1 -1
- package/dist/ldf/svg/card-sharp.svg +1 -1
- package/dist/ldf/svg/card.svg +1 -1
- package/dist/ldf/svg/caret-back-circle-outline.svg +1 -1
- package/dist/ldf/svg/caret-back-circle-sharp.svg +1 -1
- package/dist/ldf/svg/caret-back-circle.svg +1 -1
- package/dist/ldf/svg/caret-back-outline.svg +1 -1
- package/dist/ldf/svg/caret-back-sharp.svg +1 -1
- package/dist/ldf/svg/caret-back.svg +1 -1
- package/dist/ldf/svg/caret-down-circle-outline.svg +1 -1
- package/dist/ldf/svg/caret-down-circle-sharp.svg +1 -1
- package/dist/ldf/svg/caret-down-circle.svg +1 -1
- package/dist/ldf/svg/caret-down-outline.svg +1 -1
- package/dist/ldf/svg/caret-down-sharp.svg +1 -1
- package/dist/ldf/svg/caret-down.svg +1 -1
- package/dist/ldf/svg/caret-forward-circle-outline.svg +1 -1
- package/dist/ldf/svg/caret-forward-circle-sharp.svg +1 -1
- package/dist/ldf/svg/caret-forward-circle.svg +1 -1
- package/dist/ldf/svg/caret-forward-outline.svg +1 -1
- package/dist/ldf/svg/caret-forward-sharp.svg +1 -1
- package/dist/ldf/svg/caret-forward.svg +1 -1
- package/dist/ldf/svg/caret-up-circle-outline.svg +1 -1
- package/dist/ldf/svg/caret-up-circle-sharp.svg +1 -1
- package/dist/ldf/svg/caret-up-circle.svg +1 -1
- package/dist/ldf/svg/caret-up-outline.svg +1 -1
- package/dist/ldf/svg/caret-up-sharp.svg +1 -1
- package/dist/ldf/svg/caret-up.svg +1 -1
- package/dist/ldf/svg/cart-outline.svg +1 -1
- package/dist/ldf/svg/cart-sharp.svg +1 -1
- package/dist/ldf/svg/cart.svg +1 -1
- package/dist/ldf/svg/cash-outline.svg +1 -1
- package/dist/ldf/svg/cash-sharp.svg +1 -1
- package/dist/ldf/svg/cash.svg +1 -1
- package/dist/ldf/svg/cellular-outline.svg +1 -1
- package/dist/ldf/svg/cellular-sharp.svg +1 -1
- package/dist/ldf/svg/cellular.svg +1 -1
- package/dist/ldf/svg/chatbox-ellipses-outline.svg +1 -1
- package/dist/ldf/svg/chatbox-ellipses-sharp.svg +1 -1
- package/dist/ldf/svg/chatbox-ellipses.svg +1 -1
- package/dist/ldf/svg/chatbox-outline.svg +1 -1
- package/dist/ldf/svg/chatbox-sharp.svg +1 -1
- package/dist/ldf/svg/chatbox.svg +1 -1
- package/dist/ldf/svg/chatbubble-ellipses-outline.svg +1 -1
- package/dist/ldf/svg/chatbubble-ellipses-sharp.svg +1 -1
- package/dist/ldf/svg/chatbubble-ellipses.svg +1 -1
- package/dist/ldf/svg/chatbubble-outline.svg +1 -1
- package/dist/ldf/svg/chatbubble-sharp.svg +1 -1
- package/dist/ldf/svg/chatbubble.svg +1 -1
- package/dist/ldf/svg/chatbubbles-outline.svg +1 -1
- package/dist/ldf/svg/chatbubbles-sharp.svg +1 -1
- package/dist/ldf/svg/chatbubbles.svg +1 -1
- package/dist/ldf/svg/checkbox-outline.svg +1 -1
- package/dist/ldf/svg/checkbox-sharp.svg +1 -1
- package/dist/ldf/svg/checkbox.svg +1 -1
- package/dist/ldf/svg/checkmark-circle-outline.svg +1 -1
- package/dist/ldf/svg/checkmark-circle-sharp.svg +1 -1
- package/dist/ldf/svg/checkmark-circle.svg +1 -1
- package/dist/ldf/svg/checkmark-done-circle-outline.svg +1 -1
- package/dist/ldf/svg/checkmark-done-circle-sharp.svg +1 -1
- package/dist/ldf/svg/checkmark-done-circle.svg +1 -1
- package/dist/ldf/svg/checkmark-done-outline.svg +1 -1
- package/dist/ldf/svg/checkmark-done-sharp.svg +1 -1
- package/dist/ldf/svg/checkmark-done.svg +1 -1
- package/dist/ldf/svg/checkmark-outline.svg +1 -1
- package/dist/ldf/svg/checkmark-sharp.svg +1 -1
- package/dist/ldf/svg/checkmark.svg +1 -1
- package/dist/ldf/svg/chevron-back-circle-outline.svg +1 -1
- package/dist/ldf/svg/chevron-back-circle-sharp.svg +1 -1
- package/dist/ldf/svg/chevron-back-circle.svg +1 -1
- package/dist/ldf/svg/chevron-back-outline.svg +1 -1
- package/dist/ldf/svg/chevron-back-sharp.svg +1 -1
- package/dist/ldf/svg/chevron-back.svg +1 -1
- package/dist/ldf/svg/chevron-down-circle-outline.svg +1 -1
- package/dist/ldf/svg/chevron-down-circle-sharp.svg +1 -1
- package/dist/ldf/svg/chevron-down-circle.svg +1 -1
- package/dist/ldf/svg/chevron-down-outline.svg +1 -1
- package/dist/ldf/svg/chevron-down-sharp.svg +1 -1
- package/dist/ldf/svg/chevron-down.svg +1 -1
- package/dist/ldf/svg/chevron-forward-circle-outline.svg +1 -1
- package/dist/ldf/svg/chevron-forward-circle-sharp.svg +1 -1
- package/dist/ldf/svg/chevron-forward-circle.svg +1 -1
- package/dist/ldf/svg/chevron-forward-outline.svg +1 -1
- package/dist/ldf/svg/chevron-forward-sharp.svg +1 -1
- package/dist/ldf/svg/chevron-forward.svg +1 -1
- package/dist/ldf/svg/chevron-up-circle-outline.svg +1 -1
- package/dist/ldf/svg/chevron-up-circle-sharp.svg +1 -1
- package/dist/ldf/svg/chevron-up-circle.svg +1 -1
- package/dist/ldf/svg/chevron-up-outline.svg +1 -1
- package/dist/ldf/svg/chevron-up-sharp.svg +1 -1
- package/dist/ldf/svg/chevron-up.svg +1 -1
- package/dist/ldf/svg/clipboard-outline.svg +1 -1
- package/dist/ldf/svg/clipboard-sharp.svg +1 -1
- package/dist/ldf/svg/clipboard.svg +1 -1
- package/dist/ldf/svg/close-circle-outline.svg +1 -1
- package/dist/ldf/svg/close-circle-sharp.svg +1 -1
- package/dist/ldf/svg/close-circle.svg +1 -1
- package/dist/ldf/svg/close-outline.svg +1 -1
- package/dist/ldf/svg/close-sharp.svg +1 -1
- package/dist/ldf/svg/close.svg +1 -1
- package/dist/ldf/svg/cloud-circle-outline.svg +1 -1
- package/dist/ldf/svg/cloud-circle-sharp.svg +1 -1
- package/dist/ldf/svg/cloud-circle.svg +1 -1
- package/dist/ldf/svg/cloud-done-outline.svg +1 -1
- package/dist/ldf/svg/cloud-done-sharp.svg +1 -1
- package/dist/ldf/svg/cloud-done.svg +1 -1
- package/dist/ldf/svg/cloud-download-outline.svg +1 -1
- package/dist/ldf/svg/cloud-download-sharp.svg +1 -1
- package/dist/ldf/svg/cloud-download.svg +1 -1
- package/dist/ldf/svg/cloud-offline-outline.svg +1 -1
- package/dist/ldf/svg/cloud-offline-sharp.svg +1 -1
- package/dist/ldf/svg/cloud-offline.svg +1 -1
- package/dist/ldf/svg/cloud-outline.svg +1 -1
- package/dist/ldf/svg/cloud-sharp.svg +1 -1
- package/dist/ldf/svg/cloud-upload-outline.svg +1 -1
- package/dist/ldf/svg/cloud-upload-sharp.svg +1 -1
- package/dist/ldf/svg/cloud-upload.svg +1 -1
- package/dist/ldf/svg/cloud.svg +1 -1
- package/dist/ldf/svg/cloudy-night-outline.svg +1 -1
- package/dist/ldf/svg/cloudy-night-sharp.svg +1 -1
- package/dist/ldf/svg/cloudy-night.svg +1 -1
- package/dist/ldf/svg/cloudy-outline.svg +1 -1
- package/dist/ldf/svg/cloudy-sharp.svg +1 -1
- package/dist/ldf/svg/cloudy.svg +1 -1
- package/dist/ldf/svg/code-download-outline.svg +1 -1
- package/dist/ldf/svg/code-download-sharp.svg +1 -1
- package/dist/ldf/svg/code-download.svg +1 -1
- package/dist/ldf/svg/code-outline.svg +1 -1
- package/dist/ldf/svg/code-sharp.svg +1 -1
- package/dist/ldf/svg/code-slash-outline.svg +1 -1
- package/dist/ldf/svg/code-slash-sharp.svg +1 -1
- package/dist/ldf/svg/code-slash.svg +1 -1
- package/dist/ldf/svg/code-working-outline.svg +1 -1
- package/dist/ldf/svg/code-working-sharp.svg +1 -1
- package/dist/ldf/svg/code-working.svg +1 -1
- package/dist/ldf/svg/code.svg +1 -1
- package/dist/ldf/svg/cog-outline.svg +1 -1
- package/dist/ldf/svg/cog-sharp.svg +1 -1
- package/dist/ldf/svg/cog.svg +1 -1
- package/dist/ldf/svg/color-fill-outline.svg +1 -1
- package/dist/ldf/svg/color-fill-sharp.svg +1 -1
- package/dist/ldf/svg/color-fill.svg +1 -1
- package/dist/ldf/svg/color-filter-outline.svg +1 -1
- package/dist/ldf/svg/color-filter-sharp.svg +1 -1
- package/dist/ldf/svg/color-filter.svg +1 -1
- package/dist/ldf/svg/color-palette-outline.svg +1 -1
- package/dist/ldf/svg/color-palette-sharp.svg +1 -1
- package/dist/ldf/svg/color-palette.svg +1 -1
- package/dist/ldf/svg/color-wand-outline.svg +1 -1
- package/dist/ldf/svg/color-wand-sharp.svg +1 -1
- package/dist/ldf/svg/color-wand.svg +1 -1
- package/dist/ldf/svg/compass-outline.svg +1 -1
- package/dist/ldf/svg/compass-sharp.svg +1 -1
- package/dist/ldf/svg/compass.svg +1 -1
- package/dist/ldf/svg/construct-outline.svg +1 -1
- package/dist/ldf/svg/construct-sharp.svg +1 -1
- package/dist/ldf/svg/construct.svg +1 -1
- package/dist/ldf/svg/contract-outline.svg +1 -1
- package/dist/ldf/svg/contract-sharp.svg +1 -1
- package/dist/ldf/svg/contract.svg +1 -1
- package/dist/ldf/svg/contrast-outline.svg +1 -1
- package/dist/ldf/svg/contrast-sharp.svg +1 -1
- package/dist/ldf/svg/contrast.svg +1 -1
- package/dist/ldf/svg/copy-outline.svg +1 -1
- package/dist/ldf/svg/copy-sharp.svg +1 -1
- package/dist/ldf/svg/copy.svg +1 -1
- package/dist/ldf/svg/create-outline.svg +1 -1
- package/dist/ldf/svg/create-sharp.svg +1 -1
- package/dist/ldf/svg/create.svg +1 -1
- package/dist/ldf/svg/crop-outline.svg +1 -1
- package/dist/ldf/svg/crop-sharp.svg +1 -1
- package/dist/ldf/svg/crop.svg +1 -1
- package/dist/ldf/svg/cube-outline.svg +1 -1
- package/dist/ldf/svg/cube-sharp.svg +1 -1
- package/dist/ldf/svg/cube.svg +1 -1
- package/dist/ldf/svg/cut-outline.svg +1 -1
- package/dist/ldf/svg/cut-sharp.svg +1 -1
- package/dist/ldf/svg/cut.svg +1 -1
- package/dist/ldf/svg/desktop-outline.svg +1 -1
- package/dist/ldf/svg/desktop-sharp.svg +1 -1
- package/dist/ldf/svg/desktop.svg +1 -1
- package/dist/ldf/svg/diamond-outline.svg +1 -0
- package/dist/ldf/svg/diamond-sharp.svg +1 -0
- package/dist/ldf/svg/diamond.svg +1 -0
- package/dist/ldf/svg/dice-outline.svg +1 -0
- package/dist/ldf/svg/dice-sharp.svg +1 -0
- package/dist/ldf/svg/dice.svg +1 -0
- package/dist/ldf/svg/disc-outline.svg +1 -1
- package/dist/ldf/svg/disc-sharp.svg +1 -1
- package/dist/ldf/svg/disc.svg +1 -1
- package/dist/ldf/svg/document-attach-outline.svg +1 -1
- package/dist/ldf/svg/document-attach-sharp.svg +1 -1
- package/dist/ldf/svg/document-attach.svg +1 -1
- package/dist/ldf/svg/document-lock-outline.svg +1 -0
- package/dist/ldf/svg/document-lock-sharp.svg +1 -0
- package/dist/ldf/svg/document-lock.svg +1 -0
- package/dist/ldf/svg/document-outline.svg +1 -1
- package/dist/ldf/svg/document-sharp.svg +1 -1
- package/dist/ldf/svg/document-text-outline.svg +1 -1
- package/dist/ldf/svg/document-text-sharp.svg +1 -1
- package/dist/ldf/svg/document-text.svg +1 -1
- package/dist/ldf/svg/document.svg +1 -1
- package/dist/ldf/svg/documents-outline.svg +1 -1
- package/dist/ldf/svg/documents-sharp.svg +1 -1
- package/dist/ldf/svg/documents.svg +1 -1
- package/dist/ldf/svg/download-outline.svg +1 -1
- package/dist/ldf/svg/download-sharp.svg +1 -1
- package/dist/ldf/svg/download.svg +1 -1
- package/dist/ldf/svg/duplicate-outline.svg +1 -1
- package/dist/ldf/svg/duplicate-sharp.svg +1 -1
- package/dist/ldf/svg/duplicate.svg +1 -1
- package/dist/ldf/svg/ear-outline.svg +1 -1
- package/dist/ldf/svg/ear-sharp.svg +1 -1
- package/dist/ldf/svg/ear.svg +1 -1
- package/dist/ldf/svg/earth-outline.svg +1 -1
- package/dist/ldf/svg/earth-sharp.svg +1 -1
- package/dist/ldf/svg/earth.svg +1 -1
- package/dist/ldf/svg/easel-outline.svg +1 -1
- package/dist/ldf/svg/easel-sharp.svg +1 -1
- package/dist/ldf/svg/easel.svg +1 -1
- package/dist/ldf/svg/egg-outline.svg +1 -1
- package/dist/ldf/svg/egg-sharp.svg +1 -1
- package/dist/ldf/svg/egg.svg +1 -1
- package/dist/ldf/svg/ellipse-outline.svg +1 -1
- package/dist/ldf/svg/ellipse-sharp.svg +1 -1
- package/dist/ldf/svg/ellipse.svg +1 -1
- package/dist/ldf/svg/ellipsis-horizontal-circle-outline.svg +1 -1
- package/dist/ldf/svg/ellipsis-horizontal-circle-sharp.svg +1 -1
- package/dist/ldf/svg/ellipsis-horizontal-circle.svg +1 -1
- package/dist/ldf/svg/ellipsis-horizontal-outline.svg +1 -1
- package/dist/ldf/svg/ellipsis-horizontal-sharp.svg +1 -1
- package/dist/ldf/svg/ellipsis-horizontal.svg +1 -1
- package/dist/ldf/svg/ellipsis-vertical-circle-outline.svg +1 -1
- package/dist/ldf/svg/ellipsis-vertical-circle-sharp.svg +1 -1
- package/dist/ldf/svg/ellipsis-vertical-circle.svg +1 -1
- package/dist/ldf/svg/ellipsis-vertical-outline.svg +1 -1
- package/dist/ldf/svg/ellipsis-vertical-sharp.svg +1 -1
- package/dist/ldf/svg/ellipsis-vertical.svg +1 -1
- package/dist/ldf/svg/enter-outline.svg +1 -1
- package/dist/ldf/svg/enter-sharp.svg +1 -1
- package/dist/ldf/svg/enter.svg +1 -1
- package/dist/ldf/svg/exit-outline.svg +1 -1
- package/dist/ldf/svg/exit-sharp.svg +1 -1
- package/dist/ldf/svg/exit.svg +1 -1
- package/dist/ldf/svg/expand-outline.svg +1 -1
- package/dist/ldf/svg/expand-sharp.svg +1 -1
- package/dist/ldf/svg/expand.svg +1 -1
- package/dist/ldf/svg/extension-puzzle-outline.svg +1 -0
- package/dist/ldf/svg/extension-puzzle-sharp.svg +1 -0
- package/dist/ldf/svg/extension-puzzle.svg +1 -0
- package/dist/ldf/svg/eye-off-outline.svg +1 -1
- package/dist/ldf/svg/eye-off-sharp.svg +1 -1
- package/dist/ldf/svg/eye-off.svg +1 -1
- package/dist/ldf/svg/eye-outline.svg +1 -1
- package/dist/ldf/svg/eye-sharp.svg +1 -1
- package/dist/ldf/svg/eye.svg +1 -1
- package/dist/ldf/svg/eyedrop-outline.svg +1 -1
- package/dist/ldf/svg/eyedrop-sharp.svg +1 -1
- package/dist/ldf/svg/eyedrop.svg +1 -1
- package/dist/ldf/svg/fast-food-outline.svg +1 -1
- package/dist/ldf/svg/fast-food-sharp.svg +1 -1
- package/dist/ldf/svg/fast-food.svg +1 -1
- package/dist/ldf/svg/female-outline.svg +1 -1
- package/dist/ldf/svg/female-sharp.svg +1 -1
- package/dist/ldf/svg/female.svg +1 -1
- package/dist/ldf/svg/file-tray-full-outline.svg +1 -1
- package/dist/ldf/svg/file-tray-full-sharp.svg +1 -1
- package/dist/ldf/svg/file-tray-full.svg +1 -1
- package/dist/ldf/svg/file-tray-outline.svg +1 -1
- package/dist/ldf/svg/file-tray-sharp.svg +1 -1
- package/dist/ldf/svg/file-tray-stacked-outline.svg +1 -1
- package/dist/ldf/svg/file-tray-stacked-sharp.svg +1 -1
- package/dist/ldf/svg/file-tray-stacked.svg +1 -1
- package/dist/ldf/svg/file-tray.svg +1 -1
- package/dist/ldf/svg/film-outline.svg +1 -1
- package/dist/ldf/svg/film-sharp.svg +1 -1
- package/dist/ldf/svg/film.svg +1 -1
- package/dist/ldf/svg/filter-circle-outline.svg +1 -0
- package/dist/ldf/svg/filter-circle-sharp.svg +1 -0
- package/dist/ldf/svg/filter-circle.svg +1 -0
- package/dist/ldf/svg/filter-outline.svg +1 -1
- package/dist/ldf/svg/filter-sharp.svg +1 -1
- package/dist/ldf/svg/filter.svg +1 -1
- package/dist/ldf/svg/finger-print-outline.svg +1 -1
- package/dist/ldf/svg/finger-print-sharp.svg +1 -1
- package/dist/ldf/svg/finger-print.svg +1 -1
- package/dist/ldf/svg/fish-outline.svg +1 -0
- package/dist/ldf/svg/fish-sharp.svg +1 -0
- package/dist/ldf/svg/fish.svg +1 -0
- package/dist/ldf/svg/fitness-outline.svg +1 -1
- package/dist/ldf/svg/fitness-sharp.svg +1 -1
- package/dist/ldf/svg/fitness.svg +1 -1
- package/dist/ldf/svg/flag-outline.svg +1 -1
- package/dist/ldf/svg/flag-sharp.svg +1 -1
- package/dist/ldf/svg/flag.svg +1 -1
- package/dist/ldf/svg/flame-outline.svg +1 -1
- package/dist/ldf/svg/flame-sharp.svg +1 -1
- package/dist/ldf/svg/flame.svg +1 -1
- package/dist/ldf/svg/flash-off-outline.svg +1 -1
- package/dist/ldf/svg/flash-off-sharp.svg +1 -1
- package/dist/ldf/svg/flash-off.svg +1 -1
- package/dist/ldf/svg/flash-outline.svg +1 -1
- package/dist/ldf/svg/flash-sharp.svg +1 -1
- package/dist/ldf/svg/flash.svg +1 -1
- package/dist/ldf/svg/flashlight-outline.svg +1 -1
- package/dist/ldf/svg/flashlight-sharp.svg +1 -1
- package/dist/ldf/svg/flashlight.svg +1 -1
- package/dist/ldf/svg/flask-outline.svg +1 -1
- package/dist/ldf/svg/flask-sharp.svg +1 -1
- package/dist/ldf/svg/flask.svg +1 -1
- package/dist/ldf/svg/flower-outline.svg +1 -1
- package/dist/ldf/svg/flower-sharp.svg +1 -1
- package/dist/ldf/svg/flower.svg +1 -1
- package/dist/ldf/svg/folder-open-outline.svg +1 -1
- package/dist/ldf/svg/folder-open-sharp.svg +1 -1
- package/dist/ldf/svg/folder-open.svg +1 -1
- package/dist/ldf/svg/folder-outline.svg +1 -1
- package/dist/ldf/svg/folder-sharp.svg +1 -1
- package/dist/ldf/svg/folder.svg +1 -1
- package/dist/ldf/svg/football-outline.svg +1 -1
- package/dist/ldf/svg/football-sharp.svg +1 -1
- package/dist/ldf/svg/football.svg +1 -1
- package/dist/ldf/svg/footsteps-outline.svg +1 -0
- package/dist/ldf/svg/footsteps-sharp.svg +1 -0
- package/dist/ldf/svg/footsteps.svg +1 -0
- package/dist/ldf/svg/funnel-outline.svg +1 -1
- package/dist/ldf/svg/funnel-sharp.svg +1 -1
- package/dist/ldf/svg/funnel.svg +1 -1
- package/dist/ldf/svg/game-controller-outline.svg +1 -1
- package/dist/ldf/svg/game-controller-sharp.svg +1 -1
- package/dist/ldf/svg/game-controller.svg +1 -1
- package/dist/ldf/svg/gift-outline.svg +1 -1
- package/dist/ldf/svg/gift-sharp.svg +1 -1
- package/dist/ldf/svg/gift.svg +1 -1
- package/dist/ldf/svg/git-branch-outline.svg +1 -1
- package/dist/ldf/svg/git-branch-sharp.svg +1 -1
- package/dist/ldf/svg/git-branch.svg +1 -1
- package/dist/ldf/svg/git-commit-outline.svg +1 -1
- package/dist/ldf/svg/git-commit-sharp.svg +1 -1
- package/dist/ldf/svg/git-commit.svg +1 -1
- package/dist/ldf/svg/git-compare-outline.svg +1 -1
- package/dist/ldf/svg/git-compare-sharp.svg +1 -1
- package/dist/ldf/svg/git-compare.svg +1 -1
- package/dist/ldf/svg/git-merge-outline.svg +1 -1
- package/dist/ldf/svg/git-merge-sharp.svg +1 -1
- package/dist/ldf/svg/git-merge.svg +1 -1
- package/dist/ldf/svg/git-network-outline.svg +1 -1
- package/dist/ldf/svg/git-network-sharp.svg +1 -1
- package/dist/ldf/svg/git-network.svg +1 -1
- package/dist/ldf/svg/git-pull-request-outline.svg +1 -1
- package/dist/ldf/svg/git-pull-request-sharp.svg +1 -1
- package/dist/ldf/svg/git-pull-request.svg +1 -1
- package/dist/ldf/svg/glasses-outline.svg +1 -1
- package/dist/ldf/svg/glasses-sharp.svg +1 -1
- package/dist/ldf/svg/glasses.svg +1 -1
- package/dist/ldf/svg/globe-outline.svg +1 -1
- package/dist/ldf/svg/globe-sharp.svg +1 -1
- package/dist/ldf/svg/globe.svg +1 -1
- package/dist/ldf/svg/golf-outline.svg +1 -1
- package/dist/ldf/svg/golf-sharp.svg +1 -1
- package/dist/ldf/svg/golf.svg +1 -1
- package/dist/ldf/svg/grid-outline.svg +1 -1
- package/dist/ldf/svg/grid-sharp.svg +1 -1
- package/dist/ldf/svg/grid.svg +1 -1
- package/dist/ldf/svg/hammer-outline.svg +1 -1
- package/dist/ldf/svg/hammer-sharp.svg +1 -1
- package/dist/ldf/svg/hammer.svg +1 -1
- package/dist/ldf/svg/hand-left-outline.svg +1 -1
- package/dist/ldf/svg/hand-left-sharp.svg +1 -1
- package/dist/ldf/svg/hand-left.svg +1 -1
- package/dist/ldf/svg/hand-right-outline.svg +1 -1
- package/dist/ldf/svg/hand-right-sharp.svg +1 -1
- package/dist/ldf/svg/hand-right.svg +1 -1
- package/dist/ldf/svg/happy-outline.svg +1 -1
- package/dist/ldf/svg/happy-sharp.svg +1 -1
- package/dist/ldf/svg/happy.svg +1 -1
- package/dist/ldf/svg/hardware-chip-outline.svg +1 -1
- package/dist/ldf/svg/hardware-chip-sharp.svg +1 -1
- package/dist/ldf/svg/hardware-chip.svg +1 -1
- package/dist/ldf/svg/headset-outline.svg +1 -1
- package/dist/ldf/svg/headset-sharp.svg +1 -1
- package/dist/ldf/svg/headset.svg +1 -1
- package/dist/ldf/svg/heart-circle-outline.svg +1 -1
- package/dist/ldf/svg/heart-circle-sharp.svg +1 -1
- package/dist/ldf/svg/heart-circle.svg +1 -1
- package/dist/ldf/svg/heart-dislike-circle-outline.svg +1 -1
- package/dist/ldf/svg/heart-dislike-circle-sharp.svg +1 -1
- package/dist/ldf/svg/heart-dislike-circle.svg +1 -1
- package/dist/ldf/svg/heart-dislike-outline.svg +1 -1
- package/dist/ldf/svg/heart-dislike-sharp.svg +1 -1
- package/dist/ldf/svg/heart-dislike.svg +1 -1
- package/dist/ldf/svg/heart-half-outline.svg +1 -1
- package/dist/ldf/svg/heart-half-sharp.svg +1 -1
- package/dist/ldf/svg/heart-half.svg +1 -1
- package/dist/ldf/svg/heart-outline.svg +1 -1
- package/dist/ldf/svg/heart-sharp.svg +1 -1
- package/dist/ldf/svg/heart.svg +1 -1
- package/dist/ldf/svg/help-buoy-outline.svg +1 -1
- package/dist/ldf/svg/help-buoy-sharp.svg +1 -1
- package/dist/ldf/svg/help-buoy.svg +1 -1
- package/dist/ldf/svg/help-circle-outline.svg +1 -1
- package/dist/ldf/svg/help-circle-sharp.svg +1 -1
- package/dist/ldf/svg/help-circle.svg +1 -1
- package/dist/ldf/svg/help-outline.svg +1 -1
- package/dist/ldf/svg/help-sharp.svg +1 -1
- package/dist/ldf/svg/help.svg +1 -1
- package/dist/ldf/svg/home-outline.svg +1 -1
- package/dist/ldf/svg/home-sharp.svg +1 -1
- package/dist/ldf/svg/home.svg +1 -1
- package/dist/ldf/svg/hourglass-outline.svg +1 -1
- package/dist/ldf/svg/hourglass-sharp.svg +1 -1
- package/dist/ldf/svg/hourglass.svg +1 -1
- package/dist/ldf/svg/ice-cream-outline.svg +1 -1
- package/dist/ldf/svg/ice-cream-sharp.svg +1 -1
- package/dist/ldf/svg/ice-cream.svg +1 -1
- package/dist/ldf/svg/id-card-outline.svg +1 -0
- package/dist/ldf/svg/id-card-sharp.svg +1 -0
- package/dist/ldf/svg/id-card.svg +1 -0
- package/dist/ldf/svg/image-outline.svg +1 -1
- package/dist/ldf/svg/image-sharp.svg +1 -1
- package/dist/ldf/svg/image.svg +1 -1
- package/dist/ldf/svg/images-outline.svg +1 -1
- package/dist/ldf/svg/images-sharp.svg +1 -1
- package/dist/ldf/svg/images.svg +1 -1
- package/dist/ldf/svg/infinite-outline.svg +1 -1
- package/dist/ldf/svg/infinite-sharp.svg +1 -1
- package/dist/ldf/svg/infinite.svg +1 -1
- package/dist/ldf/svg/information-circle-outline.svg +1 -1
- package/dist/ldf/svg/information-circle-sharp.svg +1 -1
- package/dist/ldf/svg/information-circle.svg +1 -1
- package/dist/ldf/svg/information-outline.svg +1 -1
- package/dist/ldf/svg/information-sharp.svg +1 -1
- package/dist/ldf/svg/information.svg +1 -1
- package/dist/ldf/svg/invert-mode-outline.svg +1 -0
- package/dist/ldf/svg/invert-mode-sharp.svg +1 -0
- package/dist/ldf/svg/invert-mode.svg +1 -0
- package/dist/ldf/svg/journal-outline.svg +1 -1
- package/dist/ldf/svg/journal-sharp.svg +1 -1
- package/dist/ldf/svg/journal.svg +1 -1
- package/dist/ldf/svg/key-outline.svg +1 -1
- package/dist/ldf/svg/key-sharp.svg +1 -1
- package/dist/ldf/svg/key.svg +1 -1
- package/dist/ldf/svg/keypad-outline.svg +1 -1
- package/dist/ldf/svg/keypad-sharp.svg +1 -1
- package/dist/ldf/svg/keypad.svg +1 -1
- package/dist/ldf/svg/language-outline.svg +1 -1
- package/dist/ldf/svg/language-sharp.svg +1 -1
- package/dist/ldf/svg/language.svg +1 -1
- package/dist/ldf/svg/laptop-outline.svg +1 -1
- package/dist/ldf/svg/laptop-sharp.svg +1 -1
- package/dist/ldf/svg/laptop.svg +1 -1
- package/dist/ldf/svg/layers-outline.svg +1 -1
- package/dist/ldf/svg/layers-sharp.svg +1 -1
- package/dist/ldf/svg/layers.svg +1 -1
- package/dist/ldf/svg/leaf-outline.svg +1 -1
- package/dist/ldf/svg/leaf-sharp.svg +1 -1
- package/dist/ldf/svg/leaf.svg +1 -1
- package/dist/ldf/svg/library-outline.svg +1 -1
- package/dist/ldf/svg/library-sharp.svg +1 -1
- package/dist/ldf/svg/library.svg +1 -1
- package/dist/ldf/svg/link-outline.svg +1 -1
- package/dist/ldf/svg/link-sharp.svg +1 -1
- package/dist/ldf/svg/link.svg +1 -1
- package/dist/ldf/svg/list-circle-outline.svg +1 -1
- package/dist/ldf/svg/list-circle-sharp.svg +1 -1
- package/dist/ldf/svg/list-circle.svg +1 -1
- package/dist/ldf/svg/list-outline.svg +1 -1
- package/dist/ldf/svg/list-sharp.svg +1 -1
- package/dist/ldf/svg/list.svg +1 -1
- package/dist/ldf/svg/locate-outline.svg +1 -1
- package/dist/ldf/svg/locate-sharp.svg +1 -1
- package/dist/ldf/svg/locate.svg +1 -1
- package/dist/ldf/svg/location-outline.svg +1 -1
- package/dist/ldf/svg/location-sharp.svg +1 -1
- package/dist/ldf/svg/location.svg +1 -1
- package/dist/ldf/svg/lock-closed-outline.svg +1 -1
- package/dist/ldf/svg/lock-closed-sharp.svg +1 -1
- package/dist/ldf/svg/lock-closed.svg +1 -1
- package/dist/ldf/svg/lock-open-outline.svg +1 -1
- package/dist/ldf/svg/lock-open-sharp.svg +1 -1
- package/dist/ldf/svg/lock-open.svg +1 -1
- package/dist/ldf/svg/log-in-outline.svg +1 -1
- package/dist/ldf/svg/log-in-sharp.svg +1 -1
- package/dist/ldf/svg/log-in.svg +1 -1
- package/dist/ldf/svg/log-out-outline.svg +1 -1
- package/dist/ldf/svg/log-out-sharp.svg +1 -1
- package/dist/ldf/svg/log-out.svg +1 -1
- package/dist/ldf/svg/logo-alipay.svg +1 -0
- package/dist/ldf/svg/logo-amazon.svg +1 -1
- package/dist/ldf/svg/logo-amplify.svg +1 -1
- package/dist/ldf/svg/logo-android.svg +1 -1
- package/dist/ldf/svg/logo-angular.svg +1 -1
- package/dist/ldf/svg/logo-apple-appstore.svg +1 -1
- package/dist/ldf/svg/logo-apple-ar.svg +1 -0
- package/dist/ldf/svg/logo-apple.svg +1 -1
- package/dist/ldf/svg/logo-behance.svg +1 -0
- package/dist/ldf/svg/logo-bitbucket.svg +1 -1
- package/dist/ldf/svg/logo-bitcoin.svg +1 -1
- package/dist/ldf/svg/logo-buffer.svg +1 -1
- package/dist/ldf/svg/logo-capacitor.svg +1 -1
- package/dist/ldf/svg/logo-chrome.svg +1 -1
- package/dist/ldf/svg/logo-closed-captioning.svg +1 -1
- package/dist/ldf/svg/logo-codepen.svg +1 -1
- package/dist/ldf/svg/logo-css3.svg +1 -1
- package/dist/ldf/svg/logo-designernews.svg +1 -1
- package/dist/ldf/svg/logo-deviantart.svg +1 -0
- package/dist/ldf/svg/logo-discord.svg +1 -0
- package/dist/ldf/svg/logo-docker.svg +1 -0
- package/dist/ldf/svg/logo-dribbble.svg +1 -1
- package/dist/ldf/svg/logo-dropbox.svg +1 -1
- package/dist/ldf/svg/logo-edge.svg +1 -1
- package/dist/ldf/svg/logo-electron.svg +1 -1
- package/dist/ldf/svg/logo-euro.svg +1 -1
- package/dist/ldf/svg/logo-facebook.svg +1 -1
- package/dist/ldf/svg/logo-figma.svg +1 -0
- package/dist/ldf/svg/logo-firebase.svg +1 -1
- package/dist/ldf/svg/logo-firefox.svg +1 -1
- package/dist/ldf/svg/logo-flickr.svg +1 -1
- package/dist/ldf/svg/logo-foursquare.svg +1 -1
- package/dist/ldf/svg/logo-github.svg +1 -1
- package/dist/ldf/svg/logo-gitlab.svg +1 -0
- package/dist/ldf/svg/logo-google-playstore.svg +1 -1
- package/dist/ldf/svg/logo-google.svg +1 -1
- package/dist/ldf/svg/logo-hackernews.svg +1 -1
- package/dist/ldf/svg/logo-html5.svg +1 -1
- package/dist/ldf/svg/logo-instagram.svg +1 -1
- package/dist/ldf/svg/logo-ionic.svg +1 -1
- package/dist/ldf/svg/logo-ionitron.svg +1 -1
- package/dist/ldf/svg/logo-javascript.svg +1 -1
- package/dist/ldf/svg/logo-laravel.svg +1 -1
- package/dist/ldf/svg/logo-linkedin.svg +1 -1
- package/dist/ldf/svg/logo-markdown.svg +1 -1
- package/dist/ldf/svg/logo-mastodon.svg +1 -0
- package/dist/ldf/svg/logo-medium.svg +1 -0
- package/dist/ldf/svg/logo-microsoft.svg +1 -0
- package/dist/ldf/svg/logo-no-smoking.svg +1 -1
- package/dist/ldf/svg/logo-nodejs.svg +1 -1
- package/dist/ldf/svg/logo-npm.svg +1 -1
- package/dist/ldf/svg/logo-octocat.svg +1 -1
- package/dist/ldf/svg/logo-paypal.svg +1 -0
- package/dist/ldf/svg/logo-pinterest.svg +1 -1
- package/dist/ldf/svg/logo-playstation.svg +1 -1
- package/dist/ldf/svg/logo-pwa.svg +1 -1
- package/dist/ldf/svg/logo-python.svg +1 -1
- package/dist/ldf/svg/logo-react.svg +1 -1
- package/dist/ldf/svg/logo-reddit.svg +1 -1
- package/dist/ldf/svg/logo-rss.svg +1 -1
- package/dist/ldf/svg/logo-sass.svg +1 -1
- package/dist/ldf/svg/logo-skype.svg +1 -1
- package/dist/ldf/svg/logo-slack.svg +1 -1
- package/dist/ldf/svg/logo-snapchat.svg +1 -1
- package/dist/ldf/svg/logo-soundcloud.svg +1 -0
- package/dist/ldf/svg/logo-stackoverflow.svg +1 -1
- package/dist/ldf/svg/logo-steam.svg +1 -1
- package/dist/ldf/svg/logo-stencil.svg +1 -1
- package/dist/ldf/svg/logo-tableau.svg +1 -0
- package/dist/ldf/svg/logo-tiktok.svg +1 -0
- package/dist/ldf/svg/logo-tumblr.svg +1 -1
- package/dist/ldf/svg/logo-tux.svg +1 -1
- package/dist/ldf/svg/logo-twitch.svg +1 -1
- package/dist/ldf/svg/logo-twitter.svg +1 -1
- package/dist/ldf/svg/logo-usd.svg +1 -1
- package/dist/ldf/svg/logo-venmo.svg +1 -0
- package/dist/ldf/svg/logo-vercel.svg +1 -0
- package/dist/ldf/svg/logo-vimeo.svg +1 -1
- package/dist/ldf/svg/logo-vk.svg +1 -1
- package/dist/ldf/svg/logo-vue.svg +1 -1
- package/dist/ldf/svg/logo-web-component.svg +1 -1
- package/dist/ldf/svg/logo-wechat.svg +1 -0
- package/dist/ldf/svg/logo-whatsapp.svg +1 -1
- package/dist/ldf/svg/logo-windows.svg +1 -1
- package/dist/ldf/svg/logo-wordpress.svg +1 -1
- package/dist/ldf/svg/logo-xbox.svg +1 -1
- package/dist/ldf/svg/logo-xing.svg +1 -1
- package/dist/ldf/svg/logo-yahoo.svg +1 -1
- package/dist/ldf/svg/logo-yen.svg +1 -1
- package/dist/ldf/svg/logo-youtube.svg +1 -1
- package/dist/ldf/svg/magnet-outline.svg +1 -1
- package/dist/ldf/svg/magnet-sharp.svg +1 -1
- package/dist/ldf/svg/magnet.svg +1 -1
- package/dist/ldf/svg/mail-open-outline.svg +1 -1
- package/dist/ldf/svg/mail-open-sharp.svg +1 -1
- package/dist/ldf/svg/mail-open.svg +1 -1
- package/dist/ldf/svg/mail-outline.svg +1 -1
- package/dist/ldf/svg/mail-sharp.svg +1 -1
- package/dist/ldf/svg/mail-unread-outline.svg +1 -1
- package/dist/ldf/svg/mail-unread-sharp.svg +1 -1
- package/dist/ldf/svg/mail-unread.svg +1 -1
- package/dist/ldf/svg/mail.svg +1 -1
- package/dist/ldf/svg/male-female-outline.svg +1 -1
- package/dist/ldf/svg/male-female-sharp.svg +1 -1
- package/dist/ldf/svg/male-female.svg +1 -1
- package/dist/ldf/svg/male-outline.svg +1 -1
- package/dist/ldf/svg/male-sharp.svg +1 -1
- package/dist/ldf/svg/male.svg +1 -1
- package/dist/ldf/svg/man-outline.svg +1 -1
- package/dist/ldf/svg/man-sharp.svg +1 -1
- package/dist/ldf/svg/man.svg +1 -1
- package/dist/ldf/svg/map-outline.svg +1 -1
- package/dist/ldf/svg/map-sharp.svg +1 -1
- package/dist/ldf/svg/map.svg +1 -1
- package/dist/ldf/svg/medal-outline.svg +1 -1
- package/dist/ldf/svg/medal-sharp.svg +1 -1
- package/dist/ldf/svg/medal.svg +1 -1
- package/dist/ldf/svg/medical-outline.svg +1 -1
- package/dist/ldf/svg/medical-sharp.svg +1 -1
- package/dist/ldf/svg/medical.svg +1 -1
- package/dist/ldf/svg/medkit-outline.svg +1 -1
- package/dist/ldf/svg/medkit-sharp.svg +1 -1
- package/dist/ldf/svg/medkit.svg +1 -1
- package/dist/ldf/svg/megaphone-outline.svg +1 -1
- package/dist/ldf/svg/megaphone-sharp.svg +1 -1
- package/dist/ldf/svg/megaphone.svg +1 -1
- package/dist/ldf/svg/menu-outline.svg +1 -1
- package/dist/ldf/svg/menu-sharp.svg +1 -1
- package/dist/ldf/svg/menu.svg +1 -1
- package/dist/ldf/svg/mic-circle-outline.svg +1 -1
- package/dist/ldf/svg/mic-circle-sharp.svg +1 -1
- package/dist/ldf/svg/mic-circle.svg +1 -1
- package/dist/ldf/svg/mic-off-circle-outline.svg +1 -1
- package/dist/ldf/svg/mic-off-circle-sharp.svg +1 -1
- package/dist/ldf/svg/mic-off-circle.svg +1 -1
- package/dist/ldf/svg/mic-off-outline.svg +1 -1
- package/dist/ldf/svg/mic-off-sharp.svg +1 -1
- package/dist/ldf/svg/mic-off.svg +1 -1
- package/dist/ldf/svg/mic-outline.svg +1 -1
- package/dist/ldf/svg/mic-sharp.svg +1 -1
- package/dist/ldf/svg/mic.svg +1 -1
- package/dist/ldf/svg/moon-outline.svg +1 -1
- package/dist/ldf/svg/moon-sharp.svg +1 -1
- package/dist/ldf/svg/moon.svg +1 -1
- package/dist/ldf/svg/move-outline.svg +1 -1
- package/dist/ldf/svg/move-sharp.svg +1 -1
- package/dist/ldf/svg/move.svg +1 -1
- package/dist/ldf/svg/musical-note-outline.svg +1 -1
- package/dist/ldf/svg/musical-note-sharp.svg +1 -1
- package/dist/ldf/svg/musical-note.svg +1 -1
- package/dist/ldf/svg/musical-notes-outline.svg +1 -1
- package/dist/ldf/svg/musical-notes-sharp.svg +1 -1
- package/dist/ldf/svg/musical-notes.svg +1 -1
- package/dist/ldf/svg/navigate-circle-outline.svg +1 -1
- package/dist/ldf/svg/navigate-circle-sharp.svg +1 -1
- package/dist/ldf/svg/navigate-circle.svg +1 -1
- package/dist/ldf/svg/navigate-outline.svg +1 -1
- package/dist/ldf/svg/navigate-sharp.svg +1 -1
- package/dist/ldf/svg/navigate.svg +1 -1
- package/dist/ldf/svg/newspaper-outline.svg +1 -1
- package/dist/ldf/svg/newspaper-sharp.svg +1 -1
- package/dist/ldf/svg/newspaper.svg +1 -1
- package/dist/ldf/svg/notifications-circle-outline.svg +1 -1
- package/dist/ldf/svg/notifications-circle-sharp.svg +1 -1
- package/dist/ldf/svg/notifications-circle.svg +1 -1
- package/dist/ldf/svg/notifications-off-circle-outline.svg +1 -1
- package/dist/ldf/svg/notifications-off-circle-sharp.svg +1 -1
- package/dist/ldf/svg/notifications-off-circle.svg +1 -1
- package/dist/ldf/svg/notifications-off-outline.svg +1 -1
- package/dist/ldf/svg/notifications-off-sharp.svg +1 -1
- package/dist/ldf/svg/notifications-off.svg +1 -1
- package/dist/ldf/svg/notifications-outline.svg +1 -1
- package/dist/ldf/svg/notifications-sharp.svg +1 -1
- package/dist/ldf/svg/notifications.svg +1 -1
- package/dist/ldf/svg/nuclear-outline.svg +1 -1
- package/dist/ldf/svg/nuclear-sharp.svg +1 -1
- package/dist/ldf/svg/nuclear.svg +1 -1
- package/dist/ldf/svg/nutrition-outline.svg +1 -1
- package/dist/ldf/svg/nutrition-sharp.svg +1 -1
- package/dist/ldf/svg/nutrition.svg +1 -1
- package/dist/ldf/svg/open-outline.svg +1 -1
- package/dist/ldf/svg/open-sharp.svg +1 -1
- package/dist/ldf/svg/open.svg +1 -1
- package/dist/ldf/svg/options-outline.svg +1 -1
- package/dist/ldf/svg/options-sharp.svg +1 -1
- package/dist/ldf/svg/options.svg +1 -1
- package/dist/ldf/svg/paper-plane-outline.svg +1 -1
- package/dist/ldf/svg/paper-plane-sharp.svg +1 -1
- package/dist/ldf/svg/paper-plane.svg +1 -1
- package/dist/ldf/svg/partly-sunny-outline.svg +1 -1
- package/dist/ldf/svg/partly-sunny-sharp.svg +1 -1
- package/dist/ldf/svg/partly-sunny.svg +1 -1
- package/dist/ldf/svg/pause-circle-outline.svg +1 -1
- package/dist/ldf/svg/pause-circle-sharp.svg +1 -1
- package/dist/ldf/svg/pause-circle.svg +1 -1
- package/dist/ldf/svg/pause-outline.svg +1 -1
- package/dist/ldf/svg/pause-sharp.svg +1 -1
- package/dist/ldf/svg/pause.svg +1 -1
- package/dist/ldf/svg/paw-outline.svg +1 -1
- package/dist/ldf/svg/paw-sharp.svg +1 -1
- package/dist/ldf/svg/paw.svg +1 -1
- package/dist/ldf/svg/pencil-outline.svg +1 -1
- package/dist/ldf/svg/pencil-sharp.svg +1 -1
- package/dist/ldf/svg/pencil.svg +1 -1
- package/dist/ldf/svg/people-circle-outline.svg +1 -1
- package/dist/ldf/svg/people-circle-sharp.svg +1 -1
- package/dist/ldf/svg/people-circle.svg +1 -1
- package/dist/ldf/svg/people-outline.svg +1 -1
- package/dist/ldf/svg/people-sharp.svg +1 -1
- package/dist/ldf/svg/people.svg +1 -1
- package/dist/ldf/svg/person-add-outline.svg +1 -1
- package/dist/ldf/svg/person-add-sharp.svg +1 -1
- package/dist/ldf/svg/person-add.svg +1 -1
- package/dist/ldf/svg/person-circle-outline.svg +1 -1
- package/dist/ldf/svg/person-circle-sharp.svg +1 -1
- package/dist/ldf/svg/person-circle.svg +1 -1
- package/dist/ldf/svg/person-outline.svg +1 -1
- package/dist/ldf/svg/person-remove-outline.svg +1 -1
- package/dist/ldf/svg/person-remove-sharp.svg +1 -1
- package/dist/ldf/svg/person-remove.svg +1 -1
- package/dist/ldf/svg/person-sharp.svg +1 -1
- package/dist/ldf/svg/person.svg +1 -1
- package/dist/ldf/svg/phone-landscape-outline.svg +1 -1
- package/dist/ldf/svg/phone-landscape-sharp.svg +1 -1
- package/dist/ldf/svg/phone-landscape.svg +1 -1
- package/dist/ldf/svg/phone-portrait-outline.svg +1 -1
- package/dist/ldf/svg/phone-portrait-sharp.svg +1 -1
- package/dist/ldf/svg/phone-portrait.svg +1 -1
- package/dist/ldf/svg/pie-chart-outline.svg +1 -1
- package/dist/ldf/svg/pie-chart-sharp.svg +1 -1
- package/dist/ldf/svg/pie-chart.svg +1 -1
- package/dist/ldf/svg/pin-outline.svg +1 -1
- package/dist/ldf/svg/pin-sharp.svg +1 -1
- package/dist/ldf/svg/pin.svg +1 -1
- package/dist/ldf/svg/pint-outline.svg +1 -1
- package/dist/ldf/svg/pint-sharp.svg +1 -1
- package/dist/ldf/svg/pint.svg +1 -1
- package/dist/ldf/svg/pizza-outline.svg +1 -1
- package/dist/ldf/svg/pizza-sharp.svg +1 -1
- package/dist/ldf/svg/pizza.svg +1 -1
- package/dist/ldf/svg/planet-outline.svg +1 -1
- package/dist/ldf/svg/planet-sharp.svg +1 -1
- package/dist/ldf/svg/planet.svg +1 -1
- package/dist/ldf/svg/play-back-circle-outline.svg +1 -1
- package/dist/ldf/svg/play-back-circle-sharp.svg +1 -1
- package/dist/ldf/svg/play-back-circle.svg +1 -1
- package/dist/ldf/svg/play-back-outline.svg +1 -1
- package/dist/ldf/svg/play-back-sharp.svg +1 -1
- package/dist/ldf/svg/play-back.svg +1 -1
- package/dist/ldf/svg/play-circle-outline.svg +1 -1
- package/dist/ldf/svg/play-circle-sharp.svg +1 -1
- package/dist/ldf/svg/play-circle.svg +1 -1
- package/dist/ldf/svg/play-forward-circle-outline.svg +1 -1
- package/dist/ldf/svg/play-forward-circle-sharp.svg +1 -1
- package/dist/ldf/svg/play-forward-circle.svg +1 -1
- package/dist/ldf/svg/play-forward-outline.svg +1 -1
- package/dist/ldf/svg/play-forward-sharp.svg +1 -1
- package/dist/ldf/svg/play-forward.svg +1 -1
- package/dist/ldf/svg/play-outline.svg +1 -1
- package/dist/ldf/svg/play-sharp.svg +1 -1
- package/dist/ldf/svg/play-skip-back-circle-outline.svg +1 -1
- package/dist/ldf/svg/play-skip-back-circle-sharp.svg +1 -1
- package/dist/ldf/svg/play-skip-back-circle.svg +1 -1
- package/dist/ldf/svg/play-skip-back-outline.svg +1 -1
- package/dist/ldf/svg/play-skip-back-sharp.svg +1 -1
- package/dist/ldf/svg/play-skip-back.svg +1 -1
- package/dist/ldf/svg/play-skip-forward-circle-outline.svg +1 -1
- package/dist/ldf/svg/play-skip-forward-circle-sharp.svg +1 -1
- package/dist/ldf/svg/play-skip-forward-circle.svg +1 -1
- package/dist/ldf/svg/play-skip-forward-outline.svg +1 -1
- package/dist/ldf/svg/play-skip-forward-sharp.svg +1 -1
- package/dist/ldf/svg/play-skip-forward.svg +1 -1
- package/dist/ldf/svg/play.svg +1 -1
- package/dist/ldf/svg/podium-outline.svg +1 -1
- package/dist/ldf/svg/podium-sharp.svg +1 -1
- package/dist/ldf/svg/podium.svg +1 -1
- package/dist/ldf/svg/power-outline.svg +1 -1
- package/dist/ldf/svg/power-sharp.svg +1 -1
- package/dist/ldf/svg/power.svg +1 -1
- package/dist/ldf/svg/pricetag-outline.svg +1 -1
- package/dist/ldf/svg/pricetag-sharp.svg +1 -1
- package/dist/ldf/svg/pricetag.svg +1 -1
- package/dist/ldf/svg/pricetags-outline.svg +1 -1
- package/dist/ldf/svg/pricetags-sharp.svg +1 -1
- package/dist/ldf/svg/pricetags.svg +1 -1
- package/dist/ldf/svg/print-outline.svg +1 -1
- package/dist/ldf/svg/print-sharp.svg +1 -1
- package/dist/ldf/svg/print.svg +1 -1
- package/dist/ldf/svg/prism-outline.svg +1 -0
- package/dist/ldf/svg/prism-sharp.svg +1 -0
- package/dist/ldf/svg/prism.svg +1 -0
- package/dist/ldf/svg/pulse-outline.svg +1 -1
- package/dist/ldf/svg/pulse-sharp.svg +1 -1
- package/dist/ldf/svg/pulse.svg +1 -1
- package/dist/ldf/svg/push-outline.svg +1 -1
- package/dist/ldf/svg/push-sharp.svg +1 -1
- package/dist/ldf/svg/push.svg +1 -1
- package/dist/ldf/svg/qr-code-outline.svg +1 -1
- package/dist/ldf/svg/qr-code-sharp.svg +1 -1
- package/dist/ldf/svg/qr-code.svg +1 -1
- package/dist/ldf/svg/radio-button-off-outline.svg +1 -1
- package/dist/ldf/svg/radio-button-off-sharp.svg +1 -1
- package/dist/ldf/svg/radio-button-off.svg +1 -1
- package/dist/ldf/svg/radio-button-on-outline.svg +1 -1
- package/dist/ldf/svg/radio-button-on-sharp.svg +1 -1
- package/dist/ldf/svg/radio-button-on.svg +1 -1
- package/dist/ldf/svg/radio-outline.svg +1 -1
- package/dist/ldf/svg/radio-sharp.svg +1 -1
- package/dist/ldf/svg/radio.svg +1 -1
- package/dist/ldf/svg/rainy-outline.svg +1 -1
- package/dist/ldf/svg/rainy-sharp.svg +1 -1
- package/dist/ldf/svg/rainy.svg +1 -1
- package/dist/ldf/svg/reader-outline.svg +1 -1
- package/dist/ldf/svg/reader-sharp.svg +1 -1
- package/dist/ldf/svg/reader.svg +1 -1
- package/dist/ldf/svg/receipt-outline.svg +1 -1
- package/dist/ldf/svg/receipt-sharp.svg +1 -1
- package/dist/ldf/svg/receipt.svg +1 -1
- package/dist/ldf/svg/recording-outline.svg +1 -1
- package/dist/ldf/svg/recording-sharp.svg +1 -1
- package/dist/ldf/svg/recording.svg +1 -1
- package/dist/ldf/svg/refresh-circle-outline.svg +1 -1
- package/dist/ldf/svg/refresh-circle-sharp.svg +1 -1
- package/dist/ldf/svg/refresh-circle.svg +1 -1
- package/dist/ldf/svg/refresh-outline.svg +1 -1
- package/dist/ldf/svg/refresh-sharp.svg +1 -1
- package/dist/ldf/svg/refresh.svg +1 -1
- package/dist/ldf/svg/reload-circle-outline.svg +1 -1
- package/dist/ldf/svg/reload-circle-sharp.svg +1 -1
- package/dist/ldf/svg/reload-circle.svg +1 -1
- package/dist/ldf/svg/reload-outline.svg +1 -1
- package/dist/ldf/svg/reload-sharp.svg +1 -1
- package/dist/ldf/svg/reload.svg +1 -1
- package/dist/ldf/svg/remove-circle-outline.svg +1 -1
- package/dist/ldf/svg/remove-circle-sharp.svg +1 -1
- package/dist/ldf/svg/remove-circle.svg +1 -1
- package/dist/ldf/svg/remove-outline.svg +1 -1
- package/dist/ldf/svg/remove-sharp.svg +1 -1
- package/dist/ldf/svg/remove.svg +1 -1
- package/dist/ldf/svg/reorder-four-outline.svg +1 -1
- package/dist/ldf/svg/reorder-four-sharp.svg +1 -1
- package/dist/ldf/svg/reorder-four.svg +1 -1
- package/dist/ldf/svg/reorder-three-outline.svg +1 -1
- package/dist/ldf/svg/reorder-three-sharp.svg +1 -1
- package/dist/ldf/svg/reorder-three.svg +1 -1
- package/dist/ldf/svg/reorder-two-outline.svg +1 -1
- package/dist/ldf/svg/reorder-two-sharp.svg +1 -1
- package/dist/ldf/svg/reorder-two.svg +1 -1
- package/dist/ldf/svg/repeat-outline.svg +1 -1
- package/dist/ldf/svg/repeat-sharp.svg +1 -1
- package/dist/ldf/svg/repeat.svg +1 -1
- package/dist/ldf/svg/resize-outline.svg +1 -1
- package/dist/ldf/svg/resize-sharp.svg +1 -1
- package/dist/ldf/svg/resize.svg +1 -1
- package/dist/ldf/svg/restaurant-outline.svg +1 -1
- package/dist/ldf/svg/restaurant-sharp.svg +1 -1
- package/dist/ldf/svg/restaurant.svg +1 -1
- package/dist/ldf/svg/return-down-back-outline.svg +1 -1
- package/dist/ldf/svg/return-down-back-sharp.svg +1 -1
- package/dist/ldf/svg/return-down-back.svg +1 -1
- package/dist/ldf/svg/return-down-forward-outline.svg +1 -1
- package/dist/ldf/svg/return-down-forward-sharp.svg +1 -1
- package/dist/ldf/svg/return-down-forward.svg +1 -1
- package/dist/ldf/svg/return-up-back-outline.svg +1 -1
- package/dist/ldf/svg/return-up-back-sharp.svg +1 -1
- package/dist/ldf/svg/return-up-back.svg +1 -1
- package/dist/ldf/svg/return-up-forward-outline.svg +1 -1
- package/dist/ldf/svg/return-up-forward-sharp.svg +1 -1
- package/dist/ldf/svg/return-up-forward.svg +1 -1
- package/dist/ldf/svg/ribbon-outline.svg +1 -1
- package/dist/ldf/svg/ribbon-sharp.svg +1 -1
- package/dist/ldf/svg/ribbon.svg +1 -1
- package/dist/ldf/svg/rocket-outline.svg +1 -1
- package/dist/ldf/svg/rocket-sharp.svg +1 -1
- package/dist/ldf/svg/rocket.svg +1 -1
- package/dist/ldf/svg/rose-outline.svg +1 -1
- package/dist/ldf/svg/rose-sharp.svg +1 -1
- package/dist/ldf/svg/rose.svg +1 -1
- package/dist/ldf/svg/sad-outline.svg +1 -1
- package/dist/ldf/svg/sad-sharp.svg +1 -1
- package/dist/ldf/svg/sad.svg +1 -1
- package/dist/ldf/svg/save-outline.svg +1 -1
- package/dist/ldf/svg/save-sharp.svg +1 -1
- package/dist/ldf/svg/save.svg +1 -1
- package/dist/ldf/svg/scale-outline.svg +1 -0
- package/dist/ldf/svg/scale-sharp.svg +1 -0
- package/dist/ldf/svg/scale.svg +1 -0
- package/dist/ldf/svg/scan-circle-outline.svg +1 -1
- package/dist/ldf/svg/scan-circle-sharp.svg +1 -1
- package/dist/ldf/svg/scan-circle.svg +1 -1
- package/dist/ldf/svg/scan-outline.svg +1 -1
- package/dist/ldf/svg/scan-sharp.svg +1 -1
- package/dist/ldf/svg/scan.svg +1 -1
- package/dist/ldf/svg/school-outline.svg +1 -1
- package/dist/ldf/svg/school-sharp.svg +1 -1
- package/dist/ldf/svg/school.svg +1 -1
- package/dist/ldf/svg/search-circle-outline.svg +1 -1
- package/dist/ldf/svg/search-circle-sharp.svg +1 -1
- package/dist/ldf/svg/search-circle.svg +1 -1
- package/dist/ldf/svg/search-outline.svg +1 -1
- package/dist/ldf/svg/search-sharp.svg +1 -1
- package/dist/ldf/svg/search.svg +1 -1
- package/dist/ldf/svg/send-outline.svg +1 -1
- package/dist/ldf/svg/send-sharp.svg +1 -1
- package/dist/ldf/svg/send.svg +1 -1
- package/dist/ldf/svg/server-outline.svg +1 -1
- package/dist/ldf/svg/server-sharp.svg +1 -1
- package/dist/ldf/svg/server.svg +1 -1
- package/dist/ldf/svg/settings-outline.svg +1 -1
- package/dist/ldf/svg/settings-sharp.svg +1 -1
- package/dist/ldf/svg/settings.svg +1 -1
- package/dist/ldf/svg/shapes-outline.svg +1 -1
- package/dist/ldf/svg/shapes-sharp.svg +1 -1
- package/dist/ldf/svg/shapes.svg +1 -1
- package/dist/ldf/svg/share-outline.svg +1 -1
- package/dist/ldf/svg/share-sharp.svg +1 -1
- package/dist/ldf/svg/share-social-outline.svg +1 -1
- package/dist/ldf/svg/share-social-sharp.svg +1 -1
- package/dist/ldf/svg/share-social.svg +1 -1
- package/dist/ldf/svg/share.svg +1 -1
- package/dist/ldf/svg/shield-checkmark-outline.svg +1 -1
- package/dist/ldf/svg/shield-checkmark-sharp.svg +1 -1
- package/dist/ldf/svg/shield-checkmark.svg +1 -1
- package/dist/ldf/svg/shield-half-outline.svg +1 -0
- package/dist/ldf/svg/shield-half-sharp.svg +1 -0
- package/dist/ldf/svg/shield-half.svg +1 -0
- package/dist/ldf/svg/shield-outline.svg +1 -1
- package/dist/ldf/svg/shield-sharp.svg +1 -1
- package/dist/ldf/svg/shield.svg +1 -1
- package/dist/ldf/svg/shirt-outline.svg +1 -1
- package/dist/ldf/svg/shirt-sharp.svg +1 -1
- package/dist/ldf/svg/shirt.svg +1 -1
- package/dist/ldf/svg/shuffle-outline.svg +1 -1
- package/dist/ldf/svg/shuffle-sharp.svg +1 -1
- package/dist/ldf/svg/shuffle.svg +1 -1
- package/dist/ldf/svg/skull-outline.svg +1 -1
- package/dist/ldf/svg/skull-sharp.svg +1 -1
- package/dist/ldf/svg/skull.svg +1 -1
- package/dist/ldf/svg/snow-outline.svg +1 -1
- package/dist/ldf/svg/snow-sharp.svg +1 -1
- package/dist/ldf/svg/snow.svg +1 -1
- package/dist/ldf/svg/sparkles-outline.svg +1 -0
- package/dist/ldf/svg/sparkles-sharp.svg +1 -0
- package/dist/ldf/svg/sparkles.svg +1 -0
- package/dist/ldf/svg/speedometer-outline.svg +1 -1
- package/dist/ldf/svg/speedometer-sharp.svg +1 -1
- package/dist/ldf/svg/speedometer.svg +1 -1
- package/dist/ldf/svg/square-outline.svg +1 -1
- package/dist/ldf/svg/square-sharp.svg +1 -1
- package/dist/ldf/svg/square.svg +1 -1
- package/dist/ldf/svg/star-half-outline.svg +1 -1
- package/dist/ldf/svg/star-half-sharp.svg +1 -1
- package/dist/ldf/svg/star-half.svg +1 -1
- package/dist/ldf/svg/star-outline.svg +1 -1
- package/dist/ldf/svg/star-sharp.svg +1 -1
- package/dist/ldf/svg/star.svg +1 -1
- package/dist/ldf/svg/stats-chart-outline.svg +1 -1
- package/dist/ldf/svg/stats-chart-sharp.svg +1 -1
- package/dist/ldf/svg/stats-chart.svg +1 -1
- package/dist/ldf/svg/stop-circle-outline.svg +1 -1
- package/dist/ldf/svg/stop-circle-sharp.svg +1 -1
- package/dist/ldf/svg/stop-circle.svg +1 -1
- package/dist/ldf/svg/stop-outline.svg +1 -1
- package/dist/ldf/svg/stop-sharp.svg +1 -1
- package/dist/ldf/svg/stop.svg +1 -1
- package/dist/ldf/svg/stopwatch-outline.svg +1 -1
- package/dist/ldf/svg/stopwatch-sharp.svg +1 -1
- package/dist/ldf/svg/stopwatch.svg +1 -1
- package/dist/ldf/svg/storefront-outline.svg +1 -0
- package/dist/ldf/svg/storefront-sharp.svg +1 -0
- package/dist/ldf/svg/storefront.svg +1 -0
- package/dist/ldf/svg/subway-outline.svg +1 -1
- package/dist/ldf/svg/subway-sharp.svg +1 -1
- package/dist/ldf/svg/subway.svg +1 -1
- package/dist/ldf/svg/sunny-outline.svg +1 -1
- package/dist/ldf/svg/sunny-sharp.svg +1 -1
- package/dist/ldf/svg/sunny.svg +1 -1
- package/dist/ldf/svg/swap-horizontal-outline.svg +1 -1
- package/dist/ldf/svg/swap-horizontal-sharp.svg +1 -1
- package/dist/ldf/svg/swap-horizontal.svg +1 -1
- package/dist/ldf/svg/swap-vertical-outline.svg +1 -1
- package/dist/ldf/svg/swap-vertical-sharp.svg +1 -1
- package/dist/ldf/svg/swap-vertical.svg +1 -1
- package/dist/ldf/svg/sync-circle-outline.svg +1 -1
- package/dist/ldf/svg/sync-circle-sharp.svg +1 -1
- package/dist/ldf/svg/sync-circle.svg +1 -1
- package/dist/ldf/svg/sync-outline.svg +1 -1
- package/dist/ldf/svg/sync-sharp.svg +1 -1
- package/dist/ldf/svg/sync.svg +1 -1
- package/dist/ldf/svg/tablet-landscape-outline.svg +1 -1
- package/dist/ldf/svg/tablet-landscape-sharp.svg +1 -1
- package/dist/ldf/svg/tablet-landscape.svg +1 -1
- package/dist/ldf/svg/tablet-portrait-outline.svg +1 -1
- package/dist/ldf/svg/tablet-portrait-sharp.svg +1 -1
- package/dist/ldf/svg/tablet-portrait.svg +1 -1
- package/dist/ldf/svg/telescope-outline.svg +1 -0
- package/dist/ldf/svg/telescope-sharp.svg +1 -0
- package/dist/ldf/svg/telescope.svg +1 -0
- package/dist/ldf/svg/tennisball-outline.svg +1 -1
- package/dist/ldf/svg/tennisball-sharp.svg +1 -1
- package/dist/ldf/svg/tennisball.svg +1 -1
- package/dist/ldf/svg/terminal-outline.svg +1 -1
- package/dist/ldf/svg/terminal-sharp.svg +1 -1
- package/dist/ldf/svg/terminal.svg +1 -1
- package/dist/ldf/svg/text-outline.svg +1 -1
- package/dist/ldf/svg/text-sharp.svg +1 -1
- package/dist/ldf/svg/text.svg +1 -1
- package/dist/ldf/svg/thermometer-outline.svg +1 -1
- package/dist/ldf/svg/thermometer-sharp.svg +1 -1
- package/dist/ldf/svg/thermometer.svg +1 -1
- package/dist/ldf/svg/thumbs-down-outline.svg +1 -1
- package/dist/ldf/svg/thumbs-down-sharp.svg +1 -1
- package/dist/ldf/svg/thumbs-down.svg +1 -1
- package/dist/ldf/svg/thumbs-up-outline.svg +1 -1
- package/dist/ldf/svg/thumbs-up-sharp.svg +1 -1
- package/dist/ldf/svg/thumbs-up.svg +1 -1
- package/dist/ldf/svg/thunderstorm-outline.svg +1 -1
- package/dist/ldf/svg/thunderstorm-sharp.svg +1 -1
- package/dist/ldf/svg/thunderstorm.svg +1 -1
- package/dist/ldf/svg/ticket-outline.svg +1 -0
- package/dist/ldf/svg/ticket-sharp.svg +1 -0
- package/dist/ldf/svg/ticket.svg +1 -0
- package/dist/ldf/svg/time-outline.svg +1 -1
- package/dist/ldf/svg/time-sharp.svg +1 -1
- package/dist/ldf/svg/time.svg +1 -1
- package/dist/ldf/svg/timer-outline.svg +1 -1
- package/dist/ldf/svg/timer-sharp.svg +1 -1
- package/dist/ldf/svg/timer.svg +1 -1
- package/dist/ldf/svg/today-outline.svg +1 -1
- package/dist/ldf/svg/today-sharp.svg +1 -1
- package/dist/ldf/svg/today.svg +1 -1
- package/dist/ldf/svg/toggle-outline.svg +1 -1
- package/dist/ldf/svg/toggle-sharp.svg +1 -1
- package/dist/ldf/svg/toggle.svg +1 -1
- package/dist/ldf/svg/trail-sign-outline.svg +1 -1
- package/dist/ldf/svg/trail-sign-sharp.svg +1 -1
- package/dist/ldf/svg/trail-sign.svg +1 -1
- package/dist/ldf/svg/train-outline.svg +1 -1
- package/dist/ldf/svg/train-sharp.svg +1 -1
- package/dist/ldf/svg/train.svg +1 -1
- package/dist/ldf/svg/transgender-outline.svg +1 -1
- package/dist/ldf/svg/transgender-sharp.svg +1 -1
- package/dist/ldf/svg/transgender.svg +1 -1
- package/dist/ldf/svg/trash-bin-outline.svg +1 -1
- package/dist/ldf/svg/trash-bin-sharp.svg +1 -1
- package/dist/ldf/svg/trash-bin.svg +1 -1
- package/dist/ldf/svg/trash-outline.svg +1 -1
- package/dist/ldf/svg/trash-sharp.svg +1 -1
- package/dist/ldf/svg/trash.svg +1 -1
- package/dist/ldf/svg/trending-down-outline.svg +1 -1
- package/dist/ldf/svg/trending-down-sharp.svg +1 -1
- package/dist/ldf/svg/trending-down.svg +1 -1
- package/dist/ldf/svg/trending-up-outline.svg +1 -1
- package/dist/ldf/svg/trending-up-sharp.svg +1 -1
- package/dist/ldf/svg/trending-up.svg +1 -1
- package/dist/ldf/svg/triangle-outline.svg +1 -1
- package/dist/ldf/svg/triangle-sharp.svg +1 -1
- package/dist/ldf/svg/triangle.svg +1 -1
- package/dist/ldf/svg/trophy-outline.svg +1 -1
- package/dist/ldf/svg/trophy-sharp.svg +1 -1
- package/dist/ldf/svg/trophy.svg +1 -1
- package/dist/ldf/svg/tv-outline.svg +1 -1
- package/dist/ldf/svg/tv-sharp.svg +1 -1
- package/dist/ldf/svg/tv.svg +1 -1
- package/dist/ldf/svg/umbrella-outline.svg +1 -1
- package/dist/ldf/svg/umbrella-sharp.svg +1 -1
- package/dist/ldf/svg/umbrella.svg +1 -1
- package/dist/ldf/svg/unlink-outline.svg +1 -0
- package/dist/ldf/svg/unlink-sharp.svg +1 -0
- package/dist/ldf/svg/unlink.svg +1 -0
- package/dist/ldf/svg/videocam-off-outline.svg +1 -0
- package/dist/ldf/svg/videocam-off-sharp.svg +1 -0
- package/dist/ldf/svg/videocam-off.svg +1 -0
- package/dist/ldf/svg/videocam-outline.svg +1 -1
- package/dist/ldf/svg/videocam-sharp.svg +1 -1
- package/dist/ldf/svg/videocam.svg +1 -1
- package/dist/ldf/svg/volume-high-outline.svg +1 -1
- package/dist/ldf/svg/volume-high-sharp.svg +1 -1
- package/dist/ldf/svg/volume-high.svg +1 -1
- package/dist/ldf/svg/volume-low-outline.svg +1 -1
- package/dist/ldf/svg/volume-low-sharp.svg +1 -1
- package/dist/ldf/svg/volume-low.svg +1 -1
- package/dist/ldf/svg/volume-medium-outline.svg +1 -1
- package/dist/ldf/svg/volume-medium-sharp.svg +1 -1
- package/dist/ldf/svg/volume-medium.svg +1 -1
- package/dist/ldf/svg/volume-mute-outline.svg +1 -1
- package/dist/ldf/svg/volume-mute-sharp.svg +1 -1
- package/dist/ldf/svg/volume-mute.svg +1 -1
- package/dist/ldf/svg/volume-off-outline.svg +1 -1
- package/dist/ldf/svg/volume-off-sharp.svg +1 -1
- package/dist/ldf/svg/volume-off.svg +1 -1
- package/dist/ldf/svg/walk-outline.svg +1 -1
- package/dist/ldf/svg/walk-sharp.svg +1 -1
- package/dist/ldf/svg/walk.svg +1 -1
- package/dist/ldf/svg/wallet-outline.svg +1 -1
- package/dist/ldf/svg/wallet-sharp.svg +1 -1
- package/dist/ldf/svg/wallet.svg +1 -1
- package/dist/ldf/svg/warning-outline.svg +1 -1
- package/dist/ldf/svg/warning-sharp.svg +1 -1
- package/dist/ldf/svg/warning.svg +1 -1
- package/dist/ldf/svg/watch-outline.svg +1 -1
- package/dist/ldf/svg/watch-sharp.svg +1 -1
- package/dist/ldf/svg/watch.svg +1 -1
- package/dist/ldf/svg/water-outline.svg +1 -1
- package/dist/ldf/svg/water-sharp.svg +1 -1
- package/dist/ldf/svg/water.svg +1 -1
- package/dist/ldf/svg/wifi-outline.svg +1 -1
- package/dist/ldf/svg/wifi-sharp.svg +1 -1
- package/dist/ldf/svg/wifi.svg +1 -1
- package/dist/ldf/svg/wine-outline.svg +1 -1
- package/dist/ldf/svg/wine-sharp.svg +1 -1
- package/dist/ldf/svg/wine.svg +1 -1
- package/dist/ldf/svg/woman-outline.svg +1 -1
- package/dist/ldf/svg/woman-sharp.svg +1 -1
- package/dist/ldf/svg/woman.svg +1 -1
- package/dist/ldf/swiper/swiper.bundle.js +260 -86
- package/dist/ldf/swiper/swiper.js +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +75 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +72 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +25 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +59 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +13 -19
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +21 -16
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +12 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +4 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +10 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +234 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +237 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +38 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +37 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +0 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +5 -5
- package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +25 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +25 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +6 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +6 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +85 -15
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +612 -70
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +601 -70
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +60 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +19 -5
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +19 -5
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +5 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +1 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +16 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +21 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +21 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +129 -27
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +326 -32
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +6 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +6 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +6 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +6 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +8 -4
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +113 -26
- package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +1 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +2 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +2 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +3 -7
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +3 -7
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +109 -17
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +77 -4
- package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +1 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +1 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +82 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +85 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +127 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +123 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +84 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +50 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +53 -38
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +53 -38
- package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +32 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +32 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +5 -5
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +7 -7
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +12 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +2 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +12 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +12 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +1 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +1 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +4 -4
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +27 -5
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +60 -6
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/{select-popover.css → select-popover.ios.css} +4 -4
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +37 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +4 -4
- package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +23 -10
- package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +1 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +1 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +2 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +1 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +51 -18
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +51 -18
- package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +14 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +15 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +15 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +76 -4
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +53 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +3 -2
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +2 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/virtual-scroll/virtual-scroll.css +1 -1
- package/dist/types/components/editable-string-list/editable-string-list.d.ts +2 -1
- package/dist/types/components.d.ts +163 -51
- package/dist/types/stencil-public-runtime.d.ts +196 -186
- package/loader/index.d.ts +0 -1
- package/package.json +5 -5
- package/dist/cjs/animation-34a434a2.js +0 -957
- package/dist/cjs/app-globals-60a4f972.js +0 -7
- package/dist/cjs/cubic-bezier-f3b34d27.js +0 -91
- package/dist/cjs/focus-visible-5621d6b1.js +0 -45
- package/dist/cjs/framework-delegate-84d33ff0.js +0 -37
- package/dist/cjs/gesture-controller-5bd9d825.js +0 -193
- package/dist/cjs/haptic-88c261ab.js +0 -49
- package/dist/cjs/hardware-back-button-8c2f48d2.js +0 -59
- package/dist/cjs/helpers-41dfb43a.js +0 -110
- package/dist/cjs/index-1a73a70c.js +0 -211
- package/dist/cjs/index-4b7e4228.js +0 -135
- package/dist/cjs/index-8197bb45.js +0 -441
- package/dist/cjs/index-c5bdf2bc.js +0 -167
- package/dist/cjs/index-e4c51e4d.js +0 -307
- package/dist/cjs/input-shims-9c2d56bd.js +0 -357
- package/dist/cjs/ion-action-sheet.cjs.entry.js +0 -230
- package/dist/cjs/ion-alert.cjs.entry.js +0 -386
- package/dist/cjs/ion-button_13.cjs.entry.js +0 -1806
- package/dist/cjs/ion-checkbox_3.cjs.entry.js +0 -234
- package/dist/cjs/ion-datetime_2.cjs.entry.js +0 -1125
- package/dist/cjs/ion-list-header.cjs.entry.js +0 -28
- package/dist/cjs/ion-note.cjs.entry.js +0 -27
- package/dist/cjs/ion-popover.cjs.entry.js +0 -363
- package/dist/cjs/ion-radio_2.cjs.entry.js +0 -149
- package/dist/cjs/ion-select-popover.cjs.entry.js +0 -33
- package/dist/cjs/ion-select_2.cjs.entry.js +0 -444
- package/dist/cjs/ionic-global-581fb4f8.js +0 -204
- package/dist/cjs/ios.transition-7244ac4e.js +0 -459
- package/dist/cjs/md.transition-d86b1ef0.js +0 -62
- package/dist/cjs/menu-toggle-util-293e388b.js +0 -11
- package/dist/cjs/overlays-eb464d6d.js +0 -228
- package/dist/cjs/spinner-configs-b0bec093.js +0 -112
- package/dist/cjs/status-tap-7afb25f5.js +0 -25
- package/dist/cjs/swipe-back-f887168e.js +0 -52
- package/dist/cjs/tap-click-e0af5237.js +0 -169
- package/dist/cjs/theme-81caa5b0.js +0 -47
- package/dist/esm/animation-7a1025d0.js +0 -955
- package/dist/esm/app-globals-729b03cf.js +0 -5
- package/dist/esm/cubic-bezier-89113939.js +0 -89
- package/dist/esm/focus-visible-571e113e.js +0 -43
- package/dist/esm/framework-delegate-7af2c551.js +0 -34
- package/dist/esm/gesture-controller-5bf8565e.js +0 -191
- package/dist/esm/haptic-fc16a4d8.js +0 -44
- package/dist/esm/hardware-back-button-b3b61715.js +0 -55
- package/dist/esm/helpers-8c93393b.js +0 -98
- package/dist/esm/index-734a6b69.js +0 -305
- package/dist/esm/index-82044e24.js +0 -439
- package/dist/esm/index-86d5f3ab.js +0 -133
- package/dist/esm/index-9579282b.js +0 -202
- package/dist/esm/index-c7ecbd63.js +0 -154
- package/dist/esm/input-shims-a4ad2743.js +0 -355
- package/dist/esm/ion-action-sheet.entry.js +0 -226
- package/dist/esm/ion-alert.entry.js +0 -382
- package/dist/esm/ion-button_13.entry.js +0 -1790
- package/dist/esm/ion-checkbox_3.entry.js +0 -228
- package/dist/esm/ion-datetime_2.entry.js +0 -1120
- package/dist/esm/ion-list-header.entry.js +0 -24
- package/dist/esm/ion-note.entry.js +0 -23
- package/dist/esm/ion-popover.entry.js +0 -359
- package/dist/esm/ion-radio_2.entry.js +0 -144
- package/dist/esm/ion-select-popover.entry.js +0 -29
- package/dist/esm/ion-select_2.entry.js +0 -439
- package/dist/esm/ionic-global-ef89a0a5.js +0 -199
- package/dist/esm/ios.transition-b1be0863.js +0 -456
- package/dist/esm/md.transition-1763f475.js +0 -60
- package/dist/esm/menu-toggle-util-29e61ff3.js +0 -9
- package/dist/esm/overlays-06b43b65.js +0 -212
- package/dist/esm/spinner-configs-5dd6891e.js +0 -110
- package/dist/esm/status-tap-7458bd71.js +0 -23
- package/dist/esm/swipe-back-762284df.js +0 -50
- package/dist/esm/tap-click-9b3d603b.js +0 -167
- package/dist/esm/theme-74c22054.js +0 -42
- package/dist/ldf/p-018e57db.entry.js +0 -1
- package/dist/ldf/p-03389897.js +0 -1
- package/dist/ldf/p-04715bf0.entry.js +0 -1
- package/dist/ldf/p-08584ccc.entry.js +0 -1
- package/dist/ldf/p-0873a34a.entry.js +0 -1
- package/dist/ldf/p-0ab55cf6.js +0 -1
- package/dist/ldf/p-1482a707.js +0 -1
- package/dist/ldf/p-1a8e2899.entry.js +0 -1
- package/dist/ldf/p-1d5e9bac.entry.js +0 -1
- package/dist/ldf/p-21e2f0a3.entry.js +0 -1
- package/dist/ldf/p-25a736f1.entry.js +0 -1
- package/dist/ldf/p-2c36a583.entry.js +0 -1
- package/dist/ldf/p-302dc0d5.entry.js +0 -1
- package/dist/ldf/p-31dc4ea7.entry.js +0 -1
- package/dist/ldf/p-327b14ac.entry.js +0 -1
- package/dist/ldf/p-32f7ba8e.entry.js +0 -1
- package/dist/ldf/p-3545fcdc.entry.js +0 -1
- package/dist/ldf/p-374118d7.entry.js +0 -1
- package/dist/ldf/p-380f8655.entry.js +0 -1
- package/dist/ldf/p-3c9930ff.entry.js +0 -1
- package/dist/ldf/p-3f39c2ad.entry.js +0 -1
- package/dist/ldf/p-402c811f.js +0 -1
- package/dist/ldf/p-430c418a.entry.js +0 -1
- package/dist/ldf/p-44c8d30b.entry.js +0 -1
- package/dist/ldf/p-48e44122.js +0 -1
- package/dist/ldf/p-4a4380fa.entry.js +0 -1
- package/dist/ldf/p-4b80de48.js +0 -1
- package/dist/ldf/p-4e0b3c0f.entry.js +0 -1
- package/dist/ldf/p-52656429.entry.js +0 -1
- package/dist/ldf/p-55d797c1.js +0 -1
- package/dist/ldf/p-56ea465d.entry.js +0 -1
- package/dist/ldf/p-59340423.entry.js +0 -1
- package/dist/ldf/p-5b51185b.js +0 -1
- package/dist/ldf/p-5be7ff17.entry.js +0 -1
- package/dist/ldf/p-63b5daf6.entry.js +0 -1
- package/dist/ldf/p-66a7385e.entry.js +0 -1
- package/dist/ldf/p-6857574d.js +0 -1
- package/dist/ldf/p-69f85ad3.entry.js +0 -1
- package/dist/ldf/p-714cf0b2.js +0 -1
- package/dist/ldf/p-718ae824.js +0 -1
- package/dist/ldf/p-79a526a1.entry.js +0 -1
- package/dist/ldf/p-7abeb82c.entry.js +0 -1
- package/dist/ldf/p-7efa633b.entry.js +0 -1
- package/dist/ldf/p-84f38db6.entry.js +0 -1
- package/dist/ldf/p-8767a74e.entry.js +0 -1
- package/dist/ldf/p-88dbd8b6.js +0 -1
- package/dist/ldf/p-8af99fa3.entry.js +0 -1
- package/dist/ldf/p-8c2727db.entry.js +0 -1
- package/dist/ldf/p-978e2c6d.js +0 -1
- package/dist/ldf/p-9bd5d1d4.entry.js +0 -1
- package/dist/ldf/p-9c397c49.entry.js +0 -1
- package/dist/ldf/p-9e255008.entry.js +0 -1
- package/dist/ldf/p-9e2c172e.entry.js +0 -1
- package/dist/ldf/p-ac7a17ce.entry.js +0 -1
- package/dist/ldf/p-acbbd1ec.js +0 -1
- package/dist/ldf/p-ada4d650.entry.js +0 -1
- package/dist/ldf/p-afc1a02c.js +0 -1
- package/dist/ldf/p-b1242016.js +0 -1
- package/dist/ldf/p-b62e8f49.js +0 -1
- package/dist/ldf/p-b78336d7.entry.js +0 -1
- package/dist/ldf/p-ba021918.entry.js +0 -1
- package/dist/ldf/p-c1df632d.entry.js +0 -1
- package/dist/ldf/p-c3042920.entry.js +0 -1
- package/dist/ldf/p-c3841978.entry.js +0 -1
- package/dist/ldf/p-c41e055c.entry.js +0 -1
- package/dist/ldf/p-c6a8f4aa.js +0 -1
- package/dist/ldf/p-c6b42618.entry.js +0 -1
- package/dist/ldf/p-c74d3fd0.entry.js +0 -1
- package/dist/ldf/p-c82dd468.entry.js +0 -1
- package/dist/ldf/p-ca698b8f.entry.js +0 -1
- package/dist/ldf/p-cbfbb80c.entry.js +0 -1
- package/dist/ldf/p-d282d4f9.js +0 -1
- package/dist/ldf/p-d7966e9b.entry.js +0 -1
- package/dist/ldf/p-d7f8c770.js +0 -1
- package/dist/ldf/p-d9c1c1f6.js +0 -1
- package/dist/ldf/p-dd99e42a.entry.js +0 -1
- package/dist/ldf/p-de5bb5ad.js +0 -1
- package/dist/ldf/p-e0e12ae3.entry.js +0 -1
- package/dist/ldf/p-e215fd02.entry.js +0 -1
- package/dist/ldf/p-e4be11ad.entry.js +0 -1
- package/dist/ldf/p-ebd887c2.entry.js +0 -1
- package/dist/ldf/p-ec5eecdc.entry.js +0 -1
- package/dist/ldf/p-ed3327fa.js +0 -1
- package/dist/ldf/p-f2ce126e.js +0 -1
- package/dist/ldf/p-f3a0c163.js +0 -1
- package/dist/ldf/p-fa135d5f.entry.js +0 -1
- package/dist/ldf/p-fddee761.entry.js +0 -1
- package/dist/ldf/p-fe59a676.entry.js +0 -1
|
@@ -0,0 +1,2584 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-01fdec29.js');
|
|
6
|
+
const index$2 = require('./index-b6879fbc.js');
|
|
7
|
+
const ionicGlobal = require('./ionic-global-bd0aab94.js');
|
|
8
|
+
const focusVisible = require('./focus-visible-b0b07ba6.js');
|
|
9
|
+
const helpers = require('./helpers-c2496722.js');
|
|
10
|
+
const index$1 = require('./index-e56e09b8.js');
|
|
11
|
+
const dir = require('./dir-5af5259a.js');
|
|
12
|
+
const theme = require('./theme-b0b295c1.js');
|
|
13
|
+
const parse = require('./parse-c36185aa.js');
|
|
14
|
+
const haptic = require('./haptic-780f33c4.js');
|
|
15
|
+
|
|
16
|
+
/*!
|
|
17
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
18
|
+
*/
|
|
19
|
+
const isYearDisabled = (refYear, minParts, maxParts) => {
|
|
20
|
+
if (minParts && minParts.year > refYear) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
if (maxParts && maxParts.year < refYear) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if a given day should
|
|
30
|
+
* not be interactive according to its value,
|
|
31
|
+
* or the max/min dates.
|
|
32
|
+
*/
|
|
33
|
+
const isDayDisabled = (refParts, minParts, maxParts, dayValues) => {
|
|
34
|
+
/**
|
|
35
|
+
* If this is a filler date (i.e. padding)
|
|
36
|
+
* then the date is disabled.
|
|
37
|
+
*/
|
|
38
|
+
if (refParts.day === null) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* If user passed in a list of acceptable day values
|
|
43
|
+
* check to make sure that the date we are looking
|
|
44
|
+
* at is in this array.
|
|
45
|
+
*/
|
|
46
|
+
if (dayValues !== undefined && !dayValues.includes(refParts.day)) {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Given a min date, perform the following
|
|
51
|
+
* checks. If any of them are true, then the
|
|
52
|
+
* day should be disabled:
|
|
53
|
+
* 1. Is the current year < the min allowed year?
|
|
54
|
+
* 2. Is the current year === min allowed year,
|
|
55
|
+
* but the current month < the min allowed month?
|
|
56
|
+
* 3. Is the current year === min allowed year, the
|
|
57
|
+
* current month === min allow month, but the current
|
|
58
|
+
* day < the min allowed day?
|
|
59
|
+
*/
|
|
60
|
+
if (minParts && parse.isBefore(refParts, minParts)) {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Given a max date, perform the following
|
|
65
|
+
* checks. If any of them are true, then the
|
|
66
|
+
* day should be disabled:
|
|
67
|
+
* 1. Is the current year > the max allowed year?
|
|
68
|
+
* 2. Is the current year === max allowed year,
|
|
69
|
+
* but the current month > the max allowed month?
|
|
70
|
+
* 3. Is the current year === max allowed year, the
|
|
71
|
+
* current month === max allow month, but the current
|
|
72
|
+
* day > the max allowed day?
|
|
73
|
+
*/
|
|
74
|
+
if (maxParts && parse.isAfter(refParts, maxParts)) {
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* If none of these checks
|
|
79
|
+
* passed then the date should
|
|
80
|
+
* be interactive.
|
|
81
|
+
*/
|
|
82
|
+
return false;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Given a locale, a date, the selected date(s), and today's date,
|
|
86
|
+
* generate the state for a given calendar day button.
|
|
87
|
+
*/
|
|
88
|
+
const getCalendarDayState = (locale, refParts, activeParts, todayParts, minParts, maxParts, dayValues) => {
|
|
89
|
+
/**
|
|
90
|
+
* activeParts signals what day(s) are currently selected in the datetime.
|
|
91
|
+
* If multiple="true", this will be an array, but the logic in this util
|
|
92
|
+
* is the same whether we have one selected day or many because we're only
|
|
93
|
+
* calculating the state for one button. So, we treat a single activeParts value
|
|
94
|
+
* the same as an array of length one.
|
|
95
|
+
*/
|
|
96
|
+
const activePartsArray = Array.isArray(activeParts) ? activeParts : [activeParts];
|
|
97
|
+
/**
|
|
98
|
+
* The day button is active if it is selected, or in other words, if refParts
|
|
99
|
+
* matches at least one selected date.
|
|
100
|
+
*/
|
|
101
|
+
const isActive = activePartsArray.find((parts) => parse.isSameDay(refParts, parts)) !== undefined;
|
|
102
|
+
const isToday = parse.isSameDay(refParts, todayParts);
|
|
103
|
+
const disabled = isDayDisabled(refParts, minParts, maxParts, dayValues);
|
|
104
|
+
/**
|
|
105
|
+
* Note that we always return one object regardless of whether activeParts
|
|
106
|
+
* was an array, since we pare down to one value for isActive.
|
|
107
|
+
*/
|
|
108
|
+
return {
|
|
109
|
+
disabled,
|
|
110
|
+
isActive,
|
|
111
|
+
isToday,
|
|
112
|
+
ariaSelected: isActive ? 'true' : null,
|
|
113
|
+
ariaLabel: parse.generateDayAriaLabel(locale, isToday, refParts),
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Returns `true` if the month is disabled given the
|
|
118
|
+
* current date value and min/max date constraints.
|
|
119
|
+
*/
|
|
120
|
+
const isMonthDisabled = (refParts, { minParts, maxParts, }) => {
|
|
121
|
+
// If the year is disabled then the month is disabled.
|
|
122
|
+
if (isYearDisabled(refParts.year, minParts, maxParts)) {
|
|
123
|
+
return true;
|
|
124
|
+
}
|
|
125
|
+
// If the date value is before the min date, then the month is disabled.
|
|
126
|
+
// If the date value is after the max date, then the month is disabled.
|
|
127
|
+
if ((minParts && parse.isBefore(refParts, minParts)) || (maxParts && parse.isAfter(refParts, maxParts))) {
|
|
128
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
return false;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Given a working date, an optional minimum date range,
|
|
134
|
+
* and an optional maximum date range; determine if the
|
|
135
|
+
* previous navigation button is disabled.
|
|
136
|
+
*/
|
|
137
|
+
const isPrevMonthDisabled = (refParts, minParts, maxParts) => {
|
|
138
|
+
const prevMonth = Object.assign(Object.assign({}, parse.getPreviousMonth(refParts)), { day: null });
|
|
139
|
+
return isMonthDisabled(prevMonth, {
|
|
140
|
+
minParts,
|
|
141
|
+
maxParts,
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Given a working date and a maximum date range,
|
|
146
|
+
* determine if the next navigation button is disabled.
|
|
147
|
+
*/
|
|
148
|
+
const isNextMonthDisabled = (refParts, maxParts) => {
|
|
149
|
+
const nextMonth = Object.assign(Object.assign({}, parse.getNextMonth(refParts)), { day: null });
|
|
150
|
+
return isMonthDisabled(nextMonth, {
|
|
151
|
+
maxParts,
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const datetimeIosCss = ":host{display:flex;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{order:3;text-align:end}:host .wheel-order-year-first .month-column{order:2;text-align:end}:host .wheel-order-year-first .year-column{order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:flex;flex:1 1 auto;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px;position:absolute;visibility:hidden;pointer-events:none}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-readonly),:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled){opacity:0.4}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:flex;justify-content:space-between}:host .calendar-action-buttons{display:flex;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:flex;align-items:center}:host .calendar-action-buttons ion-item ion-icon{padding-left:4px;padding-right:0;padding-top:0;padding-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-action-buttons ion-item ion-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0}}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}:host .calendar-body{display:flex;flex-grow:1;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{scroll-snap-align:start;scroll-snap-stop:always;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr);height:100%}:host .calendar-day{padding-left:0px;padding-right:0px;padding-top:0px;padding-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:0px;display:flex;position:relative;align-items:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;appearance:none;z-index:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day{padding-left:unset;padding-right:unset;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day{margin-left:unset;margin-right:unset;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px}}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}:host .calendar-day:after{border-radius:32px;padding-left:4px;padding-right:4px;padding-top:4px;padding-bottom:4px;position:absolute;top:50%;left:50%;width:32px;height:32px;transform:translate(-50%, -50%);content:\" \";z-index:-1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day:after{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}:host .datetime-time{display:flex;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:flex;align-items:center}:host .time-body{border-radius:8px;padding-left:12px;padding-right:12px;padding-top:6px;padding-bottom:6px;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .time-body{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-light, #ffffff);--background-rgb:var(--ion-color-light-rgb);--title-color:var(--ion-color-step-600, #666666)}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{padding-left:16px;padding-right:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, #cccccc)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .datetime-header{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host .datetime-header .datetime-title{color:var(--title-color);font-size:14px}:host .calendar-action-buttons ion-item{--padding-start:16px;--background-hover:transparent;--background-activated:transparent;font-size:16px;font-weight:600}:host .calendar-action-buttons ion-item ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, #b3b3b3);font-size:12px;font-weight:600;line-height:24px;text-transform:uppercase}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-days-of-week{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}:host .calendar-body .calendar-month .calendar-month-grid{padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;height:calc(100% - 16px)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-body .calendar-month .calendar-month-grid{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}:host .calendar-day{font-size:20px}:host .calendar-day:after{opacity:0.2}:host .calendar-day:focus:after{background:var(--ion-color-base)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-active:after{background:var(--ion-color-base)}:host .calendar-day.calendar-day-today.calendar-day-active{color:var(--ion-color-contrast)}:host .calendar-day.calendar-day-today.calendar-day-active:after{background:var(--ion-color-base);opacity:1}:host .datetime-time{padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:16px;font-size:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .datetime-time{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, #cccccc)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .datetime-buttons{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:flex;align-items:center;justify-content:space-between}:host .datetime-action-buttons{width:100%}";
|
|
156
|
+
|
|
157
|
+
const datetimeMdCss = ":host{display:flex;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{order:3;text-align:end}:host .wheel-order-year-first .month-column{order:2;text-align:end}:host .wheel-order-year-first .year-column{order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:flex;flex:1 1 auto;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px;position:absolute;visibility:hidden;pointer-events:none}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-readonly),:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled){opacity:0.4}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:flex;justify-content:space-between}:host .calendar-action-buttons{display:flex;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:flex;align-items:center}:host .calendar-action-buttons ion-item ion-icon{padding-left:4px;padding-right:0;padding-top:0;padding-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-action-buttons ion-item ion-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0}}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}:host .calendar-body{display:flex;flex-grow:1;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{scroll-snap-align:start;scroll-snap-stop:always;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr);height:100%}:host .calendar-day{padding-left:0px;padding-right:0px;padding-top:0px;padding-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:0px;display:flex;position:relative;align-items:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;appearance:none;z-index:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day{padding-left:unset;padding-right:unset;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day{margin-left:unset;margin-right:unset;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px}}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}:host .calendar-day:after{border-radius:32px;padding-left:4px;padding-right:4px;padding-top:4px;padding-bottom:4px;position:absolute;top:50%;left:50%;width:32px;height:32px;transform:translate(-50%, -50%);content:\" \";z-index:-1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day:after{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}:host .datetime-time{display:flex;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:flex;align-items:center}:host .time-body{border-radius:8px;padding-left:12px;padding-right:12px;padding-top:6px;padding-bottom:6px;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;appearance:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .time-body{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-step-100, #ffffff);--title-color:var(--ion-color-contrast)}:host .datetime-header{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .datetime-header{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}:host .datetime-header .datetime-title{font-size:12px;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:34px}:host .datetime-calendar .calendar-action-buttons ion-item{--padding-start:20px}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{color:var(--ion-color-step-650, #595959)}:host .calendar-days-of-week{padding-left:10px;padding-right:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, gray);font-size:14px;line-height:36px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-days-of-week{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}:host .calendar-body .calendar-month .calendar-month-grid{padding-left:10px;padding-right:10px;padding-top:3px;padding-bottom:0px;grid-template-rows:repeat(6, 1fr)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-body .calendar-month .calendar-month-grid{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}:host .calendar-day{padding-left:0px;padding-right:0;padding-top:13px;padding-bottom:13px;font-size:14px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .calendar-day{padding-left:unset;padding-right:unset;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0;padding-inline-end:0}}:host .calendar-day:focus:after{background:rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-today:after{border:1px solid var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-contrast)}:host .calendar-day.calendar-day-active:after{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .datetime-time{padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .datetime-time{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host .time-header{color:var(--ion-color-step-650, #595959)}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{padding-left:10px;padding-right:10px;padding-top:10px;padding-bottom:10px;display:flex;align-items:center;justify-content:flex-end}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .datetime-buttons{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}:host .datetime-view-buttons ion-button{color:var(--ion-color-step-800, #333333)}";
|
|
158
|
+
|
|
159
|
+
const Datetime = class {
|
|
160
|
+
constructor(hostRef) {
|
|
161
|
+
index.registerInstance(this, hostRef);
|
|
162
|
+
this.ionCancel = index.createEvent(this, "ionCancel", 7);
|
|
163
|
+
this.ionChange = index.createEvent(this, "ionChange", 7);
|
|
164
|
+
this.ionFocus = index.createEvent(this, "ionFocus", 7);
|
|
165
|
+
this.ionBlur = index.createEvent(this, "ionBlur", 7);
|
|
166
|
+
this.ionStyle = index.createEvent(this, "ionStyle", 7);
|
|
167
|
+
this.ionRender = index.createEvent(this, "ionRender", 7);
|
|
168
|
+
this.inputId = `ion-dt-${datetimeIds++}`;
|
|
169
|
+
/**
|
|
170
|
+
* Whether to highlight the active day with a solid circle (as opposed
|
|
171
|
+
* to the outline circle around today). If you don't specify an initial
|
|
172
|
+
* value for the datetime, it doesn't automatically init to a default to
|
|
173
|
+
* avoid unwanted change events firing. If the solid circle were still
|
|
174
|
+
* shown then, it would look like a date had already been selected, which
|
|
175
|
+
* is misleading UX.
|
|
176
|
+
*/
|
|
177
|
+
this.highlightActiveParts = false;
|
|
178
|
+
this.todayParts = parse.parseDate(parse.getToday());
|
|
179
|
+
this.prevPresentation = null;
|
|
180
|
+
this.showMonthAndYear = false;
|
|
181
|
+
this.activeParts = {
|
|
182
|
+
month: 5,
|
|
183
|
+
day: 28,
|
|
184
|
+
year: 2021,
|
|
185
|
+
hour: 13,
|
|
186
|
+
minute: 52,
|
|
187
|
+
ampm: 'pm',
|
|
188
|
+
};
|
|
189
|
+
this.workingParts = {
|
|
190
|
+
month: 5,
|
|
191
|
+
day: 28,
|
|
192
|
+
year: 2021,
|
|
193
|
+
hour: 13,
|
|
194
|
+
minute: 52,
|
|
195
|
+
ampm: 'pm',
|
|
196
|
+
};
|
|
197
|
+
this.isPresented = false;
|
|
198
|
+
this.isTimePopoverOpen = false;
|
|
199
|
+
/**
|
|
200
|
+
* The color to use from your application's color palette.
|
|
201
|
+
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
202
|
+
* For more information on colors, see [theming](/docs/theming/basics).
|
|
203
|
+
*/
|
|
204
|
+
this.color = 'primary';
|
|
205
|
+
/**
|
|
206
|
+
* The name of the control, which is submitted with the form data.
|
|
207
|
+
*/
|
|
208
|
+
this.name = this.inputId;
|
|
209
|
+
/**
|
|
210
|
+
* If `true`, the user cannot interact with the datetime.
|
|
211
|
+
*/
|
|
212
|
+
this.disabled = false;
|
|
213
|
+
/**
|
|
214
|
+
* If `true`, the datetime appears normal but is not interactive.
|
|
215
|
+
*/
|
|
216
|
+
this.readonly = false;
|
|
217
|
+
/**
|
|
218
|
+
* Which values you want to select. `'date'` will show
|
|
219
|
+
* a calendar picker to select the month, day, and year. `'time'`
|
|
220
|
+
* will show a time picker to select the hour, minute, and (optionally)
|
|
221
|
+
* AM/PM. `'date-time'` will show the date picker first and time picker second.
|
|
222
|
+
* `'time-date'` will show the time picker first and date picker second.
|
|
223
|
+
*/
|
|
224
|
+
this.presentation = 'date-time';
|
|
225
|
+
/**
|
|
226
|
+
* The text to display on the picker's cancel button.
|
|
227
|
+
*/
|
|
228
|
+
this.cancelText = 'Cancel';
|
|
229
|
+
/**
|
|
230
|
+
* The text to display on the picker's "Done" button.
|
|
231
|
+
*/
|
|
232
|
+
this.doneText = 'Done';
|
|
233
|
+
/**
|
|
234
|
+
* The text to display on the picker's "Clear" button.
|
|
235
|
+
*/
|
|
236
|
+
this.clearText = 'Clear';
|
|
237
|
+
/**
|
|
238
|
+
* The locale to use for `ion-datetime`. This
|
|
239
|
+
* impacts month and day name formatting.
|
|
240
|
+
* The `'default'` value refers to the default
|
|
241
|
+
* locale set by your device.
|
|
242
|
+
*/
|
|
243
|
+
this.locale = 'default';
|
|
244
|
+
/**
|
|
245
|
+
* The first day of the week to use for `ion-datetime`. The
|
|
246
|
+
* default value is `0` and represents Sunday.
|
|
247
|
+
*/
|
|
248
|
+
this.firstDayOfWeek = 0;
|
|
249
|
+
/**
|
|
250
|
+
* If `true`, multiple dates can be selected at once. Only
|
|
251
|
+
* applies to `presentation="date"` and `preferWheel="false"`.
|
|
252
|
+
*/
|
|
253
|
+
this.multiple = false;
|
|
254
|
+
/**
|
|
255
|
+
* If `true`, a header will be shown above the calendar
|
|
256
|
+
* picker. On `ios` mode this will include the
|
|
257
|
+
* slotted title, and on `md` mode this will include
|
|
258
|
+
* the slotted title and the selected date.
|
|
259
|
+
*/
|
|
260
|
+
this.showDefaultTitle = false;
|
|
261
|
+
/**
|
|
262
|
+
* If `true`, the default "Cancel" and "OK" buttons
|
|
263
|
+
* will be rendered at the bottom of the `ion-datetime`
|
|
264
|
+
* component. Developers can also use the `button` slot
|
|
265
|
+
* if they want to customize these buttons. If custom
|
|
266
|
+
* buttons are set in the `button` slot then the
|
|
267
|
+
* default buttons will not be rendered.
|
|
268
|
+
*/
|
|
269
|
+
this.showDefaultButtons = false;
|
|
270
|
+
/**
|
|
271
|
+
* If `true`, a "Clear" button will be rendered alongside
|
|
272
|
+
* the default "Cancel" and "OK" buttons at the bottom of the `ion-datetime`
|
|
273
|
+
* component. Developers can also use the `button` slot
|
|
274
|
+
* if they want to customize these buttons. If custom
|
|
275
|
+
* buttons are set in the `button` slot then the
|
|
276
|
+
* default buttons will not be rendered.
|
|
277
|
+
*/
|
|
278
|
+
this.showClearButton = false;
|
|
279
|
+
/**
|
|
280
|
+
* If `true`, the default "Time" label will be rendered
|
|
281
|
+
* for the time selector of the `ion-datetime` component.
|
|
282
|
+
* Developers can also use the `time-label` slot
|
|
283
|
+
* if they want to customize this label. If a custom
|
|
284
|
+
* label is set in the `time-label` slot then the
|
|
285
|
+
* default label will not be rendered.
|
|
286
|
+
*/
|
|
287
|
+
this.showDefaultTimeLabel = true;
|
|
288
|
+
/**
|
|
289
|
+
* If `cover`, the `ion-datetime` will expand to cover the full width of its container.
|
|
290
|
+
* If `fixed`, the `ion-datetime` will have a fixed width.
|
|
291
|
+
*/
|
|
292
|
+
this.size = 'fixed';
|
|
293
|
+
/**
|
|
294
|
+
* If `true`, a wheel picker will be rendered instead of a calendar grid
|
|
295
|
+
* where possible. If `false`, a calendar grid will be rendered instead of
|
|
296
|
+
* a wheel picker where possible.
|
|
297
|
+
*
|
|
298
|
+
* A wheel picker can be rendered instead of a grid when `presentation` is
|
|
299
|
+
* one of the following values: `'date'`, `'date-time'`, or `'time-date'`.
|
|
300
|
+
*
|
|
301
|
+
* A wheel picker will always be rendered regardless of
|
|
302
|
+
* the `preferWheel` value when `presentation` is one of the following values:
|
|
303
|
+
* `'time'`, `'month'`, `'month-year'`, or `'year'`.
|
|
304
|
+
*/
|
|
305
|
+
this.preferWheel = false;
|
|
306
|
+
this.closeParentOverlay = () => {
|
|
307
|
+
const popoverOrModal = this.el.closest('ion-modal, ion-popover');
|
|
308
|
+
if (popoverOrModal) {
|
|
309
|
+
popoverOrModal.dismiss();
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
this.setWorkingParts = (parts) => {
|
|
313
|
+
this.workingParts = Object.assign({}, parts);
|
|
314
|
+
};
|
|
315
|
+
this.setActiveParts = (parts, removeDate = false) => {
|
|
316
|
+
const { multiple, activePartsClone, highlightActiveParts } = this;
|
|
317
|
+
if (multiple) {
|
|
318
|
+
/**
|
|
319
|
+
* We read from activePartsClone here because valueChanged() only updates that,
|
|
320
|
+
* so it's the more reliable source of truth. If we read from activeParts, then
|
|
321
|
+
* if you click July 1, manually set the value to July 2, and then click July 3,
|
|
322
|
+
* the new value would be [July 1, July 3], ignoring the value set.
|
|
323
|
+
*
|
|
324
|
+
* We can then pass the new value to activeParts (rather than activePartsClone)
|
|
325
|
+
* since the clone will be updated automatically by activePartsChanged().
|
|
326
|
+
*/
|
|
327
|
+
const activePartsArray = Array.isArray(activePartsClone) ? activePartsClone : [activePartsClone];
|
|
328
|
+
if (removeDate) {
|
|
329
|
+
this.activeParts = activePartsArray.filter((p) => !parse.isSameDay(p, parts));
|
|
330
|
+
}
|
|
331
|
+
else if (highlightActiveParts) {
|
|
332
|
+
this.activeParts = [...activePartsArray, parts];
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
/**
|
|
336
|
+
* If highlightActiveParts is false, that means we just have a
|
|
337
|
+
* default value of today in activeParts; we need to replace that
|
|
338
|
+
* rather than adding to it since it's just a placeholder.
|
|
339
|
+
*/
|
|
340
|
+
this.activeParts = [parts];
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
this.activeParts = Object.assign({}, parts);
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Now that the user has interacted somehow to select something, we can
|
|
348
|
+
* show the solid highlight. This needs to be done after checking it above,
|
|
349
|
+
* but before the confirm call below.
|
|
350
|
+
*
|
|
351
|
+
* Note that for datetimes with confirm/cancel buttons, the value
|
|
352
|
+
* isn't updated until you call confirm(). We need to bring the
|
|
353
|
+
* solid circle back on day click for UX reasons, rather than only
|
|
354
|
+
* show the circle if `value` is truthy.
|
|
355
|
+
*/
|
|
356
|
+
this.highlightActiveParts = true;
|
|
357
|
+
const hasSlottedButtons = this.el.querySelector('[slot="buttons"]') !== null;
|
|
358
|
+
if (hasSlottedButtons || this.showDefaultButtons) {
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
this.confirm();
|
|
362
|
+
};
|
|
363
|
+
this.initializeKeyboardListeners = () => {
|
|
364
|
+
const calendarBodyRef = this.calendarBodyRef;
|
|
365
|
+
if (!calendarBodyRef) {
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
368
|
+
const root = this.el.shadowRoot;
|
|
369
|
+
/**
|
|
370
|
+
* Get a reference to the month
|
|
371
|
+
* element we are currently viewing.
|
|
372
|
+
*/
|
|
373
|
+
const currentMonth = calendarBodyRef.querySelector('.calendar-month:nth-of-type(2)');
|
|
374
|
+
/**
|
|
375
|
+
* When focusing the calendar body, we want to pass focus
|
|
376
|
+
* to the working day, but other days should
|
|
377
|
+
* only be accessible using the arrow keys. Pressing
|
|
378
|
+
* Tab should jump between bodies of selectable content.
|
|
379
|
+
*/
|
|
380
|
+
const checkCalendarBodyFocus = (ev) => {
|
|
381
|
+
var _a;
|
|
382
|
+
const record = ev[0];
|
|
383
|
+
/**
|
|
384
|
+
* If calendar body was already focused
|
|
385
|
+
* when this fired or if the calendar body
|
|
386
|
+
* if not currently focused, we should not re-focus
|
|
387
|
+
* the inner day.
|
|
388
|
+
*/
|
|
389
|
+
if (((_a = record.oldValue) === null || _a === void 0 ? void 0 : _a.includes('ion-focused')) || !calendarBodyRef.classList.contains('ion-focused')) {
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
392
|
+
this.focusWorkingDay(currentMonth);
|
|
393
|
+
};
|
|
394
|
+
const mo = new MutationObserver(checkCalendarBodyFocus);
|
|
395
|
+
mo.observe(calendarBodyRef, { attributeFilter: ['class'], attributeOldValue: true });
|
|
396
|
+
this.destroyKeyboardMO = () => {
|
|
397
|
+
mo === null || mo === void 0 ? void 0 : mo.disconnect();
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* We must use keydown not keyup as we want
|
|
401
|
+
* to prevent scrolling when using the arrow keys.
|
|
402
|
+
*/
|
|
403
|
+
calendarBodyRef.addEventListener('keydown', (ev) => {
|
|
404
|
+
const activeElement = root.activeElement;
|
|
405
|
+
if (!activeElement || !activeElement.classList.contains('calendar-day')) {
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
const parts = parse.getPartsFromCalendarDay(activeElement);
|
|
409
|
+
let partsToFocus;
|
|
410
|
+
switch (ev.key) {
|
|
411
|
+
case 'ArrowDown':
|
|
412
|
+
ev.preventDefault();
|
|
413
|
+
partsToFocus = parse.getNextWeek(parts);
|
|
414
|
+
break;
|
|
415
|
+
case 'ArrowUp':
|
|
416
|
+
ev.preventDefault();
|
|
417
|
+
partsToFocus = parse.getPreviousWeek(parts);
|
|
418
|
+
break;
|
|
419
|
+
case 'ArrowRight':
|
|
420
|
+
ev.preventDefault();
|
|
421
|
+
partsToFocus = parse.getNextDay(parts);
|
|
422
|
+
break;
|
|
423
|
+
case 'ArrowLeft':
|
|
424
|
+
ev.preventDefault();
|
|
425
|
+
partsToFocus = parse.getPreviousDay(parts);
|
|
426
|
+
break;
|
|
427
|
+
case 'Home':
|
|
428
|
+
ev.preventDefault();
|
|
429
|
+
partsToFocus = parse.getStartOfWeek(parts);
|
|
430
|
+
break;
|
|
431
|
+
case 'End':
|
|
432
|
+
ev.preventDefault();
|
|
433
|
+
partsToFocus = parse.getEndOfWeek(parts);
|
|
434
|
+
break;
|
|
435
|
+
case 'PageUp':
|
|
436
|
+
ev.preventDefault();
|
|
437
|
+
partsToFocus = ev.shiftKey ? parse.getPreviousYear(parts) : parse.getPreviousMonth(parts);
|
|
438
|
+
break;
|
|
439
|
+
case 'PageDown':
|
|
440
|
+
ev.preventDefault();
|
|
441
|
+
partsToFocus = ev.shiftKey ? parse.getNextYear(parts) : parse.getNextMonth(parts);
|
|
442
|
+
break;
|
|
443
|
+
/**
|
|
444
|
+
* Do not preventDefault here
|
|
445
|
+
* as we do not want to override other
|
|
446
|
+
* browser defaults such as pressing Enter/Space
|
|
447
|
+
* to select a day.
|
|
448
|
+
*/
|
|
449
|
+
default:
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* If the day we want to move focus to is
|
|
454
|
+
* disabled, do not do anything.
|
|
455
|
+
*/
|
|
456
|
+
if (isDayDisabled(partsToFocus, this.minParts, this.maxParts)) {
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
this.setWorkingParts(Object.assign(Object.assign({}, this.workingParts), partsToFocus));
|
|
460
|
+
/**
|
|
461
|
+
* Give view a chance to re-render
|
|
462
|
+
* then move focus to the new working day
|
|
463
|
+
*/
|
|
464
|
+
requestAnimationFrame(() => this.focusWorkingDay(currentMonth));
|
|
465
|
+
});
|
|
466
|
+
};
|
|
467
|
+
this.focusWorkingDay = (currentMonth) => {
|
|
468
|
+
/**
|
|
469
|
+
* Get the number of padding days so
|
|
470
|
+
* we know how much to offset our next selector by
|
|
471
|
+
* to grab the correct calenday-day element.
|
|
472
|
+
*/
|
|
473
|
+
const padding = currentMonth.querySelectorAll('.calendar-day-padding');
|
|
474
|
+
const { day } = this.workingParts;
|
|
475
|
+
if (day === null) {
|
|
476
|
+
return;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Get the calendar day element
|
|
480
|
+
* and focus it.
|
|
481
|
+
*/
|
|
482
|
+
const dayEl = currentMonth.querySelector(`.calendar-day:nth-of-type(${padding.length + day})`);
|
|
483
|
+
if (dayEl) {
|
|
484
|
+
dayEl.focus();
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
this.processMinParts = () => {
|
|
488
|
+
const { min, todayParts } = this;
|
|
489
|
+
if (min === undefined) {
|
|
490
|
+
this.minParts = undefined;
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
this.minParts = parse.parseMinParts(min, todayParts);
|
|
494
|
+
};
|
|
495
|
+
this.processMaxParts = () => {
|
|
496
|
+
const { max, todayParts } = this;
|
|
497
|
+
if (max === undefined) {
|
|
498
|
+
this.maxParts = undefined;
|
|
499
|
+
return;
|
|
500
|
+
}
|
|
501
|
+
this.maxParts = parse.parseMaxParts(max, todayParts);
|
|
502
|
+
};
|
|
503
|
+
this.initializeCalendarListener = () => {
|
|
504
|
+
const calendarBodyRef = this.calendarBodyRef;
|
|
505
|
+
if (!calendarBodyRef) {
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* For performance reasons, we only render 3
|
|
510
|
+
* months at a time: The current month, the previous
|
|
511
|
+
* month, and the next month. We have a scroll listener
|
|
512
|
+
* on the calendar body to append/prepend new months.
|
|
513
|
+
*
|
|
514
|
+
* We can do this because Stencil is smart enough to not
|
|
515
|
+
* re-create the .calendar-month containers, but rather
|
|
516
|
+
* update the content within those containers.
|
|
517
|
+
*
|
|
518
|
+
* As an added bonus, WebKit has some troubles with
|
|
519
|
+
* scroll-snap-stop: always, so not rendering all of
|
|
520
|
+
* the months in a row allows us to mostly sidestep
|
|
521
|
+
* that issue.
|
|
522
|
+
*/
|
|
523
|
+
const months = calendarBodyRef.querySelectorAll('.calendar-month');
|
|
524
|
+
const startMonth = months[0];
|
|
525
|
+
const workingMonth = months[1];
|
|
526
|
+
const endMonth = months[2];
|
|
527
|
+
const mode = ionicGlobal.getIonMode(this);
|
|
528
|
+
const needsiOSRubberBandFix = mode === 'ios' && typeof navigator !== 'undefined' && navigator.maxTouchPoints > 1;
|
|
529
|
+
/**
|
|
530
|
+
* Before setting up the scroll listener,
|
|
531
|
+
* scroll the middle month into view.
|
|
532
|
+
* scrollIntoView() will scroll entire page
|
|
533
|
+
* if element is not in viewport. Use scrollLeft instead.
|
|
534
|
+
*/
|
|
535
|
+
index.writeTask(() => {
|
|
536
|
+
calendarBodyRef.scrollLeft = startMonth.clientWidth * (dir.isRTL(this.el) ? -1 : 1);
|
|
537
|
+
const getChangedMonth = (parts) => {
|
|
538
|
+
const box = calendarBodyRef.getBoundingClientRect();
|
|
539
|
+
const root = this.el.shadowRoot;
|
|
540
|
+
/**
|
|
541
|
+
* Get the element that is in the center of the calendar body.
|
|
542
|
+
* This will be an element inside of the active month.
|
|
543
|
+
*/
|
|
544
|
+
const elementAtCenter = root.elementFromPoint(box.x + box.width / 2, box.y + box.height / 2);
|
|
545
|
+
/**
|
|
546
|
+
* If there is no element then the
|
|
547
|
+
* component may be re-rendering on a slow device.
|
|
548
|
+
*/
|
|
549
|
+
if (!elementAtCenter)
|
|
550
|
+
return;
|
|
551
|
+
const month = elementAtCenter.closest('.calendar-month');
|
|
552
|
+
if (!month)
|
|
553
|
+
return;
|
|
554
|
+
/**
|
|
555
|
+
* The edge of the month must be lined up with
|
|
556
|
+
* the edge of the calendar body in order for
|
|
557
|
+
* the component to update. Otherwise, it
|
|
558
|
+
* may be the case that the user has paused their
|
|
559
|
+
* swipe or the browser has not finished snapping yet.
|
|
560
|
+
* Rather than check if the x values are equal,
|
|
561
|
+
* we give it a tolerance of 2px to account for
|
|
562
|
+
* sub pixel rendering.
|
|
563
|
+
*/
|
|
564
|
+
const monthBox = month.getBoundingClientRect();
|
|
565
|
+
if (Math.abs(monthBox.x - box.x) > 2)
|
|
566
|
+
return;
|
|
567
|
+
/**
|
|
568
|
+
* From here, we can determine if the start
|
|
569
|
+
* month or the end month was scrolled into view.
|
|
570
|
+
* If no month was changed, then we can return from
|
|
571
|
+
* the scroll callback early.
|
|
572
|
+
*/
|
|
573
|
+
if (month === startMonth) {
|
|
574
|
+
return parse.getPreviousMonth(parts);
|
|
575
|
+
}
|
|
576
|
+
else if (month === endMonth) {
|
|
577
|
+
return parse.getNextMonth(parts);
|
|
578
|
+
}
|
|
579
|
+
else {
|
|
580
|
+
return;
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
const updateActiveMonth = () => {
|
|
584
|
+
if (needsiOSRubberBandFix) {
|
|
585
|
+
calendarBodyRef.style.removeProperty('pointer-events');
|
|
586
|
+
appliediOSRubberBandFix = false;
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* If the month did not change
|
|
590
|
+
* then we can return early.
|
|
591
|
+
*/
|
|
592
|
+
const newDate = getChangedMonth(this.workingParts);
|
|
593
|
+
if (!newDate)
|
|
594
|
+
return;
|
|
595
|
+
const { month, day, year } = newDate;
|
|
596
|
+
if (isMonthDisabled({ month, year, day: null }, {
|
|
597
|
+
minParts: Object.assign(Object.assign({}, this.minParts), { day: null }),
|
|
598
|
+
maxParts: Object.assign(Object.assign({}, this.maxParts), { day: null }),
|
|
599
|
+
})) {
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* Prevent scrolling for other browsers
|
|
604
|
+
* to give the DOM time to update and the container
|
|
605
|
+
* time to properly snap.
|
|
606
|
+
*/
|
|
607
|
+
calendarBodyRef.style.setProperty('overflow', 'hidden');
|
|
608
|
+
/**
|
|
609
|
+
* Use a writeTask here to ensure
|
|
610
|
+
* that the state is updated and the
|
|
611
|
+
* correct month is scrolled into view
|
|
612
|
+
* in the same frame. This is not
|
|
613
|
+
* typically a problem on newer devices
|
|
614
|
+
* but older/slower device may have a flicker
|
|
615
|
+
* if we did not do this.
|
|
616
|
+
*/
|
|
617
|
+
index.writeTask(() => {
|
|
618
|
+
this.setWorkingParts(Object.assign(Object.assign({}, this.workingParts), { month, day: day, year }));
|
|
619
|
+
calendarBodyRef.scrollLeft = workingMonth.clientWidth * (dir.isRTL(this.el) ? -1 : 1);
|
|
620
|
+
calendarBodyRef.style.removeProperty('overflow');
|
|
621
|
+
});
|
|
622
|
+
};
|
|
623
|
+
/**
|
|
624
|
+
* When the container finishes scrolling we
|
|
625
|
+
* need to update the DOM with the selected month.
|
|
626
|
+
*/
|
|
627
|
+
let scrollTimeout;
|
|
628
|
+
/**
|
|
629
|
+
* We do not want to attempt to set pointer-events
|
|
630
|
+
* multiple times within a single swipe gesture as
|
|
631
|
+
* that adds unnecessary work to the main thread.
|
|
632
|
+
*/
|
|
633
|
+
let appliediOSRubberBandFix = false;
|
|
634
|
+
const scrollCallback = () => {
|
|
635
|
+
if (scrollTimeout) {
|
|
636
|
+
clearTimeout(scrollTimeout);
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* On iOS it is possible to quickly rubber band
|
|
640
|
+
* the scroll area before the scroll timeout has fired.
|
|
641
|
+
* This results in users reaching the end of the scrollable
|
|
642
|
+
* container before the DOM has updated.
|
|
643
|
+
* By setting `pointer-events: none` we can ensure that
|
|
644
|
+
* subsequent swipes do not happen while the container
|
|
645
|
+
* is snapping.
|
|
646
|
+
*/
|
|
647
|
+
if (!appliediOSRubberBandFix && needsiOSRubberBandFix) {
|
|
648
|
+
calendarBodyRef.style.setProperty('pointer-events', 'none');
|
|
649
|
+
appliediOSRubberBandFix = true;
|
|
650
|
+
}
|
|
651
|
+
// Wait ~3 frames
|
|
652
|
+
scrollTimeout = setTimeout(updateActiveMonth, 50);
|
|
653
|
+
};
|
|
654
|
+
calendarBodyRef.addEventListener('scroll', scrollCallback);
|
|
655
|
+
this.destroyCalendarListener = () => {
|
|
656
|
+
calendarBodyRef.removeEventListener('scroll', scrollCallback);
|
|
657
|
+
};
|
|
658
|
+
});
|
|
659
|
+
};
|
|
660
|
+
/**
|
|
661
|
+
* Clean up all listeners except for the overlay
|
|
662
|
+
* listener. This is so that we can re-create the listeners
|
|
663
|
+
* if the datetime has been hidden/presented by a modal or popover.
|
|
664
|
+
*/
|
|
665
|
+
this.destroyInteractionListeners = () => {
|
|
666
|
+
const { destroyCalendarListener, destroyKeyboardMO } = this;
|
|
667
|
+
if (destroyCalendarListener !== undefined) {
|
|
668
|
+
destroyCalendarListener();
|
|
669
|
+
}
|
|
670
|
+
if (destroyKeyboardMO !== undefined) {
|
|
671
|
+
destroyKeyboardMO();
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
this.processValue = (value) => {
|
|
675
|
+
const hasValue = !!value;
|
|
676
|
+
this.highlightActiveParts = hasValue;
|
|
677
|
+
let valueToProcess = parse.parseDate(value || parse.getToday());
|
|
678
|
+
const { minParts, maxParts, multiple } = this;
|
|
679
|
+
if (!multiple && Array.isArray(value)) {
|
|
680
|
+
this.value = value[0];
|
|
681
|
+
valueToProcess = valueToProcess[0];
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Datetime should only warn of out of bounds values
|
|
685
|
+
* if set by the user. If the `value` is undefined,
|
|
686
|
+
* we will default to today's date which may be out
|
|
687
|
+
* of bounds. In this case, the warning makes it look
|
|
688
|
+
* like the developer did something wrong which is
|
|
689
|
+
* not true.
|
|
690
|
+
*/
|
|
691
|
+
if (hasValue) {
|
|
692
|
+
parse.warnIfValueOutOfBounds(valueToProcess, minParts, maxParts);
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* If there are multiple values, pick an arbitrary one to clamp to. This way,
|
|
696
|
+
* if the values are across months, we always show at least one of them. Note
|
|
697
|
+
* that the values don't necessarily have to be in order.
|
|
698
|
+
*/
|
|
699
|
+
const singleValue = Array.isArray(valueToProcess) ? valueToProcess[0] : valueToProcess;
|
|
700
|
+
const { month, day, year, hour, minute, tzOffset } = parse.clampDate(singleValue, minParts, maxParts);
|
|
701
|
+
const ampm = parse.parseAmPm(hour);
|
|
702
|
+
this.setWorkingParts({
|
|
703
|
+
month,
|
|
704
|
+
day,
|
|
705
|
+
year,
|
|
706
|
+
hour,
|
|
707
|
+
minute,
|
|
708
|
+
tzOffset,
|
|
709
|
+
ampm,
|
|
710
|
+
});
|
|
711
|
+
if (Array.isArray(valueToProcess)) {
|
|
712
|
+
this.activeParts = [...valueToProcess];
|
|
713
|
+
}
|
|
714
|
+
else {
|
|
715
|
+
this.activeParts = {
|
|
716
|
+
month,
|
|
717
|
+
day,
|
|
718
|
+
year,
|
|
719
|
+
hour,
|
|
720
|
+
minute,
|
|
721
|
+
tzOffset,
|
|
722
|
+
ampm,
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
};
|
|
726
|
+
this.onFocus = () => {
|
|
727
|
+
this.ionFocus.emit();
|
|
728
|
+
};
|
|
729
|
+
this.onBlur = () => {
|
|
730
|
+
this.ionBlur.emit();
|
|
731
|
+
};
|
|
732
|
+
this.hasValue = () => {
|
|
733
|
+
return this.value != null && this.value !== '';
|
|
734
|
+
};
|
|
735
|
+
this.nextMonth = () => {
|
|
736
|
+
const calendarBodyRef = this.calendarBodyRef;
|
|
737
|
+
if (!calendarBodyRef) {
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
const nextMonth = calendarBodyRef.querySelector('.calendar-month:last-of-type');
|
|
741
|
+
if (!nextMonth) {
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
744
|
+
const left = nextMonth.offsetWidth * 2;
|
|
745
|
+
calendarBodyRef.scrollTo({
|
|
746
|
+
top: 0,
|
|
747
|
+
left: left * (dir.isRTL(this.el) ? -1 : 1),
|
|
748
|
+
behavior: 'smooth',
|
|
749
|
+
});
|
|
750
|
+
};
|
|
751
|
+
this.prevMonth = () => {
|
|
752
|
+
const calendarBodyRef = this.calendarBodyRef;
|
|
753
|
+
if (!calendarBodyRef) {
|
|
754
|
+
return;
|
|
755
|
+
}
|
|
756
|
+
const prevMonth = calendarBodyRef.querySelector('.calendar-month:first-of-type');
|
|
757
|
+
if (!prevMonth) {
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
760
|
+
calendarBodyRef.scrollTo({
|
|
761
|
+
top: 0,
|
|
762
|
+
left: 0,
|
|
763
|
+
behavior: 'smooth',
|
|
764
|
+
});
|
|
765
|
+
};
|
|
766
|
+
this.toggleMonthAndYearView = () => {
|
|
767
|
+
this.showMonthAndYear = !this.showMonthAndYear;
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
disabledChanged() {
|
|
771
|
+
this.emitStyle();
|
|
772
|
+
}
|
|
773
|
+
minChanged() {
|
|
774
|
+
this.processMinParts();
|
|
775
|
+
}
|
|
776
|
+
maxChanged() {
|
|
777
|
+
this.processMaxParts();
|
|
778
|
+
}
|
|
779
|
+
yearValuesChanged() {
|
|
780
|
+
this.parsedYearValues = parse.convertToArrayOfNumbers(this.yearValues);
|
|
781
|
+
}
|
|
782
|
+
monthValuesChanged() {
|
|
783
|
+
this.parsedMonthValues = parse.convertToArrayOfNumbers(this.monthValues);
|
|
784
|
+
}
|
|
785
|
+
dayValuesChanged() {
|
|
786
|
+
this.parsedDayValues = parse.convertToArrayOfNumbers(this.dayValues);
|
|
787
|
+
}
|
|
788
|
+
hourValuesChanged() {
|
|
789
|
+
this.parsedHourValues = parse.convertToArrayOfNumbers(this.hourValues);
|
|
790
|
+
}
|
|
791
|
+
minuteValuesChanged() {
|
|
792
|
+
this.parsedMinuteValues = parse.convertToArrayOfNumbers(this.minuteValues);
|
|
793
|
+
}
|
|
794
|
+
activePartsChanged() {
|
|
795
|
+
this.activePartsClone = this.activeParts;
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* Update the datetime value when the value changes
|
|
799
|
+
*/
|
|
800
|
+
valueChanged() {
|
|
801
|
+
const { value, minParts, maxParts, workingParts, multiple } = this;
|
|
802
|
+
if (this.hasValue()) {
|
|
803
|
+
if (!multiple && Array.isArray(value)) {
|
|
804
|
+
this.value = value[0];
|
|
805
|
+
return; // setting this.value will trigger re-run of this function
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Clones the value of the `activeParts` to the private clone, to update
|
|
809
|
+
* the date display on the current render cycle without causing another render.
|
|
810
|
+
*
|
|
811
|
+
* This allows us to update the current value's date/time display without
|
|
812
|
+
* refocusing or shifting the user's display (leaves the user in place).
|
|
813
|
+
*/
|
|
814
|
+
const valueDateParts = parse.parseDate(value);
|
|
815
|
+
if (valueDateParts) {
|
|
816
|
+
parse.warnIfValueOutOfBounds(valueDateParts, minParts, maxParts);
|
|
817
|
+
if (Array.isArray(valueDateParts)) {
|
|
818
|
+
this.activePartsClone = [...valueDateParts];
|
|
819
|
+
}
|
|
820
|
+
else {
|
|
821
|
+
const { month, day, year, hour, minute } = valueDateParts;
|
|
822
|
+
const ampm = hour != null ? (hour >= 12 ? 'pm' : 'am') : undefined;
|
|
823
|
+
this.activePartsClone = Object.assign(Object.assign({}, this.activeParts), { month,
|
|
824
|
+
day,
|
|
825
|
+
year,
|
|
826
|
+
hour,
|
|
827
|
+
minute,
|
|
828
|
+
ampm });
|
|
829
|
+
/**
|
|
830
|
+
* The working parts am/pm value must be updated when the value changes, to
|
|
831
|
+
* ensure the time picker hour column values are generated correctly.
|
|
832
|
+
*
|
|
833
|
+
* Note that we don't need to do this if valueDateParts is an array, since
|
|
834
|
+
* multiple="true" does not apply to time pickers.
|
|
835
|
+
*/
|
|
836
|
+
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { ampm }));
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
else {
|
|
840
|
+
index$1.printIonWarning(`Unable to parse date string: ${value}. Please provide a valid ISO 8601 datetime string.`);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
this.emitStyle();
|
|
844
|
+
this.ionChange.emit({ value });
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Confirms the selected datetime value, updates the
|
|
848
|
+
* `value` property, and optionally closes the popover
|
|
849
|
+
* or modal that the datetime was presented in.
|
|
850
|
+
*/
|
|
851
|
+
async confirm(closeOverlay = false) {
|
|
852
|
+
const { highlightActiveParts, isCalendarPicker, activeParts } = this;
|
|
853
|
+
/**
|
|
854
|
+
* We only update the value if the presentation is not a calendar picker,
|
|
855
|
+
* or if `highlightActiveParts` is true; indicating that the user
|
|
856
|
+
* has selected a date from the calendar picker.
|
|
857
|
+
*
|
|
858
|
+
* Otherwise "today" would accidentally be set as the value.
|
|
859
|
+
*/
|
|
860
|
+
if (highlightActiveParts || !isCalendarPicker) {
|
|
861
|
+
const activePartsIsArray = Array.isArray(activeParts);
|
|
862
|
+
if (activePartsIsArray && activeParts.length === 0) {
|
|
863
|
+
this.value = undefined;
|
|
864
|
+
}
|
|
865
|
+
else {
|
|
866
|
+
/**
|
|
867
|
+
* Prevent convertDataToISO from doing any
|
|
868
|
+
* kind of transformation based on timezone
|
|
869
|
+
* This cancels out any change it attempts to make
|
|
870
|
+
*
|
|
871
|
+
* Important: Take the timezone offset based on
|
|
872
|
+
* the date that is currently selected, otherwise
|
|
873
|
+
* there can be 1 hr difference when dealing w/ DST
|
|
874
|
+
*/
|
|
875
|
+
if (activePartsIsArray) {
|
|
876
|
+
const dates = parse.convertDataToISO(activeParts).map((str) => new Date(str));
|
|
877
|
+
for (let i = 0; i < dates.length; i++) {
|
|
878
|
+
activeParts[i].tzOffset = dates[i].getTimezoneOffset() * -1;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
else {
|
|
882
|
+
const date = new Date(parse.convertDataToISO(activeParts));
|
|
883
|
+
activeParts.tzOffset = date.getTimezoneOffset() * -1;
|
|
884
|
+
}
|
|
885
|
+
this.value = parse.convertDataToISO(activeParts);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
if (closeOverlay) {
|
|
889
|
+
this.closeParentOverlay();
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Resets the internal state of the datetime but does not update the value.
|
|
894
|
+
* Passing a valid ISO-8601 string will reset the state of the component to the provided date.
|
|
895
|
+
* If no value is provided, the internal state will be reset to the clamped value of the min, max and today.
|
|
896
|
+
*/
|
|
897
|
+
async reset(startDate) {
|
|
898
|
+
this.processValue(startDate);
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* Emits the ionCancel event and
|
|
902
|
+
* optionally closes the popover
|
|
903
|
+
* or modal that the datetime was
|
|
904
|
+
* presented in.
|
|
905
|
+
*/
|
|
906
|
+
async cancel(closeOverlay = false) {
|
|
907
|
+
this.ionCancel.emit();
|
|
908
|
+
if (closeOverlay) {
|
|
909
|
+
this.closeParentOverlay();
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
get isCalendarPicker() {
|
|
913
|
+
const { presentation } = this;
|
|
914
|
+
return presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
915
|
+
}
|
|
916
|
+
connectedCallback() {
|
|
917
|
+
this.clearFocusVisible = focusVisible.startFocusVisible(this.el).destroy;
|
|
918
|
+
}
|
|
919
|
+
disconnectedCallback() {
|
|
920
|
+
if (this.clearFocusVisible) {
|
|
921
|
+
this.clearFocusVisible();
|
|
922
|
+
this.clearFocusVisible = undefined;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
initializeListeners() {
|
|
926
|
+
this.initializeCalendarListener();
|
|
927
|
+
this.initializeKeyboardListeners();
|
|
928
|
+
}
|
|
929
|
+
componentDidLoad() {
|
|
930
|
+
/**
|
|
931
|
+
* If a scrollable element is hidden using `display: none`,
|
|
932
|
+
* it will not have a scroll height meaning we cannot scroll elements
|
|
933
|
+
* into view. As a result, we will need to wait for the datetime to become
|
|
934
|
+
* visible if used inside of a modal or a popover otherwise the scrollable
|
|
935
|
+
* areas will not have the correct values snapped into place.
|
|
936
|
+
*/
|
|
937
|
+
const visibleCallback = (entries) => {
|
|
938
|
+
const ev = entries[0];
|
|
939
|
+
if (!ev.isIntersecting) {
|
|
940
|
+
return;
|
|
941
|
+
}
|
|
942
|
+
this.initializeListeners();
|
|
943
|
+
/**
|
|
944
|
+
* TODO: Datetime needs a frame to ensure that it
|
|
945
|
+
* can properly scroll contents into view. As a result
|
|
946
|
+
* we hide the scrollable content until after that frame
|
|
947
|
+
* so users do not see the content quickly shifting. The downside
|
|
948
|
+
* is that the content will pop into view a frame after. Maybe there
|
|
949
|
+
* is a better way to handle this?
|
|
950
|
+
*/
|
|
951
|
+
index.writeTask(() => {
|
|
952
|
+
this.el.classList.add('datetime-ready');
|
|
953
|
+
});
|
|
954
|
+
};
|
|
955
|
+
const visibleIO = new IntersectionObserver(visibleCallback, { threshold: 0.01 });
|
|
956
|
+
/**
|
|
957
|
+
* Use raf to avoid a race condition between the component loading and
|
|
958
|
+
* its display animation starting (such as when shown in a modal). This
|
|
959
|
+
* could cause the datetime to start at a visibility of 0, erroneously
|
|
960
|
+
* triggering the `hiddenIO` observer below.
|
|
961
|
+
*/
|
|
962
|
+
helpers.raf(() => visibleIO === null || visibleIO === void 0 ? void 0 : visibleIO.observe(this.el));
|
|
963
|
+
/**
|
|
964
|
+
* We need to clean up listeners when the datetime is hidden
|
|
965
|
+
* in a popover/modal so that we can properly scroll containers
|
|
966
|
+
* back into view if they are re-presented. When the datetime is hidden
|
|
967
|
+
* the scroll areas have scroll widths/heights of 0px, so any snapping
|
|
968
|
+
* we did originally has been lost.
|
|
969
|
+
*/
|
|
970
|
+
const hiddenCallback = (entries) => {
|
|
971
|
+
const ev = entries[0];
|
|
972
|
+
if (ev.isIntersecting) {
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
this.destroyInteractionListeners();
|
|
976
|
+
/**
|
|
977
|
+
* When datetime is hidden, we need to make sure that
|
|
978
|
+
* the month/year picker is closed. Otherwise,
|
|
979
|
+
* it will be open when the datetime re-appears
|
|
980
|
+
* and the scroll area of the calendar grid will be 0.
|
|
981
|
+
* As a result, the wrong month will be shown.
|
|
982
|
+
*/
|
|
983
|
+
this.showMonthAndYear = false;
|
|
984
|
+
index.writeTask(() => {
|
|
985
|
+
this.el.classList.remove('datetime-ready');
|
|
986
|
+
});
|
|
987
|
+
};
|
|
988
|
+
const hiddenIO = new IntersectionObserver(hiddenCallback, { threshold: 0 });
|
|
989
|
+
helpers.raf(() => hiddenIO === null || hiddenIO === void 0 ? void 0 : hiddenIO.observe(this.el));
|
|
990
|
+
/**
|
|
991
|
+
* Datetime uses Ionic components that emit
|
|
992
|
+
* ionFocus and ionBlur. These events are
|
|
993
|
+
* composed meaning they will cross
|
|
994
|
+
* the shadow dom boundary. We need to
|
|
995
|
+
* stop propagation on these events otherwise
|
|
996
|
+
* developers will see 2 ionFocus or 2 ionBlur
|
|
997
|
+
* events at a time.
|
|
998
|
+
*/
|
|
999
|
+
const root = helpers.getElementRoot(this.el);
|
|
1000
|
+
root.addEventListener('ionFocus', (ev) => ev.stopPropagation());
|
|
1001
|
+
root.addEventListener('ionBlur', (ev) => ev.stopPropagation());
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* When the presentation is changed, all calendar content is recreated,
|
|
1005
|
+
* so we need to re-init behavior with the new elements.
|
|
1006
|
+
*/
|
|
1007
|
+
componentDidRender() {
|
|
1008
|
+
const { presentation, prevPresentation } = this;
|
|
1009
|
+
if (prevPresentation === null) {
|
|
1010
|
+
this.prevPresentation = presentation;
|
|
1011
|
+
return;
|
|
1012
|
+
}
|
|
1013
|
+
if (presentation === prevPresentation) {
|
|
1014
|
+
return;
|
|
1015
|
+
}
|
|
1016
|
+
this.prevPresentation = presentation;
|
|
1017
|
+
this.destroyInteractionListeners();
|
|
1018
|
+
this.initializeListeners();
|
|
1019
|
+
/**
|
|
1020
|
+
* The month/year picker from the date interface
|
|
1021
|
+
* should be closed as it is not available in non-date
|
|
1022
|
+
* interfaces.
|
|
1023
|
+
*/
|
|
1024
|
+
this.showMonthAndYear = false;
|
|
1025
|
+
helpers.raf(() => {
|
|
1026
|
+
this.ionRender.emit();
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
componentWillLoad() {
|
|
1030
|
+
const { el, multiple, presentation, preferWheel } = this;
|
|
1031
|
+
if (multiple) {
|
|
1032
|
+
if (presentation !== 'date') {
|
|
1033
|
+
index$1.printIonWarning('Multiple date selection is only supported for presentation="date".', el);
|
|
1034
|
+
}
|
|
1035
|
+
if (preferWheel) {
|
|
1036
|
+
index$1.printIonWarning('Multiple date selection is not supported with preferWheel="true".', el);
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
this.processMinParts();
|
|
1040
|
+
this.processMaxParts();
|
|
1041
|
+
this.processValue(this.value);
|
|
1042
|
+
this.parsedHourValues = parse.convertToArrayOfNumbers(this.hourValues);
|
|
1043
|
+
this.parsedMinuteValues = parse.convertToArrayOfNumbers(this.minuteValues);
|
|
1044
|
+
this.parsedMonthValues = parse.convertToArrayOfNumbers(this.monthValues);
|
|
1045
|
+
this.parsedYearValues = parse.convertToArrayOfNumbers(this.yearValues);
|
|
1046
|
+
this.parsedDayValues = parse.convertToArrayOfNumbers(this.dayValues);
|
|
1047
|
+
this.emitStyle();
|
|
1048
|
+
}
|
|
1049
|
+
emitStyle() {
|
|
1050
|
+
this.ionStyle.emit({
|
|
1051
|
+
interactive: true,
|
|
1052
|
+
datetime: true,
|
|
1053
|
+
'interactive-disabled': this.disabled,
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* Universal render methods
|
|
1058
|
+
* These are pieces of datetime that
|
|
1059
|
+
* are rendered independently of presentation.
|
|
1060
|
+
*/
|
|
1061
|
+
renderFooter() {
|
|
1062
|
+
const { showDefaultButtons, showClearButton } = this;
|
|
1063
|
+
const hasSlottedButtons = this.el.querySelector('[slot="buttons"]') !== null;
|
|
1064
|
+
if (!hasSlottedButtons && !showDefaultButtons && !showClearButton) {
|
|
1065
|
+
return;
|
|
1066
|
+
}
|
|
1067
|
+
const clearButtonClick = () => {
|
|
1068
|
+
this.reset();
|
|
1069
|
+
this.value = undefined;
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* By default we render two buttons:
|
|
1073
|
+
* Cancel - Dismisses the datetime and
|
|
1074
|
+
* does not update the `value` prop.
|
|
1075
|
+
* OK - Dismisses the datetime and
|
|
1076
|
+
* updates the `value` prop.
|
|
1077
|
+
*/
|
|
1078
|
+
return (index.h("div", { class: "datetime-footer" }, index.h("div", { class: "datetime-buttons" }, index.h("div", { class: {
|
|
1079
|
+
['datetime-action-buttons']: true,
|
|
1080
|
+
['has-clear-button']: this.showClearButton,
|
|
1081
|
+
} }, index.h("slot", { name: "buttons" }, index.h("ion-buttons", null, showDefaultButtons && (index.h("ion-button", { id: "cancel-button", color: this.color, onClick: () => this.cancel(true) }, this.cancelText)), index.h("div", null, showClearButton && (index.h("ion-button", { id: "clear-button", color: this.color, onClick: () => clearButtonClick() }, this.clearText)), showDefaultButtons && (index.h("ion-button", { id: "confirm-button", color: this.color, onClick: () => this.confirm(true) }, this.doneText)))))))));
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Wheel picker render methods
|
|
1085
|
+
*/
|
|
1086
|
+
renderWheelPicker(forcePresentation = this.presentation) {
|
|
1087
|
+
/**
|
|
1088
|
+
* If presentation="time-date" we switch the
|
|
1089
|
+
* order of the render array here instead of
|
|
1090
|
+
* manually reordering each date/time picker
|
|
1091
|
+
* column with CSS. This allows for additional
|
|
1092
|
+
* flexibility if we need to render subsets
|
|
1093
|
+
* of the date/time data or do additional ordering
|
|
1094
|
+
* within the child render functions.
|
|
1095
|
+
*/
|
|
1096
|
+
const renderArray = forcePresentation === 'time-date'
|
|
1097
|
+
? [this.renderTimePickerColumns(forcePresentation), this.renderDatePickerColumns(forcePresentation)]
|
|
1098
|
+
: [this.renderDatePickerColumns(forcePresentation), this.renderTimePickerColumns(forcePresentation)];
|
|
1099
|
+
return index.h("ion-picker-internal", null, renderArray);
|
|
1100
|
+
}
|
|
1101
|
+
renderDatePickerColumns(forcePresentation) {
|
|
1102
|
+
return forcePresentation === 'date-time' || forcePresentation === 'time-date'
|
|
1103
|
+
? this.renderCombinedDatePickerColumn()
|
|
1104
|
+
: this.renderIndividualDatePickerColumns(forcePresentation);
|
|
1105
|
+
}
|
|
1106
|
+
renderCombinedDatePickerColumn() {
|
|
1107
|
+
const { activeParts, workingParts, locale, minParts, maxParts, todayParts, isDateEnabled } = this;
|
|
1108
|
+
/**
|
|
1109
|
+
* By default, generate a range of 3 months:
|
|
1110
|
+
* Previous month, current month, and next month
|
|
1111
|
+
*/
|
|
1112
|
+
const monthsToRender = parse.generateMonths(workingParts);
|
|
1113
|
+
/**
|
|
1114
|
+
* generateMonths returns the day data as well,
|
|
1115
|
+
* but we do not want the day value to act as a max/min
|
|
1116
|
+
* on the data we are going to generate.
|
|
1117
|
+
*/
|
|
1118
|
+
for (let i = 0; i <= monthsToRender.length - 1; i++) {
|
|
1119
|
+
monthsToRender[i].day = null;
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* If developers have provided their own
|
|
1123
|
+
* min/max values, use that instead. Otherwise,
|
|
1124
|
+
* fallback to the default range of 3 months.
|
|
1125
|
+
*/
|
|
1126
|
+
const min = minParts || monthsToRender[0];
|
|
1127
|
+
const max = maxParts || monthsToRender[monthsToRender.length - 1];
|
|
1128
|
+
const result = parse.getCombinedDateColumnData(locale, workingParts, todayParts, min, max, this.parsedDayValues, this.parsedMonthValues);
|
|
1129
|
+
let items = result.items;
|
|
1130
|
+
const parts = result.parts;
|
|
1131
|
+
if (isDateEnabled) {
|
|
1132
|
+
items = items.map((itemObject, index) => {
|
|
1133
|
+
const referenceParts = parts[index];
|
|
1134
|
+
let disabled;
|
|
1135
|
+
try {
|
|
1136
|
+
/**
|
|
1137
|
+
* The `isDateEnabled` implementation is try-catch wrapped
|
|
1138
|
+
* to prevent exceptions in the user's function from
|
|
1139
|
+
* interrupting the calendar rendering.
|
|
1140
|
+
*/
|
|
1141
|
+
disabled = !isDateEnabled(parse.convertDataToISO(referenceParts));
|
|
1142
|
+
}
|
|
1143
|
+
catch (e) {
|
|
1144
|
+
index$1.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
|
|
1145
|
+
}
|
|
1146
|
+
return Object.assign(Object.assign({}, itemObject), { disabled });
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* If we have selected a day already, then default the column
|
|
1151
|
+
* to that value. Otherwise, default it to today.
|
|
1152
|
+
*/
|
|
1153
|
+
const todayString = workingParts.day
|
|
1154
|
+
? `${workingParts.year}-${workingParts.month}-${workingParts.day}`
|
|
1155
|
+
: `${todayParts.year}-${todayParts.month}-${todayParts.day}`;
|
|
1156
|
+
return (index.h("ion-picker-column-internal", { class: "date-column", color: this.color, items: items, value: todayString, onIonChange: (ev) => {
|
|
1157
|
+
// TODO(FW-1823) Remove this when iOS 14 support is dropped.
|
|
1158
|
+
// Due to a Safari 14 issue we need to destroy
|
|
1159
|
+
// the scroll listener before we update state
|
|
1160
|
+
// and trigger a re-render.
|
|
1161
|
+
if (this.destroyCalendarListener) {
|
|
1162
|
+
this.destroyCalendarListener();
|
|
1163
|
+
}
|
|
1164
|
+
const { value } = ev.detail;
|
|
1165
|
+
const findPart = parts.find(({ month, day, year }) => value === `${year}-${month}-${day}`);
|
|
1166
|
+
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), findPart));
|
|
1167
|
+
if (!Array.isArray(activeParts)) {
|
|
1168
|
+
this.setActiveParts(Object.assign(Object.assign({}, activeParts), findPart));
|
|
1169
|
+
}
|
|
1170
|
+
// We can re-attach the scroll listener after
|
|
1171
|
+
// the working parts have been updated.
|
|
1172
|
+
this.initializeCalendarListener();
|
|
1173
|
+
ev.stopPropagation();
|
|
1174
|
+
} }));
|
|
1175
|
+
}
|
|
1176
|
+
renderIndividualDatePickerColumns(forcePresentation) {
|
|
1177
|
+
const { workingParts, isDateEnabled } = this;
|
|
1178
|
+
const shouldRenderMonths = forcePresentation !== 'year' && forcePresentation !== 'time';
|
|
1179
|
+
const months = shouldRenderMonths
|
|
1180
|
+
? parse.getMonthColumnData(this.locale, workingParts, this.minParts, this.maxParts, this.parsedMonthValues)
|
|
1181
|
+
: [];
|
|
1182
|
+
const shouldRenderDays = forcePresentation === 'date';
|
|
1183
|
+
let days = shouldRenderDays
|
|
1184
|
+
? parse.getDayColumnData(this.locale, workingParts, this.minParts, this.maxParts, this.parsedDayValues)
|
|
1185
|
+
: [];
|
|
1186
|
+
if (isDateEnabled) {
|
|
1187
|
+
days = days.map((dayObject) => {
|
|
1188
|
+
const { value } = dayObject;
|
|
1189
|
+
const valueNum = typeof value === 'string' ? parseInt(value) : value;
|
|
1190
|
+
const referenceParts = {
|
|
1191
|
+
month: workingParts.month,
|
|
1192
|
+
day: valueNum,
|
|
1193
|
+
year: workingParts.year,
|
|
1194
|
+
};
|
|
1195
|
+
let disabled;
|
|
1196
|
+
try {
|
|
1197
|
+
/**
|
|
1198
|
+
* The `isDateEnabled` implementation is try-catch wrapped
|
|
1199
|
+
* to prevent exceptions in the user's function from
|
|
1200
|
+
* interrupting the calendar rendering.
|
|
1201
|
+
*/
|
|
1202
|
+
disabled = !isDateEnabled(parse.convertDataToISO(referenceParts));
|
|
1203
|
+
}
|
|
1204
|
+
catch (e) {
|
|
1205
|
+
index$1.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
|
|
1206
|
+
}
|
|
1207
|
+
return Object.assign(Object.assign({}, dayObject), { disabled });
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
const shouldRenderYears = forcePresentation !== 'month' && forcePresentation !== 'time';
|
|
1211
|
+
const years = shouldRenderYears
|
|
1212
|
+
? parse.getYearColumnData(this.todayParts, this.minParts, this.maxParts, this.parsedYearValues)
|
|
1213
|
+
: [];
|
|
1214
|
+
/**
|
|
1215
|
+
* Certain locales show the day before the month.
|
|
1216
|
+
*/
|
|
1217
|
+
const showMonthFirst = parse.isMonthFirstLocale(this.locale, { month: 'numeric', day: 'numeric' });
|
|
1218
|
+
let renderArray = [];
|
|
1219
|
+
if (showMonthFirst) {
|
|
1220
|
+
renderArray = [
|
|
1221
|
+
this.renderMonthPickerColumn(months),
|
|
1222
|
+
this.renderDayPickerColumn(days),
|
|
1223
|
+
this.renderYearPickerColumn(years),
|
|
1224
|
+
];
|
|
1225
|
+
}
|
|
1226
|
+
else {
|
|
1227
|
+
renderArray = [
|
|
1228
|
+
this.renderDayPickerColumn(days),
|
|
1229
|
+
this.renderMonthPickerColumn(months),
|
|
1230
|
+
this.renderYearPickerColumn(years),
|
|
1231
|
+
];
|
|
1232
|
+
}
|
|
1233
|
+
return renderArray;
|
|
1234
|
+
}
|
|
1235
|
+
renderDayPickerColumn(days) {
|
|
1236
|
+
var _a;
|
|
1237
|
+
if (days.length === 0) {
|
|
1238
|
+
return [];
|
|
1239
|
+
}
|
|
1240
|
+
const { activeParts, workingParts } = this;
|
|
1241
|
+
return (index.h("ion-picker-column-internal", { class: "day-column", color: this.color, items: days, value: (_a = (workingParts.day || this.todayParts.day)) !== null && _a !== void 0 ? _a : undefined, onIonChange: (ev) => {
|
|
1242
|
+
// TODO(FW-1823) Remove this when iOS 14 support is dropped.
|
|
1243
|
+
// Due to a Safari 14 issue we need to destroy
|
|
1244
|
+
// the scroll listener before we update state
|
|
1245
|
+
// and trigger a re-render.
|
|
1246
|
+
if (this.destroyCalendarListener) {
|
|
1247
|
+
this.destroyCalendarListener();
|
|
1248
|
+
}
|
|
1249
|
+
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { day: ev.detail.value }));
|
|
1250
|
+
if (!Array.isArray(activeParts)) {
|
|
1251
|
+
this.setActiveParts(Object.assign(Object.assign({}, activeParts), { day: ev.detail.value }));
|
|
1252
|
+
}
|
|
1253
|
+
// We can re-attach the scroll listener after
|
|
1254
|
+
// the working parts have been updated.
|
|
1255
|
+
this.initializeCalendarListener();
|
|
1256
|
+
ev.stopPropagation();
|
|
1257
|
+
} }));
|
|
1258
|
+
}
|
|
1259
|
+
renderMonthPickerColumn(months) {
|
|
1260
|
+
if (months.length === 0) {
|
|
1261
|
+
return [];
|
|
1262
|
+
}
|
|
1263
|
+
const { activeParts, workingParts } = this;
|
|
1264
|
+
return (index.h("ion-picker-column-internal", { class: "month-column", color: this.color, items: months, value: workingParts.month, onIonChange: (ev) => {
|
|
1265
|
+
// TODO(FW-1823) Remove this when iOS 14 support is dropped.
|
|
1266
|
+
// Due to a Safari 14 issue we need to destroy
|
|
1267
|
+
// the scroll listener before we update state
|
|
1268
|
+
// and trigger a re-render.
|
|
1269
|
+
if (this.destroyCalendarListener) {
|
|
1270
|
+
this.destroyCalendarListener();
|
|
1271
|
+
}
|
|
1272
|
+
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { month: ev.detail.value }));
|
|
1273
|
+
if (!Array.isArray(activeParts)) {
|
|
1274
|
+
this.setActiveParts(Object.assign(Object.assign({}, activeParts), { month: ev.detail.value }));
|
|
1275
|
+
}
|
|
1276
|
+
// We can re-attach the scroll listener after
|
|
1277
|
+
// the working parts have been updated.
|
|
1278
|
+
this.initializeCalendarListener();
|
|
1279
|
+
ev.stopPropagation();
|
|
1280
|
+
} }));
|
|
1281
|
+
}
|
|
1282
|
+
renderYearPickerColumn(years) {
|
|
1283
|
+
if (years.length === 0) {
|
|
1284
|
+
return [];
|
|
1285
|
+
}
|
|
1286
|
+
const { activeParts, workingParts } = this;
|
|
1287
|
+
return (index.h("ion-picker-column-internal", { class: "year-column", color: this.color, items: years, value: workingParts.year, onIonChange: (ev) => {
|
|
1288
|
+
// TODO(FW-1823) Remove this when iOS 14 support is dropped.
|
|
1289
|
+
// Due to a Safari 14 issue we need to destroy
|
|
1290
|
+
// the scroll listener before we update state
|
|
1291
|
+
// and trigger a re-render.
|
|
1292
|
+
if (this.destroyCalendarListener) {
|
|
1293
|
+
this.destroyCalendarListener();
|
|
1294
|
+
}
|
|
1295
|
+
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { year: ev.detail.value }));
|
|
1296
|
+
if (!Array.isArray(activeParts)) {
|
|
1297
|
+
this.setActiveParts(Object.assign(Object.assign({}, activeParts), { year: ev.detail.value }));
|
|
1298
|
+
}
|
|
1299
|
+
// We can re-attach the scroll listener after
|
|
1300
|
+
// the working parts have been updated.
|
|
1301
|
+
this.initializeCalendarListener();
|
|
1302
|
+
ev.stopPropagation();
|
|
1303
|
+
} }));
|
|
1304
|
+
}
|
|
1305
|
+
renderTimePickerColumns(forcePresentation) {
|
|
1306
|
+
if (['date', 'month', 'month-year', 'year'].includes(forcePresentation)) {
|
|
1307
|
+
return [];
|
|
1308
|
+
}
|
|
1309
|
+
const { hoursData, minutesData, dayPeriodData } = parse.getTimeColumnsData(this.locale, this.workingParts, this.hourCycle, this.value ? this.minParts : undefined, this.value ? this.maxParts : undefined, this.parsedHourValues, this.parsedMinuteValues);
|
|
1310
|
+
return [
|
|
1311
|
+
this.renderHourPickerColumn(hoursData),
|
|
1312
|
+
this.renderMinutePickerColumn(minutesData),
|
|
1313
|
+
this.renderDayPeriodPickerColumn(dayPeriodData),
|
|
1314
|
+
];
|
|
1315
|
+
}
|
|
1316
|
+
renderHourPickerColumn(hoursData) {
|
|
1317
|
+
const { workingParts, activePartsClone } = this;
|
|
1318
|
+
if (hoursData.length === 0)
|
|
1319
|
+
return [];
|
|
1320
|
+
return (index.h("ion-picker-column-internal", { color: this.color, value: activePartsClone.hour, items: hoursData, numericInput: true, onIonChange: (ev) => {
|
|
1321
|
+
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { hour: ev.detail.value }));
|
|
1322
|
+
if (!Array.isArray(activePartsClone)) {
|
|
1323
|
+
this.setActiveParts(Object.assign(Object.assign({}, activePartsClone), { hour: ev.detail.value }));
|
|
1324
|
+
}
|
|
1325
|
+
ev.stopPropagation();
|
|
1326
|
+
} }));
|
|
1327
|
+
}
|
|
1328
|
+
renderMinutePickerColumn(minutesData) {
|
|
1329
|
+
const { workingParts, activePartsClone } = this;
|
|
1330
|
+
if (minutesData.length === 0)
|
|
1331
|
+
return [];
|
|
1332
|
+
return (index.h("ion-picker-column-internal", { color: this.color, value: activePartsClone.minute, items: minutesData, numericInput: true, onIonChange: (ev) => {
|
|
1333
|
+
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { minute: ev.detail.value }));
|
|
1334
|
+
if (!Array.isArray(activePartsClone)) {
|
|
1335
|
+
this.setActiveParts(Object.assign(Object.assign({}, activePartsClone), { minute: ev.detail.value }));
|
|
1336
|
+
}
|
|
1337
|
+
ev.stopPropagation();
|
|
1338
|
+
} }));
|
|
1339
|
+
}
|
|
1340
|
+
renderDayPeriodPickerColumn(dayPeriodData) {
|
|
1341
|
+
const { workingParts, activePartsClone } = this;
|
|
1342
|
+
if (dayPeriodData.length === 0) {
|
|
1343
|
+
return [];
|
|
1344
|
+
}
|
|
1345
|
+
const isDayPeriodRTL = parse.isLocaleDayPeriodRTL(this.locale);
|
|
1346
|
+
return (index.h("ion-picker-column-internal", { style: isDayPeriodRTL ? { order: '-1' } : {}, color: this.color, value: activePartsClone.ampm, items: dayPeriodData, onIonChange: (ev) => {
|
|
1347
|
+
const hour = parse.calculateHourFromAMPM(workingParts, ev.detail.value);
|
|
1348
|
+
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { ampm: ev.detail.value, hour }));
|
|
1349
|
+
if (!Array.isArray(activePartsClone)) {
|
|
1350
|
+
this.setActiveParts(Object.assign(Object.assign({}, activePartsClone), { ampm: ev.detail.value, hour }));
|
|
1351
|
+
}
|
|
1352
|
+
ev.stopPropagation();
|
|
1353
|
+
} }));
|
|
1354
|
+
}
|
|
1355
|
+
renderWheelView(forcePresentation) {
|
|
1356
|
+
const { locale } = this;
|
|
1357
|
+
const showMonthFirst = parse.isMonthFirstLocale(locale);
|
|
1358
|
+
const columnOrder = showMonthFirst ? 'month-first' : 'year-first';
|
|
1359
|
+
return (index.h("div", { class: {
|
|
1360
|
+
[`wheel-order-${columnOrder}`]: true,
|
|
1361
|
+
} }, this.renderWheelPicker(forcePresentation)));
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Grid Render Methods
|
|
1365
|
+
*/
|
|
1366
|
+
renderCalendarHeader(mode) {
|
|
1367
|
+
const expandedIcon = mode === 'ios' ? index$2.chevronDown : index$2.caretUpSharp;
|
|
1368
|
+
const collapsedIcon = mode === 'ios' ? index$2.chevronForward : index$2.caretDownSharp;
|
|
1369
|
+
const prevMonthDisabled = isPrevMonthDisabled(this.workingParts, this.minParts, this.maxParts);
|
|
1370
|
+
const nextMonthDisabled = isNextMonthDisabled(this.workingParts, this.maxParts);
|
|
1371
|
+
return (index.h("div", { class: "calendar-header" }, index.h("div", { class: "calendar-action-buttons" }, index.h("div", { class: "calendar-month-year" }, index.h("ion-item", { button: true, detail: false, lines: "none", onClick: () => this.toggleMonthAndYearView() }, index.h("ion-label", null, parse.getMonthAndYear(this.locale, this.workingParts), ' ', index.h("ion-icon", { icon: this.showMonthAndYear ? expandedIcon : collapsedIcon, lazy: false })))), index.h("div", { class: "calendar-next-prev" }, index.h("ion-buttons", null, index.h("ion-button", { "aria-label": "previous month", disabled: prevMonthDisabled, onClick: () => this.prevMonth() }, index.h("ion-icon", { "aria-hidden": "true", slot: "icon-only", icon: index$2.chevronBack, lazy: false, flipRtl: true })), index.h("ion-button", { "aria-label": "next month", disabled: nextMonthDisabled, onClick: () => this.nextMonth() }, index.h("ion-icon", { "aria-hidden": "true", slot: "icon-only", icon: index$2.chevronForward, lazy: false, flipRtl: true }))))), index.h("div", { class: "calendar-days-of-week" }, parse.getDaysOfWeek(this.locale, mode, this.firstDayOfWeek % 7).map((d) => {
|
|
1372
|
+
return index.h("div", { class: "day-of-week" }, d);
|
|
1373
|
+
}))));
|
|
1374
|
+
}
|
|
1375
|
+
renderMonth(month, year) {
|
|
1376
|
+
const { highlightActiveParts } = this;
|
|
1377
|
+
const yearAllowed = this.parsedYearValues === undefined || this.parsedYearValues.includes(year);
|
|
1378
|
+
const monthAllowed = this.parsedMonthValues === undefined || this.parsedMonthValues.includes(month);
|
|
1379
|
+
const isCalMonthDisabled = !yearAllowed || !monthAllowed;
|
|
1380
|
+
const swipeDisabled = isMonthDisabled({
|
|
1381
|
+
month,
|
|
1382
|
+
year,
|
|
1383
|
+
day: null,
|
|
1384
|
+
}, {
|
|
1385
|
+
// The day is not used when checking if a month is disabled.
|
|
1386
|
+
// Users should be able to access the min or max month, even if the
|
|
1387
|
+
// min/max date is out of bounds (e.g. min is set to Feb 15, Feb should not be disabled).
|
|
1388
|
+
minParts: Object.assign(Object.assign({}, this.minParts), { day: null }),
|
|
1389
|
+
maxParts: Object.assign(Object.assign({}, this.maxParts), { day: null }),
|
|
1390
|
+
});
|
|
1391
|
+
// The working month should never have swipe disabled.
|
|
1392
|
+
// Otherwise the CSS scroll snap will not work and the user
|
|
1393
|
+
// can free-scroll the calendar.
|
|
1394
|
+
const isWorkingMonth = this.workingParts.month === month && this.workingParts.year === year;
|
|
1395
|
+
return (index.h("div", { class: {
|
|
1396
|
+
'calendar-month': true,
|
|
1397
|
+
// Prevents scroll snap swipe gestures for months outside of the min/max bounds
|
|
1398
|
+
'calendar-month-disabled': !isWorkingMonth && swipeDisabled,
|
|
1399
|
+
} }, index.h("div", { class: "calendar-month-grid" }, parse.getDaysOfMonth(month, year, this.firstDayOfWeek % 7).map((dateObject, index$2) => {
|
|
1400
|
+
const { day, dayOfWeek } = dateObject;
|
|
1401
|
+
const { isDateEnabled, multiple } = this;
|
|
1402
|
+
const referenceParts = { month, day, year };
|
|
1403
|
+
const { isActive, isToday, ariaLabel, ariaSelected, disabled } = getCalendarDayState(this.locale, referenceParts, this.activePartsClone, this.todayParts, this.minParts, this.maxParts, this.parsedDayValues);
|
|
1404
|
+
let isCalDayDisabled = isCalMonthDisabled || disabled;
|
|
1405
|
+
if (!isCalDayDisabled && isDateEnabled !== undefined) {
|
|
1406
|
+
try {
|
|
1407
|
+
/**
|
|
1408
|
+
* The `isDateEnabled` implementation is try-catch wrapped
|
|
1409
|
+
* to prevent exceptions in the user's function from
|
|
1410
|
+
* interrupting the calendar rendering.
|
|
1411
|
+
*/
|
|
1412
|
+
isCalDayDisabled = !isDateEnabled(parse.convertDataToISO(referenceParts));
|
|
1413
|
+
}
|
|
1414
|
+
catch (e) {
|
|
1415
|
+
index$1.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
return (index.h("button", { tabindex: "-1", "data-day": day, "data-month": month, "data-year": year, "data-index": index$2, "data-day-of-week": dayOfWeek, disabled: isCalDayDisabled, class: {
|
|
1419
|
+
'calendar-day-padding': day === null,
|
|
1420
|
+
'calendar-day': true,
|
|
1421
|
+
'calendar-day-active': isActive && highlightActiveParts,
|
|
1422
|
+
'calendar-day-today': isToday,
|
|
1423
|
+
}, "aria-selected": ariaSelected, "aria-label": ariaLabel, onClick: () => {
|
|
1424
|
+
if (day === null) {
|
|
1425
|
+
return;
|
|
1426
|
+
}
|
|
1427
|
+
this.setWorkingParts(Object.assign(Object.assign({}, this.workingParts), { month,
|
|
1428
|
+
day,
|
|
1429
|
+
year }));
|
|
1430
|
+
// multiple only needs date info, so we can wipe out other fields like time
|
|
1431
|
+
if (multiple) {
|
|
1432
|
+
this.setActiveParts({
|
|
1433
|
+
month,
|
|
1434
|
+
day,
|
|
1435
|
+
year,
|
|
1436
|
+
}, isActive && highlightActiveParts);
|
|
1437
|
+
}
|
|
1438
|
+
else {
|
|
1439
|
+
this.setActiveParts(Object.assign(Object.assign({}, this.activeParts), { month,
|
|
1440
|
+
day,
|
|
1441
|
+
year }));
|
|
1442
|
+
}
|
|
1443
|
+
} }, day));
|
|
1444
|
+
}))));
|
|
1445
|
+
}
|
|
1446
|
+
renderCalendarBody() {
|
|
1447
|
+
return (index.h("div", { class: "calendar-body ion-focusable", ref: (el) => (this.calendarBodyRef = el), tabindex: "0" }, parse.generateMonths(this.workingParts).map(({ month, year }) => {
|
|
1448
|
+
return this.renderMonth(month, year);
|
|
1449
|
+
})));
|
|
1450
|
+
}
|
|
1451
|
+
renderCalendar(mode) {
|
|
1452
|
+
return (index.h("div", { class: "datetime-calendar", key: "datetime-calendar" }, this.renderCalendarHeader(mode), this.renderCalendarBody()));
|
|
1453
|
+
}
|
|
1454
|
+
renderTimeLabel() {
|
|
1455
|
+
const hasSlottedTimeLabel = this.el.querySelector('[slot="time-label"]') !== null;
|
|
1456
|
+
if (!hasSlottedTimeLabel && !this.showDefaultTimeLabel) {
|
|
1457
|
+
return;
|
|
1458
|
+
}
|
|
1459
|
+
return index.h("slot", { name: "time-label" }, "Time");
|
|
1460
|
+
}
|
|
1461
|
+
renderTimeOverlay() {
|
|
1462
|
+
const use24Hour = parse.is24Hour(this.locale, this.hourCycle);
|
|
1463
|
+
return [
|
|
1464
|
+
index.h("div", { class: "time-header" }, this.renderTimeLabel()),
|
|
1465
|
+
index.h("button", { class: {
|
|
1466
|
+
'time-body': true,
|
|
1467
|
+
'time-body-active': this.isTimePopoverOpen,
|
|
1468
|
+
}, "aria-expanded": "false", "aria-haspopup": "true", onClick: async (ev) => {
|
|
1469
|
+
const { popoverRef } = this;
|
|
1470
|
+
if (popoverRef) {
|
|
1471
|
+
this.isTimePopoverOpen = true;
|
|
1472
|
+
popoverRef.present(new CustomEvent('ionShadowTarget', {
|
|
1473
|
+
detail: {
|
|
1474
|
+
ionShadowTarget: ev.target,
|
|
1475
|
+
},
|
|
1476
|
+
}));
|
|
1477
|
+
await popoverRef.onWillDismiss();
|
|
1478
|
+
this.isTimePopoverOpen = false;
|
|
1479
|
+
}
|
|
1480
|
+
} }, parse.getLocalizedTime(this.locale, this.activePartsClone, use24Hour)),
|
|
1481
|
+
index.h("ion-popover", { alignment: "center", translucent: true, overlayIndex: 1, arrow: false, onWillPresent: (ev) => {
|
|
1482
|
+
/**
|
|
1483
|
+
* Intersection Observers do not consistently fire between Blink and Webkit
|
|
1484
|
+
* when toggling the visibility of the popover and trying to scroll the picker
|
|
1485
|
+
* column to the correct time value.
|
|
1486
|
+
*
|
|
1487
|
+
* This will correctly scroll the element position to the correct time value,
|
|
1488
|
+
* before the popover is fully presented.
|
|
1489
|
+
*/
|
|
1490
|
+
const cols = ev.target.querySelectorAll('ion-picker-column-internal');
|
|
1491
|
+
// TODO (FW-615): Potentially remove this when intersection observers are fixed in picker column
|
|
1492
|
+
cols.forEach((col) => col.scrollActiveItemIntoView());
|
|
1493
|
+
}, style: {
|
|
1494
|
+
'--offset-y': '-10px',
|
|
1495
|
+
'--min-width': 'fit-content',
|
|
1496
|
+
},
|
|
1497
|
+
// Allow native browser keyboard events to support up/down/home/end key
|
|
1498
|
+
// navigation within the time picker.
|
|
1499
|
+
keyboardEvents: true, ref: (el) => (this.popoverRef = el) }, this.renderWheelPicker('time')),
|
|
1500
|
+
];
|
|
1501
|
+
}
|
|
1502
|
+
renderCalendarViewHeader(mode) {
|
|
1503
|
+
const hasSlottedTitle = this.el.querySelector('[slot="title"]') !== null;
|
|
1504
|
+
if (!hasSlottedTitle && !this.showDefaultTitle) {
|
|
1505
|
+
return;
|
|
1506
|
+
}
|
|
1507
|
+
return (index.h("div", { class: "datetime-header" }, index.h("div", { class: "datetime-title" }, index.h("slot", { name: "title" }, "Select Date")), mode === 'md' && !this.multiple && (index.h("div", { class: "datetime-selected-date" }, parse.getMonthAndDay(this.locale, this.activeParts)))));
|
|
1508
|
+
}
|
|
1509
|
+
/**
|
|
1510
|
+
* Render time picker inside of datetime.
|
|
1511
|
+
* Do not pass color prop to segment on
|
|
1512
|
+
* iOS mode. MD segment has been customized and
|
|
1513
|
+
* should take on the color prop, but iOS
|
|
1514
|
+
* should just be the default segment.
|
|
1515
|
+
*/
|
|
1516
|
+
renderTime() {
|
|
1517
|
+
const { presentation } = this;
|
|
1518
|
+
const timeOnlyPresentation = presentation === 'time';
|
|
1519
|
+
return (index.h("div", { class: "datetime-time" }, timeOnlyPresentation ? this.renderWheelPicker() : this.renderTimeOverlay()));
|
|
1520
|
+
}
|
|
1521
|
+
/**
|
|
1522
|
+
* Renders the month/year picker that is
|
|
1523
|
+
* displayed on the calendar grid.
|
|
1524
|
+
* The .datetime-year class has additional
|
|
1525
|
+
* styles that let us show/hide the
|
|
1526
|
+
* picker when the user clicks on the
|
|
1527
|
+
* toggle in the calendar header.
|
|
1528
|
+
*/
|
|
1529
|
+
renderCalendarViewMonthYearPicker() {
|
|
1530
|
+
return index.h("div", { class: "datetime-year" }, this.renderWheelView('month-year'));
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Render entry point
|
|
1534
|
+
* All presentation types are rendered from here.
|
|
1535
|
+
*/
|
|
1536
|
+
renderDatetime(mode) {
|
|
1537
|
+
const { presentation, preferWheel } = this;
|
|
1538
|
+
/**
|
|
1539
|
+
* Certain presentation types have separate grid and wheel displays.
|
|
1540
|
+
* If preferWheel is true then we should show a wheel picker instead.
|
|
1541
|
+
*/
|
|
1542
|
+
const hasWheelVariant = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1543
|
+
if (preferWheel && hasWheelVariant) {
|
|
1544
|
+
return [this.renderWheelView(), this.renderFooter()];
|
|
1545
|
+
}
|
|
1546
|
+
switch (presentation) {
|
|
1547
|
+
case 'date-time':
|
|
1548
|
+
return [
|
|
1549
|
+
this.renderCalendarViewHeader(mode),
|
|
1550
|
+
this.renderCalendar(mode),
|
|
1551
|
+
this.renderCalendarViewMonthYearPicker(),
|
|
1552
|
+
this.renderTime(),
|
|
1553
|
+
this.renderFooter(),
|
|
1554
|
+
];
|
|
1555
|
+
case 'time-date':
|
|
1556
|
+
return [
|
|
1557
|
+
this.renderCalendarViewHeader(mode),
|
|
1558
|
+
this.renderTime(),
|
|
1559
|
+
this.renderCalendar(mode),
|
|
1560
|
+
this.renderCalendarViewMonthYearPicker(),
|
|
1561
|
+
this.renderFooter(),
|
|
1562
|
+
];
|
|
1563
|
+
case 'time':
|
|
1564
|
+
return [this.renderTime(), this.renderFooter()];
|
|
1565
|
+
case 'month':
|
|
1566
|
+
case 'month-year':
|
|
1567
|
+
case 'year':
|
|
1568
|
+
return [this.renderWheelView(), this.renderFooter()];
|
|
1569
|
+
default:
|
|
1570
|
+
return [
|
|
1571
|
+
this.renderCalendarViewHeader(mode),
|
|
1572
|
+
this.renderCalendar(mode),
|
|
1573
|
+
this.renderCalendarViewMonthYearPicker(),
|
|
1574
|
+
this.renderFooter(),
|
|
1575
|
+
];
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
render() {
|
|
1579
|
+
const { name, value, disabled, el, color, isPresented, readonly, showMonthAndYear, preferWheel, presentation, size, } = this;
|
|
1580
|
+
const mode = ionicGlobal.getIonMode(this);
|
|
1581
|
+
const isMonthAndYearPresentation = presentation === 'year' || presentation === 'month' || presentation === 'month-year';
|
|
1582
|
+
const shouldShowMonthAndYear = showMonthAndYear || isMonthAndYearPresentation;
|
|
1583
|
+
const monthYearPickerOpen = showMonthAndYear && !isMonthAndYearPresentation;
|
|
1584
|
+
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1585
|
+
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
1586
|
+
const hasGrid = hasDatePresentation && !preferWheel;
|
|
1587
|
+
helpers.renderHiddenInput(true, el, name, parse.formatValue(value), disabled);
|
|
1588
|
+
return (index.h(index.Host, { "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, theme.createColorClasses(color, {
|
|
1589
|
+
[mode]: true,
|
|
1590
|
+
['datetime-presented']: isPresented,
|
|
1591
|
+
['datetime-readonly']: readonly,
|
|
1592
|
+
['datetime-disabled']: disabled,
|
|
1593
|
+
'show-month-and-year': shouldShowMonthAndYear,
|
|
1594
|
+
'month-year-picker-open': monthYearPickerOpen,
|
|
1595
|
+
[`datetime-presentation-${presentation}`]: true,
|
|
1596
|
+
[`datetime-size-${size}`]: true,
|
|
1597
|
+
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
1598
|
+
[`datetime-grid`]: hasGrid,
|
|
1599
|
+
})) }, this.renderDatetime(mode)));
|
|
1600
|
+
}
|
|
1601
|
+
get el() { return index.getElement(this); }
|
|
1602
|
+
static get watchers() { return {
|
|
1603
|
+
"disabled": ["disabledChanged"],
|
|
1604
|
+
"min": ["minChanged"],
|
|
1605
|
+
"max": ["maxChanged"],
|
|
1606
|
+
"yearValues": ["yearValuesChanged"],
|
|
1607
|
+
"monthValues": ["monthValuesChanged"],
|
|
1608
|
+
"dayValues": ["dayValuesChanged"],
|
|
1609
|
+
"hourValues": ["hourValuesChanged"],
|
|
1610
|
+
"minuteValues": ["minuteValuesChanged"],
|
|
1611
|
+
"activeParts": ["activePartsChanged"],
|
|
1612
|
+
"value": ["valueChanged"]
|
|
1613
|
+
}; }
|
|
1614
|
+
};
|
|
1615
|
+
let datetimeIds = 0;
|
|
1616
|
+
Datetime.style = {
|
|
1617
|
+
ios: datetimeIosCss,
|
|
1618
|
+
md: datetimeMdCss
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1621
|
+
const pickerColumnInternalIosCss = ":host{padding-left:16px;padding-right:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item.picker-item-disabled{scroll-snap-align:none;cursor:default}:host .picker-item.picker-item-disabled{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}";
|
|
1622
|
+
|
|
1623
|
+
const pickerColumnInternalMdCss = ":host{padding-left:16px;padding-right:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item.picker-item-disabled{scroll-snap-align:none;cursor:default}:host .picker-item.picker-item-disabled{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}:host .picker-item-active{color:var(--ion-color-base)}";
|
|
1624
|
+
|
|
1625
|
+
const PickerColumnInternal = class {
|
|
1626
|
+
constructor(hostRef) {
|
|
1627
|
+
index.registerInstance(this, hostRef);
|
|
1628
|
+
this.ionChange = index.createEvent(this, "ionChange", 7);
|
|
1629
|
+
this.isScrolling = false;
|
|
1630
|
+
this.isColumnVisible = false;
|
|
1631
|
+
this.isActive = false;
|
|
1632
|
+
/**
|
|
1633
|
+
* A list of options to be displayed in the picker
|
|
1634
|
+
*/
|
|
1635
|
+
this.items = [];
|
|
1636
|
+
/**
|
|
1637
|
+
* The color to use from your application's color palette.
|
|
1638
|
+
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
1639
|
+
* For more information on colors, see [theming](/docs/theming/basics).
|
|
1640
|
+
*/
|
|
1641
|
+
this.color = 'primary';
|
|
1642
|
+
/**
|
|
1643
|
+
* If `true`, tapping the picker will
|
|
1644
|
+
* reveal a number input keyboard that lets
|
|
1645
|
+
* the user type in values for each picker
|
|
1646
|
+
* column. This is useful when working
|
|
1647
|
+
* with time pickers.
|
|
1648
|
+
*
|
|
1649
|
+
* @internal
|
|
1650
|
+
*/
|
|
1651
|
+
this.numericInput = false;
|
|
1652
|
+
this.centerPickerItemInView = (target, smooth = true) => {
|
|
1653
|
+
const { el, isColumnVisible } = this;
|
|
1654
|
+
if (isColumnVisible) {
|
|
1655
|
+
// (Vertical offset from parent) - (three empty picker rows) + (half the height of the target to ensure the scroll triggers)
|
|
1656
|
+
const top = target.offsetTop - 3 * target.clientHeight + target.clientHeight / 2;
|
|
1657
|
+
if (el.scrollTop !== top) {
|
|
1658
|
+
el.scroll({
|
|
1659
|
+
top,
|
|
1660
|
+
left: 0,
|
|
1661
|
+
behavior: smooth ? 'smooth' : undefined,
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
};
|
|
1666
|
+
/**
|
|
1667
|
+
* When ionInputModeChange is emitted, each column
|
|
1668
|
+
* needs to check if it is the one being made available
|
|
1669
|
+
* for text entry.
|
|
1670
|
+
*/
|
|
1671
|
+
this.inputModeChange = (ev) => {
|
|
1672
|
+
if (!this.numericInput) {
|
|
1673
|
+
return;
|
|
1674
|
+
}
|
|
1675
|
+
const { useInputMode, inputModeColumn } = ev.detail;
|
|
1676
|
+
/**
|
|
1677
|
+
* If inputModeColumn is undefined then this means
|
|
1678
|
+
* all numericInput columns are being selected.
|
|
1679
|
+
*/
|
|
1680
|
+
const isColumnActive = inputModeColumn === undefined || inputModeColumn === this.el;
|
|
1681
|
+
if (!useInputMode || !isColumnActive) {
|
|
1682
|
+
this.setInputModeActive(false);
|
|
1683
|
+
return;
|
|
1684
|
+
}
|
|
1685
|
+
this.setInputModeActive(true);
|
|
1686
|
+
};
|
|
1687
|
+
/**
|
|
1688
|
+
* Setting isActive will cause a re-render.
|
|
1689
|
+
* As a result, we do not want to cause the
|
|
1690
|
+
* re-render mid scroll as this will cause
|
|
1691
|
+
* the picker column to jump back to
|
|
1692
|
+
* whatever value was selected at the
|
|
1693
|
+
* start of the scroll interaction.
|
|
1694
|
+
*/
|
|
1695
|
+
this.setInputModeActive = (state) => {
|
|
1696
|
+
if (this.isScrolling) {
|
|
1697
|
+
this.scrollEndCallback = () => {
|
|
1698
|
+
this.isActive = state;
|
|
1699
|
+
};
|
|
1700
|
+
return;
|
|
1701
|
+
}
|
|
1702
|
+
this.isActive = state;
|
|
1703
|
+
};
|
|
1704
|
+
/**
|
|
1705
|
+
* When the column scrolls, the component
|
|
1706
|
+
* needs to determine which item is centered
|
|
1707
|
+
* in the view and will emit an ionChange with
|
|
1708
|
+
* the item object.
|
|
1709
|
+
*/
|
|
1710
|
+
this.initializeScrollListener = () => {
|
|
1711
|
+
const { el } = this;
|
|
1712
|
+
let timeout;
|
|
1713
|
+
let activeEl = this.activeItem;
|
|
1714
|
+
const scrollCallback = () => {
|
|
1715
|
+
helpers.raf(() => {
|
|
1716
|
+
if (timeout) {
|
|
1717
|
+
clearTimeout(timeout);
|
|
1718
|
+
timeout = undefined;
|
|
1719
|
+
}
|
|
1720
|
+
if (!this.isScrolling) {
|
|
1721
|
+
haptic.hapticSelectionStart();
|
|
1722
|
+
this.isScrolling = true;
|
|
1723
|
+
}
|
|
1724
|
+
/**
|
|
1725
|
+
* Select item in the center of the column
|
|
1726
|
+
* which is the month/year that we want to select
|
|
1727
|
+
*/
|
|
1728
|
+
const bbox = el.getBoundingClientRect();
|
|
1729
|
+
const centerX = bbox.x + bbox.width / 2;
|
|
1730
|
+
const centerY = bbox.y + bbox.height / 2;
|
|
1731
|
+
const activeElement = el.shadowRoot.elementFromPoint(centerX, centerY);
|
|
1732
|
+
if (activeEl !== null) {
|
|
1733
|
+
activeEl.classList.remove(PICKER_COL_ACTIVE);
|
|
1734
|
+
}
|
|
1735
|
+
if (activeElement.disabled) {
|
|
1736
|
+
return;
|
|
1737
|
+
}
|
|
1738
|
+
/**
|
|
1739
|
+
* If we are selecting a new value,
|
|
1740
|
+
* we need to run haptics again.
|
|
1741
|
+
*/
|
|
1742
|
+
if (activeElement !== activeEl) {
|
|
1743
|
+
haptic.hapticSelectionChanged();
|
|
1744
|
+
}
|
|
1745
|
+
activeEl = activeElement;
|
|
1746
|
+
activeElement.classList.add(PICKER_COL_ACTIVE);
|
|
1747
|
+
timeout = setTimeout(() => {
|
|
1748
|
+
this.isScrolling = false;
|
|
1749
|
+
haptic.hapticSelectionEnd();
|
|
1750
|
+
/**
|
|
1751
|
+
* Certain tasks (such as those that
|
|
1752
|
+
* cause re-renders) should only be done
|
|
1753
|
+
* once scrolling has finished, otherwise
|
|
1754
|
+
* flickering may occur.
|
|
1755
|
+
*/
|
|
1756
|
+
const { scrollEndCallback } = this;
|
|
1757
|
+
if (scrollEndCallback) {
|
|
1758
|
+
scrollEndCallback();
|
|
1759
|
+
this.scrollEndCallback = undefined;
|
|
1760
|
+
}
|
|
1761
|
+
const dataIndex = activeElement.getAttribute('data-index');
|
|
1762
|
+
/**
|
|
1763
|
+
* If no value it is
|
|
1764
|
+
* possible we hit one of the
|
|
1765
|
+
* empty padding columns.
|
|
1766
|
+
*/
|
|
1767
|
+
if (dataIndex === null) {
|
|
1768
|
+
return;
|
|
1769
|
+
}
|
|
1770
|
+
const index = parseInt(dataIndex, 10);
|
|
1771
|
+
const selectedItem = this.items[index];
|
|
1772
|
+
if (selectedItem.value !== this.value) {
|
|
1773
|
+
this.setValue(selectedItem.value);
|
|
1774
|
+
}
|
|
1775
|
+
}, 250);
|
|
1776
|
+
});
|
|
1777
|
+
};
|
|
1778
|
+
/**
|
|
1779
|
+
* Wrap this in an raf so that the scroll callback
|
|
1780
|
+
* does not fire when component is initially shown.
|
|
1781
|
+
*/
|
|
1782
|
+
helpers.raf(() => {
|
|
1783
|
+
el.addEventListener('scroll', scrollCallback);
|
|
1784
|
+
this.destroyScrollListener = () => {
|
|
1785
|
+
el.removeEventListener('scroll', scrollCallback);
|
|
1786
|
+
};
|
|
1787
|
+
});
|
|
1788
|
+
};
|
|
1789
|
+
}
|
|
1790
|
+
itemsChange(currentItems, previousItems) {
|
|
1791
|
+
const { value } = this;
|
|
1792
|
+
/**
|
|
1793
|
+
* When the items change, it is possible for the item
|
|
1794
|
+
* that was selected to no longer exist. In that case, we need
|
|
1795
|
+
* to automatically select the nearest item. If we do not,
|
|
1796
|
+
* then the scroll position will be reset to zero and it will
|
|
1797
|
+
* look like the first item was automatically selected.
|
|
1798
|
+
*
|
|
1799
|
+
* If we cannot find a closest item then we do nothing, and
|
|
1800
|
+
* the browser will reset the scroll position to 0.
|
|
1801
|
+
*/
|
|
1802
|
+
const findCurrentItem = currentItems.find((item) => item.value === value);
|
|
1803
|
+
if (!findCurrentItem) {
|
|
1804
|
+
/**
|
|
1805
|
+
* The default behavior is to assume
|
|
1806
|
+
* that the new set of data is similar to the old
|
|
1807
|
+
* set of data, just with some items filtered out.
|
|
1808
|
+
* We walk backwards through the data to find the
|
|
1809
|
+
* closest enabled picker item and select it.
|
|
1810
|
+
*
|
|
1811
|
+
* Developers can also swap the items out for an entirely
|
|
1812
|
+
* new set of data. In that case, the value we select
|
|
1813
|
+
* here likely will not make much sense. For this use case,
|
|
1814
|
+
* developers should update the `value` prop themselves
|
|
1815
|
+
* when swapping out the data.
|
|
1816
|
+
*/
|
|
1817
|
+
const findPreviousItemIndex = previousItems.findIndex((item) => item.value === value);
|
|
1818
|
+
if (findPreviousItemIndex === -1) {
|
|
1819
|
+
return;
|
|
1820
|
+
}
|
|
1821
|
+
/**
|
|
1822
|
+
* Step through the current items backwards
|
|
1823
|
+
* until we find a neighbor we can select.
|
|
1824
|
+
* We start at the last known location of the
|
|
1825
|
+
* current selected item in order to
|
|
1826
|
+
* account for data that has been added. This
|
|
1827
|
+
* search prioritizes stability in that it
|
|
1828
|
+
* tries to keep the scroll position as close
|
|
1829
|
+
* to where it was before the update.
|
|
1830
|
+
* Before Items: ['a', 'b', 'c'], Selected Value: 'b'
|
|
1831
|
+
* After Items: ['a', 'dog', 'c']
|
|
1832
|
+
* Even though 'dog' is a different item than 'b',
|
|
1833
|
+
* it is the closest item we can select while
|
|
1834
|
+
* preserving the scroll position.
|
|
1835
|
+
*/
|
|
1836
|
+
let nearestItem;
|
|
1837
|
+
for (let i = findPreviousItemIndex; i >= 0; i--) {
|
|
1838
|
+
const item = currentItems[i];
|
|
1839
|
+
if (item !== undefined && item.disabled !== true) {
|
|
1840
|
+
nearestItem = item;
|
|
1841
|
+
break;
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
if (nearestItem) {
|
|
1845
|
+
this.setValue(nearestItem.value);
|
|
1846
|
+
return;
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
valueChange() {
|
|
1851
|
+
if (this.isColumnVisible) {
|
|
1852
|
+
/**
|
|
1853
|
+
* Only scroll the active item into view when the picker column
|
|
1854
|
+
* is actively visible to the user.
|
|
1855
|
+
*/
|
|
1856
|
+
this.scrollActiveItemIntoView();
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
/**
|
|
1860
|
+
* Only setup scroll listeners
|
|
1861
|
+
* when the picker is visible, otherwise
|
|
1862
|
+
* the container will have a scroll
|
|
1863
|
+
* height of 0px.
|
|
1864
|
+
*/
|
|
1865
|
+
componentWillLoad() {
|
|
1866
|
+
const visibleCallback = (entries) => {
|
|
1867
|
+
var _a;
|
|
1868
|
+
const ev = entries[0];
|
|
1869
|
+
if (ev.isIntersecting) {
|
|
1870
|
+
this.isColumnVisible = true;
|
|
1871
|
+
/**
|
|
1872
|
+
* Because this initial call to scrollActiveItemIntoView has to fire before
|
|
1873
|
+
* the scroll listener is set up, we need to manage the active class manually.
|
|
1874
|
+
*/
|
|
1875
|
+
const oldActive = helpers.getElementRoot(this.el).querySelector(`.${PICKER_COL_ACTIVE}`);
|
|
1876
|
+
oldActive === null || oldActive === void 0 ? void 0 : oldActive.classList.remove(PICKER_COL_ACTIVE);
|
|
1877
|
+
this.scrollActiveItemIntoView();
|
|
1878
|
+
(_a = this.activeItem) === null || _a === void 0 ? void 0 : _a.classList.add(PICKER_COL_ACTIVE);
|
|
1879
|
+
this.initializeScrollListener();
|
|
1880
|
+
}
|
|
1881
|
+
else {
|
|
1882
|
+
this.isColumnVisible = false;
|
|
1883
|
+
if (this.destroyScrollListener) {
|
|
1884
|
+
this.destroyScrollListener();
|
|
1885
|
+
this.destroyScrollListener = undefined;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
};
|
|
1889
|
+
new IntersectionObserver(visibleCallback, { threshold: 0.001 }).observe(this.el);
|
|
1890
|
+
const parentEl = this.el.closest('ion-picker-internal');
|
|
1891
|
+
if (parentEl !== null) {
|
|
1892
|
+
parentEl.addEventListener('ionInputModeChange', (ev) => this.inputModeChange(ev));
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
componentDidRender() {
|
|
1896
|
+
var _a;
|
|
1897
|
+
const { activeItem, items, isColumnVisible, value } = this;
|
|
1898
|
+
if (isColumnVisible) {
|
|
1899
|
+
if (activeItem) {
|
|
1900
|
+
this.scrollActiveItemIntoView();
|
|
1901
|
+
}
|
|
1902
|
+
else if (((_a = items[0]) === null || _a === void 0 ? void 0 : _a.value) !== value) {
|
|
1903
|
+
/**
|
|
1904
|
+
* If the picker column does not have an active item and the current value
|
|
1905
|
+
* does not match the first item in the picker column, that means
|
|
1906
|
+
* the value is out of bounds. In this case, we assign the value to the
|
|
1907
|
+
* first item to match the scroll position of the column.
|
|
1908
|
+
*
|
|
1909
|
+
*/
|
|
1910
|
+
this.setValue(items[0].value);
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
/** @internal */
|
|
1915
|
+
async scrollActiveItemIntoView() {
|
|
1916
|
+
const activeEl = this.activeItem;
|
|
1917
|
+
if (activeEl) {
|
|
1918
|
+
this.centerPickerItemInView(activeEl, false);
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
/**
|
|
1922
|
+
* Sets the value prop and fires the ionChange event.
|
|
1923
|
+
* This is used when we need to fire ionChange from
|
|
1924
|
+
* user-generated events that cannot be caught with normal
|
|
1925
|
+
* input/change event listeners.
|
|
1926
|
+
* @internal
|
|
1927
|
+
*/
|
|
1928
|
+
async setValue(value) {
|
|
1929
|
+
const { items } = this;
|
|
1930
|
+
this.value = value;
|
|
1931
|
+
const findItem = items.find((item) => item.value === value && item.disabled !== true);
|
|
1932
|
+
if (findItem) {
|
|
1933
|
+
this.ionChange.emit(findItem);
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
get activeItem() {
|
|
1937
|
+
return helpers.getElementRoot(this.el).querySelector(`.picker-item[data-value="${this.value}"]:not([disabled])`);
|
|
1938
|
+
}
|
|
1939
|
+
render() {
|
|
1940
|
+
const { items, color, isActive, numericInput } = this;
|
|
1941
|
+
const mode = ionicGlobal.getIonMode(this);
|
|
1942
|
+
return (index.h(index.Host, { tabindex: 0, class: theme.createColorClasses(color, {
|
|
1943
|
+
[mode]: true,
|
|
1944
|
+
['picker-column-active']: isActive,
|
|
1945
|
+
['picker-column-numeric-input']: numericInput,
|
|
1946
|
+
}) }, index.h("div", { class: "picker-item picker-item-empty" }, "\u00A0"), index.h("div", { class: "picker-item picker-item-empty" }, "\u00A0"), index.h("div", { class: "picker-item picker-item-empty" }, "\u00A0"), items.map((item, index$1) => {
|
|
1947
|
+
return (index.h("button", { tabindex: "-1", class: {
|
|
1948
|
+
'picker-item': true,
|
|
1949
|
+
'picker-item-disabled': item.disabled || false,
|
|
1950
|
+
}, "data-value": item.value, "data-index": index$1, onClick: (ev) => {
|
|
1951
|
+
this.centerPickerItemInView(ev.target);
|
|
1952
|
+
}, disabled: item.disabled }, item.text));
|
|
1953
|
+
}), index.h("div", { class: "picker-item picker-item-empty" }, "\u00A0"), index.h("div", { class: "picker-item picker-item-empty" }, "\u00A0"), index.h("div", { class: "picker-item picker-item-empty" }, "\u00A0")));
|
|
1954
|
+
}
|
|
1955
|
+
get el() { return index.getElement(this); }
|
|
1956
|
+
static get watchers() { return {
|
|
1957
|
+
"items": ["itemsChange"],
|
|
1958
|
+
"value": ["valueChange"]
|
|
1959
|
+
}; }
|
|
1960
|
+
};
|
|
1961
|
+
const PICKER_COL_ACTIVE = 'picker-item-active';
|
|
1962
|
+
PickerColumnInternal.style = {
|
|
1963
|
+
ios: pickerColumnInternalIosCss,
|
|
1964
|
+
md: pickerColumnInternalMdCss
|
|
1965
|
+
};
|
|
1966
|
+
|
|
1967
|
+
const pickerInternalIosCss = ":host{display:flex;position:relative;align-items:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{left:0;top:0;height:83px}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host .picker-after{left:0;top:116px;height:84px}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;transform:translateY(-50%);z-index:-1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .picker-highlight{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host ::slotted(ion-picker-column-internal:only-child){text-align:center}:host .picker-before{background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%)}:host .picker-after{background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%)}:host .picker-highlight{background:var(--ion-color-step-150, #eeeeef)}";
|
|
1968
|
+
|
|
1969
|
+
const pickerInternalMdCss = ":host{display:flex;position:relative;align-items:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{left:0;top:0;height:83px}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host .picker-after{left:0;top:116px;height:84px}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;transform:translateY(-50%);z-index:-1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host .picker-highlight{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host ::slotted(ion-picker-column-internal:only-child){text-align:center}:host .picker-before{background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0) 90%)}:host .picker-after{background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0) 90%)}";
|
|
1970
|
+
|
|
1971
|
+
const PickerInternal = class {
|
|
1972
|
+
constructor(hostRef) {
|
|
1973
|
+
index.registerInstance(this, hostRef);
|
|
1974
|
+
this.ionInputModeChange = index.createEvent(this, "ionInputModeChange", 7);
|
|
1975
|
+
this.useInputMode = false;
|
|
1976
|
+
this.isInHighlightBounds = (ev) => {
|
|
1977
|
+
const { highlightEl } = this;
|
|
1978
|
+
if (!highlightEl) {
|
|
1979
|
+
return false;
|
|
1980
|
+
}
|
|
1981
|
+
const bbox = highlightEl.getBoundingClientRect();
|
|
1982
|
+
/**
|
|
1983
|
+
* Check to see if the user clicked
|
|
1984
|
+
* outside the bounds of the highlight.
|
|
1985
|
+
*/
|
|
1986
|
+
const outsideX = ev.clientX < bbox.left || ev.clientX > bbox.right;
|
|
1987
|
+
const outsideY = ev.clientY < bbox.top || ev.clientY > bbox.bottom;
|
|
1988
|
+
if (outsideX || outsideY) {
|
|
1989
|
+
return false;
|
|
1990
|
+
}
|
|
1991
|
+
return true;
|
|
1992
|
+
};
|
|
1993
|
+
/**
|
|
1994
|
+
* If we are no longer focused
|
|
1995
|
+
* on a picker column, then we should
|
|
1996
|
+
* exit input mode. An exception is made
|
|
1997
|
+
* for the input in the picker since having
|
|
1998
|
+
* that focused means we are still in input mode.
|
|
1999
|
+
*/
|
|
2000
|
+
this.onFocusOut = (ev) => {
|
|
2001
|
+
const { relatedTarget } = ev;
|
|
2002
|
+
if (!relatedTarget || (relatedTarget.tagName !== 'ION-PICKER-COLUMN-INTERNAL' && relatedTarget !== this.inputEl)) {
|
|
2003
|
+
this.exitInputMode();
|
|
2004
|
+
}
|
|
2005
|
+
};
|
|
2006
|
+
/**
|
|
2007
|
+
* When picker columns receive focus
|
|
2008
|
+
* the parent picker needs to determine
|
|
2009
|
+
* whether to enter/exit input mode.
|
|
2010
|
+
*/
|
|
2011
|
+
this.onFocusIn = (ev) => {
|
|
2012
|
+
const { target } = ev;
|
|
2013
|
+
/**
|
|
2014
|
+
* Due to browser differences in how/when focus
|
|
2015
|
+
* is dispatched on certain elements, we need to
|
|
2016
|
+
* make sure that this function only ever runs when
|
|
2017
|
+
* focusing a picker column.
|
|
2018
|
+
*/
|
|
2019
|
+
if (target.tagName !== 'ION-PICKER-COLUMN-INTERNAL') {
|
|
2020
|
+
return;
|
|
2021
|
+
}
|
|
2022
|
+
/**
|
|
2023
|
+
* If we have actionOnClick
|
|
2024
|
+
* then this means the user focused
|
|
2025
|
+
* a picker column via mouse or
|
|
2026
|
+
* touch (i.e. a PointerEvent). As a result,
|
|
2027
|
+
* we should not enter/exit input mode
|
|
2028
|
+
* until the click event has fired, which happens
|
|
2029
|
+
* after the `focusin` event.
|
|
2030
|
+
*
|
|
2031
|
+
* Otherwise, the user likely focused
|
|
2032
|
+
* the column using their keyboard and
|
|
2033
|
+
* we should enter/exit input mode automatically.
|
|
2034
|
+
*/
|
|
2035
|
+
if (!this.actionOnClick) {
|
|
2036
|
+
const columnEl = target;
|
|
2037
|
+
const allowInput = columnEl.numericInput;
|
|
2038
|
+
if (allowInput) {
|
|
2039
|
+
this.enterInputMode(columnEl, false);
|
|
2040
|
+
}
|
|
2041
|
+
else {
|
|
2042
|
+
this.exitInputMode();
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
};
|
|
2046
|
+
/**
|
|
2047
|
+
* On click we need to run an actionOnClick
|
|
2048
|
+
* function that has been set in onPointerDown
|
|
2049
|
+
* so that we enter/exit input mode correctly.
|
|
2050
|
+
*/
|
|
2051
|
+
this.onClick = () => {
|
|
2052
|
+
const { actionOnClick } = this;
|
|
2053
|
+
if (actionOnClick) {
|
|
2054
|
+
actionOnClick();
|
|
2055
|
+
this.actionOnClick = undefined;
|
|
2056
|
+
}
|
|
2057
|
+
};
|
|
2058
|
+
/**
|
|
2059
|
+
* Clicking a column also focuses the column on
|
|
2060
|
+
* certain browsers, so we use onPointerDown
|
|
2061
|
+
* to tell the onFocusIn function that users
|
|
2062
|
+
* are trying to click the column rather than
|
|
2063
|
+
* focus the column using the keyboard. When the
|
|
2064
|
+
* user completes the click, the onClick function
|
|
2065
|
+
* runs and runs the actionOnClick callback.
|
|
2066
|
+
*/
|
|
2067
|
+
this.onPointerDown = (ev) => {
|
|
2068
|
+
const { useInputMode, inputModeColumn, el } = this;
|
|
2069
|
+
if (this.isInHighlightBounds(ev)) {
|
|
2070
|
+
/**
|
|
2071
|
+
* If we were already in
|
|
2072
|
+
* input mode, then we should determine
|
|
2073
|
+
* if we tapped a particular column and
|
|
2074
|
+
* should switch to input mode for
|
|
2075
|
+
* that specific column.
|
|
2076
|
+
*/
|
|
2077
|
+
if (useInputMode) {
|
|
2078
|
+
/**
|
|
2079
|
+
* If we tapped a picker column
|
|
2080
|
+
* then we should either switch to input
|
|
2081
|
+
* mode for that column or all columns.
|
|
2082
|
+
* Otherwise we should exit input mode
|
|
2083
|
+
* since we just tapped the highlight and
|
|
2084
|
+
* not a column.
|
|
2085
|
+
*/
|
|
2086
|
+
if (ev.target.tagName === 'ION-PICKER-COLUMN-INTERNAL') {
|
|
2087
|
+
/**
|
|
2088
|
+
* If user taps 2 different columns
|
|
2089
|
+
* then we should just switch to input mode
|
|
2090
|
+
* for the new column rather than switching to
|
|
2091
|
+
* input mode for all columns.
|
|
2092
|
+
*/
|
|
2093
|
+
if (inputModeColumn && inputModeColumn === ev.target) {
|
|
2094
|
+
this.actionOnClick = () => {
|
|
2095
|
+
this.enterInputMode();
|
|
2096
|
+
};
|
|
2097
|
+
}
|
|
2098
|
+
else {
|
|
2099
|
+
this.actionOnClick = () => {
|
|
2100
|
+
this.enterInputMode(ev.target);
|
|
2101
|
+
};
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
else {
|
|
2105
|
+
this.actionOnClick = () => {
|
|
2106
|
+
this.exitInputMode();
|
|
2107
|
+
};
|
|
2108
|
+
}
|
|
2109
|
+
/**
|
|
2110
|
+
* If we were not already in
|
|
2111
|
+
* input mode, then we should
|
|
2112
|
+
* enter input mode for all columns.
|
|
2113
|
+
*/
|
|
2114
|
+
}
|
|
2115
|
+
else {
|
|
2116
|
+
/**
|
|
2117
|
+
* If there is only 1 numeric input column
|
|
2118
|
+
* then we should skip multi column input.
|
|
2119
|
+
*/
|
|
2120
|
+
const columns = el.querySelectorAll('ion-picker-column-internal.picker-column-numeric-input');
|
|
2121
|
+
const columnEl = columns.length === 1 ? ev.target : undefined;
|
|
2122
|
+
this.actionOnClick = () => {
|
|
2123
|
+
this.enterInputMode(columnEl);
|
|
2124
|
+
};
|
|
2125
|
+
}
|
|
2126
|
+
return;
|
|
2127
|
+
}
|
|
2128
|
+
this.actionOnClick = () => {
|
|
2129
|
+
this.exitInputMode();
|
|
2130
|
+
};
|
|
2131
|
+
};
|
|
2132
|
+
/**
|
|
2133
|
+
* Enters input mode to allow
|
|
2134
|
+
* for text entry of numeric values.
|
|
2135
|
+
* If on mobile, we focus a hidden input
|
|
2136
|
+
* field so that the on screen keyboard
|
|
2137
|
+
* is brought up. When tabbing using a
|
|
2138
|
+
* keyboard, picker columns receive an outline
|
|
2139
|
+
* to indicate they are focused. As a result,
|
|
2140
|
+
* we should not focus the hidden input as it
|
|
2141
|
+
* would cause the outline to go away, preventing
|
|
2142
|
+
* users from having any visual indication of which
|
|
2143
|
+
* column is focused.
|
|
2144
|
+
*/
|
|
2145
|
+
this.enterInputMode = (columnEl, focusInput = true) => {
|
|
2146
|
+
const { inputEl, el } = this;
|
|
2147
|
+
if (!inputEl) {
|
|
2148
|
+
return;
|
|
2149
|
+
}
|
|
2150
|
+
/**
|
|
2151
|
+
* Only active input mode if there is at
|
|
2152
|
+
* least one column that accepts numeric input.
|
|
2153
|
+
*/
|
|
2154
|
+
const hasInputColumn = el.querySelector('ion-picker-column-internal.picker-column-numeric-input');
|
|
2155
|
+
if (!hasInputColumn) {
|
|
2156
|
+
return;
|
|
2157
|
+
}
|
|
2158
|
+
/**
|
|
2159
|
+
* If columnEl is undefined then
|
|
2160
|
+
* it is assumed that all numeric pickers
|
|
2161
|
+
* are eligible for text entry.
|
|
2162
|
+
* (i.e. hour and minute columns)
|
|
2163
|
+
*/
|
|
2164
|
+
this.useInputMode = true;
|
|
2165
|
+
this.inputModeColumn = columnEl;
|
|
2166
|
+
/**
|
|
2167
|
+
* Users with a keyboard and mouse can
|
|
2168
|
+
* activate input mode where the input is
|
|
2169
|
+
* focused as well as when it is not focused,
|
|
2170
|
+
* so we need to make sure we clean up any
|
|
2171
|
+
* old listeners.
|
|
2172
|
+
*/
|
|
2173
|
+
if (focusInput) {
|
|
2174
|
+
if (this.destroyKeypressListener) {
|
|
2175
|
+
this.destroyKeypressListener();
|
|
2176
|
+
this.destroyKeypressListener = undefined;
|
|
2177
|
+
}
|
|
2178
|
+
inputEl.focus();
|
|
2179
|
+
}
|
|
2180
|
+
else {
|
|
2181
|
+
el.addEventListener('keypress', this.onKeyPress);
|
|
2182
|
+
this.destroyKeypressListener = () => {
|
|
2183
|
+
el.removeEventListener('keypress', this.onKeyPress);
|
|
2184
|
+
};
|
|
2185
|
+
}
|
|
2186
|
+
this.emitInputModeChange();
|
|
2187
|
+
};
|
|
2188
|
+
this.exitInputMode = () => {
|
|
2189
|
+
const { inputEl, useInputMode } = this;
|
|
2190
|
+
if (!useInputMode || !inputEl) {
|
|
2191
|
+
return;
|
|
2192
|
+
}
|
|
2193
|
+
this.useInputMode = false;
|
|
2194
|
+
this.inputModeColumn = undefined;
|
|
2195
|
+
inputEl.blur();
|
|
2196
|
+
inputEl.value = '';
|
|
2197
|
+
if (this.destroyKeypressListener) {
|
|
2198
|
+
this.destroyKeypressListener();
|
|
2199
|
+
this.destroyKeypressListener = undefined;
|
|
2200
|
+
}
|
|
2201
|
+
this.emitInputModeChange();
|
|
2202
|
+
};
|
|
2203
|
+
this.onKeyPress = (ev) => {
|
|
2204
|
+
const { inputEl } = this;
|
|
2205
|
+
if (!inputEl) {
|
|
2206
|
+
return;
|
|
2207
|
+
}
|
|
2208
|
+
const parsedValue = parseInt(ev.key, 10);
|
|
2209
|
+
/**
|
|
2210
|
+
* Only numbers should be allowed
|
|
2211
|
+
*/
|
|
2212
|
+
if (!Number.isNaN(parsedValue)) {
|
|
2213
|
+
inputEl.value += ev.key;
|
|
2214
|
+
this.onInputChange();
|
|
2215
|
+
}
|
|
2216
|
+
};
|
|
2217
|
+
this.selectSingleColumn = () => {
|
|
2218
|
+
const { inputEl, inputModeColumn, singleColumnSearchTimeout } = this;
|
|
2219
|
+
if (!inputEl || !inputModeColumn) {
|
|
2220
|
+
return;
|
|
2221
|
+
}
|
|
2222
|
+
const values = inputModeColumn.items.filter((item) => item.disabled !== true);
|
|
2223
|
+
/**
|
|
2224
|
+
* If users pause for a bit, the search
|
|
2225
|
+
* value should be reset similar to how a
|
|
2226
|
+
* <select> behaves. So typing "34", waiting,
|
|
2227
|
+
* then typing "5" should select "05".
|
|
2228
|
+
*/
|
|
2229
|
+
if (singleColumnSearchTimeout) {
|
|
2230
|
+
clearTimeout(singleColumnSearchTimeout);
|
|
2231
|
+
}
|
|
2232
|
+
this.singleColumnSearchTimeout = setTimeout(() => {
|
|
2233
|
+
inputEl.value = '';
|
|
2234
|
+
this.singleColumnSearchTimeout = undefined;
|
|
2235
|
+
}, 1000);
|
|
2236
|
+
/**
|
|
2237
|
+
* For values that are longer than 2 digits long
|
|
2238
|
+
* we should shift the value over 1 character
|
|
2239
|
+
* to the left. So typing "456" would result in "56".
|
|
2240
|
+
* TODO: If we want to support more than just
|
|
2241
|
+
* time entry, we should update this value to be
|
|
2242
|
+
* the max length of all of the picker items.
|
|
2243
|
+
*/
|
|
2244
|
+
if (inputEl.value.length >= 3) {
|
|
2245
|
+
const startIndex = inputEl.value.length - 2;
|
|
2246
|
+
const newString = inputEl.value.substring(startIndex);
|
|
2247
|
+
inputEl.value = newString;
|
|
2248
|
+
this.selectSingleColumn();
|
|
2249
|
+
return;
|
|
2250
|
+
}
|
|
2251
|
+
/**
|
|
2252
|
+
* Checking the value of the input gets priority
|
|
2253
|
+
* first. For example, if the value of the input
|
|
2254
|
+
* is "1" and we entered "2", then the complete value
|
|
2255
|
+
* is "12" and we should select hour 12.
|
|
2256
|
+
*
|
|
2257
|
+
* Regex removes any leading zeros from values like "02".
|
|
2258
|
+
*/
|
|
2259
|
+
const findItemFromCompleteValue = values.find(({ text }) => text.replace(/^0+/, '') === inputEl.value);
|
|
2260
|
+
if (findItemFromCompleteValue) {
|
|
2261
|
+
inputModeColumn.setValue(findItemFromCompleteValue.value);
|
|
2262
|
+
return;
|
|
2263
|
+
}
|
|
2264
|
+
/**
|
|
2265
|
+
* If we typed "56" to get minute 56, then typed "7",
|
|
2266
|
+
* we should select "07" as "567" is not a valid minute.
|
|
2267
|
+
*/
|
|
2268
|
+
if (inputEl.value.length === 2) {
|
|
2269
|
+
const changedCharacter = inputEl.value.substring(inputEl.value.length - 1);
|
|
2270
|
+
inputEl.value = changedCharacter;
|
|
2271
|
+
this.selectSingleColumn();
|
|
2272
|
+
}
|
|
2273
|
+
};
|
|
2274
|
+
/**
|
|
2275
|
+
* Searches a list of column items for a particular
|
|
2276
|
+
* value. This is currently used for numeric values.
|
|
2277
|
+
* The zeroBehavior can be set to account for leading
|
|
2278
|
+
* or trailing zeros when looking at the item text.
|
|
2279
|
+
*/
|
|
2280
|
+
this.searchColumn = (colEl, value, zeroBehavior = 'start') => {
|
|
2281
|
+
const behavior = zeroBehavior === 'start' ? /^0+/ : /0$/;
|
|
2282
|
+
const item = colEl.items.find(({ text, disabled }) => disabled !== true && text.replace(behavior, '') === value);
|
|
2283
|
+
if (item) {
|
|
2284
|
+
colEl.setValue(item.value);
|
|
2285
|
+
}
|
|
2286
|
+
};
|
|
2287
|
+
this.selectMultiColumn = () => {
|
|
2288
|
+
const { inputEl, el } = this;
|
|
2289
|
+
if (!inputEl) {
|
|
2290
|
+
return;
|
|
2291
|
+
}
|
|
2292
|
+
const numericPickers = Array.from(el.querySelectorAll('ion-picker-column-internal')).filter((col) => col.numericInput);
|
|
2293
|
+
const firstColumn = numericPickers[0];
|
|
2294
|
+
const lastColumn = numericPickers[1];
|
|
2295
|
+
let value = inputEl.value;
|
|
2296
|
+
let minuteValue;
|
|
2297
|
+
switch (value.length) {
|
|
2298
|
+
case 1:
|
|
2299
|
+
this.searchColumn(firstColumn, value);
|
|
2300
|
+
break;
|
|
2301
|
+
case 2:
|
|
2302
|
+
/**
|
|
2303
|
+
* If the first character is `0` or `1` it is
|
|
2304
|
+
* possible that users are trying to type `09`
|
|
2305
|
+
* or `11` into the hour field, so we should look
|
|
2306
|
+
* at that first.
|
|
2307
|
+
*/
|
|
2308
|
+
const firstCharacter = inputEl.value.substring(0, 1);
|
|
2309
|
+
value = firstCharacter === '0' || firstCharacter === '1' ? inputEl.value : firstCharacter;
|
|
2310
|
+
this.searchColumn(firstColumn, value);
|
|
2311
|
+
/**
|
|
2312
|
+
* If only checked the first value,
|
|
2313
|
+
* we can check the second value
|
|
2314
|
+
* for a match in the minutes column
|
|
2315
|
+
*/
|
|
2316
|
+
if (value.length === 1) {
|
|
2317
|
+
minuteValue = inputEl.value.substring(inputEl.value.length - 1);
|
|
2318
|
+
this.searchColumn(lastColumn, minuteValue, 'end');
|
|
2319
|
+
}
|
|
2320
|
+
break;
|
|
2321
|
+
case 3:
|
|
2322
|
+
/**
|
|
2323
|
+
* If the first character is `0` or `1` it is
|
|
2324
|
+
* possible that users are trying to type `09`
|
|
2325
|
+
* or `11` into the hour field, so we should look
|
|
2326
|
+
* at that first.
|
|
2327
|
+
*/
|
|
2328
|
+
const firstCharacterAgain = inputEl.value.substring(0, 1);
|
|
2329
|
+
value =
|
|
2330
|
+
firstCharacterAgain === '0' || firstCharacterAgain === '1'
|
|
2331
|
+
? inputEl.value.substring(0, 2)
|
|
2332
|
+
: firstCharacterAgain;
|
|
2333
|
+
this.searchColumn(firstColumn, value);
|
|
2334
|
+
/**
|
|
2335
|
+
* If only checked the first value,
|
|
2336
|
+
* we can check the second value
|
|
2337
|
+
* for a match in the minutes column
|
|
2338
|
+
*/
|
|
2339
|
+
minuteValue = value.length === 1 ? inputEl.value.substring(1) : inputEl.value.substring(2);
|
|
2340
|
+
this.searchColumn(lastColumn, minuteValue, 'end');
|
|
2341
|
+
break;
|
|
2342
|
+
case 4:
|
|
2343
|
+
/**
|
|
2344
|
+
* If the first character is `0` or `1` it is
|
|
2345
|
+
* possible that users are trying to type `09`
|
|
2346
|
+
* or `11` into the hour field, so we should look
|
|
2347
|
+
* at that first.
|
|
2348
|
+
*/
|
|
2349
|
+
const firstCharacterAgainAgain = inputEl.value.substring(0, 1);
|
|
2350
|
+
value =
|
|
2351
|
+
firstCharacterAgainAgain === '0' || firstCharacterAgainAgain === '1'
|
|
2352
|
+
? inputEl.value.substring(0, 2)
|
|
2353
|
+
: firstCharacterAgainAgain;
|
|
2354
|
+
this.searchColumn(firstColumn, value);
|
|
2355
|
+
/**
|
|
2356
|
+
* If only checked the first value,
|
|
2357
|
+
* we can check the second value
|
|
2358
|
+
* for a match in the minutes column
|
|
2359
|
+
*/
|
|
2360
|
+
const minuteValueAgain = value.length === 1
|
|
2361
|
+
? inputEl.value.substring(1, inputEl.value.length)
|
|
2362
|
+
: inputEl.value.substring(2, inputEl.value.length);
|
|
2363
|
+
this.searchColumn(lastColumn, minuteValueAgain, 'end');
|
|
2364
|
+
break;
|
|
2365
|
+
default:
|
|
2366
|
+
const startIndex = inputEl.value.length - 4;
|
|
2367
|
+
const newString = inputEl.value.substring(startIndex);
|
|
2368
|
+
inputEl.value = newString;
|
|
2369
|
+
this.selectMultiColumn();
|
|
2370
|
+
break;
|
|
2371
|
+
}
|
|
2372
|
+
};
|
|
2373
|
+
/**
|
|
2374
|
+
* Searches the value of the active column
|
|
2375
|
+
* to determine which value users are trying
|
|
2376
|
+
* to select
|
|
2377
|
+
*/
|
|
2378
|
+
this.onInputChange = () => {
|
|
2379
|
+
const { useInputMode, inputEl, inputModeColumn } = this;
|
|
2380
|
+
if (!useInputMode || !inputEl) {
|
|
2381
|
+
return;
|
|
2382
|
+
}
|
|
2383
|
+
if (inputModeColumn) {
|
|
2384
|
+
this.selectSingleColumn();
|
|
2385
|
+
}
|
|
2386
|
+
else {
|
|
2387
|
+
this.selectMultiColumn();
|
|
2388
|
+
}
|
|
2389
|
+
};
|
|
2390
|
+
/**
|
|
2391
|
+
* Emit ionInputModeChange. Picker columns
|
|
2392
|
+
* listen for this event to determine whether
|
|
2393
|
+
* or not their column is "active" for text input.
|
|
2394
|
+
*/
|
|
2395
|
+
this.emitInputModeChange = () => {
|
|
2396
|
+
const { useInputMode, inputModeColumn } = this;
|
|
2397
|
+
this.ionInputModeChange.emit({
|
|
2398
|
+
useInputMode,
|
|
2399
|
+
inputModeColumn,
|
|
2400
|
+
});
|
|
2401
|
+
};
|
|
2402
|
+
}
|
|
2403
|
+
componentWillLoad() {
|
|
2404
|
+
helpers.getElementRoot(this.el).addEventListener('focusin', this.onFocusIn);
|
|
2405
|
+
helpers.getElementRoot(this.el).addEventListener('focusout', this.onFocusOut);
|
|
2406
|
+
}
|
|
2407
|
+
render() {
|
|
2408
|
+
return (index.h(index.Host, { onPointerDown: (ev) => this.onPointerDown(ev), onClick: () => this.onClick() }, index.h("input", { "aria-hidden": "true", tabindex: -1, inputmode: "numeric", type: "number", ref: (el) => (this.inputEl = el), onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), index.h("div", { class: "picker-before" }), index.h("div", { class: "picker-after" }), index.h("div", { class: "picker-highlight", ref: (el) => (this.highlightEl = el) }), index.h("slot", null)));
|
|
2409
|
+
}
|
|
2410
|
+
get el() { return index.getElement(this); }
|
|
2411
|
+
};
|
|
2412
|
+
PickerInternal.style = {
|
|
2413
|
+
ios: pickerInternalIosCss,
|
|
2414
|
+
md: pickerInternalMdCss
|
|
2415
|
+
};
|
|
2416
|
+
|
|
2417
|
+
const toggleIosCss = ":host{box-sizing:content-box !important;display:inline-block;position:relative;outline:none;contain:content;cursor:pointer;touch-action:none;user-select:none;z-index:2}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0;pointer-events:none}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.toggle-icon-wrapper{display:flex;position:relative;align-items:center;width:100%;height:100%;transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--background);pointer-events:none;overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--background-checked)}.toggle-inner{left:var(--handle-spacing);border-radius:var(--handle-border-radius);position:absolute;width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);transition:var(--handle-transition);background:var(--handle-background);box-shadow:var(--handle-box-shadow);contain:strict}[dir=rtl] .toggle-inner,:host-context([dir=rtl]) .toggle-inner{left:unset;right:unset;right:var(--handle-spacing)}:host(.toggle-checked) .toggle-icon-wrapper{transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host-context([dir=rtl]):host(.toggle-checked) .toggle-icon-wrapper,:host-context([dir=rtl]).toggle-checked .toggle-icon-wrapper{transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);background:var(--handle-background-checked)}:host-context([dir=rtl]):host(.toggle-checked) .toggle-inner,:host-context([dir=rtl]).toggle-checked .toggle-inner{transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.088);--background-checked:var(--ion-color-primary, #3880ff);--border-radius:16px;--handle-background:#ffffff;--handle-background-checked:#ffffff;--handle-border-radius:25.5px;--handle-box-shadow:0 3px 12px rgba(0, 0, 0, 0.16), 0 3px 1px rgba(0, 0, 0, 0.1);--handle-height:calc(32px - (2px * 2));--handle-max-height:calc(100% - var(--handle-spacing) * 2);--handle-width:calc(32px - (2px * 2));--handle-spacing:2px;--handle-transition:transform 300ms, width 120ms ease-in-out 80ms, left 110ms ease-in-out 80ms, right 110ms ease-in-out 80ms;width:51px;height:32px;contain:strict;overflow:hidden}:host(.ion-color.toggle-checked) .toggle-icon{background:var(--ion-color-base)}:host(.toggle-activated) .toggle-switch-icon{opacity:0}.toggle-icon{transform:translate3d(0, 0, 0);transition:background-color 300ms}.toggle-inner{will-change:transform}.toggle-switch-icon{position:absolute;top:50%;width:11px;height:11px;transform:translateY(-50%);transition:opacity 300ms, color 300ms}.toggle-switch-icon{right:6px;position:absolute;color:var(--ion-color-dark)}[dir=rtl] .toggle-switch-icon,:host-context([dir=rtl]) .toggle-switch-icon{right:initial;left:6px;}:host(.toggle-checked) .toggle-switch-icon.toggle-switch-icon-checked{color:var(--ion-color-contrast, #fff)}:host(.toggle-checked) .toggle-switch-icon:not(.toggle-switch-icon-checked){opacity:0}.toggle-switch-icon-checked{right:initial;left:4px;position:absolute;width:15px;height:15px;transform:translateY(-50%) rotate(90deg)}[dir=rtl] .toggle-switch-icon-checked,:host-context([dir=rtl]) .toggle-switch-icon-checked{right:4px}:host(.toggle-activated) .toggle-icon::before,:host(.toggle-checked) .toggle-icon::before{transform:scale3d(0, 0, 0)}:host(.toggle-activated.toggle-checked) .toggle-inner::before{transform:scale3d(0, 0, 0)}:host(.toggle-activated) .toggle-inner{width:calc(var(--handle-width) + 6px)}:host(.toggle-activated.toggle-checked) .toggle-icon-wrapper{transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0)}:host-context([dir=rtl]):host(.toggle-activated.toggle-checked) .toggle-icon-wrapper,:host-context([dir=rtl]).toggle-activated.toggle-checked .toggle-icon-wrapper{transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0)}:host(.toggle-disabled){opacity:0.3}:host(.in-item[slot]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:20px;padding-right:10px;padding-top:6px;padding-bottom:5px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot]){padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:10px;padding-inline-end:10px}}:host(.in-item[slot=start]){padding-left:0;padding-right:16px;padding-top:6px;padding-bottom:5px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){padding-left:unset;padding-right:unset;-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:16px;padding-inline-end:16px}}";
|
|
2418
|
+
|
|
2419
|
+
const toggleMdCss = ":host{box-sizing:content-box !important;display:inline-block;position:relative;outline:none;contain:content;cursor:pointer;touch-action:none;user-select:none;z-index:2}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0;pointer-events:none}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.toggle-icon-wrapper{display:flex;position:relative;align-items:center;width:100%;height:100%;transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--background);pointer-events:none;overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--background-checked)}.toggle-inner{left:var(--handle-spacing);border-radius:var(--handle-border-radius);position:absolute;width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);transition:var(--handle-transition);background:var(--handle-background);box-shadow:var(--handle-box-shadow);contain:strict}[dir=rtl] .toggle-inner,:host-context([dir=rtl]) .toggle-inner{left:unset;right:unset;right:var(--handle-spacing)}:host(.toggle-checked) .toggle-icon-wrapper{transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host-context([dir=rtl]):host(.toggle-checked) .toggle-icon-wrapper,:host-context([dir=rtl]).toggle-checked .toggle-icon-wrapper{transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);background:var(--handle-background-checked)}:host-context([dir=rtl]):host(.toggle-checked) .toggle-inner,:host-context([dir=rtl]).toggle-checked .toggle-inner{transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.39);--background-checked:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.5);--border-radius:14px;--handle-background:#ffffff;--handle-background-checked:var(--ion-color-primary, #3880ff);--handle-border-radius:50%;--handle-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--handle-width:20px;--handle-height:20px;--handle-max-height:calc(100% + 6px);--handle-spacing:0;--handle-transition:transform 160ms cubic-bezier(0.4, 0, 0.2, 1), background-color 160ms cubic-bezier(0.4, 0, 0.2, 1);padding-left:12px;padding-right:12px;padding-top:12px;padding-bottom:12px;width:36px;height:14px;contain:strict}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}:host(.ion-color.toggle-checked) .toggle-icon{background:rgba(var(--ion-color-base-rgb), 0.5)}:host(.ion-color.toggle-checked) .toggle-inner{background:var(--ion-color-base)}:host(.toggle-checked) .toggle-inner{color:var(--ion-color-contrast, #fff)}.toggle-icon{transition:background-color 160ms}.toggle-inner{will-change:background-color, transform;display:flex;align-items:center;justify-content:center;color:#000}.toggle-inner .toggle-switch-icon{padding-left:1px;padding-right:1px;padding-top:1px;padding-bottom:1px;width:100%;height:100%}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.toggle-inner .toggle-switch-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:1px;padding-inline-start:1px;-webkit-padding-end:1px;padding-inline-end:1px}}:host(.toggle-disabled){opacity:0.3}:host(.in-item[slot]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:16px;padding-right:0;padding-top:12px;padding-bottom:12px;cursor:pointer}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot]){padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:0;padding-inline-end:0}}:host(.in-item[slot=start]){padding-left:2px;padding-right:18px;padding-top:12px;padding-bottom:12px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){padding-left:unset;padding-right:unset;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:18px;padding-inline-end:18px}}";
|
|
2420
|
+
|
|
2421
|
+
const Toggle = class {
|
|
2422
|
+
constructor(hostRef) {
|
|
2423
|
+
index.registerInstance(this, hostRef);
|
|
2424
|
+
this.ionChange = index.createEvent(this, "ionChange", 7);
|
|
2425
|
+
this.ionFocus = index.createEvent(this, "ionFocus", 7);
|
|
2426
|
+
this.ionBlur = index.createEvent(this, "ionBlur", 7);
|
|
2427
|
+
this.ionStyle = index.createEvent(this, "ionStyle", 7);
|
|
2428
|
+
this.inputId = `ion-tg-${toggleIds++}`;
|
|
2429
|
+
this.lastDrag = 0;
|
|
2430
|
+
this.activated = false;
|
|
2431
|
+
/**
|
|
2432
|
+
* The name of the control, which is submitted with the form data.
|
|
2433
|
+
*/
|
|
2434
|
+
this.name = this.inputId;
|
|
2435
|
+
/**
|
|
2436
|
+
* If `true`, the toggle is selected.
|
|
2437
|
+
*/
|
|
2438
|
+
this.checked = false;
|
|
2439
|
+
/**
|
|
2440
|
+
* If `true`, the user cannot interact with the toggle.
|
|
2441
|
+
*/
|
|
2442
|
+
this.disabled = false;
|
|
2443
|
+
/**
|
|
2444
|
+
* The value of the toggle does not mean if it's checked or not, use the `checked`
|
|
2445
|
+
* property for that.
|
|
2446
|
+
*
|
|
2447
|
+
* The value of a toggle is analogous to the value of a `<input type="checkbox">`,
|
|
2448
|
+
* it's only used when the toggle participates in a native `<form>`.
|
|
2449
|
+
*/
|
|
2450
|
+
this.value = 'on';
|
|
2451
|
+
/**
|
|
2452
|
+
* Enables the on/off accessibility switch labels within the toggle.
|
|
2453
|
+
*/
|
|
2454
|
+
this.enableOnOffLabels = undefined;
|
|
2455
|
+
this.onClick = (ev) => {
|
|
2456
|
+
ev.preventDefault();
|
|
2457
|
+
if (this.lastDrag + 300 < Date.now()) {
|
|
2458
|
+
this.checked = !this.checked;
|
|
2459
|
+
}
|
|
2460
|
+
};
|
|
2461
|
+
this.onFocus = () => {
|
|
2462
|
+
this.ionFocus.emit();
|
|
2463
|
+
};
|
|
2464
|
+
this.onBlur = () => {
|
|
2465
|
+
this.ionBlur.emit();
|
|
2466
|
+
};
|
|
2467
|
+
this.getSwitchLabelIcon = (mode, checked) => {
|
|
2468
|
+
if (mode === 'md') {
|
|
2469
|
+
return checked ? index$2.checkmarkOutline : index$2.removeOutline;
|
|
2470
|
+
}
|
|
2471
|
+
return checked ? index$2.removeOutline : index$2.ellipseOutline;
|
|
2472
|
+
};
|
|
2473
|
+
}
|
|
2474
|
+
checkedChanged(isChecked) {
|
|
2475
|
+
this.ionChange.emit({
|
|
2476
|
+
checked: isChecked,
|
|
2477
|
+
value: this.value,
|
|
2478
|
+
});
|
|
2479
|
+
}
|
|
2480
|
+
disabledChanged() {
|
|
2481
|
+
this.emitStyle();
|
|
2482
|
+
if (this.gesture) {
|
|
2483
|
+
this.gesture.enable(!this.disabled);
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
async connectedCallback() {
|
|
2487
|
+
this.gesture = (await Promise.resolve().then(function () { return require('./index-12082cba.js'); })).createGesture({
|
|
2488
|
+
el: this.el,
|
|
2489
|
+
gestureName: 'toggle',
|
|
2490
|
+
gesturePriority: 100,
|
|
2491
|
+
threshold: 5,
|
|
2492
|
+
passive: false,
|
|
2493
|
+
onStart: () => this.onStart(),
|
|
2494
|
+
onMove: (ev) => this.onMove(ev),
|
|
2495
|
+
onEnd: (ev) => this.onEnd(ev),
|
|
2496
|
+
});
|
|
2497
|
+
this.disabledChanged();
|
|
2498
|
+
}
|
|
2499
|
+
disconnectedCallback() {
|
|
2500
|
+
if (this.gesture) {
|
|
2501
|
+
this.gesture.destroy();
|
|
2502
|
+
this.gesture = undefined;
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
componentWillLoad() {
|
|
2506
|
+
this.emitStyle();
|
|
2507
|
+
}
|
|
2508
|
+
emitStyle() {
|
|
2509
|
+
this.ionStyle.emit({
|
|
2510
|
+
'interactive-disabled': this.disabled,
|
|
2511
|
+
});
|
|
2512
|
+
}
|
|
2513
|
+
onStart() {
|
|
2514
|
+
this.activated = true;
|
|
2515
|
+
// touch-action does not work in iOS
|
|
2516
|
+
this.setFocus();
|
|
2517
|
+
}
|
|
2518
|
+
onMove(detail) {
|
|
2519
|
+
if (shouldToggle(dir.isRTL(this.el), this.checked, detail.deltaX, -10)) {
|
|
2520
|
+
this.checked = !this.checked;
|
|
2521
|
+
haptic.hapticSelection();
|
|
2522
|
+
}
|
|
2523
|
+
}
|
|
2524
|
+
onEnd(ev) {
|
|
2525
|
+
this.activated = false;
|
|
2526
|
+
this.lastDrag = Date.now();
|
|
2527
|
+
ev.event.preventDefault();
|
|
2528
|
+
ev.event.stopImmediatePropagation();
|
|
2529
|
+
}
|
|
2530
|
+
getValue() {
|
|
2531
|
+
return this.value || '';
|
|
2532
|
+
}
|
|
2533
|
+
setFocus() {
|
|
2534
|
+
if (this.focusEl) {
|
|
2535
|
+
this.focusEl.focus();
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
renderOnOffSwitchLabels(mode, checked) {
|
|
2539
|
+
const icon = this.getSwitchLabelIcon(mode, checked);
|
|
2540
|
+
return (index.h("ion-icon", { class: {
|
|
2541
|
+
'toggle-switch-icon': true,
|
|
2542
|
+
'toggle-switch-icon-checked': checked,
|
|
2543
|
+
}, icon: icon }));
|
|
2544
|
+
}
|
|
2545
|
+
render() {
|
|
2546
|
+
const { activated, color, checked, disabled, el, inputId, name, enableOnOffLabels } = this;
|
|
2547
|
+
const mode = ionicGlobal.getIonMode(this);
|
|
2548
|
+
const { label, labelId, labelText } = helpers.getAriaLabel(el, inputId);
|
|
2549
|
+
const value = this.getValue();
|
|
2550
|
+
helpers.renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
2551
|
+
return (index.h(index.Host, { onClick: this.onClick, "aria-labelledby": label ? labelId : null, "aria-checked": `${checked}`, "aria-hidden": disabled ? 'true' : null, role: "switch", class: theme.createColorClasses(color, {
|
|
2552
|
+
[mode]: true,
|
|
2553
|
+
'in-item': theme.hostContext('ion-item', el),
|
|
2554
|
+
'toggle-activated': activated,
|
|
2555
|
+
'toggle-checked': checked,
|
|
2556
|
+
'toggle-disabled': disabled,
|
|
2557
|
+
interactive: true,
|
|
2558
|
+
}) }, index.h("div", { class: "toggle-icon", part: "track" }, enableOnOffLabels &&
|
|
2559
|
+
mode === 'ios' && [this.renderOnOffSwitchLabels(mode, true), this.renderOnOffSwitchLabels(mode, false)], index.h("div", { class: "toggle-icon-wrapper" }, index.h("div", { class: "toggle-inner", part: "handle" }, enableOnOffLabels && mode === 'md' && this.renderOnOffSwitchLabels(mode, checked)))), index.h("label", { htmlFor: inputId }, labelText), index.h("input", { type: "checkbox", role: "switch", "aria-checked": `${checked}`, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) })));
|
|
2560
|
+
}
|
|
2561
|
+
get el() { return index.getElement(this); }
|
|
2562
|
+
static get watchers() { return {
|
|
2563
|
+
"checked": ["checkedChanged"],
|
|
2564
|
+
"disabled": ["disabledChanged"]
|
|
2565
|
+
}; }
|
|
2566
|
+
};
|
|
2567
|
+
const shouldToggle = (rtl, checked, deltaX, margin) => {
|
|
2568
|
+
if (checked) {
|
|
2569
|
+
return (!rtl && margin > deltaX) || (rtl && -margin < deltaX);
|
|
2570
|
+
}
|
|
2571
|
+
else {
|
|
2572
|
+
return (!rtl && -margin < deltaX) || (rtl && margin > deltaX);
|
|
2573
|
+
}
|
|
2574
|
+
};
|
|
2575
|
+
let toggleIds = 0;
|
|
2576
|
+
Toggle.style = {
|
|
2577
|
+
ios: toggleIosCss,
|
|
2578
|
+
md: toggleMdCss
|
|
2579
|
+
};
|
|
2580
|
+
|
|
2581
|
+
exports.ion_datetime = Datetime;
|
|
2582
|
+
exports.ion_picker_column_internal = PickerColumnInternal;
|
|
2583
|
+
exports.ion_picker_internal = PickerInternal;
|
|
2584
|
+
exports.ion_toggle = Toggle;
|