@kirbydesign/designsystem 11.0.0 → 11.1.1
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/index.d.ts +42 -6
- package/accordion/index.d.ts.map +1 -0
- package/action-group/index.d.ts +43 -6
- package/action-group/index.d.ts.map +1 -0
- package/avatar/index.d.ts +28 -6
- package/avatar/index.d.ts.map +1 -0
- package/badge/index.d.ts +20 -6
- package/badge/index.d.ts.map +1 -0
- package/button/index.d.ts +43 -6
- package/button/index.d.ts.map +1 -0
- package/calendar/index.d.ts +137 -6
- package/calendar/index.d.ts.map +1 -0
- package/card/index.d.ts +72 -6
- package/card/index.d.ts.map +1 -0
- package/chart/index.d.ts +198 -4
- package/chart/index.d.ts.map +1 -0
- package/checkbox/index.d.ts +69 -6
- package/checkbox/index.d.ts.map +1 -0
- package/config/index.d.ts +40 -4
- package/config/index.d.ts.map +1 -0
- package/data-table/index.d.ts +30 -4
- package/data-table/index.d.ts.map +1 -0
- package/divider/index.d.ts +10 -6
- package/divider/index.d.ts.map +1 -0
- package/dropdown/index.d.ts +166 -6
- package/dropdown/index.d.ts.map +1 -0
- package/empty-state/index.d.ts +37 -6
- package/empty-state/index.d.ts.map +1 -0
- package/fab-sheet/index.d.ts +29 -6
- package/fab-sheet/index.d.ts.map +1 -0
- package/fesm2022/kirbydesign-designsystem-accordion.mjs +42 -22
- package/fesm2022/kirbydesign-designsystem-accordion.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-action-group.mjs +5 -7
- package/fesm2022/kirbydesign-designsystem-action-group.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-avatar.mjs +4 -4
- package/fesm2022/kirbydesign-designsystem-avatar.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-badge.mjs +4 -6
- package/fesm2022/kirbydesign-designsystem-badge.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-button.mjs +4 -5
- package/fesm2022/kirbydesign-designsystem-button.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-calendar.mjs +4 -6
- package/fesm2022/kirbydesign-designsystem-calendar.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-card.mjs +20 -21
- package/fesm2022/kirbydesign-designsystem-card.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-chart.mjs +478 -478
- package/fesm2022/kirbydesign-designsystem-chart.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-checkbox.mjs +6 -8
- package/fesm2022/kirbydesign-designsystem-checkbox.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-config.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-data-table.mjs +8 -8
- package/fesm2022/kirbydesign-designsystem-data-table.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-divider.mjs +4 -5
- package/fesm2022/kirbydesign-designsystem-divider.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-dropdown.mjs +27 -22
- package/fesm2022/kirbydesign-designsystem-dropdown.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-empty-state.mjs +10 -9
- package/fesm2022/kirbydesign-designsystem-empty-state.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-fab-sheet.mjs +5 -6
- package/fesm2022/kirbydesign-designsystem-fab-sheet.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-flag.mjs +5 -6
- package/fesm2022/kirbydesign-designsystem-flag.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-form-field.mjs +48 -41
- package/fesm2022/kirbydesign-designsystem-form-field.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-header.mjs +20 -20
- 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 +11 -10
- package/fesm2022/kirbydesign-designsystem-icon.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-item-group.mjs +4 -5
- package/fesm2022/kirbydesign-designsystem-item-group.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-item-sliding.mjs +4 -4
- package/fesm2022/kirbydesign-designsystem-item-sliding.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-item.mjs +12 -13
- 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-list.mjs +43 -46
- package/fesm2022/kirbydesign-designsystem-list.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-loading-overlay.mjs +8 -8
- package/fesm2022/kirbydesign-designsystem-loading-overlay.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-menu.mjs +8 -10
- package/fesm2022/kirbydesign-designsystem-menu.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-modal.mjs +643 -634
- package/fesm2022/kirbydesign-designsystem-modal.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-page.mjs +67 -54
- package/fesm2022/kirbydesign-designsystem-page.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-popover.mjs +5 -6
- package/fesm2022/kirbydesign-designsystem-popover.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-progress-circle.mjs +8 -9
- package/fesm2022/kirbydesign-designsystem-progress-circle.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-radio.mjs +16 -16
- package/fesm2022/kirbydesign-designsystem-radio.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-range.mjs +6 -8
- package/fesm2022/kirbydesign-designsystem-range.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-reorder-list.mjs +4 -4
- package/fesm2022/kirbydesign-designsystem-reorder-list.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-router-outlet.mjs +9 -10
- package/fesm2022/kirbydesign-designsystem-router-outlet.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-section-header.mjs +4 -5
- 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 +18 -18
- package/fesm2022/kirbydesign-designsystem-shared.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-slide-button.mjs +17 -70
- package/fesm2022/kirbydesign-designsystem-slide-button.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-slide.mjs +14 -14
- 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 +11 -11
- package/fesm2022/kirbydesign-designsystem-tab-navigation.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-tabs.mjs +14 -15
- package/fesm2022/kirbydesign-designsystem-tabs.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-testing-base.mjs +286 -286
- 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 +9 -10
- package/fesm2022/kirbydesign-designsystem-toggle-button.mjs.map +1 -1
- package/fesm2022/kirbydesign-designsystem-toggle.mjs +6 -8
- 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 +17 -18
- package/fesm2022/kirbydesign-designsystem.mjs.map +1 -1
- package/flag/index.d.ts +14 -6
- package/flag/index.d.ts.map +1 -0
- package/form-field/index.d.ts +230 -6
- package/form-field/index.d.ts.map +1 -0
- package/header/index.d.ts +70 -6
- package/header/index.d.ts.map +1 -0
- package/helpers/index.d.ts +94 -4
- package/helpers/index.d.ts.map +1 -0
- package/helpers/scss/index.d.ts +9 -6
- package/helpers/scss/index.d.ts.map +1 -0
- package/icon/index.d.ts +66 -4
- package/icon/index.d.ts.map +1 -0
- package/icons/svg/top-up.svg +1 -0
- package/index.d.ts +222 -6
- package/index.d.ts.map +1 -0
- package/item/index.d.ts +53 -6
- package/item/index.d.ts.map +1 -0
- package/item-group/index.d.ts +10 -6
- package/item-group/index.d.ts.map +1 -0
- package/item-sliding/index.d.ts +28 -6
- package/item-sliding/index.d.ts.map +1 -0
- package/kirby-app/index.d.ts +21 -6
- package/kirby-app/index.d.ts.map +1 -0
- package/list/index.d.ts +282 -4
- package/list/index.d.ts.map +1 -0
- package/loading-overlay/index.d.ts +26 -6
- package/loading-overlay/index.d.ts.map +1 -0
- package/menu/index.d.ts +71 -6
- package/menu/index.d.ts.map +1 -0
- package/modal/index.d.ts +492 -4
- package/modal/index.d.ts.map +1 -0
- package/package.json +17 -17
- package/page/index.d.ts +233 -4
- package/page/index.d.ts.map +1 -0
- package/popover/index.d.ts +40 -6
- package/popover/index.d.ts.map +1 -0
- package/progress-circle/index.d.ts +64 -6
- package/progress-circle/index.d.ts.map +1 -0
- package/radio/index.d.ts +100 -6
- package/radio/index.d.ts.map +1 -0
- package/range/index.d.ts +45 -6
- package/range/index.d.ts.map +1 -0
- package/reorder-list/index.d.ts +34 -6
- package/reorder-list/index.d.ts.map +1 -0
- package/router-outlet/index.d.ts +20 -6
- package/router-outlet/index.d.ts.map +1 -0
- package/section-header/index.d.ts +9 -6
- package/section-header/index.d.ts.map +1 -0
- package/shared/floating/index.d.ts +138 -4
- package/shared/floating/index.d.ts.map +1 -0
- package/shared/index.d.ts +150 -4
- package/shared/index.d.ts.map +1 -0
- package/shared/portal/index.d.ts +36 -4
- package/shared/portal/index.d.ts.map +1 -0
- package/slide/index.d.ts +66 -6
- package/slide/index.d.ts.map +1 -0
- package/slide-button/index.d.ts +35 -6
- package/slide-button/index.d.ts.map +1 -0
- package/spinner/index.d.ts +16 -6
- package/spinner/index.d.ts.map +1 -0
- package/tab-navigation/index.d.ts +58 -6
- package/tab-navigation/index.d.ts.map +1 -0
- package/tabs/index.d.ts +49 -6
- package/tabs/index.d.ts.map +1 -0
- package/testing/index.d.ts +62 -6
- package/testing/index.d.ts.map +1 -0
- package/testing-base/index.d.ts +816 -6
- package/testing-base/index.d.ts.map +1 -0
- package/testing-jasmine/index.d.ts +11 -6
- package/testing-jasmine/index.d.ts.map +1 -0
- package/testing-jest/index.d.ts +11 -6
- package/testing-jest/index.d.ts.map +1 -0
- package/toast/index.d.ts +34 -6
- package/toast/index.d.ts.map +1 -0
- package/toggle/index.d.ts +64 -6
- package/toggle/index.d.ts.map +1 -0
- package/toggle-button/index.d.ts +58 -6
- package/toggle-button/index.d.ts.map +1 -0
- package/types/index.d.ts +21 -6
- package/types/index.d.ts.map +1 -0
- package/accordion/accordion-item.component.d.ts +0 -22
- package/accordion/accordion-item.component.d.ts.map +0 -1
- package/accordion/accordion.directive.d.ts +0 -6
- package/accordion/accordion.directive.d.ts.map +0 -1
- package/accordion/accordion.module.d.ts +0 -10
- package/accordion/accordion.module.d.ts.map +0 -1
- package/accordion/kirbydesign-designsystem-accordion.d.ts.map +0 -1
- package/accordion/public_api.d.ts +0 -4
- package/accordion/public_api.d.ts.map +0 -1
- package/action-group/action-group.component.d.ts +0 -40
- package/action-group/action-group.component.d.ts.map +0 -1
- package/action-group/kirbydesign-designsystem-action-group.d.ts.map +0 -1
- package/action-group/public_api.d.ts +0 -2
- package/action-group/public_api.d.ts.map +0 -1
- package/avatar/avatar.component.d.ts +0 -25
- package/avatar/avatar.component.d.ts.map +0 -1
- package/avatar/kirbydesign-designsystem-avatar.d.ts.map +0 -1
- package/avatar/public_api.d.ts +0 -2
- package/avatar/public_api.d.ts.map +0 -1
- package/badge/badge.component.d.ts +0 -16
- package/badge/badge.component.d.ts.map +0 -1
- package/badge/kirbydesign-designsystem-badge.d.ts.map +0 -1
- package/badge/public_api.d.ts +0 -2
- package/badge/public_api.d.ts.map +0 -1
- package/button/button.component.d.ts +0 -39
- package/button/button.component.d.ts.map +0 -1
- package/button/kirbydesign-designsystem-button.d.ts.map +0 -1
- package/button/public_api.d.ts +0 -2
- package/button/public_api.d.ts.map +0 -1
- package/calendar/calendar.component.d.ts +0 -113
- package/calendar/calendar.component.d.ts.map +0 -1
- package/calendar/interfaces/calendar-day.d.ts +0 -18
- package/calendar/interfaces/calendar-day.d.ts.map +0 -1
- package/calendar/interfaces/calendar-year-navigator-config.d.ts +0 -5
- package/calendar/interfaces/calendar-year-navigator-config.d.ts.map +0 -1
- package/calendar/kirbydesign-designsystem-calendar.d.ts.map +0 -1
- package/calendar/public_api.d.ts +0 -3
- package/calendar/public_api.d.ts.map +0 -1
- package/card/card-as-button/card-as-button.directive.d.ts +0 -16
- package/card/card-as-button/card-as-button.directive.d.ts.map +0 -1
- package/card/card-flag-level.d.ts +0 -3
- package/card/card-flag-level.d.ts.map +0 -1
- package/card/card-footer/card-footer.component.d.ts +0 -7
- package/card/card-footer/card-footer.component.d.ts.map +0 -1
- package/card/card-header/card-header.component.d.ts +0 -13
- package/card/card-header/card-header.component.d.ts.map +0 -1
- package/card/card.component.d.ts +0 -27
- package/card/card.component.d.ts.map +0 -1
- package/card/card.module.d.ts +0 -13
- package/card/card.module.d.ts.map +0 -1
- package/card/kirbydesign-designsystem-card.d.ts.map +0 -1
- package/card/public_api.d.ts +0 -7
- package/card/public_api.d.ts.map +0 -1
- package/chart/chart/chart.component.d.ts +0 -8
- package/chart/chart/chart.component.d.ts.map +0 -1
- package/chart/chart/index.d.ts +0 -2
- package/chart/chart/index.d.ts.map +0 -1
- package/chart/chart-config/chart-bar-config/chart-bar-config.d.ts +0 -10
- package/chart/chart-config/chart-bar-config/chart-bar-config.d.ts.map +0 -1
- package/chart/chart-config/chart-base-config.d.ts +0 -7
- package/chart/chart-config/chart-base-config.d.ts.map +0 -1
- package/chart/chart-config/chart-stock-config/chart-stock-config.d.ts +0 -21
- package/chart/chart-config/chart-stock-config/chart-stock-config.d.ts.map +0 -1
- package/chart/chart-config/chart-stock-config/data-label-position/data-label-position.d.ts +0 -5
- package/chart/chart-config/chart-stock-config/data-label-position/data-label-position.d.ts.map +0 -1
- package/chart/chart-config/chart-stock-config/vertical-line-plugin/vertical-line-plugin.d.ts +0 -3
- package/chart/chart-config/chart-stock-config/vertical-line-plugin/vertical-line-plugin.d.ts.map +0 -1
- package/chart/chart-config/chart-stock-config/vertical-line-plugin/vertical-line-plugin.model.d.ts +0 -13
- package/chart/chart-config/chart-stock-config/vertical-line-plugin/vertical-line-plugin.model.d.ts.map +0 -1
- package/chart/charts.module.d.ts +0 -9
- package/chart/charts.module.d.ts.map +0 -1
- package/chart/kirbydesign-designsystem-chart.d.ts.map +0 -1
- package/chart/public_api.d.ts +0 -7
- package/chart/public_api.d.ts.map +0 -1
- package/chart/shared/base-chart/base-chart.component.d.ts +0 -35
- package/chart/shared/base-chart/base-chart.component.d.ts.map +0 -1
- package/chart/shared/base-chart/index.d.ts +0 -2
- package/chart/shared/base-chart/index.d.ts.map +0 -1
- package/chart/shared/chart-config-service/chart-config.service.d.ts +0 -31
- package/chart/shared/chart-config-service/chart-config.service.d.ts.map +0 -1
- package/chart/shared/chart-config-service/configs/annotations.config.d.ts +0 -3
- package/chart/shared/chart-config-service/configs/annotations.config.d.ts.map +0 -1
- package/chart/shared/chart-config-service/configs/global-defaults.config.d.ts +0 -49
- package/chart/shared/chart-config-service/configs/global-defaults.config.d.ts.map +0 -1
- package/chart/shared/chart-config-service/configs/interaction-functions-extensions.config.d.ts +0 -5
- package/chart/shared/chart-config-service/configs/interaction-functions-extensions.config.d.ts.map +0 -1
- package/chart/shared/chart-config-service/configs/type.config.d.ts +0 -3
- package/chart/shared/chart-config-service/configs/type.config.d.ts.map +0 -1
- package/chart/shared/chart-config-service/index.d.ts +0 -2
- package/chart/shared/chart-config-service/index.d.ts.map +0 -1
- package/chart/shared/chart-js-service/annotations.delegate.d.ts +0 -17
- package/chart/shared/chart-js-service/annotations.delegate.d.ts.map +0 -1
- package/chart/shared/chart-js-service/chart-js.service.d.ts +0 -46
- package/chart/shared/chart-js-service/chart-js.service.d.ts.map +0 -1
- package/chart/shared/chart-js-service/chartjs-plugin-marker/chartjs-plugin-marker.d.ts +0 -15
- package/chart/shared/chart-js-service/chartjs-plugin-marker/chartjs-plugin-marker.d.ts.map +0 -1
- package/chart/shared/chart-js-service/configured-chart-js.d.ts +0 -4
- package/chart/shared/chart-js-service/configured-chart-js.d.ts.map +0 -1
- package/chart/shared/chart-js-service/index.d.ts +0 -3
- package/chart/shared/chart-js-service/index.d.ts.map +0 -1
- package/chart/shared/chart-js-service/test-utils.d.ts +0 -5
- package/chart/shared/chart-js-service/test-utils.d.ts.map +0 -1
- package/chart/shared/charts.types.d.ts +0 -27
- package/chart/shared/charts.types.d.ts.map +0 -1
- package/chart/shared/index.d.ts +0 -5
- package/chart/shared/index.d.ts.map +0 -1
- package/chart/stock-chart/index.d.ts +0 -2
- package/chart/stock-chart/index.d.ts.map +0 -1
- package/chart/stock-chart/stock-chart-js.service.d.ts +0 -38
- package/chart/stock-chart/stock-chart-js.service.d.ts.map +0 -1
- package/chart/stock-chart/stock-chart.component.d.ts +0 -10
- package/chart/stock-chart/stock-chart.component.d.ts.map +0 -1
- package/checkbox/checkbox.component.d.ts +0 -66
- package/checkbox/checkbox.component.d.ts.map +0 -1
- package/checkbox/kirbydesign-designsystem-checkbox.d.ts.map +0 -1
- package/checkbox/public_api.d.ts +0 -2
- package/checkbox/public_api.d.ts.map +0 -1
- package/config/kirbydesign-designsystem-config.d.ts.map +0 -1
- package/config/provide-kirby.d.ts +0 -38
- package/config/provide-kirby.d.ts.map +0 -1
- package/config/public_api.d.ts +0 -2
- package/config/public_api.d.ts.map +0 -1
- package/data-table/data-table.module.d.ts +0 -13
- package/data-table/data-table.module.d.ts.map +0 -1
- package/data-table/kirbydesign-designsystem-data-table.d.ts.map +0 -1
- package/data-table/public_api.d.ts +0 -3
- package/data-table/public_api.d.ts.map +0 -1
- package/data-table/sortable/sortable.component.d.ts +0 -18
- package/data-table/sortable/sortable.component.d.ts.map +0 -1
- package/divider/divider.component.d.ts +0 -7
- package/divider/divider.component.d.ts.map +0 -1
- package/divider/kirbydesign-designsystem-divider.d.ts.map +0 -1
- package/divider/public_api.d.ts +0 -2
- package/divider/public_api.d.ts.map +0 -1
- package/dropdown/dropdown.component.d.ts +0 -131
- package/dropdown/dropdown.component.d.ts.map +0 -1
- package/dropdown/dropdown.module.d.ts +0 -16
- package/dropdown/dropdown.module.d.ts.map +0 -1
- package/dropdown/dropdown.types.d.ts +0 -10
- package/dropdown/dropdown.types.d.ts.map +0 -1
- package/dropdown/keyboard-handler.service.d.ts +0 -7
- package/dropdown/keyboard-handler.service.d.ts.map +0 -1
- package/dropdown/kirbydesign-designsystem-dropdown.d.ts.map +0 -1
- package/dropdown/public_api.d.ts +0 -6
- package/dropdown/public_api.d.ts.map +0 -1
- package/empty-state/empty-state.component.d.ts +0 -24
- package/empty-state/empty-state.component.d.ts.map +0 -1
- package/empty-state/empty-state.module.d.ts +0 -11
- package/empty-state/empty-state.module.d.ts.map +0 -1
- package/empty-state/kirbydesign-designsystem-empty-state.d.ts.map +0 -1
- package/empty-state/public_api.d.ts +0 -3
- package/empty-state/public_api.d.ts.map +0 -1
- package/fab-sheet/fab-sheet.component.d.ts +0 -26
- package/fab-sheet/fab-sheet.component.d.ts.map +0 -1
- package/fab-sheet/kirbydesign-designsystem-fab-sheet.d.ts.map +0 -1
- package/fab-sheet/public_api.d.ts +0 -2
- package/fab-sheet/public_api.d.ts.map +0 -1
- package/flag/flag.component.d.ts +0 -10
- package/flag/flag.component.d.ts.map +0 -1
- package/flag/kirbydesign-designsystem-flag.d.ts.map +0 -1
- package/flag/public_api.d.ts +0 -2
- package/flag/public_api.d.ts.map +0 -1
- package/form-field/directives/affix/affix.directive.d.ts +0 -10
- package/form-field/directives/affix/affix.directive.d.ts.map +0 -1
- package/form-field/directives/date/date-input.directive.d.ts +0 -45
- package/form-field/directives/date/date-input.directive.d.ts.map +0 -1
- package/form-field/directives/decimal-mask/decimal-mask.directive.d.ts +0 -41
- package/form-field/directives/decimal-mask/decimal-mask.directive.d.ts.map +0 -1
- package/form-field/form-field-message/form-field-message.component.d.ts +0 -8
- package/form-field/form-field-message/form-field-message.component.d.ts.map +0 -1
- package/form-field/form-field.component.d.ts +0 -58
- package/form-field/form-field.component.d.ts.map +0 -1
- package/form-field/form-field.module.d.ts +0 -14
- package/form-field/form-field.module.d.ts.map +0 -1
- package/form-field/input/input.component.d.ts +0 -39
- package/form-field/input/input.component.d.ts.map +0 -1
- package/form-field/input-counter/input-counter.component.d.ts +0 -16
- package/form-field/input-counter/input-counter.component.d.ts.map +0 -1
- package/form-field/kirbydesign-designsystem-form-field.d.ts.map +0 -1
- package/form-field/public_api.d.ts +0 -10
- package/form-field/public_api.d.ts.map +0 -1
- package/form-field/textarea/textarea.component.d.ts +0 -28
- package/form-field/textarea/textarea.component.d.ts.map +0 -1
- package/header/header.component.d.ts +0 -59
- package/header/header.component.d.ts.map +0 -1
- package/header/header.module.d.ts +0 -10
- package/header/header.module.d.ts.map +0 -1
- package/header/kirbydesign-designsystem-header.d.ts.map +0 -1
- package/header/public_api.d.ts +0 -3
- package/header/public_api.d.ts.map +0 -1
- package/helpers/chart-config-has-type.d.ts +0 -3
- package/helpers/chart-config-has-type.d.ts.map +0 -1
- package/helpers/color-helper.d.ts +0 -2
- package/helpers/color-helper.d.ts.map +0 -1
- package/helpers/content-mutation-observer.d.ts +0 -9
- package/helpers/content-mutation-observer.d.ts.map +0 -1
- package/helpers/deep-copy.d.ts +0 -2
- package/helpers/deep-copy.d.ts.map +0 -1
- package/helpers/design-token-helper.d.ts +0 -2
- package/helpers/design-token-helper.d.ts.map +0 -1
- package/helpers/element-ancestor-utils.d.ts +0 -3
- package/helpers/element-ancestor-utils.d.ts.map +0 -1
- package/helpers/ionic-element-part-helper.d.ts +0 -10
- package/helpers/ionic-element-part-helper.d.ts.map +0 -1
- package/helpers/kirby-animation.d.ts +0 -20
- package/helpers/kirby-animation.d.ts.map +0 -1
- package/helpers/kirbydesign-designsystem-helpers.d.ts.map +0 -1
- package/helpers/line-clamp-helper.d.ts +0 -12
- package/helpers/line-clamp-helper.d.ts.map +0 -1
- package/helpers/merge-deep.d.ts +0 -17
- package/helpers/merge-deep.d.ts.map +0 -1
- package/helpers/platform.service.d.ts +0 -11
- package/helpers/platform.service.d.ts.map +0 -1
- package/helpers/public_api.d.ts +0 -15
- package/helpers/public_api.d.ts.map +0 -1
- package/helpers/scss/kirbydesign-designsystem-helpers-scss.d.ts.map +0 -1
- package/helpers/scss/public_api.d.ts +0 -2
- package/helpers/scss/public_api.d.ts.map +0 -1
- package/helpers/scss/scss-helper.d.ts +0 -7
- package/helpers/scss/scss-helper.d.ts.map +0 -1
- package/helpers/string-helper.d.ts +0 -2
- package/helpers/string-helper.d.ts.map +0 -1
- package/helpers/theme-color.type.d.ts +0 -2
- package/helpers/theme-color.type.d.ts.map +0 -1
- package/helpers/unique-id-generator.helper.d.ts +0 -9
- package/helpers/unique-id-generator.helper.d.ts.map +0 -1
- package/icon/icon-registry.service.d.ts +0 -21
- package/icon/icon-registry.service.d.ts.map +0 -1
- package/icon/icon-settings.d.ts +0 -8
- package/icon/icon-settings.d.ts.map +0 -1
- package/icon/icon.component.d.ts +0 -29
- package/icon/icon.component.d.ts.map +0 -1
- package/icon/icon.module.d.ts +0 -10
- package/icon/icon.module.d.ts.map +0 -1
- package/icon/kirby-icon-settings.d.ts +0 -4
- package/icon/kirby-icon-settings.d.ts.map +0 -1
- package/icon/kirbydesign-designsystem-icon.d.ts.map +0 -1
- package/icon/public_api.d.ts +0 -6
- package/icon/public_api.d.ts.map +0 -1
- package/item/item.component.d.ts +0 -34
- package/item/item.component.d.ts.map +0 -1
- package/item/item.module.d.ts +0 -12
- package/item/item.module.d.ts.map +0 -1
- package/item/kirbydesign-designsystem-item.d.ts.map +0 -1
- package/item/label/label.component.d.ts +0 -8
- package/item/label/label.component.d.ts.map +0 -1
- package/item/public_api.d.ts +0 -4
- package/item/public_api.d.ts.map +0 -1
- package/item-group/item-group.component.d.ts +0 -7
- package/item-group/item-group.component.d.ts.map +0 -1
- package/item-group/kirbydesign-designsystem-item-group.d.ts.map +0 -1
- package/item-group/public_api.d.ts +0 -2
- package/item-group/public_api.d.ts.map +0 -1
- package/item-sliding/item-sliding.component.d.ts +0 -14
- package/item-sliding/item-sliding.component.d.ts.map +0 -1
- package/item-sliding/item-sliding.types.d.ts +0 -11
- package/item-sliding/item-sliding.types.d.ts.map +0 -1
- package/item-sliding/kirbydesign-designsystem-item-sliding.d.ts.map +0 -1
- package/item-sliding/public_api.d.ts +0 -3
- package/item-sliding/public_api.d.ts.map +0 -1
- package/kirby-app/kirby-app.component.d.ts +0 -10
- package/kirby-app/kirby-app.component.d.ts.map +0 -1
- package/kirby-app/kirby-app.module.d.ts +0 -10
- package/kirby-app/kirby-app.module.d.ts.map +0 -1
- package/kirby-app/kirbydesign-designsystem-kirby-app.d.ts.map +0 -1
- package/kirby-app/public_api.d.ts +0 -3
- package/kirby-app/public_api.d.ts.map +0 -1
- package/kirbydesign-designsystem.d.ts.map +0 -1
- package/lib/components/index.d.ts +0 -3
- package/lib/components/index.d.ts.map +0 -1
- package/lib/components/segmented-control/segment-item.d.ts +0 -14
- package/lib/components/segmented-control/segment-item.d.ts.map +0 -1
- package/lib/components/segmented-control/segmented-control.component.d.ts +0 -86
- package/lib/components/segmented-control/segmented-control.component.d.ts.map +0 -1
- package/lib/directives/index.d.ts +0 -3
- package/lib/directives/index.d.ts.map +0 -1
- package/lib/directives/key-handler/key-handler.directive.d.ts +0 -10
- package/lib/directives/key-handler/key-handler.directive.d.ts.map +0 -1
- package/lib/directives/modal-router-link/modal-router-link.directive.d.ts +0 -16
- package/lib/directives/modal-router-link/modal-router-link.directive.d.ts.map +0 -1
- package/lib/index.d.ts +0 -49
- package/lib/index.d.ts.map +0 -1
- package/lib/kirby.module.d.ts +0 -57
- package/lib/kirby.module.d.ts.map +0 -1
- package/list/directives/index.d.ts +0 -4
- package/list/directives/index.d.ts.map +0 -1
- package/list/directives/infinite-scroll.directive.d.ts +0 -50
- package/list/directives/infinite-scroll.directive.d.ts.map +0 -1
- package/list/directives/list-item-color.directive.d.ts +0 -13
- package/list/directives/list-item-color.directive.d.ts.map +0 -1
- package/list/directives/scroll.model.d.ts +0 -6
- package/list/directives/scroll.model.d.ts.map +0 -1
- package/list/helpers/index.d.ts +0 -2
- package/list/helpers/index.d.ts.map +0 -1
- package/list/helpers/list-helper.d.ts +0 -22
- package/list/helpers/list-helper.d.ts.map +0 -1
- package/list/kirbydesign-designsystem-list.d.ts.map +0 -1
- package/list/list-experimental/index.d.ts +0 -2
- package/list/list-experimental/index.d.ts.map +0 -1
- package/list/list-experimental/list-experimental.component.d.ts +0 -9
- package/list/list-experimental/list-experimental.component.d.ts.map +0 -1
- package/list/list-header/index.d.ts +0 -2
- package/list/list-header/index.d.ts.map +0 -1
- package/list/list-header/list-header.component.d.ts +0 -7
- package/list/list-header/list-header.component.d.ts.map +0 -1
- package/list/list-item/index.d.ts +0 -2
- package/list/list-item/index.d.ts.map +0 -1
- package/list/list-item/list-item.component.d.ts +0 -37
- package/list/list-item/list-item.component.d.ts.map +0 -1
- package/list/list-section-header/index.d.ts +0 -2
- package/list/list-section-header/index.d.ts.map +0 -1
- package/list/list-section-header/list-section-header.component.d.ts +0 -7
- package/list/list-section-header/list-section-header.component.d.ts.map +0 -1
- package/list/list-swipe-action.d.ts +0 -2
- package/list/list-swipe-action.d.ts.map +0 -1
- package/list/list-swipe-action.type.d.ts +0 -12
- package/list/list-swipe-action.type.d.ts.map +0 -1
- package/list/list.component.d.ts +0 -108
- package/list/list.component.d.ts.map +0 -1
- package/list/list.directive.d.ts +0 -18
- package/list/list.directive.d.ts.map +0 -1
- package/list/list.event.d.ts +0 -8
- package/list/list.event.d.ts.map +0 -1
- package/list/list.module.d.ts +0 -19
- package/list/list.module.d.ts.map +0 -1
- package/list/public_api.d.ts +0 -12
- package/list/public_api.d.ts.map +0 -1
- package/loading-overlay/kirbydesign-designsystem-loading-overlay.d.ts.map +0 -1
- package/loading-overlay/loading-overlay.component.d.ts +0 -9
- package/loading-overlay/loading-overlay.component.d.ts.map +0 -1
- package/loading-overlay/loading-overlay.service.d.ts +0 -15
- package/loading-overlay/loading-overlay.service.d.ts.map +0 -1
- package/loading-overlay/public_api.d.ts +0 -3
- package/loading-overlay/public_api.d.ts.map +0 -1
- package/menu/kirbydesign-designsystem-menu.d.ts.map +0 -1
- package/menu/menu.component.d.ts +0 -68
- package/menu/menu.component.d.ts.map +0 -1
- package/menu/public_api.d.ts +0 -2
- package/menu/public_api.d.ts.map +0 -1
- package/modal/kirbydesign-designsystem-modal.d.ts.map +0 -1
- package/modal/modal/action-sheet/action-sheet.component.d.ts +0 -18
- package/modal/modal/action-sheet/action-sheet.component.d.ts.map +0 -1
- package/modal/modal/action-sheet/config/action-sheet-config.d.ts +0 -8
- package/modal/modal/action-sheet/config/action-sheet-config.d.ts.map +0 -1
- package/modal/modal/action-sheet/config/action-sheet-item.d.ts +0 -5
- package/modal/modal/action-sheet/config/action-sheet-item.d.ts.map +0 -1
- package/modal/modal/action-sheet/index.d.ts +0 -4
- package/modal/modal/action-sheet/index.d.ts.map +0 -1
- package/modal/modal/alert/alert.component.d.ts +0 -29
- package/modal/modal/alert/alert.component.d.ts.map +0 -1
- package/modal/modal/alert/config/alert-config.d.ts +0 -15
- package/modal/modal/alert/config/alert-config.d.ts.map +0 -1
- package/modal/modal/alert/index.d.ts +0 -3
- package/modal/modal/alert/index.d.ts.map +0 -1
- package/modal/modal/footer/modal-footer.component.d.ts +0 -13
- package/modal/modal/footer/modal-footer.component.d.ts.map +0 -1
- package/modal/modal/index.d.ts +0 -7
- package/modal/modal/index.d.ts.map +0 -1
- package/modal/modal/modal-component/modal.component.d.ts +0 -53
- package/modal/modal/modal-component/modal.component.d.ts.map +0 -1
- package/modal/modal/services/action-sheet.helper.d.ts +0 -12
- package/modal/modal/services/action-sheet.helper.d.ts.map +0 -1
- package/modal/modal/services/alert.helper.d.ts +0 -15
- package/modal/modal/services/alert.helper.d.ts.map +0 -1
- package/modal/modal/services/can-dismiss-modal-guard.d.ts +0 -3
- package/modal/modal/services/can-dismiss-modal-guard.d.ts.map +0 -1
- package/modal/modal/services/can-dismiss.helper.d.ts +0 -13
- package/modal/modal/services/can-dismiss.helper.d.ts.map +0 -1
- package/modal/modal/services/index.d.ts +0 -7
- package/modal/modal/services/index.d.ts.map +0 -1
- package/modal/modal/services/modal-animation-builder.service.d.ts +0 -28
- package/modal/modal/services/modal-animation-builder.service.d.ts.map +0 -1
- package/modal/modal/services/modal.controller.d.ts +0 -39
- package/modal/modal/services/modal.controller.d.ts.map +0 -1
- package/modal/modal/services/modal.helper.d.ts +0 -21
- package/modal/modal/services/modal.helper.d.ts.map +0 -1
- package/modal/modal-navigation.service.d.ts +0 -39
- package/modal/modal-navigation.service.d.ts.map +0 -1
- package/modal/modal-wrapper/compact/index.d.ts +0 -2
- package/modal/modal-wrapper/compact/index.d.ts.map +0 -1
- package/modal/modal-wrapper/compact/modal-compact-wrapper.component.d.ts +0 -36
- package/modal/modal-wrapper/compact/modal-compact-wrapper.component.d.ts.map +0 -1
- package/modal/modal-wrapper/config/drawer-supplementary-action.d.ts +0 -5
- package/modal/modal-wrapper/config/drawer-supplementary-action.d.ts.map +0 -1
- package/modal/modal-wrapper/config/index.d.ts +0 -4
- package/modal/modal-wrapper/config/index.d.ts.map +0 -1
- package/modal/modal-wrapper/config/modal-config.d.ts +0 -42
- package/modal/modal-wrapper/config/modal-config.d.ts.map +0 -1
- package/modal/modal-wrapper/config/modal-config.helper.d.ts +0 -3
- package/modal/modal-wrapper/config/modal-config.helper.d.ts.map +0 -1
- package/modal/modal-wrapper/index.d.ts +0 -4
- package/modal/modal-wrapper/index.d.ts.map +0 -1
- package/modal/modal-wrapper/modal-elements-mover.delegate.d.ts +0 -15
- package/modal/modal-wrapper/modal-elements-mover.delegate.d.ts.map +0 -1
- package/modal/modal-wrapper/modal-wrapper.component.d.ts +0 -112
- package/modal/modal-wrapper/modal-wrapper.component.d.ts.map +0 -1
- package/modal/modal.interfaces.d.ts +0 -58
- package/modal/modal.interfaces.d.ts.map +0 -1
- package/modal/public_api.d.ts +0 -5
- package/modal/public_api.d.ts.map +0 -1
- package/page/kirbydesign-designsystem-page.d.ts.map +0 -1
- package/page/page-footer/page-footer.component.d.ts +0 -15
- package/page/page-footer/page-footer.component.d.ts.map +0 -1
- package/page/page.component.d.ts +0 -207
- package/page/page.component.d.ts.map +0 -1
- package/page/page.module.d.ts +0 -14
- package/page/page.module.d.ts.map +0 -1
- package/page/public_api.d.ts +0 -4
- package/page/public_api.d.ts.map +0 -1
- package/popover/kirbydesign-designsystem-popover.d.ts.map +0 -1
- package/popover/popover.component.d.ts +0 -37
- package/popover/popover.component.d.ts.map +0 -1
- package/popover/public_api.d.ts +0 -2
- package/popover/public_api.d.ts.map +0 -1
- package/progress-circle/kirbydesign-designsystem-progress-circle.d.ts.map +0 -1
- package/progress-circle/progress-circle-ring.component.d.ts +0 -20
- package/progress-circle/progress-circle-ring.component.d.ts.map +0 -1
- package/progress-circle/progress-circle.component.d.ts +0 -43
- package/progress-circle/progress-circle.component.d.ts.map +0 -1
- package/progress-circle/public_api.d.ts +0 -3
- package/progress-circle/public_api.d.ts.map +0 -1
- package/public-api.d.ts +0 -2
- package/public-api.d.ts.map +0 -1
- package/radio/kirbydesign-designsystem-radio.d.ts.map +0 -1
- package/radio/public_api.d.ts +0 -4
- package/radio/public_api.d.ts.map +0 -1
- package/radio/radio-group/radio-group.component.d.ts +0 -65
- package/radio/radio-group/radio-group.component.d.ts.map +0 -1
- package/radio/radio-module.d.ts +0 -11
- package/radio/radio-module.d.ts.map +0 -1
- package/radio/radio.component.d.ts +0 -26
- package/radio/radio.component.d.ts.map +0 -1
- package/range/kirbydesign-designsystem-range.d.ts.map +0 -1
- package/range/public_api.d.ts +0 -2
- package/range/public_api.d.ts.map +0 -1
- package/range/range.component.d.ts +0 -42
- package/range/range.component.d.ts.map +0 -1
- package/reorder-list/kirbydesign-designsystem-reorder-list.d.ts.map +0 -1
- package/reorder-list/public_api.d.ts +0 -3
- package/reorder-list/public_api.d.ts.map +0 -1
- package/reorder-list/reorder-event.d.ts +0 -8
- package/reorder-list/reorder-event.d.ts.map +0 -1
- package/reorder-list/reorder-list.component.d.ts +0 -24
- package/reorder-list/reorder-list.component.d.ts.map +0 -1
- package/router-outlet/kirbydesign-designsystem-router-outlet.d.ts.map +0 -1
- package/router-outlet/public_api.d.ts +0 -4
- package/router-outlet/public_api.d.ts.map +0 -1
- package/router-outlet/router-outlet.component.d.ts +0 -8
- package/router-outlet/router-outlet.component.d.ts.map +0 -1
- package/router-outlet/router-outlet.module.d.ts +0 -10
- package/router-outlet/router-outlet.module.d.ts.map +0 -1
- package/section-header/kirbydesign-designsystem-section-header.d.ts.map +0 -1
- package/section-header/public_api.d.ts +0 -2
- package/section-header/public_api.d.ts.map +0 -1
- package/section-header/section-header.component.d.ts +0 -6
- package/section-header/section-header.component.d.ts.map +0 -1
- package/shared/component-configuration.d.ts +0 -6
- package/shared/component-configuration.d.ts.map +0 -1
- package/shared/component-loader.directive.d.ts +0 -16
- package/shared/component-loader.directive.d.ts.map +0 -1
- package/shared/controls/label-helpers.d.ts +0 -17
- package/shared/controls/label-helpers.d.ts.map +0 -1
- package/shared/dynamic-component.d.ts +0 -4
- package/shared/dynamic-component.d.ts.map +0 -1
- package/shared/fit-heading/fit-heading.directive.d.ts +0 -29
- package/shared/fit-heading/fit-heading.directive.d.ts.map +0 -1
- package/shared/fit-heading/index.d.ts +0 -2
- package/shared/fit-heading/index.d.ts.map +0 -1
- package/shared/floating/floating.directive.d.ts +0 -136
- package/shared/floating/floating.directive.d.ts.map +0 -1
- package/shared/floating/kirbydesign-designsystem-shared-floating.d.ts.map +0 -1
- package/shared/floating/public_api.d.ts +0 -2
- package/shared/floating/public_api.d.ts.map +0 -1
- package/shared/kirbydesign-designsystem-shared.d.ts.map +0 -1
- package/shared/portal/kirbydesign-designsystem-shared-portal.d.ts.map +0 -1
- package/shared/portal/portal.directive.d.ts +0 -35
- package/shared/portal/portal.directive.d.ts.map +0 -1
- package/shared/portal/public_api.d.ts +0 -2
- package/shared/portal/public_api.d.ts.map +0 -1
- package/shared/public_api.d.ts +0 -10
- package/shared/public_api.d.ts.map +0 -1
- package/shared/resize-observer/resize-observer.factory.d.ts +0 -11
- package/shared/resize-observer/resize-observer.factory.d.ts.map +0 -1
- package/shared/resize-observer/resize-observer.service.d.ts +0 -16
- package/shared/resize-observer/resize-observer.service.d.ts.map +0 -1
- package/shared/theme-color/theme-color.directive.d.ts +0 -36
- package/shared/theme-color/theme-color.directive.d.ts.map +0 -1
- package/shared/translation/translation.interface.d.ts +0 -13
- package/shared/translation/translation.interface.d.ts.map +0 -1
- package/shared/translation/translation.service.d.ts +0 -13
- package/shared/translation/translation.service.d.ts.map +0 -1
- package/shared/translation/translations/da.d.ts +0 -3
- package/shared/translation/translations/da.d.ts.map +0 -1
- package/shared/translation/translations/de.d.ts +0 -3
- package/shared/translation/translations/de.d.ts.map +0 -1
- package/shared/translation/translations/en.d.ts +0 -3
- package/shared/translation/translations/en.d.ts.map +0 -1
- package/slide/kirbydesign-designsystem-slide.d.ts.map +0 -1
- package/slide/public_api.d.ts +0 -5
- package/slide/public_api.d.ts.map +0 -1
- package/slide/slide-stretch-height.directive.d.ts +0 -10
- package/slide/slide-stretch-height.directive.d.ts.map +0 -1
- package/slide/slide.directive.d.ts +0 -6
- package/slide/slide.directive.d.ts.map +0 -1
- package/slide/slide.module.d.ts +0 -13
- package/slide/slide.module.d.ts.map +0 -1
- package/slide/slides.component.d.ts +0 -42
- package/slide/slides.component.d.ts.map +0 -1
- package/slide-button/kirbydesign-designsystem-slide-button.d.ts.map +0 -1
- package/slide-button/public_api.d.ts +0 -2
- package/slide-button/public_api.d.ts.map +0 -1
- package/slide-button/slide-button.component.d.ts +0 -32
- package/slide-button/slide-button.component.d.ts.map +0 -1
- package/spinner/kirbydesign-designsystem-spinner.d.ts.map +0 -1
- package/spinner/public_api.d.ts +0 -3
- package/spinner/public_api.d.ts.map +0 -1
- package/spinner/spinner.component.d.ts +0 -6
- package/spinner/spinner.component.d.ts.map +0 -1
- package/spinner/spinner.module.d.ts +0 -9
- package/spinner/spinner.module.d.ts.map +0 -1
- package/tab-navigation/kirbydesign-designsystem-tab-navigation.d.ts.map +0 -1
- package/tab-navigation/public_api.d.ts +0 -4
- package/tab-navigation/public_api.d.ts.map +0 -1
- package/tab-navigation/tab-navigation/tab-navigation.component.d.ts +0 -36
- package/tab-navigation/tab-navigation/tab-navigation.component.d.ts.map +0 -1
- package/tab-navigation/tab-navigation-item/tab-navigation-item.component.d.ts +0 -14
- package/tab-navigation/tab-navigation-item/tab-navigation-item.component.d.ts.map +0 -1
- package/tab-navigation/tab-navigation.module.d.ts +0 -10
- package/tab-navigation/tab-navigation.module.d.ts.map +0 -1
- package/tabs/kirbydesign-designsystem-tabs.d.ts.map +0 -1
- package/tabs/public_api.d.ts +0 -6
- package/tabs/public_api.d.ts.map +0 -1
- package/tabs/tab-button/tab-button.component.d.ts +0 -12
- package/tabs/tab-button/tab-button.component.d.ts.map +0 -1
- package/tabs/tab-button/tab-button.events.d.ts +0 -2
- package/tabs/tab-button/tab-button.events.d.ts.map +0 -1
- package/tabs/tabs.component.d.ts +0 -15
- package/tabs/tabs.component.d.ts.map +0 -1
- package/tabs/tabs.module.d.ts +0 -12
- package/tabs/tabs.module.d.ts.map +0 -1
- package/tabs/tabs.service.d.ts +0 -12
- package/tabs/tabs.service.d.ts.map +0 -1
- package/testing/element-css-custom-matchers.d.ts +0 -4
- package/testing/element-css-custom-matchers.d.ts.map +0 -1
- package/testing/kirbydesign-designsystem-testing.d.ts.map +0 -1
- package/testing/public_api.d.ts +0 -3
- package/testing/public_api.d.ts.map +0 -1
- package/testing/test-helper.d.ts +0 -55
- package/testing/test-helper.d.ts.map +0 -1
- package/testing-base/kirbydesign-designsystem-testing-base.d.ts.map +0 -1
- package/testing-base/lib/components/index.d.ts +0 -64
- package/testing-base/lib/components/index.d.ts.map +0 -1
- package/testing-base/lib/components/mock.accordion-item.component.d.ts +0 -10
- package/testing-base/lib/components/mock.accordion-item.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.action-group.component.d.ts +0 -9
- package/testing-base/lib/components/mock.action-group.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.action-sheet.component.d.ts +0 -16
- package/testing-base/lib/components/mock.action-sheet.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.alert.component.d.ts +0 -15
- package/testing-base/lib/components/mock.alert.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.avatar.component.d.ts +0 -16
- package/testing-base/lib/components/mock.avatar.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.badge.component.d.ts +0 -8
- package/testing-base/lib/components/mock.badge.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.base-chart.component.d.ts +0 -16
- package/testing-base/lib/components/mock.base-chart.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.button.component.d.ts +0 -15
- package/testing-base/lib/components/mock.button.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.calendar.component.d.ts +0 -33
- package/testing-base/lib/components/mock.calendar.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.card-footer.component.d.ts +0 -7
- package/testing-base/lib/components/mock.card-footer.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.card-header.component.d.ts +0 -12
- package/testing-base/lib/components/mock.card-header.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.card.component.d.ts +0 -14
- package/testing-base/lib/components/mock.card.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.chart.component.d.ts +0 -9
- package/testing-base/lib/components/mock.chart.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.checkbox.component.d.ts +0 -14
- package/testing-base/lib/components/mock.checkbox.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.divider.component.d.ts +0 -7
- package/testing-base/lib/components/mock.divider.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.dropdown.component.d.ts +0 -22
- package/testing-base/lib/components/mock.dropdown.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.empty-state.component.d.ts +0 -9
- package/testing-base/lib/components/mock.empty-state.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.fab-sheet.component.d.ts +0 -8
- package/testing-base/lib/components/mock.fab-sheet.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.flag.component.d.ts +0 -8
- package/testing-base/lib/components/mock.flag.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.form-field-message.component.d.ts +0 -8
- package/testing-base/lib/components/mock.form-field-message.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.form-field.component.d.ts +0 -9
- package/testing-base/lib/components/mock.form-field.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.header.component.d.ts +0 -22
- package/testing-base/lib/components/mock.header.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.icon.component.d.ts +0 -9
- package/testing-base/lib/components/mock.icon.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.input-counter.component.d.ts +0 -8
- package/testing-base/lib/components/mock.input-counter.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.input.component.d.ts +0 -16
- package/testing-base/lib/components/mock.input.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.item-group.component.d.ts +0 -6
- package/testing-base/lib/components/mock.item-group.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.item-sliding.component.d.ts +0 -9
- package/testing-base/lib/components/mock.item-sliding.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.item.component.d.ts +0 -13
- package/testing-base/lib/components/mock.item.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.kirby-app.component.d.ts +0 -6
- package/testing-base/lib/components/mock.kirby-app.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.label.component.d.ts +0 -7
- package/testing-base/lib/components/mock.label.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.list-experimental.component.d.ts +0 -6
- package/testing-base/lib/components/mock.list-experimental.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.list-header.component.d.ts +0 -6
- package/testing-base/lib/components/mock.list-header.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.list-item.component.d.ts +0 -17
- package/testing-base/lib/components/mock.list-item.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.list-section-header.component.d.ts +0 -7
- package/testing-base/lib/components/mock.list-section-header.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.list.component.d.ts +0 -24
- package/testing-base/lib/components/mock.list.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.loading-overlay.component.d.ts +0 -9
- package/testing-base/lib/components/mock.loading-overlay.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.menu.component.d.ts +0 -21
- package/testing-base/lib/components/mock.menu.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.modal-compact-wrapper.component.d.ts +0 -8
- package/testing-base/lib/components/mock.modal-compact-wrapper.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.modal-footer.component.d.ts +0 -8
- package/testing-base/lib/components/mock.modal-footer.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.modal-wrapper.component.d.ts +0 -10
- package/testing-base/lib/components/mock.modal-wrapper.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.page-footer.component.d.ts +0 -7
- package/testing-base/lib/components/mock.page-footer.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.page.component.d.ts +0 -70
- package/testing-base/lib/components/mock.page.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.popover.component.d.ts +0 -11
- package/testing-base/lib/components/mock.popover.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.progress-circle-ring.component.d.ts +0 -11
- package/testing-base/lib/components/mock.progress-circle-ring.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.progress-circle.component.d.ts +0 -9
- package/testing-base/lib/components/mock.progress-circle.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.radio-group.component.d.ts +0 -15
- package/testing-base/lib/components/mock.radio-group.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.radio.component.d.ts +0 -10
- package/testing-base/lib/components/mock.radio.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.range.component.d.ts +0 -22
- package/testing-base/lib/components/mock.range.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.reorder-list.component.d.ts +0 -13
- package/testing-base/lib/components/mock.reorder-list.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.router-outlet.component.d.ts +0 -7
- package/testing-base/lib/components/mock.router-outlet.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.section-header.component.d.ts +0 -6
- package/testing-base/lib/components/mock.section-header.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.segmented-control.component.d.ts +0 -16
- package/testing-base/lib/components/mock.segmented-control.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.slide-button.component.d.ts +0 -11
- package/testing-base/lib/components/mock.slide-button.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.slides.component.d.ts +0 -11
- package/testing-base/lib/components/mock.slides.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.spinner.component.d.ts +0 -6
- package/testing-base/lib/components/mock.spinner.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.stock-chart.component.d.ts +0 -9
- package/testing-base/lib/components/mock.stock-chart.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.tab-button.component.d.ts +0 -9
- package/testing-base/lib/components/mock.tab-button.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.tab-navigation-item.component.d.ts +0 -7
- package/testing-base/lib/components/mock.tab-navigation-item.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.tab-navigation.component.d.ts +0 -8
- package/testing-base/lib/components/mock.tab-navigation.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.tabs.component.d.ts +0 -6
- package/testing-base/lib/components/mock.tabs.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.textarea.component.d.ts +0 -12
- package/testing-base/lib/components/mock.textarea.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.toggle-button.component.d.ts +0 -9
- package/testing-base/lib/components/mock.toggle-button.component.d.ts.map +0 -1
- package/testing-base/lib/components/mock.toggle.component.d.ts +0 -10
- package/testing-base/lib/components/mock.toggle.component.d.ts.map +0 -1
- package/testing-base/lib/directives/index.d.ts +0 -17
- package/testing-base/lib/directives/index.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.accordion.directive.d.ts +0 -6
- package/testing-base/lib/directives/mock.accordion.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.affix.directive.d.ts +0 -7
- package/testing-base/lib/directives/mock.affix.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.card-as-button.directive.d.ts +0 -6
- package/testing-base/lib/directives/mock.card-as-button.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.component-loader.directive.d.ts +0 -9
- package/testing-base/lib/directives/mock.component-loader.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.date-input.directive.d.ts +0 -6
- package/testing-base/lib/directives/mock.date-input.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.decimal-mask.directive.d.ts +0 -13
- package/testing-base/lib/directives/mock.decimal-mask.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.fit-heading.directive.d.ts +0 -8
- package/testing-base/lib/directives/mock.fit-heading.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.floating.directive.d.ts +0 -27
- package/testing-base/lib/directives/mock.floating.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.infinite-scroll.directive.d.ts +0 -9
- package/testing-base/lib/directives/mock.infinite-scroll.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.key-handler.directive.d.ts +0 -6
- package/testing-base/lib/directives/mock.key-handler.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.list-item-color.directive.d.ts +0 -9
- package/testing-base/lib/directives/mock.list-item-color.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.list.directive.d.ts +0 -18
- package/testing-base/lib/directives/mock.list.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.modal-router-link.directive.d.ts +0 -9
- package/testing-base/lib/directives/mock.modal-router-link.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.portal.directive.d.ts +0 -7
- package/testing-base/lib/directives/mock.portal.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.slide.directive.d.ts +0 -6
- package/testing-base/lib/directives/mock.slide.directive.d.ts.map +0 -1
- package/testing-base/lib/directives/mock.theme-color.directive.d.ts +0 -8
- package/testing-base/lib/directives/mock.theme-color.directive.d.ts.map +0 -1
- package/testing-base/lib/index.d.ts +0 -4
- package/testing-base/lib/index.d.ts.map +0 -1
- package/testing-base/lib/kirby-testing-base.module.d.ts +0 -86
- package/testing-base/lib/kirby-testing-base.module.d.ts.map +0 -1
- package/testing-base/lib/mock-components.d.ts +0 -3
- package/testing-base/lib/mock-components.d.ts.map +0 -1
- package/testing-base/lib/mock-directives.d.ts +0 -3
- package/testing-base/lib/mock-directives.d.ts.map +0 -1
- package/testing-base/public_api.d.ts +0 -2
- package/testing-base/public_api.d.ts.map +0 -1
- package/testing-jasmine/kirbydesign-designsystem-testing-jasmine.d.ts.map +0 -1
- package/testing-jasmine/lib/kirby-testing.module.d.ts +0 -8
- package/testing-jasmine/lib/kirby-testing.module.d.ts.map +0 -1
- package/testing-jasmine/lib/mock-providers.d.ts +0 -33
- package/testing-jasmine/lib/mock-providers.d.ts.map +0 -1
- package/testing-jasmine/public_api.d.ts +0 -2
- package/testing-jasmine/public_api.d.ts.map +0 -1
- package/testing-jest/kirbydesign-designsystem-testing-jest.d.ts.map +0 -1
- package/testing-jest/lib/kirby-testing.module.d.ts +0 -8
- package/testing-jest/lib/kirby-testing.module.d.ts.map +0 -1
- package/testing-jest/lib/mock-providers.d.ts +0 -68
- package/testing-jest/lib/mock-providers.d.ts.map +0 -1
- package/testing-jest/public_api.d.ts +0 -2
- package/testing-jest/public_api.d.ts.map +0 -1
- package/toast/config/toast-config.d.ts +0 -8
- package/toast/config/toast-config.d.ts.map +0 -1
- package/toast/kirbydesign-designsystem-toast.d.ts.map +0 -1
- package/toast/public_api.d.ts +0 -4
- package/toast/public_api.d.ts.map +0 -1
- package/toast/services/indexs.d.ts +0 -3
- package/toast/services/indexs.d.ts.map +0 -1
- package/toast/services/toast.controller.d.ts +0 -11
- package/toast/services/toast.controller.d.ts.map +0 -1
- package/toast/services/toast.helper.d.ts +0 -15
- package/toast/services/toast.helper.d.ts.map +0 -1
- package/toggle/kirbydesign-designsystem-toggle.d.ts.map +0 -1
- package/toggle/public_api.d.ts +0 -2
- package/toggle/public_api.d.ts.map +0 -1
- package/toggle/toggle.component.d.ts +0 -61
- package/toggle/toggle.component.d.ts.map +0 -1
- package/toggle-button/kirbydesign-designsystem-toggle-button.d.ts.map +0 -1
- package/toggle-button/public_api.d.ts +0 -3
- package/toggle-button/public_api.d.ts.map +0 -1
- package/toggle-button/toggle-button.component.d.ts +0 -48
- package/toggle-button/toggle-button.component.d.ts.map +0 -1
- package/toggle-button/toggle-button.module.d.ts +0 -9
- package/toggle-button/toggle-button.module.d.ts.map +0 -1
- package/types/event-listener-dispose-fn.d.ts +0 -2
- package/types/event-listener-dispose-fn.d.ts.map +0 -1
- package/types/form-field-control.d.ts +0 -6
- package/types/form-field-control.d.ts.map +0 -1
- package/types/kirbydesign-designsystem-types.d.ts.map +0 -1
- package/types/public_api.d.ts +0 -5
- package/types/public_api.d.ts.map +0 -1
- package/types/unobserve-fn.d.ts +0 -2
- package/types/unobserve-fn.d.ts.map +0 -1
- package/types/window-ref.d.ts +0 -7
- package/types/window-ref.d.ts.map +0 -1
|
@@ -1,153 +1,396 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, ViewChild, Input, HostBinding, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { ResizeObserverFactory } from '@kirbydesign/designsystem/shared';
|
|
4
|
-
import { ColorHelper, DesignTokenHelper, deepCopy,
|
|
5
|
-
import { toDate } from 'date-fns';
|
|
4
|
+
import { mergeDeepAll, ColorHelper, DesignTokenHelper, deepCopy, chartConfigHasType } from '@kirbydesign/designsystem/helpers';
|
|
6
5
|
import { CategoryScale, LinearScale, TimeScale, BarElement, LineElement, PointElement, BarController, LineController, Filler, Tooltip, Chart, Legend } from 'chart.js';
|
|
7
6
|
import 'chartjs-adapter-date-fns';
|
|
8
7
|
import annotationPlugin from 'chartjs-plugin-annotation';
|
|
9
8
|
import ChartDataLabels from 'chartjs-plugin-datalabels';
|
|
10
9
|
import { valueOrDefault } from 'chart.js/helpers';
|
|
10
|
+
import { toDate } from 'date-fns';
|
|
11
11
|
|
|
12
12
|
function isNumberArray(value) {
|
|
13
13
|
return Array.isArray(value) && value.every((item) => typeof item === 'number');
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
class AnnotationsDelegate {
|
|
17
|
+
constructor(chartConfigService) {
|
|
18
|
+
this.chartConfigService = chartConfigService;
|
|
19
|
+
}
|
|
20
|
+
applyDefaultsToAnnotations(annotations) {
|
|
21
|
+
return annotations.map((annotation) => {
|
|
22
|
+
const annotationTypeDefaults = this.chartConfigService.getAnnotationDefaults(annotation.type);
|
|
23
|
+
return mergeDeepAll(annotationTypeDefaults, annotation);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
createAnnotationPluginOptionsObject(annotations) {
|
|
27
|
+
const annotationsWithDefaults = this.applyDefaultsToAnnotations(annotations);
|
|
28
|
+
return {
|
|
29
|
+
plugins: {
|
|
30
|
+
annotation: {
|
|
31
|
+
annotations: annotationsWithDefaults,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
getExistingChartAnnotations(chart) {
|
|
37
|
+
const annotations = chart.options.plugins?.annotation?.annotations;
|
|
38
|
+
/* In browser chart.js might return annotations as a Proxy object; force it to be an array.
|
|
39
|
+
Each annotationOption in the resulting array will also be a Proxy object.
|
|
40
|
+
But internally chart.js will just work with them as normal values */
|
|
41
|
+
if (annotations !== undefined) {
|
|
42
|
+
return Object.keys(annotations).map((key) => annotations[key]);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
16
50
|
const { getThemeColorHexString: getThemeColorHexString$5 } = ColorHelper;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
51
|
+
const hoverBackgroundColor = getThemeColorHexString$5('primary');
|
|
52
|
+
const backgroundColor = getThemeColorHexString$5('secondary');
|
|
53
|
+
function scriptedBackgroundColor(context) {
|
|
54
|
+
const dataset = context.dataset;
|
|
55
|
+
const highlightedElements = dataset?.kirbyOptions?.highlightedElements;
|
|
56
|
+
if (highlightedElements && highlightedElements.includes(context.dataIndex)) {
|
|
57
|
+
return hoverBackgroundColor;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return backgroundColor;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
// Only adds a hovercolor if an onClick handler is provided
|
|
64
|
+
function scriptedHoverBackgroundColor(context) {
|
|
65
|
+
if (context.chart.options.onClick) {
|
|
66
|
+
return hoverBackgroundColor;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const CHART_GLOBAL_DEFAULTS = {
|
|
70
|
+
maintainAspectRatio: false,
|
|
71
|
+
color: getThemeColorHexString$5('black'),
|
|
72
|
+
resizeDelay: 10,
|
|
73
|
+
elements: {
|
|
74
|
+
bar: {
|
|
75
|
+
backgroundColor: scriptedBackgroundColor,
|
|
76
|
+
hoverBackgroundColor: scriptedHoverBackgroundColor,
|
|
77
|
+
},
|
|
78
|
+
line: {
|
|
79
|
+
borderColor: scriptedBackgroundColor,
|
|
80
|
+
borderWidth: 2,
|
|
81
|
+
tension: 0.3,
|
|
82
|
+
},
|
|
29
83
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
84
|
+
scales: {
|
|
85
|
+
linear: {
|
|
86
|
+
display: false,
|
|
87
|
+
ticks: {
|
|
88
|
+
display: false,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
category: {
|
|
92
|
+
display: true,
|
|
93
|
+
grid: {
|
|
94
|
+
display: false,
|
|
95
|
+
},
|
|
96
|
+
},
|
|
35
97
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
borderWidth,
|
|
39
|
-
borderColor,
|
|
40
|
-
backgroundColor: 'transparent',
|
|
98
|
+
font: {
|
|
99
|
+
family: 'Roboto',
|
|
41
100
|
},
|
|
42
|
-
|
|
43
|
-
|
|
101
|
+
plugins: {
|
|
102
|
+
legend: {
|
|
103
|
+
display: false,
|
|
104
|
+
},
|
|
105
|
+
datalabels: {
|
|
106
|
+
display: false,
|
|
107
|
+
},
|
|
108
|
+
tooltip: {
|
|
109
|
+
enabled: false,
|
|
110
|
+
},
|
|
44
111
|
},
|
|
45
112
|
};
|
|
46
113
|
|
|
47
|
-
/*
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
114
|
+
/*
|
|
115
|
+
The marker plugin is heavily inspired by https://chartjs-plugin-crosshair.netlify.app
|
|
116
|
+
The project appears stale and only the vertical line feature is needed
|
|
117
|
+
part of the plugin that was actually needed is implemented here.
|
|
118
|
+
*/
|
|
119
|
+
const defaultOptions = {
|
|
120
|
+
line: {
|
|
121
|
+
color: 'black',
|
|
122
|
+
width: 1,
|
|
123
|
+
dashPattern: [],
|
|
124
|
+
},
|
|
125
|
+
snap: {
|
|
126
|
+
enabled: false,
|
|
57
127
|
},
|
|
58
128
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
*/
|
|
65
|
-
const getChartPointFromContext = (context) => {
|
|
66
|
-
return context.dataset.data[context.dataIndex];
|
|
129
|
+
const hasMarkerConfiguration = (chart) => {
|
|
130
|
+
/*
|
|
131
|
+
Hacky solution. Should be fixed in this issue: https://github.com/kirbydesign/designsystem/issues/1967
|
|
132
|
+
*/
|
|
133
|
+
return chart.data.datasets.some((dataset) => !!dataset?.kirbyOptions?.isStockChart);
|
|
67
134
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
line: {
|
|
98
|
-
borderColor: getThemeColorHexString$4('medium'),
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
},
|
|
135
|
+
var MarkerPlugin = {
|
|
136
|
+
id: 'marker',
|
|
137
|
+
afterInit: function (chart) {
|
|
138
|
+
if (!hasMarkerConfiguration(chart)) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
const xScaleType = chart.config.options.scales.x.type;
|
|
142
|
+
if (xScaleType !== 'linear' &&
|
|
143
|
+
xScaleType !== 'time' &&
|
|
144
|
+
xScaleType !== 'category' &&
|
|
145
|
+
xScaleType !== 'logarithmic') {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (chart.options.plugins.marker === undefined) {
|
|
149
|
+
chart.options.plugins.marker = defaultOptions;
|
|
150
|
+
}
|
|
151
|
+
chart.marker = {
|
|
152
|
+
enabled: false,
|
|
153
|
+
suppressUpdate: false,
|
|
154
|
+
x: null,
|
|
155
|
+
originalData: [],
|
|
156
|
+
originalXRange: {},
|
|
157
|
+
dragStarted: false,
|
|
158
|
+
dragStartX: null,
|
|
159
|
+
dragEndX: null,
|
|
160
|
+
suppressTooltips: false,
|
|
161
|
+
ignoreNextEvents: 0,
|
|
162
|
+
};
|
|
102
163
|
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
bar: {
|
|
108
|
-
barPercentage: 0.6,
|
|
109
|
-
},
|
|
110
|
-
line: {
|
|
111
|
-
spanGaps: true,
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
indexAxis: 'x',
|
|
115
|
-
scales: {
|
|
116
|
-
x: {
|
|
117
|
-
grid: {
|
|
118
|
-
drawBorder: false,
|
|
119
|
-
},
|
|
120
|
-
ticks: {
|
|
121
|
-
font: {
|
|
122
|
-
size: parseInt(fontSize$2('xs')),
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
elements: {
|
|
128
|
-
line: {
|
|
129
|
-
tension: 0.2,
|
|
130
|
-
borderColor: getThemeColorHexString$4('medium'),
|
|
131
|
-
},
|
|
132
|
-
point: {
|
|
133
|
-
radius: 0,
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
},
|
|
164
|
+
getOption: function (chart, category, name) {
|
|
165
|
+
return valueOrDefault(chart.options.plugins.marker[category]
|
|
166
|
+
? chart.options.plugins.marker[category][name]
|
|
167
|
+
: undefined, defaultOptions[category][name]);
|
|
137
168
|
},
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
169
|
+
getXScale: function (chart) {
|
|
170
|
+
return chart.data.datasets.length ? chart.scales[chart.getDatasetMeta(0).xAxisID] : null;
|
|
171
|
+
},
|
|
172
|
+
getYScale: function (chart) {
|
|
173
|
+
return chart.scales[chart.getDatasetMeta(0).yAxisID];
|
|
174
|
+
},
|
|
175
|
+
afterEvent: function (chart, event) {
|
|
176
|
+
if (!hasMarkerConfiguration(chart)) {
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
if (chart.config.options.scales.x.length == 0) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
const e = event.event;
|
|
183
|
+
const xScaleType = chart.config.options.scales.x.type;
|
|
184
|
+
if (xScaleType !== 'linear' &&
|
|
185
|
+
xScaleType !== 'time' &&
|
|
186
|
+
xScaleType !== 'category' &&
|
|
187
|
+
xScaleType !== 'logarithmic') {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
const xScale = this.getXScale(chart);
|
|
191
|
+
if (!xScale) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
if (chart.marker.ignoreNextEvents > 0) {
|
|
195
|
+
chart.marker.ignoreNextEvents -= 1;
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
chart.marker.enabled =
|
|
199
|
+
e.type !== 'mouseout' &&
|
|
200
|
+
e.x > xScale.getPixelForValue(xScale.min) &&
|
|
201
|
+
e.x < xScale.getPixelForValue(xScale.max);
|
|
202
|
+
if (!chart.marker.enabled && !chart.marker.suppressUpdate) {
|
|
203
|
+
if (e.x > xScale.getPixelForValue(xScale.max)) {
|
|
204
|
+
// suppress future updates to prevent endless redrawing of chart
|
|
205
|
+
chart.marker.suppressUpdate = true;
|
|
206
|
+
chart.update('none');
|
|
207
|
+
}
|
|
208
|
+
chart.marker.dragStarted = false; // cancel zoom in progress
|
|
209
|
+
return false;
|
|
210
|
+
}
|
|
211
|
+
chart.marker.suppressUpdate = false;
|
|
212
|
+
chart.marker.x = e.x;
|
|
213
|
+
chart.draw();
|
|
214
|
+
},
|
|
215
|
+
doDraw: function (chart) {
|
|
216
|
+
if (!hasMarkerConfiguration(chart)) {
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
if (!chart.marker.enabled) {
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
this.drawTraceLine(chart);
|
|
223
|
+
this.interpolateValues(chart);
|
|
224
|
+
this.drawTracePoints(chart);
|
|
225
|
+
return true;
|
|
226
|
+
},
|
|
227
|
+
beforeDraw: function (chart) {
|
|
228
|
+
return this.doDraw(chart);
|
|
229
|
+
},
|
|
230
|
+
// Logic moved to beforeDraw in order
|
|
231
|
+
// for the vertical line to be drawn
|
|
232
|
+
// under tooltip and datalabels.
|
|
233
|
+
// afterDraw: function(chart) {
|
|
234
|
+
// return this.doDraw(chart);
|
|
235
|
+
// },
|
|
236
|
+
drawTraceLine: function (chart) {
|
|
237
|
+
if (!hasMarkerConfiguration(chart)) {
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
const yScale = this.getYScale(chart);
|
|
241
|
+
const lineWidth = this.getOption(chart, 'line', 'width');
|
|
242
|
+
const color = this.getOption(chart, 'line', 'color');
|
|
243
|
+
const dashPattern = this.getOption(chart, 'line', 'dashPattern');
|
|
244
|
+
const snapEnabled = this.getOption(chart, 'snap', 'enabled');
|
|
245
|
+
let lineX = chart.marker.x;
|
|
246
|
+
if (snapEnabled && chart._active.length) {
|
|
247
|
+
lineX = chart._active[0].element.x;
|
|
248
|
+
}
|
|
249
|
+
chart.ctx.beginPath();
|
|
250
|
+
chart.ctx.setLineDash(dashPattern);
|
|
251
|
+
chart.ctx.moveTo(lineX, yScale.getPixelForValue(yScale.max));
|
|
252
|
+
chart.ctx.lineWidth = lineWidth;
|
|
253
|
+
chart.ctx.strokeStyle = color;
|
|
254
|
+
chart.ctx.lineTo(lineX, yScale.getPixelForValue(yScale.min));
|
|
255
|
+
chart.ctx.stroke();
|
|
256
|
+
chart.ctx.setLineDash([]);
|
|
257
|
+
},
|
|
258
|
+
drawTracePoints: function (chart) {
|
|
259
|
+
if (!hasMarkerConfiguration(chart)) {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
for (let chartIndex = 0; chartIndex < chart.data.datasets.length; chartIndex++) {
|
|
263
|
+
const dataset = chart.data.datasets[chartIndex];
|
|
264
|
+
const meta = chart.getDatasetMeta(chartIndex);
|
|
265
|
+
const yScale = chart.scales[meta.yAxisID];
|
|
266
|
+
if (meta.hidden || !dataset.interpolate) {
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
chart.ctx.beginPath();
|
|
270
|
+
chart.ctx.arc(chart.marker.x, yScale.getPixelForValue(dataset.interpolatedValue), 3, 0, 2 * Math.PI, false);
|
|
271
|
+
chart.ctx.fillStyle = 'white';
|
|
272
|
+
chart.ctx.lineWidth = 2;
|
|
273
|
+
chart.ctx.strokeStyle = dataset.borderColor;
|
|
274
|
+
chart.ctx.fill();
|
|
275
|
+
chart.ctx.stroke();
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
interpolateValues: function (chart) {
|
|
279
|
+
for (let chartIndex = 0; chartIndex < chart.data.datasets.length; chartIndex++) {
|
|
280
|
+
const dataset = chart.data.datasets[chartIndex];
|
|
281
|
+
const meta = chart.getDatasetMeta(chartIndex);
|
|
282
|
+
const xScale = chart.scales[meta.xAxisID];
|
|
283
|
+
const xValue = xScale.getValueForPixel(chart.marker.x);
|
|
284
|
+
if (meta.hidden || !dataset.interpolate) {
|
|
285
|
+
continue;
|
|
286
|
+
}
|
|
287
|
+
const data = dataset.data;
|
|
288
|
+
const index = data.findIndex(function (o) {
|
|
289
|
+
return o.x >= xValue;
|
|
290
|
+
});
|
|
291
|
+
const prev = data[index - 1];
|
|
292
|
+
const next = data[index];
|
|
293
|
+
if (chart.data.datasets[chartIndex].steppedLine && prev) {
|
|
294
|
+
dataset.interpolatedValue = prev.y;
|
|
295
|
+
}
|
|
296
|
+
else if (prev && next) {
|
|
297
|
+
const slope = (next.y - prev.y) / (next.x - prev.x);
|
|
298
|
+
dataset.interpolatedValue = prev.y + (xValue - prev.x) * slope;
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
dataset.interpolatedValue = NaN;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
const CHART_SCALES = [CategoryScale, LinearScale, TimeScale];
|
|
308
|
+
const CHART_ELEMENTS = [BarElement, LineElement, PointElement];
|
|
309
|
+
const CHART_CONTROLLERS = [BarController, LineController];
|
|
310
|
+
const CHART_PLUGINS = [annotationPlugin, Filler, ChartDataLabels, Tooltip, MarkerPlugin].map((plugin) => (plugin?.__esModule ? plugin.default : plugin));
|
|
311
|
+
/* Order matters; defaults must be merged after register as
|
|
312
|
+
register modifies the Chart.defaults objects */
|
|
313
|
+
Chart.register(Legend, ...CHART_SCALES, ...CHART_ELEMENTS, ...CHART_CONTROLLERS, ...CHART_PLUGINS);
|
|
314
|
+
/* Chart.defaults is read only; set each key modified in
|
|
315
|
+
CHART_GLOBAL_DEFAULTS manually */
|
|
316
|
+
const mergedDefaults = mergeDeepAll(Chart.defaults, CHART_GLOBAL_DEFAULTS);
|
|
317
|
+
Object.entries(CHART_GLOBAL_DEFAULTS).forEach(([key]) => {
|
|
318
|
+
Chart.defaults[key] = mergedDefaults[key];
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
const { getThemeColorHexString: getThemeColorHexString$4 } = ColorHelper;
|
|
322
|
+
/* The chart.js annotation does not allow for changing the
|
|
323
|
+
defaults it comes with. In order to have sensible defaults
|
|
324
|
+
this object is used instead and manually merged with the
|
|
325
|
+
rest of the annotations object */
|
|
326
|
+
const borderColor = getThemeColorHexString$4('semi-dark');
|
|
327
|
+
const borderDash = [6, 3];
|
|
328
|
+
const borderWidth = 1;
|
|
329
|
+
const CHART_ANNOTATIONS_CONFIG = {
|
|
330
|
+
line: {
|
|
331
|
+
borderDash,
|
|
332
|
+
borderWidth,
|
|
333
|
+
borderColor,
|
|
334
|
+
},
|
|
335
|
+
ellipse: {
|
|
336
|
+
borderDash,
|
|
337
|
+
borderWidth,
|
|
338
|
+
borderColor,
|
|
339
|
+
backgroundColor: 'transparent',
|
|
340
|
+
},
|
|
341
|
+
box: {
|
|
342
|
+
borderDash,
|
|
343
|
+
borderWidth,
|
|
344
|
+
borderColor,
|
|
345
|
+
backgroundColor: 'transparent',
|
|
346
|
+
},
|
|
347
|
+
point: {
|
|
348
|
+
backgroundColor: 'initial',
|
|
349
|
+
},
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
/* Allows for adding functionality to interactions chart.js while
|
|
353
|
+
preserving the interaction functionality the consumer of the component has
|
|
354
|
+
passed by being provided as a callback. */
|
|
355
|
+
const CHART_INTERACTION_FUNCTIONS_EXTENSIONS = {
|
|
356
|
+
onHover: (_event, activeElements, _chart, callback) => {
|
|
357
|
+
if (_chart.options.onClick) {
|
|
358
|
+
_chart.canvas.style.cursor = activeElements[0] ? 'pointer' : 'default';
|
|
359
|
+
}
|
|
360
|
+
if (callback)
|
|
361
|
+
callback(_event, activeElements, _chart);
|
|
362
|
+
},
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
const { fontSize: fontSize$2 } = DesignTokenHelper;
|
|
366
|
+
const { getThemeColorHexString: getThemeColorHexString$3, getThemeColorRgbString: getThemeColorRgbString$1 } = ColorHelper;
|
|
367
|
+
/**
|
|
368
|
+
* A filter to read a chartpoint from a Chart.js point context (used for chartdata points). Context is provided by Chart.js.
|
|
369
|
+
*/
|
|
370
|
+
const getChartPointFromContext = (context) => {
|
|
371
|
+
return context.dataset.data[context.dataIndex];
|
|
372
|
+
};
|
|
373
|
+
const CHART_TYPES_CONFIG = {
|
|
374
|
+
bar: {
|
|
375
|
+
type: 'bar',
|
|
376
|
+
options: {
|
|
377
|
+
datasets: {
|
|
378
|
+
bar: {
|
|
379
|
+
barPercentage: 0.6,
|
|
380
|
+
},
|
|
381
|
+
line: {
|
|
382
|
+
spanGaps: true,
|
|
383
|
+
},
|
|
384
|
+
},
|
|
385
|
+
indexAxis: 'y',
|
|
386
|
+
scales: {
|
|
387
|
+
y: {
|
|
388
|
+
grid: {
|
|
389
|
+
drawBorder: false,
|
|
390
|
+
},
|
|
391
|
+
ticks: {
|
|
149
392
|
font: {
|
|
150
|
-
size: parseInt(fontSize$2('
|
|
393
|
+
size: parseInt(fontSize$2('s')),
|
|
151
394
|
},
|
|
152
395
|
},
|
|
153
396
|
},
|
|
@@ -156,44 +399,106 @@ const CHART_TYPES_CONFIG = {
|
|
|
156
399
|
point: {
|
|
157
400
|
radius: 0,
|
|
158
401
|
},
|
|
402
|
+
line: {
|
|
403
|
+
borderColor: getThemeColorHexString$3('medium'),
|
|
404
|
+
},
|
|
159
405
|
},
|
|
160
406
|
},
|
|
161
407
|
},
|
|
162
|
-
|
|
163
|
-
type: '
|
|
408
|
+
column: {
|
|
409
|
+
type: 'bar',
|
|
164
410
|
options: {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
left: 20,
|
|
172
|
-
right: 20,
|
|
173
|
-
top: 30,
|
|
174
|
-
bottom: 0,
|
|
411
|
+
datasets: {
|
|
412
|
+
bar: {
|
|
413
|
+
barPercentage: 0.6,
|
|
414
|
+
},
|
|
415
|
+
line: {
|
|
416
|
+
spanGaps: true,
|
|
175
417
|
},
|
|
176
418
|
},
|
|
177
|
-
|
|
419
|
+
indexAxis: 'x',
|
|
178
420
|
scales: {
|
|
179
421
|
x: {
|
|
180
422
|
grid: {
|
|
181
|
-
|
|
423
|
+
drawBorder: false,
|
|
182
424
|
},
|
|
183
425
|
ticks: {
|
|
184
|
-
maxRotation: 0,
|
|
185
|
-
autoSkipPadding: 120,
|
|
186
426
|
font: {
|
|
187
427
|
size: parseInt(fontSize$2('xs')),
|
|
188
428
|
},
|
|
189
429
|
},
|
|
190
430
|
},
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
431
|
+
},
|
|
432
|
+
elements: {
|
|
433
|
+
line: {
|
|
434
|
+
tension: 0.2,
|
|
435
|
+
borderColor: getThemeColorHexString$3('medium'),
|
|
436
|
+
},
|
|
437
|
+
point: {
|
|
438
|
+
radius: 0,
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
},
|
|
442
|
+
},
|
|
443
|
+
line: {
|
|
444
|
+
type: 'line',
|
|
445
|
+
options: {
|
|
446
|
+
backgroundColor: getThemeColorRgbString$1('semi-light', 0.5),
|
|
447
|
+
scales: {
|
|
448
|
+
x: {
|
|
449
|
+
grid: {
|
|
450
|
+
borderColor: getThemeColorHexString$3('medium'),
|
|
451
|
+
borderWidth: 1,
|
|
452
|
+
},
|
|
453
|
+
ticks: {
|
|
454
|
+
font: {
|
|
455
|
+
size: parseInt(fontSize$2('xs')),
|
|
456
|
+
},
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
},
|
|
460
|
+
elements: {
|
|
461
|
+
point: {
|
|
462
|
+
radius: 0,
|
|
463
|
+
},
|
|
464
|
+
},
|
|
465
|
+
},
|
|
466
|
+
},
|
|
467
|
+
stock: {
|
|
468
|
+
type: 'line',
|
|
469
|
+
options: {
|
|
470
|
+
responsive: true,
|
|
471
|
+
animation: {
|
|
472
|
+
duration: 0,
|
|
473
|
+
},
|
|
474
|
+
layout: {
|
|
475
|
+
padding: {
|
|
476
|
+
left: 20,
|
|
477
|
+
right: 20,
|
|
478
|
+
top: 30,
|
|
479
|
+
bottom: 0,
|
|
480
|
+
},
|
|
481
|
+
},
|
|
482
|
+
backgroundColor: getThemeColorRgbString$1('semi-light', 0.5),
|
|
483
|
+
scales: {
|
|
484
|
+
x: {
|
|
485
|
+
grid: {
|
|
486
|
+
lineWidth: 0,
|
|
487
|
+
},
|
|
488
|
+
ticks: {
|
|
489
|
+
maxRotation: 0,
|
|
490
|
+
autoSkipPadding: 120,
|
|
491
|
+
font: {
|
|
492
|
+
size: parseInt(fontSize$2('xs')),
|
|
493
|
+
},
|
|
494
|
+
},
|
|
495
|
+
},
|
|
496
|
+
y: {
|
|
497
|
+
position: 'right',
|
|
498
|
+
display: true,
|
|
499
|
+
grid: {
|
|
500
|
+
drawBorder: false,
|
|
501
|
+
},
|
|
197
502
|
ticks: {
|
|
198
503
|
display: true,
|
|
199
504
|
font: {
|
|
@@ -221,9 +526,9 @@ const CHART_TYPES_CONFIG = {
|
|
|
221
526
|
enabled: true,
|
|
222
527
|
mode: 'index',
|
|
223
528
|
intersect: false,
|
|
224
|
-
backgroundColor: getThemeColorHexString$
|
|
225
|
-
titleColor: getThemeColorHexString$
|
|
226
|
-
bodyColor: getThemeColorHexString$
|
|
529
|
+
backgroundColor: getThemeColorHexString$3('semi-light'),
|
|
530
|
+
titleColor: getThemeColorHexString$3('semi-light-contrast'),
|
|
531
|
+
bodyColor: getThemeColorHexString$3('semi-light-contrast'),
|
|
227
532
|
caretSize: 0,
|
|
228
533
|
bodySpacing: 5,
|
|
229
534
|
titleSpacing: 5,
|
|
@@ -232,7 +537,7 @@ const CHART_TYPES_CONFIG = {
|
|
|
232
537
|
labelColor: (tooltipItem) => {
|
|
233
538
|
return {
|
|
234
539
|
backgroundColor: tooltipItem.dataset.borderColor,
|
|
235
|
-
borderColor: getThemeColorHexString$
|
|
540
|
+
borderColor: getThemeColorHexString$3('semi-light'),
|
|
236
541
|
borderWidth: 2, // This value must be exactly 2. If it is less, a white "border" will appear, if greater than, a shadow around the box will be shown.
|
|
237
542
|
// An issue has been created, requesting a test to check this value doesn´t change: https://github.com/kirbydesign/designsystem/issues/2578
|
|
238
543
|
};
|
|
@@ -241,7 +546,7 @@ const CHART_TYPES_CONFIG = {
|
|
|
241
546
|
},
|
|
242
547
|
datalabels: {
|
|
243
548
|
backgroundColor: (context) => context.dataset.borderColor,
|
|
244
|
-
color: getThemeColorHexString$
|
|
549
|
+
color: getThemeColorHexString$3('white'),
|
|
245
550
|
borderRadius: 3,
|
|
246
551
|
font: {
|
|
247
552
|
lineHeight: 1,
|
|
@@ -324,318 +629,13 @@ class ChartConfigService {
|
|
|
324
629
|
},
|
|
325
630
|
};
|
|
326
631
|
}
|
|
327
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
328
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
632
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ChartConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
633
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ChartConfigService }); }
|
|
329
634
|
}
|
|
330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ChartConfigService, decorators: [{
|
|
331
636
|
type: Injectable
|
|
332
637
|
}] });
|
|
333
638
|
|
|
334
|
-
class AnnotationsDelegate {
|
|
335
|
-
constructor(chartConfigService) {
|
|
336
|
-
this.chartConfigService = chartConfigService;
|
|
337
|
-
}
|
|
338
|
-
applyDefaultsToAnnotations(annotations) {
|
|
339
|
-
return annotations.map((annotation) => {
|
|
340
|
-
const annotationTypeDefaults = this.chartConfigService.getAnnotationDefaults(annotation.type);
|
|
341
|
-
return mergeDeepAll(annotationTypeDefaults, annotation);
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
createAnnotationPluginOptionsObject(annotations) {
|
|
345
|
-
const annotationsWithDefaults = this.applyDefaultsToAnnotations(annotations);
|
|
346
|
-
return {
|
|
347
|
-
plugins: {
|
|
348
|
-
annotation: {
|
|
349
|
-
annotations: annotationsWithDefaults,
|
|
350
|
-
},
|
|
351
|
-
},
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
getExistingChartAnnotations(chart) {
|
|
355
|
-
const annotations = chart.options.plugins?.annotation?.annotations;
|
|
356
|
-
/* In browser chart.js might return annotations as a Proxy object; force it to be an array.
|
|
357
|
-
Each annotationOption in the resulting array will also be a Proxy object.
|
|
358
|
-
But internally chart.js will just work with them as normal values */
|
|
359
|
-
if (annotations !== undefined) {
|
|
360
|
-
return Object.keys(annotations).map((key) => annotations[key]);
|
|
361
|
-
}
|
|
362
|
-
else {
|
|
363
|
-
return [];
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
const { getThemeColorHexString: getThemeColorHexString$3 } = ColorHelper;
|
|
369
|
-
const hoverBackgroundColor = getThemeColorHexString$3('primary');
|
|
370
|
-
const backgroundColor = getThemeColorHexString$3('secondary');
|
|
371
|
-
function scriptedBackgroundColor(context) {
|
|
372
|
-
const dataset = context.dataset;
|
|
373
|
-
const highlightedElements = dataset?.kirbyOptions?.highlightedElements;
|
|
374
|
-
if (highlightedElements && highlightedElements.includes(context.dataIndex)) {
|
|
375
|
-
return hoverBackgroundColor;
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
return backgroundColor;
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
// Only adds a hovercolor if an onClick handler is provided
|
|
382
|
-
function scriptedHoverBackgroundColor(context) {
|
|
383
|
-
if (context.chart.options.onClick) {
|
|
384
|
-
return hoverBackgroundColor;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
const CHART_GLOBAL_DEFAULTS = {
|
|
388
|
-
maintainAspectRatio: false,
|
|
389
|
-
color: getThemeColorHexString$3('black'),
|
|
390
|
-
resizeDelay: 10,
|
|
391
|
-
elements: {
|
|
392
|
-
bar: {
|
|
393
|
-
backgroundColor: scriptedBackgroundColor,
|
|
394
|
-
hoverBackgroundColor: scriptedHoverBackgroundColor,
|
|
395
|
-
},
|
|
396
|
-
line: {
|
|
397
|
-
borderColor: scriptedBackgroundColor,
|
|
398
|
-
borderWidth: 2,
|
|
399
|
-
tension: 0.3,
|
|
400
|
-
},
|
|
401
|
-
},
|
|
402
|
-
scales: {
|
|
403
|
-
linear: {
|
|
404
|
-
display: false,
|
|
405
|
-
ticks: {
|
|
406
|
-
display: false,
|
|
407
|
-
},
|
|
408
|
-
},
|
|
409
|
-
category: {
|
|
410
|
-
display: true,
|
|
411
|
-
grid: {
|
|
412
|
-
display: false,
|
|
413
|
-
},
|
|
414
|
-
},
|
|
415
|
-
},
|
|
416
|
-
font: {
|
|
417
|
-
family: 'Roboto',
|
|
418
|
-
},
|
|
419
|
-
plugins: {
|
|
420
|
-
legend: {
|
|
421
|
-
display: false,
|
|
422
|
-
},
|
|
423
|
-
datalabels: {
|
|
424
|
-
display: false,
|
|
425
|
-
},
|
|
426
|
-
tooltip: {
|
|
427
|
-
enabled: false,
|
|
428
|
-
},
|
|
429
|
-
},
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
/*
|
|
433
|
-
The marker plugin is heavily inspired by https://chartjs-plugin-crosshair.netlify.app
|
|
434
|
-
The project appears stale and only the vertical line feature is needed
|
|
435
|
-
part of the plugin that was actually needed is implemented here.
|
|
436
|
-
*/
|
|
437
|
-
const defaultOptions = {
|
|
438
|
-
line: {
|
|
439
|
-
color: 'black',
|
|
440
|
-
width: 1,
|
|
441
|
-
dashPattern: [],
|
|
442
|
-
},
|
|
443
|
-
snap: {
|
|
444
|
-
enabled: false,
|
|
445
|
-
},
|
|
446
|
-
};
|
|
447
|
-
const hasMarkerConfiguration = (chart) => {
|
|
448
|
-
/*
|
|
449
|
-
Hacky solution. Should be fixed in this issue: https://github.com/kirbydesign/designsystem/issues/1967
|
|
450
|
-
*/
|
|
451
|
-
return chart.data.datasets.some((dataset) => !!dataset?.kirbyOptions?.isStockChart);
|
|
452
|
-
};
|
|
453
|
-
var MarkerPlugin = {
|
|
454
|
-
id: 'marker',
|
|
455
|
-
afterInit: function (chart) {
|
|
456
|
-
if (!hasMarkerConfiguration(chart)) {
|
|
457
|
-
return;
|
|
458
|
-
}
|
|
459
|
-
const xScaleType = chart.config.options.scales.x.type;
|
|
460
|
-
if (xScaleType !== 'linear' &&
|
|
461
|
-
xScaleType !== 'time' &&
|
|
462
|
-
xScaleType !== 'category' &&
|
|
463
|
-
xScaleType !== 'logarithmic') {
|
|
464
|
-
return;
|
|
465
|
-
}
|
|
466
|
-
if (chart.options.plugins.marker === undefined) {
|
|
467
|
-
chart.options.plugins.marker = defaultOptions;
|
|
468
|
-
}
|
|
469
|
-
chart.marker = {
|
|
470
|
-
enabled: false,
|
|
471
|
-
suppressUpdate: false,
|
|
472
|
-
x: null,
|
|
473
|
-
originalData: [],
|
|
474
|
-
originalXRange: {},
|
|
475
|
-
dragStarted: false,
|
|
476
|
-
dragStartX: null,
|
|
477
|
-
dragEndX: null,
|
|
478
|
-
suppressTooltips: false,
|
|
479
|
-
ignoreNextEvents: 0,
|
|
480
|
-
};
|
|
481
|
-
},
|
|
482
|
-
getOption: function (chart, category, name) {
|
|
483
|
-
return valueOrDefault(chart.options.plugins.marker[category]
|
|
484
|
-
? chart.options.plugins.marker[category][name]
|
|
485
|
-
: undefined, defaultOptions[category][name]);
|
|
486
|
-
},
|
|
487
|
-
getXScale: function (chart) {
|
|
488
|
-
return chart.data.datasets.length ? chart.scales[chart.getDatasetMeta(0).xAxisID] : null;
|
|
489
|
-
},
|
|
490
|
-
getYScale: function (chart) {
|
|
491
|
-
return chart.scales[chart.getDatasetMeta(0).yAxisID];
|
|
492
|
-
},
|
|
493
|
-
afterEvent: function (chart, event) {
|
|
494
|
-
if (!hasMarkerConfiguration(chart)) {
|
|
495
|
-
return;
|
|
496
|
-
}
|
|
497
|
-
if (chart.config.options.scales.x.length == 0) {
|
|
498
|
-
return;
|
|
499
|
-
}
|
|
500
|
-
const e = event.event;
|
|
501
|
-
const xScaleType = chart.config.options.scales.x.type;
|
|
502
|
-
if (xScaleType !== 'linear' &&
|
|
503
|
-
xScaleType !== 'time' &&
|
|
504
|
-
xScaleType !== 'category' &&
|
|
505
|
-
xScaleType !== 'logarithmic') {
|
|
506
|
-
return;
|
|
507
|
-
}
|
|
508
|
-
const xScale = this.getXScale(chart);
|
|
509
|
-
if (!xScale) {
|
|
510
|
-
return;
|
|
511
|
-
}
|
|
512
|
-
if (chart.marker.ignoreNextEvents > 0) {
|
|
513
|
-
chart.marker.ignoreNextEvents -= 1;
|
|
514
|
-
return;
|
|
515
|
-
}
|
|
516
|
-
chart.marker.enabled =
|
|
517
|
-
e.type !== 'mouseout' &&
|
|
518
|
-
e.x > xScale.getPixelForValue(xScale.min) &&
|
|
519
|
-
e.x < xScale.getPixelForValue(xScale.max);
|
|
520
|
-
if (!chart.marker.enabled && !chart.marker.suppressUpdate) {
|
|
521
|
-
if (e.x > xScale.getPixelForValue(xScale.max)) {
|
|
522
|
-
// suppress future updates to prevent endless redrawing of chart
|
|
523
|
-
chart.marker.suppressUpdate = true;
|
|
524
|
-
chart.update('none');
|
|
525
|
-
}
|
|
526
|
-
chart.marker.dragStarted = false; // cancel zoom in progress
|
|
527
|
-
return false;
|
|
528
|
-
}
|
|
529
|
-
chart.marker.suppressUpdate = false;
|
|
530
|
-
chart.marker.x = e.x;
|
|
531
|
-
chart.draw();
|
|
532
|
-
},
|
|
533
|
-
doDraw: function (chart) {
|
|
534
|
-
if (!hasMarkerConfiguration(chart)) {
|
|
535
|
-
return;
|
|
536
|
-
}
|
|
537
|
-
if (!chart.marker.enabled) {
|
|
538
|
-
return;
|
|
539
|
-
}
|
|
540
|
-
this.drawTraceLine(chart);
|
|
541
|
-
this.interpolateValues(chart);
|
|
542
|
-
this.drawTracePoints(chart);
|
|
543
|
-
return true;
|
|
544
|
-
},
|
|
545
|
-
beforeDraw: function (chart) {
|
|
546
|
-
return this.doDraw(chart);
|
|
547
|
-
},
|
|
548
|
-
// Logic moved to beforeDraw in order
|
|
549
|
-
// for the vertical line to be drawn
|
|
550
|
-
// under tooltip and datalabels.
|
|
551
|
-
// afterDraw: function(chart) {
|
|
552
|
-
// return this.doDraw(chart);
|
|
553
|
-
// },
|
|
554
|
-
drawTraceLine: function (chart) {
|
|
555
|
-
if (!hasMarkerConfiguration(chart)) {
|
|
556
|
-
return;
|
|
557
|
-
}
|
|
558
|
-
const yScale = this.getYScale(chart);
|
|
559
|
-
const lineWidth = this.getOption(chart, 'line', 'width');
|
|
560
|
-
const color = this.getOption(chart, 'line', 'color');
|
|
561
|
-
const dashPattern = this.getOption(chart, 'line', 'dashPattern');
|
|
562
|
-
const snapEnabled = this.getOption(chart, 'snap', 'enabled');
|
|
563
|
-
let lineX = chart.marker.x;
|
|
564
|
-
if (snapEnabled && chart._active.length) {
|
|
565
|
-
lineX = chart._active[0].element.x;
|
|
566
|
-
}
|
|
567
|
-
chart.ctx.beginPath();
|
|
568
|
-
chart.ctx.setLineDash(dashPattern);
|
|
569
|
-
chart.ctx.moveTo(lineX, yScale.getPixelForValue(yScale.max));
|
|
570
|
-
chart.ctx.lineWidth = lineWidth;
|
|
571
|
-
chart.ctx.strokeStyle = color;
|
|
572
|
-
chart.ctx.lineTo(lineX, yScale.getPixelForValue(yScale.min));
|
|
573
|
-
chart.ctx.stroke();
|
|
574
|
-
chart.ctx.setLineDash([]);
|
|
575
|
-
},
|
|
576
|
-
drawTracePoints: function (chart) {
|
|
577
|
-
if (!hasMarkerConfiguration(chart)) {
|
|
578
|
-
return;
|
|
579
|
-
}
|
|
580
|
-
for (let chartIndex = 0; chartIndex < chart.data.datasets.length; chartIndex++) {
|
|
581
|
-
const dataset = chart.data.datasets[chartIndex];
|
|
582
|
-
const meta = chart.getDatasetMeta(chartIndex);
|
|
583
|
-
const yScale = chart.scales[meta.yAxisID];
|
|
584
|
-
if (meta.hidden || !dataset.interpolate) {
|
|
585
|
-
continue;
|
|
586
|
-
}
|
|
587
|
-
chart.ctx.beginPath();
|
|
588
|
-
chart.ctx.arc(chart.marker.x, yScale.getPixelForValue(dataset.interpolatedValue), 3, 0, 2 * Math.PI, false);
|
|
589
|
-
chart.ctx.fillStyle = 'white';
|
|
590
|
-
chart.ctx.lineWidth = 2;
|
|
591
|
-
chart.ctx.strokeStyle = dataset.borderColor;
|
|
592
|
-
chart.ctx.fill();
|
|
593
|
-
chart.ctx.stroke();
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
interpolateValues: function (chart) {
|
|
597
|
-
for (let chartIndex = 0; chartIndex < chart.data.datasets.length; chartIndex++) {
|
|
598
|
-
const dataset = chart.data.datasets[chartIndex];
|
|
599
|
-
const meta = chart.getDatasetMeta(chartIndex);
|
|
600
|
-
const xScale = chart.scales[meta.xAxisID];
|
|
601
|
-
const xValue = xScale.getValueForPixel(chart.marker.x);
|
|
602
|
-
if (meta.hidden || !dataset.interpolate) {
|
|
603
|
-
continue;
|
|
604
|
-
}
|
|
605
|
-
const data = dataset.data;
|
|
606
|
-
const index = data.findIndex(function (o) {
|
|
607
|
-
return o.x >= xValue;
|
|
608
|
-
});
|
|
609
|
-
const prev = data[index - 1];
|
|
610
|
-
const next = data[index];
|
|
611
|
-
if (chart.data.datasets[chartIndex].steppedLine && prev) {
|
|
612
|
-
dataset.interpolatedValue = prev.y;
|
|
613
|
-
}
|
|
614
|
-
else if (prev && next) {
|
|
615
|
-
const slope = (next.y - prev.y) / (next.x - prev.x);
|
|
616
|
-
dataset.interpolatedValue = prev.y + (xValue - prev.x) * slope;
|
|
617
|
-
}
|
|
618
|
-
else {
|
|
619
|
-
dataset.interpolatedValue = NaN;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
},
|
|
623
|
-
};
|
|
624
|
-
|
|
625
|
-
const CHART_SCALES = [CategoryScale, LinearScale, TimeScale];
|
|
626
|
-
const CHART_ELEMENTS = [BarElement, LineElement, PointElement];
|
|
627
|
-
const CHART_CONTROLLERS = [BarController, LineController];
|
|
628
|
-
const CHART_PLUGINS = [annotationPlugin, Filler, ChartDataLabels, Tooltip, MarkerPlugin].map((plugin) => (plugin?.__esModule ? plugin.default : plugin));
|
|
629
|
-
/* Order matters; defaults must be merged after register as
|
|
630
|
-
register modifies the Chart.defaults objects */
|
|
631
|
-
Chart.register(Legend, ...CHART_SCALES, ...CHART_ELEMENTS, ...CHART_CONTROLLERS, ...CHART_PLUGINS);
|
|
632
|
-
/* Chart.defaults is read only; set each key modified in
|
|
633
|
-
CHART_GLOBAL_DEFAULTS manually */
|
|
634
|
-
const mergedDefaults = mergeDeepAll(Chart.defaults, CHART_GLOBAL_DEFAULTS);
|
|
635
|
-
Object.entries(CHART_GLOBAL_DEFAULTS).forEach(([key]) => {
|
|
636
|
-
Chart.defaults[key] = mergedDefaults[key];
|
|
637
|
-
});
|
|
638
|
-
|
|
639
639
|
class ChartJSService {
|
|
640
640
|
constructor(chartConfigService) {
|
|
641
641
|
this.chartConfigService = chartConfigService;
|
|
@@ -800,10 +800,10 @@ class ChartJSService {
|
|
|
800
800
|
return this.getDefaultLabels(datasets);
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
804
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
803
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ChartJSService, deps: [{ token: ChartConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
804
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ChartJSService }); }
|
|
805
805
|
}
|
|
806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ChartJSService, decorators: [{
|
|
807
807
|
type: Injectable
|
|
808
808
|
}], ctorParameters: () => [{ type: ChartConfigService }] });
|
|
809
809
|
|
|
@@ -1065,10 +1065,10 @@ class BaseChartComponent {
|
|
|
1065
1065
|
ngOnDestroy() {
|
|
1066
1066
|
this.chartJSService.destroyChart();
|
|
1067
1067
|
}
|
|
1068
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1069
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1068
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: BaseChartComponent, deps: [{ token: ChartJSService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1069
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0", type: BaseChartComponent, isStandalone: false, selector: "kirby-base-chart", inputs: { type: "type", data: "data", labels: "labels", customOptions: "customOptions", annotations: "annotations", highlightedElements: "highlightedElements", height: "height" }, host: { properties: { "style.--kirby-chart-height": "this._height" } }, viewQueries: [{ propertyName: "canvasElement", first: true, predicate: ["chartCanvas"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"chart-container\">\n <canvas #chartCanvas>\n <!-- Slotted content makes it possible to insert fallback content for screen readers \n https://www.chartjs.org/docs/latest/general/accessibility.html-->\n <ng-content></ng-content>\n </canvas>\n</div>\n", styles: [":host div{height:var(--kirby-chart-height, 300px);position:relative}\n"] }); }
|
|
1070
1070
|
}
|
|
1071
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: BaseChartComponent, decorators: [{
|
|
1072
1072
|
type: Component,
|
|
1073
1073
|
args: [{ selector: 'kirby-base-chart', standalone: false, template: "<div class=\"chart-container\">\n <canvas #chartCanvas>\n <!-- Slotted content makes it possible to insert fallback content for screen readers \n https://www.chartjs.org/docs/latest/general/accessibility.html-->\n <ng-content></ng-content>\n </canvas>\n</div>\n", styles: [":host div{height:var(--kirby-chart-height, 300px);position:relative}\n"] }]
|
|
1074
1074
|
}], ctorParameters: () => [{ type: ChartJSService }], propDecorators: { type: [{
|
|
@@ -1098,10 +1098,10 @@ class ChartComponent extends BaseChartComponent {
|
|
|
1098
1098
|
super(...arguments);
|
|
1099
1099
|
this.type = 'column';
|
|
1100
1100
|
}
|
|
1101
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1102
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1101
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1102
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0", type: ChartComponent, isStandalone: false, selector: "kirby-chart", inputs: { type: "type" }, providers: [ChartJSService], usesInheritance: true, ngImport: i0, template: "<div class=\"chart-container\">\n <canvas #chartCanvas>\n <!-- Slotted content makes it possible to insert fallback content for screen readers \n https://www.chartjs.org/docs/latest/general/accessibility.html-->\n <ng-content></ng-content>\n </canvas>\n</div>\n", styles: [":host div{height:var(--kirby-chart-height, 300px);position:relative}\n"] }); }
|
|
1103
1103
|
}
|
|
1104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ChartComponent, decorators: [{
|
|
1105
1105
|
type: Component,
|
|
1106
1106
|
args: [{ selector: 'kirby-chart', providers: [ChartJSService], standalone: false, template: "<div class=\"chart-container\">\n <canvas #chartCanvas>\n <!-- Slotted content makes it possible to insert fallback content for screen readers \n https://www.chartjs.org/docs/latest/general/accessibility.html-->\n <ng-content></ng-content>\n </canvas>\n</div>\n", styles: [":host div{height:var(--kirby-chart-height, 300px);position:relative}\n"] }]
|
|
1107
1107
|
}], propDecorators: { type: [{
|
|
@@ -1196,10 +1196,10 @@ class StockChartJSService extends ChartJSService {
|
|
|
1196
1196
|
});
|
|
1197
1197
|
return { value, pointer };
|
|
1198
1198
|
}
|
|
1199
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1200
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1199
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: StockChartJSService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1200
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: StockChartJSService }); }
|
|
1201
1201
|
}
|
|
1202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: StockChartJSService, decorators: [{
|
|
1203
1203
|
type: Injectable
|
|
1204
1204
|
}] });
|
|
1205
1205
|
|
|
@@ -1211,10 +1211,10 @@ class StockChartComponent extends BaseChartComponent {
|
|
|
1211
1211
|
renderChart() {
|
|
1212
1212
|
super.renderChart({ dataLabelOptions: this.dataLabelOptions });
|
|
1213
1213
|
}
|
|
1214
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1215
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1214
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: StockChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1215
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0", type: StockChartComponent, isStandalone: false, selector: "kirby-stock-chart", inputs: { dataLabelOptions: "dataLabelOptions" }, providers: [{ provide: ChartJSService, useClass: StockChartJSService }], usesInheritance: true, ngImport: i0, template: "<div class=\"chart-container\">\n <canvas #chartCanvas>\n <!-- Slotted content makes it possible to insert fallback content for screen readers \n https://www.chartjs.org/docs/latest/general/accessibility.html-->\n <ng-content></ng-content>\n </canvas>\n</div>\n", styles: [":host div{height:var(--kirby-chart-height, 300px);position:relative}\n"] }); }
|
|
1216
1216
|
}
|
|
1217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: StockChartComponent, decorators: [{
|
|
1218
1218
|
type: Component,
|
|
1219
1219
|
args: [{ selector: 'kirby-stock-chart', providers: [{ provide: ChartJSService, useClass: StockChartJSService }], standalone: false, template: "<div class=\"chart-container\">\n <canvas #chartCanvas>\n <!-- Slotted content makes it possible to insert fallback content for screen readers \n https://www.chartjs.org/docs/latest/general/accessibility.html-->\n <ng-content></ng-content>\n </canvas>\n</div>\n", styles: [":host div{height:var(--kirby-chart-height, 300px);position:relative}\n"] }]
|
|
1220
1220
|
}], propDecorators: { dataLabelOptions: [{
|
|
@@ -1222,11 +1222,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
1222
1222
|
}] } });
|
|
1223
1223
|
|
|
1224
1224
|
class ChartsModule {
|
|
1225
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1226
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1227
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1225
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ChartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1226
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: ChartsModule, declarations: [ChartComponent, StockChartComponent], exports: [ChartComponent, StockChartComponent] }); }
|
|
1227
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ChartsModule, providers: [ChartConfigService] }); }
|
|
1228
1228
|
}
|
|
1229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ChartsModule, decorators: [{
|
|
1230
1230
|
type: NgModule,
|
|
1231
1231
|
args: [{
|
|
1232
1232
|
declarations: [ChartComponent, StockChartComponent],
|