@cscfi/csc-ui 4.0.0-alpha.11 → 4.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/csc-ui.js +7677 -7042
  2. package/dist/custom-elements.json +337 -58
  3. package/dist/docs/c-autocomplete/usage.md +129 -0
  4. package/dist/docs/c-menu/usage.md +15 -0
  5. package/dist/docs/c-menu-item/usage.md +6 -0
  6. package/dist/docs/c-option-value/usage.md +1 -0
  7. package/dist/docs/c-select/usage.md +104 -0
  8. package/dist/vscode.css-custom-data.json +65 -0
  9. package/dist/vscode.html-custom-data.json +50 -20
  10. package/dist/web-types.json +210 -53
  11. package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +84 -11
  12. package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +2 -2
  13. package/dist-types/components/c-data-table/CDataTable.vue.d.ts +1 -1
  14. package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +32 -4
  15. package/dist-types/components/c-input/CInput.vue.d.ts +1 -1
  16. package/dist-types/components/c-menu/CMenu.vue.d.ts +1 -1
  17. package/dist-types/components/c-popover/CPopover.vue.d.ts +1 -1
  18. package/dist-types/components/c-select/CSelect.vue.d.ts +81 -17
  19. package/dist-types/components/c-side-navigation/CSideNavigation.vue.d.ts +1 -1
  20. package/dist-types/components/c-tag/CTag.vue.d.ts +7 -0
  21. package/dist-types/components/c-text-field/CTextField.vue.d.ts +3 -3
  22. package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +1 -1
  23. package/dist-types/index.d.ts +2 -1
  24. package/dist-types/shared/FormLabel.vue.d.ts +1 -1
  25. package/dist-types/shared/SelectionIndicator.vue.d.ts +21 -0
  26. package/dist-types/shared/optionLabel.d.ts +18 -0
  27. package/dist-types/shared/peekCap.d.ts +35 -0
  28. package/dist-types/shared/selectAll.d.ts +29 -0
  29. package/dist-types/shared/splitMatches.d.ts +18 -0
  30. package/dist-types/tag-name-map.d.ts +110 -18
  31. package/package.json +1 -1
@@ -68,19 +68,33 @@
68
68
  "owner": "c-autocomplete"
69
69
  },
70
70
  {
71
- "declaration": "export interface CAutocompleteOption {\n /** Whether the option is disabled. */\n disabled: boolean;\n /** The option's display label. */\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 * 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}",
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 /** Hide the hint and error messages */\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 /** Items per page before the list scrolls */\n itemsPerPage?: number;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /** Label on top of the input */\n labelOnTop?: boolean;\n /** Show loading state */\n loading?: boolean;\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n /**\n * Message shown when the query matches no options\n *\n * @freeform\n */\n noResultsText?: 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 /** Shadow variant */\n shadow?: boolean;\n /** Field height: the 44px default or the 36px `small` box */\n size?: CFieldSize;\n /** Set the validity of the input */\n valid?: boolean;\n /** Selected value (scalar, or object when return-object is set) */\n value?: CAutocompleteItem | null | number | string;\n}",
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 /** Hide the hint and error messages */\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 /** Items per page before the list scrolls */\n itemsPerPage?: number;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /** Label on top of the input */\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 /** Shadow variant */\n shadow?: boolean;\n /** Field height: the 44px default or the 36px `small` box */\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 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}",
79
79
  "description": "",
80
80
  "kind": "interface",
81
81
  "name": "CAutocompleteProps",
82
82
  "owner": "c-autocomplete"
83
83
  },
84
+ {
85
+ "declaration": "export interface CAutocompleteTexts {\n /** Accessible label of the clear button. */\n clearSelection?: 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}",
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
+ "kind": "interface",
88
+ "name": "CAutocompleteTexts",
89
+ "owner": "c-autocomplete"
90
+ },
91
+ {
92
+ "declaration": "export type CAutocompleteValue =\n | (number | string)[]\n | CAutocompleteItem\n | CAutocompleteItem[]\n | null\n | number\n | string;",
93
+ "description": "Selection value of `c-autocomplete`: the committed option's value — or the\nwhole `{ name, value }` item with `return-object` — and `null` when\ncleared. In `multiple` mode an array of them in the order they were\npicked, `[]` when empty.",
94
+ "kind": "type-alias",
95
+ "name": "CAutocompleteValue",
96
+ "owner": "c-autocomplete"
97
+ },
84
98
  {
85
99
  "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}",
86
100
  "description": "",
@@ -319,6 +333,27 @@
319
333
  "name": "CPopoverProps",
320
334
  "owner": "c-popover"
321
335
  },
336
+ {
337
+ "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 /** Hide the hint and error messages */\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 /** Items per page before adding scroll */\n itemsPerPage?: number;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /** Label on top of the input */\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 /** Shadow variant */\n shadow?: boolean;\n /** Field height: the 44px default or the 36px `small` box */\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 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}",
338
+ "description": "",
339
+ "kind": "interface",
340
+ "name": "CSelectProps",
341
+ "owner": "c-select"
342
+ },
343
+ {
344
+ "declaration": "export interface CSelectTexts {\n /** Accessible label of the clear button. */\n clearSelection?: 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}",
345
+ "description": "UI texts of `c-select`, shallow-merged over the English defaults. Static\nlabels are strings; count- or label-interpolated ones are functions.",
346
+ "kind": "interface",
347
+ "name": "CSelectTexts",
348
+ "owner": "c-select"
349
+ },
350
+ {
351
+ "declaration": "export type CSelectValue =\n | (number | string)[]\n | CSelectItem\n | CSelectItem[]\n | null\n | number\n | string;",
352
+ "description": "Selection value of `c-select`: the picked option's value — or the whole\n`{ name, value }` item with `return-object` — and `null` when nothing is\nselected. In `multiple` mode an array of them in the order they were\npicked, `[]` when empty.",
353
+ "kind": "type-alias",
354
+ "name": "CSelectValue",
355
+ "owner": "c-select"
356
+ },
322
357
  {
323
358
  "declaration": "export interface CStatusProps {\n /**\n * Status type\n *\n * @seeded from csc-ui — verify\n */\n type?: CStatusType;\n}",
324
359
  "description": "",
@@ -362,7 +397,7 @@
362
397
  "owner": "c-tabs"
363
398
  },
364
399
  {
365
- "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 * 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}",
400
+ "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}",
366
401
  "description": "",
367
402
  "kind": "interface",
368
403
  "name": "CTagProps",
@@ -1050,25 +1085,30 @@
1050
1085
  "default": "false"
1051
1086
  },
1052
1087
  {
1053
- "fieldName": "name",
1054
- "name": "name",
1055
- "description": "Input field name",
1088
+ "fieldName": "maxTags",
1089
+ "name": "max-tags",
1090
+ "description": "In `multiple` mode, show at most this many selected-value tags and fold\nthe rest into one \"+N more\" tag; `0` shows no tags and reads \"N selected\"\ninstead; unset shows every tag",
1056
1091
  "type": {
1057
- "text": "string"
1058
- },
1059
- "default": "''",
1060
- "csc": {
1061
- "freeform": true
1092
+ "text": "number"
1062
1093
  }
1063
1094
  },
1064
1095
  {
1065
- "fieldName": "noResultsText",
1066
- "name": "no-results-text",
1067
- "description": "Message shown when the query matches no options",
1096
+ "fieldName": "multiple",
1097
+ "name": "multiple",
1098
+ "description": "Allow selecting several options: rows toggle, the panel stays open and\nkeeps its query, `value` becomes an array of the selected values (items\nwith `return-object`) in the order they were picked, and the picks show\nas tags inside the field. Arrays have no attribute form — bind `value` as\na DOM property",
1099
+ "type": {
1100
+ "text": "boolean"
1101
+ },
1102
+ "default": "false"
1103
+ },
1104
+ {
1105
+ "fieldName": "name",
1106
+ "name": "name",
1107
+ "description": "Input field name",
1068
1108
  "type": {
1069
1109
  "text": "string"
1070
1110
  },
1071
- "default": "'No matching data'",
1111
+ "default": "''",
1072
1112
  "csc": {
1073
1113
  "freeform": true
1074
1114
  }
@@ -1103,6 +1143,15 @@
1103
1143
  },
1104
1144
  "default": "false"
1105
1145
  },
1146
+ {
1147
+ "fieldName": "selectAll",
1148
+ "name": "select-all",
1149
+ "description": "In `multiple` mode, pin a select-all row at the top of the list. Its\ncheckbox shows whether none, some or all enabled options currently listed\n— the matches while a query is typed, the given `items` with `external` —\nare selected; activating it selects them all, or, when all are selected,\nunselects them. Ignored in single mode",
1150
+ "type": {
1151
+ "text": "boolean"
1152
+ },
1153
+ "default": "false"
1154
+ },
1106
1155
  {
1107
1156
  "fieldName": "shadow",
1108
1157
  "name": "shadow",
@@ -1132,15 +1181,6 @@
1132
1181
  "text": "boolean"
1133
1182
  },
1134
1183
  "default": "true"
1135
- },
1136
- {
1137
- "fieldName": "value",
1138
- "name": "value",
1139
- "description": "Selected value (scalar, or object when return-object is set)",
1140
- "type": {
1141
- "text": "CAutocompleteItem | null | number | string"
1142
- },
1143
- "default": "null"
1144
1184
  }
1145
1185
  ],
1146
1186
  "cssParts": [
@@ -1160,9 +1200,41 @@
1160
1200
  "name": "list",
1161
1201
  "description": "The scrollable options listbox"
1162
1202
  },
1203
+ {
1204
+ "name": "item",
1205
+ "description": "One option row in the list"
1206
+ },
1207
+ {
1208
+ "name": "select-all",
1209
+ "description": "The pinned select-all row at the top of the list (`multiple` mode with `select-all`); carries the same indicator / mark parts as an option row"
1210
+ },
1211
+ {
1212
+ "name": "indicator",
1213
+ "description": "The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together (the c-checkbox recipe)"
1214
+ },
1215
+ {
1216
+ "name": "mark",
1217
+ "description": "The check glyph inside a row indicator; draws with `currentColor`"
1218
+ },
1219
+ {
1220
+ "name": "match",
1221
+ "description": "A run of an option's label equal to the query, in the row; underlined in the primary colour, text inherits the row"
1222
+ },
1163
1223
  {
1164
1224
  "name": "info",
1165
1225
  "description": "The info row: loading while `loading` with an empty list, otherwise no-results when the query matches no options"
1226
+ },
1227
+ {
1228
+ "name": "tags",
1229
+ "description": "The row of selected-value tags inside the field (`multiple` mode)"
1230
+ },
1231
+ {
1232
+ "name": "tag",
1233
+ "description": "One selected-value tag: the `c-tag` host, including the overflow tag"
1234
+ },
1235
+ {
1236
+ "name": "tag-root",
1237
+ "description": "The pill box inside each tag (the `c-tag` `root` part), for colours and borders"
1166
1238
  }
1167
1239
  ],
1168
1240
  "cssProperties": [],
@@ -1185,9 +1257,9 @@
1185
1257
  {
1186
1258
  "name": "changeValue",
1187
1259
  "type": {
1188
- "text": "CustomEvent<CAutocompleteItem | null | number | string>"
1260
+ "text": "CustomEvent<CAutocompleteValue>"
1189
1261
  },
1190
- "description": "Fired when the selected value changes (an option is committed or the\nselection is cleared), carrying the new value — the option's value, or\nthe whole `{ name, value }` item when `return-object` is set; `null`\nwhen cleared. Also dispatched as `change-value` — bind that name in Vue templates."
1262
+ "description": "Fired when the selected value changes (an option is committed or the\nselection is cleared), carrying the new value — the option's value, or\nthe whole `{ name, value }` item when `return-object` is set; `null`\nwhen cleared. In `multiple` mode the whole array of picked values, in\npick order (`[]` when cleared). Also dispatched as `change-value` — bind that name in Vue templates."
1191
1263
  },
1192
1264
  {
1193
1265
  "name": "input",
@@ -1199,7 +1271,7 @@
1199
1271
  {
1200
1272
  "name": "update:value",
1201
1273
  "type": {
1202
- "text": "CustomEvent<CAutocompleteItem | null | number | string>"
1274
+ "text": "CustomEvent<CAutocompleteValue>"
1203
1275
  },
1204
1276
  "description": "Fired alongside `changeValue` with the same detail — the `v-model`\ncontract."
1205
1277
  }
@@ -1348,26 +1420,32 @@
1348
1420
  },
1349
1421
  {
1350
1422
  "kind": "field",
1351
- "name": "name",
1423
+ "name": "maxTags",
1352
1424
  "privacy": "public",
1353
- "description": "Input field name",
1425
+ "description": "In `multiple` mode, show at most this many selected-value tags and fold\nthe rest into one \"+N more\" tag; `0` shows no tags and reads \"N selected\"\ninstead; unset shows every tag",
1354
1426
  "type": {
1355
- "text": "string"
1356
- },
1357
- "default": "''",
1358
- "csc": {
1359
- "freeform": true
1427
+ "text": "number"
1360
1428
  }
1361
1429
  },
1362
1430
  {
1363
1431
  "kind": "field",
1364
- "name": "noResultsText",
1432
+ "name": "multiple",
1433
+ "privacy": "public",
1434
+ "description": "Allow selecting several options: rows toggle, the panel stays open and\nkeeps its query, `value` becomes an array of the selected values (items\nwith `return-object`) in the order they were picked, and the picks show\nas tags inside the field. Arrays have no attribute form — bind `value` as\na DOM property",
1435
+ "type": {
1436
+ "text": "boolean"
1437
+ },
1438
+ "default": "false"
1439
+ },
1440
+ {
1441
+ "kind": "field",
1442
+ "name": "name",
1365
1443
  "privacy": "public",
1366
- "description": "Message shown when the query matches no options",
1444
+ "description": "Input field name",
1367
1445
  "type": {
1368
1446
  "text": "string"
1369
1447
  },
1370
- "default": "'No matching data'",
1448
+ "default": "''",
1371
1449
  "csc": {
1372
1450
  "freeform": true
1373
1451
  }
@@ -1405,6 +1483,16 @@
1405
1483
  },
1406
1484
  "default": "false"
1407
1485
  },
1486
+ {
1487
+ "kind": "field",
1488
+ "name": "selectAll",
1489
+ "privacy": "public",
1490
+ "description": "In `multiple` mode, pin a select-all row at the top of the list. Its\ncheckbox shows whether none, some or all enabled options currently listed\n— the matches while a query is typed, the given `items` with `external` —\nare selected; activating it selects them all, or, when all are selected,\nunselects them. Ignored in single mode",
1491
+ "type": {
1492
+ "text": "boolean"
1493
+ },
1494
+ "default": "false"
1495
+ },
1408
1496
  {
1409
1497
  "kind": "field",
1410
1498
  "name": "shadow",
@@ -1428,6 +1516,16 @@
1428
1516
  "typeAlias": "CFieldSize"
1429
1517
  }
1430
1518
  },
1519
+ {
1520
+ "kind": "field",
1521
+ "name": "texts",
1522
+ "privacy": "public",
1523
+ "description": "UI text overrides (i18n), merged over the English defaults. Objects have\nno attribute form — bind as a DOM property (`:texts.prop` in Vue)",
1524
+ "type": {
1525
+ "text": "CAutocompleteTexts"
1526
+ },
1527
+ "default": "() => ({})"
1528
+ },
1431
1529
  {
1432
1530
  "kind": "field",
1433
1531
  "name": "valid",
@@ -1442,9 +1540,9 @@
1442
1540
  "kind": "field",
1443
1541
  "name": "value",
1444
1542
  "privacy": "public",
1445
- "description": "Selected value (scalar, or object when return-object is set)",
1543
+ "description": "Selected value: the option's value, or the whole item with\n`return-object`; an array of them in `multiple` mode",
1446
1544
  "type": {
1447
- "text": "CAutocompleteItem | null | number | string"
1545
+ "text": "CAutocompleteValue"
1448
1546
  },
1449
1547
  "default": "null"
1450
1548
  },
@@ -3509,7 +3607,7 @@
3509
3607
  {
3510
3608
  "fieldName": "index",
3511
3609
  "name": "index",
3512
- "description": "Current highlighted index",
3610
+ "description": "Current highlighted index; `-1` (`SELECT_ALL_INDEX`) is the select-all row",
3513
3611
  "type": {
3514
3612
  "text": "null | number"
3515
3613
  },
@@ -3533,6 +3631,15 @@
3533
3631
  },
3534
3632
  "default": "0"
3535
3633
  },
3634
+ {
3635
+ "fieldName": "multiple",
3636
+ "name": "multiple",
3637
+ "description": "Multi-select mode: rows toggle instead of committing, each carries a\ndecorative checkbox indicator, and the listbox is `aria-multiselectable`",
3638
+ "type": {
3639
+ "text": "boolean"
3640
+ },
3641
+ "default": "false"
3642
+ },
3536
3643
  {
3537
3644
  "fieldName": "parent",
3538
3645
  "name": "parent",
@@ -3542,6 +3649,15 @@
3542
3649
  },
3543
3650
  "default": "null"
3544
3651
  },
3652
+ {
3653
+ "fieldName": "selectAllRow",
3654
+ "name": "select-all-row",
3655
+ "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",
3656
+ "type": {
3657
+ "text": "CDropdownSelectAllRow | null"
3658
+ },
3659
+ "default": "null"
3660
+ },
3545
3661
  {
3546
3662
  "fieldName": "type",
3547
3663
  "name": "type",
@@ -3567,6 +3683,18 @@
3567
3683
  {
3568
3684
  "name": "item",
3569
3685
  "description": "One option row"
3686
+ },
3687
+ {
3688
+ "name": "select-all",
3689
+ "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"
3690
+ },
3691
+ {
3692
+ "name": "indicator",
3693
+ "description": "The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together"
3694
+ },
3695
+ {
3696
+ "name": "mark",
3697
+ "description": "The check glyph inside a row indicator; draws with `currentColor`"
3570
3698
  }
3571
3699
  ],
3572
3700
  "cssProperties": [],
@@ -3585,6 +3713,13 @@
3585
3713
  "text": "CustomEvent<{ name: string; value: number | string }>"
3586
3714
  },
3587
3715
  "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."
3716
+ },
3717
+ {
3718
+ "name": "selectall",
3719
+ "type": {
3720
+ "text": "CustomEvent<void>"
3721
+ },
3722
+ "description": "Fired when the select-all row is activated; the parent (c-select) toggles\nevery listed enabled option."
3588
3723
  }
3589
3724
  ],
3590
3725
  "members": [
@@ -3618,7 +3753,7 @@
3618
3753
  "kind": "field",
3619
3754
  "name": "index",
3620
3755
  "privacy": "public",
3621
- "description": "Current highlighted index",
3756
+ "description": "Current highlighted index; `-1` (`SELECT_ALL_INDEX`) is the select-all row",
3622
3757
  "type": {
3623
3758
  "text": "null | number"
3624
3759
  },
@@ -3644,6 +3779,16 @@
3644
3779
  },
3645
3780
  "default": "0"
3646
3781
  },
3782
+ {
3783
+ "kind": "field",
3784
+ "name": "multiple",
3785
+ "privacy": "public",
3786
+ "description": "Multi-select mode: rows toggle instead of committing, each carries a\ndecorative checkbox indicator, and the listbox is `aria-multiselectable`",
3787
+ "type": {
3788
+ "text": "boolean"
3789
+ },
3790
+ "default": "false"
3791
+ },
3647
3792
  {
3648
3793
  "kind": "field",
3649
3794
  "name": "parent",
@@ -3654,6 +3799,26 @@
3654
3799
  },
3655
3800
  "default": "null"
3656
3801
  },
3802
+ {
3803
+ "kind": "field",
3804
+ "name": "selectAllRow",
3805
+ "privacy": "public",
3806
+ "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",
3807
+ "type": {
3808
+ "text": "CDropdownSelectAllRow | null"
3809
+ },
3810
+ "default": "null"
3811
+ },
3812
+ {
3813
+ "kind": "field",
3814
+ "name": "selected",
3815
+ "privacy": "public",
3816
+ "description": "Values of the currently selected items in `multiple` mode; drives each\nrow's `aria-selected` and its indicator",
3817
+ "type": {
3818
+ "text": "(number | string)[]"
3819
+ },
3820
+ "default": "() => []"
3821
+ },
3657
3822
  {
3658
3823
  "kind": "field",
3659
3824
  "name": "type",
@@ -5795,7 +5960,9 @@
5795
5960
  "kind": "class",
5796
5961
  "name": "CMenu",
5797
5962
  "tagName": "c-menu",
5963
+ "description": "A command menu: a transient panel of actions or navigation choices opened from a trigger (the WAI-ARIA menu-button pattern), authored declaratively with slotted `c-menu-item`, `c-menu-label` and `c-divider` elements. Activating an item fires a one-off `select` event and closes the menu; the menu holds no selected value — that is `c-select`'s job.",
5798
5964
  "csc": {
5965
+ "usage": "docs/c-menu/usage.md",
5799
5966
  "subcomponents": [
5800
5967
  "c-menu-item",
5801
5968
  "c-menu-label"
@@ -6653,7 +6820,7 @@
6653
6820
  "slots": [
6654
6821
  {
6655
6822
  "name": "default",
6656
- "description": "The option's visible label content, shown in the c-select dropdown list"
6823
+ "description": "The option's content, rendered in the list row; wrap the label text in c-option-value when the option carries more than its label"
6657
6824
  }
6658
6825
  ]
6659
6826
  }
@@ -6686,6 +6853,10 @@
6686
6853
  "kind": "class",
6687
6854
  "name": "COptionValue",
6688
6855
  "tagName": "c-option-value",
6856
+ "description": "The label region of a `c-option`: wraps the text that c-select and c-autocomplete use as the option's label — in the closed field, its tag and the autocomplete filter — so the option can carry a description or an icon beside its label, and the region in which c-autocomplete marks the runs equal to the query (`::part(match)`).",
6857
+ "csc": {
6858
+ "usage": "docs/c-option-value/usage.md"
6859
+ },
6689
6860
  "attributes": [],
6690
6861
  "cssParts": [],
6691
6862
  "cssProperties": [],
@@ -6695,7 +6866,7 @@
6695
6866
  "slots": [
6696
6867
  {
6697
6868
  "name": "default",
6698
- "description": "The displayed option text, targeted by c-dropdown when highlighting autocomplete matches"
6869
+ "description": "The option's label: the text c-select and c-autocomplete use for the option in the closed field, its tag and the filter, and the region c-autocomplete marks query matches in"
6699
6870
  }
6700
6871
  ]
6701
6872
  }
@@ -8146,9 +8317,12 @@
8146
8317
  "kind": "class",
8147
8318
  "name": "CSelect",
8148
8319
  "tagName": "c-select",
8320
+ "description": "A value-selection field: a readonly field that opens a listbox of options — slotted `c-option` elements or an `items` array — and holds the picked value, emitting the value events that back `v-model`.",
8149
8321
  "csc": {
8322
+ "usage": "docs/c-select/usage.md",
8150
8323
  "subcomponents": [
8151
- "c-option"
8324
+ "c-option",
8325
+ "c-option-value"
8152
8326
  ]
8153
8327
  },
8154
8328
  "attributes": [
@@ -8254,6 +8428,23 @@
8254
8428
  },
8255
8429
  "default": "false"
8256
8430
  },
8431
+ {
8432
+ "fieldName": "maxTags",
8433
+ "name": "max-tags",
8434
+ "description": "In `multiple` mode, show at most this many selected-value tags and fold\nthe rest into one \"+N more\" tag; `0` shows no tags and reads \"N selected\"\ninstead; unset shows every tag",
8435
+ "type": {
8436
+ "text": "number"
8437
+ }
8438
+ },
8439
+ {
8440
+ "fieldName": "multiple",
8441
+ "name": "multiple",
8442
+ "description": "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\ntags inside the field. `option-as-selection` is ignored in this mode.\nArrays have no attribute form — bind `value` as a DOM property",
8443
+ "type": {
8444
+ "text": "boolean"
8445
+ },
8446
+ "default": "false"
8447
+ },
8257
8448
  {
8258
8449
  "fieldName": "name",
8259
8450
  "name": "name",
@@ -8305,6 +8496,15 @@
8305
8496
  },
8306
8497
  "default": "false"
8307
8498
  },
8499
+ {
8500
+ "fieldName": "selectAll",
8501
+ "name": "select-all",
8502
+ "description": "In `multiple` mode, pin a select-all row at the top of the list. Its\ncheckbox shows whether none, some or all enabled options are selected;\nactivating it selects every enabled option — or, when all are selected,\nunselects them. Ignored in single mode",
8503
+ "type": {
8504
+ "text": "boolean"
8505
+ },
8506
+ "default": "false"
8507
+ },
8308
8508
  {
8309
8509
  "fieldName": "shadow",
8310
8510
  "name": "shadow",
@@ -8334,15 +8534,6 @@
8334
8534
  "text": "boolean"
8335
8535
  },
8336
8536
  "default": "true"
8337
- },
8338
- {
8339
- "fieldName": "value",
8340
- "name": "value",
8341
- "description": "Selected value (scalar, or object when return-object is set)",
8342
- "type": {
8343
- "text": "CSelectItem | null | number | string"
8344
- },
8345
- "default": "null"
8346
8537
  }
8347
8538
  ],
8348
8539
  "cssParts": [
@@ -8357,6 +8548,30 @@
8357
8548
  {
8358
8549
  "name": "item",
8359
8550
  "description": "One option row in the list. Any `part` attribute set on content inside a slotted `<c-option>` is exported too, so `c-select::part(<name>)` reaches the consumer's own option markup"
8551
+ },
8552
+ {
8553
+ "name": "select-all",
8554
+ "description": "The pinned select-all row at the top of the list (`multiple` mode with `select-all`); carries the same indicator / mark parts as an option row"
8555
+ },
8556
+ {
8557
+ "name": "indicator",
8558
+ "description": "The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together (the c-checkbox recipe)"
8559
+ },
8560
+ {
8561
+ "name": "mark",
8562
+ "description": "The check glyph inside a row indicator; draws with `currentColor`"
8563
+ },
8564
+ {
8565
+ "name": "tags",
8566
+ "description": "The row of selected-value tags inside the field (`multiple` mode)"
8567
+ },
8568
+ {
8569
+ "name": "tag",
8570
+ "description": "One selected-value tag: the `c-tag` host, including the overflow tag"
8571
+ },
8572
+ {
8573
+ "name": "tag-root",
8574
+ "description": "The pill box inside each tag (the `c-tag` `root` part), for colours and borders"
8360
8575
  }
8361
8576
  ],
8362
8577
  "cssProperties": [],
@@ -8365,9 +8580,9 @@
8365
8580
  {
8366
8581
  "name": "changeValue",
8367
8582
  "type": {
8368
- "text": "CustomEvent<CSelectItem | null | number | string>"
8583
+ "text": "CustomEvent<CSelectValue>"
8369
8584
  },
8370
- "description": "Fired when the selection changes (an option is picked or the value is\ncleared), carrying the new value — the option's value, or the whole\n`{ name, value }` item when `return-object` is set; `null` when cleared. Also dispatched as `change-value` — bind that name in Vue templates."
8585
+ "description": "Fired when the selection changes (an option is picked or the value is\ncleared), carrying the new value — the option's value, or the whole\n`{ name, value }` item when `return-object` is set; `null` when cleared.\nIn `multiple` mode the whole array of picked values, in pick order\n(`[]` when cleared). Also dispatched as `change-value` — bind that name in Vue templates."
8371
8586
  },
8372
8587
  {
8373
8588
  "name": "input",
@@ -8379,7 +8594,7 @@
8379
8594
  {
8380
8595
  "name": "update:value",
8381
8596
  "type": {
8382
- "text": "CustomEvent<CSelectItem | null | number | string>"
8597
+ "text": "CustomEvent<CSelectValue>"
8383
8598
  },
8384
8599
  "description": "Fired alongside `changeValue` with the same detail — the `v-model`\ncontract."
8385
8600
  }
@@ -8507,6 +8722,25 @@
8507
8722
  },
8508
8723
  "default": "false"
8509
8724
  },
8725
+ {
8726
+ "kind": "field",
8727
+ "name": "maxTags",
8728
+ "privacy": "public",
8729
+ "description": "In `multiple` mode, show at most this many selected-value tags and fold\nthe rest into one \"+N more\" tag; `0` shows no tags and reads \"N selected\"\ninstead; unset shows every tag",
8730
+ "type": {
8731
+ "text": "number"
8732
+ }
8733
+ },
8734
+ {
8735
+ "kind": "field",
8736
+ "name": "multiple",
8737
+ "privacy": "public",
8738
+ "description": "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\ntags inside the field. `option-as-selection` is ignored in this mode.\nArrays have no attribute form — bind `value` as a DOM property",
8739
+ "type": {
8740
+ "text": "boolean"
8741
+ },
8742
+ "default": "false"
8743
+ },
8510
8744
  {
8511
8745
  "kind": "field",
8512
8746
  "name": "name",
@@ -8563,6 +8797,16 @@
8563
8797
  },
8564
8798
  "default": "false"
8565
8799
  },
8800
+ {
8801
+ "kind": "field",
8802
+ "name": "selectAll",
8803
+ "privacy": "public",
8804
+ "description": "In `multiple` mode, pin a select-all row at the top of the list. Its\ncheckbox shows whether none, some or all enabled options are selected;\nactivating it selects every enabled option — or, when all are selected,\nunselects them. Ignored in single mode",
8805
+ "type": {
8806
+ "text": "boolean"
8807
+ },
8808
+ "default": "false"
8809
+ },
8566
8810
  {
8567
8811
  "kind": "field",
8568
8812
  "name": "shadow",
@@ -8586,6 +8830,16 @@
8586
8830
  "typeAlias": "CFieldSize"
8587
8831
  }
8588
8832
  },
8833
+ {
8834
+ "kind": "field",
8835
+ "name": "texts",
8836
+ "privacy": "public",
8837
+ "description": "UI text overrides (i18n), merged over the English defaults. Objects have\nno attribute form — bind as a DOM property (`:texts.prop` in Vue)",
8838
+ "type": {
8839
+ "text": "CSelectTexts"
8840
+ },
8841
+ "default": "() => ({})"
8842
+ },
8589
8843
  {
8590
8844
  "kind": "field",
8591
8845
  "name": "valid",
@@ -8600,9 +8854,9 @@
8600
8854
  "kind": "field",
8601
8855
  "name": "value",
8602
8856
  "privacy": "public",
8603
- "description": "Selected value (scalar, or object when return-object is set)",
8857
+ "description": "Selected value: the option's value, or the whole item with\n`return-object`; an array of them in `multiple` mode",
8604
8858
  "type": {
8605
- "text": "CSelectItem | null | number | string"
8859
+ "text": "CSelectValue"
8606
8860
  },
8607
8861
  "default": "null"
8608
8862
  },
@@ -10995,6 +11249,18 @@
10995
11249
  },
10996
11250
  "default": "false"
10997
11251
  },
11252
+ {
11253
+ "fieldName": "closeLabel",
11254
+ "name": "close-label",
11255
+ "description": "Accessible name of the close button rendered when `closeable`",
11256
+ "type": {
11257
+ "text": "string"
11258
+ },
11259
+ "default": "'Remove'",
11260
+ "csc": {
11261
+ "freeform": true
11262
+ }
11263
+ },
10998
11264
  {
10999
11265
  "fieldName": "flat",
11000
11266
  "name": "flat",
@@ -11065,6 +11331,19 @@
11065
11331
  },
11066
11332
  "default": "false"
11067
11333
  },
11334
+ {
11335
+ "kind": "field",
11336
+ "name": "closeLabel",
11337
+ "privacy": "public",
11338
+ "description": "Accessible name of the close button rendered when `closeable`",
11339
+ "type": {
11340
+ "text": "string"
11341
+ },
11342
+ "default": "'Remove'",
11343
+ "csc": {
11344
+ "freeform": true
11345
+ }
11346
+ },
11068
11347
  {
11069
11348
  "kind": "field",
11070
11349
  "name": "flat",