@ionic/core 7.3.4-dev.11694548895.1578981b → 7.3.4-dev.11694608913.1bc64f72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/button-active.js +1 -1
- package/components/checkbox.js +6 -3
- package/components/data.js +31 -7
- package/components/index.js +2 -2
- package/components/index2.js +203 -429
- package/components/index3.js +429 -203
- package/components/input-shims.js +6 -20
- package/components/ion-datetime-button.js +3 -0
- package/components/ion-datetime.js +132 -92
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-modal.js +2 -2
- package/components/ion-nav.js +1 -1
- package/components/ion-range.js +3 -3
- package/components/ion-refresher.js +3 -3
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-segment.js +1 -1
- package/components/ion-toggle.js +7 -4
- package/components/ios.transition.js +1 -1
- package/components/md.transition.js +1 -1
- package/components/picker-column.js +1 -1
- package/components/popover.js +1 -1
- package/components/radio.js +6 -3
- package/components/swipe-back.js +1 -1
- package/dist/cjs/{app-globals-a63c2a19.js → app-globals-a579aafd.js} +1 -1
- package/dist/cjs/{button-active-0ff8e82c.js → button-active-dfd2756e.js} +1 -1
- package/dist/cjs/{data-967b9c15.js → data-db832785.js} +31 -7
- package/dist/cjs/{index-184fdd62.js → index-484b1104.js} +6 -6
- package/dist/cjs/{index-e6416850.js → index-653be4df.js} +1 -1
- package/dist/cjs/{index-be8a2ab9.js → index-8568bedb.js} +3 -3
- package/dist/cjs/index.cjs.js +15 -14
- package/dist/cjs/{input-shims-93284c80.js → input-shims-f8569707.js} +7 -20
- package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-action-sheet.cjs.entry.js +4 -4
- package/dist/cjs/ion-alert.cjs.entry.js +4 -4
- package/dist/cjs/ion-app_8.cjs.entry.js +5 -5
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +7 -5
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +6 -3
- package/dist/cjs/ion-datetime_3.cjs.entry.js +135 -96
- package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-input.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +3 -3
- package/dist/cjs/ion-menu_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-modal.cjs.entry.js +4 -4
- package/dist/cjs/ion-nav_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column-internal.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-internal.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +4 -4
- package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/ion-radio_2.cjs.entry.js +7 -5
- package/dist/cjs/ion-range.cjs.entry.js +4 -4
- package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-select_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +3 -3
- package/dist/cjs/ion-toggle.cjs.entry.js +7 -5
- package/dist/cjs/{ionic-global-6d5d27b5.js → ionic-global-f81d8b73.js} +1 -1
- package/dist/cjs/ionic.cjs.js +5 -5
- package/dist/cjs/{ios.transition-80582b44.js → ios.transition-f7c78d7c.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-eeca9fb5.js → md.transition-65dc7dce.js} +2 -2
- package/dist/cjs/{overlays-c78a0148.js → overlays-5c1706ed.js} +1 -1
- package/dist/cjs/{status-tap-cc4c6539.js → status-tap-4564b66c.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkbox/checkbox.ios.css +35 -0
- package/dist/collection/components/checkbox/checkbox.js +24 -4
- package/dist/collection/components/checkbox/checkbox.md.css +35 -0
- package/dist/collection/components/checkbox/test/item/checkbox.e2e.js +13 -0
- package/dist/collection/components/checkbox/test/label/checkbox.e2e.js +16 -0
- package/dist/collection/components/datetime/datetime.ios.css +32 -29
- package/dist/collection/components/datetime/datetime.js +137 -93
- package/dist/collection/components/datetime/datetime.md.css +20 -28
- package/dist/collection/components/datetime/test/basic/datetime.e2e.js +25 -0
- package/dist/collection/components/datetime/test/color/datetime.e2e.js +1 -1
- package/dist/collection/components/datetime/test/custom/datetime.e2e.js +27 -1
- package/dist/collection/components/datetime/test/prefer-wheel/datetime.e2e.js +15 -0
- package/dist/collection/components/datetime/test/set-value/datetime.e2e.js +9 -12
- package/dist/collection/components/datetime/utils/data.js +14 -6
- package/dist/collection/components/datetime/utils/parse.js +18 -1
- package/dist/collection/components/datetime-button/datetime-button.js +3 -0
- package/dist/collection/components/radio/radio.ios.css +35 -0
- package/dist/collection/components/radio/radio.js +24 -4
- package/dist/collection/components/radio/radio.md.css +35 -0
- package/dist/collection/components/radio/test/item/radio.e2e.js +15 -0
- package/dist/collection/components/radio/test/label-placement/radio.e2e.js +20 -0
- package/dist/collection/components/range/range.ios.css +41 -1
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/range/range.md.css +41 -1
- package/dist/collection/components/range/test/label/range.e2e.js +48 -0
- package/dist/collection/components/toggle/test/item/toggle.e2e.js +15 -0
- package/dist/collection/components/toggle/test/label/toggle.e2e.js +16 -0
- package/dist/collection/components/toggle/toggle.ios.css +35 -1
- package/dist/collection/components/toggle/toggle.js +24 -4
- package/dist/collection/components/toggle/toggle.md.css +35 -1
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/input-shims/hacks/scroll-assist.js +3 -18
- package/dist/collection/utils/input-shims/hacks/scroll-data.js +3 -2
- package/dist/docs.json +148 -19
- package/dist/esm/{app-globals-c7886b40.js → app-globals-e8ddf830.js} +1 -1
- package/dist/esm/{button-active-b76ae4ec.js → button-active-2da0f611.js} +1 -1
- package/dist/esm/{data-4b448e3a.js → data-009dbf15.js} +31 -7
- package/dist/esm/{index-01839411.js → index-6391de89.js} +3 -3
- package/dist/esm/{index-adfb2000.js → index-847f2fde.js} +6 -6
- package/dist/esm/{index-48f5e259.js → index-b3e05099.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{input-shims-4f1b0af9.js → input-shims-af993f05.js} +7 -20
- package/dist/esm/ion-accordion_2.entry.js +2 -2
- package/dist/esm/ion-action-sheet.entry.js +4 -4
- package/dist/esm/ion-alert.entry.js +4 -4
- package/dist/esm/ion-app_8.entry.js +5 -5
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +2 -2
- package/dist/esm/ion-card_5.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +7 -5
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +6 -3
- package/dist/esm/ion-datetime_3.entry.js +135 -96
- package/dist/esm/ion-fab_3.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
- package/dist/esm/ion-input.entry.js +2 -2
- package/dist/esm/ion-item-option_3.entry.js +2 -2
- package/dist/esm/ion-item_8.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +3 -3
- package/dist/esm/ion-menu_3.entry.js +4 -4
- package/dist/esm/ion-modal.entry.js +4 -4
- package/dist/esm/ion-nav_2.entry.js +3 -3
- package/dist/esm/ion-picker-column-internal.entry.js +2 -2
- package/dist/esm/ion-picker-internal.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +4 -4
- package/dist/esm/ion-progress-bar.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +7 -5
- package/dist/esm/ion-range.entry.js +4 -4
- package/dist/esm/ion-refresher_2.entry.js +2 -2
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +2 -2
- package/dist/esm/ion-select_3.entry.js +3 -3
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +2 -2
- package/dist/esm/ion-tab_2.entry.js +1 -1
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +3 -3
- package/dist/esm/ion-toggle.entry.js +7 -5
- package/dist/esm/{ionic-global-9080266a.js → ionic-global-1ef19007.js} +1 -1
- package/dist/esm/ionic.js +6 -6
- package/dist/esm/{ios.transition-f43871cd.js → ios.transition-3137d23e.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-12d21ad0.js → md.transition-48b3b77c.js} +2 -2
- package/dist/esm/{overlays-4565894b.js → overlays-e1dadfe6.js} +1 -1
- package/dist/esm/{status-tap-121c711d.js → status-tap-823a0df3.js} +1 -1
- package/dist/esm-es5/app-globals-e8ddf830.js +4 -0
- package/dist/esm-es5/{button-active-b76ae4ec.js → button-active-2da0f611.js} +1 -1
- package/dist/esm-es5/data-009dbf15.js +4 -0
- package/dist/esm-es5/{index-01839411.js → index-6391de89.js} +1 -1
- package/dist/esm-es5/{index-48f5e259.js → index-b3e05099.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-af993f05.js +4 -0
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-internal.entry.js +1 -1
- package/dist/esm-es5/ion-picker-internal.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/{ionic-global-9080266a.js → ionic-global-1ef19007.js} +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-f43871cd.js → ios.transition-3137d23e.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-48b3b77c.js +4 -0
- package/dist/esm-es5/{overlays-4565894b.js → overlays-e1dadfe6.js} +1 -1
- package/dist/esm-es5/{status-tap-121c711d.js → status-tap-823a0df3.js} +1 -1
- package/dist/html.html-data.json +52 -4
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/{p-9b53c813.entry.js → p-0142ba6d.entry.js} +1 -1
- package/dist/ionic/{p-516421e2.system.entry.js → p-0219ac12.system.entry.js} +1 -1
- package/dist/ionic/{p-c2d6088f.entry.js → p-0660215f.entry.js} +1 -1
- package/dist/ionic/p-06902103.system.js +4 -0
- package/dist/ionic/{p-4446e19f.system.entry.js → p-06d6e9c0.system.entry.js} +1 -1
- package/dist/ionic/{p-74834696.system.entry.js → p-0b68c41d.system.entry.js} +1 -1
- package/dist/ionic/{p-e239ab05.system.entry.js → p-0cc2bf5a.system.entry.js} +1 -1
- package/dist/ionic/{p-5df94bf8.entry.js → p-0ff17c93.entry.js} +1 -1
- package/dist/ionic/{p-d57e8b06.js → p-11248f01.js} +1 -1
- package/dist/ionic/{p-5080e623.system.entry.js → p-11a42c03.system.entry.js} +1 -1
- package/dist/ionic/{p-a8270ae8.system.entry.js → p-1d82df31.system.entry.js} +1 -1
- package/dist/ionic/{p-48d378cf.entry.js → p-1ec4dc01.entry.js} +1 -1
- package/dist/ionic/p-1f4adf06.system.entry.js +4 -0
- package/dist/ionic/{p-4d2807fa.entry.js → p-1fb9aab8.entry.js} +1 -1
- package/dist/ionic/{p-9f3ad626.system.entry.js → p-2061c86f.system.entry.js} +1 -1
- package/dist/ionic/{p-28d8b87b.entry.js → p-208f640c.entry.js} +1 -1
- package/dist/ionic/p-218b6f33.entry.js +4 -0
- package/dist/ionic/{p-d8d30fd1.system.entry.js → p-2539e967.system.entry.js} +1 -1
- package/dist/ionic/p-273e78ae.entry.js +4 -0
- package/dist/ionic/p-2da6ba37.system.entry.js +4 -0
- package/dist/ionic/{p-4e1a58c6.system.entry.js → p-32d11ce2.system.entry.js} +1 -1
- package/dist/ionic/{p-c8c0d58a.system.entry.js → p-336420f9.system.entry.js} +1 -1
- package/dist/ionic/{p-be187db3.entry.js → p-341d5877.entry.js} +1 -1
- package/dist/ionic/{p-11d0977d.entry.js → p-38dd9aec.entry.js} +1 -1
- package/dist/ionic/{p-fde174d6.system.entry.js → p-3ef88fc2.system.entry.js} +1 -1
- package/dist/ionic/p-40138199.entry.js +4 -0
- package/dist/ionic/{p-765e6339.entry.js → p-430e902d.entry.js} +1 -1
- package/dist/ionic/p-44ef7224.system.js +4 -0
- package/dist/ionic/p-4531b920.system.js +4 -0
- package/dist/ionic/{p-8db97b90.entry.js → p-48144921.entry.js} +1 -1
- package/dist/ionic/{p-0ce43a8f.system.entry.js → p-4a153fbc.system.entry.js} +1 -1
- package/dist/ionic/p-4ca1ce6b.system.entry.js +4 -0
- package/dist/ionic/p-51b165af.system.js +4 -0
- package/dist/ionic/{p-98bfaff3.system.entry.js → p-57dc87eb.system.entry.js} +1 -1
- package/dist/ionic/{p-83459b99.entry.js → p-57f0efcc.entry.js} +1 -1
- package/dist/ionic/p-582dc7c1.js +4 -0
- package/dist/ionic/{p-ee55302a.system.entry.js → p-5ba27716.system.entry.js} +1 -1
- package/dist/ionic/{p-68deb933.entry.js → p-5c17f888.entry.js} +1 -1
- package/dist/ionic/{p-a037b6d5.system.entry.js → p-62324608.system.entry.js} +1 -1
- package/dist/ionic/{p-f62bed60.entry.js → p-639d7b25.entry.js} +1 -1
- package/dist/ionic/p-64ad5765.entry.js +4 -0
- package/dist/ionic/{p-9eced28c.entry.js → p-653f2fc6.entry.js} +1 -1
- package/dist/ionic/{p-b9179eab.entry.js → p-67b891af.entry.js} +1 -1
- package/dist/ionic/{p-8bcd482b.entry.js → p-68e0ea3c.entry.js} +1 -1
- package/dist/ionic/{p-2e5930dd.system.js → p-69303bb5.system.js} +1 -1
- package/dist/ionic/{p-42e0558f.entry.js → p-6b3afb0f.entry.js} +1 -1
- package/dist/ionic/{p-ec344ed1.system.entry.js → p-6bf632d0.system.entry.js} +1 -1
- package/dist/ionic/{p-cd002251.entry.js → p-728ac2b3.entry.js} +1 -1
- package/dist/ionic/p-778460f7.js +4 -0
- package/dist/ionic/{p-3f15f60b.entry.js → p-77f91ca9.entry.js} +1 -1
- package/dist/ionic/{p-b052b578.entry.js → p-785b0913.entry.js} +1 -1
- package/dist/ionic/{p-ff3d728d.system.js → p-7b16490a.system.js} +1 -1
- package/dist/ionic/{p-629b0629.js → p-7c938ad6.js} +1 -1
- package/dist/ionic/p-7cfd253c.js +4 -0
- package/dist/ionic/{p-5e549223.system.js → p-81597423.system.js} +1 -1
- package/dist/ionic/{p-3d5a6d14.system.js → p-82632e15.system.js} +1 -1
- package/dist/ionic/{p-23ddd787.system.entry.js → p-82f5c07e.system.entry.js} +1 -1
- package/dist/ionic/{p-b453b38d.entry.js → p-82f8ee51.entry.js} +1 -1
- package/dist/ionic/{p-a314559e.system.js → p-83008f7c.system.js} +2 -2
- package/dist/ionic/{p-7474a472.system.entry.js → p-839bd69f.system.entry.js} +1 -1
- package/dist/ionic/{p-9be96bf3.system.entry.js → p-83bcaec9.system.entry.js} +1 -1
- package/dist/ionic/p-86c5c320.entry.js +4 -0
- package/dist/ionic/{p-95188051.system.entry.js → p-87383d00.system.entry.js} +1 -1
- package/dist/ionic/{p-57847936.entry.js → p-8a676776.entry.js} +1 -1
- package/dist/ionic/{p-5fc777e6.system.js → p-8ba724fa.system.js} +1 -1
- package/dist/ionic/p-90ec5785.system.entry.js +4 -0
- package/dist/ionic/{p-b3f6f321.js → p-91459620.js} +1 -1
- package/dist/ionic/{p-49f2eaa6.entry.js → p-93e47822.entry.js} +1 -1
- package/dist/ionic/{p-fa8fc77b.system.entry.js → p-96c2a273.system.entry.js} +1 -1
- package/dist/ionic/{p-6dff4431.entry.js → p-98a189f3.entry.js} +1 -1
- package/dist/ionic/{p-0dbfa45f.entry.js → p-98ebc376.entry.js} +1 -1
- package/dist/ionic/{p-07656a8a.entry.js → p-99028088.entry.js} +1 -1
- package/dist/ionic/{p-84084b75.entry.js → p-99140340.entry.js} +1 -1
- package/dist/ionic/{p-47a11fc4.entry.js → p-9c32000a.entry.js} +1 -1
- package/dist/ionic/p-a2b25750.js +4 -0
- package/dist/ionic/{p-d524e68b.system.entry.js → p-a34669bf.system.entry.js} +1 -1
- package/dist/ionic/{p-bacf09d3.entry.js → p-a3f9d271.entry.js} +1 -1
- package/dist/ionic/p-a62c0ff4.js +4 -0
- package/dist/ionic/{p-5a9dc764.system.entry.js → p-af0bc751.system.entry.js} +1 -1
- package/dist/ionic/p-af986299.system.entry.js +4 -0
- package/dist/ionic/{p-6ccffb74.system.entry.js → p-b0e9e0b8.system.entry.js} +1 -1
- package/dist/ionic/{p-563068af.js → p-b22ee0dc.js} +1 -1
- package/dist/ionic/{p-204fb8f0.system.entry.js → p-b2514862.system.entry.js} +1 -1
- package/dist/ionic/p-b321c999.entry.js +4 -0
- package/dist/ionic/{p-bfee11b2.system.js → p-b32742f3.system.js} +1 -1
- package/dist/ionic/{p-3bf120f8.system.entry.js → p-b9654781.system.entry.js} +1 -1
- package/dist/ionic/{p-1c236453.system.entry.js → p-bbae0ac3.system.entry.js} +1 -1
- package/dist/ionic/{p-32983529.system.entry.js → p-bf4b8d8a.system.entry.js} +1 -1
- package/dist/ionic/{p-5163baf4.system.entry.js → p-c4afbed8.system.entry.js} +1 -1
- package/dist/ionic/p-c53dd7a2.entry.js +4 -0
- package/dist/ionic/{p-a033a91d.system.entry.js → p-d1bab5e7.system.entry.js} +1 -1
- package/dist/ionic/{p-5260588f.system.entry.js → p-d1d3b740.system.entry.js} +1 -1
- package/dist/ionic/{p-59b40b60.entry.js → p-d3378c35.entry.js} +1 -1
- package/dist/ionic/{p-eb91aee6.entry.js → p-d5e3bff3.entry.js} +1 -1
- package/dist/ionic/{p-dc4c9086.system.entry.js → p-d693e765.system.entry.js} +1 -1
- package/dist/ionic/p-d898dd46.js +4 -0
- package/dist/ionic/p-d8a0267b.system.entry.js +4 -0
- package/dist/ionic/{p-ef8a8827.system.entry.js → p-dbb48066.system.entry.js} +1 -1
- package/dist/ionic/{p-574411f2.system.entry.js → p-dc49c681.system.entry.js} +1 -1
- package/dist/ionic/{p-a122ecd0.system.js → p-df6743df.system.js} +1 -1
- package/dist/ionic/{p-6276ba2f.system.entry.js → p-e112994b.system.entry.js} +1 -1
- package/dist/ionic/{p-3c325277.js → p-e3cba96d.js} +1 -1
- package/dist/ionic/p-e3d5608d.system.js +4 -0
- package/dist/ionic/{p-2ac2278e.system.entry.js → p-e805ff9f.system.entry.js} +1 -1
- package/dist/ionic/{p-07f5e286.entry.js → p-e9c112ba.entry.js} +1 -1
- package/dist/ionic/{p-ec7ff98b.entry.js → p-ed7b205b.entry.js} +1 -1
- package/dist/ionic/{p-26276eb7.system.entry.js → p-f5b7b710.system.entry.js} +1 -1
- package/dist/ionic/p-f5c19164.entry.js +4 -0
- package/dist/ionic/{p-9e8727d6.entry.js → p-f7faa32d.entry.js} +1 -1
- package/dist/ionic/{p-fc991193.entry.js → p-f9567c67.entry.js} +1 -1
- package/dist/ionic/{p-810f1bc9.system.entry.js → p-f95f798a.system.entry.js} +1 -1
- package/dist/ionic/{p-6eb7b33c.system.entry.js → p-fa3327e8.system.entry.js} +1 -1
- package/dist/ionic/{p-072f99fd.entry.js → p-fabb7294.entry.js} +1 -1
- package/dist/ionic/{p-041ac2c3.entry.js → p-fac1660b.entry.js} +1 -1
- package/dist/ionic/{p-1916030e.entry.js → p-fe83e3e2.entry.js} +1 -1
- package/dist/ionic/{p-b703ebeb.system.entry.js → p-fea46870.system.entry.js} +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +8 -1
- package/dist/types/components/datetime/datetime.d.ts +23 -10
- package/dist/types/components/datetime/utils/data.d.ts +1 -1
- package/dist/types/components/datetime/utils/parse.d.ts +3 -3
- package/dist/types/components/radio/radio.d.ts +8 -1
- package/dist/types/components/range/range.d.ts +2 -1
- package/dist/types/components/toast/toast-interface.d.ts +3 -0
- package/dist/types/components/toggle/toggle.d.ts +8 -1
- package/dist/types/components.d.ts +40 -16
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +3 -3
- package/dist/types/utils/input-shims/hacks/scroll-data.d.ts +1 -1
- package/hydrate/index.d.ts +5 -5
- package/hydrate/index.js +234 -150
- package/package.json +3 -3
- package/dist/esm-es5/app-globals-c7886b40.js +0 -4
- package/dist/esm-es5/data-4b448e3a.js +0 -4
- package/dist/esm-es5/input-shims-4f1b0af9.js +0 -4
- package/dist/esm-es5/md.transition-12d21ad0.js +0 -4
- package/dist/ionic/p-17e961cf.entry.js +0 -4
- package/dist/ionic/p-1b533a76.system.entry.js +0 -4
- package/dist/ionic/p-1d4a4a94.system.js +0 -4
- package/dist/ionic/p-2b0ecc04.entry.js +0 -4
- package/dist/ionic/p-44a6f15d.system.entry.js +0 -4
- package/dist/ionic/p-4f7109fa.entry.js +0 -4
- package/dist/ionic/p-56495958.js +0 -4
- package/dist/ionic/p-601fd53c.js +0 -4
- package/dist/ionic/p-7106c152.system.js +0 -4
- package/dist/ionic/p-75d4ceab.js +0 -4
- package/dist/ionic/p-8f7edf3e.js +0 -4
- package/dist/ionic/p-99a3df5c.entry.js +0 -4
- package/dist/ionic/p-9eaaa910.entry.js +0 -4
- package/dist/ionic/p-a533868d.system.js +0 -4
- package/dist/ionic/p-af6125d1.system.entry.js +0 -4
- package/dist/ionic/p-b8d7f0eb.system.entry.js +0 -4
- package/dist/ionic/p-c4abd708.js +0 -4
- package/dist/ionic/p-c68a8814.system.js +0 -4
- package/dist/ionic/p-c7ce7e18.entry.js +0 -4
- package/dist/ionic/p-cc8910e7.system.js +0 -4
- package/dist/ionic/p-dacb0258.js +0 -4
- package/dist/ionic/p-dc7d392d.entry.js +0 -4
- package/dist/ionic/p-e65aed58.system.entry.js +0 -4
- package/dist/ionic/p-f3ec1f2b.entry.js +0 -4
- package/dist/ionic/p-fb26fa56.system.entry.js +0 -4
- /package/dist/esm-es5/{index-adfb2000.js → index-847f2fde.js} +0 -0
- /package/dist/ionic/{p-a18eb556.js → p-156967ec.js} +0 -0
- /package/dist/ionic/{p-2441ba84.system.js → p-5b553dc0.system.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,e,o,n){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,r){function a(t){try{c(n.next(t))}catch(t){r(t)}}function s(t){try{c(n["throw"](t))}catch(t){r(t)}}function c(t){t.done?o(t.value):i(t.value).then(a,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,i,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(o=0)),o)try{if(n=1,i&&(r=s[0]&2?i["return"]:s[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;if(i=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;i=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(s[0]===6&&o.label<r[1]){o.label=r[1];r=s;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(s);break}if(r[2])o.ops.pop();o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t];i=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-2441ba84.system.js","./p-819ff3b9.system.js","./p-44bc8b45.system.js","./p-ff3d728d.system.js","./p-815c2fba.system.js"],(function(t,e){"use strict";var o,n,i,r,a,s,c,l,d,u,h,b,g,m;return{setters:[function(t){o=t.r;n=t.d;i=t.w;r=t.h;a=t.H;s=t.f;c=t.i},function(t){l=t.i},function(t){d=t.c;u=t.h},function(t){h=t.b},function(t){b=t.a;g=t.b;m=t.k}],execute:function(){var f=":host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:grid;grid-auto-columns:1fr;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto;grid-auto-columns:minmax(-webkit-min-content, 1fr);grid-auto-columns:minmax(min-content, 1fr)}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.065);border-radius:8px;overflow:hidden;z-index:0}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.065)}:host(.in-toolbar){-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:auto}:host(.in-toolbar:not(.ion-color)){background:var(--ion-toolbar-segment-background, var(--background))}:host(.in-toolbar-color:not(.ion-color)){background:rgba(var(--ion-color-contrast-rgb), 0.11)}";var v=":host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:grid;grid-auto-columns:1fr;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto;grid-auto-columns:minmax(-webkit-min-content, 1fr);grid-auto-columns:minmax(min-content, 1fr)}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:transparent;grid-auto-columns:minmax(auto, 360px)}:host(.in-toolbar){min-height:var(--min-height)}:host(.segment-scrollable) ::slotted(ion-segment-button){min-width:auto}";var p=t("ion_segment",function(){function t(t){var e=this;o(this,t);this.ionChange=n(this,"ionChange",7);this.ionSelect=n(this,"ionSelect",7);this.ionStyle=n(this,"ionStyle",7);this.onClick=function(t){var o=t.target;var n=e.checked;if(o.tagName==="ION-SEGMENT"){return}e.value=o.value;if(o!==n){e.emitValueChange()}if(e.scrollable||!e.swipeGesture){if(n){e.checkButton(n,o)}else{e.setCheckedClasses()}}};this.getSegmentButton=function(t){var o,n;var i=e.getButtons().filter((function(t){return!t.disabled}));var r=i.findIndex((function(t){return t===document.activeElement}));switch(t){case"first":return i[0];case"last":return i[i.length-1];case"next":return(o=i[r+1])!==null&&o!==void 0?o:i[0];case"previous":return(n=i[r-1])!==null&&n!==void 0?n:i[i.length-1];default:return null}};this.activated=false;this.color=undefined;this.disabled=false;this.scrollable=false;this.swipeGesture=true;this.value=undefined;this.selectOnFocus=false}t.prototype.colorChanged=function(t,e){if(e===undefined&&t!==undefined||e!==undefined&&t===undefined){this.emitStyle()}};t.prototype.swipeGestureChanged=function(){this.gestureChanged()};t.prototype.valueChanged=function(t){this.ionSelect.emit({value:t});if(this.scrollable){var e=this.getButtons();var o=e.find((function(e){return e.value===t}));if(o!==undefined){o.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}};t.prototype.disabledChanged=function(){this.gestureChanged();var t=this.getButtons();for(var e=0,o=t;e<o.length;e++){var n=o[e];n.disabled=this.disabled}};t.prototype.gestureChanged=function(){if(this.gesture){this.gesture.enable(!this.scrollable&&!this.disabled&&this.swipeGesture)}};t.prototype.connectedCallback=function(){this.emitStyle()};t.prototype.componentWillLoad=function(){this.emitStyle()};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;var o=this;return __generator(this,(function(n){switch(n.label){case 0:this.setCheckedClasses();t=this;return[4,e.import("./p-fa8d4788.system.js")];case 1:t.gesture=n.sent().createGesture({el:this.el,gestureName:"segment",gesturePriority:100,threshold:0,passive:false,onStart:function(t){return o.onStart(t)},onMove:function(t){return o.onMove(t)},onEnd:function(t){return o.onEnd(t)}});this.gestureChanged();if(this.disabled){this.disabledChanged()}return[2]}}))}))};t.prototype.onStart=function(t){this.valueBeforeGesture=this.value;this.activate(t)};t.prototype.onMove=function(t){this.setNextIndex(t)};t.prototype.onEnd=function(t){this.setActivated(false);this.setNextIndex(t,true);t.event.stopImmediatePropagation();var e=this.value;if(e!==undefined){if(this.valueBeforeGesture!==e){this.emitValueChange()}}this.valueBeforeGesture=undefined};t.prototype.emitValueChange=function(){var t=this.value;this.ionChange.emit({value:t})};t.prototype.getButtons=function(){return Array.from(this.el.querySelectorAll("ion-segment-button"))};Object.defineProperty(t.prototype,"checked",{get:function(){var t=this;return this.getButtons().find((function(e){return e.value===t.value}))},enumerable:false,configurable:true});t.prototype.setActivated=function(t){var e=this.getButtons();e.forEach((function(e){if(t){e.classList.add("segment-button-activated")}else{e.classList.remove("segment-button-activated")}}));this.activated=t};t.prototype.activate=function(t){var e=this;var o=t.event.target;var n=this.getButtons();var i=n.find((function(t){return t.value===e.value}));if(o.tagName!=="ION-SEGMENT-BUTTON"){return}if(!i){this.value=o.value;this.setCheckedClasses()}if(this.value===o.value){this.setActivated(true)}};t.prototype.getIndicator=function(t){var e=t.shadowRoot||t;return e.querySelector(".segment-button-indicator")};t.prototype.checkButton=function(t,e){var o=this.getIndicator(t);var n=this.getIndicator(e);if(o===null||n===null){return}var r=o.getBoundingClientRect();var a=n.getBoundingClientRect();var s=r.width/a.width;var c=r.left-a.left;var l="translate3d(".concat(c,"px, 0, 0) scaleX(").concat(s,")");i((function(){n.classList.remove("segment-button-indicator-animated");n.style.setProperty("transform",l);n.getBoundingClientRect();n.classList.add("segment-button-indicator-animated");n.style.setProperty("transform","")}));this.value=e.value;this.setCheckedClasses()};t.prototype.setCheckedClasses=function(){var t=this;var e=this.getButtons();var o=e.findIndex((function(e){return e.value===t.value}));var n=o+1;for(var i=0,r=e;i<r.length;i++){var a=r[i];a.classList.remove("segment-button-after-checked")}if(n<e.length){e[n].classList.add("segment-button-after-checked")}};t.prototype.setNextIndex=function(t,e){var o=this;if(e===void 0){e=false}var n=l(this.el);var i=this.activated;var r=this.getButtons();var a=r.findIndex((function(t){return t.value===o.value}));var s=r[a];var c;var d;if(a===-1){return}var u=s.getBoundingClientRect();var h=u.left;var b=u.width;var g=t.currentX;var m=u.top+u.height/2;var f=this.el.getRootNode();var v=f.elementFromPoint(g,m);var p=n?g>h+b:g<h;var k=n?g<h:g>h+b;if(i&&!e){if(p){var x=a-1;if(x>=0){d=x}}else if(k){if(i&&!e){var x=a+1;if(x<r.length){d=x}}}if(d!==undefined&&!r[d].disabled){c=r[d]}}if(!i&&e){c=v}if(c!=null){if(c.tagName==="ION-SEGMENT"){return false}if(s!==c){this.checkButton(s,c)}}return true};t.prototype.emitStyle=function(){this.ionStyle.emit({segment:true})};t.prototype.onKeyDown=function(t){var e=l(this.el);var o=this.selectOnFocus;var n;switch(t.key){case"ArrowRight":t.preventDefault();n=e?this.getSegmentButton("previous"):this.getSegmentButton("next");break;case"ArrowLeft":t.preventDefault();n=e?this.getSegmentButton("next"):this.getSegmentButton("previous");break;case"Home":t.preventDefault();n=this.getSegmentButton("first");break;case"End":t.preventDefault();n=this.getSegmentButton("last");break;case" ":case"Enter":t.preventDefault();n=document.activeElement;o=true}if(!n){return}if(o){var i=this.checked;this.checkButton(i||n,n);if(n!==i){this.emitValueChange()}}n.setFocus()};t.prototype.render=function(){var t;var e=h(this);return r(a,{role:"tablist",onClick:this.onClick,class:d(this.color,(t={},t[e]=true,t["in-toolbar"]=u("ion-toolbar",this.el),t["in-toolbar-color"]=u("ion-toolbar[color]",this.el),t["segment-activated"]=this.activated,t["segment-disabled"]=this.disabled,t["segment-scrollable"]=this.scrollable,t))},r("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{color:["colorChanged"],swipeGesture:["swipeGestureChanged"],value:["valueChanged"],disabled:["disabledChanged"]}},enumerable:false,configurable:true});return t}());p.style={ios:f,md:v};var k=':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color, #fff));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;-ms-flex-direction:row;flex-direction:row;min-width:70px;min-height:28px;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;-webkit-transition:160ms opacity ease-in-out;transition:160ms opacity ease-in-out;-webkit-transition-delay:100ms;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:"";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}.segment-button-indicator{-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;left:0;right:0;top:0;bottom:0}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color, #fff))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)))}:host(.in-toolbar-color) .segment-button-indicator-background{background:var(--ion-color-contrast)}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}';var x=':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:var(--color-checked);--background-focused:var(--color-checked);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--indicator-box-shadow:none;--indicator-color:var(--color-checked);--indicator-height:2px;--indicator-transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--padding-top:0;--padding-end:16px;--padding-bottom:0;--padding-start:16px;--transition:color 0.15s linear 0s, opacity 0.15s linear 0s;min-width:90px;min-height:48px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);font-size:14px;font-weight:500;letter-spacing:0.06em;line-height:40px;text-transform:uppercase}:host(.segment-button-disabled){opacity:0.3}:host(.in-segment-color){background:none;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color) ion-ripple-effect{color:var(--ion-color-base)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked) .button-native{color:var(--ion-color-base)}:host(.in-segment-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color:hover) .button-native::after{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-segment-color)){--background:var(--ion-toolbar-segment-background, none);--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6));--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-color-primary, #3880ff));--indicator-color:var(--ion-toolbar-segment-color-checked, var(--color-checked))}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:rgba(var(--ion-color-contrast-rgb), 0.6)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color)) .button-native::after{background:var(--ion-color-contrast)}}::slotted(ion-icon){margin-top:12px;margin-bottom:12px;font-size:24px}::slotted(ion-label){margin-top:12px;margin-bottom:12px}:host(.segment-button-layout-icon-top) ::slotted(ion-label),:host(.segment-button-layout-icon-bottom) ::slotted(ion-icon){margin-top:0}:host(.segment-button-layout-icon-top) ::slotted(ion-icon),:host(.segment-button-layout-icon-bottom) ::slotted(ion-label){margin-bottom:0}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}:host(.segment-button-has-icon-only) ::slotted(ion-icon){margin-top:12px;margin-bottom:12px}:host(.segment-button-has-label-only) ::slotted(ion-label){margin-top:12px;margin-bottom:12px}.segment-button-indicator{left:0;right:0;bottom:0}.segment-button-indicator-background{background:var(--indicator-color)}:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-toolbar-segment-indicator-color, var(--indicator-color))}:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-color-contrast)}';var y=0;var w=t("ion_segment_button",function(){function t(t){var e=this;o(this,t);this.segmentEl=null;this.inheritedAttributes={};this.updateStyle=function(){c(e)};this.updateState=function(){var t=e.segmentEl;if(t){e.checked=t.value===e.value;if(t.disabled){e.disabled=true}}};this.checked=false;this.disabled=false;this.layout="icon-top";this.type="button";this.value="ion-sb-"+y++}t.prototype.valueChanged=function(){this.updateState()};t.prototype.connectedCallback=function(){var t=this.segmentEl=this.el.closest("ion-segment");if(t){this.updateState();b(t,"ionSelect",this.updateState);b(t,"ionStyle",this.updateStyle)}};t.prototype.disconnectedCallback=function(){var t=this.segmentEl;if(t){g(t,"ionSelect",this.updateState);g(t,"ionStyle",this.updateStyle);this.segmentEl=null}};t.prototype.componentWillLoad=function(){this.inheritedAttributes=Object.assign({},m(this.el,["aria-label"]))};Object.defineProperty(t.prototype,"hasLabel",{get:function(){return!!this.el.querySelector("ion-label")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasIcon",{get:function(){return!!this.el.querySelector("ion-icon")},enumerable:false,configurable:true});t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.nativeEl;if(t!==undefined){t.focus()}return[2]}))}))};t.prototype.render=function(){var t;var e=this;var o=this,n=o.checked,i=o.type,s=o.disabled,c=o.hasIcon,l=o.hasLabel,d=o.layout,b=o.segmentEl;var g=h(this);var m=function(){return(b===null||b===void 0?void 0:b.color)!==undefined};return r(a,{class:(t={},t[g]=true,t["in-toolbar"]=u("ion-toolbar",this.el),t["in-toolbar-color"]=u("ion-toolbar[color]",this.el),t["in-segment"]=u("ion-segment",this.el),t["in-segment-color"]=m(),t["segment-button-has-label"]=l,t["segment-button-has-icon"]=c,t["segment-button-has-label-only"]=l&&!c,t["segment-button-has-icon-only"]=c&&!l,t["segment-button-disabled"]=s,t["segment-button-checked"]=n,t["segment-button-layout-".concat(d)]=true,t["ion-activatable"]=true,t["ion-activatable-instant"]=true,t["ion-focusable"]=true,t)},r("button",Object.assign({"aria-selected":n?"true":"false",role:"tab",ref:function(t){return e.nativeEl=t},type:i,class:"button-native",part:"native",disabled:s},this.inheritedAttributes),r("span",{class:"button-inner"},r("slot",null)),g==="md"&&r("ion-ripple-effect",null)),r("div",{part:"indicator",class:{"segment-button-indicator":true,"segment-button-indicator-animated":true}},r("div",{part:"indicator-background",class:"segment-button-indicator-background"})))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return t}());w.style={ios:k,md:x}}}}));
|
|
4
|
+
*/System.register(["./p-5b553dc0.system.js","./p-819ff3b9.system.js","./p-44bc8b45.system.js","./p-7b16490a.system.js","./p-815c2fba.system.js"],(function(t,e){"use strict";var o,n,i,r,a,s,c,l,d,u,h,b,g,m;return{setters:[function(t){o=t.r;n=t.d;i=t.w;r=t.h;a=t.H;s=t.f;c=t.i},function(t){l=t.i},function(t){d=t.c;u=t.h},function(t){h=t.b},function(t){b=t.a;g=t.b;m=t.k}],execute:function(){var f=":host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:grid;grid-auto-columns:1fr;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto;grid-auto-columns:minmax(-webkit-min-content, 1fr);grid-auto-columns:minmax(min-content, 1fr)}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.065);border-radius:8px;overflow:hidden;z-index:0}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.065)}:host(.in-toolbar){-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:auto}:host(.in-toolbar:not(.ion-color)){background:var(--ion-toolbar-segment-background, var(--background))}:host(.in-toolbar-color:not(.ion-color)){background:rgba(var(--ion-color-contrast-rgb), 0.11)}";var v=":host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:grid;grid-auto-columns:1fr;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto;grid-auto-columns:minmax(-webkit-min-content, 1fr);grid-auto-columns:minmax(min-content, 1fr)}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:transparent;grid-auto-columns:minmax(auto, 360px)}:host(.in-toolbar){min-height:var(--min-height)}:host(.segment-scrollable) ::slotted(ion-segment-button){min-width:auto}";var p=t("ion_segment",function(){function t(t){var e=this;o(this,t);this.ionChange=n(this,"ionChange",7);this.ionSelect=n(this,"ionSelect",7);this.ionStyle=n(this,"ionStyle",7);this.onClick=function(t){var o=t.target;var n=e.checked;if(o.tagName==="ION-SEGMENT"){return}e.value=o.value;if(o!==n){e.emitValueChange()}if(e.scrollable||!e.swipeGesture){if(n){e.checkButton(n,o)}else{e.setCheckedClasses()}}};this.getSegmentButton=function(t){var o,n;var i=e.getButtons().filter((function(t){return!t.disabled}));var r=i.findIndex((function(t){return t===document.activeElement}));switch(t){case"first":return i[0];case"last":return i[i.length-1];case"next":return(o=i[r+1])!==null&&o!==void 0?o:i[0];case"previous":return(n=i[r-1])!==null&&n!==void 0?n:i[i.length-1];default:return null}};this.activated=false;this.color=undefined;this.disabled=false;this.scrollable=false;this.swipeGesture=true;this.value=undefined;this.selectOnFocus=false}t.prototype.colorChanged=function(t,e){if(e===undefined&&t!==undefined||e!==undefined&&t===undefined){this.emitStyle()}};t.prototype.swipeGestureChanged=function(){this.gestureChanged()};t.prototype.valueChanged=function(t){this.ionSelect.emit({value:t});if(this.scrollable){var e=this.getButtons();var o=e.find((function(e){return e.value===t}));if(o!==undefined){o.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}};t.prototype.disabledChanged=function(){this.gestureChanged();var t=this.getButtons();for(var e=0,o=t;e<o.length;e++){var n=o[e];n.disabled=this.disabled}};t.prototype.gestureChanged=function(){if(this.gesture){this.gesture.enable(!this.scrollable&&!this.disabled&&this.swipeGesture)}};t.prototype.connectedCallback=function(){this.emitStyle()};t.prototype.componentWillLoad=function(){this.emitStyle()};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;var o=this;return __generator(this,(function(n){switch(n.label){case 0:this.setCheckedClasses();t=this;return[4,e.import("./p-fa8d4788.system.js")];case 1:t.gesture=n.sent().createGesture({el:this.el,gestureName:"segment",gesturePriority:100,threshold:0,passive:false,onStart:function(t){return o.onStart(t)},onMove:function(t){return o.onMove(t)},onEnd:function(t){return o.onEnd(t)}});this.gestureChanged();if(this.disabled){this.disabledChanged()}return[2]}}))}))};t.prototype.onStart=function(t){this.valueBeforeGesture=this.value;this.activate(t)};t.prototype.onMove=function(t){this.setNextIndex(t)};t.prototype.onEnd=function(t){this.setActivated(false);this.setNextIndex(t,true);t.event.stopImmediatePropagation();var e=this.value;if(e!==undefined){if(this.valueBeforeGesture!==e){this.emitValueChange()}}this.valueBeforeGesture=undefined};t.prototype.emitValueChange=function(){var t=this.value;this.ionChange.emit({value:t})};t.prototype.getButtons=function(){return Array.from(this.el.querySelectorAll("ion-segment-button"))};Object.defineProperty(t.prototype,"checked",{get:function(){var t=this;return this.getButtons().find((function(e){return e.value===t.value}))},enumerable:false,configurable:true});t.prototype.setActivated=function(t){var e=this.getButtons();e.forEach((function(e){if(t){e.classList.add("segment-button-activated")}else{e.classList.remove("segment-button-activated")}}));this.activated=t};t.prototype.activate=function(t){var e=this;var o=t.event.target;var n=this.getButtons();var i=n.find((function(t){return t.value===e.value}));if(o.tagName!=="ION-SEGMENT-BUTTON"){return}if(!i){this.value=o.value;this.setCheckedClasses()}if(this.value===o.value){this.setActivated(true)}};t.prototype.getIndicator=function(t){var e=t.shadowRoot||t;return e.querySelector(".segment-button-indicator")};t.prototype.checkButton=function(t,e){var o=this.getIndicator(t);var n=this.getIndicator(e);if(o===null||n===null){return}var r=o.getBoundingClientRect();var a=n.getBoundingClientRect();var s=r.width/a.width;var c=r.left-a.left;var l="translate3d(".concat(c,"px, 0, 0) scaleX(").concat(s,")");i((function(){n.classList.remove("segment-button-indicator-animated");n.style.setProperty("transform",l);n.getBoundingClientRect();n.classList.add("segment-button-indicator-animated");n.style.setProperty("transform","")}));this.value=e.value;this.setCheckedClasses()};t.prototype.setCheckedClasses=function(){var t=this;var e=this.getButtons();var o=e.findIndex((function(e){return e.value===t.value}));var n=o+1;for(var i=0,r=e;i<r.length;i++){var a=r[i];a.classList.remove("segment-button-after-checked")}if(n<e.length){e[n].classList.add("segment-button-after-checked")}};t.prototype.setNextIndex=function(t,e){var o=this;if(e===void 0){e=false}var n=l(this.el);var i=this.activated;var r=this.getButtons();var a=r.findIndex((function(t){return t.value===o.value}));var s=r[a];var c;var d;if(a===-1){return}var u=s.getBoundingClientRect();var h=u.left;var b=u.width;var g=t.currentX;var m=u.top+u.height/2;var f=this.el.getRootNode();var v=f.elementFromPoint(g,m);var p=n?g>h+b:g<h;var k=n?g<h:g>h+b;if(i&&!e){if(p){var x=a-1;if(x>=0){d=x}}else if(k){if(i&&!e){var x=a+1;if(x<r.length){d=x}}}if(d!==undefined&&!r[d].disabled){c=r[d]}}if(!i&&e){c=v}if(c!=null){if(c.tagName==="ION-SEGMENT"){return false}if(s!==c){this.checkButton(s,c)}}return true};t.prototype.emitStyle=function(){this.ionStyle.emit({segment:true})};t.prototype.onKeyDown=function(t){var e=l(this.el);var o=this.selectOnFocus;var n;switch(t.key){case"ArrowRight":t.preventDefault();n=e?this.getSegmentButton("previous"):this.getSegmentButton("next");break;case"ArrowLeft":t.preventDefault();n=e?this.getSegmentButton("next"):this.getSegmentButton("previous");break;case"Home":t.preventDefault();n=this.getSegmentButton("first");break;case"End":t.preventDefault();n=this.getSegmentButton("last");break;case" ":case"Enter":t.preventDefault();n=document.activeElement;o=true}if(!n){return}if(o){var i=this.checked;this.checkButton(i||n,n);if(n!==i){this.emitValueChange()}}n.setFocus()};t.prototype.render=function(){var t;var e=h(this);return r(a,{role:"tablist",onClick:this.onClick,class:d(this.color,(t={},t[e]=true,t["in-toolbar"]=u("ion-toolbar",this.el),t["in-toolbar-color"]=u("ion-toolbar[color]",this.el),t["segment-activated"]=this.activated,t["segment-disabled"]=this.disabled,t["segment-scrollable"]=this.scrollable,t))},r("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{color:["colorChanged"],swipeGesture:["swipeGestureChanged"],value:["valueChanged"],disabled:["disabledChanged"]}},enumerable:false,configurable:true});return t}());p.style={ios:f,md:v};var k=':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color, #fff));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;-ms-flex-direction:row;flex-direction:row;min-width:70px;min-height:28px;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;-webkit-transition:160ms opacity ease-in-out;transition:160ms opacity ease-in-out;-webkit-transition-delay:100ms;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:"";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}.segment-button-indicator{-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;left:0;right:0;top:0;bottom:0}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color, #fff))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)))}:host(.in-toolbar-color) .segment-button-indicator-background{background:var(--ion-color-contrast)}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}';var x=':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:var(--color-checked);--background-focused:var(--color-checked);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--indicator-box-shadow:none;--indicator-color:var(--color-checked);--indicator-height:2px;--indicator-transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--padding-top:0;--padding-end:16px;--padding-bottom:0;--padding-start:16px;--transition:color 0.15s linear 0s, opacity 0.15s linear 0s;min-width:90px;min-height:48px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);font-size:14px;font-weight:500;letter-spacing:0.06em;line-height:40px;text-transform:uppercase}:host(.segment-button-disabled){opacity:0.3}:host(.in-segment-color){background:none;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color) ion-ripple-effect{color:var(--ion-color-base)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked) .button-native{color:var(--ion-color-base)}:host(.in-segment-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color:hover) .button-native::after{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-segment-color)){--background:var(--ion-toolbar-segment-background, none);--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6));--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-color-primary, #3880ff));--indicator-color:var(--ion-toolbar-segment-color-checked, var(--color-checked))}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:rgba(var(--ion-color-contrast-rgb), 0.6)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color)) .button-native::after{background:var(--ion-color-contrast)}}::slotted(ion-icon){margin-top:12px;margin-bottom:12px;font-size:24px}::slotted(ion-label){margin-top:12px;margin-bottom:12px}:host(.segment-button-layout-icon-top) ::slotted(ion-label),:host(.segment-button-layout-icon-bottom) ::slotted(ion-icon){margin-top:0}:host(.segment-button-layout-icon-top) ::slotted(ion-icon),:host(.segment-button-layout-icon-bottom) ::slotted(ion-label){margin-bottom:0}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}:host(.segment-button-has-icon-only) ::slotted(ion-icon){margin-top:12px;margin-bottom:12px}:host(.segment-button-has-label-only) ::slotted(ion-label){margin-top:12px;margin-bottom:12px}.segment-button-indicator{left:0;right:0;bottom:0}.segment-button-indicator-background{background:var(--indicator-color)}:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-toolbar-segment-indicator-color, var(--indicator-color))}:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-color-contrast)}';var y=0;var w=t("ion_segment_button",function(){function t(t){var e=this;o(this,t);this.segmentEl=null;this.inheritedAttributes={};this.updateStyle=function(){c(e)};this.updateState=function(){var t=e.segmentEl;if(t){e.checked=t.value===e.value;if(t.disabled){e.disabled=true}}};this.checked=false;this.disabled=false;this.layout="icon-top";this.type="button";this.value="ion-sb-"+y++}t.prototype.valueChanged=function(){this.updateState()};t.prototype.connectedCallback=function(){var t=this.segmentEl=this.el.closest("ion-segment");if(t){this.updateState();b(t,"ionSelect",this.updateState);b(t,"ionStyle",this.updateStyle)}};t.prototype.disconnectedCallback=function(){var t=this.segmentEl;if(t){g(t,"ionSelect",this.updateState);g(t,"ionStyle",this.updateStyle);this.segmentEl=null}};t.prototype.componentWillLoad=function(){this.inheritedAttributes=Object.assign({},m(this.el,["aria-label"]))};Object.defineProperty(t.prototype,"hasLabel",{get:function(){return!!this.el.querySelector("ion-label")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasIcon",{get:function(){return!!this.el.querySelector("ion-icon")},enumerable:false,configurable:true});t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.nativeEl;if(t!==undefined){t.focus()}return[2]}))}))};t.prototype.render=function(){var t;var e=this;var o=this,n=o.checked,i=o.type,s=o.disabled,c=o.hasIcon,l=o.hasLabel,d=o.layout,b=o.segmentEl;var g=h(this);var m=function(){return(b===null||b===void 0?void 0:b.color)!==undefined};return r(a,{class:(t={},t[g]=true,t["in-toolbar"]=u("ion-toolbar",this.el),t["in-toolbar-color"]=u("ion-toolbar[color]",this.el),t["in-segment"]=u("ion-segment",this.el),t["in-segment-color"]=m(),t["segment-button-has-label"]=l,t["segment-button-has-icon"]=c,t["segment-button-has-label-only"]=l&&!c,t["segment-button-has-icon-only"]=c&&!l,t["segment-button-disabled"]=s,t["segment-button-checked"]=n,t["segment-button-layout-".concat(d)]=true,t["ion-activatable"]=true,t["ion-activatable-instant"]=true,t["ion-focusable"]=true,t)},r("button",Object.assign({"aria-selected":n?"true":"false",role:"tab",ref:function(t){return e.nativeEl=t},type:i,class:"button-native",part:"native",disabled:s},this.inheritedAttributes),r("span",{class:"button-inner"},r("slot",null)),g==="md"&&r("ion-ripple-effect",null)),r("div",{part:"indicator",class:{"segment-button-indicator":true,"segment-button-indicator-animated":true}},r("div",{part:"indicator-background",class:"segment-button-indicator-background"})))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return t}());w.style={ios:k,md:x}}}}));
|
|
@@ -51,8 +51,9 @@ export declare class Checkbox implements ComponentInterface {
|
|
|
51
51
|
* `"start"`: The label will appear to the left of the checkbox in LTR and to the right in RTL.
|
|
52
52
|
* `"end"`: The label will appear to the right of the checkbox in LTR and to the left in RTL.
|
|
53
53
|
* `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
54
|
+
* `"stacked"`: The label will appear above the checkbox regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
54
55
|
*/
|
|
55
|
-
labelPlacement: 'start' | 'end' | 'fixed';
|
|
56
|
+
labelPlacement: 'start' | 'end' | 'fixed' | 'stacked';
|
|
56
57
|
/**
|
|
57
58
|
* How to pack the label and checkbox within a line.
|
|
58
59
|
* `"start"`: The label and checkbox will appear on the left in LTR and
|
|
@@ -63,6 +64,12 @@ export declare class Checkbox implements ComponentInterface {
|
|
|
63
64
|
* ends of the line with space between the two elements.
|
|
64
65
|
*/
|
|
65
66
|
justify: 'start' | 'end' | 'space-between';
|
|
67
|
+
/**
|
|
68
|
+
* How to control the alignment of the checkbox and label on the cross axis.
|
|
69
|
+
* `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.
|
|
70
|
+
* `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
71
|
+
*/
|
|
72
|
+
alignment: 'start' | 'center';
|
|
66
73
|
/**
|
|
67
74
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup.
|
|
68
75
|
* Ionic will only opt checkboxes in to the modern form markup when they are
|
|
@@ -18,6 +18,12 @@ import type { DatetimePresentation, DatetimeChangeEventDetail, DatetimeParts, Ti
|
|
|
18
18
|
*
|
|
19
19
|
* @part month-year-button - The button that opens the month/year picker when
|
|
20
20
|
* using a grid style layout.
|
|
21
|
+
*
|
|
22
|
+
* @part calendar-day - The individual buttons that display a day inside of the datetime
|
|
23
|
+
* calendar.
|
|
24
|
+
* @part calendar-day active - The currently selected calendar day.
|
|
25
|
+
* @part calendar-day today - The calendar day that contains the current day.
|
|
26
|
+
* @part calendar-day disabled - The calendar day that is disabled.
|
|
21
27
|
*/
|
|
22
28
|
export declare class Datetime implements ComponentInterface {
|
|
23
29
|
private inputId;
|
|
@@ -37,16 +43,22 @@ export declare class Datetime implements ComponentInterface {
|
|
|
37
43
|
private todayParts;
|
|
38
44
|
private defaultParts;
|
|
39
45
|
private prevPresentation;
|
|
40
|
-
|
|
41
|
-
* Duplicate reference to `activeParts` that does not trigger a re-render of the component.
|
|
42
|
-
* Allows caching an instance of the `activeParts` in between render cycles.
|
|
43
|
-
*/
|
|
44
|
-
private activePartsClone;
|
|
46
|
+
private resolveForceDateScrolling?;
|
|
45
47
|
showMonthAndYear: boolean;
|
|
46
48
|
activeParts: DatetimeParts | DatetimeParts[];
|
|
47
49
|
workingParts: DatetimeParts;
|
|
48
50
|
el: HTMLIonDatetimeElement;
|
|
49
51
|
isTimePopoverOpen: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* When defined, will force the datetime to render the month
|
|
54
|
+
* containing the specified date. Currently, this should only
|
|
55
|
+
* be used to enable immediately auto-scrolling to the new month,
|
|
56
|
+
* and should then be reset to undefined once the transition is
|
|
57
|
+
* finished and the forced month is now in view.
|
|
58
|
+
*
|
|
59
|
+
* Applies to grid-style datetimes only.
|
|
60
|
+
*/
|
|
61
|
+
forceRenderDate?: DatetimeParts;
|
|
50
62
|
/**
|
|
51
63
|
* The color to use from your application's color palette.
|
|
52
64
|
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
@@ -108,6 +120,7 @@ export declare class Datetime implements ComponentInterface {
|
|
|
108
120
|
* `"time-date"` will show the time picker first and date picker second.
|
|
109
121
|
*/
|
|
110
122
|
presentation: DatetimePresentation;
|
|
123
|
+
private get isGridStyle();
|
|
111
124
|
/**
|
|
112
125
|
* The text to display on the picker's cancel button.
|
|
113
126
|
*/
|
|
@@ -166,7 +179,6 @@ export declare class Datetime implements ComponentInterface {
|
|
|
166
179
|
*/
|
|
167
180
|
minuteValues?: number[] | number | string;
|
|
168
181
|
protected minuteValuesChanged(): void;
|
|
169
|
-
protected activePartsChanged(): void;
|
|
170
182
|
/**
|
|
171
183
|
* The locale to use for `ion-datetime`. This
|
|
172
184
|
* impacts month and day name formatting.
|
|
@@ -209,7 +221,7 @@ export declare class Datetime implements ComponentInterface {
|
|
|
209
221
|
/**
|
|
210
222
|
* Update the datetime value when the value changes
|
|
211
223
|
*/
|
|
212
|
-
protected valueChanged(): void
|
|
224
|
+
protected valueChanged(): Promise<void>;
|
|
213
225
|
/**
|
|
214
226
|
* If `true`, a header will be shown above the calendar
|
|
215
227
|
* picker. This will include both the slotted title, and
|
|
@@ -326,9 +338,9 @@ export declare class Datetime implements ComponentInterface {
|
|
|
326
338
|
* data. This should be used when rendering an
|
|
327
339
|
* interface in an environment where the `value`
|
|
328
340
|
* may not be set. This function works
|
|
329
|
-
* by returning the first selected date
|
|
330
|
-
*
|
|
331
|
-
*
|
|
341
|
+
* by returning the first selected date and then
|
|
342
|
+
* falling back to defaultParts if no active date
|
|
343
|
+
* is selected.
|
|
332
344
|
*/
|
|
333
345
|
private getActivePartsWithFallback;
|
|
334
346
|
private getActivePart;
|
|
@@ -357,6 +369,7 @@ export declare class Datetime implements ComponentInterface {
|
|
|
357
369
|
*/
|
|
358
370
|
componentDidRender(): void;
|
|
359
371
|
private processValue;
|
|
372
|
+
private animateToDate;
|
|
360
373
|
componentWillLoad(): void;
|
|
361
374
|
private emitStyle;
|
|
362
375
|
private onFocus;
|
|
@@ -45,7 +45,7 @@ export declare const generateTime: (refParts: DatetimeParts, hourCycle?: 'h12' |
|
|
|
45
45
|
* Given DatetimeParts, generate the previous,
|
|
46
46
|
* current, and and next months.
|
|
47
47
|
*/
|
|
48
|
-
export declare const generateMonths: (refParts: DatetimeParts) => DatetimeParts[];
|
|
48
|
+
export declare const generateMonths: (refParts: DatetimeParts, forcedDate?: DatetimeParts) => DatetimeParts[];
|
|
49
49
|
export declare const getMonthColumnData: (locale: string, refParts: DatetimeParts, minParts?: DatetimeParts, maxParts?: DatetimeParts, monthValues?: number[], formatOptions?: Intl.DateTimeFormatOptions) => PickerColumnItem[];
|
|
50
50
|
/**
|
|
51
51
|
* Returns information regarding
|
|
@@ -15,10 +15,10 @@ export declare const getPartsFromCalendarDay: (el: HTMLElement) => DatetimeParts
|
|
|
15
15
|
* We do not use the JS Date object here because
|
|
16
16
|
* it adjusts the date for the current timezone.
|
|
17
17
|
*/
|
|
18
|
-
export declare function parseDate(val: string): DatetimeParts;
|
|
19
|
-
export declare function parseDate(val: string[]): DatetimeParts[];
|
|
18
|
+
export declare function parseDate(val: string): DatetimeParts | undefined;
|
|
19
|
+
export declare function parseDate(val: string[]): DatetimeParts[] | undefined;
|
|
20
20
|
export declare function parseDate(val: undefined | null): undefined;
|
|
21
|
-
export declare function parseDate(val: string | string[]): DatetimeParts | DatetimeParts[];
|
|
21
|
+
export declare function parseDate(val: string | string[]): DatetimeParts | DatetimeParts[] | undefined;
|
|
22
22
|
export declare function parseDate(val: string | string[] | undefined | null): DatetimeParts | DatetimeParts[] | undefined;
|
|
23
23
|
export declare const clampDate: (dateParts: DatetimeParts, minParts?: DatetimeParts, maxParts?: DatetimeParts) => DatetimeParts;
|
|
24
24
|
/**
|
|
@@ -48,8 +48,9 @@ export declare class Radio implements ComponentInterface {
|
|
|
48
48
|
* `"start"`: The label will appear to the left of the radio in LTR and to the right in RTL.
|
|
49
49
|
* `"end"`: The label will appear to the right of the radio in LTR and to the left in RTL.
|
|
50
50
|
* `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
51
|
+
* `"stacked"`: The label will appear above the radio regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
51
52
|
*/
|
|
52
|
-
labelPlacement: 'start' | 'end' | 'fixed';
|
|
53
|
+
labelPlacement: 'start' | 'end' | 'fixed' | 'stacked';
|
|
53
54
|
/**
|
|
54
55
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup.
|
|
55
56
|
* Ionic will only opt components in to the modern form markup when they are
|
|
@@ -70,6 +71,12 @@ export declare class Radio implements ComponentInterface {
|
|
|
70
71
|
* ends of the line with space between the two elements.
|
|
71
72
|
*/
|
|
72
73
|
justify: 'start' | 'end' | 'space-between';
|
|
74
|
+
/**
|
|
75
|
+
* How to control the alignment of the radio and label on the cross axis.
|
|
76
|
+
* `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.
|
|
77
|
+
* `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
78
|
+
*/
|
|
79
|
+
alignment: 'start' | 'center';
|
|
73
80
|
/**
|
|
74
81
|
* Emitted when the styles change.
|
|
75
82
|
* @internal
|
|
@@ -116,8 +116,9 @@ export declare class Range implements ComponentInterface {
|
|
|
116
116
|
* `"start"`: The label will appear to the left of the range in LTR and to the right in RTL.
|
|
117
117
|
* `"end"`: The label will appear to the right of the range in LTR and to the left in RTL.
|
|
118
118
|
* `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
119
|
+
* `"stacked"`: The label will appear above the range regardless of the direction.
|
|
119
120
|
*/
|
|
120
|
-
labelPlacement: 'start' | 'end' | 'fixed';
|
|
121
|
+
labelPlacement: 'start' | 'end' | 'fixed' | 'stacked';
|
|
121
122
|
/**
|
|
122
123
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup.
|
|
123
124
|
* Ionic will only opt components in to the modern form markup when they are
|
|
@@ -27,6 +27,9 @@ export interface ToastButton {
|
|
|
27
27
|
icon?: string;
|
|
28
28
|
side?: 'start' | 'end';
|
|
29
29
|
role?: 'cancel' | string;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Use the toast button's CSS Shadow Parts instead.
|
|
32
|
+
*/
|
|
30
33
|
cssClass?: string | string[];
|
|
31
34
|
htmlAttributes?: {
|
|
32
35
|
[key: string]: any;
|
|
@@ -56,8 +56,9 @@ export declare class Toggle implements ComponentInterface {
|
|
|
56
56
|
* `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL.
|
|
57
57
|
* `"end"`: The label will appear to the right of the toggle in LTR and to the left in RTL.
|
|
58
58
|
* `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
59
|
+
* `"stacked"`: The label will appear above the toggle regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
59
60
|
*/
|
|
60
|
-
labelPlacement: 'start' | 'end' | 'fixed';
|
|
61
|
+
labelPlacement: 'start' | 'end' | 'fixed' | 'stacked';
|
|
61
62
|
/**
|
|
62
63
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup.
|
|
63
64
|
* Ionic will only opt components in to the modern form markup when they are
|
|
@@ -78,6 +79,12 @@ export declare class Toggle implements ComponentInterface {
|
|
|
78
79
|
* ends of the line with space between the two elements.
|
|
79
80
|
*/
|
|
80
81
|
justify: 'start' | 'end' | 'space-between';
|
|
82
|
+
/**
|
|
83
|
+
* How to control the alignment of the toggle and label on the cross axis.
|
|
84
|
+
* ``"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.
|
|
85
|
+
* `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
86
|
+
*/
|
|
87
|
+
alignment: 'start' | 'center';
|
|
81
88
|
/**
|
|
82
89
|
* Emitted when the user switches the toggle on or off. Does not emit
|
|
83
90
|
* when programmatically changing the value of the `checked` property.
|
|
@@ -602,6 +602,10 @@ export namespace Components {
|
|
|
602
602
|
"mode"?: "ios" | "md";
|
|
603
603
|
}
|
|
604
604
|
interface IonCheckbox {
|
|
605
|
+
/**
|
|
606
|
+
* How to control the alignment of the checkbox and label on the cross axis. `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
607
|
+
*/
|
|
608
|
+
"alignment": 'start' | 'center';
|
|
605
609
|
/**
|
|
606
610
|
* If `true`, the checkbox is selected.
|
|
607
611
|
*/
|
|
@@ -623,9 +627,9 @@ export namespace Components {
|
|
|
623
627
|
*/
|
|
624
628
|
"justify": 'start' | 'end' | 'space-between';
|
|
625
629
|
/**
|
|
626
|
-
* Where to place the label relative to the checkbox. `"start"`: The label will appear to the left of the checkbox in LTR and to the right in RTL. `"end"`: The label will appear to the right of the checkbox in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
630
|
+
* Where to place the label relative to the checkbox. `"start"`: The label will appear to the left of the checkbox in LTR and to the right in RTL. `"end"`: The label will appear to the right of the checkbox in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the checkbox regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
627
631
|
*/
|
|
628
|
-
"labelPlacement": 'start' | 'end' | 'fixed';
|
|
632
|
+
"labelPlacement": 'start' | 'end' | 'fixed' | 'stacked';
|
|
629
633
|
/**
|
|
630
634
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt checkboxes in to the modern form markup when they are using either the `aria-label` attribute or have text in the default slot. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
631
635
|
*/
|
|
@@ -2216,6 +2220,10 @@ export namespace Components {
|
|
|
2216
2220
|
"value": number;
|
|
2217
2221
|
}
|
|
2218
2222
|
interface IonRadio {
|
|
2223
|
+
/**
|
|
2224
|
+
* How to control the alignment of the radio and label on the cross axis. `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
2225
|
+
*/
|
|
2226
|
+
"alignment": 'start' | 'center';
|
|
2219
2227
|
/**
|
|
2220
2228
|
* The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics).
|
|
2221
2229
|
*/
|
|
@@ -2229,9 +2237,9 @@ export namespace Components {
|
|
|
2229
2237
|
*/
|
|
2230
2238
|
"justify": 'start' | 'end' | 'space-between';
|
|
2231
2239
|
/**
|
|
2232
|
-
* Where to place the label relative to the radio. `"start"`: The label will appear to the left of the radio in LTR and to the right in RTL. `"end"`: The label will appear to the right of the radio in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
2240
|
+
* Where to place the label relative to the radio. `"start"`: The label will appear to the left of the radio in LTR and to the right in RTL. `"end"`: The label will appear to the right of the radio in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the radio regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
2233
2241
|
*/
|
|
2234
|
-
"labelPlacement": 'start' | 'end' | 'fixed';
|
|
2242
|
+
"labelPlacement": 'start' | 'end' | 'fixed' | 'stacked';
|
|
2235
2243
|
/**
|
|
2236
2244
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt components in to the modern form markup when they are using either the `aria-label` attribute or the default slot that contains the label text. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
2237
2245
|
*/
|
|
@@ -2291,9 +2299,9 @@ export namespace Components {
|
|
|
2291
2299
|
*/
|
|
2292
2300
|
"label"?: string;
|
|
2293
2301
|
/**
|
|
2294
|
-
* Where to place the label relative to the range. `"start"`: The label will appear to the left of the range in LTR and to the right in RTL. `"end"`: The label will appear to the right of the range in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
2302
|
+
* Where to place the label relative to the range. `"start"`: The label will appear to the left of the range in LTR and to the right in RTL. `"end"`: The label will appear to the right of the range in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the range regardless of the direction.
|
|
2295
2303
|
*/
|
|
2296
|
-
"labelPlacement": 'start' | 'end' | 'fixed';
|
|
2304
|
+
"labelPlacement": 'start' | 'end' | 'fixed' | 'stacked';
|
|
2297
2305
|
/**
|
|
2298
2306
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt components in to the modern form markup when they are using either the `aria-label` attribute or the `label` property. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
2299
2307
|
*/
|
|
@@ -3165,6 +3173,10 @@ export namespace Components {
|
|
|
3165
3173
|
"trigger": string | undefined;
|
|
3166
3174
|
}
|
|
3167
3175
|
interface IonToggle {
|
|
3176
|
+
/**
|
|
3177
|
+
* How to control the alignment of the toggle and label on the cross axis. ``"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
3178
|
+
*/
|
|
3179
|
+
"alignment": 'start' | 'center';
|
|
3168
3180
|
/**
|
|
3169
3181
|
* If `true`, the toggle is selected.
|
|
3170
3182
|
*/
|
|
@@ -3186,9 +3198,9 @@ export namespace Components {
|
|
|
3186
3198
|
*/
|
|
3187
3199
|
"justify": 'start' | 'end' | 'space-between';
|
|
3188
3200
|
/**
|
|
3189
|
-
* Where to place the label relative to the input. `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL. `"end"`: The label will appear to the right of the toggle in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
3201
|
+
* Where to place the label relative to the input. `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL. `"end"`: The label will appear to the right of the toggle in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the toggle regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
3190
3202
|
*/
|
|
3191
|
-
"labelPlacement": 'start' | 'end' | 'fixed';
|
|
3203
|
+
"labelPlacement": 'start' | 'end' | 'fixed' | 'stacked';
|
|
3192
3204
|
/**
|
|
3193
3205
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt components in to the modern form markup when they are using either the `aria-label` attribute or the default slot that contains the label text. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
3194
3206
|
*/
|
|
@@ -4608,6 +4620,10 @@ declare namespace LocalJSX {
|
|
|
4608
4620
|
"mode"?: "ios" | "md";
|
|
4609
4621
|
}
|
|
4610
4622
|
interface IonCheckbox {
|
|
4623
|
+
/**
|
|
4624
|
+
* How to control the alignment of the checkbox and label on the cross axis. `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
4625
|
+
*/
|
|
4626
|
+
"alignment"?: 'start' | 'center';
|
|
4611
4627
|
/**
|
|
4612
4628
|
* If `true`, the checkbox is selected.
|
|
4613
4629
|
*/
|
|
@@ -4629,9 +4645,9 @@ declare namespace LocalJSX {
|
|
|
4629
4645
|
*/
|
|
4630
4646
|
"justify"?: 'start' | 'end' | 'space-between';
|
|
4631
4647
|
/**
|
|
4632
|
-
* Where to place the label relative to the checkbox. `"start"`: The label will appear to the left of the checkbox in LTR and to the right in RTL. `"end"`: The label will appear to the right of the checkbox in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
4648
|
+
* Where to place the label relative to the checkbox. `"start"`: The label will appear to the left of the checkbox in LTR and to the right in RTL. `"end"`: The label will appear to the right of the checkbox in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the checkbox regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
4633
4649
|
*/
|
|
4634
|
-
"labelPlacement"?: 'start' | 'end' | 'fixed';
|
|
4650
|
+
"labelPlacement"?: 'start' | 'end' | 'fixed' | 'stacked';
|
|
4635
4651
|
/**
|
|
4636
4652
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt checkboxes in to the modern form markup when they are using either the `aria-label` attribute or have text in the default slot. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
4637
4653
|
*/
|
|
@@ -6127,6 +6143,10 @@ declare namespace LocalJSX {
|
|
|
6127
6143
|
"value"?: number;
|
|
6128
6144
|
}
|
|
6129
6145
|
interface IonRadio {
|
|
6146
|
+
/**
|
|
6147
|
+
* How to control the alignment of the radio and label on the cross axis. `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
6148
|
+
*/
|
|
6149
|
+
"alignment"?: 'start' | 'center';
|
|
6130
6150
|
/**
|
|
6131
6151
|
* The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics).
|
|
6132
6152
|
*/
|
|
@@ -6140,9 +6160,9 @@ declare namespace LocalJSX {
|
|
|
6140
6160
|
*/
|
|
6141
6161
|
"justify"?: 'start' | 'end' | 'space-between';
|
|
6142
6162
|
/**
|
|
6143
|
-
* Where to place the label relative to the radio. `"start"`: The label will appear to the left of the radio in LTR and to the right in RTL. `"end"`: The label will appear to the right of the radio in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
6163
|
+
* Where to place the label relative to the radio. `"start"`: The label will appear to the left of the radio in LTR and to the right in RTL. `"end"`: The label will appear to the right of the radio in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the radio regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
6144
6164
|
*/
|
|
6145
|
-
"labelPlacement"?: 'start' | 'end' | 'fixed';
|
|
6165
|
+
"labelPlacement"?: 'start' | 'end' | 'fixed' | 'stacked';
|
|
6146
6166
|
/**
|
|
6147
6167
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt components in to the modern form markup when they are using either the `aria-label` attribute or the default slot that contains the label text. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
6148
6168
|
*/
|
|
@@ -6212,9 +6232,9 @@ declare namespace LocalJSX {
|
|
|
6212
6232
|
*/
|
|
6213
6233
|
"label"?: string;
|
|
6214
6234
|
/**
|
|
6215
|
-
* Where to place the label relative to the range. `"start"`: The label will appear to the left of the range in LTR and to the right in RTL. `"end"`: The label will appear to the right of the range in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
6235
|
+
* Where to place the label relative to the range. `"start"`: The label will appear to the left of the range in LTR and to the right in RTL. `"end"`: The label will appear to the right of the range in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the range regardless of the direction.
|
|
6216
6236
|
*/
|
|
6217
|
-
"labelPlacement"?: 'start' | 'end' | 'fixed';
|
|
6237
|
+
"labelPlacement"?: 'start' | 'end' | 'fixed' | 'stacked';
|
|
6218
6238
|
/**
|
|
6219
6239
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt components in to the modern form markup when they are using either the `aria-label` attribute or the `label` property. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
6220
6240
|
*/
|
|
@@ -7143,6 +7163,10 @@ declare namespace LocalJSX {
|
|
|
7143
7163
|
"trigger"?: string | undefined;
|
|
7144
7164
|
}
|
|
7145
7165
|
interface IonToggle {
|
|
7166
|
+
/**
|
|
7167
|
+
* How to control the alignment of the toggle and label on the cross axis. ``"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL. `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
7168
|
+
*/
|
|
7169
|
+
"alignment"?: 'start' | 'center';
|
|
7146
7170
|
/**
|
|
7147
7171
|
* If `true`, the toggle is selected.
|
|
7148
7172
|
*/
|
|
@@ -7164,9 +7188,9 @@ declare namespace LocalJSX {
|
|
|
7164
7188
|
*/
|
|
7165
7189
|
"justify"?: 'start' | 'end' | 'space-between';
|
|
7166
7190
|
/**
|
|
7167
|
-
* Where to place the label relative to the input. `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL. `"end"`: The label will appear to the right of the toggle in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
7191
|
+
* Where to place the label relative to the input. `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL. `"end"`: The label will appear to the right of the toggle in LTR and to the left in RTL. `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("..."). `"stacked"`: The label will appear above the toggle regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
7168
7192
|
*/
|
|
7169
|
-
"labelPlacement"?: 'start' | 'end' | 'fixed';
|
|
7193
|
+
"labelPlacement"?: 'start' | 'end' | 'fixed' | 'stacked';
|
|
7170
7194
|
/**
|
|
7171
7195
|
* Set the `legacy` property to `true` to forcibly use the legacy form control markup. Ionic will only opt components in to the modern form markup when they are using either the `aria-label` attribute or the default slot that contains the label text. As a result, the `legacy` property should only be used as an escape hatch when you want to avoid this automatic opt-in behavior. Note that this property will be removed in an upcoming major release of Ionic, and all form components will be opted-in to using the modern form markup.
|
|
7172
7196
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import 'ionicons';
|
|
2
2
|
export { createAnimation } from './utils/animation/animation';
|
|
3
|
+
export { getIonPageElement } from './utils/transition';
|
|
3
4
|
export { iosTransitionAnimation } from './utils/transition/ios.transition';
|
|
4
5
|
export { mdTransitionAnimation } from './utils/transition/md.transition';
|
|
5
6
|
export { getTimeGivenProgression } from './utils/animation/cubic-bezier';
|
|
@@ -43,6 +43,7 @@ export {
|
|
|
43
43
|
AnimationKeyFrames,
|
|
44
44
|
AnimationLifecycle,
|
|
45
45
|
} from './utils/animation/animation-interface';
|
|
46
|
+
export { TransitionOptions } from './utils/transition';
|
|
46
47
|
export { HTMLIonOverlayElement, OverlayController, OverlayInterface } from './utils/overlays-interface';
|
|
47
48
|
export { Config, config } from './global/config';
|
|
48
49
|
export { Gesture, GestureConfig, GestureDetail } from './utils/gesture';
|
|
@@ -62,7 +62,7 @@ export interface PropOptions {
|
|
|
62
62
|
/**
|
|
63
63
|
* The name of the associated DOM attribute.
|
|
64
64
|
* Stencil uses different heuristics to determine the default name of the attribute,
|
|
65
|
-
* but using this property, you can override the default
|
|
65
|
+
* but using this property, you can override the default behaviour.
|
|
66
66
|
*/
|
|
67
67
|
attribute?: string | null;
|
|
68
68
|
/**
|
|
@@ -128,7 +128,7 @@ export interface ListenOptions {
|
|
|
128
128
|
* By default, Stencil uses several heuristics to determine if
|
|
129
129
|
* it must attach a `passive` event listener or not.
|
|
130
130
|
*
|
|
131
|
-
* Using the `passive` option can be used to change the default
|
|
131
|
+
* Using the `passive` option can be used to change the default behaviour.
|
|
132
132
|
* Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
|
|
133
133
|
*/
|
|
134
134
|
passive?: boolean;
|
|
@@ -471,7 +471,7 @@ export interface FunctionalUtilities {
|
|
|
471
471
|
/**
|
|
472
472
|
* Utility for reading the children of a functional component at runtime.
|
|
473
473
|
* Since the Stencil runtime uses a different interface for children it is
|
|
474
|
-
* not
|
|
474
|
+
* not recommendeded to read the children directly, and is preferable to use
|
|
475
475
|
* this utility to, for instance, perform a side effect for each child.
|
|
476
476
|
*/
|
|
477
477
|
forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
|
|
@@ -4,4 +4,4 @@ export interface ScrollData {
|
|
|
4
4
|
scrollDuration: number;
|
|
5
5
|
inputSafeY: number;
|
|
6
6
|
}
|
|
7
|
-
export declare const getScrollData: (componentEl: HTMLElement, contentEl: HTMLElement, keyboardHeight: number
|
|
7
|
+
export declare const getScrollData: (componentEl: HTMLElement, contentEl: HTMLElement, keyboardHeight: number) => ScrollData;
|
package/hydrate/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface HydrateDocumentOptions {
|
|
|
14
14
|
*/
|
|
15
15
|
canonicalUrl?: string;
|
|
16
16
|
/**
|
|
17
|
-
* Include the HTML comments and attributes used by the
|
|
17
|
+
* Include the HTML comments and attributes used by the clientside
|
|
18
18
|
* JavaScript to read the structure of the HTML and rebuild each
|
|
19
19
|
* component. Defaults to `true`.
|
|
20
20
|
*/
|
|
@@ -35,7 +35,7 @@ export interface HydrateDocumentOptions {
|
|
|
35
35
|
direction?: string;
|
|
36
36
|
/**
|
|
37
37
|
* Component tag names listed here will not be prerendered, nor will
|
|
38
|
-
* hydrated on the
|
|
38
|
+
* hydrated on the clientside. Components listed here will be ignored
|
|
39
39
|
* as custom elements and treated no differently than a `<div>`.
|
|
40
40
|
*/
|
|
41
41
|
excludeComponents?: string[];
|
|
@@ -68,11 +68,11 @@ export interface HydrateDocumentOptions {
|
|
|
68
68
|
*/
|
|
69
69
|
runtimeLogging?: boolean;
|
|
70
70
|
/**
|
|
71
|
-
* Component tags listed here will only be prerendered or
|
|
72
|
-
* and will not be
|
|
71
|
+
* Component tags listed here will only be prerendered or serverside-rendered
|
|
72
|
+
* and will not be clientside hydrated. This is useful for components that
|
|
73
73
|
* are not dynamic and do not need to be defined as a custom element within the
|
|
74
74
|
* browser. For example, a header or footer component would be a good example that
|
|
75
|
-
* may not require any
|
|
75
|
+
* may not require any clientside JavaScript.
|
|
76
76
|
*/
|
|
77
77
|
staticComponents?: string[];
|
|
78
78
|
/**
|