@ionic/core 8.4.2-dev.11736797843.16cc5058 → 8.4.2-dev.11737633140.1934dd0f
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/action-sheet.js +16 -32
- package/components/alert.js +18 -36
- package/components/backdrop.js +0 -9
- package/components/button.js +17 -25
- package/components/buttons.js +0 -12
- package/components/checkbox.js +15 -36
- package/components/content.js +2 -22
- package/components/header.js +2 -9
- package/components/ion-accordion-group.js +2 -17
- package/components/ion-accordion.js +8 -28
- package/components/ion-back-button.js +7 -8
- package/components/ion-badge.js +1 -0
- package/components/ion-breadcrumb.js +13 -17
- package/components/ion-breadcrumbs.js +6 -12
- package/components/ion-card-header.js +1 -5
- package/components/ion-card-subtitle.js +1 -0
- package/components/ion-card-title.js +1 -0
- package/components/ion-card.js +6 -13
- package/components/ion-chip.js +1 -6
- package/components/ion-col.js +24 -0
- package/components/ion-datetime-button.js +8 -12
- package/components/ion-datetime.js +42 -117
- package/components/ion-fab-button.js +14 -33
- package/components/ion-fab-list.js +0 -6
- package/components/ion-fab.js +2 -9
- package/components/ion-footer.js +3 -10
- package/components/ion-grid.js +0 -3
- package/components/ion-img.js +4 -0
- package/components/ion-infinite-scroll-content.js +2 -0
- package/components/ion-infinite-scroll.js +4 -26
- package/components/ion-input-password-toggle.js +4 -4
- package/components/ion-input.js +35 -65
- package/components/ion-item-divider.js +1 -7
- package/components/ion-item-option.js +8 -12
- package/components/ion-item-options.js +0 -4
- package/components/ion-item-sliding.js +0 -3
- package/components/ion-loading.js +12 -31
- package/components/ion-menu-button.js +5 -12
- package/components/ion-menu-toggle.js +3 -8
- package/components/ion-menu.js +3 -21
- package/components/ion-nav-link.js +4 -4
- package/components/ion-nav.js +5 -3
- package/components/ion-note.js +1 -0
- package/components/ion-picker-legacy.js +17 -39
- package/components/ion-progress-bar.js +1 -16
- package/components/ion-range.js +19 -61
- package/components/ion-refresher-content.js +4 -0
- package/components/ion-refresher.js +0 -50
- package/components/ion-reorder-group.js +0 -3
- package/components/ion-route-redirect.js +2 -0
- package/components/ion-route.js +4 -6
- package/components/ion-router-link.js +6 -5
- package/components/ion-router-outlet.js +3 -6
- package/components/ion-router.js +0 -18
- package/components/ion-searchbar.js +24 -75
- package/components/ion-segment-button.js +6 -17
- package/components/ion-segment-view.js +1 -3
- package/components/ion-segment.js +7 -20
- package/components/ion-select-option.js +1 -3
- package/components/ion-select.js +26 -49
- package/components/ion-skeleton-text.js +0 -3
- package/components/ion-split-pane.js +1 -8
- package/components/ion-tab-bar.js +2 -5
- package/components/ion-tab-button.js +8 -8
- package/components/ion-tab.js +3 -1
- package/components/ion-tabs.js +2 -2
- package/components/ion-text.js +1 -0
- package/components/ion-textarea.js +29 -59
- package/components/ion-toast.js +23 -48
- package/components/ion-toggle.js +16 -37
- package/components/item.js +8 -16
- package/components/label.js +2 -0
- package/components/list-header.js +2 -0
- package/components/list.js +1 -3
- package/components/modal.js +25 -92
- package/components/picker-column-option.js +1 -16
- package/components/picker-column.js +6 -22
- package/components/picker-column2.js +1 -0
- package/components/popover.js +28 -122
- package/components/radio-group.js +8 -10
- package/components/radio.js +9 -25
- package/components/ripple-effect.js +0 -9
- package/components/select-modal.js +2 -0
- package/components/select-popover.js +4 -3
- package/components/spinner.js +3 -3
- package/components/title.js +2 -0
- package/components/toolbar.js +1 -0
- package/dist/cjs/{app-globals-d2d85416.js → app-globals-21afee77.js} +1 -1
- package/dist/cjs/{button-active-8d4c8099.js → button-active-3f2f60b4.js} +1 -1
- package/dist/cjs/{hardware-back-button-f0972dab.js → hardware-back-button-9e8a2c4f.js} +2 -2
- package/dist/cjs/{index-2e7a27db.js → index-73f75efb.js} +847 -1215
- package/dist/cjs/{index-38a015a8.js → index-8e789962.js} +2 -2
- package/dist/cjs/{index-213cabf1.js → index-f05acd21.js} +4 -4
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/ion-accordion_2.cjs.entry.js +12 -47
- package/dist/cjs/ion-action-sheet.cjs.entry.js +21 -37
- package/dist/cjs/ion-alert.cjs.entry.js +23 -41
- package/dist/cjs/ion-app_8.cjs.entry.js +19 -65
- package/dist/cjs/ion-avatar_3.cjs.entry.js +3 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +9 -10
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -11
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +21 -31
- package/dist/cjs/ion-button_2.cjs.entry.js +19 -27
- package/dist/cjs/ion-card_5.cjs.entry.js +11 -20
- package/dist/cjs/ion-checkbox.cjs.entry.js +16 -38
- package/dist/cjs/ion-chip.cjs.entry.js +3 -8
- package/dist/cjs/ion-col_3.cjs.entry.js +26 -5
- package/dist/cjs/ion-datetime-button.cjs.entry.js +10 -14
- package/dist/cjs/ion-datetime_3.cjs.entry.js +64 -160
- package/dist/cjs/ion-fab_3.cjs.entry.js +18 -50
- package/dist/cjs/ion-img.cjs.entry.js +6 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +8 -28
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +6 -6
- package/dist/cjs/ion-input.cjs.entry.js +37 -67
- package/dist/cjs/ion-item-option_3.cjs.entry.js +10 -21
- package/dist/cjs/ion-item_8.cjs.entry.js +17 -31
- package/dist/cjs/ion-loading.cjs.entry.js +16 -35
- package/dist/cjs/ion-menu_3.cjs.entry.js +16 -46
- package/dist/cjs/ion-modal.cjs.entry.js +30 -97
- package/dist/cjs/ion-nav_2.cjs.entry.js +12 -10
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -18
- package/dist/cjs/ion-picker-column.cjs.entry.js +8 -24
- package/dist/cjs/ion-picker.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +33 -127
- package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -18
- package/dist/cjs/ion-radio_2.cjs.entry.js +18 -37
- package/dist/cjs/ion-range.cjs.entry.js +21 -63
- package/dist/cjs/ion-refresher_2.cjs.entry.js +6 -52
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -5
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -11
- package/dist/cjs/ion-route_4.cjs.entry.js +14 -31
- package/dist/cjs/ion-searchbar.cjs.entry.js +26 -77
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +2 -4
- package/dist/cjs/ion-segment_2.cjs.entry.js +15 -39
- package/dist/cjs/ion-select-modal.cjs.entry.js +6 -4
- package/dist/cjs/ion-select_3.cjs.entry.js +34 -59
- package/dist/cjs/ion-spinner.cjs.entry.js +5 -5
- package/dist/cjs/ion-split-pane.cjs.entry.js +3 -10
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +12 -15
- package/dist/cjs/ion-tab_2.cjs.entry.js +6 -4
- package/dist/cjs/ion-text.cjs.entry.js +3 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +31 -61
- package/dist/cjs/ion-toast.cjs.entry.js +27 -52
- package/dist/cjs/ion-toggle.cjs.entry.js +17 -39
- package/dist/cjs/{ionic-global-3c758a1a.js → ionic-global-d9a8bb5b.js} +1 -1
- package/dist/cjs/ionic.cjs.js +5 -5
- package/dist/cjs/{ios.transition-ac964d6c.js → ios.transition-cf40433b.js} +3 -3
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-45089eda.js → md.transition-ededf99f.js} +3 -3
- package/dist/cjs/{overlays-56fecd6c.js → overlays-aa669eb8.js} +2 -2
- package/dist/cjs/{status-tap-84e22ef3.js → status-tap-37681226.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion.js +8 -38
- package/dist/collection/components/accordion-group/accordion-group.js +2 -29
- package/dist/collection/components/action-sheet/action-sheet.js +20 -68
- package/dist/collection/components/alert/alert.js +22 -76
- package/dist/collection/components/back-button/back-button.js +8 -23
- package/dist/collection/components/backdrop/backdrop.js +0 -15
- package/dist/collection/components/badge/badge.js +3 -2
- package/dist/collection/components/breadcrumb/breadcrumb.js +14 -44
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +6 -20
- package/dist/collection/components/button/button.js +18 -58
- package/dist/collection/components/buttons/buttons.js +0 -14
- package/dist/collection/components/card/card.js +7 -34
- package/dist/collection/components/card-header/card-header.js +1 -9
- package/dist/collection/components/card-subtitle/card-subtitle.js +3 -2
- package/dist/collection/components/card-title/card-title.js +3 -2
- package/dist/collection/components/checkbox/checkbox.js +32 -54
- package/dist/collection/components/chip/chip.js +1 -12
- package/dist/collection/components/col/col.js +26 -48
- package/dist/collection/components/content/content.js +2 -36
- package/dist/collection/components/datetime/datetime.js +46 -181
- package/dist/collection/components/datetime-button/datetime-button.js +8 -18
- package/dist/collection/components/fab/fab.js +2 -17
- package/dist/collection/components/fab-button/fab-button.js +15 -62
- package/dist/collection/components/fab-list/fab-list.js +0 -10
- package/dist/collection/components/footer/footer.js +3 -14
- package/dist/collection/components/grid/grid.js +0 -5
- package/dist/collection/components/header/header.js +2 -13
- package/dist/collection/components/img/img.js +4 -4
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +4 -32
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +2 -4
- package/dist/collection/components/input/input.js +36 -134
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +4 -12
- package/dist/collection/components/item/item.js +9 -43
- package/dist/collection/components/item-divider/item-divider.js +1 -11
- package/dist/collection/components/item-option/item-option.js +8 -28
- package/dist/collection/components/item-options/item-options.js +0 -6
- package/dist/collection/components/item-sliding/item-sliding.js +0 -5
- package/dist/collection/components/label/label.js +2 -4
- package/dist/collection/components/list/list.js +1 -7
- package/dist/collection/components/list-header/list-header.js +4 -4
- package/dist/collection/components/loading/loading.js +16 -69
- package/dist/collection/components/menu/menu.js +3 -35
- package/dist/collection/components/menu-button/menu-button.js +5 -22
- package/dist/collection/components/menu-toggle/menu-toggle.js +3 -12
- package/dist/collection/components/modal/modal.js +32 -147
- package/dist/collection/components/nav/nav.js +8 -18
- package/dist/collection/components/nav-link/nav-link.js +6 -14
- package/dist/collection/components/note/note.js +3 -2
- package/dist/collection/components/picker-column/picker-column.js +6 -30
- package/dist/collection/components/picker-column-option/picker-column-option.js +1 -22
- package/dist/collection/components/picker-legacy/picker.js +21 -75
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -3
- package/dist/collection/components/popover/popover.js +33 -181
- package/dist/collection/components/progress-bar/progress-bar.js +1 -26
- package/dist/collection/components/radio/radio.js +9 -39
- package/dist/collection/components/radio-group/radio-group.js +25 -18
- package/dist/collection/components/range/range.js +19 -93
- package/dist/collection/components/refresher/refresher.js +0 -62
- package/dist/collection/components/refresher-content/refresher-content.js +4 -8
- package/dist/collection/components/reorder-group/reorder-group.js +0 -5
- package/dist/collection/components/ripple-effect/ripple-effect.js +0 -11
- package/dist/collection/components/route/route.js +7 -19
- package/dist/collection/components/route-redirect/route-redirect.js +4 -4
- package/dist/collection/components/router/router.js +0 -22
- package/dist/collection/components/router-link/router-link.js +7 -18
- package/dist/collection/components/router-outlet/router-outlet.js +6 -19
- package/dist/collection/components/searchbar/searchbar.js +24 -119
- package/dist/collection/components/segment/segment.js +7 -32
- package/dist/collection/components/segment-button/segment-button.js +6 -27
- package/dist/collection/components/segment-view/segment-view.js +1 -5
- package/dist/collection/components/select/select.js +43 -87
- package/dist/collection/components/select-modal/select-modal.js +2 -6
- package/dist/collection/components/select-option/select-option.js +1 -7
- package/dist/collection/components/select-popover/select-popover.js +4 -13
- package/dist/collection/components/skeleton-text/skeleton-text.js +0 -5
- package/dist/collection/components/spinner/spinner.js +3 -11
- package/dist/collection/components/split-pane/split-pane.js +1 -14
- package/dist/collection/components/tab/tab.js +4 -10
- package/dist/collection/components/tab-bar/tab-bar.js +2 -11
- package/dist/collection/components/tab-button/tab-button.js +8 -24
- package/dist/collection/components/tabs/tabs.js +2 -4
- package/dist/collection/components/text/text.js +3 -2
- package/dist/collection/components/textarea/textarea.js +30 -116
- package/dist/collection/components/title/title.js +4 -4
- package/dist/collection/components/toast/toast.js +28 -97
- package/dist/collection/components/toggle/toggle.js +33 -55
- package/dist/collection/components/toolbar/toolbar.js +1 -2
- package/dist/docs.d.ts +0 -8
- package/dist/docs.json +660 -1710
- package/dist/esm/{app-globals-1318774c.js → app-globals-5dbb61a5.js} +1 -1
- package/dist/esm/{button-active-10b36beb.js → button-active-f6503382.js} +1 -1
- package/dist/esm/{hardware-back-button-0a284222.js → hardware-back-button-06ef3c3e.js} +2 -2
- package/dist/esm/{index-ed9a6c67.js → index-24b48b06.js} +2 -2
- package/dist/esm/{index-fcdfc1aa.js → index-28849c61.js} +847 -1215
- package/dist/esm/{index-13b48bcb.js → index-3ad7f18b.js} +4 -4
- package/dist/esm/index.js +8 -8
- package/dist/esm/ion-accordion_2.entry.js +12 -47
- package/dist/esm/ion-action-sheet.entry.js +21 -37
- package/dist/esm/ion-alert.entry.js +23 -41
- package/dist/esm/ion-app_8.entry.js +19 -65
- package/dist/esm/ion-avatar_3.entry.js +3 -2
- package/dist/esm/ion-back-button.entry.js +9 -10
- package/dist/esm/ion-backdrop.entry.js +2 -11
- package/dist/esm/ion-breadcrumb_2.entry.js +21 -31
- package/dist/esm/ion-button_2.entry.js +19 -27
- package/dist/esm/ion-card_5.entry.js +11 -20
- package/dist/esm/ion-checkbox.entry.js +16 -38
- package/dist/esm/ion-chip.entry.js +3 -8
- package/dist/esm/ion-col_3.entry.js +26 -5
- package/dist/esm/ion-datetime-button.entry.js +10 -14
- package/dist/esm/ion-datetime_3.entry.js +64 -160
- package/dist/esm/ion-fab_3.entry.js +18 -50
- package/dist/esm/ion-img.entry.js +6 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +8 -28
- package/dist/esm/ion-input-password-toggle.entry.js +6 -6
- package/dist/esm/ion-input.entry.js +37 -67
- package/dist/esm/ion-item-option_3.entry.js +10 -21
- package/dist/esm/ion-item_8.entry.js +17 -31
- package/dist/esm/ion-loading.entry.js +16 -35
- package/dist/esm/ion-menu_3.entry.js +16 -46
- package/dist/esm/ion-modal.entry.js +30 -97
- package/dist/esm/ion-nav_2.entry.js +12 -10
- package/dist/esm/ion-picker-column-option.entry.js +3 -18
- package/dist/esm/ion-picker-column.entry.js +8 -24
- package/dist/esm/ion-picker.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +33 -127
- package/dist/esm/ion-progress-bar.entry.js +3 -18
- package/dist/esm/ion-radio_2.entry.js +18 -37
- package/dist/esm/ion-range.entry.js +21 -63
- package/dist/esm/ion-refresher_2.entry.js +6 -52
- package/dist/esm/ion-reorder_2.entry.js +2 -5
- package/dist/esm/ion-ripple-effect.entry.js +2 -11
- package/dist/esm/ion-route_4.entry.js +14 -31
- package/dist/esm/ion-searchbar.entry.js +26 -77
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +2 -4
- package/dist/esm/ion-segment_2.entry.js +15 -39
- package/dist/esm/ion-select-modal.entry.js +6 -4
- package/dist/esm/ion-select_3.entry.js +34 -59
- package/dist/esm/ion-spinner.entry.js +5 -5
- package/dist/esm/ion-split-pane.entry.js +3 -10
- package/dist/esm/ion-tab-bar_2.entry.js +12 -15
- package/dist/esm/ion-tab_2.entry.js +6 -4
- package/dist/esm/ion-text.entry.js +3 -2
- package/dist/esm/ion-textarea.entry.js +31 -61
- package/dist/esm/ion-toast.entry.js +27 -52
- package/dist/esm/ion-toggle.entry.js +17 -39
- package/dist/esm/{ionic-global-6b9f2b5a.js → ionic-global-c81d82ab.js} +1 -1
- package/dist/esm/ionic.js +6 -6
- package/dist/esm/{ios.transition-1cb16beb.js → ios.transition-4ee1a3af.js} +3 -3
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-20f80721.js → md.transition-5106a0d2.js} +3 -3
- package/dist/esm/{overlays-6163edd5.js → overlays-e7b9d6d9.js} +2 -2
- package/dist/esm/{status-tap-6971c722.js → status-tap-f472b09f.js} +1 -1
- package/dist/esm-es5/app-globals-5dbb61a5.js +4 -0
- package/dist/esm-es5/{button-active-10b36beb.js → button-active-f6503382.js} +1 -1
- package/dist/esm-es5/{hardware-back-button-0a284222.js → hardware-back-button-06ef3c3e.js} +1 -1
- package/dist/esm-es5/{index-ed9a6c67.js → index-24b48b06.js} +1 -1
- package/dist/esm-es5/index-28849c61.js +5 -0
- package/dist/esm-es5/{index-13b48bcb.js → index-3ad7f18b.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.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-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.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-content.entry.js +1 -1
- package/dist/esm-es5/ion-segment-view.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select-modal.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-6b9f2b5a.js → ionic-global-c81d82ab.js} +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-1cb16beb.js → ios.transition-4ee1a3af.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-5106a0d2.js +4 -0
- package/dist/esm-es5/{overlays-6163edd5.js → overlays-e7b9d6d9.js} +1 -1
- package/dist/esm-es5/{status-tap-6971c722.js → status-tap-f472b09f.js} +1 -1
- package/dist/html.html-data.json +16 -0
- 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-001f0962.entry.js +4 -0
- package/dist/ionic/p-01186920.system.entry.js +4 -0
- package/dist/ionic/{p-2e092bfc.js → p-0303d0f8.js} +1 -1
- package/dist/ionic/{p-e992e256.js → p-0574e87e.js} +1 -1
- package/dist/ionic/p-081a4ce4.entry.js +4 -0
- package/dist/ionic/{p-de104ff8.system.js → p-0aa833fb.system.js} +1 -1
- package/dist/ionic/p-0abaa255.entry.js +4 -0
- package/dist/ionic/{p-9b48727c.system.entry.js → p-1046866e.system.entry.js} +1 -1
- package/dist/ionic/p-12a722b8.system.entry.js +4 -0
- package/dist/ionic/{p-58f53534.entry.js → p-14be4015.entry.js} +1 -1
- package/dist/ionic/{p-825e7bd7.system.entry.js → p-14e159ea.system.entry.js} +1 -1
- package/dist/ionic/p-15e76dd1.entry.js +4 -0
- package/dist/ionic/p-16188af7.entry.js +4 -0
- package/dist/ionic/{p-e3177e13.system.entry.js → p-16799667.system.entry.js} +1 -1
- package/dist/ionic/p-16bfb979.system.entry.js +4 -0
- package/dist/ionic/p-17474161.system.js +4 -0
- package/dist/ionic/p-19a5be0a.entry.js +4 -0
- package/dist/ionic/p-19ec4f42.entry.js +4 -0
- package/dist/ionic/{p-39f7d87a.system.entry.js → p-1e010627.system.entry.js} +1 -1
- package/dist/ionic/p-1e67b266.system.entry.js +4 -0
- package/dist/ionic/p-1fe02220.system.entry.js +4 -0
- package/dist/ionic/p-2172893e.system.entry.js +4 -0
- package/dist/ionic/{p-576c3a98.js → p-21e5e7e4.js} +1 -1
- package/dist/ionic/{p-639d0578.system.entry.js → p-2507278c.system.entry.js} +1 -1
- package/dist/ionic/p-25180df3.system.js +5 -0
- package/dist/ionic/{p-fca658be.system.entry.js → p-2799c6d3.system.entry.js} +1 -1
- package/dist/ionic/{p-515d6848.system.entry.js → p-29a5d6ed.system.entry.js} +1 -1
- package/dist/ionic/{p-ccba2087.system.entry.js → p-2abae1cc.system.entry.js} +1 -1
- package/dist/ionic/p-2b838f86.system.entry.js +4 -0
- package/dist/ionic/{p-b84b4728.system.entry.js → p-2bd0ae94.system.entry.js} +2 -2
- package/dist/ionic/{p-ae304d51.system.entry.js → p-2e46590d.system.entry.js} +1 -1
- package/dist/ionic/p-2fc0dafe.entry.js +4 -0
- package/dist/ionic/p-322c5fb4.system.js +4 -0
- package/dist/ionic/p-32d44024.system.entry.js +4 -0
- package/dist/ionic/{p-20034878.entry.js → p-33a8a71b.entry.js} +1 -1
- package/dist/ionic/{p-95902a17.system.js → p-372ae7f4.system.js} +1 -1
- package/dist/ionic/{p-d46804b1.system.entry.js → p-37cb43bd.system.entry.js} +1 -1
- package/dist/ionic/{p-7a1241fe.system.js → p-3c8e5c23.system.js} +1 -1
- package/dist/ionic/{p-25ffd217.system.entry.js → p-424eb140.system.entry.js} +1 -1
- package/dist/ionic/{p-2e25154e.entry.js → p-4439fc2a.entry.js} +1 -1
- package/dist/ionic/p-45693d7e.entry.js +4 -0
- package/dist/ionic/p-49a0e74c.entry.js +4 -0
- package/dist/ionic/p-4ec778aa.entry.js +4 -0
- package/dist/ionic/p-508d024a.entry.js +4 -0
- package/dist/ionic/{p-fbebb25d.entry.js → p-52d7a191.entry.js} +1 -1
- package/dist/ionic/{p-cdf6fc3a.system.entry.js → p-567de071.system.entry.js} +1 -1
- package/dist/ionic/{p-50d264fa.system.entry.js → p-5823babc.system.entry.js} +1 -1
- package/dist/ionic/p-58d5df0c.system.entry.js +4 -0
- package/dist/ionic/{p-e8d1ae44.system.entry.js → p-58dc63cc.system.entry.js} +1 -1
- package/dist/ionic/p-5b932840.entry.js +4 -0
- package/dist/ionic/{p-3e9fea9e.system.js → p-5da94421.system.js} +1 -1
- package/dist/ionic/{p-900bf295.system.entry.js → p-5fce0c0b.system.entry.js} +1 -1
- package/dist/ionic/p-61e3f887.entry.js +4 -0
- package/dist/ionic/p-62af944c.entry.js +4 -0
- package/dist/ionic/{p-47dc25dc.system.entry.js → p-63b0abde.system.entry.js} +1 -1
- package/dist/ionic/{p-4e9cfad5.system.entry.js → p-6499df44.system.entry.js} +2 -2
- package/dist/ionic/p-66640ff7.system.entry.js +4 -0
- package/dist/ionic/{p-78c786a5.system.entry.js → p-677f0eb7.system.entry.js} +1 -1
- package/dist/ionic/p-69066a53.js +4 -0
- package/dist/ionic/p-6b280620.entry.js +4 -0
- package/dist/ionic/{p-8318c25d.entry.js → p-6d32975a.entry.js} +1 -1
- package/dist/ionic/p-73dc4950.entry.js +4 -0
- package/dist/ionic/p-7458862e.system.entry.js +4 -0
- package/dist/ionic/p-797eeea8.system.entry.js +4 -0
- package/dist/ionic/p-7b9a2b23.entry.js +4 -0
- package/dist/ionic/{p-6d119deb.system.entry.js → p-7ed1657c.system.entry.js} +1 -1
- package/dist/ionic/{p-40b63137.js → p-88e63c7d.js} +1 -1
- package/dist/ionic/{p-1c152e5e.entry.js → p-8b8be2fd.entry.js} +1 -1
- package/dist/ionic/p-91545b88.entry.js +4 -0
- package/dist/ionic/p-937a7e21.entry.js +4 -0
- package/dist/ionic/p-942b5e13.entry.js +4 -0
- package/dist/ionic/p-95775830.entry.js +4 -0
- package/dist/ionic/p-982315a6.entry.js +4 -0
- package/dist/ionic/p-98231c01.system.entry.js +4 -0
- package/dist/ionic/p-985a7e17.system.entry.js +4 -0
- package/dist/ionic/p-98ff6b32.entry.js +4 -0
- package/dist/ionic/p-9df2c6fb.entry.js +4 -0
- package/dist/ionic/p-9e33104d.entry.js +4 -0
- package/dist/ionic/p-9ee1e8a6.entry.js +4 -0
- package/dist/ionic/p-9f3008d4.system.js +4 -0
- package/dist/ionic/p-9fa07aec.entry.js +4 -0
- package/dist/ionic/p-a43467d8.entry.js +4 -0
- package/dist/ionic/{p-1fd5d9bc.system.js → p-a4565eb5.system.js} +1 -1
- package/dist/ionic/p-a49378bb.system.entry.js +4 -0
- package/dist/ionic/{p-78667ff0.entry.js → p-a61cba41.entry.js} +1 -1
- package/dist/ionic/{p-c7d9e292.system.js → p-a69b9fc5.system.js} +1 -1
- package/dist/ionic/p-afecb188.entry.js +4 -0
- package/dist/ionic/{p-fc8bdbc9.system.entry.js → p-b25a40f6.system.entry.js} +1 -1
- package/dist/ionic/{p-3be897c8.system.entry.js → p-b335ffed.system.entry.js} +1 -1
- package/dist/ionic/p-b79ba17c.entry.js +4 -0
- package/dist/ionic/p-b82d4cab.js +4 -0
- package/dist/ionic/p-b9d7015f.entry.js +4 -0
- package/dist/ionic/p-bb0db172.entry.js +4 -0
- package/dist/ionic/p-bb5d8e9e.entry.js +4 -0
- package/dist/ionic/{p-9437291a.system.entry.js → p-bc36ad98.system.entry.js} +1 -1
- package/dist/ionic/p-bdad26e3.entry.js +4 -0
- package/dist/ionic/p-c29f8157.system.entry.js +4 -0
- package/dist/ionic/p-c41ac815.entry.js +4 -0
- package/dist/ionic/{p-b13c5a74.system.js → p-c449820c.system.js} +1 -1
- package/dist/ionic/p-c4b53b16.system.entry.js +4 -0
- package/dist/ionic/p-c9f3a539.entry.js +4 -0
- package/dist/ionic/{p-548a72aa.system.entry.js → p-ca065903.system.entry.js} +1 -1
- package/dist/ionic/{p-12f321c2.system.entry.js → p-cac0e0b3.system.entry.js} +1 -1
- package/dist/ionic/p-cdc83025.entry.js +4 -0
- package/dist/ionic/p-d18ab582.system.entry.js +4 -0
- package/dist/ionic/{p-178f8860.js → p-d6841eac.js} +1 -1
- package/dist/ionic/{p-782beb5a.js → p-d743e981.js} +1 -1
- package/dist/ionic/p-d7aa6b00.entry.js +4 -0
- package/dist/ionic/p-d836d43e.js +5 -0
- package/dist/ionic/p-da074ff7.entry.js +4 -0
- package/dist/ionic/p-ddaa748a.system.entry.js +4 -0
- package/dist/ionic/p-de930745.entry.js +4 -0
- package/dist/ionic/p-e4ee80be.system.entry.js +4 -0
- package/dist/ionic/{p-dc75988a.system.entry.js → p-e4f69534.system.entry.js} +1 -1
- package/dist/ionic/p-e563a35c.entry.js +4 -0
- package/dist/ionic/{p-fe10600c.js → p-e6635685.js} +1 -1
- package/dist/ionic/p-e7ed4a7f.system.js +4 -0
- package/dist/ionic/{p-13672c38.system.entry.js → p-e85d901b.system.entry.js} +1 -1
- package/dist/ionic/p-eba29931.entry.js +4 -0
- package/dist/ionic/{p-8ef7a3d4.js → p-ecceeb90.js} +1 -1
- package/dist/ionic/{p-00d0d756.system.entry.js → p-ed75fcfb.system.entry.js} +1 -1
- package/dist/ionic/p-efaffe74.entry.js +4 -0
- package/dist/ionic/{p-f5aef6f1.system.entry.js → p-f1acf541.system.entry.js} +1 -1
- package/dist/ionic/{p-87ce1c7b.system.entry.js → p-f3102647.system.entry.js} +1 -1
- package/dist/ionic/{p-cec30029.system.js → p-f9a53abb.system.js} +1 -1
- package/dist/ionic/{p-6b6a8f94.system.entry.js → p-fca6ef5f.system.entry.js} +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +4 -0
- package/dist/types/components/radio-group/radio-group.d.ts +4 -0
- package/dist/types/components/select/select.d.ts +4 -0
- package/dist/types/components/toggle/toggle.d.ts +4 -0
- package/dist/types/components.d.ts +32 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/hydrate/index.d.ts +4 -10
- package/hydrate/index.js +1471 -3034
- package/hydrate/index.mjs +1471 -3034
- package/package.json +4 -4
- package/dist/esm-es5/app-globals-1318774c.js +0 -4
- package/dist/esm-es5/index-fcdfc1aa.js +0 -5
- package/dist/esm-es5/md.transition-20f80721.js +0 -4
- package/dist/ionic/p-009f82b0.entry.js +0 -4
- package/dist/ionic/p-02a67bb6.entry.js +0 -4
- package/dist/ionic/p-06db9f72.system.entry.js +0 -4
- package/dist/ionic/p-0b7a6f61.system.entry.js +0 -4
- package/dist/ionic/p-0e3657b4.system.entry.js +0 -4
- package/dist/ionic/p-0f461830.entry.js +0 -4
- package/dist/ionic/p-1050c06b.entry.js +0 -4
- package/dist/ionic/p-10e0c150.entry.js +0 -4
- package/dist/ionic/p-12130ed6.entry.js +0 -4
- package/dist/ionic/p-1424bf51.system.entry.js +0 -4
- package/dist/ionic/p-14862d17.js +0 -4
- package/dist/ionic/p-15764963.entry.js +0 -4
- package/dist/ionic/p-19d9e3c1.entry.js +0 -4
- package/dist/ionic/p-1a02bce6.system.js +0 -4
- package/dist/ionic/p-231bc1a6.entry.js +0 -4
- package/dist/ionic/p-256d6439.system.entry.js +0 -4
- package/dist/ionic/p-2799a566.entry.js +0 -4
- package/dist/ionic/p-27c32980.system.entry.js +0 -4
- package/dist/ionic/p-28dfa27e.entry.js +0 -4
- package/dist/ionic/p-2af55ad8.entry.js +0 -4
- package/dist/ionic/p-2d31d826.entry.js +0 -4
- package/dist/ionic/p-33e4b80b.entry.js +0 -4
- package/dist/ionic/p-39d3c108.entry.js +0 -4
- package/dist/ionic/p-48da821c.system.js +0 -4
- package/dist/ionic/p-49e8212a.entry.js +0 -4
- package/dist/ionic/p-4c553a2a.system.entry.js +0 -4
- package/dist/ionic/p-550a3b74.system.entry.js +0 -4
- package/dist/ionic/p-56b2ba69.system.entry.js +0 -4
- package/dist/ionic/p-5d9ac963.entry.js +0 -4
- package/dist/ionic/p-5ed6403e.system.entry.js +0 -4
- package/dist/ionic/p-64bbdc67.entry.js +0 -4
- package/dist/ionic/p-65d01407.entry.js +0 -4
- package/dist/ionic/p-6b2e506b.entry.js +0 -4
- package/dist/ionic/p-7148eaf9.system.js +0 -4
- package/dist/ionic/p-72bfbdb8.entry.js +0 -4
- package/dist/ionic/p-7b5771f9.entry.js +0 -4
- package/dist/ionic/p-7e58bbf9.system.js +0 -5
- package/dist/ionic/p-81757650.entry.js +0 -4
- package/dist/ionic/p-861176bf.js +0 -5
- package/dist/ionic/p-87a5a16c.system.entry.js +0 -4
- package/dist/ionic/p-8dd3da91.entry.js +0 -4
- package/dist/ionic/p-8e640927.entry.js +0 -4
- package/dist/ionic/p-976cffa3.js +0 -4
- package/dist/ionic/p-9a87fe2d.entry.js +0 -4
- package/dist/ionic/p-a049797d.system.entry.js +0 -4
- package/dist/ionic/p-a09686af.system.entry.js +0 -4
- package/dist/ionic/p-aa92906a.entry.js +0 -4
- package/dist/ionic/p-ae830361.entry.js +0 -4
- package/dist/ionic/p-aee73160.entry.js +0 -4
- package/dist/ionic/p-af19e17f.entry.js +0 -4
- package/dist/ionic/p-b5400a4e.entry.js +0 -4
- package/dist/ionic/p-bc35609f.system.entry.js +0 -4
- package/dist/ionic/p-c29e3a26.entry.js +0 -4
- package/dist/ionic/p-c5bbf6c1.system.entry.js +0 -4
- package/dist/ionic/p-d3e8f550.entry.js +0 -4
- package/dist/ionic/p-da1d2cb3.entry.js +0 -4
- package/dist/ionic/p-dbdccd05.entry.js +0 -4
- package/dist/ionic/p-dc480111.entry.js +0 -4
- package/dist/ionic/p-e4e3296d.system.js +0 -4
- package/dist/ionic/p-eb82a2ad.entry.js +0 -4
- package/dist/ionic/p-ebef8e16.system.entry.js +0 -4
- package/dist/ionic/p-f03983ca.system.entry.js +0 -4
- package/dist/ionic/p-f244eea8.system.entry.js +0 -4
- package/dist/ionic/p-f2e5ec87.entry.js +0 -4
- package/dist/ionic/p-f5b1cfba.entry.js +0 -4
- package/dist/ionic/p-f8ff5ad1.entry.js +0 -4
- package/dist/ionic/p-fa459c81.entry.js +0 -4
- package/dist/ionic/p-fa7120fe.entry.js +0 -4
- package/dist/ionic/p-fdb92b6d.entry.js +0 -4
- package/dist/ionic/p-fe5dca01.system.entry.js +0 -4
- package/dist/ionic/p-fe6ab8d4.entry.js +0 -4
- package/dist/ionic/p-fee6c9c2.system.entry.js +0 -4
package/components/ion-toggle.js
CHANGED
|
@@ -28,39 +28,6 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
28
28
|
this.lastDrag = 0;
|
|
29
29
|
this.inheritedAttributes = {};
|
|
30
30
|
this.didLoad = false;
|
|
31
|
-
this.activated = false;
|
|
32
|
-
/**
|
|
33
|
-
* The name of the control, which is submitted with the form data.
|
|
34
|
-
*/
|
|
35
|
-
this.name = this.inputId;
|
|
36
|
-
/**
|
|
37
|
-
* If `true`, the toggle is selected.
|
|
38
|
-
*/
|
|
39
|
-
this.checked = false;
|
|
40
|
-
/**
|
|
41
|
-
* If `true`, the user cannot interact with the toggle.
|
|
42
|
-
*/
|
|
43
|
-
this.disabled = false;
|
|
44
|
-
/**
|
|
45
|
-
* The value of the toggle does not mean if it's checked or not, use the `checked`
|
|
46
|
-
* property for that.
|
|
47
|
-
*
|
|
48
|
-
* The value of a toggle is analogous to the value of a `<input type="checkbox">`,
|
|
49
|
-
* it's only used when the toggle participates in a native `<form>`.
|
|
50
|
-
*/
|
|
51
|
-
this.value = 'on';
|
|
52
|
-
/**
|
|
53
|
-
* Enables the on/off accessibility switch labels within the toggle.
|
|
54
|
-
*/
|
|
55
|
-
this.enableOnOffLabels = config.get('toggleOnOffLabels');
|
|
56
|
-
/**
|
|
57
|
-
* Where to place the label relative to the input.
|
|
58
|
-
* `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL.
|
|
59
|
-
* `"end"`: The label will appear to the right of the toggle in LTR and to the left in RTL.
|
|
60
|
-
* `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
61
|
-
* `"stacked"`: The label will appear above the toggle regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
62
|
-
*/
|
|
63
|
-
this.labelPlacement = 'start';
|
|
64
31
|
this.setupGesture = async () => {
|
|
65
32
|
const { toggleTrack } = this;
|
|
66
33
|
if (toggleTrack) {
|
|
@@ -98,6 +65,17 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
98
65
|
}
|
|
99
66
|
return checked ? removeOutline : ellipseOutline;
|
|
100
67
|
};
|
|
68
|
+
this.activated = false;
|
|
69
|
+
this.color = undefined;
|
|
70
|
+
this.name = this.inputId;
|
|
71
|
+
this.checked = false;
|
|
72
|
+
this.disabled = false;
|
|
73
|
+
this.value = 'on';
|
|
74
|
+
this.enableOnOffLabels = config.get('toggleOnOffLabels');
|
|
75
|
+
this.labelPlacement = 'start';
|
|
76
|
+
this.justify = undefined;
|
|
77
|
+
this.alignment = undefined;
|
|
78
|
+
this.required = false;
|
|
101
79
|
}
|
|
102
80
|
disabledChanged() {
|
|
103
81
|
if (this.gesture) {
|
|
@@ -179,12 +157,12 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
179
157
|
return this.el.textContent !== '';
|
|
180
158
|
}
|
|
181
159
|
render() {
|
|
182
|
-
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment } = this;
|
|
160
|
+
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment, required } = this;
|
|
183
161
|
const mode = getIonMode(this);
|
|
184
162
|
const value = this.getValue();
|
|
185
163
|
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
|
186
164
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
187
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: '480c8d1145b183e8a06081340d9ffd65a113e5e9', onClick: this.onClick, class: createColorClasses(color, {
|
|
188
166
|
[mode]: true,
|
|
189
167
|
'in-item': hostContext('ion-item', el),
|
|
190
168
|
'toggle-activated': activated,
|
|
@@ -194,10 +172,10 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
194
172
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
195
173
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
196
174
|
[`toggle-${rtl}`]: true,
|
|
197
|
-
}) }, h("label", { key: '
|
|
175
|
+
}) }, h("label", { key: '175e148a9fcb48a7e19c4d6ccb6d73ee576d6dd8', class: "toggle-wrapper" }, h("input", Object.assign({ key: '2d28f75d495f0e13dccc3f5c9beba26b7c12ea26', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl), required: required }, this.inheritedAttributes)), h("div", { key: '12556bb7c0aff6f9fbfc3e2c91ce989b0f5c8048', class: {
|
|
198
176
|
'label-text-wrapper': true,
|
|
199
177
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
200
|
-
}, part: "label" }, h("slot", { key: '
|
|
178
|
+
}, part: "label" }, h("slot", { key: 'cac9052a882a5ba4205f3bee3fc4f34eefe5e2c9' })), h("div", { key: 'dcc82cc33d2d88712da3a5540d3c9ce4366999c3', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
201
179
|
}
|
|
202
180
|
get el() { return this; }
|
|
203
181
|
static get watchers() { return {
|
|
@@ -217,6 +195,7 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
217
195
|
"labelPlacement": [1, "label-placement"],
|
|
218
196
|
"justify": [1],
|
|
219
197
|
"alignment": [1],
|
|
198
|
+
"required": [4],
|
|
220
199
|
"activated": [32]
|
|
221
200
|
}, undefined, {
|
|
222
201
|
"disabled": ["disabledChanged"]
|
package/components/item.js
CHANGED
|
@@ -25,26 +25,18 @@ const Item = /*@__PURE__*/ proxyCustomElement(class Item extends HTMLElement {
|
|
|
25
25
|
this.inheritedAriaAttributes = {};
|
|
26
26
|
this.multipleInputs = false;
|
|
27
27
|
this.focusable = true;
|
|
28
|
-
|
|
29
|
-
* If `true`, a button tag will be rendered and the item will be tappable.
|
|
30
|
-
*/
|
|
28
|
+
this.color = undefined;
|
|
31
29
|
this.button = false;
|
|
32
|
-
|
|
33
|
-
* The icon to use when `detail` is set to `true`.
|
|
34
|
-
*/
|
|
30
|
+
this.detail = undefined;
|
|
35
31
|
this.detailIcon = chevronForward;
|
|
36
|
-
/**
|
|
37
|
-
* If `true`, the user cannot interact with the item.
|
|
38
|
-
*/
|
|
39
32
|
this.disabled = false;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
this.download = undefined;
|
|
34
|
+
this.href = undefined;
|
|
35
|
+
this.rel = undefined;
|
|
36
|
+
this.lines = undefined;
|
|
37
|
+
this.routerAnimation = undefined;
|
|
44
38
|
this.routerDirection = 'forward';
|
|
45
|
-
|
|
46
|
-
* The type of the button. Only used when an `onclick` or `button` property is present.
|
|
47
|
-
*/
|
|
39
|
+
this.target = undefined;
|
|
48
40
|
this.type = 'button';
|
|
49
41
|
}
|
|
50
42
|
buttonChanged() {
|
package/components/label.js
CHANGED
|
@@ -18,6 +18,8 @@ const Label = /*@__PURE__*/ proxyCustomElement(class Label extends HTMLElement {
|
|
|
18
18
|
this.ionColor = createEvent(this, "ionColor", 7);
|
|
19
19
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
20
20
|
this.inRange = false;
|
|
21
|
+
this.color = undefined;
|
|
22
|
+
this.position = undefined;
|
|
21
23
|
this.noAnimate = false;
|
|
22
24
|
}
|
|
23
25
|
componentWillLoad() {
|
package/components/list.js
CHANGED
|
@@ -14,9 +14,7 @@ const List = /*@__PURE__*/ proxyCustomElement(class List extends HTMLElement {
|
|
|
14
14
|
constructor() {
|
|
15
15
|
super();
|
|
16
16
|
this.__registerHost();
|
|
17
|
-
|
|
18
|
-
* If `true`, the list will have margin around it and rounded corners.
|
|
19
|
-
*/
|
|
17
|
+
this.lines = undefined;
|
|
20
18
|
this.inset = false;
|
|
21
19
|
}
|
|
22
20
|
/**
|
package/components/modal.js
CHANGED
|
@@ -1131,98 +1131,6 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
1131
1131
|
this.inline = false;
|
|
1132
1132
|
// Whether or not modal is being dismissed via gesture
|
|
1133
1133
|
this.gestureAnimationDismissing = false;
|
|
1134
|
-
this.presented = false;
|
|
1135
|
-
/** @internal */
|
|
1136
|
-
this.hasController = false;
|
|
1137
|
-
/**
|
|
1138
|
-
* If `true`, the keyboard will be automatically dismissed when the overlay is presented.
|
|
1139
|
-
*/
|
|
1140
|
-
this.keyboardClose = true;
|
|
1141
|
-
/**
|
|
1142
|
-
* A decimal value between 0 and 1 that indicates the
|
|
1143
|
-
* point after which the backdrop will begin to fade in
|
|
1144
|
-
* when using a sheet modal. Prior to this point, the
|
|
1145
|
-
* backdrop will be hidden and the content underneath
|
|
1146
|
-
* the sheet can be interacted with. This value is exclusive
|
|
1147
|
-
* meaning the backdrop will become active after the value
|
|
1148
|
-
* specified.
|
|
1149
|
-
*/
|
|
1150
|
-
this.backdropBreakpoint = 0;
|
|
1151
|
-
/**
|
|
1152
|
-
* The interaction behavior for the sheet modal when the handle is pressed.
|
|
1153
|
-
*
|
|
1154
|
-
* Defaults to `"none"`, which means the modal will not change size or position when the handle is pressed.
|
|
1155
|
-
* Set to `"cycle"` to let the modal cycle between available breakpoints when pressed.
|
|
1156
|
-
*
|
|
1157
|
-
* Handle behavior is unavailable when the `handle` property is set to `false` or
|
|
1158
|
-
* when the `breakpoints` property is not set (using a fullscreen or card modal).
|
|
1159
|
-
*/
|
|
1160
|
-
this.handleBehavior = 'none';
|
|
1161
|
-
/**
|
|
1162
|
-
* If `true`, the modal will be dismissed when the backdrop is clicked.
|
|
1163
|
-
*/
|
|
1164
|
-
this.backdropDismiss = true;
|
|
1165
|
-
/**
|
|
1166
|
-
* If `true`, a backdrop will be displayed behind the modal.
|
|
1167
|
-
* This property controls whether or not the backdrop
|
|
1168
|
-
* darkens the screen when the modal is presented.
|
|
1169
|
-
* It does not control whether or not the backdrop
|
|
1170
|
-
* is active or present in the DOM.
|
|
1171
|
-
*/
|
|
1172
|
-
this.showBackdrop = true;
|
|
1173
|
-
/**
|
|
1174
|
-
* If `true`, the modal will animate.
|
|
1175
|
-
*/
|
|
1176
|
-
this.animated = true;
|
|
1177
|
-
/**
|
|
1178
|
-
* If `true`, the modal will open. If `false`, the modal will close.
|
|
1179
|
-
* Use this if you need finer grained control over presentation, otherwise
|
|
1180
|
-
* just use the modalController or the `trigger` property.
|
|
1181
|
-
* Note: `isOpen` will not automatically be set back to `false` when
|
|
1182
|
-
* the modal dismisses. You will need to do that in your code.
|
|
1183
|
-
*/
|
|
1184
|
-
this.isOpen = false;
|
|
1185
|
-
/**
|
|
1186
|
-
* If `true`, the component passed into `ion-modal` will
|
|
1187
|
-
* automatically be mounted when the modal is created. The
|
|
1188
|
-
* component will remain mounted even when the modal is dismissed.
|
|
1189
|
-
* However, the component will be destroyed when the modal is
|
|
1190
|
-
* destroyed. This property is not reactive and should only be
|
|
1191
|
-
* used when initially creating a modal.
|
|
1192
|
-
*
|
|
1193
|
-
* Note: This feature only applies to inline modals in JavaScript
|
|
1194
|
-
* frameworks such as Angular, React, and Vue.
|
|
1195
|
-
*/
|
|
1196
|
-
this.keepContentsMounted = false;
|
|
1197
|
-
/**
|
|
1198
|
-
* If `true`, focus will not be allowed to move outside of this overlay.
|
|
1199
|
-
* If `false`, focus will be allowed to move outside of the overlay.
|
|
1200
|
-
*
|
|
1201
|
-
* In most scenarios this property should remain set to `true`. Setting
|
|
1202
|
-
* this property to `false` can cause severe accessibility issues as users
|
|
1203
|
-
* relying on assistive technologies may be able to move focus into
|
|
1204
|
-
* a confusing state. We recommend only setting this to `false` when
|
|
1205
|
-
* absolutely necessary.
|
|
1206
|
-
*
|
|
1207
|
-
* Developers may want to consider disabling focus trapping if this
|
|
1208
|
-
* overlay presents a non-Ionic overlay from a 3rd party library.
|
|
1209
|
-
* Developers would disable focus trapping on the Ionic overlay
|
|
1210
|
-
* when presenting the 3rd party overlay and then re-enable
|
|
1211
|
-
* focus trapping when dismissing the 3rd party overlay and moving
|
|
1212
|
-
* focus back to the Ionic overlay.
|
|
1213
|
-
*/
|
|
1214
|
-
this.focusTrap = true;
|
|
1215
|
-
/**
|
|
1216
|
-
* Determines whether or not a modal can dismiss
|
|
1217
|
-
* when calling the `dismiss` method.
|
|
1218
|
-
*
|
|
1219
|
-
* If the value is `true` or the value's function returns `true`, the modal will close when trying to dismiss.
|
|
1220
|
-
* If the value is `false` or the value's function returns `false`, the modal will not close when trying to dismiss.
|
|
1221
|
-
*
|
|
1222
|
-
* See https://ionicframework.com/docs/troubleshooting/runtime#accessing-this
|
|
1223
|
-
* if you need to access `this` from within the callback.
|
|
1224
|
-
*/
|
|
1225
|
-
this.canDismiss = true;
|
|
1226
1134
|
this.onHandleClick = () => {
|
|
1227
1135
|
const { sheetTransition, handleBehavior } = this;
|
|
1228
1136
|
if (handleBehavior !== 'cycle' || sheetTransition !== undefined) {
|
|
@@ -1260,6 +1168,31 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
1260
1168
|
el.dispatchEvent(ev);
|
|
1261
1169
|
}
|
|
1262
1170
|
};
|
|
1171
|
+
this.presented = false;
|
|
1172
|
+
this.hasController = false;
|
|
1173
|
+
this.overlayIndex = undefined;
|
|
1174
|
+
this.delegate = undefined;
|
|
1175
|
+
this.keyboardClose = true;
|
|
1176
|
+
this.enterAnimation = undefined;
|
|
1177
|
+
this.leaveAnimation = undefined;
|
|
1178
|
+
this.breakpoints = undefined;
|
|
1179
|
+
this.initialBreakpoint = undefined;
|
|
1180
|
+
this.backdropBreakpoint = 0;
|
|
1181
|
+
this.handle = undefined;
|
|
1182
|
+
this.handleBehavior = 'none';
|
|
1183
|
+
this.component = undefined;
|
|
1184
|
+
this.componentProps = undefined;
|
|
1185
|
+
this.cssClass = undefined;
|
|
1186
|
+
this.backdropDismiss = true;
|
|
1187
|
+
this.showBackdrop = true;
|
|
1188
|
+
this.animated = true;
|
|
1189
|
+
this.presentingElement = undefined;
|
|
1190
|
+
this.htmlAttributes = undefined;
|
|
1191
|
+
this.isOpen = false;
|
|
1192
|
+
this.trigger = undefined;
|
|
1193
|
+
this.keepContentsMounted = false;
|
|
1194
|
+
this.focusTrap = true;
|
|
1195
|
+
this.canDismiss = true;
|
|
1263
1196
|
}
|
|
1264
1197
|
onIsOpenChange(newValue, oldValue) {
|
|
1265
1198
|
if (newValue === true && oldValue === false) {
|
|
@@ -23,24 +23,9 @@ const PickerColumnOption = /*@__PURE__*/ proxyCustomElement(class PickerColumnOp
|
|
|
23
23
|
* clicking an enable option.
|
|
24
24
|
*/
|
|
25
25
|
this.pickerColumn = null;
|
|
26
|
-
/**
|
|
27
|
-
* The aria-label of the option.
|
|
28
|
-
*
|
|
29
|
-
* If the value changes, then it will trigger a
|
|
30
|
-
* re-render of the picker since it's a @State variable.
|
|
31
|
-
* Otherwise, the `aria-label` attribute cannot be updated
|
|
32
|
-
* after the component is loaded.
|
|
33
|
-
*/
|
|
34
26
|
this.ariaLabel = null;
|
|
35
|
-
/**
|
|
36
|
-
* If `true`, the user cannot interact with the picker column option.
|
|
37
|
-
*/
|
|
38
27
|
this.disabled = false;
|
|
39
|
-
|
|
40
|
-
* The color to use from your application's color palette.
|
|
41
|
-
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
42
|
-
* For more information on colors, see [theming](/docs/theming/basics).
|
|
43
|
-
*/
|
|
28
|
+
this.value = undefined;
|
|
44
29
|
this.color = 'primary';
|
|
45
30
|
}
|
|
46
31
|
/**
|
|
@@ -21,28 +21,6 @@ const PickerColumn = /*@__PURE__*/ proxyCustomElement(class PickerColumn extends
|
|
|
21
21
|
this.isColumnVisible = false;
|
|
22
22
|
this.canExitInputMode = true;
|
|
23
23
|
this.updateValueTextOnScroll = false;
|
|
24
|
-
this.ariaLabel = null;
|
|
25
|
-
this.isActive = false;
|
|
26
|
-
/**
|
|
27
|
-
* If `true`, the user cannot interact with the picker.
|
|
28
|
-
*/
|
|
29
|
-
this.disabled = false;
|
|
30
|
-
/**
|
|
31
|
-
* The color to use from your application's color palette.
|
|
32
|
-
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
33
|
-
* For more information on colors, see [theming](/docs/theming/basics).
|
|
34
|
-
*/
|
|
35
|
-
this.color = 'primary';
|
|
36
|
-
/**
|
|
37
|
-
* If `true`, tapping the picker will
|
|
38
|
-
* reveal a number input keyboard that lets
|
|
39
|
-
* the user type in values for each picker
|
|
40
|
-
* column. This is useful when working
|
|
41
|
-
* with time pickers.
|
|
42
|
-
*
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
this.numericInput = false;
|
|
46
24
|
this.centerPickerItemInView = (target, smooth = true, canExitInputMode = true) => {
|
|
47
25
|
const { isColumnVisible, scrollEl } = this;
|
|
48
26
|
if (isColumnVisible && scrollEl) {
|
|
@@ -409,6 +387,12 @@ const PickerColumn = /*@__PURE__*/ proxyCustomElement(class PickerColumn extends
|
|
|
409
387
|
*/
|
|
410
388
|
return (h("div", { ref: (el) => (this.assistiveFocusable = el), class: "assistive-focusable", role: "slider", tabindex: this.disabled ? undefined : 0, "aria-label": this.ariaLabel, "aria-valuemin": 0, "aria-valuemax": 0, "aria-valuenow": 0, "aria-valuetext": valueText, "aria-orientation": "vertical", onKeyDown: (ev) => this.onKeyDown(ev) }));
|
|
411
389
|
};
|
|
390
|
+
this.ariaLabel = null;
|
|
391
|
+
this.isActive = false;
|
|
392
|
+
this.disabled = false;
|
|
393
|
+
this.value = undefined;
|
|
394
|
+
this.color = 'primary';
|
|
395
|
+
this.numericInput = false;
|
|
412
396
|
}
|
|
413
397
|
ariaLabelChanged(newValue) {
|
|
414
398
|
this.ariaLabel = newValue;
|
|
@@ -32,6 +32,7 @@ const PickerColumnCmp = /*@__PURE__*/ proxyCustomElement(class PickerColumnCmp e
|
|
|
32
32
|
// Ex: column is created with 3 options. User updates the column data
|
|
33
33
|
// to have 5 options. The column will still think it only has 3 options.
|
|
34
34
|
this.colDidChange = false;
|
|
35
|
+
this.col = undefined;
|
|
35
36
|
}
|
|
36
37
|
colChanged() {
|
|
37
38
|
this.colDidChange = true;
|
package/components/popover.js
CHANGED
|
@@ -990,128 +990,6 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
990
990
|
this.lockController = createLockController();
|
|
991
991
|
this.inline = false;
|
|
992
992
|
this.focusDescendantOnPresent = false;
|
|
993
|
-
this.presented = false;
|
|
994
|
-
/** @internal */
|
|
995
|
-
this.hasController = false;
|
|
996
|
-
/**
|
|
997
|
-
* If `true`, the keyboard will be automatically dismissed when the overlay is presented.
|
|
998
|
-
*/
|
|
999
|
-
this.keyboardClose = true;
|
|
1000
|
-
/**
|
|
1001
|
-
* If `true`, the popover will be dismissed when the backdrop is clicked.
|
|
1002
|
-
*/
|
|
1003
|
-
this.backdropDismiss = true;
|
|
1004
|
-
/**
|
|
1005
|
-
* If `true`, a backdrop will be displayed behind the popover.
|
|
1006
|
-
* This property controls whether or not the backdrop
|
|
1007
|
-
* darkens the screen when the popover is presented.
|
|
1008
|
-
* It does not control whether or not the backdrop
|
|
1009
|
-
* is active or present in the DOM.
|
|
1010
|
-
*/
|
|
1011
|
-
this.showBackdrop = true;
|
|
1012
|
-
/**
|
|
1013
|
-
* If `true`, the popover will be translucent.
|
|
1014
|
-
* Only applies when the mode is `"ios"` and the device supports
|
|
1015
|
-
* [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).
|
|
1016
|
-
*/
|
|
1017
|
-
this.translucent = false;
|
|
1018
|
-
/**
|
|
1019
|
-
* If `true`, the popover will animate.
|
|
1020
|
-
*/
|
|
1021
|
-
this.animated = true;
|
|
1022
|
-
/**
|
|
1023
|
-
* Describes what kind of interaction with the trigger that
|
|
1024
|
-
* should cause the popover to open. Does not apply when the `trigger`
|
|
1025
|
-
* property is `undefined`.
|
|
1026
|
-
* If `"click"`, the popover will be presented when the trigger is left clicked.
|
|
1027
|
-
* If `"hover"`, the popover will be presented when a pointer hovers over the trigger.
|
|
1028
|
-
* If `"context-menu"`, the popover will be presented when the trigger is right
|
|
1029
|
-
* clicked on desktop and long pressed on mobile. This will also prevent your
|
|
1030
|
-
* device's normal context menu from appearing.
|
|
1031
|
-
*/
|
|
1032
|
-
this.triggerAction = 'click';
|
|
1033
|
-
/**
|
|
1034
|
-
* Describes how to calculate the popover width.
|
|
1035
|
-
* If `"cover"`, the popover width will match the width of the trigger.
|
|
1036
|
-
* If `"auto"`, the popover width will be set to a static default value.
|
|
1037
|
-
*/
|
|
1038
|
-
this.size = 'auto';
|
|
1039
|
-
/**
|
|
1040
|
-
* If `true`, the popover will be automatically
|
|
1041
|
-
* dismissed when the content has been clicked.
|
|
1042
|
-
*/
|
|
1043
|
-
this.dismissOnSelect = false;
|
|
1044
|
-
/**
|
|
1045
|
-
* Describes what to position the popover relative to.
|
|
1046
|
-
* If `"trigger"`, the popover will be positioned relative
|
|
1047
|
-
* to the trigger button. If passing in an event, this is
|
|
1048
|
-
* determined via event.target.
|
|
1049
|
-
* If `"event"`, the popover will be positioned relative
|
|
1050
|
-
* to the x/y coordinates of the trigger action. If passing
|
|
1051
|
-
* in an event, this is determined via event.clientX and event.clientY.
|
|
1052
|
-
*/
|
|
1053
|
-
this.reference = 'trigger';
|
|
1054
|
-
/**
|
|
1055
|
-
* Describes which side of the `reference` point to position
|
|
1056
|
-
* the popover on. The `"start"` and `"end"` values are RTL-aware,
|
|
1057
|
-
* and the `"left"` and `"right"` values are not.
|
|
1058
|
-
*/
|
|
1059
|
-
this.side = 'bottom';
|
|
1060
|
-
/**
|
|
1061
|
-
* If `true`, the popover will display an arrow that points at the
|
|
1062
|
-
* `reference` when running in `ios` mode. Does not apply in `md` mode.
|
|
1063
|
-
*/
|
|
1064
|
-
this.arrow = true;
|
|
1065
|
-
/**
|
|
1066
|
-
* If `true`, the popover will open. If `false`, the popover will close.
|
|
1067
|
-
* Use this if you need finer grained control over presentation, otherwise
|
|
1068
|
-
* just use the popoverController or the `trigger` property.
|
|
1069
|
-
* Note: `isOpen` will not automatically be set back to `false` when
|
|
1070
|
-
* the popover dismisses. You will need to do that in your code.
|
|
1071
|
-
*/
|
|
1072
|
-
this.isOpen = false;
|
|
1073
|
-
/**
|
|
1074
|
-
* @internal
|
|
1075
|
-
*
|
|
1076
|
-
* If `true` the popover will not register its own keyboard event handlers.
|
|
1077
|
-
* This allows the contents of the popover to handle their own keyboard interactions.
|
|
1078
|
-
*
|
|
1079
|
-
* If `false`, the popover will register its own keyboard event handlers for
|
|
1080
|
-
* navigating `ion-list` items within a popover (up/down/home/end/etc.).
|
|
1081
|
-
* This will also cancel browser keyboard event bindings to prevent scroll
|
|
1082
|
-
* behavior in a popover using a list of items.
|
|
1083
|
-
*/
|
|
1084
|
-
this.keyboardEvents = false;
|
|
1085
|
-
/**
|
|
1086
|
-
* If `true`, focus will not be allowed to move outside of this overlay.
|
|
1087
|
-
* If `false`, focus will be allowed to move outside of the overlay.
|
|
1088
|
-
*
|
|
1089
|
-
* In most scenarios this property should remain set to `true`. Setting
|
|
1090
|
-
* this property to `false` can cause severe accessibility issues as users
|
|
1091
|
-
* relying on assistive technologies may be able to move focus into
|
|
1092
|
-
* a confusing state. We recommend only setting this to `false` when
|
|
1093
|
-
* absolutely necessary.
|
|
1094
|
-
*
|
|
1095
|
-
* Developers may want to consider disabling focus trapping if this
|
|
1096
|
-
* overlay presents a non-Ionic overlay from a 3rd party library.
|
|
1097
|
-
* Developers would disable focus trapping on the Ionic overlay
|
|
1098
|
-
* when presenting the 3rd party overlay and then re-enable
|
|
1099
|
-
* focus trapping when dismissing the 3rd party overlay and moving
|
|
1100
|
-
* focus back to the Ionic overlay.
|
|
1101
|
-
*/
|
|
1102
|
-
this.focusTrap = true;
|
|
1103
|
-
/**
|
|
1104
|
-
* If `true`, the component passed into `ion-popover` will
|
|
1105
|
-
* automatically be mounted when the popover is created. The
|
|
1106
|
-
* component will remain mounted even when the popover is dismissed.
|
|
1107
|
-
* However, the component will be destroyed when the popover is
|
|
1108
|
-
* destroyed. This property is not reactive and should only be
|
|
1109
|
-
* used when initially creating a popover.
|
|
1110
|
-
*
|
|
1111
|
-
* Note: This feature only applies to inline popovers in JavaScript
|
|
1112
|
-
* frameworks such as Angular, React, and Vue.
|
|
1113
|
-
*/
|
|
1114
|
-
this.keepContentsMounted = false;
|
|
1115
993
|
this.onBackdropTap = () => {
|
|
1116
994
|
this.dismiss(undefined, BACKDROP);
|
|
1117
995
|
};
|
|
@@ -1159,6 +1037,34 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
1159
1037
|
}
|
|
1160
1038
|
this.destroyDismissInteraction = configureDismissInteraction(triggerEl, triggerAction, el, parentPopover);
|
|
1161
1039
|
};
|
|
1040
|
+
this.presented = false;
|
|
1041
|
+
this.hasController = false;
|
|
1042
|
+
this.delegate = undefined;
|
|
1043
|
+
this.overlayIndex = undefined;
|
|
1044
|
+
this.enterAnimation = undefined;
|
|
1045
|
+
this.leaveAnimation = undefined;
|
|
1046
|
+
this.component = undefined;
|
|
1047
|
+
this.componentProps = undefined;
|
|
1048
|
+
this.keyboardClose = true;
|
|
1049
|
+
this.cssClass = undefined;
|
|
1050
|
+
this.backdropDismiss = true;
|
|
1051
|
+
this.event = undefined;
|
|
1052
|
+
this.showBackdrop = true;
|
|
1053
|
+
this.translucent = false;
|
|
1054
|
+
this.animated = true;
|
|
1055
|
+
this.htmlAttributes = undefined;
|
|
1056
|
+
this.triggerAction = 'click';
|
|
1057
|
+
this.trigger = undefined;
|
|
1058
|
+
this.size = 'auto';
|
|
1059
|
+
this.dismissOnSelect = false;
|
|
1060
|
+
this.reference = 'trigger';
|
|
1061
|
+
this.side = 'bottom';
|
|
1062
|
+
this.alignment = undefined;
|
|
1063
|
+
this.arrow = true;
|
|
1064
|
+
this.isOpen = false;
|
|
1065
|
+
this.keyboardEvents = false;
|
|
1066
|
+
this.focusTrap = true;
|
|
1067
|
+
this.keepContentsMounted = false;
|
|
1162
1068
|
}
|
|
1163
1069
|
onTriggerChange() {
|
|
1164
1070
|
this.configureTriggerInteraction();
|
|
@@ -13,14 +13,6 @@ const RadioGroup = /*@__PURE__*/ proxyCustomElement(class RadioGroup extends HTM
|
|
|
13
13
|
this.ionValueChange = createEvent(this, "ionValueChange", 7);
|
|
14
14
|
this.inputId = `ion-rg-${radioGroupIds++}`;
|
|
15
15
|
this.labelId = `${this.inputId}-lbl`;
|
|
16
|
-
/**
|
|
17
|
-
* If `true`, the radios can be deselected.
|
|
18
|
-
*/
|
|
19
|
-
this.allowEmptySelection = false;
|
|
20
|
-
/**
|
|
21
|
-
* The name of the control, which is submitted with the form data.
|
|
22
|
-
*/
|
|
23
|
-
this.name = this.inputId;
|
|
24
16
|
this.setRadioTabindex = (value) => {
|
|
25
17
|
const radios = this.getRadios();
|
|
26
18
|
// Get the first radio that is not disabled and the checked one
|
|
@@ -67,6 +59,11 @@ const RadioGroup = /*@__PURE__*/ proxyCustomElement(class RadioGroup extends HTM
|
|
|
67
59
|
}
|
|
68
60
|
}
|
|
69
61
|
};
|
|
62
|
+
this.allowEmptySelection = false;
|
|
63
|
+
this.compareWith = undefined;
|
|
64
|
+
this.name = this.inputId;
|
|
65
|
+
this.required = false;
|
|
66
|
+
this.value = undefined;
|
|
70
67
|
}
|
|
71
68
|
valueChanged(value) {
|
|
72
69
|
this.setRadioTabindex(value);
|
|
@@ -166,10 +163,10 @@ const RadioGroup = /*@__PURE__*/ proxyCustomElement(class RadioGroup extends HTM
|
|
|
166
163
|
radioToFocus === null || radioToFocus === void 0 ? void 0 : radioToFocus.setFocus();
|
|
167
164
|
}
|
|
168
165
|
render() {
|
|
169
|
-
const { label, labelId, el, name, value } = this;
|
|
166
|
+
const { label, labelId, el, name, value, required } = this;
|
|
170
167
|
const mode = getIonMode(this);
|
|
171
168
|
renderHiddenInput(true, el, name, value, false);
|
|
172
|
-
return h(Host, { key: '
|
|
169
|
+
return h(Host, { key: '1b86c9ba343929ffd5579dd5d1c18ca616b2e9aa', role: "radiogroup", "aria-labelledby": label ? labelId : null, onClick: this.onClick, class: mode, "aria-required": `${required}` });
|
|
173
170
|
}
|
|
174
171
|
get el() { return this; }
|
|
175
172
|
static get watchers() { return {
|
|
@@ -179,6 +176,7 @@ const RadioGroup = /*@__PURE__*/ proxyCustomElement(class RadioGroup extends HTM
|
|
|
179
176
|
"allowEmptySelection": [4, "allow-empty-selection"],
|
|
180
177
|
"compareWith": [1, "compare-with"],
|
|
181
178
|
"name": [1],
|
|
179
|
+
"required": [4],
|
|
182
180
|
"value": [1032],
|
|
183
181
|
"setFocus": [64]
|
|
184
182
|
}, [[4, "keydown", "onKeydown"]], {
|
package/components/radio.js
CHANGED
|
@@ -58,31 +58,6 @@ const Radio = /*@__PURE__*/ proxyCustomElement(class Radio extends HTMLElement {
|
|
|
58
58
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
59
59
|
this.inputId = `ion-rb-${radioButtonIds++}`;
|
|
60
60
|
this.radioGroup = null;
|
|
61
|
-
/**
|
|
62
|
-
* If `true`, the radio is selected.
|
|
63
|
-
*/
|
|
64
|
-
this.checked = false;
|
|
65
|
-
/**
|
|
66
|
-
* The tabindex of the radio button.
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
this.buttonTabindex = -1;
|
|
70
|
-
/**
|
|
71
|
-
* The name of the control, which is submitted with the form data.
|
|
72
|
-
*/
|
|
73
|
-
this.name = this.inputId;
|
|
74
|
-
/**
|
|
75
|
-
* If `true`, the user cannot interact with the radio.
|
|
76
|
-
*/
|
|
77
|
-
this.disabled = false;
|
|
78
|
-
/**
|
|
79
|
-
* Where to place the label relative to the radio.
|
|
80
|
-
* `"start"`: The label will appear to the left of the radio in LTR and to the right in RTL.
|
|
81
|
-
* `"end"`: The label will appear to the right of the radio in LTR and to the left in RTL.
|
|
82
|
-
* `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
|
|
83
|
-
* `"stacked"`: The label will appear above the radio regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
|
|
84
|
-
*/
|
|
85
|
-
this.labelPlacement = 'start';
|
|
86
61
|
this.updateState = () => {
|
|
87
62
|
if (this.radioGroup) {
|
|
88
63
|
const { compareWith, value: radioGroupValue } = this.radioGroup;
|
|
@@ -116,6 +91,15 @@ const Radio = /*@__PURE__*/ proxyCustomElement(class Radio extends HTMLElement {
|
|
|
116
91
|
this.onBlur = () => {
|
|
117
92
|
this.ionBlur.emit();
|
|
118
93
|
};
|
|
94
|
+
this.checked = false;
|
|
95
|
+
this.buttonTabindex = -1;
|
|
96
|
+
this.color = undefined;
|
|
97
|
+
this.name = this.inputId;
|
|
98
|
+
this.disabled = false;
|
|
99
|
+
this.value = undefined;
|
|
100
|
+
this.labelPlacement = 'start';
|
|
101
|
+
this.justify = undefined;
|
|
102
|
+
this.alignment = undefined;
|
|
119
103
|
}
|
|
120
104
|
valueChanged() {
|
|
121
105
|
/**
|
|
@@ -12,15 +12,6 @@ const RippleEffect = /*@__PURE__*/ proxyCustomElement(class RippleEffect extends
|
|
|
12
12
|
super();
|
|
13
13
|
this.__registerHost();
|
|
14
14
|
this.__attachShadow();
|
|
15
|
-
/**
|
|
16
|
-
* Sets the type of ripple-effect:
|
|
17
|
-
*
|
|
18
|
-
* - `bounded`: the ripple effect expands from the user's click position
|
|
19
|
-
* - `unbounded`: the ripple effect expands from the center of the button and overflows the container.
|
|
20
|
-
*
|
|
21
|
-
* NOTE: Surfaces for bounded ripples should have the overflow property set to hidden,
|
|
22
|
-
* while surfaces for unbounded ripples should have it set to visible.
|
|
23
|
-
*/
|
|
24
15
|
this.type = 'bounded';
|
|
25
16
|
}
|
|
26
17
|
/**
|