@kirbydesign/designsystem 9.5.0 → 9.7.0
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/accordion/accordion-item.component.d.ts +2 -1
- package/avatar/avatar.component.d.ts +4 -1
- package/button/button.component.d.ts +1 -1
- package/card/card-as-button/card-as-button.directive.d.ts +2 -3
- package/card/card.component.d.ts +9 -2
- package/checkbox/checkbox.component.d.ts +8 -4
- package/esm2022/accordion/accordion-item.component.mjs +8 -5
- package/esm2022/accordion/accordion.directive.mjs +4 -4
- package/esm2022/accordion/accordion.module.mjs +5 -5
- package/esm2022/accordion/kirbydesign-designsystem-accordion.mjs +1 -1
- package/esm2022/accordion/public_api.mjs +1 -1
- package/esm2022/action-group/action-group.component.mjs +4 -4
- package/esm2022/action-group/kirbydesign-designsystem-action-group.mjs +1 -1
- package/esm2022/action-group/public_api.mjs +1 -1
- package/esm2022/avatar/avatar.component.mjs +12 -6
- package/esm2022/avatar/kirbydesign-designsystem-avatar.mjs +1 -1
- package/esm2022/avatar/public_api.mjs +1 -1
- package/esm2022/badge/badge.component.mjs +4 -4
- package/esm2022/badge/kirbydesign-designsystem-badge.mjs +1 -1
- package/esm2022/badge/public_api.mjs +1 -1
- package/esm2022/button/button.component.mjs +5 -5
- package/esm2022/button/kirbydesign-designsystem-button.mjs +1 -1
- package/esm2022/button/public_api.mjs +1 -1
- package/esm2022/calendar/calendar.component.mjs +4 -4
- package/esm2022/calendar/helpers/calendar-cell.model.mjs +1 -1
- package/esm2022/calendar/helpers/calendar-options.model.mjs +1 -1
- package/esm2022/calendar/helpers/calendar.helper.mjs +4 -4
- package/esm2022/calendar/kirbydesign-designsystem-calendar.mjs +1 -1
- package/esm2022/calendar/options/calendar-year-navigator-config.mjs +1 -1
- package/esm2022/calendar/public_api.mjs +1 -1
- package/esm2022/card/card-as-button/card-as-button.directive.mjs +6 -9
- package/esm2022/card/card-flag-level.mjs +1 -1
- package/esm2022/card/card-footer/card-footer.component.mjs +5 -5
- package/esm2022/card/card-header/card-header.component.mjs +4 -4
- package/esm2022/card/card.component.mjs +27 -9
- package/esm2022/card/card.module.mjs +5 -5
- package/esm2022/card/kirbydesign-designsystem-card.mjs +1 -1
- package/esm2022/card/public_api.mjs +1 -1
- package/esm2022/chart/chart/chart.component.mjs +4 -4
- package/esm2022/chart/chart/index.mjs +1 -1
- package/esm2022/chart/chart-config/chart-bar-config/chart-bar-config.mjs +1 -1
- package/esm2022/chart/chart-config/chart-base-config.mjs +1 -1
- package/esm2022/chart/chart-config/chart-stock-config/chart-stock-config.mjs +1 -1
- package/esm2022/chart/chart-config/chart-stock-config/data-label-position/data-label-position.mjs +1 -1
- package/esm2022/chart/chart-config/chart-stock-config/vertical-line-plugin/vertical-line-plugin.mjs +1 -1
- package/esm2022/chart/chart-config/chart-stock-config/vertical-line-plugin/vertical-line-plugin.model.mjs +1 -1
- package/esm2022/chart/charts.module.mjs +5 -5
- package/esm2022/chart/kirbydesign-designsystem-chart.mjs +1 -1
- package/esm2022/chart/public_api.mjs +1 -1
- package/esm2022/chart/shared/base-chart/base-chart.component.mjs +4 -4
- package/esm2022/chart/shared/base-chart/index.mjs +1 -1
- package/esm2022/chart/shared/chart-config-service/chart-config.service.mjs +4 -4
- package/esm2022/chart/shared/chart-config-service/configs/annotations.config.mjs +1 -1
- package/esm2022/chart/shared/chart-config-service/configs/global-defaults.config.mjs +1 -1
- package/esm2022/chart/shared/chart-config-service/configs/interaction-functions-extensions.config.mjs +1 -1
- package/esm2022/chart/shared/chart-config-service/configs/type.config.mjs +1 -1
- package/esm2022/chart/shared/chart-config-service/index.mjs +1 -1
- package/esm2022/chart/shared/chart-js-service/annotations.delegate.mjs +1 -1
- package/esm2022/chart/shared/chart-js-service/chart-js.service.mjs +4 -4
- package/esm2022/chart/shared/chart-js-service/chartjs-plugin-marker/chartjs-plugin-marker.mjs +1 -1
- package/esm2022/chart/shared/chart-js-service/configured-chart-js.mjs +1 -1
- package/esm2022/chart/shared/chart-js-service/index.mjs +1 -1
- package/esm2022/chart/shared/chart-js-service/test-utils.mjs +1 -1
- package/esm2022/chart/shared/charts.types.mjs +1 -1
- package/esm2022/chart/shared/index.mjs +1 -1
- package/esm2022/chart/stock-chart/index.mjs +1 -1
- package/esm2022/chart/stock-chart/stock-chart-js.service.mjs +4 -4
- package/esm2022/chart/stock-chart/stock-chart.component.mjs +4 -4
- package/esm2022/checkbox/checkbox.component.mjs +18 -11
- package/esm2022/checkbox/kirbydesign-designsystem-checkbox.mjs +1 -1
- package/esm2022/checkbox/public_api.mjs +1 -1
- package/esm2022/data-table/data-table.module.mjs +5 -5
- package/esm2022/data-table/kirbydesign-designsystem-data-table.mjs +1 -1
- package/esm2022/data-table/public_api.mjs +1 -1
- package/esm2022/data-table/sortable/sortable.component.mjs +4 -4
- package/esm2022/data-table/table/table.component.mjs +4 -4
- package/esm2022/data-table/table-row/table-row.component.mjs +4 -4
- package/esm2022/divider/divider.component.mjs +4 -4
- package/esm2022/divider/kirbydesign-designsystem-divider.mjs +1 -1
- package/esm2022/divider/public_api.mjs +1 -1
- package/esm2022/dropdown/dropdown.component.mjs +5 -5
- package/esm2022/dropdown/dropdown.module.mjs +5 -5
- package/esm2022/dropdown/dropdown.types.mjs +1 -1
- package/esm2022/dropdown/keyboard-handler.service.mjs +4 -4
- package/esm2022/dropdown/kirbydesign-designsystem-dropdown.mjs +1 -1
- package/esm2022/dropdown/public_api.mjs +1 -1
- package/esm2022/empty-state/empty-state.component.mjs +4 -4
- package/esm2022/empty-state/empty-state.module.mjs +5 -5
- package/esm2022/empty-state/kirbydesign-designsystem-empty-state.mjs +1 -1
- package/esm2022/empty-state/public_api.mjs +1 -1
- package/esm2022/fab-sheet/fab-sheet.component.mjs +4 -4
- package/esm2022/fab-sheet/kirbydesign-designsystem-fab-sheet.mjs +1 -1
- package/esm2022/fab-sheet/public_api.mjs +1 -1
- package/esm2022/flag/flag.component.mjs +4 -4
- package/esm2022/flag/kirbydesign-designsystem-flag.mjs +1 -1
- package/esm2022/flag/public_api.mjs +1 -1
- package/esm2022/form-field/directives/affix/affix.directive.mjs +4 -4
- package/esm2022/form-field/directives/date/date-input.directive.mjs +4 -4
- package/esm2022/form-field/directives/decimal-mask/decimal-mask.directive.mjs +4 -4
- package/esm2022/form-field/form-field-message/form-field-message.component.mjs +4 -4
- package/esm2022/form-field/form-field.component.mjs +4 -4
- package/esm2022/form-field/form-field.module.mjs +5 -5
- package/esm2022/form-field/input/input.component.mjs +4 -4
- package/esm2022/form-field/input-counter/input-counter.component.mjs +4 -4
- package/esm2022/form-field/kirbydesign-designsystem-form-field.mjs +1 -1
- package/esm2022/form-field/public_api.mjs +1 -1
- package/esm2022/form-field/textarea/textarea.component.mjs +4 -4
- package/esm2022/header/header.component.mjs +23 -16
- package/esm2022/header/header.module.mjs +5 -5
- package/esm2022/header/kirbydesign-designsystem-header.mjs +1 -1
- package/esm2022/header/public_api.mjs +1 -1
- package/esm2022/helpers/chart-config-has-type.mjs +1 -1
- package/esm2022/helpers/color-helper.mjs +1 -1
- package/esm2022/helpers/deep-copy.mjs +1 -1
- package/esm2022/helpers/design-token-helper.mjs +1 -1
- package/esm2022/helpers/element-has-ancestor.mjs +1 -1
- package/esm2022/helpers/ionic-element-part-helper.mjs +4 -4
- package/esm2022/helpers/kirby-animation.mjs +1 -1
- package/esm2022/helpers/kirbydesign-designsystem-helpers.mjs +1 -1
- package/esm2022/helpers/line-clamp-helper.mjs +4 -4
- package/esm2022/helpers/merge-deep.mjs +1 -1
- package/esm2022/helpers/platform.service.mjs +4 -4
- package/esm2022/helpers/public_api.mjs +1 -1
- package/esm2022/helpers/scss/kirbydesign-designsystem-helpers-scss.mjs +1 -1
- package/esm2022/helpers/scss/public_api.mjs +1 -1
- package/esm2022/helpers/scss/scss-helper.mjs +1 -1
- package/esm2022/helpers/string-helper.mjs +1 -1
- package/esm2022/helpers/theme-color.type.mjs +1 -1
- package/esm2022/helpers/unique-id-generator.helper.mjs +1 -1
- package/esm2022/icon/icon-registry.service.mjs +4 -4
- package/esm2022/icon/icon-settings.mjs +1 -1
- package/esm2022/icon/icon.component.mjs +4 -4
- package/esm2022/icon/icon.module.mjs +5 -5
- package/esm2022/icon/kirby-icon-settings.mjs +1 -1
- package/esm2022/icon/kirbydesign-designsystem-icon.mjs +1 -1
- package/esm2022/icon/public_api.mjs +1 -1
- package/esm2022/item/item.component.mjs +41 -8
- package/esm2022/item/item.module.mjs +5 -5
- package/esm2022/item/kirbydesign-designsystem-item.mjs +1 -1
- package/esm2022/item/label/label.component.mjs +4 -4
- package/esm2022/item/public_api.mjs +1 -1
- package/esm2022/item-group/item-group.component.mjs +4 -4
- package/esm2022/item-group/kirbydesign-designsystem-item-group.mjs +1 -1
- package/esm2022/item-group/public_api.mjs +1 -1
- package/esm2022/item-sliding/item-sliding.component.mjs +4 -4
- package/esm2022/item-sliding/item-sliding.types.mjs +1 -1
- package/esm2022/item-sliding/kirbydesign-designsystem-item-sliding.mjs +1 -1
- package/esm2022/item-sliding/public_api.mjs +1 -1
- package/esm2022/kirby-app/kirby-app.component.mjs +4 -4
- package/esm2022/kirby-app/kirby-app.module.mjs +5 -5
- package/esm2022/kirby-app/kirbydesign-designsystem-kirby-app.mjs +1 -1
- package/esm2022/kirby-app/public_api.mjs +1 -1
- package/esm2022/kirby-ionic-module/kirby-ionic.module.mjs +5 -5
- package/esm2022/kirby-ionic-module/kirbydesign-designsystem-kirby-ionic-module.mjs +1 -1
- package/esm2022/kirby-ionic-module/public_api.mjs +1 -1
- package/esm2022/kirbydesign-designsystem.mjs +1 -1
- package/esm2022/lib/components/index.mjs +1 -1
- package/esm2022/lib/components/page-local-navigation/index.mjs +1 -1
- package/esm2022/lib/components/page-local-navigation/page-local-navigation-item.mjs +1 -1
- package/esm2022/lib/components/page-local-navigation/page-local-navigation.component.mjs +4 -4
- package/esm2022/lib/components/segmented-control/segment-item.mjs +1 -1
- package/esm2022/lib/components/segmented-control/segmented-control.component.mjs +5 -5
- package/esm2022/lib/directives/index.mjs +1 -1
- package/esm2022/lib/directives/key-handler/key-handler.directive.mjs +4 -4
- package/esm2022/lib/directives/modal-router-link/modal-router-link.directive.mjs +4 -4
- package/esm2022/lib/index.mjs +1 -1
- package/esm2022/lib/kirby-experimental.module.mjs +5 -5
- package/esm2022/lib/kirby.module.mjs +5 -5
- package/esm2022/list/directives/index.mjs +1 -1
- package/esm2022/list/directives/infinite-scroll.directive.mjs +4 -4
- package/esm2022/list/directives/list-item-color.directive.mjs +4 -4
- package/esm2022/list/directives/scroll.model.mjs +1 -1
- package/esm2022/list/helpers/index.mjs +1 -1
- package/esm2022/list/helpers/list-helper.mjs +4 -4
- package/esm2022/list/kirbydesign-designsystem-list.mjs +1 -1
- package/esm2022/list/list-experimental/index.mjs +1 -1
- package/esm2022/list/list-experimental/list-experimental.component.mjs +4 -4
- package/esm2022/list/list-header/index.mjs +1 -1
- package/esm2022/list/list-header/list-header.component.mjs +4 -4
- package/esm2022/list/list-item/index.mjs +1 -1
- package/esm2022/list/list-item/list-item.component.mjs +5 -5
- package/esm2022/list/list-section-header/index.mjs +1 -1
- package/esm2022/list/list-section-header/list-section-header.component.mjs +4 -4
- package/esm2022/list/list-swipe-action.mjs +1 -1
- package/esm2022/list/list-swipe-action.type.mjs +1 -1
- package/esm2022/list/list.component.mjs +5 -5
- package/esm2022/list/list.directive.mjs +13 -13
- package/esm2022/list/list.event.mjs +1 -1
- package/esm2022/list/list.module.mjs +18 -12
- package/esm2022/list/public_api.mjs +1 -1
- package/esm2022/loading-overlay/kirbydesign-designsystem-loading-overlay.mjs +1 -1
- package/esm2022/loading-overlay/loading-overlay.component.mjs +4 -4
- package/esm2022/loading-overlay/loading-overlay.service.mjs +4 -4
- package/esm2022/loading-overlay/public_api.mjs +1 -1
- package/esm2022/menu/kirbydesign-designsystem-menu.mjs +1 -1
- package/esm2022/menu/menu.component.mjs +4 -4
- package/esm2022/menu/public_api.mjs +1 -1
- package/esm2022/modal/kirbydesign-designsystem-modal.mjs +1 -1
- package/esm2022/modal/modal/action-sheet/action-sheet.component.mjs +4 -4
- package/esm2022/modal/modal/action-sheet/config/action-sheet-config.mjs +1 -1
- package/esm2022/modal/modal/action-sheet/config/action-sheet-item.mjs +1 -1
- package/esm2022/modal/modal/action-sheet/index.mjs +1 -1
- package/esm2022/modal/modal/alert/alert.component.mjs +4 -4
- package/esm2022/modal/modal/alert/config/alert-config.mjs +1 -1
- package/esm2022/modal/modal/alert/index.mjs +1 -1
- package/esm2022/modal/modal/footer/modal-footer.component.mjs +5 -5
- package/esm2022/modal/modal/index.mjs +1 -1
- package/esm2022/modal/modal/modal-component/modal.component.mjs +12 -19
- package/esm2022/modal/modal/services/action-sheet.helper.mjs +4 -4
- package/esm2022/modal/modal/services/alert.helper.mjs +4 -4
- package/esm2022/modal/modal/services/can-dismiss-modal-guard.mjs +31 -0
- package/esm2022/modal/modal/services/can-dismiss.helper.mjs +4 -4
- package/esm2022/modal/modal/services/index.mjs +2 -1
- package/esm2022/modal/modal/services/modal-animation-builder.service.mjs +4 -4
- package/esm2022/modal/modal/services/modal.controller.mjs +12 -8
- package/esm2022/modal/modal/services/modal.helper.mjs +24 -26
- package/esm2022/modal/modal-navigation.service.mjs +25 -14
- package/esm2022/modal/modal-wrapper/compact/index.mjs +1 -1
- package/esm2022/modal/modal-wrapper/compact/modal-compact-wrapper.component.mjs +4 -4
- package/esm2022/modal/modal-wrapper/config/drawer-supplementary-action.mjs +1 -1
- package/esm2022/modal/modal-wrapper/config/index.mjs +1 -1
- package/esm2022/modal/modal-wrapper/config/modal-config.helper.mjs +1 -1
- package/esm2022/modal/modal-wrapper/config/modal-config.mjs +1 -1
- package/esm2022/modal/modal-wrapper/index.mjs +1 -1
- package/esm2022/modal/modal-wrapper/modal-elements-mover.delegate.mjs +1 -1
- package/esm2022/modal/modal-wrapper/modal-wrapper.component.mjs +5 -5
- package/esm2022/modal/modal.interfaces.mjs +4 -4
- package/esm2022/modal/public_api.mjs +1 -1
- package/esm2022/modal/v2/footer/footer.component.mjs +5 -5
- package/esm2022/modal/v2/kirby-modal.module.mjs +5 -5
- package/esm2022/modal/v2/kirbydesign-designsystem-modal-v2.mjs +1 -1
- package/esm2022/modal/v2/modal/modal.component.mjs +5 -5
- package/esm2022/modal/v2/modal-routing/modal-routing.component.mjs +4 -4
- package/esm2022/modal/v2/public_api.mjs +1 -1
- package/esm2022/modal/v2/services/modal.controller.mjs +4 -4
- package/esm2022/modal/v2/wrapper/wrapper.component.mjs +5 -5
- package/esm2022/page/kirbydesign-designsystem-page.mjs +1 -1
- package/esm2022/page/page-footer/page-footer.component.mjs +5 -5
- package/esm2022/page/page.component.mjs +38 -35
- package/esm2022/page/page.module.mjs +5 -5
- package/esm2022/page/public_api.mjs +1 -1
- package/esm2022/popover/kirbydesign-designsystem-popover.mjs +1 -1
- package/esm2022/popover/popover.component.mjs +4 -4
- package/esm2022/popover/public_api.mjs +1 -1
- package/esm2022/progress-circle/kirbydesign-designsystem-progress-circle.mjs +1 -1
- package/esm2022/progress-circle/progress-circle-ring.component.mjs +4 -4
- package/esm2022/progress-circle/progress-circle.component.mjs +4 -4
- package/esm2022/progress-circle/public_api.mjs +1 -1
- package/esm2022/public-api.mjs +1 -1
- package/esm2022/radio/kirbydesign-designsystem-radio.mjs +1 -1
- package/esm2022/radio/public_api.mjs +1 -1
- package/esm2022/radio/radio-group/radio-group.component.mjs +4 -4
- package/esm2022/radio/radio-module.mjs +5 -5
- package/esm2022/radio/radio.component.mjs +17 -10
- package/esm2022/range/kirbydesign-designsystem-range.mjs +1 -1
- package/esm2022/range/public_api.mjs +1 -1
- package/esm2022/range/range.component.mjs +6 -6
- package/esm2022/reorder-list/kirbydesign-designsystem-reorder-list.mjs +1 -1
- package/esm2022/reorder-list/public_api.mjs +1 -1
- package/esm2022/reorder-list/reorder-event.mjs +1 -1
- package/esm2022/reorder-list/reorder-list.component.mjs +4 -4
- package/esm2022/router-outlet/kirbydesign-designsystem-router-outlet.mjs +1 -1
- package/esm2022/router-outlet/public_api.mjs +1 -1
- package/esm2022/router-outlet/router-outlet.component.mjs +4 -4
- package/esm2022/router-outlet/router-outlet.module.mjs +5 -5
- package/esm2022/section-header/kirbydesign-designsystem-section-header.mjs +1 -1
- package/esm2022/section-header/public_api.mjs +1 -1
- package/esm2022/section-header/section-header.component.mjs +4 -4
- package/esm2022/shared/component-configuration.mjs +1 -1
- package/esm2022/shared/component-loader.directive.mjs +4 -4
- package/esm2022/shared/dynamic-component.mjs +1 -1
- package/esm2022/shared/fit-heading/fit-heading.directive.mjs +4 -4
- package/esm2022/shared/fit-heading/index.mjs +1 -1
- package/esm2022/shared/floating/floating.directive.mjs +4 -4
- package/esm2022/shared/floating/kirbydesign-designsystem-shared-floating.mjs +1 -1
- package/esm2022/shared/floating/public_api.mjs +1 -1
- package/esm2022/shared/kirbydesign-designsystem-shared.mjs +1 -1
- package/esm2022/shared/portal/kirbydesign-designsystem-shared-portal.mjs +1 -1
- package/esm2022/shared/portal/portal.directive.mjs +4 -4
- package/esm2022/shared/portal/public_api.mjs +1 -1
- package/esm2022/shared/public_api.mjs +1 -1
- package/esm2022/shared/resize-observer/resize-observer.factory.mjs +4 -4
- package/esm2022/shared/resize-observer/resize-observer.service.mjs +4 -4
- package/esm2022/shared/theme-color/theme-color.directive.mjs +4 -4
- package/esm2022/slide/kirbydesign-designsystem-slide.mjs +1 -1
- package/esm2022/slide/public_api.mjs +1 -1
- package/esm2022/slide/slide-stretch-height.directive.mjs +4 -4
- package/esm2022/slide/slide.directive.mjs +4 -4
- package/esm2022/slide/slide.module.mjs +5 -5
- package/esm2022/slide/slides.component.mjs +4 -4
- package/esm2022/slide-button/kirbydesign-designsystem-slide-button.mjs +1 -1
- package/esm2022/slide-button/public_api.mjs +1 -1
- package/esm2022/slide-button/slide-button.component.mjs +5 -5
- package/esm2022/spinner/kirbydesign-designsystem-spinner.mjs +1 -1
- package/esm2022/spinner/public_api.mjs +1 -1
- package/esm2022/spinner/spinner.component.mjs +4 -4
- package/esm2022/spinner/spinner.module.mjs +5 -5
- package/esm2022/tab-navigation/kirbydesign-designsystem-tab-navigation.mjs +1 -1
- package/esm2022/tab-navigation/public_api.mjs +1 -1
- package/esm2022/tab-navigation/tab-navigation/tab-navigation.component.mjs +4 -4
- package/esm2022/tab-navigation/tab-navigation-item/tab-navigation-item.component.mjs +4 -4
- package/esm2022/tab-navigation/tab-navigation.module.mjs +5 -5
- package/esm2022/tabs/kirbydesign-designsystem-tabs.mjs +1 -1
- package/esm2022/tabs/public_api.mjs +1 -1
- package/esm2022/tabs/tab-button/tab-button.component.mjs +5 -5
- package/esm2022/tabs/tab-button/tab-button.events.mjs +1 -1
- package/esm2022/tabs/tabs.component.mjs +4 -4
- package/esm2022/tabs/tabs.module.mjs +5 -5
- package/esm2022/tabs/tabs.service.mjs +4 -4
- package/esm2022/testing/element-css-custom-matchers.mjs +1 -1
- package/esm2022/testing/kirbydesign-designsystem-testing.mjs +1 -1
- package/esm2022/testing/public_api.mjs +1 -1
- package/esm2022/testing/test-helper.mjs +5 -5
- package/esm2022/testing-base/kirbydesign-designsystem-testing-base.mjs +1 -1
- package/esm2022/testing-base/lib/components/index.mjs +1 -1
- package/esm2022/testing-base/lib/components/mock.accordion-item.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.action-group.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.action-sheet.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.alert.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.avatar.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.badge.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.base-chart.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.button.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.calendar.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.card-footer.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.card-header.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.card.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.chart.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.checkbox.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.divider.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.dropdown.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.empty-state.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.fab-sheet.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.flag.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.footer.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.form-field-message.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.form-field.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.header.component.mjs +12 -10
- package/esm2022/testing-base/lib/components/mock.icon.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.input-counter.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.input.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.item-group.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.item-sliding.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.item.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.kirby-app.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.label.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.list-experimental.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.list-header.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.list-item.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.list-section-header.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.list.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.loading-overlay.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.menu.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.modal-compact-wrapper.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.modal-footer.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.modal-routing.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.modal-wrapper.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.modal.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.page-footer.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.page-local-navigation.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.page.component.mjs +44 -34
- package/esm2022/testing-base/lib/components/mock.popover.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.progress-circle-ring.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.progress-circle.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.radio-group.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.radio.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.range.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.reorder-list.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.router-outlet.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.section-header.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.segmented-control.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.slide-button.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.slides.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.spinner.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.stock-chart.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.tab-button.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.tab-navigation-item.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.tab-navigation.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.table-row.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.table.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.tabs.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.textarea.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.toggle-button.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.toggle.component.mjs +6 -4
- package/esm2022/testing-base/lib/components/mock.wrapper.component.mjs +6 -4
- package/esm2022/testing-base/lib/directives/index.mjs +1 -1
- package/esm2022/testing-base/lib/directives/mock.accordion.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.affix.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.card-as-button.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.component-loader.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.date-input.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.decimal-mask.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.fit-heading.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.floating.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.infinite-scroll.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.key-handler.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.list-item-color.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.list.directive.mjs +13 -13
- package/esm2022/testing-base/lib/directives/mock.modal-router-link.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.portal.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.slide.directive.mjs +4 -4
- package/esm2022/testing-base/lib/directives/mock.theme-color.directive.mjs +4 -4
- package/esm2022/testing-base/lib/index.mjs +1 -1
- package/esm2022/testing-base/lib/kirby-testing-base.module.mjs +5 -5
- package/esm2022/testing-base/lib/mock-components.mjs +1 -1
- package/esm2022/testing-base/lib/mock-directives.mjs +1 -1
- package/esm2022/testing-base/public_api.mjs +1 -1
- package/esm2022/testing-jasmine/kirbydesign-designsystem-testing-jasmine.mjs +1 -1
- package/esm2022/testing-jasmine/lib/kirby-testing.module.mjs +5 -5
- package/esm2022/testing-jasmine/lib/mock-providers.mjs +1 -1
- package/esm2022/testing-jasmine/public_api.mjs +1 -1
- package/esm2022/testing-jest/kirbydesign-designsystem-testing-jest.mjs +1 -1
- package/esm2022/testing-jest/lib/kirby-testing.module.mjs +5 -5
- package/esm2022/testing-jest/lib/mock-providers.mjs +1 -1
- package/esm2022/testing-jest/public_api.mjs +1 -1
- package/esm2022/toast/config/toast-config.mjs +1 -1
- package/esm2022/toast/kirbydesign-designsystem-toast.mjs +1 -1
- package/esm2022/toast/public_api.mjs +1 -1
- package/esm2022/toast/services/indexs.mjs +1 -1
- package/esm2022/toast/services/toast.controller.mjs +4 -4
- package/esm2022/toast/services/toast.helper.mjs +4 -4
- package/esm2022/toggle/kirbydesign-designsystem-toggle.mjs +1 -1
- package/esm2022/toggle/public_api.mjs +1 -1
- package/esm2022/toggle/toggle.component.mjs +22 -9
- package/esm2022/toggle-button/kirbydesign-designsystem-toggle-button.mjs +1 -1
- package/esm2022/toggle-button/public_api.mjs +1 -1
- package/esm2022/toggle-button/toggle-button.component.mjs +4 -4
- package/esm2022/toggle-button/toggle-button.module.mjs +5 -5
- package/esm2022/types/event-listener-dispose-fn.mjs +1 -1
- package/esm2022/types/kirbydesign-designsystem-types.mjs +1 -1
- package/esm2022/types/public_api.mjs +1 -1
- package/esm2022/types/window-ref.mjs +4 -4
- package/fesm2022/kirbydesign-designsystem-accordion.mjs +14 -11
- package/fesm2022/kirbydesign-designsystem-accordion.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-action-group.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-action-group.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-avatar.mjs +11 -5
- package/fesm2022/kirbydesign-designsystem-avatar.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-badge.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-badge.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-button.mjs +4 -4
- package/fesm2022/kirbydesign-designsystem-button.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-calendar.mjs +6 -6
- package/fesm2022/kirbydesign-designsystem-calendar.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-card.mjs +42 -27
- package/fesm2022/kirbydesign-designsystem-card.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-chart.mjs +22 -22
- package/fesm2022/kirbydesign-designsystem-chart.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-checkbox.mjs +17 -10
- package/fesm2022/kirbydesign-designsystem-checkbox.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-data-table.mjs +13 -13
- package/fesm2022/kirbydesign-designsystem-data-table.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-divider.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-divider.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-dropdown.mjs +11 -11
- package/fesm2022/kirbydesign-designsystem-dropdown.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-empty-state.mjs +7 -7
- package/fesm2022/kirbydesign-designsystem-empty-state.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-fab-sheet.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-fab-sheet.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-flag.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-flag.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-form-field.mjs +28 -28
- package/fesm2022/kirbydesign-designsystem-form-field.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-header.mjs +26 -19
- package/fesm2022/kirbydesign-designsystem-header.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-helpers-scss.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-helpers.mjs +9 -9
- package/fesm2022/kirbydesign-designsystem-helpers.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-icon.mjs +10 -10
- package/fesm2022/kirbydesign-designsystem-icon.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-item-group.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-item-group.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-item-sliding.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-item-sliding.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-item.mjs +65 -33
- package/fesm2022/kirbydesign-designsystem-item.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-kirby-app.mjs +7 -7
- package/fesm2022/kirbydesign-designsystem-kirby-app.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-kirby-ionic-module.mjs +4 -4
- package/fesm2022/kirbydesign-designsystem-kirby-ionic-module.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-list.mjs +55 -49
- package/fesm2022/kirbydesign-designsystem-list.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-loading-overlay.mjs +6 -6
- package/fesm2022/kirbydesign-designsystem-loading-overlay.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-menu.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-menu.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-modal-v2.mjs +22 -22
- package/fesm2022/kirbydesign-designsystem-modal-v2.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-modal.mjs +124 -91
- package/fesm2022/kirbydesign-designsystem-modal.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-page.mjs +45 -42
- package/fesm2022/kirbydesign-designsystem-page.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-popover.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-popover.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-progress-circle.mjs +6 -6
- package/fesm2022/kirbydesign-designsystem-progress-circle.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-radio.mjs +23 -16
- package/fesm2022/kirbydesign-designsystem-radio.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-range.mjs +5 -5
- package/fesm2022/kirbydesign-designsystem-range.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-reorder-list.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-reorder-list.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-router-outlet.mjs +7 -7
- package/fesm2022/kirbydesign-designsystem-router-outlet.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-section-header.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-section-header.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-shared-floating.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-shared-floating.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-shared-portal.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-shared-portal.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-shared.mjs +15 -15
- package/fesm2022/kirbydesign-designsystem-shared.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-slide-button.mjs +4 -4
- package/fesm2022/kirbydesign-designsystem-slide-button.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-slide.mjs +13 -13
- package/fesm2022/kirbydesign-designsystem-slide.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-spinner.mjs +7 -7
- package/fesm2022/kirbydesign-designsystem-spinner.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-tab-navigation.mjs +10 -10
- package/fesm2022/kirbydesign-designsystem-tab-navigation.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-tabs.mjs +14 -14
- package/fesm2022/kirbydesign-designsystem-tabs.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-testing-base.mjs +455 -307
- package/fesm2022/kirbydesign-designsystem-testing-base.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-testing-jasmine.mjs +4 -4
- package/fesm2022/kirbydesign-designsystem-testing-jasmine.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-testing-jest.mjs +4 -4
- package/fesm2022/kirbydesign-designsystem-testing-jest.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-testing.mjs +4 -4
- package/fesm2022/kirbydesign-designsystem-testing.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-toast.mjs +6 -6
- package/fesm2022/kirbydesign-designsystem-toast.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-toggle-button.mjs +7 -7
- package/fesm2022/kirbydesign-designsystem-toggle-button.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-toggle.mjs +20 -7
- package/fesm2022/kirbydesign-designsystem-toggle.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-types.mjs +3 -3
- package/fesm2022/kirbydesign-designsystem-types.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem.mjs +21 -21
- package/fesm2022/kirbydesign-designsystem.mjs.map +1 -1
- package/header/header.component.d.ts +5 -2
- package/item/item.component.d.ts +11 -2
- package/list/list.module.d.ts +1 -1
- package/modal/modal/modal-component/modal.component.d.ts +5 -5
- package/modal/modal/services/can-dismiss-modal-guard.d.ts +2 -0
- package/modal/modal/services/index.d.ts +1 -0
- package/modal/modal/services/modal.controller.d.ts +2 -0
- package/modal/modal/services/modal.helper.d.ts +3 -4
- package/modal/modal-navigation.service.d.ts +1 -0
- package/modal/modal.interfaces.d.ts +1 -0
- package/package.json +51 -51
- package/radio/radio.component.d.ts +8 -4
- package/scss/base/_design-tokens.scss +1 -0
- package/scss/themes/design-tokens.scss +1 -0
- package/testing-base/lib/components/mock.avatar.component.d.ts +1 -1
- package/testing-base/lib/components/mock.button.component.d.ts +1 -1
- package/testing-jest/lib/mock-providers.d.ts +28 -28
- package/toggle/toggle.component.d.ts +8 -4
- package/README.md +0 -7
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter, Component, Input, Output, ChangeDetectionStrategy, ViewChild, Optional, InjectionToken, ElementRef, Injector, RendererStyleFlags2, TemplateRef, HostBinding, ContentChild, ViewChildren, HostListener, Inject } from '@angular/core';
|
|
2
|
+
import { Injectable, EventEmitter, Component, Input, Output, ChangeDetectionStrategy, ViewChild, Optional, InjectionToken, ElementRef, Injector, RendererStyleFlags2, TemplateRef, HostBinding, ContentChild, ViewChildren, HostListener, Inject, inject } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/router';
|
|
4
|
-
import { NavigationEnd, RouterOutlet, RouterModule, ROUTES } from '@angular/router';
|
|
5
|
-
import { firstValueFrom, EMPTY, of, Subject, merge
|
|
6
|
-
import { filter, startWith, map, pairwise, debounceTime, first
|
|
4
|
+
import { NavigationEnd, NavigationStart, RouterOutlet, RouterModule, ROUTES } from '@angular/router';
|
|
5
|
+
import { firstValueFrom, EMPTY, of, Subject, merge } from 'rxjs';
|
|
6
|
+
import { filter, startWith, map, pairwise, skipUntil, takeUntil, debounceTime, first } from 'rxjs/operators';
|
|
7
7
|
import * as i2 from '@angular/common';
|
|
8
8
|
import { CommonModule } from '@angular/common';
|
|
9
9
|
import * as i1$2 from '@ionic/angular/standalone';
|
|
10
|
-
import { IonContent, IonHeader, IonToolbar, IonTitle, IonButtons, createAnimation, IonModal, IonFooter } from '@ionic/angular/standalone';
|
|
10
|
+
import { IonContent, IonHeader, IonToolbar, IonTitle, IonButtons, createAnimation, ModalController as ModalController$1, IonModal, IonFooter } from '@ionic/angular/standalone';
|
|
11
11
|
import { ButtonComponent } from '@kirbydesign/designsystem/button';
|
|
12
12
|
import * as i1$1 from '@kirbydesign/designsystem/card';
|
|
13
13
|
import { CardModule } from '@kirbydesign/designsystem/card';
|
|
@@ -233,7 +233,7 @@ class ModalNavigationService {
|
|
|
233
233
|
return { activated$: EMPTY, deactivated$: EMPTY };
|
|
234
234
|
}
|
|
235
235
|
async navigateToModal(path, queryParams, alertConfig) {
|
|
236
|
-
const commands = Array.isArray(path) ? path : path.split('/');
|
|
236
|
+
const commands = Array.isArray(path) ? [...path] : path.split('/');
|
|
237
237
|
const childPath = commands.pop();
|
|
238
238
|
const navigationData = { navigationData: { alertConfig } };
|
|
239
239
|
const result = await this.router.navigate([...commands, { outlets: { modal: [childPath] } }], {
|
|
@@ -250,15 +250,17 @@ class ModalNavigationService {
|
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
async navigateOutOfModalOutlet() {
|
|
253
|
-
let result = Promise.resolve(true);
|
|
254
253
|
const currentActivatedRoute = this.getCurrentActivatedRoute();
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
const currentNavigationFinalUrl = this.router.getCurrentNavigation()?.finalUrl?.toString();
|
|
255
|
+
const isCurrentlyNavigatingOutOfModalOutlet = currentNavigationFinalUrl && !this.isModalRoute(currentNavigationFinalUrl);
|
|
256
|
+
if (currentActivatedRoute.outlet !== 'modal' || isCurrentlyNavigatingOutOfModalOutlet) {
|
|
257
|
+
// Nothing to do here, bail out:
|
|
258
|
+
return Promise.resolve(true);
|
|
260
259
|
}
|
|
261
|
-
|
|
260
|
+
const parentRoute = this.getBackdropRoute(currentActivatedRoute);
|
|
261
|
+
return this.router.navigate(['./'], {
|
|
262
|
+
relativeTo: parentRoute,
|
|
263
|
+
});
|
|
262
264
|
}
|
|
263
265
|
getBackdropRoute(currentActivatedRoute) {
|
|
264
266
|
let parentRoute = currentActivatedRoute.parent;
|
|
@@ -267,10 +269,19 @@ class ModalNavigationService {
|
|
|
267
269
|
}
|
|
268
270
|
return parentRoute;
|
|
269
271
|
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
+
handleBrowserBackButton(modal) {
|
|
273
|
+
const popstateNavigationStart$ = this.router.events.pipe(filter((event) => event instanceof NavigationStart && event.navigationTrigger === 'popstate'));
|
|
274
|
+
const navigationEnd$ = this.router.events.pipe(filter((event) => event instanceof NavigationEnd));
|
|
275
|
+
navigationEnd$
|
|
276
|
+
.pipe(skipUntil(popstateNavigationStart$), takeUntil(modal.onWillDismiss()))
|
|
277
|
+
.subscribe(() => {
|
|
278
|
+
modal.dismiss();
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalNavigationService, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.Location }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
282
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalNavigationService, providedIn: 'root' }); }
|
|
272
283
|
}
|
|
273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalNavigationService, decorators: [{
|
|
274
285
|
type: Injectable,
|
|
275
286
|
args: [{ providedIn: 'root' }]
|
|
276
287
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.Location }] });
|
|
@@ -289,10 +300,10 @@ class ActionSheetComponent {
|
|
|
289
300
|
onCancel() {
|
|
290
301
|
this.cancel.emit();
|
|
291
302
|
}
|
|
292
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
293
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
303
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ActionSheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
304
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ActionSheetComponent, isStandalone: true, selector: "kirby-action-sheet", inputs: { cancelButtonText: "cancelButtonText", hideCancel: "hideCancel", disabled: "disabled", header: "header", subheader: "subheader", items: "items" }, outputs: { cancel: "cancel", itemSelect: "itemSelect" }, ngImport: i0, template: "<kirby-card>\n <kirby-card-header\n *ngIf=\"header\"\n [title]=\"header\"\n [isTitleBold]=\"true\"\n [subtitle]=\"subheader\"\n ></kirby-card-header>\n <button\n kirby-button\n expand=\"block\"\n size=\"lg\"\n [noDecoration]=\"true\"\n (click)=\"onItemSelect(item)\"\n *ngFor=\"let item of items\"\n >\n {{ item.text }}\n </button>\n</kirby-card>\n<button\n *ngIf=\"!hideCancel\"\n kirby-button\n class=\"cancel-btn\"\n size=\"lg\"\n attentionLevel=\"3\"\n (click)=\"onCancel()\"\n>\n {{ cancelButtonText }}\n</button>\n", styles: [":host{--kirby-internal-margin-horizontal-default: 32px;--kirby-internal-margin-horizontal-total: calc( 2 * var(--kirby-action-sheet-margin-horizontal, var(--kirby-internal-margin-horizontal-default)) );display:flex;flex-direction:column;align-items:center;justify-content:flex-end;margin:0 auto;width:calc(100vw - var(--kirby-internal-margin-horizontal-total));max-width:calc(375px - var(--kirby-internal-margin-horizontal-total))}@media (max-width: 320px){:host{--kirby-internal-margin-horizontal-default: 16px}}@media (hover: hover) and (pointer: fine){:host button[kirby-button].no-decoration:focus-visible{box-shadow:none;--state-layer-opacity: .08;--state-layer-background-color: var(--kirby-black)}}kirby-card{align-self:stretch;pointer-events:auto;box-shadow:0 20px 30px -15px #1c1c1c4d,0 0 5px #1c1c1c14}kirby-card button[kirby-button]{margin:0;border-radius:0}kirby-card button[kirby-button]:not(:focus){border-top:1px solid var(--kirby-background-color)}.cancel-btn{font-weight:700;margin-top:16px;margin-bottom:24px;pointer-events:auto}@media (hover: hover) and (pointer: fine){.cancel-btn:focus{transition:all 80ms linear 0ms;box-shadow:0 20px 30px -15px #1c1c1c4d,0 0 5px #1c1c1c14,0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}.cancel-btn:focus:not(:focus-visible){box-shadow:0 20px 30px -15px #1c1c1c4d,0 0 5px #1c1c1c14,0 0 0 0 transparent}.cancel-btn:focus-visible{transition:all 80ms linear 0ms;box-shadow:0 20px 30px -15px #1c1c1c4d,0 0 5px #1c1c1c14,0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}\n"], dependencies: [{ kind: "ngmodule", type: CardModule }, { kind: "component", type: i1$1.CardComponent, selector: "kirby-card", inputs: ["title", "subtitle", "backgroundImageUrl", "hasPadding", "sizes", "flat", "variant"] }, { kind: "component", type: i1$1.CardHeaderComponent, selector: "kirby-card-header", inputs: ["title", "subtitle", "isTitleBold", "flagged", "hasPadding"] }, { kind: "component", type: ButtonComponent, selector: "button[kirby-button],Button[kirby-button],a[kirby-button]", inputs: ["attentionLevel", "noDecoration", "themeColor", "expand", "isFloating", "size", "showIconOnly"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
294
305
|
}
|
|
295
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ActionSheetComponent, decorators: [{
|
|
296
307
|
type: Component,
|
|
297
308
|
args: [{ standalone: true, imports: [CardModule, ButtonComponent, CommonModule], selector: 'kirby-action-sheet', template: "<kirby-card>\n <kirby-card-header\n *ngIf=\"header\"\n [title]=\"header\"\n [isTitleBold]=\"true\"\n [subtitle]=\"subheader\"\n ></kirby-card-header>\n <button\n kirby-button\n expand=\"block\"\n size=\"lg\"\n [noDecoration]=\"true\"\n (click)=\"onItemSelect(item)\"\n *ngFor=\"let item of items\"\n >\n {{ item.text }}\n </button>\n</kirby-card>\n<button\n *ngIf=\"!hideCancel\"\n kirby-button\n class=\"cancel-btn\"\n size=\"lg\"\n attentionLevel=\"3\"\n (click)=\"onCancel()\"\n>\n {{ cancelButtonText }}\n</button>\n", styles: [":host{--kirby-internal-margin-horizontal-default: 32px;--kirby-internal-margin-horizontal-total: calc( 2 * var(--kirby-action-sheet-margin-horizontal, var(--kirby-internal-margin-horizontal-default)) );display:flex;flex-direction:column;align-items:center;justify-content:flex-end;margin:0 auto;width:calc(100vw - var(--kirby-internal-margin-horizontal-total));max-width:calc(375px - var(--kirby-internal-margin-horizontal-total))}@media (max-width: 320px){:host{--kirby-internal-margin-horizontal-default: 16px}}@media (hover: hover) and (pointer: fine){:host button[kirby-button].no-decoration:focus-visible{box-shadow:none;--state-layer-opacity: .08;--state-layer-background-color: var(--kirby-black)}}kirby-card{align-self:stretch;pointer-events:auto;box-shadow:0 20px 30px -15px #1c1c1c4d,0 0 5px #1c1c1c14}kirby-card button[kirby-button]{margin:0;border-radius:0}kirby-card button[kirby-button]:not(:focus){border-top:1px solid var(--kirby-background-color)}.cancel-btn{font-weight:700;margin-top:16px;margin-bottom:24px;pointer-events:auto}@media (hover: hover) and (pointer: fine){.cancel-btn:focus{transition:all 80ms linear 0ms;box-shadow:0 20px 30px -15px #1c1c1c4d,0 0 5px #1c1c1c14,0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}.cancel-btn:focus:not(:focus-visible){box-shadow:0 20px 30px -15px #1c1c1c4d,0 0 5px #1c1c1c14,0 0 0 0 transparent}.cancel-btn:focus-visible{transition:all 80ms linear 0ms;box-shadow:0 20px 30px -15px #1c1c1c4d,0 0 5px #1c1c1c14,0 0 0 2px var(--kirby-background-color),0 0 0 4px #4d90fe}}\n"] }]
|
|
298
309
|
}], propDecorators: { cancelButtonText: [{
|
|
@@ -347,10 +358,10 @@ class ActionSheetHelper {
|
|
|
347
358
|
onDidDismiss: ionModal.onDidDismiss(),
|
|
348
359
|
};
|
|
349
360
|
}
|
|
350
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
351
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
361
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ActionSheetHelper, deps: [{ token: i1$2.ModalController }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
362
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ActionSheetHelper }); }
|
|
352
363
|
}
|
|
353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ActionSheetHelper, decorators: [{
|
|
354
365
|
type: Injectable
|
|
355
366
|
}], ctorParameters: () => [{ type: i1$2.ModalController }] });
|
|
356
367
|
|
|
@@ -385,10 +396,10 @@ class AlertComponent {
|
|
|
385
396
|
const ionModalElement = this.elementRef.nativeElement.closest('ion-modal');
|
|
386
397
|
ionModalElement && ionModalElement.dismiss(true);
|
|
387
398
|
}
|
|
388
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
389
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
399
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlertComponent, deps: [{ token: i0.ElementRef }, { token: i1$3.WindowRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
400
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: AlertComponent, isStandalone: true, selector: "kirby-alert", inputs: { title: "title", message: "message", iconName: "iconName", iconThemeColor: "iconThemeColor", okBtn: "okBtn", okBtnIsDestructive: "okBtnIsDestructive", cancelBtn: "cancelBtn" }, host: { properties: { "class.ion-page": "false" } }, viewQueries: [{ propertyName: "alertWrapper", first: true, predicate: ["alertWrapper"], descendants: true, static: true }], ngImport: i0, template: "<article #alertWrapper>\n <kirby-empty-state\n [iconName]=\"iconName\"\n [themeColor]=\"iconThemeColor\"\n [title]=\"title$ | async\"\n [subtitle]=\"message$ | async\"\n ></kirby-empty-state>\n <div class=\"buttongroup\">\n <button\n kirby-button\n *ngIf=\"cancelBtn\"\n attentionLevel=\"3\"\n class=\"cancel-btn\"\n (click)=\"onCancel()\"\n >\n {{ cancelBtn }}\n </button>\n <button\n kirby-button\n [size]=\"cancelBtn ? null : 'lg'\"\n attentionLevel=\"1\"\n class=\"ok-btn\"\n [class.destructive]=\"okBtnIsDestructive\"\n (click)=\"onOk()\"\n >\n {{ okBtn }}\n </button>\n </div>\n</article>\n", styles: ["article{overflow:hidden;padding:24px 16px 16px}@media (max-width: 320px){article{padding:8px}}.buttongroup{display:flex;justify-content:center;column-gap:8px}.buttongroup button{flex:1 1 50%;margin-inline:0}.buttongroup button:only-child{flex-grow:0}\n"], dependencies: [{ kind: "ngmodule", type: IconModule }, { kind: "directive", type: i1$4.ThemeColorDirective, selector: "kirby-avatar[themeColor], kirby-card[themeColor], kirby-icon[themeColor], kirby-progress-circle-ring[themeColor], kirby-modal-footer[themeColor], kirby-empty-state[themeColor]", inputs: ["themeColor"] }, { kind: "ngmodule", type: EmptyStateModule }, { kind: "component", type: i3.EmptyStateComponent, selector: "kirby-empty-state", inputs: ["iconName", "customIconName", "title", "subtitle"] }, { kind: "component", type: ButtonComponent, selector: "button[kirby-button],Button[kirby-button],a[kirby-button]", inputs: ["attentionLevel", "noDecoration", "themeColor", "expand", "isFloating", "size", "showIconOnly"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
390
401
|
}
|
|
391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlertComponent, decorators: [{
|
|
392
403
|
type: Component,
|
|
393
404
|
args: [{ standalone: true, imports: [
|
|
394
405
|
IconModule,
|
|
@@ -461,10 +472,10 @@ class AlertHelper {
|
|
|
461
472
|
getOkBtnIsDestructive(config) {
|
|
462
473
|
return typeof config.okBtn === 'object' ? config.okBtn.isDestructive : undefined;
|
|
463
474
|
}
|
|
464
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
465
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
475
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlertHelper, deps: [{ token: i1$2.ModalController }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
476
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlertHelper }); }
|
|
466
477
|
}
|
|
467
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AlertHelper, decorators: [{
|
|
468
479
|
type: Injectable
|
|
469
480
|
}], ctorParameters: () => [{ type: i1$2.ModalController }] });
|
|
470
481
|
|
|
@@ -506,10 +517,10 @@ class ModalElementComponent {
|
|
|
506
517
|
this.modalElementsAdvertiser.removeModalElement(this.modalElementType, this.elementRef);
|
|
507
518
|
}
|
|
508
519
|
}
|
|
509
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
510
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
520
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalElementComponent, deps: [{ token: ModalElementType }, { token: i0.ElementRef }, { token: ModalElementsAdvertiser, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
521
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ModalElementComponent, selector: "ng-component", ngImport: i0, template: '', isInline: true }); }
|
|
511
522
|
}
|
|
512
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalElementComponent, decorators: [{
|
|
513
524
|
type: Component,
|
|
514
525
|
args: [{ template: '' }]
|
|
515
526
|
}], ctorParameters: () => [{ type: ModalElementType }, { type: i0.ElementRef }, { type: ModalElementsAdvertiser, decorators: [{
|
|
@@ -534,10 +545,10 @@ class CanDismissHelper {
|
|
|
534
545
|
const result = await alert.onWillDismiss;
|
|
535
546
|
return result.data;
|
|
536
547
|
}
|
|
537
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
538
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
548
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CanDismissHelper, deps: [{ token: AlertHelper }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
549
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CanDismissHelper }); }
|
|
539
550
|
}
|
|
540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CanDismissHelper, decorators: [{
|
|
541
552
|
type: Injectable
|
|
542
553
|
}], ctorParameters: () => [{ type: AlertHelper }] });
|
|
543
554
|
|
|
@@ -1015,13 +1026,13 @@ class ModalWrapperComponent {
|
|
|
1015
1026
|
this.destroy$.next();
|
|
1016
1027
|
this.destroy$.complete();
|
|
1017
1028
|
}
|
|
1018
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1019
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
1029
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalWrapperComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Injector }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1$4.ResizeObserverService }, { token: i1$3.WindowRef }, { token: i3$1.PlatformService }, { token: CanDismissHelper }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1030
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ModalWrapperComponent, isStandalone: true, selector: "kirby-modal-wrapper", inputs: { scrollDisabled: "scrollDisabled", config: "config", content: "content" }, host: { listeners: { "window:focus": "onFocusChange()", "window:focusout": "onFocusChange()", "window:ionKeyboardDidShow": "_onKeyboardShow($event.detail.keyboardHeight)", "window:keyboardWillShow": "_onKeyboardShow($event.keyboardHeight)", "window:ionKeyboardDidHide": "_onKeyboardHide()", "window:keyboardWillHide": "_onKeyboardHide()", "window:resize": "_onWindowResize()" }, properties: { "class.collapsible-title": "this._hasCollapsibleTitle", "class.drawer": "this._isDrawer" } }, providers: [
|
|
1020
1031
|
{ provide: Modal, useExisting: ModalWrapperComponent },
|
|
1021
1032
|
{ provide: ModalElementsAdvertiser, useExisting: ModalWrapperComponent },
|
|
1022
|
-
], queries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true }], viewQueries: [{ propertyName: "ionContent", first: true, predicate: IonContent, descendants: true, static: true }, { propertyName: "ionContentElement", first: true, predicate: IonContent, descendants: true, read: ElementRef, static: true }, { propertyName: "ionHeaderElement", first: true, predicate: IonHeader, descendants: true, read: ElementRef, static: true }, { propertyName: "ionToolbarElement", first: true, predicate: IonToolbar, descendants: true, read: ElementRef, static: true }, { propertyName: "ionTitleElement", first: true, predicate: IonTitle, descendants: true, read: ElementRef, static: true }, { propertyName: "routerOutlet", first: true, predicate: RouterOutlet, descendants: true, static: true }, { propertyName: "_contentTitleElement", first: true, predicate: ["contentTitle"], descendants: true, read: ElementRef }, { propertyName: "toolbarButtonsQuery", predicate: ButtonComponent, descendants: true, read: ElementRef }], ngImport: i0, template: "<ion-header [class.content-scrolled]=\"isContentScrolled\" (touchstart)=\"onHeaderTouchStart($event)\">\n <ion-toolbar>\n <ion-title></ion-title>\n <ion-buttons\n slot=\"secondary\"\n *ngIf=\"config.flavor === 'drawer' && config.drawerSupplementaryAction\"\n >\n <button\n kirby-button\n attentionLevel=\"3\"\n size=\"md\"\n (click)=\"config.drawerSupplementaryAction.action($event)\"\n >\n <kirby-icon [name]=\"config.drawerSupplementaryAction.iconName\"></kirby-icon>\n </button>\n </ion-buttons>\n <ion-buttons slot=\"primary\">\n <button\n kirby-button\n attentionLevel=\"3\"\n size=\"md\"\n [noDecoration]=\"config.interactWithBackground\"\n (click)=\"close()\"\n >\n <kirby-icon name=\"close\"></kirby-icon>\n </button>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n\n<ion-content [scrollEvents]=\"scrollEventsEnabled\">\n <ion-header *ngIf=\"_hasCollapsibleTitle\" collapse=\"condense\">\n <ion-toolbar>\n <span class=\"kirby-text-xlarge\" #contentTitle></span>\n </ion-toolbar>\n </ion-header>\n\n <!-- Outlet for ModalController -->\n <ng-container\n *ngComponentOutlet=\"config.component; injector: componentPropsInjector\"\n ></ng-container>\n\n <!-- Outlet for projected content -->\n <ng-container *ngTemplateOutlet=\"content; injector: modalWrapperInjector\"></ng-container>\n\n <!-- Outlet for route-based modal -->\n <router-outlet\n name=\"kirbyModalWrapperOutlet\"\n [style.visibility]=\"config.modalRoute ? 'visible' : 'hidden'\"\n ></router-outlet>\n</ion-content>\n", styles: ["ion-header{box-sizing:border-box}ion-header ion-toolbar{--padding-start: 8px;--padding-end: 8px;--padding-bottom: 7px;--padding-top: 8px;--border-width: 0;--background: transparent;--color: var(--kirby-modal-color, var(--kirby-black));border-bottom:1px solid transparent;transition:border-color .2s linear}@media (min-width: 768px){ion-header ion-toolbar{--padding-start: 24px;--padding-end: 24px;--padding-bottom: 23px;--padding-top: 24px;padding-inline:0}}ion-header ion-toolbar button{color:var(--color)}:host{--vh100: var(--vh, 1vh) * 100;--header-height: 0px;--footer-height: 0px}@media (max-width: 767px){:host.drawer ion-header ion-toolbar{--padding-top: 16px}:host.drawer ion-header ion-toolbar:first-of-type{padding-top:0}}@media (min-width: 768px){ion-header ion-toolbar{border-bottom-color:var(--kirby-medium)}}ion-header.content-scrolled ion-toolbar{border-bottom-color:var(--kirby-medium)}:host-context(ion-modal.no-header-area-border) ion-header ion-toolbar{border-bottom-color:transparent}@media (max-width: 767px){:host-context(ion-modal.kirby-drawer:not(.kirby-modal-full-height)){padding-top:0;position:relative;contain:inherit;min-height:min(var(--min-height),var(--vh100) - var(--kirby-modal-padding-top, 0px))}:host-context(ion-modal.kirby-drawer:not(.kirby-modal-full-height)) ion-content{contain:content;max-height:calc(var(--vh100) - var(--kirby-modal-padding-top, 0px) - var(--header-height) - var(--footer-height))}:host-context(ion-modal.kirby-drawer:not(.kirby-modal-full-height)) ion-content::part(scroll){height:\"100%\";position:relative}:host-context(ion-modal.kirby-drawer:not(.kirby-modal-full-height)).drawer ion-content::part(scroll){transition:padding-bottom .15s ease-out}:host-context(ion-modal.kirby-drawer:not(.kirby-modal-full-height)).drawer.keyboard-visible ion-content::part(scroll){transition:padding-bottom .25s ease-out 1ms}}:host-context(ion-modal.kirby-drawer.interact-with-background){padding-top:0;position:relative;contain:inherit;min-height:min(var(--min-height),var(--vh100) - var(--kirby-modal-padding-top, 0px))}:host-context(ion-modal.kirby-drawer.interact-with-background) ion-content{contain:content;max-height:calc(var(--vh100) - var(--kirby-modal-padding-top, 0px) - var(--header-height) - var(--footer-height))}:host-context(ion-modal.kirby-drawer.interact-with-background) ion-content::part(scroll){height:\"100%\";position:relative}:host-context(ion-modal.kirby-drawer.interact-with-background).drawer ion-content::part(scroll){transition:padding-bottom .15s ease-out}:host-context(ion-modal.kirby-drawer.interact-with-background).drawer.keyboard-visible ion-content::part(scroll){transition:padding-bottom .25s ease-out 1ms}:host-context(ion-modal.kirby-drawer.interact-with-background) ion-header ion-toolbar{border-bottom-color:transparent}:host-context(ion-modal.modal-card:not(.kirby-drawer)) ion-header ion-toolbar:first-of-type{padding-top:var(--kirby-safe-area-top, 0)}@media (min-width: 768px){:host-context(ion-modal.modal-card:not(.kirby-drawer)) ion-header ion-toolbar:first-of-type{--padding-start: 24px;--padding-end: 24px;--padding-bottom: 23px;--padding-top: 24px;padding-inline:0}}ion-title{box-sizing:border-box;padding-inline:calc(48px + var(--padding-start)) calc(48px + var(--padding-end));font-size:16px;font-weight:700}ion-content{--background: transparent;--color: var(--kirby-modal-color, var(--kirby-black));--padding-top: 24px;--padding-bottom: 24px;--padding-start: 16px;--padding-end: 16px;display:flex;flex-direction:column;height:calc(var(--height) - var(--header-height) - var(--footer-height));max-height:calc(var(--max-height) - var(--header-height) - var(--footer-height))}ion-content ::ng-deep>*{box-sizing:border-box;display:block}@media (min-width: 768px){ion-content{--padding-start: 48px;--padding-end: 48px}}:host(.collapsible-title) ion-content ion-toolbar:first-of-type{--padding-top: 0px;--padding-bottom: 32px;--padding-start: 8px;--padding-end: 8px;border:none}@media (min-width: 768px){:host(.collapsible-title) ion-content ion-toolbar:first-of-type{--padding-start: 16px;--padding-end: 16px}}\n"], dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: ButtonComponent, selector: "button[kirby-button],Button[kirby-button]", inputs: ["attentionLevel", "noDecoration", "themeColor", "expand", "isFloating", "size", "showIconOnly"] }, { kind: "ngmodule", type: IconModule }, { kind: "component", type: i6.IconComponent, selector: "kirby-icon", inputs: ["size", "name", "customName"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }] }); }
|
|
1033
|
+
], queries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true }], viewQueries: [{ propertyName: "ionContent", first: true, predicate: IonContent, descendants: true, static: true }, { propertyName: "ionContentElement", first: true, predicate: IonContent, descendants: true, read: ElementRef, static: true }, { propertyName: "ionHeaderElement", first: true, predicate: IonHeader, descendants: true, read: ElementRef, static: true }, { propertyName: "ionToolbarElement", first: true, predicate: IonToolbar, descendants: true, read: ElementRef, static: true }, { propertyName: "ionTitleElement", first: true, predicate: IonTitle, descendants: true, read: ElementRef, static: true }, { propertyName: "routerOutlet", first: true, predicate: RouterOutlet, descendants: true, static: true }, { propertyName: "_contentTitleElement", first: true, predicate: ["contentTitle"], descendants: true, read: ElementRef }, { propertyName: "toolbarButtonsQuery", predicate: ButtonComponent, descendants: true, read: ElementRef }], ngImport: i0, template: "<ion-header [class.content-scrolled]=\"isContentScrolled\" (touchstart)=\"onHeaderTouchStart($event)\">\n <ion-toolbar>\n <ion-title></ion-title>\n <ion-buttons\n slot=\"secondary\"\n *ngIf=\"config.flavor === 'drawer' && config.drawerSupplementaryAction\"\n >\n <button\n kirby-button\n attentionLevel=\"3\"\n size=\"md\"\n (click)=\"config.drawerSupplementaryAction.action($event)\"\n >\n <kirby-icon [name]=\"config.drawerSupplementaryAction.iconName\"></kirby-icon>\n </button>\n </ion-buttons>\n <ion-buttons slot=\"primary\">\n <button\n kirby-button\n attentionLevel=\"3\"\n size=\"md\"\n [noDecoration]=\"config.interactWithBackground\"\n (click)=\"close()\"\n >\n <kirby-icon name=\"close\"></kirby-icon>\n </button>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n\n<ion-content [scrollEvents]=\"scrollEventsEnabled\">\n <ion-header *ngIf=\"_hasCollapsibleTitle\" collapse=\"condense\">\n <ion-toolbar>\n <span class=\"kirby-text-xlarge\" #contentTitle></span>\n </ion-toolbar>\n </ion-header>\n\n <!-- Outlet for ModalController -->\n <ng-container\n *ngComponentOutlet=\"config.component; injector: componentPropsInjector\"\n ></ng-container>\n\n <!-- Outlet for projected content -->\n <ng-container *ngTemplateOutlet=\"content; injector: modalWrapperInjector\"></ng-container>\n\n <!-- Outlet for route-based modal -->\n <router-outlet\n name=\"kirbyModalWrapperOutlet\"\n [style.visibility]=\"config.modalRoute ? 'visible' : 'hidden'\"\n ></router-outlet>\n</ion-content>\n", styles: ["ion-header{box-sizing:border-box}ion-header ion-toolbar{--padding-start: 8px;--padding-end: 8px;--padding-bottom: 7px;--padding-top: 8px;--border-width: 0;--background: transparent;--color: var(--kirby-modal-color, var(--kirby-black));border-bottom:1px solid transparent;transition:border-color .2s linear}@media (min-width: 768px){ion-header ion-toolbar{--padding-start: 24px;--padding-end: 24px;--padding-bottom: 23px;--padding-top: 24px;padding-inline:0}}ion-header ion-toolbar button{color:var(--color)}:host{--vh100: var(--vh, 1vh) * 100;--header-height: 0px;--footer-height: 0px}@media (max-width: 767px){:host.drawer ion-header ion-toolbar{--padding-top: 16px}:host.drawer ion-header ion-toolbar:first-of-type{padding-top:0}}@media (min-width: 768px){ion-header ion-toolbar{border-bottom-color:var(--kirby-medium)}}ion-header.content-scrolled ion-toolbar{border-bottom-color:var(--kirby-medium)}:host-context(ion-modal.no-header-area-border) ion-header ion-toolbar{border-bottom-color:transparent}@media (max-width: 767px){:host-context(ion-modal.kirby-drawer:not(.kirby-modal-full-height)){padding-top:0;position:relative;contain:inherit;min-height:min(var(--min-height),var(--vh100) - var(--kirby-modal-padding-top, 0px))}:host-context(ion-modal.kirby-drawer:not(.kirby-modal-full-height)) ion-content{contain:content;max-height:calc(var(--vh100) - var(--kirby-modal-padding-top, 0px) - var(--header-height) - var(--footer-height))}:host-context(ion-modal.kirby-drawer:not(.kirby-modal-full-height)) ion-content::part(scroll){height:\"100%\";position:relative}:host-context(ion-modal.kirby-drawer:not(.kirby-modal-full-height)).drawer ion-content::part(scroll){transition:padding-bottom .15s ease-out}:host-context(ion-modal.kirby-drawer:not(.kirby-modal-full-height)).drawer.keyboard-visible ion-content::part(scroll){transition:padding-bottom .25s ease-out 1ms}}:host-context(ion-modal.kirby-drawer.interact-with-background){padding-top:0;position:relative;contain:inherit;min-height:min(var(--min-height),var(--vh100) - var(--kirby-modal-padding-top, 0px))}:host-context(ion-modal.kirby-drawer.interact-with-background) ion-content{contain:content;max-height:calc(var(--vh100) - var(--kirby-modal-padding-top, 0px) - var(--header-height) - var(--footer-height))}:host-context(ion-modal.kirby-drawer.interact-with-background) ion-content::part(scroll){height:\"100%\";position:relative}:host-context(ion-modal.kirby-drawer.interact-with-background).drawer ion-content::part(scroll){transition:padding-bottom .15s ease-out}:host-context(ion-modal.kirby-drawer.interact-with-background).drawer.keyboard-visible ion-content::part(scroll){transition:padding-bottom .25s ease-out 1ms}:host-context(ion-modal.kirby-drawer.interact-with-background) ion-header ion-toolbar{border-bottom-color:transparent}:host-context(ion-modal.modal-card:not(.kirby-drawer)) ion-header ion-toolbar:first-of-type{padding-top:var(--kirby-safe-area-top, 0)}@media (min-width: 768px){:host-context(ion-modal.modal-card:not(.kirby-drawer)) ion-header ion-toolbar:first-of-type{--padding-start: 24px;--padding-end: 24px;--padding-bottom: 23px;--padding-top: 24px;padding-inline:0}}ion-title{box-sizing:border-box;padding-inline:calc(48px + var(--padding-start)) calc(48px + var(--padding-end));font-size:16px;font-weight:700}ion-content{--background: transparent;--color: var(--kirby-modal-color, var(--kirby-black));--padding-top: 24px;--padding-bottom: 24px;--padding-start: 16px;--padding-end: 16px;display:flex;flex-direction:column;height:calc(var(--height) - var(--header-height) - var(--footer-height));max-height:calc(var(--max-height) - var(--header-height) - var(--footer-height))}ion-content ::ng-deep>*{box-sizing:border-box;display:block}@media (min-width: 768px){ion-content{--padding-start: 48px;--padding-end: 48px}}:host(.collapsible-title) ion-content ion-toolbar:first-of-type{--padding-top: 0px;--padding-bottom: 32px;--padding-start: 8px;--padding-end: 8px;border:none}@media (min-width: 768px){:host(.collapsible-title) ion-content ion-toolbar:first-of-type{--padding-start: 16px;--padding-end: 16px}}\n"], dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: ButtonComponent, selector: "button[kirby-button],Button[kirby-button],a[kirby-button]", inputs: ["attentionLevel", "noDecoration", "themeColor", "expand", "isFloating", "size", "showIconOnly"] }, { kind: "ngmodule", type: IconModule }, { kind: "component", type: i6.IconComponent, selector: "kirby-icon", inputs: ["size", "name", "customName"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }] }); }
|
|
1023
1034
|
}
|
|
1024
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalWrapperComponent, decorators: [{
|
|
1025
1036
|
type: Component,
|
|
1026
1037
|
args: [{ standalone: true, imports: [
|
|
1027
1038
|
RouterModule,
|
|
@@ -1153,10 +1164,10 @@ class ModalCompactWrapperComponent {
|
|
|
1153
1164
|
// This fixes an undesired scroll behaviour occurring on keyboard-tabbing backwards (with shift+tab):
|
|
1154
1165
|
this.windowRef.nativeWindow.scrollTo({ top: this.scrollY });
|
|
1155
1166
|
}
|
|
1156
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1157
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
1167
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalCompactWrapperComponent, deps: [{ token: i0.Injector }, { token: i0.ElementRef }, { token: i1$3.WindowRef }, { token: CanDismissHelper }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1168
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ModalCompactWrapperComponent, isStandalone: true, selector: "kirby-modal-compact-wrapper", inputs: { config: "config", content: "content" }, host: { listeners: { "window:focus": "onFocusChange()", "window:focusout": "onFocusChange()" }, properties: { "class.ion-page": "false" } }, providers: [{ provide: Modal, useExisting: ModalCompactWrapperComponent }], ngImport: i0, template: "<!-- Outlet for ModalController -->\n<ng-container\n *ngComponentOutlet=\"config.component; injector: componentPropsInjector\"\n></ng-container>\n\n<!-- Outlet for projected content -->\n<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n", styles: [":host{display:block;padding:24px 16px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
1158
1169
|
}
|
|
1159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalCompactWrapperComponent, decorators: [{
|
|
1160
1171
|
type: Component,
|
|
1161
1172
|
args: [{ standalone: true, selector: 'kirby-modal-compact-wrapper', providers: [{ provide: Modal, useExisting: ModalCompactWrapperComponent }], imports: [CommonModule], host: { '[class.ion-page]': 'false' }, template: "<!-- Outlet for ModalController -->\n<ng-container\n *ngComponentOutlet=\"config.component; injector: componentPropsInjector\"\n></ng-container>\n\n<!-- Outlet for projected content -->\n<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n", styles: [":host{display:block;padding:24px 16px}\n"] }]
|
|
1162
1173
|
}], ctorParameters: () => [{ type: i0.Injector }, { type: i0.ElementRef }, { type: i1$3.WindowRef }, { type: CanDismissHelper }], propDecorators: { config: [{
|
|
@@ -1425,21 +1436,21 @@ class ModalAnimationBuilderService {
|
|
|
1425
1436
|
return baseAnimation;
|
|
1426
1437
|
};
|
|
1427
1438
|
}
|
|
1428
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1429
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
1439
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalAnimationBuilderService, deps: [{ token: i3$1.PlatformService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1440
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalAnimationBuilderService, providedIn: 'root' }); }
|
|
1430
1441
|
}
|
|
1431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalAnimationBuilderService, decorators: [{
|
|
1432
1443
|
type: Injectable,
|
|
1433
1444
|
args: [{ providedIn: 'root' }]
|
|
1434
1445
|
}], ctorParameters: () => [{ type: i3$1.PlatformService }] });
|
|
1435
1446
|
|
|
1436
1447
|
class ModalHelper {
|
|
1437
|
-
constructor(ionicModalController, modalAnimationBuilder, windowRef, canDismissHelper
|
|
1448
|
+
constructor(ionicModalController, modalAnimationBuilder, modalNavigationService, windowRef, canDismissHelper) {
|
|
1438
1449
|
this.ionicModalController = ionicModalController;
|
|
1439
1450
|
this.modalAnimationBuilder = modalAnimationBuilder;
|
|
1451
|
+
this.modalNavigationService = modalNavigationService;
|
|
1440
1452
|
this.windowRef = windowRef;
|
|
1441
1453
|
this.canDismissHelper = canDismissHelper;
|
|
1442
|
-
this.alertHelper = alertHelper;
|
|
1443
1454
|
/*
|
|
1444
1455
|
isModalOpening is used to prevent additional instantiations
|
|
1445
1456
|
of modals, while a modal is already being instatiated, but not completed.
|
|
@@ -1516,6 +1527,16 @@ class ModalHelper {
|
|
|
1516
1527
|
if (config.customHeight) {
|
|
1517
1528
|
ionModal.style.setProperty('--kirby-modal-height', config.customHeight);
|
|
1518
1529
|
}
|
|
1530
|
+
const onWillDismiss = ionModal.onWillDismiss();
|
|
1531
|
+
const overlay = {
|
|
1532
|
+
dismiss: ionModal.dismiss.bind(ionModal),
|
|
1533
|
+
onWillDismiss,
|
|
1534
|
+
onDidDismiss: ionModal.onDidDismiss(),
|
|
1535
|
+
isDismissing: false,
|
|
1536
|
+
};
|
|
1537
|
+
onWillDismiss.then(() => {
|
|
1538
|
+
overlay.isDismissing = true;
|
|
1539
|
+
});
|
|
1519
1540
|
await ionModal.present();
|
|
1520
1541
|
/**
|
|
1521
1542
|
* Due to somewhat unexpected behavior of the ion-modal not being focused when keyboardClose
|
|
@@ -1528,29 +1549,18 @@ class ModalHelper {
|
|
|
1528
1549
|
}
|
|
1529
1550
|
// Back button should only be handled manually
|
|
1530
1551
|
// if the modal is not instantiated through a route.
|
|
1531
|
-
if (!config.modalRoute
|
|
1532
|
-
this.handleBrowserBackButton(ionModal);
|
|
1552
|
+
if (!config.modalRoute) {
|
|
1553
|
+
this.modalNavigationService.handleBrowserBackButton(ionModal);
|
|
1533
1554
|
}
|
|
1534
1555
|
this.isModalOpening = false;
|
|
1535
|
-
return
|
|
1536
|
-
dismiss: ionModal.dismiss.bind(ionModal),
|
|
1537
|
-
onWillDismiss: ionModal.onWillDismiss(),
|
|
1538
|
-
onDidDismiss: ionModal.onDidDismiss(),
|
|
1539
|
-
};
|
|
1540
|
-
}
|
|
1541
|
-
handleBrowserBackButton(modal) {
|
|
1542
|
-
const popStateEvent$ = fromEvent(this.windowRef.nativeWindow, 'popstate').pipe(first$1());
|
|
1543
|
-
const modalClose$ = fromEvent(modal, 'ionModalDidDismiss');
|
|
1544
|
-
popStateEvent$.pipe(takeUntil$1(modalClose$)).subscribe(() => {
|
|
1545
|
-
modal.dismiss();
|
|
1546
|
-
});
|
|
1556
|
+
return overlay;
|
|
1547
1557
|
}
|
|
1548
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1549
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
1558
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalHelper, deps: [{ token: i1$2.ModalController }, { token: ModalAnimationBuilderService }, { token: ModalNavigationService }, { token: i1$3.WindowRef }, { token: CanDismissHelper }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1559
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalHelper }); }
|
|
1550
1560
|
}
|
|
1551
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1561
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalHelper, decorators: [{
|
|
1552
1562
|
type: Injectable
|
|
1553
|
-
}], ctorParameters: () => [{ type: i1$2.ModalController }, { type: ModalAnimationBuilderService }, { type:
|
|
1563
|
+
}], ctorParameters: () => [{ type: i1$2.ModalController }, { type: ModalAnimationBuilderService }, { type: ModalNavigationService }, { type: i1$3.WindowRef }, { type: CanDismissHelper }] });
|
|
1554
1564
|
|
|
1555
1565
|
class ModalController {
|
|
1556
1566
|
constructor(modalHelper, actionSheetHelper, alertHelper, modalNavigationService, routeConfig) {
|
|
@@ -1566,7 +1576,7 @@ class ModalController {
|
|
|
1566
1576
|
async initialize(moduleRootRoutePath) {
|
|
1567
1577
|
const modalNavigation = await this.modalNavigationService.getModalNavigation(this.routeConfig, moduleRootRoutePath);
|
|
1568
1578
|
this.onModalRouteActivated(modalNavigation.activated$);
|
|
1569
|
-
this.onModalRouteDeactivated(modalNavigation.deactivated$);
|
|
1579
|
+
this.onModalRouteDeactivated(modalNavigation.deactivated$);
|
|
1570
1580
|
}
|
|
1571
1581
|
onModalRouteActivated(modalRouteActivated$) {
|
|
1572
1582
|
const navigateOnWillClose = () => {
|
|
@@ -1583,8 +1593,7 @@ class ModalController {
|
|
|
1583
1593
|
}
|
|
1584
1594
|
onModalRouteDeactivated(modalRouteDeactivated$) {
|
|
1585
1595
|
modalRouteDeactivated$
|
|
1586
|
-
.pipe(takeUntil(this.destroy$), filter(() => this.overlays.
|
|
1587
|
-
)
|
|
1596
|
+
.pipe(takeUntil(this.destroy$), filter(() => this.overlays.some((overlay) => overlay.isDismissing !== true)))
|
|
1588
1597
|
.subscribe(async () => {
|
|
1589
1598
|
await this.hideAll();
|
|
1590
1599
|
});
|
|
@@ -1636,18 +1645,23 @@ class ModalController {
|
|
|
1636
1645
|
return overlay.dismiss(data);
|
|
1637
1646
|
}
|
|
1638
1647
|
async hideAll() {
|
|
1639
|
-
await Promise.all(this.overlays
|
|
1648
|
+
await Promise.all(this.overlays
|
|
1649
|
+
.filter((overlay) => overlay.isDismissing !== true)
|
|
1650
|
+
.map(async (overlay) => {
|
|
1640
1651
|
await overlay.dismiss();
|
|
1641
1652
|
}));
|
|
1642
1653
|
}
|
|
1654
|
+
getTopMost() {
|
|
1655
|
+
return this.overlays[this.overlays.length - 1];
|
|
1656
|
+
}
|
|
1643
1657
|
ngOnDestroy() {
|
|
1644
1658
|
this.destroy$.next();
|
|
1645
1659
|
this.destroy$.complete();
|
|
1646
1660
|
}
|
|
1647
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1648
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
1661
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalController, deps: [{ token: ModalHelper }, { token: ActionSheetHelper }, { token: AlertHelper }, { token: ModalNavigationService }, { token: ROUTES, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1662
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalController }); }
|
|
1649
1663
|
}
|
|
1650
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalController, decorators: [{
|
|
1651
1665
|
type: Injectable
|
|
1652
1666
|
}], ctorParameters: () => [{ type: ModalHelper }, { type: ActionSheetHelper }, { type: AlertHelper }, { type: ModalNavigationService }, { type: undefined, decorators: [{
|
|
1653
1667
|
type: Optional
|
|
@@ -1656,14 +1670,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImpor
|
|
|
1656
1670
|
args: [ROUTES]
|
|
1657
1671
|
}] }] });
|
|
1658
1672
|
|
|
1673
|
+
const CanDismissModalGuard = async (_component, _currentRoute, currentState, nextState) => {
|
|
1674
|
+
const modalNavService = inject(ModalNavigationService);
|
|
1675
|
+
const currentRouteIsModal = modalNavService.isModalRoute(currentState.url);
|
|
1676
|
+
const nextRouteIsModal = modalNavService.isModalRoute(nextState.url);
|
|
1677
|
+
const isNavigatingWithinModal = currentRouteIsModal && nextRouteIsModal;
|
|
1678
|
+
if (isNavigatingWithinModal) {
|
|
1679
|
+
return true;
|
|
1680
|
+
}
|
|
1681
|
+
const modalController = inject(ModalController);
|
|
1682
|
+
const topMostModal = modalController.getTopMost();
|
|
1683
|
+
if (topMostModal) {
|
|
1684
|
+
if (topMostModal.isDismissing) {
|
|
1685
|
+
return true;
|
|
1686
|
+
}
|
|
1687
|
+
return topMostModal.dismiss();
|
|
1688
|
+
}
|
|
1689
|
+
else {
|
|
1690
|
+
// Declarative modals are not created through Kirby Modalcontroller, let's try Ionic:
|
|
1691
|
+
const ionicModalController = inject(ModalController$1);
|
|
1692
|
+
const ionModal = await ionicModalController.getTop();
|
|
1693
|
+
if (ionModal) {
|
|
1694
|
+
return ionModal.dismiss();
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
return true;
|
|
1698
|
+
};
|
|
1699
|
+
|
|
1659
1700
|
class ModalComponent {
|
|
1660
1701
|
set canDismiss(canDismiss) {
|
|
1661
1702
|
typeof canDismiss === 'boolean'
|
|
1662
1703
|
? (this._canDismiss = canDismiss)
|
|
1663
1704
|
: (this._canDismiss = this.canDismissHelper.getCanDismissCallback(canDismiss));
|
|
1664
1705
|
}
|
|
1665
|
-
constructor(canDismissHelper, windowRef) {
|
|
1706
|
+
constructor(canDismissHelper, modalNavigationService, windowRef) {
|
|
1666
1707
|
this.canDismissHelper = canDismissHelper;
|
|
1708
|
+
this.modalNavigationService = modalNavigationService;
|
|
1667
1709
|
this.windowRef = windowRef;
|
|
1668
1710
|
this.isOpen = false;
|
|
1669
1711
|
this.size = 'medium';
|
|
@@ -1693,9 +1735,6 @@ class ModalComponent {
|
|
|
1693
1735
|
};
|
|
1694
1736
|
this._canDismiss = true;
|
|
1695
1737
|
}
|
|
1696
|
-
ngAfterContentInit() {
|
|
1697
|
-
this.handleBrowserBackButton(this.modalElement.nativeElement);
|
|
1698
|
-
}
|
|
1699
1738
|
ngOnChanges(changes) {
|
|
1700
1739
|
this.updateModalConfigOnChange(changes);
|
|
1701
1740
|
}
|
|
@@ -1712,6 +1751,7 @@ class ModalComponent {
|
|
|
1712
1751
|
}
|
|
1713
1752
|
}
|
|
1714
1753
|
_onDidPresent(event) {
|
|
1754
|
+
this.modalNavigationService.handleBrowserBackButton(this.modalElement.nativeElement);
|
|
1715
1755
|
this.didPresent.emit(event);
|
|
1716
1756
|
}
|
|
1717
1757
|
_onWillDismiss(event) {
|
|
@@ -1723,13 +1763,6 @@ class ModalComponent {
|
|
|
1723
1763
|
_onDidDismiss(event) {
|
|
1724
1764
|
this.didDismiss.emit(event);
|
|
1725
1765
|
}
|
|
1726
|
-
handleBrowserBackButton(modal) {
|
|
1727
|
-
const popStateEvent$ = fromEvent(this.windowRef.nativeWindow, 'popstate').pipe(first$1());
|
|
1728
|
-
const modalClose$ = fromEvent(modal, 'ionModalDidDismiss');
|
|
1729
|
-
popStateEvent$.pipe(takeUntil$1(modalClose$)).subscribe(() => {
|
|
1730
|
-
modal.dismiss();
|
|
1731
|
-
});
|
|
1732
|
-
}
|
|
1733
1766
|
updateModalConfigOnChange(changes) {
|
|
1734
1767
|
Object.entries(changes).forEach(([key]) => {
|
|
1735
1768
|
const isModalConfigProperty = key in this._config;
|
|
@@ -1738,10 +1771,10 @@ class ModalComponent {
|
|
|
1738
1771
|
}
|
|
1739
1772
|
});
|
|
1740
1773
|
}
|
|
1741
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1742
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
1774
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalComponent, deps: [{ token: CanDismissHelper }, { token: ModalNavigationService }, { token: i1$3.WindowRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1775
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ModalComponent, isStandalone: true, selector: "kirby-modal", inputs: { isOpen: "isOpen", trigger: "trigger", size: "size", scrollDisabled: "scrollDisabled", canDismiss: "canDismiss", collapseTitle: "collapseTitle", customHeight: "customHeight", flavor: "flavor", drawerSupplementaryAction: "drawerSupplementaryAction", interactWithBackground: "interactWithBackground" }, outputs: { willPresent: "willPresent", didPresent: "didPresent", didDismiss: "didDismiss", willDismiss: "willDismiss" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], viewQueries: [{ propertyName: "modalElement", first: true, predicate: IonModal, descendants: true, read: ElementRef, static: true }, { propertyName: "ionContent", first: true, predicate: IonContent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ion-modal\n class=\"kirby-modal kirby-overlay kirby-modal-{{ size }}\"\n [ngClass]=\"[\n flavor === 'compact' ? 'kirby-modal-compact' : 'kirby-' + flavor,\n interactWithBackground ? 'interact-with-background' : ''\n ]\"\n [isOpen]=\"isOpen\"\n [trigger]=\"trigger\"\n [canDismiss]=\"_canDismiss\"\n [showBackdrop]=\"!interactWithBackground\"\n [style.--kirby-modal-height]=\"customHeight\"\n (willPresent)=\"_onWillPresent($event)\"\n (didPresent)=\"_onDidPresent($event)\"\n (willDismiss)=\"_onWillDismiss($event)\"\n (didDismiss)=\"_onDidDismiss($event)\"\n>\n <ng-template>\n <kirby-modal-compact-wrapper\n *ngIf=\"flavor === 'compact'; else modalWrapper\"\n [config]=\"_config\"\n [content]=\"template\"\n ></kirby-modal-compact-wrapper>\n </ng-template>\n</ion-modal>\n\n<ng-template #modalWrapper>\n <kirby-modal-wrapper\n class=\"ion-page\"\n [config]=\"_config\"\n [content]=\"template\"\n [scrollDisabled]=\"scrollDisabled\"\n ></kirby-modal-wrapper>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: KirbyIonicModule }, { kind: "ngmodule", type: IconModule }, { kind: "component", type: IonModal, selector: "ion-modal" }, { kind: "component", type: ModalWrapperComponent, selector: "kirby-modal-wrapper", inputs: ["scrollDisabled", "config", "content"] }, { kind: "component", type: ModalCompactWrapperComponent, selector: "kirby-modal-compact-wrapper", inputs: ["config", "content"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1743
1776
|
}
|
|
1744
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalComponent, decorators: [{
|
|
1745
1778
|
type: Component,
|
|
1746
1779
|
args: [{ standalone: true, selector: 'kirby-modal', imports: [
|
|
1747
1780
|
CommonModule,
|
|
@@ -1752,7 +1785,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImpor
|
|
|
1752
1785
|
ModalWrapperComponent,
|
|
1753
1786
|
ModalCompactWrapperComponent,
|
|
1754
1787
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ion-modal\n class=\"kirby-modal kirby-overlay kirby-modal-{{ size }}\"\n [ngClass]=\"[\n flavor === 'compact' ? 'kirby-modal-compact' : 'kirby-' + flavor,\n interactWithBackground ? 'interact-with-background' : ''\n ]\"\n [isOpen]=\"isOpen\"\n [trigger]=\"trigger\"\n [canDismiss]=\"_canDismiss\"\n [showBackdrop]=\"!interactWithBackground\"\n [style.--kirby-modal-height]=\"customHeight\"\n (willPresent)=\"_onWillPresent($event)\"\n (didPresent)=\"_onDidPresent($event)\"\n (willDismiss)=\"_onWillDismiss($event)\"\n (didDismiss)=\"_onDidDismiss($event)\"\n>\n <ng-template>\n <kirby-modal-compact-wrapper\n *ngIf=\"flavor === 'compact'; else modalWrapper\"\n [config]=\"_config\"\n [content]=\"template\"\n ></kirby-modal-compact-wrapper>\n </ng-template>\n</ion-modal>\n\n<ng-template #modalWrapper>\n <kirby-modal-wrapper\n class=\"ion-page\"\n [config]=\"_config\"\n [content]=\"template\"\n [scrollDisabled]=\"scrollDisabled\"\n ></kirby-modal-wrapper>\n</ng-template>\n" }]
|
|
1755
|
-
}], ctorParameters: () => [{ type: CanDismissHelper }, { type: i1$3.WindowRef }], propDecorators: { modalElement: [{
|
|
1788
|
+
}], ctorParameters: () => [{ type: CanDismissHelper }, { type: ModalNavigationService }, { type: i1$3.WindowRef }], propDecorators: { modalElement: [{
|
|
1756
1789
|
type: ViewChild,
|
|
1757
1790
|
args: [IonModal, { static: true, read: ElementRef }]
|
|
1758
1791
|
}], ionContent: [{
|
|
@@ -1801,12 +1834,12 @@ class ModalFooterComponent extends ModalElementComponent {
|
|
|
1801
1834
|
this.type = 'fixed';
|
|
1802
1835
|
this.themeColor = 'white';
|
|
1803
1836
|
}
|
|
1804
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1805
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
1837
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalFooterComponent, deps: [{ token: i0.ElementRef }, { token: ModalElementsAdvertiser, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1838
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ModalFooterComponent, isStandalone: true, selector: "kirby-modal-footer", inputs: { snapToKeyboard: "snapToKeyboard", type: "type", themeColor: "themeColor" }, host: { properties: { "class.snap-to-keyboard": "this.snapToKeyboard", "class": "this._cssClass" } }, usesInheritance: true, ngImport: i0, template: "<ion-footer>\n <ng-content></ng-content>\n</ion-footer>\n", styles: ["ion-item-option.primary{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}ion-item-option.secondary{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}ion-item-option.tertiary{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}ion-item-option.success{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}ion-item-option.warning{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}ion-item-option.danger{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}ion-item-option.white-overlay{background-color:var(--kirby-white-overlay);color:var(--kirby-white-overlay-contrast)}ion-item-option.light{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}ion-item-option.medium{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}ion-item-option.dark{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}ion-item-option.dark-overlay{background-color:var(--kirby-dark-overlay);color:var(--kirby-dark-overlay-contrast)}ion-footer{--kirby-inputs-background-color: var(--kirby-dark-overlay);--kirby-inputs-background-color-hover: var(--kirby-dark-overlay-10);--kirby-inputs-background-color-active: var(--kirby-dark-overlay-20);--kirby-inputs-color: var(--kirby-black);--kirby-inputs-indicator-background-color: var(--kirby-black);--kirby-inputs-indicator-color: var(--kirby-white);--kirby-inputs-placeholder-color: var(--kirby-semi-dark);--kirby-inputs-elevation: none;--kirby-divider-color: var(--kirby-background-color);box-shadow:0 20px 30px -15px #1c1c1c4d,0 0 5px #1c1c1c14;box-sizing:inherit;display:flex;justify-content:var(--kirby-modal-footer-justify-content, center);align-items:center;background-color:var(--kirby-modal-footer-background, var(--kirby-white));color:var(--kirby-modal-footer-color, var(--kirby-white-contrast));padding:16px;padding-bottom:calc(12px + var(--kirby-modal-footer-safe-area-bottom, 0px))}@media (min-width: 768px){ion-footer{padding:24px}}@media (max-width: 767px){:host{--kirby-modal-footer-safe-area-bottom: var(--kirby-safe-area-bottom)}}:host{box-sizing:border-box;display:block}:host(.snap-to-keyboard) ion-footer{transition:transform .15s ease-out}:host(.light) ion-footer{--kirby-inputs-background-color: var(--kirby-white);--kirby-inputs-background-color-hover: var(--kirby-dark-overlay-10);--kirby-inputs-background-color-active: var(--kirby-dark-overlay-20);--kirby-inputs-color: var(--kirby-black);--kirby-inputs-indicator-background-color: var(--kirby-black);--kirby-inputs-indicator-color: var(--kirby-white);--kirby-inputs-placeholder-color: var(--kirby-semi-dark);--kirby-divider-color: var(--kirby-medium);--kirby-inputs-elevation: var(--kirby-elevation-2);background-color:var(--kirby-background-color)}:host(.inline) ion-footer{--kirby-inputs-background-color: var(--kirby-white);--kirby-inputs-background-color-hover: var(--kirby-dark-overlay-10);--kirby-inputs-background-color-active: var(--kirby-dark-overlay-20);--kirby-inputs-color: var(--kirby-black);--kirby-inputs-indicator-background-color: var(--kirby-black);--kirby-inputs-indicator-color: var(--kirby-white);--kirby-inputs-placeholder-color: var(--kirby-semi-dark);--kirby-divider-color: var(--kirby-medium);--kirby-inputs-elevation: var(--kirby-elevation-2);background:transparent;box-shadow:none}:host-context(.keyboard-visible).snap-to-keyboard ion-footer{transition:transform .25s ease-out 1ms;transform:translateY(calc((var(--keyboard-offset, 0px) - var(--kirby-modal-footer-safe-area-bottom, 0px)) * -1))}:host-context(.modal-wrapper.full-height){--kirby-modal-footer-safe-area-bottom: var(--kirby-safe-area-bottom)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IonFooter, selector: "ion-footer", inputs: ["collapse", "mode", "translucent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1806
1839
|
}
|
|
1807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1840
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalFooterComponent, decorators: [{
|
|
1808
1841
|
type: Component,
|
|
1809
|
-
args: [{ standalone: true, imports: [CommonModule, IonFooter], selector: 'kirby-modal-footer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ion-footer>\n <ng-content></ng-content>\n</ion-footer>\n", styles: ["
|
|
1842
|
+
args: [{ standalone: true, imports: [CommonModule, IonFooter], selector: 'kirby-modal-footer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ion-footer>\n <ng-content></ng-content>\n</ion-footer>\n", styles: ["ion-item-option.primary{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}ion-item-option.secondary{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}ion-item-option.tertiary{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}ion-item-option.success{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}ion-item-option.warning{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}ion-item-option.danger{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}ion-item-option.white-overlay{background-color:var(--kirby-white-overlay);color:var(--kirby-white-overlay-contrast)}ion-item-option.light{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}ion-item-option.medium{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}ion-item-option.dark{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}ion-item-option.dark-overlay{background-color:var(--kirby-dark-overlay);color:var(--kirby-dark-overlay-contrast)}ion-footer{--kirby-inputs-background-color: var(--kirby-dark-overlay);--kirby-inputs-background-color-hover: var(--kirby-dark-overlay-10);--kirby-inputs-background-color-active: var(--kirby-dark-overlay-20);--kirby-inputs-color: var(--kirby-black);--kirby-inputs-indicator-background-color: var(--kirby-black);--kirby-inputs-indicator-color: var(--kirby-white);--kirby-inputs-placeholder-color: var(--kirby-semi-dark);--kirby-inputs-elevation: none;--kirby-divider-color: var(--kirby-background-color);box-shadow:0 20px 30px -15px #1c1c1c4d,0 0 5px #1c1c1c14;box-sizing:inherit;display:flex;justify-content:var(--kirby-modal-footer-justify-content, center);align-items:center;background-color:var(--kirby-modal-footer-background, var(--kirby-white));color:var(--kirby-modal-footer-color, var(--kirby-white-contrast));padding:16px;padding-bottom:calc(12px + var(--kirby-modal-footer-safe-area-bottom, 0px))}@media (min-width: 768px){ion-footer{padding:24px}}@media (max-width: 767px){:host{--kirby-modal-footer-safe-area-bottom: var(--kirby-safe-area-bottom)}}:host{box-sizing:border-box;display:block}:host(.snap-to-keyboard) ion-footer{transition:transform .15s ease-out}:host(.light) ion-footer{--kirby-inputs-background-color: var(--kirby-white);--kirby-inputs-background-color-hover: var(--kirby-dark-overlay-10);--kirby-inputs-background-color-active: var(--kirby-dark-overlay-20);--kirby-inputs-color: var(--kirby-black);--kirby-inputs-indicator-background-color: var(--kirby-black);--kirby-inputs-indicator-color: var(--kirby-white);--kirby-inputs-placeholder-color: var(--kirby-semi-dark);--kirby-divider-color: var(--kirby-medium);--kirby-inputs-elevation: var(--kirby-elevation-2);background-color:var(--kirby-background-color)}:host(.inline) ion-footer{--kirby-inputs-background-color: var(--kirby-white);--kirby-inputs-background-color-hover: var(--kirby-dark-overlay-10);--kirby-inputs-background-color-active: var(--kirby-dark-overlay-20);--kirby-inputs-color: var(--kirby-black);--kirby-inputs-indicator-background-color: var(--kirby-black);--kirby-inputs-indicator-color: var(--kirby-white);--kirby-inputs-placeholder-color: var(--kirby-semi-dark);--kirby-divider-color: var(--kirby-medium);--kirby-inputs-elevation: var(--kirby-elevation-2);background:transparent;box-shadow:none}:host-context(.keyboard-visible).snap-to-keyboard ion-footer{transition:transform .25s ease-out 1ms;transform:translateY(calc((var(--keyboard-offset, 0px) - var(--kirby-modal-footer-safe-area-bottom, 0px)) * -1))}:host-context(.modal-wrapper.full-height){--kirby-modal-footer-safe-area-bottom: var(--kirby-safe-area-bottom)}\n"] }]
|
|
1810
1843
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: ModalElementsAdvertiser, decorators: [{
|
|
1811
1844
|
type: Optional
|
|
1812
1845
|
}] }], propDecorators: { snapToKeyboard: [{
|
|
@@ -1827,5 +1860,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImpor
|
|
|
1827
1860
|
* Generated bundle index. Do not edit.
|
|
1828
1861
|
*/
|
|
1829
1862
|
|
|
1830
|
-
export { ActionSheetComponent, ActionSheetHelper, AlertComponent, AlertHelper, COMPONENT_PROPS, CanDismissHelper, DrawerSupplementaryAction, Modal, ModalCompactWrapperComponent, ModalComponent, ModalController, ModalElementComponent, ModalElementType, ModalElementsAdvertiser, ModalFooterComponent, ModalHelper, ModalNavigationService, ModalWrapperComponent };
|
|
1863
|
+
export { ActionSheetComponent, ActionSheetHelper, AlertComponent, AlertHelper, COMPONENT_PROPS, CanDismissHelper, CanDismissModalGuard, DrawerSupplementaryAction, Modal, ModalCompactWrapperComponent, ModalComponent, ModalController, ModalElementComponent, ModalElementType, ModalElementsAdvertiser, ModalFooterComponent, ModalHelper, ModalNavigationService, ModalWrapperComponent };
|
|
1831
1864
|
//# sourceMappingURL=kirbydesign-designsystem-modal.mjs.map
|