@cscfi/csc-ui 4.0.0-alpha.30 → 4.0.0-alpha.32

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.
@@ -15,13 +15,13 @@
15
15
  "name": "CPlacement"
16
16
  },
17
17
  {
18
- "declaration": "export interface CSelectItem {\n /** Disable the item so it cannot be selected. */\n disabled?: boolean;\n /** The item's display label. */\n name: string;\n /** The value emitted via v-model when the item is selected. */\n value: number | string;\n}",
18
+ "declaration": "export interface CSelectItem {\n /** Disable the item so it cannot be selected. */\n disabled?: boolean;\n\n /** The item's display label. */\n name: string;\n\n /** The value emitted via v-model when the item is selected. */\n value: number | string;\n}",
19
19
  "description": "A selectable item for the value-selection components (`c-select`,\n`c-autocomplete`) when options are supplied via the `items` prop instead of\nslotted `<c-option>` elements.",
20
20
  "kind": "interface",
21
21
  "name": "CSelectItem"
22
22
  },
23
23
  {
24
- "declaration": "export interface CToastMessage {\n /** Label of the toast's close button. */\n closeText?: string;\n /** Render the slotted custom content instead of `message`. */\n custom?: boolean;\n /** How long the toast stays visible, in milliseconds. Defaults to 6000. */\n duration?: number;\n /** Identifier used to remove the toast via `removeToast`. */\n id?: string;\n /** Show an indeterminate progress bar instead of the countdown. */\n indeterminate?: boolean;\n /** The message text. */\n message: string;\n /** Keep the toast visible until it is explicitly closed. */\n persistent?: boolean;\n /** Show a progress bar counting down the toast's remaining duration. */\n progress?: boolean;\n /** Optional title rendered above the message. */\n title?: string;\n /** Status type of the toast. Defaults to `info`. */\n type?: CToastType;\n}",
24
+ "declaration": "export interface CToastMessage {\n /** Label of the toast's close button. */\n closeText?: string;\n\n /** Render the slotted custom content instead of `message`. */\n custom?: boolean;\n\n /** How long the toast stays visible, in milliseconds. Defaults to 6000. */\n duration?: number;\n\n /** Identifier used to remove the toast via `removeToast`. */\n id?: string;\n\n /** Show an indeterminate progress bar instead of the countdown. */\n indeterminate?: boolean;\n\n /** The message text. */\n message: string;\n\n /** Keep the toast visible until it is explicitly closed. */\n persistent?: boolean;\n\n /** Show a progress bar counting down the toast's remaining duration. */\n progress?: boolean;\n\n /** Optional title rendered above the message. */\n title?: string;\n\n /** Status type of the toast. Defaults to `info`. */\n type?: CToastType;\n}",
25
25
  "description": "A toast notification: the argument to `c-toasts`' `addToast` method,\nrendered by the composed `c-toast` child.",
26
26
  "kind": "interface",
27
27
  "name": "CToastMessage"
@@ -40,7 +40,7 @@
40
40
  "owner": "c-alert"
41
41
  },
42
42
  {
43
- "declaration": "export interface CAlertProps {\n /**\n * Show a dismiss button. The alert only emits `dismiss` — removing it from\n * the page stays the consumer's job.\n */\n dismissible?: boolean;\n /**\n * Heading rendered above the message. The `heading` slot overrides it for\n * rich content.\n *\n * @freeform\n */\n heading?: string;\n /**\n * Type of the alert\n *\n * @seeded from csc-ui — verify\n */\n type?: CAlertType;\n}",
43
+ "declaration": "export interface CAlertProps {\n /**\n * Show a dismiss button. The alert only emits `dismiss` — removing it from\n * the page stays the consumer's job.\n */\n dismissible?: boolean;\n\n /**\n * Heading rendered above the message. The `heading` slot overrides it for\n * rich content.\n *\n * @freeform\n */\n heading?: string;\n\n /**\n * Type of the alert\n *\n * @seeded from csc-ui — verify\n */\n type?: CAlertType;\n}",
44
44
  "description": "",
45
45
  "kind": "interface",
46
46
  "name": "CAlertProps",
@@ -68,21 +68,21 @@
68
68
  "owner": "c-autocomplete"
69
69
  },
70
70
  {
71
- "declaration": "export interface CAutocompleteOption {\n /** Whether the option is disabled. */\n disabled: boolean;\n /**\n * The option's label: its `name`, else the text of its `c-option-value`,\n * else its whole text content (for an `items` entry, its `name`).\n */\n label: string;\n /** The option's value. */\n value: number | string;\n}",
71
+ "declaration": "export interface CAutocompleteOption {\n /** Whether the option is disabled. */\n disabled: boolean;\n\n /**\n * The option's label: its `name`, else the text of its `c-option-value`,\n * else its whole text content (for an `items` entry, its `name`).\n */\n label: string;\n\n /** The option's value. */\n value: number | string;\n}",
72
72
  "description": "The normalized option handed to a `c-autocomplete` `filter` predicate. `label`\nis the option's `name` (or its trimmed text content when authored as a\nslotted `<c-option>`).",
73
73
  "kind": "interface",
74
74
  "name": "CAutocompleteOption",
75
75
  "owner": "c-autocomplete"
76
76
  },
77
77
  {
78
- "declaration": "export interface CAutocompleteProps {\n /** Make the selected value clearable */\n clearable?: boolean;\n /** Disable the input */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the autocomplete is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * The consumer owns filtering: the component renders its options verbatim\n * and only emits `change:query` as the user types. Pair with `loading` and\n * an async data source feeding `items`\n */\n external?: boolean;\n /** Custom filter predicate; receives a normalized option + the query. Ignored when `external` is set */\n filter?: CAutocompleteFilter;\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n /**\n * Hint text for the input\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n /** Dropdown items (when not using <c-option> elements) */\n items?: CAutocompleteItem[];\n /**\n * Items per page before the list scrolls\n *\n * @defaultable 6\n */\n itemsPerPage?: number;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the input\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n /** Show loading state */\n loading?: boolean;\n /**\n * In `multiple` mode, show at most this many selected-value tags and fold\n * the rest into one \"+N more\" tag; `0` shows no tags and reads \"N selected\"\n * instead; unset shows every tag\n */\n maxTags?: number;\n /**\n * Allow selecting several options: rows toggle, the panel stays open and\n * keeps its query, `value` becomes an array of the selected values (items\n * with `return-object`) in the order they were picked, and the picks show\n * as tags inside the field. Arrays have no attribute form — bind `value` as\n * a DOM property\n */\n multiple?: boolean;\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n /**\n * Placeholder for the in-panel search input\n *\n * @freeform\n */\n placeholder?: string;\n /** Set the autocomplete as required */\n required?: boolean;\n /** Return object instead of value */\n returnObject?: boolean;\n /**\n * In `multiple` mode, pin a select-all row at the top of the list. Its\n * checkbox shows whether none, some or all enabled options currently listed\n * — the matches while a query is typed, the given `items` with `external` —\n * are selected; activating it selects them all, or, when all are selected,\n * unselects them. Ignored in single mode\n */\n selectAll?: boolean;\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n /**\n * UI text overrides (i18n), merged over the English defaults. Objects have\n * no attribute form — bind as a DOM property (`:texts.prop` in Vue)\n *\n * @defaultable {}\n */\n texts?: CAutocompleteTexts;\n /** Set the validity of the input */\n valid?: boolean;\n /**\n * Selected value: the option's value, or the whole item with\n * `return-object`; an array of them in `multiple` mode\n */\n value?: CAutocompleteValue;\n}",
78
+ "declaration": "export interface CAutocompleteProps {\n /** Make the selected value clearable */\n clearable?: boolean;\n\n /** Disable the input */\n disabled?: boolean;\n\n /**\n * Error message shown in place of the hint while the autocomplete is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n\n /**\n * The consumer owns filtering: the component renders its options verbatim\n * and only emits `change:query` as the user types. Pair with `loading` and\n * an async data source feeding `items`\n */\n external?: boolean;\n\n /** Custom filter predicate; receives a normalized option + the query. Ignored when `external` is set */\n filter?: CAutocompleteFilter;\n\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n\n /**\n * Hint text for the input\n *\n * @freeform\n */\n hint?: string;\n\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n\n /** Dropdown items (when not using <c-option> elements) */\n items?: CAutocompleteItem[];\n\n /**\n * Items per page before the list scrolls\n *\n * @defaultable 6\n */\n itemsPerPage?: number;\n\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n\n /**\n * Label on top of the input\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n\n /** Show loading state */\n loading?: boolean;\n\n /**\n * In `multiple` mode, show at most this many selected-value tags and fold\n * the rest into one \"+N more\" tag; `0` shows no tags and reads \"N selected\"\n * instead; unset shows every tag\n */\n maxTags?: number;\n\n /**\n * Allow selecting several options: rows toggle, the panel stays open and\n * keeps its query, `value` becomes an array of the selected values (items\n * with `return-object`) in the order they were picked, and the picks show\n * as tags inside the field. Arrays have no attribute form — bind `value` as\n * a DOM property\n */\n multiple?: boolean;\n\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n\n /**\n * Placeholder for the in-panel search input\n *\n * @freeform\n */\n placeholder?: string;\n\n /** Set the autocomplete as required */\n required?: boolean;\n\n /** Return object instead of value */\n returnObject?: boolean;\n\n /**\n * In `multiple` mode, pin a select-all row at the top of the list. Its\n * checkbox shows whether none, some or all enabled options currently listed\n * — the matches while a query is typed, the given `items` with `external` —\n * are selected; activating it selects them all, or, when all are selected,\n * unselects them. Ignored in single mode\n */\n selectAll?: boolean;\n\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n\n /**\n * UI text overrides (i18n), merged over the English defaults. Objects have\n * no attribute form — bind as a DOM property (`:texts.prop` in Vue)\n *\n * @defaultable {}\n */\n texts?: CAutocompleteTexts;\n\n /** Set the validity of the input */\n valid?: boolean;\n\n /**\n * Selected value: the option's value, or the whole item with\n * `return-object`; an array of them in `multiple` mode\n */\n value?: CAutocompleteValue;\n}",
79
79
  "description": "",
80
80
  "kind": "interface",
81
81
  "name": "CAutocompleteProps",
82
82
  "owner": "c-autocomplete"
83
83
  },
84
84
  {
85
- "declaration": "export interface CAutocompleteTexts {\n /** Accessible label of the clear button. */\n clearSelection?: string;\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n /** Accessible label of the search input inside the panel. */\n filterOptions?: string;\n /** Text of the loading row shown while `loading` with nothing to list. */\n loading?: string;\n /**\n * Text of the overflow tag when `max-tags` folds the selection; receives the\n * number of hidden tags.\n */\n more?: (count: number) => string;\n /** Text of the row shown when the query matches no options. */\n noResults?: string;\n /** Accessible label of a tag's remove button; receives the option label. */\n remove?: (label: string) => string;\n /** Placeholder of the search input when the `placeholder` prop is empty. */\n searchPlaceholder?: string;\n /**\n * Label of the select-all row; receives the number of enabled options\n * listed.\n */\n selectAll?: (count: number) => string;\n /**\n * Field text when `max-tags=\"0\"` shows no tags; receives the selection\n * count.\n */\n selected?: (count: number) => string;\n /** Accessible label of the chevron button that opens and closes the panel. */\n toggleOptions?: string;\n}",
85
+ "declaration": "export interface CAutocompleteTexts {\n /** Accessible label of the clear button. */\n clearSelection?: string;\n\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n\n /** Accessible label of the search input inside the panel. */\n filterOptions?: string;\n\n /** Text of the loading row shown while `loading` with nothing to list. */\n loading?: string;\n\n /**\n * Text of the overflow tag when `max-tags` folds the selection; receives the\n * number of hidden tags.\n */\n more?: (count: number) => string;\n\n /** Text of the row shown when the query matches no options. */\n noResults?: string;\n\n /** Accessible label of a tag's remove button; receives the option label. */\n remove?: (label: string) => string;\n\n /** Placeholder of the search input when the `placeholder` prop is empty. */\n searchPlaceholder?: string;\n\n /**\n * Label of the select-all row; receives the number of enabled options\n * listed.\n */\n selectAll?: (count: number) => string;\n\n /**\n * Field text when `max-tags=\"0\"` shows no tags; receives the selection\n * count.\n */\n selected?: (count: number) => string;\n\n /** Accessible label of the chevron button that opens and closes the panel. */\n toggleOptions?: string;\n}",
86
86
  "description": "UI texts of `c-autocomplete`, shallow-merged over the English defaults.\nStatic labels are strings; count- or label-interpolated ones are\nfunctions.",
87
87
  "kind": "interface",
88
88
  "name": "CAutocompleteTexts",
@@ -103,21 +103,21 @@
103
103
  "owner": "c-breadcrumb"
104
104
  },
105
105
  {
106
- "declaration": "export interface CBreadcrumbTexts {\n /** Accessible name of the breadcrumb navigation. */\n breadcrumb?: string;\n /** Accessible name of the fold button; receives the number of folded crumbs. */\n fold?: (count: number) => string;\n}",
106
+ "declaration": "export interface CBreadcrumbTexts {\n /** Accessible name of the breadcrumb navigation. */\n breadcrumb?: string;\n\n /** Accessible name of the fold button; receives the number of folded crumbs. */\n fold?: (count: number) => string;\n}",
107
107
  "description": "UI texts of `c-breadcrumb`, shallow-merged over the English defaults.\nStatic labels are strings; interpolated ones are functions.",
108
108
  "kind": "interface",
109
109
  "name": "CBreadcrumbTexts",
110
110
  "owner": "c-breadcrumb"
111
111
  },
112
112
  {
113
- "declaration": "export interface CBreadcrumbItemProps {\n /**\n * URL of the page the crumb leads to. Ignored on the current crumb (the\n * last one); a crumb without it names a level that has no page and renders\n * as plain text\n *\n * @freeform any URL\n */\n href?: string;\n /**\n * Browsing context the link opens in; the same tab when unset\n *\n * @freeform any browsing-context name (e.g. _blank, _self)\n */\n target?: string;\n}",
113
+ "declaration": "export interface CBreadcrumbItemProps {\n /**\n * URL of the page the crumb leads to. Ignored on the current crumb (the\n * last one); a crumb without it names a level that has no page and renders\n * as plain text\n *\n * @freeform any URL\n */\n href?: string;\n\n /**\n * Browsing context the link opens in; the same tab when unset\n *\n * @freeform any browsing-context name (e.g. _blank, _self)\n */\n target?: string;\n}",
114
114
  "description": "",
115
115
  "kind": "interface",
116
116
  "name": "CBreadcrumbItemProps",
117
117
  "owner": "c-breadcrumb-item"
118
118
  },
119
119
  {
120
- "declaration": "export interface CButtonProps {\n /**\n * Pressed (toggle) state — renders the selected look and sets\n * `aria-pressed`. Leave unset for regular action buttons: only a\n * true/false value marks the button as a toggle. Driven by\n * `c-button-group` on its slotted buttons.\n */\n active?: boolean;\n /**\n * Danger variant style\n *\n * @seeded from csc-ui — verify\n */\n danger?: boolean;\n /**\n * Disable the button\n *\n * @seeded from csc-ui — verify\n */\n disabled?: boolean;\n /**\n * Fit width to containing element\n *\n * @seeded from csc-ui — verify\n */\n fit?: boolean;\n /**\n * Light button background\n *\n * @seeded from csc-ui — verify\n */\n ghost?: boolean;\n /**\n * Id of the button\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n hostId?: string;\n /**\n * Hyperlink url\n *\n * @seeded from csc-ui — verify\n * @freeform any URL\n */\n href?: string;\n /**\n * Inverted button style for dark backgrounds\n *\n * @seeded from csc-ui — verify\n */\n inverted?: boolean;\n /**\n * Display loader on the button\n *\n * @seeded from csc-ui — verify\n */\n loading?: boolean;\n /**\n * Remove the default border radius\n *\n * @seeded from csc-ui — verify\n */\n noRadius?: boolean;\n /** Suppress the click ripple (e.g. when a wrapper owns the press feedback). */\n noRipple?: boolean;\n /**\n * Outlined button style\n *\n * @seeded from csc-ui — verify\n */\n outlined?: boolean;\n /**\n * Size of the button\n *\n * @seeded from csc-ui — verify\n */\n size?: CButtonSize;\n /**\n * Hyperlink target\n *\n * @seeded from csc-ui — verify\n * @freeform any browsing-context name (e.g. _blank, _self)\n */\n target?: string;\n /**\n * Transparent button background\n *\n * @seeded from csc-ui — verify\n */\n text?: boolean;\n /**\n * Button type\n *\n * @seeded from csc-ui — verify\n */\n type?: CButtonType;\n /**\n * Value for the button\n * - for use in the c-button-group\n *\n * @seeded from csc-ui — verify\n */\n value?: number | string;\n}",
120
+ "declaration": "export interface CButtonProps {\n /**\n * Pressed (toggle) state — renders the selected look and sets\n * `aria-pressed`. Leave unset for regular action buttons: only a\n * true/false value marks the button as a toggle. Driven by\n * `c-button-group` on its slotted buttons.\n */\n active?: boolean;\n\n /**\n * Danger variant style\n *\n * @seeded from csc-ui — verify\n */\n danger?: boolean;\n\n /**\n * Disable the button\n *\n * @seeded from csc-ui — verify\n */\n disabled?: boolean;\n\n /**\n * Fit width to containing element\n *\n * @seeded from csc-ui — verify\n */\n fit?: boolean;\n\n /**\n * Light button background\n *\n * @seeded from csc-ui — verify\n */\n ghost?: boolean;\n\n /**\n * Id of the button\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n hostId?: string;\n\n /**\n * Hyperlink url\n *\n * @seeded from csc-ui — verify\n * @freeform any URL\n */\n href?: string;\n\n /**\n * Inverted button style for dark backgrounds\n *\n * @seeded from csc-ui — verify\n */\n inverted?: boolean;\n\n /**\n * Display loader on the button\n *\n * @seeded from csc-ui — verify\n */\n loading?: boolean;\n\n /**\n * Remove the default border radius\n *\n * @seeded from csc-ui — verify\n */\n noRadius?: boolean;\n\n /** Suppress the click ripple (e.g. when a wrapper owns the press feedback). */\n noRipple?: boolean;\n\n /**\n * Outlined button style\n *\n * @seeded from csc-ui — verify\n */\n outlined?: boolean;\n\n /**\n * Size of the button\n *\n * @seeded from csc-ui — verify\n */\n size?: CButtonSize;\n\n /**\n * Hyperlink target\n *\n * @seeded from csc-ui — verify\n * @freeform any browsing-context name (e.g. _blank, _self)\n */\n target?: string;\n\n /**\n * Transparent button background\n *\n * @seeded from csc-ui — verify\n */\n text?: boolean;\n\n /**\n * Button type\n *\n * @seeded from csc-ui — verify\n */\n type?: CButtonType;\n\n /**\n * Value for the button\n * - for use in the c-button-group\n *\n * @seeded from csc-ui — verify\n */\n value?: number | string;\n}",
121
121
  "description": "",
122
122
  "kind": "interface",
123
123
  "name": "CButtonProps",
@@ -138,7 +138,7 @@
138
138
  "owner": "c-button"
139
139
  },
140
140
  {
141
- "declaration": "export interface CButtonGroupProps {\n /** Disable the whole group — every slotted c-button is disabled and the selection can no longer be changed. */\n disabled?: boolean;\n /**\n * Label of the button group, shown above the buttons\n *\n * @freeform\n */\n label?: string;\n /**\n * The selection can never become empty: the active button (or, with\n * `multiple`, the last active button) cannot be toggled off. Distinct from\n * `required`: mandatory is a selection-behavior rule on the control, not a\n * form-level demand for an answer.\n */\n mandatory?: boolean;\n /**\n * Allow several buttons to be active at once. The value becomes an array\n * of the active buttons' values (in DOM order). Arrays have no attribute\n * form — bind `value` as a DOM property (`:value.prop` in Vue).\n */\n multiple?: boolean;\n /**\n * Set as required — shows the required marker on the label\n */\n required?: boolean;\n /**\n * Size of the buttons\n */\n size?: CButtonGroupSize;\n /**\n * Value of the group: the active button's `value` (or its index when no\n * button declares one). `null` when nothing is selected. With `multiple`,\n * an array of the active buttons' values.\n */\n value?: CButtonGroupValue;\n}",
141
+ "declaration": "export interface CButtonGroupProps {\n /** Disable the whole group — every slotted c-button is disabled and the selection can no longer be changed. */\n disabled?: boolean;\n\n /**\n * Label of the button group, shown above the buttons\n *\n * @freeform\n */\n label?: string;\n\n /**\n * The selection can never become empty: the active button (or, with\n * `multiple`, the last active button) cannot be toggled off. Distinct from\n * `required`: mandatory is a selection-behavior rule on the control, not a\n * form-level demand for an answer.\n */\n mandatory?: boolean;\n\n /**\n * Allow several buttons to be active at once. The value becomes an array\n * of the active buttons' values (in DOM order). Arrays have no attribute\n * form — bind `value` as a DOM property (`:value.prop` in Vue).\n */\n multiple?: boolean;\n\n /**\n * Set as required — shows the required marker on the label\n */\n required?: boolean;\n\n /**\n * Size of the buttons\n */\n size?: CButtonGroupSize;\n\n /**\n * Value of the group: the active button's `value` (or its index when no\n * button declares one). `null` when nothing is selected. With `multiple`,\n * an array of the active buttons' values.\n */\n value?: CButtonGroupValue;\n}",
142
142
  "description": "",
143
143
  "kind": "interface",
144
144
  "name": "CButtonGroupProps",
@@ -173,12 +173,47 @@
173
173
  "owner": "c-card-actions"
174
174
  },
175
175
  {
176
- "declaration": "export interface CCardActionsProps {\n /**\n * Align the actions\n *\n * @seeded from csc-ui — verify\n */\n align?: CCardActionsAlign;\n /**\n * Justify the actions\n *\n * @seeded from csc-ui — verify\n */\n justify?: CCardActionsJustify;\n}",
176
+ "declaration": "export interface CCardActionsProps {\n /**\n * Align the actions\n *\n * @seeded from csc-ui — verify\n */\n align?: CCardActionsAlign;\n\n /**\n * Justify the actions\n *\n * @seeded from csc-ui — verify\n */\n justify?: CCardActionsJustify;\n}",
177
177
  "description": "",
178
178
  "kind": "interface",
179
179
  "name": "CCardActionsProps",
180
180
  "owner": "c-card-actions"
181
181
  },
182
+ {
183
+ "declaration": "export type CColorPickerFormat = 'hex' | 'oklch' | 'rgb';",
184
+ "description": "The notation a colour picker's value is written in (CONTEXT.md \"Notation\").",
185
+ "kind": "type-alias",
186
+ "name": "CColorPickerFormat",
187
+ "owner": "c-color-picker"
188
+ },
189
+ {
190
+ "declaration": "export interface CColorPickerProps {\n /**\n * Let the colour carry transparency: an alpha slider and an A channel join\n * the panel. Without it typed alpha is dropped\n *\n * @defaultable false\n */\n alpha?: boolean;\n\n /**\n * Make the value clearable\n */\n clearable?: boolean;\n\n /**\n * Disable the field\n */\n disabled?: boolean;\n\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n\n /**\n * The notation the value is written in — and every emission with it:\n * `#rrggbb`, `rgb(r g b)` or `oklch(l c h)`\n *\n * @defaultable 'hex'\n */\n format?: CColorPickerFormat;\n\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n\n /**\n * Placeholder of the input; an example of the notation when empty\n *\n * @freeform\n */\n placeholder?: string;\n\n /**\n * Set the field as required\n */\n required?: boolean;\n\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n\n /**\n * Predefined colours offered under the picker — CSS colours, or\n * `{ value, name }` objects whose name is read out and shown. Arrays have\n * no attribute form — bind as a DOM property\n */\n swatches?: CColorPickerSwatch[];\n\n /**\n * Limit the choice to the swatches: the field becomes readonly and opens\n * a panel of the swatches alone\n */\n swatchesOnly?: boolean;\n\n /**\n * UI text overrides (i18n), merged over the English defaults. Objects have\n * no attribute form — bind as a DOM property\n *\n * @defaultable {}\n */\n texts?: CColorPickerTexts;\n\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n\n /**\n * The colour in the `format` notation, or `null` when empty. Any CSS\n * colour is accepted and shown in the notation\n */\n value?: CColorPickerValue;\n}",
191
+ "description": "",
192
+ "kind": "interface",
193
+ "name": "CColorPickerProps",
194
+ "owner": "c-color-picker"
195
+ },
196
+ {
197
+ "declaration": "export type CColorPickerSwatch = { name?: string; value: string } | string;",
198
+ "description": "A predefined colour: a CSS colour, or one with a name for assistive technology and the swatch-only field.",
199
+ "kind": "type-alias",
200
+ "name": "CColorPickerSwatch",
201
+ "owner": "c-color-picker"
202
+ },
203
+ {
204
+ "declaration": "export interface CColorPickerTexts {\n /** Accessible name of the alpha slider and the A channel. */\n alpha?: string;\n\n /** Accessible name of the blue channel. */\n blue?: string;\n\n /** Accessible name of the colour area's vertical axis. */\n brightness?: string;\n\n /** Accessible name of the dialog when the field has no label. */\n chooseColor?: string;\n\n /** Accessible name of the chroma channel. */\n chroma?: string;\n\n /** Accessible label of the clear button. */\n clearSelection?: string;\n\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n\n /** Label of the Done button in the fullscreen panel (narrow viewports). */\n done?: string;\n\n /** Accessible name of the green channel. */\n green?: string;\n\n /** Accessible name of the hex channel. */\n hex?: string;\n\n /** Accessible name of the hue slider and the OKLCH hue channel. */\n hue?: string;\n\n /** Accessible name of the lightness channel. */\n lightness?: string;\n\n /** Accessible name of the notation switch. */\n notation?: string;\n\n /** Accessible label of the colour button. */\n openPicker?: string;\n\n /** Accessible name of the red channel. */\n red?: string;\n\n /** Accessible label of the original colour in the colour comparison: a click restores it. */\n restoreOriginal?: string;\n\n /** Accessible name of the colour area's horizontal axis. */\n saturation?: string;\n\n /** Accessible name of the swatch list. */\n swatches?: string;\n\n /** Accessible label of the swatch-only field's chevron button. */\n toggleSwatches?: string;\n}",
205
+ "description": "UI texts of `c-color-picker`, merged key by key over the English defaults.",
206
+ "kind": "interface",
207
+ "name": "CColorPickerTexts",
208
+ "owner": "c-color-picker"
209
+ },
210
+ {
211
+ "declaration": "export type CColorPickerValue = null | string;",
212
+ "description": "Value of `c-color-picker`: a colour in its `format` notation, or `null` when empty.",
213
+ "kind": "type-alias",
214
+ "name": "CColorPickerValue",
215
+ "owner": "c-color-picker"
216
+ },
182
217
  {
183
218
  "declaration": "export type CDataTableAlign = 'center' | 'end' | 'start';",
184
219
  "description": "Horizontal alignment of a column's header and cell content.",
@@ -194,14 +229,14 @@
194
229
  "owner": "c-data-table"
195
230
  },
196
231
  {
197
- "declaration": "export interface CDataTableCellContext {\n /** The column being rendered. */\n column: CDataTableColumn;\n /** The row object this cell belongs to. */\n row: CDataTableRow;\n /** Stable row id (from `getRowId`, or the row index). */\n rowId: string;\n /** Index of the row within the full data set. */\n rowIndex: number;\n /** The raw cell value (`row[column.key]`). */\n value: unknown;\n}",
232
+ "declaration": "export interface CDataTableCellContext {\n /** The column being rendered. */\n column: CDataTableColumn;\n\n /** The row object this cell belongs to. */\n row: CDataTableRow;\n\n /** Stable row id (from `getRowId`, or the row index). */\n rowId: string;\n\n /** Index of the row within the full data set. */\n rowIndex: number;\n\n /** The raw cell value (`row[column.key]`). */\n value: unknown;\n}",
198
233
  "description": "Context handed to a column's `cell` render function.",
199
234
  "kind": "interface",
200
235
  "name": "CDataTableCellContext",
201
236
  "owner": "c-data-table"
202
237
  },
203
238
  {
204
- "declaration": "export interface CDataTableColumn {\n /** Horizontal alignment of the header and cell content. */\n align?: CDataTableAlign;\n /**\n * Custom cell renderer. Return a VNode built with the package-exported `h`,\n * or a string/number rendered as text. Omit to render the raw value.\n */\n cell?: (context: CDataTableCellContext) => CDataTableCellContent;\n /**\n * When this column's cells move to the expansion row: `auto` (default,\n * moved only when autohide overflows), `never`, or `always`.\n */\n expansion?: CDataTableColumnExpansion;\n /**\n * Footer cell renderer. The footer row renders only when at least one\n * column defines one.\n */\n footer?: (context: CDataTableFooterContext) => CDataTableCellContent;\n /** Header content — a string, or a render function for rich headers. Defaults to `key`. */\n header?: (() => CDataTableCellContent) | string;\n /** Key of the row property this column reads (also the column's id). */\n key: string;\n /**\n * Pin the column to an edge so it stays visible during horizontal scroll.\n * A pinned column is never autohidden. Cannot combine with\n * `expansion: 'always'`.\n */\n pinned?: CDataTableColumnPin;\n /** Allow sorting by this column. */\n sortable?: boolean;\n /** Fixed column width (any CSS width value). */\n width?: string;\n}",
239
+ "declaration": "export interface CDataTableColumn {\n /** Horizontal alignment of the header and cell content. */\n align?: CDataTableAlign;\n\n /**\n * Custom cell renderer. Return a VNode built with the package-exported `h`,\n * or a string/number rendered as text. Omit to render the raw value.\n */\n cell?: (context: CDataTableCellContext) => CDataTableCellContent;\n\n /**\n * When this column's cells move to the expansion row: `auto` (default,\n * moved only when autohide overflows), `never`, or `always`.\n */\n expansion?: CDataTableColumnExpansion;\n\n /**\n * Footer cell renderer. The footer row renders only when at least one\n * column defines one.\n */\n footer?: (context: CDataTableFooterContext) => CDataTableCellContent;\n\n /** Header content — a string, or a render function for rich headers. Defaults to `key`. */\n header?: (() => CDataTableCellContent) | string;\n\n /** Key of the row property this column reads (also the column's id). */\n key: string;\n\n /**\n * Pin the column to an edge so it stays visible during horizontal scroll.\n * A pinned column is never autohidden. Cannot combine with\n * `expansion: 'always'`.\n */\n pinned?: CDataTableColumnPin;\n\n /** Allow sorting by this column. */\n sortable?: boolean;\n\n /** Fixed column width (any CSS width value). */\n width?: string;\n}",
205
240
  "description": "A column definition — the component-owned column API. Mapped to\nTanStack's `ColumnDef` internally; TanStack types never leak to consumers.",
206
241
  "kind": "interface",
207
242
  "name": "CDataTableColumn",
@@ -222,21 +257,21 @@
222
257
  "owner": "c-data-table"
223
258
  },
224
259
  {
225
- "declaration": "export interface CDataTableExpandedContext {\n /** Columns currently rendered inside the expansion row (policy `always` + autohidden). */\n expansionColumns: CDataTableColumn[];\n /** The expanded row object. */\n row: CDataTableRow;\n /** Stable row id (from `getRowId`, or the row index). */\n rowId: string;\n /** Index of the row within the full data set. */\n rowIndex: number;\n}",
260
+ "declaration": "export interface CDataTableExpandedContext {\n /** Columns currently rendered inside the expansion row (policy `always` + autohidden). */\n expansionColumns: CDataTableColumn[];\n\n /** The expanded row object. */\n row: CDataTableRow;\n\n /** Stable row id (from `getRowId`, or the row index). */\n rowId: string;\n\n /** Index of the row within the full data set. */\n rowIndex: number;\n}",
226
261
  "description": "Context handed to the table-level `expandedContent` render function.",
227
262
  "kind": "interface",
228
263
  "name": "CDataTableExpandedContext",
229
264
  "owner": "c-data-table"
230
265
  },
231
266
  {
232
- "declaration": "export interface CDataTableFooterContext {\n /** The column whose footer is being rendered. */\n column: CDataTableColumn;\n /** The rows currently rendered (the visible page). */\n rows: CDataTableRow[];\n}",
267
+ "declaration": "export interface CDataTableFooterContext {\n /** The column whose footer is being rendered. */\n column: CDataTableColumn;\n\n /** The rows currently rendered (the visible page). */\n rows: CDataTableRow[];\n}",
233
268
  "description": "Context handed to a column's `footer` render function.",
234
269
  "kind": "interface",
235
270
  "name": "CDataTableFooterContext",
236
271
  "owner": "c-data-table"
237
272
  },
238
273
  {
239
- "declaration": "export interface CDataTableProps {\n /**\n * Move overflowing `expansion: 'auto'` columns into the expansion row\n * (rightmost first) instead of scrolling horizontally.\n */\n autohide?: boolean;\n /** Column definitions. Pass as a DOM property (contains functions). */\n columns?: CDataTableColumn[];\n /** Rows — plain domain objects. Pass as a DOM property. */\n data?: CDataTableRow[];\n /** Ids of the expanded rows (optionally controlled). */\n expanded?: string[];\n /**\n * Custom expansion-row content, appended after the auto-rendered cells of\n * columns currently in the expansion row.\n */\n expandedContent?: (\n context: CDataTableExpandedContext,\n ) => CDataTableCellContent;\n /**\n * The server owns sorting, pagination and filtering: the table renders\n * `data` verbatim and only emits the state-change events. Requires\n * `itemCount` for the pager; disables the select-all banner and `filter`.\n */\n external?: boolean;\n /**\n * Filter rows client-side against this string (all columns). Ignored when\n * `external` is set.\n *\n * @freeform\n */\n filter?: string;\n /**\n * Return a stable id for a row. Falls back to the row's index — supply\n * this whenever selection/expansion is used with `external` data.\n */\n getRowId?: (row: CDataTableRow) => string;\n /** Total number of rows in the dataset. Only used (and needed) with `external`. */\n itemCount?: number;\n /** Show the loading indicator. */\n loading?: boolean;\n /** Current page, 1-based (optionally controlled). */\n page?: number;\n /**\n * Rows per page. Pagination is active only when set — without it every row\n * renders and no pager is shown.\n */\n pageSize?: number;\n /** Options for the pager's page-size menu. */\n pageSizes?: number[];\n /** Ids of the selected rows (optionally controlled). */\n selected?: string[];\n /** Row selection mode. Unset means rows are not selectable. */\n selection?: CDataTableSelectionMode;\n /** Allow only one row to be expanded at a time. */\n singleExpansion?: boolean;\n /** The sorting state (optionally controlled). `null` renders unsorted. */\n sort?: CDataTableSort | null;\n /** Keep the footer row visible while the table scrolls vertically. */\n stickyFooter?: boolean;\n /** Keep the header row visible while the table scrolls vertically. */\n stickyHeader?: boolean;\n /**\n * UI text overrides (i18n), merged over the English defaults.\n *\n * @defaultable {}\n */\n texts?: CDataTableTexts;\n}",
274
+ "declaration": "export interface CDataTableProps {\n /**\n * Move overflowing `expansion: 'auto'` columns into the expansion row\n * (rightmost first) instead of scrolling horizontally.\n */\n autohide?: boolean;\n\n /** Column definitions. Pass as a DOM property (contains functions). */\n columns?: CDataTableColumn[];\n\n /** Rows — plain domain objects. Pass as a DOM property. */\n data?: CDataTableRow[];\n\n /** Ids of the expanded rows (optionally controlled). */\n expanded?: string[];\n\n /**\n * Custom expansion-row content, appended after the auto-rendered cells of\n * columns currently in the expansion row.\n */\n expandedContent?: (\n context: CDataTableExpandedContext,\n ) => CDataTableCellContent;\n\n /**\n * The server owns sorting, pagination and filtering: the table renders\n * `data` verbatim and only emits the state-change events. Requires\n * `itemCount` for the pager; disables the select-all banner and `filter`.\n */\n external?: boolean;\n\n /**\n * Filter rows client-side against this string (all columns). Ignored when\n * `external` is set.\n *\n * @freeform\n */\n filter?: string;\n\n /**\n * Return a stable id for a row. Falls back to the row's index — supply\n * this whenever selection/expansion is used with `external` data.\n */\n getRowId?: (row: CDataTableRow) => string;\n\n /** Total number of rows in the dataset. Only used (and needed) with `external`. */\n itemCount?: number;\n\n /** Show the loading indicator. */\n loading?: boolean;\n\n /** Current page, 1-based (optionally controlled). */\n page?: number;\n\n /**\n * Rows per page. Pagination is active only when set — without it every row\n * renders and no pager is shown.\n */\n pageSize?: number;\n\n /** Options for the pager's page-size menu. */\n pageSizes?: number[];\n\n /** Ids of the selected rows (optionally controlled). */\n selected?: string[];\n\n /** Row selection mode. Unset means rows are not selectable. */\n selection?: CDataTableSelectionMode;\n\n /** Allow only one row to be expanded at a time. */\n singleExpansion?: boolean;\n\n /** The sorting state (optionally controlled). `null` renders unsorted. */\n sort?: CDataTableSort | null;\n\n /** Keep the footer row visible while the table scrolls vertically. */\n stickyFooter?: boolean;\n\n /** Keep the header row visible while the table scrolls vertically. */\n stickyHeader?: boolean;\n\n /**\n * UI text overrides (i18n), merged over the English defaults.\n *\n * @defaultable {}\n */\n texts?: CDataTableTexts;\n}",
240
275
  "description": "",
241
276
  "kind": "interface",
242
277
  "name": "CDataTableProps",
@@ -257,7 +292,7 @@
257
292
  "owner": "c-data-table"
258
293
  },
259
294
  {
260
- "declaration": "export interface CDataTableSort {\n /** `key` of the sorted column. */\n column: string;\n /** Direction the column is sorted in. */\n direction: CDataTableSortDirection;\n}",
295
+ "declaration": "export interface CDataTableSort {\n /** `key` of the sorted column. */\n column: string;\n\n /** Direction the column is sorted in. */\n direction: CDataTableSortDirection;\n}",
261
296
  "description": "The table's atomic sorting state.",
262
297
  "kind": "interface",
263
298
  "name": "CDataTableSort",
@@ -271,7 +306,7 @@
271
306
  "owner": "c-data-table"
272
307
  },
273
308
  {
274
- "declaration": "export interface CDataTableTexts {\n /** Banner text when every (filtered) row is selected. */\n allSelected?: (count: number) => string;\n /** Label of the banner action clearing the whole selection. */\n clearSelection?: string;\n /** Accessible label of a row's expansion toggle. */\n expandRow?: string;\n /** Text shown when the table is empty while `loading`. */\n loading?: string;\n /** Text shown when there are no rows (unless the `empty` slot is used). */\n noData?: string;\n /** Banner text when the visible page is fully selected. */\n pageSelected?: (count: number) => string;\n /** Label of the banner action selecting all (filtered) rows. */\n selectAllItems?: (count: number) => string;\n /** Accessible label of the header select-all checkbox. */\n selectPage?: string;\n /** Accessible label of a row's selection checkbox. */\n selectRow?: string;\n}",
309
+ "declaration": "export interface CDataTableTexts {\n /** Banner text when every (filtered) row is selected. */\n allSelected?: (count: number) => string;\n\n /** Label of the banner action clearing the whole selection. */\n clearSelection?: string;\n\n /** Accessible label of a row's expansion toggle. */\n expandRow?: string;\n\n /** Text shown when the table is empty while `loading`. */\n loading?: string;\n\n /** Text shown when there are no rows (unless the `empty` slot is used). */\n noData?: string;\n\n /** Banner text when the visible page is fully selected. */\n pageSelected?: (count: number) => string;\n\n /** Label of the banner action selecting all (filtered) rows. */\n selectAllItems?: (count: number) => string;\n\n /** Accessible label of the header select-all checkbox. */\n selectPage?: string;\n\n /** Accessible label of a row's selection checkbox. */\n selectRow?: string;\n}",
275
310
  "description": "UI texts, shallow-merged over the English defaults. Static labels are\nstrings; count-interpolated ones are functions.",
276
311
  "kind": "interface",
277
312
  "name": "CDataTableTexts",
@@ -285,14 +320,14 @@
285
320
  "owner": "c-date-picker"
286
321
  },
287
322
  {
288
- "declaration": "export interface CDatePickerProps {\n /**\n * Make the value clearable\n */\n clearable?: boolean;\n /**\n * Disable the field\n */\n disabled?: boolean;\n /**\n * Dates that cannot be picked: ISO dates and inclusive `{ start, end }`\n * spans. Arrays have no attribute form — bind as a DOM property\n */\n disabledDates?: CDatePickerDisabledDate[];\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * First day of the week in the calendar, numbered like `Date.getDay()`:\n * 0 = Sunday, 1 = Monday … 6 = Saturday\n *\n * @defaultable 1\n */\n firstDayOfWeek?: CDatePickerWeekday;\n /**\n * How dates are shown and read from typing: a pattern of the tokens `d`,\n * `dd`, `M`, `MM` and `yyyy` with any separators, e.g. `yyyy-MM-dd`\n *\n * @defaultable 'dd.MM.yyyy'\n * @freeform\n */\n format?: string;\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n /**\n * Predicate for dates that cannot be picked (weekends, say); receives an\n * ISO date. Functions have no attribute form — bind as a DOM property\n */\n isDateDisabled?: (iso: string) => boolean;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n /**\n * The latest date that can be picked or typed, as an ISO date; also bounds\n * the calendar's navigation\n *\n * @freeform\n */\n max?: string;\n /**\n * The earliest date that can be picked or typed, as an ISO date; also\n * bounds the calendar's navigation\n *\n * @freeform\n */\n min?: string;\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n /**\n * Placeholder of the input; the `format` pattern when empty\n *\n * @freeform\n */\n placeholder?: string;\n /**\n * Pick a range: the value becomes `{ start, end }` and the field holds two\n * inputs\n */\n range?: boolean;\n /**\n * Set the field as required\n */\n required?: boolean;\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n /**\n * Show a Today button under the calendar that picks today (\"This month\"\n * under `type=\"month\"`)\n *\n * @defaultable false\n */\n showToday?: boolean;\n /**\n * Show ISO 8601 week numbers beside the calendar rows (meaningful with a\n * Monday week start)\n *\n * @defaultable false\n */\n showWeekNumbers?: boolean;\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n /**\n * UI text overrides (i18n), merged over the names `Intl` gives for the\n * page's `lang` and the English defaults. Objects have no attribute form —\n * bind as a DOM property\n *\n * @defaultable {}\n */\n texts?: CDatePickerTexts;\n /**\n * What the field picks: a calendar date, or a year and a month\n * (`'YYYY-MM'`)\n */\n type?: CDatePickerType;\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n /**\n * The date as an ISO `YYYY-MM-DD` string (an ISO `YYYY-MM` month under\n * `type=\"month\"`), or `{ start, end }` under `range`; `null` when empty\n */\n value?: CDatePickerValue;\n}",
323
+ "declaration": "export interface CDatePickerProps {\n /**\n * Make the value clearable\n */\n clearable?: boolean;\n\n /**\n * Disable the field\n */\n disabled?: boolean;\n\n /**\n * Dates that cannot be picked: ISO dates and inclusive `{ start, end }`\n * spans. Arrays have no attribute form — bind as a DOM property\n */\n disabledDates?: CDatePickerDisabledDate[];\n\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n\n /**\n * First day of the week in the calendar, numbered like `Date.getDay()`:\n * 0 = Sunday, 1 = Monday … 6 = Saturday\n *\n * @defaultable 1\n */\n firstDayOfWeek?: CDatePickerWeekday;\n\n /**\n * How dates are shown and read from typing: a pattern of the tokens `d`,\n * `dd`, `M`, `MM` and `yyyy` with any separators, e.g. `yyyy-MM-dd`\n *\n * @defaultable 'dd.MM.yyyy'\n * @freeform\n */\n format?: string;\n\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n\n /**\n * Predicate for dates that cannot be picked (weekends, say); receives an\n * ISO date. Functions have no attribute form — bind as a DOM property\n */\n isDateDisabled?: (iso: string) => boolean;\n\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n\n /**\n * The latest date that can be picked or typed, as an ISO date; also bounds\n * the calendar's navigation\n *\n * @freeform\n */\n max?: string;\n\n /**\n * The earliest date that can be picked or typed, as an ISO date; also\n * bounds the calendar's navigation\n *\n * @freeform\n */\n min?: string;\n\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n\n /**\n * Placeholder of the input; the `format` pattern when empty\n *\n * @freeform\n */\n placeholder?: string;\n\n /**\n * Pick a range: the value becomes `{ start, end }` and the field holds two\n * inputs\n */\n range?: boolean;\n\n /**\n * Set the field as required\n */\n required?: boolean;\n\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n\n /**\n * Show a Today button under the calendar that picks today (\"This month\"\n * under `type=\"month\"`)\n *\n * @defaultable false\n */\n showToday?: boolean;\n\n /**\n * Show ISO 8601 week numbers beside the calendar rows (meaningful with a\n * Monday week start)\n *\n * @defaultable false\n */\n showWeekNumbers?: boolean;\n\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n\n /**\n * UI text overrides (i18n), merged over the names `Intl` gives for the\n * page's `lang` and the English defaults. Objects have no attribute form —\n * bind as a DOM property\n *\n * @defaultable {}\n */\n texts?: CDatePickerTexts;\n\n /**\n * What the field picks: a calendar date, or a year and a month\n * (`'YYYY-MM'`)\n */\n type?: CDatePickerType;\n\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n\n /**\n * The date as an ISO `YYYY-MM-DD` string (an ISO `YYYY-MM` month under\n * `type=\"month\"`), or `{ start, end }` under `range`; `null` when empty\n */\n value?: CDatePickerValue;\n}",
289
324
  "description": "",
290
325
  "kind": "interface",
291
326
  "name": "CDatePickerProps",
292
327
  "owner": "c-date-picker"
293
328
  },
294
329
  {
295
- "declaration": "export interface CDatePickerRange {\n /** The last day of the range, inclusive. */\n end: null | string;\n /** The first day of the range. */\n start: null | string;\n}",
330
+ "declaration": "export interface CDatePickerRange {\n /** The last day of the range, inclusive. */\n end: null | string;\n\n /** The first day of the range. */\n start: null | string;\n}",
296
331
  "description": "A date range: ISO `YYYY-MM-DD` ends (`YYYY-MM` under `type=\"month\"`), either of which may be `null` while only one is typed.",
297
332
  "kind": "interface",
298
333
  "name": "CDatePickerRange",
@@ -306,7 +341,7 @@
306
341
  "owner": "c-date-picker"
307
342
  },
308
343
  {
309
- "declaration": "export interface CDatePickerTexts {\n /** Accessible name of the dialog when the field has no label. */\n chooseDate?: string;\n /** Accessible label of the clear button. */\n clearSelection?: string;\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n /** A day's accessible name in the grid; receives the ISO date. */\n date?: (iso: string) => string;\n /** Label of the Done button in the fullscreen panel (narrow viewports). */\n done?: string;\n /** Accessible name of the end input under `range`. */\n end?: string;\n /** Label of the end's month step under `type=\"month\"` and `range`; also the end input's name there. */\n endMonth?: string;\n /** Label of the end's year step under `type=\"month\"` and `range`. */\n endYear?: string;\n /** Label of the month step under `type=\"month\"`. */\n month?: string;\n /** Twelve month names, January first. */\n months?: string[];\n /** Twelve short month names, January first — shown on the month button. */\n monthsShort?: string[];\n /** Accessible label of the next-month arrow. */\n nextMonth?: string;\n /** Accessible label of the next-year arrow. */\n nextYear?: string;\n /** Accessible label of the calendar button. */\n openCalendar?: string;\n /** Announcement once a range's first day is picked; receives that day's name. */\n pendingStart?: (date: string) => string;\n /** Accessible label of the previous-month arrow. */\n previousMonth?: string;\n /** Accessible label of the previous-year arrow. */\n previousYear?: string;\n /** Accessible label of the month button and the month list. */\n selectMonth?: string;\n /** Accessible label of the year button and the year list. */\n selectYear?: string;\n /** Accessible name of the start input under `range`. */\n start?: string;\n /** Label of the start's month step under `type=\"month\"` and `range`; also the start input's name there. */\n startMonth?: string;\n /** Label of the start's year step under `type=\"month\"` and `range`. */\n startYear?: string;\n /** Label of the Today button under `type=\"month\"`. */\n thisMonth?: string;\n /** Label of the Today button (`show-today`). */\n today?: string;\n /** Appended to the accessible name of a day that cannot be picked. */\n unavailable?: string;\n /** Seven weekday names, Sunday first. */\n weekdays?: string[];\n /** Seven short weekday names, Sunday first — the grid's column heads. */\n weekdaysShort?: string[];\n /** Accessible name of the week-number column. */\n weekNumber?: string;\n /** Label of the year step under `type=\"month\"`. */\n year?: string;\n}",
344
+ "declaration": "export interface CDatePickerTexts {\n /** Accessible name of the dialog when the field has no label. */\n chooseDate?: string;\n\n /** Accessible label of the clear button. */\n clearSelection?: string;\n\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n\n /** A day's accessible name in the grid; receives the ISO date. */\n date?: (iso: string) => string;\n\n /** Label of the Done button in the fullscreen panel (narrow viewports). */\n done?: string;\n\n /** Accessible name of the end input under `range`. */\n end?: string;\n\n /** Label of the end's month step under `type=\"month\"` and `range`; also the end input's name there. */\n endMonth?: string;\n\n /** Label of the end's year step under `type=\"month\"` and `range`. */\n endYear?: string;\n\n /** Label of the month step under `type=\"month\"`. */\n month?: string;\n\n /** Twelve month names, January first. */\n months?: string[];\n\n /** Twelve short month names, January first — shown on the month button. */\n monthsShort?: string[];\n\n /** Accessible label of the next-month arrow. */\n nextMonth?: string;\n\n /** Accessible label of the next-year arrow. */\n nextYear?: string;\n\n /** Accessible label of the calendar button. */\n openCalendar?: string;\n\n /** Announcement once a range's first day is picked; receives that day's name. */\n pendingStart?: (date: string) => string;\n\n /** Accessible label of the previous-month arrow. */\n previousMonth?: string;\n\n /** Accessible label of the previous-year arrow. */\n previousYear?: string;\n\n /** Accessible label of the month button and the month list. */\n selectMonth?: string;\n\n /** Accessible label of the year button and the year list. */\n selectYear?: string;\n\n /** Accessible name of the start input under `range`. */\n start?: string;\n\n /** Label of the start's month step under `type=\"month\"` and `range`; also the start input's name there. */\n startMonth?: string;\n\n /** Label of the start's year step under `type=\"month\"` and `range`. */\n startYear?: string;\n\n /** Label of the Today button under `type=\"month\"`. */\n thisMonth?: string;\n\n /** Label of the Today button (`show-today`). */\n today?: string;\n\n /** Appended to the accessible name of a day that cannot be picked. */\n unavailable?: string;\n\n /** Seven weekday names, Sunday first. */\n weekdays?: string[];\n\n /** Seven short weekday names, Sunday first — the grid's column heads. */\n weekdaysShort?: string[];\n\n /** Accessible name of the week-number column. */\n weekNumber?: string;\n\n /** Label of the year step under `type=\"month\"`. */\n year?: string;\n}",
310
345
  "description": "UI texts of `c-date-picker`, merged key by key over the names `Intl`\ngives for the page's `lang` and the English defaults. Weekday arrays are\nindexed like `Date.getDay()`: Sunday first.",
311
346
  "kind": "interface",
312
347
  "name": "CDatePickerTexts",
@@ -334,7 +369,63 @@
334
369
  "owner": "c-date-picker"
335
370
  },
336
371
  {
337
- "declaration": "export interface CIconButtonProps {\n /**\n * Show a badge on top of the icon\n *\n * @seeded from csc-ui — verify\n */\n badge?: null | number | string;\n /**\n * Danger variant of the button\n *\n * @seeded from csc-ui — verify\n */\n danger?: boolean;\n /**\n * Disable the button\n *\n * @seeded from csc-ui — verify\n */\n disabled?: boolean;\n /**\n * Ghost variant of the button\n *\n * @seeded from csc-ui — verify\n */\n ghost?: boolean;\n /**\n * Inverted color for dark backgrounds\n *\n * @seeded from csc-ui — verify\n */\n inverted?: boolean;\n /**\n * Loading variant of the button\n *\n * @seeded from csc-ui — verify\n */\n loading?: boolean;\n /**\n * Outlined variant of the button\n *\n * @seeded from csc-ui — verify\n */\n outlined?: boolean;\n /**\n * Path for the svg icon\n *\n * @seeded from csc-ui — verify\n * @freeform SVG path data\n */\n path?: string;\n /**\n * Size of the button\n *\n * @seeded from csc-ui — verify\n */\n size?: CIconButtonSize;\n /**\n * Text variant of the button\n *\n * @seeded from csc-ui — verify\n */\n text?: boolean;\n}",
372
+ "declaration": "export interface CFileUploadContext {\n /** The entry's id. */\n id: string;\n\n /** Report progress as a fraction from 0 to 1; the row stays indeterminate until the first call. */\n onProgress: (fraction: number) => void;\n\n /** Aborted when the user cancels, the entry is removed, or the field unmounts. */\n signal: AbortSignal;\n}",
373
+ "description": "The second argument of an upload function.",
374
+ "kind": "interface",
375
+ "name": "CFileUploadContext",
376
+ "owner": "c-file-upload"
377
+ },
378
+ {
379
+ "declaration": "export interface CFileUploadEntry {\n /** The rejection text shown for a failed upload. */\n error?: string;\n\n /** The browser file, for a file the user added. Absent on a server file. */\n file?: File;\n\n /** Stable identity: generated for an added file, the consumer's own for a server file. */\n id: string;\n\n /** The file name. */\n name: string;\n\n /** What the upload function resolved to. */\n result?: unknown;\n\n /** The size in bytes. */\n size: number;\n\n /** Where the entry stands. */\n status: CFileUploadStatus;\n\n /** The media type, as the browser reported it. */\n type?: string;\n}",
380
+ "description": "One file a `c-file-upload` holds (CONTEXT.md \"File entry\").",
381
+ "kind": "interface",
382
+ "name": "CFileUploadEntry",
383
+ "owner": "c-file-upload"
384
+ },
385
+ {
386
+ "declaration": "export type CFileUploadFunction = (\n file: File,\n context: CFileUploadContext,\n) => Promise<unknown>;",
387
+ "description": "Sends one file; resolves to the entry's `result` or rejects to mark it failed.",
388
+ "kind": "type-alias",
389
+ "name": "CFileUploadFunction",
390
+ "owner": "c-file-upload"
391
+ },
392
+ {
393
+ "declaration": "export interface CFileUploadProps {\n /**\n * The file types the field takes, in the native `accept` syntax: extensions (`.pdf`) and media types (`image/*`, `application/json`), comma separated. It filters the file dialog and is checked again on a drop\n *\n * @freeform\n */\n accept?: string;\n\n /**\n * Show the drop zone as a control-height row — a \"Choose files\" button and a drop prompt — that lines up with the fields beside it\n *\n * @defaultable false\n */\n compact?: boolean;\n\n /**\n * Disable the field. Uploads already running continue\n */\n disabled?: boolean;\n\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n\n /**\n * Hint text under the drop zone — the place to name the accepted types and limits\n *\n * @freeform\n */\n hint?: string;\n\n /**\n * Label of the field\n *\n * @freeform\n */\n label?: string;\n\n /**\n * Hold added files as `local` even with an upload function, until `startUploads()` queues them — for a form that uploads on its own button. Files added after the call wait for the next one\n */\n manual?: boolean;\n\n /**\n * The most file entries a `multiple` field holds; files beyond it are rejected\n */\n maxFiles?: null | number;\n\n /**\n * The largest file in bytes; a larger one is rejected. Sizes are shown in decimal units, so write the limit in decimal bytes (`10000000` reads \"10 MB\")\n */\n maxSize?: null | number;\n\n /**\n * Let a pick or a drop add several files. Without it the field holds one file and a new pick replaces it; the value is a list either way\n */\n multiple?: boolean;\n\n /**\n * Set the field as required\n */\n required?: boolean;\n\n /**\n * Height of the `compact` row: the 52px default (the shared control height) or the 36px `small` row. The large drop zone has one size\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n\n /**\n * UI text overrides (i18n), merged over the English defaults. Objects have no attribute form — bind as a DOM property\n *\n * @defaultable {}\n */\n texts?: CFileUploadTexts;\n\n /**\n * The upload function: called once per added file with an abort signal and a progress callback taking a fraction from 0 to 1; what it resolves to becomes the entry's `result`, an `Error` it rejects with becomes the entry's `error` text. Without one the field only holds the files. A function — bind as a DOM property\n */\n upload?: CFileUploadFunction;\n\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n\n /**\n * The file entries — always a list. A picked file's entry carries the browser `File`; a server file's entry is `{ id, name, size, status: 'done' }`. `''` reads as empty — what a plain `v-model` holding `null` writes. An array — bind as a DOM property\n */\n value?: CFileUploadEntry[] | null | string;\n}",
394
+ "description": "",
395
+ "kind": "interface",
396
+ "name": "CFileUploadProps",
397
+ "owner": "c-file-upload"
398
+ },
399
+ {
400
+ "declaration": "export interface CFileUploadRejection {\n /** The refused file. */\n file: File;\n\n /** Why it was refused. */\n reason: CFileUploadRejectReason;\n}",
401
+ "description": "One rejected file, as the `reject` event reports it.",
402
+ "kind": "interface",
403
+ "name": "CFileUploadRejection",
404
+ "owner": "c-file-upload"
405
+ },
406
+ {
407
+ "declaration": "export type CFileUploadRejectReason =\n | 'count'\n | 'duplicate'\n | 'folder'\n | 'size'\n | 'type';",
408
+ "description": "Why a file was rejected.",
409
+ "kind": "type-alias",
410
+ "name": "CFileUploadRejectReason",
411
+ "owner": "c-file-upload"
412
+ },
413
+ {
414
+ "declaration": "export type CFileUploadStatus =\n | 'done'\n | 'error'\n | 'local'\n | 'queued'\n | 'uploading';",
415
+ "description": "Where a file entry stands (CONTEXT.md \"Upload status\").",
416
+ "kind": "type-alias",
417
+ "name": "CFileUploadStatus",
418
+ "owner": "c-file-upload"
419
+ },
420
+ {
421
+ "declaration": "export interface CFileUploadTexts {\n /** Announced after an add, with the number of files added. */\n announceAdded?: (count: number) => string;\n\n /** Announced when an upload fails, with the file name and the row's error text. */\n announceFailed?: (name: string, error: string) => string;\n\n /** Announced for a rejected file, with its name and the reason text. */\n announceRejected?: (name: string, reason: string) => string;\n\n /** Announced when an upload is done, with the file name. */\n announceUploaded?: (name: string) => string;\n\n /** Accessible label of a queued or uploading row's cancel button. */\n cancel?: (name: string) => string;\n\n /** The link-styled end of the large drop zone's prompt. */\n choose?: (multiple: boolean) => string;\n\n /** The compact row's button, and the large drop zone's prompt on a touch screen. */\n chooseButton?: (multiple: boolean) => string;\n\n /** The compact row's prompt beside its button. */\n compactPrompt?: (multiple: boolean) => string;\n\n /** Accessible label of a rejected row's dismiss button. */\n dismiss?: (name: string) => string;\n\n /** The large drop zone's prompt before the choose link. */\n dragPrompt?: (multiple: boolean) => string;\n\n /** The drop zone's prompt while files are dragged over the field. */\n dropActive?: (multiple: boolean) => string;\n\n /** An uploading row's status: bytes sent, file size (both formatted) and the whole percentage. */\n progress?: (loaded: string, total: string, percent: number) => string;\n\n /** Rejection reason: a file beyond the count the field holds. */\n rejectedCount?: (max: number) => string;\n\n /** Rejection reason: a file the field already holds. */\n rejectedDuplicate?: string;\n\n /** Rejection reason: a dropped folder. */\n rejectedFolder?: string;\n\n /** Rejection reason: a file over `max-size`, with the formatted limit. */\n rejectedSize?: (max: string) => string;\n\n /** Rejection reason: a type outside `accept`. */\n rejectedType?: string;\n\n /** Accessible label of a row's remove button. */\n remove?: (name: string) => string;\n\n /** Accessible label of a failed row's retry button. */\n retry?: (name: string) => string;\n\n /** Accessible name of a done row's check mark. */\n uploaded?: string;\n\n /** A failed row's status when the upload function gave no message. */\n uploadFailed?: string;\n\n /** An uploading row's status before the first progress report. */\n uploading?: string;\n\n /** A queued row's status. */\n waiting?: string;\n}",
422
+ "description": "UI texts of `c-file-upload`, merged key by key over the English defaults.",
423
+ "kind": "interface",
424
+ "name": "CFileUploadTexts",
425
+ "owner": "c-file-upload"
426
+ },
427
+ {
428
+ "declaration": "export interface CIconButtonProps {\n /**\n * Show a badge on top of the icon\n *\n * @seeded from csc-ui — verify\n */\n badge?: null | number | string;\n\n /**\n * Danger variant of the button\n *\n * @seeded from csc-ui — verify\n */\n danger?: boolean;\n\n /**\n * Disable the button\n *\n * @seeded from csc-ui — verify\n */\n disabled?: boolean;\n\n /**\n * Ghost variant of the button\n *\n * @seeded from csc-ui — verify\n */\n ghost?: boolean;\n\n /**\n * Inverted color for dark backgrounds\n *\n * @seeded from csc-ui — verify\n */\n inverted?: boolean;\n\n /**\n * Loading variant of the button\n *\n * @seeded from csc-ui — verify\n */\n loading?: boolean;\n\n /**\n * Outlined variant of the button\n *\n * @seeded from csc-ui — verify\n */\n outlined?: boolean;\n\n /**\n * Path for the svg icon\n *\n * @seeded from csc-ui — verify\n * @freeform SVG path data\n */\n path?: string;\n\n /**\n * Size of the button\n *\n * @seeded from csc-ui — verify\n */\n size?: CIconButtonSize;\n\n /**\n * Text variant of the button\n *\n * @seeded from csc-ui — verify\n */\n text?: boolean;\n}",
338
429
  "description": "",
339
430
  "kind": "interface",
340
431
  "name": "CIconButtonProps",
@@ -355,7 +446,7 @@
355
446
  "owner": "c-login-card"
356
447
  },
357
448
  {
358
- "declaration": "export interface CLoginCardProps {\n /**\n * Background position (css background-position)\n *\n * @seeded from csc-ui — verify\n * @freeform any CSS background-position value\n */\n backgroundPosition?: string;\n /**\n * Mobile breakpoint in pixels\n *\n * @seeded from csc-ui — verify\n */\n mobileBreakpoint?: number;\n /**\n * Add colored overlay to the background image\n *\n * @seeded from csc-ui — verify\n */\n overlay?: boolean;\n /**\n * Add colored overlay to the background image\n *\n * @seeded from csc-ui — verify\n */\n overlayBlendMode?: CLoginCardBlendMode;\n /**\n * Background image\n *\n * @seeded from csc-ui — verify\n * @freeform any image URL\n */\n src?: string;\n}",
449
+ "declaration": "export interface CLoginCardProps {\n /**\n * Background position (css background-position)\n *\n * @seeded from csc-ui — verify\n * @freeform any CSS background-position value\n */\n backgroundPosition?: string;\n\n /**\n * Mobile breakpoint in pixels\n *\n * @seeded from csc-ui — verify\n */\n mobileBreakpoint?: number;\n\n /**\n * Add colored overlay to the background image\n *\n * @seeded from csc-ui — verify\n */\n overlay?: boolean;\n\n /**\n * Add colored overlay to the background image\n *\n * @seeded from csc-ui — verify\n */\n overlayBlendMode?: CLoginCardBlendMode;\n\n /**\n * Background image\n *\n * @seeded from csc-ui — verify\n * @freeform any image URL\n */\n src?: string;\n}",
359
450
  "description": "",
360
451
  "kind": "interface",
361
452
  "name": "CLoginCardProps",
@@ -376,21 +467,21 @@
376
467
  "owner": "c-login-card-actions"
377
468
  },
378
469
  {
379
- "declaration": "export interface CLoginCardActionsProps {\n /**\n * Align the actions\n *\n * @seeded from csc-ui — verify\n */\n align?: CLoginCardActionsAlign;\n /**\n * Justify the actions\n *\n * @seeded from csc-ui — verify\n */\n justify?: CLoginCardActionsJustify;\n}",
470
+ "declaration": "export interface CLoginCardActionsProps {\n /**\n * Align the actions\n *\n * @seeded from csc-ui — verify\n */\n align?: CLoginCardActionsAlign;\n\n /**\n * Justify the actions\n *\n * @seeded from csc-ui — verify\n */\n justify?: CLoginCardActionsJustify;\n}",
380
471
  "description": "",
381
472
  "kind": "interface",
382
473
  "name": "CLoginCardActionsProps",
383
474
  "owner": "c-login-card-actions"
384
475
  },
385
476
  {
386
- "declaration": "export interface CNumberFieldProps {\n /**\n * The most fraction digits the field takes; `0` makes it an integer field\n *\n * @defaultable 0\n */\n decimals?: number;\n /**\n * The decimal separator. Empty follows the page's `lang` (`,` for `fi`, `.` for `en`)\n *\n * @defaultable ''\n * @freeform one character\n */\n decimalSeparator?: string;\n /**\n * Disable the field\n */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * Pad the fraction to exactly `decimals` digits when the field is left (`12,5` → `12,50`)\n *\n * @defaultable false\n */\n fixedDecimals?: boolean;\n /**\n * The thousands separator. Empty follows the page's `lang` (a space for `fi`, `,` for `en`)\n *\n * @defaultable ''\n * @freeform one character\n */\n groupSeparator?: string;\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the input\n *\n * @freeform\n */\n hostId?: string;\n /**\n * Label of the field\n *\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n /**\n * The largest number in range; a larger one is kept and reported as out of range\n */\n max?: null | number;\n /**\n * The smallest number in range; a smaller one is kept and reported as out of range. At `0` or above, the minus key is ignored\n */\n min?: null | number;\n /**\n * Name of the input\n *\n * @freeform\n */\n name?: string;\n /**\n * Placeholder of the input\n *\n * @freeform\n */\n placeholder?: string;\n /**\n * Mark as readonly\n */\n readonly?: boolean;\n /**\n * Set the field as required\n */\n required?: boolean;\n /**\n * Shadow variant of the field\n *\n * @defaultable false\n */\n shadow?: boolean;\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n /**\n * The spacing of the grid the step buttons and arrow keys move along, counted from `min` (or `0`)\n *\n * @defaultable 1\n */\n step?: number;\n /**\n * UI text overrides (i18n), merged over the English defaults. Objects have no attribute form — bind as a DOM property\n *\n * @defaultable {}\n */\n texts?: CNumberFieldTexts;\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n /**\n * The number, or `null` when the field is empty. A string is read as the number it spells, and `''` as empty — what an attribute, or a plain `v-model` holding `null`, writes; the field always emits a number or `null`\n */\n value?: null | number | string;\n}",
477
+ "declaration": "export interface CNumberFieldProps {\n /**\n * The most fraction digits the field takes; `0` makes it an integer field\n *\n * @defaultable 0\n */\n decimals?: number;\n\n /**\n * The decimal separator. Empty follows the page's `lang` (`,` for `fi`, `.` for `en`)\n *\n * @defaultable ''\n * @freeform one character\n */\n decimalSeparator?: string;\n\n /**\n * Disable the field\n */\n disabled?: boolean;\n\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n\n /**\n * Pad the fraction to exactly `decimals` digits when the field is left (`12,5` → `12,50`)\n *\n * @defaultable false\n */\n fixedDecimals?: boolean;\n\n /**\n * The thousands separator. Empty follows the page's `lang` (a space for `fi`, `,` for `en`)\n *\n * @defaultable ''\n * @freeform one character\n */\n groupSeparator?: string;\n\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n\n /**\n * Id of the input\n *\n * @freeform\n */\n hostId?: string;\n\n /**\n * Label of the field\n *\n * @freeform\n */\n label?: string;\n\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n\n /**\n * The largest number in range; a larger one is kept and reported as out of range\n */\n max?: null | number;\n\n /**\n * The smallest number in range; a smaller one is kept and reported as out of range. At `0` or above, the minus key is ignored\n */\n min?: null | number;\n\n /**\n * Name of the input\n *\n * @freeform\n */\n name?: string;\n\n /**\n * Placeholder of the input\n *\n * @freeform\n */\n placeholder?: string;\n\n /**\n * Mark as readonly\n */\n readonly?: boolean;\n\n /**\n * Set the field as required\n */\n required?: boolean;\n\n /**\n * Shadow variant of the field\n *\n * @defaultable false\n */\n shadow?: boolean;\n\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n\n /**\n * The spacing of the grid the step buttons and arrow keys move along, counted from `min` (or `0`)\n *\n * @defaultable 1\n */\n step?: number;\n\n /**\n * UI text overrides (i18n), merged over the English defaults. Objects have no attribute form — bind as a DOM property\n *\n * @defaultable {}\n */\n texts?: CNumberFieldTexts;\n\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n\n /**\n * The number, or `null` when the field is empty. A string is read as the number it spells, and `''` as empty — what an attribute, or a plain `v-model` holding `null`, writes; the field always emits a number or `null`\n */\n value?: null | number | string;\n}",
387
478
  "description": "",
388
479
  "kind": "interface",
389
480
  "name": "CNumberFieldProps",
390
481
  "owner": "c-number-field"
391
482
  },
392
483
  {
393
- "declaration": "export interface CNumberFieldTexts {\n /** Accessible label of the step-down button. */\n decrease?: string;\n /** Accessible label of the step-up button. */\n increase?: string;\n}",
484
+ "declaration": "export interface CNumberFieldTexts {\n /** Accessible label of the step-down button. */\n decrease?: string;\n\n /** Accessible label of the step-up button. */\n increase?: string;\n}",
394
485
  "description": "UI texts of `c-number-field`, merged key by key over the English defaults.",
395
486
  "kind": "interface",
396
487
  "name": "CNumberFieldTexts",
@@ -404,7 +495,7 @@
404
495
  "owner": "c-pagination"
405
496
  },
406
497
  {
407
- "declaration": "export interface CPaginationProps {\n /**\n * Hide details (per page dropdown and the 'x - y of n pages' text)\n *\n * @seeded from csc-ui — verify\n */\n hideDetails?: boolean;\n /**\n * Hide range indicator\n *\n * @seeded from csc-ui — verify\n */\n hideRange?: boolean;\n /**\n * Hide page number buttons\n *\n * @seeded from csc-ui — verify\n */\n simple?: boolean;\n /**\n * Hide details (per page dropdown and the 'x - y of n pages' text)\n *\n * @seeded from csc-ui — verify\n */\n size?: CPaginationSize;\n /**\n * Object containing values that are needed for pagination.\n *\n * Note! startFrom and endTo are assigned automatically to the object based on other values\n *\n * @seeded from csc-ui — verify\n */\n value?: CPaginationOptions;\n}",
498
+ "declaration": "export interface CPaginationProps {\n /**\n * Hide details (per page dropdown and the 'x - y of n pages' text)\n *\n * @seeded from csc-ui — verify\n */\n hideDetails?: boolean;\n\n /**\n * Hide range indicator\n *\n * @seeded from csc-ui — verify\n */\n hideRange?: boolean;\n\n /**\n * Hide page number buttons\n *\n * @seeded from csc-ui — verify\n */\n simple?: boolean;\n\n /**\n * Hide details (per page dropdown and the 'x - y of n pages' text)\n *\n * @seeded from csc-ui — verify\n */\n size?: CPaginationSize;\n\n /**\n * Object containing values that are needed for pagination.\n *\n * Note! startFrom and endTo are assigned automatically to the object based on other values\n *\n * @seeded from csc-ui — verify\n */\n value?: CPaginationOptions;\n}",
408
499
  "description": "",
409
500
  "kind": "interface",
410
501
  "name": "CPaginationProps",
@@ -418,21 +509,21 @@
418
509
  "owner": "c-pagination"
419
510
  },
420
511
  {
421
- "declaration": "export interface CPopoverProps {\n /** Distance from the trigger to the panel, in pixels. Defaults to `0`. */\n distance?: number | string;\n /**\n * Heading rendered at the top of the panel, doubling as its accessible\n * name. Without it, set `aria-label` on the host. Named `heading`, not\n * `title`: a `title` attribute on the host would trigger the browser's\n * native tooltip and collides with `HTMLElement.title`.\n * @freeform\n */\n heading?: string;\n /** Whether the popover is open. Two-way: emits `change:open`. */\n open?: boolean;\n /** Preferred placement of the panel relative to the trigger. */\n position?: CPlacement;\n /**\n * Designated trigger: an element elsewhere in the document that opens the\n * popover — its document ID, or the element itself. The same trigger\n * concept as the `trigger` slot, supplied by reference: the popover wires\n * click-to-toggle, ARIA and focus return onto it and anchors the panel to\n * it. When both routes are supplied, this prop wins over the slot.\n */\n trigger?: HTMLElement | string;\n}",
512
+ "declaration": "export interface CPopoverProps {\n /** Distance from the trigger to the panel, in pixels. Defaults to `0`. */\n distance?: number | string;\n\n /**\n * Heading rendered at the top of the panel, doubling as its accessible\n * name. Without it, set `aria-label` on the host. Named `heading`, not\n * `title`: a `title` attribute on the host would trigger the browser's\n * native tooltip and collides with `HTMLElement.title`.\n * @freeform\n */\n heading?: string;\n\n /** Whether the popover is open. Two-way: emits `change:open`. */\n open?: boolean;\n\n /** Preferred placement of the panel relative to the trigger. */\n position?: CPlacement;\n\n /**\n * Designated trigger: an element elsewhere in the document that opens the\n * popover — its document ID, or the element itself. The same trigger\n * concept as the `trigger` slot, supplied by reference: the popover wires\n * click-to-toggle, ARIA and focus return onto it and anchors the panel to\n * it. When both routes are supplied, this prop wins over the slot.\n */\n trigger?: HTMLElement | string;\n}",
422
513
  "description": "",
423
514
  "kind": "interface",
424
515
  "name": "CPopoverProps",
425
516
  "owner": "c-popover"
426
517
  },
427
518
  {
428
- "declaration": "export interface CSelectProps {\n /** Make the selected value clearable */\n clearable?: boolean;\n /** Disable the input */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the select is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n /**\n * Hint text for the input\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n /** Dropdown items (when not using <c-option> elements) */\n items?: CSelectItem[];\n /**\n * Items per page before adding scroll\n *\n * @defaultable 6\n */\n itemsPerPage?: number;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the input\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n /** Show loading state */\n loading?: boolean;\n /**\n * In `multiple` mode, show at most this many selected-value tags and fold\n * the rest into one \"+N more\" tag; `0` shows no tags and reads \"N selected\"\n * instead; unset shows every tag\n */\n maxTags?: number;\n /**\n * Allow selecting several options: rows toggle and the list stays open,\n * `value` becomes an array of the selected values (items with\n * `return-object`) in the order they were picked, and the picks show as\n * tags inside the field. `option-as-selection` is ignored in this mode.\n * Arrays have no attribute form — bind `value` as a DOM property\n */\n multiple?: boolean;\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n /** Display the option as selection (only with <c-option> elements) */\n optionAsSelection?: boolean;\n /**\n * Placeholder text\n *\n * @freeform\n */\n placeholder?: string;\n /** Set the select as required */\n required?: boolean;\n /** Return object instead of value */\n returnObject?: boolean;\n /**\n * In `multiple` mode, pin a select-all row at the top of the list. Its\n * checkbox shows whether none, some or all enabled options are selected;\n * activating it selects every enabled option — or, when all are selected,\n * unselects them. Ignored in single mode\n */\n selectAll?: boolean;\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n /**\n * UI text overrides (i18n), merged over the English defaults. Objects have\n * no attribute form — bind as a DOM property (`:texts.prop` in Vue)\n *\n * @defaultable {}\n */\n texts?: CSelectTexts;\n /** Set the validity of the input */\n valid?: boolean;\n /**\n * Selected value: the option's value, or the whole item with\n * `return-object`; an array of them in `multiple` mode\n */\n value?: CSelectValue;\n}",
519
+ "declaration": "export interface CSelectProps {\n /** Make the selected value clearable */\n clearable?: boolean;\n\n /** Disable the input */\n disabled?: boolean;\n\n /**\n * Error message shown in place of the hint while the select is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n\n /**\n * Hint text for the input\n *\n * @freeform\n */\n hint?: string;\n\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n\n /** Dropdown items (when not using <c-option> elements) */\n items?: CSelectItem[];\n\n /**\n * Items per page before adding scroll\n *\n * @defaultable 6\n */\n itemsPerPage?: number;\n\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n\n /**\n * Label on top of the input\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n\n /** Show loading state */\n loading?: boolean;\n\n /**\n * In `multiple` mode, show at most this many selected-value tags and fold\n * the rest into one \"+N more\" tag; `0` shows no tags and reads \"N selected\"\n * instead; unset shows every tag\n */\n maxTags?: number;\n\n /**\n * Allow selecting several options: rows toggle and the list stays open,\n * `value` becomes an array of the selected values (items with\n * `return-object`) in the order they were picked, and the picks show as\n * tags inside the field. `option-as-selection` is ignored in this mode.\n * Arrays have no attribute form — bind `value` as a DOM property\n */\n multiple?: boolean;\n\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n\n /** Display the option as selection (only with <c-option> elements) */\n optionAsSelection?: boolean;\n\n /**\n * Placeholder text\n *\n * @freeform\n */\n placeholder?: string;\n\n /** Set the select as required */\n required?: boolean;\n\n /** Return object instead of value */\n returnObject?: boolean;\n\n /**\n * In `multiple` mode, pin a select-all row at the top of the list. Its\n * checkbox shows whether none, some or all enabled options are selected;\n * activating it selects every enabled option — or, when all are selected,\n * unselects them. Ignored in single mode\n */\n selectAll?: boolean;\n\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n\n /**\n * UI text overrides (i18n), merged over the English defaults. Objects have\n * no attribute form — bind as a DOM property (`:texts.prop` in Vue)\n *\n * @defaultable {}\n */\n texts?: CSelectTexts;\n\n /** Set the validity of the input */\n valid?: boolean;\n\n /**\n * Selected value: the option's value, or the whole item with\n * `return-object`; an array of them in `multiple` mode\n */\n value?: CSelectValue;\n}",
429
520
  "description": "",
430
521
  "kind": "interface",
431
522
  "name": "CSelectProps",
432
523
  "owner": "c-select"
433
524
  },
434
525
  {
435
- "declaration": "export interface CSelectTexts {\n /** Accessible label of the clear button. */\n clearSelection?: string;\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n /**\n * Text of the overflow tag when `max-tags` folds the selection; receives the\n * number of hidden tags.\n */\n more?: (count: number) => string;\n /** Accessible label of a tag's remove button; receives the option label. */\n remove?: (label: string) => string;\n /**\n * Label of the select-all row; receives the number of enabled options\n * listed.\n */\n selectAll?: (count: number) => string;\n /**\n * Field text when `max-tags=\"0\"` shows no tags; receives the selection\n * count.\n */\n selected?: (count: number) => string;\n /** Accessible label of the chevron button that opens and closes the list. */\n toggleOptions?: string;\n}",
526
+ "declaration": "export interface CSelectTexts {\n /** Accessible label of the clear button. */\n clearSelection?: string;\n\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n\n /**\n * Text of the overflow tag when `max-tags` folds the selection; receives the\n * number of hidden tags.\n */\n more?: (count: number) => string;\n\n /** Accessible label of a tag's remove button; receives the option label. */\n remove?: (label: string) => string;\n\n /**\n * Label of the select-all row; receives the number of enabled options\n * listed.\n */\n selectAll?: (count: number) => string;\n\n /**\n * Field text when `max-tags=\"0\"` shows no tags; receives the selection\n * count.\n */\n selected?: (count: number) => string;\n\n /** Accessible label of the chevron button that opens and closes the list. */\n toggleOptions?: string;\n}",
436
527
  "description": "UI texts of `c-select`, shallow-merged over the English defaults. Static\nlabels are strings; count- or label-interpolated ones are functions.",
437
528
  "kind": "interface",
438
529
  "name": "CSelectTexts",
@@ -460,7 +551,7 @@
460
551
  "owner": "c-status"
461
552
  },
462
553
  {
463
- "declaration": "export interface CTabButtonsProps {\n /** Disable the whole tab strip — every slotted c-button is disabled and the selection can no longer be changed. */\n disabled?: boolean;\n /**\n * Size of the buttons\n *\n * @seeded from csc-ui — verify\n */\n size?: CTabButtonsSize;\n /**\n * Value of the active tab — pushed down by the parent c-tabs.\n *\n * @seeded from csc-ui — verify\n */\n value?: number | string;\n}",
554
+ "declaration": "export interface CTabButtonsProps {\n /** Disable the whole tab strip — every slotted c-button is disabled and the selection can no longer be changed. */\n disabled?: boolean;\n\n /**\n * Size of the buttons\n *\n * @seeded from csc-ui — verify\n */\n size?: CTabButtonsSize;\n\n /**\n * Value of the active tab — pushed down by the parent c-tabs.\n *\n * @seeded from csc-ui — verify\n */\n value?: number | string;\n}",
464
555
  "description": "",
465
556
  "kind": "interface",
466
557
  "name": "CTabButtonsProps",
@@ -481,14 +572,14 @@
481
572
  "owner": "c-tabs"
482
573
  },
483
574
  {
484
- "declaration": "export interface CTabsProps {\n /**\n * Disable the bottom border\n *\n * @seeded from csc-ui — verify\n */\n borderless?: boolean;\n /**\n * Disable animation\n *\n * @seeded from csc-ui — verify\n */\n disableAnimation?: boolean;\n /**\n * Justification of the children\n *\n * @seeded from csc-ui — verify\n */\n justify?: CTabsJustify;\n /**\n * Mobile breakpoint in pixels\n * - affects the content stacking with the vertical tabs\n *\n * @seeded from csc-ui — verify\n */\n mobileBreakpoint?: number;\n /**\n * Currently active tab\n *\n * @seeded from csc-ui — verify\n */\n value?: number | string;\n /**\n * Vertical tabs\n *\n * @seeded from csc-ui — verify\n */\n vertical?: boolean;\n}",
575
+ "declaration": "export interface CTabsProps {\n /**\n * Disable the bottom border\n *\n * @seeded from csc-ui — verify\n */\n borderless?: boolean;\n\n /**\n * Disable animation\n *\n * @seeded from csc-ui — verify\n */\n disableAnimation?: boolean;\n\n /**\n * Justification of the children\n *\n * @seeded from csc-ui — verify\n */\n justify?: CTabsJustify;\n\n /**\n * Mobile breakpoint in pixels\n * - affects the content stacking with the vertical tabs\n *\n * @seeded from csc-ui — verify\n */\n mobileBreakpoint?: number;\n\n /**\n * Currently active tab\n *\n * @seeded from csc-ui — verify\n */\n value?: number | string;\n\n /**\n * Vertical tabs\n *\n * @seeded from csc-ui — verify\n */\n vertical?: boolean;\n}",
485
576
  "description": "",
486
577
  "kind": "interface",
487
578
  "name": "CTabsProps",
488
579
  "owner": "c-tabs"
489
580
  },
490
581
  {
491
- "declaration": "export interface CTagProps {\n /**\n * Mark tag as active\n *\n * @seeded from csc-ui — verify\n */\n active?: boolean;\n /**\n * Display an optional badge at the start of the tag\n *\n * @seeded from csc-ui — verify\n */\n badge?: null | number | string;\n /**\n * Mark tag as closeable\n *\n * @seeded from csc-ui — verify\n */\n closeable?: boolean;\n /**\n * Accessible name of the close button rendered when `closeable`\n *\n * @freeform\n */\n closeLabel?: string;\n /**\n * Remove the hover effect\n *\n * @seeded from csc-ui — verify\n */\n flat?: boolean;\n /**\n * Size of the tag\n *\n * @seeded from csc-ui — verify\n */\n size?: CTagSize;\n}",
582
+ "declaration": "export interface CTagProps {\n /**\n * Mark tag as active\n *\n * @seeded from csc-ui — verify\n */\n active?: boolean;\n\n /**\n * Display an optional badge at the start of the tag\n *\n * @seeded from csc-ui — verify\n */\n badge?: null | number | string;\n\n /**\n * Mark tag as closeable\n *\n * @seeded from csc-ui — verify\n */\n closeable?: boolean;\n\n /**\n * Accessible name of the close button rendered when `closeable`\n *\n * @freeform\n */\n closeLabel?: string;\n\n /**\n * Remove the hover effect\n *\n * @seeded from csc-ui — verify\n */\n flat?: boolean;\n\n /**\n * Size of the tag\n *\n * @seeded from csc-ui — verify\n */\n size?: CTagSize;\n}",
492
583
  "description": "",
493
584
  "kind": "interface",
494
585
  "name": "CTagProps",
@@ -502,7 +593,7 @@
502
593
  "owner": "c-tag"
503
594
  },
504
595
  {
505
- "declaration": "export interface CTagsProps {\n /**\n * Label of the tag group, shown above the tags\n *\n * @freeform\n */\n label?: string;\n /**\n * Set as required — shows the required marker on the label\n */\n required?: boolean;\n /**\n * Size of the tags\n *\n * @seeded from csc-ui — verify\n */\n size?: CTagsSize;\n}",
596
+ "declaration": "export interface CTagsProps {\n /**\n * Label of the tag group, shown above the tags\n *\n * @freeform\n */\n label?: string;\n\n /**\n * Set as required — shows the required marker on the label\n */\n required?: boolean;\n\n /**\n * Size of the tags\n *\n * @seeded from csc-ui — verify\n */\n size?: CTagsSize;\n}",
506
597
  "description": "",
507
598
  "kind": "interface",
508
599
  "name": "CTagsProps",
@@ -523,7 +614,7 @@
523
614
  "owner": "c-text-field"
524
615
  },
525
616
  {
526
- "declaration": "export interface CTextFieldProps {\n /**\n * HTML input autocomplete\n *\n * @seeded from csc-ui — verify\n * @freeform any HTML autocomplete token list\n */\n autocomplete?: string;\n /**\n * Enable native input autocorrection (Safari). Maps to the input's\n * `autocorrect=\"on\"`/`\"off\"` attribute; left unset (browser default per\n * input type) when not specified. Mirrors the platform\n * `HTMLElement.autocorrect` boolean.\n */\n autocorrect?: boolean;\n /**\n * HTML input autocapitalize\n *\n * @seeded from csc-ui — verify\n */\n automaticCapitalize?: CTextFieldAutocapitalize;\n /**\n * Disable the input\n *\n * @seeded from csc-ui — verify\n */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the input is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * Hide the hint and error messages\n *\n * @seeded from csc-ui — verify\n * @defaultable false\n */\n hideDetails?: boolean;\n /**\n * Hint text for the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n hint?: string;\n /**\n * Id of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n hostId?: string;\n /**\n * Label of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the input\n *\n * @seeded from csc-ui — verify\n * @defaultable false\n */\n labelOnTop?: boolean;\n /**\n * Input mask the typed text follows: `#` a digit, `A` a letter, `*` a letter or a digit, `\\` escapes the next character, `[…]` wraps a trailing optional section, anything else is a literal. Applies to a single-line `text`, `tel` or `search` field\n *\n * @freeform a mask pattern, e.g. `+358 ## ### ####`\n */\n mask?: string;\n /**\n * Maximum value on a numeric input\n *\n * @seeded from csc-ui — verify\n */\n max?: null | number;\n /**\n * Minimum value on a numeric input\n *\n * @seeded from csc-ui — verify\n */\n min?: null | number;\n /**\n * Name of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n name?: string;\n /**\n * Placeholder of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n placeholder?: string;\n /**\n * Mark as readonly\n *\n * @seeded from csc-ui — verify\n */\n readonly?: boolean;\n /**\n * Set the input as required\n *\n * @seeded from csc-ui — verify\n */\n required?: boolean;\n /**\n * Rows on the input\n *\n * @seeded from csc-ui — verify\n */\n rows?: number;\n /**\n * Shadow variant of the input\n *\n * @seeded from csc-ui — verify\n * @defaultable false\n */\n shadow?: boolean;\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box (single-line fields)\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n /**\n * Step size on a numeric input\n *\n * @seeded from csc-ui — verify\n */\n step?: null | number;\n /**\n * Trim whitespace from the return value\n *\n * @seeded from csc-ui — verify\n */\n trimWhitespace?: boolean;\n /**\n * Type of the input\n *\n * @seeded from csc-ui — verify\n */\n type?: CTextFieldType;\n /**\n * Set the validity of the input\n *\n * @seeded from csc-ui — verify\n */\n valid?: boolean;\n /**\n * Value of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n value?: string;\n}",
617
+ "declaration": "export interface CTextFieldProps {\n /**\n * HTML input autocomplete\n *\n * @seeded from csc-ui — verify\n * @freeform any HTML autocomplete token list\n */\n autocomplete?: string;\n\n /**\n * Enable native input autocorrection (Safari). Maps to the input's\n * `autocorrect=\"on\"`/`\"off\"` attribute; left unset (browser default per\n * input type) when not specified. Mirrors the platform\n * `HTMLElement.autocorrect` boolean.\n */\n autocorrect?: boolean;\n\n /**\n * HTML input autocapitalize\n *\n * @seeded from csc-ui — verify\n */\n automaticCapitalize?: CTextFieldAutocapitalize;\n\n /**\n * Disable the input\n *\n * @seeded from csc-ui — verify\n */\n disabled?: boolean;\n\n /**\n * Error message shown in place of the hint while the input is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n\n /**\n * Hide the hint and error messages\n *\n * @seeded from csc-ui — verify\n * @defaultable false\n */\n hideDetails?: boolean;\n\n /**\n * Hint text for the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n hint?: string;\n\n /**\n * Id of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n hostId?: string;\n\n /**\n * Label of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n label?: string;\n\n /**\n * Label on top of the input\n *\n * @seeded from csc-ui — verify\n * @defaultable false\n */\n labelOnTop?: boolean;\n\n /**\n * Input mask the typed text follows: `#` a digit, `A` a letter, `*` a letter or a digit, `\\` escapes the next character, `[…]` wraps a trailing optional section, anything else is a literal. Applies to a single-line `text`, `tel` or `search` field\n *\n * @freeform a mask pattern, e.g. `+358 ## ### ####`\n */\n mask?: string;\n\n /**\n * Maximum value on a numeric input\n *\n * @seeded from csc-ui — verify\n */\n max?: null | number;\n\n /**\n * Minimum value on a numeric input\n *\n * @seeded from csc-ui — verify\n */\n min?: null | number;\n\n /**\n * Name of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n name?: string;\n\n /**\n * Placeholder of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n placeholder?: string;\n\n /**\n * Mark as readonly\n *\n * @seeded from csc-ui — verify\n */\n readonly?: boolean;\n\n /**\n * Set the input as required\n *\n * @seeded from csc-ui — verify\n */\n required?: boolean;\n\n /**\n * Rows on the input\n *\n * @seeded from csc-ui — verify\n */\n rows?: number;\n\n /**\n * Shadow variant of the input\n *\n * @seeded from csc-ui — verify\n * @defaultable false\n */\n shadow?: boolean;\n\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box (single-line fields)\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n\n /**\n * Step size on a numeric input\n *\n * @seeded from csc-ui — verify\n */\n step?: null | number;\n\n /**\n * Trim whitespace from the return value\n *\n * @seeded from csc-ui — verify\n */\n trimWhitespace?: boolean;\n\n /**\n * Type of the input\n *\n * @seeded from csc-ui — verify\n */\n type?: CTextFieldType;\n\n /**\n * Set the validity of the input\n *\n * @seeded from csc-ui — verify\n */\n valid?: boolean;\n\n /**\n * Value of the input\n *\n * @seeded from csc-ui — verify\n * @freeform\n */\n value?: string;\n}",
527
618
  "description": "",
528
619
  "kind": "interface",
529
620
  "name": "CTextFieldProps",
@@ -537,14 +628,14 @@
537
628
  "owner": "c-text-field"
538
629
  },
539
630
  {
540
- "declaration": "export interface CTimePickerProps {\n /**\n * Make the value clearable\n */\n clearable?: boolean;\n /**\n * Disable the field\n */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * How times are shown and read from typing: a pattern of the tokens `H`,\n * `HH` (24-hour), `h`, `hh` (12-hour, with the period `a`) and `mm` with\n * any separators, e.g. `HH:mm` or `h:mm a`\n *\n * @defaultable 'HH.mm'\n * @freeform\n */\n format?: string;\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n /**\n * The latest time that can be picked or typed, as an ISO `HH:mm` time\n *\n * @freeform\n */\n max?: string;\n /**\n * The earliest time that can be picked or typed, as an ISO `HH:mm` time;\n * a `min` after `max` is invalid and both are ignored\n *\n * @freeform\n */\n min?: string;\n /**\n * Minutes between the minute column's rows; typed times need not fall on\n * the step\n */\n minuteStep?: number;\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n /**\n * Placeholder of the input; the `format` pattern when empty\n *\n * @freeform\n */\n placeholder?: string;\n /**\n * Pick a range: the value becomes `{ start, end }` and the field holds two\n * inputs\n */\n range?: boolean;\n /**\n * Set the field as required\n */\n required?: boolean;\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n /**\n * Show a Now button under the columns that commits the current time\n *\n * @defaultable false\n */\n showNow?: boolean;\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n /**\n * UI text overrides (i18n), merged over the AM/PM texts `Intl` gives for\n * the page's `lang` and the English defaults. Objects have no attribute\n * form — bind as a DOM property\n *\n * @defaultable {}\n */\n texts?: CTimePickerTexts;\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n /**\n * The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`\n * under `range`; `null` when empty\n */\n value?: CTimePickerValue;\n}",
631
+ "declaration": "export interface CTimePickerProps {\n /**\n * Make the value clearable\n */\n clearable?: boolean;\n\n /**\n * Disable the field\n */\n disabled?: boolean;\n\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n\n /**\n * How times are shown and read from typing: a pattern of the tokens `H`,\n * `HH` (24-hour), `h`, `hh` (12-hour, with the period `a`) and `mm` with\n * any separators, e.g. `HH:mm` or `h:mm a`\n *\n * @defaultable 'HH.mm'\n * @freeform\n */\n format?: string;\n\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n\n /**\n * The latest time that can be picked or typed, as an ISO `HH:mm` time\n *\n * @freeform\n */\n max?: string;\n\n /**\n * The earliest time that can be picked or typed, as an ISO `HH:mm` time;\n * a `min` after `max` is invalid and both are ignored\n *\n * @freeform\n */\n min?: string;\n\n /**\n * Minutes between the minute column's rows; typed times need not fall on\n * the step\n */\n minuteStep?: number;\n\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n\n /**\n * Placeholder of the input; the `format` pattern when empty\n *\n * @freeform\n */\n placeholder?: string;\n\n /**\n * Pick a range: the value becomes `{ start, end }` and the field holds two\n * inputs\n */\n range?: boolean;\n\n /**\n * Set the field as required\n */\n required?: boolean;\n\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n\n /**\n * Show a Now button under the columns that commits the current time\n *\n * @defaultable false\n */\n showNow?: boolean;\n\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n\n /**\n * UI text overrides (i18n), merged over the AM/PM texts `Intl` gives for\n * the page's `lang` and the English defaults. Objects have no attribute\n * form — bind as a DOM property\n *\n * @defaultable {}\n */\n texts?: CTimePickerTexts;\n\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n\n /**\n * The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`\n * under `range`; `null` when empty\n */\n value?: CTimePickerValue;\n}",
541
632
  "description": "",
542
633
  "kind": "interface",
543
634
  "name": "CTimePickerProps",
544
635
  "owner": "c-time-picker"
545
636
  },
546
637
  {
547
- "declaration": "export interface CTimePickerRange {\n /** The end of the range; earlier than the start for an overnight range. */\n end: null | string;\n /** The start of the range. */\n start: null | string;\n}",
638
+ "declaration": "export interface CTimePickerRange {\n /** The end of the range; earlier than the start for an overnight range. */\n end: null | string;\n\n /** The start of the range. */\n start: null | string;\n}",
548
639
  "description": "A time range: ISO `HH:mm` ends, either of which may be `null` while only one is typed; an end before the start spans midnight.",
549
640
  "kind": "interface",
550
641
  "name": "CTimePickerRange",
@@ -558,7 +649,7 @@
558
649
  "owner": "c-time-picker"
559
650
  },
560
651
  {
561
- "declaration": "export interface CTimePickerTexts {\n /** The period before noon in a 12-hour `format`. */\n am?: string;\n /** Accessible name of the dialog when the field has no label. */\n chooseTime?: string;\n /** Accessible label of the clear button. */\n clearSelection?: string;\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n /** Label of the Done button in the fullscreen panel (narrow viewports). */\n done?: string;\n /** Name of the end input and the end tab under `range`. */\n end?: string;\n /** Accessible name of the hour column. */\n hours?: string;\n /** Accessible name of the minute column. */\n minutes?: string;\n /** Label of the Now button (`show-now`). */\n now?: string;\n /** Accessible label of the clock button. */\n openClock?: string;\n /** Accessible name of the AM/PM column. */\n period?: string;\n /** The period from noon in a 12-hour `format`. */\n pm?: string;\n /** Name of the start input and the start tab under `range`. */\n start?: string;\n}",
652
+ "declaration": "export interface CTimePickerTexts {\n /** The period before noon in a 12-hour `format`. */\n am?: string;\n\n /** Accessible name of the dialog when the field has no label. */\n chooseTime?: string;\n\n /** Accessible label of the clear button. */\n clearSelection?: string;\n\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n\n /** Label of the Done button in the fullscreen panel (narrow viewports). */\n done?: string;\n\n /** Name of the end input and the end tab under `range`. */\n end?: string;\n\n /** Accessible name of the hour column. */\n hours?: string;\n\n /** Accessible name of the minute column. */\n minutes?: string;\n\n /** Label of the Now button (`show-now`). */\n now?: string;\n\n /** Accessible label of the clock button. */\n openClock?: string;\n\n /** Accessible name of the AM/PM column. */\n period?: string;\n\n /** The period from noon in a 12-hour `format`. */\n pm?: string;\n\n /** Name of the start input and the start tab under `range`. */\n start?: string;\n}",
562
653
  "description": "UI texts of `c-time-picker`, merged key by key over the AM/PM texts\n`Intl` gives for the page's `lang` and the English defaults.",
563
654
  "kind": "interface",
564
655
  "name": "CTimePickerTexts",
@@ -586,7 +677,7 @@
586
677
  "owner": "c-toasts"
587
678
  },
588
679
  {
589
- "declaration": "export interface CToastsProps {\n /**\n * Use absolute positioning\n *\n * @seeded from csc-ui — verify\n */\n absolute?: boolean;\n /**\n * Horizontal position\n *\n * @seeded from csc-ui — verify\n */\n horizontal?: CToastsHorizontal;\n /**\n * Vertical position\n *\n * @seeded from csc-ui — verify\n */\n vertical?: CToastsVertical;\n}",
680
+ "declaration": "export interface CToastsProps {\n /**\n * Use absolute positioning\n *\n * @seeded from csc-ui — verify\n */\n absolute?: boolean;\n\n /**\n * Horizontal position\n *\n * @seeded from csc-ui — verify\n */\n horizontal?: CToastsHorizontal;\n\n /**\n * Vertical position\n *\n * @seeded from csc-ui — verify\n */\n vertical?: CToastsVertical;\n}",
590
681
  "description": "",
591
682
  "kind": "interface",
592
683
  "name": "CToastsProps",
@@ -600,7 +691,7 @@
600
691
  "owner": "c-toasts"
601
692
  },
602
693
  {
603
- "declaration": "export interface CTooltipProps {\n /**\n * Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\n * shows the tooltip immediately, regardless of this value. Defaults to\n * `400`.\n */\n delay?: number | string;\n /** Distance from the trigger to the tooltip, in pixels. Defaults to `4`. */\n distance?: number | string;\n /** Whether the tooltip is open. Two-way: emits `change:open`. */\n open?: boolean;\n /** Preferred placement of the tooltip relative to the trigger. */\n position?: CPlacement;\n /**\n * The tooltip text. Overridden by the `content` slot when that is\n * populated.\n * @freeform\n */\n text?: string;\n /**\n * Designated trigger: an element elsewhere in the document that the\n * tooltip describes — its document ID, or the element itself. The same\n * trigger concept as the `trigger` slot, supplied by reference: the\n * tooltip wires hover/focus, mirrors `aria-description` onto it and\n * anchors the bubble to it. When both routes are supplied, this prop wins\n * over the slot.\n */\n trigger?: HTMLElement | string;\n}",
694
+ "declaration": "export interface CTooltipProps {\n /**\n * Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\n * shows the tooltip immediately, regardless of this value. Defaults to\n * `400`.\n */\n delay?: number | string;\n\n /** Distance from the trigger to the tooltip, in pixels. Defaults to `4`. */\n distance?: number | string;\n\n /** Whether the tooltip is open. Two-way: emits `change:open`. */\n open?: boolean;\n\n /** Preferred placement of the tooltip relative to the trigger. */\n position?: CPlacement;\n\n /**\n * The tooltip text. Overridden by the `content` slot when that is\n * populated.\n * @freeform\n */\n text?: string;\n\n /**\n * Designated trigger: an element elsewhere in the document that the\n * tooltip describes — its document ID, or the element itself. The same\n * trigger concept as the `trigger` slot, supplied by reference: the\n * tooltip wires hover/focus, mirrors `aria-description` onto it and\n * anchors the bubble to it. When both routes are supplied, this prop wins\n * over the slot.\n */\n trigger?: HTMLElement | string;\n}",
604
695
  "description": "",
605
696
  "kind": "interface",
606
697
  "name": "CTooltipProps",
@@ -614,28 +705,28 @@
614
705
  "owner": "c-tree-select"
615
706
  },
616
707
  {
617
- "declaration": "export interface CTreeSelectItem {\n /** Child items; present and non-empty for a branch. */\n children?: CTreeSelectItem[];\n /**\n * Short code shown before the name and matched by the search (a\n * classification number, say).\n */\n code?: string;\n /**\n * Disable the item: a disabled branch cannot be entered, a disabled leaf\n * cannot be committed.\n */\n disabled?: boolean;\n /** The item's label. */\n name: string;\n /** The item's value, unique across the tree. */\n value: number | string;\n}",
708
+ "declaration": "export interface CTreeSelectItem {\n /** Child items; present and non-empty for a branch. */\n children?: CTreeSelectItem[];\n\n /**\n * Short code shown before the name and matched by the search (a\n * classification number, say).\n */\n code?: string;\n\n /**\n * Disable the item: a disabled branch cannot be entered, a disabled leaf\n * cannot be committed.\n */\n disabled?: boolean;\n\n /** The item's label. */\n name: string;\n\n /** The item's value, unique across the tree. */\n value: number | string;\n}",
618
709
  "description": "One item of a `c-tree-select` tree. An item with a non-empty `children`\narray is a branch; any other item is a leaf. Values must be unique across\nthe whole tree.",
619
710
  "kind": "interface",
620
711
  "name": "CTreeSelectItem",
621
712
  "owner": "c-tree-select"
622
713
  },
623
714
  {
624
- "declaration": "export interface CTreeSelectProps {\n /**\n * Let a branch be committed as the value: a pinned select-branch row heads\n * every level below the root, and matching branches are listed as search\n * results\n */\n allowBranch?: boolean;\n /**\n * Make the selected value clearable\n */\n clearable?: boolean;\n /**\n * Disable the field\n */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * Custom search predicate; receives the item, the query and the item's\n * ancestors. Functions have no attribute form — bind as a DOM property\n */\n filter?: CTreeSelectFilter;\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n /**\n * The tree to pick from. Arrays have no attribute form — bind as a DOM\n * property (`:items.prop` in Vue)\n */\n items?: CTreeSelectItem[];\n /**\n * Items per page before the list scrolls\n *\n * @defaultable 6\n */\n itemsPerPage?: number;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n /**\n * Names of the levels, top level first, shown in the panel header; a\n * missing entry falls back to `texts.level(n)`. Arrays have no attribute\n * form — bind as a DOM property\n */\n levelLabels?: string[];\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n /**\n * Placeholder for the search input inside the panel\n *\n * @freeform\n */\n placeholder?: string;\n /**\n * Set the field as required\n */\n required?: boolean;\n /**\n * Emit the committed item with its path as a `CTreeSelectSelection` instead\n * of its value\n */\n returnObject?: boolean;\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n /**\n * UI text overrides (i18n), merged over the English defaults. Objects have\n * no attribute form — bind as a DOM property (`:texts.prop` in Vue)\n *\n * @defaultable {}\n */\n texts?: CTreeSelectTexts;\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n /**\n * Selected value: the committed item's value, or the `CTreeSelectSelection`\n * with `return-object`; `null` when nothing is selected\n */\n value?: CTreeSelectValue;\n}",
715
+ "declaration": "export interface CTreeSelectProps {\n /**\n * Let a branch be committed as the value: a pinned select-branch row heads\n * every level below the root, and matching branches are listed as search\n * results\n */\n allowBranch?: boolean;\n\n /**\n * Make the selected value clearable\n */\n clearable?: boolean;\n\n /**\n * Disable the field\n */\n disabled?: boolean;\n\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n\n /**\n * Custom search predicate; receives the item, the query and the item's\n * ancestors. Functions have no attribute form — bind as a DOM property\n */\n filter?: CTreeSelectFilter;\n\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n\n /**\n * The tree to pick from. Arrays have no attribute form — bind as a DOM\n * property (`:items.prop` in Vue)\n */\n items?: CTreeSelectItem[];\n\n /**\n * Items per page before the list scrolls\n *\n * @defaultable 6\n */\n itemsPerPage?: number;\n\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n\n /**\n * Names of the levels, top level first, shown in the panel header; a\n * missing entry falls back to `texts.level(n)`. Arrays have no attribute\n * form — bind as a DOM property\n */\n levelLabels?: string[];\n\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n\n /**\n * Placeholder for the search input inside the panel\n *\n * @freeform\n */\n placeholder?: string;\n\n /**\n * Set the field as required\n */\n required?: boolean;\n\n /**\n * Emit the committed item with its path as a `CTreeSelectSelection` instead\n * of its value\n */\n returnObject?: boolean;\n\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n\n /**\n * UI text overrides (i18n), merged over the English defaults. Objects have\n * no attribute form — bind as a DOM property (`:texts.prop` in Vue)\n *\n * @defaultable {}\n */\n texts?: CTreeSelectTexts;\n\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n\n /**\n * Selected value: the committed item's value, or the `CTreeSelectSelection`\n * with `return-object`; `null` when nothing is selected\n */\n value?: CTreeSelectValue;\n}",
625
716
  "description": "",
626
717
  "kind": "interface",
627
718
  "name": "CTreeSelectProps",
628
719
  "owner": "c-tree-select"
629
720
  },
630
721
  {
631
- "declaration": "export interface CTreeSelectSelection {\n /** The committed item's code, when it has one. */\n code?: string;\n /** The committed item's label. */\n name: string;\n /** The committed item's ancestors, root-first. */\n path: Array<{ code?: string; name: string; value: number | string }>;\n /** The committed item's value. */\n value: number | string;\n}",
722
+ "declaration": "export interface CTreeSelectSelection {\n /** The committed item's code, when it has one. */\n code?: string;\n\n /** The committed item's label. */\n name: string;\n\n /** The committed item's ancestors, root-first. */\n path: Array<{ code?: string; name: string; value: number | string }>;\n\n /** The committed item's value. */\n value: number | string;\n}",
632
723
  "description": "The committed item as emitted with `return-object`: a fresh object — never\nthe `items` entry itself — with its ancestors root-first and without\n`children`.",
633
724
  "kind": "interface",
634
725
  "name": "CTreeSelectSelection",
635
726
  "owner": "c-tree-select"
636
727
  },
637
728
  {
638
- "declaration": "export interface CTreeSelectTexts {\n /** Accessible label of the breadcrumb navigation in the panel. */\n breadcrumb?: string;\n /**\n * Label of the \"Browse instead\" control shown in the header while a query\n * is typed.\n */\n browse?: string;\n /** Meta text on a branch row; receives its number of children. */\n children?: (count: number) => string;\n /**\n * Header text in browse mode; receives the label of the level being\n * listed.\n */\n choose?: (levelLabel: string) => string;\n /** Accessible label of the clear button. */\n clearSelection?: string;\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n /** Accessible label of the search input inside the panel. */\n filterOptions?: string;\n /**\n * Header text of a level whose rows are all leaves in an unevenly deep\n * tree (an evenly deep tree shows the step counter instead).\n */\n final?: string;\n /**\n * Default label of level `n` (1 = the top level) when `level-labels` gives\n * none.\n */\n level?: (n: number) => string;\n /** Header text in search mode; receives the number of matches. */\n matches?: (count: number) => string;\n /** Text of the row shown when nothing is listed. */\n noResults?: string;\n /** Label of the root crumb. */\n root?: string;\n /** Placeholder of the search input when the `placeholder` prop is empty. */\n searchPlaceholder?: string;\n /**\n * Label of the pinned select-branch row; receives the current branch's\n * name.\n */\n select?: (name: string) => string;\n /**\n * Header step counter shown while the tree is evenly deep (every leaf at\n * one level); receives the step and the total number of levels.\n */\n step?: (n: number, total: number) => string;\n /** Accessible label of the chevron button that opens and closes the panel. */\n toggleOptions?: string;\n}",
729
+ "declaration": "export interface CTreeSelectTexts {\n /** Accessible label of the breadcrumb navigation in the panel. */\n breadcrumb?: string;\n\n /**\n * Label of the \"Browse instead\" control shown in the header while a query\n * is typed.\n */\n browse?: string;\n\n /** Meta text on a branch row; receives its number of children. */\n children?: (count: number) => string;\n\n /**\n * Header text in browse mode; receives the label of the level being\n * listed.\n */\n choose?: (levelLabel: string) => string;\n\n /** Accessible label of the clear button. */\n clearSelection?: string;\n\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n\n /** Accessible label of the search input inside the panel. */\n filterOptions?: string;\n\n /**\n * Header text of a level whose rows are all leaves in an unevenly deep\n * tree (an evenly deep tree shows the step counter instead).\n */\n final?: string;\n\n /**\n * Default label of level `n` (1 = the top level) when `level-labels` gives\n * none.\n */\n level?: (n: number) => string;\n\n /** Header text in search mode; receives the number of matches. */\n matches?: (count: number) => string;\n\n /** Text of the row shown when nothing is listed. */\n noResults?: string;\n\n /** Label of the root crumb. */\n root?: string;\n\n /** Placeholder of the search input when the `placeholder` prop is empty. */\n searchPlaceholder?: string;\n\n /**\n * Label of the pinned select-branch row; receives the current branch's\n * name.\n */\n select?: (name: string) => string;\n\n /**\n * Header step counter shown while the tree is evenly deep (every leaf at\n * one level); receives the step and the total number of levels.\n */\n step?: (n: number, total: number) => string;\n\n /** Accessible label of the chevron button that opens and closes the panel. */\n toggleOptions?: string;\n}",
639
730
  "description": "UI texts of `c-tree-select`, shallow-merged over the English defaults.\nStatic labels are strings; interpolated ones are functions.",
640
731
  "kind": "interface",
641
732
  "name": "CTreeSelectTexts",
@@ -2266,12 +2357,7 @@
2266
2357
  "description": "Wrapper of the `description` slot."
2267
2358
  }
2268
2359
  ],
2269
- "cssProperties": [
2270
- {
2271
- "name": "--c-font-family",
2272
- "description": "Font stack applied to the label (native buttons do not inherit it)."
2273
- }
2274
- ],
2360
+ "cssProperties": [],
2275
2361
  "cssStates": [],
2276
2362
  "events": [],
2277
2363
  "members": [
@@ -3437,94 +3523,47 @@
3437
3523
  {
3438
3524
  "customElement": true,
3439
3525
  "kind": "class",
3440
- "name": "CCscLogo",
3441
- "tagName": "c-csc-logo",
3526
+ "name": "CColorPicker",
3527
+ "tagName": "c-color-picker",
3528
+ "description": "A colour field that takes any typed CSS colour, or opens a panel for picking one: a colour area, hue and alpha sliders, per-channel inputs and swatches — or swatches alone under `swatches-only`.",
3529
+ "csc": {
3530
+ "usage": "docs/c-color-picker/usage.md"
3531
+ },
3442
3532
  "attributes": [
3443
3533
  {
3444
- "fieldName": "width",
3445
- "name": "width",
3446
- "description": "Logo width in pixels",
3447
- "type": {
3448
- "text": "number"
3449
- },
3450
- "default": "60"
3451
- }
3452
- ],
3453
- "cssParts": [
3454
- {
3455
- "name": "root",
3456
- "description": "The `<svg>` element rendering the CSC logo"
3457
- }
3458
- ],
3459
- "cssProperties": [],
3460
- "cssStates": [],
3461
- "events": [],
3462
- "members": [
3463
- {
3464
- "kind": "field",
3465
- "name": "width",
3466
- "privacy": "public",
3467
- "description": "Logo width in pixels",
3534
+ "fieldName": "alpha",
3535
+ "name": "alpha",
3536
+ "description": "Let the colour carry transparency: an alpha slider and an A channel join\nthe panel. Without it typed alpha is dropped",
3468
3537
  "type": {
3469
- "text": "number"
3538
+ "text": "boolean"
3470
3539
  },
3471
- "default": "60"
3472
- }
3473
- ],
3474
- "slots": []
3475
- }
3476
- ],
3477
- "exports": [
3478
- {
3479
- "declaration": {
3480
- "module": "src/components/c-csc-logo/CCscLogo.vue",
3481
- "name": "CCscLogo"
3482
- },
3483
- "kind": "js",
3484
- "name": "CCscLogo"
3485
- },
3486
- {
3487
- "declaration": {
3488
- "module": "src/components/c-csc-logo/CCscLogo.vue",
3489
- "name": "CCscLogo"
3490
- },
3491
- "kind": "custom-element-definition",
3492
- "name": "c-csc-logo"
3493
- }
3494
- ],
3495
- "kind": "javascript-module",
3496
- "path": "src/components/c-csc-logo/CCscLogo.vue"
3497
- },
3498
- {
3499
- "declarations": [
3500
- {
3501
- "customElement": true,
3502
- "kind": "class",
3503
- "name": "CDataTable",
3504
- "tagName": "c-data-table",
3505
- "attributes": [
3540
+ "default": "false",
3541
+ "csc": {
3542
+ "defaultable": true
3543
+ }
3544
+ },
3506
3545
  {
3507
- "fieldName": "autohide",
3508
- "name": "autohide",
3509
- "description": "Move overflowing `expansion: 'auto'` columns into the expansion row\n(rightmost first) instead of scrolling horizontally.",
3546
+ "fieldName": "clearable",
3547
+ "name": "clearable",
3548
+ "description": "Make the value clearable",
3510
3549
  "type": {
3511
3550
  "text": "boolean"
3512
3551
  },
3513
3552
  "default": "false"
3514
3553
  },
3515
3554
  {
3516
- "fieldName": "external",
3517
- "name": "external",
3518
- "description": "The server owns sorting, pagination and filtering: the table renders\n`data` verbatim and only emits the state-change events. Requires\n`itemCount` for the pager; disables the select-all banner and `filter`.",
3555
+ "fieldName": "disabled",
3556
+ "name": "disabled",
3557
+ "description": "Disable the field",
3519
3558
  "type": {
3520
3559
  "text": "boolean"
3521
3560
  },
3522
3561
  "default": "false"
3523
3562
  },
3524
3563
  {
3525
- "fieldName": "filter",
3526
- "name": "filter",
3527
- "description": "Filter rows client-side against this string (all columns). Ignored when\n`external` is set.",
3564
+ "fieldName": "errorMessage",
3565
+ "name": "error-message",
3566
+ "description": "Error message shown in place of the hint while the field is invalid",
3528
3567
  "type": {
3529
3568
  "text": "string"
3530
3569
  },
@@ -3534,246 +3573,374 @@
3534
3573
  }
3535
3574
  },
3536
3575
  {
3537
- "fieldName": "itemCount",
3538
- "name": "item-count",
3539
- "description": "Total number of rows in the dataset. Only used (and needed) with `external`.",
3576
+ "fieldName": "format",
3577
+ "name": "format",
3578
+ "description": "The notation the value is written in — and every emission with it:\n`#rrggbb`, `rgb(r g b)` or `oklch(l c h)`",
3540
3579
  "type": {
3541
- "text": "number"
3580
+ "text": "'hex' | 'oklch' | 'rgb'"
3581
+ },
3582
+ "default": "'hex'",
3583
+ "csc": {
3584
+ "typeAlias": "CColorPickerFormat",
3585
+ "defaultable": true
3542
3586
  }
3543
3587
  },
3544
3588
  {
3545
- "fieldName": "loading",
3546
- "name": "loading",
3547
- "description": "Show the loading indicator.",
3589
+ "fieldName": "hideDetails",
3590
+ "name": "hide-details",
3591
+ "description": "Hide the hint and error messages",
3548
3592
  "type": {
3549
3593
  "text": "boolean"
3550
3594
  },
3551
- "default": "false"
3595
+ "default": "false",
3596
+ "csc": {
3597
+ "defaultable": true
3598
+ }
3552
3599
  },
3553
3600
  {
3554
- "fieldName": "page",
3555
- "name": "page",
3556
- "description": "Current page, 1-based (optionally controlled).",
3601
+ "fieldName": "hint",
3602
+ "name": "hint",
3603
+ "description": "Hint text for the field",
3557
3604
  "type": {
3558
- "text": "number"
3605
+ "text": "string"
3606
+ },
3607
+ "default": "''",
3608
+ "csc": {
3609
+ "freeform": true
3559
3610
  }
3560
3611
  },
3561
3612
  {
3562
- "fieldName": "pageSize",
3563
- "name": "page-size",
3564
- "description": "Rows per page. Pagination is active only when set — without it every row\nrenders and no pager is shown.",
3613
+ "fieldName": "hostId",
3614
+ "name": "host-id",
3615
+ "description": "Id of the element",
3565
3616
  "type": {
3566
- "text": "number"
3617
+ "text": "string"
3618
+ },
3619
+ "default": "''",
3620
+ "csc": {
3621
+ "freeform": true
3567
3622
  }
3568
3623
  },
3569
3624
  {
3570
- "fieldName": "selection",
3571
- "name": "selection",
3572
- "description": "Row selection mode. Unset means rows are not selectable.",
3625
+ "fieldName": "label",
3626
+ "name": "label",
3627
+ "description": "Element label",
3573
3628
  "type": {
3574
- "text": "'multiple' | 'single'"
3629
+ "text": "string"
3575
3630
  },
3631
+ "default": "''",
3576
3632
  "csc": {
3577
- "typeAlias": "CDataTableSelectionMode"
3633
+ "freeform": true
3578
3634
  }
3579
3635
  },
3580
3636
  {
3581
- "fieldName": "singleExpansion",
3582
- "name": "single-expansion",
3583
- "description": "Allow only one row to be expanded at a time.",
3637
+ "fieldName": "labelOnTop",
3638
+ "name": "label-on-top",
3639
+ "description": "Label on top of the field",
3584
3640
  "type": {
3585
3641
  "text": "boolean"
3586
3642
  },
3587
- "default": "false"
3643
+ "default": "false",
3644
+ "csc": {
3645
+ "defaultable": true
3646
+ }
3588
3647
  },
3589
3648
  {
3590
- "fieldName": "sort",
3591
- "name": "sort",
3592
- "description": "The sorting state (optionally controlled). `null` renders unsorted.",
3649
+ "fieldName": "name",
3650
+ "name": "name",
3651
+ "description": "Input field name",
3593
3652
  "type": {
3594
- "text": "CDataTableSort | null"
3653
+ "text": "string"
3654
+ },
3655
+ "default": "''",
3656
+ "csc": {
3657
+ "freeform": true
3595
3658
  }
3596
3659
  },
3597
3660
  {
3598
- "fieldName": "stickyFooter",
3599
- "name": "sticky-footer",
3600
- "description": "Keep the footer row visible while the table scrolls vertically.",
3661
+ "fieldName": "placeholder",
3662
+ "name": "placeholder",
3663
+ "description": "Placeholder of the input; an example of the notation when empty",
3601
3664
  "type": {
3602
- "text": "boolean"
3665
+ "text": "string"
3603
3666
  },
3604
- "default": "false"
3667
+ "default": "''",
3668
+ "csc": {
3669
+ "freeform": true
3670
+ }
3605
3671
  },
3606
3672
  {
3607
- "fieldName": "stickyHeader",
3608
- "name": "sticky-header",
3609
- "description": "Keep the header row visible while the table scrolls vertically.",
3673
+ "fieldName": "required",
3674
+ "name": "required",
3675
+ "description": "Set the field as required",
3610
3676
  "type": {
3611
3677
  "text": "boolean"
3612
3678
  },
3613
3679
  "default": "false"
3614
- }
3615
- ],
3616
- "cssParts": [
3617
- {
3618
- "name": "root",
3619
- "description": "The outer wrapper around the table and pagination"
3620
- },
3621
- {
3622
- "name": "banner",
3623
- "description": "The two-step select-all banner"
3624
3680
  },
3625
3681
  {
3626
- "name": "viewport",
3627
- "description": "The scroll container around the table"
3628
- },
3629
- {
3630
- "name": "table",
3631
- "description": "The `<table>` element"
3682
+ "fieldName": "shadow",
3683
+ "name": "shadow",
3684
+ "description": "Shadow variant",
3685
+ "type": {
3686
+ "text": "boolean"
3687
+ },
3688
+ "default": "false",
3689
+ "csc": {
3690
+ "defaultable": true
3691
+ }
3632
3692
  },
3633
3693
  {
3634
- "name": "caption",
3635
- "description": "The `<caption>` element"
3694
+ "fieldName": "size",
3695
+ "name": "size",
3696
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
3697
+ "type": {
3698
+ "text": "'default' | 'small'"
3699
+ },
3700
+ "default": "'default'",
3701
+ "csc": {
3702
+ "typeAlias": "CFieldSize",
3703
+ "defaultable": true
3704
+ }
3636
3705
  },
3637
3706
  {
3638
- "name": "header",
3639
- "description": "The `<thead>` element"
3707
+ "fieldName": "swatchesOnly",
3708
+ "name": "swatches-only",
3709
+ "description": "Limit the choice to the swatches: the field becomes readonly and opens\na panel of the swatches alone",
3710
+ "type": {
3711
+ "text": "boolean"
3712
+ },
3713
+ "default": "false"
3640
3714
  },
3641
3715
  {
3642
- "name": "header-cell",
3643
- "description": "A data column's `<th>`"
3716
+ "fieldName": "valid",
3717
+ "name": "valid",
3718
+ "description": "Set the validity of the field",
3719
+ "type": {
3720
+ "text": "boolean"
3721
+ },
3722
+ "default": "true"
3644
3723
  },
3645
3724
  {
3646
- "name": "body",
3647
- "description": "The `<tbody>` element"
3725
+ "fieldName": "value",
3726
+ "name": "value",
3727
+ "description": "The colour in the `format` notation, or `null` when empty. Any CSS\ncolour is accepted and shown in the notation",
3728
+ "type": {
3729
+ "text": "CColorPickerValue"
3730
+ },
3731
+ "default": "null"
3732
+ }
3733
+ ],
3734
+ "cssParts": [
3735
+ {
3736
+ "name": "input",
3737
+ "description": "The text input; under `swatches-only` the readonly field"
3648
3738
  },
3649
3739
  {
3650
- "name": "row",
3651
- "description": "A data `<tr>`"
3740
+ "name": "separator",
3741
+ "description": "Unused: the shared typed field's range separator"
3652
3742
  },
3653
3743
  {
3654
- "name": "cell",
3655
- "description": "A data column's `<td>`"
3744
+ "name": "color-chip",
3745
+ "description": "The colour painted in the colour button, or before the swatch-only field's text"
3656
3746
  },
3657
3747
  {
3658
- "name": "expansion-row",
3659
- "description": "The expansion `<tr>` revealed beneath a data row"
3748
+ "name": "panel",
3749
+ "description": "The top-layer popover container anchored below the field"
3660
3750
  },
3661
3751
  {
3662
- "name": "footer",
3663
- "description": "The `<tfoot>` element (footer columns)"
3752
+ "name": "card",
3753
+ "description": "The dialog surface inside the panel"
3664
3754
  },
3665
3755
  {
3666
- "name": "empty",
3667
- "description": "The empty-state cell content"
3756
+ "name": "heading-row",
3757
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
3668
3758
  },
3669
3759
  {
3670
- "name": "pagination",
3671
- "description": "The pagination bar below the table"
3760
+ "name": "heading",
3761
+ "description": "The field label naming the fullscreen panel"
3762
+ },
3763
+ {
3764
+ "name": "close",
3765
+ "description": "The close button of the fullscreen panel"
3766
+ },
3767
+ {
3768
+ "name": "area",
3769
+ "description": "The saturation × brightness square at the current hue"
3770
+ },
3771
+ {
3772
+ "name": "area-thumb",
3773
+ "description": "The marker of the colour in the area"
3774
+ },
3775
+ {
3776
+ "name": "hue-slider",
3777
+ "description": "The hue slider"
3778
+ },
3779
+ {
3780
+ "name": "alpha-slider",
3781
+ "description": "The alpha slider (`alpha`)"
3782
+ },
3783
+ {
3784
+ "name": "comparison",
3785
+ "description": "The strip of the original colour beside the new one, when the panel opened on a colour"
3786
+ },
3787
+ {
3788
+ "name": "original-color",
3789
+ "description": "The colour the panel opened on; a click restores it"
3790
+ },
3791
+ {
3792
+ "name": "new-color",
3793
+ "description": "The colour the panel holds now"
3794
+ },
3795
+ {
3796
+ "name": "notation-switch",
3797
+ "description": "The HEX | RGB | OKLCH row choosing the channel editor"
3798
+ },
3799
+ {
3800
+ "name": "notation",
3801
+ "description": "One button of the notation switch"
3802
+ },
3803
+ {
3804
+ "name": "channels",
3805
+ "description": "The channel editor: the inputs of one notation"
3806
+ },
3807
+ {
3808
+ "name": "channel",
3809
+ "description": "One channel input"
3810
+ },
3811
+ {
3812
+ "name": "swatches",
3813
+ "description": "The list of swatches"
3814
+ },
3815
+ {
3816
+ "name": "swatch",
3817
+ "description": "One swatch"
3818
+ },
3819
+ {
3820
+ "name": "actions",
3821
+ "description": "The row under the panel body in the fullscreen panel (narrow viewports)"
3822
+ },
3823
+ {
3824
+ "name": "done",
3825
+ "description": "The Done button of the fullscreen panel (narrow viewports): commits what the panel holds and closes"
3672
3826
  }
3673
3827
  ],
3674
3828
  "cssProperties": [],
3675
- "cssStates": [],
3676
- "events": [
3829
+ "cssStates": [
3677
3830
  {
3678
- "name": "change:expanded",
3679
- "type": {
3680
- "text": "CustomEvent<string[]>"
3681
- },
3682
- "description": "Fired when the expanded rows change, carrying the expanded row ids."
3683
- },
3831
+ "name": "bad-input",
3832
+ "description": "Present while committed text names no colour"
3833
+ }
3834
+ ],
3835
+ "events": [
3684
3836
  {
3685
- "name": "change:page",
3837
+ "name": "change",
3686
3838
  "type": {
3687
- "text": "CustomEvent<number>"
3839
+ "text": "CustomEvent<CColorPickerValue>"
3688
3840
  },
3689
- "description": "Fired when the user changes the page, carrying the new 1-based page."
3841
+ "description": "Fired when the value changes — a pick in the panel, typed text\ncommitted, the field cleared — carrying the colour in the `format`\nnotation, or `null`. A drag on the area or a slider fires it once, on\nrelease."
3690
3842
  },
3691
3843
  {
3692
- "name": "change:page-size",
3844
+ "name": "change:text",
3693
3845
  "type": {
3694
- "text": "CustomEvent<number>"
3846
+ "text": "CustomEvent<string>"
3695
3847
  },
3696
- "description": "Fired when the user picks a new page size. Also resets the page to 1\n(a separate `change:page` event fires alongside)."
3848
+ "description": "Fired on every commit of typed text (Enter or leaving the input) with the\ntext as typed. Read `badInput` to tell whether it named a colour."
3697
3849
  },
3698
3850
  {
3699
- "name": "change:selected",
3851
+ "name": "input",
3700
3852
  "type": {
3701
- "text": "CustomEvent<{ ids: string[]; rows: CDataTableRow[] }>"
3853
+ "text": "CustomEvent<void>"
3702
3854
  },
3703
- "description": "Fired when the selection changes, carrying the selected row ids and the\nrow objects resolvable from the current `data`."
3855
+ "description": "Native bubbling input event dispatched alongside every value change —\neach move of a drag included — so a plain `v-model` stays in sync.\nCarries no detail."
3704
3856
  },
3705
3857
  {
3706
- "name": "change:sort",
3858
+ "name": "update:value",
3707
3859
  "type": {
3708
- "text": "CustomEvent<CDataTableSort | null>"
3860
+ "text": "CustomEvent<CColorPickerValue>"
3709
3861
  },
3710
- "description": "Fired when the user sorts a column, carrying the new sorting state."
3862
+ "description": "Fired with every value change, each move of a drag included — the\n`v-model` contract."
3711
3863
  }
3712
3864
  ],
3713
3865
  "members": [
3714
3866
  {
3715
3867
  "kind": "field",
3716
- "name": "autohide",
3868
+ "name": "alpha",
3717
3869
  "privacy": "public",
3718
- "description": "Move overflowing `expansion: 'auto'` columns into the expansion row\n(rightmost first) instead of scrolling horizontally.",
3870
+ "description": "Let the colour carry transparency: an alpha slider and an A channel join\nthe panel. Without it typed alpha is dropped",
3719
3871
  "type": {
3720
3872
  "text": "boolean"
3721
3873
  },
3722
- "default": "false"
3874
+ "default": "false",
3875
+ "csc": {
3876
+ "defaultable": true
3877
+ }
3723
3878
  },
3724
3879
  {
3725
3880
  "kind": "field",
3726
- "name": "columns",
3881
+ "name": "clearable",
3727
3882
  "privacy": "public",
3728
- "description": "Column definitions. Pass as a DOM property (contains functions).",
3883
+ "description": "Make the value clearable",
3729
3884
  "type": {
3730
- "text": "CDataTableColumn[]"
3885
+ "text": "boolean"
3731
3886
  },
3732
- "default": "() => []"
3887
+ "default": "false"
3733
3888
  },
3734
3889
  {
3735
3890
  "kind": "field",
3736
- "name": "data",
3891
+ "name": "disabled",
3737
3892
  "privacy": "public",
3738
- "description": "Rows — plain domain objects. Pass as a DOM property.",
3893
+ "description": "Disable the field",
3739
3894
  "type": {
3740
- "text": "CDataTableRow[]"
3895
+ "text": "boolean"
3741
3896
  },
3742
- "default": "() => []"
3897
+ "default": "false"
3743
3898
  },
3744
3899
  {
3745
3900
  "kind": "field",
3746
- "name": "expanded",
3901
+ "name": "errorMessage",
3747
3902
  "privacy": "public",
3748
- "description": "Ids of the expanded rows (optionally controlled).",
3903
+ "description": "Error message shown in place of the hint while the field is invalid",
3749
3904
  "type": {
3750
- "text": "string[]"
3905
+ "text": "string"
3906
+ },
3907
+ "default": "''",
3908
+ "csc": {
3909
+ "freeform": true
3751
3910
  }
3752
3911
  },
3753
3912
  {
3754
3913
  "kind": "field",
3755
- "name": "expandedContent",
3914
+ "name": "format",
3756
3915
  "privacy": "public",
3757
- "description": "Custom expansion-row content, appended after the auto-rendered cells of\ncolumns currently in the expansion row.",
3916
+ "description": "The notation the value is written in — and every emission with it:\n`#rrggbb`, `rgb(r g b)` or `oklch(l c h)`",
3758
3917
  "type": {
3759
- "text": "( context: CDataTableExpandedContext, ) => CDataTableCellContent"
3918
+ "text": "'hex' | 'oklch' | 'rgb'"
3919
+ },
3920
+ "default": "'hex'",
3921
+ "csc": {
3922
+ "typeAlias": "CColorPickerFormat",
3923
+ "defaultable": true
3760
3924
  }
3761
3925
  },
3762
3926
  {
3763
3927
  "kind": "field",
3764
- "name": "external",
3928
+ "name": "hideDetails",
3765
3929
  "privacy": "public",
3766
- "description": "The server owns sorting, pagination and filtering: the table renders\n`data` verbatim and only emits the state-change events. Requires\n`itemCount` for the pager; disables the select-all banner and `filter`.",
3930
+ "description": "Hide the hint and error messages",
3767
3931
  "type": {
3768
3932
  "text": "boolean"
3769
3933
  },
3770
- "default": "false"
3934
+ "default": "false",
3935
+ "csc": {
3936
+ "defaultable": true
3937
+ }
3771
3938
  },
3772
3939
  {
3773
3940
  "kind": "field",
3774
- "name": "filter",
3941
+ "name": "hint",
3775
3942
  "privacy": "public",
3776
- "description": "Filter rows client-side against this string (all columns). Ignored when\n`external` is set.",
3943
+ "description": "Hint text for the field",
3777
3944
  "type": {
3778
3945
  "text": "string"
3779
3946
  },
@@ -3784,86 +3951,121 @@
3784
3951
  },
3785
3952
  {
3786
3953
  "kind": "field",
3787
- "name": "getRowId",
3954
+ "name": "hostId",
3788
3955
  "privacy": "public",
3789
- "description": "Return a stable id for a row. Falls back to the row's index — supply\nthis whenever selection/expansion is used with `external` data.",
3956
+ "description": "Id of the element",
3790
3957
  "type": {
3791
- "text": "(row: CDataTableRow) => string"
3958
+ "text": "string"
3959
+ },
3960
+ "default": "''",
3961
+ "csc": {
3962
+ "freeform": true
3792
3963
  }
3793
3964
  },
3794
3965
  {
3795
3966
  "kind": "field",
3796
- "name": "itemCount",
3967
+ "name": "label",
3797
3968
  "privacy": "public",
3798
- "description": "Total number of rows in the dataset. Only used (and needed) with `external`.",
3969
+ "description": "Element label",
3799
3970
  "type": {
3800
- "text": "number"
3971
+ "text": "string"
3972
+ },
3973
+ "default": "''",
3974
+ "csc": {
3975
+ "freeform": true
3801
3976
  }
3802
3977
  },
3803
3978
  {
3804
3979
  "kind": "field",
3805
- "name": "loading",
3980
+ "name": "labelOnTop",
3806
3981
  "privacy": "public",
3807
- "description": "Show the loading indicator.",
3982
+ "description": "Label on top of the field",
3808
3983
  "type": {
3809
3984
  "text": "boolean"
3810
3985
  },
3811
- "default": "false"
3986
+ "default": "false",
3987
+ "csc": {
3988
+ "defaultable": true
3989
+ }
3812
3990
  },
3813
3991
  {
3814
3992
  "kind": "field",
3815
- "name": "page",
3993
+ "name": "name",
3816
3994
  "privacy": "public",
3817
- "description": "Current page, 1-based (optionally controlled).",
3995
+ "description": "Input field name",
3818
3996
  "type": {
3819
- "text": "number"
3997
+ "text": "string"
3998
+ },
3999
+ "default": "''",
4000
+ "csc": {
4001
+ "freeform": true
3820
4002
  }
3821
4003
  },
3822
4004
  {
3823
4005
  "kind": "field",
3824
- "name": "pageSize",
4006
+ "name": "placeholder",
3825
4007
  "privacy": "public",
3826
- "description": "Rows per page. Pagination is active only when set — without it every row\nrenders and no pager is shown.",
4008
+ "description": "Placeholder of the input; an example of the notation when empty",
3827
4009
  "type": {
3828
- "text": "number"
4010
+ "text": "string"
4011
+ },
4012
+ "default": "''",
4013
+ "csc": {
4014
+ "freeform": true
3829
4015
  }
3830
4016
  },
3831
4017
  {
3832
4018
  "kind": "field",
3833
- "name": "pageSizes",
4019
+ "name": "required",
3834
4020
  "privacy": "public",
3835
- "description": "Options for the pager's page-size menu.",
4021
+ "description": "Set the field as required",
3836
4022
  "type": {
3837
- "text": "number[]"
4023
+ "text": "boolean"
3838
4024
  },
3839
- "default": "() => [5, 25, 50, 100]"
4025
+ "default": "false"
3840
4026
  },
3841
4027
  {
3842
4028
  "kind": "field",
3843
- "name": "selected",
4029
+ "name": "shadow",
3844
4030
  "privacy": "public",
3845
- "description": "Ids of the selected rows (optionally controlled).",
4031
+ "description": "Shadow variant",
3846
4032
  "type": {
3847
- "text": "string[]"
4033
+ "text": "boolean"
4034
+ },
4035
+ "default": "false",
4036
+ "csc": {
4037
+ "defaultable": true
3848
4038
  }
3849
4039
  },
3850
4040
  {
3851
4041
  "kind": "field",
3852
- "name": "selection",
4042
+ "name": "size",
3853
4043
  "privacy": "public",
3854
- "description": "Row selection mode. Unset means rows are not selectable.",
4044
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
3855
4045
  "type": {
3856
- "text": "'multiple' | 'single'"
4046
+ "text": "'default' | 'small'"
3857
4047
  },
4048
+ "default": "'default'",
3858
4049
  "csc": {
3859
- "typeAlias": "CDataTableSelectionMode"
3860
- }
4050
+ "typeAlias": "CFieldSize",
4051
+ "defaultable": true
4052
+ }
3861
4053
  },
3862
4054
  {
3863
4055
  "kind": "field",
3864
- "name": "singleExpansion",
4056
+ "name": "swatches",
3865
4057
  "privacy": "public",
3866
- "description": "Allow only one row to be expanded at a time.",
4058
+ "description": "Predefined colours offered under the picker — CSS colours, or\n`{ value, name }` objects whose name is read out and shown. Arrays have\nno attribute form — bind as a DOM property",
4059
+ "type": {
4060
+ "text": "CColorPickerSwatch[]"
4061
+ },
4062
+ "default": "() => []"
4063
+ },
4064
+ {
4065
+ "kind": "field",
4066
+ "name": "swatchesOnly",
4067
+ "privacy": "public",
4068
+ "description": "Limit the choice to the swatches: the field becomes readonly and opens\na panel of the swatches alone",
3867
4069
  "type": {
3868
4070
  "text": "boolean"
3869
4071
  },
@@ -3871,114 +4073,165 @@
3871
4073
  },
3872
4074
  {
3873
4075
  "kind": "field",
3874
- "name": "sort",
4076
+ "name": "texts",
3875
4077
  "privacy": "public",
3876
- "description": "The sorting state (optionally controlled). `null` renders unsorted.",
4078
+ "description": "UI text overrides (i18n), merged over the English defaults. Objects have\nno attribute form — bind as a DOM property",
3877
4079
  "type": {
3878
- "text": "CDataTableSort | null"
4080
+ "text": "CColorPickerTexts"
4081
+ },
4082
+ "default": "{}",
4083
+ "csc": {
4084
+ "defaultable": true
3879
4085
  }
3880
4086
  },
3881
4087
  {
3882
4088
  "kind": "field",
3883
- "name": "stickyFooter",
4089
+ "name": "valid",
3884
4090
  "privacy": "public",
3885
- "description": "Keep the footer row visible while the table scrolls vertically.",
4091
+ "description": "Set the validity of the field",
3886
4092
  "type": {
3887
4093
  "text": "boolean"
3888
4094
  },
3889
- "default": "false"
4095
+ "default": "true"
3890
4096
  },
3891
4097
  {
3892
4098
  "kind": "field",
3893
- "name": "stickyHeader",
4099
+ "name": "value",
3894
4100
  "privacy": "public",
3895
- "description": "Keep the header row visible while the table scrolls vertically.",
4101
+ "description": "The colour in the `format` notation, or `null` when empty. Any CSS\ncolour is accepted and shown in the notation",
3896
4102
  "type": {
3897
- "text": "boolean"
4103
+ "text": "CColorPickerValue"
3898
4104
  },
3899
- "default": "false"
4105
+ "default": "null"
3900
4106
  },
3901
4107
  {
3902
4108
  "kind": "field",
3903
- "name": "texts",
4109
+ "name": "badInput",
3904
4110
  "privacy": "public",
3905
- "description": "UI text overrides (i18n), merged over the English defaults.",
4111
+ "readonly": true,
3906
4112
  "type": {
3907
- "text": "CDataTableTexts"
4113
+ "text": "boolean"
3908
4114
  },
3909
- "default": "{}",
3910
- "csc": {
3911
- "defaultable": true
3912
- }
4115
+ "description": "Whether the committed text names no colour — the value is then `null` (CONTEXT.md \"Bad input\")."
3913
4116
  }
3914
4117
  ],
3915
- "slots": [
4118
+ "slots": []
4119
+ }
4120
+ ],
4121
+ "exports": [
4122
+ {
4123
+ "declaration": {
4124
+ "module": "src/components/c-color-picker/CColorPicker.vue",
4125
+ "name": "CColorPicker"
4126
+ },
4127
+ "kind": "js",
4128
+ "name": "CColorPicker"
4129
+ },
4130
+ {
4131
+ "declaration": {
4132
+ "module": "src/components/c-color-picker/CColorPicker.vue",
4133
+ "name": "CColorPicker"
4134
+ },
4135
+ "kind": "custom-element-definition",
4136
+ "name": "c-color-picker"
4137
+ }
4138
+ ],
4139
+ "kind": "javascript-module",
4140
+ "path": "src/components/c-color-picker/CColorPicker.vue"
4141
+ },
4142
+ {
4143
+ "declarations": [
4144
+ {
4145
+ "customElement": true,
4146
+ "kind": "class",
4147
+ "name": "CCscLogo",
4148
+ "tagName": "c-csc-logo",
4149
+ "attributes": [
3916
4150
  {
3917
- "name": "caption",
3918
- "description": "Table caption, rendered into the native `<caption>` element"
3919
- },
4151
+ "fieldName": "width",
4152
+ "name": "width",
4153
+ "description": "Logo width in pixels",
4154
+ "type": {
4155
+ "text": "number"
4156
+ },
4157
+ "default": "60"
4158
+ }
4159
+ ],
4160
+ "cssParts": [
3920
4161
  {
3921
- "name": "empty",
3922
- "description": "Empty-state content shown when there are no rows"
4162
+ "name": "root",
4163
+ "description": "The `<svg>` element rendering the CSC logo"
3923
4164
  }
3924
- ]
4165
+ ],
4166
+ "cssProperties": [],
4167
+ "cssStates": [],
4168
+ "events": [],
4169
+ "members": [
4170
+ {
4171
+ "kind": "field",
4172
+ "name": "width",
4173
+ "privacy": "public",
4174
+ "description": "Logo width in pixels",
4175
+ "type": {
4176
+ "text": "number"
4177
+ },
4178
+ "default": "60"
4179
+ }
4180
+ ],
4181
+ "slots": []
3925
4182
  }
3926
4183
  ],
3927
4184
  "exports": [
3928
4185
  {
3929
4186
  "declaration": {
3930
- "module": "src/components/c-data-table/CDataTable.vue",
3931
- "name": "CDataTable"
4187
+ "module": "src/components/c-csc-logo/CCscLogo.vue",
4188
+ "name": "CCscLogo"
3932
4189
  },
3933
4190
  "kind": "js",
3934
- "name": "CDataTable"
4191
+ "name": "CCscLogo"
3935
4192
  },
3936
4193
  {
3937
4194
  "declaration": {
3938
- "module": "src/components/c-data-table/CDataTable.vue",
3939
- "name": "CDataTable"
4195
+ "module": "src/components/c-csc-logo/CCscLogo.vue",
4196
+ "name": "CCscLogo"
3940
4197
  },
3941
4198
  "kind": "custom-element-definition",
3942
- "name": "c-data-table"
4199
+ "name": "c-csc-logo"
3943
4200
  }
3944
4201
  ],
3945
4202
  "kind": "javascript-module",
3946
- "path": "src/components/c-data-table/CDataTable.vue"
4203
+ "path": "src/components/c-csc-logo/CCscLogo.vue"
3947
4204
  },
3948
4205
  {
3949
4206
  "declarations": [
3950
4207
  {
3951
4208
  "customElement": true,
3952
4209
  "kind": "class",
3953
- "name": "CDatePicker",
3954
- "tagName": "c-date-picker",
3955
- "description": "A date field that takes a typed date, or opens a calendar panel for picking one, or a start and end date under `range`.",
3956
- "csc": {
3957
- "usage": "docs/c-date-picker/usage.md"
3958
- },
4210
+ "name": "CDataTable",
4211
+ "tagName": "c-data-table",
3959
4212
  "attributes": [
3960
4213
  {
3961
- "fieldName": "clearable",
3962
- "name": "clearable",
3963
- "description": "Make the value clearable",
4214
+ "fieldName": "autohide",
4215
+ "name": "autohide",
4216
+ "description": "Move overflowing `expansion: 'auto'` columns into the expansion row\n(rightmost first) instead of scrolling horizontally.",
3964
4217
  "type": {
3965
4218
  "text": "boolean"
3966
4219
  },
3967
4220
  "default": "false"
3968
4221
  },
3969
4222
  {
3970
- "fieldName": "disabled",
3971
- "name": "disabled",
3972
- "description": "Disable the field",
4223
+ "fieldName": "external",
4224
+ "name": "external",
4225
+ "description": "The server owns sorting, pagination and filtering: the table renders\n`data` verbatim and only emits the state-change events. Requires\n`itemCount` for the pager; disables the select-all banner and `filter`.",
3973
4226
  "type": {
3974
4227
  "text": "boolean"
3975
4228
  },
3976
4229
  "default": "false"
3977
4230
  },
3978
4231
  {
3979
- "fieldName": "errorMessage",
3980
- "name": "error-message",
3981
- "description": "Error message shown in place of the hint while the field is invalid",
4232
+ "fieldName": "filter",
4233
+ "name": "filter",
4234
+ "description": "Filter rows client-side against this string (all columns). Ignored when\n`external` is set.",
3982
4235
  "type": {
3983
4236
  "text": "string"
3984
4237
  },
@@ -3988,516 +4241,1478 @@
3988
4241
  }
3989
4242
  },
3990
4243
  {
3991
- "fieldName": "firstDayOfWeek",
3992
- "name": "first-day-of-week",
3993
- "description": "First day of the week in the calendar, numbered like `Date.getDay()`:\n0 = Sunday, 1 = Monday … 6 = Saturday",
3994
- "type": {
3995
- "text": "0 | 1 | 2 | 3 | 4 | 5 | 6"
3996
- },
3997
- "default": "1",
3998
- "csc": {
3999
- "typeAlias": "CDatePickerWeekday",
4000
- "defaultable": true
4001
- }
4002
- },
4003
- {
4004
- "fieldName": "format",
4005
- "name": "format",
4006
- "description": "How dates are shown and read from typing: a pattern of the tokens `d`,\n`dd`, `M`, `MM` and `yyyy` with any separators, e.g. `yyyy-MM-dd`",
4244
+ "fieldName": "itemCount",
4245
+ "name": "item-count",
4246
+ "description": "Total number of rows in the dataset. Only used (and needed) with `external`.",
4007
4247
  "type": {
4008
- "text": "string"
4009
- },
4010
- "default": "'dd.MM.yyyy'",
4011
- "csc": {
4012
- "freeform": true,
4013
- "defaultable": true
4248
+ "text": "number"
4014
4249
  }
4015
4250
  },
4016
4251
  {
4017
- "fieldName": "hideDetails",
4018
- "name": "hide-details",
4019
- "description": "Hide the hint and error messages",
4252
+ "fieldName": "loading",
4253
+ "name": "loading",
4254
+ "description": "Show the loading indicator.",
4020
4255
  "type": {
4021
4256
  "text": "boolean"
4022
4257
  },
4023
- "default": "false",
4024
- "csc": {
4025
- "defaultable": true
4026
- }
4258
+ "default": "false"
4027
4259
  },
4028
4260
  {
4029
- "fieldName": "hint",
4030
- "name": "hint",
4031
- "description": "Hint text for the field",
4261
+ "fieldName": "page",
4262
+ "name": "page",
4263
+ "description": "Current page, 1-based (optionally controlled).",
4032
4264
  "type": {
4033
- "text": "string"
4034
- },
4035
- "default": "''",
4036
- "csc": {
4037
- "freeform": true
4265
+ "text": "number"
4038
4266
  }
4039
4267
  },
4040
4268
  {
4041
- "fieldName": "hostId",
4042
- "name": "host-id",
4043
- "description": "Id of the element",
4269
+ "fieldName": "pageSize",
4270
+ "name": "page-size",
4271
+ "description": "Rows per page. Pagination is active only when set — without it every row\nrenders and no pager is shown.",
4044
4272
  "type": {
4045
- "text": "string"
4046
- },
4047
- "default": "''",
4048
- "csc": {
4049
- "freeform": true
4273
+ "text": "number"
4050
4274
  }
4051
4275
  },
4052
4276
  {
4053
- "fieldName": "label",
4054
- "name": "label",
4055
- "description": "Element label",
4277
+ "fieldName": "selection",
4278
+ "name": "selection",
4279
+ "description": "Row selection mode. Unset means rows are not selectable.",
4056
4280
  "type": {
4057
- "text": "string"
4281
+ "text": "'multiple' | 'single'"
4058
4282
  },
4059
- "default": "''",
4060
4283
  "csc": {
4061
- "freeform": true
4284
+ "typeAlias": "CDataTableSelectionMode"
4062
4285
  }
4063
4286
  },
4064
4287
  {
4065
- "fieldName": "labelOnTop",
4066
- "name": "label-on-top",
4067
- "description": "Label on top of the field",
4288
+ "fieldName": "singleExpansion",
4289
+ "name": "single-expansion",
4290
+ "description": "Allow only one row to be expanded at a time.",
4068
4291
  "type": {
4069
4292
  "text": "boolean"
4070
4293
  },
4071
- "default": "false",
4072
- "csc": {
4073
- "defaultable": true
4074
- }
4294
+ "default": "false"
4075
4295
  },
4076
4296
  {
4077
- "fieldName": "max",
4078
- "name": "max",
4079
- "description": "The latest date that can be picked or typed, as an ISO date; also bounds\nthe calendar's navigation",
4297
+ "fieldName": "sort",
4298
+ "name": "sort",
4299
+ "description": "The sorting state (optionally controlled). `null` renders unsorted.",
4080
4300
  "type": {
4081
- "text": "string"
4082
- },
4083
- "default": "''",
4084
- "csc": {
4085
- "freeform": true
4301
+ "text": "CDataTableSort | null"
4086
4302
  }
4087
4303
  },
4088
4304
  {
4089
- "fieldName": "min",
4090
- "name": "min",
4091
- "description": "The earliest date that can be picked or typed, as an ISO date; also\nbounds the calendar's navigation",
4305
+ "fieldName": "stickyFooter",
4306
+ "name": "sticky-footer",
4307
+ "description": "Keep the footer row visible while the table scrolls vertically.",
4092
4308
  "type": {
4093
- "text": "string"
4309
+ "text": "boolean"
4094
4310
  },
4095
- "default": "''",
4096
- "csc": {
4097
- "freeform": true
4098
- }
4311
+ "default": "false"
4099
4312
  },
4100
4313
  {
4101
- "fieldName": "name",
4102
- "name": "name",
4103
- "description": "Input field name",
4104
- "type": {
4105
- "text": "string"
4314
+ "fieldName": "stickyHeader",
4315
+ "name": "sticky-header",
4316
+ "description": "Keep the header row visible while the table scrolls vertically.",
4317
+ "type": {
4318
+ "text": "boolean"
4106
4319
  },
4107
- "default": "''",
4108
- "csc": {
4109
- "freeform": true
4110
- }
4320
+ "default": "false"
4321
+ }
4322
+ ],
4323
+ "cssParts": [
4324
+ {
4325
+ "name": "root",
4326
+ "description": "The outer wrapper around the table and pagination"
4111
4327
  },
4112
4328
  {
4113
- "fieldName": "placeholder",
4114
- "name": "placeholder",
4115
- "description": "Placeholder of the input; the `format` pattern when empty",
4329
+ "name": "banner",
4330
+ "description": "The two-step select-all banner"
4331
+ },
4332
+ {
4333
+ "name": "viewport",
4334
+ "description": "The scroll container around the table"
4335
+ },
4336
+ {
4337
+ "name": "table",
4338
+ "description": "The `<table>` element"
4339
+ },
4340
+ {
4341
+ "name": "caption",
4342
+ "description": "The `<caption>` element"
4343
+ },
4344
+ {
4345
+ "name": "header",
4346
+ "description": "The `<thead>` element"
4347
+ },
4348
+ {
4349
+ "name": "header-cell",
4350
+ "description": "A data column's `<th>`"
4351
+ },
4352
+ {
4353
+ "name": "body",
4354
+ "description": "The `<tbody>` element"
4355
+ },
4356
+ {
4357
+ "name": "row",
4358
+ "description": "A data `<tr>`"
4359
+ },
4360
+ {
4361
+ "name": "cell",
4362
+ "description": "A data column's `<td>`"
4363
+ },
4364
+ {
4365
+ "name": "expansion-row",
4366
+ "description": "The expansion `<tr>` revealed beneath a data row"
4367
+ },
4368
+ {
4369
+ "name": "footer",
4370
+ "description": "The `<tfoot>` element (footer columns)"
4371
+ },
4372
+ {
4373
+ "name": "empty",
4374
+ "description": "The empty-state cell content"
4375
+ },
4376
+ {
4377
+ "name": "pagination",
4378
+ "description": "The pagination bar below the table"
4379
+ }
4380
+ ],
4381
+ "cssProperties": [],
4382
+ "cssStates": [],
4383
+ "events": [
4384
+ {
4385
+ "name": "change:expanded",
4116
4386
  "type": {
4117
- "text": "string"
4387
+ "text": "CustomEvent<string[]>"
4118
4388
  },
4119
- "default": "''",
4120
- "csc": {
4121
- "freeform": true
4122
- }
4389
+ "description": "Fired when the expanded rows change, carrying the expanded row ids."
4123
4390
  },
4124
4391
  {
4125
- "fieldName": "range",
4126
- "name": "range",
4127
- "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
4392
+ "name": "change:page",
4128
4393
  "type": {
4129
- "text": "boolean"
4394
+ "text": "CustomEvent<number>"
4130
4395
  },
4131
- "default": "false"
4396
+ "description": "Fired when the user changes the page, carrying the new 1-based page."
4132
4397
  },
4133
4398
  {
4134
- "fieldName": "required",
4135
- "name": "required",
4136
- "description": "Set the field as required",
4399
+ "name": "change:page-size",
4137
4400
  "type": {
4138
- "text": "boolean"
4401
+ "text": "CustomEvent<number>"
4139
4402
  },
4140
- "default": "false"
4403
+ "description": "Fired when the user picks a new page size. Also resets the page to 1\n(a separate `change:page` event fires alongside)."
4141
4404
  },
4142
4405
  {
4143
- "fieldName": "shadow",
4144
- "name": "shadow",
4145
- "description": "Shadow variant",
4406
+ "name": "change:selected",
4146
4407
  "type": {
4147
- "text": "boolean"
4408
+ "text": "CustomEvent<{ ids: string[]; rows: CDataTableRow[] }>"
4148
4409
  },
4149
- "default": "false",
4150
- "csc": {
4151
- "defaultable": true
4152
- }
4410
+ "description": "Fired when the selection changes, carrying the selected row ids and the\nrow objects resolvable from the current `data`."
4153
4411
  },
4154
4412
  {
4155
- "fieldName": "showToday",
4156
- "name": "show-today",
4157
- "description": "Show a Today button under the calendar that picks today (\"This month\"\nunder `type=\"month\"`)",
4413
+ "name": "change:sort",
4414
+ "type": {
4415
+ "text": "CustomEvent<CDataTableSort | null>"
4416
+ },
4417
+ "description": "Fired when the user sorts a column, carrying the new sorting state."
4418
+ }
4419
+ ],
4420
+ "members": [
4421
+ {
4422
+ "kind": "field",
4423
+ "name": "autohide",
4424
+ "privacy": "public",
4425
+ "description": "Move overflowing `expansion: 'auto'` columns into the expansion row\n(rightmost first) instead of scrolling horizontally.",
4158
4426
  "type": {
4159
4427
  "text": "boolean"
4160
4428
  },
4161
- "default": "false",
4162
- "csc": {
4163
- "defaultable": true
4164
- }
4429
+ "default": "false"
4165
4430
  },
4166
4431
  {
4167
- "fieldName": "showWeekNumbers",
4168
- "name": "show-week-numbers",
4169
- "description": "Show ISO 8601 week numbers beside the calendar rows (meaningful with a\nMonday week start)",
4432
+ "kind": "field",
4433
+ "name": "columns",
4434
+ "privacy": "public",
4435
+ "description": "Column definitions. Pass as a DOM property (contains functions).",
4170
4436
  "type": {
4171
- "text": "boolean"
4437
+ "text": "CDataTableColumn[]"
4172
4438
  },
4173
- "default": "false",
4174
- "csc": {
4175
- "defaultable": true
4176
- }
4439
+ "default": "() => []"
4177
4440
  },
4178
4441
  {
4179
- "fieldName": "size",
4180
- "name": "size",
4181
- "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
4442
+ "kind": "field",
4443
+ "name": "data",
4444
+ "privacy": "public",
4445
+ "description": "Rows — plain domain objects. Pass as a DOM property.",
4182
4446
  "type": {
4183
- "text": "'default' | 'small'"
4447
+ "text": "CDataTableRow[]"
4184
4448
  },
4185
- "default": "'default'",
4186
- "csc": {
4187
- "typeAlias": "CFieldSize",
4188
- "defaultable": true
4449
+ "default": "() => []"
4450
+ },
4451
+ {
4452
+ "kind": "field",
4453
+ "name": "expanded",
4454
+ "privacy": "public",
4455
+ "description": "Ids of the expanded rows (optionally controlled).",
4456
+ "type": {
4457
+ "text": "string[]"
4189
4458
  }
4190
4459
  },
4191
4460
  {
4192
- "fieldName": "type",
4193
- "name": "type",
4194
- "description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
4461
+ "kind": "field",
4462
+ "name": "expandedContent",
4463
+ "privacy": "public",
4464
+ "description": "Custom expansion-row content, appended after the auto-rendered cells of\ncolumns currently in the expansion row.",
4195
4465
  "type": {
4196
- "text": "'date' | 'month'"
4197
- },
4198
- "default": "'date'",
4199
- "csc": {
4200
- "typeAlias": "CDatePickerType"
4466
+ "text": "( context: CDataTableExpandedContext, ) => CDataTableCellContent"
4201
4467
  }
4202
4468
  },
4203
4469
  {
4204
- "fieldName": "valid",
4205
- "name": "valid",
4206
- "description": "Set the validity of the field",
4470
+ "kind": "field",
4471
+ "name": "external",
4472
+ "privacy": "public",
4473
+ "description": "The server owns sorting, pagination and filtering: the table renders\n`data` verbatim and only emits the state-change events. Requires\n`itemCount` for the pager; disables the select-all banner and `filter`.",
4207
4474
  "type": {
4208
4475
  "text": "boolean"
4209
4476
  },
4210
- "default": "true"
4477
+ "default": "false"
4211
4478
  },
4212
4479
  {
4213
- "fieldName": "value",
4214
- "name": "value",
4215
- "description": "The date as an ISO `YYYY-MM-DD` string (an ISO `YYYY-MM` month under\n`type=\"month\"`), or `{ start, end }` under `range`; `null` when empty",
4480
+ "kind": "field",
4481
+ "name": "filter",
4482
+ "privacy": "public",
4483
+ "description": "Filter rows client-side against this string (all columns). Ignored when\n`external` is set.",
4216
4484
  "type": {
4217
- "text": "CDatePickerValue"
4485
+ "text": "string"
4218
4486
  },
4219
- "default": "null"
4220
- }
4221
- ],
4222
- "cssParts": [
4223
- {
4224
- "name": "input",
4225
- "description": "The text input; under `range` both the start and the end input"
4487
+ "default": "''",
4488
+ "csc": {
4489
+ "freeform": true
4490
+ }
4226
4491
  },
4227
4492
  {
4228
- "name": "separator",
4229
- "description": "The dash between the start and end inputs under `range`"
4493
+ "kind": "field",
4494
+ "name": "getRowId",
4495
+ "privacy": "public",
4496
+ "description": "Return a stable id for a row. Falls back to the row's index — supply\nthis whenever selection/expansion is used with `external` data.",
4497
+ "type": {
4498
+ "text": "(row: CDataTableRow) => string"
4499
+ }
4230
4500
  },
4231
4501
  {
4232
- "name": "panel",
4233
- "description": "The top-layer popover container anchored below the field"
4502
+ "kind": "field",
4503
+ "name": "itemCount",
4504
+ "privacy": "public",
4505
+ "description": "Total number of rows in the dataset. Only used (and needed) with `external`.",
4506
+ "type": {
4507
+ "text": "number"
4508
+ }
4234
4509
  },
4235
4510
  {
4236
- "name": "card",
4237
- "description": "The dialog surface inside the panel holding the header and the calendar body"
4511
+ "kind": "field",
4512
+ "name": "loading",
4513
+ "privacy": "public",
4514
+ "description": "Show the loading indicator.",
4515
+ "type": {
4516
+ "text": "boolean"
4517
+ },
4518
+ "default": "false"
4238
4519
  },
4239
4520
  {
4240
- "name": "heading-row",
4241
- "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
4521
+ "kind": "field",
4522
+ "name": "page",
4523
+ "privacy": "public",
4524
+ "description": "Current page, 1-based (optionally controlled).",
4525
+ "type": {
4526
+ "text": "number"
4527
+ }
4242
4528
  },
4243
4529
  {
4244
- "name": "heading",
4245
- "description": "The field label naming the fullscreen panel"
4530
+ "kind": "field",
4531
+ "name": "pageSize",
4532
+ "privacy": "public",
4533
+ "description": "Rows per page. Pagination is active only when set — without it every row\nrenders and no pager is shown.",
4534
+ "type": {
4535
+ "text": "number"
4536
+ }
4246
4537
  },
4247
4538
  {
4248
- "name": "close",
4249
- "description": "The close button of the fullscreen panel"
4250
- },
4251
- {
4252
- "name": "header",
4253
- "description": "The row of month and year controls above the calendar body"
4254
- },
4255
- {
4256
- "name": "previous-month",
4257
- "description": "The arrow to the previous month"
4258
- },
4259
- {
4260
- "name": "next-month",
4261
- "description": "The arrow to the next month"
4539
+ "kind": "field",
4540
+ "name": "pageSizes",
4541
+ "privacy": "public",
4542
+ "description": "Options for the pager's page-size menu.",
4543
+ "type": {
4544
+ "text": "number[]"
4545
+ },
4546
+ "default": "() => [5, 25, 50, 100]"
4262
4547
  },
4263
4548
  {
4264
- "name": "month-button",
4265
- "description": "The button showing the displayed month that opens the month list"
4549
+ "kind": "field",
4550
+ "name": "selected",
4551
+ "privacy": "public",
4552
+ "description": "Ids of the selected rows (optionally controlled).",
4553
+ "type": {
4554
+ "text": "string[]"
4555
+ }
4266
4556
  },
4267
4557
  {
4268
- "name": "previous-year",
4269
- "description": "The arrow to the same month a year earlier"
4558
+ "kind": "field",
4559
+ "name": "selection",
4560
+ "privacy": "public",
4561
+ "description": "Row selection mode. Unset means rows are not selectable.",
4562
+ "type": {
4563
+ "text": "'multiple' | 'single'"
4564
+ },
4565
+ "csc": {
4566
+ "typeAlias": "CDataTableSelectionMode"
4567
+ }
4270
4568
  },
4271
4569
  {
4272
- "name": "next-year",
4273
- "description": "The arrow to the same month a year later"
4570
+ "kind": "field",
4571
+ "name": "singleExpansion",
4572
+ "privacy": "public",
4573
+ "description": "Allow only one row to be expanded at a time.",
4574
+ "type": {
4575
+ "text": "boolean"
4576
+ },
4577
+ "default": "false"
4274
4578
  },
4275
4579
  {
4276
- "name": "year-button",
4277
- "description": "The button showing the displayed year that opens the year list"
4580
+ "kind": "field",
4581
+ "name": "sort",
4582
+ "privacy": "public",
4583
+ "description": "The sorting state (optionally controlled). `null` renders unsorted.",
4584
+ "type": {
4585
+ "text": "CDataTableSort | null"
4586
+ }
4278
4587
  },
4279
4588
  {
4280
- "name": "grid",
4281
- "description": "The day grid of the displayed month"
4589
+ "kind": "field",
4590
+ "name": "stickyFooter",
4591
+ "privacy": "public",
4592
+ "description": "Keep the footer row visible while the table scrolls vertically.",
4593
+ "type": {
4594
+ "text": "boolean"
4595
+ },
4596
+ "default": "false"
4282
4597
  },
4283
4598
  {
4284
- "name": "weekday",
4285
- "description": "A weekday column head in the grid"
4599
+ "kind": "field",
4600
+ "name": "stickyHeader",
4601
+ "privacy": "public",
4602
+ "description": "Keep the header row visible while the table scrolls vertically.",
4603
+ "type": {
4604
+ "text": "boolean"
4605
+ },
4606
+ "default": "false"
4286
4607
  },
4287
4608
  {
4288
- "name": "week-number",
4289
- "description": "An ISO week number beside a grid row (`show-week-numbers`)"
4290
- },
4609
+ "kind": "field",
4610
+ "name": "texts",
4611
+ "privacy": "public",
4612
+ "description": "UI text overrides (i18n), merged over the English defaults.",
4613
+ "type": {
4614
+ "text": "CDataTableTexts"
4615
+ },
4616
+ "default": "{}",
4617
+ "csc": {
4618
+ "defaultable": true
4619
+ }
4620
+ }
4621
+ ],
4622
+ "slots": [
4291
4623
  {
4292
- "name": "cell",
4293
- "description": "One day's cell in the grid"
4624
+ "name": "caption",
4625
+ "description": "Table caption, rendered into the native `<caption>` element"
4294
4626
  },
4295
4627
  {
4296
- "name": "day",
4297
- "description": "The circle showing a day's number inside its cell"
4298
- },
4628
+ "name": "empty",
4629
+ "description": "Empty-state content shown when there are no rows"
4630
+ }
4631
+ ]
4632
+ }
4633
+ ],
4634
+ "exports": [
4635
+ {
4636
+ "declaration": {
4637
+ "module": "src/components/c-data-table/CDataTable.vue",
4638
+ "name": "CDataTable"
4639
+ },
4640
+ "kind": "js",
4641
+ "name": "CDataTable"
4642
+ },
4643
+ {
4644
+ "declaration": {
4645
+ "module": "src/components/c-data-table/CDataTable.vue",
4646
+ "name": "CDataTable"
4647
+ },
4648
+ "kind": "custom-element-definition",
4649
+ "name": "c-data-table"
4650
+ }
4651
+ ],
4652
+ "kind": "javascript-module",
4653
+ "path": "src/components/c-data-table/CDataTable.vue"
4654
+ },
4655
+ {
4656
+ "declarations": [
4657
+ {
4658
+ "customElement": true,
4659
+ "kind": "class",
4660
+ "name": "CDatePicker",
4661
+ "tagName": "c-date-picker",
4662
+ "description": "A date field that takes a typed date, or opens a calendar panel for picking one, or a start and end date under `range`.",
4663
+ "csc": {
4664
+ "usage": "docs/c-date-picker/usage.md"
4665
+ },
4666
+ "attributes": [
4299
4667
  {
4300
- "name": "range-band",
4301
- "description": "The strip joining a range's days behind their circles"
4668
+ "fieldName": "clearable",
4669
+ "name": "clearable",
4670
+ "description": "Make the value clearable",
4671
+ "type": {
4672
+ "text": "boolean"
4673
+ },
4674
+ "default": "false"
4302
4675
  },
4303
4676
  {
4304
- "name": "list",
4305
- "description": "The month or year list swapped in for the grid"
4677
+ "fieldName": "disabled",
4678
+ "name": "disabled",
4679
+ "description": "Disable the field",
4680
+ "type": {
4681
+ "text": "boolean"
4682
+ },
4683
+ "default": "false"
4306
4684
  },
4307
4685
  {
4308
- "name": "option",
4309
- "description": "One month or year in the list"
4686
+ "fieldName": "errorMessage",
4687
+ "name": "error-message",
4688
+ "description": "Error message shown in place of the hint while the field is invalid",
4689
+ "type": {
4690
+ "text": "string"
4691
+ },
4692
+ "default": "''",
4693
+ "csc": {
4694
+ "freeform": true
4695
+ }
4310
4696
  },
4311
4697
  {
4312
- "name": "step-label",
4313
- "description": "The label above the current list under `type=\"month\"`: month or year, and under `range` start or end"
4698
+ "fieldName": "firstDayOfWeek",
4699
+ "name": "first-day-of-week",
4700
+ "description": "First day of the week in the calendar, numbered like `Date.getDay()`:\n0 = Sunday, 1 = Monday … 6 = Saturday",
4701
+ "type": {
4702
+ "text": "0 | 1 | 2 | 3 | 4 | 5 | 6"
4703
+ },
4704
+ "default": "1",
4705
+ "csc": {
4706
+ "typeAlias": "CDatePickerWeekday",
4707
+ "defaultable": true
4708
+ }
4314
4709
  },
4315
4710
  {
4316
- "name": "step-summary",
4317
- "description": "A finished step under `type=\"month\"`, its label and pick; pressing it returns to that step"
4711
+ "fieldName": "format",
4712
+ "name": "format",
4713
+ "description": "How dates are shown and read from typing: a pattern of the tokens `d`,\n`dd`, `M`, `MM` and `yyyy` with any separators, e.g. `yyyy-MM-dd`",
4714
+ "type": {
4715
+ "text": "string"
4716
+ },
4717
+ "default": "'dd.MM.yyyy'",
4718
+ "csc": {
4719
+ "freeform": true,
4720
+ "defaultable": true
4721
+ }
4318
4722
  },
4319
4723
  {
4320
- "name": "actions",
4321
- "description": "The row under the calendar body holding the Today button (`show-today`) and, in the fullscreen panel, the Done button"
4724
+ "fieldName": "hideDetails",
4725
+ "name": "hide-details",
4726
+ "description": "Hide the hint and error messages",
4727
+ "type": {
4728
+ "text": "boolean"
4729
+ },
4730
+ "default": "false",
4731
+ "csc": {
4732
+ "defaultable": true
4733
+ }
4322
4734
  },
4323
4735
  {
4324
- "name": "today",
4325
- "description": "The Today button: picks today, or the current month under `type=\"month\"`"
4736
+ "fieldName": "hint",
4737
+ "name": "hint",
4738
+ "description": "Hint text for the field",
4739
+ "type": {
4740
+ "text": "string"
4741
+ },
4742
+ "default": "''",
4743
+ "csc": {
4744
+ "freeform": true
4745
+ }
4326
4746
  },
4327
4747
  {
4328
- "name": "done",
4329
- "description": "The Done button of the fullscreen panel (narrow viewports): commits what the panel holds and closes"
4330
- }
4331
- ],
4332
- "cssProperties": [],
4333
- "cssStates": [
4334
- {
4335
- "name": "bad-input",
4336
- "description": "Present while committed text names no date that can be picked"
4337
- }
4338
- ],
4339
- "events": [
4340
- {
4341
- "name": "change",
4748
+ "fieldName": "hostId",
4749
+ "name": "host-id",
4750
+ "description": "Id of the element",
4342
4751
  "type": {
4343
- "text": "CustomEvent<CDatePickerValue>"
4752
+ "text": "string"
4344
4753
  },
4345
- "description": "Fired when the value changes — a day or range is picked, typed text is\ncommitted, or the field is cleared — carrying the new value: an ISO\ndate, `{ start, end }` under `range`, or `null`."
4754
+ "default": "''",
4755
+ "csc": {
4756
+ "freeform": true
4757
+ }
4346
4758
  },
4347
4759
  {
4348
- "name": "change:month",
4760
+ "fieldName": "label",
4761
+ "name": "label",
4762
+ "description": "Element label",
4349
4763
  "type": {
4350
- "text": "CustomEvent<string>"
4764
+ "text": "string"
4351
4765
  },
4352
- "description": "Fired with the displayed month as `YYYY-MM` whenever it changes, and\nwhen the panel opens — the signal to load that month's `disabled-dates`."
4766
+ "default": "''",
4767
+ "csc": {
4768
+ "freeform": true
4769
+ }
4770
+ },
4771
+ {
4772
+ "fieldName": "labelOnTop",
4773
+ "name": "label-on-top",
4774
+ "description": "Label on top of the field",
4775
+ "type": {
4776
+ "text": "boolean"
4777
+ },
4778
+ "default": "false",
4779
+ "csc": {
4780
+ "defaultable": true
4781
+ }
4782
+ },
4783
+ {
4784
+ "fieldName": "max",
4785
+ "name": "max",
4786
+ "description": "The latest date that can be picked or typed, as an ISO date; also bounds\nthe calendar's navigation",
4787
+ "type": {
4788
+ "text": "string"
4789
+ },
4790
+ "default": "''",
4791
+ "csc": {
4792
+ "freeform": true
4793
+ }
4794
+ },
4795
+ {
4796
+ "fieldName": "min",
4797
+ "name": "min",
4798
+ "description": "The earliest date that can be picked or typed, as an ISO date; also\nbounds the calendar's navigation",
4799
+ "type": {
4800
+ "text": "string"
4801
+ },
4802
+ "default": "''",
4803
+ "csc": {
4804
+ "freeform": true
4805
+ }
4806
+ },
4807
+ {
4808
+ "fieldName": "name",
4809
+ "name": "name",
4810
+ "description": "Input field name",
4811
+ "type": {
4812
+ "text": "string"
4813
+ },
4814
+ "default": "''",
4815
+ "csc": {
4816
+ "freeform": true
4817
+ }
4818
+ },
4819
+ {
4820
+ "fieldName": "placeholder",
4821
+ "name": "placeholder",
4822
+ "description": "Placeholder of the input; the `format` pattern when empty",
4823
+ "type": {
4824
+ "text": "string"
4825
+ },
4826
+ "default": "''",
4827
+ "csc": {
4828
+ "freeform": true
4829
+ }
4830
+ },
4831
+ {
4832
+ "fieldName": "range",
4833
+ "name": "range",
4834
+ "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
4835
+ "type": {
4836
+ "text": "boolean"
4837
+ },
4838
+ "default": "false"
4839
+ },
4840
+ {
4841
+ "fieldName": "required",
4842
+ "name": "required",
4843
+ "description": "Set the field as required",
4844
+ "type": {
4845
+ "text": "boolean"
4846
+ },
4847
+ "default": "false"
4848
+ },
4849
+ {
4850
+ "fieldName": "shadow",
4851
+ "name": "shadow",
4852
+ "description": "Shadow variant",
4853
+ "type": {
4854
+ "text": "boolean"
4855
+ },
4856
+ "default": "false",
4857
+ "csc": {
4858
+ "defaultable": true
4859
+ }
4860
+ },
4861
+ {
4862
+ "fieldName": "showToday",
4863
+ "name": "show-today",
4864
+ "description": "Show a Today button under the calendar that picks today (\"This month\"\nunder `type=\"month\"`)",
4865
+ "type": {
4866
+ "text": "boolean"
4867
+ },
4868
+ "default": "false",
4869
+ "csc": {
4870
+ "defaultable": true
4871
+ }
4872
+ },
4873
+ {
4874
+ "fieldName": "showWeekNumbers",
4875
+ "name": "show-week-numbers",
4876
+ "description": "Show ISO 8601 week numbers beside the calendar rows (meaningful with a\nMonday week start)",
4877
+ "type": {
4878
+ "text": "boolean"
4879
+ },
4880
+ "default": "false",
4881
+ "csc": {
4882
+ "defaultable": true
4883
+ }
4884
+ },
4885
+ {
4886
+ "fieldName": "size",
4887
+ "name": "size",
4888
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
4889
+ "type": {
4890
+ "text": "'default' | 'small'"
4891
+ },
4892
+ "default": "'default'",
4893
+ "csc": {
4894
+ "typeAlias": "CFieldSize",
4895
+ "defaultable": true
4896
+ }
4897
+ },
4898
+ {
4899
+ "fieldName": "type",
4900
+ "name": "type",
4901
+ "description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
4902
+ "type": {
4903
+ "text": "'date' | 'month'"
4904
+ },
4905
+ "default": "'date'",
4906
+ "csc": {
4907
+ "typeAlias": "CDatePickerType"
4908
+ }
4909
+ },
4910
+ {
4911
+ "fieldName": "valid",
4912
+ "name": "valid",
4913
+ "description": "Set the validity of the field",
4914
+ "type": {
4915
+ "text": "boolean"
4916
+ },
4917
+ "default": "true"
4918
+ },
4919
+ {
4920
+ "fieldName": "value",
4921
+ "name": "value",
4922
+ "description": "The date as an ISO `YYYY-MM-DD` string (an ISO `YYYY-MM` month under\n`type=\"month\"`), or `{ start, end }` under `range`; `null` when empty",
4923
+ "type": {
4924
+ "text": "CDatePickerValue"
4925
+ },
4926
+ "default": "null"
4927
+ }
4928
+ ],
4929
+ "cssParts": [
4930
+ {
4931
+ "name": "input",
4932
+ "description": "The text input; under `range` both the start and the end input"
4933
+ },
4934
+ {
4935
+ "name": "separator",
4936
+ "description": "The dash between the start and end inputs under `range`"
4937
+ },
4938
+ {
4939
+ "name": "panel",
4940
+ "description": "The top-layer popover container anchored below the field"
4941
+ },
4942
+ {
4943
+ "name": "card",
4944
+ "description": "The dialog surface inside the panel holding the header and the calendar body"
4945
+ },
4946
+ {
4947
+ "name": "heading-row",
4948
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
4949
+ },
4950
+ {
4951
+ "name": "heading",
4952
+ "description": "The field label naming the fullscreen panel"
4953
+ },
4954
+ {
4955
+ "name": "close",
4956
+ "description": "The close button of the fullscreen panel"
4957
+ },
4958
+ {
4959
+ "name": "header",
4960
+ "description": "The row of month and year controls above the calendar body"
4961
+ },
4962
+ {
4963
+ "name": "previous-month",
4964
+ "description": "The arrow to the previous month"
4965
+ },
4966
+ {
4967
+ "name": "next-month",
4968
+ "description": "The arrow to the next month"
4969
+ },
4970
+ {
4971
+ "name": "month-button",
4972
+ "description": "The button showing the displayed month that opens the month list"
4973
+ },
4974
+ {
4975
+ "name": "previous-year",
4976
+ "description": "The arrow to the same month a year earlier"
4977
+ },
4978
+ {
4979
+ "name": "next-year",
4980
+ "description": "The arrow to the same month a year later"
4981
+ },
4982
+ {
4983
+ "name": "year-button",
4984
+ "description": "The button showing the displayed year that opens the year list"
4985
+ },
4986
+ {
4987
+ "name": "grid",
4988
+ "description": "The day grid of the displayed month"
4989
+ },
4990
+ {
4991
+ "name": "weekday",
4992
+ "description": "A weekday column head in the grid"
4993
+ },
4994
+ {
4995
+ "name": "week-number",
4996
+ "description": "An ISO week number beside a grid row (`show-week-numbers`)"
4997
+ },
4998
+ {
4999
+ "name": "cell",
5000
+ "description": "One day's cell in the grid"
5001
+ },
5002
+ {
5003
+ "name": "day",
5004
+ "description": "The circle showing a day's number inside its cell"
5005
+ },
5006
+ {
5007
+ "name": "range-band",
5008
+ "description": "The strip joining a range's days behind their circles"
5009
+ },
5010
+ {
5011
+ "name": "list",
5012
+ "description": "The month or year list swapped in for the grid"
5013
+ },
5014
+ {
5015
+ "name": "option",
5016
+ "description": "One month or year in the list"
5017
+ },
5018
+ {
5019
+ "name": "step-label",
5020
+ "description": "The label above the current list under `type=\"month\"`: month or year, and under `range` start or end"
5021
+ },
5022
+ {
5023
+ "name": "step-summary",
5024
+ "description": "A finished step under `type=\"month\"`, its label and pick; pressing it returns to that step"
5025
+ },
5026
+ {
5027
+ "name": "actions",
5028
+ "description": "The row under the calendar body holding the Today button (`show-today`) and, in the fullscreen panel, the Done button"
5029
+ },
5030
+ {
5031
+ "name": "today",
5032
+ "description": "The Today button: picks today, or the current month under `type=\"month\"`"
5033
+ },
5034
+ {
5035
+ "name": "done",
5036
+ "description": "The Done button of the fullscreen panel (narrow viewports): commits what the panel holds and closes"
5037
+ }
5038
+ ],
5039
+ "cssProperties": [],
5040
+ "cssStates": [
5041
+ {
5042
+ "name": "bad-input",
5043
+ "description": "Present while committed text names no date that can be picked"
5044
+ }
5045
+ ],
5046
+ "events": [
5047
+ {
5048
+ "name": "change",
5049
+ "type": {
5050
+ "text": "CustomEvent<CDatePickerValue>"
5051
+ },
5052
+ "description": "Fired when the value changes — a day or range is picked, typed text is\ncommitted, or the field is cleared — carrying the new value: an ISO\ndate, `{ start, end }` under `range`, or `null`."
5053
+ },
5054
+ {
5055
+ "name": "change:month",
5056
+ "type": {
5057
+ "text": "CustomEvent<string>"
5058
+ },
5059
+ "description": "Fired with the displayed month as `YYYY-MM` whenever it changes, and\nwhen the panel opens — the signal to load that month's `disabled-dates`."
5060
+ },
5061
+ {
5062
+ "name": "change:text",
5063
+ "type": {
5064
+ "text": "CustomEvent<CDatePickerText>"
5065
+ },
5066
+ "description": "Fired on every commit of typed text (Enter or leaving the input) with the\ntext as typed — `{ start, end }` under `range`. Read `badInput` to tell\nwhether it named a date that can be picked."
5067
+ },
5068
+ {
5069
+ "name": "input",
5070
+ "type": {
5071
+ "text": "CustomEvent<void>"
5072
+ },
5073
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
5074
+ },
5075
+ {
5076
+ "name": "update:value",
5077
+ "type": {
5078
+ "text": "CustomEvent<CDatePickerValue>"
5079
+ },
5080
+ "description": "Fired alongside `change` with the same detail — the `v-model` contract."
5081
+ }
5082
+ ],
5083
+ "members": [
5084
+ {
5085
+ "kind": "field",
5086
+ "name": "clearable",
5087
+ "privacy": "public",
5088
+ "description": "Make the value clearable",
5089
+ "type": {
5090
+ "text": "boolean"
5091
+ },
5092
+ "default": "false"
5093
+ },
5094
+ {
5095
+ "kind": "field",
5096
+ "name": "disabled",
5097
+ "privacy": "public",
5098
+ "description": "Disable the field",
5099
+ "type": {
5100
+ "text": "boolean"
5101
+ },
5102
+ "default": "false"
5103
+ },
5104
+ {
5105
+ "kind": "field",
5106
+ "name": "disabledDates",
5107
+ "privacy": "public",
5108
+ "description": "Dates that cannot be picked: ISO dates and inclusive `{ start, end }`\nspans. Arrays have no attribute form — bind as a DOM property",
5109
+ "type": {
5110
+ "text": "CDatePickerDisabledDate[]"
5111
+ },
5112
+ "default": "() => []"
5113
+ },
5114
+ {
5115
+ "kind": "field",
5116
+ "name": "errorMessage",
5117
+ "privacy": "public",
5118
+ "description": "Error message shown in place of the hint while the field is invalid",
5119
+ "type": {
5120
+ "text": "string"
5121
+ },
5122
+ "default": "''",
5123
+ "csc": {
5124
+ "freeform": true
5125
+ }
5126
+ },
5127
+ {
5128
+ "kind": "field",
5129
+ "name": "firstDayOfWeek",
5130
+ "privacy": "public",
5131
+ "description": "First day of the week in the calendar, numbered like `Date.getDay()`:\n0 = Sunday, 1 = Monday … 6 = Saturday",
5132
+ "type": {
5133
+ "text": "0 | 1 | 2 | 3 | 4 | 5 | 6"
5134
+ },
5135
+ "default": "1",
5136
+ "csc": {
5137
+ "typeAlias": "CDatePickerWeekday",
5138
+ "defaultable": true
5139
+ }
5140
+ },
5141
+ {
5142
+ "kind": "field",
5143
+ "name": "format",
5144
+ "privacy": "public",
5145
+ "description": "How dates are shown and read from typing: a pattern of the tokens `d`,\n`dd`, `M`, `MM` and `yyyy` with any separators, e.g. `yyyy-MM-dd`",
5146
+ "type": {
5147
+ "text": "string"
5148
+ },
5149
+ "default": "'dd.MM.yyyy'",
5150
+ "csc": {
5151
+ "freeform": true,
5152
+ "defaultable": true
5153
+ }
5154
+ },
5155
+ {
5156
+ "kind": "field",
5157
+ "name": "hideDetails",
5158
+ "privacy": "public",
5159
+ "description": "Hide the hint and error messages",
5160
+ "type": {
5161
+ "text": "boolean"
5162
+ },
5163
+ "default": "false",
5164
+ "csc": {
5165
+ "defaultable": true
5166
+ }
5167
+ },
5168
+ {
5169
+ "kind": "field",
5170
+ "name": "hint",
5171
+ "privacy": "public",
5172
+ "description": "Hint text for the field",
5173
+ "type": {
5174
+ "text": "string"
5175
+ },
5176
+ "default": "''",
5177
+ "csc": {
5178
+ "freeform": true
5179
+ }
5180
+ },
5181
+ {
5182
+ "kind": "field",
5183
+ "name": "hostId",
5184
+ "privacy": "public",
5185
+ "description": "Id of the element",
5186
+ "type": {
5187
+ "text": "string"
5188
+ },
5189
+ "default": "''",
5190
+ "csc": {
5191
+ "freeform": true
5192
+ }
5193
+ },
5194
+ {
5195
+ "kind": "field",
5196
+ "name": "isDateDisabled",
5197
+ "privacy": "public",
5198
+ "description": "Predicate for dates that cannot be picked (weekends, say); receives an\nISO date. Functions have no attribute form — bind as a DOM property",
5199
+ "type": {
5200
+ "text": "(iso: string) => boolean"
5201
+ }
5202
+ },
5203
+ {
5204
+ "kind": "field",
5205
+ "name": "label",
5206
+ "privacy": "public",
5207
+ "description": "Element label",
5208
+ "type": {
5209
+ "text": "string"
5210
+ },
5211
+ "default": "''",
5212
+ "csc": {
5213
+ "freeform": true
5214
+ }
5215
+ },
5216
+ {
5217
+ "kind": "field",
5218
+ "name": "labelOnTop",
5219
+ "privacy": "public",
5220
+ "description": "Label on top of the field",
5221
+ "type": {
5222
+ "text": "boolean"
5223
+ },
5224
+ "default": "false",
5225
+ "csc": {
5226
+ "defaultable": true
5227
+ }
5228
+ },
5229
+ {
5230
+ "kind": "field",
5231
+ "name": "max",
5232
+ "privacy": "public",
5233
+ "description": "The latest date that can be picked or typed, as an ISO date; also bounds\nthe calendar's navigation",
5234
+ "type": {
5235
+ "text": "string"
5236
+ },
5237
+ "default": "''",
5238
+ "csc": {
5239
+ "freeform": true
5240
+ }
5241
+ },
5242
+ {
5243
+ "kind": "field",
5244
+ "name": "min",
5245
+ "privacy": "public",
5246
+ "description": "The earliest date that can be picked or typed, as an ISO date; also\nbounds the calendar's navigation",
5247
+ "type": {
5248
+ "text": "string"
5249
+ },
5250
+ "default": "''",
5251
+ "csc": {
5252
+ "freeform": true
5253
+ }
5254
+ },
5255
+ {
5256
+ "kind": "field",
5257
+ "name": "name",
5258
+ "privacy": "public",
5259
+ "description": "Input field name",
5260
+ "type": {
5261
+ "text": "string"
5262
+ },
5263
+ "default": "''",
5264
+ "csc": {
5265
+ "freeform": true
5266
+ }
5267
+ },
5268
+ {
5269
+ "kind": "field",
5270
+ "name": "placeholder",
5271
+ "privacy": "public",
5272
+ "description": "Placeholder of the input; the `format` pattern when empty",
5273
+ "type": {
5274
+ "text": "string"
5275
+ },
5276
+ "default": "''",
5277
+ "csc": {
5278
+ "freeform": true
5279
+ }
5280
+ },
5281
+ {
5282
+ "kind": "field",
5283
+ "name": "range",
5284
+ "privacy": "public",
5285
+ "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
5286
+ "type": {
5287
+ "text": "boolean"
5288
+ },
5289
+ "default": "false"
5290
+ },
5291
+ {
5292
+ "kind": "field",
5293
+ "name": "required",
5294
+ "privacy": "public",
5295
+ "description": "Set the field as required",
5296
+ "type": {
5297
+ "text": "boolean"
5298
+ },
5299
+ "default": "false"
5300
+ },
5301
+ {
5302
+ "kind": "field",
5303
+ "name": "shadow",
5304
+ "privacy": "public",
5305
+ "description": "Shadow variant",
5306
+ "type": {
5307
+ "text": "boolean"
5308
+ },
5309
+ "default": "false",
5310
+ "csc": {
5311
+ "defaultable": true
5312
+ }
5313
+ },
5314
+ {
5315
+ "kind": "field",
5316
+ "name": "showToday",
5317
+ "privacy": "public",
5318
+ "description": "Show a Today button under the calendar that picks today (\"This month\"\nunder `type=\"month\"`)",
5319
+ "type": {
5320
+ "text": "boolean"
5321
+ },
5322
+ "default": "false",
5323
+ "csc": {
5324
+ "defaultable": true
5325
+ }
5326
+ },
5327
+ {
5328
+ "kind": "field",
5329
+ "name": "showWeekNumbers",
5330
+ "privacy": "public",
5331
+ "description": "Show ISO 8601 week numbers beside the calendar rows (meaningful with a\nMonday week start)",
5332
+ "type": {
5333
+ "text": "boolean"
5334
+ },
5335
+ "default": "false",
5336
+ "csc": {
5337
+ "defaultable": true
5338
+ }
5339
+ },
5340
+ {
5341
+ "kind": "field",
5342
+ "name": "size",
5343
+ "privacy": "public",
5344
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
5345
+ "type": {
5346
+ "text": "'default' | 'small'"
5347
+ },
5348
+ "default": "'default'",
5349
+ "csc": {
5350
+ "typeAlias": "CFieldSize",
5351
+ "defaultable": true
5352
+ }
5353
+ },
5354
+ {
5355
+ "kind": "field",
5356
+ "name": "texts",
5357
+ "privacy": "public",
5358
+ "description": "UI text overrides (i18n), merged over the names `Intl` gives for the\npage's `lang` and the English defaults. Objects have no attribute form —\nbind as a DOM property",
5359
+ "type": {
5360
+ "text": "CDatePickerTexts"
5361
+ },
5362
+ "default": "{}",
5363
+ "csc": {
5364
+ "defaultable": true
5365
+ }
5366
+ },
5367
+ {
5368
+ "kind": "field",
5369
+ "name": "type",
5370
+ "privacy": "public",
5371
+ "description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
5372
+ "type": {
5373
+ "text": "'date' | 'month'"
5374
+ },
5375
+ "default": "'date'",
5376
+ "csc": {
5377
+ "typeAlias": "CDatePickerType"
5378
+ }
5379
+ },
5380
+ {
5381
+ "kind": "field",
5382
+ "name": "valid",
5383
+ "privacy": "public",
5384
+ "description": "Set the validity of the field",
5385
+ "type": {
5386
+ "text": "boolean"
5387
+ },
5388
+ "default": "true"
5389
+ },
5390
+ {
5391
+ "kind": "field",
5392
+ "name": "value",
5393
+ "privacy": "public",
5394
+ "description": "The date as an ISO `YYYY-MM-DD` string (an ISO `YYYY-MM` month under\n`type=\"month\"`), or `{ start, end }` under `range`; `null` when empty",
5395
+ "type": {
5396
+ "text": "CDatePickerValue"
5397
+ },
5398
+ "default": "null"
5399
+ },
5400
+ {
5401
+ "kind": "field",
5402
+ "name": "badInput",
5403
+ "privacy": "public",
5404
+ "readonly": true,
5405
+ "type": {
5406
+ "text": "boolean"
5407
+ },
5408
+ "description": "Whether the committed text names no date that can be picked — the value is then `null` (CONTEXT.md \"Bad input\")."
5409
+ }
5410
+ ],
5411
+ "slots": []
5412
+ }
5413
+ ],
5414
+ "exports": [
5415
+ {
5416
+ "declaration": {
5417
+ "module": "src/components/c-date-picker/CDatePicker.vue",
5418
+ "name": "CDatePicker"
5419
+ },
5420
+ "kind": "js",
5421
+ "name": "CDatePicker"
5422
+ },
5423
+ {
5424
+ "declaration": {
5425
+ "module": "src/components/c-date-picker/CDatePicker.vue",
5426
+ "name": "CDatePicker"
5427
+ },
5428
+ "kind": "custom-element-definition",
5429
+ "name": "c-date-picker"
5430
+ }
5431
+ ],
5432
+ "kind": "javascript-module",
5433
+ "path": "src/components/c-date-picker/CDatePicker.vue"
5434
+ },
5435
+ {
5436
+ "declarations": [
5437
+ {
5438
+ "customElement": true,
5439
+ "kind": "class",
5440
+ "name": "CDivider",
5441
+ "tagName": "c-divider",
5442
+ "attributes": [
5443
+ {
5444
+ "fieldName": "vertical",
5445
+ "name": "vertical",
5446
+ "description": "Render a vertical separator instead of the default horizontal one.",
5447
+ "type": {
5448
+ "text": "boolean"
5449
+ },
5450
+ "default": "false"
5451
+ }
5452
+ ],
5453
+ "cssParts": [
5454
+ {
5455
+ "name": "root",
5456
+ "description": "The separator line element itself"
5457
+ }
5458
+ ],
5459
+ "cssProperties": [],
5460
+ "cssStates": [],
5461
+ "events": [],
5462
+ "members": [
5463
+ {
5464
+ "kind": "field",
5465
+ "name": "vertical",
5466
+ "privacy": "public",
5467
+ "description": "Render a vertical separator instead of the default horizontal one.",
5468
+ "type": {
5469
+ "text": "boolean"
5470
+ },
5471
+ "default": "false"
5472
+ }
5473
+ ],
5474
+ "slots": []
5475
+ }
5476
+ ],
5477
+ "exports": [
5478
+ {
5479
+ "declaration": {
5480
+ "module": "src/components/c-divider/CDivider.vue",
5481
+ "name": "CDivider"
5482
+ },
5483
+ "kind": "js",
5484
+ "name": "CDivider"
5485
+ },
5486
+ {
5487
+ "declaration": {
5488
+ "module": "src/components/c-divider/CDivider.vue",
5489
+ "name": "CDivider"
5490
+ },
5491
+ "kind": "custom-element-definition",
5492
+ "name": "c-divider"
5493
+ }
5494
+ ],
5495
+ "kind": "javascript-module",
5496
+ "path": "src/components/c-divider/CDivider.vue"
5497
+ },
5498
+ {
5499
+ "declarations": [
5500
+ {
5501
+ "customElement": true,
5502
+ "kind": "class",
5503
+ "name": "CDropdown",
5504
+ "tagName": "c-dropdown",
5505
+ "attributes": [
5506
+ {
5507
+ "fieldName": "closeLabel",
5508
+ "name": "close-label",
5509
+ "description": "Accessible label of the fullscreen panel's close button (narrow viewports)",
5510
+ "type": {
5511
+ "text": "string"
5512
+ },
5513
+ "default": "'Close'",
5514
+ "csc": {
5515
+ "freeform": true
5516
+ }
5517
+ },
5518
+ {
5519
+ "fieldName": "dropdownItemType",
5520
+ "name": "dropdown-item-type",
5521
+ "description": "Whether items are <c-option> elements or plain objects",
5522
+ "type": {
5523
+ "text": "'item' | 'option'"
5524
+ },
5525
+ "default": "'item'",
5526
+ "csc": {
5527
+ "typeAlias": "CDropdownItemType"
5528
+ }
5529
+ },
5530
+ {
5531
+ "fieldName": "hostId",
5532
+ "name": "host-id",
5533
+ "description": "Id used to build option/announce element ids",
5534
+ "type": {
5535
+ "text": "string"
5536
+ },
5537
+ "default": "''",
5538
+ "csc": {
5539
+ "freeform": true
5540
+ }
4353
5541
  },
4354
5542
  {
4355
- "name": "change:text",
5543
+ "fieldName": "index",
5544
+ "name": "index",
5545
+ "description": "Current highlighted index; `-1` (`SELECT_ALL_INDEX`) is the select-all row",
4356
5546
  "type": {
4357
- "text": "CustomEvent<CDatePickerText>"
5547
+ "text": "null | number"
4358
5548
  },
4359
- "description": "Fired on every commit of typed text (Enter or leaving the input) with the\ntext as typed — `{ start, end }` under `range`. Read `badInput` to tell\nwhether it named a date that can be picked."
5549
+ "default": "null"
4360
5550
  },
4361
5551
  {
4362
- "name": "input",
5552
+ "fieldName": "items",
5553
+ "name": "items",
5554
+ "description": "Dropdown options: a NodeList of <c-option> or an array of items",
4363
5555
  "type": {
4364
- "text": "CustomEvent<void>"
5556
+ "text": "ArrayLike<DropdownItem>"
4365
5557
  },
4366
- "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
5558
+ "default": "() => []"
4367
5559
  },
4368
5560
  {
4369
- "name": "update:value",
5561
+ "fieldName": "itemsPerPage",
5562
+ "name": "items-per-page",
5563
+ "description": "Items per page before adding scroll",
4370
5564
  "type": {
4371
- "text": "CustomEvent<CDatePickerValue>"
5565
+ "text": "number"
4372
5566
  },
4373
- "description": "Fired alongside `change` with the same detail — the `v-model` contract."
4374
- }
4375
- ],
4376
- "members": [
5567
+ "default": "0"
5568
+ },
4377
5569
  {
4378
- "kind": "field",
4379
- "name": "clearable",
4380
- "privacy": "public",
4381
- "description": "Make the value clearable",
5570
+ "fieldName": "label",
5571
+ "name": "label",
5572
+ "description": "The parent field's label, shown as the fullscreen panel's heading (narrow viewports)",
4382
5573
  "type": {
4383
- "text": "boolean"
5574
+ "text": "string"
4384
5575
  },
4385
- "default": "false"
5576
+ "default": "''",
5577
+ "csc": {
5578
+ "freeform": true
5579
+ }
4386
5580
  },
4387
5581
  {
4388
- "kind": "field",
4389
- "name": "disabled",
4390
- "privacy": "public",
4391
- "description": "Disable the field",
5582
+ "fieldName": "multiple",
5583
+ "name": "multiple",
5584
+ "description": "Multi-select mode: rows toggle instead of committing, each carries a\ndecorative checkbox indicator, and the listbox is `aria-multiselectable`",
4392
5585
  "type": {
4393
5586
  "text": "boolean"
4394
5587
  },
4395
5588
  "default": "false"
4396
5589
  },
4397
5590
  {
4398
- "kind": "field",
4399
- "name": "disabledDates",
4400
- "privacy": "public",
4401
- "description": "Dates that cannot be picked: ISO dates and inclusive `{ start, end }`\nspans. Arrays have no attribute form — bind as a DOM property",
5591
+ "fieldName": "parent",
5592
+ "name": "parent",
5593
+ "description": "Dropdown parent (the c-select / c-autocomplete host element)",
4402
5594
  "type": {
4403
- "text": "CDatePickerDisabledDate[]"
5595
+ "text": "HTMLElement | null"
4404
5596
  },
4405
- "default": "() => []"
5597
+ "default": "null"
4406
5598
  },
4407
5599
  {
4408
- "kind": "field",
4409
- "name": "errorMessage",
4410
- "privacy": "public",
4411
- "description": "Error message shown in place of the hint while the field is invalid",
5600
+ "fieldName": "selectAllRow",
5601
+ "name": "select-all-row",
5602
+ "description": "The select-all row in `multiple` mode, as the parent computes it (label,\ntri-state, counts for the live region); `null` renders no row",
4412
5603
  "type": {
4413
- "text": "string"
5604
+ "text": "CDropdownSelectAllRow | null"
4414
5605
  },
4415
- "default": "''",
4416
- "csc": {
4417
- "freeform": true
4418
- }
5606
+ "default": "null"
4419
5607
  },
4420
5608
  {
4421
- "kind": "field",
4422
- "name": "firstDayOfWeek",
4423
- "privacy": "public",
4424
- "description": "First day of the week in the calendar, numbered like `Date.getDay()`:\n0 = Sunday, 1 = Monday … 6 = Saturday",
5609
+ "fieldName": "type",
5610
+ "name": "type",
5611
+ "description": "Parent type — drives autocomplete-only behaviour (highlight, messages)",
4425
5612
  "type": {
4426
- "text": "0 | 1 | 2 | 3 | 4 | 5 | 6"
5613
+ "text": "'autocomplete' | 'select'"
4427
5614
  },
4428
- "default": "1",
5615
+ "default": "'select'",
4429
5616
  "csc": {
4430
- "typeAlias": "CDatePickerWeekday",
4431
- "defaultable": true
5617
+ "typeAlias": "CDropdownParentType"
4432
5618
  }
5619
+ }
5620
+ ],
5621
+ "cssParts": [
5622
+ {
5623
+ "name": "menu",
5624
+ "description": "The positioned dialog surface holding the field and the list"
4433
5625
  },
4434
5626
  {
4435
- "kind": "field",
4436
- "name": "format",
4437
- "privacy": "public",
4438
- "description": "How dates are shown and read from typing: a pattern of the tokens `d`,\n`dd`, `M`, `MM` and `yyyy` with any separators, e.g. `yyyy-MM-dd`",
5627
+ "name": "heading-row",
5628
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
5629
+ },
5630
+ {
5631
+ "name": "heading",
5632
+ "description": "The field label naming the fullscreen panel"
5633
+ },
5634
+ {
5635
+ "name": "close",
5636
+ "description": "The close button of the fullscreen panel"
5637
+ },
5638
+ {
5639
+ "name": "list",
5640
+ "description": "The scrolling listbox"
5641
+ },
5642
+ {
5643
+ "name": "item",
5644
+ "description": "One option row"
5645
+ },
5646
+ {
5647
+ "name": "select-all",
5648
+ "description": "The pinned select-all row at the top of the list in `multiple` mode; carries the same indicator / mark parts as an option row"
5649
+ },
5650
+ {
5651
+ "name": "indicator",
5652
+ "description": "The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together"
5653
+ },
5654
+ {
5655
+ "name": "mark",
5656
+ "description": "The check glyph inside a row indicator; draws with `currentColor`"
5657
+ }
5658
+ ],
5659
+ "cssProperties": [],
5660
+ "cssStates": [],
5661
+ "events": [
5662
+ {
5663
+ "name": "dropdownStateChange",
4439
5664
  "type": {
4440
- "text": "string"
5665
+ "text": "CustomEvent<boolean>"
4441
5666
  },
4442
- "default": "'dd.MM.yyyy'",
4443
- "csc": {
4444
- "freeform": true,
4445
- "defaultable": true
4446
- }
5667
+ "description": "Fired when the dropdown menu opens or closes; the detail is the new open\nstate. Also dispatched as `dropdown-state-change` — bind that name in Vue templates."
4447
5668
  },
4448
5669
  {
4449
- "kind": "field",
4450
- "name": "hideDetails",
4451
- "privacy": "public",
4452
- "description": "Hide the hint and error messages",
5670
+ "name": "selectall",
4453
5671
  "type": {
4454
- "text": "boolean"
5672
+ "text": "CustomEvent<void>"
4455
5673
  },
4456
- "default": "false",
4457
- "csc": {
4458
- "defaultable": true
4459
- }
5674
+ "description": "Fired when the select-all row is activated; the parent (c-select) toggles\nevery listed enabled option."
4460
5675
  },
4461
5676
  {
4462
- "kind": "field",
4463
- "name": "hint",
4464
- "privacy": "public",
4465
- "description": "Hint text for the field",
5677
+ "name": "selectOption",
4466
5678
  "type": {
4467
- "text": "string"
5679
+ "text": "CustomEvent<{ name: string; value: number | string }>"
4468
5680
  },
4469
- "default": "''",
4470
- "csc": {
4471
- "freeform": true
4472
- }
4473
- },
5681
+ "description": "Fired when the user selects an option row, carrying the option's name\nand value for the parent (c-select) to commit. Also dispatched as `select-option` — bind that name in Vue templates."
5682
+ }
5683
+ ],
5684
+ "members": [
4474
5685
  {
4475
5686
  "kind": "field",
4476
- "name": "hostId",
5687
+ "name": "closeLabel",
4477
5688
  "privacy": "public",
4478
- "description": "Id of the element",
5689
+ "description": "Accessible label of the fullscreen panel's close button (narrow viewports)",
4479
5690
  "type": {
4480
5691
  "text": "string"
4481
5692
  },
4482
- "default": "''",
5693
+ "default": "'Close'",
4483
5694
  "csc": {
4484
5695
  "freeform": true
4485
5696
  }
4486
5697
  },
4487
5698
  {
4488
5699
  "kind": "field",
4489
- "name": "isDateDisabled",
5700
+ "name": "dropdownItemType",
4490
5701
  "privacy": "public",
4491
- "description": "Predicate for dates that cannot be picked (weekends, say); receives an\nISO date. Functions have no attribute form — bind as a DOM property",
5702
+ "description": "Whether items are <c-option> elements or plain objects",
4492
5703
  "type": {
4493
- "text": "(iso: string) => boolean"
5704
+ "text": "'item' | 'option'"
5705
+ },
5706
+ "default": "'item'",
5707
+ "csc": {
5708
+ "typeAlias": "CDropdownItemType"
4494
5709
  }
4495
5710
  },
4496
5711
  {
4497
5712
  "kind": "field",
4498
- "name": "label",
5713
+ "name": "hostId",
4499
5714
  "privacy": "public",
4500
- "description": "Element label",
5715
+ "description": "Id used to build option/announce element ids",
4501
5716
  "type": {
4502
5717
  "text": "string"
4503
5718
  },
@@ -4508,61 +5723,39 @@
4508
5723
  },
4509
5724
  {
4510
5725
  "kind": "field",
4511
- "name": "labelOnTop",
4512
- "privacy": "public",
4513
- "description": "Label on top of the field",
4514
- "type": {
4515
- "text": "boolean"
4516
- },
4517
- "default": "false",
4518
- "csc": {
4519
- "defaultable": true
4520
- }
4521
- },
4522
- {
4523
- "kind": "field",
4524
- "name": "max",
5726
+ "name": "index",
4525
5727
  "privacy": "public",
4526
- "description": "The latest date that can be picked or typed, as an ISO date; also bounds\nthe calendar's navigation",
5728
+ "description": "Current highlighted index; `-1` (`SELECT_ALL_INDEX`) is the select-all row",
4527
5729
  "type": {
4528
- "text": "string"
5730
+ "text": "null | number"
4529
5731
  },
4530
- "default": "''",
4531
- "csc": {
4532
- "freeform": true
4533
- }
5732
+ "default": "null"
4534
5733
  },
4535
5734
  {
4536
5735
  "kind": "field",
4537
- "name": "min",
5736
+ "name": "items",
4538
5737
  "privacy": "public",
4539
- "description": "The earliest date that can be picked or typed, as an ISO date; also\nbounds the calendar's navigation",
5738
+ "description": "Dropdown options: a NodeList of <c-option> or an array of items",
4540
5739
  "type": {
4541
- "text": "string"
5740
+ "text": "ArrayLike<DropdownItem>"
4542
5741
  },
4543
- "default": "''",
4544
- "csc": {
4545
- "freeform": true
4546
- }
5742
+ "default": "() => []"
4547
5743
  },
4548
5744
  {
4549
5745
  "kind": "field",
4550
- "name": "name",
5746
+ "name": "itemsPerPage",
4551
5747
  "privacy": "public",
4552
- "description": "Input field name",
5748
+ "description": "Items per page before adding scroll",
4553
5749
  "type": {
4554
- "text": "string"
5750
+ "text": "number"
4555
5751
  },
4556
- "default": "''",
4557
- "csc": {
4558
- "freeform": true
4559
- }
5752
+ "default": "0"
4560
5753
  },
4561
5754
  {
4562
5755
  "kind": "field",
4563
- "name": "placeholder",
5756
+ "name": "label",
4564
5757
  "privacy": "public",
4565
- "description": "Placeholder of the input; the `format` pattern when empty",
5758
+ "description": "The parent field's label, shown as the fullscreen panel's heading (narrow viewports)",
4566
5759
  "type": {
4567
5760
  "text": "string"
4568
5761
  },
@@ -4573,9 +5766,9 @@
4573
5766
  },
4574
5767
  {
4575
5768
  "kind": "field",
4576
- "name": "range",
5769
+ "name": "multiple",
4577
5770
  "privacy": "public",
4578
- "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
5771
+ "description": "Multi-select mode: rows toggle instead of committing, each carries a\ndecorative checkbox indicator, and the listbox is `aria-multiselectable`",
4579
5772
  "type": {
4580
5773
  "text": "boolean"
4581
5774
  },
@@ -4583,247 +5776,186 @@
4583
5776
  },
4584
5777
  {
4585
5778
  "kind": "field",
4586
- "name": "required",
5779
+ "name": "parent",
4587
5780
  "privacy": "public",
4588
- "description": "Set the field as required",
5781
+ "description": "Dropdown parent (the c-select / c-autocomplete host element)",
4589
5782
  "type": {
4590
- "text": "boolean"
5783
+ "text": "HTMLElement | null"
4591
5784
  },
4592
- "default": "false"
5785
+ "default": "null"
4593
5786
  },
4594
5787
  {
4595
5788
  "kind": "field",
4596
- "name": "shadow",
5789
+ "name": "selectAllRow",
4597
5790
  "privacy": "public",
4598
- "description": "Shadow variant",
5791
+ "description": "The select-all row in `multiple` mode, as the parent computes it (label,\ntri-state, counts for the live region); `null` renders no row",
4599
5792
  "type": {
4600
- "text": "boolean"
5793
+ "text": "CDropdownSelectAllRow | null"
4601
5794
  },
4602
- "default": "false",
4603
- "csc": {
4604
- "defaultable": true
4605
- }
5795
+ "default": "null"
4606
5796
  },
4607
5797
  {
4608
5798
  "kind": "field",
4609
- "name": "showToday",
5799
+ "name": "selected",
4610
5800
  "privacy": "public",
4611
- "description": "Show a Today button under the calendar that picks today (\"This month\"\nunder `type=\"month\"`)",
5801
+ "description": "Values of the currently selected items — the picked values in `multiple`\nmode, the single value otherwise; drives each row's `aria-selected`, its\nindicator and the single-mode selected-row check",
4612
5802
  "type": {
4613
- "text": "boolean"
5803
+ "text": "(number | string)[]"
4614
5804
  },
4615
- "default": "false",
4616
- "csc": {
4617
- "defaultable": true
4618
- }
5805
+ "default": "() => []"
4619
5806
  },
4620
5807
  {
4621
5808
  "kind": "field",
4622
- "name": "showWeekNumbers",
5809
+ "name": "type",
4623
5810
  "privacy": "public",
4624
- "description": "Show ISO 8601 week numbers beside the calendar rows (meaningful with a\nMonday week start)",
5811
+ "description": "Parent type — drives autocomplete-only behaviour (highlight, messages)",
4625
5812
  "type": {
4626
- "text": "boolean"
5813
+ "text": "'autocomplete' | 'select'"
4627
5814
  },
4628
- "default": "false",
5815
+ "default": "'select'",
4629
5816
  "csc": {
4630
- "defaultable": true
5817
+ "typeAlias": "CDropdownParentType"
4631
5818
  }
4632
5819
  },
4633
5820
  {
4634
- "kind": "field",
4635
- "name": "size",
5821
+ "kind": "method",
5822
+ "name": "close",
4636
5823
  "privacy": "public",
4637
- "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
4638
- "type": {
4639
- "text": "'default' | 'small'"
4640
- },
4641
- "default": "'default'",
5824
+ "description": "Close dropdown",
4642
5825
  "csc": {
4643
- "typeAlias": "CFieldSize",
4644
- "defaultable": true
5826
+ "signature": "()"
4645
5827
  }
4646
5828
  },
4647
5829
  {
4648
- "kind": "field",
4649
- "name": "texts",
5830
+ "kind": "method",
5831
+ "name": "focusItem",
4650
5832
  "privacy": "public",
4651
- "description": "UI text overrides (i18n), merged over the names `Intl` gives for the\npage's `lang` and the English defaults. Objects have no attribute form —\nbind as a DOM property",
4652
- "type": {
4653
- "text": "CDatePickerTexts"
4654
- },
4655
- "default": "{}",
4656
5833
  "csc": {
4657
- "defaultable": true
5834
+ "signature": "(index: number)"
4658
5835
  }
4659
5836
  },
4660
5837
  {
4661
- "kind": "field",
4662
- "name": "type",
5838
+ "kind": "method",
5839
+ "name": "open",
4663
5840
  "privacy": "public",
4664
- "description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
4665
- "type": {
4666
- "text": "'date' | 'month'"
4667
- },
4668
- "default": "'date'",
5841
+ "description": "Open dropdown",
4669
5842
  "csc": {
4670
- "typeAlias": "CDatePickerType"
5843
+ "signature": "()"
4671
5844
  }
4672
5845
  },
4673
5846
  {
4674
- "kind": "field",
4675
- "name": "valid",
5847
+ "kind": "method",
5848
+ "name": "selectItem",
4676
5849
  "privacy": "public",
4677
- "description": "Set the validity of the field",
4678
- "type": {
4679
- "text": "boolean"
4680
- },
4681
- "default": "true"
5850
+ "description": "Select item",
5851
+ "csc": {
5852
+ "signature": "(index: number)"
5853
+ }
4682
5854
  },
4683
5855
  {
4684
- "kind": "field",
4685
- "name": "value",
5856
+ "kind": "method",
5857
+ "name": "setStatusText",
4686
5858
  "privacy": "public",
4687
- "description": "The date as an ISO `YYYY-MM-DD` string (an ISO `YYYY-MM` month under\n`type=\"month\"`), or `{ start, end }` under `range`; `null` when empty",
4688
- "type": {
4689
- "text": "CDatePickerValue"
4690
- },
4691
- "default": "null"
5859
+ "csc": {
5860
+ "signature": "(text: string)"
5861
+ }
4692
5862
  },
4693
5863
  {
4694
- "kind": "field",
4695
- "name": "badInput",
5864
+ "kind": "method",
5865
+ "name": "updateList",
4696
5866
  "privacy": "public",
4697
- "readonly": true,
4698
- "type": {
4699
- "text": "boolean"
4700
- },
4701
- "description": "Whether the committed text names no date that can be picked — the value is then `null` (CONTEXT.md \"Bad input\")."
5867
+ "description": "Update list items",
5868
+ "csc": {
5869
+ "signature": "(reset = false)"
5870
+ }
4702
5871
  }
4703
5872
  ],
4704
- "slots": []
4705
- }
4706
- ],
4707
- "exports": [
4708
- {
4709
- "declaration": {
4710
- "module": "src/components/c-date-picker/CDatePicker.vue",
4711
- "name": "CDatePicker"
4712
- },
4713
- "kind": "js",
4714
- "name": "CDatePicker"
4715
- },
4716
- {
4717
- "declaration": {
4718
- "module": "src/components/c-date-picker/CDatePicker.vue",
4719
- "name": "CDatePicker"
4720
- },
4721
- "kind": "custom-element-definition",
4722
- "name": "c-date-picker"
4723
- }
4724
- ],
4725
- "kind": "javascript-module",
4726
- "path": "src/components/c-date-picker/CDatePicker.vue"
4727
- },
4728
- {
4729
- "declarations": [
4730
- {
4731
- "customElement": true,
4732
- "kind": "class",
4733
- "name": "CDivider",
4734
- "tagName": "c-divider",
4735
- "attributes": [
5873
+ "slots": [
4736
5874
  {
4737
- "fieldName": "vertical",
4738
- "name": "vertical",
4739
- "description": "Render a vertical separator instead of the default horizontal one.",
4740
- "type": {
4741
- "text": "boolean"
4742
- },
4743
- "default": "false"
4744
- }
4745
- ],
4746
- "cssParts": [
5875
+ "name": "default",
5876
+ "description": "The anchor c-input of the parent select / autocomplete, rendered inline while the menu is closed"
5877
+ },
4747
5878
  {
4748
- "name": "root",
4749
- "description": "The separator line element itself"
4750
- }
4751
- ],
4752
- "cssProperties": [],
4753
- "cssStates": [],
4754
- "events": [],
4755
- "members": [
5879
+ "name": "input-top",
5880
+ "description": "Target the c-input is moved into when the menu opens below the field"
5881
+ },
4756
5882
  {
4757
- "kind": "field",
4758
- "name": "vertical",
4759
- "privacy": "public",
4760
- "description": "Render a vertical separator instead of the default horizontal one.",
4761
- "type": {
4762
- "text": "boolean"
4763
- },
4764
- "default": "false"
5883
+ "name": "input-bottom",
5884
+ "description": "Target the c-input is moved into when the menu opens above the field"
4765
5885
  }
4766
- ],
4767
- "slots": []
5886
+ ]
4768
5887
  }
4769
5888
  ],
4770
5889
  "exports": [
4771
5890
  {
4772
5891
  "declaration": {
4773
- "module": "src/components/c-divider/CDivider.vue",
4774
- "name": "CDivider"
5892
+ "module": "src/components/c-dropdown/CDropdown.vue",
5893
+ "name": "CDropdown"
4775
5894
  },
4776
5895
  "kind": "js",
4777
- "name": "CDivider"
5896
+ "name": "CDropdown"
4778
5897
  },
4779
5898
  {
4780
5899
  "declaration": {
4781
- "module": "src/components/c-divider/CDivider.vue",
4782
- "name": "CDivider"
5900
+ "module": "src/components/c-dropdown/CDropdown.vue",
5901
+ "name": "CDropdown"
4783
5902
  },
4784
5903
  "kind": "custom-element-definition",
4785
- "name": "c-divider"
5904
+ "name": "c-dropdown"
4786
5905
  }
4787
5906
  ],
4788
5907
  "kind": "javascript-module",
4789
- "path": "src/components/c-divider/CDivider.vue"
5908
+ "path": "src/components/c-dropdown/CDropdown.vue"
4790
5909
  },
4791
5910
  {
4792
5911
  "declarations": [
4793
5912
  {
4794
5913
  "customElement": true,
4795
5914
  "kind": "class",
4796
- "name": "CDropdown",
4797
- "tagName": "c-dropdown",
5915
+ "name": "CFileUpload",
5916
+ "tagName": "c-file-upload",
5917
+ "description": "A field the user adds files to by dropping them on it or choosing them from a file dialog — and, given an upload function, the place each file's upload shows its progress.",
5918
+ "csc": {
5919
+ "usage": "docs/c-file-upload/usage.md"
5920
+ },
4798
5921
  "attributes": [
4799
5922
  {
4800
- "fieldName": "closeLabel",
4801
- "name": "close-label",
4802
- "description": "Accessible label of the fullscreen panel's close button (narrow viewports)",
5923
+ "fieldName": "accept",
5924
+ "name": "accept",
5925
+ "description": "The file types the field takes, in the native `accept` syntax: extensions (`.pdf`) and media types (`image/*`, `application/json`), comma separated. It filters the file dialog and is checked again on a drop",
4803
5926
  "type": {
4804
5927
  "text": "string"
4805
5928
  },
4806
- "default": "'Close'",
5929
+ "default": "''",
4807
5930
  "csc": {
4808
5931
  "freeform": true
4809
5932
  }
4810
5933
  },
4811
5934
  {
4812
- "fieldName": "dropdownItemType",
4813
- "name": "dropdown-item-type",
4814
- "description": "Whether items are <c-option> elements or plain objects",
5935
+ "fieldName": "compact",
5936
+ "name": "compact",
5937
+ "description": "Show the drop zone as a control-height row — a \"Choose files\" button and a drop prompt — that lines up with the fields beside it",
4815
5938
  "type": {
4816
- "text": "'item' | 'option'"
5939
+ "text": "boolean"
4817
5940
  },
4818
- "default": "'item'",
5941
+ "default": "false",
4819
5942
  "csc": {
4820
- "typeAlias": "CDropdownItemType"
5943
+ "defaultable": true
4821
5944
  }
4822
5945
  },
4823
5946
  {
4824
- "fieldName": "hostId",
4825
- "name": "host-id",
4826
- "description": "Id used to build option/announce element ids",
5947
+ "fieldName": "disabled",
5948
+ "name": "disabled",
5949
+ "description": "Disable the field. Uploads already running continue",
5950
+ "type": {
5951
+ "text": "boolean"
5952
+ },
5953
+ "default": "false"
5954
+ },
5955
+ {
5956
+ "fieldName": "errorMessage",
5957
+ "name": "error-message",
5958
+ "description": "Error message shown in place of the hint while the field is invalid",
4827
5959
  "type": {
4828
5960
  "text": "string"
4829
5961
  },
@@ -4833,36 +5965,33 @@
4833
5965
  }
4834
5966
  },
4835
5967
  {
4836
- "fieldName": "index",
4837
- "name": "index",
4838
- "description": "Current highlighted index; `-1` (`SELECT_ALL_INDEX`) is the select-all row",
4839
- "type": {
4840
- "text": "null | number"
4841
- },
4842
- "default": "null"
4843
- },
4844
- {
4845
- "fieldName": "items",
4846
- "name": "items",
4847
- "description": "Dropdown options: a NodeList of <c-option> or an array of items",
5968
+ "fieldName": "hideDetails",
5969
+ "name": "hide-details",
5970
+ "description": "Hide the hint and error messages",
4848
5971
  "type": {
4849
- "text": "ArrayLike<DropdownItem>"
5972
+ "text": "boolean"
4850
5973
  },
4851
- "default": "() => []"
5974
+ "default": "false",
5975
+ "csc": {
5976
+ "defaultable": true
5977
+ }
4852
5978
  },
4853
5979
  {
4854
- "fieldName": "itemsPerPage",
4855
- "name": "items-per-page",
4856
- "description": "Items per page before adding scroll",
5980
+ "fieldName": "hint",
5981
+ "name": "hint",
5982
+ "description": "Hint text under the drop zone — the place to name the accepted types and limits",
4857
5983
  "type": {
4858
- "text": "number"
5984
+ "text": "string"
4859
5985
  },
4860
- "default": "0"
5986
+ "default": "''",
5987
+ "csc": {
5988
+ "freeform": true
5989
+ }
4861
5990
  },
4862
5991
  {
4863
5992
  "fieldName": "label",
4864
5993
  "name": "label",
4865
- "description": "The parent field's label, shown as the fullscreen panel's heading (narrow viewports)",
5994
+ "description": "Label of the field",
4866
5995
  "type": {
4867
5996
  "text": "string"
4868
5997
  },
@@ -4872,183 +6001,225 @@
4872
6001
  }
4873
6002
  },
4874
6003
  {
4875
- "fieldName": "multiple",
4876
- "name": "multiple",
4877
- "description": "Multi-select mode: rows toggle instead of committing, each carries a\ndecorative checkbox indicator, and the listbox is `aria-multiselectable`",
6004
+ "fieldName": "manual",
6005
+ "name": "manual",
6006
+ "description": "Hold added files as `local` even with an upload function, until `startUploads()` queues them — for a form that uploads on its own button. Files added after the call wait for the next one",
4878
6007
  "type": {
4879
6008
  "text": "boolean"
4880
6009
  },
4881
6010
  "default": "false"
4882
6011
  },
4883
6012
  {
4884
- "fieldName": "parent",
4885
- "name": "parent",
4886
- "description": "Dropdown parent (the c-select / c-autocomplete host element)",
6013
+ "fieldName": "maxFiles",
6014
+ "name": "max-files",
6015
+ "description": "The most file entries a `multiple` field holds; files beyond it are rejected",
4887
6016
  "type": {
4888
- "text": "HTMLElement | null"
6017
+ "text": "null | number"
4889
6018
  },
4890
6019
  "default": "null"
4891
6020
  },
4892
6021
  {
4893
- "fieldName": "selectAllRow",
4894
- "name": "select-all-row",
4895
- "description": "The select-all row in `multiple` mode, as the parent computes it (label,\ntri-state, counts for the live region); `null` renders no row",
6022
+ "fieldName": "maxSize",
6023
+ "name": "max-size",
6024
+ "description": "The largest file in bytes; a larger one is rejected. Sizes are shown in decimal units, so write the limit in decimal bytes (`10000000` reads \"10 MB\")",
4896
6025
  "type": {
4897
- "text": "CDropdownSelectAllRow | null"
6026
+ "text": "null | number"
4898
6027
  },
4899
6028
  "default": "null"
4900
6029
  },
4901
6030
  {
4902
- "fieldName": "type",
4903
- "name": "type",
4904
- "description": "Parent type — drives autocomplete-only behaviour (highlight, messages)",
6031
+ "fieldName": "multiple",
6032
+ "name": "multiple",
6033
+ "description": "Let a pick or a drop add several files. Without it the field holds one file and a new pick replaces it; the value is a list either way",
4905
6034
  "type": {
4906
- "text": "'autocomplete' | 'select'"
6035
+ "text": "boolean"
4907
6036
  },
4908
- "default": "'select'",
6037
+ "default": "false"
6038
+ },
6039
+ {
6040
+ "fieldName": "required",
6041
+ "name": "required",
6042
+ "description": "Set the field as required",
6043
+ "type": {
6044
+ "text": "boolean"
6045
+ },
6046
+ "default": "false"
6047
+ },
6048
+ {
6049
+ "fieldName": "size",
6050
+ "name": "size",
6051
+ "description": "Height of the `compact` row: the 52px default (the shared control height) or the 36px `small` row. The large drop zone has one size",
6052
+ "type": {
6053
+ "text": "'default' | 'small'"
6054
+ },
6055
+ "default": "'default'",
4909
6056
  "csc": {
4910
- "typeAlias": "CDropdownParentType"
6057
+ "typeAlias": "CFieldSize",
6058
+ "defaultable": true
4911
6059
  }
6060
+ },
6061
+ {
6062
+ "fieldName": "valid",
6063
+ "name": "valid",
6064
+ "description": "Set the validity of the field",
6065
+ "type": {
6066
+ "text": "boolean"
6067
+ },
6068
+ "default": "true"
4912
6069
  }
4913
6070
  ],
4914
6071
  "cssParts": [
4915
6072
  {
4916
- "name": "menu",
4917
- "description": "The positioned dialog surface holding the field and the list"
6073
+ "name": "root",
6074
+ "description": "The field: label, drop zone, message line and file list. The whole of it takes a drop"
4918
6075
  },
4919
6076
  {
4920
- "name": "heading-row",
4921
- "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
6077
+ "name": "label",
6078
+ "description": "The label above the drop zone"
4922
6079
  },
4923
6080
  {
4924
- "name": "heading",
4925
- "description": "The field label naming the fullscreen panel"
6081
+ "name": "drop-zone",
6082
+ "description": "The dashed drop zone — the large button, or the `compact` row"
4926
6083
  },
4927
6084
  {
4928
- "name": "close",
4929
- "description": "The close button of the fullscreen panel"
6085
+ "name": "message",
6086
+ "description": "The hint/error message area under the drop zone (always reserved unless `hide-details`)"
4930
6087
  },
4931
6088
  {
4932
6089
  "name": "list",
4933
- "description": "The scrolling listbox"
4934
- },
4935
- {
4936
- "name": "item",
4937
- "description": "One option row"
6090
+ "description": "The list of file entries and rejected files"
4938
6091
  },
4939
6092
  {
4940
- "name": "select-all",
4941
- "description": "The pinned select-all row at the top of the list in `multiple` mode; carries the same indicator / mark parts as an option row"
6093
+ "name": "entry",
6094
+ "description": "One file entry's row"
4942
6095
  },
4943
6096
  {
4944
- "name": "indicator",
4945
- "description": "The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together"
6097
+ "name": "rejected",
6098
+ "description": "One rejected file's row"
4946
6099
  },
4947
6100
  {
4948
- "name": "mark",
4949
- "description": "The check glyph inside a row indicator; draws with `currentColor`"
6101
+ "name": "progress",
6102
+ "description": "The progress bar along an uploading row's bottom edge"
4950
6103
  }
4951
6104
  ],
4952
6105
  "cssProperties": [],
4953
- "cssStates": [],
6106
+ "cssStates": [
6107
+ {
6108
+ "name": "drag-over",
6109
+ "description": "Present while files are dragged over the field"
6110
+ }
6111
+ ],
4954
6112
  "events": [
4955
6113
  {
4956
- "name": "dropdownStateChange",
6114
+ "name": "change",
4957
6115
  "type": {
4958
- "text": "CustomEvent<boolean>"
6116
+ "text": "CustomEvent<CFileUploadEntry[]>"
4959
6117
  },
4960
- "description": "Fired when the dropdown menu opens or closes; the detail is the new open\nstate. Also dispatched as `dropdown-state-change` — bind that name in Vue templates."
6118
+ "description": "Fired with the new list of file entries."
4961
6119
  },
4962
6120
  {
4963
- "name": "selectall",
6121
+ "name": "input",
4964
6122
  "type": {
4965
6123
  "text": "CustomEvent<void>"
4966
6124
  },
4967
- "description": "Fired when the select-all row is activated; the parent (c-select) toggles\nevery listed enabled option."
6125
+ "description": "Native bubbling input event fired with every value change so a plain Vue\n`v-model` works. No detail."
4968
6126
  },
4969
6127
  {
4970
- "name": "selectOption",
6128
+ "name": "reject",
4971
6129
  "type": {
4972
- "text": "CustomEvent<{ name: string; value: number | string }>"
6130
+ "text": "CustomEvent<CFileUploadRejection[]>"
4973
6131
  },
4974
- "description": "Fired when the user selects an option row, carrying the option's name\nand value for the parent (c-select) to commit. Also dispatched as `select-option` — bind that name in Vue templates."
6132
+ "description": "Fired after an add that refused files, listing each with its reason —\na type outside `accept`, a file over `max-size`, a file already held,\none beyond `max-files`, or a folder. The refused files never join the\nvalue."
6133
+ },
6134
+ {
6135
+ "name": "update:value",
6136
+ "type": {
6137
+ "text": "CustomEvent<CFileUploadEntry[]>"
6138
+ },
6139
+ "description": "v-model contract event, fired with `change`."
4975
6140
  }
4976
6141
  ],
4977
6142
  "members": [
4978
6143
  {
4979
6144
  "kind": "field",
4980
- "name": "closeLabel",
6145
+ "name": "accept",
4981
6146
  "privacy": "public",
4982
- "description": "Accessible label of the fullscreen panel's close button (narrow viewports)",
6147
+ "description": "The file types the field takes, in the native `accept` syntax: extensions (`.pdf`) and media types (`image/*`, `application/json`), comma separated. It filters the file dialog and is checked again on a drop",
4983
6148
  "type": {
4984
6149
  "text": "string"
4985
6150
  },
4986
- "default": "'Close'",
6151
+ "default": "''",
4987
6152
  "csc": {
4988
6153
  "freeform": true
4989
6154
  }
4990
6155
  },
4991
6156
  {
4992
6157
  "kind": "field",
4993
- "name": "dropdownItemType",
6158
+ "name": "compact",
4994
6159
  "privacy": "public",
4995
- "description": "Whether items are <c-option> elements or plain objects",
6160
+ "description": "Show the drop zone as a control-height row — a \"Choose files\" button and a drop prompt — that lines up with the fields beside it",
4996
6161
  "type": {
4997
- "text": "'item' | 'option'"
6162
+ "text": "boolean"
4998
6163
  },
4999
- "default": "'item'",
6164
+ "default": "false",
5000
6165
  "csc": {
5001
- "typeAlias": "CDropdownItemType"
6166
+ "defaultable": true
5002
6167
  }
5003
6168
  },
5004
6169
  {
5005
6170
  "kind": "field",
5006
- "name": "hostId",
6171
+ "name": "disabled",
5007
6172
  "privacy": "public",
5008
- "description": "Id used to build option/announce element ids",
6173
+ "description": "Disable the field. Uploads already running continue",
5009
6174
  "type": {
5010
- "text": "string"
6175
+ "text": "boolean"
5011
6176
  },
5012
- "default": "''",
5013
- "csc": {
5014
- "freeform": true
5015
- }
6177
+ "default": "false"
5016
6178
  },
5017
6179
  {
5018
6180
  "kind": "field",
5019
- "name": "index",
6181
+ "name": "errorMessage",
5020
6182
  "privacy": "public",
5021
- "description": "Current highlighted index; `-1` (`SELECT_ALL_INDEX`) is the select-all row",
6183
+ "description": "Error message shown in place of the hint while the field is invalid",
5022
6184
  "type": {
5023
- "text": "null | number"
6185
+ "text": "string"
5024
6186
  },
5025
- "default": "null"
6187
+ "default": "''",
6188
+ "csc": {
6189
+ "freeform": true
6190
+ }
5026
6191
  },
5027
6192
  {
5028
6193
  "kind": "field",
5029
- "name": "items",
6194
+ "name": "hideDetails",
5030
6195
  "privacy": "public",
5031
- "description": "Dropdown options: a NodeList of <c-option> or an array of items",
6196
+ "description": "Hide the hint and error messages",
5032
6197
  "type": {
5033
- "text": "ArrayLike<DropdownItem>"
6198
+ "text": "boolean"
5034
6199
  },
5035
- "default": "() => []"
6200
+ "default": "false",
6201
+ "csc": {
6202
+ "defaultable": true
6203
+ }
5036
6204
  },
5037
6205
  {
5038
6206
  "kind": "field",
5039
- "name": "itemsPerPage",
6207
+ "name": "hint",
5040
6208
  "privacy": "public",
5041
- "description": "Items per page before adding scroll",
6209
+ "description": "Hint text under the drop zone — the place to name the accepted types and limits",
5042
6210
  "type": {
5043
- "text": "number"
6211
+ "text": "string"
5044
6212
  },
5045
- "default": "0"
6213
+ "default": "''",
6214
+ "csc": {
6215
+ "freeform": true
6216
+ }
5046
6217
  },
5047
6218
  {
5048
6219
  "kind": "field",
5049
6220
  "name": "label",
5050
6221
  "privacy": "public",
5051
- "description": "The parent field's label, shown as the fullscreen panel's heading (narrow viewports)",
6222
+ "description": "Label of the field",
5052
6223
  "type": {
5053
6224
  "text": "string"
5054
6225
  },
@@ -5059,9 +6230,9 @@
5059
6230
  },
5060
6231
  {
5061
6232
  "kind": "field",
5062
- "name": "multiple",
6233
+ "name": "manual",
5063
6234
  "privacy": "public",
5064
- "description": "Multi-select mode: rows toggle instead of committing, each carries a\ndecorative checkbox indicator, and the listbox is `aria-multiselectable`",
6235
+ "description": "Hold added files as `local` even with an upload function, until `startUploads()` queues them — for a form that uploads on its own button. Files added after the call wait for the next one",
5065
6236
  "type": {
5066
6237
  "text": "boolean"
5067
6238
  },
@@ -5069,136 +6240,133 @@
5069
6240
  },
5070
6241
  {
5071
6242
  "kind": "field",
5072
- "name": "parent",
6243
+ "name": "maxFiles",
5073
6244
  "privacy": "public",
5074
- "description": "Dropdown parent (the c-select / c-autocomplete host element)",
6245
+ "description": "The most file entries a `multiple` field holds; files beyond it are rejected",
5075
6246
  "type": {
5076
- "text": "HTMLElement | null"
6247
+ "text": "null | number"
5077
6248
  },
5078
6249
  "default": "null"
5079
6250
  },
5080
6251
  {
5081
6252
  "kind": "field",
5082
- "name": "selectAllRow",
6253
+ "name": "maxSize",
5083
6254
  "privacy": "public",
5084
- "description": "The select-all row in `multiple` mode, as the parent computes it (label,\ntri-state, counts for the live region); `null` renders no row",
6255
+ "description": "The largest file in bytes; a larger one is rejected. Sizes are shown in decimal units, so write the limit in decimal bytes (`10000000` reads \"10 MB\")",
5085
6256
  "type": {
5086
- "text": "CDropdownSelectAllRow | null"
6257
+ "text": "null | number"
5087
6258
  },
5088
6259
  "default": "null"
5089
6260
  },
5090
6261
  {
5091
6262
  "kind": "field",
5092
- "name": "selected",
6263
+ "name": "multiple",
5093
6264
  "privacy": "public",
5094
- "description": "Values of the currently selected items — the picked values in `multiple`\nmode, the single value otherwise; drives each row's `aria-selected`, its\nindicator and the single-mode selected-row check",
6265
+ "description": "Let a pick or a drop add several files. Without it the field holds one file and a new pick replaces it; the value is a list either way",
5095
6266
  "type": {
5096
- "text": "(number | string)[]"
6267
+ "text": "boolean"
5097
6268
  },
5098
- "default": "() => []"
6269
+ "default": "false"
5099
6270
  },
5100
6271
  {
5101
6272
  "kind": "field",
5102
- "name": "type",
6273
+ "name": "required",
5103
6274
  "privacy": "public",
5104
- "description": "Parent type — drives autocomplete-only behaviour (highlight, messages)",
6275
+ "description": "Set the field as required",
5105
6276
  "type": {
5106
- "text": "'autocomplete' | 'select'"
6277
+ "text": "boolean"
5107
6278
  },
5108
- "default": "'select'",
5109
- "csc": {
5110
- "typeAlias": "CDropdownParentType"
5111
- }
6279
+ "default": "false"
5112
6280
  },
5113
6281
  {
5114
- "kind": "method",
5115
- "name": "close",
6282
+ "kind": "field",
6283
+ "name": "size",
5116
6284
  "privacy": "public",
5117
- "description": "Close dropdown",
6285
+ "description": "Height of the `compact` row: the 52px default (the shared control height) or the 36px `small` row. The large drop zone has one size",
6286
+ "type": {
6287
+ "text": "'default' | 'small'"
6288
+ },
6289
+ "default": "'default'",
5118
6290
  "csc": {
5119
- "signature": "()"
6291
+ "typeAlias": "CFieldSize",
6292
+ "defaultable": true
5120
6293
  }
5121
6294
  },
5122
6295
  {
5123
- "kind": "method",
5124
- "name": "focusItem",
6296
+ "kind": "field",
6297
+ "name": "texts",
5125
6298
  "privacy": "public",
6299
+ "description": "UI text overrides (i18n), merged over the English defaults. Objects have no attribute form — bind as a DOM property",
6300
+ "type": {
6301
+ "text": "CFileUploadTexts"
6302
+ },
6303
+ "default": "{}",
5126
6304
  "csc": {
5127
- "signature": "(index: number)"
6305
+ "defaultable": true
5128
6306
  }
5129
6307
  },
5130
6308
  {
5131
- "kind": "method",
5132
- "name": "open",
6309
+ "kind": "field",
6310
+ "name": "upload",
5133
6311
  "privacy": "public",
5134
- "description": "Open dropdown",
5135
- "csc": {
5136
- "signature": "()"
6312
+ "description": "The upload function: called once per added file with an abort signal and a progress callback taking a fraction from 0 to 1; what it resolves to becomes the entry's `result`, an `Error` it rejects with becomes the entry's `error` text. Without one the field only holds the files. A function — bind as a DOM property",
6313
+ "type": {
6314
+ "text": "CFileUploadFunction"
5137
6315
  }
5138
6316
  },
5139
6317
  {
5140
- "kind": "method",
5141
- "name": "selectItem",
6318
+ "kind": "field",
6319
+ "name": "valid",
5142
6320
  "privacy": "public",
5143
- "description": "Select item",
5144
- "csc": {
5145
- "signature": "(index: number)"
5146
- }
6321
+ "description": "Set the validity of the field",
6322
+ "type": {
6323
+ "text": "boolean"
6324
+ },
6325
+ "default": "true"
5147
6326
  },
5148
6327
  {
5149
- "kind": "method",
5150
- "name": "setStatusText",
6328
+ "kind": "field",
6329
+ "name": "value",
5151
6330
  "privacy": "public",
5152
- "csc": {
5153
- "signature": "(text: string)"
5154
- }
6331
+ "description": "The file entries — always a list. A picked file's entry carries the browser `File`; a server file's entry is `{ id, name, size, status: 'done' }`. `''` reads as empty — what a plain `v-model` holding `null` writes. An array — bind as a DOM property",
6332
+ "type": {
6333
+ "text": "CFileUploadEntry[] | null | string"
6334
+ },
6335
+ "default": "null"
5155
6336
  },
5156
6337
  {
5157
6338
  "kind": "method",
5158
- "name": "updateList",
6339
+ "name": "startUploads",
5159
6340
  "privacy": "public",
5160
- "description": "Update list items",
6341
+ "description": "Queue every `local` file entry for the upload function — how a `manual`\nfield starts; files added after the call wait for the next one. Fires the\nvalue events once when it starts any. Does nothing without an upload function",
5161
6342
  "csc": {
5162
- "signature": "(reset = false)"
6343
+ "signature": "(): void"
5163
6344
  }
5164
6345
  }
5165
6346
  ],
5166
- "slots": [
5167
- {
5168
- "name": "default",
5169
- "description": "The anchor c-input of the parent select / autocomplete, rendered inline while the menu is closed"
5170
- },
5171
- {
5172
- "name": "input-top",
5173
- "description": "Target the c-input is moved into when the menu opens below the field"
5174
- },
5175
- {
5176
- "name": "input-bottom",
5177
- "description": "Target the c-input is moved into when the menu opens above the field"
5178
- }
5179
- ]
6347
+ "slots": []
5180
6348
  }
5181
6349
  ],
5182
6350
  "exports": [
5183
6351
  {
5184
6352
  "declaration": {
5185
- "module": "src/components/c-dropdown/CDropdown.vue",
5186
- "name": "CDropdown"
6353
+ "module": "src/components/c-file-upload/CFileUpload.vue",
6354
+ "name": "CFileUpload"
5187
6355
  },
5188
6356
  "kind": "js",
5189
- "name": "CDropdown"
6357
+ "name": "CFileUpload"
5190
6358
  },
5191
6359
  {
5192
6360
  "declaration": {
5193
- "module": "src/components/c-dropdown/CDropdown.vue",
5194
- "name": "CDropdown"
6361
+ "module": "src/components/c-file-upload/CFileUpload.vue",
6362
+ "name": "CFileUpload"
5195
6363
  },
5196
6364
  "kind": "custom-element-definition",
5197
- "name": "c-dropdown"
6365
+ "name": "c-file-upload"
5198
6366
  }
5199
6367
  ],
5200
6368
  "kind": "javascript-module",
5201
- "path": "src/components/c-dropdown/CDropdown.vue"
6369
+ "path": "src/components/c-file-upload/CFileUpload.vue"
5202
6370
  },
5203
6371
  {
5204
6372
  "declarations": [