@ids-group-ltd/ids-design-system 0.14.0 → 0.14.2
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 +573 -4
- package/components.md +103 -62
- package/design-system.md +2 -0
- package/docs/agent/INDEX.md +5 -4
- package/docs/agent/charts/column-series-component.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +4 -3
- package/docs/agent/charts/ds-chart.md +1 -1
- package/docs/agent/charts/ds-column-chart.md +3 -3
- package/docs/agent/charts/ds-config.md +3 -1
- package/docs/agent/charts/ds-funnel-chart.md +3 -3
- package/docs/agent/charts/ds-heatmap-chart.md +1 -1
- package/docs/agent/charts/ds-line-chart.md +3 -3
- package/docs/agent/charts/ds-pie-chart.md +5 -4
- package/docs/agent/charts/ds-scatter-chart.md +1 -1
- package/docs/agent/charts/ds-waterfall-chart.md +1 -1
- package/docs/agent/charts/line-series-component.md +1 -1
- package/docs/agent/feedback/ds-alert.md +1 -0
- package/docs/agent/feedback/ds-badge.md +1 -1
- package/docs/agent/feedback/ds-banner.md +1 -0
- package/docs/agent/feedback/ds-description-list.md +3 -0
- package/docs/agent/feedback/ds-skeleton.md +2 -2
- package/docs/agent/feedback/ds-tag.md +1 -1
- package/docs/agent/forms/ds-autocomplete.md +2 -2
- package/docs/agent/forms/ds-button.md +1 -1
- package/docs/agent/forms/ds-color-picker.md +1 -1
- package/docs/agent/forms/ds-date-picker.md +2 -2
- package/docs/agent/forms/ds-filter-bar.md +1 -1
- package/docs/agent/forms/ds-icon-button.md +1 -1
- package/docs/agent/forms/ds-input.md +1 -1
- package/docs/agent/forms/ds-multi-select.md +2 -2
- package/docs/agent/forms/ds-otp-input.md +1 -1
- package/docs/agent/forms/ds-search.md +2 -2
- package/docs/agent/forms/ds-split-button.md +1 -1
- package/docs/agent/forms/ds-textarea.md +2 -2
- package/docs/agent/foundations/tokens.md +1 -1
- package/docs/agent/navigation/ds-app-layout.md +2 -2
- package/docs/agent/navigation/ds-auth-layout.md +4 -4
- package/docs/agent/navigation/ds-page-header.md +1 -1
- package/docs/agent/navigation/ds-pagination.md +1 -1
- package/docs/agent/navigation/ds-tabs.md +1 -0
- package/docs/agent/overlays/ds-tooltip.md +3 -3
- package/docs/agent/platform/ds-config.md +2 -3
- package/docs/agent/platform/ds-intl.md +33 -0
- package/docs/agent/surfaces/ds-accordion.md +2 -2
- package/docs/agent/tables/ds-table.md +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +9 -5
- 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 +21 -10
- 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 +9 -5
- 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 +8 -8
- 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 +15 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +5 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +12 -8
- 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 +21 -10
- 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 +53 -30
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +7 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +4 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +20 -6
- 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 +198 -44
- 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 +248 -142
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +9 -5
- 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 +28 -25
- 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 +16 -9
- 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 +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +12 -6
- 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-filter-bar.mjs +13 -7
- 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 +64 -43
- 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 +56 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +5 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +32 -29
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +26 -13
- 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 +17 -10
- 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 +5 -4
- 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 +13 -7
- 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 +15 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +12 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +62 -25
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +49 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +6 -3
- 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 +4 -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 +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +20 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +6 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +16 -13
- 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 +9 -6
- 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 +48 -22
- 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 +68 -6
- 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 +9 -5
- 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 +63 -10
- 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 +12 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +8 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +78 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +36 -21
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +355 -81
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +362 -3
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.10.0.json +1 -1
- package/migrations/0.10.1.json +1 -1
- package/migrations/0.14.0.json +28 -4
- package/migrations/0.14.1.json +856 -0
- package/migrations/0.14.2.json +427 -0
- package/package.json +1 -1
- package/schematics/check-overrides/index.cjs +56 -0
- package/schematics/check-overrides/scan.cjs +74 -0
- package/schematics/check-overrides/schema.json +19 -0
- package/schematics/check-overrides/surface.json +2333 -0
- package/schematics/collection.json +5 -0
- package/styles/_chart-frame.scss +34 -12
- package/styles/_chart-interactive.scss +43 -9
- package/styles/_chart-motion.scss +139 -16
- package/styles/_field-box.scss +12 -0
- package/styles/_overlay-motion.scss +12 -4
- package/styles/_tokens-charts.scss +1 -1
- package/styles/_tokens.scss +19 -4
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +11 -2
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +4 -0
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +5 -2
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +5 -5
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +7 -4
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +5 -3
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -0
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +41 -19
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +8 -1
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +34 -6
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +189 -121
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +17 -17
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -3
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +9 -4
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +34 -20
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +36 -7
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +21 -18
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +11 -6
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +41 -17
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +28 -7
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +7 -3
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -2
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +5 -1
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +6 -4
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +5 -2
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +15 -6
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +15 -2
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +24 -4
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +10 -1
- package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +18 -7
- package/types/ids-group-ltd-ids-design-system-components.d.ts +75 -25
- package/types/ids-group-ltd-ids-design-system-core.d.ts +421 -11
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
|
@@ -1,101 +1,39 @@
|
|
|
1
1
|
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
2
2
|
import { NiceDomain, leaveMark } from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
-
import
|
|
3
|
+
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
import { ChartAxis, ChartThresholdDash, ChartStackMode, ChartFrame, ChartValueFormat, ChartAxisMode, ChartGaps, ChartCurve, ChartThreshold } from '@ids-group-ltd/ids-design-system/core';
|
|
4
5
|
import * as _ids_group_ltd_ids_design_system_components_chart_tooltip from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
5
6
|
import { ChartTooltipContext, ChartTooltipOrigin, ChartTooltipEntry, ChartItemTooltipTrigger, ChartTooltipTrigger } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
6
7
|
import * as _angular_core from '@angular/core';
|
|
7
8
|
import { InjectionToken, Signal, TemplateRef, OnDestroy } from '@angular/core';
|
|
8
|
-
import { SafeHtml } from '@angular/platform-browser';
|
|
9
9
|
import * as _ids_group_ltd_ids_design_system_components_chart from '@ids-group-ltd/ids-design-system/components/chart';
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
* negative mark's label would otherwise print into the category labels: reserving it for every
|
|
18
|
-
* chart costs the all-positive ones - the common case - that much height for nothing.
|
|
19
|
-
*
|
|
20
|
-
* @internal */
|
|
21
|
-
declare function chartViewHeight(plotHeight: number, valueSpace: number, reservesBelowBaseline?: boolean): number;
|
|
22
|
-
/** @internal */
|
|
23
|
-
interface ThresholdMark {
|
|
24
|
-
/** Position in the list, not the reading: two thresholds may legitimately name the same value -
|
|
25
|
-
* a target and the floor of the band around it - and keying on the value would collapse them
|
|
26
|
-
* into one drawn line. */
|
|
27
|
-
readonly key: number;
|
|
28
|
-
readonly label: string;
|
|
29
|
-
readonly color: string | null;
|
|
30
|
-
readonly dash: ChartThresholdDash;
|
|
31
|
-
readonly band: boolean;
|
|
32
|
-
readonly left: number;
|
|
33
|
-
readonly right: number;
|
|
34
|
-
readonly width: number;
|
|
35
|
-
readonly y: number;
|
|
36
|
-
readonly top: number;
|
|
37
|
-
readonly height: number;
|
|
38
|
-
readonly labelX: number;
|
|
39
|
-
readonly labelY: number;
|
|
40
|
-
}
|
|
41
|
-
/** @internal */
|
|
42
|
-
interface SecondaryAxis {
|
|
43
|
-
readonly domain: NiceDomain;
|
|
44
|
-
readonly ticks: readonly number[];
|
|
45
|
-
/** True when the labels below belong on the PRIMARY axis's own tick rows, so the plot carries
|
|
46
|
-
* one set of gridlines rather than two crossing each other. */
|
|
47
|
-
readonly aligned: boolean;
|
|
48
|
-
}
|
|
49
|
-
/** Every segment's span on the value axis, series-major: `offsets[series][category]`.
|
|
50
|
-
*
|
|
51
|
-
* `'none'` and `'grouped'` give every series the same span it would have alone - the two differ in
|
|
52
|
-
* where the band puts them, which is geometry rather than value. The stacking modes run a
|
|
53
|
-
* POSITIVE and a NEGATIVE pile per category, so a negative segment hangs below the baseline
|
|
54
|
-
* instead of being subtracted from the positive pile it sits in.
|
|
55
|
-
*
|
|
56
|
-
* `'normalized'` divides a running SUM rather than each share in turn: adding 20/60 to 40/60
|
|
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.
|
|
61
|
-
*
|
|
62
|
-
* @internal */
|
|
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;
|
|
11
|
+
/** A mark's reading at the cursor's category, with the height it is drawn at. */
|
|
12
|
+
interface ChartAxisEntry extends ChartTooltipEntry {
|
|
13
|
+
/** Where the reading is drawn, in plot pixels from the top. A category panel lists its rows in
|
|
14
|
+
* the order the reader sees the marks, top to bottom; a reading without one keeps its place
|
|
15
|
+
* after the placed ones. */
|
|
16
|
+
readonly y?: number;
|
|
85
17
|
}
|
|
86
|
-
|
|
87
18
|
/** What a mark hands the container so the container can open the panel for it. The mark decides
|
|
88
19
|
* WHAT the panel says and WHERE it points; the container decides that there is one, which is what
|
|
89
20
|
* keeps a plot from opening two. */
|
|
90
21
|
interface ChartTooltipSource {
|
|
91
22
|
readonly context: Signal<ChartTooltipContext | null>;
|
|
92
23
|
readonly origin: Signal<ChartTooltipOrigin | null>;
|
|
93
|
-
/**
|
|
94
|
-
readonly
|
|
24
|
+
/** Whether the mark is held. A held panel takes the pointer, so its text can be selected. */
|
|
25
|
+
readonly pinned?: Signal<boolean>;
|
|
26
|
+
/** Whether this mark shows a tooltip at all. Absent means it does. Two marks that do make the
|
|
27
|
+
* plot a composed one, which is what turns the category cursor on under `cursor="auto"`. */
|
|
28
|
+
readonly offersTooltip?: Signal<boolean>;
|
|
29
|
+
/** This mark's own reading at the category the cursor is on, as an element, whether or not the
|
|
30
|
+
* pointer is over it. A category panel hangs over the highest of these. Absent falls back to
|
|
31
|
+
* `origin`. */
|
|
32
|
+
readonly axisOrigin?: Signal<Element | null>;
|
|
95
33
|
/** What this mark reads at the category the cursor is on, whatever its own tooltip setting. A
|
|
96
34
|
* category panel names every series at that category, and a mark that answers per-mark still
|
|
97
35
|
* belongs in it. */
|
|
98
|
-
readonly axisEntries?: Signal<readonly
|
|
36
|
+
readonly axisEntries?: Signal<readonly ChartAxisEntry[]>;
|
|
99
37
|
}
|
|
100
38
|
/** The drawable rectangle inside `ds-chart`, in CSS pixels: the container measures itself and
|
|
101
39
|
* sizes its `viewBox` so one user unit is one pixel. A length written into a mark is therefore
|
|
@@ -139,6 +77,19 @@ interface ChartScales {
|
|
|
139
77
|
readonly zeroOffset: Signal<number>;
|
|
140
78
|
/** The category under the pointer or the keyboard, or `-1` for none. */
|
|
141
79
|
readonly activeIndex: Signal<number>;
|
|
80
|
+
/** Whether the category cursor answers the pointer. While it does, its band is the one hover
|
|
81
|
+
* area on the plot: a mark leaves pointer hover to it and answers focus and clicks only.
|
|
82
|
+
* Absent means off. */
|
|
83
|
+
readonly cursorOn?: Signal<boolean>;
|
|
84
|
+
/** The category whose axis label the pointer is on, with the event, while the category cursor
|
|
85
|
+
* is off. A mark answers it as it would the pointer on its own reading at that category. */
|
|
86
|
+
readonly categoryLabelHover?: Signal<{
|
|
87
|
+
readonly index: number;
|
|
88
|
+
readonly event: PointerEvent;
|
|
89
|
+
} | null>;
|
|
90
|
+
/** How long a resting pointer waits before a mark answers it, resolved once for the plot so
|
|
91
|
+
* every mark in it waits alike. Absent means at once. */
|
|
92
|
+
readonly hoverDelayMs?: Signal<number>;
|
|
142
93
|
/** The band drawn over the active category, for a mark that anchors a panel to the CATEGORY
|
|
143
94
|
* rather than to one of its own marks. `null` while `cursor` is off or nothing is active. */
|
|
144
95
|
readonly cursorOrigin: Signal<Element | null>;
|
|
@@ -164,7 +115,84 @@ interface ChartScales {
|
|
|
164
115
|
}
|
|
165
116
|
declare const CHART_SCALES: InjectionToken<ChartScales>;
|
|
166
117
|
|
|
118
|
+
declare const CHART_DEFAULT_VALUE_SPACE = 20;
|
|
119
|
+
/** The viewBox's height, and the `<svg>`'s rendered height in pixels - the two are the same
|
|
120
|
+
* number, which is what holds the 1:1 scale on the vertical axis too.
|
|
121
|
+
*
|
|
122
|
+
* `valueSpace` is always budgeted above the plot, for a value label over the tallest mark. It is
|
|
123
|
+
* budgeted a SECOND time below the baseline only when the domain reaches under zero, where a
|
|
124
|
+
* negative mark's label would otherwise print into the category labels: reserving it for every
|
|
125
|
+
* chart costs the all-positive ones - the common case - that much height for nothing.
|
|
126
|
+
*
|
|
127
|
+
* @internal */
|
|
128
|
+
declare function chartViewHeight(plotHeight: number, valueSpace: number, reservesBelowBaseline?: boolean): number;
|
|
129
|
+
/** @internal */
|
|
130
|
+
interface ThresholdMark {
|
|
131
|
+
/** Position in the list, not the reading: two thresholds may legitimately name the same value -
|
|
132
|
+
* a target and the floor of the band around it - and keying on the value would collapse them
|
|
133
|
+
* into one drawn line. */
|
|
134
|
+
readonly key: number;
|
|
135
|
+
readonly label: string;
|
|
136
|
+
readonly color: string | null;
|
|
137
|
+
readonly dash: ChartThresholdDash;
|
|
138
|
+
readonly band: boolean;
|
|
139
|
+
readonly left: number;
|
|
140
|
+
readonly right: number;
|
|
141
|
+
readonly width: number;
|
|
142
|
+
readonly y: number;
|
|
143
|
+
readonly top: number;
|
|
144
|
+
readonly height: number;
|
|
145
|
+
readonly labelX: number;
|
|
146
|
+
readonly labelY: number;
|
|
147
|
+
}
|
|
148
|
+
/** @internal */
|
|
149
|
+
interface SecondaryAxis {
|
|
150
|
+
readonly domain: NiceDomain;
|
|
151
|
+
readonly ticks: readonly number[];
|
|
152
|
+
/** True when the labels below belong on the PRIMARY axis's own tick rows, so the plot carries
|
|
153
|
+
* one set of gridlines rather than two crossing each other. */
|
|
154
|
+
readonly aligned: boolean;
|
|
155
|
+
}
|
|
156
|
+
/** Every segment's span on the value axis, series-major: `offsets[series][category]`.
|
|
157
|
+
*
|
|
158
|
+
* `'none'` and `'grouped'` give every series the same span it would have alone - the two differ in
|
|
159
|
+
* where the band puts them, which is geometry rather than value. The stacking modes run a
|
|
160
|
+
* POSITIVE and a NEGATIVE pile per category, so a negative segment hangs below the baseline
|
|
161
|
+
* instead of being subtracted from the positive pile it sits in.
|
|
162
|
+
*
|
|
163
|
+
* `'normalized'` divides a running SUM rather than each share in turn: adding 20/60 to 40/60
|
|
164
|
+
* lands on 0.9999999999999999, which draws a category that visibly falls short of full.
|
|
165
|
+
*/
|
|
166
|
+
declare function stackOffsets(series: readonly (readonly number[])[], mode: ChartStackMode): readonly (readonly ChartStackOffset[])[];
|
|
167
|
+
/** A label pinned to one reading, so the point it names is legible with no pointer.
|
|
168
|
+
*
|
|
169
|
+
* @internal */
|
|
170
|
+
interface ChartAnnotationMark {
|
|
171
|
+
readonly key: string;
|
|
172
|
+
readonly label: string;
|
|
173
|
+
readonly x: number;
|
|
174
|
+
readonly y: number;
|
|
175
|
+
readonly anchor: 'start' | 'middle' | 'end';
|
|
176
|
+
}
|
|
177
|
+
/** Places a label against each reading it names.
|
|
178
|
+
*
|
|
179
|
+
* @internal */
|
|
180
|
+
declare function annotationMarks(readings: readonly {
|
|
181
|
+
key: string;
|
|
182
|
+
label: string;
|
|
183
|
+
x: number;
|
|
184
|
+
y: number;
|
|
185
|
+
}[], plotWidth: number): readonly ChartAnnotationMark[];
|
|
186
|
+
/** Where one series' segment starts and ends on the value axis, in the axis's own unit - or in
|
|
187
|
+
* shares of the category total under `'normalized'`.
|
|
188
|
+
*/
|
|
189
|
+
interface ChartStackOffset {
|
|
190
|
+
readonly from: number;
|
|
191
|
+
readonly to: number;
|
|
192
|
+
}
|
|
193
|
+
|
|
167
194
|
declare class ChartComponent implements ChartScales {
|
|
195
|
+
protected readonly renderReady: Signal<boolean>;
|
|
168
196
|
/** The category axis. Every projected mark is positioned against this list, so its length is
|
|
169
197
|
* what decides how many bands the plot has. */
|
|
170
198
|
readonly categories: _angular_core.InputSignal<readonly string[]>;
|
|
@@ -178,14 +206,17 @@ declare class ChartComponent implements ChartScales {
|
|
|
178
206
|
* only comparable when both are pinned. */
|
|
179
207
|
readonly max: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
180
208
|
/** Draws a band and a crosshair down the category under the pointer, and reports that category
|
|
181
|
-
* to every mark through `activeIndex`.
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
|
|
209
|
+
* to every mark through `activeIndex`. On a plot of two or more marks that show a tooltip, the
|
|
210
|
+
* panel then names every mark's reading at that category wherever in it the pointer is.
|
|
211
|
+
* `'auto'`, the default, is `'category'` for such a composed plot and `'none'` for a plot of one
|
|
212
|
+
* mark, whose marks already answer per mark: two affordances on one plot read as two different
|
|
213
|
+
* questions. */
|
|
214
|
+
readonly cursor: _angular_core.InputSignal<"none" | "category" | "auto">;
|
|
185
215
|
/** Whether a press holds the category cursor where it is, so the reader can look away from the
|
|
186
216
|
* plot with the comparison still on screen. Released by pressing it again, by Escape, or by a
|
|
187
|
-
* press outside the plot. */
|
|
188
|
-
readonly cursorPin: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
217
|
+
* press outside the plot. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then `true`. */
|
|
218
|
+
readonly cursorPin: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
219
|
+
readonly cursorPinResolved: Signal<boolean>;
|
|
189
220
|
/** Milliseconds the cursor survives the pointer leaving the plot. The tooltip panel is portaled
|
|
190
221
|
* out of the plot, so without a grace period it closes before the pointer can reach it. */
|
|
191
222
|
readonly tooltipLingerMs: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
@@ -223,17 +254,16 @@ declare class ChartComponent implements ChartScales {
|
|
|
223
254
|
* resize when the data lands. */
|
|
224
255
|
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
225
256
|
/** Shown in place of the plot when `categories` is empty. Unset falls back to
|
|
226
|
-
* `
|
|
257
|
+
* `DS_INTL.chart.empty`. */
|
|
227
258
|
readonly emptyText: _angular_core.InputSignal<string | null>;
|
|
228
259
|
/** Shows `errorText` in place of the plot. Separate from `loading` and from an empty
|
|
229
260
|
* `categories`, because "the request failed" and "there is nothing to show" read the same to a
|
|
230
261
|
* reader and mean opposite things. */
|
|
231
262
|
readonly error: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
232
|
-
/** The message the error state prints. Unset falls back to `
|
|
233
|
-
* `'Could not load the data'`. */
|
|
263
|
+
/** The message the error state prints. Unset falls back to `DS_INTL.chart.error`. */
|
|
234
264
|
readonly errorText: _angular_core.InputSignal<string | null>;
|
|
235
|
-
/** Formats the value-axis ticks. Unset falls back to `DS_CONFIG.chart.valueFormat`, then
|
|
236
|
-
*
|
|
265
|
+
/** Formats the value-axis ticks. Unset falls back to `DS_CONFIG.chart.valueFormat`, then
|
|
266
|
+
* `DS_CONFIG.locale` / `LOCALE_ID`. */
|
|
237
267
|
readonly valueFormat: _angular_core.InputSignal<ChartValueFormat | null>;
|
|
238
268
|
/** How the second value axis relates to the first, once a mark has reported against it. The
|
|
239
269
|
* same four words `ds-line-chart` takes. */
|
|
@@ -252,10 +282,12 @@ declare class ChartComponent implements ChartScales {
|
|
|
252
282
|
/** `axisLabel` for the second axis. */
|
|
253
283
|
readonly secondaryAxisLabel: _angular_core.InputSignal<string | null>;
|
|
254
284
|
private readonly defaults;
|
|
285
|
+
protected readonly intl: Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
255
286
|
readonly frameResolved: Signal<ChartFrame>;
|
|
256
287
|
readonly emptyTextResolved: Signal<string>;
|
|
257
288
|
readonly errorTextResolved: Signal<string>;
|
|
258
|
-
readonly valueFormatResolved: Signal<
|
|
289
|
+
readonly valueFormatResolved: Signal<ChartValueFormat>;
|
|
290
|
+
readonly hoverDelayMs: Signal<number>;
|
|
259
291
|
private readonly host;
|
|
260
292
|
private readonly zone;
|
|
261
293
|
private readonly isBrowser;
|
|
@@ -337,13 +369,18 @@ declare class ChartComponent implements ChartScales {
|
|
|
337
369
|
private readonly tooltipSources;
|
|
338
370
|
reportTooltip(id: string, source: ChartTooltipSource): void;
|
|
339
371
|
releaseTooltip(id: string): void;
|
|
372
|
+
/** Two or more marks that show a tooltip: the plot reads as one comparison, so its panel is about
|
|
373
|
+
* the category rather than about whichever mark the pointer happens to be over. */
|
|
374
|
+
private readonly composed;
|
|
375
|
+
protected readonly cursorResolved: Signal<"none" | "category">;
|
|
376
|
+
readonly cursorOn: Signal<boolean>;
|
|
340
377
|
/** The offer to show, if any mark is making one. At most one mark has a context at a time: a
|
|
341
378
|
* per-mark tooltip only fills it while that mark is hovered, and an axis tooltip only while the
|
|
342
379
|
* category cursor is on. The container opening the panel is what stops two marks opening two. */
|
|
343
380
|
private readonly activeTooltip;
|
|
344
381
|
protected readonly tooltipContext: Signal<ChartTooltipContext | null>;
|
|
345
382
|
protected readonly tooltipOrigin: Signal<_ids_group_ltd_ids_design_system_components_chart_tooltip.ChartTooltipOrigin | null>;
|
|
346
|
-
protected readonly
|
|
383
|
+
protected readonly tooltipPinned: Signal<boolean>;
|
|
347
384
|
/** Compared by value, which is what stops a mark that reports AND reads `yPosition()` in one
|
|
348
385
|
* effect from running forever: every report allocates a fresh `Map` and `niceDomain` a fresh
|
|
349
386
|
* object, so identity always differs and the read would re-arm the write. Measured without it:
|
|
@@ -384,6 +421,11 @@ declare class ChartComponent implements ChartScales {
|
|
|
384
421
|
private readonly cursorState;
|
|
385
422
|
readonly activeIndex: Signal<number>;
|
|
386
423
|
private readonly pointerAt;
|
|
424
|
+
private readonly pointerInBand;
|
|
425
|
+
protected bandPinY(band: {
|
|
426
|
+
readonly bottom: number;
|
|
427
|
+
}): number;
|
|
428
|
+
protected readonly bandPins: Signal<boolean>;
|
|
387
429
|
readonly cursorPointer: Signal<{
|
|
388
430
|
x: number;
|
|
389
431
|
y: number;
|
|
@@ -417,6 +459,13 @@ declare class ChartComponent implements ChartScales {
|
|
|
417
459
|
* them a reading. Both are decided from the widest label as it actually rendered. */
|
|
418
460
|
protected readonly categoryLabelsRotated: Signal<boolean>;
|
|
419
461
|
private readonly categoryLabelInterval;
|
|
462
|
+
private readonly labelHovered;
|
|
463
|
+
readonly categoryLabelHover: Signal<{
|
|
464
|
+
readonly index: number;
|
|
465
|
+
readonly event: PointerEvent;
|
|
466
|
+
} | null>;
|
|
467
|
+
protected onCategoryLabelEnter(index: number, event: PointerEvent): void;
|
|
468
|
+
protected onCategoryLabelLeave(): void;
|
|
420
469
|
protected readonly categoryLabels: Signal<{
|
|
421
470
|
x: number;
|
|
422
471
|
text: string;
|
|
@@ -449,6 +498,8 @@ interface ColumnSeriesPoint {
|
|
|
449
498
|
declare class ColumnSeriesComponent implements OnDestroy {
|
|
450
499
|
protected readonly leaveMark: typeof leaveMark;
|
|
451
500
|
private readonly scales;
|
|
501
|
+
private readonly locale;
|
|
502
|
+
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
452
503
|
/** Not `input.required`: the preset reads `tooltipContext()` from a binding on this same
|
|
453
504
|
* element, and a required input throws NG0950 for the pass before its own value is written. */
|
|
454
505
|
readonly data: _angular_core.InputSignal<readonly ColumnSeriesPoint[]>;
|
|
@@ -457,14 +508,18 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
457
508
|
/** Turns on the click affordance - the pointer cursor and the hover tint. `pointClicked`
|
|
458
509
|
* fires whether or not this is set. */
|
|
459
510
|
readonly interactive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
460
|
-
/** Holds the hovered mark and its tooltip in place when it is clicked, until
|
|
461
|
-
* press outside releases it.
|
|
462
|
-
|
|
511
|
+
/** Holds the hovered mark and its tooltip in place when it is clicked, until a second click,
|
|
512
|
+
* Escape or a press outside releases it. Under the category cursor the container holds the
|
|
513
|
+
* category instead. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then `true`. */
|
|
514
|
+
readonly pinOnClick: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
515
|
+
readonly pinOnClickResolved: _angular_core.Signal<boolean>;
|
|
516
|
+
protected readonly pins: _angular_core.Signal<boolean>;
|
|
463
517
|
/** Fades every mark but the one under the pointer. Off by default: the dimming buys loudness
|
|
464
518
|
* for one mark and pays for it with the separation between the rest. */
|
|
465
519
|
readonly dimOthers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
466
|
-
/** Milliseconds between one mark's entrance and the next. The
|
|
467
|
-
* series does not crawl in.
|
|
520
|
+
/** Milliseconds between one mark's entrance and the next. The steps narrow to fit the whole
|
|
521
|
+
* spread within 260ms, so a long series does not crawl in.
|
|
522
|
+
* `0` is no stagger. */
|
|
468
523
|
readonly staggerMs: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
469
524
|
/** Declares that the marks are parts of one whole, which is what makes a share of their total
|
|
470
525
|
* a real quantity. On, each mark's share appears on the tooltip's second line. */
|
|
@@ -492,6 +547,9 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
492
547
|
/** Where each mark starts and ends on the value axis, one entry per point. Unset, every mark
|
|
493
548
|
* runs from zero to its own value, which is the unstacked case. */
|
|
494
549
|
readonly offsets: _angular_core.InputSignal<readonly ChartStackOffset[] | null>;
|
|
550
|
+
/** Which value axis the columns are measured against. `'secondary'` reads them off the second
|
|
551
|
+
* axis, the way `axis: 'secondary'` does on a line series' data. */
|
|
552
|
+
readonly axis: _angular_core.InputSignal<ChartAxis>;
|
|
495
553
|
/** One colour for the whole series, which is what several series drawn together need. Unset,
|
|
496
554
|
* each mark takes the categorical palette by its own position - the right reading when the
|
|
497
555
|
* marks ARE the categories, which is the single-series case. A point's own colour wins over
|
|
@@ -518,13 +576,15 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
518
576
|
* is its category's running total, not its own reading. */
|
|
519
577
|
private readonly spans;
|
|
520
578
|
constructor();
|
|
579
|
+
protected readonly dimsFromLabel: _angular_core.Signal<boolean>;
|
|
521
580
|
ngOnDestroy(): void;
|
|
522
581
|
readonly activeMark: _ids_group_ltd_ids_design_system_components_chart_tooltip.ChartActiveMark;
|
|
582
|
+
private readonly barElements;
|
|
523
583
|
/** One SERIES' slot inside a category's band: the whole band while a chart draws one series,
|
|
524
584
|
* a share of it per series when several are grouped. The box that catches the pointer is sized
|
|
525
585
|
* from this rather than from the drawn column, so a short column stays reachable. */
|
|
526
586
|
private readonly slotStep;
|
|
527
|
-
protected readonly
|
|
587
|
+
protected readonly slotBandPx: _angular_core.Signal<string>;
|
|
528
588
|
protected readonly markWidthPx: _angular_core.Signal<string>;
|
|
529
589
|
/** The whole canvas, reserved end included. Overshooting when the container drops that
|
|
530
590
|
* reservation costs nothing - the outer `<svg>` clips it - while falling short would leave a
|
|
@@ -543,10 +603,7 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
543
603
|
y: number;
|
|
544
604
|
height: number;
|
|
545
605
|
};
|
|
546
|
-
protected readonly
|
|
547
|
-
protected readonly pinGlyphSize = 14;
|
|
548
|
-
protected readonly pinGlyphOffset: number;
|
|
549
|
-
protected readonly pinGlyph: SafeHtml;
|
|
606
|
+
protected readonly hatchInUse: _angular_core.Signal<boolean>;
|
|
550
607
|
protected readonly marks: _angular_core.Signal<{
|
|
551
608
|
key: string;
|
|
552
609
|
point: ColumnSeriesPoint;
|
|
@@ -569,8 +626,7 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
569
626
|
protected onMarkOver(event: PointerEvent): void;
|
|
570
627
|
protected onMarkOut(event: PointerEvent): void;
|
|
571
628
|
protected readonly roving: _ids_group_ltd_ids_design_system_components.RovingMarks;
|
|
572
|
-
|
|
573
|
-
protected onMarkBlur(event: FocusEvent): void;
|
|
629
|
+
private onMarkFocus;
|
|
574
630
|
protected onMarkKey(event: KeyboardEvent): void;
|
|
575
631
|
protected entryLabel(mark: {
|
|
576
632
|
point: ColumnSeriesPoint;
|
|
@@ -578,10 +634,11 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
578
634
|
}): string;
|
|
579
635
|
/** This series' reading at the category the cursor is on. Filled whatever `tooltip` says: it
|
|
580
636
|
* feeds the container's category panel, never a panel of this mark's own. */
|
|
581
|
-
readonly axisEntries: _angular_core.Signal<readonly
|
|
637
|
+
readonly axisEntries: _angular_core.Signal<readonly ChartAxisEntry[]>;
|
|
638
|
+
private shareDetail;
|
|
582
639
|
readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
|
|
583
640
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnSeriesComponent, never>;
|
|
584
|
-
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; }; "seriesKey": { "alias": "seriesKey"; "required": false; "isSignal": true; }; "highlighted": { "alias": "highlighted"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, never, never, true, never>;
|
|
641
|
+
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; }; "axis": { "alias": "axis"; "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; }; "seriesKey": { "alias": "seriesKey"; "required": false; "isSignal": true; }; "highlighted": { "alias": "highlighted"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, never, never, true, never>;
|
|
585
642
|
}
|
|
586
643
|
|
|
587
644
|
interface LineSeriesData {
|
|
@@ -602,13 +659,6 @@ interface LineSeriesData {
|
|
|
602
659
|
/** Any CSS colour. Unset takes the categorical palette slot for the series' position. */
|
|
603
660
|
color?: string;
|
|
604
661
|
}
|
|
605
|
-
/**
|
|
606
|
-
* One line per series, drawn against the scales `ds-chart` supplies, on either of its two value
|
|
607
|
-
* axes.
|
|
608
|
-
*
|
|
609
|
-
* Hosted on a `<g>` rather than an element of its own: an element the SVG specification does not
|
|
610
|
-
* know is not rendered, and neither are its descendants. Written as `<svg:g dsLineSeries>`.
|
|
611
|
-
*/
|
|
612
662
|
declare class LineSeriesComponent implements OnDestroy {
|
|
613
663
|
protected readonly leaveMark: typeof leaveMark;
|
|
614
664
|
private readonly scales;
|
|
@@ -625,9 +675,12 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
625
675
|
/** Turns on the click affordance - the pointer cursor and the hover tint. `pointClicked`
|
|
626
676
|
* fires whether or not this is set. */
|
|
627
677
|
readonly interactive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
628
|
-
/** Holds the hovered mark and its tooltip in place when it is clicked, until
|
|
629
|
-
* press outside releases it.
|
|
630
|
-
|
|
678
|
+
/** Holds the hovered mark and its tooltip in place when it is clicked, until a second click,
|
|
679
|
+
* Escape or a press outside releases it. Under the category cursor the container holds the
|
|
680
|
+
* category instead. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then `true`. */
|
|
681
|
+
readonly pinOnClick: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
682
|
+
readonly pinOnClickResolved: _angular_core.Signal<boolean>;
|
|
683
|
+
protected readonly pins: _angular_core.Signal<boolean>;
|
|
631
684
|
/** Fades every series but the one under the pointer. Off by default: the dimming buys loudness
|
|
632
685
|
* for one line and pays for it with the separation between the rest. */
|
|
633
686
|
readonly dimOthers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -644,7 +697,8 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
644
697
|
readonly stacked: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
645
698
|
/** The dash for a series' position, or null where it draws solid. */
|
|
646
699
|
protected dashFor(seriesIndex: number): string | null;
|
|
647
|
-
/** Milliseconds between one
|
|
700
|
+
/** Milliseconds between one series' entrance and the next, narrowed so the last series still
|
|
701
|
+
* starts within the stagger budget. `0` turns the stagger off. */
|
|
648
702
|
readonly staggerMs: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
649
703
|
/** What a `null` reading draws: `'break'` leaves a hole in the line, `'zero'` plots a point
|
|
650
704
|
* at zero. A missing measurement and a measured zero are different facts. */
|
|
@@ -723,10 +777,23 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
723
777
|
markIndex: number;
|
|
724
778
|
categoryIndex: number;
|
|
725
779
|
}): boolean;
|
|
780
|
+
protected readonly pinnedMarker: _angular_core.Signal<{
|
|
781
|
+
key: string;
|
|
782
|
+
markIndex: number;
|
|
783
|
+
x: number;
|
|
784
|
+
y: number;
|
|
785
|
+
value: number;
|
|
786
|
+
category: string;
|
|
787
|
+
formattedValue: string;
|
|
788
|
+
seriesLabel: string;
|
|
789
|
+
seriesId: string;
|
|
790
|
+
categoryIndex: number;
|
|
791
|
+
color: string;
|
|
792
|
+
} | null>;
|
|
793
|
+
protected readonly pinLift: number;
|
|
726
794
|
protected onMarkerOver(event: PointerEvent): void;
|
|
727
795
|
protected onMarkerOut(event: PointerEvent): void;
|
|
728
|
-
|
|
729
|
-
protected onMarkerBlur(event: FocusEvent): void;
|
|
796
|
+
private onMarkerFocus;
|
|
730
797
|
protected onMarkerKey(event: KeyboardEvent): void;
|
|
731
798
|
protected isDimmed(seriesId: string): boolean;
|
|
732
799
|
protected onMarkerClick(event: MouseEvent): void;
|
|
@@ -739,7 +806,8 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
739
806
|
/** What this series reads at the category the cursor is on, whatever `tooltip` says. It feeds
|
|
740
807
|
* the container's category panel, so one band answers for every mark on the plot rather than
|
|
741
808
|
* each mark owning a hover field of its own. */
|
|
742
|
-
readonly axisEntries: _angular_core.Signal<readonly
|
|
809
|
+
readonly axisEntries: _angular_core.Signal<readonly ChartAxisEntry[]>;
|
|
810
|
+
private readonly readingsAtCursor;
|
|
743
811
|
readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
|
|
744
812
|
private readonly markerElements;
|
|
745
813
|
/** The topmost reading at the active category, as its own element. The cursor band spans the
|
|
@@ -3,6 +3,7 @@ import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids
|
|
|
3
3
|
import { DsControlValueAccessor, DsOverlayCloseCause } from '@ids-group-ltd/ids-design-system/components';
|
|
4
4
|
import * as _angular_core from '@angular/core';
|
|
5
5
|
import { OnDestroy, ElementRef, TemplateRef } from '@angular/core';
|
|
6
|
+
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
6
7
|
import { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';
|
|
7
8
|
|
|
8
9
|
/** Hue 0–360, saturation/value 0–100 — the model the Photoshop-style picker
|
|
@@ -17,6 +18,7 @@ declare class ColorPickerComponent extends DsControlValueAccessor<string> implem
|
|
|
17
18
|
private readonly overlay;
|
|
18
19
|
private readonly vcr;
|
|
19
20
|
private readonly host;
|
|
21
|
+
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
20
22
|
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
21
23
|
* a consumer's `ds-color-picker { --ds-color-picker-panel-*: … }` reaches it.
|
|
22
24
|
* Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`
|
|
@@ -33,8 +35,10 @@ declare class ColorPickerComponent extends DsControlValueAccessor<string> implem
|
|
|
33
35
|
readonly panelClass: _angular_core.InputSignal<string | readonly string[]>;
|
|
34
36
|
/** Disables the trigger and blocks all interaction. */
|
|
35
37
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
36
|
-
/** Accessible name for the trigger button and panel.
|
|
37
|
-
|
|
38
|
+
/** Accessible name for the trigger button and panel.
|
|
39
|
+
* Unset falls back to `DS_INTL.colorPicker.label`. */
|
|
40
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
41
|
+
readonly ariaLabelResolved: _angular_core.Signal<string>;
|
|
38
42
|
/** Confirmation text, shown when there is no error or warning — and it paints
|
|
39
43
|
* the field's success border. A string like `warning`: the text IS the state. */
|
|
40
44
|
readonly success: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
2
|
+
import { ChartStackMode, ChartThreshold, ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
|
|
2
3
|
import * as _angular_core from '@angular/core';
|
|
3
4
|
import { TemplateRef } from '@angular/core';
|
|
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
7
|
import { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
|
|
@@ -56,6 +56,7 @@ interface ResolvedColumnSeries {
|
|
|
56
56
|
readonly points: readonly ColumnChartPoint[];
|
|
57
57
|
}
|
|
58
58
|
declare class ColumnChartComponent {
|
|
59
|
+
protected readonly renderReady: _angular_core.Signal<boolean>;
|
|
59
60
|
/** One column per point, drawn in the order given - or one NAMED SERIES per entry, where every
|
|
60
61
|
* category carries a column from each. The two forms are told apart by their shape, so a chart
|
|
61
62
|
* handed a flat list behaves exactly as it always has. */
|
|
@@ -112,25 +113,25 @@ declare class ColumnChartComponent {
|
|
|
112
113
|
* when the data lands. */
|
|
113
114
|
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
114
115
|
/** Shown in place of the plot when `data` is empty. Unset falls back to
|
|
115
|
-
* `
|
|
116
|
+
* `DS_INTL.chart.empty`. */
|
|
116
117
|
readonly emptyText: _angular_core.InputSignal<string | null>;
|
|
117
118
|
/** Shows `errorText` in place of the plot. Separate from `loading` and from an empty `data`,
|
|
118
119
|
* because "the request failed" and "there is nothing to show" read the same to a reader and
|
|
119
120
|
* mean opposite things. */
|
|
120
121
|
readonly error: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
121
|
-
/** The message the error state prints. Unset falls back to `
|
|
122
|
-
* `'Could not load the data'`. */
|
|
122
|
+
/** The message the error state prints. Unset falls back to `DS_INTL.chart.error`. */
|
|
123
123
|
readonly errorText: _angular_core.InputSignal<string | null>;
|
|
124
124
|
/** Formats every value the chart prints, the annex table and the generated description
|
|
125
|
-
* included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then
|
|
126
|
-
*
|
|
125
|
+
* included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then `DS_CONFIG.locale` /
|
|
126
|
+
* `LOCALE_ID`. */
|
|
127
127
|
readonly valueFormat: _angular_core.InputSignal<ChartValueFormat | null>;
|
|
128
128
|
private readonly defaults;
|
|
129
|
+
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
129
130
|
readonly frameResolved: _angular_core.Signal<ChartFrame>;
|
|
130
131
|
readonly dataTableResolved: _angular_core.Signal<ChartDataTable>;
|
|
131
132
|
readonly emptyTextResolved: _angular_core.Signal<string>;
|
|
132
133
|
readonly errorTextResolved: _angular_core.Signal<string>;
|
|
133
|
-
readonly valueFormatResolved: _angular_core.Signal<
|
|
134
|
+
readonly valueFormatResolved: _angular_core.Signal<ChartValueFormat>;
|
|
134
135
|
/** Turns on the click affordance — the pointer cursor and any hover tint.
|
|
135
136
|
* The click output fires whether or not this is set, so a consumer that
|
|
136
137
|
* binds the output and forgets the flag still receives every click. */
|
|
@@ -138,20 +139,19 @@ declare class ColumnChartComponent {
|
|
|
138
139
|
/** The point that was clicked, or activated with Enter or Space. Fires whether or not
|
|
139
140
|
* `interactive` is set. */
|
|
140
141
|
readonly pointClicked: _angular_core.OutputEmitterRef<ColumnChartPoint>;
|
|
141
|
-
/** Holds the
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
|
|
145
|
-
readonly pinOnClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
142
|
+
/** Holds the clicked mark and its tooltip in place, with a pin disc on it, until a second click,
|
|
143
|
+
* Escape or a press outside releases it. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then
|
|
144
|
+
* `true`. `pointClicked` fires either way - pinning is a state, not a handler. */
|
|
145
|
+
readonly pinOnClick: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
146
146
|
/** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the
|
|
147
147
|
* one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed
|
|
148
148
|
* marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full
|
|
149
149
|
* opacity to 2.1 at `--ds-chart-dim-opacity`'s default 0.3 — so it buys loudness for one mark
|
|
150
150
|
* and pays for it with the rest of the chart. */
|
|
151
151
|
readonly dimOthers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
152
|
-
/** Milliseconds between one mark's entrance and the next.
|
|
153
|
-
*
|
|
154
|
-
*
|
|
152
|
+
/** Milliseconds between one mark's entrance and the next. The steps narrow to fit the whole
|
|
153
|
+
* spread within 260ms, so a long series does not crawl in.
|
|
154
|
+
* `0` is no stagger. */
|
|
155
155
|
readonly staggerMs: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
156
156
|
/** Whether a hovered or focused column opens a tooltip. `'axis'` is not offered — a
|
|
157
157
|
* column chart's marks ARE its categories, so an axis tooltip would repeat the item one. */
|
|
@@ -165,7 +165,7 @@ declare class ColumnChartComponent {
|
|
|
165
165
|
readonly tooltipAnchor: _angular_core.InputSignal<"mark" | "cell">;
|
|
166
166
|
/** The value is printed ABOVE the column, so a panel anchored to the column alone opens on top
|
|
167
167
|
* of that number. One text line of clearance puts it above both. */
|
|
168
|
-
protected readonly valueClearance: _angular_core.Signal<
|
|
168
|
+
protected readonly valueClearance: _angular_core.Signal<18 | 0>;
|
|
169
169
|
protected readonly tooltipLingerResolved: _angular_core.Signal<number>;
|
|
170
170
|
protected readonly geometry: _angular_core.WritableSignal<{
|
|
171
171
|
plotHeight: number;
|