@ids-group-ltd/ids-design-system 0.13.1 → 0.13.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +361 -0
  2. package/components.md +17 -5
  3. package/docs/agent/INDEX.md +1 -0
  4. package/docs/agent/charts/ds-line-chart.md +2 -1
  5. package/docs/agent/feedback/ds-meter.md +11 -0
  6. package/docs/agent/feedback/ds-progress.md +4 -1
  7. package/docs/agent/forms/ds-button.md +1 -1
  8. package/docs/agent/forms/ds-icon-button.md +1 -1
  9. package/docs/agent/surfaces/ds-card.md +1 -1
  10. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +77 -8
  11. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  12. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +3 -0
  13. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  14. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +47 -5
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +141 -22
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +49 -9
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +47 -7
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +74 -8
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +182 -18
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-meter.mjs +61 -0
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-meter.mjs.map +1 -0
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +34 -10
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +71 -13
  31. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -0
  34. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  35. package/migrations/0.13.2.json +269 -0
  36. package/package.json +9 -1
  37. package/styles/_chart-frame.scss +101 -4
  38. package/styles/_chart-interactive.scss +12 -3
  39. package/styles/_overlay-motion.scss +7 -6
  40. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +66 -4
  41. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +1 -0
  42. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +25 -2
  43. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +16 -2
  44. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +34 -3
  45. package/types/ids-group-ltd-ids-design-system-components-donut-chart.d.ts +29 -3
  46. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +46 -3
  47. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +83 -6
  48. package/types/ids-group-ltd-ids-design-system-components-meter.d.ts +36 -0
  49. package/types/ids-group-ltd-ids-design-system-components-progress.d.ts +21 -3
  50. package/types/ids-group-ltd-ids-design-system-components.d.ts +35 -9
  51. package/types/ids-group-ltd-ids-design-system-core.d.ts +19 -3
  52. package/types/ids-group-ltd-ids-design-system.d.ts +5 -4
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-progress.mjs","sources":["../../../src/lib/components/progress/progress.component.ts","../../../src/lib/components/progress/progress.component.html","../../../src/lib/components/progress/ids-group-ltd-ids-design-system-components-progress.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n} from '@angular/core';\nimport type { ProgressVariant } from './progress.types';\n\n@Component({\n selector: 'ds-progress',\n standalone: true,\n imports: [],\n templateUrl: './progress.component.html',\n styleUrl: './progress.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n 'aria-valuemax': '100',\n '[attr.aria-valuenow]': 'isIndet() ? null : clampedValue()',\n '[attr.aria-label]': 'ariaLabel()',\n '[class.success]': \"variant() === 'success'\",\n '[class.warning]': \"variant() === 'warning'\",\n '[class.error]': \"variant() === 'error'\",\n '[class.indeterminate]': 'isIndet()',\n },\n})\nexport class ProgressComponent {\n /** Progress 0–100; clamped, and ignored while `indeterminate`. */\n readonly value = input<number>(0);\n /** Colour variant — drives the success/warning/error styling. */\n readonly variant = input<ProgressVariant>('default');\n /** Indeterminate (unknown-duration) animation instead of a fixed `value`. */\n readonly indeterminate = input(false, { transform: booleanAttribute });\n /** Accessible name for the progress bar (e.g. \"Upload progress\"). */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly clampedValue = computed(() => {\n const value = this.value();\n\n return Math.max(0, Math.min(100, value));\n });\n\n protected readonly isIndet = computed(() => this.indeterminate());\n}\n","@if (isIndet()) {\n <span></span>\n} @else {\n <span [style.width.%]=\"clampedValue()\"></span>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MA4Ba,iBAAiB,CAAA;;AAEnB,IAAA,KAAK,GAAG,KAAK,CAAS,CAAC,4EAAC;;AAExB,IAAA,OAAO,GAAG,KAAK,CAAkB,SAAS,8EAAC;;IAE3C,aAAa,GAAG,KAAK,CAAC,KAAK,qFAAI,SAAS,E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WAAW;AACrC,qBAAA,EAAA,QAAA,EAAA,wGAAA,EAAA,MAAA,EAAA,CAAA,+tCAAA,CAAA,EAAA;;;AE1BH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-progress.mjs","sources":["../../../src/lib/components/progress/progress.component.ts","../../../src/lib/components/progress/progress.component.html","../../../src/lib/components/progress/ids-group-ltd-ids-design-system-components-progress.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n} from '@angular/core';\nimport type { ProgressVariant } from './progress.types';\n\n@Component({\n selector: 'ds-progress',\n standalone: true,\n imports: [],\n templateUrl: './progress.component.html',\n styleUrl: './progress.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[attr.aria-valuemax]': 'scale()',\n '[attr.aria-valuenow]': 'isIndet() ? null : clampedValue()',\n '[attr.aria-label]': 'ariaLabel()',\n '[class.success]': \"variant() === 'success'\",\n '[class.warning]': \"variant() === 'warning'\",\n '[class.error]': \"variant() === 'error'\",\n '[class.indeterminate]': 'isIndet()',\n },\n})\nexport class ProgressComponent {\n /** Progress in units of `max`, so 0–100 by default; clamped, and ignored while\n * `indeterminate`. */\n readonly value = input<number>(0);\n /** The full scale `value` and `target` are read against. Left at 100 they are percentages, which\n * is why nothing existing changes. Set it to the real total — `[value]=\"37\" [max]=\"80\"` — and\n * the accessible name carries \"37 of 80\" rather than the 46% a caller would otherwise have to\n * compute and a screen reader would read instead. Zero or less falls back to 100, because a\n * scale with no width has no fraction to draw. */\n readonly max = input<number>(100);\n /** Colour variant — drives the success/warning/error styling. */\n readonly variant = input<ProgressVariant>('default');\n /** Indeterminate (unknown-duration) animation instead of a fixed `value`. */\n readonly indeterminate = input(false, { transform: booleanAttribute });\n /** Accessible name for the progress bar (e.g. \"Upload progress\"). With a `target` set, name the\n * comparison here — the mark is drawn, and `role=\"progressbar\"` has no second value to announce,\n * so \"Resolved 62% against a 75% target\" is what reaches a screen reader. */\n readonly ariaLabel = input<string | null>(null);\n /** A second point on the same scale as `value`, drawn as a hairline across the track — a goal or\n * a baseline to read `value` against. Clamped like `value`, ignored while `indeterminate`, and\n * unset draws nothing. */\n readonly target = input<number | null>(null);\n\n protected readonly scale = computed(() => {\n const max = this.max();\n\n return max > 0 ? max : 100;\n });\n\n protected readonly clampedValue = computed(() =>\n Math.max(0, Math.min(this.scale(), this.value())),\n );\n\n /** Width and offset are percentages of the track whatever the scale is. */\n protected readonly valuePercent = computed(\n () => (this.clampedValue() / this.scale()) * 100,\n );\n\n protected readonly clampedTarget = computed(() => {\n const target = this.target();\n\n return target == null ? null : Math.max(0, Math.min(this.scale(), target));\n });\n\n protected readonly targetPercent = computed(() => {\n const target = this.clampedTarget();\n\n return target == null ? null : (target / this.scale()) * 100;\n });\n\n protected readonly isIndet = computed(() => this.indeterminate());\n}\n","@if (isIndet()) {\n <span></span>\n} @else {\n <span [style.width.%]=\"valuePercent()\"></span>\n\n @if (targetPercent() !== null) {\n <div\n class=\"target\"\n [style.left.%]=\"targetPercent()\">\n </div>\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MA4Ba,iBAAiB,CAAA;AAC5B;AACuB;AACd,IAAA,KAAK,GAAG,KAAK,CAAS,CAAC,4EAAC;AACjC;;;;AAImD;AAC1C,IAAA,GAAG,GAAG,KAAK,CAAS,GAAG,0EAAC;;AAExB,IAAA,OAAO,GAAG,KAAK,CAAkB,SAAS,8EAAC;;IAE3C,aAAa,GAAG,KAAK,CAAC,KAAK,qFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACtE;;AAE8E;AACrE,IAAA,SAAS,GAAG,KAAK,CAAgB,IAAI,gFAAC;AAC/C;;AAE2B;AAClB,IAAA,MAAM,GAAG,KAAK,CAAgB,IAAI,6EAAC;AAEzB,IAAA,KAAK,GAAG,QAAQ,CAAC,MAAK;AACvC,QAAA,MAAM,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,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,msCC5B9B,4OAYA,EAAA,MAAA,EAAA,CAAA,klDAAA,CAAA,EAAA,CAAA;;4FDgBa,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAnB7B,SAAS;+BACE,aAAa,EAAA,UAAA,EACX,IAAI,EAAA,OAAA,EACP,EAAE,iBAGI,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,IAAI,EAAE,aAAa;AACnB,wBAAA,eAAe,EAAE,GAAG;AACpB,wBAAA,sBAAsB,EAAE,SAAS;AACjC,wBAAA,sBAAsB,EAAE,mCAAmC;AAC3D,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,iBAAiB,EAAE,yBAAyB;AAC5C,wBAAA,iBAAiB,EAAE,yBAAyB;AAC5C,wBAAA,eAAe,EAAE,uBAAuB;AACxC,wBAAA,uBAAuB,EAAE,WAAW;AACrC,qBAAA,EAAA,QAAA,EAAA,4OAAA,EAAA,MAAA,EAAA,CAAA,klDAAA,CAAA,EAAA;;;AE1BH;;AAEG;;;;"}
@@ -149,16 +149,14 @@ function formatTick(value, step) {
149
149
  ? `${Math.round(scaled)}${unit.suffix}`
150
150
  : `${scaled.toFixed(1)}${unit.suffix}`;
151
151
  }
152
- /** One mark's share of the total its siblings add up to.
152
+ /** One mark's share of the total its siblings add up to, as a bare percentage.
153
153
  *
154
- * A single-series category chart prints every mark's own value beside it, so a tooltip repeating
155
- * that number tells the reader nothing they are not already looking at. The share is arithmetic
156
- * the reader should not have to do. Empty for a lone mark, and empty for a reading that is not
154
+ * Empty for a lone mark, which is the whole of its own total, and empty for a reading that is not
157
155
  * part of a total anyone can see: negatives and non-finite values are excluded from the total
158
- * rather than subtracted from it.
156
+ * rather than subtracted from it, so a negative mark has no share rather than a misleading one.
159
157
  *
160
158
  * @internal */
161
- function describeShare(values, index) {
159
+ function shareOfTotal(values, index) {
162
160
  const value = values[index];
163
161
  if (values.length < 2 || !Number.isFinite(value) || value <= 0) {
164
162
  return '';
@@ -166,7 +164,15 @@ function describeShare(values, index) {
166
164
  const total = values
167
165
  .filter((entry) => Number.isFinite(entry) && entry > 0)
168
166
  .reduce((sum, entry) => sum + entry, 0);
169
- return total > 0 ? `${formatPercent(value, total)} of total` : '';
167
+ return total > 0 ? formatPercent(value, total) : '';
168
+ }
169
+ /** The same share, phrased for a tooltip line, where no column header stands above it to say what
170
+ * the percentage is OF.
171
+ *
172
+ * @internal */
173
+ function describeShare(values, index) {
174
+ const share = shareOfTotal(values, index);
175
+ return share ? `${share} of total` : '';
170
176
  }
171
177
 
172
178
  /** Container width as a signal. It is 0 under SSR, while the container is
@@ -232,6 +238,44 @@ function linearScale(domainMax, rangeSize) {
232
238
  }
233
239
  return (value) => (value / domainMax) * rangeSize;
234
240
  }
241
+ /** Positions for marks that sit AT a category rather than inside it — the readings of a line.
242
+ * The first is at the plot's start and the last at its end, so the run fills the axis rather than
243
+ * floating half a slot inside it. A single reading has no run to fill and takes the middle.
244
+ *
245
+ * `step` is the distance between neighbours, which is what a crosshair band is a slot of; at the
246
+ * two ends that slot is half outside the plot and the caller clamps it.
247
+ *
248
+ * @internal */
249
+ function pointScale(count, rangeSize) {
250
+ const total = Number.isFinite(count) && count > 0 ? Math.floor(count) : 0;
251
+ const size = Number.isFinite(rangeSize) && rangeSize > 0 ? rangeSize : 0;
252
+ if (total === 0) {
253
+ return { step: 0, count: 0, position: () => 0, indexAt: () => -1 };
254
+ }
255
+ if (total === 1) {
256
+ return {
257
+ step: size,
258
+ count: 1,
259
+ position: () => size / 2,
260
+ indexAt: () => 0,
261
+ };
262
+ }
263
+ const step = size / (total - 1);
264
+ return {
265
+ step,
266
+ count: total,
267
+ position: (index) => Math.min(Math.max(index, 0), total - 1) * step,
268
+ // Nearest reading, not the slot the pointer is over: with the ends on the axes the first and
269
+ // last slots are half-width, and rounding is what makes both of them reachable.
270
+ indexAt: (offset) => {
271
+ if (!Number.isFinite(offset) || step === 0) {
272
+ return -1;
273
+ }
274
+ const index = Math.round(offset / step);
275
+ return Math.min(Math.max(index, 0), total - 1);
276
+ },
277
+ };
278
+ }
235
279
  /** @internal */
236
280
  function bandScale(count, rangeSize, paddingRatio) {
237
281
  if (count <= 0) {
@@ -546,12 +590,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
546
590
  * whether it was bound. Precedence: the component input, then
547
591
  * `DS_CONFIG.field.reserveMessage`, then `false`.
548
592
  *
593
+ * `appWideDefaultApplies` is read lazily and drops the middle step for a control that
594
+ * is not a form row: `ds-button` renders the same message line but does not sit in a
595
+ * field column, so an app-wide field setting must not give it an empty row.
596
+ *
549
597
  * Call from a field initializer (an injection context), e.g.
550
598
  * `protected readonly reserve = resolveReserveMessage(this.reserveMessage);`
551
599
  */
552
- function resolveReserveMessage(reserveMessage) {
600
+ function resolveReserveMessage(reserveMessage, appWideDefaultApplies = () => true) {
553
601
  const config = inject(DS_CONFIG);
554
- return computed(() => reserveMessage() ?? config.field?.reserveMessage ?? false);
602
+ return computed(() => reserveMessage() ??
603
+ (appWideDefaultApplies()
604
+ ? (config.field?.reserveMessage ?? false)
605
+ : false));
555
606
  }
556
607
 
557
608
  const NO_ERRORS = [];
@@ -785,13 +836,20 @@ class DsMessageBase {
785
836
  /** Advisory text, shown when there is no error. */
786
837
  warning = input('', { ...(ngDevMode ? { debugName: "warning" } : /* istanbul ignore next */ {}), transform: trimmedText });
787
838
  /** Reserve the message-row height even when empty, so the control doesn't shift
788
- * the layout below it when a hint/error appears. Falls back to
789
- * `DS_CONFIG.field.reserveMessage`, then off. */
839
+ * the layout below it when a hint/error appears. What an unset value falls back
840
+ * to is the subclass's call, in `reserveMessageResolved`: a field takes
841
+ * `DS_CONFIG.field.reserveMessage`, a button does not. */
790
842
  reserveMessage = input(null, { ...(ngDevMode ? { debugName: "reserveMessage" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
791
843
  /** Glyph on the message line, overriding what the state resolves to. Unset
792
844
  * follows `DS_CONFIG.field.stateIcons`; `false` removes the glyph here alone. */
793
845
  messageIcon = input(null, ...(ngDevMode ? [{ debugName: "messageIcon" }] : /* istanbul ignore next */ []));
794
- reserveMessageResolved = resolveReserveMessage(this.reserveMessage);
846
+ /** Whether an unset `reserveMessage` falls back to `DS_CONFIG.field.reserveMessage`.
847
+ * True for a field, whose row reserves so its neighbours do not shift; `ds-button`
848
+ * turns it off, because a button is not in that column and an app-wide field
849
+ * setting would otherwise give every button an empty message row. Read lazily, so
850
+ * a subclass initializer running after this one still decides it. */
851
+ reserveFollowsFieldDefault = true;
852
+ reserveMessageResolved = resolveReserveMessage(this.reserveMessage, () => this.reserveFollowsFieldDefault);
795
853
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DsMessageBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
796
854
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: DsMessageBase, isStandalone: true, inputs: { hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, warning: { classPropertyName: "warning", publicName: "warning", isSignal: true, isRequired: false, transformFunction: null }, reserveMessage: { classPropertyName: "reserveMessage", publicName: "reserveMessage", isSignal: true, isRequired: false, transformFunction: null }, messageIcon: { classPropertyName: "messageIcon", publicName: "messageIcon", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
797
855
  }
@@ -1812,5 +1870,5 @@ function createTypeAhead() {
1812
1870
  * Generated bundle index. Do not edit.
1813
1871
  */
1814
1872
 
1815
- export { 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, bandScale, chartColors, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, describeSeries, describeShare, disposeWithLeave, dropdownOverlay, dsAriaCurrent, dsDestination, elementWidth, focusIsInside, focusMark, formatPercent, formatTick, formatValue, forwardOverlayTokens, largestRemainder, linearScale, nextControlId, nextRovingIndex, niceMax, overlayPlacementOf, panelClassesOf, prepareOverlayEnter, resolveBrandValue, resolveFieldMessage, scrollActiveOptionIntoView, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge };
1873
+ export { 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, bandScale, chartColors, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, describeSeries, describeShare, disposeWithLeave, dropdownOverlay, dsAriaCurrent, dsDestination, elementWidth, focusIsInside, focusMark, formatPercent, formatTick, formatValue, forwardOverlayTokens, largestRemainder, linearScale, nextControlId, nextRovingIndex, niceMax, overlayPlacementOf, panelClassesOf, pointScale, prepareOverlayEnter, resolveBrandValue, resolveFieldMessage, scrollActiveOptionIntoView, shareOfTotal, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge };
1816
1874
  //# sourceMappingURL=ids-group-ltd-ids-design-system-components.mjs.map