@ids-group-ltd/ids-design-system 0.14.0 → 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 +330 -4
- package/components.md +81 -43
- package/design-system.md +2 -0
- package/docs/agent/INDEX.md +2 -1
- 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 +1 -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/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 +2 -2
- package/docs/agent/forms/ds-split-button.md +1 -1
- package/docs/agent/forms/ds-textarea.md +1 -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/platform/ds-config.md +2 -3
- package/docs/agent/platform/ds-intl.md +33 -0
- package/docs/agent/surfaces/ds-accordion.md +2 -2
- package/docs/agent/tables/ds-table.md +2 -2
- 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 +35 -18
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +7 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +4 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +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 +22 -29
- 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 +91 -67
- 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 +20 -16
- 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 +36 -29
- 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 +23 -20
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +26 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +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 +7 -6
- 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 +51 -16
- 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 +17 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +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 +20 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +6 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +16 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +19 -18
- 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 +5 -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 +271 -73
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +359 -3
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.10.0.json +1 -1
- package/migrations/0.10.1.json +1 -1
- package/migrations/0.14.0.json +28 -4
- package/migrations/0.14.1.json +856 -0
- package/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-interactive.scss +33 -0
- package/styles/_field-box.scss +12 -0
- package/styles/_overlay-motion.scss +6 -4
- package/styles/_tokens-charts.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 +18 -10
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +1 -4
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +38 -18
- 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 +9 -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 +11 -9
- 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 +13 -10
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +11 -6
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +3 -1
- 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 +24 -10
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +8 -5
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +7 -3
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -2
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +5 -1
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +6 -4
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +5 -2
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +10 -5
- 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 +2 -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 +44 -21
- package/types/ids-group-ltd-ids-design-system-core.d.ts +408 -11
- package/types/ids-group-ltd-ids-design-system.d.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Signal, ElementRef, AnimationCallbackEvent, 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
|
*
|
|
@@ -279,15 +295,24 @@ interface RovingMarks {
|
|
|
279
295
|
}
|
|
280
296
|
/** @internal */
|
|
281
297
|
declare function rovingMarks(count: () => number): RovingMarks;
|
|
298
|
+
/** @internal */
|
|
299
|
+
interface MarkHit {
|
|
300
|
+
readonly element: Element;
|
|
301
|
+
readonly index: number;
|
|
302
|
+
}
|
|
282
303
|
/** The mark an event on the marks' parent came from - the nearest `[data-mark-index]` inside that
|
|
283
304
|
* parent - for a chart that listens once per series rather than once per mark. `null` when the
|
|
284
305
|
* event did not start on a mark.
|
|
285
306
|
*
|
|
286
307
|
* @internal */
|
|
287
|
-
declare function markOf(event: Event):
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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;
|
|
291
316
|
|
|
292
317
|
/** @internal */
|
|
293
318
|
interface SummaryPoint {
|
|
@@ -303,7 +328,7 @@ interface SummaryPoint {
|
|
|
303
328
|
* levels of chart description, and the encoding is the one thing a screen-reader user cannot use.
|
|
304
329
|
*
|
|
305
330
|
* @internal */
|
|
306
|
-
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;
|
|
307
332
|
|
|
308
333
|
/** @internal */
|
|
309
334
|
declare function chipFit(count: Signal<number>, chipRow: Signal<ElementRef<HTMLElement> | undefined>, enabled: Signal<boolean>,
|
|
@@ -886,10 +911,6 @@ declare class DsPanelHeaderTemplateDirective {
|
|
|
886
911
|
* child and, worse, a region created together with its text is the case screen
|
|
887
912
|
* readers reliably do not announce — there is no content CHANGE to fire on. The
|
|
888
913
|
* node here is created once, empty, and only its text changes.
|
|
889
|
-
*
|
|
890
|
-
* The text is English, which is the same debt every other library-invented string
|
|
891
|
-
* in this package carries (see the localization item in `docs/todo.md`). It is a
|
|
892
|
-
* count, so it is the cheapest of them to swap once a provider lands.
|
|
893
914
|
* @internal
|
|
894
915
|
*/
|
|
895
916
|
declare function announceOptionCount(count: Signal<number>, active: Signal<boolean>): void;
|
|
@@ -1000,17 +1021,19 @@ interface ChartDefaultInputs {
|
|
|
1000
1021
|
/** Absent on a chart with no tooltip of its own. */
|
|
1001
1022
|
readonly tooltipLingerMs?: Signal<number | null>;
|
|
1002
1023
|
}
|
|
1003
|
-
/** 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.
|
|
1004
1026
|
*
|
|
1005
1027
|
* @internal */
|
|
1006
1028
|
declare function resolveChartDefaults(inputs: ChartDefaultInputs): {
|
|
1029
|
+
locale: string;
|
|
1007
1030
|
frame: Signal<ChartFrame>;
|
|
1008
1031
|
dataTable: Signal<ChartDataTable>;
|
|
1009
1032
|
emptyText: Signal<string>;
|
|
1010
1033
|
errorText: Signal<string>;
|
|
1011
|
-
valueFormat: Signal<
|
|
1034
|
+
valueFormat: Signal<ChartValueFormat>;
|
|
1012
1035
|
tooltipLingerMs: Signal<number>;
|
|
1013
1036
|
};
|
|
1014
1037
|
|
|
1015
|
-
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,
|
|
1016
|
-
export type { BandScale, DsAriaCurrent, DsDestination, DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsLinkModifiers, DsOverlayCloseCause, DsRouterLink, LinePoint, NiceDomain, PointScale, RovingMarks, 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 };
|
|
@@ -87,6 +87,30 @@ type ChartGaps = 'break' | 'zero';
|
|
|
87
87
|
*
|
|
88
88
|
* Unrelated to `ChartAxisMode`'s `'split'`, which puts two PLOTS one above the other. */
|
|
89
89
|
type ChartStackMode = 'none' | 'grouped' | 'stacked' | 'normalized';
|
|
90
|
+
/** How charts build themselves on a long page, set once for an app in `DS_CONFIG.chart.rendering`.
|
|
91
|
+
* Everything is off unless `deferUntilVisible` is on: a screen with a few charts draws them at
|
|
92
|
+
* once, with nothing waiting and nothing to flicker. */
|
|
93
|
+
interface ChartRendering {
|
|
94
|
+
/** Build a chart only when it comes near the viewport; until then it shows its loading
|
|
95
|
+
* placeholder at its own height, and a screen reader meets its caption and nothing else.
|
|
96
|
+
* Default `false`. For a page with dozens of charts - a dashboard, a report - where building
|
|
97
|
+
* them all at once stalls the page. */
|
|
98
|
+
deferUntilVisible?: boolean;
|
|
99
|
+
/** How far outside the viewport a deferred chart is built, as an `IntersectionObserver`
|
|
100
|
+
* `rootMargin`. Default `'10% 0px'`: near enough that its entrance still plays on screen. */
|
|
101
|
+
visibleMargin?: string;
|
|
102
|
+
/** Also build the deferred charts within `buildAheadMargin` while the page is idle, so the next
|
|
103
|
+
* scroll finds them ready. Default `true`. Skipped where `requestIdleCallback` does not exist. */
|
|
104
|
+
buildAheadWhileIdle?: boolean;
|
|
105
|
+
/** The reach of `buildAheadWhileIdle`, as a `rootMargin`. Default `'100% 0px'`, one viewport. */
|
|
106
|
+
buildAheadMargin?: string;
|
|
107
|
+
/** Milliseconds of chart building one task may spend before it yields, so no frame waits on a
|
|
108
|
+
* queue of charts. Default `8`. A single chart that takes longer is still built whole. */
|
|
109
|
+
frameBudgetMs?: number;
|
|
110
|
+
/** With `deferUntilVisible`, also let the browser skip a built chart's style, layout and paint
|
|
111
|
+
* while it is off screen, through `content-visibility: auto`. Default `true`. */
|
|
112
|
+
skipWhileOffscreen?: boolean;
|
|
113
|
+
}
|
|
90
114
|
|
|
91
115
|
declare const ICONS: {
|
|
92
116
|
readonly search: "<circle cx=\"11\" cy=\"11\" r=\"7\" /><path d=\"m20 20-3.5-3.5\" />";
|
|
@@ -199,6 +223,12 @@ interface DsToastPosition {
|
|
|
199
223
|
type PaginationLayout = 'grouped' | 'spread';
|
|
200
224
|
|
|
201
225
|
interface DsConfig {
|
|
226
|
+
/** BCP-47 locale every component formats numbers and dates in - chart values and
|
|
227
|
+
* percentages, `ds-date-picker`, file sizes in `ds-dropzone`. Default is Angular's
|
|
228
|
+
* `LOCALE_ID`, which is `'en-US'` unless the app provides it, so the library prints numbers
|
|
229
|
+
* the way the app's own `| number` does. Set it here only where the library must differ
|
|
230
|
+
* from `LOCALE_ID`. A section key that names a locale (`datePicker.locale`) wins over this. */
|
|
231
|
+
locale?: string;
|
|
202
232
|
field?: {
|
|
203
233
|
/** Default for every field's `reserveMessage` — keeps a message line's worth
|
|
204
234
|
* of space even when empty. Default `false`. Setting `true` here applies to
|
|
@@ -349,19 +379,18 @@ interface DsConfig {
|
|
|
349
379
|
* 1.4.13's hoverable clause — which is a property of what an app puts in its tooltips rather
|
|
350
380
|
* than of one plot. About 140 is enough to cross the gap at an ordinary pointer speed. */
|
|
351
381
|
tooltipLingerMs?: number;
|
|
352
|
-
/** Shown in place of the plot when a chart's data is empty. Default `'No data'`. */
|
|
353
|
-
emptyText?: string;
|
|
354
|
-
/** Shown in place of the plot when a chart has `error` set. Default
|
|
355
|
-
* `'Could not load the data'`. */
|
|
356
|
-
errorText?: string;
|
|
357
382
|
/** How every chart formats its values, the annex table and the generated description included.
|
|
358
|
-
* Default
|
|
359
|
-
*
|
|
360
|
-
*
|
|
383
|
+
* Default groups digits in `locale` and abbreviates on a tick (`1.2M`). The same reason
|
|
384
|
+
* `datePicker.locale` lives here: a number reads one way in an app, and a formatter passed
|
|
385
|
+
* per chart drifts as soon as there are two screens. */
|
|
361
386
|
valueFormat?: ChartValueFormat;
|
|
387
|
+
/** How charts build themselves on a long page: build each one as it nears the viewport, build
|
|
388
|
+
* ahead while idle, skip the ones off screen. All off by default. */
|
|
389
|
+
rendering?: ChartRendering;
|
|
362
390
|
};
|
|
363
391
|
datePicker?: {
|
|
364
|
-
/** BCP-47 locale for `ds-date-picker` names
|
|
392
|
+
/** BCP-47 locale for `ds-date-picker` names and value format. Unset falls back to
|
|
393
|
+
* `locale`, then `LOCALE_ID`. */
|
|
365
394
|
locale?: string;
|
|
366
395
|
/** Explicit token format e.g. `'MM/DD/YYYY'`; overrides the locale-derived order. */
|
|
367
396
|
dateFormat?: string;
|
|
@@ -427,6 +456,374 @@ declare function resolveWithConfig<T>(value: Signal<T | null>, pick: (config: Ds
|
|
|
427
456
|
*/
|
|
428
457
|
declare function devWarn(message: () => string | null): void;
|
|
429
458
|
|
|
459
|
+
interface AnnounceState {
|
|
460
|
+
variant: string;
|
|
461
|
+
title: string;
|
|
462
|
+
/** Whether the element would announce as `role="alert"` rather than `status`. */
|
|
463
|
+
assertive: boolean;
|
|
464
|
+
/** The element's own `announce` input, `null` while unbound. */
|
|
465
|
+
announce: boolean | null;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* The two ways `announce` on `ds-banner` / `ds-alert` goes wrong without anyone deciding it. An
|
|
469
|
+
* assertive element left unbound while the app has not set `DS_CONFIG.<section>.announce` is one a
|
|
470
|
+
* screen reader will not hear; a polite one that announces only because that key is `true` is
|
|
471
|
+
* nearly always page furniture written after the key was adopted. Each warns once per instance,
|
|
472
|
+
* in dev mode only; the caller wraps the call in the `typeof ngDevMode` guard (see `devWarn`).
|
|
473
|
+
* Must be called from an injection context.
|
|
474
|
+
* @internal
|
|
475
|
+
*/
|
|
476
|
+
declare function warnAnnounceOversight(tag: 'ds-banner' | 'ds-alert', section: 'banner' | 'alert', state: () => AnnounceState): void;
|
|
477
|
+
|
|
478
|
+
type DsIntlStepState = 'error' | 'completed' | 'current' | 'upcoming';
|
|
479
|
+
type DsIntlSortDirection = 'asc' | 'desc' | null;
|
|
480
|
+
/** Every string the library invents, grouped by the component that renders it. A function member
|
|
481
|
+
* receives the parts that vary and returns the whole phrase, so word order is the translator's. */
|
|
482
|
+
interface DsIntl {
|
|
483
|
+
readonly field: {
|
|
484
|
+
/** `'(optional)'` - input, textarea, select, multi-select, autocomplete, date-picker, time-picker. */
|
|
485
|
+
readonly optional: string;
|
|
486
|
+
/** `'Clear input'` - input. */
|
|
487
|
+
readonly clearInput: string;
|
|
488
|
+
/** `'Show password'` - input. */
|
|
489
|
+
readonly showPassword: string;
|
|
490
|
+
/** `'Hide password'` - input. */
|
|
491
|
+
readonly hidePassword: string;
|
|
492
|
+
};
|
|
493
|
+
readonly picker: {
|
|
494
|
+
/** `'Select…'` - autocomplete, multi-select `placeholder` default. */
|
|
495
|
+
readonly placeholder: string;
|
|
496
|
+
/** `'Filter…'` - multi-select `searchPlaceholder` default. */
|
|
497
|
+
readonly filterPlaceholder: string;
|
|
498
|
+
/** `'Clear selection'` - autocomplete, multi-select, select. */
|
|
499
|
+
readonly clearSelection: string;
|
|
500
|
+
/** `'No matches'` - autocomplete, multi-select (fallback of `dsEmptyTemplate`). */
|
|
501
|
+
readonly noMatches: string;
|
|
502
|
+
/** `'No options'` - select (fallback of its empty template). */
|
|
503
|
+
readonly noOptions: string;
|
|
504
|
+
/** `'Select all'` - multi-select. */
|
|
505
|
+
readonly selectAll: string;
|
|
506
|
+
/** `` `All of ${group}` `` - multi-select. */
|
|
507
|
+
readonly selectAllInGroup: (group: string) => string;
|
|
508
|
+
/** `` `Create «${query}»` `` - autocomplete (fallback of `dsCreateTemplate`). */
|
|
509
|
+
readonly create: (query: string) => string;
|
|
510
|
+
/** `` `+${count} more` `` - multi-select, autocomplete. */
|
|
511
|
+
readonly moreChips: (count: number) => string;
|
|
512
|
+
/** `` `Remove ${label}` `` - multi-select, autocomplete. */
|
|
513
|
+
readonly removeChip: (label: string) => string;
|
|
514
|
+
/** `'selected'` - multi-select compact trigger badge `countLabel`. */
|
|
515
|
+
readonly selectedNoun: string;
|
|
516
|
+
/** `'No results'` / `'1 result'` / `` `${n} results` `` - picker-announcer.ts. */
|
|
517
|
+
readonly resultCount: (count: number) => string;
|
|
518
|
+
};
|
|
519
|
+
readonly datePicker: {
|
|
520
|
+
readonly placeholder: string;
|
|
521
|
+
readonly openCalendar: string;
|
|
522
|
+
readonly selectMonth: string;
|
|
523
|
+
readonly selectYear: string;
|
|
524
|
+
readonly previousYears: string;
|
|
525
|
+
readonly nextYears: string;
|
|
526
|
+
readonly invalidDate: (mask: string) => string;
|
|
527
|
+
};
|
|
528
|
+
readonly timePicker: {
|
|
529
|
+
/** `'Select time'` - trigger name fallback. */
|
|
530
|
+
readonly selectTime: string;
|
|
531
|
+
readonly rangeStart: (label: string) => string;
|
|
532
|
+
readonly rangeEnd: (label: string) => string;
|
|
533
|
+
readonly clear: string;
|
|
534
|
+
readonly now: string;
|
|
535
|
+
readonly done: string;
|
|
536
|
+
/** `'Time'` - time-columns host group. */
|
|
537
|
+
readonly time: string;
|
|
538
|
+
readonly hours: string;
|
|
539
|
+
readonly minutes: string;
|
|
540
|
+
readonly period: string;
|
|
541
|
+
};
|
|
542
|
+
readonly colorPicker: {
|
|
543
|
+
/** `'Choose colour'` - `ariaLabel` default. */
|
|
544
|
+
readonly label: string;
|
|
545
|
+
readonly saturationBrightness: string;
|
|
546
|
+
readonly hue: string;
|
|
547
|
+
readonly hexValue: string;
|
|
548
|
+
readonly presets: string;
|
|
549
|
+
};
|
|
550
|
+
readonly otpInput: {
|
|
551
|
+
/** `'Verification code'` - `ariaLabel` default. */
|
|
552
|
+
readonly label: string;
|
|
553
|
+
readonly digit: (position: number) => string;
|
|
554
|
+
readonly character: (position: number) => string;
|
|
555
|
+
};
|
|
556
|
+
readonly slider: {
|
|
557
|
+
readonly rangeStart: (label: string) => string;
|
|
558
|
+
readonly rangeEnd: (label: string) => string;
|
|
559
|
+
};
|
|
560
|
+
readonly numberStepper: {
|
|
561
|
+
readonly decrease: string;
|
|
562
|
+
readonly increase: string;
|
|
563
|
+
};
|
|
564
|
+
readonly search: {
|
|
565
|
+
readonly placeholder: string;
|
|
566
|
+
readonly clear: string;
|
|
567
|
+
};
|
|
568
|
+
readonly dropzone: {
|
|
569
|
+
readonly label: string;
|
|
570
|
+
readonly title: string;
|
|
571
|
+
readonly hint: string;
|
|
572
|
+
readonly remove: (fileName: string) => string;
|
|
573
|
+
/** File meta line, keyed by `DropzoneFileState`'s `'uploading' | 'success' | 'error'`. */
|
|
574
|
+
readonly uploading: string;
|
|
575
|
+
readonly success: string;
|
|
576
|
+
readonly error: string;
|
|
577
|
+
};
|
|
578
|
+
readonly passwordRules: {
|
|
579
|
+
readonly pending: string;
|
|
580
|
+
readonly met: string;
|
|
581
|
+
readonly failed: string;
|
|
582
|
+
};
|
|
583
|
+
readonly tag: {
|
|
584
|
+
/** `'Remove'` - `closeLabel` default. */
|
|
585
|
+
readonly remove: string;
|
|
586
|
+
};
|
|
587
|
+
readonly badge: {
|
|
588
|
+
/** `'notifications'` - `countLabel` default. */
|
|
589
|
+
readonly noun: string;
|
|
590
|
+
readonly count: (count: number, noun: string) => string;
|
|
591
|
+
readonly overMax: (max: number, noun: string) => string;
|
|
592
|
+
};
|
|
593
|
+
readonly avatar: {
|
|
594
|
+
readonly online: string;
|
|
595
|
+
readonly offline: string;
|
|
596
|
+
readonly away: string;
|
|
597
|
+
readonly busy: string;
|
|
598
|
+
};
|
|
599
|
+
readonly avatarGroup: {
|
|
600
|
+
readonly more: (count: number) => string;
|
|
601
|
+
};
|
|
602
|
+
readonly descriptionList: {
|
|
603
|
+
readonly copy: string;
|
|
604
|
+
readonly copied: string;
|
|
605
|
+
};
|
|
606
|
+
readonly what3words: {
|
|
607
|
+
readonly copy: (address: string) => string;
|
|
608
|
+
};
|
|
609
|
+
readonly dialog: {
|
|
610
|
+
/** `'Close'` - drawer. */
|
|
611
|
+
readonly close: string;
|
|
612
|
+
/** `'Close dialog'` - modal-card. */
|
|
613
|
+
readonly closeDialog: string;
|
|
614
|
+
/** `'Dismiss'` - alert, banner, toast. */
|
|
615
|
+
readonly dismiss: string;
|
|
616
|
+
/** `'Confirm'` - modal confirm default. */
|
|
617
|
+
readonly confirm: string;
|
|
618
|
+
/** `'Cancel'` - modal confirm default. */
|
|
619
|
+
readonly cancel: string;
|
|
620
|
+
/** `'Type'` - before the bold phrase. */
|
|
621
|
+
readonly typeToConfirmBefore: string;
|
|
622
|
+
/** `'to confirm'` - after it. */
|
|
623
|
+
readonly typeToConfirmAfter: string;
|
|
624
|
+
};
|
|
625
|
+
readonly toast: {
|
|
626
|
+
readonly region: string;
|
|
627
|
+
};
|
|
628
|
+
readonly spinner: {
|
|
629
|
+
readonly label: string;
|
|
630
|
+
};
|
|
631
|
+
readonly breadcrumbs: {
|
|
632
|
+
readonly label: string;
|
|
633
|
+
};
|
|
634
|
+
readonly appLayout: {
|
|
635
|
+
readonly railLabel: string;
|
|
636
|
+
};
|
|
637
|
+
readonly sidenav: {
|
|
638
|
+
readonly expandGroup: (label: string) => string;
|
|
639
|
+
readonly collapseGroup: (label: string) => string;
|
|
640
|
+
};
|
|
641
|
+
readonly sidenavFooter: {
|
|
642
|
+
/** `'Search'` - button, panel label, input label, collapsed button. */
|
|
643
|
+
readonly search: string;
|
|
644
|
+
readonly searchPlaceholder: string;
|
|
645
|
+
readonly clear: string;
|
|
646
|
+
readonly noMatches: (query: string) => string;
|
|
647
|
+
readonly typeToSearch: string;
|
|
648
|
+
readonly alerts: string;
|
|
649
|
+
readonly allCaughtUp: string;
|
|
650
|
+
readonly accountMenu: string;
|
|
651
|
+
readonly account: string;
|
|
652
|
+
readonly signedInAs: (name: string) => string;
|
|
653
|
+
readonly profile: string;
|
|
654
|
+
readonly settings: string;
|
|
655
|
+
readonly help: string;
|
|
656
|
+
readonly signOut: string;
|
|
657
|
+
readonly expand: string;
|
|
658
|
+
readonly collapse: string;
|
|
659
|
+
};
|
|
660
|
+
readonly stepper: {
|
|
661
|
+
readonly label: string;
|
|
662
|
+
readonly step: (position: number, label: string, state: DsIntlStepState) => string;
|
|
663
|
+
};
|
|
664
|
+
readonly tabs: {
|
|
665
|
+
readonly close: (label: string) => string;
|
|
666
|
+
};
|
|
667
|
+
readonly splitButton: {
|
|
668
|
+
readonly menuLabel: string;
|
|
669
|
+
};
|
|
670
|
+
readonly filterBar: {
|
|
671
|
+
readonly more: string;
|
|
672
|
+
readonly panelLabel: string;
|
|
673
|
+
};
|
|
674
|
+
readonly pagination: {
|
|
675
|
+
readonly label: string;
|
|
676
|
+
readonly previous: string;
|
|
677
|
+
readonly next: string;
|
|
678
|
+
readonly page: (page: number) => string;
|
|
679
|
+
/** `` `Showing ${first}–${last} of ${total}` `` - pager AND `ds-table` `rangeAnnouncement`. */
|
|
680
|
+
readonly range: (first: number, last: number, total: number) => string;
|
|
681
|
+
readonly perPage: (size: number) => string;
|
|
682
|
+
readonly rowsPerPage: string;
|
|
683
|
+
};
|
|
684
|
+
readonly table: {
|
|
685
|
+
/** `'Actions'` - utility header. */
|
|
686
|
+
readonly actions: string;
|
|
687
|
+
readonly actionsFor: (row: string) => string;
|
|
688
|
+
readonly filterColumn: (column: string) => string;
|
|
689
|
+
readonly resizeColumn: (column: string) => string;
|
|
690
|
+
readonly narrowColumn: (column: string) => string;
|
|
691
|
+
readonly widenColumn: (column: string) => string;
|
|
692
|
+
readonly fitColumn: (column: string) => string;
|
|
693
|
+
readonly fit: string;
|
|
694
|
+
readonly selectRow: (row: string) => string;
|
|
695
|
+
readonly expandRow: string;
|
|
696
|
+
readonly collapseRow: string;
|
|
697
|
+
/** `'Filter values'` - filter panel label. */
|
|
698
|
+
readonly filterValues: string;
|
|
699
|
+
readonly filterSearch: string;
|
|
700
|
+
readonly emptyValue: string;
|
|
701
|
+
readonly noMatches: string;
|
|
702
|
+
/** `` `${n} selected` `` - filter footer AND bulk bar. */
|
|
703
|
+
readonly selectedCount: (count: number) => string;
|
|
704
|
+
readonly clear: string;
|
|
705
|
+
readonly loading: string;
|
|
706
|
+
/** `sortAnnouncement` default. */
|
|
707
|
+
readonly sorted: (label: string, direction: DsIntlSortDirection) => string;
|
|
708
|
+
readonly rowsExpanded: (count: number) => string;
|
|
709
|
+
readonly selectAllRows: (onThisPage: boolean) => string;
|
|
710
|
+
readonly expandAllRows: (onThisPage: boolean) => string;
|
|
711
|
+
readonly collapseAllRows: (onThisPage: boolean) => string;
|
|
712
|
+
};
|
|
713
|
+
readonly tableColumns: {
|
|
714
|
+
readonly title: string;
|
|
715
|
+
readonly panelLabel: string;
|
|
716
|
+
readonly moveUp: string;
|
|
717
|
+
readonly moveDown: string;
|
|
718
|
+
readonly reset: string;
|
|
719
|
+
readonly trigger: string;
|
|
720
|
+
};
|
|
721
|
+
readonly tableExport: {
|
|
722
|
+
readonly button: string;
|
|
723
|
+
readonly buttonBusy: string;
|
|
724
|
+
readonly preparing: string;
|
|
725
|
+
readonly ready: string;
|
|
726
|
+
readonly failed: string;
|
|
727
|
+
};
|
|
728
|
+
readonly chart: {
|
|
729
|
+
/** Was `DS_CONFIG.chart.emptyText`'s default. */
|
|
730
|
+
readonly empty: string;
|
|
731
|
+
/** Was `DS_CONFIG.chart.errorText`'s default. */
|
|
732
|
+
readonly error: string;
|
|
733
|
+
/** `'Chart'` - accessible-name fallback, 6 charts. */
|
|
734
|
+
readonly title: string;
|
|
735
|
+
/** `'Unpin'` - 5 charts. */
|
|
736
|
+
readonly unpin: string;
|
|
737
|
+
/** `'Data table'` - disclosure summary. */
|
|
738
|
+
readonly dataTable: string;
|
|
739
|
+
readonly dataTableCaption: string;
|
|
740
|
+
readonly legendAll: string;
|
|
741
|
+
readonly legendNone: string;
|
|
742
|
+
readonly labelColumn: string;
|
|
743
|
+
readonly valueColumn: string;
|
|
744
|
+
readonly shareColumn: string;
|
|
745
|
+
readonly seriesColumn: string;
|
|
746
|
+
readonly categoryColumn: string;
|
|
747
|
+
readonly shareOfTotal: (share: string) => string;
|
|
748
|
+
/** `'Other'` - pie `otherLabel` default. */
|
|
749
|
+
readonly other: string;
|
|
750
|
+
/** `'All series are hidden'` - line `noVisibleSeriesText` default. */
|
|
751
|
+
readonly noVisibleSeries: string;
|
|
752
|
+
readonly target: (value: string) => string;
|
|
753
|
+
readonly noted: (notes: readonly string[]) => string;
|
|
754
|
+
readonly noData: (label: string) => string;
|
|
755
|
+
readonly onePoint: (label: string, value: string, at: string) => string;
|
|
756
|
+
readonly range: (label: string, count: number, lowest: string, highest: string) => string;
|
|
757
|
+
readonly trendRisingThroughout: string;
|
|
758
|
+
readonly trendFallingThroughout: string;
|
|
759
|
+
readonly trendRisingOverall: string;
|
|
760
|
+
readonly trendFallingOverall: string;
|
|
761
|
+
readonly trendFlat: string;
|
|
762
|
+
readonly extremes: (highestLabel: string, highest: string, lowestLabel: string, lowest: string) => string;
|
|
763
|
+
readonly tableFollows: string;
|
|
764
|
+
readonly threshold: string;
|
|
765
|
+
readonly thresholdAbove: (name: string, value: string, count: number, total: number) => string;
|
|
766
|
+
readonly thresholdInside: (name: string, low: string, high: string, count: number, total: number) => string;
|
|
767
|
+
readonly funnelCaption: string;
|
|
768
|
+
readonly stageColumn: string;
|
|
769
|
+
readonly percentColumn: string;
|
|
770
|
+
readonly dropColumn: string;
|
|
771
|
+
readonly fellAway: (drop: string) => string;
|
|
772
|
+
readonly noReading: string;
|
|
773
|
+
readonly heatmapTitle: string;
|
|
774
|
+
readonly heatmapSummary: (title: string, rows: number, columns: number, lowest: string, highest: string) => string;
|
|
775
|
+
readonly scatterTitle: string;
|
|
776
|
+
readonly scatterAxis: (axis: string, from: string, to: string) => string;
|
|
777
|
+
readonly scatterSummary: (title: string, count: number, axes: string, dropped: number) => string;
|
|
778
|
+
/** The visible status line while points are thinned out. */
|
|
779
|
+
readonly scatterThinned: (count: number) => string;
|
|
780
|
+
/** `'Waterfall chart'` - name of an empty waterfall. */
|
|
781
|
+
readonly waterfallTitle: string;
|
|
782
|
+
/** `'Waterfall'` - prefix of the spoken summary. */
|
|
783
|
+
readonly waterfallCaption: string;
|
|
784
|
+
readonly increase: string;
|
|
785
|
+
readonly decrease: string;
|
|
786
|
+
readonly total: string;
|
|
787
|
+
readonly stepColumn: string;
|
|
788
|
+
readonly directionColumn: string;
|
|
789
|
+
readonly runningTotalColumn: string;
|
|
790
|
+
readonly endsAt: (value: string) => string;
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
/** What `provideDsIntl` takes: any section, any subset of its keys. */
|
|
794
|
+
type DsIntlOverrides = {
|
|
795
|
+
[Section in keyof DsIntl]?: Partial<DsIntl[Section]>;
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
/** Every string the library invents, as a signal so a language switch re-renders in place.
|
|
799
|
+
* Unprovided, it holds the English defaults. */
|
|
800
|
+
declare const DS_INTL: InjectionToken<Signal<DsIntl>>;
|
|
801
|
+
/** Provide the library's wording.
|
|
802
|
+
*
|
|
803
|
+
* providers: [provideDsIntl({ picker: { selectAll: 'Выбрать все' } })]
|
|
804
|
+
*
|
|
805
|
+
* Pass an object for a fixed language, or a factory returning a signal for a language that
|
|
806
|
+
* changes at runtime; the factory runs in an injection context, so it can inject the app's own
|
|
807
|
+
* language service:
|
|
808
|
+
*
|
|
809
|
+
* provideDsIntl(() => { const language = inject(LanguageService); return computed(() => language.dictionary().ds); })
|
|
810
|
+
*
|
|
811
|
+
* Works at the root, on a `Route` or on a component. A nested call MERGES with the one above it
|
|
812
|
+
* section by section, for the reason given on `provideDsConfig`. Numbers and dates do not come
|
|
813
|
+
* from here: they follow `DsConfig.locale`, then `LOCALE_ID`. */
|
|
814
|
+
declare function provideDsIntl(overrides: DsIntlOverrides | (() => Signal<DsIntlOverrides>)): Provider;
|
|
815
|
+
|
|
816
|
+
/** English wording for every string the library invents. Used unless `provideDsIntl` overrides
|
|
817
|
+
* a section. */
|
|
818
|
+
declare const DS_INTL_DEFAULTS: DsIntl;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* The BCP-47 tag the library formats numbers and dates in: `DsConfig.locale`, then Angular's
|
|
822
|
+
* `LOCALE_ID`. Call from an injection context.
|
|
823
|
+
* @internal
|
|
824
|
+
*/
|
|
825
|
+
declare function injectDsLocale(): string;
|
|
826
|
+
|
|
430
827
|
/**
|
|
431
828
|
* Signal forms binds `min`, `max`, `minLength` and `maxLength` BY NAME and sends
|
|
432
829
|
* `undefined` when the schema sets no bound. The DS spells an absent bound as
|
|
@@ -570,5 +967,5 @@ type DsTriggerDisplay = 'full' | 'count' | 'labels';
|
|
|
570
967
|
*/
|
|
571
968
|
type DsControlWidth = 'fill' | 'content';
|
|
572
969
|
|
|
573
|
-
export { DS_CONFIG, ICONS, backdropDismiss, boundOr, devWarn, firstEnabledIndex, flattenDsOptions, inheritDsConfig, isDsOptionGroup, isTextClipped, isTextEntryTarget, lastEnabledIndex, nextEnabledIndex, optionalBound, provideDsConfig, resolveWithConfig };
|
|
574
|
-
export type { CardElevation, CardPadding, ChartAxis, ChartAxisMode, ChartCurve, ChartDataTable, ChartFormatLocation, ChartFrame, ChartGaps, ChartStackMode, ChartThreshold, ChartThresholdDash, ChartValueFormat, DsConfig, DsControlWidth, DsOption, DsOptionGroup, DsOptionItem, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsToastHorizontalPosition, DsToastPosition, DsToastVerticalPosition, DsTriggerDisplay, IconName, PaginationLayout };
|
|
970
|
+
export { DS_CONFIG, DS_INTL, DS_INTL_DEFAULTS, ICONS, backdropDismiss, boundOr, devWarn, firstEnabledIndex, flattenDsOptions, inheritDsConfig, injectDsLocale, isDsOptionGroup, isTextClipped, isTextEntryTarget, lastEnabledIndex, nextEnabledIndex, optionalBound, provideDsConfig, provideDsIntl, resolveWithConfig, warnAnnounceOversight };
|
|
971
|
+
export type { AnnounceState, CardElevation, CardPadding, ChartAxis, ChartAxisMode, ChartCurve, ChartDataTable, ChartFormatLocation, ChartFrame, ChartGaps, ChartRendering, ChartStackMode, ChartThreshold, ChartThresholdDash, ChartValueFormat, DsConfig, DsControlWidth, DsIntl, DsIntlOverrides, DsIntlSortDirection, DsIntlStepState, DsOption, DsOptionGroup, DsOptionItem, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsToastHorizontalPosition, DsToastPosition, DsToastVerticalPosition, DsTriggerDisplay, IconName, PaginationLayout };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DS_FIELD_WARNING_KIND, DsAriaCurrent, DsChipTemplateDirective, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldError, DsFieldErrorsInput, DsGroupLabelTemplateDirective, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsRouterLink, DsStaticPreview, FieldClickFocusDirective } from '@ids-group-ltd/ids-design-system/components';
|
|
2
|
-
export { ACCORDION, AccordionComponent, AccordionContract, AccordionItemComponent, AccordionItemRef } from '@ids-group-ltd/ids-design-system/components/accordion';
|
|
2
|
+
export { ACCORDION, AccordionChevron, AccordionComponent, AccordionContract, AccordionItemComponent, AccordionItemRef } from '@ids-group-ltd/ids-design-system/components/accordion';
|
|
3
3
|
export { AlertComponent, AlertVariant } from '@ids-group-ltd/ids-design-system/components/alert';
|
|
4
4
|
export { AppLayoutComponent, AppLayoutNavigationService, AppLayoutScrollService, DsAppLayoutScrollReset, RailTriggerDirective } from '@ids-group-ltd/ids-design-system/components/app-layout';
|
|
5
5
|
export { AuthLayoutComponent } from '@ids-group-ltd/ids-design-system/components/auth-layout';
|
|
@@ -81,7 +81,7 @@ export { TopBarComponent } from '@ids-group-ltd/ids-design-system/components/top
|
|
|
81
81
|
export { TreeComponent, TreeNode } from '@ids-group-ltd/ids-design-system/components/tree';
|
|
82
82
|
export { W3wComponent } from '@ids-group-ltd/ids-design-system/components/w3w';
|
|
83
83
|
export { WaterfallChartBar, WaterfallChartComponent, WaterfallChartKind } from '@ids-group-ltd/ids-design-system/components/waterfall-chart';
|
|
84
|
-
export { ChartAxis, ChartAxisMode, ChartCurve, ChartDataTable, ChartFormatLocation, ChartFrame, ChartGaps, ChartStackMode, ChartThreshold, ChartThresholdDash, ChartValueFormat, DS_CONFIG, DsConfig, DsControlWidth, DsOption, DsOptionGroup, DsOptionItem, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsTriggerDisplay, ICONS, IconName, flattenDsOptions, inheritDsConfig, isDsOptionGroup, isTextClipped, provideDsConfig } from '@ids-group-ltd/ids-design-system/core';
|
|
84
|
+
export { AnnounceState, ChartAxis, ChartAxisMode, ChartCurve, ChartDataTable, ChartFormatLocation, ChartFrame, ChartGaps, ChartRendering, ChartStackMode, ChartThreshold, ChartThresholdDash, ChartValueFormat, DS_CONFIG, DS_INTL, DS_INTL_DEFAULTS, DsConfig, DsControlWidth, DsIntl, DsIntlOverrides, DsIntlSortDirection, DsIntlStepState, DsOption, DsOptionGroup, DsOptionItem, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsTriggerDisplay, ICONS, IconName, flattenDsOptions, inheritDsConfig, isDsOptionGroup, isTextClipped, provideDsConfig, provideDsIntl } from '@ids-group-ltd/ids-design-system/core';
|
|
85
85
|
export { DS_ICON_REGISTRY, DsIconRegistry, IconComponent, provideDsIcons } from '@ids-group-ltd/ids-design-system/icons';
|
|
86
86
|
export { BodyScrollLockService, DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';
|
|
87
87
|
export { DsThemeOptions, provideDsTheme } from '@ids-group-ltd/ids-design-system/theme';
|