@ionic/core 8.4.2-dev.11736277041.14f34ba1 → 8.4.2-dev.11736797843.16cc5058
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 +32 -16
- package/components/alert.js +36 -18
- package/components/backdrop.js +9 -0
- package/components/button.js +25 -17
- package/components/buttons.js +12 -0
- package/components/checkbox.js +32 -9
- package/components/content.js +22 -2
- package/components/focus-visible.js +34 -4
- package/components/header.js +9 -2
- package/components/ion-accordion-group.js +17 -2
- package/components/ion-accordion.js +28 -8
- package/components/ion-back-button.js +8 -7
- package/components/ion-badge.js +0 -1
- package/components/ion-breadcrumb.js +17 -13
- package/components/ion-breadcrumbs.js +12 -6
- package/components/ion-card-header.js +5 -1
- package/components/ion-card-subtitle.js +0 -1
- package/components/ion-card-title.js +0 -1
- package/components/ion-card.js +13 -6
- package/components/ion-chip.js +6 -1
- package/components/ion-col.js +0 -24
- package/components/ion-datetime-button.js +12 -8
- package/components/ion-datetime.js +117 -42
- package/components/ion-fab-button.js +33 -14
- package/components/ion-fab-list.js +6 -0
- package/components/ion-fab.js +9 -2
- package/components/ion-footer.js +10 -3
- package/components/ion-grid.js +3 -0
- package/components/ion-img.js +0 -4
- package/components/ion-infinite-scroll-content.js +0 -2
- package/components/ion-infinite-scroll.js +26 -4
- package/components/ion-input-password-toggle.js +4 -4
- package/components/ion-input.js +65 -35
- package/components/ion-item-divider.js +7 -1
- package/components/ion-item-option.js +12 -8
- package/components/ion-item-options.js +4 -0
- package/components/ion-item-sliding.js +3 -0
- package/components/ion-loading.js +31 -12
- package/components/ion-menu-button.js +12 -5
- package/components/ion-menu-toggle.js +8 -3
- package/components/ion-menu.js +21 -3
- package/components/ion-nav-link.js +4 -4
- package/components/ion-nav.js +3 -5
- package/components/ion-note.js +0 -1
- package/components/ion-picker-legacy.js +39 -17
- package/components/ion-progress-bar.js +16 -1
- package/components/ion-range.js +61 -19
- package/components/ion-refresher-content.js +0 -4
- package/components/ion-refresher.js +50 -0
- package/components/ion-reorder-group.js +3 -0
- package/components/ion-route-redirect.js +0 -2
- package/components/ion-route.js +6 -4
- package/components/ion-router-link.js +5 -6
- package/components/ion-router-outlet.js +6 -3
- package/components/ion-router.js +18 -0
- package/components/ion-searchbar.js +75 -24
- package/components/ion-segment-button.js +17 -6
- package/components/ion-segment-view.js +3 -1
- package/components/ion-segment.js +20 -7
- package/components/ion-select-option.js +3 -1
- package/components/ion-select.js +45 -20
- package/components/ion-skeleton-text.js +3 -0
- package/components/ion-split-pane.js +8 -1
- package/components/ion-tab-bar.js +5 -2
- package/components/ion-tab-button.js +8 -8
- package/components/ion-tab.js +1 -3
- package/components/ion-tabs.js +2 -2
- package/components/ion-text.js +0 -1
- package/components/ion-textarea.js +59 -29
- package/components/ion-toast.js +48 -23
- package/components/ion-toggle.js +33 -10
- package/components/item.js +16 -8
- package/components/label.js +0 -2
- package/components/list-header.js +0 -2
- package/components/list.js +3 -1
- package/components/modal.js +92 -25
- package/components/picker-column-option.js +16 -1
- package/components/picker-column.js +22 -6
- package/components/picker-column2.js +0 -1
- package/components/popover.js +122 -28
- package/components/radio-group.js +8 -4
- package/components/radio.js +25 -9
- package/components/ripple-effect.js +9 -0
- package/components/select-modal.js +3 -5
- package/components/select-popover.js +3 -4
- package/components/spinner.js +3 -3
- package/components/title.js +0 -2
- package/components/toolbar.js +0 -1
- package/dist/cjs/{app-globals-21afee77.js → app-globals-d2d85416.js} +1 -1
- package/dist/cjs/{button-active-3f2f60b4.js → button-active-8d4c8099.js} +1 -1
- package/dist/cjs/{focus-visible-8657bbbf.js → focus-visible-7a0ce04f.js} +34 -4
- package/dist/cjs/{hardware-back-button-9e8a2c4f.js → hardware-back-button-f0972dab.js} +2 -2
- package/dist/cjs/{index-f05acd21.js → index-213cabf1.js} +4 -4
- package/dist/cjs/{index-73f75efb.js → index-2e7a27db.js} +1205 -837
- package/dist/cjs/{index-8e789962.js → index-38a015a8.js} +2 -2
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/ion-accordion_2.cjs.entry.js +47 -12
- package/dist/cjs/ion-action-sheet.cjs.entry.js +37 -21
- package/dist/cjs/ion-alert.cjs.entry.js +41 -23
- package/dist/cjs/ion-app_8.cjs.entry.js +66 -20
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -3
- package/dist/cjs/ion-back-button.cjs.entry.js +10 -9
- package/dist/cjs/ion-backdrop.cjs.entry.js +11 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +31 -21
- package/dist/cjs/ion-button_2.cjs.entry.js +27 -19
- package/dist/cjs/ion-card_5.cjs.entry.js +20 -11
- package/dist/cjs/ion-checkbox.cjs.entry.js +34 -11
- package/dist/cjs/ion-chip.cjs.entry.js +8 -3
- package/dist/cjs/ion-col_3.cjs.entry.js +5 -26
- package/dist/cjs/ion-datetime-button.cjs.entry.js +14 -10
- package/dist/cjs/ion-datetime_3.cjs.entry.js +161 -65
- package/dist/cjs/ion-fab_3.cjs.entry.js +50 -18
- package/dist/cjs/ion-img.cjs.entry.js +2 -6
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +28 -8
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +6 -6
- package/dist/cjs/ion-input.cjs.entry.js +67 -37
- package/dist/cjs/ion-item-option_3.cjs.entry.js +21 -10
- package/dist/cjs/ion-item_8.cjs.entry.js +31 -17
- package/dist/cjs/ion-loading.cjs.entry.js +35 -16
- package/dist/cjs/ion-menu_3.cjs.entry.js +46 -16
- package/dist/cjs/ion-modal.cjs.entry.js +97 -30
- package/dist/cjs/ion-nav_2.cjs.entry.js +10 -12
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +18 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +24 -8
- package/dist/cjs/ion-picker.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +127 -33
- package/dist/cjs/ion-progress-bar.cjs.entry.js +18 -3
- package/dist/cjs/ion-radio_2.cjs.entry.js +35 -15
- package/dist/cjs/ion-range.cjs.entry.js +63 -21
- package/dist/cjs/ion-refresher_2.cjs.entry.js +52 -6
- package/dist/cjs/ion-reorder_2.cjs.entry.js +5 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +11 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +31 -14
- package/dist/cjs/ion-searchbar.cjs.entry.js +77 -26
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +4 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +39 -15
- package/dist/cjs/ion-select-modal.cjs.entry.js +7 -9
- package/dist/cjs/ion-select_3.cjs.entry.js +55 -29
- package/dist/cjs/ion-spinner.cjs.entry.js +5 -5
- package/dist/cjs/ion-split-pane.cjs.entry.js +10 -3
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +15 -12
- package/dist/cjs/ion-tab_2.cjs.entry.js +4 -6
- package/dist/cjs/ion-text.cjs.entry.js +2 -3
- package/dist/cjs/ion-textarea.cjs.entry.js +61 -31
- package/dist/cjs/ion-toast.cjs.entry.js +52 -27
- package/dist/cjs/ion-toggle.cjs.entry.js +35 -12
- package/dist/cjs/{ionic-global-d9a8bb5b.js → ionic-global-3c758a1a.js} +1 -1
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-cf40433b.js → ios.transition-ac964d6c.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{md.transition-ededf99f.js → md.transition-45089eda.js} +3 -3
- package/dist/cjs/{overlays-aa669eb8.js → overlays-56fecd6c.js} +2 -2
- package/dist/cjs/{status-tap-37681226.js → status-tap-84e22ef3.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion.js +38 -8
- package/dist/collection/components/accordion-group/accordion-group.js +29 -2
- package/dist/collection/components/action-sheet/action-sheet.js +68 -20
- package/dist/collection/components/alert/alert.js +76 -22
- package/dist/collection/components/back-button/back-button.js +23 -8
- package/dist/collection/components/backdrop/backdrop.js +15 -0
- package/dist/collection/components/badge/badge.js +2 -3
- package/dist/collection/components/breadcrumb/breadcrumb.js +44 -14
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +20 -6
- package/dist/collection/components/button/button.js +58 -18
- package/dist/collection/components/buttons/buttons.js +14 -0
- package/dist/collection/components/card/card.js +34 -7
- package/dist/collection/components/card-header/card-header.js +9 -1
- package/dist/collection/components/card-subtitle/card-subtitle.js +2 -3
- package/dist/collection/components/card-title/card-title.js +2 -3
- package/dist/collection/components/checkbox/checkbox.js +50 -9
- package/dist/collection/components/chip/chip.js +12 -1
- package/dist/collection/components/col/col.js +48 -26
- package/dist/collection/components/content/content.js +36 -2
- package/dist/collection/components/datetime/datetime.js +181 -46
- package/dist/collection/components/datetime-button/datetime-button.js +18 -8
- package/dist/collection/components/fab/fab.js +17 -2
- package/dist/collection/components/fab-button/fab-button.js +62 -15
- package/dist/collection/components/fab-list/fab-list.js +10 -0
- package/dist/collection/components/footer/footer.js +14 -3
- package/dist/collection/components/grid/grid.js +5 -0
- package/dist/collection/components/header/header.js +13 -2
- package/dist/collection/components/img/img.js +4 -4
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +32 -4
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +4 -2
- package/dist/collection/components/input/input.js +134 -36
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +12 -4
- package/dist/collection/components/item/item.js +43 -9
- package/dist/collection/components/item-divider/item-divider.js +11 -1
- package/dist/collection/components/item-option/item-option.js +28 -8
- package/dist/collection/components/item-options/item-options.js +6 -0
- package/dist/collection/components/item-sliding/item-sliding.js +5 -0
- package/dist/collection/components/label/label.js +4 -2
- package/dist/collection/components/list/list.js +7 -1
- package/dist/collection/components/list-header/list-header.js +4 -4
- package/dist/collection/components/loading/loading.js +69 -16
- package/dist/collection/components/menu/menu.js +35 -3
- package/dist/collection/components/menu-button/menu-button.js +22 -5
- package/dist/collection/components/menu-toggle/menu-toggle.js +12 -3
- package/dist/collection/components/modal/modal.js +147 -32
- package/dist/collection/components/nav/nav.js +18 -8
- package/dist/collection/components/nav-link/nav-link.js +14 -6
- package/dist/collection/components/note/note.js +2 -3
- package/dist/collection/components/picker-column/picker-column.js +30 -6
- package/dist/collection/components/picker-column-option/picker-column-option.js +22 -1
- package/dist/collection/components/picker-legacy/picker.js +75 -21
- package/dist/collection/components/picker-legacy-column/picker-column.js +3 -2
- package/dist/collection/components/popover/popover.js +181 -33
- package/dist/collection/components/progress-bar/progress-bar.js +26 -1
- package/dist/collection/components/radio/radio.js +39 -9
- package/dist/collection/components/radio-group/radio-group.js +16 -4
- package/dist/collection/components/range/range.js +93 -19
- package/dist/collection/components/refresher/refresher.js +62 -0
- package/dist/collection/components/refresher-content/refresher-content.js +8 -4
- package/dist/collection/components/reorder-group/reorder-group.js +5 -0
- package/dist/collection/components/ripple-effect/ripple-effect.js +11 -0
- package/dist/collection/components/route/route.js +19 -7
- package/dist/collection/components/route-redirect/route-redirect.js +4 -4
- package/dist/collection/components/router/router.js +22 -0
- package/dist/collection/components/router-link/router-link.js +18 -7
- package/dist/collection/components/router-outlet/router-outlet.js +19 -6
- package/dist/collection/components/searchbar/searchbar.js +119 -24
- package/dist/collection/components/segment/segment.js +32 -7
- package/dist/collection/components/segment-button/segment-button.js +27 -6
- package/dist/collection/components/segment-view/segment-view.js +5 -1
- package/dist/collection/components/select/select.js +83 -20
- package/dist/collection/components/select-modal/select-modal.ios.css +186 -0
- package/dist/collection/components/select-modal/select-modal.js +8 -4
- package/dist/collection/components/select-option/select-option.js +7 -1
- package/dist/collection/components/select-popover/select-popover.js +13 -4
- package/dist/collection/components/skeleton-text/skeleton-text.js +5 -0
- package/dist/collection/components/spinner/spinner.js +11 -3
- package/dist/collection/components/split-pane/split-pane.js +14 -1
- package/dist/collection/components/tab/tab.js +10 -4
- package/dist/collection/components/tab-bar/tab-bar.js +11 -2
- package/dist/collection/components/tab-button/tab-button.js +24 -8
- package/dist/collection/components/tabs/tabs.js +4 -2
- package/dist/collection/components/text/text.js +2 -3
- package/dist/collection/components/textarea/textarea.js +116 -30
- package/dist/collection/components/title/title.js +4 -4
- package/dist/collection/components/toast/toast.js +97 -28
- package/dist/collection/components/toggle/toggle.js +51 -10
- package/dist/collection/components/toolbar/toolbar.js +2 -1
- package/dist/collection/utils/focus-visible.js +34 -4
- package/dist/docs.d.ts +8 -0
- package/dist/docs.json +1710 -572
- package/dist/esm/{app-globals-5dbb61a5.js → app-globals-1318774c.js} +1 -1
- package/dist/esm/{button-active-f6503382.js → button-active-10b36beb.js} +1 -1
- package/dist/esm/{focus-visible-ea5a37bc.js → focus-visible-dd40d69f.js} +34 -4
- package/dist/esm/{hardware-back-button-06ef3c3e.js → hardware-back-button-0a284222.js} +2 -2
- package/dist/esm/{index-3ad7f18b.js → index-13b48bcb.js} +4 -4
- package/dist/esm/{index-24b48b06.js → index-ed9a6c67.js} +2 -2
- package/dist/esm/{index-28849c61.js → index-fcdfc1aa.js} +1205 -837
- package/dist/esm/index.js +8 -8
- package/dist/esm/ion-accordion_2.entry.js +47 -12
- package/dist/esm/ion-action-sheet.entry.js +37 -21
- package/dist/esm/ion-alert.entry.js +41 -23
- package/dist/esm/ion-app_8.entry.js +66 -20
- package/dist/esm/ion-avatar_3.entry.js +2 -3
- package/dist/esm/ion-back-button.entry.js +10 -9
- package/dist/esm/ion-backdrop.entry.js +11 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +31 -21
- package/dist/esm/ion-button_2.entry.js +27 -19
- package/dist/esm/ion-card_5.entry.js +20 -11
- package/dist/esm/ion-checkbox.entry.js +34 -11
- package/dist/esm/ion-chip.entry.js +8 -3
- package/dist/esm/ion-col_3.entry.js +5 -26
- package/dist/esm/ion-datetime-button.entry.js +14 -10
- package/dist/esm/ion-datetime_3.entry.js +161 -65
- package/dist/esm/ion-fab_3.entry.js +50 -18
- package/dist/esm/ion-img.entry.js +2 -6
- package/dist/esm/ion-infinite-scroll_2.entry.js +28 -8
- package/dist/esm/ion-input-password-toggle.entry.js +6 -6
- package/dist/esm/ion-input.entry.js +67 -37
- package/dist/esm/ion-item-option_3.entry.js +21 -10
- package/dist/esm/ion-item_8.entry.js +31 -17
- package/dist/esm/ion-loading.entry.js +35 -16
- package/dist/esm/ion-menu_3.entry.js +46 -16
- package/dist/esm/ion-modal.entry.js +97 -30
- package/dist/esm/ion-nav_2.entry.js +10 -12
- package/dist/esm/ion-picker-column-option.entry.js +18 -3
- package/dist/esm/ion-picker-column.entry.js +24 -8
- package/dist/esm/ion-picker.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +127 -33
- package/dist/esm/ion-progress-bar.entry.js +18 -3
- package/dist/esm/ion-radio_2.entry.js +35 -15
- package/dist/esm/ion-range.entry.js +63 -21
- package/dist/esm/ion-refresher_2.entry.js +52 -6
- package/dist/esm/ion-reorder_2.entry.js +5 -2
- package/dist/esm/ion-ripple-effect.entry.js +11 -2
- package/dist/esm/ion-route_4.entry.js +31 -14
- package/dist/esm/ion-searchbar.entry.js +77 -26
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +4 -2
- package/dist/esm/ion-segment_2.entry.js +39 -15
- package/dist/esm/ion-select-modal.entry.js +7 -9
- package/dist/esm/ion-select_3.entry.js +55 -29
- package/dist/esm/ion-spinner.entry.js +5 -5
- package/dist/esm/ion-split-pane.entry.js +10 -3
- package/dist/esm/ion-tab-bar_2.entry.js +15 -12
- package/dist/esm/ion-tab_2.entry.js +4 -6
- package/dist/esm/ion-text.entry.js +2 -3
- package/dist/esm/ion-textarea.entry.js +61 -31
- package/dist/esm/ion-toast.entry.js +52 -27
- package/dist/esm/ion-toggle.entry.js +35 -12
- package/dist/esm/{ionic-global-c81d82ab.js → ionic-global-6b9f2b5a.js} +1 -1
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-4ee1a3af.js → ios.transition-1cb16beb.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-5106a0d2.js → md.transition-20f80721.js} +3 -3
- package/dist/esm/{overlays-e7b9d6d9.js → overlays-6163edd5.js} +2 -2
- package/dist/esm/{status-tap-f472b09f.js → status-tap-6971c722.js} +1 -1
- package/dist/esm-es5/app-globals-1318774c.js +4 -0
- package/dist/esm-es5/{button-active-f6503382.js → button-active-10b36beb.js} +1 -1
- package/dist/esm-es5/focus-visible-dd40d69f.js +4 -0
- package/dist/esm-es5/{hardware-back-button-06ef3c3e.js → hardware-back-button-0a284222.js} +1 -1
- package/dist/esm-es5/{index-3ad7f18b.js → index-13b48bcb.js} +1 -1
- package/dist/esm-es5/{index-24b48b06.js → index-ed9a6c67.js} +1 -1
- package/dist/esm-es5/index-fcdfc1aa.js +5 -0
- 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-c81d82ab.js → ionic-global-6b9f2b5a.js} +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-4ee1a3af.js → ios.transition-1cb16beb.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-20f80721.js +4 -0
- package/dist/esm-es5/{overlays-e7b9d6d9.js → overlays-6163edd5.js} +1 -1
- package/dist/esm-es5/{status-tap-f472b09f.js → status-tap-6971c722.js} +1 -1
- 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-009f82b0.entry.js +4 -0
- package/dist/ionic/{p-ed75fcfb.system.entry.js → p-00d0d756.system.entry.js} +1 -1
- package/dist/ionic/p-02a67bb6.entry.js +4 -0
- package/dist/ionic/p-06db9f72.system.entry.js +4 -0
- package/dist/ionic/p-0b7a6f61.system.entry.js +4 -0
- package/dist/ionic/p-0e3657b4.system.entry.js +4 -0
- package/dist/ionic/p-0f461830.entry.js +4 -0
- package/dist/ionic/p-1050c06b.entry.js +4 -0
- package/dist/ionic/p-10e0c150.entry.js +4 -0
- package/dist/ionic/p-12130ed6.entry.js +4 -0
- package/dist/ionic/{p-cac0e0b3.system.entry.js → p-12f321c2.system.entry.js} +1 -1
- package/dist/ionic/{p-e85d901b.system.entry.js → p-13672c38.system.entry.js} +1 -1
- package/dist/ionic/p-1424bf51.system.entry.js +4 -0
- package/dist/ionic/p-14862d17.js +4 -0
- package/dist/ionic/p-15764963.entry.js +4 -0
- package/dist/ionic/{p-d6841eac.js → p-178f8860.js} +1 -1
- package/dist/ionic/p-19d9e3c1.entry.js +4 -0
- package/dist/ionic/{p-322c5fb4.system.js → p-1a02bce6.system.js} +1 -1
- package/dist/ionic/{p-8b8be2fd.entry.js → p-1c152e5e.entry.js} +1 -1
- package/dist/ionic/{p-a4565eb5.system.js → p-1fd5d9bc.system.js} +1 -1
- package/dist/ionic/{p-33a8a71b.entry.js → p-20034878.entry.js} +1 -1
- package/dist/ionic/p-231bc1a6.entry.js +4 -0
- package/dist/ionic/p-256d6439.system.entry.js +4 -0
- package/dist/ionic/{p-424eb140.system.entry.js → p-25ffd217.system.entry.js} +1 -1
- package/dist/ionic/p-2799a566.entry.js +4 -0
- package/dist/ionic/p-27c32980.system.entry.js +4 -0
- package/dist/ionic/p-28dfa27e.entry.js +4 -0
- package/dist/ionic/p-2af55ad8.entry.js +4 -0
- package/dist/ionic/p-2d31d826.entry.js +4 -0
- package/dist/ionic/{p-0303d0f8.js → p-2e092bfc.js} +1 -1
- package/dist/ionic/{p-4439fc2a.entry.js → p-2e25154e.entry.js} +1 -1
- package/dist/ionic/p-33e4b80b.entry.js +4 -0
- package/dist/ionic/p-39d3c108.entry.js +4 -0
- package/dist/ionic/{p-1e010627.system.entry.js → p-39f7d87a.system.entry.js} +1 -1
- package/dist/ionic/{p-b335ffed.system.entry.js → p-3be897c8.system.entry.js} +1 -1
- package/dist/ionic/{p-5da94421.system.js → p-3e9fea9e.system.js} +1 -1
- package/dist/ionic/{p-88e63c7d.js → p-40b63137.js} +1 -1
- package/dist/ionic/{p-63b0abde.system.entry.js → p-47dc25dc.system.entry.js} +1 -1
- package/dist/ionic/p-48da821c.system.js +4 -0
- package/dist/ionic/p-49e8212a.entry.js +4 -0
- package/dist/ionic/p-4c553a2a.system.entry.js +4 -0
- package/dist/ionic/{p-6499df44.system.entry.js → p-4e9cfad5.system.entry.js} +2 -2
- package/dist/ionic/{p-5823babc.system.entry.js → p-50d264fa.system.entry.js} +1 -1
- package/dist/ionic/{p-7ddc46c3.system.entry.js → p-515d6848.system.entry.js} +1 -1
- package/dist/ionic/{p-ca065903.system.entry.js → p-548a72aa.system.entry.js} +1 -1
- package/dist/ionic/p-550a3b74.system.entry.js +4 -0
- package/dist/ionic/p-56b2ba69.system.entry.js +4 -0
- package/dist/ionic/{p-21e5e7e4.js → p-576c3a98.js} +1 -1
- package/dist/ionic/{p-14be4015.entry.js → p-58f53534.entry.js} +1 -1
- package/dist/ionic/p-5d9ac963.entry.js +4 -0
- package/dist/ionic/p-5ed6403e.system.entry.js +4 -0
- package/dist/ionic/{p-2507278c.system.entry.js → p-639d0578.system.entry.js} +1 -1
- package/dist/ionic/p-64bbdc67.entry.js +4 -0
- package/dist/ionic/p-65d01407.entry.js +4 -0
- package/dist/ionic/p-6b2e506b.entry.js +4 -0
- package/dist/ionic/{p-fca6ef5f.system.entry.js → p-6b6a8f94.system.entry.js} +1 -1
- package/dist/ionic/{p-7ed1657c.system.entry.js → p-6d119deb.system.entry.js} +1 -1
- package/dist/ionic/p-7148eaf9.system.js +4 -0
- package/dist/ionic/p-72bfbdb8.entry.js +4 -0
- package/dist/ionic/{p-d743e981.js → p-782beb5a.js} +1 -1
- package/dist/ionic/{p-a61cba41.entry.js → p-78667ff0.entry.js} +1 -1
- package/dist/ionic/{p-69666e8a.system.entry.js → p-78c786a5.system.entry.js} +2 -2
- package/dist/ionic/{p-3c8e5c23.system.js → p-7a1241fe.system.js} +1 -1
- package/dist/ionic/p-7b5771f9.entry.js +4 -0
- package/dist/ionic/p-7e58bbf9.system.js +5 -0
- package/dist/ionic/p-81757650.entry.js +4 -0
- package/dist/ionic/{p-14e159ea.system.entry.js → p-825e7bd7.system.entry.js} +1 -1
- package/dist/ionic/{p-6d32975a.entry.js → p-8318c25d.entry.js} +1 -1
- package/dist/ionic/p-861176bf.js +5 -0
- package/dist/ionic/p-87a5a16c.system.entry.js +4 -0
- package/dist/ionic/{p-f3102647.system.entry.js → p-87ce1c7b.system.entry.js} +1 -1
- package/dist/ionic/p-8dd3da91.entry.js +4 -0
- package/dist/ionic/p-8e640927.entry.js +4 -0
- package/dist/ionic/{p-ecceeb90.js → p-8ef7a3d4.js} +1 -1
- package/dist/ionic/{p-5fce0c0b.system.entry.js → p-900bf295.system.entry.js} +1 -1
- package/dist/ionic/{p-bc36ad98.system.entry.js → p-9437291a.system.entry.js} +1 -1
- package/dist/ionic/{p-372ae7f4.system.js → p-95902a17.system.js} +1 -1
- package/dist/ionic/p-976cffa3.js +4 -0
- package/dist/ionic/p-9a87fe2d.entry.js +4 -0
- package/dist/ionic/{p-1046866e.system.entry.js → p-9b48727c.system.entry.js} +1 -1
- package/dist/ionic/p-a049797d.system.entry.js +4 -0
- package/dist/ionic/p-a09686af.system.entry.js +4 -0
- package/dist/ionic/p-aa92906a.entry.js +4 -0
- package/dist/ionic/{p-2e46590d.system.entry.js → p-ae304d51.system.entry.js} +1 -1
- package/dist/ionic/p-ae830361.entry.js +4 -0
- package/dist/ionic/p-aee73160.entry.js +4 -0
- package/dist/ionic/p-af19e17f.entry.js +4 -0
- package/dist/ionic/{p-c449820c.system.js → p-b13c5a74.system.js} +1 -1
- package/dist/ionic/p-b5400a4e.entry.js +4 -0
- package/dist/ionic/{p-2bd0ae94.system.entry.js → p-b84b4728.system.entry.js} +2 -2
- package/dist/ionic/p-bc35609f.system.entry.js +4 -0
- package/dist/ionic/p-c29e3a26.entry.js +4 -0
- package/dist/ionic/p-c468af8a.system.js +4 -0
- package/dist/ionic/p-c5bbf6c1.system.entry.js +4 -0
- package/dist/ionic/{p-a69b9fc5.system.js → p-c7d9e292.system.js} +1 -1
- package/dist/ionic/{p-2abae1cc.system.entry.js → p-ccba2087.system.entry.js} +1 -1
- package/dist/ionic/{p-567de071.system.entry.js → p-cdf6fc3a.system.entry.js} +1 -1
- package/dist/ionic/{p-f9a53abb.system.js → p-cec30029.system.js} +1 -1
- package/dist/ionic/p-d3e8f550.entry.js +4 -0
- package/dist/ionic/{p-37cb43bd.system.entry.js → p-d46804b1.system.entry.js} +1 -1
- package/dist/ionic/p-d47265c8.js +4 -0
- package/dist/ionic/p-da1d2cb3.entry.js +4 -0
- package/dist/ionic/p-dbdccd05.entry.js +4 -0
- package/dist/ionic/p-dc480111.entry.js +4 -0
- package/dist/ionic/{p-e4f69534.system.entry.js → p-dc75988a.system.entry.js} +1 -1
- package/dist/ionic/{p-0aa833fb.system.js → p-de104ff8.system.js} +1 -1
- package/dist/ionic/{p-16799667.system.entry.js → p-e3177e13.system.entry.js} +1 -1
- package/dist/ionic/p-e4e3296d.system.js +4 -0
- package/dist/ionic/{p-ebf042e0.system.entry.js → p-e8d1ae44.system.entry.js} +1 -1
- package/dist/ionic/{p-0574e87e.js → p-e992e256.js} +1 -1
- package/dist/ionic/p-eb82a2ad.entry.js +4 -0
- package/dist/ionic/p-ebef8e16.system.entry.js +4 -0
- package/dist/ionic/p-f03983ca.system.entry.js +4 -0
- package/dist/ionic/p-f244eea8.system.entry.js +4 -0
- package/dist/ionic/p-f2e5ec87.entry.js +4 -0
- package/dist/ionic/{p-f1acf541.system.entry.js → p-f5aef6f1.system.entry.js} +1 -1
- package/dist/ionic/p-f5b1cfba.entry.js +4 -0
- package/dist/ionic/p-f8ff5ad1.entry.js +4 -0
- package/dist/ionic/p-fa459c81.entry.js +4 -0
- package/dist/ionic/p-fa7120fe.entry.js +4 -0
- package/dist/ionic/{p-52d7a191.entry.js → p-fbebb25d.entry.js} +1 -1
- package/dist/ionic/{p-b2272f51.system.entry.js → p-fc8bdbc9.system.entry.js} +1 -1
- package/dist/ionic/{p-2799c6d3.system.entry.js → p-fca658be.system.entry.js} +1 -1
- package/dist/ionic/p-fdb92b6d.entry.js +4 -0
- package/dist/ionic/{p-e6635685.js → p-fe10600c.js} +1 -1
- package/dist/ionic/p-fe5dca01.system.entry.js +4 -0
- package/dist/ionic/p-fe6ab8d4.entry.js +4 -0
- package/dist/ionic/p-fee6c9c2.system.entry.js +4 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/hydrate/index.d.ts +10 -4
- package/hydrate/index.js +3057 -1456
- package/hydrate/index.mjs +3057 -1456
- package/package.json +3 -3
- package/dist/esm-es5/app-globals-5dbb61a5.js +0 -4
- package/dist/esm-es5/focus-visible-ea5a37bc.js +0 -4
- package/dist/esm-es5/index-28849c61.js +0 -5
- package/dist/esm-es5/md.transition-5106a0d2.js +0 -4
- package/dist/ionic/p-01186920.system.entry.js +0 -4
- package/dist/ionic/p-021c1da5.js +0 -4
- package/dist/ionic/p-081a4ce4.entry.js +0 -4
- package/dist/ionic/p-0bf0e55c.entry.js +0 -4
- package/dist/ionic/p-0c786bdf.system.entry.js +0 -4
- package/dist/ionic/p-12a722b8.system.entry.js +0 -4
- package/dist/ionic/p-141f79c7.entry.js +0 -4
- package/dist/ionic/p-15e76dd1.entry.js +0 -4
- package/dist/ionic/p-16188af7.entry.js +0 -4
- package/dist/ionic/p-16bfb979.system.entry.js +0 -4
- package/dist/ionic/p-17474161.system.js +0 -4
- package/dist/ionic/p-19ec4f42.entry.js +0 -4
- package/dist/ionic/p-1e67b266.system.entry.js +0 -4
- package/dist/ionic/p-2172893e.system.entry.js +0 -4
- package/dist/ionic/p-25180df3.system.js +0 -5
- package/dist/ionic/p-2b838f86.system.entry.js +0 -4
- package/dist/ionic/p-2b9b78c7.entry.js +0 -4
- package/dist/ionic/p-2fc0dafe.entry.js +0 -4
- package/dist/ionic/p-45693d7e.entry.js +0 -4
- package/dist/ionic/p-49a0e74c.entry.js +0 -4
- package/dist/ionic/p-4ec778aa.entry.js +0 -4
- package/dist/ionic/p-508d024a.entry.js +0 -4
- package/dist/ionic/p-58d5df0c.system.entry.js +0 -4
- package/dist/ionic/p-5ab1b709.entry.js +0 -4
- package/dist/ionic/p-5b932840.entry.js +0 -4
- package/dist/ionic/p-626fd66d.system.entry.js +0 -4
- package/dist/ionic/p-62af944c.entry.js +0 -4
- package/dist/ionic/p-66640ff7.system.entry.js +0 -4
- package/dist/ionic/p-69066a53.js +0 -4
- package/dist/ionic/p-6b280620.entry.js +0 -4
- package/dist/ionic/p-6d6cedc5.entry.js +0 -4
- package/dist/ionic/p-73dc4950.entry.js +0 -4
- package/dist/ionic/p-7458862e.system.entry.js +0 -4
- package/dist/ionic/p-797eeea8.system.entry.js +0 -4
- package/dist/ionic/p-7b9a2b23.entry.js +0 -4
- package/dist/ionic/p-8a5b9491.system.entry.js +0 -4
- package/dist/ionic/p-908d6080.entry.js +0 -4
- package/dist/ionic/p-937a7e21.entry.js +0 -4
- package/dist/ionic/p-942b5e13.entry.js +0 -4
- package/dist/ionic/p-95775830.entry.js +0 -4
- package/dist/ionic/p-982315a6.entry.js +0 -4
- package/dist/ionic/p-98231c01.system.entry.js +0 -4
- package/dist/ionic/p-985a7e17.system.entry.js +0 -4
- package/dist/ionic/p-98ff6b32.entry.js +0 -4
- package/dist/ionic/p-9df2c6fb.entry.js +0 -4
- package/dist/ionic/p-9ee1e8a6.entry.js +0 -4
- package/dist/ionic/p-9f3008d4.system.js +0 -4
- package/dist/ionic/p-9fa07aec.entry.js +0 -4
- package/dist/ionic/p-a43467d8.entry.js +0 -4
- package/dist/ionic/p-a49378bb.system.entry.js +0 -4
- package/dist/ionic/p-afecb188.entry.js +0 -4
- package/dist/ionic/p-b79ba17c.entry.js +0 -4
- package/dist/ionic/p-b82d4cab.js +0 -4
- package/dist/ionic/p-b9d7015f.entry.js +0 -4
- package/dist/ionic/p-bb0db172.entry.js +0 -4
- package/dist/ionic/p-bdad26e3.entry.js +0 -4
- package/dist/ionic/p-c29f8157.system.entry.js +0 -4
- package/dist/ionic/p-c41ac815.entry.js +0 -4
- package/dist/ionic/p-c4b53b16.system.entry.js +0 -4
- package/dist/ionic/p-c9f3a539.entry.js +0 -4
- package/dist/ionic/p-cdc83025.entry.js +0 -4
- package/dist/ionic/p-cf130350.system.js +0 -4
- package/dist/ionic/p-d18ab582.system.entry.js +0 -4
- package/dist/ionic/p-d7aa6b00.entry.js +0 -4
- package/dist/ionic/p-d836d43e.js +0 -5
- package/dist/ionic/p-da074ff7.entry.js +0 -4
- package/dist/ionic/p-de930745.entry.js +0 -4
- package/dist/ionic/p-e4ee80be.system.entry.js +0 -4
- package/dist/ionic/p-e563a35c.entry.js +0 -4
- package/dist/ionic/p-e7ed4a7f.system.js +0 -4
- package/dist/ionic/p-eba29931.entry.js +0 -4
- package/dist/ionic/p-efaffe74.entry.js +0 -4
- package/dist/ionic/p-fec61c32.entry.js +0 -4
|
@@ -12,6 +12,26 @@ import { getIonMode } from "../../global/ionic-global";
|
|
|
12
12
|
export class Segment {
|
|
13
13
|
constructor() {
|
|
14
14
|
this.segmentViewEl = null;
|
|
15
|
+
this.activated = false;
|
|
16
|
+
/**
|
|
17
|
+
* If `true`, the user cannot interact with the segment.
|
|
18
|
+
*/
|
|
19
|
+
this.disabled = false;
|
|
20
|
+
/**
|
|
21
|
+
* If `true`, the segment buttons will overflow and the user can swipe to see them.
|
|
22
|
+
* In addition, this will disable the gesture to drag the indicator between the buttons
|
|
23
|
+
* in order to swipe to see hidden buttons.
|
|
24
|
+
*/
|
|
25
|
+
this.scrollable = false;
|
|
26
|
+
/**
|
|
27
|
+
* If `true`, users will be able to swipe between segment buttons to activate them.
|
|
28
|
+
*/
|
|
29
|
+
this.swipeGesture = true;
|
|
30
|
+
/**
|
|
31
|
+
* If `true`, navigating to an `ion-segment-button` with the keyboard will focus and select the element.
|
|
32
|
+
* If `false`, keyboard navigation will only focus the `ion-segment-button` element.
|
|
33
|
+
*/
|
|
34
|
+
this.selectOnFocus = false;
|
|
15
35
|
this.onClick = (ev) => {
|
|
16
36
|
const current = ev.target;
|
|
17
37
|
const previous = this.checked;
|
|
@@ -66,13 +86,6 @@ export class Segment {
|
|
|
66
86
|
return null;
|
|
67
87
|
}
|
|
68
88
|
};
|
|
69
|
-
this.activated = false;
|
|
70
|
-
this.color = undefined;
|
|
71
|
-
this.disabled = false;
|
|
72
|
-
this.scrollable = false;
|
|
73
|
-
this.swipeGesture = true;
|
|
74
|
-
this.value = undefined;
|
|
75
|
-
this.selectOnFocus = false;
|
|
76
89
|
}
|
|
77
90
|
colorChanged(value, oldValue) {
|
|
78
91
|
/**
|
|
@@ -575,6 +588,8 @@ export class Segment {
|
|
|
575
588
|
"tags": [],
|
|
576
589
|
"text": "The color to use from your application's color palette.\nDefault options are: `\"primary\"`, `\"secondary\"`, `\"tertiary\"`, `\"success\"`, `\"warning\"`, `\"danger\"`, `\"light\"`, `\"medium\"`, and `\"dark\"`.\nFor more information on colors, see [theming](/docs/theming/basics)."
|
|
577
590
|
},
|
|
591
|
+
"getter": false,
|
|
592
|
+
"setter": false,
|
|
578
593
|
"attribute": "color",
|
|
579
594
|
"reflect": true
|
|
580
595
|
},
|
|
@@ -592,6 +607,8 @@ export class Segment {
|
|
|
592
607
|
"tags": [],
|
|
593
608
|
"text": "If `true`, the user cannot interact with the segment."
|
|
594
609
|
},
|
|
610
|
+
"getter": false,
|
|
611
|
+
"setter": false,
|
|
595
612
|
"attribute": "disabled",
|
|
596
613
|
"reflect": false,
|
|
597
614
|
"defaultValue": "false"
|
|
@@ -610,6 +627,8 @@ export class Segment {
|
|
|
610
627
|
"tags": [],
|
|
611
628
|
"text": "If `true`, the segment buttons will overflow and the user can swipe to see them.\nIn addition, this will disable the gesture to drag the indicator between the buttons\nin order to swipe to see hidden buttons."
|
|
612
629
|
},
|
|
630
|
+
"getter": false,
|
|
631
|
+
"setter": false,
|
|
613
632
|
"attribute": "scrollable",
|
|
614
633
|
"reflect": false,
|
|
615
634
|
"defaultValue": "false"
|
|
@@ -628,6 +647,8 @@ export class Segment {
|
|
|
628
647
|
"tags": [],
|
|
629
648
|
"text": "If `true`, users will be able to swipe between segment buttons to activate them."
|
|
630
649
|
},
|
|
650
|
+
"getter": false,
|
|
651
|
+
"setter": false,
|
|
631
652
|
"attribute": "swipe-gesture",
|
|
632
653
|
"reflect": false,
|
|
633
654
|
"defaultValue": "true"
|
|
@@ -652,6 +673,8 @@ export class Segment {
|
|
|
652
673
|
"tags": [],
|
|
653
674
|
"text": "the value of the segment."
|
|
654
675
|
},
|
|
676
|
+
"getter": false,
|
|
677
|
+
"setter": false,
|
|
655
678
|
"attribute": "value",
|
|
656
679
|
"reflect": false
|
|
657
680
|
},
|
|
@@ -669,6 +692,8 @@ export class Segment {
|
|
|
669
692
|
"tags": [],
|
|
670
693
|
"text": "If `true`, navigating to an `ion-segment-button` with the keyboard will focus and select the element.\nIf `false`, keyboard navigation will only focus the `ion-segment-button` element."
|
|
671
694
|
},
|
|
695
|
+
"getter": false,
|
|
696
|
+
"setter": false,
|
|
672
697
|
"attribute": "select-on-focus",
|
|
673
698
|
"reflect": false,
|
|
674
699
|
"defaultValue": "false"
|
|
@@ -17,6 +17,23 @@ export class SegmentButton {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
this.segmentEl = null;
|
|
19
19
|
this.inheritedAttributes = {};
|
|
20
|
+
this.checked = false;
|
|
21
|
+
/**
|
|
22
|
+
* If `true`, the user cannot interact with the segment button.
|
|
23
|
+
*/
|
|
24
|
+
this.disabled = false;
|
|
25
|
+
/**
|
|
26
|
+
* Set the layout of the text and icon in the segment.
|
|
27
|
+
*/
|
|
28
|
+
this.layout = 'icon-top';
|
|
29
|
+
/**
|
|
30
|
+
* The type of the button.
|
|
31
|
+
*/
|
|
32
|
+
this.type = 'button';
|
|
33
|
+
/**
|
|
34
|
+
* The value of the segment button.
|
|
35
|
+
*/
|
|
36
|
+
this.value = 'ion-sb-' + ids++;
|
|
20
37
|
this.updateStyle = () => {
|
|
21
38
|
forceUpdate(this);
|
|
22
39
|
};
|
|
@@ -29,12 +46,6 @@ export class SegmentButton {
|
|
|
29
46
|
}
|
|
30
47
|
}
|
|
31
48
|
};
|
|
32
|
-
this.checked = false;
|
|
33
|
-
this.contentId = undefined;
|
|
34
|
-
this.disabled = false;
|
|
35
|
-
this.layout = 'icon-top';
|
|
36
|
-
this.type = 'button';
|
|
37
|
-
this.value = 'ion-sb-' + ids++;
|
|
38
49
|
}
|
|
39
50
|
valueChanged() {
|
|
40
51
|
this.updateState();
|
|
@@ -147,6 +158,8 @@ export class SegmentButton {
|
|
|
147
158
|
"tags": [],
|
|
148
159
|
"text": "The `id` of the segment content."
|
|
149
160
|
},
|
|
161
|
+
"getter": false,
|
|
162
|
+
"setter": false,
|
|
150
163
|
"attribute": "content-id",
|
|
151
164
|
"reflect": true
|
|
152
165
|
},
|
|
@@ -164,6 +177,8 @@ export class SegmentButton {
|
|
|
164
177
|
"tags": [],
|
|
165
178
|
"text": "If `true`, the user cannot interact with the segment button."
|
|
166
179
|
},
|
|
180
|
+
"getter": false,
|
|
181
|
+
"setter": false,
|
|
167
182
|
"attribute": "disabled",
|
|
168
183
|
"reflect": false,
|
|
169
184
|
"defaultValue": "false"
|
|
@@ -188,6 +203,8 @@ export class SegmentButton {
|
|
|
188
203
|
"tags": [],
|
|
189
204
|
"text": "Set the layout of the text and icon in the segment."
|
|
190
205
|
},
|
|
206
|
+
"getter": false,
|
|
207
|
+
"setter": false,
|
|
191
208
|
"attribute": "layout",
|
|
192
209
|
"reflect": false,
|
|
193
210
|
"defaultValue": "'icon-top'"
|
|
@@ -206,6 +223,8 @@ export class SegmentButton {
|
|
|
206
223
|
"tags": [],
|
|
207
224
|
"text": "The type of the button."
|
|
208
225
|
},
|
|
226
|
+
"getter": false,
|
|
227
|
+
"setter": false,
|
|
209
228
|
"attribute": "type",
|
|
210
229
|
"reflect": false,
|
|
211
230
|
"defaultValue": "'button'"
|
|
@@ -230,6 +249,8 @@ export class SegmentButton {
|
|
|
230
249
|
"tags": [],
|
|
231
250
|
"text": "The value of the segment button."
|
|
232
251
|
},
|
|
252
|
+
"getter": false,
|
|
253
|
+
"setter": false,
|
|
233
254
|
"attribute": "value",
|
|
234
255
|
"reflect": false,
|
|
235
256
|
"defaultValue": "'ion-sb-' + ids++"
|
|
@@ -6,8 +6,10 @@ export class SegmentView {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
this.scrollEndTimeout = null;
|
|
8
8
|
this.isTouching = false;
|
|
9
|
+
/**
|
|
10
|
+
* If `true`, the segment view cannot be interacted with.
|
|
11
|
+
*/
|
|
9
12
|
this.disabled = false;
|
|
10
|
-
this.isManualScroll = undefined;
|
|
11
13
|
}
|
|
12
14
|
handleScroll(ev) {
|
|
13
15
|
var _a;
|
|
@@ -129,6 +131,8 @@ export class SegmentView {
|
|
|
129
131
|
"tags": [],
|
|
130
132
|
"text": "If `true`, the segment view cannot be interacted with."
|
|
131
133
|
},
|
|
134
|
+
"getter": false,
|
|
135
|
+
"setter": false,
|
|
132
136
|
"attribute": "disabled",
|
|
133
137
|
"reflect": false,
|
|
134
138
|
"defaultValue": "false"
|
|
@@ -28,6 +28,51 @@ export class Select {
|
|
|
28
28
|
constructor() {
|
|
29
29
|
this.inputId = `ion-sel-${selectIds++}`;
|
|
30
30
|
this.inheritedAttributes = {};
|
|
31
|
+
this.isExpanded = false;
|
|
32
|
+
/**
|
|
33
|
+
* The text to display on the cancel button.
|
|
34
|
+
*/
|
|
35
|
+
this.cancelText = 'Cancel';
|
|
36
|
+
/**
|
|
37
|
+
* If `true`, the user cannot interact with the select.
|
|
38
|
+
*/
|
|
39
|
+
this.disabled = false;
|
|
40
|
+
/**
|
|
41
|
+
* The interface the select should use: `action-sheet`, `popover`, `alert`, or `modal`.
|
|
42
|
+
*/
|
|
43
|
+
this.interface = 'alert';
|
|
44
|
+
/**
|
|
45
|
+
* Any additional options that the `alert`, `action-sheet` or `popover` interface
|
|
46
|
+
* can take. See the [ion-alert docs](./alert), the
|
|
47
|
+
* [ion-action-sheet docs](./action-sheet), the
|
|
48
|
+
* [ion-popover docs](./popover), and the [ion-modal docs](./modal) for the
|
|
49
|
+
* create options for each interface.
|
|
50
|
+
*
|
|
51
|
+
* Note: `interfaceOptions` will not override `inputs` or `buttons` with the `alert` interface.
|
|
52
|
+
*/
|
|
53
|
+
this.interfaceOptions = {};
|
|
54
|
+
/**
|
|
55
|
+
* Where to place the label relative to the select.
|
|
56
|
+
* `"start"`: The label will appear to the left of the select in LTR and to the right in RTL.
|
|
57
|
+
* `"end"`: The label will appear to the right of the select in LTR and to the left in RTL.
|
|
58
|
+
* `"floating"`: The label will appear smaller and above the select when the select is focused or it has a value. Otherwise it will appear on top of the select.
|
|
59
|
+
* `"stacked"`: The label will appear smaller and above the select regardless even when the select is blurred or has no value.
|
|
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
|
+
* When using `"floating"` or `"stacked"` we recommend initializing the select with either a `value` or a `placeholder`.
|
|
62
|
+
*/
|
|
63
|
+
this.labelPlacement = 'start';
|
|
64
|
+
/**
|
|
65
|
+
* If `true`, the select can accept multiple values.
|
|
66
|
+
*/
|
|
67
|
+
this.multiple = false;
|
|
68
|
+
/**
|
|
69
|
+
* The name of the control, which is submitted with the form data.
|
|
70
|
+
*/
|
|
71
|
+
this.name = this.inputId;
|
|
72
|
+
/**
|
|
73
|
+
* The text to display on the ok button.
|
|
74
|
+
*/
|
|
75
|
+
this.okText = 'OK';
|
|
31
76
|
this.onClick = (ev) => {
|
|
32
77
|
const target = ev.target;
|
|
33
78
|
const closestSlot = target.closest('[slot="start"], [slot="end"]');
|
|
@@ -71,26 +116,6 @@ export class Select {
|
|
|
71
116
|
this.onBlur = () => {
|
|
72
117
|
this.ionBlur.emit();
|
|
73
118
|
};
|
|
74
|
-
this.isExpanded = false;
|
|
75
|
-
this.cancelText = 'Cancel';
|
|
76
|
-
this.color = undefined;
|
|
77
|
-
this.compareWith = undefined;
|
|
78
|
-
this.disabled = false;
|
|
79
|
-
this.fill = undefined;
|
|
80
|
-
this.interface = 'alert';
|
|
81
|
-
this.interfaceOptions = {};
|
|
82
|
-
this.justify = undefined;
|
|
83
|
-
this.label = undefined;
|
|
84
|
-
this.labelPlacement = 'start';
|
|
85
|
-
this.multiple = false;
|
|
86
|
-
this.name = this.inputId;
|
|
87
|
-
this.okText = 'OK';
|
|
88
|
-
this.placeholder = undefined;
|
|
89
|
-
this.selectedText = undefined;
|
|
90
|
-
this.toggleIcon = undefined;
|
|
91
|
-
this.expandedIcon = undefined;
|
|
92
|
-
this.shape = undefined;
|
|
93
|
-
this.value = undefined;
|
|
94
119
|
}
|
|
95
120
|
styleChanged() {
|
|
96
121
|
this.emitStyle();
|
|
@@ -708,6 +733,8 @@ export class Select {
|
|
|
708
733
|
"tags": [],
|
|
709
734
|
"text": "The text to display on the cancel button."
|
|
710
735
|
},
|
|
736
|
+
"getter": false,
|
|
737
|
+
"setter": false,
|
|
711
738
|
"attribute": "cancel-text",
|
|
712
739
|
"reflect": false,
|
|
713
740
|
"defaultValue": "'Cancel'"
|
|
@@ -732,6 +759,8 @@ export class Select {
|
|
|
732
759
|
"tags": [],
|
|
733
760
|
"text": "The color to use from your application's color palette.\nDefault options are: `\"primary\"`, `\"secondary\"`, `\"tertiary\"`, `\"success\"`, `\"warning\"`, `\"danger\"`, `\"light\"`, `\"medium\"`, and `\"dark\"`.\nFor more information on colors, see [theming](/docs/theming/basics).\n\nThis property is only available when using the modern select syntax."
|
|
734
761
|
},
|
|
762
|
+
"getter": false,
|
|
763
|
+
"setter": false,
|
|
735
764
|
"attribute": "color",
|
|
736
765
|
"reflect": true
|
|
737
766
|
},
|
|
@@ -755,6 +784,8 @@ export class Select {
|
|
|
755
784
|
"tags": [],
|
|
756
785
|
"text": "This property allows developers to specify a custom function or property\nname for comparing objects when determining the selected option in the\nion-select. When not specified, the default behavior will use strict\nequality (===) for comparison."
|
|
757
786
|
},
|
|
787
|
+
"getter": false,
|
|
788
|
+
"setter": false,
|
|
758
789
|
"attribute": "compare-with",
|
|
759
790
|
"reflect": false
|
|
760
791
|
},
|
|
@@ -772,6 +803,8 @@ export class Select {
|
|
|
772
803
|
"tags": [],
|
|
773
804
|
"text": "If `true`, the user cannot interact with the select."
|
|
774
805
|
},
|
|
806
|
+
"getter": false,
|
|
807
|
+
"setter": false,
|
|
775
808
|
"attribute": "disabled",
|
|
776
809
|
"reflect": false,
|
|
777
810
|
"defaultValue": "false"
|
|
@@ -790,6 +823,8 @@ export class Select {
|
|
|
790
823
|
"tags": [],
|
|
791
824
|
"text": "The fill for the item. If `\"solid\"` the item will have a background. If\n`\"outline\"` the item will be transparent with a border. Only available in `md` mode."
|
|
792
825
|
},
|
|
826
|
+
"getter": false,
|
|
827
|
+
"setter": false,
|
|
793
828
|
"attribute": "fill",
|
|
794
829
|
"reflect": false
|
|
795
830
|
},
|
|
@@ -813,6 +848,8 @@ export class Select {
|
|
|
813
848
|
"tags": [],
|
|
814
849
|
"text": "The interface the select should use: `action-sheet`, `popover`, `alert`, or `modal`."
|
|
815
850
|
},
|
|
851
|
+
"getter": false,
|
|
852
|
+
"setter": false,
|
|
816
853
|
"attribute": "interface",
|
|
817
854
|
"reflect": false,
|
|
818
855
|
"defaultValue": "'alert'"
|
|
@@ -831,6 +868,8 @@ export class Select {
|
|
|
831
868
|
"tags": [],
|
|
832
869
|
"text": "Any additional options that the `alert`, `action-sheet` or `popover` interface\ncan take. See the [ion-alert docs](./alert), the\n[ion-action-sheet docs](./action-sheet), the\n[ion-popover docs](./popover), and the [ion-modal docs](./modal) for the\ncreate options for each interface.\n\nNote: `interfaceOptions` will not override `inputs` or `buttons` with the `alert` interface."
|
|
833
870
|
},
|
|
871
|
+
"getter": false,
|
|
872
|
+
"setter": false,
|
|
834
873
|
"attribute": "interface-options",
|
|
835
874
|
"reflect": false,
|
|
836
875
|
"defaultValue": "{}"
|
|
@@ -849,6 +888,8 @@ export class Select {
|
|
|
849
888
|
"tags": [],
|
|
850
889
|
"text": "How to pack the label and select within a line.\n`justify` does not apply when the label and select\nare on different lines when `labelPlacement` is set to\n`\"floating\"` or `\"stacked\"`.\n`\"start\"`: The label and select will appear on the left in LTR and\non the right in RTL.\n`\"end\"`: The label and select will appear on the right in LTR and\non the left in RTL.\n`\"space-between\"`: The label and select will appear on opposite\nends of the line with space between the two elements."
|
|
851
890
|
},
|
|
891
|
+
"getter": false,
|
|
892
|
+
"setter": false,
|
|
852
893
|
"attribute": "justify",
|
|
853
894
|
"reflect": false
|
|
854
895
|
},
|
|
@@ -866,6 +907,8 @@ export class Select {
|
|
|
866
907
|
"tags": [],
|
|
867
908
|
"text": "The visible label associated with the select.\n\nUse this if you need to render a plaintext label.\n\nThe `label` property will take priority over the `label` slot if both are used."
|
|
868
909
|
},
|
|
910
|
+
"getter": false,
|
|
911
|
+
"setter": false,
|
|
869
912
|
"attribute": "label",
|
|
870
913
|
"reflect": false
|
|
871
914
|
},
|
|
@@ -883,6 +926,8 @@ export class Select {
|
|
|
883
926
|
"tags": [],
|
|
884
927
|
"text": "Where to place the label relative to the select.\n`\"start\"`: The label will appear to the left of the select in LTR and to the right in RTL.\n`\"end\"`: The label will appear to the right of the select in LTR and to the left in RTL.\n`\"floating\"`: The label will appear smaller and above the select when the select is focused or it has a value. Otherwise it will appear on top of the select.\n`\"stacked\"`: The label will appear smaller and above the select regardless even when the select is blurred or has no value.\n`\"fixed\"`: The label has the same behavior as `\"start\"` except it also has a fixed width. Long text will be truncated with ellipses (\"...\").\nWhen using `\"floating\"` or `\"stacked\"` we recommend initializing the select with either a `value` or a `placeholder`."
|
|
885
928
|
},
|
|
929
|
+
"getter": false,
|
|
930
|
+
"setter": false,
|
|
886
931
|
"attribute": "label-placement",
|
|
887
932
|
"reflect": false,
|
|
888
933
|
"defaultValue": "'start'"
|
|
@@ -901,6 +946,8 @@ export class Select {
|
|
|
901
946
|
"tags": [],
|
|
902
947
|
"text": "If `true`, the select can accept multiple values."
|
|
903
948
|
},
|
|
949
|
+
"getter": false,
|
|
950
|
+
"setter": false,
|
|
904
951
|
"attribute": "multiple",
|
|
905
952
|
"reflect": false,
|
|
906
953
|
"defaultValue": "false"
|
|
@@ -919,6 +966,8 @@ export class Select {
|
|
|
919
966
|
"tags": [],
|
|
920
967
|
"text": "The name of the control, which is submitted with the form data."
|
|
921
968
|
},
|
|
969
|
+
"getter": false,
|
|
970
|
+
"setter": false,
|
|
922
971
|
"attribute": "name",
|
|
923
972
|
"reflect": false,
|
|
924
973
|
"defaultValue": "this.inputId"
|
|
@@ -937,6 +986,8 @@ export class Select {
|
|
|
937
986
|
"tags": [],
|
|
938
987
|
"text": "The text to display on the ok button."
|
|
939
988
|
},
|
|
989
|
+
"getter": false,
|
|
990
|
+
"setter": false,
|
|
940
991
|
"attribute": "ok-text",
|
|
941
992
|
"reflect": false,
|
|
942
993
|
"defaultValue": "'OK'"
|
|
@@ -955,6 +1006,8 @@ export class Select {
|
|
|
955
1006
|
"tags": [],
|
|
956
1007
|
"text": "The text to display when the select is empty."
|
|
957
1008
|
},
|
|
1009
|
+
"getter": false,
|
|
1010
|
+
"setter": false,
|
|
958
1011
|
"attribute": "placeholder",
|
|
959
1012
|
"reflect": false
|
|
960
1013
|
},
|
|
@@ -972,6 +1025,8 @@ export class Select {
|
|
|
972
1025
|
"tags": [],
|
|
973
1026
|
"text": "The text to display instead of the selected option's value."
|
|
974
1027
|
},
|
|
1028
|
+
"getter": false,
|
|
1029
|
+
"setter": false,
|
|
975
1030
|
"attribute": "selected-text",
|
|
976
1031
|
"reflect": false
|
|
977
1032
|
},
|
|
@@ -989,6 +1044,8 @@ export class Select {
|
|
|
989
1044
|
"tags": [],
|
|
990
1045
|
"text": "The toggle icon to use. Defaults to `chevronExpand` for `ios` mode,\nor `caretDownSharp` for `md` mode."
|
|
991
1046
|
},
|
|
1047
|
+
"getter": false,
|
|
1048
|
+
"setter": false,
|
|
992
1049
|
"attribute": "toggle-icon",
|
|
993
1050
|
"reflect": false
|
|
994
1051
|
},
|
|
@@ -1006,6 +1063,8 @@ export class Select {
|
|
|
1006
1063
|
"tags": [],
|
|
1007
1064
|
"text": "The toggle icon to show when the select is open. If defined, the icon\nrotation behavior in `md` mode will be disabled. If undefined, `toggleIcon`\nwill be used for when the select is both open and closed."
|
|
1008
1065
|
},
|
|
1066
|
+
"getter": false,
|
|
1067
|
+
"setter": false,
|
|
1009
1068
|
"attribute": "expanded-icon",
|
|
1010
1069
|
"reflect": false
|
|
1011
1070
|
},
|
|
@@ -1023,6 +1082,8 @@ export class Select {
|
|
|
1023
1082
|
"tags": [],
|
|
1024
1083
|
"text": "The shape of the select. If \"round\" it will have an increased border radius."
|
|
1025
1084
|
},
|
|
1085
|
+
"getter": false,
|
|
1086
|
+
"setter": false,
|
|
1026
1087
|
"attribute": "shape",
|
|
1027
1088
|
"reflect": false
|
|
1028
1089
|
},
|
|
@@ -1040,6 +1101,8 @@ export class Select {
|
|
|
1040
1101
|
"tags": [],
|
|
1041
1102
|
"text": "The value of the select."
|
|
1042
1103
|
},
|
|
1104
|
+
"getter": false,
|
|
1105
|
+
"setter": false,
|
|
1043
1106
|
"attribute": "value",
|
|
1044
1107
|
"reflect": false
|
|
1045
1108
|
}
|
|
@@ -1,3 +1,189 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
height: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Convert a font size to a dynamic font size.
|
|
7
|
+
* Fonts that participate in Dynamic Type should use
|
|
8
|
+
* dynamic font sizes.
|
|
9
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
10
|
+
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
11
|
+
* convert to a unit other than $baselineUnit.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Convert a font size to a dynamic font size but impose
|
|
15
|
+
* a maximum font size.
|
|
16
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
17
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
18
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
19
|
+
* convert to a unit other than $baselineUnit.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Convert a font size to a dynamic font size but impose
|
|
23
|
+
* a minimum font size.
|
|
24
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
25
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
26
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
27
|
+
* convert to a unit other than $baselineUnit.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Convert a font size to a dynamic font size but impose
|
|
31
|
+
* maximum and minimum font sizes.
|
|
32
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
33
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
34
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
35
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
36
|
+
* convert to a unit other than $baselineUnit.
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
* A heuristic that applies CSS to tablet
|
|
40
|
+
* viewports.
|
|
41
|
+
*
|
|
42
|
+
* Usage:
|
|
43
|
+
* @include tablet-viewport() {
|
|
44
|
+
* :host {
|
|
45
|
+
* background-color: green;
|
|
46
|
+
* }
|
|
47
|
+
* }
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* A heuristic that applies CSS to mobile
|
|
51
|
+
* viewports (i.e. phones, not tablets).
|
|
52
|
+
*
|
|
53
|
+
* Usage:
|
|
54
|
+
* @include mobile-viewport() {
|
|
55
|
+
* :host {
|
|
56
|
+
* background-color: blue;
|
|
57
|
+
* }
|
|
58
|
+
* }
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* Convert a font size to a dynamic font size.
|
|
62
|
+
* Fonts that participate in Dynamic Type should use
|
|
63
|
+
* dynamic font sizes.
|
|
64
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
65
|
+
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
66
|
+
* convert to a unit other than $baselineUnit.
|
|
67
|
+
*/
|
|
68
|
+
/**
|
|
69
|
+
* Convert a font size to a dynamic font size but impose
|
|
70
|
+
* a maximum font size.
|
|
71
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
72
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
73
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
74
|
+
* convert to a unit other than $baselineUnit.
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Convert a font size to a dynamic font size but impose
|
|
78
|
+
* a minimum font size.
|
|
79
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
80
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
81
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
82
|
+
* convert to a unit other than $baselineUnit.
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* Convert a font size to a dynamic font size but impose
|
|
86
|
+
* maximum and minimum font sizes.
|
|
87
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
88
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
89
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
90
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
91
|
+
* convert to a unit other than $baselineUnit.
|
|
92
|
+
*/
|
|
93
|
+
/**
|
|
94
|
+
* A heuristic that applies CSS to tablet
|
|
95
|
+
* viewports.
|
|
96
|
+
*
|
|
97
|
+
* Usage:
|
|
98
|
+
* @include tablet-viewport() {
|
|
99
|
+
* :host {
|
|
100
|
+
* background-color: green;
|
|
101
|
+
* }
|
|
102
|
+
* }
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* A heuristic that applies CSS to mobile
|
|
106
|
+
* viewports (i.e. phones, not tablets).
|
|
107
|
+
*
|
|
108
|
+
* Usage:
|
|
109
|
+
* @include mobile-viewport() {
|
|
110
|
+
* :host {
|
|
111
|
+
* background-color: blue;
|
|
112
|
+
* }
|
|
113
|
+
* }
|
|
114
|
+
*/
|
|
115
|
+
/**
|
|
116
|
+
* Convert a font size to a dynamic font size.
|
|
117
|
+
* Fonts that participate in Dynamic Type should use
|
|
118
|
+
* dynamic font sizes.
|
|
119
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
120
|
+
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
121
|
+
* convert to a unit other than $baselineUnit.
|
|
122
|
+
*/
|
|
123
|
+
/**
|
|
124
|
+
* Convert a font size to a dynamic font size but impose
|
|
125
|
+
* a maximum font size.
|
|
126
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
127
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
128
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
129
|
+
* convert to a unit other than $baselineUnit.
|
|
130
|
+
*/
|
|
131
|
+
/**
|
|
132
|
+
* Convert a font size to a dynamic font size but impose
|
|
133
|
+
* a minimum font size.
|
|
134
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
135
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
136
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
137
|
+
* convert to a unit other than $baselineUnit.
|
|
138
|
+
*/
|
|
139
|
+
/**
|
|
140
|
+
* Convert a font size to a dynamic font size but impose
|
|
141
|
+
* maximum and minimum font sizes.
|
|
142
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
143
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
144
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
145
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
146
|
+
* convert to a unit other than $baselineUnit.
|
|
147
|
+
*/
|
|
148
|
+
/**
|
|
149
|
+
* A heuristic that applies CSS to tablet
|
|
150
|
+
* viewports.
|
|
151
|
+
*
|
|
152
|
+
* Usage:
|
|
153
|
+
* @include tablet-viewport() {
|
|
154
|
+
* :host {
|
|
155
|
+
* background-color: green;
|
|
156
|
+
* }
|
|
157
|
+
* }
|
|
158
|
+
*/
|
|
159
|
+
/**
|
|
160
|
+
* A heuristic that applies CSS to mobile
|
|
161
|
+
* viewports (i.e. phones, not tablets).
|
|
162
|
+
*
|
|
163
|
+
* Usage:
|
|
164
|
+
* @include mobile-viewport() {
|
|
165
|
+
* :host {
|
|
166
|
+
* background-color: blue;
|
|
167
|
+
* }
|
|
168
|
+
* }
|
|
169
|
+
*/
|
|
170
|
+
ion-item {
|
|
171
|
+
--inner-padding-end: 0;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The bottom border of the item should only be displayed
|
|
176
|
+
* under the text and not the radio icon.
|
|
177
|
+
*/
|
|
178
|
+
ion-radio::after {
|
|
179
|
+
bottom: 0;
|
|
180
|
+
position: absolute;
|
|
181
|
+
width: calc(100% - 0.9375rem - 16px); /* Adjust width based on the shift */
|
|
182
|
+
border-width: 0px 0px 0.55px 0px;
|
|
183
|
+
border-style: solid;
|
|
184
|
+
border-color: var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));
|
|
185
|
+
content: "";
|
|
186
|
+
}
|
|
187
|
+
ion-radio::after {
|
|
188
|
+
inset-inline-start: calc(0.9375rem + 16px);
|
|
3
189
|
}
|
|
@@ -7,8 +7,6 @@ import { safeCall } from "../../utils/overlays";
|
|
|
7
7
|
import { getClassMap } from "../../utils/theme";
|
|
8
8
|
export class SelectModal {
|
|
9
9
|
constructor() {
|
|
10
|
-
this.header = undefined;
|
|
11
|
-
this.multiple = undefined;
|
|
12
10
|
this.options = [];
|
|
13
11
|
}
|
|
14
12
|
closeModal() {
|
|
@@ -51,7 +49,7 @@ export class SelectModal {
|
|
|
51
49
|
}
|
|
52
50
|
renderRadioOptions() {
|
|
53
51
|
const checked = this.options.filter((o) => o.checked).map((o) => o.value)[0];
|
|
54
|
-
return (h("ion-radio-group", { value: checked, onIonChange: (ev) => this.callOptionHandler(ev) }, this.options.map((option) => (h("ion-item", { class: Object.assign({
|
|
52
|
+
return (h("ion-radio-group", { value: checked, onIonChange: (ev) => this.callOptionHandler(ev) }, this.options.map((option) => (h("ion-item", { lines: "none", class: Object.assign({
|
|
55
53
|
// TODO FW-4784
|
|
56
54
|
'item-radio-checked': option.value === checked
|
|
57
55
|
}, getClassMap(option.cssClass)) }, h("ion-radio", { value: option.value, disabled: option.disabled, justify: "start", labelPlacement: "end", onClick: () => this.closeModal(), onKeyUp: (ev) => {
|
|
@@ -77,7 +75,7 @@ export class SelectModal {
|
|
|
77
75
|
} }, option.text))));
|
|
78
76
|
}
|
|
79
77
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: '4df42c447b4026d09d9231f09dc4bdae9a8cfe4a', class: getIonMode(this) }, h("ion-header", { key: '211c4e869b858867f3d60637e570aeb01de41de7' }, h("ion-toolbar", { key: 'dc4b151331aecbaaaafb460802ee9b689493601d' }, this.header !== undefined && h("ion-title", { key: 'ba1347a59ae0a5c6770c239b5ec02a536a445bd1' }, this.header), h("ion-buttons", { key: '43c98fd25d7e7f54b94b24e53535c6d5ba599892', slot: "end" }, h("ion-button", { key: '51b2b3f3eed42637b2cfc213c95d0bcf10e4b89d', onClick: () => this.closeModal() }, "Close")))), h("ion-content", { key: 'fe721b09f80555856211f7e40dbfc31a533acae1' }, h("ion-list", { key: 'd0b932d137136958d896408fb2fa571023775b92' }, this.multiple === true ? this.renderCheckboxOptions() : this.renderRadioOptions()))));
|
|
81
79
|
}
|
|
82
80
|
static get is() { return "ion-select-modal"; }
|
|
83
81
|
static get encapsulation() { return "scoped"; }
|
|
@@ -111,6 +109,8 @@ export class SelectModal {
|
|
|
111
109
|
"tags": [],
|
|
112
110
|
"text": ""
|
|
113
111
|
},
|
|
112
|
+
"getter": false,
|
|
113
|
+
"setter": false,
|
|
114
114
|
"attribute": "header",
|
|
115
115
|
"reflect": false
|
|
116
116
|
},
|
|
@@ -128,6 +128,8 @@ export class SelectModal {
|
|
|
128
128
|
"tags": [],
|
|
129
129
|
"text": ""
|
|
130
130
|
},
|
|
131
|
+
"getter": false,
|
|
132
|
+
"setter": false,
|
|
131
133
|
"attribute": "multiple",
|
|
132
134
|
"reflect": false
|
|
133
135
|
},
|
|
@@ -151,6 +153,8 @@ export class SelectModal {
|
|
|
151
153
|
"tags": [],
|
|
152
154
|
"text": ""
|
|
153
155
|
},
|
|
156
|
+
"getter": false,
|
|
157
|
+
"setter": false,
|
|
154
158
|
"defaultValue": "[]"
|
|
155
159
|
}
|
|
156
160
|
};
|