@cscfi/csc-ui 4.0.0-alpha.2 → 4.0.0-alpha.20

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 (88) hide show
  1. package/dist/csc-ui.js +10192 -7248
  2. package/dist/custom-elements.json +2278 -257
  3. package/dist/docs/c-alert/usage.md +24 -0
  4. package/dist/docs/c-autocomplete/usage.md +152 -0
  5. package/dist/docs/c-button-group/usage.md +14 -1
  6. package/dist/docs/c-checkbox/usage.md +53 -0
  7. package/dist/docs/c-main/usage.md +21 -1
  8. package/dist/docs/c-menu/usage.md +15 -0
  9. package/dist/docs/c-menu-item/usage.md +6 -0
  10. package/dist/docs/c-option-value/usage.md +1 -0
  11. package/dist/docs/c-popover/usage.md +33 -0
  12. package/dist/docs/c-progress-bar/usage.md +23 -0
  13. package/dist/docs/c-progress-circle/usage.md +25 -0
  14. package/dist/docs/c-radio/usage.md +45 -0
  15. package/dist/docs/c-radio-group/usage.md +67 -0
  16. package/dist/docs/c-select/usage.md +127 -0
  17. package/dist/docs/c-side-navigation/usage.md +21 -0
  18. package/dist/docs/c-spinner/usage.md +21 -0
  19. package/dist/docs/c-switch/usage.md +36 -0
  20. package/dist/docs/c-tab-buttons/usage.md +7 -0
  21. package/dist/docs/c-table/usage.md +14 -0
  22. package/dist/docs/c-toolbar/usage.md +17 -0
  23. package/dist/docs/c-tooltip/usage.md +30 -0
  24. package/dist/docs/c-tree-select/usage.md +156 -0
  25. package/dist/styles/css/tailwind-theme.css +32 -0
  26. package/dist/styles/css/tokens.css +707 -197
  27. package/dist/vscode.css-custom-data.json +286 -19
  28. package/dist/vscode.html-custom-data.json +334 -51
  29. package/dist/web-types.json +1200 -190
  30. package/dist-types/components/c-alert/CAlert.vue.d.ts +18 -4
  31. package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +118 -18
  32. package/dist-types/components/c-button/CButton.vue.d.ts +1 -1
  33. package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +1 -1
  34. package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +3 -3
  35. package/dist-types/components/c-data-table/CDataTable.vue.d.ts +6 -2
  36. package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +48 -5
  37. package/dist-types/components/c-icon/CIcon.vue.d.ts +1 -1
  38. package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +1 -1
  39. package/dist-types/components/c-input/CInput.vue.d.ts +6 -2
  40. package/dist-types/components/c-login-button/CLoginButton.vue.d.ts +4 -2
  41. package/dist-types/components/c-main/CMain.vue.d.ts +9 -2
  42. package/dist-types/components/c-menu/CMenu.vue.d.ts +14 -4
  43. package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +30 -3
  44. package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +1 -1
  45. package/dist-types/components/c-pagination/CPagination.vue.d.ts +1 -1
  46. package/dist-types/components/c-popover/CPopover.vue.d.ts +43 -0
  47. package/dist-types/components/c-progress-circle/CProgressCircle.vue.d.ts +32 -0
  48. package/dist-types/components/c-radio/CRadio.vue.d.ts +7 -11
  49. package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +9 -47
  50. package/dist-types/components/c-select/CSelect.vue.d.ts +115 -24
  51. package/dist-types/components/c-side-navigation/CSideNavigation.vue.d.ts +1 -1
  52. package/dist-types/components/c-spinner/CSpinner.vue.d.ts +1 -1
  53. package/dist-types/components/c-switch/CSwitch.vue.d.ts +1 -1
  54. package/dist-types/components/c-table/CTable.vue.d.ts +11 -1
  55. package/dist-types/components/c-table/injectTableStyles.d.ts +1 -0
  56. package/dist-types/components/c-tag/CTag.vue.d.ts +8 -1
  57. package/dist-types/components/c-text-field/CTextField.vue.d.ts +15 -4
  58. package/dist-types/components/c-toolbar/CToolbar.vue.d.ts +10 -1
  59. package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +49 -0
  60. package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +261 -0
  61. package/dist-types/index.d.ts +14 -2
  62. package/dist-types/shared/FieldMessage.vue.d.ts +21 -0
  63. package/dist-types/shared/PanelHeadingRow.vue.d.ts +13 -0
  64. package/dist-types/shared/SelectionIndicator.vue.d.ts +21 -0
  65. package/dist-types/shared/appDefaults.d.ts +75 -0
  66. package/dist-types/shared/defineElement.d.ts +1 -0
  67. package/dist-types/shared/lightDismiss.d.ts +35 -0
  68. package/dist-types/shared/modalStack.d.ts +4 -3
  69. package/dist-types/shared/optionLabel.d.ts +18 -0
  70. package/dist-types/shared/pageLock.d.ts +26 -0
  71. package/dist-types/shared/peekCap.d.ts +35 -0
  72. package/dist-types/shared/popoverChain.d.ts +65 -0
  73. package/dist-types/shared/positionArea.d.ts +13 -0
  74. package/dist-types/shared/selectAll.d.ts +29 -0
  75. package/dist-types/shared/splitMatches.d.ts +18 -0
  76. package/dist-types/shared/useAnchoredPanel.d.ts +98 -0
  77. package/dist-types/shared/useDesignatedTrigger.d.ts +40 -0
  78. package/dist-types/shared/useHostStates.d.ts +25 -0
  79. package/dist-types/shared/useNarrowViewport.d.ts +19 -0
  80. package/dist-types/shared/useScrollStrip.d.ts +39 -0
  81. package/dist-types/shared/useStatusAnnouncer.d.ts +33 -0
  82. package/dist-types/shared/visualViewport.d.ts +51 -0
  83. package/dist-types/tag-name-map.d.ts +440 -51
  84. package/dist-types/theme/chart-data.d.ts +51 -0
  85. package/dist-types/theme/ramp.d.ts +38 -0
  86. package/dist-types/theme/themeMode.d.ts +51 -0
  87. package/dist-types/types.d.ts +13 -0
  88. package/package.json +19 -8
@@ -1,9 +1,21 @@
1
1
  /**
2
- * The alert types that render a status icon and carry that status's accent
3
- * colour.
2
+ * The alert types that carry a status family's accent colour; `default` uses
3
+ * the brand primary. Every type renders its status icon.
4
4
  */
5
5
  export type CAlertIconType = 'error' | 'info' | 'success' | 'warning';
6
6
  export interface CAlertProps {
7
+ /**
8
+ * Show a dismiss button. The alert only emits `dismiss` — removing it from
9
+ * the page stays the consumer's job.
10
+ */
11
+ dismissible?: boolean;
12
+ /**
13
+ * Heading rendered above the message. The `heading` slot overrides it for
14
+ * rich content.
15
+ *
16
+ * @freeform
17
+ */
18
+ heading?: string;
7
19
  /**
8
20
  * Type of the alert
9
21
  *
@@ -13,15 +25,17 @@ export interface CAlertProps {
13
25
  }
14
26
  /**
15
27
  * Type of the alert. `default` — equivalently, omitting the attribute —
16
- * renders the neutral box without a status icon.
28
+ * renders the brand-primary look; the four status types carry their status
29
+ * family's colours.
17
30
  */
18
31
  export type CAlertType = 'default' | CAlertIconType;
19
32
  declare const _default: typeof __VLS_export;
20
33
  export default _default;
21
34
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CAlertProps> & Readonly<{}>, {
22
35
  type: CAlertType;
36
+ dismissible: boolean;
23
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
24
- title?: (props: {}) => any;
38
+ heading?: (props: {}) => any;
25
39
  } & {
26
40
  default?: (props: {}) => any;
27
41
  }>;
@@ -1,4 +1,4 @@
1
- import type { CSelectItem } from '../../types';
1
+ import type { CFieldSize, CSelectItem } from '../../types';
2
2
  /**
3
3
  * Custom filter predicate for `c-autocomplete`. Return `true` to keep the
4
4
  * option for the current query. The default matches the start of the label.
@@ -17,7 +17,10 @@ export type CAutocompleteItem = CSelectItem;
17
17
  export interface CAutocompleteOption {
18
18
  /** Whether the option is disabled. */
19
19
  disabled: boolean;
20
- /** The option's display label. */
20
+ /**
21
+ * The option's label: its `name`, else the text of its `c-option-value`,
22
+ * else its whole text content (for an `items` entry, its `name`).
23
+ */
21
24
  label: string;
22
25
  /** The option's value. */
23
26
  value: number | string;
@@ -41,7 +44,11 @@ export interface CAutocompleteProps {
41
44
  external?: boolean;
42
45
  /** Custom filter predicate; receives a normalized option + the query. Ignored when `external` is set */
43
46
  filter?: CAutocompleteFilter;
44
- /** Hide the hint and error messages */
47
+ /**
48
+ * Hide the hint and error messages
49
+ *
50
+ * @defaultable false
51
+ */
45
52
  hideDetails?: boolean;
46
53
  /**
47
54
  * Hint text for the input
@@ -57,7 +64,11 @@ export interface CAutocompleteProps {
57
64
  hostId?: string;
58
65
  /** Dropdown items (when not using <c-option> elements) */
59
66
  items?: CAutocompleteItem[];
60
- /** Items per page before the list scrolls */
67
+ /**
68
+ * Items per page before the list scrolls
69
+ *
70
+ * @defaultable 6
71
+ */
61
72
  itemsPerPage?: number;
62
73
  /**
63
74
  * Element label
@@ -65,22 +76,34 @@ export interface CAutocompleteProps {
65
76
  * @freeform
66
77
  */
67
78
  label?: string;
68
- /** Label on top of the input */
79
+ /**
80
+ * Label on top of the input
81
+ *
82
+ * @defaultable false
83
+ */
69
84
  labelOnTop?: boolean;
70
85
  /** Show loading state */
71
86
  loading?: boolean;
72
87
  /**
73
- * Input field name
74
- *
75
- * @freeform
88
+ * In `multiple` mode, show at most this many selected-value tags and fold
89
+ * the rest into one "+N more" tag; `0` shows no tags and reads "N selected"
90
+ * instead; unset shows every tag
76
91
  */
77
- name?: string;
92
+ maxTags?: number;
78
93
  /**
79
- * Message shown when the query matches no options
94
+ * Allow selecting several options: rows toggle, the panel stays open and
95
+ * keeps its query, `value` becomes an array of the selected values (items
96
+ * with `return-object`) in the order they were picked, and the picks show
97
+ * as tags inside the field. Arrays have no attribute form — bind `value` as
98
+ * a DOM property
99
+ */
100
+ multiple?: boolean;
101
+ /**
102
+ * Input field name
80
103
  *
81
104
  * @freeform
82
105
  */
83
- noResultsText?: string;
106
+ name?: string;
84
107
  /**
85
108
  * Placeholder for the in-panel search input
86
109
  *
@@ -91,13 +114,86 @@ export interface CAutocompleteProps {
91
114
  required?: boolean;
92
115
  /** Return object instead of value */
93
116
  returnObject?: boolean;
94
- /** Shadow variant */
117
+ /**
118
+ * In `multiple` mode, pin a select-all row at the top of the list. Its
119
+ * checkbox shows whether none, some or all enabled options currently listed
120
+ * — the matches while a query is typed, the given `items` with `external` —
121
+ * are selected; activating it selects them all, or, when all are selected,
122
+ * unselects them. Ignored in single mode
123
+ */
124
+ selectAll?: boolean;
125
+ /**
126
+ * Shadow variant
127
+ *
128
+ * @defaultable false
129
+ */
95
130
  shadow?: boolean;
131
+ /**
132
+ * Field height: the 44px default or the 36px `small` box
133
+ *
134
+ * @defaultable 'default'
135
+ */
136
+ size?: CFieldSize;
137
+ /**
138
+ * UI text overrides (i18n), merged over the English defaults. Objects have
139
+ * no attribute form — bind as a DOM property (`:texts.prop` in Vue)
140
+ *
141
+ * @defaultable {}
142
+ */
143
+ texts?: CAutocompleteTexts;
96
144
  /** Set the validity of the input */
97
145
  valid?: boolean;
98
- /** Selected value (scalar, or object when return-object is set) */
99
- value?: CAutocompleteItem | null | number | string;
146
+ /**
147
+ * Selected value: the option's value, or the whole item with
148
+ * `return-object`; an array of them in `multiple` mode
149
+ */
150
+ value?: CAutocompleteValue;
100
151
  }
152
+ /**
153
+ * UI texts of `c-autocomplete`, shallow-merged over the English defaults.
154
+ * Static labels are strings; count- or label-interpolated ones are
155
+ * functions.
156
+ */
157
+ export interface CAutocompleteTexts {
158
+ /** Accessible label of the clear button. */
159
+ clearSelection?: string;
160
+ /** Accessible label of the close button in the fullscreen panel (narrow viewports). */
161
+ closePanel?: string;
162
+ /** Accessible label of the search input inside the panel. */
163
+ filterOptions?: string;
164
+ /** Text of the loading row shown while `loading` with nothing to list. */
165
+ loading?: string;
166
+ /**
167
+ * Text of the overflow tag when `max-tags` folds the selection; receives the
168
+ * number of hidden tags.
169
+ */
170
+ more?: (count: number) => string;
171
+ /** Text of the row shown when the query matches no options. */
172
+ noResults?: string;
173
+ /** Accessible label of a tag's remove button; receives the option label. */
174
+ remove?: (label: string) => string;
175
+ /** Placeholder of the search input when the `placeholder` prop is empty. */
176
+ searchPlaceholder?: string;
177
+ /**
178
+ * Label of the select-all row; receives the number of enabled options
179
+ * listed.
180
+ */
181
+ selectAll?: (count: number) => string;
182
+ /**
183
+ * Field text when `max-tags="0"` shows no tags; receives the selection
184
+ * count.
185
+ */
186
+ selected?: (count: number) => string;
187
+ /** Accessible label of the chevron button that opens and closes the panel. */
188
+ toggleOptions?: string;
189
+ }
190
+ /**
191
+ * Selection value of `c-autocomplete`: the committed option's value — or the
192
+ * whole `{ name, value }` item with `return-object` — and `null` when
193
+ * cleared. In `multiple` mode an array of them in the order they were
194
+ * picked, `[]` when empty.
195
+ */
196
+ export type CAutocompleteValue = (number | string)[] | CAutocompleteItem | CAutocompleteItem[] | null | number | string;
101
197
  declare const _default: typeof __VLS_export;
102
198
  export default _default;
103
199
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CAutocompleteProps, {
@@ -105,10 +201,13 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CAutoc
105
201
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CAutocompleteProps> & Readonly<{}>, {
106
202
  label: string;
107
203
  filter: CAutocompleteFilter;
108
- value: CAutocompleteItem | null | number | string;
204
+ value: CAutocompleteValue;
109
205
  name: string;
110
- clearable: boolean;
206
+ multiple: boolean;
207
+ required: boolean;
111
208
  disabled: boolean;
209
+ size: CFieldSize;
210
+ clearable: boolean;
112
211
  errorMessage: string;
113
212
  external: boolean;
114
213
  hideDetails: boolean;
@@ -118,11 +217,12 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CAutoc
118
217
  itemsPerPage: number;
119
218
  labelOnTop: boolean;
120
219
  loading: boolean;
121
- noResultsText: string;
220
+ maxTags: number;
122
221
  placeholder: string;
123
- required: boolean;
124
222
  returnObject: boolean;
223
+ selectAll: boolean;
125
224
  shadow: boolean;
225
+ texts: CAutocompleteTexts;
126
226
  valid: boolean;
127
227
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
128
228
  pre?: (props: {}) => any;
@@ -120,6 +120,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CButto
120
120
  value: number | string;
121
121
  type: CButtonType;
122
122
  disabled: boolean;
123
+ size: CButtonSize;
123
124
  hostId: string;
124
125
  loading: boolean;
125
126
  active: boolean;
@@ -130,7 +131,6 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CButto
130
131
  inverted: boolean;
131
132
  noRadius: boolean;
132
133
  noRipple: boolean;
133
- size: CButtonSize;
134
134
  target: string;
135
135
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
136
136
  icon?: (props: {}) => any;
@@ -53,8 +53,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CButto
53
53
  value: CButtonGroupValue;
54
54
  mandatory: boolean;
55
55
  multiple: boolean;
56
- disabled: boolean;
57
56
  required: boolean;
57
+ disabled: boolean;
58
58
  size: CButtonGroupSize;
59
59
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
60
60
  default?: (props: {}) => any;
@@ -90,19 +90,19 @@ interface CCheckboxProps {
90
90
  */
91
91
  value?: boolean | number | string;
92
92
  }
93
- declare var __VLS_7: {};
93
+ declare var __VLS_12: {};
94
94
  type __VLS_Slots = {} & {
95
- default?: (props: typeof __VLS_7) => any;
95
+ default?: (props: typeof __VLS_12) => any;
96
96
  };
97
97
  declare const __VLS_base: import("vue").DefineComponent<CCheckboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CCheckboxProps> & Readonly<{}>, {
98
98
  label: string;
99
99
  value: boolean | number | string;
100
+ required: boolean;
100
101
  disabled: boolean;
101
102
  errorMessage: string;
102
103
  hideDetails: boolean;
103
104
  hint: string;
104
105
  hostId: string;
105
- required: boolean;
106
106
  valid: boolean;
107
107
  checked: boolean;
108
108
  falseValue: boolean | number | string;
@@ -147,7 +147,11 @@ export interface CDataTableProps {
147
147
  stickyFooter?: boolean;
148
148
  /** Keep the header row visible while the table scrolls vertically. */
149
149
  stickyHeader?: boolean;
150
- /** UI text overrides (i18n), merged over the English defaults. */
150
+ /**
151
+ * UI text overrides (i18n), merged over the English defaults.
152
+ *
153
+ * @defaultable {}
154
+ */
151
155
  texts?: CDataTableTexts;
152
156
  }
153
157
  /** A single data row — the consumer's own plain domain object. */
@@ -196,6 +200,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CDataT
196
200
  sort: CDataTableSort | null;
197
201
  external: boolean;
198
202
  loading: boolean;
203
+ texts: CDataTableTexts;
199
204
  autohide: boolean;
200
205
  columns: CDataTableColumn[];
201
206
  expandedContent: (context: CDataTableExpandedContext) => CDataTableCellContent;
@@ -209,7 +214,6 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CDataT
209
214
  singleExpansion: boolean;
210
215
  stickyFooter: boolean;
211
216
  stickyHeader: boolean;
212
- texts: CDataTableTexts;
213
217
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
214
218
  caption?: (props: {}) => any;
215
219
  } & {
@@ -1,6 +1,12 @@
1
1
  type CDropdownItemType = 'item' | 'option';
2
2
  type CDropdownParentType = 'autocomplete' | 'select';
3
3
  interface CDropdownProps {
4
+ /**
5
+ * Accessible label of the fullscreen panel's close button (narrow viewports)
6
+ *
7
+ * @freeform
8
+ */
9
+ closeLabel?: string;
4
10
  /** Whether items are <c-option> elements or plain objects */
5
11
  dropdownItemType?: CDropdownItemType;
6
12
  /**
@@ -9,31 +15,63 @@ interface CDropdownProps {
9
15
  * @freeform
10
16
  */
11
17
  hostId?: string;
12
- /** Current highlighted index */
18
+ /** Current highlighted index; `-1` (`SELECT_ALL_INDEX`) is the select-all row */
13
19
  index?: null | number;
14
20
  /** Dropdown options: a NodeList of <c-option> or an array of items */
15
21
  items?: ArrayLike<DropdownItem>;
16
22
  /** Items per page before adding scroll */
17
23
  itemsPerPage?: number;
24
+ /**
25
+ * The parent field's label, shown as the fullscreen panel's heading (narrow viewports)
26
+ *
27
+ * @freeform
28
+ */
29
+ label?: string;
30
+ /**
31
+ * Multi-select mode: rows toggle instead of committing, each carries a
32
+ * decorative checkbox indicator, and the listbox is `aria-multiselectable`
33
+ */
34
+ multiple?: boolean;
18
35
  /** Dropdown parent (the c-select / c-autocomplete host element) */
19
36
  parent?: HTMLElement | null;
37
+ /**
38
+ * The select-all row in `multiple` mode, as the parent computes it (label,
39
+ * tri-state, counts for the live region); `null` renders no row
40
+ */
41
+ selectAllRow?: CDropdownSelectAllRow | null;
42
+ /**
43
+ * Values of the currently selected items — the picked values in `multiple`
44
+ * mode, the single value otherwise; drives each row's `aria-selected`, its
45
+ * indicator and the single-mode selected-row check
46
+ */
47
+ selected?: (number | string)[];
20
48
  /** Parent type — drives autocomplete-only behaviour (highlight, messages) */
21
49
  type?: CDropdownParentType;
22
50
  }
51
+ /**
52
+ * The select-all row as the parent computes it (ADR-0046): the label, the
53
+ * indicator's tri-state and the counts the live region speaks.
54
+ */
55
+ interface CDropdownSelectAllRow {
56
+ label: string;
57
+ selected: number;
58
+ state: 'all' | 'none' | 'some';
59
+ total: number;
60
+ }
23
61
  type DropdownItem = {
24
- disabled?: boolean;
62
+ disabled?: boolean | string;
25
63
  name: string;
26
64
  outerHTML?: string;
27
65
  selected?: boolean;
28
66
  value: number | string;
29
67
  };
30
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
68
+ declare var __VLS_1: {}, __VLS_10: {}, __VLS_27: {};
31
69
  type __VLS_Slots = {} & {
32
70
  default?: (props: typeof __VLS_1) => any;
33
71
  } & {
34
- 'input-top'?: (props: typeof __VLS_3) => any;
72
+ 'input-top'?: (props: typeof __VLS_10) => any;
35
73
  } & {
36
- 'input-bottom'?: (props: typeof __VLS_5) => any;
74
+ 'input-bottom'?: (props: typeof __VLS_27) => any;
37
75
  };
38
76
  declare const __VLS_base: import("vue").DefineComponent<CDropdownProps, {
39
77
  close: () => void;
@@ -43,13 +81,18 @@ declare const __VLS_base: import("vue").DefineComponent<CDropdownProps, {
43
81
  setStatusText: (text: string) => void;
44
82
  updateList: (reset?: boolean) => void;
45
83
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CDropdownProps> & Readonly<{}>, {
84
+ label: string;
46
85
  type: CDropdownParentType;
86
+ multiple: boolean;
47
87
  hostId: string;
48
88
  items: ArrayLike<DropdownItem>;
49
89
  itemsPerPage: number;
90
+ selected: (number | string)[];
91
+ closeLabel: string;
50
92
  dropdownItemType: CDropdownItemType;
51
93
  index: null | number;
52
94
  parent: HTMLElement | null;
95
+ selectAllRow: CDropdownSelectAllRow | null;
53
96
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
54
97
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
55
98
  declare const _default: typeof __VLS_export;
@@ -15,8 +15,8 @@ interface CIconProps {
15
15
  size?: number;
16
16
  }
17
17
  declare const __VLS_export: import("vue").DefineComponent<CIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CIconProps> & Readonly<{}>, {
18
- color: string;
19
18
  size: number;
19
+ color: string;
20
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  declare const _default: typeof __VLS_export;
22
22
  export default _default;
@@ -73,11 +73,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CIconB
73
73
  text: boolean;
74
74
  outlined: boolean;
75
75
  disabled: boolean;
76
+ size: CIconButtonSize;
76
77
  loading: boolean;
77
78
  danger: boolean;
78
79
  ghost: boolean;
79
80
  inverted: boolean;
80
- size: CIconButtonSize;
81
81
  badge: null | number | string;
82
82
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
83
83
  default?: (props: {}) => any;
@@ -1,3 +1,4 @@
1
+ import type { CFieldSize } from '../../types';
1
2
  interface CInputProps {
2
3
  /** Set by the wrapping form component when its input has focus or holds a value. */
3
4
  active?: boolean;
@@ -61,6 +62,8 @@ interface CInputProps {
61
62
  * @seeded from csc-ui — verify
62
63
  */
63
64
  shadow?: boolean;
65
+ /** Field height: the 44px default or the 36px `small` box */
66
+ size?: CFieldSize;
64
67
  /**
65
68
  * Set the validíty of the input
66
69
  *
@@ -78,17 +81,18 @@ type __VLS_Slots = {} & {
78
81
  };
79
82
  declare const __VLS_base: import("vue").DefineComponent<CInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CInputProps> & Readonly<{}>, {
80
83
  label: string;
84
+ required: boolean;
81
85
  disabled: boolean;
86
+ size: CFieldSize;
82
87
  errorMessage: string;
83
88
  hideDetails: boolean;
84
89
  hint: string;
85
90
  labelOnTop: boolean;
86
- required: boolean;
87
91
  shadow: boolean;
88
92
  valid: boolean;
89
- inputId: string;
90
93
  active: boolean;
91
94
  filled: boolean;
95
+ inputId: string;
92
96
  isTextarea: boolean;
93
97
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
94
98
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,9 +21,11 @@ interface CLoginButtonProps {
21
21
  */
22
22
  src?: string;
23
23
  }
24
- declare var __VLS_1: {};
24
+ declare var __VLS_1: {}, __VLS_3: {};
25
25
  type __VLS_Slots = {} & {
26
- default?: (props: typeof __VLS_1) => any;
26
+ image?: (props: typeof __VLS_1) => any;
27
+ } & {
28
+ default?: (props: typeof __VLS_3) => any;
27
29
  };
28
30
  declare const __VLS_base: import("vue").DefineComponent<CLoginButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CLoginButtonProps> & Readonly<{}>, {
29
31
  href: string;
@@ -6,9 +6,16 @@ interface CMainProps {
6
6
  */
7
7
  disableLayout?: boolean;
8
8
  }
9
- declare var __VLS_1: {};
9
+ declare var __VLS_1: {
10
+ class: string;
11
+ }, __VLS_3: {
12
+ ref: string;
13
+ onSlotchange: () => void;
14
+ };
10
15
  type __VLS_Slots = {} & {
11
- default?: (props: typeof __VLS_1) => any;
16
+ banner?: (props: typeof __VLS_1) => any;
17
+ } & {
18
+ default?: (props: typeof __VLS_3) => any;
12
19
  };
13
20
  declare const __VLS_base: import("vue").DefineComponent<CMainProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMainProps> & Readonly<{}>, {
14
21
  disableLayout: boolean;
@@ -1,12 +1,21 @@
1
+ import type { CPlacement } from '../../types';
1
2
  interface CMenuProps {
2
3
  /** Distance from the trigger to the panel, in pixels. Defaults to `0`. */
3
4
  distance?: number | string;
4
5
  /** Whether the menu is open. Two-way: emits `change:open`. */
5
6
  open?: boolean;
6
7
  /** Preferred placement of the panel relative to the trigger. */
7
- position?: Placement;
8
+ position?: CPlacement;
9
+ /**
10
+ * Designated trigger: an element elsewhere in the document that opens the
11
+ * menu — its document ID, or the element itself. The same trigger concept
12
+ * as the `trigger` slot, supplied by reference: the menu wires
13
+ * click-to-toggle, arrow-key opening, ARIA and focus return onto it and
14
+ * anchors the panel to it. When both routes are supplied, this prop wins
15
+ * over the slot.
16
+ */
17
+ trigger?: HTMLElement | string;
8
18
  }
9
- type Placement = 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
10
19
  declare var __VLS_1: {}, __VLS_3: {};
11
20
  type __VLS_Slots = {} & {
12
21
  trigger?: (props: typeof __VLS_1) => any;
@@ -14,9 +23,10 @@ type __VLS_Slots = {} & {
14
23
  default?: (props: typeof __VLS_3) => any;
15
24
  };
16
25
  declare const __VLS_base: import("vue").DefineComponent<CMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMenuProps> & Readonly<{}>, {
17
- open: boolean;
18
26
  distance: number | string;
19
- position: Placement;
27
+ open: boolean;
28
+ position: CPlacement;
29
+ trigger: HTMLElement | string;
20
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
31
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
32
  declare const _default: typeof __VLS_export;
@@ -1,8 +1,31 @@
1
1
  interface CMenuItemProps {
2
+ /**
3
+ * Marks the item as the currently selected choice: renders the trailing
4
+ * indicator icon and stamps `role="menuitemradio"` + `aria-checked`. Leave
5
+ * unset for regular command items — only a true/false value marks the item
6
+ * as a selectable choice. The state is consumer-owned: the menu emits
7
+ * `select` as usual and never toggles this itself. Distinct from the
8
+ * keyboard highlight (the `data-active` attribute the controlling menu
9
+ * moves between rows).
10
+ */
11
+ active?: boolean;
12
+ /**
13
+ * SVG path for the trailing indicator shown while `active`; defaults to a
14
+ * check mark.
15
+ *
16
+ * @freeform SVG path data
17
+ */
18
+ activeIcon?: string;
2
19
  /** Marks the action as destructive (renders in the error colour). */
3
20
  danger?: boolean;
4
21
  /** Disables the item — it is skipped by keyboard nav and emits no select. */
5
22
  disabled?: boolean;
23
+ /**
24
+ * SVG path for a leading icon rendered before the item's content.
25
+ *
26
+ * @freeform SVG path data
27
+ */
28
+ icon?: string;
6
29
  /**
7
30
  * Value reported in the menu's `select` event when this item is chosen.
8
31
  *
@@ -10,19 +33,23 @@ interface CMenuItemProps {
10
33
  */
11
34
  value?: string;
12
35
  }
13
- declare var __VLS_1: {}, __VLS_3: {};
36
+ declare var __VLS_6: {}, __VLS_13: {};
14
37
  type __VLS_Slots = {} & {
15
- default?: (props: typeof __VLS_1) => any;
38
+ default?: (props: typeof __VLS_6) => any;
16
39
  } & {
17
- submenu?: (props: typeof __VLS_3) => any;
40
+ submenu?: (props: typeof __VLS_13) => any;
18
41
  };
19
42
  declare const __VLS_base: import("vue").DefineComponent<CMenuItemProps, {
20
43
  closeSubmenu: () => void;
44
+ isSubmenuOpen: () => boolean;
21
45
  openSubmenu: () => void;
22
46
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMenuItemProps> & Readonly<{}>, {
47
+ icon: string;
23
48
  value: string;
24
49
  disabled: boolean;
50
+ active: boolean;
25
51
  danger: boolean;
52
+ activeIcon: string;
26
53
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
54
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
55
  declare const _default: typeof __VLS_export;
@@ -69,10 +69,10 @@ declare const __VLS_base: import("vue").DefineComponent<COtpInputProps, {}, {},
69
69
  label: string;
70
70
  length: number;
71
71
  value: string;
72
+ required: boolean;
72
73
  errorMessage: string;
73
74
  hideDetails: boolean;
74
75
  hint: string;
75
- required: boolean;
76
76
  valid: boolean;
77
77
  elementId: string;
78
78
  hasAutofocus: boolean;
@@ -50,8 +50,8 @@ declare const _default: typeof __VLS_export;
50
50
  export default _default;
51
51
  declare const __VLS_export: import("vue").DefineComponent<CPaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CPaginationProps> & Readonly<{}>, {
52
52
  value: CPaginationOptions;
53
- hideDetails: boolean;
54
53
  size: CPaginationSize;
54
+ hideDetails: boolean;
55
55
  hideRange: boolean;
56
56
  simple: boolean;
57
57
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;