@ionic/core 7.7.5 → 7.8.1-dev.11710449785.14ebd5a0
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/data.js +23 -38
- package/components/ion-datetime-button.js +11 -10
- package/components/ion-datetime.js +75 -12
- package/components/ion-fab-button.js +2 -2
- package/components/ion-fab-list.js +2 -2
- package/components/ion-fab.js +2 -2
- package/components/ion-footer.js +2 -2
- package/components/ion-grid.js +2 -2
- package/components/ion-header.js +2 -2
- package/components/ion-img.js +1 -1
- package/components/ion-infinite-scroll-content.js +2 -2
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-modal.js +3 -3
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-picker.js +2 -2
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +34 -5
- package/components/ion-segment-button.js +3 -3
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +2 -2
- package/components/ion-toast.js +2 -2
- package/components/ion-toolbar.js +2 -2
- package/components/label.js +1 -1
- package/components/list-header.js +2 -2
- package/components/list.js +1 -1
- package/components/note.js +2 -2
- package/components/picker-column-internal.js +8 -4
- package/components/picker-column.js +2 -2
- package/components/picker-internal.js +2 -2
- package/components/popover.js +2 -2
- package/components/radio-group.js +1 -1
- package/components/ripple-effect.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -1
- package/dist/cjs/{data-a5109f09.js → data-4487a815.js} +22 -39
- package/dist/cjs/ion-app_8.cjs.entry.js +9 -9
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-datetime-button.cjs.entry.js +11 -10
- package/dist/cjs/ion-datetime_3.cjs.entry.js +76 -16
- package/dist/cjs/ion-fab_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-img.cjs.entry.js +1 -1
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +11 -11
- package/dist/cjs/ion-loading.cjs.entry.js +2 -2
- package/dist/cjs/ion-menu_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-modal.cjs.entry.js +3 -3
- package/dist/cjs/ion-nav_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column-internal.cjs.entry.js +8 -4
- package/dist/cjs/ion-picker-internal.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +2 -2
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +28 -4
- package/dist/cjs/ion-segment_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-select_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/alert/test/a11y/alert.e2e.js +4 -0
- package/dist/collection/components/datetime/datetime.js +56 -12
- package/dist/collection/components/datetime/test/basic/datetime.e2e.js +77 -0
- package/dist/collection/components/datetime/test/format.spec.js +65 -15
- package/dist/collection/components/datetime/utils/format.js +24 -37
- package/dist/collection/components/datetime/utils/validate.js +45 -0
- package/dist/collection/components/datetime-button/datetime-button.js +11 -10
- package/dist/collection/components/datetime-button/test/basic/datetime-button.e2e.js +65 -0
- package/dist/collection/components/fab/fab.js +2 -2
- package/dist/collection/components/fab-button/fab-button.js +2 -2
- package/dist/collection/components/fab-list/fab-list.js +2 -2
- package/dist/collection/components/footer/footer.js +2 -2
- package/dist/collection/components/grid/grid.js +2 -2
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/img/img.js +1 -1
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +1 -1
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +2 -2
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/modal.js +3 -3
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker/picker.js +2 -2
- package/dist/collection/components/picker-column/picker-column.js +2 -2
- package/dist/collection/components/picker-column-internal/picker-column-internal.js +8 -4
- package/dist/collection/components/picker-internal/picker-internal.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +84 -5
- package/dist/collection/components/searchbar/test/searchbar.spec.js +20 -2
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.js +3 -3
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +1 -1
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/docs.json +114 -2
- package/dist/esm/{data-0f3ab200.js → data-bb424ba8.js} +23 -38
- package/dist/esm/ion-app_8.entry.js +9 -9
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +3 -3
- package/dist/esm/ion-datetime-button.entry.js +11 -10
- package/dist/esm/ion-datetime_3.entry.js +76 -16
- package/dist/esm/ion-fab_3.entry.js +6 -6
- package/dist/esm/ion-img.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll_2.entry.js +3 -3
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +11 -11
- package/dist/esm/ion-loading.entry.js +2 -2
- package/dist/esm/ion-menu_3.entry.js +6 -6
- package/dist/esm/ion-modal.entry.js +3 -3
- package/dist/esm/ion-nav_2.entry.js +2 -2
- package/dist/esm/ion-picker-column-internal.entry.js +8 -4
- package/dist/esm/ion-picker-internal.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +2 -2
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +29 -5
- package/dist/esm/ion-segment_2.entry.js +5 -5
- package/dist/esm/ion-select_3.entry.js +2 -2
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/data-bb424ba8.js +4 -0
- 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-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-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-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-toast.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/html.html-data.json +13 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-08a5d8eb.entry.js → p-0188824c.entry.js} +1 -1
- package/dist/ionic/{p-ba385465.system.entry.js → p-079817f9.system.entry.js} +1 -1
- package/dist/ionic/{p-b13b7128.system.entry.js → p-0971ee6d.system.entry.js} +1 -1
- package/dist/ionic/{p-db6a5af3.system.entry.js → p-0dbbf52a.system.entry.js} +1 -1
- package/dist/ionic/{p-f5bc27d6.system.entry.js → p-0eb111e7.system.entry.js} +1 -1
- package/dist/ionic/{p-996922b4.system.entry.js → p-0ef05e5d.system.entry.js} +1 -1
- package/dist/ionic/{p-86438241.system.entry.js → p-0fa9c8f7.system.entry.js} +1 -1
- package/dist/ionic/{p-8f466a2c.system.entry.js → p-11d480a7.system.entry.js} +1 -1
- package/dist/ionic/{p-f9f7b24a.system.entry.js → p-1561982b.system.entry.js} +1 -1
- package/dist/ionic/{p-45ea497f.entry.js → p-15ced5aa.entry.js} +1 -1
- package/dist/ionic/p-2055bdba.entry.js +4 -0
- package/dist/ionic/{p-cf88a096.system.entry.js → p-25f56cd7.system.entry.js} +1 -1
- package/dist/ionic/{p-6a0a3e18.system.entry.js → p-2791b018.system.entry.js} +1 -1
- package/dist/ionic/{p-e59803ca.entry.js → p-2b78245e.entry.js} +1 -1
- package/dist/ionic/{p-72c8ca65.system.entry.js → p-2bc25d50.system.entry.js} +2 -2
- package/dist/ionic/{p-479402e1.entry.js → p-2c94053b.entry.js} +1 -1
- package/dist/ionic/{p-9074a84e.system.entry.js → p-2d88f64e.system.entry.js} +1 -1
- package/dist/ionic/p-2fec06f2.entry.js +4 -0
- package/dist/ionic/p-327f8d66.entry.js +4 -0
- package/dist/ionic/p-3789920e.js +4 -0
- package/dist/ionic/{p-c7d8cec2.entry.js → p-3b85bb44.entry.js} +1 -1
- package/dist/ionic/{p-059fcb53.system.entry.js → p-43438ce1.system.entry.js} +2 -2
- package/dist/ionic/p-45362829.system.entry.js +4 -0
- package/dist/ionic/p-46ca8bb1.entry.js +4 -0
- package/dist/ionic/{p-08410e29.system.entry.js → p-4e74f845.system.entry.js} +1 -1
- package/dist/ionic/{p-7b809cc0.system.entry.js → p-4f73a163.system.entry.js} +1 -1
- package/dist/ionic/{p-345e2dac.system.entry.js → p-51dd4f12.system.entry.js} +1 -1
- package/dist/ionic/{p-5d8fca58.entry.js → p-51ebe7c6.entry.js} +1 -1
- package/dist/ionic/{p-cfe767f1.entry.js → p-526258be.entry.js} +1 -1
- package/dist/ionic/{p-fef4907e.system.entry.js → p-58b335fd.system.entry.js} +1 -1
- package/dist/ionic/{p-3377236e.entry.js → p-5e3e64b5.entry.js} +1 -1
- package/dist/ionic/{p-b9b8e462.system.entry.js → p-5f3fc112.system.entry.js} +1 -1
- package/dist/ionic/p-60c9fd9e.system.js +1 -1
- package/dist/ionic/{p-3ca0c7f2.entry.js → p-62f36e54.entry.js} +1 -1
- package/dist/ionic/{p-e8d46a2e.entry.js → p-65409f36.entry.js} +1 -1
- package/dist/ionic/p-6a110cb2.entry.js +4 -0
- package/dist/ionic/p-6ec0c1ee.system.entry.js +4 -0
- package/dist/ionic/{p-4830fae8.system.entry.js → p-7126abb8.system.entry.js} +1 -1
- package/dist/ionic/{p-b0ccd173.system.entry.js → p-7186eb03.system.entry.js} +1 -1
- package/dist/ionic/{p-6b5630b9.system.entry.js → p-7c91266e.system.entry.js} +1 -1
- package/dist/ionic/{p-f5dce0c6.entry.js → p-80808af6.entry.js} +1 -1
- package/dist/ionic/p-8a1b0abb.system.js +4 -0
- package/dist/ionic/{p-33dd4d0b.system.entry.js → p-8a21c7b4.system.entry.js} +1 -1
- package/dist/ionic/{p-09fc100a.entry.js → p-8be61e52.entry.js} +1 -1
- package/dist/ionic/{p-e4bf5d87.system.entry.js → p-8e127a08.system.entry.js} +1 -1
- package/dist/ionic/{p-0e7c8334.system.entry.js → p-966a5ae4.system.entry.js} +1 -1
- package/dist/ionic/{p-ae3aeb39.entry.js → p-98bac954.entry.js} +1 -1
- package/dist/ionic/{p-231a3636.system.entry.js → p-a53d569a.system.entry.js} +1 -1
- package/dist/ionic/{p-3270e211.entry.js → p-a7959307.entry.js} +1 -1
- package/dist/ionic/{p-7f865669.entry.js → p-ab7c79d9.entry.js} +1 -1
- package/dist/ionic/p-b7aec03b.entry.js +4 -0
- package/dist/ionic/p-bbb655e2.system.entry.js +4 -0
- package/dist/ionic/{p-ca935c03.entry.js → p-bc68a14a.entry.js} +1 -1
- package/dist/ionic/{p-36a80e5c.entry.js → p-c0d7aace.entry.js} +1 -1
- package/dist/ionic/{p-04721936.system.entry.js → p-c1a58ab3.system.entry.js} +1 -1
- package/dist/ionic/{p-84283745.entry.js → p-c63a69cd.entry.js} +1 -1
- package/dist/ionic/{p-8ce6d551.entry.js → p-c99bfffe.entry.js} +1 -1
- package/dist/ionic/{p-c6f9f608.entry.js → p-d637b857.entry.js} +1 -1
- package/dist/ionic/{p-09b047e0.entry.js → p-dd5a925f.entry.js} +1 -1
- package/dist/ionic/{p-c711b464.entry.js → p-deb09b58.entry.js} +1 -1
- package/dist/ionic/{p-95c2fa04.entry.js → p-e2236935.entry.js} +1 -1
- package/dist/ionic/{p-abcc9680.entry.js → p-e631799d.entry.js} +1 -1
- package/dist/ionic/{p-e155f315.system.entry.js → p-e6c115f6.system.entry.js} +1 -1
- package/dist/ionic/{p-8c74bd0e.system.entry.js → p-e7bdaac8.system.entry.js} +2 -2
- package/dist/ionic/p-f520f6a5.entry.js +4 -0
- package/dist/ionic/p-f89380a5.system.entry.js +4 -0
- package/dist/ionic/p-f98bd898.entry.js +4 -0
- package/dist/types/components/datetime/datetime-interface.d.ts +10 -0
- package/dist/types/components/datetime/datetime.d.ts +10 -1
- package/dist/types/components/datetime/utils/format.d.ts +7 -13
- package/dist/types/components/datetime/utils/validate.d.ts +8 -0
- package/dist/types/components/searchbar/searchbar.d.ts +38 -0
- package/dist/types/components/toggle/toggle.d.ts +1 -1
- package/dist/types/components.d.ts +36 -4
- package/hydrate/index.js +230 -154
- package/package.json +1 -1
- package/dist/esm-es5/data-0f3ab200.js +0 -4
- package/dist/ionic/p-1522bf28.entry.js +0 -4
- package/dist/ionic/p-6f5b32c7.system.entry.js +0 -4
- package/dist/ionic/p-7330c044.system.js +0 -4
- package/dist/ionic/p-76afa95f.entry.js +0 -4
- package/dist/ionic/p-81f18ed1.system.entry.js +0 -4
- package/dist/ionic/p-addb7662.entry.js +0 -4
- package/dist/ionic/p-b80ef521.entry.js +0 -4
- package/dist/ionic/p-c05202a7.entry.js +0 -4
- package/dist/ionic/p-c67c9644.entry.js +0 -4
- package/dist/ionic/p-d070ab1e.system.entry.js +0 -4
- package/dist/ionic/p-de0392f4.entry.js +0 -4
- package/dist/ionic/p-e447e552.entry.js +0 -4
- package/dist/ionic/p-ef269a56.system.entry.js +0 -4
- package/dist/ionic/p-f7dce541.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import type { Color, StyleEventDetail } from '../../interface';
|
|
3
|
-
import type { DatetimePresentation, DatetimeChangeEventDetail, DatetimeParts, TitleSelectedDatesFormatter, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle } from './datetime-interface';
|
|
3
|
+
import type { DatetimePresentation, DatetimeChangeEventDetail, DatetimeParts, TitleSelectedDatesFormatter, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, FormatOptions } from './datetime-interface';
|
|
4
4
|
/**
|
|
5
5
|
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
|
|
6
6
|
*
|
|
@@ -30,6 +30,7 @@ export declare class Datetime implements ComponentInterface {
|
|
|
30
30
|
private calendarBodyRef?;
|
|
31
31
|
private monthYearToggleItemRef?;
|
|
32
32
|
private popoverRef?;
|
|
33
|
+
private intersectionTrackerRef?;
|
|
33
34
|
private clearFocusVisible?;
|
|
34
35
|
private parsedMinuteValues?;
|
|
35
36
|
private parsedHourValues?;
|
|
@@ -73,6 +74,13 @@ export declare class Datetime implements ComponentInterface {
|
|
|
73
74
|
* If `true`, the user cannot interact with the datetime.
|
|
74
75
|
*/
|
|
75
76
|
disabled: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Formatting options for dates and times.
|
|
79
|
+
* Should include a 'date' and/or 'time' object, each of which is of type [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options).
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
formatOptions?: FormatOptions;
|
|
83
|
+
protected formatOptionsChanged(): void;
|
|
76
84
|
/**
|
|
77
85
|
* If `true`, the datetime appears normal but the selected date cannot be changed.
|
|
78
86
|
*/
|
|
@@ -120,6 +128,7 @@ export declare class Datetime implements ComponentInterface {
|
|
|
120
128
|
* `"time-date"` will show the time picker first and date picker second.
|
|
121
129
|
*/
|
|
122
130
|
presentation: DatetimePresentation;
|
|
131
|
+
protected presentationChanged(): void;
|
|
123
132
|
private get isGridStyle();
|
|
124
133
|
/**
|
|
125
134
|
* The text to display on the picker's cancel button.
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { DatetimeParts, DatetimeHourCycle } from '../datetime-interface';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Including time zone options may lead to the rendered text showing a
|
|
4
|
+
* different time from what was selected in the Datetime, which could cause
|
|
5
|
+
* confusion.
|
|
6
|
+
*/
|
|
7
|
+
export declare const stripTimeZone: (formatOptions: Intl.DateTimeFormatOptions) => Intl.DateTimeFormatOptions;
|
|
8
|
+
export declare const getLocalizedTime: (locale: string, refParts: DatetimeParts, hourCycle: DatetimeHourCycle, formatOptions?: Intl.DateTimeFormatOptions) => string;
|
|
3
9
|
/**
|
|
4
10
|
* Adds padding to a time value so
|
|
5
11
|
* that it is always 2 digits.
|
|
@@ -18,11 +24,6 @@ export declare const getFormattedHour: (hour: number, hourCycle: DatetimeHourCyc
|
|
|
18
24
|
* today's date.
|
|
19
25
|
*/
|
|
20
26
|
export declare const generateDayAriaLabel: (locale: string, today: boolean, refParts: DatetimeParts) => string | null;
|
|
21
|
-
/**
|
|
22
|
-
* Gets the day of the week, month, and day
|
|
23
|
-
* Used for the header in MD mode.
|
|
24
|
-
*/
|
|
25
|
-
export declare const getMonthAndDay: (locale: string, refParts: DatetimeParts) => string;
|
|
26
27
|
/**
|
|
27
28
|
* Given a locale and a date object,
|
|
28
29
|
* return a formatted string that includes
|
|
@@ -30,13 +31,6 @@ export declare const getMonthAndDay: (locale: string, refParts: DatetimeParts) =
|
|
|
30
31
|
* Example: May 2021
|
|
31
32
|
*/
|
|
32
33
|
export declare const getMonthAndYear: (locale: string, refParts: DatetimeParts) => string;
|
|
33
|
-
/**
|
|
34
|
-
* Given a locale and a date object,
|
|
35
|
-
* return a formatted string that includes
|
|
36
|
-
* the short month, numeric day, and full year.
|
|
37
|
-
* Example: Apr 22, 2021
|
|
38
|
-
*/
|
|
39
|
-
export declare const getMonthDayAndYear: (locale: string, refParts: DatetimeParts) => string;
|
|
40
34
|
/**
|
|
41
35
|
* Given a locale and a date object,
|
|
42
36
|
* return a formatted string that includes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DatetimePresentation, FormatOptions } from '../datetime-interface';
|
|
2
|
+
/**
|
|
3
|
+
* If a time zone is provided in the format options, the rendered text could
|
|
4
|
+
* differ from what was selected in the Datetime, which could cause
|
|
5
|
+
* confusion.
|
|
6
|
+
*/
|
|
7
|
+
export declare const warnIfTimeZoneProvided: (el: HTMLElement, formatOptions?: FormatOptions) => void;
|
|
8
|
+
export declare const checkForPresentationFormatMismatch: (el: HTMLElement, presentation: DatetimePresentation, formatOptions?: FormatOptions) => void;
|
|
@@ -10,6 +10,7 @@ export declare class Searchbar implements ComponentInterface {
|
|
|
10
10
|
private shouldAlignLeft;
|
|
11
11
|
private originalIonInput?;
|
|
12
12
|
private inputId;
|
|
13
|
+
private inheritedAttributes;
|
|
13
14
|
/**
|
|
14
15
|
* The value of the input when the textarea is focused.
|
|
15
16
|
*/
|
|
@@ -17,6 +18,15 @@ export declare class Searchbar implements ComponentInterface {
|
|
|
17
18
|
el: HTMLIonSearchbarElement;
|
|
18
19
|
focused: boolean;
|
|
19
20
|
noAnimate: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* lang and dir are globally enumerated attributes.
|
|
23
|
+
* As a result, creating these as properties
|
|
24
|
+
* can have unintended side effects. Instead, we
|
|
25
|
+
* listen for attribute changes and inherit them
|
|
26
|
+
* to the inner `<input>` element.
|
|
27
|
+
*/
|
|
28
|
+
onLangChanged(newValue: string): void;
|
|
29
|
+
onDirChanged(newValue: string): void;
|
|
20
30
|
/**
|
|
21
31
|
* The color to use from your application's color palette.
|
|
22
32
|
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
@@ -27,6 +37,25 @@ export declare class Searchbar implements ComponentInterface {
|
|
|
27
37
|
* If `true`, enable searchbar animation.
|
|
28
38
|
*/
|
|
29
39
|
animated: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Prior to the addition of this property
|
|
42
|
+
* autocapitalize was enabled by default on iOS
|
|
43
|
+
* and disabled by default on Android
|
|
44
|
+
* for Searchbar. The autocapitalize type on HTMLElement
|
|
45
|
+
* requires that it be a string and never undefined.
|
|
46
|
+
* However, setting it to a string value would be a breaking change
|
|
47
|
+
* in behavior, so we use "!" to tell TypeScript that this property
|
|
48
|
+
* is always defined so we can rely on the browser defaults. Browsers
|
|
49
|
+
* will automatically set a default value if the developer does not set one.
|
|
50
|
+
*
|
|
51
|
+
* In the future, this property will default to "off" to align with
|
|
52
|
+
* Input and Textarea, and the "!" will not be needed.
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
|
56
|
+
* Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
57
|
+
*/
|
|
58
|
+
autocapitalize: string;
|
|
30
59
|
/**
|
|
31
60
|
* Set the input's autocomplete property.
|
|
32
61
|
*/
|
|
@@ -69,6 +98,14 @@ export declare class Searchbar implements ComponentInterface {
|
|
|
69
98
|
* `"previous"`, `"search"`, and `"send"`.
|
|
70
99
|
*/
|
|
71
100
|
enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
101
|
+
/**
|
|
102
|
+
* This attribute specifies the maximum number of characters that the user can enter.
|
|
103
|
+
*/
|
|
104
|
+
maxlength?: number;
|
|
105
|
+
/**
|
|
106
|
+
* This attribute specifies the minimum number of characters that the user can enter.
|
|
107
|
+
*/
|
|
108
|
+
minlength?: number;
|
|
72
109
|
/**
|
|
73
110
|
* If used in a form, set the name of the control, which is submitted with the form data.
|
|
74
111
|
*/
|
|
@@ -156,6 +193,7 @@ export declare class Searchbar implements ComponentInterface {
|
|
|
156
193
|
protected valueChanged(): void;
|
|
157
194
|
protected showCancelButtonChanged(): void;
|
|
158
195
|
connectedCallback(): void;
|
|
196
|
+
componentWillLoad(): void;
|
|
159
197
|
componentDidLoad(): void;
|
|
160
198
|
private emitStyle;
|
|
161
199
|
/**
|
|
@@ -82,7 +82,7 @@ export declare class Toggle implements ComponentInterface {
|
|
|
82
82
|
justify: 'start' | 'end' | 'space-between';
|
|
83
83
|
/**
|
|
84
84
|
* How to control the alignment of the toggle and label on the cross axis.
|
|
85
|
-
*
|
|
85
|
+
* `"start"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.
|
|
86
86
|
* `"center"`: The label and control will appear at the center of the cross axis in both LTR and RTL.
|
|
87
87
|
*/
|
|
88
88
|
alignment: 'start' | 'center';
|
|
@@ -15,7 +15,7 @@ import { RouteID, RouterDirection, RouterEventDetail, RouteWrite } from "./compo
|
|
|
15
15
|
import { BreadcrumbCollapsedClickEventDetail } from "./components/breadcrumb/breadcrumb-interface";
|
|
16
16
|
import { CheckboxChangeEventDetail } from "./components/checkbox/checkbox-interface";
|
|
17
17
|
import { ScrollBaseDetail, ScrollDetail } from "./components/content/content-interface";
|
|
18
|
-
import { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, DatetimePresentation, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
18
|
+
import { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, DatetimePresentation, FormatOptions, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
19
19
|
import { SpinnerTypes } from "./components/spinner/spinner-configs";
|
|
20
20
|
import { InputChangeEventDetail, InputInputEventDetail } from "./components/input/input-interface";
|
|
21
21
|
import { CounterFormatter } from "./components/item/item-interface";
|
|
@@ -51,7 +51,7 @@ export { RouteID, RouterDirection, RouterEventDetail, RouteWrite } from "./compo
|
|
|
51
51
|
export { BreadcrumbCollapsedClickEventDetail } from "./components/breadcrumb/breadcrumb-interface";
|
|
52
52
|
export { CheckboxChangeEventDetail } from "./components/checkbox/checkbox-interface";
|
|
53
53
|
export { ScrollBaseDetail, ScrollDetail } from "./components/content/content-interface";
|
|
54
|
-
export { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, DatetimePresentation, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
54
|
+
export { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, DatetimePresentation, FormatOptions, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
55
55
|
export { SpinnerTypes } from "./components/spinner/spinner-configs";
|
|
56
56
|
export { InputChangeEventDetail, InputInputEventDetail } from "./components/input/input-interface";
|
|
57
57
|
export { CounterFormatter } from "./components/item/item-interface";
|
|
@@ -858,6 +858,10 @@ export namespace Components {
|
|
|
858
858
|
* The first day of the week to use for `ion-datetime`. The default value is `0` and represents Sunday.
|
|
859
859
|
*/
|
|
860
860
|
"firstDayOfWeek": number;
|
|
861
|
+
/**
|
|
862
|
+
* Formatting options for dates and times. Should include a 'date' and/or 'time' object, each of which is of type [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options).
|
|
863
|
+
*/
|
|
864
|
+
"formatOptions"?: FormatOptions;
|
|
861
865
|
/**
|
|
862
866
|
* Used to apply custom text and background colors to specific dates. Can be either an array of objects containing ISO strings and colors, or a callback that receives an ISO string and returns the colors. Only applies to the `date`, `date-time`, and `time-date` presentations, with `preferWheel="false"`.
|
|
863
867
|
*/
|
|
@@ -2548,6 +2552,10 @@ export namespace Components {
|
|
|
2548
2552
|
* If `true`, enable searchbar animation.
|
|
2549
2553
|
*/
|
|
2550
2554
|
"animated": boolean;
|
|
2555
|
+
/**
|
|
2556
|
+
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
2557
|
+
*/
|
|
2558
|
+
"autocapitalize": string;
|
|
2551
2559
|
/**
|
|
2552
2560
|
* Set the input's autocomplete property.
|
|
2553
2561
|
*/
|
|
@@ -2592,6 +2600,14 @@ export namespace Components {
|
|
|
2592
2600
|
* A hint to the browser for which keyboard to display. Possible values: `"none"`, `"text"`, `"tel"`, `"url"`, `"email"`, `"numeric"`, `"decimal"`, and `"search"`.
|
|
2593
2601
|
*/
|
|
2594
2602
|
"inputmode"?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
2603
|
+
/**
|
|
2604
|
+
* This attribute specifies the maximum number of characters that the user can enter.
|
|
2605
|
+
*/
|
|
2606
|
+
"maxlength"?: number;
|
|
2607
|
+
/**
|
|
2608
|
+
* This attribute specifies the minimum number of characters that the user can enter.
|
|
2609
|
+
*/
|
|
2610
|
+
"minlength"?: number;
|
|
2595
2611
|
/**
|
|
2596
2612
|
* The mode determines which platform styles to use.
|
|
2597
2613
|
*/
|
|
@@ -3195,7 +3211,7 @@ export namespace Components {
|
|
|
3195
3211
|
}
|
|
3196
3212
|
interface IonToggle {
|
|
3197
3213
|
/**
|
|
3198
|
-
* How to control the alignment of the toggle and label on the cross axis.
|
|
3214
|
+
* 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.
|
|
3199
3215
|
*/
|
|
3200
3216
|
"alignment": 'start' | 'center';
|
|
3201
3217
|
/**
|
|
@@ -5520,6 +5536,10 @@ declare namespace LocalJSX {
|
|
|
5520
5536
|
* The first day of the week to use for `ion-datetime`. The default value is `0` and represents Sunday.
|
|
5521
5537
|
*/
|
|
5522
5538
|
"firstDayOfWeek"?: number;
|
|
5539
|
+
/**
|
|
5540
|
+
* Formatting options for dates and times. Should include a 'date' and/or 'time' object, each of which is of type [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options).
|
|
5541
|
+
*/
|
|
5542
|
+
"formatOptions"?: FormatOptions;
|
|
5523
5543
|
/**
|
|
5524
5544
|
* Used to apply custom text and background colors to specific dates. Can be either an array of objects containing ISO strings and colors, or a callback that receives an ISO string and returns the colors. Only applies to the `date`, `date-time`, and `time-date` presentations, with `preferWheel="false"`.
|
|
5525
5545
|
*/
|
|
@@ -7156,6 +7176,10 @@ declare namespace LocalJSX {
|
|
|
7156
7176
|
* If `true`, enable searchbar animation.
|
|
7157
7177
|
*/
|
|
7158
7178
|
"animated"?: boolean;
|
|
7179
|
+
/**
|
|
7180
|
+
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
7181
|
+
*/
|
|
7182
|
+
"autocapitalize": string;
|
|
7159
7183
|
/**
|
|
7160
7184
|
* Set the input's autocomplete property.
|
|
7161
7185
|
*/
|
|
@@ -7196,6 +7220,14 @@ declare namespace LocalJSX {
|
|
|
7196
7220
|
* A hint to the browser for which keyboard to display. Possible values: `"none"`, `"text"`, `"tel"`, `"url"`, `"email"`, `"numeric"`, `"decimal"`, and `"search"`.
|
|
7197
7221
|
*/
|
|
7198
7222
|
"inputmode"?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
7223
|
+
/**
|
|
7224
|
+
* This attribute specifies the maximum number of characters that the user can enter.
|
|
7225
|
+
*/
|
|
7226
|
+
"maxlength"?: number;
|
|
7227
|
+
/**
|
|
7228
|
+
* This attribute specifies the minimum number of characters that the user can enter.
|
|
7229
|
+
*/
|
|
7230
|
+
"minlength"?: number;
|
|
7199
7231
|
/**
|
|
7200
7232
|
* The mode determines which platform styles to use.
|
|
7201
7233
|
*/
|
|
@@ -7845,7 +7877,7 @@ declare namespace LocalJSX {
|
|
|
7845
7877
|
}
|
|
7846
7878
|
interface IonToggle {
|
|
7847
7879
|
/**
|
|
7848
|
-
* How to control the alignment of the toggle and label on the cross axis.
|
|
7880
|
+
* 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.
|
|
7849
7881
|
*/
|
|
7850
7882
|
"alignment"?: 'start' | 'center';
|
|
7851
7883
|
/**
|