@kirbydesign/designsystem 6.0.0-rc.2 → 6.0.0-rc.3
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/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/kirbydesign-designsystem.js → esm2020/kirbydesign-designsystem.mjs} +0 -0
- package/{esm2015/lib/animation/kirby-animation.js → esm2020/lib/animation/kirby-animation.mjs} +0 -0
- package/esm2020/lib/components/accordion/accordion-item.component.mjs +37 -0
- package/{esm2015/lib/components/accordion/accordion.directive.js → esm2020/lib/components/accordion/accordion.directive.mjs} +4 -4
- package/{esm2015/lib/components/accordion/index.js → esm2020/lib/components/accordion/index.mjs} +0 -0
- package/{esm2015/lib/components/angular-component-lib/utils.js → esm2020/lib/components/angular-component-lib/utils.mjs} +0 -0
- package/esm2020/lib/components/app/app.component.mjs +44 -0
- package/{esm2015/lib/components/app/app.module.js → esm2020/lib/components/app/app.module.mjs} +5 -5
- package/{esm2015/lib/components/app/index.js → esm2020/lib/components/app/index.mjs} +0 -0
- package/esm2020/lib/components/avatar/avatar.component.mjs +42 -0
- package/esm2020/lib/components/button/button.component.mjs +108 -0
- package/esm2020/lib/components/calendar/calendar.component.mjs +413 -0
- package/{esm2015/lib/components/calendar/helpers/calendar-cell.model.js → esm2020/lib/components/calendar/helpers/calendar-cell.model.mjs} +0 -0
- package/{esm2015/lib/components/calendar/helpers/calendar-options.model.js → esm2020/lib/components/calendar/helpers/calendar-options.model.mjs} +0 -0
- package/esm2020/lib/components/calendar/helpers/calendar.helper.mjs +80 -0
- package/{esm2015/lib/components/calendar/index.js → esm2020/lib/components/calendar/index.mjs} +0 -0
- package/{esm2015/lib/components/calendar/options/calendar-year-navigator-config.js → esm2020/lib/components/calendar/options/calendar-year-navigator-config.mjs} +0 -0
- package/esm2020/lib/components/card/card-footer/card-footer.component.mjs +13 -0
- package/esm2020/lib/components/card/card-header/card-header.component.mjs +26 -0
- package/esm2020/lib/components/card/card.component.mjs +86 -0
- package/{esm2015/lib/components/card/index.js → esm2020/lib/components/card/index.mjs} +0 -0
- package/esm2020/lib/components/chart/chart-js/chart-js.service.mjs +331 -0
- package/esm2020/lib/components/chart/chart-js/chartjs-plugin-marker/chartjs-plugin-marker.mjs +199 -0
- package/{esm2015/lib/components/chart/chart-js/configured-chart-js.js → esm2020/lib/components/chart/chart-js/configured-chart-js.mjs} +0 -0
- package/{esm2015/lib/components/chart/chart.component.js → esm2020/lib/components/chart/chart.component.mjs} +5 -10
- package/{esm2015/lib/components/chart/chart.module.js → esm2020/lib/components/chart/chart.module.mjs} +5 -5
- package/{esm2015/lib/components/chart/chart.types.js → esm2020/lib/components/chart/chart.types.mjs} +0 -0
- package/{esm2015/lib/components/chart/configs/annotations.config.js → esm2020/lib/components/chart/configs/annotations.config.mjs} +0 -0
- package/{esm2015/lib/components/chart/configs/chart-config.service.js → esm2020/lib/components/chart/configs/chart-config.service.mjs} +4 -4
- package/{esm2015/lib/components/chart/configs/global-defaults.config.js → esm2020/lib/components/chart/configs/global-defaults.config.mjs} +0 -0
- package/{esm2015/lib/components/chart/configs/interaction-functions-extensions.config.js → esm2020/lib/components/chart/configs/interaction-functions-extensions.config.mjs} +0 -0
- package/esm2020/lib/components/chart/configs/shared.utils.mjs +22 -0
- package/{esm2015/lib/components/chart/configs/type.config.js → esm2020/lib/components/chart/configs/type.config.mjs} +3 -3
- package/{esm2015/lib/components/chart/index.js → esm2020/lib/components/chart/index.mjs} +0 -0
- package/{esm2015/lib/components/chart-deprecated/chart-deprecated-helper.js → esm2020/lib/components/chart-deprecated/chart-deprecated-helper.mjs} +4 -4
- package/{esm2015/lib/components/chart-deprecated/chart-deprecated-type.js → esm2020/lib/components/chart-deprecated/chart-deprecated-type.mjs} +0 -0
- package/{esm2015/lib/components/chart-deprecated/chart-deprecated.component.js → esm2020/lib/components/chart-deprecated/chart-deprecated.component.mjs} +14 -13
- package/{esm2015/lib/components/chart-deprecated/index.js → esm2020/lib/components/chart-deprecated/index.mjs} +0 -0
- package/{esm2015/lib/components/chart-deprecated/options/activitygauge.js → esm2020/lib/components/chart-deprecated/options/activitygauge.mjs} +0 -0
- package/{esm2015/lib/components/chart-deprecated/options/areaspline.js → esm2020/lib/components/chart-deprecated/options/areaspline.mjs} +0 -0
- package/{esm2015/lib/components/chart-deprecated/options/bar.js → esm2020/lib/components/chart-deprecated/options/bar.mjs} +0 -0
- package/{esm2015/lib/components/chart-deprecated/options/column.js → esm2020/lib/components/chart-deprecated/options/column.mjs} +0 -0
- package/{esm2015/lib/components/chart-deprecated/options/donut.js → esm2020/lib/components/chart-deprecated/options/donut.mjs} +0 -0
- package/{esm2015/lib/components/chart-deprecated/options/timeseries.js → esm2020/lib/components/chart-deprecated/options/timeseries.mjs} +0 -0
- package/esm2020/lib/components/checkbox/checkbox.component.mjs +68 -0
- package/esm2020/lib/components/chip/chip.component.mjs +21 -0
- package/esm2020/lib/components/divider/divider.component.mjs +13 -0
- package/esm2020/lib/components/dropdown/dropdown.component.mjs +530 -0
- package/{esm2015/lib/components/dropdown/dropdown.types.js → esm2020/lib/components/dropdown/dropdown.types.mjs} +0 -0
- package/{esm2015/lib/components/dropdown/keyboard-handler.service.js → esm2020/lib/components/dropdown/keyboard-handler.service.mjs} +4 -4
- package/esm2020/lib/components/empty-state/empty-state.component.mjs +46 -0
- package/esm2020/lib/components/fab-sheet/fab-sheet.component.mjs +97 -0
- package/esm2020/lib/components/flag/flag.component.mjs +25 -0
- package/{esm2015/lib/components/form-field/directives/date/date-input.directive.js → esm2020/lib/components/form-field/directives/date/date-input.directive.mjs} +4 -4
- package/{esm2015/lib/components/form-field/directives/decimal-mask/decimal-mask.directive.js → esm2020/lib/components/form-field/directives/decimal-mask/decimal-mask.directive.mjs} +4 -4
- package/esm2020/lib/components/form-field/form-field-message/form-field-message.component.mjs +18 -0
- package/esm2020/lib/components/form-field/form-field.component.mjs +115 -0
- package/{esm2015/lib/components/form-field/index.js → esm2020/lib/components/form-field/index.mjs} +0 -0
- package/esm2020/lib/components/form-field/input/input.component.mjs +95 -0
- package/esm2020/lib/components/form-field/input-counter/input-counter.component.mjs +35 -0
- package/esm2020/lib/components/form-field/textarea/textarea.component.mjs +65 -0
- package/{esm2015/lib/components/grid/breakpoint-helper.service.js → esm2020/lib/components/grid/breakpoint-helper.service.mjs} +4 -4
- package/{esm2015/lib/components/grid/grid-card-configuration.js → esm2020/lib/components/grid/grid-card-configuration.mjs} +0 -0
- package/esm2020/lib/components/grid/grid.component.mjs +97 -0
- package/{esm2015/lib/components/icon/icon-registry.service.js → esm2020/lib/components/icon/icon-registry.service.mjs} +4 -4
- package/{esm2015/lib/components/icon/icon-settings.js → esm2020/lib/components/icon/icon-settings.mjs} +0 -0
- package/esm2020/lib/components/icon/icon.component.mjs +79 -0
- package/{esm2015/lib/components/icon/icon.module.js → esm2020/lib/components/icon/icon.module.mjs} +5 -5
- package/{esm2015/lib/components/icon/index.js → esm2020/lib/components/icon/index.mjs} +0 -0
- package/{esm2015/lib/components/icon/kirby-icon-settings.js → esm2020/lib/components/icon/kirby-icon-settings.mjs} +0 -0
- package/{esm2015/lib/components/index.js → esm2020/lib/components/index.mjs} +0 -0
- package/{esm2015/lib/components/item/index.js → esm2020/lib/components/item/index.mjs} +0 -0
- package/esm2020/lib/components/item/item.component.mjs +46 -0
- package/{esm2015/lib/components/item/item.module.js → esm2020/lib/components/item/item.module.mjs} +5 -5
- package/esm2020/lib/components/item/label/label.component.mjs +23 -0
- package/esm2020/lib/components/item-group/item-group.component.mjs +17 -0
- package/{esm2015/lib/components/item-sliding/index.js → esm2020/lib/components/item-sliding/index.mjs} +0 -0
- package/esm2020/lib/components/item-sliding/item-sliding.component.mjs +29 -0
- package/{esm2015/lib/components/item-sliding/item-sliding.types.js → esm2020/lib/components/item-sliding/item-sliding.types.mjs} +0 -0
- package/{esm2015/lib/components/list/directives/infinite-scroll.directive.js → esm2020/lib/components/list/directives/infinite-scroll.directive.mjs} +4 -4
- package/{esm2015/lib/components/list/directives/list-item-color.directive.js → esm2020/lib/components/list/directives/list-item-color.directive.mjs} +4 -4
- package/{esm2015/lib/components/list/directives/scroll.model.js → esm2020/lib/components/list/directives/scroll.model.mjs} +0 -0
- package/{esm2015/lib/components/list/helpers/list-helper.js → esm2020/lib/components/list/helpers/list-helper.mjs} +4 -4
- package/{esm2015/lib/components/list/index.js → esm2020/lib/components/list/index.mjs} +0 -0
- package/esm2020/lib/components/list/list-experimental/list-experimental.component.mjs +24 -0
- package/esm2020/lib/components/list/list-header/list-header.component.mjs +12 -0
- package/esm2020/lib/components/list/list-item/list-item.component.mjs +129 -0
- package/esm2020/lib/components/list/list-section-header/list-section-header.component.mjs +15 -0
- package/{esm2015/lib/components/list/list-swipe-action.type.js → esm2020/lib/components/list/list-swipe-action.type.mjs} +0 -0
- package/esm2020/lib/components/list/list.component.mjs +177 -0
- package/{esm2015/lib/components/list/list.directive.js → esm2020/lib/components/list/list.directive.mjs} +13 -13
- package/{esm2015/lib/components/list/list.event.js → esm2020/lib/components/list/list.event.mjs} +0 -0
- package/{esm2015/lib/components/list/list.module.js → esm2020/lib/components/list/list.module.mjs} +5 -5
- package/{esm2015/lib/components/list/pipes/group-by.pipe.js → esm2020/lib/components/list/pipes/group-by.pipe.mjs} +4 -4
- package/{esm2015/lib/components/loading-overlay/index.js → esm2020/lib/components/loading-overlay/index.mjs} +0 -0
- package/esm2020/lib/components/loading-overlay/loading-overlay.component.mjs +21 -0
- package/esm2020/lib/components/loading-overlay/loading-overlay.service.mjs +45 -0
- package/esm2020/lib/components/modal/action-sheet/action-sheet.component.mjs +44 -0
- package/{esm2015/lib/components/modal/action-sheet/config/action-sheet-config.js → esm2020/lib/components/modal/action-sheet/config/action-sheet-config.mjs} +0 -0
- package/{esm2015/lib/components/modal/action-sheet/config/action-sheet-item.js → esm2020/lib/components/modal/action-sheet/config/action-sheet-item.mjs} +0 -0
- package/esm2020/lib/components/modal/alert/alert.component.mjs +65 -0
- package/{esm2015/lib/components/modal/alert/config/alert-config.js → esm2020/lib/components/modal/alert/config/alert-config.mjs} +0 -0
- package/esm2020/lib/components/modal/footer/modal-footer.component.mjs +26 -0
- package/{esm2015/lib/components/modal/index.js → esm2020/lib/components/modal/index.mjs} +0 -0
- package/esm2020/lib/components/modal/modal-wrapper/compact/modal-compact-wrapper.component.mjs +71 -0
- package/{esm2015/lib/components/modal/modal-wrapper/config/drawer-supplementary-action.js → esm2020/lib/components/modal/modal-wrapper/config/drawer-supplementary-action.mjs} +0 -0
- package/{esm2015/lib/components/modal/modal-wrapper/config/modal-config.helper.js → esm2020/lib/components/modal/modal-wrapper/config/modal-config.helper.mjs} +0 -0
- package/{esm2015/lib/components/modal/modal-wrapper/config/modal-config.js → esm2020/lib/components/modal/modal-wrapper/config/modal-config.mjs} +0 -0
- package/esm2020/lib/components/modal/modal-wrapper/modal-wrapper.component.mjs +516 -0
- package/esm2020/lib/components/modal/services/action-sheet.helper.mjs +43 -0
- package/esm2020/lib/components/modal/services/alert.helper.mjs +56 -0
- package/{esm2015/lib/components/modal/services/modal-animation-builder.service.js → esm2020/lib/components/modal/services/modal-animation-builder.service.mjs} +4 -4
- package/{esm2015/lib/components/modal/services/modal-navigation.service.js → esm2020/lib/components/modal/services/modal-navigation.service.mjs} +82 -107
- package/esm2020/lib/components/modal/services/modal.controller.mjs +142 -0
- package/esm2020/lib/components/modal/services/modal.helper.mjs +109 -0
- package/{esm2015/lib/components/modal/services/modal.interfaces.js → esm2020/lib/components/modal/services/modal.interfaces.mjs} +0 -0
- package/{esm2015/lib/components/page/index.js → esm2020/lib/components/page/index.mjs} +0 -0
- package/esm2020/lib/components/page/page-footer/page-footer.component.mjs +35 -0
- package/esm2020/lib/components/page/page.component.mjs +414 -0
- package/{esm2015/lib/components/page/page.module.js → esm2020/lib/components/page/page.module.mjs} +5 -5
- package/{esm2015/lib/components/popover/popover.component.js → esm2020/lib/components/popover/popover.component.mjs} +5 -9
- package/esm2020/lib/components/progress-circle/progress-circle-ring.component.mjs +52 -0
- package/esm2020/lib/components/progress-circle/progress-circle.component.mjs +87 -0
- package/{esm2015/lib/components/radio/index.js → esm2020/lib/components/radio/index.mjs} +0 -0
- package/{esm2015/lib/components/radio/radio-group/radio-group.component.js → esm2020/lib/components/radio/radio-group/radio-group.component.mjs} +7 -13
- package/esm2020/lib/components/radio/radio.component.mjs +47 -0
- package/{esm2015/lib/components/range/range.component.js → esm2020/lib/components/range/range.component.mjs} +6 -12
- package/{esm2015/lib/components/reorder-list/index.js → esm2020/lib/components/reorder-list/index.mjs} +0 -0
- package/{esm2015/lib/components/reorder-list/reorder-event.js → esm2020/lib/components/reorder-list/reorder-event.mjs} +0 -0
- package/esm2020/lib/components/reorder-list/reorder-list.component.mjs +77 -0
- package/{esm2015/lib/components/router-outlet/index.js → esm2020/lib/components/router-outlet/index.mjs} +0 -0
- package/esm2020/lib/components/router-outlet/router-outlet.component.mjs +15 -0
- package/{esm2015/lib/components/router-outlet/router-outlet.module.js → esm2020/lib/components/router-outlet/router-outlet.module.mjs} +5 -5
- package/esm2020/lib/components/section-header/section-header.component.mjs +12 -0
- package/{esm2015/lib/components/segmented-control/segment-item.js → esm2020/lib/components/segmented-control/segment-item.mjs} +0 -0
- package/esm2020/lib/components/segmented-control/segmented-control.component.mjs +112 -0
- package/{esm2015/lib/components/shared/component-configuration.js → esm2020/lib/components/shared/component-configuration.mjs} +0 -0
- package/{esm2015/lib/components/shared/component-loader.directive.js → esm2020/lib/components/shared/component-loader.directive.mjs} +4 -4
- package/{esm2015/lib/components/shared/dynamic-component.js → esm2020/lib/components/shared/dynamic-component.mjs} +0 -0
- package/{esm2015/lib/components/shared/index.js → esm2020/lib/components/shared/index.mjs} +0 -0
- package/{esm2015/lib/components/shared/resize-observer/resize-observer.factory.js → esm2020/lib/components/shared/resize-observer/resize-observer.factory.mjs} +4 -4
- package/{esm2015/lib/components/shared/resize-observer/resize-observer.service.js → esm2020/lib/components/shared/resize-observer/resize-observer.service.mjs} +4 -4
- package/{esm2015/lib/components/shared/resize-observer/types/resize-observer-callback.js → esm2020/lib/components/shared/resize-observer/types/resize-observer-callback.mjs} +0 -0
- package/{esm2015/lib/components/shared/resize-observer/types/resize-observer-entry.js → esm2020/lib/components/shared/resize-observer/types/resize-observer-entry.mjs} +0 -0
- package/{esm2015/lib/components/shared/resize-observer/types/resize-observer.js → esm2020/lib/components/shared/resize-observer/types/resize-observer.mjs} +0 -0
- package/esm2020/lib/components/slide-button/slide-button.component.mjs +73 -0
- package/{esm2015/lib/components/slides/slides.component.js → esm2020/lib/components/slides/slides.component.mjs} +7 -7
- package/{esm2015/lib/components/spinner/index.js → esm2020/lib/components/spinner/index.mjs} +0 -0
- package/esm2020/lib/components/spinner/spinner.component.mjs +13 -0
- package/{esm2015/lib/components/spinner/spinner.module.js → esm2020/lib/components/spinner/spinner.module.mjs} +5 -5
- package/{esm2015/lib/components/stock-chart-deprecated/index.js → esm2020/lib/components/stock-chart-deprecated/index.mjs} +0 -0
- package/esm2020/lib/components/stock-chart-deprecated/options/stock-chart-deprecated-options.mjs +202 -0
- package/{esm2015/lib/components/stock-chart-deprecated/stock-chart-deprecated.component.js → esm2020/lib/components/stock-chart-deprecated/stock-chart-deprecated.component.mjs} +5 -9
- package/{esm2015/lib/components/tabs/index.js → esm2020/lib/components/tabs/index.mjs} +0 -0
- package/esm2020/lib/components/tabs/tab-button/tab-button.component.mjs +43 -0
- package/{esm2015/lib/components/tabs/tab-button/tab-button.events.js → esm2020/lib/components/tabs/tab-button/tab-button.events.mjs} +0 -0
- package/esm2020/lib/components/tabs/tabs.component.mjs +28 -0
- package/{esm2015/lib/components/tabs/tabs.module.js → esm2020/lib/components/tabs/tabs.module.mjs} +5 -5
- package/{esm2015/lib/components/tabs/tabs.service.js → esm2020/lib/components/tabs/tabs.service.mjs} +4 -4
- package/{esm2015/lib/components/toast/config/toast-config.js → esm2020/lib/components/toast/config/toast-config.mjs} +0 -0
- package/{esm2015/lib/components/toast/index.js → esm2020/lib/components/toast/index.mjs} +0 -0
- package/{esm2015/lib/components/toast/services/toast.controller.js → esm2020/lib/components/toast/services/toast.controller.mjs} +4 -4
- package/esm2020/lib/components/toast/services/toast.helper.mjs +39 -0
- package/esm2020/lib/components/toggle/toggle.component.mjs +27 -0
- package/{esm2015/lib/components/toggle-button/index.js → esm2020/lib/components/toggle-button/index.mjs} +0 -0
- package/esm2020/lib/components/toggle-button/toggle-button.component.mjs +26 -0
- package/{esm2015/lib/components/toggle-button/toggle-button.module.js → esm2020/lib/components/toggle-button/toggle-button.module.mjs} +5 -5
- package/{esm2015/lib/components/web-component-proxies.component.js → esm2020/lib/components/web-component-proxies.component.mjs} +4 -4
- package/{esm2015/lib/custom-elements-initializer.js → esm2020/lib/custom-elements-initializer.mjs} +0 -0
- package/{esm2015/lib/directives/element-as-button/element-as-button.directive.js → esm2020/lib/directives/element-as-button/element-as-button.directive.mjs} +4 -4
- package/{esm2015/lib/directives/fit-heading/fit-heading.directive.js → esm2020/lib/directives/fit-heading/fit-heading.directive.mjs} +4 -4
- package/{esm2015/lib/directives/fit-heading/fit-heading.module.js → esm2020/lib/directives/fit-heading/fit-heading.module.mjs} +5 -5
- package/{esm2015/lib/directives/index.js → esm2020/lib/directives/index.mjs} +0 -0
- package/{esm2015/lib/directives/key-handler/key-handler.directive.js → esm2020/lib/directives/key-handler/key-handler.directive.mjs} +4 -4
- package/{esm2015/lib/directives/modal-router-link/modal-router-link.directive.js → esm2020/lib/directives/modal-router-link/modal-router-link.directive.mjs} +4 -4
- package/{esm2015/lib/directives/theme-color/theme-color.directive.js → esm2020/lib/directives/theme-color/theme-color.directive.mjs} +4 -4
- package/{esm2015/lib/helpers/color-helper.js → esm2020/lib/helpers/color-helper.mjs} +0 -0
- package/{esm2015/lib/helpers/deep-copy.js → esm2020/lib/helpers/deep-copy.mjs} +0 -0
- package/{esm2015/lib/helpers/design-token-helper.js → esm2020/lib/helpers/design-token-helper.mjs} +0 -0
- package/esm2020/lib/helpers/element-has-ancestor.mjs +24 -0
- package/{esm2015/lib/helpers/index.js → esm2020/lib/helpers/index.mjs} +0 -0
- package/{esm2015/lib/helpers/line-clamp-helper.js → esm2020/lib/helpers/line-clamp-helper.mjs} +4 -4
- package/{esm2015/lib/helpers/merge-deep.js → esm2020/lib/helpers/merge-deep.mjs} +0 -0
- package/{esm2015/lib/helpers/platform.service.js → esm2020/lib/helpers/platform.service.mjs} +4 -4
- package/{esm2015/lib/helpers/string-helper.js → esm2020/lib/helpers/string-helper.mjs} +0 -0
- package/{esm2015/lib/helpers/theme-color.type.js → esm2020/lib/helpers/theme-color.type.mjs} +0 -0
- package/{esm2015/lib/helpers/unique-id-generator.helper.js → esm2020/lib/helpers/unique-id-generator.helper.mjs} +0 -0
- package/{esm2015/lib/index.js → esm2020/lib/index.mjs} +0 -0
- package/{esm2015/lib/kirby.module.js → esm2020/lib/kirby.module.mjs} +5 -6
- package/{esm2015/lib/scss/scss-helper.js → esm2020/lib/scss/scss-helper.mjs} +0 -0
- package/{esm2015/lib/types/window-ref.js → esm2020/lib/types/window-ref.mjs} +4 -4
- package/{esm2015/testing-base/kirbydesign-designsystem-testing-base.js → esm2020/testing-base/kirbydesign-designsystem-testing-base.mjs} +0 -0
- package/{esm2015/testing-base/lib/components/index.js → esm2020/testing-base/lib/components/index.mjs} +0 -0
- package/{esm2015/testing-base/lib/components/mock.accordion-item.component.js → esm2020/testing-base/lib/components/mock.accordion-item.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.action-sheet.component.js → esm2020/testing-base/lib/components/mock.action-sheet.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.app.component.js → esm2020/testing-base/lib/components/mock.app.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.avatar.component.js → esm2020/testing-base/lib/components/mock.avatar.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.button.component.js → esm2020/testing-base/lib/components/mock.button.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.calendar.component.js → esm2020/testing-base/lib/components/mock.calendar.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.card-footer.component.js → esm2020/testing-base/lib/components/mock.card-footer.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.card-header.component.js → esm2020/testing-base/lib/components/mock.card-header.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.card.component.js → esm2020/testing-base/lib/components/mock.card.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.chart-deprecated.component.js → esm2020/testing-base/lib/components/mock.chart-deprecated.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.chart.component.js → esm2020/testing-base/lib/components/mock.chart.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.checkbox.component.js → esm2020/testing-base/lib/components/mock.checkbox.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.chip.component.js → esm2020/testing-base/lib/components/mock.chip.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.divider.component.js → esm2020/testing-base/lib/components/mock.divider.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.dropdown.component.js → esm2020/testing-base/lib/components/mock.dropdown.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.empty-state.component.js → esm2020/testing-base/lib/components/mock.empty-state.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.fab-sheet.component.js → esm2020/testing-base/lib/components/mock.fab-sheet.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.flag.component.js → esm2020/testing-base/lib/components/mock.flag.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.form-field-message.component.js → esm2020/testing-base/lib/components/mock.form-field-message.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.form-field.component.js → esm2020/testing-base/lib/components/mock.form-field.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.grid.component.js → esm2020/testing-base/lib/components/mock.grid.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.icon.component.js → esm2020/testing-base/lib/components/mock.icon.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.input-counter.component.js → esm2020/testing-base/lib/components/mock.input-counter.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.input.component.js → esm2020/testing-base/lib/components/mock.input.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.item-group.component.js → esm2020/testing-base/lib/components/mock.item-group.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.item-sliding.component.js → esm2020/testing-base/lib/components/mock.item-sliding.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.item.component.js → esm2020/testing-base/lib/components/mock.item.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.label.component.js → esm2020/testing-base/lib/components/mock.label.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.list-experimental.component.js → esm2020/testing-base/lib/components/mock.list-experimental.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.list-header.component.js → esm2020/testing-base/lib/components/mock.list-header.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.list-item.component.js → esm2020/testing-base/lib/components/mock.list-item.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.list-section-header.component.js → esm2020/testing-base/lib/components/mock.list-section-header.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.list.component.js → esm2020/testing-base/lib/components/mock.list.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.loading-overlay.component.js → esm2020/testing-base/lib/components/mock.loading-overlay.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.modal-footer.component.js → esm2020/testing-base/lib/components/mock.modal-footer.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.page-footer.component.js → esm2020/testing-base/lib/components/mock.page-footer.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.page.component.js → esm2020/testing-base/lib/components/mock.page.component.mjs} +31 -31
- package/{esm2015/testing-base/lib/components/mock.popover.component.js → esm2020/testing-base/lib/components/mock.popover.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.progress-circle.component.js → esm2020/testing-base/lib/components/mock.progress-circle.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.radio-group.component.js → esm2020/testing-base/lib/components/mock.radio-group.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.radio.component.js → esm2020/testing-base/lib/components/mock.radio.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.range.component.js → esm2020/testing-base/lib/components/mock.range.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.reorder-list.component.js → esm2020/testing-base/lib/components/mock.reorder-list.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.router-outlet.component.js → esm2020/testing-base/lib/components/mock.router-outlet.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.section-header.component.js → esm2020/testing-base/lib/components/mock.section-header.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.segmented-control.component.js → esm2020/testing-base/lib/components/mock.segmented-control.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.slide-button.component.js → esm2020/testing-base/lib/components/mock.slide-button.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.slides.component.js → esm2020/testing-base/lib/components/mock.slides.component.mjs} +7 -7
- package/{esm2015/testing-base/lib/components/mock.spinner.component.js → esm2020/testing-base/lib/components/mock.spinner.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.tab-button.component.js → esm2020/testing-base/lib/components/mock.tab-button.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.tabs.component.js → esm2020/testing-base/lib/components/mock.tabs.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.textarea.component.js → esm2020/testing-base/lib/components/mock.textarea.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.toggle-button.component.js → esm2020/testing-base/lib/components/mock.toggle-button.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.toggle.component.js → esm2020/testing-base/lib/components/mock.toggle.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/components/mock.web-component-proxies.component.js → esm2020/testing-base/lib/components/mock.web-component-proxies.component.mjs} +4 -4
- package/{esm2015/testing-base/lib/directives/index.js → esm2020/testing-base/lib/directives/index.mjs} +0 -0
- package/{esm2015/testing-base/lib/directives/mock.accordion.directive.js → esm2020/testing-base/lib/directives/mock.accordion.directive.mjs} +4 -4
- package/{esm2015/testing-base/lib/directives/mock.fit-heading.directive.js → esm2020/testing-base/lib/directives/mock.fit-heading.directive.mjs} +4 -4
- package/{esm2015/testing-base/lib/directives/mock.theme-color.directive.js → esm2020/testing-base/lib/directives/mock.theme-color.directive.mjs} +4 -4
- package/{esm2015/testing-base/lib/index.js → esm2020/testing-base/lib/index.mjs} +0 -0
- package/{esm2015/testing-base/lib/kirby-testing-base.module.js → esm2020/testing-base/lib/kirby-testing-base.module.mjs} +5 -5
- package/{esm2015/testing-base/lib/mock-components.js → esm2020/testing-base/lib/mock-components.mjs} +0 -0
- package/{esm2015/testing-base/lib/mock-directives.js → esm2020/testing-base/lib/mock-directives.mjs} +0 -0
- package/{esm2015/testing-base/public_api.js → esm2020/testing-base/public_api.mjs} +0 -0
- package/{esm2015/testing-jasmine/kirbydesign-designsystem-testing-jasmine.js → esm2020/testing-jasmine/kirbydesign-designsystem-testing-jasmine.mjs} +0 -0
- package/{esm2015/testing-jasmine/lib/kirby-testing.module.js → esm2020/testing-jasmine/lib/kirby-testing.module.mjs} +5 -5
- package/{esm2015/testing-jasmine/lib/mock-providers.js → esm2020/testing-jasmine/lib/mock-providers.mjs} +0 -0
- package/{esm2015/testing-jasmine/public_api.js → esm2020/testing-jasmine/public_api.mjs} +0 -0
- package/{esm2015/testing-jest/kirbydesign-designsystem-testing-jest.js → esm2020/testing-jest/kirbydesign-designsystem-testing-jest.mjs} +0 -0
- package/{esm2015/testing-jest/lib/kirby-testing.module.js → esm2020/testing-jest/lib/kirby-testing.module.mjs} +5 -5
- package/{esm2015/testing-jest/lib/mock-providers.js → esm2020/testing-jest/lib/mock-providers.mjs} +0 -0
- package/{esm2015/testing-jest/public_api.js → esm2020/testing-jest/public_api.mjs} +0 -0
- package/fesm2015/{kirbydesign-designsystem-testing-base.js → kirbydesign-designsystem-testing-base.mjs} +209 -209
- package/fesm2015/kirbydesign-designsystem-testing-base.mjs.map +1 -0
- package/fesm2015/{kirbydesign-designsystem-testing-jasmine.js → kirbydesign-designsystem-testing-jasmine.mjs} +5 -5
- package/fesm2015/kirbydesign-designsystem-testing-jasmine.mjs.map +1 -0
- package/fesm2015/{kirbydesign-designsystem-testing-jest.js → kirbydesign-designsystem-testing-jest.mjs} +5 -5
- package/fesm2015/kirbydesign-designsystem-testing-jest.mjs.map +1 -0
- package/fesm2015/{kirbydesign-designsystem.js → kirbydesign-designsystem.mjs} +2573 -2908
- package/fesm2015/kirbydesign-designsystem.mjs.map +1 -0
- package/fesm2020/kirbydesign-designsystem-testing-base.mjs +2229 -0
- package/fesm2020/kirbydesign-designsystem-testing-base.mjs.map +1 -0
- package/fesm2020/kirbydesign-designsystem-testing-jasmine.mjs +80 -0
- package/fesm2020/kirbydesign-designsystem-testing-jasmine.mjs.map +1 -0
- package/fesm2020/kirbydesign-designsystem-testing-jest.mjs +88 -0
- package/fesm2020/kirbydesign-designsystem-testing-jest.mjs.map +1 -0
- package/fesm2020/kirbydesign-designsystem.mjs +9610 -0
- package/fesm2020/kirbydesign-designsystem.mjs.map +1 -0
- package/lib/components/avatar/avatar.component.d.ts +1 -1
- package/lib/components/button/button.component.d.ts +1 -1
- package/lib/components/flag/flag.component.d.ts +1 -1
- package/lib/components/progress-circle/progress-circle.component.d.ts +1 -1
- package/lib/components/segmented-control/segmented-control.component.d.ts +4 -1
- package/package.json +45 -8
- package/polyfills/intersection-observer-polyfill-loader.min.js +1 -1
- package/polyfills/intersection-observer-polyfill.min.js +1 -1
- package/polyfills/resize-observer-polyfill-loader.min.js +1 -1
- package/polyfills/resize-observer-polyfill.min.js +1 -1
- package/scss/_trigger-publish.scss +1 -0
- package/scss/_trigger.scss +1 -0
- package/scss/awesome-stylesheet.scss +1 -0
- package/scss/base/_awesome-partial.scss +1 -0
- package/scss/base/_index.scss +1 -0
- package/scss/base/_interaction-states.scss +1 -0
- package/scss/base/index.scss +1 -0
- package/scss/interaction-state/_state-layer.scss +1 -0
- package/scss/interaction-state/_utilities.scss +1 -0
- package/scss/interaction-state/ionic/_active.scss +1 -0
- package/scss/interaction-state/ionic/_hover.scss +1 -0
- package/scss/interaction-state/ionic/_index.scss +1 -0
- package/scss/interaction-states/_hover.scss +1 -0
- package/scss/interaction-states/_index.scss +1 -0
- package/src/lib/components/icon/README.md +16 -0
- package/testing-base/package.json +5 -5
- package/testing-jasmine/package.json +5 -5
- package/testing-jest/package.json +5 -5
- package/bundles/kirbydesign-designsystem-testing-base.umd.js +0 -2494
- package/bundles/kirbydesign-designsystem-testing-base.umd.js.map +0 -1
- package/bundles/kirbydesign-designsystem-testing-jasmine.umd.js +0 -415
- package/bundles/kirbydesign-designsystem-testing-jasmine.umd.js.map +0 -1
- package/bundles/kirbydesign-designsystem-testing-jest.umd.js +0 -423
- package/bundles/kirbydesign-designsystem-testing-jest.umd.js.map +0 -1
- package/bundles/kirbydesign-designsystem.umd.js +0 -11620
- package/bundles/kirbydesign-designsystem.umd.js.map +0 -1
- package/esm2015/lib/components/accordion/accordion-item.component.js +0 -43
- package/esm2015/lib/components/app/app.component.js +0 -49
- package/esm2015/lib/components/avatar/avatar.component.js +0 -47
- package/esm2015/lib/components/button/button.component.js +0 -114
- package/esm2015/lib/components/calendar/calendar.component.js +0 -418
- package/esm2015/lib/components/calendar/helpers/calendar.helper.js +0 -77
- package/esm2015/lib/components/card/card-footer/card-footer.component.js +0 -18
- package/esm2015/lib/components/card/card-header/card-header.component.js +0 -31
- package/esm2015/lib/components/card/card.component.js +0 -90
- package/esm2015/lib/components/chart/chart-js/chart-js.service.js +0 -328
- package/esm2015/lib/components/chart/chart-js/chartjs-plugin-marker/chartjs-plugin-marker.js +0 -199
- package/esm2015/lib/components/chart/configs/shared.utils.js +0 -23
- package/esm2015/lib/components/checkbox/checkbox.component.js +0 -73
- package/esm2015/lib/components/chip/chip.component.js +0 -26
- package/esm2015/lib/components/divider/divider.component.js +0 -18
- package/esm2015/lib/components/dropdown/dropdown.component.js +0 -537
- package/esm2015/lib/components/empty-state/empty-state.component.js +0 -51
- package/esm2015/lib/components/fab-sheet/fab-sheet.component.js +0 -102
- package/esm2015/lib/components/flag/flag.component.js +0 -30
- package/esm2015/lib/components/form-field/form-field-message/form-field-message.component.js +0 -23
- package/esm2015/lib/components/form-field/form-field.component.js +0 -120
- package/esm2015/lib/components/form-field/input/input.component.js +0 -101
- package/esm2015/lib/components/form-field/input-counter/input-counter.component.js +0 -38
- package/esm2015/lib/components/form-field/textarea/textarea.component.js +0 -71
- package/esm2015/lib/components/grid/grid.component.js +0 -103
- package/esm2015/lib/components/icon/icon.component.js +0 -86
- package/esm2015/lib/components/item/item.component.js +0 -51
- package/esm2015/lib/components/item/label/label.component.js +0 -27
- package/esm2015/lib/components/item-group/item-group.component.js +0 -21
- package/esm2015/lib/components/item-sliding/item-sliding.component.js +0 -34
- package/esm2015/lib/components/list/list-experimental/list-experimental.component.js +0 -29
- package/esm2015/lib/components/list/list-header/list-header.component.js +0 -17
- package/esm2015/lib/components/list/list-item/list-item.component.js +0 -133
- package/esm2015/lib/components/list/list-section-header/list-section-header.component.js +0 -19
- package/esm2015/lib/components/list/list.component.js +0 -183
- package/esm2015/lib/components/loading-overlay/loading-overlay.component.js +0 -26
- package/esm2015/lib/components/loading-overlay/loading-overlay.service.js +0 -58
- package/esm2015/lib/components/modal/action-sheet/action-sheet.component.js +0 -48
- package/esm2015/lib/components/modal/alert/alert.component.js +0 -72
- package/esm2015/lib/components/modal/footer/modal-footer.component.js +0 -31
- package/esm2015/lib/components/modal/modal-wrapper/compact/modal-compact-wrapper.component.js +0 -89
- package/esm2015/lib/components/modal/modal-wrapper/modal-wrapper.component.js +0 -536
- package/esm2015/lib/components/modal/services/action-sheet.helper.js +0 -50
- package/esm2015/lib/components/modal/services/alert.helper.js +0 -60
- package/esm2015/lib/components/modal/services/modal.controller.js +0 -171
- package/esm2015/lib/components/modal/services/modal.helper.js +0 -126
- package/esm2015/lib/components/page/page-footer/page-footer.component.js +0 -40
- package/esm2015/lib/components/page/page.component.js +0 -416
- package/esm2015/lib/components/progress-circle/progress-circle-ring.component.js +0 -57
- package/esm2015/lib/components/progress-circle/progress-circle.component.js +0 -92
- package/esm2015/lib/components/radio/radio.component.js +0 -52
- package/esm2015/lib/components/reorder-list/reorder-list.component.js +0 -81
- package/esm2015/lib/components/router-outlet/router-outlet.component.js +0 -20
- package/esm2015/lib/components/section-header/section-header.component.js +0 -17
- package/esm2015/lib/components/segmented-control/segmented-control.component.js +0 -109
- package/esm2015/lib/components/slide-button/slide-button.component.js +0 -78
- package/esm2015/lib/components/spinner/spinner.component.js +0 -18
- package/esm2015/lib/components/stock-chart-deprecated/options/stock-chart-deprecated-options.js +0 -191
- package/esm2015/lib/components/tabs/tab-button/tab-button.component.js +0 -47
- package/esm2015/lib/components/tabs/tabs.component.js +0 -32
- package/esm2015/lib/components/toast/services/toast.helper.js +0 -50
- package/esm2015/lib/components/toggle/toggle.component.js +0 -32
- package/esm2015/lib/components/toggle-button/toggle-button.component.js +0 -30
- package/esm2015/lib/helpers/element-has-ancestor.js +0 -24
- package/fesm2015/kirbydesign-designsystem-testing-base.js.map +0 -1
- package/fesm2015/kirbydesign-designsystem-testing-jasmine.js.map +0 -1
- package/fesm2015/kirbydesign-designsystem-testing-jest.js.map +0 -1
- package/fesm2015/kirbydesign-designsystem.js.map +0 -1
|
File without changes
|
|
File without changes
|
package/{esm2015/lib/animation/kirby-animation.js → esm2020/lib/animation/kirby-animation.mjs}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../icon/icon.component";
|
|
5
|
+
// Counter for generating unique element ids
|
|
6
|
+
let uniqueId = 0;
|
|
7
|
+
export class AccordionItemComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.isExpanded = false;
|
|
10
|
+
// IDs used for a11y labelling
|
|
11
|
+
this._titleId = `kirby-accordion-item-title-${++uniqueId}`;
|
|
12
|
+
this._contentId = `kirby-accordion-item-content-${uniqueId}`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
/** @nocollapse */ AccordionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AccordionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
/** @nocollapse */ AccordionItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AccordionItemComponent, selector: "kirby-accordion-item", inputs: { title: "title", isExpanded: "isExpanded" }, ngImport: i0, template: "<ng-container>\n <div\n (click)=\"isExpanded = !isExpanded\"\n class=\"header\"\n role=\"button\"\n [class.expanded]=\"isExpanded\"\n [attr.aria-expanded]=\"isExpanded\"\n [attr.aria-controls]=\"_contentId\"\n [id]=\"_titleId\"\n >\n <div class=\"title\">{{ title }}</div>\n <kirby-icon name=\"arrow-down\"></kirby-icon>\n </div>\n <div\n class=\"content\"\n role=\"region\"\n [attr.aria-labelledby]=\"_titleId\"\n [id]=\"_contentId\"\n [@isExpanded]=\"!!isExpanded\"\n >\n <div class=\"content-body\">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;border-top:1px solid var(--kirby-medium);border-bottom:1px solid var(--kirby-medium)}.header{display:flex;align-items:center;height:56px;padding-left:16px;padding-right:16px;cursor:pointer;-webkit-user-select:none;user-select:none}.title{flex-grow:2}.kirby-icon{transition:transform .2s}.content{overflow:hidden}.content-body{padding:0 16px 16px}.expanded .title{font-weight:700}.expanded .kirby-icon{transform:rotate(180deg)}:host-context(kirby-accordion):not(:first-child){border-top:none}:host-context(kirby-card){border-color:var(--kirby-background-color)}:host-context(kirby-card):first-child{border-top:none}:host-context(kirby-card):last-child{border-bottom:none}\n"], components: [{ type: i1.IconComponent, selector: "kirby-icon", inputs: ["size", "name", "customName"] }], animations: [
|
|
17
|
+
trigger('isExpanded', [
|
|
18
|
+
state('true', style({ height: '*', visibility: 'visible' })),
|
|
19
|
+
state('false', style({ height: '0px', visibility: 'hidden' })),
|
|
20
|
+
transition('true <=> false', animate('0.2s')),
|
|
21
|
+
]),
|
|
22
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AccordionItemComponent, decorators: [{
|
|
24
|
+
type: Component,
|
|
25
|
+
args: [{ selector: 'kirby-accordion-item', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
26
|
+
trigger('isExpanded', [
|
|
27
|
+
state('true', style({ height: '*', visibility: 'visible' })),
|
|
28
|
+
state('false', style({ height: '0px', visibility: 'hidden' })),
|
|
29
|
+
transition('true <=> false', animate('0.2s')),
|
|
30
|
+
]),
|
|
31
|
+
], template: "<ng-container>\n <div\n (click)=\"isExpanded = !isExpanded\"\n class=\"header\"\n role=\"button\"\n [class.expanded]=\"isExpanded\"\n [attr.aria-expanded]=\"isExpanded\"\n [attr.aria-controls]=\"_contentId\"\n [id]=\"_titleId\"\n >\n <div class=\"title\">{{ title }}</div>\n <kirby-icon name=\"arrow-down\"></kirby-icon>\n </div>\n <div\n class=\"content\"\n role=\"region\"\n [attr.aria-labelledby]=\"_titleId\"\n [id]=\"_contentId\"\n [@isExpanded]=\"!!isExpanded\"\n >\n <div class=\"content-body\">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;border-top:1px solid var(--kirby-medium);border-bottom:1px solid var(--kirby-medium)}.header{display:flex;align-items:center;height:56px;padding-left:16px;padding-right:16px;cursor:pointer;-webkit-user-select:none;user-select:none}.title{flex-grow:2}.kirby-icon{transition:transform .2s}.content{overflow:hidden}.content-body{padding:0 16px 16px}.expanded .title{font-weight:700}.expanded .kirby-icon{transform:rotate(180deg)}:host-context(kirby-accordion):not(:first-child){border-top:none}:host-context(kirby-card){border-color:var(--kirby-background-color)}:host-context(kirby-card):first-child{border-top:none}:host-context(kirby-card):last-child{border-bottom:none}\n"] }]
|
|
32
|
+
}], propDecorators: { title: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], isExpanded: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}] } });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ25zeXN0ZW0vc3JjL2xpYi9jb21wb25lbnRzL2FjY29yZGlvbi9hY2NvcmRpb24taXRlbS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbnN5c3RlbS9zcmMvbGliL2NvbXBvbmVudHMvYWNjb3JkaW9uL2FjY29yZGlvbi1pdGVtLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxVQUFVLEVBQUUsT0FBTyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDakYsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQUUxRSw0Q0FBNEM7QUFDNUMsSUFB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Fzcz1cImNvbnRlbnQtYm9keVwiPlxuICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -2,13 +2,13 @@ import { Directive } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class AccordionDirective {
|
|
4
4
|
}
|
|
5
|
-
/** @nocollapse */ AccordionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6
|
-
/** @nocollapse */ AccordionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
7
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5
|
+
/** @nocollapse */ AccordionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AccordionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6
|
+
/** @nocollapse */ AccordionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.9", type: AccordionDirective, selector: "[kirbyAccordion], kirby-accordion", exportAs: ["kirby-accordion"], ngImport: i0 });
|
|
7
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AccordionDirective, decorators: [{
|
|
8
8
|
type: Directive,
|
|
9
9
|
args: [{
|
|
10
10
|
selector: '[kirbyAccordion], kirby-accordion',
|
|
11
11
|
exportAs: 'kirby-accordion',
|
|
12
12
|
}]
|
|
13
13
|
}] });
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9hY2NvcmRpb24vYWNjb3JkaW9uLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQU0xQyxNQUFNLE9BQU8sa0JBQWtCOztrSUFBbEIsa0JBQWtCO3NIQUFsQixrQkFBa0I7MkZBQWxCLGtCQUFrQjtrQkFKOUIsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsbUNBQW1DO29CQUM3QyxRQUFRLEVBQUUsaUJBQWlCO2lCQUM1QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5ARGlyZWN0aXZlKHtcbiAgc2VsZWN0b3I6ICdba2lyYnlBY2NvcmRpb25dLCBraXJieS1hY2NvcmRpb24nLFxuICBleHBvcnRBczogJ2tpcmJ5LWFjY29yZGlvbicsXG59KVxuZXhwb3J0IGNsYXNzIEFjY29yZGlvbkRpcmVjdGl2ZSB7fVxuIl19
|
package/{esm2015/lib/components/accordion/index.js → esm2020/lib/components/accordion/index.mjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ContentChild, ElementRef, ViewChild, } from '@angular/core';
|
|
2
|
+
import { IonApp } from '@ionic/angular';
|
|
3
|
+
import { ModalController } from '../modal/services/modal.controller';
|
|
4
|
+
import { RouterOutletComponent } from '../router-outlet/router-outlet.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../modal/services/modal.controller";
|
|
7
|
+
import * as i2 from "@ionic/angular";
|
|
8
|
+
export class AppComponent {
|
|
9
|
+
constructor(modalController) {
|
|
10
|
+
this.modalController = modalController;
|
|
11
|
+
}
|
|
12
|
+
ngAfterContentInit() {
|
|
13
|
+
if (this.routerOutlet && this.routerOutlet.nativeElement) {
|
|
14
|
+
this.modalController.registerPresentingElement(this.routerOutlet.nativeElement);
|
|
15
|
+
}
|
|
16
|
+
this.ionAppElement.nativeElement.componentOnReady().then(() => this.registerInputs());
|
|
17
|
+
}
|
|
18
|
+
registerInputs() {
|
|
19
|
+
// Input might be already loaded in the DOM before ion-device-hacks did.
|
|
20
|
+
// At this point we need to look for all of the inputs not registered yet
|
|
21
|
+
// and register them.
|
|
22
|
+
// There is no Ionic event to hook into, so we'll use a timeout
|
|
23
|
+
// to ensure ion-device-hacks has run:
|
|
24
|
+
const ensureIonicDeviceHacksDelay = 250;
|
|
25
|
+
setTimeout(() => {
|
|
26
|
+
document.querySelectorAll('kirby-form-field').forEach((formField) => {
|
|
27
|
+
formField.dispatchEvent(new CustomEvent('kirbyRegisterFormField'));
|
|
28
|
+
});
|
|
29
|
+
}, ensureIonicDeviceHacksDelay);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/** @nocollapse */ AppComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AppComponent, deps: [{ token: i1.ModalController }], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
/** @nocollapse */ AppComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AppComponent, selector: "kirby-app", queries: [{ propertyName: "routerOutlet", first: true, predicate: RouterOutletComponent, descendants: true, read: ElementRef }], viewQueries: [{ propertyName: "ionAppElement", first: true, predicate: IonApp, descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<ion-app>\n <ng-content></ng-content>\n</ion-app>\n", styles: [":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:size layout style;z-index:0;overflow:hidden}\n"], components: [{ type: i2.IonApp, selector: "ion-app" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AppComponent, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{ selector: 'kirby-app', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ion-app>\n <ng-content></ng-content>\n</ion-app>\n", styles: [":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:size layout style;z-index:0;overflow:hidden}\n"] }]
|
|
37
|
+
}], ctorParameters: function () { return [{ type: i1.ModalController }]; }, propDecorators: { ionAppElement: [{
|
|
38
|
+
type: ViewChild,
|
|
39
|
+
args: [IonApp, { static: true, read: ElementRef }]
|
|
40
|
+
}], routerOutlet: [{
|
|
41
|
+
type: ContentChild,
|
|
42
|
+
args: [RouterOutletComponent, { static: false, read: ElementRef }]
|
|
43
|
+
}] } });
|
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9hcHAvYXBwLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9hcHAvYXBwLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksRUFDWixVQUFVLEVBQ1YsU0FBUyxHQUNWLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUV4QyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDckUsT0FBTyxFQUFFLHFCQUFxQixFQ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Ly8gYW5kIHJlZ2lzdGVyIHRoZW0uXG4gICAgLy8gVGhlcmUgaXMgbm8gSW9uaWMgZXZlbnQgdG8gaG9vayBpbnRvLCBzbyB3ZSdsbCB1c2UgYSB0aW1lb3V0XG4gICAgLy8gdG8gZW5zdXJlIGlvbi1kZXZpY2UtaGFja3MgaGFzIHJ1bjpcbiAgICBjb25zdCBlbnN1cmVJb25pY0RldmljZUhhY2tzRGVsYXkgPSAyNTA7XG4gICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCdraXJieS1mb3JtLWZpZWxkJykuZm9yRWFjaCgoZm9ybUZpZWxkKSA9PiB7XG4gICAgICAgIGZvcm1GaWVsZC5kaXNwYXRjaEV2ZW50KG5ldyBDdXN0b21FdmVudCgna2lyYnlSZWdpc3RlckZvcm1GaWVsZCcpKTtcbiAgICAgIH0pO1xuICAgIH0sIGVuc3VyZUlvbmljRGV2aWNlSGFja3NEZWxheSk7XG4gIH1cbn1cbiIsIjxpb24tYXBwPlxuICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG48L2lvbi1hcHA+XG4iXX0=
|
package/{esm2015/lib/components/app/app.module.js → esm2020/lib/components/app/app.module.mjs}
RENAMED
|
@@ -5,10 +5,10 @@ import { AppComponent } from './app.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export class AppModule {
|
|
7
7
|
}
|
|
8
|
-
/** @nocollapse */ AppModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
/** @nocollapse */ AppModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
10
|
-
/** @nocollapse */ AppModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8
|
+
/** @nocollapse */ AppModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AppModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
+
/** @nocollapse */ AppModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AppModule, declarations: [AppComponent], imports: [CommonModule, IonicModule], exports: [AppComponent] });
|
|
10
|
+
/** @nocollapse */ AppModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AppModule, imports: [[CommonModule, IonicModule]] });
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AppModule, decorators: [{
|
|
12
12
|
type: NgModule,
|
|
13
13
|
args: [{
|
|
14
14
|
declarations: [AppComponent],
|
|
@@ -16,4 +16,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
16
16
|
exports: [AppComponent],
|
|
17
17
|
}]
|
|
18
18
|
}] });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9hcHAvYXBwLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFN0MsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDOztBQU8vQyxNQUFNLE9BQU8sU0FBUzs7eUhBQVQsU0FBUzswSEFBVCxTQUFTLGlCQUpMLFlBQVksYUFDakIsWUFBWSxFQUFFLFdBQVcsYUFDekIsWUFBWTswSEFFWCxTQUFTLFlBSFgsQ0FBQyxZQUFZLEVBQUUsV0FBVyxDQUFDOzJGQUd6QixTQUFTO2tCQUxyQixRQUFRO21CQUFDO29CQUNSLFlBQVksRUFBRSxDQUFDLFlBQVksQ0FBQztvQkFDNUIsT0FBTyxFQUFFLENBQUMsWUFBWSxFQUFFLFdBQVcsQ0FBQztvQkFDcEMsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDO2lCQUN4QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgSW9uaWNNb2R1bGUgfSBmcm9tICdAaW9uaWMvYW5ndWxhcic7XG5cbmltcG9ydCB7IEFwcENvbXBvbmVudCB9IGZyb20gJy4vYXBwLmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0FwcENvbXBvbmVudF0sXG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGUsIElvbmljTW9kdWxlXSxcbiAgZXhwb3J0czogW0FwcENvbXBvbmVudF0sXG59KVxuZXhwb3J0IGNsYXNzIEFwcE1vZHVsZSB7fVxuIl19
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
export var AvatarSize;
|
|
5
|
+
(function (AvatarSize) {
|
|
6
|
+
AvatarSize["XS"] = "xs";
|
|
7
|
+
AvatarSize["SM"] = "sm";
|
|
8
|
+
AvatarSize["MD"] = "md";
|
|
9
|
+
AvatarSize["LG"] = "lg";
|
|
10
|
+
})(AvatarSize || (AvatarSize = {}));
|
|
11
|
+
export class AvatarComponent {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.size = AvatarSize.SM;
|
|
14
|
+
}
|
|
15
|
+
get _cssClass() {
|
|
16
|
+
return [this.themeColor, this.size].filter((cssClass) => !!cssClass);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
/** @nocollapse */ AvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
/** @nocollapse */ AvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AvatarComponent, selector: "kirby-avatar", inputs: { imageSrc: "imageSrc", altText: "altText", shadow: "shadow", text: "text", overlay: "overlay", size: "size", themeColor: "themeColor" }, host: { properties: { "class": "this._cssClass" } }, ngImport: i0, template: "<div class=\"avatar\" [ngClass]=\"{ shadow: shadow, overlay: overlay }\">\n <img *ngIf=\"imageSrc\" [src]=\"imageSrc\" [attr.alt]=\"altText\" />\n <ng-content *ngIf=\"!text\" select=\"kirby-icon\"></ng-content>\n <span class=\"avatar-text\" *ngIf=\"text\">{{ text }}</span>\n</div>\n<ng-content select=\"kirby-badge\"></ng-content>\n", styles: [":host{--kirby-badge-elevation: 0 5px 10px -10px rgba(28, 28, 28, .3), 0 0 5px 0 rgba(28, 28, 28, .08);--kirby-badge-position: absolute;--kirby-badge-right: -2px;--kirby-badge-top: -2px;--kirby-badge-z-index: 2;position:relative}.avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;position:relative;z-index:1;display:flex;justify-content:center;align-items:center;background-color:var(--kirby-white);color:var(--kirby-light-contrast);--kirby-icon-font-size: 24px}.avatar.shadow{box-shadow:0 2px 4px 2px #71717166}.avatar.overlay:before{content:\"\";background-color:var(--kirby-black);opacity:.05;width:100%;height:100%;position:absolute;top:0;left:0}.avatar img{object-fit:cover;max-width:100%;height:100%;width:100%}:host(.xs) .avatar{width:32px;height:32px;border-radius:8px}:host(.xs) .avatar .avatar-text{font-size:14px}:host-context(kirby-progress-circle.sm) .avatar,:host(.sm) .avatar{width:40px;height:40px}:host-context(kirby-progress-circle.sm) .avatar .avatar-text,:host(.sm) .avatar .avatar-text{font-size:14px}:host-context(kirby-progress-circle.md),:host(.md){--kirby-badge-right: 0px;--kirby-badge-top: 0px}:host-context(kirby-progress-circle.md) .avatar,:host(.md) .avatar{width:56px;height:56px;--kirby-icon-font-size: 32px}:host-context(kirby-progress-circle.md) .avatar .avatar-text,:host(.md) .avatar .avatar-text{font-size:18px}:host-context(kirby-progress-circle.lg),:host(.lg){--kirby-badge-right: 6px;--kirby-badge-top: 6px}:host-context(kirby-progress-circle.lg) .avatar,:host(.lg) .avatar{width:96px;height:96px;--kirby-icon-font-size: 56px}:host-context(kirby-progress-circle.lg) .avatar .avatar-text,:host(.lg) .avatar .avatar-text{font-size:32px}:host-context(kirby-item)[slot=start]{margin-inline-end:12px}:host-context(kirby-item)[slot=start].xs{margin-inline-end:16px}:host(.primary) .avatar{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}:host(.secondary) .avatar{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}:host(.tertiary) .avatar{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}:host(.success) .avatar{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}:host(.warning) .avatar{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}:host(.danger) .avatar{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}:host(.light) .avatar{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}:host(.medium) .avatar{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}:host(.dark) .avatar{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}:host(.white) .avatar{background-color:var(--kirby-white);color:var(--kirby-white-contrast)}:host(.semi-light) .avatar{background-color:var(--kirby-semi-light);color:var(--kirby-semi-light-contrast)}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
22
|
+
type: Component,
|
|
23
|
+
args: [{ selector: 'kirby-avatar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"avatar\" [ngClass]=\"{ shadow: shadow, overlay: overlay }\">\n <img *ngIf=\"imageSrc\" [src]=\"imageSrc\" [attr.alt]=\"altText\" />\n <ng-content *ngIf=\"!text\" select=\"kirby-icon\"></ng-content>\n <span class=\"avatar-text\" *ngIf=\"text\">{{ text }}</span>\n</div>\n<ng-content select=\"kirby-badge\"></ng-content>\n", styles: [":host{--kirby-badge-elevation: 0 5px 10px -10px rgba(28, 28, 28, .3), 0 0 5px 0 rgba(28, 28, 28, .08);--kirby-badge-position: absolute;--kirby-badge-right: -2px;--kirby-badge-top: -2px;--kirby-badge-z-index: 2;position:relative}.avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;position:relative;z-index:1;display:flex;justify-content:center;align-items:center;background-color:var(--kirby-white);color:var(--kirby-light-contrast);--kirby-icon-font-size: 24px}.avatar.shadow{box-shadow:0 2px 4px 2px #71717166}.avatar.overlay:before{content:\"\";background-color:var(--kirby-black);opacity:.05;width:100%;height:100%;position:absolute;top:0;left:0}.avatar img{object-fit:cover;max-width:100%;height:100%;width:100%}:host(.xs) .avatar{width:32px;height:32px;border-radius:8px}:host(.xs) .avatar .avatar-text{font-size:14px}:host-context(kirby-progress-circle.sm) .avatar,:host(.sm) .avatar{width:40px;height:40px}:host-context(kirby-progress-circle.sm) .avatar .avatar-text,:host(.sm) .avatar .avatar-text{font-size:14px}:host-context(kirby-progress-circle.md),:host(.md){--kirby-badge-right: 0px;--kirby-badge-top: 0px}:host-context(kirby-progress-circle.md) .avatar,:host(.md) .avatar{width:56px;height:56px;--kirby-icon-font-size: 32px}:host-context(kirby-progress-circle.md) .avatar .avatar-text,:host(.md) .avatar .avatar-text{font-size:18px}:host-context(kirby-progress-circle.lg),:host(.lg){--kirby-badge-right: 6px;--kirby-badge-top: 6px}:host-context(kirby-progress-circle.lg) .avatar,:host(.lg) .avatar{width:96px;height:96px;--kirby-icon-font-size: 56px}:host-context(kirby-progress-circle.lg) .avatar .avatar-text,:host(.lg) .avatar .avatar-text{font-size:32px}:host-context(kirby-item)[slot=start]{margin-inline-end:12px}:host-context(kirby-item)[slot=start].xs{margin-inline-end:16px}:host(.primary) .avatar{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}:host(.secondary) .avatar{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}:host(.tertiary) .avatar{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}:host(.success) .avatar{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}:host(.warning) .avatar{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}:host(.danger) .avatar{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}:host(.light) .avatar{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}:host(.medium) .avatar{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}:host(.dark) .avatar{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}:host(.white) .avatar{background-color:var(--kirby-white);color:var(--kirby-white-contrast)}:host(.semi-light) .avatar{background-color:var(--kirby-semi-light);color:var(--kirby-semi-light-contrast)}\n"] }]
|
|
24
|
+
}], propDecorators: { imageSrc: [{
|
|
25
|
+
type: Input
|
|
26
|
+
}], altText: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}], shadow: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], text: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}], overlay: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], size: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}], themeColor: [{
|
|
37
|
+
type: Input
|
|
38
|
+
}], _cssClass: [{
|
|
39
|
+
type: HostBinding,
|
|
40
|
+
args: ['class']
|
|
41
|
+
}] } });
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXZhdGFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9hdmF0YXIvYXZhdGFyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9hdmF0YXIvYXZhdGFyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBSXZGLE1BQU0sQ0FBTixJQUFZLFVBS1g7QUFMRCxXQUFZLFVBQVU7SUFDcEIsdUJBQVMsQ0FBQTtJQUNULHVCQUFTLENBQUE7SUFDVCx1QkFBUyxDQUFBO0lBQ1QsdUJBQVMsQ0FBQTtBQUNYLENBQUMsRUFMVyxVQUFVLEtBQVYsVUFBVSxRQUtyQjtBQVFELE1BQU0sT0FBTyxlQUFlO0lBTjVCO1FBWVcsU0FBSSxHQUFpQyxVQUFVLENBQUMsRUFBRSxDQUFDO0tBUTdEO0lBSkMsSUFDSSxTQUFTO1FBQ1gsT0FBTyxDQUFDLElBQU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nt7IHRleHQgfX08L3NwYW4+XG48L2Rpdj5cbjxuZy1jb250ZW50IHNlbGVjdD1cImtpcmJ5LWJhZGdlXCI+PC9uZy1jb250ZW50PlxuIl19
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ContentChild, ElementRef, HostBinding, Input, } from '@angular/core';
|
|
2
|
+
import { IconComponent } from '../icon/icon.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export var ButtonSize;
|
|
5
|
+
(function (ButtonSize) {
|
|
6
|
+
ButtonSize["SM"] = "sm";
|
|
7
|
+
ButtonSize["MD"] = "md";
|
|
8
|
+
ButtonSize["LG"] = "lg";
|
|
9
|
+
})(ButtonSize || (ButtonSize = {}));
|
|
10
|
+
export class ButtonComponent {
|
|
11
|
+
constructor(elementRef) {
|
|
12
|
+
this.elementRef = elementRef;
|
|
13
|
+
this.isAttentionLevel1 = true; // Default
|
|
14
|
+
this.destructive = false; // Default
|
|
15
|
+
this._isIconLeft = false;
|
|
16
|
+
this._isIconRight = false;
|
|
17
|
+
this.isFloating = false;
|
|
18
|
+
this.size = ButtonSize.MD;
|
|
19
|
+
this.hasText = false;
|
|
20
|
+
}
|
|
21
|
+
get isButtonFloating() {
|
|
22
|
+
return this.isFloating;
|
|
23
|
+
}
|
|
24
|
+
get isIconOnly() {
|
|
25
|
+
return !!this.icon && !this.hasText;
|
|
26
|
+
}
|
|
27
|
+
get isIconLeft() {
|
|
28
|
+
return this._isIconLeft;
|
|
29
|
+
}
|
|
30
|
+
get isIconRight() {
|
|
31
|
+
return this._isIconRight;
|
|
32
|
+
}
|
|
33
|
+
get _cssClass() {
|
|
34
|
+
return [this.themeColor, this.size].filter((cssClass) => !!cssClass);
|
|
35
|
+
}
|
|
36
|
+
set attentionLevel(level) {
|
|
37
|
+
this.isAttentionLevel1 = level === '1';
|
|
38
|
+
this.isAttentionLevel2 = level === '2';
|
|
39
|
+
this.isAttentionLevel3 = level === '3';
|
|
40
|
+
this.isAttentionLevel4 = level === '4';
|
|
41
|
+
}
|
|
42
|
+
set isDestructive(state) {
|
|
43
|
+
this.destructive = state;
|
|
44
|
+
}
|
|
45
|
+
ngAfterContentInit() {
|
|
46
|
+
this.hasText = !!this.elementRef.nativeElement.textContent;
|
|
47
|
+
if (this.iconElementRef !== undefined && this.hasText) {
|
|
48
|
+
this._isIconLeft =
|
|
49
|
+
this.elementRef.nativeElement.firstChild === this.iconElementRef.nativeElement;
|
|
50
|
+
this._isIconRight = !this._isIconLeft;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/** @nocollapse */ ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
55
|
+
/** @nocollapse */ ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: ButtonComponent, selector: "button[kirby-button],Button[kirby-button]", inputs: { attentionLevel: "attentionLevel", isDestructive: "isDestructive", themeColor: "themeColor", expand: "expand", isFloating: "isFloating", size: "size" }, host: { properties: { "class.attention-level1": "this.isAttentionLevel1", "class.attention-level2": "this.isAttentionLevel2", "class.attention-level3": "this.isAttentionLevel3", "class.attention-level4": "this.isAttentionLevel4", "class.destructive": "this.destructive", "class.floating": "this.isButtonFloating", "class.icon-only": "this.isIconOnly", "class.icon-left": "this.isIconLeft", "class.icon-right": "this.isIconRight", "class": "this._cssClass" } }, queries: [{ propertyName: "icon", first: true, predicate: IconComponent, descendants: true }, { propertyName: "iconElementRef", first: true, predicate: IconComponent, descendants: true, read: ElementRef }], ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{position:relative;font-family:var(--kirby-font-family);background-color:var(--kirby-button-background-color, initial);color:var(--kirby-button-color, inherit);border-radius:999px;box-sizing:border-box;cursor:pointer;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;transition:opacity .2s linear;-webkit-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap;font-size:14px;height:40px;min-width:88px;padding:0 24px;margin:4px;line-height:20px;outline:none;border:1px solid var(--kirby-button-border-color, transparent)}:host:after{content:\"\";position:absolute;min-height:44px;min-width:44px;width:100%;height:100%;transform:translate(-50%,-50%);left:50%;top:50%}:host.icon-left{padding-left:12px;padding-right:16px;--kirby-icon-margin-right: 8px}:host.icon-right{padding-left:16px;padding-right:12px;--kirby-icon-margin-left: 8px}:host.icon-only{width:40px;padding:0;min-width:unset}:host.sm{font-size:12px;height:32px;min-width:44px}:host.sm:not(.icon-only){padding-left:16px;padding-right:16px}:host.sm.icon-only{width:32px;min-width:unset}:host.sm.icon-left,:host.sm.icon-right{--kirby-icon-font-size: 16px;min-width:88px}:host.lg{font-size:16px;height:48px;min-width:220px}:host.lg.icon-only{width:48px;min-width:unset}:host.attention-level1{--kirby-button-background-color: var(--kirby-primary);--kirby-button-color: var(--kirby-primary-contrast)}:host.attention-level1.destructive{--kirby-button-background-color: var(--kirby-danger);--kirby-button-color: var(--kirby-danger-contrast)}:host.attention-level2{--kirby-button-background-color: var(--kirby-white);--kirby-button-color: var(--kirby-white-contrast)}:host.attention-level2.destructive{--kirby-button-background-color: var(--kirby-light);--kirby-button-color: var(--kirby-danger)}:host.attention-level3{--kirby-button-background-color: transparent;--kirby-button-color: var(--kirby-black);--kirby-button-border-color: var(--kirby-medium)}:host.attention-level3.destructive{--kirby-button-color: var(--kirby-danger)}:host.attention-level4{--kirby-button-background-color: transparent;--kirby-button-color: var(--kirby-black)}:host.attention-level4.destructive{--kirby-button-color: var(--kirby-danger)}:host[expand=block]{width:100%}@media (hover: hover){:host:focus{--kirby-button-border-color: #4d90fe}}@media (hover: hover){:host:hover{opacity:.8}}:host:active{opacity:.8}:host:disabled{background-color:var(--kirby-semi-light);color:var(--kirby-semi-dark-shade);border-color:transparent;pointer-events:none}:host :host-context(.default).attention-level2,:host :host-context(.kirby-color-brightness-white).attention-level2{--kirby-button-background-color: var(--kirby-black);--kirby-button-color: var(--kirby-black-contrast)}:host :host-context(.kirby-color-brightness-dark).attention-level3{--kirby-button-border-color: var(--kirby-white);--kirby-button-color: var(--kirby-white)}:host :host-context(.kirby-color-brightness-dark).attention-level4{--kirby-button-color: var(--kirby-white)}:host.floating{width:64px!important;height:64px!important;min-width:unset}:host.floating:not(:disabled){box-shadow:0 20px 30px -15px #1c1c1c4d,0 0 5px #1c1c1c14}:host-context(kirby-item)[slot=end]{margin-inline-start:16px}:host-context(kirby-alert).ok-btn{--kirby-button-background-color: var(--kirby-success);--kirby-button-color: var(--kirby-success-contrast)}:host-context(ion-toolbar kirby-page-actions){font-size:14px;margin:0;height:44px}:host-context(ion-toolbar kirby-page-actions).icon-only{width:44px}:host-context(ion-toolbar kirby-page-actions).attention-level1,:host-context(ion-toolbar kirby-page-actions).attention-level2,:host-context(ion-toolbar kirby-page-actions).attention-level3,:host-context(ion-toolbar kirby-page-actions).attention-level4{--kirby-button-background-color: transparent;--kirby-button-color: var(--kirby-black)}:host-context(ion-toolbar kirby-page-actions).attention-level1.destructive,:host-context(ion-toolbar kirby-page-actions).attention-level2.destructive,:host-context(ion-toolbar kirby-page-actions).attention-level3.destructive,:host-context(ion-toolbar kirby-page-actions).attention-level4.destructive{--kirby-button-color: var(--kirby-danger)}:host-context(.page-title kirby-page-actions).attention-level1,:host-context(.page-title kirby-page-actions).attention-level2,:host-context(.page-title kirby-page-actions).attention-level3,:host-context(.page-title kirby-page-actions).attention-level4{--kirby-button-background-color: var(--kirby-white);--kirby-button-color: var(--kirby-white-contrast)}:host-context(.page-title kirby-page-actions).attention-level1.destructive,:host-context(.page-title kirby-page-actions).attention-level2.destructive,:host-context(.page-title kirby-page-actions).attention-level3.destructive,:host-context(.page-title kirby-page-actions).attention-level4.destructive{--kirby-button-background-color: var(--kirby-light);--kirby-button-color: var(--kirby-danger)}:host-context(kirby-empty-state .content){font-size:16px;height:48px;min-width:220px}:host-context(kirby-empty-state .content).icon-only{width:48px;min-width:unset}:host-context(kirby-dropdown){justify-content:space-between}:host-context(kirby-toggle-button).success{--kirby-button-background-color: var(--kirby-success);--kirby-button-color: var(--kirby-success-contrast)}:host-context(kirby-toggle-button).warning{--kirby-button-background-color: var(--kirby-warning);--kirby-button-color: var(--kirby-warning-contrast)}:host-context(kirby-toggle-button).danger{--kirby-button-background-color: var(--kirby-danger);--kirby-button-color: var(--kirby-danger-contrast)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
57
|
+
type: Component,
|
|
58
|
+
args: [{ selector: 'button[kirby-button],Button[kirby-button]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n", styles: [":host{position:relative;font-family:var(--kirby-font-family);background-color:var(--kirby-button-background-color, initial);color:var(--kirby-button-color, inherit);border-radius:999px;box-sizing:border-box;cursor:pointer;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;transition:opacity .2s linear;-webkit-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap;font-size:14px;height:40px;min-width:88px;padding:0 24px;margin:4px;line-height:20px;outline:none;border:1px solid var(--kirby-button-border-color, transparent)}:host:after{content:\"\";position:absolute;min-height:44px;min-width:44px;width:100%;height:100%;transform:translate(-50%,-50%);left:50%;top:50%}:host.icon-left{padding-left:12px;padding-right:16px;--kirby-icon-margin-right: 8px}:host.icon-right{padding-left:16px;padding-right:12px;--kirby-icon-margin-left: 8px}:host.icon-only{width:40px;padding:0;min-width:unset}:host.sm{font-size:12px;height:32px;min-width:44px}:host.sm:not(.icon-only){padding-left:16px;padding-right:16px}:host.sm.icon-only{width:32px;min-width:unset}:host.sm.icon-left,:host.sm.icon-right{--kirby-icon-font-size: 16px;min-width:88px}:host.lg{font-size:16px;height:48px;min-width:220px}:host.lg.icon-only{width:48px;min-width:unset}:host.attention-level1{--kirby-button-background-color: var(--kirby-primary);--kirby-button-color: var(--kirby-primary-contrast)}:host.attention-level1.destructive{--kirby-button-background-color: var(--kirby-danger);--kirby-button-color: var(--kirby-danger-contrast)}:host.attention-level2{--kirby-button-background-color: var(--kirby-white);--kirby-button-color: var(--kirby-white-contrast)}:host.attention-level2.destructive{--kirby-button-background-color: var(--kirby-light);--kirby-button-color: var(--kirby-danger)}:host.attention-level3{--kirby-button-background-color: transparent;--kirby-button-color: var(--kirby-black);--kirby-button-border-color: var(--kirby-medium)}:host.attention-level3.destructive{--kirby-button-color: var(--kirby-danger)}:host.attention-level4{--kirby-button-background-color: transparent;--kirby-button-color: var(--kirby-black)}:host.attention-level4.destructive{--kirby-button-color: var(--kirby-danger)}:host[expand=block]{width:100%}@media (hover: hover){:host:focus{--kirby-button-border-color: #4d90fe}}@media (hover: hover){:host:hover{opacity:.8}}:host:active{opacity:.8}:host:disabled{background-color:var(--kirby-semi-light);color:var(--kirby-semi-dark-shade);border-color:transparent;pointer-events:none}:host :host-context(.default).attention-level2,:host :host-context(.kirby-color-brightness-white).attention-level2{--kirby-button-background-color: var(--kirby-black);--kirby-button-color: var(--kirby-black-contrast)}:host :host-context(.kirby-color-brightness-dark).attention-level3{--kirby-button-border-color: var(--kirby-white);--kirby-button-color: var(--kirby-white)}:host :host-context(.kirby-color-brightness-dark).attention-level4{--kirby-button-color: var(--kirby-white)}:host.floating{width:64px!important;height:64px!important;min-width:unset}:host.floating:not(:disabled){box-shadow:0 20px 30px -15px #1c1c1c4d,0 0 5px #1c1c1c14}:host-context(kirby-item)[slot=end]{margin-inline-start:16px}:host-context(kirby-alert).ok-btn{--kirby-button-background-color: var(--kirby-success);--kirby-button-color: var(--kirby-success-contrast)}:host-context(ion-toolbar kirby-page-actions){font-size:14px;margin:0;height:44px}:host-context(ion-toolbar kirby-page-actions).icon-only{width:44px}:host-context(ion-toolbar kirby-page-actions).attention-level1,:host-context(ion-toolbar kirby-page-actions).attention-level2,:host-context(ion-toolbar kirby-page-actions).attention-level3,:host-context(ion-toolbar kirby-page-actions).attention-level4{--kirby-button-background-color: transparent;--kirby-button-color: var(--kirby-black)}:host-context(ion-toolbar kirby-page-actions).attention-level1.destructive,:host-context(ion-toolbar kirby-page-actions).attention-level2.destructive,:host-context(ion-toolbar kirby-page-actions).attention-level3.destructive,:host-context(ion-toolbar kirby-page-actions).attention-level4.destructive{--kirby-button-color: var(--kirby-danger)}:host-context(.page-title kirby-page-actions).attention-level1,:host-context(.page-title kirby-page-actions).attention-level2,:host-context(.page-title kirby-page-actions).attention-level3,:host-context(.page-title kirby-page-actions).attention-level4{--kirby-button-background-color: var(--kirby-white);--kirby-button-color: var(--kirby-white-contrast)}:host-context(.page-title kirby-page-actions).attention-level1.destructive,:host-context(.page-title kirby-page-actions).attention-level2.destructive,:host-context(.page-title kirby-page-actions).attention-level3.destructive,:host-context(.page-title kirby-page-actions).attention-level4.destructive{--kirby-button-background-color: var(--kirby-light);--kirby-button-color: var(--kirby-danger)}:host-context(kirby-empty-state .content){font-size:16px;height:48px;min-width:220px}:host-context(kirby-empty-state .content).icon-only{width:48px;min-width:unset}:host-context(kirby-dropdown){justify-content:space-between}:host-context(kirby-toggle-button).success{--kirby-button-background-color: var(--kirby-success);--kirby-button-color: var(--kirby-success-contrast)}:host-context(kirby-toggle-button).warning{--kirby-button-background-color: var(--kirby-warning);--kirby-button-color: var(--kirby-warning-contrast)}:host-context(kirby-toggle-button).danger{--kirby-button-background-color: var(--kirby-danger);--kirby-button-color: var(--kirby-danger-contrast)}\n"] }]
|
|
59
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { isAttentionLevel1: [{
|
|
60
|
+
type: HostBinding,
|
|
61
|
+
args: ['class.attention-level1']
|
|
62
|
+
}], isAttentionLevel2: [{
|
|
63
|
+
type: HostBinding,
|
|
64
|
+
args: ['class.attention-level2']
|
|
65
|
+
}], isAttentionLevel3: [{
|
|
66
|
+
type: HostBinding,
|
|
67
|
+
args: ['class.attention-level3']
|
|
68
|
+
}], isAttentionLevel4: [{
|
|
69
|
+
type: HostBinding,
|
|
70
|
+
args: ['class.attention-level4']
|
|
71
|
+
}], destructive: [{
|
|
72
|
+
type: HostBinding,
|
|
73
|
+
args: ['class.destructive']
|
|
74
|
+
}], isButtonFloating: [{
|
|
75
|
+
type: HostBinding,
|
|
76
|
+
args: ['class.floating']
|
|
77
|
+
}], isIconOnly: [{
|
|
78
|
+
type: HostBinding,
|
|
79
|
+
args: ['class.icon-only']
|
|
80
|
+
}], isIconLeft: [{
|
|
81
|
+
type: HostBinding,
|
|
82
|
+
args: ['class.icon-left']
|
|
83
|
+
}], isIconRight: [{
|
|
84
|
+
type: HostBinding,
|
|
85
|
+
args: ['class.icon-right']
|
|
86
|
+
}], _cssClass: [{
|
|
87
|
+
type: HostBinding,
|
|
88
|
+
args: ['class']
|
|
89
|
+
}], attentionLevel: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], isDestructive: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], themeColor: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}], expand: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}], isFloating: [{
|
|
98
|
+
type: Input
|
|
99
|
+
}], size: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}], icon: [{
|
|
102
|
+
type: ContentChild,
|
|
103
|
+
args: [IconComponent]
|
|
104
|
+
}], iconElementRef: [{
|
|
105
|
+
type: ContentChild,
|
|
106
|
+
args: [IconComponent, { read: ElementRef }]
|
|
107
|
+
}] } });
|
|
108
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9idXR0b24vYnV0dG9uLmNvbXBvbmVudC50c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