@ids-group-ltd/ids-design-system 0.12.2 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +751 -6
- package/components.md +87 -2
- package/docs/agent/INDEX.md +11 -1
- package/docs/agent/charts/chart-colour-which-palette-a-chart-takes.md +9 -0
- package/docs/agent/charts/chart-frame-the-box-a-chart-draws-around-itself.md +12 -0
- package/docs/agent/charts/ds-bar-chart.md +15 -0
- package/docs/agent/charts/ds-column-chart.md +14 -0
- package/docs/agent/charts/ds-donut-chart.md +17 -0
- package/docs/agent/charts/ds-funnel-chart.md +16 -0
- package/docs/agent/charts/ds-line-chart.md +15 -0
- package/docs/agent/forms/ds-button.md +6 -2
- package/docs/agent/forms/ds-number-stepper.md +1 -0
- package/docs/agent/navigation/ds-sidenav-item.md +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +16 -14
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +161 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +20 -21
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +107 -40
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +197 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +10 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +3 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +173 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +299 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +69 -17
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +366 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +12 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +631 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +3 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +3 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +14 -22
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +18 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +4 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +10 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +30 -71
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +3 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +3 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +31 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +409 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +17 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +3 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +10 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.12.3.json +83 -0
- package/migrations/0.13.0.json +530 -0
- package/package.json +57 -1
- package/styles/_chart-data-table.scss +95 -0
- package/styles/_chart-frame.scss +53 -0
- package/styles/_chart-interactive.scss +40 -0
- package/styles/_chart-motion.scss +45 -0
- package/styles/_control-line.scss +45 -0
- package/styles/_field-state.scss +14 -15
- package/styles/_focus.scss +31 -60
- package/styles/_tokens-charts.scss +149 -39
- package/styles/_tokens.scss +35 -31
- package/themes/dark/_theme.scss +37 -29
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +11 -9
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +104 -0
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +8 -17
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +60 -30
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +34 -0
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +78 -0
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +105 -0
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components-donut-chart.d.ts +113 -0
- package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +52 -11
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +109 -0
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +5 -7
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +241 -0
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +10 -10
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +5 -2
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +16 -4
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +13 -28
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +11 -1
- package/types/ids-group-ltd-ids-design-system-components.d.ts +163 -3
- package/types/ids-group-ltd-ids-design-system-core.d.ts +12 -1
- package/types/ids-group-ltd-ids-design-system.d.ts +9 -2
|
@@ -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/field-bounds.ts","../../../src/lib/core/icon-names.ts","../../../src/lib/core/key-target.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: the browser fires it at the nearest common\n * ancestor of the press and the release, so a drag that starts inside the dialog and\n * ends on the backdrop fires `click` ON THE BACKDROP, and a\n * `target === currentTarget` check waves it through. Hence tracking the press:\n * dismiss only when press AND release both land on the backdrop itself. `ds-drawer` needs none of this because its scrim\n * is a SIBLING of the panel, which makes their common ancestor a third element.\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, Provider, inject } from '@angular/core';\nimport type { IconName } from './icon-names';\nimport type { DsSize } from './size';\nimport type { CardElevation, CardPadding } from './card.types';\nimport type { DsToastPosition } from './toast-position';\n\nexport interface DsConfig {\n field?: {\n /** Default for every field's `reserveMessage` — keeps a message line's worth\n * of space even when empty. Default `false`. Setting `true` here applies to\n * EVERY field in the injector's subtree, which is rarely what a whole app\n * wants; prefer `dsReserveMessages` on the individual form that validates. */\n reserveMessage?: boolean;\n /** Fallback text per validation-error kind, for errors whose validator did\n * not carry a `message` — Angular's built-ins never do, so this is where\n * `required`, `minlength`, `email` and friends get their wording. A message\n * on the error itself always wins, so one shared map here plus a per-case\n * override at the validator covers both. 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\n * `error`, `warning` and `success` and NONE for `hint`, which is resting text\n * rather than a state. Each key is independent — a glyph name replaces the\n * default, `false` removes it, and `stateIcons: false` removes all four.\n *\n * The glyphs exist because warning and success differ from each other by hue\n * and nothing else, which WCAG 1.4.1 forbids a state from resting on. */\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` / date-picker time — 24h or 12h AM/PM. Default `'24h'`. */\n format?: '24h' | '12h';\n };\n avatar?: {\n /** How `ds-avatar` turns its `name` into initials, app-wide. The built-in rule\n * takes the first two words, which is a Latin-script guess — an app whose names\n * follow another convention supplies its own here. */\n initials?: (name: string) => string;\n };\n brand?: {\n /** Brand text for `ds-sidenav` and `ds-auth-layout` — the wordmark, and the\n * source of the 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 /* No accent key on purpose: a two-tone wordmark is projected markup\n (`[dsBrandName]`), so the consumer says where the accent belongs. A config\n string would have to be split back apart, which is the guessing the\n projection exists to avoid. */\n };\n modal?: {\n /** Default for `dividers` on `ds-modal` and `ds-modal-card`. Default `true`.\n * Configurable app-wide because a `ModalService` confirm renders a card with no\n * `ds-modal` ancestor to bind — an attribute cannot reach it. */\n dividers?: boolean;\n };\n toast?: {\n /** Where the stack sits. Merged field by field over the built-in\n * `right` / `top` / `var(--space-6)`, so naming one key keeps the other two. */\n position?: Partial<DsToastPosition>;\n /** Maximum number of toasts visible at once. Extras are queued and shown as\n * earlier ones dismiss. Default `5`; `0` means unlimited. */\n maxVisible?: number;\n };\n picker?: {\n /** Default for `ds-multi-select``s `searchable`. `true` always shows the panel's\n * filter row, `false` never, and a NUMBER is a threshold — the row appears once\n * there are at least that many options. Default `true`. One threshold for the\n * app is the point: left to each call site, two panels of the same length in\n * the same screen end up disagreeing. */\n searchable?: boolean | number;\n };\n\n control?: {\n /** Default `size` for every control on the field-height contract. Default `'md'`.\n *\n * A different axis from `[data-density]`: that tier rewrites hit targets and\n * padding in CSS, this picks which of the three declared sizes a control renders\n * at. A screen that differs still binds `size` per element. */\n size?: DsSize;\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` — the proxy that keeps the\n * horizontal bar reachable on a tall table. Default `false`. Here rather than\n * per table because every new table is one forgotten binding away from\n * scrolling invisibly. */\n stickyScrollbar?: boolean;\n /** Default for `ds-table`'s `bordered` — the outer border and radius.\n * Default `false`. */\n bordered?: boolean;\n /** Default for `ds-table`'s `stickyScrollbarOffset` — where the sticky horizontal bar comes\n * to rest, as any CSS length. Unset, each table measures its own scroll container's bottom\n * padding and cancels it, which puts the bar on the edge the reader sees; set this for an app\n * whose scrollports end somewhere else, so every table agrees without a binding each. */\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 datePicker?: {\n /** BCP-47 locale for `ds-date-picker` names + value format. Default `'en-US'`. */\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 … 6=Saturday. Default `1` (Monday). */\n firstDayOfWeek?: number;\n };\n}\n\nexport const DS_CONFIG = new InjectionToken<DsConfig>('DS_CONFIG', {\n factory: () => ({}),\n});\n\n/** Provide DS-level defaults.\n *\n * providers: [provideDsConfig({ control: { size: 'sm' } })]\n *\n * Works at the app root, on a `Route`, or on a component/directive — the config\n * resolves through the element-injector chain, so a subtree can differ from the\n * app. Component inputs (e.g. `<ds-card padding=\"lg\">`) still win.\n *\n * A nested call MERGES with the config above it section by section; only the keys\n * you name are replaced. ONE call per injector, though: two in the SAME\n * `providers` array both resolve their parent with `skipSelf`, so the later wins\n * and the earlier is silently lost.\n */\nexport function provideDsConfig(config: DsConfig): Provider {\n return { provide: DS_CONFIG, useFactory: () => inheritDsConfig(config) };\n}\n\n/**\n * The factory body behind `provideDsConfig`, exported so a directive can put the\n * provider in its metadata as a plain object literal. Calling `provideDsConfig`\n * there instead runs at module-evaluation time, which makes the module\n * side-effectful and costs the consumer its tree-shaking (measured at +566 kB\n * moved into the eager chunk).\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 Object.assign(merged, {\n [section]: { ...parent[section], ...own[section] },\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\n * report whether it was bound, so `null` is what separates \"not set\" from an explicit\n * value. 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\n/**\n * Warns once per distinct message, not once per recomputation: the effect re-runs whenever any\n * signal the condition reads changes, so without that a static misconfiguration would log again\n * on every keystroke.\n *\n * Returning the message from the condition keeps the two together — a condition\n * that drifts from its message is how a warning ends up describing a state that\n * cannot happen any more.\n *\n * Must be called from an injection context.\n *\n * Callers wrap this in `if (typeof ngDevMode === 'undefined' || ngDevMode)`. That is\n * a BUILD-time expression, not a repeat of the `isDevMode()` below: the intent is for\n * a minifier to fold it and drop the message with it, which `isDevMode()` — an opaque\n * call — can never allow. It cannot become a helper function for the same reason.\n *\n * It does work: `ds-stat` and `ds-split-button` compile to `constructor(){}` in the\n * shipped bundle. `ds-toast-region`'s strip is UNVERIFIED — the bundle came out\n * byte-identical after adding the guard, so re-check on a clean `.angular/cache`.\n * @internal\n */\nexport function devWarn(message: () => string | null): void {\n if (!isDevMode()) {\n return;\n }\n const seen = new Set<string>();\n effect(() => {\n const text = message();\n if (!text || seen.has(text)) {\n return;\n }\n seen.add(text);\n console.warn(text);\n });\n}\n","/**\n * Signal forms binds `min`, `max`, `minLength` and `maxLength` BY NAME and sends\n * `undefined` when the schema sets no bound. The DS spells an absent bound as\n * `null`, so the write type has to accept both while the read type stays what it\n * always was — otherwise every internal use and every consumer moves for nothing.\n *\n * Declared once here because it was copy-pasted across three controls, and an\n * explanation in three places is an explanation that drifts in two of them.\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 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=\"M12 22v-7\" /><path d=\"m9 15 6 0M8 9l8 0M9 15c-2-1.5-3-4-3-7l12 0c0 3-1 5.5-3 7\" />',\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 // r=8, not the 9 of check-circle: this is the empty counterpart of a tick, and\n // at 14px a ring the same size as the filled state reads as the heavier of the\n // two rather than the lighter.\n circle: '<circle cx=\"12\" cy=\"12\" r=\"8\" />',\n // Drag handle: 6 dots in 2 cols × 3 rows. Use 1.6 radius to read at 12-16px.\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 can extend the runtime set via `provideDsIcons({...})` —\n * the type widens to `string` so any custom name is accepted at the call site (at the cost of\n * autocomplete for those custom names). */\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, so a\n * container listening on the way up must leave the event alone.\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","/**\n * Index arithmetic for a keyboard cursor over a list of options.\n *\n * Every picker walks the same four ways — next, previous, first, last — skipping\n * whatever is disabled and wrapping 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\n/**\n * The next enabled index `step` away from `from`, wrapping at both ends.\n *\n * `from` of -1 means \"no cursor yet\": stepping forward lands on the first\n * enabled entry and stepping back on the last, which is what a reader expects\n * from a freshly opened panel.\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.\n * Add a field HERE, or the three drift apart the way `icon` did. Each keeps its\n * own exported name: those are public API.\n *\n * `T` exists because autocomplete carries typed values; the other two are keyed\n * by string.\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`, so a\n * reader hears the reason instead of only meeting a dead row. Ignored unless\n * `disabled` is set. */\n disabledReason?: string;\n /** Rendered before the label at 16px by every picker's option row. */\n icon?: IconName;\n}\n\n/**\n * A labelled section of options. `disabled` turns the whole section off.\n */\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 * One input rather than two, because a second `optionGroups` input can only\n * answer \"what if both are set\" by silently ignoring one.\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 // Only copy when the flag is not already there: the pickers pre-apply a\n // disabled group to the options THEY render, and a second copy here\n // would break the object identity their flat-index lookup compares by.\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\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,IAAI,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC;cACrB,EAAE,GAAG,MAAM,EAAE,QAAQ,EAAE,IAAI;cAC3B,MAAM;AAEd,UAAE,CAAC,IAAI,CAAC,CACX;AACH;;AC5DA;;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/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: the browser fires it at the nearest common\n * ancestor of the press and the release, so a drag that starts inside the dialog and\n * ends on the backdrop fires `click` ON THE BACKDROP, and a\n * `target === currentTarget` check waves it through. Hence tracking the press:\n * dismiss only when press AND release both land on the backdrop itself. `ds-drawer` needs none of this because its scrim\n * is a SIBLING of the panel, which makes their common ancestor a third element.\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, Provider, inject } from '@angular/core';\nimport type { IconName } from './icon-names';\nimport type { DsSize } from './size';\nimport type { CardElevation, CardPadding } from './card.types';\nimport type { DsToastPosition } from './toast-position';\n\nexport interface DsConfig {\n field?: {\n /** Default for every field's `reserveMessage` — keeps a message line's worth\n * of space even when empty. Default `false`. Setting `true` here applies to\n * EVERY field in the injector's subtree, which is rarely what a whole app\n * wants; prefer `dsReserveMessages` on the individual form that validates. */\n reserveMessage?: boolean;\n /** Fallback text per validation-error kind, for errors whose validator did\n * not carry a `message` — Angular's built-ins never do, so this is where\n * `required`, `minlength`, `email` and friends get their wording. A message\n * on the error itself always wins, so one shared map here plus a per-case\n * override at the validator covers both. 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\n * `error`, `warning` and `success` and NONE for `hint`, which is resting text\n * rather than a state. Each key is independent — a glyph name replaces the\n * default, `false` removes it, and `stateIcons: false` removes all four.\n *\n * The glyphs exist because warning and success differ from each other by hue\n * and nothing else, which WCAG 1.4.1 forbids a state from resting on. */\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` / date-picker time — 24h or 12h AM/PM. Default `'24h'`. */\n format?: '24h' | '12h';\n };\n avatar?: {\n /** How `ds-avatar` turns its `name` into initials, app-wide. The built-in rule\n * takes the first two words, which is a Latin-script guess — an app whose names\n * follow another convention supplies its own here. */\n initials?: (name: string) => string;\n };\n brand?: {\n /** Brand text for `ds-sidenav` and `ds-auth-layout` — the wordmark, and the\n * source of the 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 /* No accent key on purpose: a two-tone wordmark is projected markup\n (`[dsBrandName]`), so the consumer says where the accent belongs. A config\n string would have to be split back apart, which is the guessing the\n projection exists to avoid. */\n };\n modal?: {\n /** Default for `dividers` on `ds-modal` and `ds-modal-card`. Default `true`.\n * Configurable app-wide because a `ModalService` confirm renders a card with no\n * `ds-modal` ancestor to bind — an attribute cannot reach it. */\n dividers?: boolean;\n };\n toast?: {\n /** Where the stack sits. Merged field by field over the built-in\n * `right` / `top` / `var(--space-6)`, so naming one key keeps the other two. */\n position?: Partial<DsToastPosition>;\n /** Maximum number of toasts visible at once. Extras are queued and shown as\n * earlier ones dismiss. Default `5`; `0` means unlimited. */\n maxVisible?: number;\n };\n picker?: {\n /** Default for `ds-multi-select``s `searchable`. `true` always shows the panel's\n * filter row, `false` never, and a NUMBER is a threshold — the row appears once\n * there are at least that many options. Default `true`. One threshold for the\n * app is the point: left to each call site, two panels of the same length in\n * the same screen end up disagreeing. */\n searchable?: boolean | number;\n };\n\n control?: {\n /** Default `size` for every control on the field-height contract. Default `'md'`.\n *\n * A different axis from `[data-density]`: that tier rewrites hit targets and\n * padding in CSS, this picks which of the three declared sizes a control renders\n * at. A screen that differs still binds `size` per element. */\n size?: DsSize;\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` — the proxy that keeps the\n * horizontal bar reachable on a tall table. Default `false`. Here rather than\n * per table because every new table is one forgotten binding away from\n * scrolling invisibly. */\n stickyScrollbar?: boolean;\n /** Default for `ds-table`'s `bordered` — the outer border and radius.\n * Default `false`. */\n bordered?: boolean;\n /** Default for `ds-table`'s `stickyScrollbarOffset` — where the sticky horizontal bar comes\n * to rest, as any CSS length. Unset, each table measures its own scroll container's bottom\n * padding and cancels it, which puts the bar on the edge the reader sees; set this for an app\n * whose scrollports end somewhere else, so every table agrees without a binding each. */\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 datePicker?: {\n /** BCP-47 locale for `ds-date-picker` names + value format. Default `'en-US'`. */\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 … 6=Saturday. Default `1` (Monday). */\n firstDayOfWeek?: number;\n };\n}\n\nexport const DS_CONFIG = new InjectionToken<DsConfig>('DS_CONFIG', {\n factory: () => ({}),\n});\n\n/** Provide DS-level defaults.\n *\n * providers: [provideDsConfig({ control: { size: 'sm' } })]\n *\n * Works at the app root, on a `Route`, or on a component/directive — the config\n * resolves through the element-injector chain, so a subtree can differ from the\n * app. Component inputs (e.g. `<ds-card padding=\"lg\">`) still win.\n *\n * A nested call MERGES with the config above it section by section; only the keys\n * you name are replaced. ONE call per injector, though: two in the SAME\n * `providers` array both resolve their parent with `skipSelf`, so the later wins\n * and the earlier is silently lost.\n */\nexport function provideDsConfig(config: DsConfig): Provider {\n return { provide: DS_CONFIG, useFactory: () => inheritDsConfig(config) };\n}\n\n/**\n * The factory body behind `provideDsConfig`, exported so a directive can put the\n * provider in its metadata as a plain object literal. Calling `provideDsConfig`\n * there instead runs at module-evaluation time, which makes the module\n * side-effectful and costs the consumer its tree-shaking (measured at +566 kB\n * moved into the eager chunk).\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 Object.assign(merged, {\n [section]: { ...parent[section], ...own[section] },\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\n * report whether it was bound, so `null` is what separates \"not set\" from an explicit\n * value. 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\n/**\n * Warns once per distinct message, not once per recomputation: the effect re-runs whenever any\n * signal the condition reads changes, so without that a static misconfiguration would log again\n * on every keystroke.\n *\n * Returning the message from the condition keeps the two together — a condition\n * that drifts from its message is how a warning ends up describing a state that\n * cannot happen any more.\n *\n * Must be called from an injection context.\n *\n * Callers wrap this in `if (typeof ngDevMode === 'undefined' || ngDevMode)`. That is\n * a BUILD-time expression, not a repeat of the `isDevMode()` below: the intent is for\n * a minifier to fold it and drop the message with it, which `isDevMode()` — an opaque\n * call — can never allow. It cannot become a helper function for the same reason.\n *\n * It does work: `ds-stat` and `ds-split-button` compile to `constructor(){}` in the\n * shipped bundle. `ds-toast-region`'s strip is UNVERIFIED — the bundle came out\n * byte-identical after adding the guard, so re-check on a clean `.angular/cache`.\n * @internal\n */\nexport function devWarn(message: () => string | null): void {\n if (!isDevMode()) {\n return;\n }\n const seen = new Set<string>();\n effect(() => {\n const text = message();\n if (!text || seen.has(text)) {\n return;\n }\n seen.add(text);\n console.warn(text);\n });\n}\n","/**\n * Signal forms binds `min`, `max`, `minLength` and `maxLength` BY NAME and sends\n * `undefined` when the schema sets no bound. The DS spells an absent bound as\n * `null`, so the write type has to accept both while the read type stays what it\n * always was — otherwise every internal use and every consumer moves for nothing.\n *\n * Declared once here because it was copy-pasted across three controls, and an\n * explanation in three places is an explanation that drifts in two of them.\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 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=\"M12 22v-7\" /><path d=\"m9 15 6 0M8 9l8 0M9 15c-2-1.5-3-4-3-7l12 0c0 3-1 5.5-3 7\" />',\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 // r=8, not the 9 of check-circle: this is the empty counterpart of a tick, and\n // at 14px a ring the same size as the filled state reads as the heavier of the\n // two rather than the lighter.\n circle: '<circle cx=\"12\" cy=\"12\" r=\"8\" />',\n // Drag handle: 6 dots in 2 cols × 3 rows. Use 1.6 radius to read at 12-16px.\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 can extend the runtime set via `provideDsIcons({...})` —\n * the type widens to `string` so any custom name is accepted at the call site (at the cost of\n * autocomplete for those custom names). */\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, so a\n * container listening on the way up must leave the event alone.\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, so testing only the\n * wrapper misses it. `overflow: clip` still reports the overflow, which is what lets the house\n * `single-line-ellipsis` mixin earn a disclosure.\n *\n * Only horizontal. A clamped block hides whole LINES and its `scrollWidth` matches its\n * `clientWidth`, so a caller that clamps has to compare line counts instead.\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 a list of options.\n *\n * Every picker walks the same four ways — next, previous, first, last — skipping\n * whatever is disabled and wrapping 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\n/**\n * The next enabled index `step` away from `from`, wrapping at both ends.\n *\n * `from` of -1 means \"no cursor yet\": stepping forward lands on the first\n * enabled entry and stepping back on the last, which is what a reader expects\n * from a freshly opened panel.\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.\n * Add a field HERE, or the three drift apart the way `icon` did. Each keeps its\n * own exported name: those are public API.\n *\n * `T` exists because autocomplete carries typed values; the other two are keyed\n * by string.\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`, so a\n * reader hears the reason instead of only meeting a dead row. Ignored unless\n * `disabled` is set. */\n disabledReason?: string;\n /** Rendered before the label at 16px by every picker's option row. */\n icon?: IconName;\n}\n\n/**\n * A labelled section of options. `disabled` turns the whole section off.\n */\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 * One input rather than two, because a second `optionGroups` input can only\n * answer \"what if both are set\" by silently ignoring one.\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 // Only copy when the flag is not already there: the pickers pre-apply a\n // disabled group to the options THEY render, and a second copy here\n // would break the object identity their flat-index lookup compares by.\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;;;;;;;;;;AAUG;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;;MCqGa,SAAS,GAAG,IAAI,cAAc,CAAW,WAAW,EAAE;AACjE,IAAA,OAAO,EAAE,OAAO,EAAE,CAAC;AACpB,CAAA;AAED;;;;;;;;;;;;AAYG;AACG,SAAU,eAAe,CAAC,MAAgB,EAAA;AAC9C,IAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC,MAAM,CAAC,EAAE;AAC1E;AAEA;;;;;;;;AAQG;AACG,SAAU,eAAe,CAAC,MAAgB,EAAA;IAC9C,OAAO,aAAa,CAClB,MAAM,CAAC,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I;;AAEhB,IAAA,KAAK,IAAI,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,IAAI,CAAC,EAAE;AAC5D,QAAA,KAAK,GAAG,CAAC,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM;AAClD,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;AACzB,YAAA,OAAO,KAAK;QACd;IACF;AAEA,IAAA,OAAO,IAAI;AACb;;AC3BM,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;;;;AAItB,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;;AC5DA;;AAEG;;;;"}
|
|
@@ -22,6 +22,9 @@ function provideDsIcons(icons) {
|
|
|
22
22
|
return { provide: DS_ICON_REGISTRY, useValue: icons };
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
/* Truncation contract:
|
|
26
|
+
Glyph — Never clipped — the SVG sits in a square frame at one of the fixed sizes.
|
|
27
|
+
Icon + text pair — Glyph fixed; text label takes the remaining width and clips with ellipsis. */
|
|
25
28
|
class IconComponent {
|
|
26
29
|
sanitizer = inject(DomSanitizer);
|
|
27
30
|
// Consumer-supplied icons via provideDsIcons(...). Empty record by default.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-icons.mjs","sources":["../../../src/lib/icons/icon-registry.ts","../../../src/lib/icons/icon.component.ts","../../../src/lib/icons/icon.component.html","../../../src/lib/icons/ids-group-ltd-ids-design-system-icons.ts"],"sourcesContent":["import { InjectionToken, Provider } from '@angular/core';\n\n/** Map of custom icon name -> raw SVG body markup.\n *\n * The body is what goes *inside* `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\">`\n * — typically one or more `<path>` / `<circle>` / `<rect>` elements. Stroke width, line caps and\n * join are applied by the host `<ds-icon>` template, so paths should use `stroke=\"currentColor\"`\n * implicitly (i.e. omit the stroke attribute) and rely on the parent SVG.\n *\n * Example:\n * provideDsIcons({\n * 'cloud-upload': '<path d=\"M12 13v8m0-8 3 3m-3-3-3 3\"/><path d=\"...\"/>',\n * })\n */\nexport type DsIconRegistry = Readonly<Record<string, string>>;\n\nexport const DS_ICON_REGISTRY = new InjectionToken<DsIconRegistry>(\n 'DS_ICON_REGISTRY',\n {\n factory: () => ({}),\n },\n);\n\n/** Register additional icons available to `<ds-icon [name]=\"...\">` alongside the built-in DS set.\n *\n * providers: [\n * provideDsIcons({\n * 'cloud-upload': '<path d=\"...\"/>',\n * 'shield': '<path d=\"...\"/>',\n * }),\n * ]\n *\n * Names take precedence as: built-in `ICONS` > consumer registry. Consumer names that clash with\n * built-ins are ignored — to override a built-in, edit the DS source.\n */\nexport function provideDsIcons(icons: DsIconRegistry): Provider {\n return { provide: DS_ICON_REGISTRY, useValue: icons };\n}\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n input,\n isDevMode,\n numberAttribute,\n} from '@angular/core';\nimport { DomSanitizer, type SafeHtml } from '@angular/platform-browser';\nimport { DS_ICON_REGISTRY } from './icon-registry';\nimport { ICONS, type IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-icon',\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n // Host inline-flex + svg block prevents baseline-gap when icon sits next to text.\n styles: [\n `\n ds-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n line-height: 0;\n }\n ds-icon > svg.icon {\n display: block;\n }\n `,\n ],\n templateUrl: './icon.component.html',\n})\nexport class IconComponent {\n private readonly sanitizer = inject(DomSanitizer);\n // Consumer-supplied icons via provideDsIcons(...). Empty record by default.\n private readonly registry = inject(DS_ICON_REGISTRY);\n readonly name = input.required<IconName>();\n /** Pixel size of the square glyph. Unset falls back to `DS_CONFIG.icon.size`,\n * then `16`. */\n readonly size = input<number | null, unknown>(null, {\n transform: (value) => (value == null ? null : numberAttribute(value)),\n });\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.icon?.size,\n 16,\n );\n readonly stroke = input<number>(1.75);\n /** When set, the icon is exposed to assistive tech as an image with this\n * name; otherwise it is decorative and hidden (`aria-hidden`). */\n readonly ariaLabel = input<string | null>(null);\n protected readonly paths = computed<SafeHtml>(() => {\n const key = this.name();\n // Built-in DS set wins over consumer registry — see provideDsIcons() docs.\n const body =\n (ICONS as Record<string, string>)[key] ?? this.registry[key] ?? '';\n // A misspelled name renders an empty <svg> and nothing else — no error, and\n // the type cannot catch it: IconName stays open (`| (string & {})`) so a\n // consumer can register their own through provideDsIcons(), and closing the\n // union would reject every registered name. This branch is the only place\n // that knows. Production pays one falsy check.\n if (!body && isDevMode()) {\n console.warn(\n `[ds-icon] Unknown icon name \"${key}\" — not in the DS set and not registered through provideDsIcons(), so nothing renders.`,\n );\n }\n\n return this.sanitizer.bypassSecurityTrustHtml(body);\n });\n}\n","<svg\n class=\"icon\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n [style.--ds-icon-size]=\"sizeResolved() + 'px'\"\n [attr.width]=\"sizeResolved()\"\n [attr.height]=\"sizeResolved()\"\n [attr.stroke-width]=\"stroke()\"\n [attr.role]=\"ariaLabel() ? 'img' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-hidden]=\"ariaLabel() ? null : 'true'\"\n [innerHTML]=\"paths()\">\n</svg>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAgBa,gBAAgB,GAAG,IAAI,cAAc,CAChD,kBAAkB,EAClB;AACE,IAAA,OAAO,EAAE,OAAO,EAAE,CAAC;AACpB,CAAA;AAGH;;;;;;;;;;;AAWG;AACG,SAAU,cAAc,CAAC,KAAqB,EAAA;IAClD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE;AACvD;;
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-icons.mjs","sources":["../../../src/lib/icons/icon-registry.ts","../../../src/lib/icons/icon.component.ts","../../../src/lib/icons/icon.component.html","../../../src/lib/icons/ids-group-ltd-ids-design-system-icons.ts"],"sourcesContent":["import { InjectionToken, Provider } from '@angular/core';\n\n/** Map of custom icon name -> raw SVG body markup.\n *\n * The body is what goes *inside* `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\">`\n * — typically one or more `<path>` / `<circle>` / `<rect>` elements. Stroke width, line caps and\n * join are applied by the host `<ds-icon>` template, so paths should use `stroke=\"currentColor\"`\n * implicitly (i.e. omit the stroke attribute) and rely on the parent SVG.\n *\n * Example:\n * provideDsIcons({\n * 'cloud-upload': '<path d=\"M12 13v8m0-8 3 3m-3-3-3 3\"/><path d=\"...\"/>',\n * })\n */\nexport type DsIconRegistry = Readonly<Record<string, string>>;\n\nexport const DS_ICON_REGISTRY = new InjectionToken<DsIconRegistry>(\n 'DS_ICON_REGISTRY',\n {\n factory: () => ({}),\n },\n);\n\n/** Register additional icons available to `<ds-icon [name]=\"...\">` alongside the built-in DS set.\n *\n * providers: [\n * provideDsIcons({\n * 'cloud-upload': '<path d=\"...\"/>',\n * 'shield': '<path d=\"...\"/>',\n * }),\n * ]\n *\n * Names take precedence as: built-in `ICONS` > consumer registry. Consumer names that clash with\n * built-ins are ignored — to override a built-in, edit the DS source.\n */\nexport function provideDsIcons(icons: DsIconRegistry): Provider {\n return { provide: DS_ICON_REGISTRY, useValue: icons };\n}\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n input,\n isDevMode,\n numberAttribute,\n} from '@angular/core';\nimport { DomSanitizer, type SafeHtml } from '@angular/platform-browser';\nimport { DS_ICON_REGISTRY } from './icon-registry';\nimport { ICONS, type IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n/* Truncation contract:\n Glyph — Never clipped — the SVG sits in a square frame at one of the fixed sizes.\n Icon + text pair — Glyph fixed; text label takes the remaining width and clips with ellipsis. */\n\n@Component({\n selector: 'ds-icon',\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n // Host inline-flex + svg block prevents baseline-gap when icon sits next to text.\n styles: [\n `\n ds-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n line-height: 0;\n }\n ds-icon > svg.icon {\n display: block;\n }\n `,\n ],\n templateUrl: './icon.component.html',\n})\nexport class IconComponent {\n private readonly sanitizer = inject(DomSanitizer);\n // Consumer-supplied icons via provideDsIcons(...). Empty record by default.\n private readonly registry = inject(DS_ICON_REGISTRY);\n readonly name = input.required<IconName>();\n /** Pixel size of the square glyph. Unset falls back to `DS_CONFIG.icon.size`,\n * then `16`. */\n readonly size = input<number | null, unknown>(null, {\n transform: (value) => (value == null ? null : numberAttribute(value)),\n });\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.icon?.size,\n 16,\n );\n readonly stroke = input<number>(1.75);\n /** When set, the icon is exposed to assistive tech as an image with this\n * name; otherwise it is decorative and hidden (`aria-hidden`). */\n readonly ariaLabel = input<string | null>(null);\n protected readonly paths = computed<SafeHtml>(() => {\n const key = this.name();\n // Built-in DS set wins over consumer registry — see provideDsIcons() docs.\n const body =\n (ICONS as Record<string, string>)[key] ?? this.registry[key] ?? '';\n // A misspelled name renders an empty <svg> and nothing else — no error, and\n // the type cannot catch it: IconName stays open (`| (string & {})`) so a\n // consumer can register their own through provideDsIcons(), and closing the\n // union would reject every registered name. This branch is the only place\n // that knows. Production pays one falsy check.\n if (!body && isDevMode()) {\n console.warn(\n `[ds-icon] Unknown icon name \"${key}\" — not in the DS set and not registered through provideDsIcons(), so nothing renders.`,\n );\n }\n\n return this.sanitizer.bypassSecurityTrustHtml(body);\n });\n}\n","<svg\n class=\"icon\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n [style.--ds-icon-size]=\"sizeResolved() + 'px'\"\n [attr.width]=\"sizeResolved()\"\n [attr.height]=\"sizeResolved()\"\n [attr.stroke-width]=\"stroke()\"\n [attr.role]=\"ariaLabel() ? 'img' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-hidden]=\"ariaLabel() ? null : 'true'\"\n [innerHTML]=\"paths()\">\n</svg>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAgBa,gBAAgB,GAAG,IAAI,cAAc,CAChD,kBAAkB,EAClB;AACE,IAAA,OAAO,EAAE,OAAO,EAAE,CAAC;AACpB,CAAA;AAGH;;;;;;;;;;;AAWG;AACG,SAAU,cAAc,CAAC,KAAqB,EAAA;IAClD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE;AACvD;;ACvBA;;AAEmG;MAuBtF,aAAa,CAAA;AACP,IAAA,SAAS,GAAG,MAAM,CAAC,YAAY,CAAC;;AAEhC,IAAA,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC3C,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,0EAAY;AAC1C;AACiB;AACR,IAAA,IAAI,GAAG,KAAK,CAAyB,I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UAAA,EAAA,CAAA;kBArBzB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,aAAA,EACD,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,oeAAA,EAAA,MAAA,EAAA,CAAA,6IAAA,CAAA,EAAA;;;AErBvC;;AAEG;;;;"}
|
|
@@ -8,6 +8,7 @@ export { AvatarComponent, avatarTint, initialsFrom } from '@ids-group-ltd/ids-de
|
|
|
8
8
|
export { AvatarGroupComponent } from '@ids-group-ltd/ids-design-system/components/avatar-group';
|
|
9
9
|
export { BadgeComponent } from '@ids-group-ltd/ids-design-system/components/badge';
|
|
10
10
|
export { BannerComponent } from '@ids-group-ltd/ids-design-system/components/banner';
|
|
11
|
+
export { BarChartComponent } from '@ids-group-ltd/ids-design-system/components/bar-chart';
|
|
11
12
|
export { BottomSheetComponent } from '@ids-group-ltd/ids-design-system/components/bottom-sheet';
|
|
12
13
|
export { BreadcrumbsComponent, BreadcrumbsService } from '@ids-group-ltd/ids-design-system/components/breadcrumbs';
|
|
13
14
|
export { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';
|
|
@@ -15,17 +16,21 @@ export { ButtonGroupComponent } from '@ids-group-ltd/ids-design-system/component
|
|
|
15
16
|
export { CardComponent } from '@ids-group-ltd/ids-design-system/components/card';
|
|
16
17
|
export { CheckboxComponent } from '@ids-group-ltd/ids-design-system/components/checkbox';
|
|
17
18
|
export { ColorPickerComponent } from '@ids-group-ltd/ids-design-system/components/color-picker';
|
|
19
|
+
export { ColumnChartComponent } from '@ids-group-ltd/ids-design-system/components/column-chart';
|
|
18
20
|
export { DatePickerComponent } from '@ids-group-ltd/ids-design-system/components/date-picker';
|
|
19
21
|
export { DescriptionItemComponent, DescriptionListComponent } from '@ids-group-ltd/ids-design-system/components/description-list';
|
|
20
22
|
export { DividerComponent } from '@ids-group-ltd/ids-design-system/components/divider';
|
|
23
|
+
export { DonutChartComponent } from '@ids-group-ltd/ids-design-system/components/donut-chart';
|
|
21
24
|
export { DrawerComponent } from '@ids-group-ltd/ids-design-system/components/drawer';
|
|
22
25
|
export { DropzoneComponent } from '@ids-group-ltd/ids-design-system/components/dropzone';
|
|
23
26
|
export { EmptyStateComponent } from '@ids-group-ltd/ids-design-system/components/empty-state';
|
|
24
27
|
export { DS_FIELD_GROUP, FieldGroupComponent } from '@ids-group-ltd/ids-design-system/components/field-group';
|
|
25
28
|
export { FilterBarComponent, FilterItemDirective } from '@ids-group-ltd/ids-design-system/components/filter-bar';
|
|
29
|
+
export { FunnelChartComponent } from '@ids-group-ltd/ids-design-system/components/funnel-chart';
|
|
26
30
|
export { IconButtonComponent } from '@ids-group-ltd/ids-design-system/components/icon-button';
|
|
27
31
|
export { InputComponent } from '@ids-group-ltd/ids-design-system/components/input';
|
|
28
32
|
export { ContainerComponent, InlineComponent, StackComponent } from '@ids-group-ltd/ids-design-system/components/layout';
|
|
33
|
+
export { LineChartComponent } from '@ids-group-ltd/ids-design-system/components/line-chart';
|
|
29
34
|
export { ListComponent, ListItemComponent } from '@ids-group-ltd/ids-design-system/components/list';
|
|
30
35
|
export { LoadingOverlayComponent } from '@ids-group-ltd/ids-design-system/components/loading-overlay';
|
|
31
36
|
export { MenuComponent, MenuDividerComponent, MenuItemComponent } from '@ids-group-ltd/ids-design-system/components/menu';
|
|
@@ -69,11 +74,15 @@ export { TooltipDirective, TooltipPanelComponent } from '@ids-group-ltd/ids-desi
|
|
|
69
74
|
export { TopBarComponent } from '@ids-group-ltd/ids-design-system/components/topbar';
|
|
70
75
|
export { TreeComponent } from '@ids-group-ltd/ids-design-system/components/tree';
|
|
71
76
|
export { W3wComponent } from '@ids-group-ltd/ids-design-system/components/w3w';
|
|
72
|
-
export { DS_CONFIG, ICONS, flattenDsOptions, inheritDsConfig, isDsOptionGroup, provideDsConfig } from '@ids-group-ltd/ids-design-system/core';
|
|
77
|
+
export { DS_CONFIG, ICONS, flattenDsOptions, inheritDsConfig, isDsOptionGroup, isTextClipped, provideDsConfig } from '@ids-group-ltd/ids-design-system/core';
|
|
73
78
|
export { DS_ICON_REGISTRY, IconComponent, provideDsIcons } from '@ids-group-ltd/ids-design-system/icons';
|
|
74
79
|
export { BodyScrollLockService, DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';
|
|
75
80
|
export { provideDsTheme } from '@ids-group-ltd/ids-design-system/theme';
|
|
76
81
|
|
|
82
|
+
// GENERATED by tools/generate-public-api.mjs from each entry point index.
|
|
83
|
+
// Do not edit. A symbol is published here unless it carries @internal.
|
|
84
|
+
// Shared component contracts
|
|
85
|
+
|
|
77
86
|
/**
|
|
78
87
|
* Generated bundle index. Do not edit.
|
|
79
88
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system.mjs","sources":["../../../src/lib/ids-group-ltd-ids-design-system.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system.mjs","sources":["../../../src/lib/public-api.ts","../../../src/lib/ids-group-ltd-ids-design-system.ts"],"sourcesContent":["// GENERATED by tools/generate-public-api.mjs from each entry point index.\n// Do not edit. A symbol is published here unless it carries @internal.\n\n// Shared component contracts\nexport {\n DS_FIELD_WARNING_KIND,\n DsChipTemplateDirective,\n DsCreateTemplateDirective,\n DsEmptyTemplateDirective,\n DsGroupLabelTemplateDirective,\n DsOptionTemplateDirective,\n DsPanelFooterTemplateDirective,\n DsPanelHeaderTemplateDirective,\n DsPickerTriggerDirective,\n DsStaticPreview,\n FieldClickFocusDirective,\n} from '@ids-group-ltd/ids-design-system/components';\nexport type {\n DsAriaCurrent,\n DsFieldError,\n DsFieldErrorsInput,\n DsRouterLink,\n} from '@ids-group-ltd/ids-design-system/components';\n\n// Components\nexport {\n ACCORDION,\n AccordionComponent,\n AccordionItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/accordion';\nexport type {\n AccordionContract,\n AccordionItemRef,\n} from '@ids-group-ltd/ids-design-system/components/accordion';\nexport { AlertComponent } from '@ids-group-ltd/ids-design-system/components/alert';\nexport type { AlertVariant } from '@ids-group-ltd/ids-design-system/components/alert';\nexport {\n AppLayoutComponent,\n LayoutNavigationService,\n LayoutScrollService,\n RailTriggerDirective,\n} from '@ids-group-ltd/ids-design-system/components/app-layout';\nexport type { DsScrollReset } from '@ids-group-ltd/ids-design-system/components/app-layout';\nexport { AuthLayoutComponent } from '@ids-group-ltd/ids-design-system/components/auth-layout';\nexport { AutocompleteComponent } from '@ids-group-ltd/ids-design-system/components/autocomplete';\nexport type {\n AutocompleteItem,\n AutocompleteOption,\n AutocompleteOptionGroup,\n AutocompleteValueOverflow,\n AutocompleteWidth,\n} from '@ids-group-ltd/ids-design-system/components/autocomplete';\nexport {\n AvatarComponent,\n avatarTint,\n initialsFrom,\n} from '@ids-group-ltd/ids-design-system/components/avatar';\nexport type {\n AvatarSize,\n AvatarStatus,\n AvatarTintOptions,\n} from '@ids-group-ltd/ids-design-system/components/avatar';\nexport { AvatarGroupComponent } from '@ids-group-ltd/ids-design-system/components/avatar-group';\nexport { BadgeComponent } from '@ids-group-ltd/ids-design-system/components/badge';\nexport { BannerComponent } from '@ids-group-ltd/ids-design-system/components/banner';\nexport type { BannerVariant } from '@ids-group-ltd/ids-design-system/components/banner';\nexport { BarChartComponent } from '@ids-group-ltd/ids-design-system/components/bar-chart';\nexport type { BarChartRow } from '@ids-group-ltd/ids-design-system/components/bar-chart';\nexport { BottomSheetComponent } from '@ids-group-ltd/ids-design-system/components/bottom-sheet';\nexport {\n BreadcrumbsComponent,\n BreadcrumbsService,\n} from '@ids-group-ltd/ids-design-system/components/breadcrumbs';\nexport type { BreadcrumbItem } from '@ids-group-ltd/ids-design-system/components/breadcrumbs';\nexport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nexport type {\n ButtonColor,\n ButtonType,\n ButtonVariant,\n} from '@ids-group-ltd/ids-design-system/components/button';\nexport { ButtonGroupComponent } from '@ids-group-ltd/ids-design-system/components/button-group';\nexport { CardComponent } from '@ids-group-ltd/ids-design-system/components/card';\nexport type {\n CardElevation,\n CardPadding,\n} from '@ids-group-ltd/ids-design-system/components/card';\nexport type { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nexport type {\n ChartActiveMark,\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n ChartTooltipEntry,\n ChartTooltipOrigin,\n ChartTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nexport { CheckboxComponent } from '@ids-group-ltd/ids-design-system/components/checkbox';\nexport { ColorPickerComponent } from '@ids-group-ltd/ids-design-system/components/color-picker';\nexport { ColumnChartComponent } from '@ids-group-ltd/ids-design-system/components/column-chart';\nexport type { ColumnChartPoint } from '@ids-group-ltd/ids-design-system/components/column-chart';\nexport { DatePickerComponent } from '@ids-group-ltd/ids-design-system/components/date-picker';\nexport type {\n DatePickerMode,\n DatePickerPreset,\n DatePickerValue,\n DateValue,\n RangeValue,\n} from '@ids-group-ltd/ids-design-system/components/date-picker';\nexport {\n DescriptionItemComponent,\n DescriptionListComponent,\n} from '@ids-group-ltd/ids-design-system/components/description-list';\nexport type { DescriptionListOrientation } from '@ids-group-ltd/ids-design-system/components/description-list';\nexport { DividerComponent } from '@ids-group-ltd/ids-design-system/components/divider';\nexport type {\n DividerSpacing,\n DividerVariant,\n} from '@ids-group-ltd/ids-design-system/components/divider';\nexport { DonutChartComponent } from '@ids-group-ltd/ids-design-system/components/donut-chart';\nexport type { DonutChartSlice } from '@ids-group-ltd/ids-design-system/components/donut-chart';\nexport { DrawerComponent } from '@ids-group-ltd/ids-design-system/components/drawer';\nexport type { DrawerPlacement } from '@ids-group-ltd/ids-design-system/components/drawer';\nexport { DropzoneComponent } from '@ids-group-ltd/ids-design-system/components/dropzone';\nexport type {\n DropzoneFile,\n DropzoneFileState,\n} from '@ids-group-ltd/ids-design-system/components/dropzone';\nexport { EmptyStateComponent } from '@ids-group-ltd/ids-design-system/components/empty-state';\nexport type { EmptyStateVariant } from '@ids-group-ltd/ids-design-system/components/empty-state';\nexport {\n DS_FIELD_GROUP,\n FieldGroupComponent,\n} from '@ids-group-ltd/ids-design-system/components/field-group';\nexport type { DsFieldGroupContext } from '@ids-group-ltd/ids-design-system/components/field-group';\nexport {\n FilterBarComponent,\n FilterItemDirective,\n} from '@ids-group-ltd/ids-design-system/components/filter-bar';\nexport { FunnelChartComponent } from '@ids-group-ltd/ids-design-system/components/funnel-chart';\nexport type {\n FunnelChartShape,\n FunnelChartStage,\n} from '@ids-group-ltd/ids-design-system/components/funnel-chart';\nexport { IconButtonComponent } from '@ids-group-ltd/ids-design-system/components/icon-button';\nexport type {\n IconButtonType,\n IconButtonVariant,\n} from '@ids-group-ltd/ids-design-system/components/icon-button';\nexport { InputComponent } from '@ids-group-ltd/ids-design-system/components/input';\nexport type { InputType } from '@ids-group-ltd/ids-design-system/components/input';\nexport {\n ContainerComponent,\n InlineComponent,\n StackComponent,\n} from '@ids-group-ltd/ids-design-system/components/layout';\nexport type {\n ContainerSize,\n LayoutAlign,\n LayoutGap,\n LayoutJustify,\n} from '@ids-group-ltd/ids-design-system/components/layout';\nexport { LineChartComponent } from '@ids-group-ltd/ids-design-system/components/line-chart';\nexport type {\n LineChartAxisMode,\n LineChartGaps,\n LineChartPoint,\n LineChartSeries,\n} from '@ids-group-ltd/ids-design-system/components/line-chart';\nexport {\n ListComponent,\n ListItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/list';\nexport { LoadingOverlayComponent } from '@ids-group-ltd/ids-design-system/components/loading-overlay';\nexport {\n MenuComponent,\n MenuDividerComponent,\n MenuItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/menu';\nexport {\n ModalCardComponent,\n ModalComponent,\n ModalService,\n} from '@ids-group-ltd/ids-design-system/components/modal';\nexport type {\n ModalConfirmOptions,\n ModalConfirmTone,\n ModalSize,\n} from '@ids-group-ltd/ids-design-system/components/modal';\nexport { MultiSelectComponent } from '@ids-group-ltd/ids-design-system/components/multi-select';\nexport type {\n MultiSelectItem,\n MultiSelectOption,\n MultiSelectOptionGroup,\n MultiSelectWidth,\n} from '@ids-group-ltd/ids-design-system/components/multi-select';\nexport { NumberStepperComponent } from '@ids-group-ltd/ids-design-system/components/number-stepper';\nexport { OtpInputComponent } from '@ids-group-ltd/ids-design-system/components/otp-input';\nexport type { OtpMode } from '@ids-group-ltd/ids-design-system/components/otp-input';\nexport { PageFooterComponent } from '@ids-group-ltd/ids-design-system/components/page-footer';\nexport type { PageFooterVariant } from '@ids-group-ltd/ids-design-system/components/page-footer';\nexport { PageHeaderComponent } from '@ids-group-ltd/ids-design-system/components/page-header';\nexport { PaginationComponent } from '@ids-group-ltd/ids-design-system/components/pagination';\nexport {\n PasswordRulesComponent,\n passwordRulesMet,\n} from '@ids-group-ltd/ids-design-system/components/password-rules';\nexport type {\n DsPasswordRule,\n DsPasswordRuleState,\n} from '@ids-group-ltd/ids-design-system/components/password-rules';\nexport { PopoverComponent } from '@ids-group-ltd/ids-design-system/components/popover';\nexport type {\n PopoverAlign,\n PopoverPlacement,\n} from '@ids-group-ltd/ids-design-system/components/popover';\nexport { ProgressComponent } from '@ids-group-ltd/ids-design-system/components/progress';\nexport type { ProgressVariant } from '@ids-group-ltd/ids-design-system/components/progress';\nexport {\n RADIO_GROUP,\n RadioComponent,\n RadioGroupComponent,\n} from '@ids-group-ltd/ids-design-system/components/radio-group';\nexport type {\n RadioGroupChild,\n RadioGroupContract,\n} from '@ids-group-ltd/ids-design-system/components/radio-group';\nexport { ReserveMessagesDirective } from '@ids-group-ltd/ids-design-system/components/reserve-messages';\nexport { SearchComponent } from '@ids-group-ltd/ids-design-system/components/search';\nexport { SegmentedComponent } from '@ids-group-ltd/ids-design-system/components/segmented';\nexport type { SegmentedOption } from '@ids-group-ltd/ids-design-system/components/segmented';\nexport {\n SelectComponent,\n isSelectOptionGroup,\n} from '@ids-group-ltd/ids-design-system/components/select';\nexport type {\n SelectItem,\n SelectOption,\n SelectOptionGroup,\n SelectWidth,\n} from '@ids-group-ltd/ids-design-system/components/select';\nexport {\n BrandNameDirective,\n SIDENAV,\n SidenavComponent,\n SidenavGroupComponent,\n SidenavItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/sidenav';\nexport type {\n SidenavContract,\n SidenavItemModel,\n} from '@ids-group-ltd/ids-design-system/components/sidenav';\nexport { SidenavFooterComponent } from '@ids-group-ltd/ids-design-system/components/sidenav-footer';\nexport type {\n SidenavAlertItem,\n SidenavSearchProvider,\n SidenavSearchResult,\n} from '@ids-group-ltd/ids-design-system/components/sidenav-footer';\nexport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nexport { SliderComponent } from '@ids-group-ltd/ids-design-system/components/slider';\nexport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nexport { SplitButtonComponent } from '@ids-group-ltd/ids-design-system/components/split-button';\nexport type {\n SplitButtonItem,\n SplitButtonVariant,\n} from '@ids-group-ltd/ids-design-system/components/split-button';\nexport { StatComponent } from '@ids-group-ltd/ids-design-system/components/stat';\nexport { StatusDotComponent } from '@ids-group-ltd/ids-design-system/components/status-dot';\nexport { StepperComponent } from '@ids-group-ltd/ids-design-system/components/stepper';\nexport type {\n StepperLabelPosition,\n StepperOrientation,\n} from '@ids-group-ltd/ids-design-system/components/stepper';\nexport { SwitchComponent } from '@ids-group-ltd/ids-design-system/components/switch';\nexport {\n CellTemplateDirective,\n HeaderFilterDirective,\n TableComponent,\n} from '@ids-group-ltd/ids-design-system/components/table';\nexport type {\n HeaderFilterContext,\n SortChangeEvent,\n SortDir,\n TableCellEditEvent,\n TableColumn,\n TableExpandMode,\n TableFilterMode,\n TableRowAction,\n TableRowActionEvent,\n TableSortMode,\n} from '@ids-group-ltd/ids-design-system/components/table';\nexport { DsTableColumns } from '@ids-group-ltd/ids-design-system/components/table-columns';\nexport { DsTableExport } from '@ids-group-ltd/ids-design-system/components/table-export';\nexport { DsTableResize } from '@ids-group-ltd/ids-design-system/components/table-resize';\nexport {\n TabComponent,\n TabsComponent,\n} from '@ids-group-ltd/ids-design-system/components/tabs';\nexport type {\n TabsOrientation,\n TabsVariant,\n} from '@ids-group-ltd/ids-design-system/components/tabs';\nexport { TagComponent } from '@ids-group-ltd/ids-design-system/components/tag';\nexport type { TagVariant } from '@ids-group-ltd/ids-design-system/components/tag';\nexport { TextareaComponent } from '@ids-group-ltd/ids-design-system/components/textarea';\nexport type { TextareaResize } from '@ids-group-ltd/ids-design-system/components/textarea';\nexport { TimePickerComponent } from '@ids-group-ltd/ids-design-system/components/time-picker';\nexport type {\n TimeFormat,\n TimePickerMode,\n TimePickerValue,\n TimeRangeValue,\n TimeValue,\n} from '@ids-group-ltd/ids-design-system/components/time-picker';\nexport {\n TimelineComponent,\n TimelineItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/timeline';\nexport type { TimelineTone } from '@ids-group-ltd/ids-design-system/components/timeline';\nexport {\n DS_TOAST_POSITION_DEFAULT,\n ToastComponent,\n ToastRegionComponent,\n ToastService,\n} from '@ids-group-ltd/ids-design-system/components/toast';\nexport type {\n DsToastHorizontalPosition,\n DsToastPosition,\n DsToastVerticalPosition,\n ToastAction,\n ToastEntry,\n ToastOptions,\n ToastPromiseMessages,\n ToastRef,\n ToastVariant,\n} from '@ids-group-ltd/ids-design-system/components/toast';\nexport { ToggleButtonComponent } from '@ids-group-ltd/ids-design-system/components/toggle-button';\nexport {\n TooltipDirective,\n TooltipPanelComponent,\n} from '@ids-group-ltd/ids-design-system/components/tooltip';\nexport type { TooltipPlacement } from '@ids-group-ltd/ids-design-system/components/tooltip';\nexport { TopBarComponent } from '@ids-group-ltd/ids-design-system/components/topbar';\nexport { TreeComponent } from '@ids-group-ltd/ids-design-system/components/tree';\nexport type { TreeNode } from '@ids-group-ltd/ids-design-system/components/tree';\nexport { W3wComponent } from '@ids-group-ltd/ids-design-system/components/w3w';\n\n// Core\nexport {\n DS_CONFIG,\n ICONS,\n flattenDsOptions,\n inheritDsConfig,\n isDsOptionGroup,\n isTextClipped,\n provideDsConfig,\n} from '@ids-group-ltd/ids-design-system/core';\nexport type {\n DsConfig,\n DsControlWidth,\n DsOption,\n DsOptionGroup,\n DsOptionItem,\n DsSize,\n DsStatus,\n DsStatusKey,\n DsStatusRegistry,\n DsTriggerDisplay,\n IconName,\n} from '@ids-group-ltd/ids-design-system/core';\n\n// Icons\nexport {\n DS_ICON_REGISTRY,\n IconComponent,\n provideDsIcons,\n} from '@ids-group-ltd/ids-design-system/icons';\nexport type { DsIconRegistry } from '@ids-group-ltd/ids-design-system/icons';\n\n// Overlay\nexport {\n BodyScrollLockService,\n DsOverlayCloseRef,\n} from '@ids-group-ltd/ids-design-system/overlay';\n\n// Theme\nexport { provideDsTheme } from '@ids-group-ltd/ids-design-system/theme';\nexport type { DsThemeOptions } from '@ids-group-ltd/ids-design-system/theme';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;;ACHA;;AAEG"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.12.3",
|
|
3
|
+
"items": [
|
|
4
|
+
{
|
|
5
|
+
"id": "button-ref-renamed-and-widened",
|
|
6
|
+
"kind": "removed-api",
|
|
7
|
+
"surface": "typescript",
|
|
8
|
+
"old": "buttonRef",
|
|
9
|
+
"new": "controlRef",
|
|
10
|
+
"action": "Rename `buttonRef()` to `controlRef()` on every ds-button template reference, and narrow `.nativeElement` yourself where you read a button-only property off it.",
|
|
11
|
+
"appliesWhen": "Only code that reads the reference — a template ref used to position or refocus an overlay, or a component that calls it. Nothing changes for a consumer who only uses the element and its inputs, and the property behind the name is the same view child.",
|
|
12
|
+
"pitfall": "The rename is a compile error and announces itself; the type change may not. `.nativeElement.disabled`, `.form` and `.type` were reachable on `HTMLButtonElement` and are gone from `HTMLElement`, so a read of one fails to compile — but a cast written to silence it then lies at runtime whenever the button carries a destination and really is an anchor.",
|
|
13
|
+
"note": "The element ds-button renders now follows its destination: an `<a>` when `routerLink` or `href` is set, the `<button>` otherwise. One name and one type had to cover all three, so both were wrong before. Overlay triggers pass `.nativeElement` for positioning and focus, which `HTMLElement` answers.",
|
|
14
|
+
"verify": "No `buttonRef` remains anywhere in the consumer tree, and every read of `controlRef().nativeElement` either uses only HTMLElement members or narrows with an `instanceof HTMLButtonElement` check.",
|
|
15
|
+
"searchHints": [
|
|
16
|
+
"buttonRef",
|
|
17
|
+
"buttonRef()",
|
|
18
|
+
".nativeElement",
|
|
19
|
+
"ds-button"
|
|
20
|
+
],
|
|
21
|
+
"detect": [
|
|
22
|
+
"buttonRef(",
|
|
23
|
+
"buttonRef().nativeElement",
|
|
24
|
+
"TS2339",
|
|
25
|
+
"Property 'disabled' does not exist"
|
|
26
|
+
],
|
|
27
|
+
"restore": null
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "exported-class-members-grew",
|
|
31
|
+
"kind": "behavior",
|
|
32
|
+
"surface": "typescript",
|
|
33
|
+
"old": "class MyControl extends CheckboxComponent",
|
|
34
|
+
"new": null,
|
|
35
|
+
"action": "Build after upgrading, then rename or mark `override` any member the compiler reports as colliding.",
|
|
36
|
+
"appliesWhen": "Only a class that extends ButtonComponent, CheckboxComponent, RadioComponent or SwitchComponent. A consumer who uses the elements in a template needs nothing from this item.",
|
|
37
|
+
"pitfall": "Two of the four are not public API, which is no protection: a redeclared private or protected member fails with TS2415 exactly as a public collision does, and a same-named method whose signature differs fails with TS2416 instead.",
|
|
38
|
+
"note": "ButtonComponent gained `routerLink` and `href`, the two destination inputs; `controlRef`, the view child that replaces `buttonRef`; and `destination`, the computed that decides which of the three elements renders. It also LOST `buttonRef`, so a subclass that overrode that one now overrides nothing and its member is dead rather than broken. CheckboxComponent, RadioComponent and SwitchComponent each gained `ariaLabel` and `resolvedAriaLabel`.",
|
|
39
|
+
"verify": "The app builds with no TS2415 or TS2416 naming ButtonComponent, CheckboxComponent, RadioComponent or SwitchComponent, and no member of your subclass is called routerLink, href, controlRef, destination, ariaLabel or resolvedAriaLabel.",
|
|
40
|
+
"searchHints": [
|
|
41
|
+
"extends ButtonComponent",
|
|
42
|
+
"extends CheckboxComponent",
|
|
43
|
+
"extends RadioComponent",
|
|
44
|
+
"extends SwitchComponent",
|
|
45
|
+
"routerLink",
|
|
46
|
+
"href",
|
|
47
|
+
"controlRef",
|
|
48
|
+
"destination",
|
|
49
|
+
"ariaLabel",
|
|
50
|
+
"TS2415",
|
|
51
|
+
"TS2416"
|
|
52
|
+
],
|
|
53
|
+
"detect": [
|
|
54
|
+
"extends ButtonComponent",
|
|
55
|
+
"extends CheckboxComponent",
|
|
56
|
+
"extends RadioComponent",
|
|
57
|
+
"extends SwitchComponent",
|
|
58
|
+
"override routerLink",
|
|
59
|
+
"override href",
|
|
60
|
+
"override controlRef",
|
|
61
|
+
"override destination",
|
|
62
|
+
"override buttonRef",
|
|
63
|
+
"override ariaLabel",
|
|
64
|
+
"override resolvedAriaLabel"
|
|
65
|
+
],
|
|
66
|
+
"restore": null
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"informational": [
|
|
70
|
+
"`ds-button` takes two new optional inputs, `routerLink` and `href`. Unset, which is the default and what every existing button has, it renders the same `<button type=\"button\">` as before. Set either and it renders an `<a>` instead, with identical styling — the rules are class-based, so nothing keyed to `.button` moves. `type` and `loading` are ignored on a link and say so in dev mode.",
|
|
71
|
+
"A `ds-multi-select` panel filter row now carries `--ds-radius-inner`, so its focus ring is rounded instead of a full-width rectangle. Nothing to change — an `outline` follows the radius of the box it is drawn on, and that row simply had none.",
|
|
72
|
+
"A focus ring is now shaped by its host: the new `--focus-ring-radius` token gives a box that exists only to carry the ring a radius, because an outline follows the `border-radius` of the box it is drawn on and has none of its own. It follows `--ds-radius-inner`, 4px, so a theme that retunes the inner radius moves these rings with it. `ds-checkbox`, `ds-radio` and `ds-switch` pick it up, so their keyboard focus ring is rounded instead of square. Nothing to change — the resting state of all three is untouched, and a host with its own radius keeps it.",
|
|
73
|
+
"A clickable `ds-table` row, a `ds-tree` row and a `ds-list` activator now carry `--focus-ring-radius`, so their keyboard focus ring is rounded instead of square. Nothing to change: none of the three paints a background of its own, so the radius shapes only the ring, and their resting appearance is unchanged.",
|
|
74
|
+
"A field marked `disabled` no longer paints its `data-field-state`. An `error`, `warning` or `success` state used to out-rank the disabled look in `ds-input`, `ds-textarea`, `ds-select`, `ds-multi-select`, `ds-autocomplete`, `ds-date-picker`, `ds-time-picker`, `ds-color-picker` and `ds-otp-input`, on specificity alone, so a field left invalid and then disabled kept a red border and fill it could not act on. Nothing to change — `data-field-state` is set the same way and means the same thing, and a read-only field still paints it, because `readonly` is submitted where `disabled` is not.",
|
|
75
|
+
"`ds-field-group[invalid]` keeps its error border while hovered and while holding focus. Both `:hover` and `:focus-within` used to out-rank `.invalid` on specificity and repaint the border, which is the group's only error affordance because a segment's own label and message are hidden. Its focus halo now takes the error tint, through the new `--ds-field-group-focus-shadow-error` (default `--ds-field-focus-shadow-error`). Nothing to change — a valid group hovers and focuses as before, and a stylesheet that set `--ds-field-group-focus-shadow` still gets it on the valid state.",
|
|
76
|
+
"`ds-stat variant=\"error\"` now actually recolours the value. `:host(.error) .value` tied `.stat .value` on specificity and lost on source order, so the variant painted nothing; error now moves the `--_stat-value-color` resolver. Nothing to change, and a stylesheet setting `--ds-stat-value-color` still wins over it, exactly as before.",
|
|
77
|
+
"`ds-breadcrumbs`: `BreadcrumbItem` takes an optional `ariaLabel`, and a crumb with an `icon` and no `label` needs it: that shape rendered a link with no accessible name. Add `ariaLabel` to any icon-only crumb — the usual home crumb — and the component dev-warns while one is missing. Nothing derives from `icon`, because a glyph id is not a word for the user.",
|
|
78
|
+
"`ds-sidenav-footer`'s collapse button carries an `aria-label`, and its label reads `Expand` while the rail is collapsed rather than always `Collapse`. Nothing to change; a stylesheet that keyed off the text content of `.row .label` is the one exception, and none is expected.",
|
|
79
|
+
"`--focus-ring` is a two-shadow LIST for `box-shadow`, not a value for `outline` — worth knowing because putting it in an `outline` fails silently and takes the ring with it. A `var()` that cannot substitute is invalid at computed-value time, so the property computes back to its initial value instead of being dropped, and it still out-ranks the library's own `:where(:focus-visible)` ring by specificity: the element ends up with no indicator at all. For an outline use `--focus-ring-width`, `--focus-ring-color` and `--focus-ring-offset`, or just let the global ring do it. Nothing in the package was affected; this is the shape to avoid in consumer stylesheets.",
|
|
80
|
+
"`ds-checkbox`, `ds-radio` and `ds-switch` take an optional `ariaLabel`, for the case where the control renders no visible label — no `label` and nothing projected. Until now such a control had no accessible name and no way to be given one; `ds-select` and `ds-number-stepper` already took the same input. Nothing to change unless you have a label-less one, and setting it ALONGSIDE a label overrides what the label says, which is the ARIA rule and rarely what you want."
|
|
81
|
+
],
|
|
82
|
+
"deleteList": []
|
|
83
|
+
}
|