@ids-group-ltd/ids-design-system 0.13.3 → 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 +846 -14
- package/components.md +552 -29
- package/design-system.md +9 -0
- package/docs/agent/INDEX.md +57 -15
- 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 +5 -1
- 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 +4 -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 +117 -27
- 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 +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
- 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 +14 -2
- 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 +404 -55
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- 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 +27 -10
- 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 +20 -10
- 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 +181 -500
- 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 +271 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +7 -3
- 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.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 +41 -9
- package/styles/_chart-frame.scss +16 -3
- 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 +40 -7
- package/styles/_tokens.scss +2 -2
- 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 -4
- 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 +8 -4
- 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 +4 -0
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +230 -44
- 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 +6 -2
- 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 +5 -2
- 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 +85 -139
- 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} +24 -19
- 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 +97 -4
- package/types/ids-group-ltd-ids-design-system-core.d.ts +30 -7
- package/types/ids-group-ltd-ids-design-system.d.ts +14 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +0 -382
- package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/** Cells arrive formatted: how a value reads is the chart's decision, not the table's. */
|
|
4
|
+
interface ChartDataRow {
|
|
5
|
+
readonly key: string;
|
|
6
|
+
readonly cells: readonly string[];
|
|
7
|
+
/** A part of the row above rather than a row of its own - one bar's segment, one stage's drop.
|
|
8
|
+
* Drawn indented and quieter, so the nesting survives without a second table. */
|
|
9
|
+
readonly nested?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The annex table under a chart: the non-visual route to the numbers, and the only one a reader
|
|
13
|
+
* with no pointer has.
|
|
14
|
+
*/
|
|
15
|
+
declare class ChartDataTableComponent {
|
|
16
|
+
readonly columns: _angular_core.InputSignal<readonly string[]>;
|
|
17
|
+
readonly rows: _angular_core.InputSignal<readonly ChartDataRow[]>;
|
|
18
|
+
readonly caption: _angular_core.InputSignal<string | null>;
|
|
19
|
+
readonly open: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
/** Renders each row's first cell as a `<th scope="row">`, for a matrix whose rows are named
|
|
21
|
+
* rather than numbered. */
|
|
22
|
+
readonly rowHeader: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
23
|
+
/** Fires with the disclosure's state, so a chart with thousands of readings can build its rows
|
|
24
|
+
* only while they are on screen. */
|
|
25
|
+
readonly toggled: _angular_core.OutputEmitterRef<boolean>;
|
|
26
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartDataTableComponent, never>;
|
|
27
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartDataTableComponent, "ds-chart-data-table", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "rowHeader": { "alias": "rowHeader"; "required": false; "isSignal": true; }; }, { "toggled": "toggled"; }, never, never, true, never>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { ChartDataTableComponent };
|
|
31
|
+
export type { ChartDataRow };
|
|
@@ -77,6 +77,10 @@ interface ChartActiveMark {
|
|
|
77
77
|
/** Whether the active mark is held rather than followed — a tap, or a click under `pinOnClick`. */
|
|
78
78
|
readonly pinned: Signal<boolean>;
|
|
79
79
|
enter(index: number, event: Event, anchor?: string | Element | null): void;
|
|
80
|
+
/** Moves the active index with no pointer behind it - a keyboard, or a mark handing over which
|
|
81
|
+
* category it took focus on. Leaves the anchor alone: the caller that has no event has no
|
|
82
|
+
* element to aim at either. A pin holds against this too. */
|
|
83
|
+
setIndex(index: number): void;
|
|
80
84
|
leave(): void;
|
|
81
85
|
/** Holds the mark that was activated, for any pointer type. Activating the mark that is already
|
|
82
86
|
* pinned releases it, so one gesture both sets and clears. */
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
2
|
-
import { NiceDomain
|
|
3
|
-
import { ChartThresholdDash, ChartStackMode, ChartAxis, ChartFrame, ChartValueFormat, ChartAxisMode, ChartThreshold } from '@ids-group-ltd/ids-design-system/core';
|
|
2
|
+
import { NiceDomain } from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
+
import { ChartThresholdDash, ChartStackMode, ChartAxis, ChartFrame, ChartValueFormat, ChartAxisMode, ChartGaps, ChartCurve, ChartThreshold } from '@ids-group-ltd/ids-design-system/core';
|
|
4
4
|
import * as _angular_core from '@angular/core';
|
|
5
5
|
import { InjectionToken, Signal, OnDestroy } from '@angular/core';
|
|
6
6
|
import * as _ids_group_ltd_ids_design_system_components_chart_tooltip from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
7
|
-
import { ChartItemTooltipTrigger, ChartTooltipContext } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
7
|
+
import { ChartItemTooltipTrigger, ChartTooltipContext, ChartTooltipTrigger, ChartTooltipOrigin } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
8
8
|
import { SafeHtml } from '@angular/platform-browser';
|
|
9
|
+
import * as _ids_group_ltd_ids_design_system_components_chart from '@ids-group-ltd/ids-design-system/components/chart';
|
|
9
10
|
|
|
11
|
+
declare const CHART_DEFAULT_VALUE_SPACE = 20;
|
|
10
12
|
/** The viewBox's height, and the `<svg>`'s rendered height in pixels - the two are the same
|
|
11
13
|
* number, which is what holds the 1:1 scale on the vertical axis too.
|
|
12
14
|
*
|
|
@@ -44,14 +46,6 @@ interface SecondaryAxis {
|
|
|
44
46
|
* one set of gridlines rather than two crossing each other. */
|
|
45
47
|
readonly aligned: boolean;
|
|
46
48
|
}
|
|
47
|
-
/** Where one series' segment starts and ends on the value axis, in the axis's own unit - or in
|
|
48
|
-
* shares of the category total under `'normalized'`.
|
|
49
|
-
*
|
|
50
|
-
* @internal */
|
|
51
|
-
interface ChartStackOffset {
|
|
52
|
-
readonly from: number;
|
|
53
|
-
readonly to: number;
|
|
54
|
-
}
|
|
55
49
|
/** Every segment's span on the value axis, series-major: `offsets[series][category]`.
|
|
56
50
|
*
|
|
57
51
|
* `'none'` and `'grouped'` give every series the same span it would have alone - the two differ in
|
|
@@ -61,9 +55,34 @@ interface ChartStackOffset {
|
|
|
61
55
|
*
|
|
62
56
|
* `'normalized'` divides a running SUM rather than each share in turn: adding 20/60 to 40/60
|
|
63
57
|
* lands on 0.9999999999999999, which draws a category that visibly falls short of full.
|
|
58
|
+
*/
|
|
59
|
+
declare function stackOffsets(series: readonly (readonly number[])[], mode: ChartStackMode): readonly (readonly ChartStackOffset[])[];
|
|
60
|
+
/** A label pinned to one reading, so the point it names is legible with no pointer.
|
|
64
61
|
*
|
|
65
62
|
* @internal */
|
|
66
|
-
|
|
63
|
+
interface ChartAnnotationMark {
|
|
64
|
+
readonly key: string;
|
|
65
|
+
readonly label: string;
|
|
66
|
+
readonly x: number;
|
|
67
|
+
readonly y: number;
|
|
68
|
+
readonly anchor: 'start' | 'middle' | 'end';
|
|
69
|
+
}
|
|
70
|
+
/** Places a label against each reading it names.
|
|
71
|
+
*
|
|
72
|
+
* @internal */
|
|
73
|
+
declare function annotationMarks(readings: readonly {
|
|
74
|
+
key: string;
|
|
75
|
+
label: string;
|
|
76
|
+
x: number;
|
|
77
|
+
y: number;
|
|
78
|
+
}[], plotWidth: number): readonly ChartAnnotationMark[];
|
|
79
|
+
/** Where one series' segment starts and ends on the value axis, in the axis's own unit - or in
|
|
80
|
+
* shares of the category total under `'normalized'`.
|
|
81
|
+
*/
|
|
82
|
+
interface ChartStackOffset {
|
|
83
|
+
readonly from: number;
|
|
84
|
+
readonly to: number;
|
|
85
|
+
}
|
|
67
86
|
|
|
68
87
|
/** The drawable rectangle inside `ds-chart`, in CSS pixels: the container measures itself and
|
|
69
88
|
* sizes its `viewBox` so one user unit is one pixel. A length written into a mark is therefore
|
|
@@ -103,6 +122,15 @@ interface ChartScales {
|
|
|
103
122
|
readonly zeroOffset: Signal<number>;
|
|
104
123
|
/** The category under the pointer or the keyboard, or `-1` for none. */
|
|
105
124
|
readonly activeIndex: Signal<number>;
|
|
125
|
+
/** The band drawn over the active category, for a mark that anchors a panel to the CATEGORY
|
|
126
|
+
* rather than to one of its own marks. `null` while `cursor` is off or nothing is active. */
|
|
127
|
+
readonly cursorOrigin: Signal<Element | null>;
|
|
128
|
+
/** Where the pointer last was, in client pixels, for a mark that anchors a panel to the cursor
|
|
129
|
+
* rather than to a reading. `null` while `cursor` is off or the pointer has left. */
|
|
130
|
+
readonly cursorPointer: Signal<{
|
|
131
|
+
readonly x: number;
|
|
132
|
+
readonly y: number;
|
|
133
|
+
} | null>;
|
|
106
134
|
setActiveIndex(index: number): void;
|
|
107
135
|
/** Contributes values to the shared domain under an id the caller owns. Reporting again with
|
|
108
136
|
* the same id replaces that contribution.
|
|
@@ -128,6 +156,21 @@ declare class ChartComponent implements ChartScales {
|
|
|
128
156
|
/** Pins the ceiling of the value axis. See `min`. Two charts drawn one subject at a time are
|
|
129
157
|
* only comparable when both are pinned. */
|
|
130
158
|
readonly max: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
159
|
+
/** Draws a band and a crosshair down the category under the pointer, and reports that category
|
|
160
|
+
* to every mark through `activeIndex`. `'none'`, the default, leaves the plot alone: a chart
|
|
161
|
+
* whose marks are the hover targets already answers per mark, and two affordances on one plot
|
|
162
|
+
* read as two different questions. */
|
|
163
|
+
readonly cursor: _angular_core.InputSignal<"none" | "category">;
|
|
164
|
+
/** Whether a press holds the category cursor where it is, so the reader can look away from the
|
|
165
|
+
* plot with the comparison still on screen. Released by pressing it again, by Escape, or by a
|
|
166
|
+
* press outside the plot. */
|
|
167
|
+
readonly cursorPin: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
168
|
+
/** Milliseconds the cursor survives the pointer leaving the plot. The tooltip panel is portaled
|
|
169
|
+
* out of the plot, so without a grace period it closes before the pointer can reach it. */
|
|
170
|
+
readonly tooltipLingerMs: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
171
|
+
/** Pins the ceiling of the SECOND value axis, the way `max` pins the first. Two plots read
|
|
172
|
+
* against each other need both pinned, or the second rescales under them. */
|
|
173
|
+
readonly maxSecondary: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
131
174
|
/** Height of the plot itself, in CSS pixels, axis labels and value headroom excluded. Real
|
|
132
175
|
* pixels rather than a share of the width: one viewBox unit is one pixel, so a card that
|
|
133
176
|
* widens spreads the categories further apart and leaves the plot exactly this tall. */
|
|
@@ -181,10 +224,17 @@ declare class ChartComponent implements ChartScales {
|
|
|
181
224
|
readonly axisColor: _angular_core.InputSignal<string | null>;
|
|
182
225
|
/** `axisColor` for the second axis. */
|
|
183
226
|
readonly secondaryAxisColor: _angular_core.InputSignal<string | null>;
|
|
227
|
+
/** Names the first axis's unit beside it. On a two-scale plot the colour says which line reads
|
|
228
|
+
* which axis and this says what the numbers ARE - a reader who has neither is left comparing
|
|
229
|
+
* two quantities that may not be comparable at all. */
|
|
230
|
+
readonly axisLabel: _angular_core.InputSignal<string | null>;
|
|
231
|
+
/** `axisLabel` for the second axis. */
|
|
232
|
+
readonly secondaryAxisLabel: _angular_core.InputSignal<string | null>;
|
|
233
|
+
private readonly defaults;
|
|
184
234
|
readonly frameResolved: Signal<ChartFrame>;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
235
|
+
readonly emptyTextResolved: Signal<string>;
|
|
236
|
+
readonly errorTextResolved: Signal<string>;
|
|
237
|
+
readonly valueFormatResolved: Signal<typeof _ids_group_ltd_ids_design_system_components.defaultChartFormat>;
|
|
188
238
|
private readonly host;
|
|
189
239
|
/** The `<svg>`'s own rendered width: `:host(.framed)` carries the frame padding, so the host's
|
|
190
240
|
* CONTENT box - which is what a `ResizeObserver` reports - is the box the canvas fills at
|
|
@@ -215,6 +265,8 @@ declare class ChartComponent implements ChartScales {
|
|
|
215
265
|
/** Widest tick label actually rendered, in the CSS pixels the canvas is drawn in. Zero until the
|
|
216
266
|
* first read, and zero under SSR, where `axisGutter` alone decides. */
|
|
217
267
|
private readonly measuredLabelWidth;
|
|
268
|
+
/** The widest category label as drawn, which is what decides whether they all fit. */
|
|
269
|
+
private readonly measuredCategoryLabelWidth;
|
|
218
270
|
/** `axisGutter` is the FLOOR, not the answer: a compact number is far wider in some locales than
|
|
219
271
|
* in others - `3,5 тыс.` against `3.5k` - and an SVG canvas CLIPS what a DOM column merely
|
|
220
272
|
* overflowed, so a fixed gutter silently eats the leading digit. The gutter takes whichever is
|
|
@@ -254,7 +306,7 @@ declare class ChartComponent implements ChartScales {
|
|
|
254
306
|
* aligned axis they would land on the primary's own lines and double every stroke. */
|
|
255
307
|
protected readonly showSecondaryGridlines: Signal<boolean>;
|
|
256
308
|
protected readonly secondaryLabelX: Signal<number>;
|
|
257
|
-
protected readonly secondaryLabelAnchor: Signal<"
|
|
309
|
+
protected readonly secondaryLabelAnchor: Signal<"start" | "end">;
|
|
258
310
|
protected readonly secondaryPlotBottom: Signal<number>;
|
|
259
311
|
/** No tint on a single-scale plot: one axis needs no telling apart, and colouring it would only
|
|
260
312
|
* restate the marks' own colour in the furniture. */
|
|
@@ -265,8 +317,31 @@ declare class ChartComponent implements ChartScales {
|
|
|
265
317
|
readonly xPosition: Signal<(index: number) => number>;
|
|
266
318
|
readonly yPosition: Signal<(value: number) => number>;
|
|
267
319
|
readonly zeroOffset: Signal<number>;
|
|
268
|
-
readonly
|
|
320
|
+
protected readonly cursorBand: Signal<{
|
|
321
|
+
x: number;
|
|
322
|
+
width: number;
|
|
323
|
+
top: number;
|
|
324
|
+
bottom: number;
|
|
325
|
+
} | null>;
|
|
326
|
+
/** The same state machine the element marks run on: pin, linger, the grace period that lets the
|
|
327
|
+
* pointer reach a portaled panel, Escape and press-outside. A category cursor differs from a
|
|
328
|
+
* mark only in what the index counts, so it takes the behaviour rather than restating it. */
|
|
329
|
+
private readonly cursorState;
|
|
330
|
+
readonly activeIndex: Signal<number>;
|
|
331
|
+
private readonly pointerAt;
|
|
332
|
+
readonly cursorPointer: Signal<{
|
|
333
|
+
x: number;
|
|
334
|
+
y: number;
|
|
335
|
+
} | null>;
|
|
336
|
+
/** Whether the cursor is held. A preset renders its own way out of the pin from this. */
|
|
337
|
+
readonly cursorPinned: Signal<boolean>;
|
|
338
|
+
releaseCursor(): void;
|
|
339
|
+
protected onPlotPointer(event: PointerEvent): void;
|
|
340
|
+
protected clearCursor(): void;
|
|
341
|
+
private readonly bandElement;
|
|
342
|
+
readonly cursorOrigin: Signal<Element | null>;
|
|
269
343
|
setActiveIndex(index: number): void;
|
|
344
|
+
private clampIndex;
|
|
270
345
|
protected readonly plotRight: Signal<number>;
|
|
271
346
|
protected readonly plotBottom: Signal<number>;
|
|
272
347
|
protected readonly axisLabelX: Signal<number>;
|
|
@@ -278,9 +353,14 @@ declare class ChartComponent implements ChartScales {
|
|
|
278
353
|
y: number;
|
|
279
354
|
label: string;
|
|
280
355
|
}[]>;
|
|
356
|
+
/** Rotation is spent before thinning: a tilt costs the reader a glance, dropping a label costs
|
|
357
|
+
* them a reading. Both are decided from the widest label as it actually rendered. */
|
|
358
|
+
protected readonly categoryLabelsRotated: Signal<boolean>;
|
|
359
|
+
private readonly categoryLabelInterval;
|
|
281
360
|
protected readonly categoryLabels: Signal<{
|
|
282
361
|
x: number;
|
|
283
362
|
text: string;
|
|
363
|
+
index: number;
|
|
284
364
|
}[]>;
|
|
285
365
|
protected readonly reachesBelowZero: Signal<boolean>;
|
|
286
366
|
/** Empty is read off `categories` alone, never off the reported domains: the marks are
|
|
@@ -289,10 +369,9 @@ declare class ChartComponent implements ChartScales {
|
|
|
289
369
|
protected readonly isEmpty: Signal<boolean>;
|
|
290
370
|
protected readonly accessibleName: Signal<string>;
|
|
291
371
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartComponent, never>;
|
|
292
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartComponent, "ds-chart",
|
|
372
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartComponent, "ds-chart", ["dsChart"], { "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "tickCount": { "alias": "tickCount"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "cursor": { "alias": "cursor"; "required": false; "isSignal": true; }; "cursorPin": { "alias": "cursorPin"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "maxSecondary": { "alias": "maxSecondary"; "required": false; "isSignal": true; }; "plotHeight": { "alias": "plotHeight"; "required": false; "isSignal": true; }; "axisGutter": { "alias": "axisGutter"; "required": false; "isSignal": true; }; "valueSpace": { "alias": "valueSpace"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "secondaryAxisMode": { "alias": "secondaryAxisMode"; "required": false; "isSignal": true; }; "axisColor": { "alias": "axisColor"; "required": false; "isSignal": true; }; "secondaryAxisColor": { "alias": "secondaryAxisColor"; "required": false; "isSignal": true; }; "axisLabel": { "alias": "axisLabel"; "required": false; "isSignal": true; }; "secondaryAxisLabel": { "alias": "secondaryAxisLabel"; "required": false; "isSignal": true; }; }, {}, never, ["[dsReferenceLine]", "*", "[dsReferenceLabel], [dsSeriesAnnotation]"], true, never>;
|
|
293
373
|
}
|
|
294
374
|
|
|
295
|
-
/** @internal */
|
|
296
375
|
interface ColumnSeriesPoint {
|
|
297
376
|
id?: string;
|
|
298
377
|
label: string;
|
|
@@ -306,23 +385,39 @@ interface ColumnSeriesPoint {
|
|
|
306
385
|
* Hosted on a `<g>` rather than an element of its own: an element the SVG specification does not
|
|
307
386
|
* know is not rendered, and neither are its descendants, so `<ds-column-series>` inside the
|
|
308
387
|
* container's canvas would draw nothing. Written as `<svg:g dsColumnSeries>`.
|
|
309
|
-
*
|
|
310
|
-
* @internal
|
|
311
388
|
*/
|
|
312
389
|
declare class ColumnSeriesComponent implements OnDestroy {
|
|
313
390
|
private readonly scales;
|
|
314
391
|
/** Not `input.required`: the preset reads `tooltipContext()` from a binding on this same
|
|
315
392
|
* element, and a required input throws NG0950 for the pass before its own value is written. */
|
|
316
393
|
readonly data: _angular_core.InputSignal<readonly ColumnSeriesPoint[]>;
|
|
394
|
+
/** Prints each column's value above the column. */
|
|
317
395
|
readonly showValues: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
396
|
+
/** Turns on the click affordance - the pointer cursor and the hover tint. `pointClicked`
|
|
397
|
+
* fires whether or not this is set. */
|
|
318
398
|
readonly interactive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
399
|
+
/** Holds the hovered mark and its tooltip in place when it is clicked, until Escape or a
|
|
400
|
+
* press outside releases it. Pinning is a state, not a handler. */
|
|
319
401
|
readonly pinOnClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
402
|
+
/** Fades every mark but the one under the pointer. Off by default: the dimming buys loudness
|
|
403
|
+
* for one mark and pays for it with the separation between the rest. */
|
|
320
404
|
readonly dimOthers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
405
|
+
/** Milliseconds between one mark's entrance and the next. The total is capped, so a long
|
|
406
|
+
* series does not crawl in. */
|
|
321
407
|
readonly staggerMs: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
408
|
+
/** Declares that the marks are parts of one whole, which is what makes a share of their total
|
|
409
|
+
* a real quantity. On, each mark's share appears on the tooltip's second line. */
|
|
322
410
|
readonly partOfWhole: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
411
|
+
/** Whether a hovered or focused column opens a tooltip. */
|
|
323
412
|
readonly tooltip: _angular_core.InputSignal<ChartItemTooltipTrigger>;
|
|
413
|
+
/** Where the tooltip is pinned. `'mark'` is the column itself; `'cell'` is the full-height
|
|
414
|
+
* category cell, which puts the panel at the top of the plot whatever the column's value. */
|
|
324
415
|
readonly tooltipAnchor: _angular_core.InputSignal<"mark" | "cell">;
|
|
416
|
+
/** How long the panel survives the pointer leaving the mark. Raise it only for a panel a
|
|
417
|
+
* reader has to REACH, which is WCAG 1.4.13's hoverable clause; about 140 crosses the gap. */
|
|
325
418
|
readonly tooltipLingerMs: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
419
|
+
/** Formats every value this series prints. Called with `'tick'` for an axis label and
|
|
420
|
+
* `'tooltip'` everywhere a value is printed in full. */
|
|
326
421
|
readonly valueFormat: _angular_core.InputSignal<ChartValueFormat>;
|
|
327
422
|
/** The mark's share of its category's own slot, before the maximum width caps it. Measured off
|
|
328
423
|
* the slot rather than off `bandWidth()`, which has the container's own padding already taken
|
|
@@ -346,6 +441,7 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
346
441
|
/** Names the series in the tooltip, where the category then becomes the panel's heading. Unset,
|
|
347
442
|
* the panel names the category instead, which is what a chart of one series has to say. */
|
|
348
443
|
readonly seriesLabel: _angular_core.InputSignal<string | null>;
|
|
444
|
+
/** The clicked datum. Fires on click and on Enter or Space, whatever `interactive` says. */
|
|
349
445
|
readonly pointClicked: _angular_core.OutputEmitterRef<ColumnSeriesPoint>;
|
|
350
446
|
private readonly seriesId;
|
|
351
447
|
private readonly domainId;
|
|
@@ -408,7 +504,6 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
408
504
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColumnSeriesComponent, "g[dsColumnSeries]", ["dsColumnSeries"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "showValues": { "alias": "showValues"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; "partOfWhole": { "alias": "partOfWhole"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipAnchor": { "alias": "tooltipAnchor"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "columnWidthRatio": { "alias": "columnWidthRatio"; "required": false; "isSignal": true; }; "slot": { "alias": "slot"; "required": false; "isSignal": true; }; "slotCount": { "alias": "slotCount"; "required": false; "isSignal": true; }; "offsets": { "alias": "offsets"; "required": false; "isSignal": true; }; "seriesColor": { "alias": "seriesColor"; "required": false; "isSignal": true; }; "seriesFill": { "alias": "seriesFill"; "required": false; "isSignal": true; }; "seriesLabel": { "alias": "seriesLabel"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, never, never, true, never>;
|
|
409
505
|
}
|
|
410
506
|
|
|
411
|
-
/** @internal */
|
|
412
507
|
interface LineSeriesData {
|
|
413
508
|
id: string;
|
|
414
509
|
label: string;
|
|
@@ -418,34 +513,78 @@ interface LineSeriesData {
|
|
|
418
513
|
axis?: ChartAxis;
|
|
419
514
|
/** Fills the band between the line and its axis baseline. */
|
|
420
515
|
area?: boolean;
|
|
516
|
+
/** The band's floor, one entry per category, in the axis's own unit. Unset fills to the
|
|
517
|
+
* baseline. Given, the fill is the band between the two curves - which is what a stacked plot
|
|
518
|
+
* needs, and the caller that owns the pile is the one that knows where each band starts. A
|
|
519
|
+
* `null` must sit in exactly the categories `data` has one, or the two sides break in
|
|
520
|
+
* different places. */
|
|
521
|
+
lower?: readonly (number | null)[];
|
|
421
522
|
/** Any CSS colour. Unset takes the categorical palette slot for the series' position. */
|
|
422
523
|
color?: string;
|
|
423
524
|
}
|
|
424
|
-
/** What a `null` reading draws: a hole in the line, or a point at zero.
|
|
425
|
-
*
|
|
426
|
-
* @internal */
|
|
427
|
-
type LineSeriesGaps = 'break' | 'zero';
|
|
428
525
|
/**
|
|
429
526
|
* One line per series, drawn against the scales `ds-chart` supplies, on either of its two value
|
|
430
527
|
* axes.
|
|
431
528
|
*
|
|
432
529
|
* Hosted on a `<g>` rather than an element of its own: an element the SVG specification does not
|
|
433
530
|
* know is not rendered, and neither are its descendants. Written as `<svg:g dsLineSeries>`.
|
|
434
|
-
*
|
|
435
|
-
* @internal
|
|
436
531
|
*/
|
|
437
532
|
declare class LineSeriesComponent implements OnDestroy {
|
|
438
533
|
private readonly scales;
|
|
439
534
|
/** Not `input.required`: the preset reads `tooltipContext()` from a binding on this same
|
|
440
535
|
* element, and a required input throws NG0950 for the pass before its own value is written. */
|
|
441
536
|
readonly data: _angular_core.InputSignal<readonly LineSeriesData[]>;
|
|
537
|
+
/** Draws a round marker at every reading. Off leaves the line alone, which reads better past
|
|
538
|
+
* roughly twenty points. */
|
|
442
539
|
readonly showMarkers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
540
|
+
/** Turns on the click affordance - the pointer cursor and the hover tint. `pointClicked`
|
|
541
|
+
* fires whether or not this is set. */
|
|
443
542
|
readonly interactive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
543
|
+
/** Holds the hovered mark and its tooltip in place when it is clicked, until Escape or a
|
|
544
|
+
* press outside releases it. Pinning is a state, not a handler. */
|
|
545
|
+
readonly pinOnClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
546
|
+
/** Fades every series but the one under the pointer. Off by default: the dimming buys loudness
|
|
547
|
+
* for one line and pays for it with the separation between the rest. */
|
|
548
|
+
readonly dimOthers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
549
|
+
/** The one series to single out: every other one draws faded and this one draws bold, so the
|
|
550
|
+
* comparison survives a monochrome print. Driven from a legend, or from whatever else the app
|
|
551
|
+
* uses to mean "show me this one". Needs `dimOthers`, which is what says fading is wanted at
|
|
552
|
+
* all. */
|
|
553
|
+
readonly highlighted: _angular_core.InputSignal<string | null>;
|
|
554
|
+
/** A dash pattern per series, in the order the series are given. A series past the end of the
|
|
555
|
+
* list, or given an empty string, draws solid. */
|
|
556
|
+
readonly patterns: _angular_core.InputSignal<readonly string[]>;
|
|
557
|
+
/** Fills each area from the series below it rather than from the baseline, which is what a
|
|
558
|
+
* stacked plot needs and what the fill reads as. */
|
|
559
|
+
readonly stacked: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
560
|
+
/** The dash for a series' position, or null where it draws solid. */
|
|
561
|
+
protected dashFor(seriesIndex: number): string | null;
|
|
562
|
+
/** Milliseconds between one marker's entrance and the next. The total is capped. */
|
|
444
563
|
readonly staggerMs: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
445
|
-
|
|
446
|
-
|
|
564
|
+
/** What a `null` reading draws: `'break'` leaves a hole in the line, `'zero'` plots a point
|
|
565
|
+
* at zero. A missing measurement and a measured zero are different facts. */
|
|
566
|
+
readonly gaps: _angular_core.InputSignal<ChartGaps>;
|
|
567
|
+
/** How the line joins its readings. `'linear'` by default, which asserts nothing the data does
|
|
568
|
+
* not say; a curve is a claim about what happened BETWEEN two readings. `'step'` holds each
|
|
569
|
+
* reading to the next, `'smooth'` is a monotone cubic that draws no peak the data lacks. */
|
|
570
|
+
readonly curve: _angular_core.InputSignal<ChartCurve>;
|
|
571
|
+
/** Whether a hovered or focused reading opens a tooltip, and for what. `'item'` names the
|
|
572
|
+
* marker itself. `'axis'` names every series at the category under the pointer, which is the
|
|
573
|
+
* reading a multi-series line is compared on - it follows the container's `cursor`, so set
|
|
574
|
+
* `cursor="category"` on `ds-chart` with it or nothing marks the category being read. */
|
|
575
|
+
readonly tooltip: _angular_core.InputSignal<ChartTooltipTrigger>;
|
|
576
|
+
/** Where an `'axis'` panel hangs: `'reading'` puts it over the highest reading in the category,
|
|
577
|
+
* so it names what it points at and stays put while the pointer travels within one band;
|
|
578
|
+
* `'pointer'` follows the cursor. */
|
|
579
|
+
readonly tooltipAnchor: _angular_core.InputSignal<"reading" | "pointer">;
|
|
580
|
+
/** How long the panel survives the pointer leaving the marker. Raise it only for a panel a
|
|
581
|
+
* reader has to REACH, which is WCAG 1.4.13's hoverable clause; about 140 crosses the gap. */
|
|
447
582
|
readonly tooltipLingerMs: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
583
|
+
/** Formats every value this series prints. Called with `'tick'` for an axis label and
|
|
584
|
+
* `'tooltip'` everywhere a value is printed in full. */
|
|
448
585
|
readonly valueFormat: _angular_core.InputSignal<ChartValueFormat>;
|
|
586
|
+
/** The clicked reading, with the series it belongs to and its position in `categories`.
|
|
587
|
+
* Fires on click and on Enter or Space, whatever `interactive` says. */
|
|
449
588
|
readonly pointClicked: _angular_core.OutputEmitterRef<{
|
|
450
589
|
series: LineSeriesData;
|
|
451
590
|
categoryIndex: number;
|
|
@@ -463,8 +602,8 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
463
602
|
series: LineSeriesData;
|
|
464
603
|
color: string;
|
|
465
604
|
seriesIndex: number;
|
|
466
|
-
|
|
467
|
-
areaPaths: string[];
|
|
605
|
+
linePaths: string[];
|
|
606
|
+
areaPaths: readonly string[];
|
|
468
607
|
markers: {
|
|
469
608
|
key: string;
|
|
470
609
|
markIndex: number;
|
|
@@ -479,24 +618,44 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
479
618
|
color: string;
|
|
480
619
|
}[];
|
|
481
620
|
}[]>;
|
|
621
|
+
private areaPathsFor;
|
|
482
622
|
private readonly allMarkers;
|
|
483
623
|
protected seriesStagger(index: number): string;
|
|
484
|
-
/** One tab stop
|
|
485
|
-
*
|
|
486
|
-
|
|
487
|
-
|
|
624
|
+
/** One tab stop PER SERIES: each line is a strand the reader walks with the arrows, and the
|
|
625
|
+
* strands are what the chart is comparing. WCAG 2.1.1's Understanding is explicit that not
|
|
626
|
+
* every mouse-operable control has to be separately focusable, which is what keeps a
|
|
627
|
+
* 12-category, 2-series plot from being twenty-four stops in the page's tab order. */
|
|
628
|
+
private readonly rovingBySeries;
|
|
629
|
+
protected isTabStop(seriesId: string, markIndex: number): boolean;
|
|
630
|
+
/** The series a marker holds focus on, which narrows an `'axis'` panel to that one reading: a
|
|
631
|
+
* pointer answers for every series at once, a focused marker answers for its own. */
|
|
632
|
+
private readonly focusedSeries;
|
|
488
633
|
protected onMarkerEnter(markIndex: number, event: Event): void;
|
|
489
634
|
protected onMarkerFocus(markIndex: number, event: FocusEvent): void;
|
|
635
|
+
protected onMarkerBlur(): void;
|
|
490
636
|
protected onMarkerNavigation(event: KeyboardEvent, markIndex: number): void;
|
|
491
|
-
protected
|
|
637
|
+
protected isDimmed(seriesId: string): boolean;
|
|
638
|
+
protected onMarkerClick(markIndex: number, event?: Event): void;
|
|
492
639
|
protected markerLabel(marker: {
|
|
493
640
|
seriesLabel: string;
|
|
494
641
|
category: string;
|
|
495
642
|
formattedValue: string;
|
|
496
643
|
}): string;
|
|
497
644
|
readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
|
|
645
|
+
private readonly markerElements;
|
|
646
|
+
/** The topmost reading at the active category, as its own element. The cursor band spans the
|
|
647
|
+
* whole plot, so anchoring an `'axis'` panel to it opens the panel at the top of the chart
|
|
648
|
+
* rather than over the readings it is about. */
|
|
649
|
+
private readonly topReadingElement;
|
|
650
|
+
/** Where the panel hangs: the reading or the pointer in `'axis'` mode, the hovered mark
|
|
651
|
+
* otherwise. */
|
|
652
|
+
readonly tooltipOrigin: _angular_core.Signal<ChartTooltipOrigin | null>;
|
|
653
|
+
/** Every series' reading at the category the CONTAINER says is active, which is what the
|
|
654
|
+
* category cursor sets. A series with no reading there contributes no row rather than a
|
|
655
|
+
* blank one. */
|
|
656
|
+
private readonly axisTooltipContext;
|
|
498
657
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LineSeriesComponent, never>;
|
|
499
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LineSeriesComponent, "g[dsLineSeries]", ["dsLineSeries"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "showMarkers": { "alias": "showMarkers"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; "gaps": { "alias": "gaps"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, never, never, true, never>;
|
|
658
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LineSeriesComponent, "g[dsLineSeries]", ["dsLineSeries"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "showMarkers": { "alias": "showMarkers"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "highlighted": { "alias": "highlighted"; "required": false; "isSignal": true; }; "patterns": { "alias": "patterns"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; "gaps": { "alias": "gaps"; "required": false; "isSignal": true; }; "curve": { "alias": "curve"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipAnchor": { "alias": "tooltipAnchor"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, never, never, true, never>;
|
|
500
659
|
}
|
|
501
660
|
|
|
502
661
|
/**
|
|
@@ -505,11 +664,12 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
505
664
|
* A second element rather than part of `g[dsReferenceLine]`: the strokes belong under the marks
|
|
506
665
|
* and the names over them, and a projected element lands in exactly one of the container's slots.
|
|
507
666
|
* Reports no domain - the line it names already did.
|
|
508
|
-
*
|
|
509
|
-
* @internal
|
|
510
667
|
*/
|
|
511
668
|
declare class ReferenceLabelComponent {
|
|
512
669
|
private readonly scales;
|
|
670
|
+
/** The same list `dsReferenceLine` is given. This mark draws only the labels, so it is placed
|
|
671
|
+
* AFTER the series and the line mark before it, which is what keeps a label legible over a mark
|
|
672
|
+
* that would otherwise cover it. */
|
|
513
673
|
readonly thresholds: _angular_core.InputSignal<readonly ChartThreshold[]>;
|
|
514
674
|
protected readonly lines: _angular_core.Signal<ThresholdMark[]>;
|
|
515
675
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReferenceLabelComponent, never>;
|
|
@@ -525,11 +685,12 @@ declare class ReferenceLabelComponent {
|
|
|
525
685
|
*
|
|
526
686
|
* Hosted on a `<g>` rather than an element of its own: an element the SVG specification does not
|
|
527
687
|
* know is not rendered, and neither are its descendants. Written as `<svg:g dsReferenceLine>`.
|
|
528
|
-
*
|
|
529
|
-
* @internal
|
|
530
688
|
*/
|
|
531
689
|
declare class ReferenceLineComponent implements OnDestroy {
|
|
532
690
|
private readonly scales;
|
|
691
|
+
/** The lines and bands to draw across the plot. Each entry is ONE reading, `value`, plus an
|
|
692
|
+
* optional `label`, `color` and `dash`; a `to` makes it a band between two readings. Each one
|
|
693
|
+
* widens the value axis to hold it, so a target above every mark still lands on the plot. */
|
|
533
694
|
readonly thresholds: _angular_core.InputSignal<readonly ChartThreshold[]>;
|
|
534
695
|
private readonly domainId;
|
|
535
696
|
constructor();
|
|
@@ -539,5 +700,30 @@ declare class ReferenceLineComponent implements OnDestroy {
|
|
|
539
700
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ReferenceLineComponent, "g[dsReferenceLine]", never, { "thresholds": { "alias": "thresholds"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
540
701
|
}
|
|
541
702
|
|
|
542
|
-
|
|
543
|
-
|
|
703
|
+
interface ChartAnnotation {
|
|
704
|
+
/** 0-based position along the category axis. */
|
|
705
|
+
readonly categoryIndex: number;
|
|
706
|
+
/** The reading the label names, in the axis's own unit. */
|
|
707
|
+
readonly value: number;
|
|
708
|
+
readonly label: string;
|
|
709
|
+
/** Which value axis the reading is measured against. Defaults to `'primary'`. */
|
|
710
|
+
readonly axis?: ChartAxis;
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* A tooltip answers "what is this?" on hover; an annotation answers it in a printed page or a
|
|
714
|
+
* screenshot.
|
|
715
|
+
*
|
|
716
|
+
* Takes the readings rather than finding them: a mark never sees the other marks, so the caller
|
|
717
|
+
* that owns the series is the one that knows which value a label belongs to. Reports no domain -
|
|
718
|
+
* the series it annotates already did.
|
|
719
|
+
*/
|
|
720
|
+
declare class SeriesAnnotationComponent {
|
|
721
|
+
private readonly scales;
|
|
722
|
+
readonly annotations: _angular_core.InputSignal<readonly ChartAnnotation[]>;
|
|
723
|
+
protected readonly placed: _angular_core.Signal<readonly _ids_group_ltd_ids_design_system_components_chart.ChartAnnotationMark[]>;
|
|
724
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SeriesAnnotationComponent, never>;
|
|
725
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SeriesAnnotationComponent, "g[dsSeriesAnnotation]", never, { "annotations": { "alias": "annotations"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
export { CHART_DEFAULT_VALUE_SPACE, CHART_SCALES, ChartComponent, ColumnSeriesComponent, LineSeriesComponent, ReferenceLabelComponent, ReferenceLineComponent, SeriesAnnotationComponent, annotationMarks, chartViewHeight, stackOffsets };
|
|
729
|
+
export type { ChartAnnotation, ChartAnnotationMark, ChartPlot, ChartScales, ChartStackOffset, ColumnSeriesPoint, LineSeriesData };
|
|
@@ -18,7 +18,9 @@ declare class ColorPickerComponent extends DsControlValueAccessor<string> implem
|
|
|
18
18
|
private readonly vcr;
|
|
19
19
|
private readonly host;
|
|
20
20
|
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
21
|
-
* a consumer's `ds-color-picker { --ds-color-picker-panel-*: … }` reaches it.
|
|
21
|
+
* a consumer's `ds-color-picker { --ds-color-picker-panel-*: … }` reaches it.
|
|
22
|
+
* Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`
|
|
23
|
+
* (overlay-motion.ts) onto every pane, the `--ds-option-*` family among them. */
|
|
22
24
|
private readonly panelTokens;
|
|
23
25
|
/** Selected colour as a hex string, two-way bound. */
|
|
24
26
|
readonly value: _angular_core.ModelSignal<string>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
1
2
|
import * as _angular_core from '@angular/core';
|
|
2
3
|
import { TemplateRef } from '@angular/core';
|
|
3
|
-
import { defaultChartFormat } from '@ids-group-ltd/ids-design-system/components';
|
|
4
4
|
import { ChartStackMode, ChartThreshold, ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
|
|
5
5
|
import { ColumnSeriesComponent, ChartStackOffset } from '@ids-group-ltd/ids-design-system/components/chart';
|
|
6
6
|
import { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';
|
|
7
|
+
import { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
|
|
7
8
|
import { ChartItemTooltipTrigger, ChartTooltipContext } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
8
9
|
|
|
9
10
|
/** How a mark is painted. `'hatched'` is the second encoding channel a colour cannot carry on its
|
|
@@ -124,11 +125,12 @@ declare class ColumnChartComponent {
|
|
|
124
125
|
* included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then the browser's locale
|
|
125
126
|
* grouping with a K/M/B suffix past four digits. */
|
|
126
127
|
readonly valueFormat: _angular_core.InputSignal<ChartValueFormat | null>;
|
|
128
|
+
private readonly defaults;
|
|
127
129
|
readonly frameResolved: _angular_core.Signal<ChartFrame>;
|
|
128
130
|
readonly dataTableResolved: _angular_core.Signal<ChartDataTable>;
|
|
129
131
|
readonly emptyTextResolved: _angular_core.Signal<string>;
|
|
130
132
|
readonly errorTextResolved: _angular_core.Signal<string>;
|
|
131
|
-
readonly valueFormatResolved: _angular_core.Signal<typeof defaultChartFormat>;
|
|
133
|
+
readonly valueFormatResolved: _angular_core.Signal<typeof _ids_group_ltd_ids_design_system_components.defaultChartFormat>;
|
|
132
134
|
/** Turns on the click affordance — the pointer cursor and any hover tint.
|
|
133
135
|
* The click output fires whether or not this is set, so a consumer that
|
|
134
136
|
* binds the output and forgets the flag still receives every click. */
|
|
@@ -192,6 +194,8 @@ declare class ColumnChartComponent {
|
|
|
192
194
|
/** A normalized stack draws shares, not readings, so the axis has to say so - the value printed
|
|
193
195
|
* beside each mark stays the reading, which is what `valueFormat` goes on formatting. */
|
|
194
196
|
protected readonly axisFormat: _angular_core.Signal<ChartValueFormat | null>;
|
|
197
|
+
protected readonly dataTableColumns: _angular_core.Signal<readonly string[]>;
|
|
198
|
+
protected readonly dataTableRows: _angular_core.Signal<readonly ChartDataRow[]>;
|
|
195
199
|
protected readonly tableRows: _angular_core.Signal<{
|
|
196
200
|
key: string;
|
|
197
201
|
series: string;
|
|
@@ -32,11 +32,11 @@ interface DisplayPart {
|
|
|
32
32
|
|
|
33
33
|
type DatePickerMode = 'single' | 'range';
|
|
34
34
|
type DateValue = Date | null;
|
|
35
|
-
type
|
|
36
|
-
type DatePickerValue = DateValue |
|
|
35
|
+
type DateRangeValue = [Date | null, Date | null];
|
|
36
|
+
type DatePickerValue = DateValue | DateRangeValue;
|
|
37
37
|
interface DatePickerPreset {
|
|
38
38
|
label: string;
|
|
39
|
-
value: Date |
|
|
39
|
+
value: Date | DateRangeValue;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
interface DayCell {
|
|
@@ -50,7 +50,7 @@ interface DayCell {
|
|
|
50
50
|
isSelected: boolean;
|
|
51
51
|
isDisabled: boolean;
|
|
52
52
|
}
|
|
53
|
-
declare class DatePickerComponent extends DsControlValueAccessor<Date |
|
|
53
|
+
declare class DatePickerComponent extends DsControlValueAccessor<Date | DateRangeValue | null> implements OnDestroy {
|
|
54
54
|
/** Segment of a ds-field-group: the group owns the border, radius and focus
|
|
55
55
|
* ring, so .in-group strips this control back to its bare contents. */
|
|
56
56
|
protected readonly inGroup: boolean;
|
|
@@ -65,7 +65,9 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | RangeVal
|
|
|
65
65
|
private readonly config;
|
|
66
66
|
private readonly host;
|
|
67
67
|
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
68
|
-
* a consumer's `ds-date-picker { --ds-date-picker-*: … }` reaches it.
|
|
68
|
+
* a consumer's `ds-date-picker { --ds-date-picker-*: … }` reaches it.
|
|
69
|
+
* Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`
|
|
70
|
+
* (overlay-motion.ts) onto every pane, the `--ds-option-*` family among them. */
|
|
69
71
|
private readonly panelTokens;
|
|
70
72
|
/** Selection mode — single date or start/end range. */
|
|
71
73
|
readonly mode: _angular_core.InputSignal<DatePickerMode>;
|
|
@@ -77,7 +79,7 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | RangeVal
|
|
|
77
79
|
* width — opt in when the field shares a grid/flex track with inputs. */
|
|
78
80
|
readonly fullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
79
81
|
/** Selected date (single) or `[start, end]` (range), two-way bound. */
|
|
80
|
-
readonly value: _angular_core.ModelSignal<Date |
|
|
82
|
+
readonly value: _angular_core.ModelSignal<Date | DateRangeValue | null>;
|
|
81
83
|
/** Accessible-name fallback only — the mask fills the visible placeholder, not this. */
|
|
82
84
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
83
85
|
/** Field label shown above the trigger. */
|
|
@@ -256,4 +258,4 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | RangeVal
|
|
|
256
258
|
}
|
|
257
259
|
|
|
258
260
|
export { DatePickerComponent };
|
|
259
|
-
export type { DatePickerMode, DatePickerPreset, DatePickerValue,
|
|
261
|
+
export type { DatePickerMode, DatePickerPreset, DatePickerValue, DateRangeValue, DateValue };
|