@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,4 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
2
3
|
|
|
3
4
|
interface ChartLegendItem {
|
|
4
5
|
/** Matches the series or slice id the chart hides by. */
|
|
@@ -16,6 +17,7 @@ interface ChartLegendItem {
|
|
|
16
17
|
* @internal
|
|
17
18
|
*/
|
|
18
19
|
declare class ChartLegendComponent {
|
|
20
|
+
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
19
21
|
readonly items: _angular_core.InputSignal<readonly ChartLegendItem[]>;
|
|
20
22
|
/** Ids of the hidden items. Two-way, so a page can drive it from a URL parameter and so
|
|
21
23
|
* cross-chart filtering later is this same mechanism. */
|
|
@@ -15,6 +15,9 @@ interface ChartTooltipEntry {
|
|
|
15
15
|
/** Already through the chart's `valueFormat`, so the panel never formats. */
|
|
16
16
|
readonly formatted: string;
|
|
17
17
|
readonly color: string;
|
|
18
|
+
/** Marks whose fill is hatched rather than solid. The swatch takes the same treatment, so the
|
|
19
|
+
* panel and the plot encode the distinction the same way and neither relies on hue alone. */
|
|
20
|
+
readonly hatched?: boolean;
|
|
18
21
|
/** A second line under the value, for what the chart does NOT already print beside the mark —
|
|
19
22
|
* its share of the total, its rank, the drop into it. A tooltip that repeats the label a
|
|
20
23
|
* reader is looking at has told them nothing. */
|
|
@@ -52,9 +55,9 @@ declare class ChartTooltipDirective {
|
|
|
52
55
|
* that text as well as the mark, or the two overlap. Ignored for touch, where the gap is already
|
|
53
56
|
* sized for a fingertip. */
|
|
54
57
|
readonly dsChartTooltipExtraGap: _angular_core.InputSignal<number>;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
readonly
|
|
58
|
+
/** A held panel takes the pointer again, so its text can be selected. While it merely follows
|
|
59
|
+
* the pointer the pane stays inert, or the mark it covers never sees the pointer at all. */
|
|
60
|
+
readonly dsChartTooltipPinned: _angular_core.InputSignal<boolean>;
|
|
58
61
|
private overlayRef;
|
|
59
62
|
private panelRef;
|
|
60
63
|
private detachScrollReposition;
|
|
@@ -65,7 +68,7 @@ declare class ChartTooltipDirective {
|
|
|
65
68
|
private closeOnEscape;
|
|
66
69
|
private close;
|
|
67
70
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartTooltipDirective, never>;
|
|
68
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartTooltipDirective, "[dsChartTooltip]", never, { "dsChartTooltip": { "alias": "dsChartTooltip"; "required": false; "isSignal": true; }; "dsChartTooltipOrigin": { "alias": "dsChartTooltipOrigin"; "required": false; "isSignal": true; }; "dsChartTooltipTemplate": { "alias": "dsChartTooltipTemplate"; "required": false; "isSignal": true; }; "dsChartTooltipExtraGap": { "alias": "dsChartTooltipExtraGap"; "required": false; "isSignal": true; }; "
|
|
71
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartTooltipDirective, "[dsChartTooltip]", never, { "dsChartTooltip": { "alias": "dsChartTooltip"; "required": false; "isSignal": true; }; "dsChartTooltipOrigin": { "alias": "dsChartTooltipOrigin"; "required": false; "isSignal": true; }; "dsChartTooltipTemplate": { "alias": "dsChartTooltipTemplate"; "required": false; "isSignal": true; }; "dsChartTooltipExtraGap": { "alias": "dsChartTooltipExtraGap"; "required": false; "isSignal": true; }; "dsChartTooltipPinned": { "alias": "dsChartTooltipPinned"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
/** @internal */
|
|
@@ -76,7 +79,9 @@ interface ChartActiveMark {
|
|
|
76
79
|
readonly origin: Signal<Element | null>;
|
|
77
80
|
/** Whether the active mark is held rather than followed — a tap, or a click under `pinOnClick`. */
|
|
78
81
|
readonly pinned: Signal<boolean>;
|
|
79
|
-
|
|
82
|
+
/** `mark` is the hovered element, for a listener delegated to the marks' parent; it defaults to
|
|
83
|
+
* the event's `currentTarget`. */
|
|
84
|
+
enter(index: number, event: Event, anchor?: string | Element | null, mark?: Element): void;
|
|
80
85
|
/** Moves the active index with no pointer behind it - a keyboard, or a mark handing over which
|
|
81
86
|
* category it took focus on. Leaves the anchor alone: the caller that has no event has no
|
|
82
87
|
* element to aim at either. A pin holds against this too. */
|
|
@@ -84,7 +89,7 @@ interface ChartActiveMark {
|
|
|
84
89
|
leave(): void;
|
|
85
90
|
/** Holds the mark that was activated, for any pointer type. Activating the mark that is already
|
|
86
91
|
* pinned releases it, so one gesture both sets and clears. */
|
|
87
|
-
pin(index: number, event: Event, anchor?: string | Element | null): void;
|
|
92
|
+
pin(index: number, event: Event, anchor?: string | Element | null, mark?: Element): void;
|
|
88
93
|
/** Lets go of a held mark, for a control that offers the way out in as many words. */
|
|
89
94
|
release(): void;
|
|
90
95
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as _ids_group_ltd_ids_design_system_components from '@ids-group-ltd/ids-design-system/components';
|
|
2
|
-
import { NiceDomain } from '@ids-group-ltd/ids-design-system/components';
|
|
2
|
+
import { NiceDomain, leaveMark } from '@ids-group-ltd/ids-design-system/components';
|
|
3
|
+
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
3
4
|
import { ChartThresholdDash, ChartStackMode, ChartAxis, ChartFrame, ChartValueFormat, ChartAxisMode, ChartGaps, ChartCurve, ChartThreshold } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
-
import * as _angular_core from '@angular/core';
|
|
5
|
-
import { InjectionToken, Signal, OnDestroy } from '@angular/core';
|
|
6
5
|
import * as _ids_group_ltd_ids_design_system_components_chart_tooltip from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
7
|
-
import {
|
|
6
|
+
import { ChartTooltipContext, ChartTooltipOrigin, ChartTooltipEntry, ChartItemTooltipTrigger, ChartTooltipTrigger } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
7
|
+
import * as _angular_core from '@angular/core';
|
|
8
|
+
import { InjectionToken, Signal, TemplateRef, OnDestroy } from '@angular/core';
|
|
8
9
|
import { SafeHtml } from '@angular/platform-browser';
|
|
9
10
|
import * as _ids_group_ltd_ids_design_system_components_chart from '@ids-group-ltd/ids-design-system/components/chart';
|
|
10
11
|
|
|
@@ -84,6 +85,26 @@ interface ChartStackOffset {
|
|
|
84
85
|
readonly to: number;
|
|
85
86
|
}
|
|
86
87
|
|
|
88
|
+
/** What a mark hands the container so the container can open the panel for it. The mark decides
|
|
89
|
+
* WHAT the panel says and WHERE it points; the container decides that there is one, which is what
|
|
90
|
+
* keeps a plot from opening two. */
|
|
91
|
+
interface ChartTooltipSource {
|
|
92
|
+
readonly context: Signal<ChartTooltipContext | null>;
|
|
93
|
+
readonly origin: Signal<ChartTooltipOrigin | null>;
|
|
94
|
+
/** Whether the mark is held. A held panel takes the pointer, so its text can be selected. */
|
|
95
|
+
readonly pinned?: Signal<boolean>;
|
|
96
|
+
/** Whether this mark shows a tooltip at all. Absent means it does. Two marks that do make the
|
|
97
|
+
* plot a composed one, which is what turns the category cursor on under `cursor="auto"`. */
|
|
98
|
+
readonly offersTooltip?: Signal<boolean>;
|
|
99
|
+
/** This mark's own reading at the category the cursor is on, as an element, whether or not the
|
|
100
|
+
* pointer is over it. A category panel hangs over the highest of these. Absent falls back to
|
|
101
|
+
* `origin`. */
|
|
102
|
+
readonly axisOrigin?: Signal<Element | null>;
|
|
103
|
+
/** What this mark reads at the category the cursor is on, whatever its own tooltip setting. A
|
|
104
|
+
* category panel names every series at that category, and a mark that answers per-mark still
|
|
105
|
+
* belongs in it. */
|
|
106
|
+
readonly axisEntries?: Signal<readonly ChartTooltipEntry[]>;
|
|
107
|
+
}
|
|
87
108
|
/** The drawable rectangle inside `ds-chart`, in CSS pixels: the container measures itself and
|
|
88
109
|
* sizes its `viewBox` so one user unit is one pixel. A length written into a mark is therefore
|
|
89
110
|
* the length it says it is, at every card width. The gutters outside it carry the axis labels. */
|
|
@@ -103,6 +124,10 @@ interface ChartPlot {
|
|
|
103
124
|
interface ChartScales {
|
|
104
125
|
readonly categories: Signal<readonly string[]>;
|
|
105
126
|
readonly plot: Signal<ChartPlot>;
|
|
127
|
+
/** Whether the plot has its real width yet. Until it does, the scales describe a stand-in width
|
|
128
|
+
* that the first measurement replaces, so a mark that waits for this builds its geometry once
|
|
129
|
+
* instead of twice. Absent means always measured. */
|
|
130
|
+
readonly measured?: Signal<boolean>;
|
|
106
131
|
/** The CENTRE of a category's band. A mark with a width of its own subtracts half of
|
|
107
132
|
* `bandWidth` to reach its leading edge. */
|
|
108
133
|
readonly xPosition: Signal<(index: number) => number>;
|
|
@@ -140,10 +165,15 @@ interface ChartScales {
|
|
|
140
165
|
reportDomain(id: string, values: readonly number[], axis?: ChartAxis): void;
|
|
141
166
|
/** Withdraws a contribution, which a mark does in `ngOnDestroy`. */
|
|
142
167
|
releaseDomain(id: string): void;
|
|
168
|
+
/** Offers the container a panel to open while this mark is the active one. Reporting again with
|
|
169
|
+
* the same id replaces the offer. */
|
|
170
|
+
reportTooltip(id: string, source: ChartTooltipSource): void;
|
|
171
|
+
releaseTooltip(id: string): void;
|
|
143
172
|
}
|
|
144
173
|
declare const CHART_SCALES: InjectionToken<ChartScales>;
|
|
145
174
|
|
|
146
175
|
declare class ChartComponent implements ChartScales {
|
|
176
|
+
protected readonly renderReady: Signal<boolean>;
|
|
147
177
|
/** The category axis. Every projected mark is positioned against this list, so its length is
|
|
148
178
|
* what decides how many bands the plot has. */
|
|
149
179
|
readonly categories: _angular_core.InputSignal<readonly string[]>;
|
|
@@ -157,10 +187,12 @@ declare class ChartComponent implements ChartScales {
|
|
|
157
187
|
* only comparable when both are pinned. */
|
|
158
188
|
readonly max: _angular_core.InputSignalWithTransform<number | null, number | null>;
|
|
159
189
|
/** Draws a band and a crosshair down the category under the pointer, and reports that category
|
|
160
|
-
* to every mark through `activeIndex`.
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
|
|
190
|
+
* to every mark through `activeIndex`. On a plot of two or more marks that show a tooltip, the
|
|
191
|
+
* panel then names every mark's reading at that category wherever in it the pointer is.
|
|
192
|
+
* `'auto'`, the default, is `'category'` for such a composed plot and `'none'` for a plot of one
|
|
193
|
+
* mark, whose marks already answer per mark: two affordances on one plot read as two different
|
|
194
|
+
* questions. */
|
|
195
|
+
readonly cursor: _angular_core.InputSignal<"none" | "category" | "auto">;
|
|
164
196
|
/** Whether a press holds the category cursor where it is, so the reader can look away from the
|
|
165
197
|
* plot with the comparison still on screen. Released by pressing it again, by Escape, or by a
|
|
166
198
|
* press outside the plot. */
|
|
@@ -202,17 +234,16 @@ declare class ChartComponent implements ChartScales {
|
|
|
202
234
|
* resize when the data lands. */
|
|
203
235
|
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
204
236
|
/** Shown in place of the plot when `categories` is empty. Unset falls back to
|
|
205
|
-
* `
|
|
237
|
+
* `DS_INTL.chart.empty`. */
|
|
206
238
|
readonly emptyText: _angular_core.InputSignal<string | null>;
|
|
207
239
|
/** Shows `errorText` in place of the plot. Separate from `loading` and from an empty
|
|
208
240
|
* `categories`, because "the request failed" and "there is nothing to show" read the same to a
|
|
209
241
|
* reader and mean opposite things. */
|
|
210
242
|
readonly error: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
211
|
-
/** The message the error state prints. Unset falls back to `
|
|
212
|
-
* `'Could not load the data'`. */
|
|
243
|
+
/** The message the error state prints. Unset falls back to `DS_INTL.chart.error`. */
|
|
213
244
|
readonly errorText: _angular_core.InputSignal<string | null>;
|
|
214
|
-
/** Formats the value-axis ticks. Unset falls back to `DS_CONFIG.chart.valueFormat`, then
|
|
215
|
-
*
|
|
245
|
+
/** Formats the value-axis ticks. Unset falls back to `DS_CONFIG.chart.valueFormat`, then
|
|
246
|
+
* `DS_CONFIG.locale` / `LOCALE_ID`. */
|
|
216
247
|
readonly valueFormat: _angular_core.InputSignal<ChartValueFormat | null>;
|
|
217
248
|
/** How the second value axis relates to the first, once a mark has reported against it. The
|
|
218
249
|
* same four words `ds-line-chart` takes. */
|
|
@@ -231,15 +262,20 @@ declare class ChartComponent implements ChartScales {
|
|
|
231
262
|
/** `axisLabel` for the second axis. */
|
|
232
263
|
readonly secondaryAxisLabel: _angular_core.InputSignal<string | null>;
|
|
233
264
|
private readonly defaults;
|
|
265
|
+
protected readonly intl: Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
234
266
|
readonly frameResolved: Signal<ChartFrame>;
|
|
235
267
|
readonly emptyTextResolved: Signal<string>;
|
|
236
268
|
readonly errorTextResolved: Signal<string>;
|
|
237
|
-
readonly valueFormatResolved: Signal<
|
|
269
|
+
readonly valueFormatResolved: Signal<ChartValueFormat>;
|
|
238
270
|
private readonly host;
|
|
271
|
+
private readonly zone;
|
|
272
|
+
private readonly isBrowser;
|
|
239
273
|
/** The `<svg>`'s own rendered width: `:host(.framed)` carries the frame padding, so the host's
|
|
240
274
|
* CONTENT box - which is what a `ResizeObserver` reports - is the box the canvas fills at
|
|
241
275
|
* `inline-size: 100%`. Measuring the host is therefore measuring the canvas. */
|
|
242
276
|
private readonly measuredWidth;
|
|
277
|
+
/** Server-rendered output has no width to wait for, so it draws at the stand-in. */
|
|
278
|
+
readonly measured: Signal<boolean>;
|
|
243
279
|
protected readonly viewWidth: Signal<number>;
|
|
244
280
|
/** Whether the marks may animate yet. The first frame draws at `CHART_FALLBACK_WIDTH` scaled to
|
|
245
281
|
* fit, so the measurement that follows moves every mark - and a mark that transitions its
|
|
@@ -276,6 +312,16 @@ declare class ChartComponent implements ChartScales {
|
|
|
276
312
|
* count, neither of which the gutter feeds, so widening it moves the labels without rewriting
|
|
277
313
|
* them and the second measurement equals the first. */
|
|
278
314
|
protected readonly effectiveAxisGutter: Signal<number>;
|
|
315
|
+
/** A rotated axis title stands in the same gutter as the tick labels, so the gutter has to carry
|
|
316
|
+
* both or the widest tick runs through the title. Its own width is its line height, because it
|
|
317
|
+
* is turned on its side. */
|
|
318
|
+
protected readonly axisTitleGutter: Signal<20 | 0>;
|
|
319
|
+
/** Where a rotated axis title sits: hard against the outer edge, with the tick labels between it
|
|
320
|
+
* and the plot. */
|
|
321
|
+
protected readonly axisTitleX: Signal<number>;
|
|
322
|
+
/** Mirrors `axisTitleX` against the right edge, so the two titles stand the same distance from
|
|
323
|
+
* their own ticks. */
|
|
324
|
+
protected readonly secondaryTitleX: Signal<number>;
|
|
279
325
|
/** Widest secondary tick label, measured the same way and for the same reason as the primary
|
|
280
326
|
* one: those labels sit OUTSIDE the plot's right edge and an SVG canvas clips what a DOM
|
|
281
327
|
* column merely overflowed. */
|
|
@@ -283,12 +329,36 @@ declare class ChartComponent implements ChartScales {
|
|
|
283
329
|
/** The plot gives the right-hand labels room only when they are drawn there - a stacked second
|
|
284
330
|
* axis puts both label columns down the left, so the plot keeps the full width. */
|
|
285
331
|
protected readonly rightGutter: Signal<number>;
|
|
332
|
+
/** The second axis's title stands in the right gutter exactly as the first one's stands in the
|
|
333
|
+
* left, so both sides reserve the same band and the plot sits centred between its two labels. */
|
|
334
|
+
protected readonly secondaryTitleGutter: Signal<20 | 0>;
|
|
286
335
|
readonly plot: Signal<ChartPlot>;
|
|
287
336
|
readonly secondaryPlot: Signal<ChartPlot>;
|
|
288
337
|
private readonly reportedDomains;
|
|
289
338
|
reportDomain(id: string, values: readonly number[], axis?: ChartAxis): void;
|
|
290
339
|
private valuesOn;
|
|
291
340
|
releaseDomain(id: string): void;
|
|
341
|
+
/** A template that replaces the panel's body, for a preset that prints more than label+value. */
|
|
342
|
+
readonly tooltipTemplate: _angular_core.InputSignal<TemplateRef<{
|
|
343
|
+
$implicit: ChartTooltipContext;
|
|
344
|
+
}> | null>;
|
|
345
|
+
/** Extra clearance between the mark and the panel, for a chart that prints a value label in
|
|
346
|
+
* the gap the panel would otherwise take. */
|
|
347
|
+
readonly tooltipExtraGap: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
348
|
+
private readonly tooltipSources;
|
|
349
|
+
reportTooltip(id: string, source: ChartTooltipSource): void;
|
|
350
|
+
releaseTooltip(id: string): void;
|
|
351
|
+
/** Two or more marks that show a tooltip: the plot reads as one comparison, so its panel is about
|
|
352
|
+
* the category rather than about whichever mark the pointer happens to be over. */
|
|
353
|
+
private readonly composed;
|
|
354
|
+
protected readonly cursorResolved: Signal<"none" | "category">;
|
|
355
|
+
/** The offer to show, if any mark is making one. At most one mark has a context at a time: a
|
|
356
|
+
* per-mark tooltip only fills it while that mark is hovered, and an axis tooltip only while the
|
|
357
|
+
* category cursor is on. The container opening the panel is what stops two marks opening two. */
|
|
358
|
+
private readonly activeTooltip;
|
|
359
|
+
protected readonly tooltipContext: Signal<ChartTooltipContext | null>;
|
|
360
|
+
protected readonly tooltipOrigin: Signal<_ids_group_ltd_ids_design_system_components_chart_tooltip.ChartTooltipOrigin | null>;
|
|
361
|
+
protected readonly tooltipPinned: Signal<boolean>;
|
|
292
362
|
/** Compared by value, which is what stops a mark that reports AND reads `yPosition()` in one
|
|
293
363
|
* effect from running forever: every report allocates a fresh `Map` and `niceDomain` a fresh
|
|
294
364
|
* object, so identity always differs and the read would re-arm the write. Measured without it:
|
|
@@ -336,8 +406,12 @@ declare class ChartComponent implements ChartScales {
|
|
|
336
406
|
/** Whether the cursor is held. A preset renders its own way out of the pin from this. */
|
|
337
407
|
readonly cursorPinned: Signal<boolean>;
|
|
338
408
|
releaseCursor(): void;
|
|
339
|
-
|
|
340
|
-
|
|
409
|
+
private readonly canvasElement;
|
|
410
|
+
private canvasRect;
|
|
411
|
+
private plotPointer;
|
|
412
|
+
/** The plot listens to the pointer only when it draws a category cursor, and outside the zone:
|
|
413
|
+
* the handler writes signals, which schedule the render they need. */
|
|
414
|
+
private listenForCursor;
|
|
341
415
|
private readonly bandElement;
|
|
342
416
|
readonly cursorOrigin: Signal<Element | null>;
|
|
343
417
|
setActiveIndex(index: number): void;
|
|
@@ -353,6 +427,7 @@ declare class ChartComponent implements ChartScales {
|
|
|
353
427
|
y: number;
|
|
354
428
|
label: string;
|
|
355
429
|
}[]>;
|
|
430
|
+
private readonly labelTexts;
|
|
356
431
|
/** Rotation is spent before thinning: a tilt costs the reader a glance, dropping a label costs
|
|
357
432
|
* them a reading. Both are decided from the widest label as it actually rendered. */
|
|
358
433
|
protected readonly categoryLabelsRotated: Signal<boolean>;
|
|
@@ -369,7 +444,7 @@ declare class ChartComponent implements ChartScales {
|
|
|
369
444
|
protected readonly isEmpty: Signal<boolean>;
|
|
370
445
|
protected readonly accessibleName: Signal<string>;
|
|
371
446
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartComponent, never>;
|
|
372
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartComponent, "ds-chart", ["dsChart"], { "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "tickCount": { "alias": "tickCount"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "cursor": { "alias": "cursor"; "required": false; "isSignal": true; }; "cursorPin": { "alias": "cursorPin"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "maxSecondary": { "alias": "maxSecondary"; "required": false; "isSignal": true; }; "plotHeight": { "alias": "plotHeight"; "required": false; "isSignal": true; }; "axisGutter": { "alias": "axisGutter"; "required": false; "isSignal": true; }; "valueSpace": { "alias": "valueSpace"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "secondaryAxisMode": { "alias": "secondaryAxisMode"; "required": false; "isSignal": true; }; "axisColor": { "alias": "axisColor"; "required": false; "isSignal": true; }; "secondaryAxisColor": { "alias": "secondaryAxisColor"; "required": false; "isSignal": true; }; "axisLabel": { "alias": "axisLabel"; "required": false; "isSignal": true; }; "secondaryAxisLabel": { "alias": "secondaryAxisLabel"; "required": false; "isSignal": true; }; }, {}, never, ["[dsReferenceLine]", "*", "[dsReferenceLabel], [dsSeriesAnnotation]"], true, never>;
|
|
447
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartComponent, "ds-chart", ["dsChart"], { "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "tickCount": { "alias": "tickCount"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "cursor": { "alias": "cursor"; "required": false; "isSignal": true; }; "cursorPin": { "alias": "cursorPin"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "maxSecondary": { "alias": "maxSecondary"; "required": false; "isSignal": true; }; "plotHeight": { "alias": "plotHeight"; "required": false; "isSignal": true; }; "axisGutter": { "alias": "axisGutter"; "required": false; "isSignal": true; }; "valueSpace": { "alias": "valueSpace"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "secondaryAxisMode": { "alias": "secondaryAxisMode"; "required": false; "isSignal": true; }; "axisColor": { "alias": "axisColor"; "required": false; "isSignal": true; }; "secondaryAxisColor": { "alias": "secondaryAxisColor"; "required": false; "isSignal": true; }; "axisLabel": { "alias": "axisLabel"; "required": false; "isSignal": true; }; "secondaryAxisLabel": { "alias": "secondaryAxisLabel"; "required": false; "isSignal": true; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; "isSignal": true; }; "tooltipExtraGap": { "alias": "tooltipExtraGap"; "required": false; "isSignal": true; }; }, {}, never, ["[dsReferenceLine]", "*", "[dsReferenceLabel], [dsSeriesAnnotation]"], true, never>;
|
|
373
448
|
}
|
|
374
449
|
|
|
375
450
|
interface ColumnSeriesPoint {
|
|
@@ -387,7 +462,10 @@ interface ColumnSeriesPoint {
|
|
|
387
462
|
* container's canvas would draw nothing. Written as `<svg:g dsColumnSeries>`.
|
|
388
463
|
*/
|
|
389
464
|
declare class ColumnSeriesComponent implements OnDestroy {
|
|
465
|
+
protected readonly leaveMark: typeof leaveMark;
|
|
390
466
|
private readonly scales;
|
|
467
|
+
private readonly locale;
|
|
468
|
+
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
391
469
|
/** Not `input.required`: the preset reads `tooltipContext()` from a binding on this same
|
|
392
470
|
* element, and a required input throws NG0950 for the pass before its own value is written. */
|
|
393
471
|
readonly data: _angular_core.InputSignal<readonly ColumnSeriesPoint[]>;
|
|
@@ -431,6 +509,9 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
431
509
|
/** Where each mark starts and ends on the value axis, one entry per point. Unset, every mark
|
|
432
510
|
* runs from zero to its own value, which is the unstacked case. */
|
|
433
511
|
readonly offsets: _angular_core.InputSignal<readonly ChartStackOffset[] | null>;
|
|
512
|
+
/** Which value axis the columns are measured against. `'secondary'` reads them off the second
|
|
513
|
+
* axis, the way `axis: 'secondary'` does on a line series' data. */
|
|
514
|
+
readonly axis: _angular_core.InputSignal<ChartAxis>;
|
|
434
515
|
/** One colour for the whole series, which is what several series drawn together need. Unset,
|
|
435
516
|
* each mark takes the categorical palette by its own position - the right reading when the
|
|
436
517
|
* marks ARE the categories, which is the single-series case. A point's own colour wins over
|
|
@@ -441,6 +522,11 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
441
522
|
/** Names the series in the tooltip, where the category then becomes the panel's heading. Unset,
|
|
442
523
|
* the panel names the category instead, which is what a chart of one series has to say. */
|
|
443
524
|
readonly seriesLabel: _angular_core.InputSignal<string | null>;
|
|
525
|
+
/** Identifies this series to the legend, so hovering a legend item can single it out. */
|
|
526
|
+
readonly seriesKey: _angular_core.InputSignal<string | null>;
|
|
527
|
+
/** The series the reader is pointing at in the legend. Every other series fades. */
|
|
528
|
+
readonly highlighted: _angular_core.InputSignal<string | null>;
|
|
529
|
+
protected readonly dimmedBySeries: _angular_core.Signal<boolean>;
|
|
444
530
|
/** The clicked datum. Fires on click and on Enter or Space, whatever `interactive` says. */
|
|
445
531
|
readonly pointClicked: _angular_core.OutputEmitterRef<ColumnSeriesPoint>;
|
|
446
532
|
private readonly seriesId;
|
|
@@ -454,6 +540,7 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
454
540
|
constructor();
|
|
455
541
|
ngOnDestroy(): void;
|
|
456
542
|
readonly activeMark: _ids_group_ltd_ids_design_system_components_chart_tooltip.ChartActiveMark;
|
|
543
|
+
private readonly barElements;
|
|
457
544
|
/** One SERIES' slot inside a category's band: the whole band while a chart draws one series,
|
|
458
545
|
* a share of it per series when several are grouped. The box that catches the pointer is sized
|
|
459
546
|
* from this rather than from the drawn column, so a short column stays reachable. */
|
|
@@ -464,10 +551,24 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
464
551
|
* reservation costs nothing - the outer `<svg>` clips it - while falling short would leave a
|
|
465
552
|
* strip under the plot that answers no pointer. */
|
|
466
553
|
protected readonly hitHeight: _angular_core.Signal<number>;
|
|
554
|
+
/** Stacked series sit on top of one another, so a full-slot hit box on each one means only the
|
|
555
|
+
* series drawn last is ever reachable. Stacked, a mark catches the pointer over its own segment
|
|
556
|
+
* and nothing else. */
|
|
557
|
+
protected readonly stacked: _angular_core.Signal<boolean>;
|
|
558
|
+
/** Keeps a thin segment reachable without letting it reach into its neighbours. */
|
|
559
|
+
private static readonly MIN_STACK_HIT;
|
|
560
|
+
protected hitBox(mark: {
|
|
561
|
+
top: number;
|
|
562
|
+
height: number;
|
|
563
|
+
}): {
|
|
564
|
+
y: number;
|
|
565
|
+
height: number;
|
|
566
|
+
};
|
|
467
567
|
protected readonly pinDiscRadius = 11;
|
|
468
568
|
protected readonly pinGlyphSize = 14;
|
|
469
569
|
protected readonly pinGlyphOffset: number;
|
|
470
570
|
protected readonly pinGlyph: SafeHtml;
|
|
571
|
+
protected readonly hatchInUse: _angular_core.Signal<boolean>;
|
|
471
572
|
protected readonly marks: _angular_core.Signal<{
|
|
472
573
|
key: string;
|
|
473
574
|
point: ColumnSeriesPoint;
|
|
@@ -485,23 +586,23 @@ declare class ColumnSeriesComponent implements OnDestroy {
|
|
|
485
586
|
hatched: boolean;
|
|
486
587
|
}[]>;
|
|
487
588
|
protected markStagger(index: number): string;
|
|
488
|
-
|
|
489
|
-
protected
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
protected
|
|
495
|
-
protected onMarkFocus(index: number, event: FocusEvent): void;
|
|
496
|
-
protected onMarkNavigation(event: KeyboardEvent, index: number): void;
|
|
497
|
-
protected onPointKey(point: ColumnSeriesPoint, event: Event): void;
|
|
589
|
+
private readonly tooltipMark;
|
|
590
|
+
protected onMarkClick(event: MouseEvent): void;
|
|
591
|
+
protected onMarkOver(event: PointerEvent): void;
|
|
592
|
+
protected onMarkOut(event: PointerEvent): void;
|
|
593
|
+
protected readonly roving: _ids_group_ltd_ids_design_system_components.RovingMarks;
|
|
594
|
+
private onMarkFocus;
|
|
595
|
+
protected onMarkKey(event: KeyboardEvent): void;
|
|
498
596
|
protected entryLabel(mark: {
|
|
499
597
|
point: ColumnSeriesPoint;
|
|
500
598
|
formattedValue: string;
|
|
501
599
|
}): string;
|
|
600
|
+
/** This series' reading at the category the cursor is on. Filled whatever `tooltip` says: it
|
|
601
|
+
* feeds the container's category panel, never a panel of this mark's own. */
|
|
602
|
+
readonly axisEntries: _angular_core.Signal<readonly ChartTooltipEntry[]>;
|
|
502
603
|
readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
|
|
503
604
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnSeriesComponent, never>;
|
|
504
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColumnSeriesComponent, "g[dsColumnSeries]", ["dsColumnSeries"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "showValues": { "alias": "showValues"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; "partOfWhole": { "alias": "partOfWhole"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipAnchor": { "alias": "tooltipAnchor"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "columnWidthRatio": { "alias": "columnWidthRatio"; "required": false; "isSignal": true; }; "slot": { "alias": "slot"; "required": false; "isSignal": true; }; "slotCount": { "alias": "slotCount"; "required": false; "isSignal": true; }; "offsets": { "alias": "offsets"; "required": false; "isSignal": true; }; "seriesColor": { "alias": "seriesColor"; "required": false; "isSignal": true; }; "seriesFill": { "alias": "seriesFill"; "required": false; "isSignal": true; }; "seriesLabel": { "alias": "seriesLabel"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, never, never, true, never>;
|
|
605
|
+
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>;
|
|
505
606
|
}
|
|
506
607
|
|
|
507
608
|
interface LineSeriesData {
|
|
@@ -530,6 +631,7 @@ interface LineSeriesData {
|
|
|
530
631
|
* know is not rendered, and neither are its descendants. Written as `<svg:g dsLineSeries>`.
|
|
531
632
|
*/
|
|
532
633
|
declare class LineSeriesComponent implements OnDestroy {
|
|
634
|
+
protected readonly leaveMark: typeof leaveMark;
|
|
533
635
|
private readonly scales;
|
|
534
636
|
/** Not `input.required`: the preset reads `tooltipContext()` from a binding on this same
|
|
535
637
|
* element, and a required input throws NG0950 for the pass before its own value is written. */
|
|
@@ -537,6 +639,10 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
537
639
|
/** Draws a round marker at every reading. Off leaves the line alone, which reads better past
|
|
538
640
|
* roughly twenty points. */
|
|
539
641
|
readonly showMarkers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
642
|
+
/** Lays the line and its markers on a band of the surface colour, so they stay legible where
|
|
643
|
+
* they cross other marks. On by default: a line shares its plot more often than not, and on an
|
|
644
|
+
* empty plot the band only separates it from the gridlines. */
|
|
645
|
+
readonly outline: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
540
646
|
/** Turns on the click affordance - the pointer cursor and the hover tint. `pointClicked`
|
|
541
647
|
* fires whether or not this is set. */
|
|
542
648
|
readonly interactive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -548,8 +654,8 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
548
654
|
readonly dimOthers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
549
655
|
/** The one series to single out: every other one draws faded and this one draws bold, so the
|
|
550
656
|
* comparison survives a monochrome print. Driven from a legend, or from whatever else the app
|
|
551
|
-
* uses to mean "show me this one".
|
|
552
|
-
*
|
|
657
|
+
* uses to mean "show me this one". Fades the others whether or not `dimOthers` is set, which
|
|
658
|
+
* governs only what a pointer over a marker does. */
|
|
553
659
|
readonly highlighted: _angular_core.InputSignal<string | null>;
|
|
554
660
|
/** A dash pattern per series, in the order the series are given. A series past the end of the
|
|
555
661
|
* list, or given an empty string, draws solid. */
|
|
@@ -626,21 +732,34 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
626
732
|
* every mouse-operable control has to be separately focusable, which is what keeps a
|
|
627
733
|
* 12-category, 2-series plot from being twenty-four stops in the page's tab order. */
|
|
628
734
|
private readonly rovingBySeries;
|
|
735
|
+
private readonly firstMarkerBySeries;
|
|
629
736
|
protected isTabStop(seriesId: string, markIndex: number): boolean;
|
|
630
737
|
/** The series a marker holds focus on, which narrows an `'axis'` panel to that one reading: a
|
|
631
738
|
* pointer answers for every series at once, a focused marker answers for its own. */
|
|
632
739
|
private readonly focusedSeries;
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
protected
|
|
740
|
+
/** A reading is active when its own marker is hovered OR when the category cursor is on its
|
|
741
|
+
* category: one band, one answer, so the dot grows wherever in the band the pointer is rather
|
|
742
|
+
* than only on the 4px dot itself. */
|
|
743
|
+
protected isActiveMarker(marker: {
|
|
744
|
+
markIndex: number;
|
|
745
|
+
categoryIndex: number;
|
|
746
|
+
}): boolean;
|
|
747
|
+
protected onMarkerOver(event: PointerEvent): void;
|
|
748
|
+
protected onMarkerOut(event: PointerEvent): void;
|
|
749
|
+
private onMarkerFocus;
|
|
750
|
+
protected onMarkerKey(event: KeyboardEvent): void;
|
|
637
751
|
protected isDimmed(seriesId: string): boolean;
|
|
638
|
-
protected onMarkerClick(
|
|
752
|
+
protected onMarkerClick(event: MouseEvent): void;
|
|
753
|
+
private selectMarker;
|
|
639
754
|
protected markerLabel(marker: {
|
|
640
755
|
seriesLabel: string;
|
|
641
756
|
category: string;
|
|
642
757
|
formattedValue: string;
|
|
643
758
|
}): string;
|
|
759
|
+
/** What this series reads at the category the cursor is on, whatever `tooltip` says. It feeds
|
|
760
|
+
* the container's category panel, so one band answers for every mark on the plot rather than
|
|
761
|
+
* each mark owning a hover field of its own. */
|
|
762
|
+
readonly axisEntries: _angular_core.Signal<readonly ChartTooltipEntry[]>;
|
|
644
763
|
readonly tooltipContext: _angular_core.Signal<ChartTooltipContext | null>;
|
|
645
764
|
private readonly markerElements;
|
|
646
765
|
/** The topmost reading at the active category, as its own element. The cursor band spans the
|
|
@@ -655,7 +774,7 @@ declare class LineSeriesComponent implements OnDestroy {
|
|
|
655
774
|
* blank one. */
|
|
656
775
|
private readonly axisTooltipContext;
|
|
657
776
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LineSeriesComponent, never>;
|
|
658
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LineSeriesComponent, "g[dsLineSeries]", ["dsLineSeries"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "showMarkers": { "alias": "showMarkers"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "highlighted": { "alias": "highlighted"; "required": false; "isSignal": true; }; "patterns": { "alias": "patterns"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; "gaps": { "alias": "gaps"; "required": false; "isSignal": true; }; "curve": { "alias": "curve"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipAnchor": { "alias": "tooltipAnchor"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, never, never, true, never>;
|
|
777
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LineSeriesComponent, "g[dsLineSeries]", ["dsLineSeries"], { "data": { "alias": "data"; "required": false; "isSignal": true; }; "showMarkers": { "alias": "showMarkers"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "highlighted": { "alias": "highlighted"; "required": false; "isSignal": true; }; "patterns": { "alias": "patterns"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; "gaps": { "alias": "gaps"; "required": false; "isSignal": true; }; "curve": { "alias": "curve"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipAnchor": { "alias": "tooltipAnchor"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; }, { "pointClicked": "pointClicked"; }, never, never, true, never>;
|
|
659
778
|
}
|
|
660
779
|
|
|
661
780
|
/**
|
|
@@ -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. */
|
|
@@ -190,6 +191,8 @@ declare class ColumnChartComponent {
|
|
|
190
191
|
* its end standing rather than taking them off the axis for every other series too. */
|
|
191
192
|
protected readonly categories: _angular_core.Signal<string[]>;
|
|
192
193
|
protected readonly multiSeries: _angular_core.Signal<boolean>;
|
|
194
|
+
/** The series named in the legend under the pointer, which fades the rest. */
|
|
195
|
+
protected readonly highlightedSeries: _angular_core.WritableSignal<string | null>;
|
|
193
196
|
protected readonly legendItems: _angular_core.Signal<readonly ChartLegendItem[]>;
|
|
194
197
|
/** A normalized stack draws shares, not readings, so the axis has to say so - the value printed
|
|
195
198
|
* beside each mark stays the reading, which is what `valueFormat` goes on formatting. */
|
|
@@ -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 { DsSize } from '@ids-group-ltd/ids-design-system/core';
|
|
7
8
|
import { describedByIds } from '@ids-group-ltd/ids-design-system/components/field-group';
|
|
8
9
|
|
|
@@ -63,6 +64,8 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | DateRang
|
|
|
63
64
|
private readonly vcr;
|
|
64
65
|
private readonly injector;
|
|
65
66
|
private readonly config;
|
|
67
|
+
private readonly appLocale;
|
|
68
|
+
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
66
69
|
private readonly host;
|
|
67
70
|
/** Public panel tokens forwarded onto the portaled overlay pane on open so
|
|
68
71
|
* a consumer's `ds-date-picker { --ds-date-picker-*: … }` reaches it.
|
|
@@ -80,8 +83,10 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | DateRang
|
|
|
80
83
|
readonly fullWidth: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
81
84
|
/** Selected date (single) or `[start, end]` (range), two-way bound. */
|
|
82
85
|
readonly value: _angular_core.ModelSignal<Date | DateRangeValue | null>;
|
|
83
|
-
/** Accessible-name fallback only — the mask fills the visible placeholder, not this.
|
|
84
|
-
|
|
86
|
+
/** Accessible-name fallback only — the mask fills the visible placeholder, not this.
|
|
87
|
+
* Unset falls back to `DS_INTL.datePicker.placeholder`. */
|
|
88
|
+
readonly placeholder: _angular_core.InputSignal<string | null>;
|
|
89
|
+
readonly placeholderResolved: _angular_core.Signal<string>;
|
|
85
90
|
/** Field label shown above the trigger. */
|
|
86
91
|
readonly label: _angular_core.InputSignal<string>;
|
|
87
92
|
/** Marks the field required — shows an asterisk and sets `aria-required`. */
|
|
@@ -112,7 +117,8 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | DateRang
|
|
|
112
117
|
readonly disabledDate: _angular_core.InputSignal<((date: Date) => boolean) | null>;
|
|
113
118
|
/** Quick-pick shortcuts shown as a button column inside the calendar panel. */
|
|
114
119
|
readonly presets: _angular_core.InputSignal<readonly DatePickerPreset[]>;
|
|
115
|
-
/** BCP-47 locale driving month/weekday names and the value format.
|
|
120
|
+
/** BCP-47 locale driving month/weekday names and the value format. Unset falls
|
|
121
|
+
* back to `DS_CONFIG.datePicker.locale`, then `DS_CONFIG.locale`, then `LOCALE_ID`. */
|
|
116
122
|
readonly locale: _angular_core.InputSignal<string | null>;
|
|
117
123
|
/** Explicit token format e.g. `'MM/DD/YYYY'`; default derived from `locale`. */
|
|
118
124
|
readonly dateFormat: _angular_core.InputSignal<string | null>;
|