@ids-group-ltd/ids-design-system 0.13.4 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +584 -0
- package/components.md +100 -52
- package/design-system.md +2 -0
- package/docs/agent/INDEX.md +3 -2
- package/docs/agent/charts/column-series-component.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +2 -1
- package/docs/agent/charts/ds-chart.md +3 -1
- package/docs/agent/charts/ds-config.md +3 -1
- package/docs/agent/charts/ds-line-chart.md +3 -3
- package/docs/agent/charts/ds-pie-chart.md +4 -3
- 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-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 +3 -3
- package/docs/agent/forms/ds-split-button.md +1 -1
- package/docs/agent/forms/ds-switch.md +4 -2
- package/docs/agent/forms/ds-textarea.md +2 -1
- 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 +2 -2
- package/docs/agent/platform/ds-config.md +3 -3
- package/docs/agent/platform/ds-intl.md +33 -0
- package/docs/agent/surfaces/ds-accordion.md +2 -2
- package/docs/agent/tables/ds-cell-template.md +1 -1
- package/docs/agent/tables/ds-table.md +5 -4
- 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 +13 -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 +56 -32
- 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 +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 +15 -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 +5 -3
- 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 +45 -39
- 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 +414 -105
- 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 +22 -18
- 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 +4 -2
- 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 +40 -42
- 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 +13 -9
- 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 +27 -23
- 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 +62 -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 +15 -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 +22 -13
- 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 +55 -29
- 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 +41 -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 +13 -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 +4 -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 +37 -4
- 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 +8 -7
- 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-switch.mjs +20 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +18 -15
- 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 +47 -38
- 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 +5 -3
- 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 +26 -4
- 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-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 +14 -15
- 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 +345 -66
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +361 -6
- 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.12.2.json +4 -1
- package/migrations/0.13.3.json +32 -10
- package/migrations/0.13.4.json +1630 -132
- package/migrations/0.14.0.json +615 -0
- package/migrations/0.14.1.json +856 -0
- package/migrations/0.5.0.json +10 -4
- package/migrations/0.7.0.json +5 -2
- package/migrations/0.9.0.json +5 -2
- package/migrations/README.md +7 -2
- 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 +2304 -0
- package/schematics/collection.json +5 -0
- package/styles/_chart-frame.scss +4 -4
- package/styles/_chart-interactive.scss +33 -0
- package/styles/_chart-motion.scss +17 -10
- package/styles/_field-box.scss +12 -0
- package/styles/_overlay-motion.scss +20 -10
- package/styles/_skeleton-shimmer.scss +4 -1
- package/styles/_tokens-charts.scss +1 -1
- package/styles/_tokens.scss +1 -1
- 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 +20 -14
- 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 +5 -0
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +11 -6
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +155 -36
- 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 +11 -8
- 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 +2 -0
- 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 +13 -13
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +7 -5
- 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 +17 -11
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +6 -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 +17 -10
- 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 +25 -14
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +15 -6
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +9 -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 +6 -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-switch.d.ts +10 -1
- 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 +44 -28
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +2 -0
- 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 +15 -0
- 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-w3w.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +7 -5
- package/types/ids-group-ltd-ids-design-system-components.d.ts +83 -17
- package/types/ids-group-ltd-ids-design-system-core.d.ts +420 -14
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
|
@@ -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 { ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
|
|
2
3
|
import * as _angular_core from '@angular/core';
|
|
3
4
|
import { ColumnSeriesPoint } from '@ids-group-ltd/ids-design-system/components/chart';
|
|
4
|
-
import { ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
|
|
5
5
|
import { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
|
|
6
6
|
|
|
7
7
|
/** What a bar is, which decides where it stands rather than how it is coloured.
|
|
@@ -40,6 +40,7 @@ interface WaterfallChartStep {
|
|
|
40
40
|
* every bar's accessible name says "increase" or "decrease" in words.
|
|
41
41
|
*/
|
|
42
42
|
declare class WaterfallChartComponent {
|
|
43
|
+
protected readonly renderReady: _angular_core.Signal<boolean>;
|
|
43
44
|
/** The bars in the order they are read, which is the order they happened in - a waterfall is
|
|
44
45
|
* never sorted, because the sequence is the meaning. */
|
|
45
46
|
readonly data: _angular_core.InputSignal<readonly WaterfallChartBar[]>;
|
|
@@ -70,10 +71,10 @@ declare class WaterfallChartComponent {
|
|
|
70
71
|
* same and mean opposite things. */
|
|
71
72
|
readonly error: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
72
73
|
/** Shown in place of the plot when `data` is empty. Unset falls back to
|
|
73
|
-
* `
|
|
74
|
+
* `DS_INTL.chart.empty`. */
|
|
74
75
|
readonly emptyText: _angular_core.InputSignal<string | null>;
|
|
75
76
|
/** Shown in place of the plot while `error` is set. Unset falls back to
|
|
76
|
-
* `
|
|
77
|
+
* `DS_INTL.chart.error`. */
|
|
77
78
|
readonly errorText: _angular_core.InputSignal<string | null>;
|
|
78
79
|
/** Formats every value the chart prints - the axis ticks, the bar labels and the annex table.
|
|
79
80
|
* The sign a delta carries is added around it, so a formatter never has to know about one. */
|
|
@@ -81,11 +82,12 @@ declare class WaterfallChartComponent {
|
|
|
81
82
|
/** The clicked datum, as it was given. Fires on click and on Enter or Space. */
|
|
82
83
|
readonly barClicked: _angular_core.OutputEmitterRef<WaterfallChartBar>;
|
|
83
84
|
private readonly defaults;
|
|
85
|
+
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
84
86
|
readonly frameResolved: _angular_core.Signal<ChartFrame>;
|
|
85
87
|
readonly dataTableResolved: _angular_core.Signal<ChartDataTable>;
|
|
86
88
|
readonly emptyTextResolved: _angular_core.Signal<string>;
|
|
87
89
|
readonly errorTextResolved: _angular_core.Signal<string>;
|
|
88
|
-
readonly valueFormatResolved: _angular_core.Signal<
|
|
90
|
+
readonly valueFormatResolved: _angular_core.Signal<ChartValueFormat>;
|
|
89
91
|
protected readonly isEmpty: _angular_core.Signal<boolean>;
|
|
90
92
|
protected readonly steps: _angular_core.Signal<readonly WaterfallChartStep[]>;
|
|
91
93
|
protected readonly categories: _angular_core.Signal<string[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Signal, ElementRef, TemplateRef, ModelSignal, WritableSignal } from '@angular/core';
|
|
3
|
-
import {
|
|
2
|
+
import { Signal, ElementRef, InjectionToken, AnimationCallbackEvent, TemplateRef, ModelSignal, WritableSignal } from '@angular/core';
|
|
3
|
+
import { ChartValueFormat, ChartCurve, DsIntl, ChartThreshold, IconName, ChartFrame, ChartDataTable } from '@ids-group-ltd/ids-design-system/core';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
5
|
import { FieldMessageState } from '@ids-group-ltd/ids-design-system/components/field-message';
|
|
6
6
|
import { Params, QueryParamsHandling, UrlTree } from '@angular/router';
|
|
@@ -57,14 +57,18 @@ declare const CHART_HEAT_COLORS: readonly string[];
|
|
|
57
57
|
|
|
58
58
|
/** @internal */
|
|
59
59
|
declare function formatValue(value: number, locale?: string): string;
|
|
60
|
-
/** The built-in `valueFormat
|
|
61
|
-
* (`1
|
|
60
|
+
/** The built-in `valueFormat` in one locale: compact on a tick (`1.2M`), spelled out everywhere
|
|
61
|
+
* else (`1,248,392`). A caller-supplied formatter receives the same `location` and decides for
|
|
62
62
|
* itself; this is only the default.
|
|
63
63
|
*
|
|
64
64
|
* @internal */
|
|
65
|
-
declare function
|
|
65
|
+
declare function chartValueFormat(locale: string): ChartValueFormat;
|
|
66
66
|
/** @internal */
|
|
67
|
-
declare function formatPercent(value: number, total: number): string;
|
|
67
|
+
declare function formatPercent(value: number, total: number, locale: string): string;
|
|
68
|
+
/** A whole-number percentage (the pie's largest-remainder shares), in `locale`.
|
|
69
|
+
*
|
|
70
|
+
* @internal */
|
|
71
|
+
declare function formatWholePercent(percent: number, locale: string): string;
|
|
68
72
|
/** Whole percentages that sum to exactly 100. Rounding each share on its own
|
|
69
73
|
* gives 33/33/33 for three equal parts, and a legend that visibly loses 1%.
|
|
70
74
|
*
|
|
@@ -79,12 +83,12 @@ declare function formatTick(value: number, step: number): string;
|
|
|
79
83
|
* rather than subtracted from it, so a negative mark has no share rather than a misleading one.
|
|
80
84
|
*
|
|
81
85
|
* @internal */
|
|
82
|
-
declare function shareOfTotal(values: readonly number[], index: number): string;
|
|
86
|
+
declare function shareOfTotal(values: readonly number[], index: number, locale: string): string;
|
|
83
87
|
/** The same share, phrased for a tooltip line, where no column header stands above it to say what
|
|
84
88
|
* the percentage is OF.
|
|
85
89
|
*
|
|
86
90
|
* @internal */
|
|
87
|
-
declare function describeShare(values: readonly number[], index: number): string;
|
|
91
|
+
declare function describeShare(values: readonly number[], index: number, locale: string, phrase: (share: string) => string): string;
|
|
88
92
|
|
|
89
93
|
/** Container width as a signal. It is 0 under SSR, while the container is
|
|
90
94
|
* `display: none`, and before the first observation.
|
|
@@ -92,6 +96,18 @@ declare function describeShare(values: readonly number[], index: number): string
|
|
|
92
96
|
* @internal */
|
|
93
97
|
declare function elementWidth(host: ElementRef<HTMLElement>): Signal<number>;
|
|
94
98
|
|
|
99
|
+
/** Provided by a chart that has already waited for the viewport, so the `ds-chart` it draws
|
|
100
|
+
* through builds at once instead of waiting a second time.
|
|
101
|
+
*
|
|
102
|
+
* @internal */
|
|
103
|
+
declare const CHART_RENDER_GATE_PASSED: InjectionToken<boolean>;
|
|
104
|
+
/** Whether a chart may build its plot yet, under `DS_CONFIG.chart.rendering`. `true` from the
|
|
105
|
+
* start unless `deferUntilVisible` is on; with it on, `true` once the chart nears the viewport or
|
|
106
|
+
* is built ahead while the page is idle, and it stays `true`. Call from an injection context.
|
|
107
|
+
*
|
|
108
|
+
* @internal */
|
|
109
|
+
declare function chartRenderGate(): Signal<boolean>;
|
|
110
|
+
|
|
95
111
|
/** The WIDEST label decides for all of them: an axis that thins on the average still collides on
|
|
96
112
|
* the one long month name, and a reader meets the collision rather than the average.
|
|
97
113
|
*
|
|
@@ -236,6 +252,13 @@ declare function roundStepAtLeast(minimumStep: number): number;
|
|
|
236
252
|
*
|
|
237
253
|
* @internal */
|
|
238
254
|
declare function staggerDelay(index: number, stepMs: number): number;
|
|
255
|
+
/** Starts a mark's exit, bound as `(animate.leave)="leaveMark($event)"`: `_chart-motion.scss`
|
|
256
|
+
* animates `.mark-leave`, and Angular removes the mark on its `animationend`. The function form,
|
|
257
|
+
* not `animate.leave="mark-leave"`: the class form calls `getAnimations()` once per leaving mark,
|
|
258
|
+
* and in Chrome that call costs more the more animations are running.
|
|
259
|
+
*
|
|
260
|
+
* @internal */
|
|
261
|
+
declare function leaveMark(event: AnimationCallbackEvent): void;
|
|
239
262
|
|
|
240
263
|
/** Where a roving tabindex lands after `key`, or `null` when the key does not traverse.
|
|
241
264
|
*
|
|
@@ -254,6 +277,42 @@ declare function markAt(scope: Element | null, index: number, within?: string):
|
|
|
254
277
|
*
|
|
255
278
|
* @internal */
|
|
256
279
|
declare function focusMark(scope: Element | null, index: number, within?: string): void;
|
|
280
|
+
/** A chart's roving tab stop.
|
|
281
|
+
*
|
|
282
|
+
* One tab stop per chart, not one per mark: WCAG 2.1.1's Understanding is explicit that not every
|
|
283
|
+
* mouse-operable control has to be separately focusable, and that is what keeps a twenty-five
|
|
284
|
+
* mark chart from being twenty-five stops in the page's tab order.
|
|
285
|
+
*
|
|
286
|
+
* @internal */
|
|
287
|
+
interface RovingMarks {
|
|
288
|
+
/** The index of the one mark that carries `tabindex="0"`. */
|
|
289
|
+
readonly tabStop: Signal<number>;
|
|
290
|
+
/** Makes `index` the tab stop, for a mark that has taken focus. */
|
|
291
|
+
focus(index: number): void;
|
|
292
|
+
/** Handles an arrow, Home or End pressed on the mark at `index`: moves the tab stop and DOM focus
|
|
293
|
+
* to the next mark inside `scope`. Any other key is left alone. */
|
|
294
|
+
navigate(event: KeyboardEvent, index: number, scope: Element | null): void;
|
|
295
|
+
}
|
|
296
|
+
/** @internal */
|
|
297
|
+
declare function rovingMarks(count: () => number): RovingMarks;
|
|
298
|
+
/** @internal */
|
|
299
|
+
interface MarkHit {
|
|
300
|
+
readonly element: Element;
|
|
301
|
+
readonly index: number;
|
|
302
|
+
}
|
|
303
|
+
/** The mark an event on the marks' parent came from - the nearest `[data-mark-index]` inside that
|
|
304
|
+
* parent - for a chart that listens once per series rather than once per mark. `null` when the
|
|
305
|
+
* event did not start on a mark.
|
|
306
|
+
*
|
|
307
|
+
* @internal */
|
|
308
|
+
declare function markOf(event: Event, scope?: EventTarget | null): MarkHit | null;
|
|
309
|
+
/** Focus arriving on and leaving a mark inside `scope`, heard from the document rather than from
|
|
310
|
+
* the marks' group: Chromium makes an SVG element focusable once it has a `focus`, `blur`,
|
|
311
|
+
* `focusin` or `focusout` listener, so a group that listened would take focus on a click and
|
|
312
|
+
* ring every mark it holds. Call from an injection context.
|
|
313
|
+
*
|
|
314
|
+
* @internal */
|
|
315
|
+
declare function listenForMarkFocus(scope: ElementRef<Element>, onFocus: (event: FocusEvent, mark: MarkHit) => void, onBlur?: (event: FocusEvent, mark: MarkHit) => void): void;
|
|
257
316
|
|
|
258
317
|
/** @internal */
|
|
259
318
|
interface SummaryPoint {
|
|
@@ -269,7 +328,7 @@ interface SummaryPoint {
|
|
|
269
328
|
* levels of chart description, and the encoding is the one thing a screen-reader user cannot use.
|
|
270
329
|
*
|
|
271
330
|
* @internal */
|
|
272
|
-
declare function describeSeries(label: string, points: readonly SummaryPoint[], format?: (value: number) => string, tableFollows?: boolean, thresholds?: readonly ChartThreshold[]): string;
|
|
331
|
+
declare function describeSeries(words: DsIntl['chart'], label: string, points: readonly SummaryPoint[], format?: (value: number) => string, tableFollows?: boolean, thresholds?: readonly ChartThreshold[]): string;
|
|
273
332
|
|
|
274
333
|
/** @internal */
|
|
275
334
|
declare function chipFit(count: Signal<number>, chipRow: Signal<ElementRef<HTMLElement> | undefined>, enabled: Signal<boolean>,
|
|
@@ -501,6 +560,13 @@ declare abstract class DsControlValueAccessor<T> extends DsFieldBase implements
|
|
|
501
560
|
* nowhere. A control with a more precise target overrides this.
|
|
502
561
|
*/
|
|
503
562
|
focus(options?: FocusOptions): void;
|
|
563
|
+
/**
|
|
564
|
+
* The counterpart of `focus()`: drops focus if it sits anywhere inside this
|
|
565
|
+
* control - the input, a picker trigger, the OTP cell that has it - so no
|
|
566
|
+
* subclass overrides it. A portaled panel is outside the host and is left alone.
|
|
567
|
+
* For a host that navigates away after `clear()`, which keeps focus on purpose.
|
|
568
|
+
*/
|
|
569
|
+
blur(): void;
|
|
504
570
|
private readonly bridge;
|
|
505
571
|
/** Driven by the forms API via `setDisabledState`. */
|
|
506
572
|
protected readonly formDisabled: WritableSignal<boolean>;
|
|
@@ -535,6 +601,8 @@ declare abstract class DsBooleanControlValueAccessor extends DsFieldBase impleme
|
|
|
535
601
|
* nowhere. A control with a more precise target overrides this.
|
|
536
602
|
*/
|
|
537
603
|
focus(options?: FocusOptions): void;
|
|
604
|
+
/** The counterpart of `focus()` - see `DsControlValueAccessor.blur`. */
|
|
605
|
+
blur(): void;
|
|
538
606
|
/** Driven by the forms API via `setDisabledState`. */
|
|
539
607
|
protected readonly formDisabled: WritableSignal<boolean>;
|
|
540
608
|
protected readonly touchedSelf: WritableSignal<boolean>;
|
|
@@ -843,10 +911,6 @@ declare class DsPanelHeaderTemplateDirective {
|
|
|
843
911
|
* child and, worse, a region created together with its text is the case screen
|
|
844
912
|
* readers reliably do not announce — there is no content CHANGE to fire on. The
|
|
845
913
|
* node here is created once, empty, and only its text changes.
|
|
846
|
-
*
|
|
847
|
-
* The text is English, which is the same debt every other library-invented string
|
|
848
|
-
* in this package carries (see the localization item in `docs/todo.md`). It is a
|
|
849
|
-
* count, so it is the cheapest of them to swap once a provider lands.
|
|
850
914
|
* @internal
|
|
851
915
|
*/
|
|
852
916
|
declare function announceOptionCount(count: Signal<number>, active: Signal<boolean>): void;
|
|
@@ -957,17 +1021,19 @@ interface ChartDefaultInputs {
|
|
|
957
1021
|
/** Absent on a chart with no tooltip of its own. */
|
|
958
1022
|
readonly tooltipLingerMs?: Signal<number | null>;
|
|
959
1023
|
}
|
|
960
|
-
/** Each resolved input → `DS_CONFIG.chart` → the built-in
|
|
1024
|
+
/** Each resolved input → `DS_CONFIG.chart` → the built-in; copy resolves input → `DS_INTL.chart`.
|
|
1025
|
+
* Call from an injection context.
|
|
961
1026
|
*
|
|
962
1027
|
* @internal */
|
|
963
1028
|
declare function resolveChartDefaults(inputs: ChartDefaultInputs): {
|
|
1029
|
+
locale: string;
|
|
964
1030
|
frame: Signal<ChartFrame>;
|
|
965
1031
|
dataTable: Signal<ChartDataTable>;
|
|
966
1032
|
emptyText: Signal<string>;
|
|
967
1033
|
errorText: Signal<string>;
|
|
968
|
-
valueFormat: Signal<
|
|
1034
|
+
valueFormat: Signal<ChartValueFormat>;
|
|
969
1035
|
tooltipLingerMs: Signal<number>;
|
|
970
1036
|
};
|
|
971
1037
|
|
|
972
|
-
export { CHART_HEAT_COLORS, CHART_RAMP_COLORS, CHART_SERIES_COLORS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, areaPath, bandPath, bandScale, chartColors, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, decimationTarget,
|
|
973
|
-
export type { BandScale, DsAriaCurrent, DsDestination, DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsLinkModifiers, DsOverlayCloseCause, DsRouterLink, LinePoint, NiceDomain, PointScale, SummaryPoint };
|
|
1038
|
+
export { CHART_HEAT_COLORS, CHART_RAMP_COLORS, CHART_RENDER_GATE_PASSED, CHART_SERIES_COLORS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, areaPath, bandPath, bandScale, chartColors, chartRenderGate, chartValueFormat, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, decimationTarget, describeSeries, describeShare, disposeWithLeave, domainMinOf, dropdownOverlay, dsAriaCurrent, dsDestination, elementWidth, focusIsInside, focusMark, formatPercent, formatTick, formatValue, formatWholePercent, forwardOverlayTokens, labelInterval, largestRemainder, leaveMark, linePath, lineSegments, linearScale, listenForMarkFocus, lttbDecimate, markAt, markOf, minMaxDecimate, needsDecimating, nextControlId, nextRovingIndex, niceDomain, overlayPlacementOf, panelClassesOf, pointScale, polylinePoints, prepareOverlayEnter, resolveBrandValue, resolveChartDefaults, resolveFieldMessage, rotationWouldFit, roundStepAtLeast, rovingMarks, scrollActiveOptionIntoView, shareOfTotal, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge };
|
|
1039
|
+
export type { BandScale, DsAriaCurrent, DsDestination, DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsLinkModifiers, DsOverlayCloseCause, DsRouterLink, LinePoint, MarkHit, NiceDomain, PointScale, RovingMarks, SummaryPoint };
|