@ids-group-ltd/ids-design-system 0.15.1 → 0.15.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 (31) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/components.md +3 -3
  3. package/docs/agent/foundations/global-helper-classes.md +1 -1
  4. package/docs/agent/foundations/tokens.md +1 -1
  5. package/docs/agent/tables/ds-table.md +1 -1
  6. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +16 -8
  7. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  8. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
  9. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  10. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +2 -2
  11. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  12. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  13. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  14. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +289 -10
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  16. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  17. package/migrations/0.15.0.json +42 -11
  18. package/migrations/0.15.1.json +20 -13
  19. package/migrations/0.15.2.json +164 -0
  20. package/migrations/0.3.0.json +16 -9
  21. package/package.json +1 -1
  22. package/schematics/check-overrides/surface.json +3 -1
  23. package/stylelint/deprecated-tokens.json +3 -10
  24. package/styles/_link.scss +2 -7
  25. package/themes/README.md +6 -4
  26. package/themes/_semantic.scss +2 -0
  27. package/themes/dark/_theme.scss +3 -0
  28. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +5 -5
  29. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +2 -2
  30. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +34 -1
  31. package/types/ids-group-ltd-ids-design-system-core.d.ts +5 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-core.mjs","sources":["../../../src/lib/core/backdrop-dismiss.ts","../../../src/lib/core/ds-config.ts","../../../src/lib/core/config-defaults.ts","../../../src/lib/core/dev-warning.ts","../../../src/lib/core/announce-warning.ts","../../../src/lib/core/ds-intl-defaults.ts","../../../src/lib/core/ds-intl.ts","../../../src/lib/core/ds-locale.ts","../../../src/lib/core/field-bounds.ts","../../../src/lib/core/icon-names.ts","../../../src/lib/core/key-target.ts","../../../src/lib/core/text-clip.ts","../../../src/lib/core/list-cursor.ts","../../../src/lib/core/option.ts","../../../src/lib/core/ids-group-ltd-ids-design-system-core.ts"],"sourcesContent":["/**\n * Dismiss-on-backdrop for a backdrop that WRAPS its dialog.\n *\n * `click` cannot be trusted there: it fires at the nearest common ancestor of press and release,\n * so a drag from inside the dialog to the backdrop fires `click` ON THE BACKDROP. Dismiss only\n * when press AND release both land on the backdrop itself.\n * @internal\n */\nexport function backdropDismiss(): {\n down: (event: PointerEvent) => void;\n shouldDismiss: (event: PointerEvent) => boolean;\n} {\n let pressedOnBackdrop = false;\n\n return {\n down(event: PointerEvent): void {\n pressedOnBackdrop =\n event.button === 0 && event.target === event.currentTarget;\n },\n shouldDismiss(event: PointerEvent): boolean {\n const dismiss =\n pressedOnBackdrop &&\n event.button === 0 &&\n event.target === event.currentTarget;\n pressedOnBackdrop = false;\n\n return dismiss;\n },\n };\n}\n","import { InjectionToken, inject, type Provider } from '@angular/core';\nimport type { IconName } from './icon-names';\nimport type { DsSize } from './size';\nimport type { CardElevation, CardPadding } from './card.types';\nimport type {\n ChartDataTable,\n ChartFrame,\n ChartRendering,\n ChartValueFormat,\n} from './chart.types';\nimport type { DsToastPosition } from './toast-position';\nimport type { PaginationLayout } from './pagination.types';\n\nexport interface DsConfig {\n /** BCP-47 locale every component formats numbers and dates in. Default is Angular's\n * `LOCALE_ID`, except that its own default `'en-US'` reads as `'en-GB'`: English with a\n * Monday week, a 24-hour clock and day-month-year dates. Set `'en-US'` here for US formats. A\n * section key that names a locale (`datePicker.locale`) wins over this. */\n locale?: string;\n field?: {\n /** Default for every field's `reserveMessage`. Default `false`. `true` applies to EVERY field\n * in the injector's subtree; prefer `dsReserveMessages` on the form that validates. */\n reserveMessage?: boolean;\n /** Default for every field's `showDirty`. Default `false`. Prefer `dsShowDirty` on the form\n * that wants the mark. */\n showDirty?: boolean;\n /** Fallback text per validation-error kind, for validators with no `message` (Angular's\n * built-ins never carry one). A message on the error itself wins. Unmapped kinds warn in dev. */\n errorMessages?: Record<string, string>;\n /** Leading glyph on a field's message line, per state. Defaults carry one for `error`,\n * `warning` and `success` (WCAG 1.4.1: not hue alone) and NONE for `hint`. Each key is\n * independent: a glyph name replaces the default, `false` removes it, and\n * `stateIcons: false` removes all four. */\n stateIcons?:\n | false\n | {\n error?: IconName | false;\n warning?: IconName | false;\n success?: IconName | false;\n /** The `default` state (the hint line). Off unless set. */\n hint?: IconName | false;\n };\n };\n breadcrumbs?: {\n separator?: IconName;\n clickable?: boolean;\n };\n timePicker?: {\n /** Display format for `ds-time-picker` - 24h or 12h AM/PM. Unset follows the hour cycle of\n * `locale` / `LOCALE_ID` (en-US: `'12h'`, en-GB: `'24h'`). */\n format?: '24h' | '12h';\n };\n avatar?: {\n /** How `ds-avatar` turns its `name` into initials, app-wide. The built-in rule takes the\n * first two words (a Latin-script guess). */\n initials?: (name: string) => string;\n };\n brand?: {\n /** Brand text for `ds-sidenav` and `ds-auth-layout`: the wordmark, and the source of the\n * letter-mark's glyph when `logoLetter` is unset. */\n name?: string;\n /** Letter-mark glyph when it differs from the brand's first character. */\n logoLetter?: string;\n /** Strapline under the brand row. `ds-auth-layout` only. */\n tagline?: string;\n };\n modal?: {\n /** Default for `dividers` on `ds-modal` and `ds-modal-card`. Default `true`. */\n dividers?: boolean;\n };\n banner?: {\n /** Default for every `ds-banner`'s `announce`. Default `false`: an `alert` region fires on\n * INSERTION, so page-furniture banners would interrupt on every route. Set `true` where banners\n * answer events, and bind `[announce]=\"false\"` on the furniture. `ds-alert` has its own key. */\n announce?: boolean;\n };\n alert?: {\n /** Default for every `ds-alert`'s `announce`. Default `false`, as `banner.announce`. */\n announce?: boolean;\n };\n toast?: {\n /** Where the stack sits. Merged field by field over the built-in\n * `right` / `top` / `var(--space-6)`. */\n position?: Partial<DsToastPosition>;\n /** Maximum number of toasts visible at once; extras queue. Default `5`; `0` is unlimited. */\n maxVisible?: number;\n /** Show a `+N` strip while toasts wait behind `maxVisible`. Default `true`. */\n showQueueCount?: boolean;\n /** In dev mode, also show each library warning from the console as a warning toast, once the\n * app has injected `ToastService`; warnings raised earlier show when it is. Never in a\n * production build. Default `true`. */\n mirrorDevWarnings?: boolean;\n };\n picker?: {\n /** Default for `ds-multi-select`'s `searchable`. `true` always shows the panel's filter row,\n * `false` never, and a NUMBER is a threshold: the row appears once there are at least that\n * many options. Default `true`. */\n searchable?: boolean | number;\n };\n\n control?: {\n /** Default `size` for every control on the field-height contract. Default `'md'`. A different\n * axis from `[data-density]`, which rewrites hit targets and padding in CSS. */\n size?: DsSize;\n };\n pagination?: {\n /** Default `size` for every pager, `ds-table`'s footer included. Unset falls back to\n * `control.size`. */\n size?: DsSize;\n /** Default `layout` for every pager, `ds-table`'s footer included. Default `'grouped'`. */\n layout?: PaginationLayout;\n };\n card?: {\n /** Default `elevation` for `ds-card`. Default `'flat'`. */\n elevation?: CardElevation;\n /** Default `padding` preset for `ds-card`. Unset keeps the card's own. */\n padding?: CardPadding;\n };\n table?: {\n /** Default for `ds-table`'s `stickyScrollbar` (keeps the horizontal bar reachable). Default `false`. */\n stickyScrollbar?: boolean;\n /** Default for `ds-table`'s `bordered` (the outer border and radius). Default `false`. */\n bordered?: boolean;\n /** Default for `ds-table`'s `stickyScrollbarOffset`, as any CSS length. Unset, each table\n * cancels its scroll container's bottom padding. */\n stickyScrollbarOffset?: string;\n };\n icon?: {\n /** Default pixel `size` for `ds-icon`. Default `16`. */\n size?: number;\n };\n badge?: {\n /** Default for `ds-badge`'s `withDot` (the leading status dot). Default `false`. */\n withDot?: boolean;\n };\n chart?: {\n /** Default `dataTable` for every chart. Default `'none'`; `'toggle'` offers the annex everywhere. */\n dataTable?: ChartDataTable;\n /** Whether every chart draws its own bordered, padded box. Default `'auto'`, which draws it. */\n frame?: ChartFrame;\n /** How long a chart's tooltip stays after the pointer leaves the mark for another part of the\n * chart, in milliseconds; leaving the chart closes it at once. Default 500; zero closes it at\n * once everywhere. */\n tooltipLingerMs?: number;\n /** Whether a click on a mark or category holds its tooltip and highlight. Default `true`.\n * A second click, Escape or a press elsewhere releases. A tap holds whatever this says. */\n pinOnClick?: boolean;\n /** Milliseconds the pointer rests on a mark, category or legend entry before the chart answers.\n * Default 0. After one answer the next is immediate until the pointer leaves the chart;\n * focus, a tap and a pinning click are always immediate. */\n hoverDelayMs?: number;\n /** Whether a chart's tooltip draws a colour dot beside each reading. Unset draws them for two\n * to four readings. */\n tooltipSwatches?: boolean;\n /** How charts format values, annex table and description included. Default groups digits in\n * `locale` and abbreviates on a tick (`1.2M`). */\n valueFormat?: ChartValueFormat;\n /** How charts build themselves on a long page. All off by default. */\n rendering?: ChartRendering;\n };\n datePicker?: {\n /** BCP-47 locale for `ds-date-picker` names and value format. Unset falls back to\n * `locale`, then `LOCALE_ID`. */\n locale?: string;\n /** Explicit token format, e.g. `'MM/DD/YYYY'`; overrides the locale-derived order. */\n dateFormat?: string;\n /** First weekday column: 0=Sunday to 6=Saturday. Unset follows the date picker's locale\n * (en-US: `0`, en-GB: `1`); `1` (Monday) where the engine has no week data. */\n firstDayOfWeek?: number;\n };\n}\n\nexport const DS_CONFIG = new InjectionToken<DsConfig>('DS_CONFIG', {\n factory: () => ({}),\n});\n\n/** Provides DS-level defaults: `providers: [provideDsConfig({ control: { size: 'sm' } })]`.\n *\n * Works at the app root, on a `Route`, or on a component/directive. Component inputs still win.\n *\n * A nested call MERGES with the config above it section by section; only the keys you name are\n * replaced. Several calls in one `providers` array merge in order, the later winning per key.\n */\nexport function provideDsConfig(config: DsConfig): Provider {\n return [\n { provide: DS_CONFIG_LAYERS, useValue: config, multi: true },\n { provide: DS_CONFIG, useFactory: mergeDsConfigLayers },\n ];\n}\n\nconst DS_CONFIG_LAYERS = new InjectionToken<readonly DsConfig[]>(\n 'DS_CONFIG_LAYERS',\n);\n\nfunction mergeDsConfigLayers(): DsConfig {\n return inject(DS_CONFIG_LAYERS, { self: true }).reduce(\n mergeDsConfig,\n inject(DS_CONFIG, { skipSelf: true, optional: true }) ?? {},\n );\n}\n\n/**\n * The factory body behind `provideDsConfig`, exported so a directive can put the provider in its\n * metadata as an object literal: calling `provideDsConfig` there makes the module side-effectful\n * and defeats tree-shaking.\n *\n * Must be called from an injection context.\n */\nexport function inheritDsConfig(config: DsConfig): DsConfig {\n return mergeDsConfig(\n inject(DS_CONFIG, { skipSelf: true, optional: true }) ?? {},\n config,\n );\n}\n\nfunction mergeDsConfig(parent: DsConfig, own: DsConfig): DsConfig {\n const merged: DsConfig = { ...parent };\n for (const section of Object.keys(own) as (keyof DsConfig)[]) {\n const value = own[section];\n Object.assign(merged, {\n [section]:\n typeof value === 'object' && value !== null\n ? { ...(parent[section] as object | undefined), ...value }\n : value,\n });\n }\n\n return merged;\n}\n","import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG, type DsConfig } from './ds-config';\n\n/**\n * Resolve an input against `DS_CONFIG`, then a built-in default.\n *\n * The input must be typed `T | null` and default to `null`: a signal input cannot report\n * whether it was bound. Precedence is input → config → built-in. Call from an injection context.\n * @internal\n */\nexport function resolveWithConfig<T>(\n value: Signal<T | null>,\n pick: (config: DsConfig) => T | undefined,\n fallback: T,\n): Signal<T> {\n const config = inject(DS_CONFIG);\n\n return computed(() => value() ?? pick(config) ?? fallback);\n}\n","import { effect, isDevMode } from '@angular/core';\n\nconst reported = new Set<string>();\nconst sinks = new Set<(message: string) => void>();\n// Held for a sink registered later, e.g. a ToastService first injected after the warning fired.\nconst unsunk: string[] = [];\nconst UNSUNK_LIMIT = 50;\n\n/**\n * The one exit for every dev-mode warning of the library: logs `message` with `console.warn` once\n * per page, however many instances raise it, and hands it to each sink (`ToastService` registers\n * one). Messages raised before any sink exists are kept, up to 50, for the first one.\n *\n * Callers wrap this in `if (typeof ngDevMode === 'undefined' || ngDevMode)`, so the message text\n * folds out of a production build.\n * @internal\n */\nexport function reportDevWarning(message: string): void {\n if (!isDevMode() || reported.has(message)) {\n return;\n }\n reported.add(message);\n console.warn(message);\n if (sinks.size) {\n for (const sink of sinks) {\n sink(message);\n }\n } else if (unsunk.length < UNSUNK_LIMIT) {\n unsunk.push(message);\n }\n}\n\n/**\n * Receives every dev warning from now on, plus the ones raised before the first sink existed.\n * Returns the unregister function.\n * @internal\n */\nexport function addDevWarningSink(sink: (message: string) => void): () => void {\n sinks.add(sink);\n for (const message of unsunk.splice(0)) {\n sink(message);\n }\n\n return () => sinks.delete(sink);\n}\n\n/**\n * Reports `message()` through `reportDevWarning` each time it yields a text: the effect re-runs\n * whenever a signal the condition reads changes, and `reportDevWarning` drops a repeat.\n *\n * Must be called from an injection context.\n *\n * Callers wrap this in `if (typeof ngDevMode === 'undefined' || ngDevMode)`: a BUILD-time\n * expression a minifier folds away with the message, which the opaque `isDevMode()` call never\n * allows. It cannot become a helper function for the same reason.\n * @internal\n */\nexport function devWarn(message: () => string | null): void {\n if (!isDevMode()) {\n return;\n }\n effect(() => {\n const text = message();\n if (text) {\n reportDevWarning(text);\n }\n });\n}\n","import { inject } from '@angular/core';\nimport { devWarn } from './dev-warning';\nimport { DS_CONFIG } from './ds-config';\n\nexport interface AnnounceState {\n variant: string;\n title: string;\n /** Whether the element would announce as `role=\"alert\"` rather than `status`. */\n assertive: boolean;\n /** The element's own `announce` input, `null` while unbound. */\n announce: boolean | null;\n}\n\n/**\n * Warns about two undecided `announce` cases on `ds-banner` / `ds-alert`: an assertive element\n * left unbound while `DS_CONFIG.<section>.announce` is unset (not heard), and a polite one that\n * announces only because that key is `true`. Once per instance, dev mode only; the caller wraps\n * the call in the `typeof ngDevMode` guard (see `devWarn`). Must be called from an injection context.\n * @internal\n */\nexport function warnAnnounceOversight(\n tag: 'ds-banner' | 'ds-alert',\n section: 'banner' | 'alert',\n state: () => AnnounceState,\n): void {\n const configured = inject(DS_CONFIG)[section]?.announce;\n devWarn(() => {\n const { variant, title, assertive, announce } = state();\n if (announce !== null) {\n return null;\n }\n const element = `[${tag}] variant=\"${variant}\"${title ? ` title=\"${title}\"` : ''}`;\n if (assertive && configured === undefined) {\n 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.`;\n }\n if (!assertive && configured === true) {\n 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.`;\n }\n\n return null;\n });\n}\n","import type { DsIntl } from './ds-intl.types';\n\n/** English wording for every string the library invents. Used unless `provideDsIntl` overrides\n * a section. */\nexport const DS_INTL_DEFAULTS: DsIntl & {\n readonly field: Required<DsIntl['field']>;\n readonly chart: Required<DsIntl['chart']>;\n} = {\n field: {\n optional: '(optional)',\n clearInput: 'Clear input',\n showPassword: 'Show password',\n hidePassword: 'Hide password',\n overLimit: (excess) =>\n excess === 1\n ? '1 character over the limit'\n : `${excess} characters over the limit`,\n changed: 'Changed',\n },\n picker: {\n placeholder: 'Select…',\n filterPlaceholder: 'Filter…',\n clearSelection: 'Clear selection',\n noMatches: 'No matches',\n noOptions: 'No options',\n selectAll: 'Select all',\n selectAllInGroup: (group) => `All of ${group}`,\n create: (query) => `Create «${query}»`,\n moreChips: (count) => `+${count} more`,\n removeChip: (label) => `Remove ${label}`,\n selectedNoun: 'selected',\n resultCount: (count) =>\n count === 0\n ? 'No results'\n : count === 1\n ? '1 result'\n : `${count} results`,\n },\n datePicker: {\n placeholder: 'Select date',\n openCalendar: 'Choose date',\n selectMonth: 'Select month',\n selectYear: 'Select year',\n previousYears: 'Previous years',\n nextYears: 'Next years',\n previousMonth: 'Previous month',\n nextMonth: 'Next month',\n invalidDate: (mask) => `Enter a valid date (${mask})`,\n },\n timePicker: {\n selectTime: 'Select time',\n rangeStart: (label) => `${label} (from)`,\n rangeEnd: (label) => `${label} (to)`,\n clear: 'Clear',\n now: 'Now',\n done: 'Done',\n time: 'Time',\n hours: 'Hours',\n minutes: 'Minutes',\n period: 'AM/PM',\n },\n colorPicker: {\n label: 'Choose colour',\n saturationBrightness:\n 'Saturation and brightness — use arrow keys to adjust',\n hue: 'Hue',\n hexValue: 'Hex colour value',\n presets: 'Preset colours',\n },\n otpInput: {\n label: 'Verification code',\n digit: (position) => `Digit ${position}`,\n character: (position) => `Character ${position}`,\n },\n slider: {\n rangeStart: (label) => (label ? `${label} minimum` : 'Minimum'),\n rangeEnd: (label) => (label ? `${label} maximum` : 'Maximum'),\n },\n numberStepper: {\n decrease: 'Decrease',\n increase: 'Increase',\n },\n search: {\n placeholder: 'Search',\n clear: 'Clear search',\n },\n dropzone: {\n label: 'Upload files',\n title: 'Drop files here',\n hint: 'or click to browse',\n remove: (fileName) => `Remove ${fileName}`,\n uploading: 'uploading',\n success: 'success',\n error: 'error',\n },\n passwordRules: {\n pending: 'not yet met',\n met: 'met',\n failed: 'not met',\n },\n tag: {\n remove: 'Remove',\n },\n badge: {\n noun: 'notifications',\n count: (count, noun) => `${count} ${noun}`,\n overMax: (max, noun) => `More than ${max} ${noun}`,\n },\n avatar: {\n online: 'Online',\n offline: 'Offline',\n away: 'Away',\n busy: 'Busy',\n },\n avatarGroup: {\n more: (count) => `${count} more`,\n },\n descriptionList: {\n copy: 'Copy value',\n copied: 'Copied',\n },\n what3words: {\n copy: (address) => `Copy what3words address ${address}`,\n },\n dialog: {\n close: 'Close',\n closeDialog: 'Close dialog',\n dismiss: 'Dismiss',\n confirm: 'Confirm',\n cancel: 'Cancel',\n typeToConfirmBefore: 'Type',\n typeToConfirmAfter: 'to confirm',\n },\n toast: {\n region: 'Notifications',\n },\n spinner: {\n label: 'Loading',\n },\n breadcrumbs: {\n label: 'Breadcrumb',\n },\n appLayout: {\n railLabel: 'Navigation',\n },\n sidenav: {\n expandGroup: (label) => `Expand ${label}`,\n collapseGroup: (label) => `Collapse ${label}`,\n },\n sidenavFooter: {\n search: 'Search',\n searchPlaceholder: 'Search…',\n clear: 'Clear',\n noMatches: (query) => `No matches for “${query}”.`,\n typeToSearch: 'Type to search.',\n alerts: 'Alerts',\n allCaughtUp: 'You’re all caught up.',\n accountMenu: 'Account menu',\n account: 'Account',\n signedInAs: (name) => `Signed in as ${name}`,\n profile: 'Your profile',\n settings: 'Account settings',\n help: 'Help & support',\n signOut: 'Sign out',\n expand: 'Expand',\n collapse: 'Collapse',\n },\n stepper: {\n label: 'Progress',\n step: (position, label, state) => `Step ${position}: ${label} (${state})`,\n },\n tabs: {\n close: (label) => `Close ${label}`,\n },\n splitButton: {\n menuLabel: 'More actions',\n },\n filterBar: {\n more: 'more',\n panelLabel: 'More filters',\n },\n pagination: {\n label: 'Pagination',\n previous: 'Previous page',\n next: 'Next page',\n page: (page) => `Page ${page}`,\n range: (first, last, total) =>\n total === 0 ? 'Showing 0 of 0' : `Showing ${first}–${last} of ${total}`,\n perPage: (size) => `${size} per page`,\n rowsPerPage: 'Rows per page',\n },\n table: {\n actions: 'Actions',\n actionsFor: (row) => `Actions for ${row}`,\n filterColumn: (column) => `Filter ${column}`,\n resizeColumn: (column) => `Resize ${column}`,\n narrowColumn: (column) => `Narrow ${column}`,\n widenColumn: (column) => `Widen ${column}`,\n fitColumn: (column) => `Fit ${column} to its content`,\n fit: 'Fit',\n selectRow: (row) => `Select ${row}`,\n expandRow: 'Expand row',\n collapseRow: 'Collapse row',\n filterValues: 'Filter values',\n filterSearch: 'Search…',\n emptyValue: '(empty)',\n noMatches: 'No matches',\n selectedCount: (count) => `${count} selected`,\n clear: 'Clear',\n loading: 'Loading…',\n sorted: (label, direction) =>\n direction\n ? `Sorted by ${label}, ${direction === 'asc' ? 'ascending' : 'descending'}`\n : 'Sorting cleared',\n rowsExpanded: (count) => `${count} rows expanded`,\n selectAllRows: (onThisPage) =>\n onThisPage ? 'Select all rows on this page' : 'Select all rows',\n expandAllRows: (onThisPage) =>\n `Expand all rows${onThisPage ? ' on this page' : ''}`,\n collapseAllRows: (onThisPage) =>\n `Collapse all rows${onThisPage ? ' on this page' : ''}`,\n },\n tableColumns: {\n title: 'Columns',\n panelLabel: 'Column visibility',\n moveUp: 'Move up',\n moveDown: 'Move down',\n reset: 'Reset to default',\n trigger: 'Choose columns',\n },\n tableExport: {\n button: 'Export CSV',\n buttonBusy: 'Preparing…',\n preparing: 'Preparing export…',\n ready: 'Export ready',\n failed: 'Export failed',\n },\n chart: {\n empty: 'No data',\n error: 'Could not load the data',\n title: 'Chart',\n unpin: 'Unpin',\n dataTable: 'Data table',\n dataTableCaption: 'Chart data',\n legendAll: 'All',\n legendNone: 'None',\n labelColumn: 'Label',\n valueColumn: 'Value',\n shareColumn: 'Share of total',\n seriesColumn: 'Series',\n categoryColumn: 'Category',\n shareOfTotal: (share) => `${share} of total`,\n other: 'Other',\n noVisibleSeries: 'All series are hidden',\n target: (value) => `Target ${value}`,\n rowsUnder: (label) => `Rows under ${label}`,\n noted: (notes) => `Noted: ${notes.join('; ')}.`,\n noData: (label) => `${label}. No data.`,\n onePoint: (label, value, at) => `${label}, one point: ${value} at ${at}.`,\n range: (label, count, lowest, highest) =>\n `${label}, ${count} points, ${lowest} to ${highest}.`,\n trendRisingThroughout: 'Rising throughout',\n trendFallingThroughout: 'Falling throughout',\n trendRisingOverall: 'Rising overall',\n trendFallingOverall: 'Falling overall',\n trendFlat: 'Ending where it started',\n extremes: (highestLabel, highest, lowestLabel, lowest) =>\n `Highest in ${highestLabel} at ${highest}, lowest in ${lowestLabel} at ${lowest}.`,\n tableFollows: 'Full values in the table below.',\n threshold: 'Threshold',\n thresholdAbove: (name, value, count, total) =>\n `${name} at ${value}, ${count} of ${total} ${total === 1 ? 'point' : 'points'} above.`,\n thresholdInside: (name, low, high, count, total) =>\n `${name} from ${low} to ${high}, ${count} of ${total} ${total === 1 ? 'point' : 'points'} inside.`,\n funnelCaption:\n 'Each stage as a percentage of the first, and the drop from the stage above it.',\n stageColumn: 'Stage',\n percentColumn: 'Percent',\n dropColumn: 'Drop',\n fellAway: (drop) => `${drop} fell away since the stage above`,\n noReading: 'No reading',\n heatmapTitle: 'Heat map',\n heatmapSummary: (title, rows, columns, lowest, highest) =>\n `${title}, ${rows} rows by ${columns} columns, readings from ${lowest} to ${highest}.`,\n scatterTitle: 'Scatter chart',\n scatterAxis: (axis, from, to) => `${axis} from ${from} to ${to}`,\n scatterSummary: (title, count, axes, dropped) =>\n `${title}: ${count} readings drawn, ${axes}.${\n dropped > 0\n ? ` ${dropped} further readings were thinned out to keep the plot drawable; the data table lists every one.`\n : ''\n }`,\n scatterThinned: (count) =>\n `${count} readings thinned out to keep the plot drawable - every one is in the data table.`,\n waterfallTitle: 'Waterfall chart',\n waterfallCaption: 'Waterfall',\n increase: 'increase',\n decrease: 'decrease',\n total: 'total',\n stepColumn: 'Step',\n directionColumn: 'Direction',\n runningTotalColumn: 'Running total',\n endsAt: (value) => `Ends at ${value}.`,\n rangeTotal: (range, total, average) =>\n `${range}: ${total} · avg ${average}`,\n },\n};\n","import {\n InjectionToken,\n computed,\n inject,\n signal,\n type Provider,\n type Signal,\n} from '@angular/core';\nimport { DS_INTL_DEFAULTS } from './ds-intl-defaults';\nimport type { DsIntl, DsIntlOverrides } from './ds-intl.types';\n\nconst DEFAULTS = signal(DS_INTL_DEFAULTS).asReadonly();\n\n/** Every string the library invents, as a signal so a language switch re-renders in place.\n * Unprovided, it holds the English defaults. */\nexport const DS_INTL = new InjectionToken<Signal<DsIntl>>('DS_INTL', {\n factory: () => DEFAULTS,\n});\n\n/** Provide the library's wording.\n *\n * providers: [provideDsIntl({ picker: { selectAll: 'Выбрать все' } })]\n *\n * Pass an object for a fixed language, or a factory returning a signal for a language that\n * changes at runtime (the factory runs in an injection context):\n *\n * provideDsIntl(() => { const language = inject(LanguageService); return computed(() => language.dictionary().ds); })\n *\n * Works at the root, on a `Route` or on a component; a nested call MERGES section by section,\n * as `provideDsConfig` does, and several calls in one `providers` array merge in order. Numbers\n * and dates follow `DsConfig.locale`, then `LOCALE_ID`. */\nexport function provideDsIntl(\n overrides: DsIntlOverrides | (() => Signal<DsIntlOverrides>),\n): Provider {\n return [\n { provide: DS_INTL_LAYERS, useValue: overrides, multi: true },\n { provide: DS_INTL, useFactory: mergeDsIntlLayers },\n ];\n}\n\ntype DsIntlLayer = DsIntlOverrides | (() => Signal<DsIntlOverrides>);\n\nconst DS_INTL_LAYERS = new InjectionToken<readonly DsIntlLayer[]>(\n 'DS_INTL_LAYERS',\n);\n\nfunction mergeDsIntlLayers(): Signal<DsIntl> {\n const parent =\n inject(DS_INTL, { skipSelf: true, optional: true }) ?? DEFAULTS;\n const layers = inject(DS_INTL_LAYERS, { self: true }).map((layer) =>\n typeof layer === 'function' ? layer() : signal(layer).asReadonly(),\n );\n\n return computed(() =>\n layers.reduce((merged, layer) => mergeDsIntl(merged, layer()), parent()),\n );\n}\n\nfunction mergeDsIntl(parent: DsIntl, own: DsIntlOverrides): DsIntl {\n const merged = { ...parent };\n for (const section of Object.keys(own) as (keyof DsIntl)[]) {\n Object.assign(merged, {\n [section]: { ...parent[section], ...own[section] },\n });\n }\n\n return merged;\n}\n","import { LOCALE_ID, inject } from '@angular/core';\nimport { DS_CONFIG } from './ds-config';\n\n/**\n * The BCP-47 tag the library formats numbers and dates in: `DsConfig.locale`, then Angular's\n * `LOCALE_ID`, where `'en-US'` (Angular's own default, so an app that never chose) reads as\n * `'en-GB'`. Call from an injection context.\n * @internal\n */\nexport function injectDsLocale(): string {\n const appLocale = inject(LOCALE_ID);\n\n return (\n inject(DS_CONFIG).locale ??\n (appLocale === ANGULAR_DEFAULT_LOCALE ? DS_DEFAULT_LOCALE : appLocale)\n );\n}\n\nconst ANGULAR_DEFAULT_LOCALE = 'en-US';\nconst DS_DEFAULT_LOCALE = 'en-GB';\n","/**\n * Signal forms binds `min`, `max`, `minLength` and `maxLength` BY NAME and sends `undefined`\n * for no bound; the DS spells it `null`, so the write type accepts both.\n * @internal\n */\nexport function optionalBound(value: number | null | undefined): number | null {\n return value ?? null;\n}\n\n/** As `optionalBound`, for a bound the control requires a value for.\n * @internal\n */\nexport function boundOr(fallback: number) {\n return (value: number | undefined): number => value ?? fallback;\n}\n","// All paths render inside <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\">, stroke-width 1.75.\n\nexport const ICONS = {\n search: '<circle cx=\"11\" cy=\"11\" r=\"7\" /><path d=\"m20 20-3.5-3.5\" />',\n plus: '<path d=\"M12 5v14M5 12h14\" />',\n minus: '<path d=\"M5 12h14\" />',\n check: '<path d=\"m4 12 5 5L20 6\" />',\n x: '<path d=\"M6 6l12 12M18 6L6 18\" />',\n chevronDown: '<path d=\"m6 9 6 6 6-6\" />',\n chevronRight: '<path d=\"m9 6 6 6-6 6\" />',\n slash: '<path d=\"M15 5 9 19\" />',\n chevronLeft: '<path d=\"m15 6-6 6 6 6\" />',\n chevronUp: '<path d=\"m6 15 6-6 6 6\" />',\n menu: '<path d=\"M4 6h16M4 12h16M4 18h16\" />',\n arrowRight: '<path d=\"M5 12h14M13 6l6 6-6 6\" />',\n arrowUp: '<path d=\"M12 19V5M6 11l6-6 6 6\" />',\n arrowDown: '<path d=\"M12 5v14M6 13l6 6 6-6\" />',\n info: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 8v.01M11 12h1v4h1\" />',\n warn: '<path d=\"M12 3 2 21h20L12 3z\" /><path d=\"M12 10v4M12 18v.01\" />',\n error: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 8v4M12 16v.01\" />',\n success: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"m8 12 3 3 5-6\" />',\n bell: '<path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\" /><path d=\"M10 21a2 2 0 0 0 4 0\" />',\n settings:\n '<circle cx=\"12\" cy=\"12\" r=\"3\" /><path d=\"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z\" />',\n user: '<circle cx=\"12\" cy=\"8\" r=\"4\" /><path d=\"M4 21a8 8 0 0 1 16 0\" />',\n users:\n '<circle cx=\"9\" cy=\"8\" r=\"4\" /><path d=\"M2 21a7 7 0 0 1 14 0\" /><path d=\"M16 4a4 4 0 0 1 0 8M22 21a6 6 0 0 0-6-6\" />',\n home: '<path d=\"m3 11 9-8 9 8\" /><path d=\"M5 10v10h14V10\" />',\n calendar:\n '<rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\" /><path d=\"M3 10h18M8 3v4M16 3v4\" />',\n truck:\n '<path d=\"M3 16V6a1 1 0 0 1 1-1h11v11\" /><path d=\"M15 9h4l2 3v4h-6\" /><circle cx=\"7.5\" cy=\"17.5\" r=\"2\" /><circle cx=\"17.5\" cy=\"17.5\" r=\"2\" />',\n box: '<path d=\"m21 8-9-5-9 5 9 5 9-5z\" /><path d=\"M3 8v8l9 5 9-5V8\" /><path d=\"m12 13 .01 8\" />',\n map: '<path d=\"m9 4-6 3v13l6-3 6 3 6-3V4l-6 3-6-3z\" /><path d=\"M9 4v13M15 7v13\" />',\n activity: '<path d=\"M3 12h4l3-9 4 18 3-9h4\" />',\n folder:\n '<path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" />',\n edit: '<path d=\"M12 20h9\" /><path d=\"M16.5 3.5a2.1 2.1 0 1 1 3 3L7 19l-4 1 1-4z\" />',\n external:\n '<path d=\"M14 4h6v6\" /><path d=\"M20 4 10 14\" /><path d=\"M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5\" />',\n trash:\n '<path d=\"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\" /><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\" />',\n copy: '<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" /><path d=\"M5 15V5a2 2 0 0 1 2-2h10\" />',\n download: '<path d=\"M12 4v12M6 12l6 6 6-6\" /><path d=\"M4 20h16\" />',\n upload: '<path d=\"M12 20V8M6 12l6-6 6 6\" /><path d=\"M4 4h16\" />',\n eye: '<path d=\"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z\" /><circle cx=\"12\" cy=\"12\" r=\"3\" />',\n filter: '<path d=\"M3 5h18l-7 9v6l-4-2v-4z\" />',\n sort: '<path d=\"M7 4v16M3 8l4-4 4 4\" /><path d=\"M17 20V4M21 16l-4 4-4-4\" />',\n sortAsc: '<path d=\"M7 18V6M3 10l4-4 4 4\" />',\n sortDesc: '<path d=\"M7 6v12M11 14l-4 4-4-4\" />',\n grid: '<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" />',\n list: '<path d=\"M8 6h13M8 12h13M8 18h13\" /><circle cx=\"3.5\" cy=\"6\" r=\"1.2\" /><circle cx=\"3.5\" cy=\"12\" r=\"1.2\" /><circle cx=\"3.5\" cy=\"18\" r=\"1.2\" />',\n moreH:\n '<circle cx=\"5\" cy=\"12\" r=\"1.5\" /><circle cx=\"12\" cy=\"12\" r=\"1.5\" /><circle cx=\"19\" cy=\"12\" r=\"1.5\" />',\n moreV:\n '<circle cx=\"12\" cy=\"5\" r=\"1.5\" /><circle cx=\"12\" cy=\"12\" r=\"1.5\" /><circle cx=\"12\" cy=\"19\" r=\"1.5\" />',\n link: '<path d=\"M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1\" /><path d=\"M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1\" />',\n flag: '<path d=\"M5 21V5a14 14 0 0 1 14 0v9a14 14 0 0 1-14 0z\" />',\n star: '<path d=\"m12 3 2.9 6 6.6.9-4.8 4.6 1.1 6.5L12 17.8 6.2 21l1.1-6.5L2.5 9.9 9.1 9z\" />',\n inbox:\n '<path d=\"M22 12h-6l-2 3h-4l-2-3H2\" /><path d=\"M5 4h14l3 8v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8z\" />',\n archive:\n '<rect x=\"3\" y=\"3\" width=\"18\" height=\"5\" rx=\"1\" /><path d=\"M5 8v11a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8M10 12h4\" />',\n clock: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 7v5l3 2\" />',\n refresh:\n '<path d=\"M3 12a9 9 0 0 1 15-6.7L21 8\" /><path d=\"M21 3v5h-5\" /><path d=\"M21 12a9 9 0 0 1-15 6.7L3 16\" /><path d=\"M3 21v-5h5\" />',\n play: '<path d=\"M6 4l14 8-14 8z\" />',\n pause: '<path d=\"M7 4v16M17 4v16\" />',\n cmd: '<path d=\"M9 9h6v6H9zM6 9V7a3 3 0 1 1 3 3H6zM6 15v2a3 3 0 1 0 3-3H6zM18 9V7a3 3 0 1 0-3 3h3zM18 15v2a3 3 0 1 1-3-3h3z\" />',\n paperclip:\n '<path d=\"m21 11-9 9a5 5 0 0 1-7-7l9-9a3 3 0 0 1 4 4l-9 9a1 1 0 0 1-1-1l8-8\" />',\n file: '<path d=\"M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z\" /><path d=\"M14 3v6h6\" />',\n image:\n '<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" /><circle cx=\"9\" cy=\"9\" r=\"2\" /><path d=\"m21 15-5-5L5 21\" />',\n lock: '<rect x=\"4\" y=\"11\" width=\"16\" height=\"10\" rx=\"2\" /><path d=\"M8 11V7a4 4 0 0 1 8 0v4\" />',\n logout:\n '<path d=\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\" /><path d=\"m16 17 5-5-5-5M21 12H9\" />',\n help: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9.5 9a2.5 2.5 0 0 1 5 0c0 1.5-2.5 2-2.5 4M12 17v.01\" />',\n pin: '<path d=\"M15 4.5 11 8.5 7 10 5.5 11.5 12.5 18.5 14 17 15.5 13 19.5 9\" /><path d=\"m9 15-4.5 4.5\" /><path d=\"m14.5 4 5.5 5.5\" />',\n bookmark: '<path d=\"M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16l-7-4z\" />',\n sparkle:\n '<path d=\"M12 3v6M12 15v6M3 12h6M15 12h6M5.6 5.6l4.2 4.2M14.2 14.2l4.2 4.2M5.6 18.4l4.2-4.2M14.2 9.8l4.2-4.2\" />',\n layers:\n '<path d=\"m12 3 9 5-9 5-9-5z\" /><path d=\"m3 13 9 5 9-5M3 18l9 5 9-5\" />',\n chart: '<path d=\"M3 3v18h18\" /><path d=\"M7 14l4-4 4 4 5-5\" />',\n gauge:\n '<path d=\"M12 14l4-4\" /><circle cx=\"12\" cy=\"14\" r=\"9\" /><path d=\"M3 14a9 9 0 0 1 18 0\" />',\n package:\n '<path d=\"M3 7v10l9 4 9-4V7l-9-4z\" /><path d=\"m3 7 9 5 9-5M12 12v9\" />',\n git: '<circle cx=\"6\" cy=\"6\" r=\"2.5\" /><circle cx=\"6\" cy=\"18\" r=\"2.5\" /><circle cx=\"18\" cy=\"12\" r=\"2.5\" /><path d=\"M6 8.5v7M8.5 6h4a3 3 0 0 1 3 3v0\" />',\n sun: '<circle cx=\"12\" cy=\"12\" r=\"4\" /><path d=\"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4\" />',\n moon: '<path d=\"M21 13a9 9 0 0 1-12-12 9 9 0 1 0 12 12z\" />',\n save: '<path d=\"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z\" /><path d=\"M17 21v-8H7v8M7 3v5h8\" />',\n rotate: '<path d=\"M3 12a9 9 0 1 0 3-6.7L3 8\" /><path d=\"M3 3v5h5\" />',\n qr: '<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" /><path d=\"M14 14h3v3h-3zM18 18h3v3h-3z\" />',\n globe:\n '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\" />',\n phone:\n '<path d=\"M5 4h4l2 5-2 1a11 11 0 0 0 5 5l1-2 5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z\" />',\n bin: '<rect x=\"3\" y=\"6\" width=\"18\" height=\"14\" rx=\"2\" /><path d=\"M7 6V4h10v2\" />',\n pen: '<path d=\"M3 17V21h4l11-11-4-4z\" />',\n smile:\n '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9 9v.01M15 9v.01M8 14a5 5 0 0 0 8 0\" />',\n frown:\n '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9 9v.01M15 9v.01M8 16a5 5 0 0 1 8 0\" />',\n mail: '<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" /><path d=\"m3 7 9 6 9-6\" />',\n 'eye-off':\n '<path d=\"M3 3l18 18\" /><path d=\"M10.6 6.1A10 10 0 0 1 12 6c6 0 10 7 10 7a14 14 0 0 1-2.4 3.1\" /><path d=\"M6.7 6.7A14 14 0 0 0 2 12s4 7 10 7a10 10 0 0 0 4.5-1\" /><path d=\"M9.9 14.1A3 3 0 0 1 9 12a3 3 0 0 1 3-3 3 3 0 0 1 2.1.9\" />',\n 'check-circle': '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"m8 12 3 3 5-6\" />',\n circle: '<circle cx=\"12\" cy=\"12\" r=\"8\" />',\n drag: '<circle cx=\"9\" cy=\"6\" r=\"1.6\" /><circle cx=\"15\" cy=\"6\" r=\"1.6\" /><circle cx=\"9\" cy=\"12\" r=\"1.6\" /><circle cx=\"15\" cy=\"12\" r=\"1.6\" /><circle cx=\"9\" cy=\"18\" r=\"1.6\" /><circle cx=\"15\" cy=\"18\" r=\"1.6\" />',\n scan: '<path d=\"M4 8V5a1 1 0 0 1 1-1h3M16 4h3a1 1 0 0 1 1 1v3M20 16v3a1 1 0 0 1-1 1h-3M8 20H5a1 1 0 0 1-1-1v-3\" />',\n wifi: '<path d=\"M2 9.5a15 15 0 0 1 20 0\" /><path d=\"M5 13a10 10 0 0 1 14 0\" /><path d=\"M8.5 16.5a5 5 0 0 1 7 0\" /><path d=\"M12 20h.01\" />',\n 'wifi-off':\n '<path d=\"m3 3 18 18\" /><path d=\"M12 20h.01\" /><path d=\"M8.5 16.5a5 5 0 0 1 7 0\" /><path d=\"M5 13a10 10 0 0 1 3.5-2.3\" /><path d=\"M11 8.6A10 10 0 0 1 19 13\" /><path d=\"M2 9.5a15 15 0 0 1 5.7-3.2\" /><path d=\"M11.6 5.6A15 15 0 0 1 22 9.5\" />',\n} as const;\n\n/** Built-in DS icon names. Consumers extend the runtime set via `provideDsIcons({...})`; the\n * type widens to `string` so a custom name is accepted, without autocomplete. */\nexport type IconName = keyof typeof ICONS | (string & {});\n","const NON_TEXT_INPUT_TYPES = new Set([\n 'button',\n 'checkbox',\n 'color',\n 'file',\n 'image',\n 'radio',\n 'range',\n 'reset',\n 'submit',\n]);\n\n/** True when the key landed on a control that consumes its own keystrokes.\n * @internal\n */\nexport function isTextEntryTarget(event: Event): boolean {\n const target = event.target;\n if (!(target instanceof HTMLElement)) {\n return false;\n }\n if (target.isContentEditable) {\n return true;\n }\n const tag = target.tagName.toLowerCase();\n if (tag === 'textarea' || tag === 'select') {\n return true;\n }\n\n return (\n tag === 'input' &&\n !NON_TEXT_INPUT_TYPES.has((target as HTMLInputElement).type.toLowerCase())\n );\n}\n","/** True when `element` is showing less text than it holds, horizontally.\n *\n * Descendants count: a template-driven cell puts the ellipsis on a child. Only horizontal:\n * a clamped block hides whole LINES with `scrollWidth` equal to `clientWidth`.\n */\nexport function isTextClipped(element: HTMLElement): boolean {\n if (element.scrollWidth > element.clientWidth) {\n return true;\n }\n\n return [...element.querySelectorAll<HTMLElement>('*')].some(\n (child) => child.scrollWidth > child.clientWidth,\n );\n}\n","/**\n * Index arithmetic for a keyboard cursor over options: skips disabled entries, wraps at the ends.\n */\nexport interface DsListCursorList {\n length: number;\n isEnabled: (index: number) => boolean;\n}\n\n/** Where the cursor lands, or -1 when nothing in the list can take it.\n * @internal\n */\nexport function firstEnabledIndex(list: DsListCursorList): number {\n for (let index = 0; index < list.length; index += 1) {\n if (list.isEnabled(index)) {\n return index;\n }\n }\n\n return -1;\n}\n\n/** @internal */\nexport function lastEnabledIndex(list: DsListCursorList): number {\n for (let index = list.length - 1; index >= 0; index -= 1) {\n if (list.isEnabled(index)) {\n return index;\n }\n }\n\n return -1;\n}\n\nconst CURSOR_KEYS = new Set([\n 'ArrowDown',\n 'ArrowUp',\n 'PageDown',\n 'PageUp',\n 'Home',\n 'End',\n 'Enter',\n]);\n\n/** Whether `key` moves the cursor or picks the row under it.\n * @internal\n */\nexport function isListCursorKey(key: string): boolean {\n return CURSOR_KEYS.has(key);\n}\n\n/**\n * The next enabled index `step` away from `from`, wrapping at both ends.\n *\n * `from` of -1 means \"no cursor yet\".\n * @internal\n */\nexport function nextEnabledIndex(\n list: DsListCursorList,\n from: number,\n step: number,\n): number {\n if (list.length === 0) {\n return -1;\n }\n if (from < 0) {\n return step > 0 ? firstEnabledIndex(list) : lastEnabledIndex(list);\n }\n\n let index = from;\n // eslint-disable-next-line @typescript-eslint/prefer-for-of -- walks from `from` with modulo wraparound; `attempts` only bounds the walk, it is not a sequential index\n for (let attempts = 0; attempts < list.length; attempts += 1) {\n index = (index + step + list.length) % list.length;\n if (list.isEnabled(index)) {\n return index;\n }\n }\n\n return from;\n}\n","import type { IconName } from './icon-names';\n\n/**\n * The shape every picker's option shares (select, multi-select, autocomplete). Each keeps its\n * own exported name. `T` exists because autocomplete carries typed values.\n */\nexport interface DsOption<T = string> {\n value: T;\n label: string;\n disabled?: boolean;\n /** Why this option cannot be picked; reaches the row as `aria-describedby`. Needs `disabled`. */\n disabledReason?: string;\n /** Rendered before the label at 16px. */\n icon?: IconName;\n}\n\n/** A labelled section of options. `disabled` turns the whole section off. */\nexport interface DsOptionGroup<T = string> {\n label: string;\n options: DsOption<T>[];\n disabled?: boolean;\n}\n\n/**\n * What a picker's `options` input takes: flat options, groups, or both mixed.\n */\nexport type DsOptionItem<T = string> = DsOption<T> | DsOptionGroup<T>;\n\nexport function isDsOptionGroup<T>(\n item: DsOptionItem<T>,\n): item is DsOptionGroup<T> {\n return 'options' in item && Array.isArray((item as DsOptionGroup<T>).options);\n}\n\n/** Every option in `items`, groups flattened in place, in source order. */\nexport function flattenDsOptions<T>(\n items: readonly DsOptionItem<T>[],\n): DsOption<T>[] {\n return items.flatMap((item) =>\n isDsOptionGroup(item)\n ? item.options.map((option) =>\n // Copy only when the flag is missing: pickers pre-apply a disabled group to the options\n // they render, and a second copy would break the identity their flat-index lookup uses.\n item.disabled && !option.disabled\n ? { ...option, disabled: true }\n : option,\n )\n : [item],\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;;;;;;;AAOG;SACa,eAAe,GAAA;IAI7B,IAAI,iBAAiB,GAAG,KAAK;IAE7B,OAAO;AACL,QAAA,IAAI,CAAC,KAAmB,EAAA;YACtB,iBAAiB;AACf,gBAAA,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,aAAa;QAC9D,CAAC;AACD,QAAA,aAAa,CAAC,KAAmB,EAAA;YAC/B,MAAM,OAAO,GACX,iBAAiB;gBACjB,KAAK,CAAC,MAAM,KAAK,CAAC;AAClB,gBAAA,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,aAAa;YACtC,iBAAiB,GAAG,KAAK;AAEzB,YAAA,OAAO,OAAO;QAChB,CAAC;KACF;AACH;;MC+Ia,SAAS,GAAG,IAAI,cAAc,CAAW,WAAW,EAAE;AACjE,IAAA,OAAO,EAAE,OAAO,EAAE,CAAC;AACpB,CAAA;AAED;;;;;;AAMG;AACG,SAAU,eAAe,CAAC,MAAgB,EAAA;IAC9C,OAAO;QACL,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE;AAC5D,QA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jDM,SAAU,eAAe,CAC7B,IAAqB,EAAA;AAErB,IAAA,OAAO,SAAS,IAAI,IAAI,IAAI,KAAK,CAAC,OAAO,CAAE,IAAyB,CAAC,OAAO,CAAC;AAC/E;AAEA;AACM,SAAU,gBAAgB,CAC9B,KAAiC,EAAA;AAEjC,IAAA,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KACxB,eAAe,CAAC,IAAI;UAChB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM;;;AAGtB,QAAA,IAAI,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC;cACrB,EAAE,GAAG,MAAM,EAAE,QAAQ,EAAE,IAAI;cAC3B,MAAM;AAEd,UAAE,CAAC,IAAI,CAAC,CACX;AACH;;ACjDA;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-core.mjs","sources":["../../../src/lib/core/backdrop-dismiss.ts","../../../src/lib/core/ds-config.ts","../../../src/lib/core/config-defaults.ts","../../../src/lib/core/dev-warning.ts","../../../src/lib/core/announce-warning.ts","../../../src/lib/core/ds-intl-defaults.ts","../../../src/lib/core/ds-intl.ts","../../../src/lib/core/ds-locale.ts","../../../src/lib/core/field-bounds.ts","../../../src/lib/core/icon-names.ts","../../../src/lib/core/key-target.ts","../../../src/lib/core/text-clip.ts","../../../src/lib/core/list-cursor.ts","../../../src/lib/core/option.ts","../../../src/lib/core/ids-group-ltd-ids-design-system-core.ts"],"sourcesContent":["/**\n * Dismiss-on-backdrop for a backdrop that WRAPS its dialog.\n *\n * `click` cannot be trusted there: it fires at the nearest common ancestor of press and release,\n * so a drag from inside the dialog to the backdrop fires `click` ON THE BACKDROP. Dismiss only\n * when press AND release both land on the backdrop itself.\n * @internal\n */\nexport function backdropDismiss(): {\n down: (event: PointerEvent) => void;\n shouldDismiss: (event: PointerEvent) => boolean;\n} {\n let pressedOnBackdrop = false;\n\n return {\n down(event: PointerEvent): void {\n pressedOnBackdrop =\n event.button === 0 && event.target === event.currentTarget;\n },\n shouldDismiss(event: PointerEvent): boolean {\n const dismiss =\n pressedOnBackdrop &&\n event.button === 0 &&\n event.target === event.currentTarget;\n pressedOnBackdrop = false;\n\n return dismiss;\n },\n };\n}\n","import { InjectionToken, inject, type Provider } from '@angular/core';\nimport type { IconName } from './icon-names';\nimport type { DsSize } from './size';\nimport type { CardElevation, CardPadding } from './card.types';\nimport type {\n ChartDataTable,\n ChartFrame,\n ChartRendering,\n ChartValueFormat,\n} from './chart.types';\nimport type { DsToastPosition } from './toast-position';\nimport type { PaginationLayout } from './pagination.types';\n\nexport interface DsConfig {\n /** BCP-47 locale every component formats numbers and dates in. Default is Angular's\n * `LOCALE_ID`, except that its own default `'en-US'` reads as `'en-GB'`: English with a\n * Monday week, a 24-hour clock and day-month-year dates. Set `'en-US'` here for US formats. A\n * section key that names a locale (`datePicker.locale`) wins over this. */\n locale?: string;\n field?: {\n /** Default for every field's `reserveMessage`. Default `false`. `true` applies to EVERY field\n * in the injector's subtree; prefer `dsReserveMessages` on the form that validates. */\n reserveMessage?: boolean;\n /** Default for every field's `showDirty`. Default `false`. Prefer `dsShowDirty` on the form\n * that wants the mark. */\n showDirty?: boolean;\n /** Fallback text per validation-error kind, for validators with no `message` (Angular's\n * built-ins never carry one). A message on the error itself wins. Unmapped kinds warn in dev. */\n errorMessages?: Record<string, string>;\n /** Leading glyph on a field's message line, per state. Defaults carry one for `error`,\n * `warning` and `success` (WCAG 1.4.1: not hue alone) and NONE for `hint`. Each key is\n * independent: a glyph name replaces the default, `false` removes it, and\n * `stateIcons: false` removes all four. */\n stateIcons?:\n | false\n | {\n error?: IconName | false;\n warning?: IconName | false;\n success?: IconName | false;\n /** The `default` state (the hint line). Off unless set. */\n hint?: IconName | false;\n };\n };\n breadcrumbs?: {\n separator?: IconName;\n clickable?: boolean;\n };\n timePicker?: {\n /** Display format for `ds-time-picker` - 24h or 12h AM/PM. Unset follows the hour cycle of\n * `locale` / `LOCALE_ID` (en-US: `'12h'`, en-GB: `'24h'`). */\n format?: '24h' | '12h';\n };\n avatar?: {\n /** How `ds-avatar` turns its `name` into initials, app-wide. The built-in rule takes the\n * first two words (a Latin-script guess). */\n initials?: (name: string) => string;\n };\n brand?: {\n /** Brand text for `ds-sidenav` and `ds-auth-layout`: the wordmark, and the source of the\n * letter-mark's glyph when `logoLetter` is unset. */\n name?: string;\n /** Letter-mark glyph when it differs from the brand's first character. */\n logoLetter?: string;\n /** Strapline under the brand row. `ds-auth-layout` only. */\n tagline?: string;\n };\n modal?: {\n /** Default for `dividers` on `ds-modal` and `ds-modal-card`. Default `true`. */\n dividers?: boolean;\n };\n banner?: {\n /** Default for every `ds-banner`'s `announce`. Default `false`: an `alert` region fires on\n * INSERTION, so page-furniture banners would interrupt on every route. Set `true` where banners\n * answer events, and bind `[announce]=\"false\"` on the furniture. `ds-alert` has its own key. */\n announce?: boolean;\n };\n alert?: {\n /** Default for every `ds-alert`'s `announce`. Default `false`, as `banner.announce`. */\n announce?: boolean;\n };\n toast?: {\n /** Where the stack sits. Merged field by field over the built-in\n * `right` / `top` / `var(--space-6)`. */\n position?: Partial<DsToastPosition>;\n /** Maximum number of toasts visible at once; extras queue. Default `5`; `0` is unlimited. */\n maxVisible?: number;\n /** Show a `+N` strip while toasts wait behind `maxVisible`. Default `true`. */\n showQueueCount?: boolean;\n /** In dev mode, also show each library warning from the console as a warning toast, once the\n * app has injected `ToastService`; warnings raised earlier show when it is. Never in a\n * production build. Default `true`. */\n mirrorDevWarnings?: boolean;\n };\n picker?: {\n /** Default for `ds-multi-select`'s `searchable`. `true` always shows the panel's filter row,\n * `false` never, and a NUMBER is a threshold: the row appears once there are at least that\n * many options. Default `true`. */\n searchable?: boolean | number;\n };\n\n control?: {\n /** Default `size` for every control on the field-height contract. Default `'md'`. A different\n * axis from `[data-density]`, which rewrites hit targets and padding in CSS. */\n size?: DsSize;\n };\n pagination?: {\n /** Default `size` for every pager, `ds-table`'s footer included. Unset falls back to\n * `control.size`. */\n size?: DsSize;\n /** Default `layout` for every pager, `ds-table`'s footer included. Default `'grouped'`. */\n layout?: PaginationLayout;\n };\n card?: {\n /** Default `elevation` for `ds-card`. Default `'flat'`. */\n elevation?: CardElevation;\n /** Default `padding` preset for `ds-card`. Unset keeps the card's own. */\n padding?: CardPadding;\n };\n table?: {\n /** Default for `ds-table`'s `stickyScrollbar` (keeps the horizontal bar reachable). Default `false`. */\n stickyScrollbar?: boolean;\n /** Default for `ds-table`'s `bordered` (the outer border and radius). Default `false`. */\n bordered?: boolean;\n /** Default for `ds-table`'s `stickyScrollbarOffset`, as any CSS length. Unset, each table\n * cancels its scroll container's bottom padding. */\n stickyScrollbarOffset?: string;\n /** Default for `ds-table`'s `layout`. Default `'fixed'`.\n * @deprecated `'auto'` is a temporary way back to the 0.15.0 column widths, which follow the\n * cell content and ignore `kind`; it will be removed. Review each table under `'fixed'`,\n * setting `width`, `kind` or `minWidth` where a column needs it, then delete this key. */\n layout?: 'fixed' | 'auto';\n };\n icon?: {\n /** Default pixel `size` for `ds-icon`. Default `16`. */\n size?: number;\n };\n badge?: {\n /** Default for `ds-badge`'s `withDot` (the leading status dot). Default `false`. */\n withDot?: boolean;\n };\n chart?: {\n /** Default `dataTable` for every chart. Default `'none'`; `'toggle'` offers the annex everywhere. */\n dataTable?: ChartDataTable;\n /** Whether every chart draws its own bordered, padded box. Default `'auto'`, which draws it. */\n frame?: ChartFrame;\n /** How long a chart's tooltip stays after the pointer leaves the mark for another part of the\n * chart, in milliseconds; leaving the chart closes it at once. Default 500; zero closes it at\n * once everywhere. */\n tooltipLingerMs?: number;\n /** Whether a click on a mark or category holds its tooltip and highlight. Default `true`.\n * A second click, Escape or a press elsewhere releases. A tap holds whatever this says. */\n pinOnClick?: boolean;\n /** Milliseconds the pointer rests on a mark, category or legend entry before the chart answers.\n * Default 0. After one answer the next is immediate until the pointer leaves the chart;\n * focus, a tap and a pinning click are always immediate. */\n hoverDelayMs?: number;\n /** Whether a chart's tooltip draws a colour dot beside each reading. Unset draws them for two\n * to four readings. */\n tooltipSwatches?: boolean;\n /** How charts format values, annex table and description included. Default groups digits in\n * `locale` and abbreviates on a tick (`1.2M`). */\n valueFormat?: ChartValueFormat;\n /** How charts build themselves on a long page. All off by default. */\n rendering?: ChartRendering;\n };\n datePicker?: {\n /** BCP-47 locale for `ds-date-picker` names and value format. Unset falls back to\n * `locale`, then `LOCALE_ID`. */\n locale?: string;\n /** Explicit token format, e.g. `'MM/DD/YYYY'`; overrides the locale-derived order. */\n dateFormat?: string;\n /** First weekday column: 0=Sunday to 6=Saturday. Unset follows the date picker's locale\n * (en-US: `0`, en-GB: `1`); `1` (Monday) where the engine has no week data. */\n firstDayOfWeek?: number;\n };\n}\n\nexport const DS_CONFIG = new InjectionToken<DsConfig>('DS_CONFIG', {\n factory: () => ({}),\n});\n\n/** Provides DS-level defaults: `providers: [provideDsConfig({ control: { size: 'sm' } })]`.\n *\n * Works at the app root, on a `Route`, or on a component/directive. Component inputs still win.\n *\n * A nested call MERGES with the config above it section by section; only the keys you name are\n * replaced. Several calls in one `providers` array merge in order, the later winning per key.\n */\nexport function provideDsConfig(config: DsConfig): Provider {\n return [\n { provide: DS_CONFIG_LAYERS, useValue: config, multi: true },\n { provide: DS_CONFIG, useFactory: mergeDsConfigLayers },\n ];\n}\n\nconst DS_CONFIG_LAYERS = new InjectionToken<readonly DsConfig[]>(\n 'DS_CONFIG_LAYERS',\n);\n\nfunction mergeDsConfigLayers(): DsConfig {\n return inject(DS_CONFIG_LAYERS, { self: true }).reduce(\n mergeDsConfig,\n inject(DS_CONFIG, { skipSelf: true, optional: true }) ?? {},\n );\n}\n\n/**\n * The factory body behind `provideDsConfig`, exported so a directive can put the provider in its\n * metadata as an object literal: calling `provideDsConfig` there makes the module side-effectful\n * and defeats tree-shaking.\n *\n * Must be called from an injection context.\n */\nexport function inheritDsConfig(config: DsConfig): DsConfig {\n return mergeDsConfig(\n inject(DS_CONFIG, { skipSelf: true, optional: true }) ?? {},\n config,\n );\n}\n\nfunction mergeDsConfig(parent: DsConfig, own: DsConfig): DsConfig {\n const merged: DsConfig = { ...parent };\n for (const section of Object.keys(own) as (keyof DsConfig)[]) {\n const value = own[section];\n Object.assign(merged, {\n [section]:\n typeof value === 'object' && value !== null\n ? { ...(parent[section] as object | undefined), ...value }\n : value,\n });\n }\n\n return merged;\n}\n","import { Signal, computed, inject } from '@angular/core';\nimport { DS_CONFIG, type DsConfig } from './ds-config';\n\n/**\n * Resolve an input against `DS_CONFIG`, then a built-in default.\n *\n * The input must be typed `T | null` and default to `null`: a signal input cannot report\n * whether it was bound. Precedence is input → config → built-in. Call from an injection context.\n * @internal\n */\nexport function resolveWithConfig<T>(\n value: Signal<T | null>,\n pick: (config: DsConfig) => T | undefined,\n fallback: T,\n): Signal<T> {\n const config = inject(DS_CONFIG);\n\n return computed(() => value() ?? pick(config) ?? fallback);\n}\n","import { effect, isDevMode } from '@angular/core';\n\nconst reported = new Set<string>();\nconst sinks = new Set<(message: string) => void>();\n// Held for a sink registered later, e.g. a ToastService first injected after the warning fired.\nconst unsunk: string[] = [];\nconst UNSUNK_LIMIT = 50;\n\n/**\n * The one exit for every dev-mode warning of the library: logs `message` with `console.warn` once\n * per page, however many instances raise it, and hands it to each sink (`ToastService` registers\n * one). Messages raised before any sink exists are kept, up to 50, for the first one.\n *\n * Callers wrap this in `if (typeof ngDevMode === 'undefined' || ngDevMode)`, so the message text\n * folds out of a production build.\n * @internal\n */\nexport function reportDevWarning(message: string): void {\n if (!isDevMode() || reported.has(message)) {\n return;\n }\n reported.add(message);\n console.warn(message);\n if (sinks.size) {\n for (const sink of sinks) {\n sink(message);\n }\n } else if (unsunk.length < UNSUNK_LIMIT) {\n unsunk.push(message);\n }\n}\n\n/**\n * Receives every dev warning from now on, plus the ones raised before the first sink existed.\n * Returns the unregister function.\n * @internal\n */\nexport function addDevWarningSink(sink: (message: string) => void): () => void {\n sinks.add(sink);\n for (const message of unsunk.splice(0)) {\n sink(message);\n }\n\n return () => sinks.delete(sink);\n}\n\n/**\n * Reports `message()` through `reportDevWarning` each time it yields a text: the effect re-runs\n * whenever a signal the condition reads changes, and `reportDevWarning` drops a repeat.\n *\n * Must be called from an injection context.\n *\n * Callers wrap this in `if (typeof ngDevMode === 'undefined' || ngDevMode)`: a BUILD-time\n * expression a minifier folds away with the message, which the opaque `isDevMode()` call never\n * allows. It cannot become a helper function for the same reason.\n * @internal\n */\nexport function devWarn(message: () => string | null): void {\n if (!isDevMode()) {\n return;\n }\n effect(() => {\n const text = message();\n if (text) {\n reportDevWarning(text);\n }\n });\n}\n","import { inject } from '@angular/core';\nimport { devWarn } from './dev-warning';\nimport { DS_CONFIG } from './ds-config';\n\nexport interface AnnounceState {\n variant: string;\n title: string;\n /** Whether the element would announce as `role=\"alert\"` rather than `status`. */\n assertive: boolean;\n /** The element's own `announce` input, `null` while unbound. */\n announce: boolean | null;\n}\n\n/**\n * Warns about two undecided `announce` cases on `ds-banner` / `ds-alert`: an assertive element\n * left unbound while `DS_CONFIG.<section>.announce` is unset (not heard), and a polite one that\n * announces only because that key is `true`. Once per instance, dev mode only; the caller wraps\n * the call in the `typeof ngDevMode` guard (see `devWarn`). Must be called from an injection context.\n * @internal\n */\nexport function warnAnnounceOversight(\n tag: 'ds-banner' | 'ds-alert',\n section: 'banner' | 'alert',\n state: () => AnnounceState,\n): void {\n const configured = inject(DS_CONFIG)[section]?.announce;\n devWarn(() => {\n const { variant, title, assertive, announce } = state();\n if (announce !== null) {\n return null;\n }\n const element = `[${tag}] variant=\"${variant}\"${title ? ` title=\"${title}\"` : ''}`;\n if (assertive && configured === undefined) {\n 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.`;\n }\n if (!assertive && configured === true) {\n 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.`;\n }\n\n return null;\n });\n}\n","import type { DsIntl } from './ds-intl.types';\n\n/** English wording for every string the library invents. Used unless `provideDsIntl` overrides\n * a section. */\nexport const DS_INTL_DEFAULTS: DsIntl & {\n readonly field: Required<DsIntl['field']>;\n readonly chart: Required<DsIntl['chart']>;\n} = {\n field: {\n optional: '(optional)',\n clearInput: 'Clear input',\n showPassword: 'Show password',\n hidePassword: 'Hide password',\n overLimit: (excess) =>\n excess === 1\n ? '1 character over the limit'\n : `${excess} characters over the limit`,\n changed: 'Changed',\n },\n picker: {\n placeholder: 'Select…',\n filterPlaceholder: 'Filter…',\n clearSelection: 'Clear selection',\n noMatches: 'No matches',\n noOptions: 'No options',\n selectAll: 'Select all',\n selectAllInGroup: (group) => `All of ${group}`,\n create: (query) => `Create «${query}»`,\n moreChips: (count) => `+${count} more`,\n removeChip: (label) => `Remove ${label}`,\n selectedNoun: 'selected',\n resultCount: (count) =>\n count === 0\n ? 'No results'\n : count === 1\n ? '1 result'\n : `${count} results`,\n },\n datePicker: {\n placeholder: 'Select date',\n openCalendar: 'Choose date',\n selectMonth: 'Select month',\n selectYear: 'Select year',\n previousYears: 'Previous years',\n nextYears: 'Next years',\n previousMonth: 'Previous month',\n nextMonth: 'Next month',\n invalidDate: (mask) => `Enter a valid date (${mask})`,\n },\n timePicker: {\n selectTime: 'Select time',\n rangeStart: (label) => `${label} (from)`,\n rangeEnd: (label) => `${label} (to)`,\n clear: 'Clear',\n now: 'Now',\n done: 'Done',\n time: 'Time',\n hours: 'Hours',\n minutes: 'Minutes',\n period: 'AM/PM',\n },\n colorPicker: {\n label: 'Choose colour',\n saturationBrightness:\n 'Saturation and brightness — use arrow keys to adjust',\n hue: 'Hue',\n hexValue: 'Hex colour value',\n presets: 'Preset colours',\n },\n otpInput: {\n label: 'Verification code',\n digit: (position) => `Digit ${position}`,\n character: (position) => `Character ${position}`,\n },\n slider: {\n rangeStart: (label) => (label ? `${label} minimum` : 'Minimum'),\n rangeEnd: (label) => (label ? `${label} maximum` : 'Maximum'),\n },\n numberStepper: {\n decrease: 'Decrease',\n increase: 'Increase',\n },\n search: {\n placeholder: 'Search',\n clear: 'Clear search',\n },\n dropzone: {\n label: 'Upload files',\n title: 'Drop files here',\n hint: 'or click to browse',\n remove: (fileName) => `Remove ${fileName}`,\n uploading: 'uploading',\n success: 'success',\n error: 'error',\n },\n passwordRules: {\n pending: 'not yet met',\n met: 'met',\n failed: 'not met',\n },\n tag: {\n remove: 'Remove',\n },\n badge: {\n noun: 'notifications',\n count: (count, noun) => `${count} ${noun}`,\n overMax: (max, noun) => `More than ${max} ${noun}`,\n },\n avatar: {\n online: 'Online',\n offline: 'Offline',\n away: 'Away',\n busy: 'Busy',\n },\n avatarGroup: {\n more: (count) => `${count} more`,\n },\n descriptionList: {\n copy: 'Copy value',\n copied: 'Copied',\n },\n what3words: {\n copy: (address) => `Copy what3words address ${address}`,\n },\n dialog: {\n close: 'Close',\n closeDialog: 'Close dialog',\n dismiss: 'Dismiss',\n confirm: 'Confirm',\n cancel: 'Cancel',\n typeToConfirmBefore: 'Type',\n typeToConfirmAfter: 'to confirm',\n },\n toast: {\n region: 'Notifications',\n },\n spinner: {\n label: 'Loading',\n },\n breadcrumbs: {\n label: 'Breadcrumb',\n },\n appLayout: {\n railLabel: 'Navigation',\n },\n sidenav: {\n expandGroup: (label) => `Expand ${label}`,\n collapseGroup: (label) => `Collapse ${label}`,\n },\n sidenavFooter: {\n search: 'Search',\n searchPlaceholder: 'Search…',\n clear: 'Clear',\n noMatches: (query) => `No matches for “${query}”.`,\n typeToSearch: 'Type to search.',\n alerts: 'Alerts',\n allCaughtUp: 'You’re all caught up.',\n accountMenu: 'Account menu',\n account: 'Account',\n signedInAs: (name) => `Signed in as ${name}`,\n profile: 'Your profile',\n settings: 'Account settings',\n help: 'Help & support',\n signOut: 'Sign out',\n expand: 'Expand',\n collapse: 'Collapse',\n },\n stepper: {\n label: 'Progress',\n step: (position, label, state) => `Step ${position}: ${label} (${state})`,\n },\n tabs: {\n close: (label) => `Close ${label}`,\n },\n splitButton: {\n menuLabel: 'More actions',\n },\n filterBar: {\n more: 'more',\n panelLabel: 'More filters',\n },\n pagination: {\n label: 'Pagination',\n previous: 'Previous page',\n next: 'Next page',\n page: (page) => `Page ${page}`,\n range: (first, last, total) =>\n total === 0 ? 'Showing 0 of 0' : `Showing ${first}–${last} of ${total}`,\n perPage: (size) => `${size} per page`,\n rowsPerPage: 'Rows per page',\n },\n table: {\n actions: 'Actions',\n actionsFor: (row) => `Actions for ${row}`,\n filterColumn: (column) => `Filter ${column}`,\n resizeColumn: (column) => `Resize ${column}`,\n narrowColumn: (column) => `Narrow ${column}`,\n widenColumn: (column) => `Widen ${column}`,\n fitColumn: (column) => `Fit ${column} to its content`,\n fit: 'Fit',\n selectRow: (row) => `Select ${row}`,\n expandRow: 'Expand row',\n collapseRow: 'Collapse row',\n filterValues: 'Filter values',\n filterSearch: 'Search…',\n emptyValue: '(empty)',\n noMatches: 'No matches',\n selectedCount: (count) => `${count} selected`,\n clear: 'Clear',\n loading: 'Loading…',\n sorted: (label, direction) =>\n direction\n ? `Sorted by ${label}, ${direction === 'asc' ? 'ascending' : 'descending'}`\n : 'Sorting cleared',\n rowsExpanded: (count) => `${count} rows expanded`,\n selectAllRows: (onThisPage) =>\n onThisPage ? 'Select all rows on this page' : 'Select all rows',\n expandAllRows: (onThisPage) =>\n `Expand all rows${onThisPage ? ' on this page' : ''}`,\n collapseAllRows: (onThisPage) =>\n `Collapse all rows${onThisPage ? ' on this page' : ''}`,\n },\n tableColumns: {\n title: 'Columns',\n panelLabel: 'Column visibility',\n moveUp: 'Move up',\n moveDown: 'Move down',\n reset: 'Reset to default',\n trigger: 'Choose columns',\n },\n tableExport: {\n button: 'Export CSV',\n buttonBusy: 'Preparing…',\n preparing: 'Preparing export…',\n ready: 'Export ready',\n failed: 'Export failed',\n },\n chart: {\n empty: 'No data',\n error: 'Could not load the data',\n title: 'Chart',\n unpin: 'Unpin',\n dataTable: 'Data table',\n dataTableCaption: 'Chart data',\n legendAll: 'All',\n legendNone: 'None',\n labelColumn: 'Label',\n valueColumn: 'Value',\n shareColumn: 'Share of total',\n seriesColumn: 'Series',\n categoryColumn: 'Category',\n shareOfTotal: (share) => `${share} of total`,\n other: 'Other',\n noVisibleSeries: 'All series are hidden',\n target: (value) => `Target ${value}`,\n rowsUnder: (label) => `Rows under ${label}`,\n noted: (notes) => `Noted: ${notes.join('; ')}.`,\n noData: (label) => `${label}. No data.`,\n onePoint: (label, value, at) => `${label}, one point: ${value} at ${at}.`,\n range: (label, count, lowest, highest) =>\n `${label}, ${count} points, ${lowest} to ${highest}.`,\n trendRisingThroughout: 'Rising throughout',\n trendFallingThroughout: 'Falling throughout',\n trendRisingOverall: 'Rising overall',\n trendFallingOverall: 'Falling overall',\n trendFlat: 'Ending where it started',\n extremes: (highestLabel, highest, lowestLabel, lowest) =>\n `Highest in ${highestLabel} at ${highest}, lowest in ${lowestLabel} at ${lowest}.`,\n tableFollows: 'Full values in the table below.',\n threshold: 'Threshold',\n thresholdAbove: (name, value, count, total) =>\n `${name} at ${value}, ${count} of ${total} ${total === 1 ? 'point' : 'points'} above.`,\n thresholdInside: (name, low, high, count, total) =>\n `${name} from ${low} to ${high}, ${count} of ${total} ${total === 1 ? 'point' : 'points'} inside.`,\n funnelCaption:\n 'Each stage as a percentage of the first, and the drop from the stage above it.',\n stageColumn: 'Stage',\n percentColumn: 'Percent',\n dropColumn: 'Drop',\n fellAway: (drop) => `${drop} fell away since the stage above`,\n noReading: 'No reading',\n heatmapTitle: 'Heat map',\n heatmapSummary: (title, rows, columns, lowest, highest) =>\n `${title}, ${rows} rows by ${columns} columns, readings from ${lowest} to ${highest}.`,\n scatterTitle: 'Scatter chart',\n scatterAxis: (axis, from, to) => `${axis} from ${from} to ${to}`,\n scatterSummary: (title, count, axes, dropped) =>\n `${title}: ${count} readings drawn, ${axes}.${\n dropped > 0\n ? ` ${dropped} further readings were thinned out to keep the plot drawable; the data table lists every one.`\n : ''\n }`,\n scatterThinned: (count) =>\n `${count} readings thinned out to keep the plot drawable - every one is in the data table.`,\n waterfallTitle: 'Waterfall chart',\n waterfallCaption: 'Waterfall',\n increase: 'increase',\n decrease: 'decrease',\n total: 'total',\n stepColumn: 'Step',\n directionColumn: 'Direction',\n runningTotalColumn: 'Running total',\n endsAt: (value) => `Ends at ${value}.`,\n rangeTotal: (range, total, average) =>\n `${range}: ${total} · avg ${average}`,\n },\n};\n","import {\n InjectionToken,\n computed,\n inject,\n signal,\n type Provider,\n type Signal,\n} from '@angular/core';\nimport { DS_INTL_DEFAULTS } from './ds-intl-defaults';\nimport type { DsIntl, DsIntlOverrides } from './ds-intl.types';\n\nconst DEFAULTS = signal(DS_INTL_DEFAULTS).asReadonly();\n\n/** Every string the library invents, as a signal so a language switch re-renders in place.\n * Unprovided, it holds the English defaults. */\nexport const DS_INTL = new InjectionToken<Signal<DsIntl>>('DS_INTL', {\n factory: () => DEFAULTS,\n});\n\n/** Provide the library's wording.\n *\n * providers: [provideDsIntl({ picker: { selectAll: 'Выбрать все' } })]\n *\n * Pass an object for a fixed language, or a factory returning a signal for a language that\n * changes at runtime (the factory runs in an injection context):\n *\n * provideDsIntl(() => { const language = inject(LanguageService); return computed(() => language.dictionary().ds); })\n *\n * Works at the root, on a `Route` or on a component; a nested call MERGES section by section,\n * as `provideDsConfig` does, and several calls in one `providers` array merge in order. Numbers\n * and dates follow `DsConfig.locale`, then `LOCALE_ID`. */\nexport function provideDsIntl(\n overrides: DsIntlOverrides | (() => Signal<DsIntlOverrides>),\n): Provider {\n return [\n { provide: DS_INTL_LAYERS, useValue: overrides, multi: true },\n { provide: DS_INTL, useFactory: mergeDsIntlLayers },\n ];\n}\n\ntype DsIntlLayer = DsIntlOverrides | (() => Signal<DsIntlOverrides>);\n\nconst DS_INTL_LAYERS = new InjectionToken<readonly DsIntlLayer[]>(\n 'DS_INTL_LAYERS',\n);\n\nfunction mergeDsIntlLayers(): Signal<DsIntl> {\n const parent =\n inject(DS_INTL, { skipSelf: true, optional: true }) ?? DEFAULTS;\n const layers = inject(DS_INTL_LAYERS, { self: true }).map((layer) =>\n typeof layer === 'function' ? layer() : signal(layer).asReadonly(),\n );\n\n return computed(() =>\n layers.reduce((merged, layer) => mergeDsIntl(merged, layer()), parent()),\n );\n}\n\nfunction mergeDsIntl(parent: DsIntl, own: DsIntlOverrides): DsIntl {\n const merged = { ...parent };\n for (const section of Object.keys(own) as (keyof DsIntl)[]) {\n Object.assign(merged, {\n [section]: { ...parent[section], ...own[section] },\n });\n }\n\n return merged;\n}\n","import { LOCALE_ID, inject } from '@angular/core';\nimport { DS_CONFIG } from './ds-config';\n\n/**\n * The BCP-47 tag the library formats numbers and dates in: `DsConfig.locale`, then Angular's\n * `LOCALE_ID`, where `'en-US'` (Angular's own default, so an app that never chose) reads as\n * `'en-GB'`. Call from an injection context.\n * @internal\n */\nexport function injectDsLocale(): string {\n const appLocale = inject(LOCALE_ID);\n\n return (\n inject(DS_CONFIG).locale ??\n (appLocale === ANGULAR_DEFAULT_LOCALE ? DS_DEFAULT_LOCALE : appLocale)\n );\n}\n\nconst ANGULAR_DEFAULT_LOCALE = 'en-US';\nconst DS_DEFAULT_LOCALE = 'en-GB';\n","/**\n * Signal forms binds `min`, `max`, `minLength` and `maxLength` BY NAME and sends `undefined`\n * for no bound; the DS spells it `null`, so the write type accepts both.\n * @internal\n */\nexport function optionalBound(value: number | null | undefined): number | null {\n return value ?? null;\n}\n\n/** As `optionalBound`, for a bound the control requires a value for.\n * @internal\n */\nexport function boundOr(fallback: number) {\n return (value: number | undefined): number => value ?? fallback;\n}\n","// All paths render inside <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\">, stroke-width 1.75.\n\nexport const ICONS = {\n search: '<circle cx=\"11\" cy=\"11\" r=\"7\" /><path d=\"m20 20-3.5-3.5\" />',\n plus: '<path d=\"M12 5v14M5 12h14\" />',\n minus: '<path d=\"M5 12h14\" />',\n check: '<path d=\"m4 12 5 5L20 6\" />',\n x: '<path d=\"M6 6l12 12M18 6L6 18\" />',\n chevronDown: '<path d=\"m6 9 6 6 6-6\" />',\n chevronRight: '<path d=\"m9 6 6 6-6 6\" />',\n slash: '<path d=\"M15 5 9 19\" />',\n chevronLeft: '<path d=\"m15 6-6 6 6 6\" />',\n chevronUp: '<path d=\"m6 15 6-6 6 6\" />',\n menu: '<path d=\"M4 6h16M4 12h16M4 18h16\" />',\n arrowRight: '<path d=\"M5 12h14M13 6l6 6-6 6\" />',\n arrowUp: '<path d=\"M12 19V5M6 11l6-6 6 6\" />',\n arrowDown: '<path d=\"M12 5v14M6 13l6 6 6-6\" />',\n info: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 8v.01M11 12h1v4h1\" />',\n warn: '<path d=\"M12 3 2 21h20L12 3z\" /><path d=\"M12 10v4M12 18v.01\" />',\n error: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 8v4M12 16v.01\" />',\n success: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"m8 12 3 3 5-6\" />',\n bell: '<path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\" /><path d=\"M10 21a2 2 0 0 0 4 0\" />',\n settings:\n '<circle cx=\"12\" cy=\"12\" r=\"3\" /><path d=\"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z\" />',\n user: '<circle cx=\"12\" cy=\"8\" r=\"4\" /><path d=\"M4 21a8 8 0 0 1 16 0\" />',\n users:\n '<circle cx=\"9\" cy=\"8\" r=\"4\" /><path d=\"M2 21a7 7 0 0 1 14 0\" /><path d=\"M16 4a4 4 0 0 1 0 8M22 21a6 6 0 0 0-6-6\" />',\n home: '<path d=\"m3 11 9-8 9 8\" /><path d=\"M5 10v10h14V10\" />',\n calendar:\n '<rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\" /><path d=\"M3 10h18M8 3v4M16 3v4\" />',\n truck:\n '<path d=\"M3 16V6a1 1 0 0 1 1-1h11v11\" /><path d=\"M15 9h4l2 3v4h-6\" /><circle cx=\"7.5\" cy=\"17.5\" r=\"2\" /><circle cx=\"17.5\" cy=\"17.5\" r=\"2\" />',\n box: '<path d=\"m21 8-9-5-9 5 9 5 9-5z\" /><path d=\"M3 8v8l9 5 9-5V8\" /><path d=\"m12 13 .01 8\" />',\n map: '<path d=\"m9 4-6 3v13l6-3 6 3 6-3V4l-6 3-6-3z\" /><path d=\"M9 4v13M15 7v13\" />',\n activity: '<path d=\"M3 12h4l3-9 4 18 3-9h4\" />',\n folder:\n '<path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" />',\n edit: '<path d=\"M12 20h9\" /><path d=\"M16.5 3.5a2.1 2.1 0 1 1 3 3L7 19l-4 1 1-4z\" />',\n external:\n '<path d=\"M14 4h6v6\" /><path d=\"M20 4 10 14\" /><path d=\"M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5\" />',\n trash:\n '<path d=\"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\" /><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\" />',\n copy: '<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" /><path d=\"M5 15V5a2 2 0 0 1 2-2h10\" />',\n download: '<path d=\"M12 4v12M6 12l6 6 6-6\" /><path d=\"M4 20h16\" />',\n upload: '<path d=\"M12 20V8M6 12l6-6 6 6\" /><path d=\"M4 4h16\" />',\n eye: '<path d=\"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z\" /><circle cx=\"12\" cy=\"12\" r=\"3\" />',\n filter: '<path d=\"M3 5h18l-7 9v6l-4-2v-4z\" />',\n sort: '<path d=\"M7 4v16M3 8l4-4 4 4\" /><path d=\"M17 20V4M21 16l-4 4-4-4\" />',\n sortAsc: '<path d=\"M7 18V6M3 10l4-4 4 4\" />',\n sortDesc: '<path d=\"M7 6v12M11 14l-4 4-4-4\" />',\n grid: '<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" />',\n list: '<path d=\"M8 6h13M8 12h13M8 18h13\" /><circle cx=\"3.5\" cy=\"6\" r=\"1.2\" /><circle cx=\"3.5\" cy=\"12\" r=\"1.2\" /><circle cx=\"3.5\" cy=\"18\" r=\"1.2\" />',\n moreH:\n '<circle cx=\"5\" cy=\"12\" r=\"1.5\" /><circle cx=\"12\" cy=\"12\" r=\"1.5\" /><circle cx=\"19\" cy=\"12\" r=\"1.5\" />',\n moreV:\n '<circle cx=\"12\" cy=\"5\" r=\"1.5\" /><circle cx=\"12\" cy=\"12\" r=\"1.5\" /><circle cx=\"12\" cy=\"19\" r=\"1.5\" />',\n link: '<path d=\"M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1\" /><path d=\"M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1\" />',\n flag: '<path d=\"M5 21V5a14 14 0 0 1 14 0v9a14 14 0 0 1-14 0z\" />',\n star: '<path d=\"m12 3 2.9 6 6.6.9-4.8 4.6 1.1 6.5L12 17.8 6.2 21l1.1-6.5L2.5 9.9 9.1 9z\" />',\n inbox:\n '<path d=\"M22 12h-6l-2 3h-4l-2-3H2\" /><path d=\"M5 4h14l3 8v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8z\" />',\n archive:\n '<rect x=\"3\" y=\"3\" width=\"18\" height=\"5\" rx=\"1\" /><path d=\"M5 8v11a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8M10 12h4\" />',\n clock: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 7v5l3 2\" />',\n refresh:\n '<path d=\"M3 12a9 9 0 0 1 15-6.7L21 8\" /><path d=\"M21 3v5h-5\" /><path d=\"M21 12a9 9 0 0 1-15 6.7L3 16\" /><path d=\"M3 21v-5h5\" />',\n play: '<path d=\"M6 4l14 8-14 8z\" />',\n pause: '<path d=\"M7 4v16M17 4v16\" />',\n cmd: '<path d=\"M9 9h6v6H9zM6 9V7a3 3 0 1 1 3 3H6zM6 15v2a3 3 0 1 0 3-3H6zM18 9V7a3 3 0 1 0-3 3h3zM18 15v2a3 3 0 1 1-3-3h3z\" />',\n paperclip:\n '<path d=\"m21 11-9 9a5 5 0 0 1-7-7l9-9a3 3 0 0 1 4 4l-9 9a1 1 0 0 1-1-1l8-8\" />',\n file: '<path d=\"M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z\" /><path d=\"M14 3v6h6\" />',\n image:\n '<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" /><circle cx=\"9\" cy=\"9\" r=\"2\" /><path d=\"m21 15-5-5L5 21\" />',\n lock: '<rect x=\"4\" y=\"11\" width=\"16\" height=\"10\" rx=\"2\" /><path d=\"M8 11V7a4 4 0 0 1 8 0v4\" />',\n logout:\n '<path d=\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\" /><path d=\"m16 17 5-5-5-5M21 12H9\" />',\n help: '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9.5 9a2.5 2.5 0 0 1 5 0c0 1.5-2.5 2-2.5 4M12 17v.01\" />',\n pin: '<path d=\"M15 4.5 11 8.5 7 10 5.5 11.5 12.5 18.5 14 17 15.5 13 19.5 9\" /><path d=\"m9 15-4.5 4.5\" /><path d=\"m14.5 4 5.5 5.5\" />',\n bookmark: '<path d=\"M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16l-7-4z\" />',\n sparkle:\n '<path d=\"M12 3v6M12 15v6M3 12h6M15 12h6M5.6 5.6l4.2 4.2M14.2 14.2l4.2 4.2M5.6 18.4l4.2-4.2M14.2 9.8l4.2-4.2\" />',\n layers:\n '<path d=\"m12 3 9 5-9 5-9-5z\" /><path d=\"m3 13 9 5 9-5M3 18l9 5 9-5\" />',\n chart: '<path d=\"M3 3v18h18\" /><path d=\"M7 14l4-4 4 4 5-5\" />',\n gauge:\n '<path d=\"M12 14l4-4\" /><circle cx=\"12\" cy=\"14\" r=\"9\" /><path d=\"M3 14a9 9 0 0 1 18 0\" />',\n package:\n '<path d=\"M3 7v10l9 4 9-4V7l-9-4z\" /><path d=\"m3 7 9 5 9-5M12 12v9\" />',\n git: '<circle cx=\"6\" cy=\"6\" r=\"2.5\" /><circle cx=\"6\" cy=\"18\" r=\"2.5\" /><circle cx=\"18\" cy=\"12\" r=\"2.5\" /><path d=\"M6 8.5v7M8.5 6h4a3 3 0 0 1 3 3v0\" />',\n sun: '<circle cx=\"12\" cy=\"12\" r=\"4\" /><path d=\"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4\" />',\n moon: '<path d=\"M21 13a9 9 0 0 1-12-12 9 9 0 1 0 12 12z\" />',\n save: '<path d=\"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z\" /><path d=\"M17 21v-8H7v8M7 3v5h8\" />',\n rotate: '<path d=\"M3 12a9 9 0 1 0 3-6.7L3 8\" /><path d=\"M3 3v5h5\" />',\n qr: '<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" /><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" /><path d=\"M14 14h3v3h-3zM18 18h3v3h-3z\" />',\n globe:\n '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\" />',\n phone:\n '<path d=\"M5 4h4l2 5-2 1a11 11 0 0 0 5 5l1-2 5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z\" />',\n bin: '<rect x=\"3\" y=\"6\" width=\"18\" height=\"14\" rx=\"2\" /><path d=\"M7 6V4h10v2\" />',\n pen: '<path d=\"M3 17V21h4l11-11-4-4z\" />',\n smile:\n '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9 9v.01M15 9v.01M8 14a5 5 0 0 0 8 0\" />',\n frown:\n '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M9 9v.01M15 9v.01M8 16a5 5 0 0 1 8 0\" />',\n mail: '<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" /><path d=\"m3 7 9 6 9-6\" />',\n 'eye-off':\n '<path d=\"M3 3l18 18\" /><path d=\"M10.6 6.1A10 10 0 0 1 12 6c6 0 10 7 10 7a14 14 0 0 1-2.4 3.1\" /><path d=\"M6.7 6.7A14 14 0 0 0 2 12s4 7 10 7a10 10 0 0 0 4.5-1\" /><path d=\"M9.9 14.1A3 3 0 0 1 9 12a3 3 0 0 1 3-3 3 3 0 0 1 2.1.9\" />',\n 'check-circle': '<circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"m8 12 3 3 5-6\" />',\n circle: '<circle cx=\"12\" cy=\"12\" r=\"8\" />',\n drag: '<circle cx=\"9\" cy=\"6\" r=\"1.6\" /><circle cx=\"15\" cy=\"6\" r=\"1.6\" /><circle cx=\"9\" cy=\"12\" r=\"1.6\" /><circle cx=\"15\" cy=\"12\" r=\"1.6\" /><circle cx=\"9\" cy=\"18\" r=\"1.6\" /><circle cx=\"15\" cy=\"18\" r=\"1.6\" />',\n scan: '<path d=\"M4 8V5a1 1 0 0 1 1-1h3M16 4h3a1 1 0 0 1 1 1v3M20 16v3a1 1 0 0 1-1 1h-3M8 20H5a1 1 0 0 1-1-1v-3\" />',\n wifi: '<path d=\"M2 9.5a15 15 0 0 1 20 0\" /><path d=\"M5 13a10 10 0 0 1 14 0\" /><path d=\"M8.5 16.5a5 5 0 0 1 7 0\" /><path d=\"M12 20h.01\" />',\n 'wifi-off':\n '<path d=\"m3 3 18 18\" /><path d=\"M12 20h.01\" /><path d=\"M8.5 16.5a5 5 0 0 1 7 0\" /><path d=\"M5 13a10 10 0 0 1 3.5-2.3\" /><path d=\"M11 8.6A10 10 0 0 1 19 13\" /><path d=\"M2 9.5a15 15 0 0 1 5.7-3.2\" /><path d=\"M11.6 5.6A15 15 0 0 1 22 9.5\" />',\n} as const;\n\n/** Built-in DS icon names. Consumers extend the runtime set via `provideDsIcons({...})`; the\n * type widens to `string` so a custom name is accepted, without autocomplete. */\nexport type IconName = keyof typeof ICONS | (string & {});\n","const NON_TEXT_INPUT_TYPES = new Set([\n 'button',\n 'checkbox',\n 'color',\n 'file',\n 'image',\n 'radio',\n 'range',\n 'reset',\n 'submit',\n]);\n\n/** True when the key landed on a control that consumes its own keystrokes.\n * @internal\n */\nexport function isTextEntryTarget(event: Event): boolean {\n const target = event.target;\n if (!(target instanceof HTMLElement)) {\n return false;\n }\n if (target.isContentEditable) {\n return true;\n }\n const tag = target.tagName.toLowerCase();\n if (tag === 'textarea' || tag === 'select') {\n return true;\n }\n\n return (\n tag === 'input' &&\n !NON_TEXT_INPUT_TYPES.has((target as HTMLInputElement).type.toLowerCase())\n );\n}\n","/** True when `element` is showing less text than it holds, horizontally.\n *\n * Descendants count: a template-driven cell puts the ellipsis on a child. Only horizontal:\n * a clamped block hides whole LINES with `scrollWidth` equal to `clientWidth`.\n */\nexport function isTextClipped(element: HTMLElement): boolean {\n if (element.scrollWidth > element.clientWidth) {\n return true;\n }\n\n return [...element.querySelectorAll<HTMLElement>('*')].some(\n (child) => child.scrollWidth > child.clientWidth,\n );\n}\n","/**\n * Index arithmetic for a keyboard cursor over options: skips disabled entries, wraps at the ends.\n */\nexport interface DsListCursorList {\n length: number;\n isEnabled: (index: number) => boolean;\n}\n\n/** Where the cursor lands, or -1 when nothing in the list can take it.\n * @internal\n */\nexport function firstEnabledIndex(list: DsListCursorList): number {\n for (let index = 0; index < list.length; index += 1) {\n if (list.isEnabled(index)) {\n return index;\n }\n }\n\n return -1;\n}\n\n/** @internal */\nexport function lastEnabledIndex(list: DsListCursorList): number {\n for (let index = list.length - 1; index >= 0; index -= 1) {\n if (list.isEnabled(index)) {\n return index;\n }\n }\n\n return -1;\n}\n\nconst CURSOR_KEYS = new Set([\n 'ArrowDown',\n 'ArrowUp',\n 'PageDown',\n 'PageUp',\n 'Home',\n 'End',\n 'Enter',\n]);\n\n/** Whether `key` moves the cursor or picks the row under it.\n * @internal\n */\nexport function isListCursorKey(key: string): boolean {\n return CURSOR_KEYS.has(key);\n}\n\n/**\n * The next enabled index `step` away from `from`, wrapping at both ends.\n *\n * `from` of -1 means \"no cursor yet\".\n * @internal\n */\nexport function nextEnabledIndex(\n list: DsListCursorList,\n from: number,\n step: number,\n): number {\n if (list.length === 0) {\n return -1;\n }\n if (from < 0) {\n return step > 0 ? firstEnabledIndex(list) : lastEnabledIndex(list);\n }\n\n let index = from;\n // eslint-disable-next-line @typescript-eslint/prefer-for-of -- walks from `from` with modulo wraparound; `attempts` only bounds the walk, it is not a sequential index\n for (let attempts = 0; attempts < list.length; attempts += 1) {\n index = (index + step + list.length) % list.length;\n if (list.isEnabled(index)) {\n return index;\n }\n }\n\n return from;\n}\n","import type { IconName } from './icon-names';\n\n/**\n * The shape every picker's option shares (select, multi-select, autocomplete). Each keeps its\n * own exported name. `T` exists because autocomplete carries typed values.\n */\nexport interface DsOption<T = string> {\n value: T;\n label: string;\n disabled?: boolean;\n /** Why this option cannot be picked; reaches the row as `aria-describedby`. Needs `disabled`. */\n disabledReason?: string;\n /** Rendered before the label at 16px. */\n icon?: IconName;\n}\n\n/** A labelled section of options. `disabled` turns the whole section off. */\nexport interface DsOptionGroup<T = string> {\n label: string;\n options: DsOption<T>[];\n disabled?: boolean;\n}\n\n/**\n * What a picker's `options` input takes: flat options, groups, or both mixed.\n */\nexport type DsOptionItem<T = string> = DsOption<T> | DsOptionGroup<T>;\n\nexport function isDsOptionGroup<T>(\n item: DsOptionItem<T>,\n): item is DsOptionGroup<T> {\n return 'options' in item && Array.isArray((item as DsOptionGroup<T>).options);\n}\n\n/** Every option in `items`, groups flattened in place, in source order. */\nexport function flattenDsOptions<T>(\n items: readonly DsOptionItem<T>[],\n): DsOption<T>[] {\n return items.flatMap((item) =>\n isDsOptionGroup(item)\n ? item.options.map((option) =>\n // Copy only when the flag is missing: pickers pre-apply a disabled group to the options\n // they render, and a second copy would break the identity their flat-index lookup uses.\n item.disabled && !option.disabled\n ? { ...option, disabled: true }\n : option,\n )\n : [item],\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;;;;;;;AAOG;SACa,eAAe,GAAA;IAI7B,IAAI,iBAAiB,GAAG,KAAK;IAE7B,OAAO;AACL,QAAA,IAAI,CAAC,KAAmB,EAAA;YACtB,iBAAiB;AACf,gB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],
135
- "action": "None, unless a tooltip string holds `**` meant literally: write `\\*\\*` there.",
137
+ "action": "None, unless a tooltip string holds `**` meant literally: write `\\*\\*` there. Where `[dsTooltip]` repeats text its host already prints, drop `[dsTooltip]` and keep `dsTooltipWhenClipped`, which shows the host's text as written.",
136
138
  "appliesWhen": "Every `dsTooltip` string, including one a component builds from data. `dsTooltipWhenClipped` with no `dsTooltip` shows the host's text as written and is unaffected.",
137
- "pitfall": "A string with two `**` loses both and the text between them turns bold, with no error; user-supplied text reaching a tooltip needs its `**` escaped.",
139
+ "pitfall": "A string with two `**` loses both and the text between them turns bold, with no error; user-supplied text reaching a tooltip needs its `**` escaped. A `[dsTooltip]` bound to the same stored text its host prints shows it differently once that text holds a `**` pair: asterisks on the page, bold in the tip. A `truncate` column of `ds-table` passes its cell value to `dsTooltip` the same way.",
138
140
  "restore": "[dsTooltip]=\"text().replaceAll('**', '\\*\\*')\"",
139
141
  "verify": "Every tooltip string whose text contains `**` shows the asterisks, or bold where bold was meant."
140
142
  },
@@ -223,9 +225,9 @@
223
225
  "detect": [
224
226
  "truncate: true"
225
227
  ],
226
- "action": "None, unless a column needs the old 240px cap: add `width: 272` to it (240 plus the cell padding at the default density).",
228
+ "action": "None, unless a column needs the old 240px cap: add `width: 272` to it (240 plus the cell padding at the default density); where it must only stop shrinking, set `minWidth` and the table scrolls sideways instead.",
227
229
  "appliesWhen": "A `ds-table` column with `truncate: true` and no `width`. A column with a numeric `width` or `width: 'content'` clips as before, and a column without `truncate` is unaffected.",
228
- "pitfall": "A column of long values now takes the room the other columns leave, up to the widest value on any page, so a screenshot shows it wider when the table has room and narrower, down to its header label, when it does not; in a table that scrolls sideways anyway it keeps the 240px clip.",
230
+ "pitfall": "A column of long values now takes the room the other columns leave, up to the widest value on any page, so a screenshot shows it wider when the table has room and narrower, down to its header label, or to its `minWidth`, when it does not; in a table that scrolls sideways anyway it keeps the 240px clip.",
229
231
  "restore": "{ key: 'email', label: 'Email', truncate: true, width: 272 }",
230
232
  "verify": "Open a table with a `truncate` column without `width`: a short value shows whole, a long one is cut at the column's edge with no empty space after the ellipsis, the column keeps its width when you page, and in a table that scrolls sideways anyway it clips at 240px."
231
233
  },
@@ -278,13 +280,17 @@
278
280
  "outline"
279
281
  ],
280
282
  "detect": [
283
+ "border-bottom: 2px solid",
284
+ "border-left: 1px solid",
285
+ "border-right: 1px solid",
286
+ "background: transparent;",
281
287
  ":focus-visible {",
282
288
  ":focus-visible{",
283
289
  "&:focus-visible"
284
290
  ],
285
- "action": "None, unless an element of yours paints a background or border, declares no border-radius and must stay square while focused: declare `border-radius: 0` on it.",
286
- "appliesWhen": "Ships in `styles/focus`, which `styles/ds` forwards, and for a component's own elements in that component's stylesheet. Every keyboard-focused element that declares no border-radius takes `--focus-ring-radius` through `:where(:focus-visible)`; an element that declares any radius, `0` included, is unaffected.",
287
- "pitfall": "A full-width row or flat button with a fill and no declared radius shows rounded fill corners only while focused, so a screenshot taken at rest looks unchanged.",
291
+ "action": "Declare `border-radius: 0` on every button, link or tabindex element of yours that draws a background, a hover fill or a one-sided border (a tab underline, a divider) and declares no `border-radius`. An element that declares any radius needs nothing.",
292
+ "appliesWhen": "Ships in `styles/focus`, which `styles/ds` forwards, and for a component's own elements in that component's stylesheet; an app that assembles the partials itself and includes `focus.emit-rules` gets it too. Every keyboard-focused element that declares no border-radius takes `--focus-ring-radius` through `:where(:focus-visible)`; an element that declares any radius, `0` included, is unaffected.",
293
+ "pitfall": "A full-width row or flat button with a fill and no declared radius shows rounded fill corners only while focused, so a screenshot taken at rest looks unchanged. A one-sided border bends at both ends while focused: a tab's `border-bottom` underline curves up into the corners and a `border-left` divider bows, on keyboard focus only.",
288
294
  "restore": ":where(:focus-visible) { border-radius: 0; }",
289
295
  "verify": "The built CSS has `border-radius:var(--focus-ring-radius)` inside `:where(:focus-visible)`, and a focused element with a fill keeps the corners it shows at rest."
290
296
  },
@@ -860,7 +866,32 @@
860
866
  "text": "A ds-line-chart skeleton under `--ds-line-chart-placeholder-height` is that tall with its axis labels included; unset, it is as tall as the drawn plot with its labels.",
861
867
  "verify": "Set `--ds-line-chart-placeholder-height: 200px` on a loading ds-line-chart with no series and confirm the skeleton above the legend placeholders is 200px tall."
862
868
  },
863
- "While loading keeps options on screen under the overlay, ds-select, ds-multi-select and ds-autocomplete ignore the arrow, PageUp, PageDown, Home, End and Enter keys and mark the field aria-busy until loading clears; typing in the filter and the multi-select select-all row stay live."
869
+ "While loading keeps options on screen under the overlay, ds-select, ds-multi-select and ds-autocomplete ignore the arrow, PageUp, PageDown, Home, End and Enter keys and mark the field aria-busy until loading clears; typing in the filter and the multi-select select-all row stay live.",
870
+ {
871
+ "text": "Every icon-only control takes the pointer over at least `--hit-xs` (24px) around the size it is drawn at: the close and remove buttons of `ds-alert`, `ds-banner`, `ds-toast`, `ds-dropzone` and `ds-tag`, the clear button of `ds-input`, `ds-search`, `ds-select`, `ds-autocomplete`, `ds-multi-select` and `ds-time-picker`, the `ds-date-picker` calendar toggle, the `ds-description-item` copy button, the `ds-bar-chart` row toggle, the `ds-sidenav-footer` search clear, an icon-only `ds-breadcrumbs` item and `ds-info-hint`. The focus ring is drawn on that target, except on `ds-info-hint` and an icon-only `ds-breadcrumbs` item, whose ring stays on the icon. Nothing around them moves, except the arrows of the `ds-table` width panel, which sit `--space-2-5` apart instead of `--space-1`.",
872
+ "verify": "Point just outside the close button of a `ds-banner` and confirm a click there still closes it, and tab to it and confirm the focus ring surrounds a 24px square rather than the icon."
873
+ },
874
+ {
875
+ "text": "The `ds-table` column filter button takes a 24px target and sits `--space-2` after its label instead of `--space-1`, so the header label of a filterable column clips 4px sooner. The button is at full opacity while focused.",
876
+ "verify": "Open a table whose filterable column has a header label within 4px of fitting and confirm it now ends in an ellipsis, then tab to its filter button and confirm it shows at full opacity."
877
+ },
878
+ {
879
+ "text": "The close button of `ds-banner`, `ds-alert`, `ds-toast` and `ds-drawer` and the `ds-dropzone` remove button centre their icon in a square box, so it sits in the middle of the focus ring instead of on a text line.",
880
+ "verify": "Tab to the close button of a `ds-banner` and a `ds-toast` and confirm the icon sits in the middle of its focus ring."
881
+ },
882
+ {
883
+ "text": "The focus ring of a `ds-table` header label, a `ds-list-item` and a `ds-breadcrumbs` link is drawn outside the text instead of over its first and last letter.",
884
+ "verify": "Tab to a breadcrumb link and a list item and confirm the ring clears the first and last letter."
885
+ },
886
+ {
887
+ "text": "The `ds-date-picker` month and year arrows sit in the centre of their button.",
888
+ "verify": "Open a date picker and confirm each arrow sits in the middle of its hover fill."
889
+ },
890
+ "The content of a chart tooltip no longer sets `pointer-events: none`, so a pinned chart tooltip, whose pane takes the pointer, lets its text be selected and a link in a `tooltipTemplate` be clicked.",
891
+ "`TableColumn.minWidth` sets the narrowest a `ds-table` column gets, in px with the padding: a `truncate` column without `width` stops shrinking at it and the table scrolls sideways instead. It is ignored when `width` is a number.",
892
+ "`styles/target` gives an icon-only control of yours the library's 24px target: `@include target.min-size` last in its rule.",
893
+ "`styles/component-base` gives a component of yours the library's base: `@include component-base.rules` first in its stylesheet sets `border-box`, the inherited font on form controls, zero heading margins and the base focus ring on its own elements.",
894
+ "`--ds-date-picker-max-width` caps the width of `ds-date-picker`. It defaults to `100%`, so nothing changes until it is set."
864
895
  ],
865
896
  "deleteList": [
866
897
  {
@@ -895,11 +926,11 @@
895
926
  ],
896
927
  "find": [
897
928
  "min-width: 100%",
898
- "width: 0;",
929
+ "width: 0; min-width: 100%",
899
930
  "dsTooltipWhenClipped"
900
931
  ],
901
932
  "why": "`truncate: true` on a column without `width` clips at the column width and shows the full value in a tooltip. The wrapper is still legitimate where the column must yield all its room to its neighbours rather than grow to its text.",
902
- "replaceWith": "`truncate: true` on the column"
933
+ "replaceWith": "`truncate: true` on the column; in the cell template drop the wrapper's `width: 0`, `min-width: 100%`, `overflow`, `text-overflow` and `white-space` and its `dsTooltipWhenClipped`, and keep the template only for markup it adds besides the value. The cell's tooltip shows the column's `cell` for the row, or the row's value under `key` when `cell` is unset, not what the template renders: a template that formats the value, such as a `??` fallback or a pipe, needs the same formatting in `cell`."
903
934
  },
904
935
  {
905
936
  "id": "skeleton-shimmer-use",
@@ -63,13 +63,17 @@
63
63
  ": TableColumn<",
64
64
  "TableColumn[]",
65
65
  "truncate: true",
66
- "align: 'right'"
66
+ "align: 'right'",
67
+ "align: \"right\"",
68
+ "sortValue:",
69
+ "label: ''",
70
+ "label: \"\""
67
71
  ],
68
- "action": "None, unless a column holds ids, dates, numbers or statuses: add `kind: 'id'`, `'date'`, `'number'` or `'status'` to it. A column whose values must show whole gets `width: 'content'` or a `minWidth`.",
72
+ "action": "Give every ds-table column of ids, dates, numbers or statuses its `kind`: `'id'`, `'date'`, `'number'` or `'status'`. Start with every column config that has `align: 'right'` and no `kind`, then the id, date and status columns. A date column whose values carry a time, such as Jul 17, 2026, 9:00AM, keeps no `kind` or gets `width: 'content'`. A column whose values must show whole gets `width: 'content'` or a `minWidth`. A column with an empty label and no `width` (an icon, an arrow, a row of buttons) gets `width: 'content'` or a numeric `width`.",
69
73
  "appliesWhen": "Every ds-table column without a numeric `width`. A column with a numeric `width` is as wide as before; a column the reader dragged with dsTableResize keeps its dragged width.",
70
- "pitfall": "A value longer than its column wraps (a plain column) or ellipsizes (a `truncate` column) where the column used to grow to it, and a column of short values keeps its share with space after them. A cell template holding an element wider than its column overflows into the next one.",
74
+ "pitfall": "A value longer than its column wraps (a plain column) or ellipsizes (a `truncate` column) where the column used to grow to it, and a column of short values keeps its share with space after them. A cell template holding an element wider than its column overflows into the next one. `kind: 'date'` is 130px with the cell padding inside it, 16px each side at the default density, so 98px of text: room for a date, not for a date with a time, which wraps there. A column with an empty label and no `width` is a text column too and takes an equal share: an icon or arrow column grows and squeezes its neighbours, a column of buttons shrinks and clips them.",
71
75
  "restore": "{ key: 'notes', label: 'Notes', width: 'content' }",
72
- "verify": "Page every ds-table forward and back and change its data: no column changes width, and each id, date, number and status column is 110-130px.",
76
+ "verify": "Every column config with `align: 'right'` carries a `kind` or a numeric `width`, every id, date and status column carries a `kind`, and no `kind: 'date'` column shows a time. Then page every ds-table forward and back and change its data: no column changes width, and each id, date, number and status column is 110-130px.",
73
77
  "supersedes": [
74
78
  "0.15.0#table-truncate-without-width-grows"
75
79
  ],
@@ -156,13 +160,14 @@
156
160
  "detect": [
157
161
  "provideDsConfig(",
158
162
  "datePicker:",
159
- "LOCALE_ID"
163
+ "LOCALE_ID",
164
+ "locale:"
160
165
  ],
161
- "action": "None, unless a calendar must keep starting on Monday whatever the locale: set `datePicker: { firstDayOfWeek: 1 }` in `provideDsConfig`, or `[firstDayOfWeek]=\"1\"` on the one `ds-date-picker`.",
166
+ "action": "Where `provideDsConfig` sets `locale` or `datePicker.locale`, pin the first weekday the app means: `datePicker: { firstDayOfWeek: 1 }` for Monday, `0` for Sunday. Where one calendar differs, bind `[firstDayOfWeek]` on that `ds-date-picker`. With no locale in the config, none, unless a calendar must keep starting on Monday whatever the locale: set `datePicker: { firstDayOfWeek: 1 }`.",
162
167
  "appliesWhen": "Every `ds-date-picker`, single and range, that binds no `firstDayOfWeek` under a config with no `datePicker.firstDayOfWeek`, in an app whose locale (`locale`, then `datePicker.locale`, then the config's `locale`, then `LOCALE_ID`) is not Monday-first: Sunday for a config `locale` of en-US and for ja-JP, Saturday for ar-EG. An app with no locale, en-GB, de-DE and ru-RU keep Monday. A browser with no week data keeps Monday. A bound `firstDayOfWeek` or `datePicker.firstDayOfWeek` wins as before.",
163
- "pitfall": "A `LOCALE_ID` of en-US reads as en-GB and keeps Monday; only a config `locale: 'en-US'` brings Sunday, so look for that before assuming a screen is unaffected.",
168
+ "pitfall": "A `LOCALE_ID` of en-US reads as en-GB and keeps Monday; only a config `locale: 'en-US'` brings Sunday, so look for that before assuming a screen is unaffected. A config `locale` set only to format numbers and dates now also picks the first weekday: en-US starts the calendar on Sunday in a browser with Intl week data and on Monday in one without, so one build shows two calendars until `datePicker.firstDayOfWeek` is pinned.",
164
169
  "restore": "provideDsConfig({ datePicker: { firstDayOfWeek: 1 } })",
165
- "verify": "Open a ds-date-picker on each screen and confirm its first weekday header is the day the app means: the locale's, or the day `firstDayOfWeek` pins."
170
+ "verify": "Every `provideDsConfig` that sets `locale` or `datePicker.locale` also sets `datePicker.firstDayOfWeek`. Open a ds-date-picker on each screen and confirm its first weekday header is the day the app means: the locale's, or the day `firstDayOfWeek` pins."
166
171
  },
167
172
  {
168
173
  "id": "time-picker-format-from-locale",
@@ -243,7 +248,7 @@
243
248
  "--primary-h"
244
249
  ],
245
250
  "action": "None, unless your brand set `--primary-h/s/l` to colour its links in dark or its visited links: set `--ds-link-color` and `--ds-link-color-visited` yourself where you want brand-coloured links.",
246
- "appliesWhen": "A theme that sets `--primary-h`, `--primary-s` or `--primary-l` to its brand. In dark, the link was `hsl(var(--primary-h) 90% 74%)` and the visited link `hsl(var(--primary-h) 50% 70%)`; in light the visited link was `hsl(var(--primary-h) calc(var(--primary-s) * 0.6) 45%)`. `.link` now defaults to the `--blue-*` palette in both themes, from `styles/link`, which `styles/ds` forwards, so links are blue under any brand. A theme that leaves the channels alone sees no change.",
251
+ "appliesWhen": "A theme that sets `--primary-h`, `--primary-s` or `--primary-l` to its brand. In dark, the link was `hsl(var(--primary-h) 90% 74%)`; `--link-visited` was `hsl(var(--primary-h) 50% 70%)` in dark and `hsl(var(--primary-h) calc(var(--primary-s) * 0.6) 45%)` in light, while a visited `.link` painted in the link colour. `.link` now defaults to the `--blue-*` palette in both themes, from `styles/link`, which `styles/ds` forwards, so links are blue under any brand. A theme that leaves the channels alone sees no change.",
247
252
  "pitfall": "A theme that re-points the `--blue-*` palette itself recolours links with it; only the `--primary-*` channels lost their hold on links.",
248
253
  "restore": ".link { --ds-link-color-visited: hsl(var(--primary-h) calc(var(--primary-s) * 0.6) 45%); } :root[data-theme='dark'] .link { --ds-link-color: hsl(var(--primary-h) 90% 74%); --ds-link-color-visited: hsl(var(--primary-h) 50% 70%); }",
249
254
  "verify": "Under your brand open a page with a link and a visited link in light and dark and confirm the colour is the one you want.",
@@ -506,13 +511,15 @@
506
511
  "detect": [
507
512
  "toBeDisabled()",
508
513
  "button:disabled",
509
- "button[disabled]"
514
+ "button[disabled]",
515
+ "(click)=",
516
+ "[loading]=\"true\""
510
517
  ],
511
- "action": "None, unless a ds-button binds [disabled] to the same flag as [loading]: remove that [disabled]. Where a test or a stylesheet reads the native disabled state of a loading ds-button, read aria-disabled=\"true\" instead.",
518
+ "action": "Where a ds-button binds [disabled] to the same flag as [loading], remove that [disabled]. A ds-button that is loading for good (`[loading]=\"true\"`, a placeholder that never acts) keeps its [disabled], or gets one. Where a (click) bound on a loading ds-button starts work, guard the handler on the app's own busy flag, or move it to (pressed). Where a test or a stylesheet reads the native disabled state of a loading ds-button, read aria-disabled=\"true\" instead.",
512
519
  "appliesWhen": "Every ds-button with loading set. A ds-button rendering a link ignores loading and is not affected, and a ds-button with disabled set keeps the native attribute.",
513
- "pitfall": "A [disabled] bound to the same flag as [loading] still disables the button natively, so focus still falls to the page the moment the work starts.",
520
+ "pitfall": "A [disabled] bound to the same flag as [loading] still disables the button natively, so focus still falls to the page the moment the work starts. A ds-button with loading and no disabled is focusable and reached by Tab, so one that loads for good is a control that never acts. A focused loading ds-button turns Enter and Space into a click: the component calls preventDefault and withholds (pressed), but the click still bubbles to a (click) bound on the ds-button element and runs that handler again mid-work, where the native disabled of the previous release kept the button out of keyboard reach.",
514
521
  "restore": null,
515
- "verify": "Press each loading-bound ds-button from the keyboard and confirm focus stays on it, with its ring, until the work ends."
522
+ "verify": "Press each loading-bound ds-button from the keyboard and confirm focus stays on it, with its ring, until the work ends, and that pressing Enter again while it loads starts nothing a second time. A ds-button that is always loading is skipped by Tab."
516
523
  },
517
524
  {
518
525
  "id": "pagination-loading-keeps-focus",