@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
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as _ids_group_ltd_ids_design_system_components_chart_tooltip from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
2
2
|
import { ChartItemTooltipTrigger, ChartTooltipContext } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
3
|
+
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
3
4
|
import * as _angular_core from '@angular/core';
|
|
4
5
|
import { TemplateRef } from '@angular/core';
|
|
5
|
-
import { defaultChartFormat } from '@ids-group-ltd/ids-design-system/components';
|
|
6
6
|
import { ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
|
|
7
|
+
import { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
|
|
7
8
|
|
|
8
|
-
interface
|
|
9
|
+
interface PieChartSlice {
|
|
9
10
|
id: string;
|
|
10
11
|
label: string;
|
|
11
12
|
value: number;
|
|
@@ -15,10 +16,10 @@ interface DonutChartSlice {
|
|
|
15
16
|
slot?: number;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
declare class
|
|
19
|
+
declare class PieChartComponent {
|
|
19
20
|
/** One slice per entry. A non-positive or non-finite value counts as zero — a ring is a
|
|
20
21
|
* part-to-whole picture and has no way to draw a negative share. */
|
|
21
|
-
readonly data: _angular_core.InputSignal<readonly
|
|
22
|
+
readonly data: _angular_core.InputSignal<readonly PieChartSlice[]>;
|
|
22
23
|
/** Printed inside the ring. Null prints the sum through `valueFormat`. */
|
|
23
24
|
readonly centerValue: _angular_core.InputSignal<string | null>;
|
|
24
25
|
/** Caption under the centre value. */
|
|
@@ -27,12 +28,13 @@ declare class DonutChartComponent {
|
|
|
27
28
|
readonly legend: _angular_core.InputSignal<"end" | "bottom" | "none">;
|
|
28
29
|
/** Longest legend to draw. Past it the smallest slices are summed into one, so a long tail does
|
|
29
30
|
* not become a legend nobody reads. Off by default: grouping changes what the chart says, and
|
|
30
|
-
* that is the consumer's call. Values below 2 are ignored — one slice is not a
|
|
31
|
+
* that is the consumer's call. Values below 2 are ignored — one slice is not a pie. */
|
|
31
32
|
readonly maxSlices: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
32
33
|
/** Names the grouped slice. */
|
|
33
34
|
readonly otherLabel: _angular_core.InputSignal<string>;
|
|
34
|
-
/**
|
|
35
|
-
|
|
35
|
+
/** The hole, as a fraction of the outer radius. Zero draws a solid pie and takes the centre
|
|
36
|
+
* content away with the hole that held it. */
|
|
37
|
+
readonly innerRadius: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
36
38
|
/** Whether the chart draws its own bordered, padded box. `'auto'`, the default, draws it;
|
|
37
39
|
* `'none'` leaves the chart bare, for one placed inside a card the page has already drawn.
|
|
38
40
|
* Unset falls back to `DS_CONFIG.chart.frame`, then `'auto'` — whether charts live inside cards
|
|
@@ -79,18 +81,19 @@ declare class DonutChartComponent {
|
|
|
79
81
|
* included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then the browser's locale
|
|
80
82
|
* grouping with a K/M/B suffix past four digits. */
|
|
81
83
|
readonly valueFormat: _angular_core.InputSignal<ChartValueFormat | null>;
|
|
84
|
+
private readonly defaults;
|
|
82
85
|
readonly frameResolved: _angular_core.Signal<ChartFrame>;
|
|
83
86
|
readonly dataTableResolved: _angular_core.Signal<ChartDataTable>;
|
|
84
87
|
readonly emptyTextResolved: _angular_core.Signal<string>;
|
|
85
88
|
readonly errorTextResolved: _angular_core.Signal<string>;
|
|
86
|
-
readonly valueFormatResolved: _angular_core.Signal<typeof defaultChartFormat>;
|
|
89
|
+
readonly valueFormatResolved: _angular_core.Signal<typeof _ids_group_ltd_ids_design_system_components.defaultChartFormat>;
|
|
87
90
|
/** Turns on the click affordance — the pointer cursor and any hover tint.
|
|
88
91
|
* The click output fires whether or not this is set, so a consumer that
|
|
89
92
|
* binds the output and forgets the flag still receives every click. */
|
|
90
93
|
readonly interactive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
91
94
|
/** The slice that was clicked, or activated with Enter or Space. Fires whether or not
|
|
92
95
|
* `interactive` is set. */
|
|
93
|
-
readonly sliceClicked: _angular_core.OutputEmitterRef<
|
|
96
|
+
readonly sliceClicked: _angular_core.OutputEmitterRef<PieChartSlice>;
|
|
94
97
|
/** Holds the hovered mark and its tooltip in place when it is clicked, until Escape or a press
|
|
95
98
|
* outside releases it. Off by default: a click is already the drill-down hook, and a mark left
|
|
96
99
|
* lit after the pointer has gone needs a reader who knows why it is lit. `sliceClicked` fires
|
|
@@ -114,7 +117,7 @@ declare class DonutChartComponent {
|
|
|
114
117
|
}> | undefined>;
|
|
115
118
|
private readonly tooltipLingerResolved;
|
|
116
119
|
protected readonly activeMark: _ids_group_ltd_ids_design_system_components_chart_tooltip.ChartActiveMark;
|
|
117
|
-
protected onMarkClick(payload:
|
|
120
|
+
protected onMarkClick(payload: PieChartSlice, index: number, event: Event): void;
|
|
118
121
|
/** One tab stop per chart, not one per slice: WCAG 2.1.1's Understanding is explicit that not
|
|
119
122
|
* every mouse-operable control has to be separately focusable. */
|
|
120
123
|
protected readonly rovingIndex: _angular_core.WritableSignal<number>;
|
|
@@ -124,16 +127,18 @@ declare class DonutChartComponent {
|
|
|
124
127
|
* other slices — the same state hovering the arc itself produces. */
|
|
125
128
|
protected onLegendEnter(index: number, event: Event): void;
|
|
126
129
|
protected onLegendFocus(index: number, event: FocusEvent): void;
|
|
127
|
-
protected onLegendClick(slice:
|
|
130
|
+
protected onLegendClick(slice: PieChartSlice, index: number, event: Event): void;
|
|
128
131
|
private arcAt;
|
|
129
132
|
protected isDimmed(index: number): boolean;
|
|
130
133
|
protected onMarkNavigation(event: KeyboardEvent, index: number, scope: string): void;
|
|
131
134
|
protected readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
|
|
132
135
|
protected readonly viewBox = "0 0 100 100";
|
|
133
136
|
protected readonly total: _angular_core.Signal<number>;
|
|
134
|
-
protected readonly visibleSlices: _angular_core.Signal<
|
|
137
|
+
protected readonly visibleSlices: _angular_core.Signal<PieChartSlice[]>;
|
|
138
|
+
protected readonly dataTableColumns: _angular_core.Signal<readonly string[]>;
|
|
139
|
+
protected readonly dataTableRows: _angular_core.Signal<readonly ChartDataRow[]>;
|
|
135
140
|
protected readonly slices: _angular_core.Signal<{
|
|
136
|
-
slice:
|
|
141
|
+
slice: PieChartSlice;
|
|
137
142
|
center: {
|
|
138
143
|
x: number;
|
|
139
144
|
y: number;
|
|
@@ -147,20 +152,20 @@ declare class DonutChartComponent {
|
|
|
147
152
|
protected readonly accessibleName: _angular_core.Signal<string>;
|
|
148
153
|
protected readonly hole: _angular_core.Signal<number>;
|
|
149
154
|
protected entryLabel(entry: {
|
|
150
|
-
slice:
|
|
155
|
+
slice: PieChartSlice;
|
|
151
156
|
formattedValue: string;
|
|
152
157
|
formattedPercent: string;
|
|
153
158
|
}): string;
|
|
154
|
-
protected onSliceKey(slice:
|
|
159
|
+
protected onSliceKey(slice: PieChartSlice, event: Event): void;
|
|
155
160
|
protected readonly ringCarriesTheRoute: _angular_core.Signal<boolean>;
|
|
156
161
|
protected readonly isEmpty: _angular_core.Signal<boolean>;
|
|
157
162
|
/** Placeholder legend rows while loading. Follows the real slice count so the
|
|
158
163
|
* chart does not resize when the data lands; falls back to three when `data`
|
|
159
164
|
* is still empty. */
|
|
160
165
|
protected readonly skeletonRows: _angular_core.Signal<unknown[]>;
|
|
161
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
162
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
166
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PieChartComponent, never>;
|
|
167
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PieChartComponent, "ds-pie-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "centerValue": { "alias": "centerValue"; "required": false; "isSignal": true; }; "centerLabel": { "alias": "centerLabel"; "required": false; "isSignal": true; }; "legend": { "alias": "legend"; "required": false; "isSignal": true; }; "maxSlices": { "alias": "maxSlices"; "required": false; "isSignal": true; }; "otherLabel": { "alias": "otherLabel"; "required": false; "isSignal": true; }; "innerRadius": { "alias": "innerRadius"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "partOfWhole": { "alias": "partOfWhole"; "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; }; "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; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; }, { "sliceClicked": "sliceClicked"; }, ["tooltipTemplate"], never, true, never>;
|
|
163
168
|
}
|
|
164
169
|
|
|
165
|
-
export {
|
|
166
|
-
export type {
|
|
170
|
+
export { PieChartComponent };
|
|
171
|
+
export type { PieChartSlice };
|
|
@@ -17,7 +17,9 @@ declare class PopoverComponent implements OnDestroy, DsOverlayCloseRef {
|
|
|
17
17
|
private triggerElement;
|
|
18
18
|
private focusTimer;
|
|
19
19
|
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
20
|
-
* a consumer's `ds-popover { --ds-popover-panel-*: … }` reaches it.
|
|
20
|
+
* a consumer's `ds-popover { --ds-popover-panel-*: … }` reaches it.
|
|
21
|
+
* Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`
|
|
22
|
+
* (overlay-motion.ts) onto every pane, the `--ds-option-*` family among them. */
|
|
21
23
|
private readonly panelTokens;
|
|
22
24
|
/** Cross-axis alignment of the panel against the trigger. */
|
|
23
25
|
readonly align: _angular_core.InputSignal<PopoverAlign>;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import * as _ids_group_ltd_ids_design_system_components_chart_tooltip from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
2
|
+
import { ChartItemTooltipTrigger, ChartTooltipContext } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
3
|
+
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';
|
|
6
|
+
import { ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
|
|
7
|
+
import { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
|
|
8
|
+
|
|
9
|
+
/** One reading on two continuous scales. */
|
|
10
|
+
interface ScatterPoint {
|
|
11
|
+
readonly x: number;
|
|
12
|
+
readonly y: number;
|
|
13
|
+
}
|
|
14
|
+
/** One named set of readings. Both scales are continuous, so a point carries its own position on
|
|
15
|
+
* each rather than an index into a list of categories. */
|
|
16
|
+
interface ScatterChartSeries {
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
data: readonly ScatterPoint[];
|
|
20
|
+
/** Overrides the palette slot this series would take. */
|
|
21
|
+
color?: string;
|
|
22
|
+
}
|
|
23
|
+
/** Which decimator thins a series that exceeds the plot's budget.
|
|
24
|
+
*
|
|
25
|
+
* `'minMax'` is the default because it is the only one that can promise something: each bucket's
|
|
26
|
+
* highest and lowest reading are in the output by construction, so the spike a reader is looking
|
|
27
|
+
* for cannot be the point that was dropped. `'lttb'` draws a truer silhouette at the same budget
|
|
28
|
+
* and makes no such promise - reach for it where the outline is the reading. `'none'` draws every
|
|
29
|
+
* point and is the caller taking the node budget on themselves. */
|
|
30
|
+
type ScatterChartDecimator = 'minMax' | 'lttb' | 'none';
|
|
31
|
+
/** One reading, named by the series it belongs to. */
|
|
32
|
+
interface ScatterChartReading {
|
|
33
|
+
readonly series: ScatterChartSeries;
|
|
34
|
+
readonly point: ScatterPoint;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** The drawable rectangle, in the canvas's own units. */
|
|
38
|
+
interface ScatterPlot {
|
|
39
|
+
readonly left: number;
|
|
40
|
+
readonly top: number;
|
|
41
|
+
readonly width: number;
|
|
42
|
+
readonly height: number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface PlacedPoint {
|
|
46
|
+
readonly key: string;
|
|
47
|
+
readonly cx: number;
|
|
48
|
+
readonly cy: number;
|
|
49
|
+
readonly point: ScatterPoint;
|
|
50
|
+
}
|
|
51
|
+
interface PlacedSeries {
|
|
52
|
+
readonly key: string;
|
|
53
|
+
readonly series: ScatterChartSeries;
|
|
54
|
+
readonly color: string;
|
|
55
|
+
readonly points: readonly PlacedPoint[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Two continuous quantities against each other: weight against carriage cost, distance against
|
|
59
|
+
* time, volume against conversion. None of the other five charts draws this.
|
|
60
|
+
*
|
|
61
|
+
* It is the only chart in the family whose mark count the CALLER decides - an area has one node per
|
|
62
|
+
* series, a waterfall one per step, a heat map one per cell, and all three are bounded by the
|
|
63
|
+
* question itself. So it is also the only one that thins its own data before drawing: past four
|
|
64
|
+
* times the plot's width in marks the series is decimated, and the chart says so on its face
|
|
65
|
+
* rather than leaving the reader to count points that are not there.
|
|
66
|
+
*/
|
|
67
|
+
declare class ScatterChartComponent {
|
|
68
|
+
/** One entry per series, each carrying its own readings. Both scales are continuous, so a
|
|
69
|
+
* point holds its position on each rather than an index into a list of categories. */
|
|
70
|
+
readonly data: _angular_core.InputSignal<readonly ScatterChartSeries[]>;
|
|
71
|
+
/** Names the horizontal quantity under the plot. Without it the reader has two numbers and no
|
|
72
|
+
* idea which is which - on a scatter that is the whole reading. */
|
|
73
|
+
readonly xLabel: _angular_core.InputSignal<string | null>;
|
|
74
|
+
/** Names the vertical quantity beside the plot. */
|
|
75
|
+
readonly yLabel: _angular_core.InputSignal<string | null>;
|
|
76
|
+
/** Which decimator thins a series past the budget. `'minMax'` by default, because it is the only
|
|
77
|
+
* one that promises each bucket's extremum survives. */
|
|
78
|
+
readonly decimator: _angular_core.InputSignal<ScatterChartDecimator>;
|
|
79
|
+
/** A hint, not a count, and it applies to BOTH axes. Ticks snap to a round step. */
|
|
80
|
+
readonly tickCount: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
81
|
+
/** Printed above the plot as the visible title, and reused as the annex table's caption. */
|
|
82
|
+
readonly caption: _angular_core.InputSignal<string | null>;
|
|
83
|
+
/** The accessible name. Generated when omitted, naming both axes' spans, how many readings
|
|
84
|
+
* were drawn and how many were thinned out. */
|
|
85
|
+
readonly summary: _angular_core.InputSignal<string | null>;
|
|
86
|
+
/** Makes every mark a button and gives it a keyboard route. `pointClicked` fires whether or
|
|
87
|
+
* not this is set. */
|
|
88
|
+
readonly interactive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
89
|
+
/** `'auto'` draws the bordered, padded box; `'none'` leaves it bare for a chart inside a card
|
|
90
|
+
* the page has already drawn. Unset falls back to `DS_CONFIG.chart.frame`. */
|
|
91
|
+
readonly frame: _angular_core.InputSignal<ChartFrame | null>;
|
|
92
|
+
/** The annex table under the plot. It lists EVERY reading, including the ones decimation left
|
|
93
|
+
* out of the drawing, which is what keeps a thinned chart honest. */
|
|
94
|
+
readonly dataTable: _angular_core.InputSignal<ChartDataTable | null>;
|
|
95
|
+
/** A skeleton at the plot's own height, so the page does not resize when the data lands. */
|
|
96
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
97
|
+
/** Separate from empty data: "the request failed" and "there is nothing to show" read the same
|
|
98
|
+
* and mean opposite things. */
|
|
99
|
+
readonly error: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
100
|
+
/** Shown when no series carries a reading. Unset falls back to `DS_CONFIG.chart.emptyText`. */
|
|
101
|
+
readonly emptyText: _angular_core.InputSignal<string | null>;
|
|
102
|
+
/** Shown in place of the plot while `error` is set. Unset falls back to
|
|
103
|
+
* `DS_CONFIG.chart.errorText`. */
|
|
104
|
+
readonly errorText: _angular_core.InputSignal<string | null>;
|
|
105
|
+
/** Formats every number the chart prints - both axes' ticks, the accessible name and the annex
|
|
106
|
+
* table. Unset falls back to `DS_CONFIG.chart.valueFormat`. */
|
|
107
|
+
readonly valueFormat: _angular_core.InputSignal<ChartValueFormat | null>;
|
|
108
|
+
/** Whether a hovered or focused mark opens a tooltip. A scatter prints no value beside its
|
|
109
|
+
* marks - there is no room - so this is where a reading is read without the annex table. */
|
|
110
|
+
readonly tooltip: _angular_core.InputSignal<ChartItemTooltipTrigger>;
|
|
111
|
+
/** Fades every mark but the one under the pointer. Off by default: on a scatter the pile-up IS
|
|
112
|
+
* the reading, and dimming the neighbours takes exactly that away. */
|
|
113
|
+
readonly dimOthers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
114
|
+
/** The clicked reading, with the series it belongs to. Fires on click and on Enter or Space. */
|
|
115
|
+
readonly pointClicked: _angular_core.OutputEmitterRef<ScatterChartReading>;
|
|
116
|
+
private readonly defaults;
|
|
117
|
+
readonly frameResolved: _angular_core.Signal<ChartFrame>;
|
|
118
|
+
readonly dataTableResolved: _angular_core.Signal<ChartDataTable>;
|
|
119
|
+
readonly emptyTextResolved: _angular_core.Signal<string>;
|
|
120
|
+
readonly errorTextResolved: _angular_core.Signal<string>;
|
|
121
|
+
readonly valueFormatResolved: _angular_core.Signal<typeof _ids_group_ltd_ids_design_system_components.defaultChartFormat>;
|
|
122
|
+
protected readonly activeMark: _ids_group_ltd_ids_design_system_components_chart_tooltip.ChartActiveMark;
|
|
123
|
+
protected readonly viewBox = "0 0 640 360";
|
|
124
|
+
protected readonly plot: ScatterPlot;
|
|
125
|
+
protected readonly isEmpty: _angular_core.Signal<boolean>;
|
|
126
|
+
/** One mark per drawn unit of plot width is the ceiling: two marks sharing a pixel are two DOM
|
|
127
|
+
* nodes a reader cannot tell apart. The viewBox is one unit per pixel at a typical card width. */
|
|
128
|
+
private readonly budget;
|
|
129
|
+
protected readonly drawnSeries: _angular_core.Signal<{
|
|
130
|
+
series: ScatterChartSeries;
|
|
131
|
+
data: readonly ScatterPoint[];
|
|
132
|
+
thinned: number;
|
|
133
|
+
}[]>;
|
|
134
|
+
/** How many readings were dropped, over every series. A decimated chart that does not SAY it is
|
|
135
|
+
* decimated leaves the reader counting points that were never drawn. */
|
|
136
|
+
protected readonly droppedCount: _angular_core.Signal<number>;
|
|
137
|
+
private readonly extent;
|
|
138
|
+
private readonly domains;
|
|
139
|
+
protected readonly series: _angular_core.Signal<readonly PlacedSeries[]>;
|
|
140
|
+
protected readonly xTicks: _angular_core.Signal<{
|
|
141
|
+
value: number;
|
|
142
|
+
x: number;
|
|
143
|
+
label: string;
|
|
144
|
+
}[]>;
|
|
145
|
+
protected readonly yTicks: _angular_core.Signal<{
|
|
146
|
+
value: number;
|
|
147
|
+
y: number;
|
|
148
|
+
label: string;
|
|
149
|
+
}[]>;
|
|
150
|
+
protected readonly plotBottom: number;
|
|
151
|
+
protected readonly plotRight: number;
|
|
152
|
+
protected readonly multiSeries: _angular_core.Signal<boolean>;
|
|
153
|
+
protected readonly legendItems: _angular_core.Signal<readonly ChartLegendItem[]>;
|
|
154
|
+
protected readonly accessibleName: _angular_core.Signal<string>;
|
|
155
|
+
protected readonly dataTableColumns: _angular_core.Signal<readonly string[]>;
|
|
156
|
+
/** Built only while the disclosure is open: a scatter carries thousands of readings, and every
|
|
157
|
+
* one of them as a table row is a cost nobody pays until they ask. */
|
|
158
|
+
protected readonly dataTableRows: _angular_core.Signal<readonly ChartDataRow[]>;
|
|
159
|
+
protected readonly tableRows: _angular_core.Signal<{
|
|
160
|
+
key: string;
|
|
161
|
+
series: string;
|
|
162
|
+
x: string;
|
|
163
|
+
y: string;
|
|
164
|
+
}[]>;
|
|
165
|
+
/** `<details>` keeps its children in the DOM while it is shut, so a scatter of 12 000 readings
|
|
166
|
+
* parked 48 000 nodes on the page - three times what decimating the PLOT had just saved. The
|
|
167
|
+
* rows are built when the disclosure opens and dropped when it shuts; every reading is still
|
|
168
|
+
* one click away, which is what the table is for. */
|
|
169
|
+
protected readonly tableOpen: _angular_core.WritableSignal<boolean>;
|
|
170
|
+
protected readonly tableIsOpen: _angular_core.Signal<boolean>;
|
|
171
|
+
protected readonly skeletonHeight = "360";
|
|
172
|
+
/** Flattened so one index addresses a mark, which is what `chartActiveMark` counts. */
|
|
173
|
+
private readonly flatMarks;
|
|
174
|
+
protected markIndex(seriesKey: string, pointKey: string): number;
|
|
175
|
+
protected readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
|
|
176
|
+
protected onPointClick(series: ScatterChartSeries, point: ScatterPoint): void;
|
|
177
|
+
protected pointLabel(series: ScatterChartSeries, point: ScatterPoint): string;
|
|
178
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScatterChartComponent, never>;
|
|
179
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ScatterChartComponent, "ds-scatter-chart", ["dsScatterChart"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "xLabel": { "alias": "xLabel"; "required": false; "isSignal": true; }; "yLabel": { "alias": "yLabel"; "required": false; "isSignal": true; }; "decimator": { "alias": "decimator"; "required": false; "isSignal": true; }; "tickCount": { "alias": "tickCount"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, never, never, true, never>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export { ScatterChartComponent };
|
|
183
|
+
export type { ScatterChartDecimator, ScatterChartReading, ScatterChartSeries, ScatterPoint };
|
|
@@ -21,6 +21,10 @@ declare class SegmentedComponent extends DsControlValueAccessor<string> {
|
|
|
21
21
|
readonly label: _angular_core.InputSignal<string>;
|
|
22
22
|
/** Disables every segment. */
|
|
23
23
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
/** Segments share their edges instead of floating in a padded track: borders collapse into one
|
|
25
|
+
* hairline and only the outer ends round. Needs `--ds-segmented-segment-border` to be set,
|
|
26
|
+
* since the shared edge IS the border. */
|
|
27
|
+
readonly joined: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
24
28
|
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
25
29
|
protected readonly uid: string;
|
|
26
30
|
protected readonly hintId: _angular_core.Signal<string | null>;
|
|
@@ -33,7 +37,7 @@ declare class SegmentedComponent extends DsControlValueAccessor<string> {
|
|
|
33
37
|
protected onKeydown(event: KeyboardEvent, index: number): void;
|
|
34
38
|
private nextEnabled;
|
|
35
39
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedComponent, never>;
|
|
36
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedComponent, "ds-segmented", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
40
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedComponent, "ds-segmented", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "joined": { "alias": "joined"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
export { SegmentedComponent };
|
|
@@ -28,7 +28,9 @@ declare class SelectComponent extends DsControlValueAccessor<string> implements
|
|
|
28
28
|
/** Flat options or option groups rendered in the dropdown panel. */
|
|
29
29
|
readonly options: _angular_core.InputSignal<readonly SelectItem[]>;
|
|
30
30
|
/** Public panel tokens forwarded onto the portaled overlay pane on open, so a
|
|
31
|
-
* consumer's `ds-select { --ds-dropdown-panel-*: … }` reaches it.
|
|
31
|
+
* consumer's `ds-select { --ds-dropdown-panel-*: … }` reaches it.
|
|
32
|
+
* Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`
|
|
33
|
+
* (overlay-motion.ts) onto every pane, the `--ds-option-*` family among them. */
|
|
32
34
|
private readonly panelTokens;
|
|
33
35
|
/** Trigger width — `fill` stretches to the container and pins the panel to the
|
|
34
36
|
* trigger's width; `content` hugs the trigger's own content and takes that width
|
|
@@ -23,6 +23,9 @@ declare class DsTableExport<T extends object> {
|
|
|
23
23
|
/** Renders the built-in toolbar button. `false` keeps the feature and hides the control, for a
|
|
24
24
|
* table whose export is driven from somewhere else on the page. */
|
|
25
25
|
readonly dsTableExport: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
26
|
+
/** The download's name, extension included - it is passed through, never derived. A custom
|
|
27
|
+
* `exportFetcher` returning a Blob is saved under this same name, so an export that is not CSV
|
|
28
|
+
* has to say so here. */
|
|
26
29
|
readonly exportFilename: _angular_core.InputSignal<string>;
|
|
27
30
|
/** Fetches the rows to export. Without it the export serialises what the table holds, which on
|
|
28
31
|
* a server-paged table is one page. */
|
|
@@ -107,7 +107,7 @@ interface TableColumn<T = unknown> {
|
|
|
107
107
|
label: string;
|
|
108
108
|
/** Visually-hidden accessible header name — use when `label` is
|
|
109
109
|
* intentionally empty (e.g. an actions column). */
|
|
110
|
-
|
|
110
|
+
screenReaderLabel?: string;
|
|
111
111
|
sortable?: boolean;
|
|
112
112
|
/** Include the column in `filterQuery` matching. When no column is marked,
|
|
113
113
|
* every column matches. Works on `hidden` columns too. */
|
|
@@ -174,10 +174,10 @@ interface TableColumn<T = unknown> {
|
|
|
174
174
|
* column stays available to `filterable` matching and sorting. */
|
|
175
175
|
hidden?: boolean;
|
|
176
176
|
}
|
|
177
|
-
type
|
|
177
|
+
type SortDirection = 'asc' | 'desc' | null;
|
|
178
178
|
interface SortChangeEvent {
|
|
179
179
|
key: string;
|
|
180
|
-
dir:
|
|
180
|
+
dir: SortDirection;
|
|
181
181
|
}
|
|
182
182
|
interface TableRowAction<T = unknown> {
|
|
183
183
|
/** Stable identifier — use it to branch in `rowActionSelected`. */
|
|
@@ -414,9 +414,9 @@ declare class TableComponent<T extends object> {
|
|
|
414
414
|
* halves at once, which is usually the one to listen to. */
|
|
415
415
|
readonly sortKeyChange: _angular_core.OutputEmitterRef<string | null>;
|
|
416
416
|
/** Sort direction for `sortKey`. */
|
|
417
|
-
readonly
|
|
418
|
-
/** Emitted for `[(
|
|
419
|
-
readonly
|
|
417
|
+
readonly sortDirection: _angular_core.InputSignal<SortDirection>;
|
|
418
|
+
/** Emitted for `[(sortDirection)]`. */
|
|
419
|
+
readonly sortDirectionChange: _angular_core.OutputEmitterRef<SortDirection>;
|
|
420
420
|
/**
|
|
421
421
|
* What the header marks, and what a client sort reads.
|
|
422
422
|
*
|
|
@@ -429,16 +429,16 @@ declare class TableComponent<T extends object> {
|
|
|
429
429
|
*/
|
|
430
430
|
private readonly sortState;
|
|
431
431
|
protected readonly activeSortKey: _angular_core.Signal<string | null>;
|
|
432
|
-
protected readonly activeSortDir: _angular_core.Signal<
|
|
432
|
+
protected readonly activeSortDir: _angular_core.Signal<SortDirection>;
|
|
433
433
|
/** Sort states a column cycles through on click. Default includes null
|
|
434
434
|
* (unsorted); pass ['asc','desc'] to forbid the unsorted state (e.g.
|
|
435
435
|
* server-paged lists). */
|
|
436
|
-
readonly sortingOrder: _angular_core.InputSignal<
|
|
436
|
+
readonly sortingOrder: _angular_core.InputSignal<SortDirection[]>;
|
|
437
437
|
/**
|
|
438
438
|
* Wording for the sort announcement, so it can be translated. Receives the
|
|
439
439
|
* column's label and the new direction; return an empty string to say nothing.
|
|
440
440
|
*/
|
|
441
|
-
readonly sortAnnouncement: _angular_core.InputSignal<(label: string, dir:
|
|
441
|
+
readonly sortAnnouncement: _angular_core.InputSignal<(label: string, dir: SortDirection) => string>;
|
|
442
442
|
/**
|
|
443
443
|
* Wording for the row-range announcement, so it can be translated. Receives
|
|
444
444
|
* the 1-based first and last row on screen and the total; return an empty
|
|
@@ -810,8 +810,8 @@ declare class TableComponent<T extends object> {
|
|
|
810
810
|
* across re-renders. */
|
|
811
811
|
protected skeletonWidth(col: TableColumn<T>, rowIndex: number): string;
|
|
812
812
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
813
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any>, "ds-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "rowId": { "alias": "rowId"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "animateHeight": { "alias": "animateHeight"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "sortKey": { "alias": "sortKey"; "required": false; "isSignal": true; }; "
|
|
813
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any>, "ds-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "rowId": { "alias": "rowId"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "animateHeight": { "alias": "animateHeight"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "sortKey": { "alias": "sortKey"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; "sortingOrder": { "alias": "sortingOrder"; "required": false; "isSignal": true; }; "sortAnnouncement": { "alias": "sortAnnouncement"; "required": false; "isSignal": true; }; "rangeAnnouncement": { "alias": "rangeAnnouncement"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "rowInteractive": { "alias": "rowInteractive"; "required": false; "isSignal": true; }; "activeRowId": { "alias": "activeRowId"; "required": false; "isSignal": true; }; "filterQuery": { "alias": "filterQuery"; "required": false; "isSignal": true; }; "columnFilters": { "alias": "columnFilters"; "required": false; "isSignal": true; }; "persistLayout": { "alias": "persistLayout"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "stickyScrollbar": { "alias": "stickyScrollbar"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showPageSize": { "alias": "showPageSize"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "scrollToTopOnPageChange": { "alias": "scrollToTopOnPageChange"; "required": false; "isSignal": true; }; "sortMode": { "alias": "sortMode"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "columnFilterOptions": { "alias": "columnFilterOptions"; "required": false; "isSignal": true; }; "stickyScrollbarOffset": { "alias": "stickyScrollbarOffset"; "required": false; "isSignal": true; }; "stickyFirstColumn": { "alias": "stickyFirstColumn"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualRowSize": { "alias": "virtualRowSize"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "cellTemplateMap": { "alias": "cellTemplateMap"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "expandableRows": { "alias": "expandableRows"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "expandMode": { "alias": "expandMode"; "required": false; "isSignal": true; }; "expandAllToggle": { "alias": "expandAllToggle"; "required": false; "isSignal": true; }; "rowExpandTemplate": { "alias": "rowExpandTemplate"; "required": false; "isSignal": true; }; }, { "selectedIds": "selectedIdsChange"; "sortKeyChange": "sortKeyChange"; "sortDirectionChange": "sortDirectionChange"; "columnFilters": "columnFiltersChange"; "pageSize": "pageSizeChange"; "page": "pageChange"; "lazyLoad": "lazyLoad"; "rowClicked": "rowClicked"; "sortChange": "sortChange"; "rowActionSelected": "rowActionSelected"; "cellEdited": "cellEdited"; "expandedIds": "expandedIdsChange"; "rowExpanded": "rowExpanded"; "rowCollapsed": "rowCollapsed"; }, ["cellTemplateDirectives", "headerFilters"], ["[toolbar]", "[empty]", "[bulk-actions]"], true, never>;
|
|
814
814
|
}
|
|
815
815
|
|
|
816
816
|
export { CellTemplateDirective, DsTableLayout, HeaderFilterDirective, TableComponent };
|
|
817
|
-
export type { DsTableColumnStage, DsTableExportContribution, DsTableRowStage, DsTableView, HeaderFilterContext, SortChangeEvent,
|
|
817
|
+
export type { DsTableColumnStage, DsTableExportContribution, DsTableRowStage, DsTableView, HeaderFilterContext, SortChangeEvent, SortDirection, TableCellEditEvent, TableColumn, TableExpandMode, TableFilterMode, TableRowAction, TableRowActionEvent, TableSortMode };
|
|
@@ -94,7 +94,9 @@ declare class TimePickerComponent extends DsControlValueAccessor<string | TimeRa
|
|
|
94
94
|
private readonly injector;
|
|
95
95
|
private readonly host;
|
|
96
96
|
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
97
|
-
* a consumer's `ds-time-picker { --ds-time-picker-panel-*: … }` reaches it.
|
|
97
|
+
* a consumer's `ds-time-picker { --ds-time-picker-panel-*: … }` reaches it.
|
|
98
|
+
* Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`
|
|
99
|
+
* (overlay-motion.ts) onto every pane, the `--ds-option-*` family among them. */
|
|
98
100
|
private readonly panelTokens;
|
|
99
101
|
/** Selected time, or `[start, end]` tuple when `mode="range"`. Two-way bound. */
|
|
100
102
|
readonly value: _angular_core.ModelSignal<string | TimeRangeValue | null>;
|
|
@@ -85,9 +85,12 @@ declare class ToastRegionComponent {
|
|
|
85
85
|
/** Cap on concurrently visible toasts. Extras are queued and shown as
|
|
86
86
|
* earlier ones dismiss. `0` = unlimited. */
|
|
87
87
|
readonly maxVisible: _angular_core.InputSignal<number>;
|
|
88
|
+
/** Show a `+N` strip while toasts wait behind `maxVisible`. */
|
|
89
|
+
readonly showQueueCount: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
88
90
|
protected readonly visibleEntries: _angular_core.WritableSignal<readonly ToastEntry[]>;
|
|
89
91
|
protected readonly leaving: _angular_core.WritableSignal<ReadonlySet<number>>;
|
|
90
92
|
private readonly pendingQueue;
|
|
93
|
+
protected readonly queuedLabel: _angular_core.Signal<string | null>;
|
|
91
94
|
private readonly timers;
|
|
92
95
|
private readonly leaveTimers;
|
|
93
96
|
private readonly remaining;
|
|
@@ -100,7 +103,7 @@ declare class ToastRegionComponent {
|
|
|
100
103
|
/** Newest goes NEAREST the anchor, so the toast that just fired appears where the
|
|
101
104
|
* stack is pinned rather than at the far end of a list the reader has to hunt
|
|
102
105
|
* down. DOM order is the visual order, so this also keeps the reading order. */
|
|
103
|
-
|
|
106
|
+
protected readonly newestFirst: boolean;
|
|
104
107
|
add(entry: ToastEntry): void;
|
|
105
108
|
private show;
|
|
106
109
|
/** FLIP, rather than the usual absolute stack: absolute positioning collapses the region
|
|
@@ -130,7 +133,7 @@ declare class ToastRegionComponent {
|
|
|
130
133
|
clear(): void;
|
|
131
134
|
private drainQueue;
|
|
132
135
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastRegionComponent, never>;
|
|
133
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastRegionComponent, "ds-toast-region", never, { "maxVisible": { "alias": "maxVisible"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
136
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastRegionComponent, "ds-toast-region", never, { "maxVisible": { "alias": "maxVisible"; "required": false; "isSignal": true; }; "showQueueCount": { "alias": "showQueueCount"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
134
137
|
}
|
|
135
138
|
|
|
136
139
|
/**
|