@ids-group-ltd/ids-design-system 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +108 -23
- package/agent/forms/ds-autocomplete.md +1 -1
- package/agent/forms/ds-button.md +3 -3
- package/agent/forms/ds-checkbox.md +1 -1
- package/agent/forms/ds-color-picker.md +1 -1
- package/agent/forms/ds-date-picker.md +1 -1
- package/agent/forms/ds-icon-button.md +1 -1
- package/agent/forms/ds-input.md +1 -1
- package/agent/forms/ds-multi-select.md +1 -1
- package/agent/forms/ds-otp-input.md +1 -1
- package/agent/forms/ds-radio-group.md +1 -1
- package/agent/forms/ds-radio.md +1 -1
- package/agent/forms/ds-search.md +1 -1
- package/agent/forms/ds-segmented.md +1 -1
- package/agent/forms/ds-select.md +1 -1
- package/agent/forms/ds-slider.md +1 -1
- package/agent/forms/ds-switch.md +1 -1
- package/agent/forms/ds-textarea.md +1 -1
- package/agent/forms/ds-time-picker.md +1 -1
- package/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
- package/components.md +22 -22
- package/design-system.md +24 -0
- package/eslint/deprecated-api.json +7 -210
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +22 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +4 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -0
- 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 +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +27 -19
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +8 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.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 +4 -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-otp-input.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +4 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +62 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +3 -0
- 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 +2 -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 +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -0
- 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-resize.mjs +10 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -0
- 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 +58 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +53 -43
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +2 -3
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.15.1.json +4 -2
- package/migrations/0.15.3.json +14 -4
- package/migrations/1.0.0.json +0 -333
- package/migrations/1.0.1.json +36 -0
- package/migrations/1.0.2.json +70 -0
- package/package.json +5 -9
- package/schematics/check-overrides/surface.json +4 -1
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +11 -4
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +2 -1
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +26 -2
- package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +0 -1
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +7 -0
- package/types/ids-group-ltd-ids-design-system-components.d.ts +25 -21
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs +0 -52
- package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs.map +0 -1
- package/types/ids-group-ltd-ids-design-system-components-submitted.d.ts +0 -27
package/components.md
CHANGED
|
@@ -138,7 +138,7 @@ Every entry below names its exported class (`ButtonComponent`, `TableComponent<T
|
|
|
138
138
|
|
|
139
139
|
**Shared by every field** (input, textarea, select, multi-select, autocomplete, date/time/colour picker,
|
|
140
140
|
checkbox, radio, radio-group, switch, slider, segmented, OTP): `label`, `hint`, `error`, `warning`,
|
|
141
|
-
`errors`, `invalid`, `reserveMessage` — and one message line under the control that renders
|
|
141
|
+
`errors`, `invalid`, `touched`, `reserveMessage` — and one message line under the control that renders
|
|
142
142
|
whichever of them wins. The ladder is error → errors → warning → advisory errors → success → hint.
|
|
143
143
|
Every field control also has `focus(options?)` and `blur()`. `blur()` drops focus from whichever
|
|
144
144
|
descendant holds it and leaves a portaled panel alone; `ds-autocomplete.clear()` keeps focus on
|
|
@@ -158,7 +158,7 @@ is not a validated field; where a search needs a label or an error line, use `ds
|
|
|
158
158
|
**Shared box tokens.** `--ds-field-border-color`, `--ds-field-border-color-hover`, `--ds-field-border-color-focus`, `--ds-field-text-color`, `--ds-field-placeholder-color` and `--ds-field-font-size` sit UNDER each field's own token the way `--ds-field-height` and `--ds-field-label-*` do: `--ds-input-border`, `--ds-select-border-color-focus` or `--ds-autocomplete-text-color` still wins where set, and the family value fills in everywhere it is not. They reach input, textarea, select, multi-select, autocomplete and search. The date, time and colour pickers, the number stepper and the OTP cells keep their own `--ds-<component>-*` tokens and do not read the family.
|
|
159
159
|
|
|
160
160
|
#### `<ds-button>` — `ButtonComponent`
|
|
161
|
-
Inputs: **two orthogonal axes** — `color: ButtonColor = 'primary'` (`'primary' | 'secondary' | 'tertiary' | 'neutral' | 'error' | 'success' | 'warning'`) and `variant: ButtonVariant = 'solid'` (`'solid' | 'tonal' | 'outline' | 'ghost' | 'text'`). Plus `size: DsSize | null = null` (unset resolves `DS_CONFIG.control.size`, then `md`), `type: 'button' | 'submit' | 'reset' = 'button'`, `align: ButtonAlign = 'center'` (`'center' | 'between'`; `'between'` pushes the label and a trailing icon to opposite edges, and only shows once something widens the button past its contents), `disabled`, `loading`, `fullWidth`, `icon: IconName | null`, and the destination pair `routerLink: DsRouterLink = null` (a path, a command array or a `UrlTree`) / `href: string = ''`, with the modifiers `fragment` / `queryParams` / `queryParamsHandling` (routerLink-only) and `target` / `rel` (either link), plus `routerLinkActiveOptions` and `ariaCurrent`. Plus the refusal pair below: `disabledReason`, and the field message inputs `hint` / `warning` / `error` / `messageIcon` / `reserveMessage` / `ariaDescribedBy`.
|
|
161
|
+
Inputs: **two orthogonal axes** — `color: ButtonColor = 'primary'` (`'primary' | 'secondary' | 'tertiary' | 'neutral' | 'error' | 'success' | 'warning'`) and `variant: ButtonVariant = 'solid'` (`'solid' | 'tonal' | 'outline' | 'ghost' | 'text'`). Plus `size: DsSize | null = null` (unset resolves `DS_CONFIG.control.size`, then `md`), `type: 'button' | 'submit' | 'reset' = 'button'`, `align: ButtonAlign = 'center'` (`'center' | 'between'`; `'between'` pushes the label and a trailing icon to opposite edges, and only shows once something widens the button past its contents), `disabled`, `loading`, `loadingMode: ButtonLoadingMode = 'auto'` (`'auto' | 'icon' | 'replace'`; `'icon'` draws the spinner in the leading icon's box, or the trailing one's when there is no leading icon, and keeps the label; `'replace'` hides the contents behind one centred spinner; `'auto'` is `'icon'` when `icon` is set; neither moves the label or resizes the button), `fullWidth`, `icon: IconName | null`, and the destination pair `routerLink: DsRouterLink = null` (a path, a command array or a `UrlTree`) / `href: string = ''`, with the modifiers `fragment` / `queryParams` / `queryParamsHandling` (routerLink-only) and `target` / `rel` (either link), plus `routerLinkActiveOptions` and `ariaCurrent`. Plus the refusal pair below: `disabledReason`, and the field message inputs `hint` / `warning` / `error` / `messageIcon` / `reserveMessage` / `ariaDescribedBy`.
|
|
162
162
|
Axis meaning: **variant is loudness** (solid > tonal > outline/ghost/text), **color is hue** — every pair renders, and the UX-discouraged ones dev-warn with the reason. Only solid and tonal paint a fill: outline, ghost and text are TRANSPARENT, so they adopt the surface they sit on. Disabled splits by whether the fill can carry the state: `solid` and `tonal` keep `oklch(from accent 70% 0.035 h)`, while `outline`, `ghost` and `text` — the three with no fill of their own — mix the label toward the surface, `color-mix(in srgb, <label> 40%, var(--surface-default))`, because a fixed lightness cannot serve both themes. (History: the single `variant` axis was split into color × variant in 2026-06; `danger`→`error`, `link`→`text`, the old `ghost`→`outline`.)
|
|
163
163
|
Output: `(pressed): MouseEvent` — only fires when not disabled and not loading
|
|
164
164
|
**`loading` keeps the button in the focus order.** It sets `aria-busy` and `aria-disabled`, never the native `disabled`, so a button pressed from the keyboard keeps focus while the work runs; the click is swallowed in the handler, so `(pressed)` does not fire and a `type="submit"` does not submit. For an action in flight bind `loading`, not `disabled`: a natively disabled button under focus drops it to the page.
|
|
@@ -169,12 +169,12 @@ Output: `(pressed): MouseEvent` — only fires when not disabled and not loading
|
|
|
169
169
|
Content slots: default (label / leading or trailing icon), plus `[dsButtonSubtext]` for a projected second line. For icon-only actions use `<ds-icon-button>`.
|
|
170
170
|
**Saying WHY a button is refused, and the two kinds of refusal.** A greyed control that does not say why is a dead end, and until 0.10.4 the only way to explain one was a tooltip — mouse-only. Which input to reach for is decided by whether the user can lift the refusal on this screen:
|
|
171
171
|
- **Standing** (no permission, no integration — nothing here will change it): `disabledReason` beside `disabled`. The reason renders as a second line INSIDE the button, and setting it flips how the button is disabled — `aria-disabled="true"` instead of the native attribute, because a natively disabled button never takes focus and its description would never be announced (measured; Chrome's a11y tree reports name `"Approve invoice"`, description `"Needs the Finance role"`, state disabled). The click is swallowed in the handler instead, so `(pressed)` still never fires. Leave `disabledReason` unset and NOTHING changes: the native attribute stays, and so does every existing layout. Length is deliberately uncapped — the text wraps and the button grows.
|
|
172
|
-
- **Temporary** (the form is not filled in yet): the button is enabled until the first error. Before the first submit it stays live and no error shows (not on blur, not while typing); a submit on an invalid form shows the errors inline, focuses the first invalid field and disables the button while the form stays invalid; from then on validation is live until the form is reset, so a fix enables the button and a new error disables it at once, with no second submit. Shape: `[disabled]="submitted() && invalid()"`, `submitted = signal(false)` set at the start of the submit handler and reset with the form
|
|
172
|
+
- **Temporary** (the form is not filled in yet): the button is enabled until the first error. Before the first submit it stays live and no error shows (not on blur, not while typing); a submit on an invalid form shows the errors inline, focuses the first invalid field and disables the button while the form stays invalid; from then on validation is live until the form is reset, so a fix enables the button and a new error disables it at once, with no second submit. Shape: `[disabled]="submitted() && invalid()"`, `submitted = signal(false)` set at the start of the submit handler and reset with the form; in flight bind `[loading]`, never the loading flag inside `[disabled]`. Carry the text UNDER the button with `hint` / `warning` / `error` — the same three inputs the fields take, resolved and rendered by the same `ds-field-message` row the fields use, with the same `messageIcon` and `reserveMessage` knobs and the same `DS_CONFIG.field.*` fallbacks. Those inputs live on an internal shared base class that `ButtonComponent` and every field extend, so the behaviour cannot drift apart. What it does NOT take is `errors` / `invalid` / `touched`: a button has no validation state of its own.
|
|
173
173
|
Layout: a message-bearing button becomes a column (host class `with-message`), and because the host shrinks to fit, a message longer than the label widens the pair — button included, exactly as a field's control spans its own message. Without a message the host keeps the `inline-flex` box every existing layout was built against.
|
|
174
174
|
Tokens: `--ds-button-bg-color`, `--ds-button-bg-color-hover`, `--ds-button-bg-color-active`, `--ds-button-bg-color-disabled`, `--ds-button-label-color`, `--ds-button-label-color-disabled`, `--ds-button-border-color`, `--ds-button-border-color-hover`, `--ds-button-border-color-active`, `--ds-button-border-color-disabled`, `--ds-button-border-width`, `--ds-button-radius`, `--ds-button-pressed-shadow`, `--ds-button-shadow`, `--ds-button-shadow-hover`. The focus ring is not a button token — set `--focus-ring-color`, `--focus-ring-width` or `--focus-ring-offset` on the button's own scope. The last two are the REST and hover shadow, both `none` by default — before them the only way to give a button a resting shadow was a deep selector into its inner `<button>`. `-shadow-hover` falls back to `-shadow`, so setting the resting one alone keeps the button steady under the pointer; focus and pressed keep their own hooks and still win while those states are on. `-border-color-hover` falls back to the rest border and `-border-color-active` to the hover one, so an outline button's edge stays put until one of them is set. For `variant="solid"`, `-bg-color-hover` / `-bg-color-active` / `-pressed-shadow` default to a `color-mix()` derivation of the resolved fill (88 % / 76 % + black — the theme's hover/pressed recipe), so overriding the fill alone retints the whole state set; tonal, outline, ghost and text keep explicit ramp defaults, so a full retint there means setting the state tokens too.
|
|
175
175
|
|
|
176
176
|
<!-- inputs:ds-button -->
|
|
177
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `color: ButtonColor = 'primary'`, `variant: 'solid' | 'tonal' | 'ghost' | 'outline' | 'text' = 'solid'`, `align: 'center' | 'between' = 'center'`, `size: 'sm' | 'md' | 'lg' = null`, `routerLink: DsRouterLink = null`, `href: string = ''`, `fragment: string | undefined`, `queryParams: Params | null | undefined`, `queryParamsHandling: QueryParamsHandling | null | undefined`, `target: string | undefined`, `rel: string | undefined`, `routerLinkActiveOptions: { exact: boolean } | IsActiveMatchOptions`, `ariaCurrent: 'page' | 'step' | 'location' | 'date' | 'time' | 'true'`, `type: 'button' | 'submit' | 'reset' = 'button'`, `disabled: boolean = false`, `loading: boolean = false`, `fullWidth: boolean = false`, `ariaLabel: string | null = null`, `icon: IconName | null = null`, `trailingIcon: IconName | null = null`, `ariaHasPopup: 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' = null`, `ariaExpanded: boolean | null = null`, `ariaControls: string | null = null`, `disabledReason: string = ''`, `ariaDescribedBy: string | null = null`
|
|
177
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `color: ButtonColor = 'primary'`, `variant: 'solid' | 'tonal' | 'ghost' | 'outline' | 'text' = 'solid'`, `align: 'center' | 'between' = 'center'`, `size: 'sm' | 'md' | 'lg' = null`, `routerLink: DsRouterLink = null`, `href: string = ''`, `fragment: string | undefined`, `queryParams: Params | null | undefined`, `queryParamsHandling: QueryParamsHandling | null | undefined`, `target: string | undefined`, `rel: string | undefined`, `routerLinkActiveOptions: { exact: boolean } | IsActiveMatchOptions`, `ariaCurrent: 'page' | 'step' | 'location' | 'date' | 'time' | 'true'`, `type: 'button' | 'submit' | 'reset' = 'button'`, `disabled: boolean = false`, `loading: boolean = false`, `loadingMode: 'auto' | 'icon' | 'replace' = 'auto'`, `fullWidth: boolean = false`, `ariaLabel: string | null = null`, `icon: IconName | null = null`, `trailingIcon: IconName | null = null`, `ariaHasPopup: 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' = null`, `ariaExpanded: boolean | null = null`, `ariaControls: string | null = null`, `disabledReason: string = ''`, `ariaDescribedBy: string | null = null`
|
|
178
178
|
<!-- /inputs -->
|
|
179
179
|
|
|
180
180
|
#### `<ds-icon-button>` — `IconButtonComponent`
|
|
@@ -185,7 +185,7 @@ Variant emphasis: `standard` chromeless (hover-reveal) · `filled` `--primary`
|
|
|
185
185
|
Tokens: `--ds-icon-button-bg-color`, `--ds-icon-button-icon-color`, `--ds-icon-button-border`, `--ds-icon-button-border-hover`, `--ds-icon-button-border-active`, `--ds-icon-button-bg-color-hover`, `--ds-icon-button-bg-color-active`, `--ds-icon-button-icon-color-hover`, `--ds-icon-button-radius`. The focus ring is not an icon-button token — set `--focus-ring-color`, `--focus-ring-width` or `--focus-ring-offset` on its own scope. `filled`/`selected` derive hover/active from the resolved bg, `standard`/`tonal`/`outlined` keep explicit ramp defaults. `-border-hover` falls back to `-border` and `-border-active` to `-border-hover`, so the border stays put until one of them is set.
|
|
186
186
|
|
|
187
187
|
<!-- inputs:ds-icon-button -->
|
|
188
|
-
All inputs: `icon: required IconName`, `ariaLabel: required string`, `ariaDescribedBy: string | null = null`, `variant: 'standard' | 'filled' | 'tonal' | 'outlined' = 'standard'`, `color: ButtonColor = 'primary'`, `size: 'sm' | 'md' | 'lg' = null`, `type: 'button' | 'submit' | 'reset' = 'button'`, `disabled: boolean = false`, `selected: boolean | null = null`, `ariaExpanded: boolean | null = null`, `ariaControls: string | null = null`
|
|
188
|
+
All inputs: `icon: required IconName`, `ariaLabel: required string`, `ariaDescribedBy: string | null = null`, `variant: 'standard' | 'filled' | 'tonal' | 'outlined' = 'standard'`, `color: ButtonColor = 'primary'`, `size: 'sm' | 'md' | 'lg' = null`, `type: 'button' | 'submit' | 'reset' = 'button'`, `disabled: boolean = false`, `selected: boolean | null = null`, `ariaHasPopup: 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' = null`, `ariaExpanded: boolean | null = null`, `ariaControls: string | null = null`
|
|
189
189
|
<!-- /inputs -->
|
|
190
190
|
|
|
191
191
|
#### `<ds-input>` — `InputComponent`
|
|
@@ -208,7 +208,7 @@ Example:
|
|
|
208
208
|
Tokens: `--ds-input-bg-color`, `--ds-input-border`, `--ds-input-border-hover`, `--ds-input-border-focus`, `--ds-input-text-color`, `--ds-input-placeholder`, `--ds-input-radius`, `--ds-input-padding-x`, `--ds-input-padding-y`, `--ds-input-focus-shadow`, `--ds-input-border-error`, `--ds-input-bg-color-error`, `--ds-input-border-success`, `--ds-input-bg-color-disabled`, `--ds-input-font-size` (also read by `ds-textarea`)
|
|
209
209
|
|
|
210
210
|
<!-- inputs:ds-input -->
|
|
211
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string = ''`, `type: InputType = 'text'`, `size: 'sm' | 'md' | 'lg' = null`, `label: string = ''`, `placeholder: string = ''`, `disabled: boolean = false`, `readOnly: boolean = false`, `readonly: boolean = false`, `success: string = ''`, `loading: boolean = false`, `required: boolean = false`, `optional: boolean = false`, `name: string | null = null`, `min: number | null = null`, `max: number | null = null`, `step: number | null = null`, `autocomplete: string | null = null`, `autofocus: boolean = false`, `ariaLabel: string | null = null`, `ariaDescribedBy: string | null = null`, `maxLength: number | null = null`, `minLength: number | null = null`, `pattern: readonly RegExp[] = []`, `enterKeyHint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | null = null`, `inputMode: | 'none'
|
|
211
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string = ''`, `type: InputType = 'text'`, `size: 'sm' | 'md' | 'lg' = null`, `label: string = ''`, `placeholder: string = ''`, `disabled: boolean = false`, `readOnly: boolean = false`, `readonly: boolean = false`, `success: string = ''`, `loading: boolean = false`, `required: boolean = false`, `optional: boolean = false`, `name: string | null = null`, `min: number | null = null`, `max: number | null = null`, `step: number | null = null`, `autocomplete: string | null = null`, `autofocus: boolean = false`, `ariaLabel: string | null = null`, `ariaDescribedBy: string | null = null`, `maxLength: number | null = null`, `minLength: number | null = null`, `pattern: readonly RegExp[] = []`, `enterKeyHint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | null = null`, `inputMode: | 'none'
|
|
212
212
|
| 'text'
|
|
213
213
|
| 'decimal'
|
|
214
214
|
| 'numeric'
|
|
@@ -227,7 +227,7 @@ New: `autosize: boolean = false` (grows with content; forces `resize='none'`), `
|
|
|
227
227
|
Methods: `focus(options?)`, `selectionStart` / `selectionEnd` (reads), `setSelectionRange(start, end, direction?)`, `select()` - all forwarded to the native `<textarea>`, so an editor toolbar never queries the component's DOM. A value written through `value` lands a microtask later and moves the caret to the end; set a range after `value.set(...)` from a `setTimeout`.
|
|
228
228
|
|
|
229
229
|
<!-- inputs:ds-textarea -->
|
|
230
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string = ''`, `size: 'sm' | 'md' | 'lg' = null`, `label: string = ''`, `placeholder: string = ''`, `disabled: boolean = false`, `readOnly: boolean = false`, `readonly: boolean = false`, `success: string = ''`, `required: boolean = false`, `optional: boolean = false`, `rows: number = 3`, `name: string | null = null`, `autosize: boolean = false`, `minRows: number | null = null`, `maxRows: number | null = null`, `resize: 'none' | 'vertical' | 'horizontal' | 'both' = 'vertical'`, `ariaLabel: string | null = null`, `maxLength: number | null = null`, `maxLengthMode: 'hard' | 'soft' = 'hard'`, `countTrimmed: boolean = false`, `minLength: number | null = null`, `pattern: readonly RegExp[] = []`
|
|
230
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string = ''`, `size: 'sm' | 'md' | 'lg' = null`, `label: string = ''`, `placeholder: string = ''`, `disabled: boolean = false`, `readOnly: boolean = false`, `readonly: boolean = false`, `success: string = ''`, `required: boolean = false`, `optional: boolean = false`, `rows: number = 3`, `name: string | null = null`, `autosize: boolean = false`, `minRows: number | null = null`, `maxRows: number | null = null`, `resize: 'none' | 'vertical' | 'horizontal' | 'both' = 'vertical'`, `ariaLabel: string | null = null`, `maxLength: number | null = null`, `maxLengthMode: 'hard' | 'soft' = 'hard'`, `countTrimmed: boolean = false`, `minLength: number | null = null`, `pattern: readonly RegExp[] = []`
|
|
231
231
|
<!-- /inputs -->
|
|
232
232
|
|
|
233
233
|
#### `<ds-number-stepper>` — `NumberStepperComponent`
|
|
@@ -244,14 +244,14 @@ All inputs: `value: number = 0`, `min: number = 0`, `max: number | null = null`,
|
|
|
244
244
|
Inputs: `checked: model<boolean>`, `indeterminate: boolean = false`, `disabled: boolean = false`, `name: string | null = null`, `inputId: string | null = null`
|
|
245
245
|
|
|
246
246
|
<!-- inputs:ds-checkbox -->
|
|
247
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `checked: boolean = false`, `indeterminate: boolean = false`, `disabled: boolean = false`, `name: string | null = null`, `inputId: string | null = null`, `size: 'sm' | 'md' | 'lg' = null`, `required: boolean = false`, `label: string = ''`, `ariaLabel: string | null = null`
|
|
247
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `checked: boolean = false`, `indeterminate: boolean = false`, `disabled: boolean = false`, `name: string | null = null`, `inputId: string | null = null`, `size: 'sm' | 'md' | 'lg' = null`, `required: boolean = false`, `label: string = ''`, `ariaLabel: string | null = null`
|
|
248
248
|
<!-- /inputs -->
|
|
249
249
|
|
|
250
250
|
#### `<ds-radio>` — `RadioComponent`
|
|
251
251
|
Inputs: `checked: model<boolean>`, `disabled: boolean = false`, `name: string = ''`, `value: string = ''`, `inputId: string | null = null`. Use in groups via shared `name`.
|
|
252
252
|
|
|
253
253
|
<!-- inputs:ds-radio -->
|
|
254
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `checked: boolean = false`, `deselectable: boolean = false`, `disabled: boolean = false`, `name: string = ''`, `value: unknown = ''`, `inputId: string | null = null`, `size: 'sm' | 'md' | 'lg' = null`, `required: boolean = false`, `label: string = ''`, `ariaLabel: string | null = null`
|
|
254
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `checked: boolean = false`, `deselectable: boolean = false`, `disabled: boolean = false`, `name: string = ''`, `value: unknown = ''`, `inputId: string | null = null`, `size: 'sm' | 'md' | 'lg' = null`, `required: boolean = false`, `label: string = ''`, `ariaLabel: string | null = null`
|
|
255
255
|
<!-- /inputs -->
|
|
256
256
|
|
|
257
257
|
#### `<ds-switch>` — `SwitchComponent`
|
|
@@ -260,7 +260,7 @@ Outputs: `(checkedRequested): boolean` - only when `controlled`: the value the u
|
|
|
260
260
|
Controlled: `<ds-switch controlled [checked]="paused()" (checkedRequested)="askPause($event)" />` - a click cancels the native toggle instead of flipping, so a confirm dialog can run first and a cancelled one leaves the track untouched. Off by default; the switch flips on every toggle as before.
|
|
261
261
|
|
|
262
262
|
<!-- inputs:ds-switch -->
|
|
263
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `checked: boolean = false`, `disabled: boolean = false`, `name: string | null = null`, `variant: 'default' | 'success' | 'error' = 'default'`, `inputId: string | null = null`, `size: 'sm' | 'md' | 'lg' = null`, `required: boolean = false`, `label: string = ''`, `ariaLabel: string | null = null`, `controlled: boolean = false`
|
|
263
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `checked: boolean = false`, `disabled: boolean = false`, `name: string | null = null`, `variant: 'default' | 'success' | 'error' = 'default'`, `inputId: string | null = null`, `size: 'sm' | 'md' | 'lg' = null`, `required: boolean = false`, `label: string = ''`, `ariaLabel: string | null = null`, `controlled: boolean = false`
|
|
264
264
|
<!-- /inputs -->
|
|
265
265
|
|
|
266
266
|
#### The picker family — `<ds-select>`, `<ds-multi-select>`, `<ds-autocomplete>`
|
|
@@ -282,7 +282,7 @@ Shared panel tokens — the three pickers portal their panel out of the componen
|
|
|
282
282
|
Shared option tokens, painting the row inside any of the three panels: `--ds-option-selected-bg-color`, `-hover`, `--ds-option-selected-label-color`, `--ds-option-check-color`. `ds-select` and `ds-autocomplete` mark the selection with the check glyph these paint; `ds-multi-select` uses a checkbox and answers to `--ds-multi-select-check-bg-color` instead.
|
|
283
283
|
|
|
284
284
|
<!-- inputs:ds-select -->
|
|
285
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string = ''`, `options: readonly SelectItem[] = []`, `width: 'fill' | 'content' = 'fill'`, `placeholder: string = ''`, `size: 'sm' | 'md' | 'lg' = null`, `label: string = ''`, `disabled: boolean = false`, `loading: boolean = false`, `scrollActiveIntoView: boolean = true`, `panelClass: string | readonly string[] = []`, `readOnly: boolean = false`, `readonly: boolean = false`, `success: string = ''`, `required: boolean = false`, `optional: boolean = false`, `name: string | null = null`, `ariaLabel: string | null = null`, `clearable: boolean = false`, `staticPreview: boolean = false`
|
|
285
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string = ''`, `options: readonly SelectItem[] = []`, `width: 'fill' | 'content' = 'fill'`, `placeholder: string = ''`, `size: 'sm' | 'md' | 'lg' = null`, `label: string = ''`, `disabled: boolean = false`, `loading: boolean = false`, `scrollActiveIntoView: boolean = true`, `panelClass: string | readonly string[] = []`, `readOnly: boolean = false`, `readonly: boolean = false`, `success: string = ''`, `required: boolean = false`, `optional: boolean = false`, `name: string | null = null`, `ariaLabel: string | null = null`, `clearable: boolean = false`, `staticPreview: boolean = false`
|
|
286
286
|
<!-- /inputs -->
|
|
287
287
|
|
|
288
288
|
#### `<ds-select>` — `SelectComponent`
|
|
@@ -290,14 +290,14 @@ Inputs: `value: model<string>`, `options: SelectItem[]`, `placeholder: string =
|
|
|
290
290
|
Trigger plus a CDK overlay panel. Keyboard: ArrowUp/Down, Enter/Space, Home/End, Escape, skipping group headers. `isSelectOptionGroup(item)` is re-exported as a type guard.
|
|
291
291
|
|
|
292
292
|
<!-- inputs:ds-select -->
|
|
293
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string = ''`, `options: readonly SelectItem[] = []`, `width: 'fill' | 'content' = 'fill'`, `placeholder: string = ''`, `size: 'sm' | 'md' | 'lg' = null`, `label: string = ''`, `disabled: boolean = false`, `loading: boolean = false`, `scrollActiveIntoView: boolean = true`, `panelClass: string | readonly string[] = []`, `readOnly: boolean = false`, `readonly: boolean = false`, `success: string = ''`, `required: boolean = false`, `optional: boolean = false`, `name: string | null = null`, `ariaLabel: string | null = null`, `clearable: boolean = false`, `staticPreview: boolean = false`
|
|
293
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string = ''`, `options: readonly SelectItem[] = []`, `width: 'fill' | 'content' = 'fill'`, `placeholder: string = ''`, `size: 'sm' | 'md' | 'lg' = null`, `label: string = ''`, `disabled: boolean = false`, `loading: boolean = false`, `scrollActiveIntoView: boolean = true`, `panelClass: string | readonly string[] = []`, `readOnly: boolean = false`, `readonly: boolean = false`, `success: string = ''`, `required: boolean = false`, `optional: boolean = false`, `name: string | null = null`, `ariaLabel: string | null = null`, `clearable: boolean = false`, `staticPreview: boolean = false`
|
|
294
294
|
<!-- /inputs -->
|
|
295
295
|
|
|
296
296
|
#### `<ds-multi-select>` — `MultiSelectComponent`
|
|
297
297
|
Inputs: `value: model<string[]>`, `options: readonly MultiSelectItem[]`, `placeholder: string | null = null` (unset: `DS_INTL.picker.placeholder`), `searchPlaceholder: string | null = null` (unset: `DS_INTL.picker.filterPlaceholder`), `searchable: boolean | number | null = null` (`true` always shows the filter row, `false` never, a NUMBER shows it once the option count reaches it), `selectAll: boolean | 'group' | 'both' = false` (`'group'` puts a row per group, `'both'` adds a global row beside them), `triggerDisplay: DsTriggerDisplay = 'full'` (`'full' | 'count' | 'labels'`), `maxVisibleChips: number | 'fit' | 'all' | null = null` (a NUMBER is a ceiling, not an exact count — fewer fit when the trigger is narrow), `width`, `size`, `label`, `disabled`, `success`, `required`, `optional`, `ariaLabel`
|
|
298
298
|
|
|
299
299
|
<!-- inputs:ds-multi-select -->
|
|
300
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string[] = []`, `options: readonly MultiSelectItem[] = []`, `placeholder: string | null = null`, `searchPlaceholder: string | null = null`, `searchable: boolean | number | null = null`, `name: string | null = null`, `panelClass: string | readonly string[] = []`, `readOnly: boolean = false`, `readonly: boolean = false`, `clearable: boolean = false`, `filterWith: ((option: MultiSelectOption, query: string) => boolean) | 'none'`, `loading: boolean = false`, `scrollActiveIntoView: boolean = true`, `maxVisibleChips: number | 'fit' | 'all' | null = null`, `disabled: boolean = false`, `success: string = ''`, `ariaLabel: string | null = null`, `width: 'fill' | 'content' = 'fill'`, `size: 'sm' | 'md' | 'lg' = null`, `triggerDisplay: 'full' | 'count' | 'labels' = 'full'`, `label: string = ''`, `required: boolean = false`, `optional: boolean = false`, `selectAll: boolean | 'group' | 'both' = false`
|
|
300
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string[] = []`, `options: readonly MultiSelectItem[] = []`, `placeholder: string | null = null`, `searchPlaceholder: string | null = null`, `searchable: boolean | number | null = null`, `name: string | null = null`, `panelClass: string | readonly string[] = []`, `readOnly: boolean = false`, `readonly: boolean = false`, `clearable: boolean = false`, `filterWith: ((option: MultiSelectOption, query: string) => boolean) | 'none'`, `loading: boolean = false`, `scrollActiveIntoView: boolean = true`, `maxVisibleChips: number | 'fit' | 'all' | null = null`, `disabled: boolean = false`, `success: string = ''`, `ariaLabel: string | null = null`, `width: 'fill' | 'content' = 'fill'`, `size: 'sm' | 'md' | 'lg' = null`, `triggerDisplay: 'full' | 'count' | 'labels' = 'full'`, `label: string = ''`, `required: boolean = false`, `optional: boolean = false`, `selectAll: boolean | 'group' | 'both' = false`
|
|
301
301
|
<!-- /inputs -->
|
|
302
302
|
|
|
303
303
|
#### `<ds-autocomplete>` — `AutocompleteComponent<T>`
|
|
@@ -307,7 +307,7 @@ Output: `(create): string` — the typed text, when `allowCreate` is on and noth
|
|
|
307
307
|
In multiple mode the selection renders as chips above the trigger.
|
|
308
308
|
|
|
309
309
|
<!-- inputs:ds-autocomplete -->
|
|
310
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `options: readonly AutocompleteItem<T>[] = []`, `value: T | readonly T[] | null = null`, `multiple: boolean = false`, `showChevron: boolean = true`, `maxVisibleChips: number | 'fit' | 'all' | null = null`, `size: 'sm' | 'md' | 'lg' = null`, `width: 'fill' | 'content' = 'fill'`, `valueOverflow: 'ellipsis' | 'wrap' = 'ellipsis'`, `placeholder: string | null = null`, `disabled: boolean = false`, `success: string = ''`, `allowCreate: boolean = false`, `label: string = ''`, `compareWith: (a: T | null, b: T | null) => boolean`, `name: string | null = null`, `panelClass: string | readonly string[] = []`, `readOnly: boolean = false`, `readonly: boolean = false`, `clearable: boolean = false`, `searchPlaceholder: string = ''`, `filterWith: ((option: AutocompleteOption<T>, query: string) => boolean) | 'none'`, `loading: boolean = false`, `scrollActiveIntoView: boolean = true`, `required: boolean = false`, `optional: boolean = false`, `ariaLabel: string | null = null`
|
|
310
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `options: readonly AutocompleteItem<T>[] = []`, `value: T | readonly T[] | null = null`, `multiple: boolean = false`, `showChevron: boolean = true`, `maxVisibleChips: number | 'fit' | 'all' | null = null`, `size: 'sm' | 'md' | 'lg' = null`, `width: 'fill' | 'content' = 'fill'`, `valueOverflow: 'ellipsis' | 'wrap' = 'ellipsis'`, `placeholder: string | null = null`, `disabled: boolean = false`, `success: string = ''`, `allowCreate: boolean = false`, `label: string = ''`, `compareWith: (a: T | null, b: T | null) => boolean`, `name: string | null = null`, `panelClass: string | readonly string[] = []`, `readOnly: boolean = false`, `readonly: boolean = false`, `clearable: boolean = false`, `searchPlaceholder: string = ''`, `filterWith: ((option: AutocompleteOption<T>, query: string) => boolean) | 'none'`, `loading: boolean = false`, `scrollActiveIntoView: boolean = true`, `required: boolean = false`, `optional: boolean = false`, `ariaLabel: string | null = null`
|
|
311
311
|
<!-- /inputs -->
|
|
312
312
|
|
|
313
313
|
#### `<ds-search>` — `SearchComponent`
|
|
@@ -315,7 +315,7 @@ Pre-styled search input with built-in icon. A form control, but not a field: no
|
|
|
315
315
|
Inputs: `value: model<string>`, `placeholder: string | null = null` (unset: `DS_INTL.search.placeholder`), `shortcut: string = ''` (rendered as a hint pill, e.g. `⌘K`), `showIcon: boolean = true`, `clearable: boolean = false`, `ariaLabel: string = ''`, `disabled: boolean = false`, `hidden: boolean = false`, `size: DsSize | null = null`, `debounce: number = 0` (ms held before `value` updates; clearing, Enter and `clear()` all skip the timer)
|
|
316
316
|
Output: `(submitted): string` — emits the current value on Enter / form submit
|
|
317
317
|
Methods: `clear()` — empties the field, drops an armed keystroke and publishes `''` at once, which writing `''` into `value` does not; `focus()`, `blur()`.
|
|
318
|
-
Binds through `NG_VALUE_ACCESSOR`, taking the value plumbing without the field-message layer — so `hint` / `error` / `warning` / `errors` / `invalid` / `reserveMessage` / `messageIcon` are NOT inputs here.
|
|
318
|
+
Binds through `NG_VALUE_ACCESSOR`, taking the value plumbing without the field-message layer — so `hint` / `error` / `warning` / `errors` / `invalid` / `touched` / `reserveMessage` / `messageIcon` are NOT inputs here.
|
|
319
319
|
|
|
320
320
|
<!-- inputs:ds-search -->
|
|
321
321
|
All inputs: `hidden: boolean = false`, `value: string = ''`, `placeholder: string | null = null`, `shortcut: string = ''`, `showIcon: boolean = true`, `clearable: boolean = false`, `ariaLabel: string = ''`, `disabled: boolean = false`, `size: 'sm' | 'md' | 'lg' = null`, `debounce: number = 0`
|
|
@@ -327,7 +327,7 @@ Trigger button opens a CDK overlay calendar; selecting a day in `'single'` close
|
|
|
327
327
|
Width: the field is as wide as its date format (the mask in the monospace value font), so a grid or flex track does not stretch it; `fullWidth` fills the container. `--ds-date-picker-max-width` (default `100%`) caps a `fullWidth` field, so it stops at that width in a wide dialog or column; the field never gets narrower than its date format. `size` sets the height only.
|
|
328
328
|
|
|
329
329
|
<!-- inputs:ds-date-picker -->
|
|
330
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `mode: 'single' | 'range' = 'single'`, `size: 'sm' | 'md' | 'lg' = null`, `fullWidth: boolean = false`, `value: Date | DateRangeValue | null = null`, `placeholder: string | null = null`, `label: string = ''`, `required: boolean = false`, `optional: boolean = false`, `panelClass: string | readonly string[] = []`, `disabled: boolean = false`, `success: string = ''`, `ariaLabel: string | null = null`, `minYear: number`, `maxYear: number`, `minDate: Date | null = null`, `maxDate: Date | null = null`, `disabledDate: ((date: Date) => boolean) | null = null`, `presets: readonly DatePickerPreset[] = []`, `locale: string | null = null`, `dateFormat: string | null = null`, `firstDayOfWeek: number | null = null`, `defaultDate: Date | null = null`, `allowInput: boolean = true`, `staticPreview: boolean = false`
|
|
330
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `mode: 'single' | 'range' = 'single'`, `size: 'sm' | 'md' | 'lg' = null`, `fullWidth: boolean = false`, `value: Date | DateRangeValue | null = null`, `placeholder: string | null = null`, `label: string = ''`, `required: boolean = false`, `optional: boolean = false`, `panelClass: string | readonly string[] = []`, `disabled: boolean = false`, `success: string = ''`, `ariaLabel: string | null = null`, `minYear: number`, `maxYear: number`, `minDate: Date | null = null`, `maxDate: Date | null = null`, `disabledDate: ((date: Date) => boolean) | null = null`, `presets: readonly DatePickerPreset[] = []`, `locale: string | null = null`, `dateFormat: string | null = null`, `firstDayOfWeek: number | null = null`, `defaultDate: Date | null = null`, `allowInput: boolean = true`, `staticPreview: boolean = false`
|
|
331
331
|
<!-- /inputs -->
|
|
332
332
|
|
|
333
333
|
#### `<ds-dropzone>` — `DropzoneComponent`
|
|
@@ -362,7 +362,7 @@ All inputs: `pressed: boolean = false`, `icon: string = ''`, `disabled: boolean
|
|
|
362
362
|
#### `<ds-color-picker>` — `ColorPickerComponent`
|
|
363
363
|
|
|
364
364
|
<!-- inputs:ds-color-picker -->
|
|
365
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string = '#2F54FF'`, `presets: readonly string[]`, `panelClass: string | readonly string[] = []`, `disabled: boolean = false`, `ariaLabel: string | null = null`, `success: string = ''`, `staticPreview: boolean = false`
|
|
365
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string = '#2F54FF'`, `presets: readonly string[]`, `panelClass: string | readonly string[] = []`, `disabled: boolean = false`, `ariaLabel: string | null = null`, `success: string = ''`, `staticPreview: boolean = false`
|
|
366
366
|
<!-- /inputs -->
|
|
367
367
|
|
|
368
368
|
#### `<ds-field-group>` — `FieldGroupComponent`
|
|
@@ -374,7 +374,7 @@ All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `
|
|
|
374
374
|
#### `<ds-otp-input>` — `OtpInputComponent`
|
|
375
375
|
|
|
376
376
|
<!-- inputs:ds-otp-input -->
|
|
377
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string = ''`, `length: number = 6`, `mode: 'numeric' | 'alphanumeric' = 'numeric'`, `mask: boolean = false`, `disabled: boolean = false`, `success: string = ''`, `ariaLabel: string | null = null`
|
|
377
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string = ''`, `length: number = 6`, `mode: 'numeric' | 'alphanumeric' = 'numeric'`, `mask: boolean = false`, `disabled: boolean = false`, `success: string = ''`, `ariaLabel: string | null = null`
|
|
378
378
|
<!-- /inputs -->
|
|
379
379
|
|
|
380
380
|
#### `<ds-password-rules>` — `PasswordRulesComponent`
|
|
@@ -386,25 +386,25 @@ All inputs: `value: string = ''`, `rules: readonly DsPasswordRule[] = []`, `show
|
|
|
386
386
|
#### `<ds-radio-group>` — `RadioGroupComponent`
|
|
387
387
|
|
|
388
388
|
<!-- inputs:ds-radio-group -->
|
|
389
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: unknown = null`, `name: string | null = null`, `disabled: boolean = false`, `ariaLabel: string | null = null`, `label: string = ''`
|
|
389
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: unknown = null`, `name: string | null = null`, `disabled: boolean = false`, `ariaLabel: string | null = null`, `label: string = ''`
|
|
390
390
|
<!-- /inputs -->
|
|
391
391
|
|
|
392
392
|
#### `<ds-segmented>` — `SegmentedComponent`
|
|
393
393
|
|
|
394
394
|
<!-- inputs:ds-segmented -->
|
|
395
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `options: readonly SegmentedOption[] = []`, `value: string = ''`, `ariaLabel: string | null = null`, `label: string = ''`, `disabled: boolean = false`, `joined: boolean = false`
|
|
395
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `options: readonly SegmentedOption[] = []`, `value: string = ''`, `ariaLabel: string | null = null`, `label: string = ''`, `disabled: boolean = false`, `joined: boolean = false`
|
|
396
396
|
<!-- /inputs -->
|
|
397
397
|
|
|
398
398
|
#### `<ds-slider>` — `SliderComponent`
|
|
399
399
|
|
|
400
400
|
<!-- inputs:ds-slider -->
|
|
401
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: SliderValue = 0`, `min: number = 0`, `max: number = 100`, `step: number = 1`, `range: boolean = false`, `disabled: boolean = false`, `ariaLabel: string | null = null`
|
|
401
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: SliderValue = 0`, `min: number = 0`, `max: number = 100`, `step: number = 1`, `range: boolean = false`, `disabled: boolean = false`, `ariaLabel: string | null = null`
|
|
402
402
|
<!-- /inputs -->
|
|
403
403
|
|
|
404
404
|
#### `<ds-time-picker>` — `TimePickerComponent`
|
|
405
405
|
|
|
406
406
|
<!-- inputs:ds-time-picker -->
|
|
407
|
-
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string | TimeRangeValue | null = null`, `mode: 'single' | 'range' = 'single'`, `minuteStep: number = 1`, `minTime: string | null = null`, `maxTime: string | null = null`, `disabledTime: ((time: string) => boolean) | null = null`, `size: 'sm' | 'md' | 'lg' = null`, `fullWidth: boolean = false`, `label: string = ''`, `required: boolean = false`, `optional: boolean = false`, `panelClass: string | readonly string[] = []`, `disabled: boolean = false`, `success: string = ''`, `placeholder: string = '--:--'`, `clearable: boolean = false`, `ariaLabel: string | null = null`, `format: '24h' | '12h' = null`, `loop: 'auto' | 'always' | 'never' = null`, `staticPreview: boolean = false`
|
|
407
|
+
All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `reserveMessage: boolean | null = null`, `messageIcon: IconName | false | null = null`, `errors: readonly DsFieldError[] = []`, `invalid: boolean = false`, `touched: boolean = false`, `pending: boolean = false`, `dirty: boolean = false`, `showDirty: boolean | null = null`, `hidden: boolean = false`, `value: string | TimeRangeValue | null = null`, `mode: 'single' | 'range' = 'single'`, `minuteStep: number = 1`, `minTime: string | null = null`, `maxTime: string | null = null`, `disabledTime: ((time: string) => boolean) | null = null`, `size: 'sm' | 'md' | 'lg' = null`, `fullWidth: boolean = false`, `label: string = ''`, `required: boolean = false`, `optional: boolean = false`, `panelClass: string | readonly string[] = []`, `disabled: boolean = false`, `success: string = ''`, `placeholder: string = '--:--'`, `clearable: boolean = false`, `ariaLabel: string | null = null`, `format: '24h' | '12h' = null`, `loop: 'auto' | 'always' | 'never' = null`, `staticPreview: boolean = false`
|
|
408
408
|
<!-- /inputs -->
|
|
409
409
|
|
|
410
410
|
#### `<ds-filter-bar>` — `FilterBarComponent`
|
package/design-system.md
CHANGED
|
@@ -291,6 +291,30 @@ error cannot greet an untouched form and a half-typed address is not yet wrong.
|
|
|
291
291
|
`error` string is the deliberate exception — binding it says the consumer has already decided,
|
|
292
292
|
so it shows immediately.
|
|
293
293
|
|
|
294
|
+
### Submitting a form: the button stays enabled until the first error
|
|
295
|
+
|
|
296
|
+
The library does not decide when a form is submitted; the app does, with one flag of its own.
|
|
297
|
+
|
|
298
|
+
- **Before the first submit attempt the user is right.** The submit button is enabled and no
|
|
299
|
+
error shows. A simple required field carries `required` (the asterisk) and nothing more; a rule
|
|
300
|
+
the user cannot guess - a format, a length, a range, an order between two dates - goes in `hint`
|
|
301
|
+
up front.
|
|
302
|
+
- **The submit handler sets `submitted` first, then validates the whole form.** When it fails,
|
|
303
|
+
every invalid field shows its error at once, focus moves to the first invalid field in DOM order,
|
|
304
|
+
and nothing is sent.
|
|
305
|
+
- **From then on the form is live**: `[disabled]="submitted() && invalid()"`, so fixing a field
|
|
306
|
+
clears its error and re-enables the button at once. Reset `submitted` when the form is opened or
|
|
307
|
+
reset for new data.
|
|
308
|
+
- **In flight, `[loading]` alone.** A loading `ds-button` blocks presses and keeps focus; never put
|
|
309
|
+
the loading flag in `[disabled]`.
|
|
310
|
+
- **Drive the message with an `error` string computed from the flag**:
|
|
311
|
+
`nameError = computed(() => submitted() && !name().trim() ? 'Enter a name.' : '')`. A form
|
|
312
|
+
model's own errors follow `touched` (above) and so appear on blur; pass the text as `error` when
|
|
313
|
+
the form must stay silent until the submit.
|
|
314
|
+
- **A button tied to one picker is not a form submit.** Choose an item, then "Add" / "Link" /
|
|
315
|
+
"Move": that button stays disabled until something is chosen, and so does a button waiting on a
|
|
316
|
+
state no field can fix.
|
|
317
|
+
|
|
294
318
|
---
|
|
295
319
|
|
|
296
320
|
## 7. Overriding a component
|
|
@@ -28,13 +28,6 @@
|
|
|
28
28
|
"since": "0.11.1",
|
|
29
29
|
"itemId": "0.11.1#autocomplete-option-groups-input-removed"
|
|
30
30
|
},
|
|
31
|
-
{
|
|
32
|
-
"element": "ds-autocomplete",
|
|
33
|
-
"name": "touched",
|
|
34
|
-
"replacement": null,
|
|
35
|
-
"since": "1.0.0",
|
|
36
|
-
"itemId": "1.0.0#field-touched-input-removed-autocomplete"
|
|
37
|
-
},
|
|
38
31
|
{
|
|
39
32
|
"element": "ds-badge",
|
|
40
33
|
"name": "variant",
|
|
@@ -49,20 +42,6 @@
|
|
|
49
42
|
"since": "0.14.5",
|
|
50
43
|
"itemId": "0.14.5#chart-cursor-pin-renamed"
|
|
51
44
|
},
|
|
52
|
-
{
|
|
53
|
-
"element": "ds-checkbox",
|
|
54
|
-
"name": "touched",
|
|
55
|
-
"replacement": null,
|
|
56
|
-
"since": "1.0.0",
|
|
57
|
-
"itemId": "1.0.0#field-touched-input-removed-checkbox"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"element": "ds-color-picker",
|
|
61
|
-
"name": "touched",
|
|
62
|
-
"replacement": null,
|
|
63
|
-
"since": "1.0.0",
|
|
64
|
-
"itemId": "1.0.0#field-touched-input-removed-color-picker"
|
|
65
|
-
},
|
|
66
45
|
{
|
|
67
46
|
"element": "ds-date-picker",
|
|
68
47
|
"name": "defaultMonth",
|
|
@@ -70,13 +49,6 @@
|
|
|
70
49
|
"since": "0.6.3",
|
|
71
50
|
"itemId": "0.6.3#date-picker-default-month-input-rename"
|
|
72
51
|
},
|
|
73
|
-
{
|
|
74
|
-
"element": "ds-date-picker",
|
|
75
|
-
"name": "touched",
|
|
76
|
-
"replacement": null,
|
|
77
|
-
"since": "1.0.0",
|
|
78
|
-
"itemId": "1.0.0#field-touched-input-removed-date-picker"
|
|
79
|
-
},
|
|
80
52
|
{
|
|
81
53
|
"element": "ds-donut-chart",
|
|
82
54
|
"name": "centerValue",
|
|
@@ -112,13 +84,6 @@
|
|
|
112
84
|
"since": "0.10.0",
|
|
113
85
|
"itemId": "0.10.0#input-floating-removed"
|
|
114
86
|
},
|
|
115
|
-
{
|
|
116
|
-
"element": "ds-input",
|
|
117
|
-
"name": "touched",
|
|
118
|
-
"replacement": null,
|
|
119
|
-
"since": "1.0.0",
|
|
120
|
-
"itemId": "1.0.0#field-touched-input-removed-input"
|
|
121
|
-
},
|
|
122
87
|
{
|
|
123
88
|
"element": "ds-input",
|
|
124
89
|
"name": "withAddon",
|
|
@@ -161,20 +126,6 @@
|
|
|
161
126
|
"since": "0.10.0",
|
|
162
127
|
"itemId": "0.10.0#modal-error-boolean-to-status"
|
|
163
128
|
},
|
|
164
|
-
{
|
|
165
|
-
"element": "ds-multi-select",
|
|
166
|
-
"name": "touched",
|
|
167
|
-
"replacement": null,
|
|
168
|
-
"since": "1.0.0",
|
|
169
|
-
"itemId": "1.0.0#field-touched-input-removed-multi-select"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"element": "ds-otp-input",
|
|
173
|
-
"name": "touched",
|
|
174
|
-
"replacement": null,
|
|
175
|
-
"since": "1.0.0",
|
|
176
|
-
"itemId": "1.0.0#field-touched-input-removed-otp-input"
|
|
177
|
-
},
|
|
178
129
|
{
|
|
179
130
|
"element": "ds-pie-chart",
|
|
180
131
|
"name": "staggerMs",
|
|
@@ -182,48 +133,6 @@
|
|
|
182
133
|
"since": "0.14.5",
|
|
183
134
|
"itemId": "0.14.5#pie-chart-stagger-ms-removed"
|
|
184
135
|
},
|
|
185
|
-
{
|
|
186
|
-
"element": "ds-radio-group",
|
|
187
|
-
"name": "touched",
|
|
188
|
-
"replacement": null,
|
|
189
|
-
"since": "1.0.0",
|
|
190
|
-
"itemId": "1.0.0#field-touched-input-removed-radio-group"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"element": "ds-radio",
|
|
194
|
-
"name": "touched",
|
|
195
|
-
"replacement": null,
|
|
196
|
-
"since": "1.0.0",
|
|
197
|
-
"itemId": "1.0.0#field-touched-input-removed-radio"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"element": "ds-segmented",
|
|
201
|
-
"name": "touched",
|
|
202
|
-
"replacement": null,
|
|
203
|
-
"since": "1.0.0",
|
|
204
|
-
"itemId": "1.0.0#field-touched-input-removed-segmented"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"element": "ds-select",
|
|
208
|
-
"name": "touched",
|
|
209
|
-
"replacement": null,
|
|
210
|
-
"since": "1.0.0",
|
|
211
|
-
"itemId": "1.0.0#field-touched-input-removed-select"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"element": "ds-slider",
|
|
215
|
-
"name": "touched",
|
|
216
|
-
"replacement": null,
|
|
217
|
-
"since": "1.0.0",
|
|
218
|
-
"itemId": "1.0.0#field-touched-input-removed-slider"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"element": "ds-switch",
|
|
222
|
-
"name": "touched",
|
|
223
|
-
"replacement": null,
|
|
224
|
-
"since": "1.0.0",
|
|
225
|
-
"itemId": "1.0.0#field-touched-input-removed-switch"
|
|
226
|
-
},
|
|
227
136
|
{
|
|
228
137
|
"element": "ds-table",
|
|
229
138
|
"name": "clientSort",
|
|
@@ -245,20 +154,6 @@
|
|
|
245
154
|
"since": "0.13.4",
|
|
246
155
|
"itemId": "0.13.4#table-sort-dir-spelled-out"
|
|
247
156
|
},
|
|
248
|
-
{
|
|
249
|
-
"element": "ds-textarea",
|
|
250
|
-
"name": "touched",
|
|
251
|
-
"replacement": null,
|
|
252
|
-
"since": "1.0.0",
|
|
253
|
-
"itemId": "1.0.0#field-touched-input-removed-textarea"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"element": "ds-time-picker",
|
|
257
|
-
"name": "touched",
|
|
258
|
-
"replacement": null,
|
|
259
|
-
"since": "1.0.0",
|
|
260
|
-
"itemId": "1.0.0#field-touched-input-removed-time-picker"
|
|
261
|
-
},
|
|
262
157
|
{
|
|
263
158
|
"element": "ds-toast",
|
|
264
159
|
"name": "message",
|
|
@@ -792,6 +687,13 @@
|
|
|
792
687
|
"since": "0.7.0",
|
|
793
688
|
"itemId": "0.7.0#size-type-spinner-to-dssize"
|
|
794
689
|
},
|
|
690
|
+
{
|
|
691
|
+
"name": "SubmittedDirective",
|
|
692
|
+
"replacement": null,
|
|
693
|
+
"renamed": false,
|
|
694
|
+
"since": "1.0.1",
|
|
695
|
+
"itemId": "1.0.1#submitted-directive-removed"
|
|
696
|
+
},
|
|
795
697
|
{
|
|
796
698
|
"name": "SwitchSize",
|
|
797
699
|
"replacement": "DsSize",
|
|
@@ -829,13 +731,6 @@
|
|
|
829
731
|
"since": "0.11.1",
|
|
830
732
|
"itemId": "0.11.1#autocomplete-option-groups-input-removed"
|
|
831
733
|
},
|
|
832
|
-
{
|
|
833
|
-
"owner": "AutocompleteComponent",
|
|
834
|
-
"name": "touched",
|
|
835
|
-
"replacement": null,
|
|
836
|
-
"since": "1.0.0",
|
|
837
|
-
"itemId": "1.0.0#field-touched-input-removed-autocomplete"
|
|
838
|
-
},
|
|
839
734
|
{
|
|
840
735
|
"owner": "BannerComponent",
|
|
841
736
|
"name": "dismissed",
|
|
@@ -864,20 +759,6 @@
|
|
|
864
759
|
"since": "0.14.5",
|
|
865
760
|
"itemId": "0.14.5#chart-cursor-pin-renamed"
|
|
866
761
|
},
|
|
867
|
-
{
|
|
868
|
-
"owner": "CheckboxComponent",
|
|
869
|
-
"name": "touched",
|
|
870
|
-
"replacement": null,
|
|
871
|
-
"since": "1.0.0",
|
|
872
|
-
"itemId": "1.0.0#field-touched-input-removed-checkbox"
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
"owner": "ColorPickerComponent",
|
|
876
|
-
"name": "touched",
|
|
877
|
-
"replacement": null,
|
|
878
|
-
"since": "1.0.0",
|
|
879
|
-
"itemId": "1.0.0#field-touched-input-removed-color-picker"
|
|
880
|
-
},
|
|
881
762
|
{
|
|
882
763
|
"owner": "DatePickerComponent",
|
|
883
764
|
"name": "defaultMonth",
|
|
@@ -885,13 +766,6 @@
|
|
|
885
766
|
"since": "0.6.3",
|
|
886
767
|
"itemId": "0.6.3#date-picker-default-month-input-rename"
|
|
887
768
|
},
|
|
888
|
-
{
|
|
889
|
-
"owner": "DatePickerComponent",
|
|
890
|
-
"name": "touched",
|
|
891
|
-
"replacement": null,
|
|
892
|
-
"since": "1.0.0",
|
|
893
|
-
"itemId": "1.0.0#field-touched-input-removed-date-picker"
|
|
894
|
-
},
|
|
895
769
|
{
|
|
896
770
|
"owner": "DropzoneComponent",
|
|
897
771
|
"name": "single",
|
|
@@ -906,13 +780,6 @@
|
|
|
906
780
|
"since": "0.10.0",
|
|
907
781
|
"itemId": "0.10.0#input-floating-removed"
|
|
908
782
|
},
|
|
909
|
-
{
|
|
910
|
-
"owner": "InputComponent",
|
|
911
|
-
"name": "touched",
|
|
912
|
-
"replacement": null,
|
|
913
|
-
"since": "1.0.0",
|
|
914
|
-
"itemId": "1.0.0#field-touched-input-removed-input"
|
|
915
|
-
},
|
|
916
783
|
{
|
|
917
784
|
"owner": "InputComponent",
|
|
918
785
|
"name": "withAddon",
|
|
@@ -948,20 +815,6 @@
|
|
|
948
815
|
"since": "0.5.1",
|
|
949
816
|
"itemId": "0.5.1#modal-danger-input-rename"
|
|
950
817
|
},
|
|
951
|
-
{
|
|
952
|
-
"owner": "MultiSelectComponent",
|
|
953
|
-
"name": "touched",
|
|
954
|
-
"replacement": null,
|
|
955
|
-
"since": "1.0.0",
|
|
956
|
-
"itemId": "1.0.0#field-touched-input-removed-multi-select"
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
"owner": "OtpInputComponent",
|
|
960
|
-
"name": "touched",
|
|
961
|
-
"replacement": null,
|
|
962
|
-
"since": "1.0.0",
|
|
963
|
-
"itemId": "1.0.0#field-touched-input-removed-otp-input"
|
|
964
|
-
},
|
|
965
818
|
{
|
|
966
819
|
"owner": "PaginationComponent",
|
|
967
820
|
"name": "pageChange",
|
|
@@ -969,41 +822,6 @@
|
|
|
969
822
|
"since": "0.11.3",
|
|
970
823
|
"itemId": "0.11.3#pagination-page-change-output-never-existed"
|
|
971
824
|
},
|
|
972
|
-
{
|
|
973
|
-
"owner": "RadioComponent",
|
|
974
|
-
"name": "touched",
|
|
975
|
-
"replacement": null,
|
|
976
|
-
"since": "1.0.0",
|
|
977
|
-
"itemId": "1.0.0#field-touched-input-removed-radio"
|
|
978
|
-
},
|
|
979
|
-
{
|
|
980
|
-
"owner": "RadioGroupComponent",
|
|
981
|
-
"name": "touched",
|
|
982
|
-
"replacement": null,
|
|
983
|
-
"since": "1.0.0",
|
|
984
|
-
"itemId": "1.0.0#field-touched-input-removed-radio-group"
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
"owner": "SegmentedComponent",
|
|
988
|
-
"name": "touched",
|
|
989
|
-
"replacement": null,
|
|
990
|
-
"since": "1.0.0",
|
|
991
|
-
"itemId": "1.0.0#field-touched-input-removed-segmented"
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
"owner": "SelectComponent",
|
|
995
|
-
"name": "touched",
|
|
996
|
-
"replacement": null,
|
|
997
|
-
"since": "1.0.0",
|
|
998
|
-
"itemId": "1.0.0#field-touched-input-removed-select"
|
|
999
|
-
},
|
|
1000
|
-
{
|
|
1001
|
-
"owner": "SliderComponent",
|
|
1002
|
-
"name": "touched",
|
|
1003
|
-
"replacement": null,
|
|
1004
|
-
"since": "1.0.0",
|
|
1005
|
-
"itemId": "1.0.0#field-touched-input-removed-slider"
|
|
1006
|
-
},
|
|
1007
825
|
{
|
|
1008
826
|
"owner": "SplitButtonComponent",
|
|
1009
827
|
"name": "itemSelect",
|
|
@@ -1018,13 +836,6 @@
|
|
|
1018
836
|
"since": "0.5.1",
|
|
1019
837
|
"itemId": "0.5.1#stepper-stepclick-output-rename"
|
|
1020
838
|
},
|
|
1021
|
-
{
|
|
1022
|
-
"owner": "SwitchComponent",
|
|
1023
|
-
"name": "touched",
|
|
1024
|
-
"replacement": null,
|
|
1025
|
-
"since": "1.0.0",
|
|
1026
|
-
"itemId": "1.0.0#field-touched-input-removed-switch"
|
|
1027
|
-
},
|
|
1028
839
|
{
|
|
1029
840
|
"owner": "TableColumn",
|
|
1030
841
|
"name": "srLabel",
|
|
@@ -1074,20 +885,6 @@
|
|
|
1074
885
|
"since": "0.5.1",
|
|
1075
886
|
"itemId": "0.5.1#tabs-tabclose-output-rename"
|
|
1076
887
|
},
|
|
1077
|
-
{
|
|
1078
|
-
"owner": "TextareaComponent",
|
|
1079
|
-
"name": "touched",
|
|
1080
|
-
"replacement": null,
|
|
1081
|
-
"since": "1.0.0",
|
|
1082
|
-
"itemId": "1.0.0#field-touched-input-removed-textarea"
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
"owner": "TimePickerComponent",
|
|
1086
|
-
"name": "touched",
|
|
1087
|
-
"replacement": null,
|
|
1088
|
-
"since": "1.0.0",
|
|
1089
|
-
"itemId": "1.0.0#field-touched-input-removed-time-picker"
|
|
1090
|
-
},
|
|
1091
888
|
{
|
|
1092
889
|
"owner": "TimePickerComponent",
|
|
1093
890
|
"name": "valueChange",
|
|
@@ -117,6 +117,8 @@ class AutocompleteComponent extends DsControlValueAccessor {
|
|
|
117
117
|
errors: this.errors,
|
|
118
118
|
invalid: this.invalid,
|
|
119
119
|
success: this.success,
|
|
120
|
+
touchedSelf: this.touchedSelf,
|
|
121
|
+
touched: this.touched,
|
|
120
122
|
});
|
|
121
123
|
message = this.fieldMessage.message;
|
|
122
124
|
pendingShown = this.fieldMessage.pending;
|