@ids-group-ltd/ids-design-system 0.13.2 → 0.13.4
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/CHANGELOG.md +1106 -9
- package/components.md +563 -44
- package/design-system.md +9 -0
- package/docs/agent/INDEX.md +58 -17
- package/docs/agent/charts/chart-colour-which-palette-a-chart-takes.md +1 -1
- package/docs/agent/charts/column-series-component.md +8 -0
- package/docs/agent/charts/ds-bar-chart.md +6 -1
- package/docs/agent/charts/ds-chart-data-table.md +10 -0
- package/docs/agent/charts/ds-chart.md +8 -0
- package/docs/agent/charts/ds-column-chart.md +7 -2
- package/docs/agent/charts/ds-funnel-chart.md +5 -1
- package/docs/agent/charts/ds-heatmap-chart.md +20 -0
- package/docs/agent/charts/ds-line-chart.md +8 -4
- package/docs/agent/charts/{ds-donut-chart.md → ds-pie-chart.md} +10 -6
- package/docs/agent/charts/ds-scatter-chart.md +20 -0
- package/docs/agent/charts/ds-waterfall-chart.md +20 -0
- package/docs/agent/charts/line-series-component.md +8 -0
- package/docs/agent/charts/reference-label-component.md +8 -0
- package/docs/agent/charts/reference-line-component.md +8 -0
- package/docs/agent/charts/series-annotation-component.md +10 -0
- package/docs/agent/feedback/ds-alert.md +4 -0
- package/docs/agent/feedback/ds-avatar-group.md +4 -0
- package/docs/agent/feedback/ds-avatar.md +4 -0
- package/docs/agent/feedback/ds-badge.md +4 -0
- package/docs/agent/feedback/ds-banner.md +5 -1
- package/docs/agent/feedback/ds-bar.md +17 -0
- package/docs/agent/feedback/ds-description-item.md +8 -0
- package/docs/agent/feedback/ds-description-list.md +8 -0
- package/docs/agent/feedback/ds-empty-state.md +4 -0
- package/docs/agent/feedback/ds-list-item.md +8 -0
- package/docs/agent/feedback/ds-list.md +8 -0
- package/docs/agent/feedback/ds-loading-overlay.md +8 -0
- package/docs/agent/feedback/ds-skeleton.md +4 -0
- package/docs/agent/feedback/ds-spinner.md +4 -0
- package/docs/agent/feedback/ds-stat.md +4 -0
- package/docs/agent/feedback/ds-status-dot.md +4 -0
- package/docs/agent/feedback/ds-tag.md +4 -0
- package/docs/agent/feedback/ds-timeline-item.md +8 -0
- package/docs/agent/feedback/ds-toast-region.md +8 -0
- package/docs/agent/feedback/ds-toast.md +4 -0
- package/docs/agent/feedback/ds-tree.md +8 -0
- package/docs/agent/forms/ds-autocomplete.md +4 -0
- package/docs/agent/forms/ds-button-group.md +8 -0
- package/docs/agent/forms/ds-button.md +6 -2
- package/docs/agent/forms/ds-checkbox.md +4 -0
- package/docs/agent/forms/ds-color-picker.md +8 -0
- package/docs/agent/forms/ds-date-picker.md +5 -1
- package/docs/agent/forms/ds-dropzone.md +4 -0
- package/docs/agent/forms/ds-field-group.md +8 -0
- package/docs/agent/forms/ds-filter-bar.md +8 -0
- package/docs/agent/forms/ds-icon-button.md +4 -0
- package/docs/agent/forms/ds-input.md +13 -1
- package/docs/agent/forms/ds-multi-select.md +4 -0
- package/docs/agent/forms/ds-number-stepper.md +4 -0
- package/docs/agent/forms/ds-otp-input.md +8 -0
- package/docs/agent/forms/ds-password-rules.md +8 -0
- package/docs/agent/forms/ds-radio-group.md +8 -0
- package/docs/agent/forms/ds-radio.md +4 -0
- package/docs/agent/forms/ds-search.md +4 -0
- package/docs/agent/forms/ds-segmented.md +8 -0
- package/docs/agent/forms/ds-select.md +4 -0
- package/docs/agent/forms/ds-slider.md +8 -0
- package/docs/agent/forms/ds-split-button.md +8 -0
- package/docs/agent/forms/ds-switch.md +4 -0
- package/docs/agent/forms/ds-textarea.md +5 -1
- package/docs/agent/forms/ds-time-picker.md +8 -0
- package/docs/agent/forms/ds-toggle-button.md +8 -0
- package/docs/agent/forms/filter-item-directive.md +8 -0
- package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +4 -0
- package/docs/agent/navigation/ds-app-layout.md +6 -2
- package/docs/agent/navigation/ds-auth-layout.md +5 -1
- package/docs/agent/navigation/ds-breadcrumbs.md +4 -0
- package/docs/agent/navigation/ds-container.md +8 -0
- package/docs/agent/navigation/ds-divider.md +4 -0
- package/docs/agent/navigation/ds-inline.md +8 -0
- package/docs/agent/navigation/ds-page-footer.md +4 -0
- package/docs/agent/navigation/ds-page-header.md +5 -1
- package/docs/agent/navigation/ds-pagination.md +5 -1
- package/docs/agent/navigation/ds-sidenav-footer.md +8 -0
- package/docs/agent/navigation/ds-sidenav-group.md +4 -0
- package/docs/agent/navigation/ds-sidenav-item.md +4 -0
- package/docs/agent/navigation/ds-sidenav.md +4 -0
- package/docs/agent/navigation/ds-stack.md +8 -0
- package/docs/agent/navigation/ds-stepper.md +4 -0
- package/docs/agent/navigation/ds-tab.md +8 -0
- package/docs/agent/navigation/ds-tabs.md +5 -1
- package/docs/agent/overlays/ds-bottom-sheet.md +4 -0
- package/docs/agent/overlays/ds-drawer.md +4 -0
- package/docs/agent/overlays/ds-menu.md +4 -0
- package/docs/agent/overlays/ds-modal-card.md +4 -0
- package/docs/agent/overlays/ds-modal.md +4 -0
- package/docs/agent/overlays/ds-popover.md +4 -0
- package/docs/agent/overlays/ds-tooltip-panel.md +8 -0
- package/docs/agent/overlays/ds-tooltip.md +4 -0
- package/docs/agent/surfaces/ds-accordion-item.md +8 -0
- package/docs/agent/surfaces/ds-accordion.md +4 -0
- package/docs/agent/surfaces/ds-card.md +6 -2
- package/docs/agent/tables/ds-cell-template.md +8 -0
- package/docs/agent/tables/ds-table-columns.md +8 -0
- package/docs/agent/tables/ds-table-export.md +8 -0
- package/docs/agent/tables/ds-table.md +9 -2
- package/docs/agent/tables/header-filter-directive.md +8 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +10 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +19 -19
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +7 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +119 -30
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +95 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +7 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +32 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +84 -43
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +1322 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +164 -126
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +23 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +32 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +217 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +185 -573
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +6 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +7 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +14 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +391 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +300 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +9 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +7 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +4 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +9 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +34 -21
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +252 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +429 -24
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +8 -4
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.10.0.json +2 -2
- package/migrations/0.10.1.json +3 -3
- package/migrations/0.10.2.json +8 -28
- package/migrations/0.11.0.json +3 -3
- package/migrations/0.11.1.json +15 -15
- package/migrations/0.11.2.json +9 -9
- package/migrations/0.11.3.json +1 -1
- package/migrations/0.11.4.json +8 -8
- package/migrations/0.12.1.json +1 -1
- package/migrations/0.12.2.json +1 -1
- package/migrations/0.12.3.json +3 -3
- package/migrations/0.13.0.json +24 -32
- package/migrations/0.13.1.json +5 -5
- package/migrations/0.13.3.json +211 -0
- package/migrations/0.13.4.json +994 -0
- package/migrations/0.5.0.json +1 -1
- package/migrations/0.8.0.json +4 -3
- package/migrations/0.9.0.json +1 -1
- package/package.json +57 -25
- package/styles/_chart-frame.scss +31 -8
- package/styles/_check-box.scss +12 -12
- package/styles/_dropdown-overlay.scss +14 -10
- package/styles/_field-box.scss +3 -3
- package/styles/_field-label.scss +7 -7
- package/styles/_overlay-motion.scss +1 -1
- package/styles/_table-controls.scss +3 -3
- package/styles/_tokens-charts.scss +69 -12
- package/styles/_tokens.scss +3 -3
- package/styles/_typography.scss +101 -101
- package/themes/dark/_theme.scss +13 -0
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +5 -4
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +17 -17
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -2
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +37 -3
- package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +63 -0
- package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +11 -4
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +729 -0
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +99 -38
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -7
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +4 -4
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +9 -1
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +124 -0
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +84 -148
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +13 -1
- package/types/{ids-group-ltd-ids-design-system-components-donut-chart.d.ts → ids-group-ltd-ids-design-system-components-pie-chart.d.ts} +35 -17
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +183 -0
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +5 -1
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +11 -11
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +5 -2
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +116 -0
- package/types/ids-group-ltd-ids-design-system-components.d.ts +151 -9
- package/types/ids-group-ltd-ids-design-system-core.d.ts +78 -4
- package/types/ids-group-ltd-ids-design-system.d.ts +16 -12
- package/docs/agent/feedback/ds-meter.md +0 -11
- package/docs/agent/feedback/ds-progress.md +0 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +0 -351
- package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +0 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-meter.mjs +0 -61
- package/fesm2022/ids-group-ltd-ids-design-system-components-meter.mjs.map +0 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +0 -65
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +0 -1
- package/types/ids-group-ltd-ids-design-system-components-meter.d.ts +0 -36
- package/types/ids-group-ltd-ids-design-system-components-progress.d.ts +0 -40
|
@@ -1,40 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, booleanAttribute, output,
|
|
3
|
-
import {
|
|
2
|
+
import { input, booleanAttribute, output, numberAttribute, computed, model, signal, contentChild, viewChild, inject, ElementRef, afterNextRender, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
+
import { resolveChartDefaults, CHART_SERIES_COLORS, formatPercent, describeSeries } from '@ids-group-ltd/ids-design-system/components';
|
|
4
4
|
import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
|
|
5
|
-
import {
|
|
5
|
+
import { stackOffsets, ChartComponent, chartViewHeight, CHART_DEFAULT_VALUE_SPACE, LineSeriesComponent, SeriesAnnotationComponent } from '@ids-group-ltd/ids-design-system/components/chart';
|
|
6
6
|
import { ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
7
7
|
import { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';
|
|
8
|
+
import { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
|
|
8
9
|
|
|
9
|
-
const LINE_CHART_VIEW_WIDTH = 640;
|
|
10
|
-
const LINE_CHART_VIEW_HEIGHT = 320;
|
|
11
10
|
const LINE_CHART_DEFAULT_TICK_COUNT = 5;
|
|
12
|
-
const LINE_CHART_AXIS_LABEL_GAP = 8;
|
|
13
|
-
const AXIS_GUTTER = 46;
|
|
14
|
-
const BARE_EDGE_GUTTER = 12;
|
|
15
|
-
const PLOT_TOP = 14;
|
|
16
|
-
const CATEGORY_GUTTER = 30;
|
|
17
|
-
const CATEGORY_LABEL_OFFSET = 18;
|
|
18
|
-
const STACKED_PLOT_GAP = 34;
|
|
19
|
-
const MAX_CATEGORY_LABELS = 12;
|
|
20
|
-
const COORDINATE_DECIMALS = 2;
|
|
21
|
-
const TICK_DECIMALS = 6;
|
|
22
|
-
const ROUND_STEP_FACTORS = [1, 2, 5, 10];
|
|
23
|
-
// A step divided out of a domain and multiplied back rarely lands on itself, so a
|
|
24
|
-
// candidate equal to the minimum can compare as smaller by one bit and push the
|
|
25
|
-
// whole axis up a rung.
|
|
26
|
-
const ROUND_STEP_TOLERANCE = 1 - 1e-12;
|
|
27
|
-
function roundTo(value, decimals) {
|
|
28
|
-
if (!Number.isFinite(value)) {
|
|
29
|
-
return 0;
|
|
30
|
-
}
|
|
31
|
-
return Number(value.toFixed(decimals));
|
|
32
|
-
}
|
|
33
|
-
function normalizeTickCount(tickCount) {
|
|
34
|
-
return Number.isFinite(tickCount) && tickCount >= 1
|
|
35
|
-
? Math.floor(tickCount)
|
|
36
|
-
: LINE_CHART_DEFAULT_TICK_COUNT;
|
|
37
|
-
}
|
|
38
11
|
/** One reading per category, however long the series actually was. A series longer
|
|
39
12
|
* than `categories` loses its tail and a shorter one ends early: a line that stops
|
|
40
13
|
* short is a defect the reader can see, while a thrown error takes down the page
|
|
@@ -52,9 +25,9 @@ function alignSeriesValues(data, categoryCount, gaps) {
|
|
|
52
25
|
}
|
|
53
26
|
return aligned;
|
|
54
27
|
}
|
|
55
|
-
/** Largest finite reading across the given series, or zero. Never negative:
|
|
56
|
-
*
|
|
57
|
-
*
|
|
28
|
+
/** Largest finite reading across the given series, or zero. Never negative: this
|
|
29
|
+
* feeds the ceiling handed to `ds-chart`, which raises its domain and never lowers
|
|
30
|
+
* it, so a negative here would pin an axis below its own data. */
|
|
58
31
|
function domainMaxOf(valueGroups) {
|
|
59
32
|
let max = 0;
|
|
60
33
|
for (const values of valueGroups) {
|
|
@@ -66,186 +39,6 @@ function domainMaxOf(valueGroups) {
|
|
|
66
39
|
}
|
|
67
40
|
return max;
|
|
68
41
|
}
|
|
69
|
-
/** The smallest 1/2/5/10 × power-of-ten step that is not below `minimumStep`.
|
|
70
|
-
* `niceMax` picks its own number of intervals, so it cannot answer this: an aligned
|
|
71
|
-
* secondary axis has to reach its data within the intervals the primary already
|
|
72
|
-
* drew. */
|
|
73
|
-
function roundStepAtLeast(minimumStep) {
|
|
74
|
-
if (!Number.isFinite(minimumStep) || minimumStep <= 0) {
|
|
75
|
-
return 0;
|
|
76
|
-
}
|
|
77
|
-
const base = Math.pow(10, Math.floor(Math.log10(minimumStep)));
|
|
78
|
-
for (const factor of ROUND_STEP_FACTORS) {
|
|
79
|
-
const candidate = factor * base;
|
|
80
|
-
if (candidate >= minimumStep * ROUND_STEP_TOLERANCE) {
|
|
81
|
-
return candidate;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return 10 * base;
|
|
85
|
-
}
|
|
86
|
-
function nicedAxis(domainMax, tickCount) {
|
|
87
|
-
return {
|
|
88
|
-
max: niceMax(domainMax, tickCount),
|
|
89
|
-
ticks: tickValues(domainMax, tickCount),
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
/** Both y axes, as the four modes define them. `'rounded'` and `'exact'` share the
|
|
93
|
-
* primary's gridlines and differ only in the step they divide the secondary domain
|
|
94
|
-
* by: `'rounded'` snaps the step up to a round number and overshoots the data,
|
|
95
|
-
* `'exact'` takes the domain itself and lands on it. `'independent'` and
|
|
96
|
-
* `'stacked'` nice each axis on its own — stacked plots sit one above the other,
|
|
97
|
-
* so there is nothing to align. */
|
|
98
|
-
function axisLayout(primaryDomainMax, secondaryDomainMax, mode, tickCount) {
|
|
99
|
-
const count = normalizeTickCount(tickCount);
|
|
100
|
-
const primary = nicedAxis(primaryDomainMax, count);
|
|
101
|
-
if (secondaryDomainMax === null) {
|
|
102
|
-
return { primary, secondary: null, alignedTicks: true };
|
|
103
|
-
}
|
|
104
|
-
const intervals = primary.ticks.length - 1;
|
|
105
|
-
const canAlign = (mode === 'rounded' || mode === 'exact') &&
|
|
106
|
-
intervals >= 1 &&
|
|
107
|
-
Number.isFinite(secondaryDomainMax) &&
|
|
108
|
-
secondaryDomainMax > 0;
|
|
109
|
-
if (!canAlign) {
|
|
110
|
-
return {
|
|
111
|
-
primary,
|
|
112
|
-
secondary: nicedAxis(secondaryDomainMax, count),
|
|
113
|
-
alignedTicks: false,
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
const step = mode === 'rounded'
|
|
117
|
-
? roundStepAtLeast(secondaryDomainMax / intervals)
|
|
118
|
-
: secondaryDomainMax / intervals;
|
|
119
|
-
if (step <= 0) {
|
|
120
|
-
return { primary, secondary: { max: 0, ticks: [0] }, alignedTicks: true };
|
|
121
|
-
}
|
|
122
|
-
const ticks = [];
|
|
123
|
-
for (let index = 0; index <= intervals; index++) {
|
|
124
|
-
ticks.push(roundTo(step * index, TICK_DECIMALS));
|
|
125
|
-
}
|
|
126
|
-
return {
|
|
127
|
-
primary,
|
|
128
|
-
secondary: { max: roundTo(step * intervals, TICK_DECIMALS), ticks },
|
|
129
|
-
alignedTicks: true,
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
function chartLayout(mode, hasSecondaryAxis) {
|
|
133
|
-
const stacked = mode === 'stacked' && hasSecondaryAxis;
|
|
134
|
-
const left = AXIS_GUTTER;
|
|
135
|
-
const right = hasSecondaryAxis && !stacked ? AXIS_GUTTER : BARE_EDGE_GUTTER;
|
|
136
|
-
const width = LINE_CHART_VIEW_WIDTH - left - right;
|
|
137
|
-
const plotBottom = LINE_CHART_VIEW_HEIGHT - CATEGORY_GUTTER;
|
|
138
|
-
const categoryLabelY = plotBottom + CATEGORY_LABEL_OFFSET;
|
|
139
|
-
if (!stacked) {
|
|
140
|
-
const plot = {
|
|
141
|
-
left,
|
|
142
|
-
top: PLOT_TOP,
|
|
143
|
-
width,
|
|
144
|
-
height: plotBottom - PLOT_TOP,
|
|
145
|
-
};
|
|
146
|
-
return {
|
|
147
|
-
primaryPlot: plot,
|
|
148
|
-
secondaryPlot: plot,
|
|
149
|
-
categoryLabelY,
|
|
150
|
-
stacked: false,
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
const height = (plotBottom - PLOT_TOP - STACKED_PLOT_GAP) / 2;
|
|
154
|
-
return {
|
|
155
|
-
primaryPlot: { left, top: PLOT_TOP, width, height },
|
|
156
|
-
secondaryPlot: {
|
|
157
|
-
left,
|
|
158
|
-
top: PLOT_TOP + height + STACKED_PLOT_GAP,
|
|
159
|
-
width,
|
|
160
|
-
height,
|
|
161
|
-
},
|
|
162
|
-
categoryLabelY,
|
|
163
|
-
stacked: true,
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
function categoryCenters(count, plot) {
|
|
167
|
-
const total = Number.isFinite(count) && count > 0 ? Math.floor(count) : 0;
|
|
168
|
-
const scale = pointScale(total, plot.width);
|
|
169
|
-
const centers = [];
|
|
170
|
-
for (let index = 0; index < total; index++) {
|
|
171
|
-
centers.push(plot.left + scale.position(index));
|
|
172
|
-
}
|
|
173
|
-
return centers;
|
|
174
|
-
}
|
|
175
|
-
/** The y a reading sits at, always inside the plot. The clamp is what keeps a
|
|
176
|
-
* negative reading — which no zero-based axis can place — off the category labels
|
|
177
|
-
* below, and the finite test is what stops an unplottable one becoming `NaN`. */
|
|
178
|
-
function valueY(value, axisMax, plot) {
|
|
179
|
-
const baseline = plot.top + plot.height;
|
|
180
|
-
const y = baseline - linearScale(axisMax, plot.height)(value);
|
|
181
|
-
if (!Number.isFinite(y)) {
|
|
182
|
-
return baseline;
|
|
183
|
-
}
|
|
184
|
-
return Math.min(Math.max(y, plot.top), baseline);
|
|
185
|
-
}
|
|
186
|
-
function seriesPoints(values, axisMax, plot, centers) {
|
|
187
|
-
return values.map((value, index) => {
|
|
188
|
-
const x = centers[index];
|
|
189
|
-
if (value === null || !Number.isFinite(value) || !Number.isFinite(x)) {
|
|
190
|
-
return null;
|
|
191
|
-
}
|
|
192
|
-
return { categoryIndex: index, x, y: valueY(value, axisMax, plot), value };
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
function lineSegments(points) {
|
|
196
|
-
const segments = [];
|
|
197
|
-
let current = [];
|
|
198
|
-
for (const point of points) {
|
|
199
|
-
if (point === null) {
|
|
200
|
-
if (current.length > 0) {
|
|
201
|
-
segments.push(current);
|
|
202
|
-
}
|
|
203
|
-
current = [];
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
current.push(point);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
if (current.length > 0) {
|
|
210
|
-
segments.push(current);
|
|
211
|
-
}
|
|
212
|
-
return segments;
|
|
213
|
-
}
|
|
214
|
-
/** `''` rather than a partial list when a coordinate is unplottable: one `NaN` in a
|
|
215
|
-
* `points` list or a path `d` voids the whole attribute, and the line then vanishes
|
|
216
|
-
* with nothing logged. */
|
|
217
|
-
function polylinePoints(segment) {
|
|
218
|
-
if (segment.length === 0 || !segment.every(isPlottable)) {
|
|
219
|
-
return '';
|
|
220
|
-
}
|
|
221
|
-
return segment.map((point) => coordinatePair(point)).join(' ');
|
|
222
|
-
}
|
|
223
|
-
function areaPath(segment, baselineY) {
|
|
224
|
-
if (segment.length < 2 ||
|
|
225
|
-
!Number.isFinite(baselineY) ||
|
|
226
|
-
!segment.every(isPlottable)) {
|
|
227
|
-
return '';
|
|
228
|
-
}
|
|
229
|
-
const first = segment[0];
|
|
230
|
-
const last = segment[segment.length - 1];
|
|
231
|
-
const along = segment.map((point) => coordinatePair(point)).join(' L ');
|
|
232
|
-
const baseline = roundTo(baselineY, COORDINATE_DECIMALS);
|
|
233
|
-
return `M ${along} L ${roundTo(last.x, COORDINATE_DECIMALS)},${baseline} L ${roundTo(first.x, COORDINATE_DECIMALS)},${baseline} Z`;
|
|
234
|
-
}
|
|
235
|
-
function isPlottable(point) {
|
|
236
|
-
return Number.isFinite(point.x) && Number.isFinite(point.y);
|
|
237
|
-
}
|
|
238
|
-
function coordinatePair(point) {
|
|
239
|
-
return `${roundTo(point.x, COORDINATE_DECIMALS)},${roundTo(point.y, COORDINATE_DECIMALS)}`;
|
|
240
|
-
}
|
|
241
|
-
/** Show every nth category label. Every label at 60 categories is a grey smear, and
|
|
242
|
-
* the axis stops saying anything at all. */
|
|
243
|
-
function categoryLabelStride(count, maxLabels = MAX_CATEGORY_LABELS) {
|
|
244
|
-
if (!Number.isFinite(count) || count <= 0 || maxLabels < 1) {
|
|
245
|
-
return 1;
|
|
246
|
-
}
|
|
247
|
-
return Math.max(1, Math.ceil(count / maxLabels));
|
|
248
|
-
}
|
|
249
42
|
function paletteIndexFor(slot, index, paletteSize) {
|
|
250
43
|
if (!Number.isFinite(paletteSize) || paletteSize < 1) {
|
|
251
44
|
return 0;
|
|
@@ -256,12 +49,8 @@ function paletteIndexFor(slot, index, paletteSize) {
|
|
|
256
49
|
return ((chosen % paletteSize) + paletteSize) % paletteSize;
|
|
257
50
|
}
|
|
258
51
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
// View units between a reading and the label above it, and the margin inside which a label
|
|
262
|
-
// anchors to its own edge instead of centring. Both in the 640x320 viewBox.
|
|
263
|
-
const ANNOTATION_GAP = 12;
|
|
264
|
-
const ANNOTATION_EDGE_GUARD = 48;
|
|
52
|
+
/** Matches `--ds-line-chart-plot-height`, for the frame before the first style read and for SSR. */
|
|
53
|
+
const DEFAULT_PLOT_HEIGHT = 240;
|
|
265
54
|
// One dash per palette slot, in the same order the colours are. Slot 1 stays solid so a
|
|
266
55
|
// single-series chart is unchanged by turning patterns on.
|
|
267
56
|
const SERIES_DASH_ARRAYS = [
|
|
@@ -274,9 +63,6 @@ const SERIES_DASH_ARRAYS = [
|
|
|
274
63
|
'4 2',
|
|
275
64
|
'14 5',
|
|
276
65
|
];
|
|
277
|
-
function baselineOf(plot) {
|
|
278
|
-
return plot.top + plot.height;
|
|
279
|
-
}
|
|
280
66
|
class LineChartComponent {
|
|
281
67
|
/** X labels. Every series' `data` is read against this length. */
|
|
282
68
|
categories = input.required(...(ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []));
|
|
@@ -284,7 +70,7 @@ class LineChartComponent {
|
|
|
284
70
|
* loses its tail and a shorter one ends early. */
|
|
285
71
|
series = input.required(...(ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []));
|
|
286
72
|
/** How a secondary axis relates to the primary one. */
|
|
287
|
-
yAxisMode = input('
|
|
73
|
+
yAxisMode = input('aligned', ...(ngDevMode ? [{ debugName: "yAxisMode" }] : /* istanbul ignore next */ []));
|
|
288
74
|
/** Draws a dot at every reading. Off, the dots appear on hover and on focus only. */
|
|
289
75
|
showMarkers = input(true, { ...(ngDevMode ? { debugName: "showMarkers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
290
76
|
/** Labels pinned over their readings, for the points that have to read without a pointer. They
|
|
@@ -305,7 +91,6 @@ class LineChartComponent {
|
|
|
305
91
|
* crosshair left standing after the pointer has gone needs a reader who knows why. `pointClicked`
|
|
306
92
|
* fires either way — pinning is a state, not a handler. */
|
|
307
93
|
pinOnClick = input(false, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
308
|
-
pinnedCategory = signal(false, ...(ngDevMode ? [{ debugName: "pinnedCategory" }] : /* istanbul ignore next */ []));
|
|
309
94
|
/** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the
|
|
310
95
|
* one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed
|
|
311
96
|
* marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full
|
|
@@ -315,6 +100,18 @@ class LineChartComponent {
|
|
|
315
100
|
/** What a `null` reading draws. The default refuses to assert that a missing
|
|
316
101
|
* reading is a zero. */
|
|
317
102
|
gaps = input('break', ...(ngDevMode ? [{ debugName: "gaps" }] : /* istanbul ignore next */ []));
|
|
103
|
+
/** How the line joins its readings. `'linear'` by default, which asserts nothing the data does
|
|
104
|
+
* not say; a curve is a claim about what happened BETWEEN two readings. */
|
|
105
|
+
curve = input('linear', ...(ngDevMode ? [{ debugName: "curve" }] : /* istanbul ignore next */ []));
|
|
106
|
+
/** How several series share the value axis. Stacking runs per AXIS, so a series on the secondary
|
|
107
|
+
* axis never piles onto one measured against the primary. */
|
|
108
|
+
stack = input('none', ...(ngDevMode ? [{ debugName: "stack" }] : /* istanbul ignore next */ []));
|
|
109
|
+
/** Names the first axis's unit beside it. On a plot carrying two scales the colour says which
|
|
110
|
+
* line reads which axis and this says what the numbers ARE - and a reader who has neither is
|
|
111
|
+
* left comparing two quantities that may not be comparable at all. */
|
|
112
|
+
yAxisLabel = input(null, ...(ngDevMode ? [{ debugName: "yAxisLabel" }] : /* istanbul ignore next */ []));
|
|
113
|
+
/** `yAxisLabel` for the second axis. */
|
|
114
|
+
secondaryAxisLabel = input(null, ...(ngDevMode ? [{ debugName: "secondaryAxisLabel" }] : /* istanbul ignore next */ []));
|
|
318
115
|
/** How many value-axis ticks to aim for. A hint, not a count: ticks snap to a round step, so
|
|
319
116
|
* the axis may carry one more or one fewer. */
|
|
320
117
|
tickCount = input(LINE_CHART_DEFAULT_TICK_COUNT, { ...(ngDevMode ? { debugName: "tickCount" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
@@ -371,12 +168,12 @@ class LineChartComponent {
|
|
|
371
168
|
* included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then the browser's locale
|
|
372
169
|
* grouping with a K/M/B suffix past four digits. */
|
|
373
170
|
valueFormat = input(null, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
171
|
+
defaults = resolveChartDefaults(this);
|
|
172
|
+
frameResolved = this.defaults.frame;
|
|
173
|
+
dataTableResolved = this.defaults.dataTable;
|
|
174
|
+
emptyTextResolved = this.defaults.emptyText;
|
|
175
|
+
errorTextResolved = this.defaults.errorText;
|
|
176
|
+
valueFormatResolved = this.defaults.valueFormat;
|
|
380
177
|
resolvedSeries = computed(() => {
|
|
381
178
|
const categoryCount = this.categories().length;
|
|
382
179
|
const gaps = this.gaps();
|
|
@@ -386,6 +183,7 @@ class LineChartComponent {
|
|
|
386
183
|
return {
|
|
387
184
|
series,
|
|
388
185
|
values: alignSeriesValues(series.data, categoryCount, gaps),
|
|
186
|
+
lowerValues: null,
|
|
389
187
|
onSecondaryAxis: series.axis === 'secondary',
|
|
390
188
|
color: CHART_SERIES_COLORS[slot],
|
|
391
189
|
dash: patterns ? SERIES_DASH_ARRAYS[slot] : null,
|
|
@@ -419,209 +217,63 @@ class LineChartComponent {
|
|
|
419
217
|
* all; `40` is the documented non-zero step. The total is capped, so a long list of series does
|
|
420
218
|
* not crawl in. */
|
|
421
219
|
staggerMs = input(0, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
422
|
-
markStagger(index) {
|
|
423
|
-
return `${staggerDelay(index, this.staggerMs())}ms`;
|
|
424
|
-
}
|
|
425
220
|
highlightedSeries = signal(null, ...(ngDevMode ? [{ debugName: "highlightedSeries" }] : /* istanbul ignore next */ []));
|
|
221
|
+
/** Every series with its band's own span, stacked per axis. Hiding a series does NOT re-pile the
|
|
222
|
+
* rest, for the same reason `rescaleOnHide` defaults off: switching one off must not move the
|
|
223
|
+
* ones still drawn. A `null` stays a hole in the line and contributes nothing to the pile. */
|
|
224
|
+
stackedSeries = computed(() => {
|
|
225
|
+
const mode = this.stack();
|
|
226
|
+
const entries = this.resolvedSeries();
|
|
227
|
+
if (mode === 'none') {
|
|
228
|
+
return entries;
|
|
229
|
+
}
|
|
230
|
+
const spans = new Map();
|
|
231
|
+
for (const secondary of [false, true]) {
|
|
232
|
+
const onThisAxis = entries.filter((entry) => entry.onSecondaryAxis === secondary);
|
|
233
|
+
const offsets = stackOffsets(onThisAxis.map((entry) => entry.values.map((value) => value ?? 0)), mode);
|
|
234
|
+
onThisAxis.forEach((entry, index) => spans.set(entry, [...offsets[index]]));
|
|
235
|
+
}
|
|
236
|
+
return entries.map((entry) => {
|
|
237
|
+
const span = spans.get(entry);
|
|
238
|
+
if (!span) {
|
|
239
|
+
return entry;
|
|
240
|
+
}
|
|
241
|
+
return {
|
|
242
|
+
...entry,
|
|
243
|
+
values: entry.values.map((value, category) => value === null ? null : span[category].to),
|
|
244
|
+
lowerValues: entry.values.map((value, category) => value === null ? null : span[category].from),
|
|
245
|
+
};
|
|
246
|
+
});
|
|
247
|
+
}, ...(ngDevMode ? [{ debugName: "stackedSeries" }] : /* istanbul ignore next */ []));
|
|
426
248
|
visibleSeries = computed(() => {
|
|
427
249
|
const hidden = this.hiddenSeries();
|
|
428
|
-
return this.
|
|
250
|
+
return this.stackedSeries().filter((entry) => !hidden.includes(entry.series.id));
|
|
429
251
|
}, ...(ngDevMode ? [{ debugName: "visibleSeries" }] : /* istanbul ignore next */ []));
|
|
430
252
|
legendItems = computed(() => this.resolvedSeries().map((entry) => ({
|
|
431
253
|
id: entry.series.id,
|
|
432
254
|
label: entry.series.label,
|
|
433
255
|
color: entry.color,
|
|
434
256
|
})), ...(ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []));
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
:
|
|
447
|
-
const valuesOn = (secondary) => entries
|
|
448
|
-
.filter((entry) => entry.onSecondaryAxis === secondary)
|
|
449
|
-
.map((entry) => entry.values);
|
|
450
|
-
// The pin raises the axis, never lowers it: a maximum under the data would push readings off
|
|
451
|
-
// the top of the plot, and a chart that hides a value is worse than one with headroom.
|
|
452
|
-
const pinned = (asked, derived) => asked !== null && Number.isFinite(asked) && asked > derived
|
|
453
|
-
? asked
|
|
454
|
-
: derived;
|
|
455
|
-
return axisLayout(pinned(this.max(), domainMaxOf(valuesOn(false))), this.hasSecondaryAxis()
|
|
456
|
-
? pinned(this.maxSecondary(), domainMaxOf(valuesOn(true)))
|
|
457
|
-
: null, this.yAxisMode(), this.tickCount());
|
|
458
|
-
}, ...(ngDevMode ? [{ debugName: "axes" }] : /* istanbul ignore next */ []));
|
|
459
|
-
categoryPositions = computed(() => categoryCenters(this.categories().length, this.layout().primaryPlot), ...(ngDevMode ? [{ debugName: "categoryPositions" }] : /* istanbul ignore next */ []));
|
|
460
|
-
plottedSeries = computed(() => {
|
|
461
|
-
const axes = this.axes();
|
|
462
|
-
const centers = this.categoryPositions();
|
|
463
|
-
return this.visibleSeries().map((entry) => {
|
|
464
|
-
const plot = this.plotFor(entry.onSecondaryAxis);
|
|
465
|
-
const axisMax = entry.onSecondaryAxis && axes.secondary
|
|
466
|
-
? axes.secondary.max
|
|
467
|
-
: axes.primary.max;
|
|
468
|
-
const segments = lineSegments(seriesPoints(entry.values, axisMax, plot, centers));
|
|
469
|
-
const baselineY = plot.top + plot.height;
|
|
470
|
-
return {
|
|
471
|
-
...entry,
|
|
472
|
-
polylines: segments
|
|
473
|
-
.map((segment) => polylinePoints(segment))
|
|
474
|
-
.filter((points) => points.length > 0),
|
|
475
|
-
areaPaths: entry.series.area
|
|
476
|
-
? segments
|
|
477
|
-
.map((segment) => areaPath(segment, baselineY))
|
|
478
|
-
.filter((path) => path.length > 0)
|
|
479
|
-
: [],
|
|
480
|
-
markers: segments.flat(),
|
|
481
|
-
};
|
|
482
|
-
});
|
|
483
|
-
}, ...(ngDevMode ? [{ debugName: "plottedSeries" }] : /* istanbul ignore next */ []));
|
|
484
|
-
/** Annotations resolved onto the markers the plot already computed, so a label sits exactly on
|
|
485
|
-
* its reading and moves with it. One whose series is hidden or whose reading is missing has no
|
|
486
|
-
* marker and is dropped — a hidden series must not leave its label floating over the plot. */
|
|
487
|
-
placedAnnotations = computed(() => {
|
|
488
|
-
const plotted = this.plottedSeries();
|
|
489
|
-
return this.annotations().flatMap((annotation) => {
|
|
490
|
-
const entry = annotation.seriesId
|
|
491
|
-
? plotted.find((candidate) => candidate.series.id === annotation.seriesId)
|
|
492
|
-
: plotted[0];
|
|
493
|
-
const marker = entry?.markers.find((candidate) => candidate.categoryIndex === annotation.categoryIndex);
|
|
494
|
-
if (!entry || !marker) {
|
|
495
|
-
return [];
|
|
496
|
-
}
|
|
497
|
-
// Anchored away from the plot edges, because a centred label at the first or last category
|
|
498
|
-
// hangs half outside the viewBox and is clipped rather than merely tight.
|
|
499
|
-
const anchor = marker.x < ANNOTATION_EDGE_GUARD
|
|
500
|
-
? 'start'
|
|
501
|
-
: marker.x > LINE_CHART_VIEW_WIDTH - ANNOTATION_EDGE_GUARD
|
|
502
|
-
? 'end'
|
|
503
|
-
: 'middle';
|
|
504
|
-
return [
|
|
505
|
-
{
|
|
506
|
-
key: `${entry.series.id}:${annotation.categoryIndex}`,
|
|
507
|
-
label: annotation.label,
|
|
508
|
-
x: marker.x,
|
|
509
|
-
// Above the reading, and below it where there is no room — a peak sits at the top of
|
|
510
|
-
// the plot, which is exactly where a label clamped upward lands on its own marker.
|
|
511
|
-
y: marker.y - ANNOTATION_GAP >= ANNOTATION_GAP
|
|
512
|
-
? marker.y - ANNOTATION_GAP
|
|
513
|
-
: marker.y + ANNOTATION_GAP,
|
|
514
|
-
anchor,
|
|
515
|
-
},
|
|
516
|
-
];
|
|
517
|
-
});
|
|
518
|
-
}, ...(ngDevMode ? [{ debugName: "placedAnnotations" }] : /* istanbul ignore next */ []));
|
|
519
|
-
primaryTicks = computed(() => this.ticksFor(this.axes().primary.ticks, this.axes().primary.max, false), ...(ngDevMode ? [{ debugName: "primaryTicks" }] : /* istanbul ignore next */ []));
|
|
520
|
-
secondaryTicks = computed(() => {
|
|
521
|
-
const secondary = this.axes().secondary;
|
|
522
|
-
return secondary ? this.ticksFor(secondary.ticks, secondary.max, true) : [];
|
|
523
|
-
}, ...(ngDevMode ? [{ debugName: "secondaryTicks" }] : /* istanbul ignore next */ []));
|
|
524
|
-
/** Drawn only when the two axes do not share the primary's gridlines, and only
|
|
525
|
-
* when the axis has more than the single tick a degenerate domain leaves. */
|
|
526
|
-
showSecondaryGridlines = computed(() => !this.axes().alignedTicks && this.secondaryTicks().length > 1, ...(ngDevMode ? [{ debugName: "showSecondaryGridlines" }] : /* istanbul ignore next */ []));
|
|
527
|
-
stacked = computed(() => this.layout().stacked, ...(ngDevMode ? [{ debugName: "stacked" }] : /* istanbul ignore next */ []));
|
|
528
|
-
categoryLabelY = computed(() => this.layout().categoryLabelY, ...(ngDevMode ? [{ debugName: "categoryLabelY" }] : /* istanbul ignore next */ []));
|
|
529
|
-
/** The category under the pointer, or -1. */
|
|
530
|
-
host = inject(ElementRef);
|
|
531
|
-
activeCategory = signal(-1, ...(ngDevMode ? [{ debugName: "activeCategory" }] : /* istanbul ignore next */ []));
|
|
532
|
-
categoryBands = computed(() => pointScale(this.categories().length, this.layout().primaryPlot.width), ...(ngDevMode ? [{ debugName: "categoryBands" }] : /* istanbul ignore next */ []));
|
|
533
|
-
// The band is a slot CENTRED on its reading, so it starts half a step before it. At the two ends
|
|
534
|
-
// half of that slot is outside the plot, and clamping is what keeps the band off the axis labels
|
|
535
|
-
// rather than letting it hang past them.
|
|
536
|
-
activeBandX = computed(() => {
|
|
537
|
-
const plot = this.layout().primaryPlot;
|
|
538
|
-
const scale = this.categoryBands();
|
|
539
|
-
const center = plot.left + scale.position(this.activeCategory());
|
|
540
|
-
return Math.max(center - scale.step / 2, plot.left);
|
|
541
|
-
}, ...(ngDevMode ? [{ debugName: "activeBandX" }] : /* istanbul ignore next */ []));
|
|
542
|
-
activeBandWidth = computed(() => {
|
|
543
|
-
const plot = this.layout().primaryPlot;
|
|
544
|
-
const scale = this.categoryBands();
|
|
545
|
-
const center = plot.left + scale.position(this.activeCategory());
|
|
546
|
-
const start = Math.max(center - scale.step / 2, plot.left);
|
|
547
|
-
const end = Math.min(center + scale.step / 2, plot.left + plot.width);
|
|
548
|
-
return Math.max(end - start, 0);
|
|
549
|
-
}, ...(ngDevMode ? [{ debugName: "activeBandWidth" }] : /* istanbul ignore next */ []));
|
|
550
|
-
activeCategoryX = computed(() => this.activeBandX() + this.activeBandWidth() / 2, ...(ngDevMode ? [{ debugName: "activeCategoryX" }] : /* istanbul ignore next */ []));
|
|
551
|
-
onPlotPointer(event) {
|
|
552
|
-
const canvas = event.currentTarget;
|
|
553
|
-
const screen = canvas.getScreenCTM();
|
|
554
|
-
if (!screen) {
|
|
555
|
-
return;
|
|
556
|
-
}
|
|
557
|
-
// Client pixels are not viewBox units — the plot scales to the card's width.
|
|
558
|
-
const point = new DOMPoint(event.clientX, event.clientY).matrixTransform(screen.inverse());
|
|
559
|
-
const plot = this.layout().primaryPlot;
|
|
560
|
-
if (this.pinnedCategory()) {
|
|
561
|
-
return;
|
|
562
|
-
}
|
|
563
|
-
this.cancelCategoryClear();
|
|
564
|
-
const category = this.categoryBands().indexAt(point.x - plot.left);
|
|
565
|
-
this.activeCategory.set(category);
|
|
566
|
-
this.tooltipOrigin.set(this.tooltipAnchor() === 'pointer'
|
|
567
|
-
? { x: event.clientX, y: event.clientY }
|
|
568
|
-
: this.readingAnchor(screen, category));
|
|
569
|
-
}
|
|
570
|
-
/** The highest reading in the category, mapped back into client pixels. Anchoring there rather
|
|
571
|
-
* than at the cursor keeps the panel still while the pointer travels within one band, and puts
|
|
572
|
-
* it over the readings it names instead of over the finger. */
|
|
573
|
-
readingAnchor(screen, category) {
|
|
574
|
-
const tops = this.plottedSeries().flatMap((entry) => entry.markers
|
|
575
|
-
.filter((marker) => marker.categoryIndex === category)
|
|
576
|
-
.map((marker) => marker.y));
|
|
577
|
-
const y = tops.length ? Math.min(...tops) : this.layout().primaryPlot.top;
|
|
578
|
-
const point = new DOMPoint(this.plotLeft() + this.categoryBands().position(category), y).matrixTransform(screen);
|
|
579
|
-
return { x: point.x, y: point.y };
|
|
580
|
-
}
|
|
581
|
-
clearActiveCategory() {
|
|
582
|
-
if (this.pinnedCategory()) {
|
|
583
|
-
return;
|
|
584
|
-
}
|
|
585
|
-
// Same grace the element-mark charts get from `chartActiveMark`: the panel is portaled out of
|
|
586
|
-
// the plot, so leaving the plot fires before the pointer can reach it. Clearing at once made
|
|
587
|
-
// the panel unreachable, and — because the pane takes pointer events now — put the plot and the
|
|
588
|
-
// panel in a loop where each closed the other.
|
|
589
|
-
this.cancelCategoryClear();
|
|
590
|
-
this.pendingCategoryClear = setTimeout(() => {
|
|
591
|
-
this.pendingCategoryClear = null;
|
|
592
|
-
this.activeCategory.set(-1);
|
|
593
|
-
this.tooltipOrigin.set(null);
|
|
594
|
-
}, Math.max(this.tooltipLingerResolved(), 0));
|
|
595
|
-
}
|
|
596
|
-
/** The panel is portaled to the body, so the plot never sees the pointer arrive on it. This is
|
|
597
|
-
* the other half of the grace period: reaching the panel keeps it open, and leaving the panel for
|
|
598
|
-
* anything that is not the plot starts the clear the plot can no longer start itself. */
|
|
599
|
-
onPointerAnywhere(event) {
|
|
600
|
-
if (!(event.target instanceof Element) || this.pinnedCategory()) {
|
|
601
|
-
return;
|
|
602
|
-
}
|
|
603
|
-
if (event.target.closest('.ds-chart-tooltip-pane')) {
|
|
604
|
-
this.cancelCategoryClear();
|
|
605
|
-
return;
|
|
257
|
+
/** A normalized stack draws shares, not readings, so the axis has to say so - the value a tooltip
|
|
258
|
+
* or the annex table prints stays the reading, which is what `valueFormat` goes on formatting. */
|
|
259
|
+
axisFormat = computed(() => this.stack() === 'normalized'
|
|
260
|
+
? (value) => formatPercent(value, 1)
|
|
261
|
+
: this.valueFormatResolved(), ...(ngDevMode ? [{ debugName: "axisFormat" }] : /* istanbul ignore next */ []));
|
|
262
|
+
/** Each axis takes the colour of the series measured against it, but only where two scales share
|
|
263
|
+
* one plot: on a single-scale chart it would restate the marks' own colour in the furniture,
|
|
264
|
+
* and under `'split'` the two plots are already apart. The chart knows its own series colours,
|
|
265
|
+
* so this is derived rather than asked for. */
|
|
266
|
+
axisTint = computed(() => {
|
|
267
|
+
if (!this.hasSecondaryAxis() || this.yAxisMode() === 'split') {
|
|
268
|
+
return { primary: null, secondary: null };
|
|
606
269
|
}
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
clearTimeout(this.pendingCategoryClear);
|
|
615
|
-
this.pendingCategoryClear = null;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
tooltipLingerResolved = resolveWithConfig(this.tooltipLingerMs, (config) => config.chart?.tooltipLingerMs, 0);
|
|
619
|
-
pendingCategoryClear = null;
|
|
620
|
-
releaseCategoryPin() {
|
|
621
|
-
this.pinnedCategory.set(false);
|
|
622
|
-
this.activeCategory.set(-1);
|
|
623
|
-
this.tooltipOrigin.set(null);
|
|
624
|
-
}
|
|
270
|
+
const find = (onSecondaryAxis) => this.visibleSeries().find((entry) => entry.onSecondaryAxis === onSecondaryAxis)?.color ?? null;
|
|
271
|
+
return { primary: find(false), secondary: find(true) };
|
|
272
|
+
}, ...(ngDevMode ? [{ debugName: "axisTint" }] : /* istanbul ignore next */ []));
|
|
273
|
+
primaryAxisFill = computed(() => this.axisTint().primary, ...(ngDevMode ? [{ debugName: "primaryAxisFill" }] : /* istanbul ignore next */ []));
|
|
274
|
+
secondaryAxisFill = computed(() => this.axisTint().secondary, ...(ngDevMode ? [{ debugName: "secondaryAxisFill" }] : /* istanbul ignore next */ []));
|
|
275
|
+
stacksSeries = computed(() => this.stack() !== 'none', ...(ngDevMode ? [{ debugName: "stacksSeries" }] : /* istanbul ignore next */ []));
|
|
276
|
+
tooltipLingerResolved = this.defaults.tooltipLingerMs;
|
|
625
277
|
/** Whether the plot opens a tooltip, and for what. `'axis'` names every series at the
|
|
626
278
|
* category under the pointer, which is the reading a multi-series line is compared on;
|
|
627
279
|
* `'item'` names only the marker itself. */
|
|
@@ -631,116 +283,23 @@ class LineChartComponent {
|
|
|
631
283
|
* so the panel stays put while the pointer moves within one band. `'pointer'` follows the
|
|
632
284
|
* cursor. */
|
|
633
285
|
tooltipAnchor = input('point', ...(ngDevMode ? [{ debugName: "tooltipAnchor" }] : /* istanbul ignore next */ []));
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
rovingByCategory = signal(new Map(), ...(ngDevMode ? [{ debugName: "rovingByCategory" }] : /* istanbul ignore next */ []));
|
|
643
|
-
isTabStop(seriesId, categoryIndex) {
|
|
644
|
-
return (this.rovingByCategory().get(seriesId) ?? 0) === categoryIndex;
|
|
645
|
-
}
|
|
646
|
-
onMarkerFocus(seriesIndex, categoryIndex, event) {
|
|
647
|
-
if (event.currentTarget instanceof Element) {
|
|
648
|
-
this.tooltipOrigin.set(event.currentTarget);
|
|
649
|
-
}
|
|
650
|
-
this.activeSeries.set(seriesIndex);
|
|
651
|
-
this.activeCategory.set(categoryIndex);
|
|
652
|
-
this.setRoving(seriesIndex, categoryIndex);
|
|
653
|
-
}
|
|
654
|
-
onMarkerNavigation(event, seriesIndex, categoryIndex) {
|
|
655
|
-
const markers = this.plottedSeries()[seriesIndex]?.markers ?? [];
|
|
656
|
-
const positions = markers.map((marker) => marker.categoryIndex);
|
|
657
|
-
const current = positions.indexOf(categoryIndex);
|
|
658
|
-
const next = nextRovingIndex(event.key, current, positions.length);
|
|
659
|
-
if (next === null) {
|
|
660
|
-
return;
|
|
661
|
-
}
|
|
662
|
-
event.preventDefault();
|
|
663
|
-
const nextCategory = positions[next];
|
|
664
|
-
this.setRoving(seriesIndex, nextCategory);
|
|
665
|
-
focusMark(event.currentTarget.closest('svg'), nextCategory, `[data-series-index="${seriesIndex}"]`);
|
|
666
|
-
}
|
|
667
|
-
setRoving(seriesIndex, categoryIndex) {
|
|
668
|
-
const seriesId = this.plottedSeries()[seriesIndex]?.series.id;
|
|
669
|
-
if (seriesId === undefined) {
|
|
670
|
-
return;
|
|
671
|
-
}
|
|
672
|
-
const next = new Map(this.rovingByCategory());
|
|
673
|
-
next.set(seriesId, categoryIndex);
|
|
674
|
-
this.rovingByCategory.set(next);
|
|
675
|
-
}
|
|
676
|
-
onMarkerBlur() {
|
|
677
|
-
this.activeSeries.set(-1);
|
|
678
|
-
this.clearActiveCategory();
|
|
679
|
-
}
|
|
680
|
-
tooltipContext = computed(() => {
|
|
681
|
-
const categoryIndex = this.activeCategory();
|
|
682
|
-
const categories = this.categories();
|
|
683
|
-
if (this.tooltip() === 'none' ||
|
|
684
|
-
categoryIndex < 0 ||
|
|
685
|
-
categoryIndex >= categories.length) {
|
|
686
|
-
return null;
|
|
687
|
-
}
|
|
688
|
-
const format = this.valueFormatResolved();
|
|
689
|
-
const focusedSeries = this.activeSeries();
|
|
690
|
-
const perSeries = this.tooltip() === 'item' || focusedSeries >= 0
|
|
691
|
-
? this.visibleSeries().slice(Math.max(focusedSeries, 0), Math.max(focusedSeries, 0) + 1)
|
|
692
|
-
: this.visibleSeries();
|
|
693
|
-
return {
|
|
694
|
-
category: categories[categoryIndex],
|
|
695
|
-
entries: perSeries
|
|
696
|
-
.map((entry) => ({ entry, value: entry.values[categoryIndex] }))
|
|
697
|
-
.filter((reading) => typeof reading.value === 'number' &&
|
|
698
|
-
Number.isFinite(reading.value))
|
|
699
|
-
.map(({ entry, value }) => ({
|
|
700
|
-
label: entry.series.label,
|
|
701
|
-
value,
|
|
702
|
-
formatted: format(value),
|
|
703
|
-
color: entry.color,
|
|
704
|
-
})),
|
|
705
|
-
};
|
|
706
|
-
}, ...(ngDevMode ? [{ debugName: "tooltipContext" }] : /* istanbul ignore next */ []));
|
|
707
|
-
plotLeft = computed(() => this.layout().primaryPlot.left, ...(ngDevMode ? [{ debugName: "plotLeft" }] : /* istanbul ignore next */ []));
|
|
708
|
-
plotRight = computed(() => this.layout().primaryPlot.left + this.layout().primaryPlot.width, ...(ngDevMode ? [{ debugName: "plotRight" }] : /* istanbul ignore next */ []));
|
|
709
|
-
primaryTopY = computed(() => this.layout().primaryPlot.top, ...(ngDevMode ? [{ debugName: "primaryTopY" }] : /* istanbul ignore next */ []));
|
|
710
|
-
secondaryTopY = computed(() => this.layout().secondaryPlot.top, ...(ngDevMode ? [{ debugName: "secondaryTopY" }] : /* istanbul ignore next */ []));
|
|
711
|
-
primaryBaselineY = computed(() => baselineOf(this.layout().primaryPlot), ...(ngDevMode ? [{ debugName: "primaryBaselineY" }] : /* istanbul ignore next */ []));
|
|
712
|
-
secondaryBaselineY = computed(() => baselineOf(this.layout().secondaryPlot), ...(ngDevMode ? [{ debugName: "secondaryBaselineY" }] : /* istanbul ignore next */ []));
|
|
713
|
-
/** Where the crosshair stops. Under `'stacked'` the two plots sit one above the other over one
|
|
714
|
-
* category axis, so a crosshair that ends at the upper plot's baseline leaves the lower plot —
|
|
715
|
-
* the same category, the same pointer — with nothing marked at all. */
|
|
716
|
-
cursorBottomY = computed(() => this.stacked() ? this.secondaryBaselineY() : this.primaryBaselineY(), ...(ngDevMode ? [{ debugName: "cursorBottomY" }] : /* istanbul ignore next */ []));
|
|
717
|
-
primaryLabelX = computed(() => this.layout().primaryPlot.left - LINE_CHART_AXIS_LABEL_GAP, ...(ngDevMode ? [{ debugName: "primaryLabelX" }] : /* istanbul ignore next */ []));
|
|
718
|
-
secondaryLabelX = computed(() => {
|
|
719
|
-
const layout = this.layout();
|
|
720
|
-
return layout.stacked
|
|
721
|
-
? layout.secondaryPlot.left - LINE_CHART_AXIS_LABEL_GAP
|
|
722
|
-
: layout.primaryPlot.left +
|
|
723
|
-
layout.primaryPlot.width +
|
|
724
|
-
LINE_CHART_AXIS_LABEL_GAP;
|
|
725
|
-
}, ...(ngDevMode ? [{ debugName: "secondaryLabelX" }] : /* istanbul ignore next */ []));
|
|
726
|
-
secondaryLabelAnchor = computed(() => this.layout().stacked ? 'end' : 'start', ...(ngDevMode ? [{ debugName: "secondaryLabelAnchor" }] : /* istanbul ignore next */ []));
|
|
727
|
-
categoryLabels = computed(() => {
|
|
728
|
-
const categories = this.categories();
|
|
729
|
-
const centers = this.categoryPositions();
|
|
730
|
-
const stride = categoryLabelStride(categories.length);
|
|
731
|
-
const labels = [];
|
|
732
|
-
for (let index = 0; index < categories.length; index += stride) {
|
|
733
|
-
labels.push({ x: centers[index], text: categories[index] });
|
|
734
|
-
}
|
|
735
|
-
return labels;
|
|
736
|
-
}, ...(ngDevMode ? [{ debugName: "categoryLabels" }] : /* istanbul ignore next */ []));
|
|
286
|
+
dataTableColumns = computed(() => [
|
|
287
|
+
'Category',
|
|
288
|
+
...this.resolvedSeries().map((entry) => entry.series.label),
|
|
289
|
+
], ...(ngDevMode ? [{ debugName: "dataTableColumns" }] : /* istanbul ignore next */ []));
|
|
290
|
+
dataTableRows = computed(() => this.tableRows().map((row) => ({
|
|
291
|
+
key: row.category,
|
|
292
|
+
cells: [row.category, ...row.cells],
|
|
293
|
+
})), ...(ngDevMode ? [{ debugName: "dataTableRows" }] : /* istanbul ignore next */ []));
|
|
737
294
|
tableRows = computed(() => {
|
|
738
295
|
const format = this.valueFormatResolved();
|
|
739
296
|
return this.categories().map((category, index) => ({
|
|
740
297
|
category,
|
|
741
298
|
cells: this.resolvedSeries().map((entry) => {
|
|
742
299
|
const value = entry.values[index];
|
|
743
|
-
return value === null || value === undefined
|
|
300
|
+
return value === null || value === undefined
|
|
301
|
+
? '—'
|
|
302
|
+
: format(value, 'tooltip');
|
|
744
303
|
}),
|
|
745
304
|
}));
|
|
746
305
|
}, ...(ngDevMode ? [{ debugName: "tableRows" }] : /* istanbul ignore next */ []));
|
|
@@ -750,7 +309,7 @@ class LineChartComponent {
|
|
|
750
309
|
return summary;
|
|
751
310
|
}
|
|
752
311
|
const title = this.caption() ?? 'Chart';
|
|
753
|
-
const format = this.valueFormatResolved();
|
|
312
|
+
const format = (value) => this.valueFormatResolved()(value, 'tooltip');
|
|
754
313
|
const categories = this.categories();
|
|
755
314
|
// The pointer belongs to the WHOLE chart, not to each series, or a two-series plot promises
|
|
756
315
|
// the table twice.
|
|
@@ -760,39 +319,100 @@ class LineChartComponent {
|
|
|
760
319
|
: ' Full values in the table below.';
|
|
761
320
|
// The plot's own text is inside an `aria-hidden` svg, so an annotation a sighted reader takes
|
|
762
321
|
// as the point of the chart would otherwise reach nobody else.
|
|
763
|
-
const notes = this.
|
|
322
|
+
const notes = this.markAnnotations().map((note) => note.label);
|
|
764
323
|
const noted = notes.length ? ` Noted: ${notes.join('; ')}.` : '';
|
|
765
324
|
return sentences.length === 0
|
|
766
325
|
? describeSeries(title, [], format, this.dataTableResolved() !== 'none')
|
|
767
326
|
: `${title}. ${sentences.join(' ')}${noted}${pointer}`;
|
|
768
327
|
}, ...(ngDevMode ? [{ debugName: "accessibleName" }] : /* istanbul ignore next */ []));
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
};
|
|
328
|
+
plot = viewChild(ChartComponent, ...(ngDevMode ? [{ debugName: "plot" }] : /* istanbul ignore next */ []));
|
|
329
|
+
/** Whether the category cursor is held. Read off the container, which owns the pin now that it
|
|
330
|
+
* owns the cursor. */
|
|
331
|
+
pinnedCategory = computed(() => this.plot()?.cursorPinned() ?? false, ...(ngDevMode ? [{ debugName: "pinnedCategory" }] : /* istanbul ignore next */ []));
|
|
332
|
+
releaseCategoryPin() {
|
|
333
|
+
this.plot()?.releaseCursor();
|
|
776
334
|
}
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
335
|
+
/** What the series mark draws: the stacked values, the hidden series already filtered out. */
|
|
336
|
+
markSeries = computed(() => this.visibleSeries().map((entry) => ({
|
|
337
|
+
id: entry.series.id,
|
|
338
|
+
label: entry.series.label,
|
|
339
|
+
data: entry.values,
|
|
340
|
+
axis: entry.onSecondaryAxis
|
|
341
|
+
? 'secondary'
|
|
342
|
+
: 'primary',
|
|
343
|
+
area: entry.series.area,
|
|
344
|
+
lower: entry.lowerValues ?? undefined,
|
|
345
|
+
color: entry.color,
|
|
346
|
+
})), ...(ngDevMode ? [{ debugName: "markSeries" }] : /* istanbul ignore next */ []));
|
|
347
|
+
dashPatterns = computed(() => this.visibleSeries().map((entry) => entry.dash ?? ''), ...(ngDevMode ? [{ debugName: "dashPatterns" }] : /* istanbul ignore next */ []));
|
|
348
|
+
/** The reading each label names, which is what the mark needs: it draws against the scales and
|
|
349
|
+
* never sees the series list. One whose series is hidden or whose reading is missing is
|
|
350
|
+
* dropped rather than left floating over the plot. */
|
|
351
|
+
markAnnotations = computed(() => this.annotations().flatMap((annotation) => {
|
|
352
|
+
const visible = this.visibleSeries();
|
|
353
|
+
const entry = annotation.seriesId
|
|
354
|
+
? visible.find((candidate) => candidate.series.id === annotation.seriesId)
|
|
355
|
+
: visible[0];
|
|
356
|
+
const value = entry?.values[annotation.categoryIndex];
|
|
357
|
+
if (!entry || typeof value !== 'number') {
|
|
358
|
+
return [];
|
|
359
|
+
}
|
|
360
|
+
return [
|
|
361
|
+
{
|
|
362
|
+
categoryIndex: annotation.categoryIndex,
|
|
363
|
+
value,
|
|
364
|
+
label: annotation.label,
|
|
365
|
+
axis: entry.onSecondaryAxis
|
|
366
|
+
? 'secondary'
|
|
367
|
+
: 'primary',
|
|
368
|
+
},
|
|
369
|
+
];
|
|
370
|
+
}), ...(ngDevMode ? [{ debugName: "markAnnotations" }] : /* istanbul ignore next */ []));
|
|
371
|
+
markAnchor = computed(() => this.tooltipAnchor() === 'pointer'
|
|
372
|
+
? 'pointer'
|
|
373
|
+
: 'reading', ...(ngDevMode ? [{ debugName: "markAnchor" }] : /* istanbul ignore next */ []));
|
|
374
|
+
hasSecondaryAxis = computed(() => this.visibleSeries().some((entry) => entry.onSecondaryAxis), ...(ngDevMode ? [{ debugName: "hasSecondaryAxis" }] : /* istanbul ignore next */ []));
|
|
375
|
+
/** The ceiling handed to the container, which raises its own domain to it and never lowers.
|
|
376
|
+
* Unless `rescaleOnHide` says otherwise it is the maximum across EVERY series, so switching
|
|
377
|
+
* one off does not move the gridlines under the ones still drawn. */
|
|
378
|
+
axisMax = computed(() => this.rescaleOnHide() ? this.max() : this.ceilingOf(false, this.max()), ...(ngDevMode ? [{ debugName: "axisMax" }] : /* istanbul ignore next */ []));
|
|
379
|
+
axisMaxSecondary = computed(() => this.rescaleOnHide()
|
|
380
|
+
? this.maxSecondary()
|
|
381
|
+
: this.ceilingOf(true, this.maxSecondary()), ...(ngDevMode ? [{ debugName: "axisMaxSecondary" }] : /* istanbul ignore next */ []));
|
|
382
|
+
ceilingOf(onSecondaryAxis, asked) {
|
|
383
|
+
const derived = domainMaxOf(this.stackedSeries()
|
|
384
|
+
.filter((entry) => entry.onSecondaryAxis === onSecondaryAxis)
|
|
385
|
+
.map((entry) => entry.values));
|
|
386
|
+
return asked !== null && Number.isFinite(asked) && asked > derived
|
|
387
|
+
? asked
|
|
388
|
+
: derived;
|
|
780
389
|
}
|
|
781
|
-
|
|
782
|
-
|
|
390
|
+
/** `--ds-line-chart-plot-height` reaches an SVG coordinate space only as a number, so it is read
|
|
391
|
+
* back off the host rather than applied as CSS. */
|
|
392
|
+
plotHeight = signal(DEFAULT_PLOT_HEIGHT, ...(ngDevMode ? [{ debugName: "plotHeight" }] : /* istanbul ignore next */ []));
|
|
393
|
+
/** Every state occupies the box the plot would have, so nothing on the page moves when the data
|
|
394
|
+
* lands, the request fails or the last series is switched off. */
|
|
395
|
+
viewHeightPx = computed(() => `${chartViewHeight(this.plotHeight(), CHART_DEFAULT_VALUE_SPACE)}px`, ...(ngDevMode ? [{ debugName: "viewHeightPx" }] : /* istanbul ignore next */ []));
|
|
396
|
+
onPointClicked(reading) {
|
|
397
|
+
const series = this.series().find((candidate) => candidate.id === reading.series.id);
|
|
398
|
+
if (!series) {
|
|
783
399
|
return;
|
|
784
400
|
}
|
|
785
|
-
|
|
786
|
-
|
|
401
|
+
this.pointClicked.emit({
|
|
402
|
+
series,
|
|
403
|
+
categoryIndex: reading.categoryIndex,
|
|
404
|
+
category: this.categories()[reading.categoryIndex] ?? '',
|
|
405
|
+
value: reading.value,
|
|
406
|
+
});
|
|
787
407
|
}
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
}
|
|
408
|
+
constructor() {
|
|
409
|
+
const host = inject(ElementRef);
|
|
410
|
+
afterNextRender(() => {
|
|
411
|
+
const parsed = Number.parseFloat(getComputedStyle(host.nativeElement).getPropertyValue('--_line-chart-plot-height'));
|
|
412
|
+
if (Number.isFinite(parsed) && parsed > 0) {
|
|
413
|
+
this.plotHeight.set(parsed);
|
|
414
|
+
}
|
|
415
|
+
});
|
|
796
416
|
}
|
|
797
417
|
isEmpty = computed(() => this.series().length === 0 || this.categories().length === 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
798
418
|
showLegend = computed(() => this.series().length > 1, ...(ngDevMode ? [{ debugName: "showLegend" }] : /* istanbul ignore next */ []));
|
|
@@ -801,32 +421,24 @@ class LineChartComponent {
|
|
|
801
421
|
* chart does not resize when the data lands; falls back to three when `series`
|
|
802
422
|
* is still empty. */
|
|
803
423
|
skeletonSeries = computed(() => Array.from({ length: Math.max(this.series().length, 3) }), ...(ngDevMode ? [{ debugName: "skeletonSeries" }] : /* istanbul ignore next */ []));
|
|
804
|
-
plotFor(onSecondaryAxis) {
|
|
805
|
-
const layout = this.layout();
|
|
806
|
-
return onSecondaryAxis && layout.stacked
|
|
807
|
-
? layout.secondaryPlot
|
|
808
|
-
: layout.primaryPlot;
|
|
809
|
-
}
|
|
810
|
-
ticksFor(ticks, axisMax, onSecondaryAxis) {
|
|
811
|
-
const plot = this.plotFor(onSecondaryAxis);
|
|
812
|
-
const step = tickStep(ticks);
|
|
813
|
-
const format = this.valueFormatResolved();
|
|
814
|
-
return ticks.map((value) => ({
|
|
815
|
-
y: valueY(value, axisMax, plot),
|
|
816
|
-
label: format === defaultValueFormat ? formatTick(value, step) : format(value),
|
|
817
|
-
}));
|
|
818
|
-
}
|
|
819
424
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
820
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LineChartComponent, isStandalone: true, selector: "ds-line-chart", inputs: { categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: true, transformFunction: null }, series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null }, yAxisMode: { classPropertyName: "yAxisMode", publicName: "yAxisMode", isSignal: true, isRequired: false, transformFunction: null }, showMarkers: { classPropertyName: "showMarkers", publicName: "showMarkers", isSignal: true, isRequired: false, transformFunction: null }, annotations: { classPropertyName: "annotations", publicName: "annotations", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, gaps: { classPropertyName: "gaps", publicName: "gaps", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, maxSecondary: { classPropertyName: "maxSecondary", publicName: "maxSecondary", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, hiddenSeries: { classPropertyName: "hiddenSeries", publicName: "hiddenSeries", isSignal: true, isRequired: false, transformFunction: null }, rescaleOnHide: { classPropertyName: "rescaleOnHide", publicName: "rescaleOnHide", isSignal: true, isRequired: false, transformFunction: null }, legendFilters: { classPropertyName: "legendFilters", publicName: "legendFilters", isSignal: true, isRequired: false, transformFunction: null }, legendMode: { classPropertyName: "legendMode", publicName: "legendMode", isSignal: true, isRequired: false, transformFunction: null }, noVisibleSeriesText: { classPropertyName: "noVisibleSeriesText", publicName: "noVisibleSeriesText", isSignal: true, isRequired: false, transformFunction: null }, patterns: { classPropertyName: "patterns", publicName: "patterns", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipAnchor: { classPropertyName: "tooltipAnchor", publicName: "tooltipAnchor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked", hiddenSeries: "hiddenSeriesChange" }, host: { listeners: { "document:keydown.escape": "releaseCategoryPin()", "document:pointerover": "onPointerAnywhere($event)" }, properties: { "class.framed": "frameResolved() === 'auto'" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], ngImport: i0, template: "<figure class=\"line-chart\">\n @if (pinnedCategory()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"releaseCategoryPin()\">\n Unpin\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton height=\"var(--_line-chart-plot-height)\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesText() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <svg\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\n [attr.aria-hidden]=\"interactive() ? null : true\"\n [attr.viewBox]=\"viewBox\"\n (pointermove)=\"onPlotPointer($event)\"\n (pointerdown)=\"onPlotPointer($event)\"\n (pointerleave)=\"clearActiveCategory()\">\n @if (activeCategory() >= 0) {\n <g\n class=\"cursor\"\n animate.enter=\"cursor-in\"\n animate.leave=\"cursor-out\"\n [style.transform]=\"'translateX(' + activeBandX() + 'px)'\">\n <rect\n class=\"category-band\"\n aria-hidden=\"true\"\n x=\"0\"\n [attr.y]=\"primaryTopY()\"\n [attr.width]=\"activeBandWidth()\"\n [attr.height]=\"cursorBottomY() - primaryTopY()\" />\n\n <line\n class=\"cursor-line\"\n aria-hidden=\"true\"\n [attr.x1]=\"activeBandWidth() / 2\"\n [attr.x2]=\"activeBandWidth() / 2\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"cursorBottomY()\" />\n </g>\n }\n\n @for (tick of primaryTicks(); track $index) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n\n @if (showSecondaryGridlines()) {\n @for (tick of secondaryTicks(); track $index) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\"\n [class.secondary]=\"!stacked()\" />\n }\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"primaryBaselineY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotLeft()\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n\n @if (stacked()) {\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"secondaryBaselineY()\"\n [attr.y2]=\"secondaryBaselineY()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotLeft()\"\n [attr.y1]=\"secondaryTopY()\"\n [attr.y2]=\"secondaryBaselineY()\" />\n }\n\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (path of entry.areaPaths; track $index) {\n <path\n class=\"series-area\"\n animate.enter=\"mark-enter\"\n animate.leave=\"mark-leave\"\n [style.--_chart-mark-stagger]=\"markStagger(seriesIndex)\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.d]=\"path\"\n [attr.fill]=\"entry.color\" />\n }\n }\n\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (points of entry.polylines; track $index) {\n <polyline\n class=\"series-line\"\n animate.enter=\"mark-enter\"\n animate.leave=\"mark-leave\"\n [attr.stroke-dasharray]=\"entry.dash\"\n [style.--_chart-mark-stagger]=\"markStagger(seriesIndex)\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.points]=\"points\"\n [attr.stroke]=\"entry.color\" />\n }\n }\n\n @if (showMarkers() || interactive()) {\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (marker of entry.markers; track marker.categoryIndex) {\n <circle\n class=\"series-marker\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.is-active]=\"marker.categoryIndex === activeCategory()\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.data-series-index]=\"seriesIndex\"\n [attr.data-mark-index]=\"marker.categoryIndex\"\n [attr.tabindex]=\"\n interactive()\n ? isTabStop(entry.series.id, marker.categoryIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"\n interactive() ? markerLabel(entry, marker) : null\n \"\n (focus)=\"\n onMarkerFocus(seriesIndex, marker.categoryIndex, $event)\n \"\n (blur)=\"onMarkerBlur()\"\n (keydown)=\"\n onMarkerNavigation($event, seriesIndex, marker.categoryIndex)\n \"\n (click)=\"onMarkerClick(entry, marker)\"\n (keydown.enter)=\"onMarkerKey(entry, marker, $event)\"\n (keydown.space)=\"onMarkerKey(entry, marker, $event)\" />\n }\n }\n }\n\n @for (note of placedAnnotations(); track note.key) {\n <text\n class=\"annotation\"\n aria-hidden=\"true\"\n [attr.x]=\"note.x\"\n [attr.y]=\"note.y\"\n [attr.text-anchor]=\"note.anchor\">\n {{ note.label }}\n </text>\n }\n\n @for (tick of primaryTicks(); track $index) {\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"primaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of secondaryTicks(); track $index) {\n <text\n class=\"axis-label\"\n [attr.text-anchor]=\"secondaryLabelAnchor()\"\n [attr.x]=\"secondaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (label of categoryLabels(); track $index) {\n <text\n class=\"category-label\"\n text-anchor=\"middle\"\n [attr.x]=\"label.x\"\n [attr.y]=\"categoryLabelY()\">\n {{ label.text }}\n </text>\n }\n </svg>\n </div>\n\n @if (showLegend()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <details\n class=\"data-table\"\n [open]=\"dataTableResolved() === 'visible'\">\n <summary>\n Data table\n </summary>\n\n <table>\n <caption>\n {{\n caption() ?? 'Chart data'\n }}\n </caption>\n\n <thead>\n <tr>\n <th scope=\"col\">\n Category\n </th>\n\n @for (entry of resolvedSeries(); track entry.series.id) {\n <th scope=\"col\">\n {{ entry.series.label }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of tableRows(); track $index) {\n <tr>\n <th scope=\"row\">\n {{ row.category }}\n </th>\n\n @for (cell of row.cells; track $index) {\n <td>\n {{ cell }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </details>\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-exit{to{opacity:0}}.series-line.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.series-line.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.series-marker.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table,figcaption{-webkit-user-select:text;user-select:text}@media not (forced-colors:active){.series-marker:focus{outline:none}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.line-chart{--_line-chart-grid-line-color: var(--ds-line-chart-grid-line-color, var(--ds-chart-grid-line-color));--_line-chart-axis-line-color: var(--ds-line-chart-axis-line-color, var(--ds-chart-axis-line-color));--_line-chart-axis-label-color: var(--ds-line-chart-axis-label-color, var(--ds-chart-axis-label-color));--_line-chart-axis-font-size: var(--ds-line-chart-axis-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-color: var(--ds-line-chart-annotation-color, var(--text-primary));--_line-chart-annotation-font-size: var(--ds-line-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-weight: var(--ds-line-chart-annotation-weight, var(--font-weight-bold));--_line-chart-annotation-halo-color: var(--ds-line-chart-annotation-halo-color, var(--surface-default));--_line-chart-annotation-halo-width: var(--ds-line-chart-annotation-halo-width, 3px);--_line-chart-line-width: var(--ds-line-chart-line-width, var(--ds-chart-line-width));--_line-chart-dot-radius: var(--ds-line-chart-dot-radius, var(--ds-chart-dot-radius));--_line-chart-dot-radius-active: var(--ds-line-chart-dot-radius-active, var(--ds-chart-dot-radius-active));--_line-chart-hover-bg-color: var(--ds-line-chart-hover-bg-color, var(--ds-chart-hover-bg-color));--_line-chart-cursor-line-color: var(--ds-line-chart-cursor-line-color, var(--ds-chart-cursor-line-color));--_line-chart-line-width-bold: var( --ds-line-chart-line-width-bold, var(--ds-chart-line-width-bold) );--_line-chart-focus-color: var(--ds-line-chart-focus-color, var(--focus-ring-color));--_line-chart-focus-width: var(--ds-line-chart-focus-width, var(--focus-ring-width));--_line-chart-area-opacity: var(--ds-line-chart-area-opacity, .16);--_line-chart-plot-height: var(--ds-line-chart-plot-height, 240px);--_line-chart-swatch-size: var(--ds-line-chart-swatch-size, 10px);margin:0}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:600}.empty{display:grid;place-items:center;min-block-size:var(--_line-chart-plot-height);margin:0;color:var(--text-secondary);text-align:center}.empty{aspect-ratio:640/320;inline-size:100%}.canvas{display:block;inline-size:100%;block-size:auto}.grid-line{stroke:var(--_line-chart-grid-line-color);stroke-width:1}.grid-line.secondary{stroke-dasharray:4 4}.axis-line{stroke:var(--_line-chart-axis-line-color);stroke-width:1}.axis-label,.category-label{fill:var(--_line-chart-axis-label-color);font-size:var(--_line-chart-axis-font-size)}.annotation{fill:var(--_line-chart-annotation-color);font-size:var(--_line-chart-annotation-font-size);font-weight:var(--_line-chart-annotation-weight);paint-order:stroke;stroke:var(--_line-chart-annotation-halo-color);stroke-width:var(--_line-chart-annotation-halo-width);stroke-linejoin:round}.axis-label{dominant-baseline:middle}.series-area{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.series-area.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),stroke-width var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-area{fill-opacity:var(--_line-chart-area-opacity);stroke:none}.series-line{fill:none;stroke-width:var(--_line-chart-line-width);stroke-linecap:round;stroke-linejoin:round}.plot:has(.series-line.is-dimmed) .series-line:not(.is-dimmed){stroke-width:var(--_line-chart-line-width-bold)}.series-marker{r:var(--_line-chart-dot-radius)}.cursor.cursor-in{animation:ds-chart-mark-fade-in var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.cursor.cursor-out{animation:ds-chart-mark-exit var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.category-band{fill:var(--_line-chart-hover-bg-color)}.cursor-line{stroke:var(--_line-chart-cursor-line-color);stroke-width:1}.series-marker.is-active{r:var(--_line-chart-dot-radius-active)}.series-marker.ghost.is-active{fill-opacity:1}.series-marker.interactive{cursor:pointer;stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(hover:none)and (pointer:coarse){.series-marker.interactive{stroke-width:44px}}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible{fill-opacity:1}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 1px var(--ds-chart-focus-halo-color)) drop-shadow(0 0 1px var(--ds-chart-focus-halo-color));r:var(--_line-chart-dot-radius-active)}.legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin:var(--space-3) 0 0;padding:0;list-style:none}.legend-item{display:inline-flex;gap:var(--space-2);align-items:center;color:var(--text-secondary);font-size:var(--font-size-xs)}.legend-swatch{flex:none;inline-size:var(--_line-chart-swatch-size);block-size:var(--_line-chart-swatch-size);border-radius:var(--radius-pill)}.skeleton{display:grid}.skeleton-legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-block-start:var(--space-3)}.empty.is-error{color:var(--error)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}.pin-reset{position:absolute;inset-block-start:var(--space-2);inset-inline:0;z-index:1;justify-self:center;margin-inline:auto;display:inline-flex;align-items:center;gap:var(--space-1);min-block-size:var(--space-12);inline-size:fit-content;padding:var(--space-1) var(--space-3);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap"] }, { kind: "component", type: ChartLegendComponent, selector: "ds-chart-legend", inputs: ["items", "hidden", "toggleable", "mode", "highlighted"], outputs: ["hiddenChange", "highlightedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
425
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LineChartComponent, isStandalone: true, selector: "ds-line-chart", inputs: { categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: true, transformFunction: null }, series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null }, yAxisMode: { classPropertyName: "yAxisMode", publicName: "yAxisMode", isSignal: true, isRequired: false, transformFunction: null }, showMarkers: { classPropertyName: "showMarkers", publicName: "showMarkers", isSignal: true, isRequired: false, transformFunction: null }, annotations: { classPropertyName: "annotations", publicName: "annotations", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, gaps: { classPropertyName: "gaps", publicName: "gaps", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", isSignal: true, isRequired: false, transformFunction: null }, stack: { classPropertyName: "stack", publicName: "stack", isSignal: true, isRequired: false, transformFunction: null }, yAxisLabel: { classPropertyName: "yAxisLabel", publicName: "yAxisLabel", isSignal: true, isRequired: false, transformFunction: null }, secondaryAxisLabel: { classPropertyName: "secondaryAxisLabel", publicName: "secondaryAxisLabel", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, maxSecondary: { classPropertyName: "maxSecondary", publicName: "maxSecondary", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, hiddenSeries: { classPropertyName: "hiddenSeries", publicName: "hiddenSeries", isSignal: true, isRequired: false, transformFunction: null }, rescaleOnHide: { classPropertyName: "rescaleOnHide", publicName: "rescaleOnHide", isSignal: true, isRequired: false, transformFunction: null }, legendFilters: { classPropertyName: "legendFilters", publicName: "legendFilters", isSignal: true, isRequired: false, transformFunction: null }, legendMode: { classPropertyName: "legendMode", publicName: "legendMode", isSignal: true, isRequired: false, transformFunction: null }, noVisibleSeriesText: { classPropertyName: "noVisibleSeriesText", publicName: "noVisibleSeriesText", isSignal: true, isRequired: false, transformFunction: null }, patterns: { classPropertyName: "patterns", publicName: "patterns", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipAnchor: { classPropertyName: "tooltipAnchor", publicName: "tooltipAnchor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked", hiddenSeries: "hiddenSeriesChange" }, host: { properties: { "class.framed": "frameResolved() === 'auto'", "style.--_line-chart-view-height": "viewHeightPx()" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "plot", first: true, predicate: ChartComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<figure class=\"line-chart\">\n @if (pinnedCategory()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"releaseCategoryPin()\">\n Unpin\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton height=\"var(--_line-chart-plot-height)\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesText() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <ds-chart\n frame=\"none\"\n cursor=\"category\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [max]=\"axisMax()\"\n [maxSecondary]=\"axisMaxSecondary()\"\n [secondaryAxisMode]=\"yAxisMode()\"\n [axisLabel]=\"yAxisLabel()\"\n [secondaryAxisLabel]=\"secondaryAxisLabel()\"\n [axisColor]=\"primaryAxisFill()\"\n [secondaryAxisColor]=\"secondaryAxisFill()\"\n [cursorPin]=\"pinOnClick()\"\n [tooltipLingerMs]=\"tooltipLingerMs()\"\n [plotHeight]=\"plotHeight()\">\n <svg:g\n #mark=\"dsLineSeries\"\n dsLineSeries\n [data]=\"markSeries()\"\n [showMarkers]=\"showMarkers()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [highlighted]=\"highlightedSeries()\"\n [patterns]=\"dashPatterns()\"\n [stacked]=\"stacksSeries()\"\n [staggerMs]=\"staggerMs()\"\n [gaps]=\"gaps()\"\n [curve]=\"curve()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"markAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n [dsChartTooltip]=\"mark.tooltipContext()\"\n [dsChartTooltipPreferBelow]=\"\n pinnedCategory() || mark.activeMark.pinned()\n \"\n [dsChartTooltipOrigin]=\"mark.tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\"\n (pointClicked)=\"onPointClicked($event)\" />\n\n <svg:g\n dsSeriesAnnotation\n [annotations]=\"markAnnotations()\" />\n </ds-chart>\n\n @if (showLegend()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_line-chart-plot-height: var(--ds-line-chart-plot-height, 240px)}.line-chart{--_line-chart-grid-line-color: var(--ds-line-chart-grid-line-color, var(--ds-chart-grid-line-color));--_line-chart-axis-line-color: var(--ds-line-chart-axis-line-color, var(--ds-chart-axis-line-color));--_line-chart-axis-label-color: var(--ds-line-chart-axis-label-color, var(--ds-chart-axis-label-color));--_line-chart-axis-font-size: var(--ds-line-chart-axis-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-color: var(--ds-line-chart-annotation-color, var(--text-primary));--_line-chart-annotation-font-size: var(--ds-line-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-font-weight: var(--ds-line-chart-annotation-font-weight, var(--font-weight-bold));--_line-chart-annotation-halo-color: var(--ds-line-chart-annotation-halo-color, var(--surface-default));--_line-chart-annotation-halo-width: var(--ds-line-chart-annotation-halo-width, 3px);--_line-chart-line-width: var(--ds-line-chart-line-width, var(--ds-chart-line-width));--_line-chart-dot-radius: var(--ds-line-chart-dot-radius, var(--ds-chart-dot-radius));--_line-chart-dot-radius-active: var(--ds-line-chart-dot-radius-active, var(--ds-chart-dot-radius-active));--_line-chart-hover-bg-color: var(--ds-line-chart-hover-bg-color, var(--ds-chart-hover-bg-color));--_line-chart-cursor-line-color: var(--ds-line-chart-cursor-line-color, var(--ds-chart-cursor-line-color));--_line-chart-line-width-bold: var( --ds-line-chart-line-width-bold, var(--ds-chart-line-width-bold) );--_line-chart-focus-color: var(--ds-line-chart-focus-color, var(--focus-ring-color));--_line-chart-focus-width: var(--ds-line-chart-focus-width, var(--focus-ring-width));--_line-chart-area-opacity: var(--ds-line-chart-area-opacity, .16);--_line-chart-swatch-size: var(--ds-line-chart-swatch-size, 10px);margin:0}.empty{display:grid;place-items:center;min-block-size:var(--_line-chart-view-height);margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}ds-chart{--ds-chart-grid-line-color: var(--_line-chart-grid-line-color);--ds-chart-axis-line-color: var(--_line-chart-axis-line-color);--ds-chart-axis-label-color: var(--_line-chart-axis-label-color);--ds-chart-axis-font-size: var(--_line-chart-axis-font-size);--ds-chart-hover-bg-color: var(--_line-chart-hover-bg-color);--ds-chart-cursor-line-color: var(--_line-chart-cursor-line-color);--ds-chart-line-width: var(--_line-chart-line-width);--ds-chart-line-width-bold: var(--_line-chart-line-width-bold);--ds-chart-dot-radius: var(--_line-chart-dot-radius);--ds-chart-dot-radius-active: var(--_line-chart-dot-radius-active);--ds-chart-area-opacity: var(--_line-chart-area-opacity);--ds-chart-annotation-color: var(--_line-chart-annotation-color);--ds-chart-annotation-font-size: var(--_line-chart-annotation-font-size);--ds-chart-annotation-font-weight: var(--_line-chart-annotation-font-weight);--ds-chart-annotation-halo-color: var(--_line-chart-annotation-halo-color);--ds-chart-annotation-halo-width: var(--_line-chart-annotation-halo-width);--ds-chart-focus-ring-color: var(--_line-chart-focus-color);--focus-ring-width: var(--_line-chart-focus-width)}ds-chart-legend{--ds-chart-legend-swatch-size: var(--_line-chart-swatch-size)}.skeleton{display:grid}.skeleton-legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-block-start:var(--space-3)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}.pin-reset{position:absolute;inset-block-start:var(--space-2);inset-inline:0;z-index:1;justify-self:center;margin-inline:auto;display:inline-flex;align-items:center;gap:var(--space-1);min-block-size:var(--space-12);inline-size:fit-content;padding:var(--space-1) var(--space-3);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline"] }, { kind: "component", type: ChartComponent, selector: "ds-chart", inputs: ["categories", "tickCount", "min", "max", "cursor", "cursorPin", "tooltipLingerMs", "maxSecondary", "plotHeight", "axisGutter", "valueSpace", "caption", "interactive", "summary", "frame", "loading", "emptyText", "error", "errorText", "valueFormat", "secondaryAxisMode", "axisColor", "secondaryAxisColor", "axisLabel", "secondaryAxisLabel"], exportAs: ["dsChart"] }, { kind: "component", type: LineSeriesComponent, selector: "g[dsLineSeries]", inputs: ["data", "showMarkers", "interactive", "pinOnClick", "dimOthers", "highlighted", "patterns", "stacked", "staggerMs", "gaps", "curve", "tooltip", "tooltipAnchor", "tooltipLingerMs", "valueFormat"], outputs: ["pointClicked"], exportAs: ["dsLineSeries"] }, { kind: "component", type: SeriesAnnotationComponent, selector: "g[dsSeriesAnnotation]", inputs: ["annotations"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPreferBelow"] }, { kind: "component", type: ChartLegendComponent, selector: "ds-chart-legend", inputs: ["items", "hidden", "toggleable", "mode", "highlighted"], outputs: ["hiddenChange", "highlightedChange"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
821
426
|
}
|
|
822
427
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LineChartComponent, decorators: [{
|
|
823
428
|
type: Component,
|
|
824
|
-
args: [{ selector: 'ds-line-chart', standalone: true, imports: [
|
|
429
|
+
args: [{ selector: 'ds-line-chart', standalone: true, imports: [
|
|
430
|
+
SkeletonComponent,
|
|
431
|
+
ChartComponent,
|
|
432
|
+
LineSeriesComponent,
|
|
433
|
+
SeriesAnnotationComponent,
|
|
434
|
+
ChartTooltipDirective,
|
|
435
|
+
ChartLegendComponent,
|
|
436
|
+
ChartDataTableComponent,
|
|
437
|
+
], host: {
|
|
825
438
|
'[class.framed]': "frameResolved() === 'auto'",
|
|
826
|
-
'
|
|
827
|
-
'(document:pointerover)': 'onPointerAnywhere($event)',
|
|
828
|
-
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"line-chart\">\n @if (pinnedCategory()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"releaseCategoryPin()\">\n Unpin\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton height=\"var(--_line-chart-plot-height)\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesText() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <div\n class=\"plot\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <svg\n class=\"canvas\"\n preserveAspectRatio=\"xMidYMid meet\"\n [attr.aria-hidden]=\"interactive() ? null : true\"\n [attr.viewBox]=\"viewBox\"\n (pointermove)=\"onPlotPointer($event)\"\n (pointerdown)=\"onPlotPointer($event)\"\n (pointerleave)=\"clearActiveCategory()\">\n @if (activeCategory() >= 0) {\n <g\n class=\"cursor\"\n animate.enter=\"cursor-in\"\n animate.leave=\"cursor-out\"\n [style.transform]=\"'translateX(' + activeBandX() + 'px)'\">\n <rect\n class=\"category-band\"\n aria-hidden=\"true\"\n x=\"0\"\n [attr.y]=\"primaryTopY()\"\n [attr.width]=\"activeBandWidth()\"\n [attr.height]=\"cursorBottomY() - primaryTopY()\" />\n\n <line\n class=\"cursor-line\"\n aria-hidden=\"true\"\n [attr.x1]=\"activeBandWidth() / 2\"\n [attr.x2]=\"activeBandWidth() / 2\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"cursorBottomY()\" />\n </g>\n }\n\n @for (tick of primaryTicks(); track $index) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n }\n\n @if (showSecondaryGridlines()) {\n @for (tick of secondaryTicks(); track $index) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\"\n [class.secondary]=\"!stacked()\" />\n }\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"primaryBaselineY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotLeft()\"\n [attr.y1]=\"primaryTopY()\"\n [attr.y2]=\"primaryBaselineY()\" />\n\n @if (stacked()) {\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotRight()\"\n [attr.y1]=\"secondaryBaselineY()\"\n [attr.y2]=\"secondaryBaselineY()\" />\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plotLeft()\"\n [attr.x2]=\"plotLeft()\"\n [attr.y1]=\"secondaryTopY()\"\n [attr.y2]=\"secondaryBaselineY()\" />\n }\n\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (path of entry.areaPaths; track $index) {\n <path\n class=\"series-area\"\n animate.enter=\"mark-enter\"\n animate.leave=\"mark-leave\"\n [style.--_chart-mark-stagger]=\"markStagger(seriesIndex)\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.d]=\"path\"\n [attr.fill]=\"entry.color\" />\n }\n }\n\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (points of entry.polylines; track $index) {\n <polyline\n class=\"series-line\"\n animate.enter=\"mark-enter\"\n animate.leave=\"mark-leave\"\n [attr.stroke-dasharray]=\"entry.dash\"\n [style.--_chart-mark-stagger]=\"markStagger(seriesIndex)\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [attr.points]=\"points\"\n [attr.stroke]=\"entry.color\" />\n }\n }\n\n @if (showMarkers() || interactive()) {\n @for (\n entry of plottedSeries();\n track entry.series.id;\n let seriesIndex = $index\n ) {\n @for (marker of entry.markers; track marker.categoryIndex) {\n <circle\n class=\"series-marker\"\n [class.is-dimmed]=\"isDimmed(entry.series.id)\"\n [class.ghost]=\"!showMarkers()\"\n [class.interactive]=\"interactive()\"\n [class.is-active]=\"marker.categoryIndex === activeCategory()\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n [attr.fill]=\"entry.color\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.data-series-index]=\"seriesIndex\"\n [attr.data-mark-index]=\"marker.categoryIndex\"\n [attr.tabindex]=\"\n interactive()\n ? isTabStop(entry.series.id, marker.categoryIndex)\n ? 0\n : -1\n : null\n \"\n [attr.aria-label]=\"\n interactive() ? markerLabel(entry, marker) : null\n \"\n (focus)=\"\n onMarkerFocus(seriesIndex, marker.categoryIndex, $event)\n \"\n (blur)=\"onMarkerBlur()\"\n (keydown)=\"\n onMarkerNavigation($event, seriesIndex, marker.categoryIndex)\n \"\n (click)=\"onMarkerClick(entry, marker)\"\n (keydown.enter)=\"onMarkerKey(entry, marker, $event)\"\n (keydown.space)=\"onMarkerKey(entry, marker, $event)\" />\n }\n }\n }\n\n @for (note of placedAnnotations(); track note.key) {\n <text\n class=\"annotation\"\n aria-hidden=\"true\"\n [attr.x]=\"note.x\"\n [attr.y]=\"note.y\"\n [attr.text-anchor]=\"note.anchor\">\n {{ note.label }}\n </text>\n }\n\n @for (tick of primaryTicks(); track $index) {\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"primaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of secondaryTicks(); track $index) {\n <text\n class=\"axis-label\"\n [attr.text-anchor]=\"secondaryLabelAnchor()\"\n [attr.x]=\"secondaryLabelX()\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (label of categoryLabels(); track $index) {\n <text\n class=\"category-label\"\n text-anchor=\"middle\"\n [attr.x]=\"label.x\"\n [attr.y]=\"categoryLabelY()\">\n {{ label.text }}\n </text>\n }\n </svg>\n </div>\n\n @if (showLegend()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <details\n class=\"data-table\"\n [open]=\"dataTableResolved() === 'visible'\">\n <summary>\n Data table\n </summary>\n\n <table>\n <caption>\n {{\n caption() ?? 'Chart data'\n }}\n </caption>\n\n <thead>\n <tr>\n <th scope=\"col\">\n Category\n </th>\n\n @for (entry of resolvedSeries(); track entry.series.id) {\n <th scope=\"col\">\n {{ entry.series.label }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of tableRows(); track $index) {\n <tr>\n <th scope=\"row\">\n {{ row.category }}\n </th>\n\n @for (cell of row.cells; track $index) {\n <td>\n {{ cell }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </details>\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-exit{to{opacity:0}}.series-line.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.series-line.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-area.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.series-area.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.series-marker.mark-enter{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) both}.series-marker.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table,figcaption{-webkit-user-select:text;user-select:text}@media not (forced-colors:active){.series-marker:focus{outline:none}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.line-chart{--_line-chart-grid-line-color: var(--ds-line-chart-grid-line-color, var(--ds-chart-grid-line-color));--_line-chart-axis-line-color: var(--ds-line-chart-axis-line-color, var(--ds-chart-axis-line-color));--_line-chart-axis-label-color: var(--ds-line-chart-axis-label-color, var(--ds-chart-axis-label-color));--_line-chart-axis-font-size: var(--ds-line-chart-axis-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-color: var(--ds-line-chart-annotation-color, var(--text-primary));--_line-chart-annotation-font-size: var(--ds-line-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-weight: var(--ds-line-chart-annotation-weight, var(--font-weight-bold));--_line-chart-annotation-halo-color: var(--ds-line-chart-annotation-halo-color, var(--surface-default));--_line-chart-annotation-halo-width: var(--ds-line-chart-annotation-halo-width, 3px);--_line-chart-line-width: var(--ds-line-chart-line-width, var(--ds-chart-line-width));--_line-chart-dot-radius: var(--ds-line-chart-dot-radius, var(--ds-chart-dot-radius));--_line-chart-dot-radius-active: var(--ds-line-chart-dot-radius-active, var(--ds-chart-dot-radius-active));--_line-chart-hover-bg-color: var(--ds-line-chart-hover-bg-color, var(--ds-chart-hover-bg-color));--_line-chart-cursor-line-color: var(--ds-line-chart-cursor-line-color, var(--ds-chart-cursor-line-color));--_line-chart-line-width-bold: var( --ds-line-chart-line-width-bold, var(--ds-chart-line-width-bold) );--_line-chart-focus-color: var(--ds-line-chart-focus-color, var(--focus-ring-color));--_line-chart-focus-width: var(--ds-line-chart-focus-width, var(--focus-ring-width));--_line-chart-area-opacity: var(--ds-line-chart-area-opacity, .16);--_line-chart-plot-height: var(--ds-line-chart-plot-height, 240px);--_line-chart-swatch-size: var(--ds-line-chart-swatch-size, 10px);margin:0}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:600}.empty{display:grid;place-items:center;min-block-size:var(--_line-chart-plot-height);margin:0;color:var(--text-secondary);text-align:center}.empty{aspect-ratio:640/320;inline-size:100%}.canvas{display:block;inline-size:100%;block-size:auto}.grid-line{stroke:var(--_line-chart-grid-line-color);stroke-width:1}.grid-line.secondary{stroke-dasharray:4 4}.axis-line{stroke:var(--_line-chart-axis-line-color);stroke-width:1}.axis-label,.category-label{fill:var(--_line-chart-axis-label-color);font-size:var(--_line-chart-axis-font-size)}.annotation{fill:var(--_line-chart-annotation-color);font-size:var(--_line-chart-annotation-font-size);font-weight:var(--_line-chart-annotation-weight);paint-order:stroke;stroke:var(--_line-chart-annotation-halo-color);stroke-width:var(--_line-chart-annotation-halo-width);stroke-linejoin:round}.axis-label{dominant-baseline:middle}.series-area{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.series-area.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-line{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),stroke var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),stroke-width var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-line.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-marker{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),r var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.series-marker.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.series-area{fill-opacity:var(--_line-chart-area-opacity);stroke:none}.series-line{fill:none;stroke-width:var(--_line-chart-line-width);stroke-linecap:round;stroke-linejoin:round}.plot:has(.series-line.is-dimmed) .series-line:not(.is-dimmed){stroke-width:var(--_line-chart-line-width-bold)}.series-marker{r:var(--_line-chart-dot-radius)}.cursor.cursor-in{animation:ds-chart-mark-fade-in var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.cursor.cursor-out{animation:ds-chart-mark-exit var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing) both}.category-band{fill:var(--_line-chart-hover-bg-color)}.cursor-line{stroke:var(--_line-chart-cursor-line-color);stroke-width:1}.series-marker.is-active{r:var(--_line-chart-dot-radius-active)}.series-marker.ghost.is-active{fill-opacity:1}.series-marker.interactive{cursor:pointer;stroke:transparent;stroke-width:24px;vector-effect:non-scaling-stroke}@media(hover:none)and (pointer:coarse){.series-marker.interactive{stroke-width:44px}}.series-marker.ghost{fill-opacity:0}.series-marker.ghost:hover,.series-marker.ghost:focus-visible{fill-opacity:1}@media not (forced-colors:active){.series-marker.interactive:focus-visible{outline:none}}.series-marker.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 1px var(--ds-chart-focus-halo-color)) drop-shadow(0 0 1px var(--ds-chart-focus-halo-color));r:var(--_line-chart-dot-radius-active)}.legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin:var(--space-3) 0 0;padding:0;list-style:none}.legend-item{display:inline-flex;gap:var(--space-2);align-items:center;color:var(--text-secondary);font-size:var(--font-size-xs)}.legend-swatch{flex:none;inline-size:var(--_line-chart-swatch-size);block-size:var(--_line-chart-swatch-size);border-radius:var(--radius-pill)}.skeleton{display:grid}.skeleton-legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-block-start:var(--space-3)}.empty.is-error{color:var(--error)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}.pin-reset{position:absolute;inset-block-start:var(--space-2);inset-inline:0;z-index:1;justify-self:center;margin-inline:auto;display:inline-flex;align-items:center;gap:var(--space-1);min-block-size:var(--space-12);inline-size:fit-content;padding:var(--space-1) var(--space-3);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"] }]
|
|
829
|
-
}], propDecorators: { categories: [{ type: i0.Input, args: [{ isSignal: true, alias: "categories", required: true }] }], series: [{ type: i0.Input, args: [{ isSignal: true, alias: "series", required: true }] }], yAxisMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "yAxisMode", required: false }] }], showMarkers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMarkers", required: false }] }], annotations: [{ type: i0.Input, args: [{ isSignal: true, alias: "annotations", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], pinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinOnClick", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], gaps: [{ type: i0.Input, args: [{ isSignal: true, alias: "gaps", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], maxSecondary: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSecondary", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], hiddenSeries: [{ type: i0.Input, args: [{ isSignal: true, alias: "hiddenSeries", required: false }] }, { type: i0.Output, args: ["hiddenSeriesChange"] }], rescaleOnHide: [{ type: i0.Input, args: [{ isSignal: true, alias: "rescaleOnHide", required: false }] }], legendFilters: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendFilters", required: false }] }], legendMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendMode", required: false }] }], noVisibleSeriesText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noVisibleSeriesText", required: false }] }], patterns: [{ type: i0.Input, args: [{ isSignal: true, alias: "patterns", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipTemplate: [{ type: i0.ContentChild, args: ['dsChartTooltip', { isSignal: true }] }], tooltipAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipAnchor", required: false }] }] } });
|
|
439
|
+
'[style.--_line-chart-view-height]': 'viewHeightPx()',
|
|
440
|
+
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"line-chart\">\n @if (pinnedCategory()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"releaseCategoryPin()\">\n Unpin\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <ds-skeleton height=\"var(--_line-chart-plot-height)\" />\n\n @if (skeletonSeries().length > 1) {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonSeries(); track $index) {\n <ds-skeleton\n width=\"var(--space-16)\"\n height=\"var(--space-3)\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else if (noVisibleSeries()) {\n <p\n class=\"empty\"\n role=\"status\">\n {{ noVisibleSeriesText() }}\n </p>\n\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n } @else {\n <ds-chart\n frame=\"none\"\n cursor=\"category\"\n [categories]=\"categories()\"\n [tickCount]=\"tickCount()\"\n [valueFormat]=\"axisFormat()\"\n [interactive]=\"interactive()\"\n [summary]=\"accessibleName()\"\n [max]=\"axisMax()\"\n [maxSecondary]=\"axisMaxSecondary()\"\n [secondaryAxisMode]=\"yAxisMode()\"\n [axisLabel]=\"yAxisLabel()\"\n [secondaryAxisLabel]=\"secondaryAxisLabel()\"\n [axisColor]=\"primaryAxisFill()\"\n [secondaryAxisColor]=\"secondaryAxisFill()\"\n [cursorPin]=\"pinOnClick()\"\n [tooltipLingerMs]=\"tooltipLingerMs()\"\n [plotHeight]=\"plotHeight()\">\n <svg:g\n #mark=\"dsLineSeries\"\n dsLineSeries\n [data]=\"markSeries()\"\n [showMarkers]=\"showMarkers()\"\n [interactive]=\"interactive()\"\n [pinOnClick]=\"pinOnClick()\"\n [dimOthers]=\"dimOthers()\"\n [highlighted]=\"highlightedSeries()\"\n [patterns]=\"dashPatterns()\"\n [stacked]=\"stacksSeries()\"\n [staggerMs]=\"staggerMs()\"\n [gaps]=\"gaps()\"\n [curve]=\"curve()\"\n [tooltip]=\"tooltip()\"\n [tooltipAnchor]=\"markAnchor()\"\n [tooltipLingerMs]=\"tooltipLingerResolved()\"\n [valueFormat]=\"valueFormatResolved()\"\n [dsChartTooltip]=\"mark.tooltipContext()\"\n [dsChartTooltipPreferBelow]=\"\n pinnedCategory() || mark.activeMark.pinned()\n \"\n [dsChartTooltipOrigin]=\"mark.tooltipOrigin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\"\n (pointClicked)=\"onPointClicked($event)\" />\n\n <svg:g\n dsSeriesAnnotation\n [annotations]=\"markAnnotations()\" />\n </ds-chart>\n\n @if (showLegend()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [toggleable]=\"legendFilters()\"\n [mode]=\"legendMode()\"\n [(hidden)]=\"hiddenSeries\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_line-chart-plot-height: var(--ds-line-chart-plot-height, 240px)}.line-chart{--_line-chart-grid-line-color: var(--ds-line-chart-grid-line-color, var(--ds-chart-grid-line-color));--_line-chart-axis-line-color: var(--ds-line-chart-axis-line-color, var(--ds-chart-axis-line-color));--_line-chart-axis-label-color: var(--ds-line-chart-axis-label-color, var(--ds-chart-axis-label-color));--_line-chart-axis-font-size: var(--ds-line-chart-axis-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-color: var(--ds-line-chart-annotation-color, var(--text-primary));--_line-chart-annotation-font-size: var(--ds-line-chart-annotation-font-size, var(--ds-chart-axis-font-size));--_line-chart-annotation-font-weight: var(--ds-line-chart-annotation-font-weight, var(--font-weight-bold));--_line-chart-annotation-halo-color: var(--ds-line-chart-annotation-halo-color, var(--surface-default));--_line-chart-annotation-halo-width: var(--ds-line-chart-annotation-halo-width, 3px);--_line-chart-line-width: var(--ds-line-chart-line-width, var(--ds-chart-line-width));--_line-chart-dot-radius: var(--ds-line-chart-dot-radius, var(--ds-chart-dot-radius));--_line-chart-dot-radius-active: var(--ds-line-chart-dot-radius-active, var(--ds-chart-dot-radius-active));--_line-chart-hover-bg-color: var(--ds-line-chart-hover-bg-color, var(--ds-chart-hover-bg-color));--_line-chart-cursor-line-color: var(--ds-line-chart-cursor-line-color, var(--ds-chart-cursor-line-color));--_line-chart-line-width-bold: var( --ds-line-chart-line-width-bold, var(--ds-chart-line-width-bold) );--_line-chart-focus-color: var(--ds-line-chart-focus-color, var(--focus-ring-color));--_line-chart-focus-width: var(--ds-line-chart-focus-width, var(--focus-ring-width));--_line-chart-area-opacity: var(--ds-line-chart-area-opacity, .16);--_line-chart-swatch-size: var(--ds-line-chart-swatch-size, 10px);margin:0}.empty{display:grid;place-items:center;min-block-size:var(--_line-chart-view-height);margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}ds-chart{--ds-chart-grid-line-color: var(--_line-chart-grid-line-color);--ds-chart-axis-line-color: var(--_line-chart-axis-line-color);--ds-chart-axis-label-color: var(--_line-chart-axis-label-color);--ds-chart-axis-font-size: var(--_line-chart-axis-font-size);--ds-chart-hover-bg-color: var(--_line-chart-hover-bg-color);--ds-chart-cursor-line-color: var(--_line-chart-cursor-line-color);--ds-chart-line-width: var(--_line-chart-line-width);--ds-chart-line-width-bold: var(--_line-chart-line-width-bold);--ds-chart-dot-radius: var(--_line-chart-dot-radius);--ds-chart-dot-radius-active: var(--_line-chart-dot-radius-active);--ds-chart-area-opacity: var(--_line-chart-area-opacity);--ds-chart-annotation-color: var(--_line-chart-annotation-color);--ds-chart-annotation-font-size: var(--_line-chart-annotation-font-size);--ds-chart-annotation-font-weight: var(--_line-chart-annotation-font-weight);--ds-chart-annotation-halo-color: var(--_line-chart-annotation-halo-color);--ds-chart-annotation-halo-width: var(--_line-chart-annotation-halo-width);--ds-chart-focus-ring-color: var(--_line-chart-focus-color);--focus-ring-width: var(--_line-chart-focus-width)}ds-chart-legend{--ds-chart-legend-swatch-size: var(--_line-chart-swatch-size)}.skeleton{display:grid}.skeleton-legend{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-block-start:var(--space-3)}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}.pin-reset{position:absolute;inset-block-start:var(--space-2);inset-inline:0;z-index:1;justify-self:center;margin-inline:auto;display:inline-flex;align-items:center;gap:var(--space-1);min-block-size:var(--space-12);inline-size:fit-content;padding:var(--space-1) var(--space-3);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"] }]
|
|
441
|
+
}], ctorParameters: () => [], propDecorators: { categories: [{ type: i0.Input, args: [{ isSignal: true, alias: "categories", required: true }] }], series: [{ type: i0.Input, args: [{ isSignal: true, alias: "series", required: true }] }], yAxisMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "yAxisMode", required: false }] }], showMarkers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMarkers", required: false }] }], annotations: [{ type: i0.Input, args: [{ isSignal: true, alias: "annotations", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], pinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinOnClick", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], gaps: [{ type: i0.Input, args: [{ isSignal: true, alias: "gaps", required: false }] }], curve: [{ type: i0.Input, args: [{ isSignal: true, alias: "curve", required: false }] }], stack: [{ type: i0.Input, args: [{ isSignal: true, alias: "stack", required: false }] }], yAxisLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "yAxisLabel", required: false }] }], secondaryAxisLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondaryAxisLabel", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], maxSecondary: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSecondary", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], hiddenSeries: [{ type: i0.Input, args: [{ isSignal: true, alias: "hiddenSeries", required: false }] }, { type: i0.Output, args: ["hiddenSeriesChange"] }], rescaleOnHide: [{ type: i0.Input, args: [{ isSignal: true, alias: "rescaleOnHide", required: false }] }], legendFilters: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendFilters", required: false }] }], legendMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendMode", required: false }] }], noVisibleSeriesText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noVisibleSeriesText", required: false }] }], patterns: [{ type: i0.Input, args: [{ isSignal: true, alias: "patterns", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipTemplate: [{ type: i0.ContentChild, args: ['dsChartTooltip', { isSignal: true }] }], tooltipAnchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipAnchor", required: false }] }], plot: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ChartComponent), { isSignal: true }] }] } });
|
|
830
442
|
|
|
831
443
|
/**
|
|
832
444
|
* Generated bundle index. Do not edit.
|