@cscfi/csc-ui 4.0.0-alpha.12 → 4.0.0-alpha.14

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.
@@ -75,14 +75,14 @@
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 * 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 /** 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}",
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
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 * 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 /** 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
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",
@@ -334,14 +334,14 @@
334
334
  "owner": "c-popover"
335
335
  },
336
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 /** 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}",
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
338
  "description": "",
339
339
  "kind": "interface",
340
340
  "name": "CSelectProps",
341
341
  "owner": "c-select"
342
342
  },
343
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 * 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}",
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
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
346
  "kind": "interface",
347
347
  "name": "CSelectTexts",
@@ -479,6 +479,48 @@
479
479
  "kind": "interface",
480
480
  "name": "CTooltipProps",
481
481
  "owner": "c-tooltip"
482
+ },
483
+ {
484
+ "declaration": "export type CTreeSelectFilter = (\n item: CTreeSelectItem,\n query: string,\n path: CTreeSelectItem[],\n) => boolean;",
485
+ "description": "Custom search predicate for `c-tree-select`. Receives the item, the query\nand the item's ancestors root-first; return `true` to list the item. The\ndefault matches the query case-insensitively anywhere in the `name` or\n`code` of the item or of any of its ancestors.",
486
+ "kind": "type-alias",
487
+ "name": "CTreeSelectFilter",
488
+ "owner": "c-tree-select"
489
+ },
490
+ {
491
+ "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}",
492
+ "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.",
493
+ "kind": "interface",
494
+ "name": "CTreeSelectItem",
495
+ "owner": "c-tree-select"
496
+ },
497
+ {
498
+ "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 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 itemsPerPage?: number;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the field\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 shadow?: boolean;\n /**\n * Field height: the 44px default or the 36px `small` box\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 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}",
499
+ "description": "",
500
+ "kind": "interface",
501
+ "name": "CTreeSelectProps",
502
+ "owner": "c-tree-select"
503
+ },
504
+ {
505
+ "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}",
506
+ "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`.",
507
+ "kind": "interface",
508
+ "name": "CTreeSelectSelection",
509
+ "owner": "c-tree-select"
510
+ },
511
+ {
512
+ "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 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}",
513
+ "description": "UI texts of `c-tree-select`, shallow-merged over the English defaults.\nStatic labels are strings; interpolated ones are functions.",
514
+ "kind": "interface",
515
+ "name": "CTreeSelectTexts",
516
+ "owner": "c-tree-select"
517
+ },
518
+ {
519
+ "declaration": "export type CTreeSelectValue = CTreeSelectSelection | null | number | string;",
520
+ "description": "Selection value of `c-tree-select`: the committed item's value — or a\n with `return-object` — and `null` when\ncleared.",
521
+ "kind": "type-alias",
522
+ "name": "CTreeSelectValue",
523
+ "owner": "c-tree-select"
482
524
  }
483
525
  ]
484
526
  },
@@ -1143,6 +1185,15 @@
1143
1185
  },
1144
1186
  "default": "false"
1145
1187
  },
1188
+ {
1189
+ "fieldName": "selectAll",
1190
+ "name": "select-all",
1191
+ "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",
1192
+ "type": {
1193
+ "text": "boolean"
1194
+ },
1195
+ "default": "false"
1196
+ },
1146
1197
  {
1147
1198
  "fieldName": "shadow",
1148
1199
  "name": "shadow",
@@ -1195,6 +1246,10 @@
1195
1246
  "name": "item",
1196
1247
  "description": "One option row in the list"
1197
1248
  },
1249
+ {
1250
+ "name": "select-all",
1251
+ "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"
1252
+ },
1198
1253
  {
1199
1254
  "name": "indicator",
1200
1255
  "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)"
@@ -1470,6 +1525,16 @@
1470
1525
  },
1471
1526
  "default": "false"
1472
1527
  },
1528
+ {
1529
+ "kind": "field",
1530
+ "name": "selectAll",
1531
+ "privacy": "public",
1532
+ "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",
1533
+ "type": {
1534
+ "text": "boolean"
1535
+ },
1536
+ "default": "false"
1537
+ },
1473
1538
  {
1474
1539
  "kind": "field",
1475
1540
  "name": "shadow",
@@ -3584,7 +3649,7 @@
3584
3649
  {
3585
3650
  "fieldName": "index",
3586
3651
  "name": "index",
3587
- "description": "Current highlighted index",
3652
+ "description": "Current highlighted index; `-1` (`SELECT_ALL_INDEX`) is the select-all row",
3588
3653
  "type": {
3589
3654
  "text": "null | number"
3590
3655
  },
@@ -3626,6 +3691,15 @@
3626
3691
  },
3627
3692
  "default": "null"
3628
3693
  },
3694
+ {
3695
+ "fieldName": "selectAllRow",
3696
+ "name": "select-all-row",
3697
+ "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",
3698
+ "type": {
3699
+ "text": "CDropdownSelectAllRow | null"
3700
+ },
3701
+ "default": "null"
3702
+ },
3629
3703
  {
3630
3704
  "fieldName": "type",
3631
3705
  "name": "type",
@@ -3652,6 +3726,10 @@
3652
3726
  "name": "item",
3653
3727
  "description": "One option row"
3654
3728
  },
3729
+ {
3730
+ "name": "select-all",
3731
+ "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"
3732
+ },
3655
3733
  {
3656
3734
  "name": "indicator",
3657
3735
  "description": "The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together"
@@ -3677,6 +3755,13 @@
3677
3755
  "text": "CustomEvent<{ name: string; value: number | string }>"
3678
3756
  },
3679
3757
  "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."
3758
+ },
3759
+ {
3760
+ "name": "selectall",
3761
+ "type": {
3762
+ "text": "CustomEvent<void>"
3763
+ },
3764
+ "description": "Fired when the select-all row is activated; the parent (c-select) toggles\nevery listed enabled option."
3680
3765
  }
3681
3766
  ],
3682
3767
  "members": [
@@ -3710,7 +3795,7 @@
3710
3795
  "kind": "field",
3711
3796
  "name": "index",
3712
3797
  "privacy": "public",
3713
- "description": "Current highlighted index",
3798
+ "description": "Current highlighted index; `-1` (`SELECT_ALL_INDEX`) is the select-all row",
3714
3799
  "type": {
3715
3800
  "text": "null | number"
3716
3801
  },
@@ -3756,11 +3841,21 @@
3756
3841
  },
3757
3842
  "default": "null"
3758
3843
  },
3844
+ {
3845
+ "kind": "field",
3846
+ "name": "selectAllRow",
3847
+ "privacy": "public",
3848
+ "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",
3849
+ "type": {
3850
+ "text": "CDropdownSelectAllRow | null"
3851
+ },
3852
+ "default": "null"
3853
+ },
3759
3854
  {
3760
3855
  "kind": "field",
3761
3856
  "name": "selected",
3762
3857
  "privacy": "public",
3763
- "description": "Values of the currently selected items in `multiple` mode; drives each\nrow's `aria-selected` and its indicator",
3858
+ "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",
3764
3859
  "type": {
3765
3860
  "text": "(number | string)[]"
3766
3861
  },
@@ -8443,6 +8538,15 @@
8443
8538
  },
8444
8539
  "default": "false"
8445
8540
  },
8541
+ {
8542
+ "fieldName": "selectAll",
8543
+ "name": "select-all",
8544
+ "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",
8545
+ "type": {
8546
+ "text": "boolean"
8547
+ },
8548
+ "default": "false"
8549
+ },
8446
8550
  {
8447
8551
  "fieldName": "shadow",
8448
8552
  "name": "shadow",
@@ -8487,6 +8591,10 @@
8487
8591
  "name": "item",
8488
8592
  "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"
8489
8593
  },
8594
+ {
8595
+ "name": "select-all",
8596
+ "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"
8597
+ },
8490
8598
  {
8491
8599
  "name": "indicator",
8492
8600
  "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)"
@@ -8731,6 +8839,16 @@
8731
8839
  },
8732
8840
  "default": "false"
8733
8841
  },
8842
+ {
8843
+ "kind": "field",
8844
+ "name": "selectAll",
8845
+ "privacy": "public",
8846
+ "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",
8847
+ "type": {
8848
+ "text": "boolean"
8849
+ },
8850
+ "default": "false"
8851
+ },
8734
8852
  {
8735
8853
  "kind": "field",
8736
8854
  "name": "shadow",
@@ -12538,6 +12656,553 @@
12538
12656
  ],
12539
12657
  "kind": "javascript-module",
12540
12658
  "path": "src/components/c-tooltip/CTooltip.vue"
12659
+ },
12660
+ {
12661
+ "declarations": [
12662
+ {
12663
+ "customElement": true,
12664
+ "kind": "class",
12665
+ "name": "CTreeSelect",
12666
+ "tagName": "c-tree-select",
12667
+ "description": "A hierarchical value-selection component: a readonly value field that opens a panel for browsing a tree one level at a time, or searching it as a whole, to commit one item.",
12668
+ "csc": {
12669
+ "usage": "docs/c-tree-select/usage.md"
12670
+ },
12671
+ "attributes": [
12672
+ {
12673
+ "fieldName": "allowBranch",
12674
+ "name": "allow-branch",
12675
+ "description": "Let a branch be committed as the value: a pinned select-branch row heads\nevery level below the root, and matching branches are listed as search\nresults",
12676
+ "type": {
12677
+ "text": "boolean"
12678
+ },
12679
+ "default": "false"
12680
+ },
12681
+ {
12682
+ "fieldName": "clearable",
12683
+ "name": "clearable",
12684
+ "description": "Make the selected value clearable",
12685
+ "type": {
12686
+ "text": "boolean"
12687
+ },
12688
+ "default": "false"
12689
+ },
12690
+ {
12691
+ "fieldName": "disabled",
12692
+ "name": "disabled",
12693
+ "description": "Disable the field",
12694
+ "type": {
12695
+ "text": "boolean"
12696
+ },
12697
+ "default": "false"
12698
+ },
12699
+ {
12700
+ "fieldName": "errorMessage",
12701
+ "name": "error-message",
12702
+ "description": "Error message shown in place of the hint while the field is invalid",
12703
+ "type": {
12704
+ "text": "string"
12705
+ },
12706
+ "default": "''",
12707
+ "csc": {
12708
+ "freeform": true
12709
+ }
12710
+ },
12711
+ {
12712
+ "fieldName": "hideDetails",
12713
+ "name": "hide-details",
12714
+ "description": "Hide the hint and error messages",
12715
+ "type": {
12716
+ "text": "boolean"
12717
+ },
12718
+ "default": "false"
12719
+ },
12720
+ {
12721
+ "fieldName": "hint",
12722
+ "name": "hint",
12723
+ "description": "Hint text for the field",
12724
+ "type": {
12725
+ "text": "string"
12726
+ },
12727
+ "default": "''",
12728
+ "csc": {
12729
+ "freeform": true
12730
+ }
12731
+ },
12732
+ {
12733
+ "fieldName": "hostId",
12734
+ "name": "host-id",
12735
+ "description": "Id of the element",
12736
+ "type": {
12737
+ "text": "string"
12738
+ },
12739
+ "default": "''",
12740
+ "csc": {
12741
+ "freeform": true
12742
+ }
12743
+ },
12744
+ {
12745
+ "fieldName": "itemsPerPage",
12746
+ "name": "items-per-page",
12747
+ "description": "Items per page before the list scrolls",
12748
+ "type": {
12749
+ "text": "number"
12750
+ },
12751
+ "default": "6"
12752
+ },
12753
+ {
12754
+ "fieldName": "label",
12755
+ "name": "label",
12756
+ "description": "Element label",
12757
+ "type": {
12758
+ "text": "string"
12759
+ },
12760
+ "default": "''",
12761
+ "csc": {
12762
+ "freeform": true
12763
+ }
12764
+ },
12765
+ {
12766
+ "fieldName": "labelOnTop",
12767
+ "name": "label-on-top",
12768
+ "description": "Label on top of the field",
12769
+ "type": {
12770
+ "text": "boolean"
12771
+ },
12772
+ "default": "false"
12773
+ },
12774
+ {
12775
+ "fieldName": "name",
12776
+ "name": "name",
12777
+ "description": "Input field name",
12778
+ "type": {
12779
+ "text": "string"
12780
+ },
12781
+ "default": "''",
12782
+ "csc": {
12783
+ "freeform": true
12784
+ }
12785
+ },
12786
+ {
12787
+ "fieldName": "placeholder",
12788
+ "name": "placeholder",
12789
+ "description": "Placeholder for the search input inside the panel",
12790
+ "type": {
12791
+ "text": "string"
12792
+ },
12793
+ "default": "''",
12794
+ "csc": {
12795
+ "freeform": true
12796
+ }
12797
+ },
12798
+ {
12799
+ "fieldName": "required",
12800
+ "name": "required",
12801
+ "description": "Set the field as required",
12802
+ "type": {
12803
+ "text": "boolean"
12804
+ },
12805
+ "default": "false"
12806
+ },
12807
+ {
12808
+ "fieldName": "returnObject",
12809
+ "name": "return-object",
12810
+ "description": "Emit the committed item with its path as a `CTreeSelectSelection` instead\nof its value",
12811
+ "type": {
12812
+ "text": "boolean"
12813
+ },
12814
+ "default": "false"
12815
+ },
12816
+ {
12817
+ "fieldName": "shadow",
12818
+ "name": "shadow",
12819
+ "description": "Shadow variant",
12820
+ "type": {
12821
+ "text": "boolean"
12822
+ },
12823
+ "default": "false"
12824
+ },
12825
+ {
12826
+ "fieldName": "size",
12827
+ "name": "size",
12828
+ "description": "Field height: the 44px default or the 36px `small` box",
12829
+ "type": {
12830
+ "text": "'default' | 'small'"
12831
+ },
12832
+ "default": "'default'",
12833
+ "csc": {
12834
+ "typeAlias": "CFieldSize"
12835
+ }
12836
+ },
12837
+ {
12838
+ "fieldName": "valid",
12839
+ "name": "valid",
12840
+ "description": "Set the validity of the field",
12841
+ "type": {
12842
+ "text": "boolean"
12843
+ },
12844
+ "default": "true"
12845
+ },
12846
+ {
12847
+ "fieldName": "value",
12848
+ "name": "value",
12849
+ "description": "Selected value: the committed item's value, or the `CTreeSelectSelection`\nwith `return-object`; `null` when nothing is selected",
12850
+ "type": {
12851
+ "text": "CTreeSelectValue"
12852
+ },
12853
+ "default": "null"
12854
+ }
12855
+ ],
12856
+ "cssParts": [
12857
+ {
12858
+ "name": "panel",
12859
+ "description": "The top-layer popover container anchored below the field"
12860
+ },
12861
+ {
12862
+ "name": "card",
12863
+ "description": "The elevated surface inside the panel holding the search row, the breadcrumb, the header and the list"
12864
+ },
12865
+ {
12866
+ "name": "search",
12867
+ "description": "The search-input row at the top of the panel"
12868
+ },
12869
+ {
12870
+ "name": "breadcrumb",
12871
+ "description": "The breadcrumb navigation naming the browsed level's path"
12872
+ },
12873
+ {
12874
+ "name": "crumb",
12875
+ "description": "One crumb in the breadcrumb: the root crumb, an ancestor, or the collapsed \"…\" crumb"
12876
+ },
12877
+ {
12878
+ "name": "header",
12879
+ "description": "The header line under the breadcrumb: the level to choose and its step counter, or the match count and the \"Browse instead\" control"
12880
+ },
12881
+ {
12882
+ "name": "list",
12883
+ "description": "The scrollable listbox: the level list while browsing, the results while searching"
12884
+ },
12885
+ {
12886
+ "name": "item",
12887
+ "description": "One item row in the list"
12888
+ },
12889
+ {
12890
+ "name": "select-branch",
12891
+ "description": "The pinned select-branch row at the top of a level list inside a branch (`allow-branch`)"
12892
+ },
12893
+ {
12894
+ "name": "code",
12895
+ "description": "An item's code column, in a row and in the closed field"
12896
+ },
12897
+ {
12898
+ "name": "path",
12899
+ "description": "The ancestor path line under a search result's label"
12900
+ },
12901
+ {
12902
+ "name": "match",
12903
+ "description": "A run of an item's code, label or path equal to the query, in a row; underlined in the primary colour, text inherits the row"
12904
+ },
12905
+ {
12906
+ "name": "info",
12907
+ "description": "The no-results row shown when nothing is listed"
12908
+ }
12909
+ ],
12910
+ "cssProperties": [],
12911
+ "cssStates": [],
12912
+ "events": [
12913
+ {
12914
+ "name": "change",
12915
+ "type": {
12916
+ "text": "CustomEvent<CTreeSelectValue>"
12917
+ },
12918
+ "description": "Fired when the selection changes — an item is committed or the selection\nis cleared — carrying the new value: the item's value, the\n`CTreeSelectSelection` with `return-object`, or `null` when cleared."
12919
+ },
12920
+ {
12921
+ "name": "change:query",
12922
+ "type": {
12923
+ "text": "CustomEvent<string>"
12924
+ },
12925
+ "description": "Fired whenever the query changes — on every keystroke in the search\ninput, and with an empty string when the panel opens. Carries the query\nstring."
12926
+ },
12927
+ {
12928
+ "name": "input",
12929
+ "type": {
12930
+ "text": "CustomEvent<void>"
12931
+ },
12932
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
12933
+ },
12934
+ {
12935
+ "name": "update:value",
12936
+ "type": {
12937
+ "text": "CustomEvent<CTreeSelectValue>"
12938
+ },
12939
+ "description": "Fired alongside `change` with the same detail — the `v-model` contract."
12940
+ }
12941
+ ],
12942
+ "members": [
12943
+ {
12944
+ "kind": "field",
12945
+ "name": "allowBranch",
12946
+ "privacy": "public",
12947
+ "description": "Let a branch be committed as the value: a pinned select-branch row heads\nevery level below the root, and matching branches are listed as search\nresults",
12948
+ "type": {
12949
+ "text": "boolean"
12950
+ },
12951
+ "default": "false"
12952
+ },
12953
+ {
12954
+ "kind": "field",
12955
+ "name": "clearable",
12956
+ "privacy": "public",
12957
+ "description": "Make the selected value clearable",
12958
+ "type": {
12959
+ "text": "boolean"
12960
+ },
12961
+ "default": "false"
12962
+ },
12963
+ {
12964
+ "kind": "field",
12965
+ "name": "disabled",
12966
+ "privacy": "public",
12967
+ "description": "Disable the field",
12968
+ "type": {
12969
+ "text": "boolean"
12970
+ },
12971
+ "default": "false"
12972
+ },
12973
+ {
12974
+ "kind": "field",
12975
+ "name": "errorMessage",
12976
+ "privacy": "public",
12977
+ "description": "Error message shown in place of the hint while the field is invalid",
12978
+ "type": {
12979
+ "text": "string"
12980
+ },
12981
+ "default": "''",
12982
+ "csc": {
12983
+ "freeform": true
12984
+ }
12985
+ },
12986
+ {
12987
+ "kind": "field",
12988
+ "name": "filter",
12989
+ "privacy": "public",
12990
+ "description": "Custom search predicate; receives the item, the query and the item's\nancestors. Functions have no attribute form — bind as a DOM property",
12991
+ "type": {
12992
+ "text": "CTreeSelectFilter"
12993
+ }
12994
+ },
12995
+ {
12996
+ "kind": "field",
12997
+ "name": "hideDetails",
12998
+ "privacy": "public",
12999
+ "description": "Hide the hint and error messages",
13000
+ "type": {
13001
+ "text": "boolean"
13002
+ },
13003
+ "default": "false"
13004
+ },
13005
+ {
13006
+ "kind": "field",
13007
+ "name": "hint",
13008
+ "privacy": "public",
13009
+ "description": "Hint text for the field",
13010
+ "type": {
13011
+ "text": "string"
13012
+ },
13013
+ "default": "''",
13014
+ "csc": {
13015
+ "freeform": true
13016
+ }
13017
+ },
13018
+ {
13019
+ "kind": "field",
13020
+ "name": "hostId",
13021
+ "privacy": "public",
13022
+ "description": "Id of the element",
13023
+ "type": {
13024
+ "text": "string"
13025
+ },
13026
+ "default": "''",
13027
+ "csc": {
13028
+ "freeform": true
13029
+ }
13030
+ },
13031
+ {
13032
+ "kind": "field",
13033
+ "name": "items",
13034
+ "privacy": "public",
13035
+ "description": "The tree to pick from. Arrays have no attribute form — bind as a DOM\nproperty (`:items.prop` in Vue)",
13036
+ "type": {
13037
+ "text": "CTreeSelectItem[]"
13038
+ },
13039
+ "default": "() => []"
13040
+ },
13041
+ {
13042
+ "kind": "field",
13043
+ "name": "itemsPerPage",
13044
+ "privacy": "public",
13045
+ "description": "Items per page before the list scrolls",
13046
+ "type": {
13047
+ "text": "number"
13048
+ },
13049
+ "default": "6"
13050
+ },
13051
+ {
13052
+ "kind": "field",
13053
+ "name": "label",
13054
+ "privacy": "public",
13055
+ "description": "Element label",
13056
+ "type": {
13057
+ "text": "string"
13058
+ },
13059
+ "default": "''",
13060
+ "csc": {
13061
+ "freeform": true
13062
+ }
13063
+ },
13064
+ {
13065
+ "kind": "field",
13066
+ "name": "labelOnTop",
13067
+ "privacy": "public",
13068
+ "description": "Label on top of the field",
13069
+ "type": {
13070
+ "text": "boolean"
13071
+ },
13072
+ "default": "false"
13073
+ },
13074
+ {
13075
+ "kind": "field",
13076
+ "name": "levelLabels",
13077
+ "privacy": "public",
13078
+ "description": "Names of the levels, top level first, shown in the panel header; a\nmissing entry falls back to `texts.level(n)`. Arrays have no attribute\nform — bind as a DOM property",
13079
+ "type": {
13080
+ "text": "string[]"
13081
+ }
13082
+ },
13083
+ {
13084
+ "kind": "field",
13085
+ "name": "name",
13086
+ "privacy": "public",
13087
+ "description": "Input field name",
13088
+ "type": {
13089
+ "text": "string"
13090
+ },
13091
+ "default": "''",
13092
+ "csc": {
13093
+ "freeform": true
13094
+ }
13095
+ },
13096
+ {
13097
+ "kind": "field",
13098
+ "name": "placeholder",
13099
+ "privacy": "public",
13100
+ "description": "Placeholder for the search input inside the panel",
13101
+ "type": {
13102
+ "text": "string"
13103
+ },
13104
+ "default": "''",
13105
+ "csc": {
13106
+ "freeform": true
13107
+ }
13108
+ },
13109
+ {
13110
+ "kind": "field",
13111
+ "name": "required",
13112
+ "privacy": "public",
13113
+ "description": "Set the field as required",
13114
+ "type": {
13115
+ "text": "boolean"
13116
+ },
13117
+ "default": "false"
13118
+ },
13119
+ {
13120
+ "kind": "field",
13121
+ "name": "returnObject",
13122
+ "privacy": "public",
13123
+ "description": "Emit the committed item with its path as a `CTreeSelectSelection` instead\nof its value",
13124
+ "type": {
13125
+ "text": "boolean"
13126
+ },
13127
+ "default": "false"
13128
+ },
13129
+ {
13130
+ "kind": "field",
13131
+ "name": "shadow",
13132
+ "privacy": "public",
13133
+ "description": "Shadow variant",
13134
+ "type": {
13135
+ "text": "boolean"
13136
+ },
13137
+ "default": "false"
13138
+ },
13139
+ {
13140
+ "kind": "field",
13141
+ "name": "size",
13142
+ "privacy": "public",
13143
+ "description": "Field height: the 44px default or the 36px `small` box",
13144
+ "type": {
13145
+ "text": "'default' | 'small'"
13146
+ },
13147
+ "default": "'default'",
13148
+ "csc": {
13149
+ "typeAlias": "CFieldSize"
13150
+ }
13151
+ },
13152
+ {
13153
+ "kind": "field",
13154
+ "name": "texts",
13155
+ "privacy": "public",
13156
+ "description": "UI text overrides (i18n), merged over the English defaults. Objects have\nno attribute form — bind as a DOM property (`:texts.prop` in Vue)",
13157
+ "type": {
13158
+ "text": "CTreeSelectTexts"
13159
+ },
13160
+ "default": "() => ({})"
13161
+ },
13162
+ {
13163
+ "kind": "field",
13164
+ "name": "valid",
13165
+ "privacy": "public",
13166
+ "description": "Set the validity of the field",
13167
+ "type": {
13168
+ "text": "boolean"
13169
+ },
13170
+ "default": "true"
13171
+ },
13172
+ {
13173
+ "kind": "field",
13174
+ "name": "value",
13175
+ "privacy": "public",
13176
+ "description": "Selected value: the committed item's value, or the `CTreeSelectSelection`\nwith `return-object`; `null` when nothing is selected",
13177
+ "type": {
13178
+ "text": "CTreeSelectValue"
13179
+ },
13180
+ "default": "null"
13181
+ }
13182
+ ],
13183
+ "slots": []
13184
+ }
13185
+ ],
13186
+ "exports": [
13187
+ {
13188
+ "declaration": {
13189
+ "module": "src/components/c-tree-select/CTreeSelect.vue",
13190
+ "name": "CTreeSelect"
13191
+ },
13192
+ "kind": "js",
13193
+ "name": "CTreeSelect"
13194
+ },
13195
+ {
13196
+ "declaration": {
13197
+ "module": "src/components/c-tree-select/CTreeSelect.vue",
13198
+ "name": "CTreeSelect"
13199
+ },
13200
+ "kind": "custom-element-definition",
13201
+ "name": "c-tree-select"
13202
+ }
13203
+ ],
13204
+ "kind": "javascript-module",
13205
+ "path": "src/components/c-tree-select/CTreeSelect.vue"
12541
13206
  }
12542
13207
  ]
12543
13208
  }