@ids-group-ltd/ids-design-system 0.14.0 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +573 -4
- package/components.md +103 -62
- package/design-system.md +2 -0
- package/docs/agent/INDEX.md +5 -4
- package/docs/agent/charts/column-series-component.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +4 -3
- package/docs/agent/charts/ds-chart.md +1 -1
- package/docs/agent/charts/ds-column-chart.md +3 -3
- package/docs/agent/charts/ds-config.md +3 -1
- package/docs/agent/charts/ds-funnel-chart.md +3 -3
- package/docs/agent/charts/ds-heatmap-chart.md +1 -1
- package/docs/agent/charts/ds-line-chart.md +3 -3
- package/docs/agent/charts/ds-pie-chart.md +5 -4
- package/docs/agent/charts/ds-scatter-chart.md +1 -1
- package/docs/agent/charts/ds-waterfall-chart.md +1 -1
- package/docs/agent/charts/line-series-component.md +1 -1
- package/docs/agent/feedback/ds-alert.md +1 -0
- package/docs/agent/feedback/ds-badge.md +1 -1
- package/docs/agent/feedback/ds-banner.md +1 -0
- package/docs/agent/feedback/ds-description-list.md +3 -0
- package/docs/agent/feedback/ds-skeleton.md +2 -2
- package/docs/agent/feedback/ds-tag.md +1 -1
- package/docs/agent/forms/ds-autocomplete.md +2 -2
- package/docs/agent/forms/ds-button.md +1 -1
- package/docs/agent/forms/ds-color-picker.md +1 -1
- package/docs/agent/forms/ds-date-picker.md +2 -2
- package/docs/agent/forms/ds-filter-bar.md +1 -1
- package/docs/agent/forms/ds-icon-button.md +1 -1
- package/docs/agent/forms/ds-input.md +1 -1
- package/docs/agent/forms/ds-multi-select.md +2 -2
- package/docs/agent/forms/ds-otp-input.md +1 -1
- package/docs/agent/forms/ds-search.md +2 -2
- package/docs/agent/forms/ds-split-button.md +1 -1
- package/docs/agent/forms/ds-textarea.md +2 -2
- package/docs/agent/foundations/tokens.md +1 -1
- package/docs/agent/navigation/ds-app-layout.md +2 -2
- package/docs/agent/navigation/ds-auth-layout.md +4 -4
- package/docs/agent/navigation/ds-page-header.md +1 -1
- package/docs/agent/navigation/ds-pagination.md +1 -1
- package/docs/agent/navigation/ds-tabs.md +1 -0
- package/docs/agent/overlays/ds-tooltip.md +3 -3
- package/docs/agent/platform/ds-config.md +2 -3
- package/docs/agent/platform/ds-intl.md +33 -0
- package/docs/agent/surfaces/ds-accordion.md +2 -2
- package/docs/agent/tables/ds-table.md +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +9 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +21 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +9 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +8 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +15 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +5 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +12 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +21 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +53 -30
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +7 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +4 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +20 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +198 -44
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +248 -142
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +9 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -25
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +16 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +12 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +13 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +64 -43
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +56 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +5 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +32 -29
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +26 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +17 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +13 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +15 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +12 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +62 -25
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +49 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +6 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +20 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +6 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +16 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +48 -22
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +68 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +9 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +63 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +12 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +8 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +78 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +36 -21
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +355 -81
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +362 -3
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.10.0.json +1 -1
- package/migrations/0.10.1.json +1 -1
- package/migrations/0.14.0.json +28 -4
- package/migrations/0.14.1.json +856 -0
- package/migrations/0.14.2.json +427 -0
- package/package.json +1 -1
- package/schematics/check-overrides/index.cjs +56 -0
- package/schematics/check-overrides/scan.cjs +74 -0
- package/schematics/check-overrides/schema.json +19 -0
- package/schematics/check-overrides/surface.json +2333 -0
- package/schematics/collection.json +5 -0
- package/styles/_chart-frame.scss +34 -12
- package/styles/_chart-interactive.scss +43 -9
- package/styles/_chart-motion.scss +139 -16
- package/styles/_field-box.scss +12 -0
- package/styles/_overlay-motion.scss +12 -4
- package/styles/_tokens-charts.scss +1 -1
- package/styles/_tokens.scss +19 -4
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +11 -2
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +4 -0
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +5 -2
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +5 -5
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +7 -4
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +5 -3
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -0
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +41 -19
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +8 -1
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +34 -6
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +189 -121
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +17 -17
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +9 -3
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +9 -4
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +34 -20
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +36 -7
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +21 -18
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +11 -6
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +41 -17
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +28 -7
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +7 -3
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +3 -2
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +5 -1
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +6 -4
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +5 -2
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +15 -6
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +15 -2
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +24 -4
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +10 -1
- package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +18 -7
- package/types/ids-group-ltd-ids-design-system-components.d.ts +75 -25
- package/types/ids-group-ltd-ids-design-system-core.d.ts +421 -11
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectionToken, inject, computed, isDevMode, effect } from '@angular/core';
|
|
1
|
+
import { InjectionToken, inject, computed, isDevMode, effect, signal, LOCALE_ID } from '@angular/core';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Dismiss-on-backdrop for a backdrop that WRAPS its dialog.
|
|
@@ -62,8 +62,11 @@ function inheritDsConfig(config) {
|
|
|
62
62
|
function mergeDsConfig(parent, own) {
|
|
63
63
|
const merged = { ...parent };
|
|
64
64
|
for (const section of Object.keys(own)) {
|
|
65
|
+
const value = own[section];
|
|
65
66
|
Object.assign(merged, {
|
|
66
|
-
[section]:
|
|
67
|
+
[section]: typeof value === 'object' && value !== null
|
|
68
|
+
? { ...parent[section], ...value }
|
|
69
|
+
: value,
|
|
67
70
|
});
|
|
68
71
|
}
|
|
69
72
|
return merged;
|
|
@@ -117,6 +120,362 @@ function devWarn(message) {
|
|
|
117
120
|
});
|
|
118
121
|
}
|
|
119
122
|
|
|
123
|
+
/**
|
|
124
|
+
* The two ways `announce` on `ds-banner` / `ds-alert` goes wrong without anyone deciding it. An
|
|
125
|
+
* assertive element left unbound while the app has not set `DS_CONFIG.<section>.announce` is one a
|
|
126
|
+
* screen reader will not hear; a polite one that announces only because that key is `true` is
|
|
127
|
+
* nearly always page furniture written after the key was adopted. Each warns once per instance,
|
|
128
|
+
* in dev mode only; the caller wraps the call in the `typeof ngDevMode` guard (see `devWarn`).
|
|
129
|
+
* Must be called from an injection context.
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
function warnAnnounceOversight(tag, section, state) {
|
|
133
|
+
const configured = inject(DS_CONFIG)[section]?.announce;
|
|
134
|
+
devWarn(() => {
|
|
135
|
+
const { variant, title, assertive, announce } = state();
|
|
136
|
+
if (announce !== null) {
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
const element = `[${tag}] variant="${variant}"${title ? ` title="${title}"` : ''}`;
|
|
140
|
+
if (assertive && configured === undefined) {
|
|
141
|
+
return `${element} is not announced, so a screen reader will not hear it. Decide once for the app with provideDsConfig({ ${section}: { announce: true } }) and bind [announce]="false" on page furniture; this warning ends once the key is set, true or false.`;
|
|
142
|
+
}
|
|
143
|
+
if (!assertive && configured === true) {
|
|
144
|
+
return `${element} announces because DS_CONFIG.${section}.announce is true, not because this element asked to. Bind [announce]="false" if it is page furniture, or [announce]="true" to keep it announced on purpose.`;
|
|
145
|
+
}
|
|
146
|
+
return null;
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** English wording for every string the library invents. Used unless `provideDsIntl` overrides
|
|
151
|
+
* a section. */
|
|
152
|
+
const DS_INTL_DEFAULTS = {
|
|
153
|
+
field: {
|
|
154
|
+
optional: '(optional)',
|
|
155
|
+
clearInput: 'Clear input',
|
|
156
|
+
showPassword: 'Show password',
|
|
157
|
+
hidePassword: 'Hide password',
|
|
158
|
+
overLimit: (excess) => excess === 1
|
|
159
|
+
? '1 character over the limit'
|
|
160
|
+
: `${excess} characters over the limit`,
|
|
161
|
+
},
|
|
162
|
+
picker: {
|
|
163
|
+
placeholder: 'Select…',
|
|
164
|
+
filterPlaceholder: 'Filter…',
|
|
165
|
+
clearSelection: 'Clear selection',
|
|
166
|
+
noMatches: 'No matches',
|
|
167
|
+
noOptions: 'No options',
|
|
168
|
+
selectAll: 'Select all',
|
|
169
|
+
selectAllInGroup: (group) => `All of ${group}`,
|
|
170
|
+
create: (query) => `Create «${query}»`,
|
|
171
|
+
moreChips: (count) => `+${count} more`,
|
|
172
|
+
removeChip: (label) => `Remove ${label}`,
|
|
173
|
+
selectedNoun: 'selected',
|
|
174
|
+
resultCount: (count) => count === 0
|
|
175
|
+
? 'No results'
|
|
176
|
+
: count === 1
|
|
177
|
+
? '1 result'
|
|
178
|
+
: `${count} results`,
|
|
179
|
+
},
|
|
180
|
+
datePicker: {
|
|
181
|
+
placeholder: 'Select date',
|
|
182
|
+
openCalendar: 'Choose date',
|
|
183
|
+
selectMonth: 'Select month',
|
|
184
|
+
selectYear: 'Select year',
|
|
185
|
+
previousYears: 'Previous years',
|
|
186
|
+
nextYears: 'Next years',
|
|
187
|
+
invalidDate: (mask) => `Enter a valid date (${mask})`,
|
|
188
|
+
},
|
|
189
|
+
timePicker: {
|
|
190
|
+
selectTime: 'Select time',
|
|
191
|
+
rangeStart: (label) => `${label} (from)`,
|
|
192
|
+
rangeEnd: (label) => `${label} (to)`,
|
|
193
|
+
clear: 'Clear',
|
|
194
|
+
now: 'Now',
|
|
195
|
+
done: 'Done',
|
|
196
|
+
time: 'Time',
|
|
197
|
+
hours: 'Hours',
|
|
198
|
+
minutes: 'Minutes',
|
|
199
|
+
period: 'AM/PM',
|
|
200
|
+
},
|
|
201
|
+
colorPicker: {
|
|
202
|
+
label: 'Choose colour',
|
|
203
|
+
saturationBrightness: 'Saturation and brightness — use arrow keys to adjust',
|
|
204
|
+
hue: 'Hue',
|
|
205
|
+
hexValue: 'Hex colour value',
|
|
206
|
+
presets: 'Preset colours',
|
|
207
|
+
},
|
|
208
|
+
otpInput: {
|
|
209
|
+
label: 'Verification code',
|
|
210
|
+
digit: (position) => `Digit ${position}`,
|
|
211
|
+
character: (position) => `Character ${position}`,
|
|
212
|
+
},
|
|
213
|
+
slider: {
|
|
214
|
+
rangeStart: (label) => (label ? `${label} minimum` : 'Minimum'),
|
|
215
|
+
rangeEnd: (label) => (label ? `${label} maximum` : 'Maximum'),
|
|
216
|
+
},
|
|
217
|
+
numberStepper: {
|
|
218
|
+
decrease: 'Decrease',
|
|
219
|
+
increase: 'Increase',
|
|
220
|
+
},
|
|
221
|
+
search: {
|
|
222
|
+
placeholder: 'Search',
|
|
223
|
+
clear: 'Clear search',
|
|
224
|
+
},
|
|
225
|
+
dropzone: {
|
|
226
|
+
label: 'Upload files',
|
|
227
|
+
title: 'Drop files here',
|
|
228
|
+
hint: 'or click to browse',
|
|
229
|
+
remove: (fileName) => `Remove ${fileName}`,
|
|
230
|
+
uploading: 'uploading',
|
|
231
|
+
success: 'success',
|
|
232
|
+
error: 'error',
|
|
233
|
+
},
|
|
234
|
+
passwordRules: {
|
|
235
|
+
pending: 'not yet met',
|
|
236
|
+
met: 'met',
|
|
237
|
+
failed: 'not met',
|
|
238
|
+
},
|
|
239
|
+
tag: {
|
|
240
|
+
remove: 'Remove',
|
|
241
|
+
},
|
|
242
|
+
badge: {
|
|
243
|
+
noun: 'notifications',
|
|
244
|
+
count: (count, noun) => `${count} ${noun}`,
|
|
245
|
+
overMax: (max, noun) => `More than ${max} ${noun}`,
|
|
246
|
+
},
|
|
247
|
+
avatar: {
|
|
248
|
+
online: 'Online',
|
|
249
|
+
offline: 'Offline',
|
|
250
|
+
away: 'Away',
|
|
251
|
+
busy: 'Busy',
|
|
252
|
+
},
|
|
253
|
+
avatarGroup: {
|
|
254
|
+
more: (count) => `${count} more`,
|
|
255
|
+
},
|
|
256
|
+
descriptionList: {
|
|
257
|
+
copy: 'Copy value',
|
|
258
|
+
copied: 'Copied',
|
|
259
|
+
},
|
|
260
|
+
what3words: {
|
|
261
|
+
copy: (address) => `Copy what3words address ${address}`,
|
|
262
|
+
},
|
|
263
|
+
dialog: {
|
|
264
|
+
close: 'Close',
|
|
265
|
+
closeDialog: 'Close dialog',
|
|
266
|
+
dismiss: 'Dismiss',
|
|
267
|
+
confirm: 'Confirm',
|
|
268
|
+
cancel: 'Cancel',
|
|
269
|
+
typeToConfirmBefore: 'Type',
|
|
270
|
+
typeToConfirmAfter: 'to confirm',
|
|
271
|
+
},
|
|
272
|
+
toast: {
|
|
273
|
+
region: 'Notifications',
|
|
274
|
+
},
|
|
275
|
+
spinner: {
|
|
276
|
+
label: 'Loading',
|
|
277
|
+
},
|
|
278
|
+
breadcrumbs: {
|
|
279
|
+
label: 'Breadcrumb',
|
|
280
|
+
},
|
|
281
|
+
appLayout: {
|
|
282
|
+
railLabel: 'Navigation',
|
|
283
|
+
},
|
|
284
|
+
sidenav: {
|
|
285
|
+
expandGroup: (label) => `Expand ${label}`,
|
|
286
|
+
collapseGroup: (label) => `Collapse ${label}`,
|
|
287
|
+
},
|
|
288
|
+
sidenavFooter: {
|
|
289
|
+
search: 'Search',
|
|
290
|
+
searchPlaceholder: 'Search…',
|
|
291
|
+
clear: 'Clear',
|
|
292
|
+
noMatches: (query) => `No matches for “${query}”.`,
|
|
293
|
+
typeToSearch: 'Type to search.',
|
|
294
|
+
alerts: 'Alerts',
|
|
295
|
+
allCaughtUp: 'You’re all caught up.',
|
|
296
|
+
accountMenu: 'Account menu',
|
|
297
|
+
account: 'Account',
|
|
298
|
+
signedInAs: (name) => `Signed in as ${name}`,
|
|
299
|
+
profile: 'Your profile',
|
|
300
|
+
settings: 'Account settings',
|
|
301
|
+
help: 'Help & support',
|
|
302
|
+
signOut: 'Sign out',
|
|
303
|
+
expand: 'Expand',
|
|
304
|
+
collapse: 'Collapse',
|
|
305
|
+
},
|
|
306
|
+
stepper: {
|
|
307
|
+
label: 'Progress',
|
|
308
|
+
step: (position, label, state) => `Step ${position}: ${label} (${state})`,
|
|
309
|
+
},
|
|
310
|
+
tabs: {
|
|
311
|
+
close: (label) => `Close ${label}`,
|
|
312
|
+
},
|
|
313
|
+
splitButton: {
|
|
314
|
+
menuLabel: 'More actions',
|
|
315
|
+
},
|
|
316
|
+
filterBar: {
|
|
317
|
+
more: 'more',
|
|
318
|
+
panelLabel: 'More filters',
|
|
319
|
+
},
|
|
320
|
+
pagination: {
|
|
321
|
+
label: 'Pagination',
|
|
322
|
+
previous: 'Previous page',
|
|
323
|
+
next: 'Next page',
|
|
324
|
+
page: (page) => `Page ${page}`,
|
|
325
|
+
range: (first, last, total) => total === 0 ? 'Showing 0 of 0' : `Showing ${first}–${last} of ${total}`,
|
|
326
|
+
perPage: (size) => `${size} per page`,
|
|
327
|
+
rowsPerPage: 'Rows per page',
|
|
328
|
+
},
|
|
329
|
+
table: {
|
|
330
|
+
actions: 'Actions',
|
|
331
|
+
actionsFor: (row) => `Actions for ${row}`,
|
|
332
|
+
filterColumn: (column) => `Filter ${column}`,
|
|
333
|
+
resizeColumn: (column) => `Resize ${column}`,
|
|
334
|
+
narrowColumn: (column) => `Narrow ${column}`,
|
|
335
|
+
widenColumn: (column) => `Widen ${column}`,
|
|
336
|
+
fitColumn: (column) => `Fit ${column} to its content`,
|
|
337
|
+
fit: 'Fit',
|
|
338
|
+
selectRow: (row) => `Select ${row}`,
|
|
339
|
+
expandRow: 'Expand row',
|
|
340
|
+
collapseRow: 'Collapse row',
|
|
341
|
+
filterValues: 'Filter values',
|
|
342
|
+
filterSearch: 'Search…',
|
|
343
|
+
emptyValue: '(empty)',
|
|
344
|
+
noMatches: 'No matches',
|
|
345
|
+
selectedCount: (count) => `${count} selected`,
|
|
346
|
+
clear: 'Clear',
|
|
347
|
+
loading: 'Loading…',
|
|
348
|
+
sorted: (label, direction) => direction
|
|
349
|
+
? `Sorted by ${label}, ${direction === 'asc' ? 'ascending' : 'descending'}`
|
|
350
|
+
: 'Sorting cleared',
|
|
351
|
+
rowsExpanded: (count) => `${count} rows expanded`,
|
|
352
|
+
selectAllRows: (onThisPage) => onThisPage ? 'Select all rows on this page' : 'Select all rows',
|
|
353
|
+
expandAllRows: (onThisPage) => `Expand all rows${onThisPage ? ' on this page' : ''}`,
|
|
354
|
+
collapseAllRows: (onThisPage) => `Collapse all rows${onThisPage ? ' on this page' : ''}`,
|
|
355
|
+
},
|
|
356
|
+
tableColumns: {
|
|
357
|
+
title: 'Columns',
|
|
358
|
+
panelLabel: 'Column visibility',
|
|
359
|
+
moveUp: 'Move up',
|
|
360
|
+
moveDown: 'Move down',
|
|
361
|
+
reset: 'Reset to default',
|
|
362
|
+
trigger: 'Choose columns',
|
|
363
|
+
},
|
|
364
|
+
tableExport: {
|
|
365
|
+
button: 'Export CSV',
|
|
366
|
+
buttonBusy: 'Preparing…',
|
|
367
|
+
preparing: 'Preparing export…',
|
|
368
|
+
ready: 'Export ready',
|
|
369
|
+
failed: 'Export failed',
|
|
370
|
+
},
|
|
371
|
+
chart: {
|
|
372
|
+
empty: 'No data',
|
|
373
|
+
error: 'Could not load the data',
|
|
374
|
+
title: 'Chart',
|
|
375
|
+
unpin: 'Unpin',
|
|
376
|
+
dataTable: 'Data table',
|
|
377
|
+
dataTableCaption: 'Chart data',
|
|
378
|
+
legendAll: 'All',
|
|
379
|
+
legendNone: 'None',
|
|
380
|
+
labelColumn: 'Label',
|
|
381
|
+
valueColumn: 'Value',
|
|
382
|
+
shareColumn: 'Share of total',
|
|
383
|
+
seriesColumn: 'Series',
|
|
384
|
+
categoryColumn: 'Category',
|
|
385
|
+
shareOfTotal: (share) => `${share} of total`,
|
|
386
|
+
other: 'Other',
|
|
387
|
+
noVisibleSeries: 'All series are hidden',
|
|
388
|
+
target: (value) => `Target ${value}`,
|
|
389
|
+
noted: (notes) => `Noted: ${notes.join('; ')}.`,
|
|
390
|
+
noData: (label) => `${label}. No data.`,
|
|
391
|
+
onePoint: (label, value, at) => `${label}, one point: ${value} at ${at}.`,
|
|
392
|
+
range: (label, count, lowest, highest) => `${label}, ${count} points, ${lowest} to ${highest}.`,
|
|
393
|
+
trendRisingThroughout: 'Rising throughout',
|
|
394
|
+
trendFallingThroughout: 'Falling throughout',
|
|
395
|
+
trendRisingOverall: 'Rising overall',
|
|
396
|
+
trendFallingOverall: 'Falling overall',
|
|
397
|
+
trendFlat: 'Ending where it started',
|
|
398
|
+
extremes: (highestLabel, highest, lowestLabel, lowest) => `Highest in ${highestLabel} at ${highest}, lowest in ${lowestLabel} at ${lowest}.`,
|
|
399
|
+
tableFollows: 'Full values in the table below.',
|
|
400
|
+
threshold: 'Threshold',
|
|
401
|
+
thresholdAbove: (name, value, count, total) => `${name} at ${value}, ${count} of ${total} ${total === 1 ? 'point' : 'points'} above.`,
|
|
402
|
+
thresholdInside: (name, low, high, count, total) => `${name} from ${low} to ${high}, ${count} of ${total} ${total === 1 ? 'point' : 'points'} inside.`,
|
|
403
|
+
funnelCaption: 'Each stage as a percentage of the first, and the drop from the stage above it.',
|
|
404
|
+
stageColumn: 'Stage',
|
|
405
|
+
percentColumn: 'Percent',
|
|
406
|
+
dropColumn: 'Drop',
|
|
407
|
+
fellAway: (drop) => `${drop} fell away since the stage above`,
|
|
408
|
+
noReading: 'No reading',
|
|
409
|
+
heatmapTitle: 'Heat map',
|
|
410
|
+
heatmapSummary: (title, rows, columns, lowest, highest) => `${title}, ${rows} rows by ${columns} columns, readings from ${lowest} to ${highest}.`,
|
|
411
|
+
scatterTitle: 'Scatter chart',
|
|
412
|
+
scatterAxis: (axis, from, to) => `${axis} from ${from} to ${to}`,
|
|
413
|
+
scatterSummary: (title, count, axes, dropped) => `${title}: ${count} readings drawn, ${axes}.${dropped > 0
|
|
414
|
+
? ` ${dropped} further readings were thinned out to keep the plot drawable; the data table lists every one.`
|
|
415
|
+
: ''}`,
|
|
416
|
+
scatterThinned: (count) => `${count} readings thinned out to keep the plot drawable - every one is in the data table.`,
|
|
417
|
+
waterfallTitle: 'Waterfall chart',
|
|
418
|
+
waterfallCaption: 'Waterfall',
|
|
419
|
+
increase: 'increase',
|
|
420
|
+
decrease: 'decrease',
|
|
421
|
+
total: 'total',
|
|
422
|
+
stepColumn: 'Step',
|
|
423
|
+
directionColumn: 'Direction',
|
|
424
|
+
runningTotalColumn: 'Running total',
|
|
425
|
+
endsAt: (value) => `Ends at ${value}.`,
|
|
426
|
+
},
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
const DEFAULTS = signal(DS_INTL_DEFAULTS).asReadonly();
|
|
430
|
+
/** Every string the library invents, as a signal so a language switch re-renders in place.
|
|
431
|
+
* Unprovided, it holds the English defaults. */
|
|
432
|
+
const DS_INTL = new InjectionToken('DS_INTL', {
|
|
433
|
+
factory: () => DEFAULTS,
|
|
434
|
+
});
|
|
435
|
+
/** Provide the library's wording.
|
|
436
|
+
*
|
|
437
|
+
* providers: [provideDsIntl({ picker: { selectAll: 'Выбрать все' } })]
|
|
438
|
+
*
|
|
439
|
+
* Pass an object for a fixed language, or a factory returning a signal for a language that
|
|
440
|
+
* changes at runtime; the factory runs in an injection context, so it can inject the app's own
|
|
441
|
+
* language service:
|
|
442
|
+
*
|
|
443
|
+
* provideDsIntl(() => { const language = inject(LanguageService); return computed(() => language.dictionary().ds); })
|
|
444
|
+
*
|
|
445
|
+
* Works at the root, on a `Route` or on a component. A nested call MERGES with the one above it
|
|
446
|
+
* section by section, for the reason given on `provideDsConfig`. Numbers and dates do not come
|
|
447
|
+
* from here: they follow `DsConfig.locale`, then `LOCALE_ID`. */
|
|
448
|
+
function provideDsIntl(overrides) {
|
|
449
|
+
return {
|
|
450
|
+
provide: DS_INTL,
|
|
451
|
+
useFactory: () => {
|
|
452
|
+
const parent = inject(DS_INTL, { skipSelf: true, optional: true }) ?? DEFAULTS;
|
|
453
|
+
const own = typeof overrides === 'function'
|
|
454
|
+
? overrides()
|
|
455
|
+
: signal(overrides).asReadonly();
|
|
456
|
+
return computed(() => mergeDsIntl(parent(), own()));
|
|
457
|
+
},
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
function mergeDsIntl(parent, own) {
|
|
461
|
+
const merged = { ...parent };
|
|
462
|
+
for (const section of Object.keys(own)) {
|
|
463
|
+
Object.assign(merged, {
|
|
464
|
+
[section]: { ...parent[section], ...own[section] },
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
return merged;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* The BCP-47 tag the library formats numbers and dates in: `DsConfig.locale`, then Angular's
|
|
472
|
+
* `LOCALE_ID`. Call from an injection context.
|
|
473
|
+
* @internal
|
|
474
|
+
*/
|
|
475
|
+
function injectDsLocale() {
|
|
476
|
+
return inject(DS_CONFIG).locale ?? inject(LOCALE_ID);
|
|
477
|
+
}
|
|
478
|
+
|
|
120
479
|
/**
|
|
121
480
|
* Signal forms binds `min`, `max`, `minLength` and `maxLength` BY NAME and sends
|
|
122
481
|
* `undefined` when the schema sets no bound. The DS spells an absent bound as
|
|
@@ -344,5 +703,5 @@ function flattenDsOptions(items) {
|
|
|
344
703
|
* Generated bundle index. Do not edit.
|
|
345
704
|
*/
|
|
346
705
|
|
|
347
|
-
export { DS_CONFIG, ICONS, backdropDismiss, boundOr, devWarn, firstEnabledIndex, flattenDsOptions, inheritDsConfig, isDsOptionGroup, isTextClipped, isTextEntryTarget, lastEnabledIndex, nextEnabledIndex, optionalBound, provideDsConfig, resolveWithConfig };
|
|
706
|
+
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 };
|
|
348
707
|
//# sourceMappingURL=ids-group-ltd-ids-design-system-core.mjs.map
|