@cscfi/csc-ui 4.0.0-alpha.4 → 4.0.0-alpha.6

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@cscfi/csc-ui",
4
- "version": "4.0.0-alpha.4",
4
+ "version": "4.0.0-alpha.6",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -187,7 +187,7 @@
187
187
  },
188
188
  {
189
189
  "name": "c-alert",
190
- "description": "\n---\n\n\n### **Events:**\n - **dismiss** - Fired when the dismiss button is pressed. The alert does not hide\nitself — the consumer owns removal.\n\n### **Slots:**\n - **title** - Title slot\n- **default** - Default slot\n\n### **CSS Parts:**\n - **root** - The tinted box carrying the type's wash, hairline border and accent edge\n- **icon** - The status icon svg\n- **content** - The wrapper around the slotted title and message content\n- **dismiss** - The dismiss button rendered when `dismissible` is set",
190
+ "description": "A persistent, in-flow status message: a tinted box whose type carries a status family's colours through the icon, heading and accent edge, while the body copy stays neutral.\n---\n\n\n### **Events:**\n - **dismiss** - Fired when the dismiss button is pressed. The alert does not hide\nitself — the consumer owns removal.\n\n### **Slots:**\n - **heading** - Rich heading content; overrides the `heading` prop\n- **default** - Default slot\n\n### **CSS Parts:**\n - **root** - The tinted box carrying the type's wash, hairline border and accent edge\n- **icon** - The status icon svg\n- **content** - The wrapper around the heading and message content\n- **heading** - The heading paragraph rendered from the `heading` prop\n- **dismiss** - The dismiss button rendered when `dismissible` is set",
191
191
  "doc-url": "",
192
192
  "attributes": [
193
193
  {
@@ -195,6 +195,11 @@
195
195
  "description": "Show a dismiss button. The alert only emits `dismiss` — removing it from\nthe page stays the consumer's job.",
196
196
  "value": { "type": "boolean", "default": "false" }
197
197
  },
198
+ {
199
+ "name": "heading",
200
+ "description": "Heading rendered above the message. The `heading` slot overrides it for\nrich content.",
201
+ "value": { "type": "string" }
202
+ },
198
203
  {
199
204
  "name": "type",
200
205
  "description": "Type of the alert",
@@ -205,7 +210,10 @@
205
210
  }
206
211
  ],
207
212
  "slots": [
208
- { "name": "title", "description": "Title slot" },
213
+ {
214
+ "name": "heading",
215
+ "description": "Rich heading content; overrides the `heading` prop"
216
+ },
209
217
  { "name": "default", "description": "Default slot" }
210
218
  ],
211
219
  "events": [
@@ -222,6 +230,11 @@
222
230
  "description": "Show a dismiss button. The alert only emits `dismiss` — removing it from\nthe page stays the consumer's job.",
223
231
  "type": "boolean"
224
232
  },
233
+ {
234
+ "name": "heading",
235
+ "description": "Heading rendered above the message. The `heading` slot overrides it for\nrich content.",
236
+ "type": "string"
237
+ },
225
238
  {
226
239
  "name": "type",
227
240
  "description": "Type of the alert",
@@ -949,7 +962,7 @@
949
962
  },
950
963
  {
951
964
  "name": "c-checkbox",
952
- "description": "\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\ncheckbox is toggled (the inner input's change does not cross the shadow\nboundary). No detail; read the new value from the host's `value` property.\n- **changeValue** - Fired when the checkbox is toggled, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on toggle so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on toggle, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked.\n\n### **Slots:**\n - **default** - Default slot for the label\n\n### **CSS Parts:**\n - **root** - The outer wrapper containing the checkbox, label and message\n- **label** - The `<label>` element wrapping the indicator and the label content\n- **indicator** - The circular ripple surface holding the checkbox box and checkmark\n- **content** - Wrapper around the label text or slotted label content\n- **message** - The hint / error message area below the checkbox (always reserved unless `hide-details`)",
965
+ "description": "A form control for a single on/off choice: a native checkbox with a label, an optional hint, and validation messaging.\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\ncheckbox is toggled (the inner input's change does not cross the shadow\nboundary). No detail; read the new value from the host's `value` property.\n- **changeValue** - Fired when the checkbox is toggled, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on toggle so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on toggle, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked.\n\n### **Slots:**\n - **default** - Default slot for the label\n\n### **CSS Parts:**\n - **root** - The outer wrapper containing the checkbox, label and message\n- **label** - The `<label>` element wrapping the indicator and the label content\n- **indicator** - The checkbox box itself — the bordered square that fills when checked\n- **mark** - The SVG check / indeterminate glyph revealed inside the indicator; draws with `currentColor`, so `color` recolours it\n- **content** - Wrapper around the label text or slotted label content\n- **message** - The hint / error message area below the checkbox (always reserved unless `hide-details`)",
953
966
  "doc-url": "",
954
967
  "attributes": [
955
968
  {
@@ -3153,7 +3166,7 @@
3153
3166
  },
3154
3167
  {
3155
3168
  "name": "c-progress-bar",
3156
- "description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The outer flex wrapper around the bar and the details line\n- **bar** - The visible track of the progress bar, wrapping the native `<progress>` element\n- **details** - The percentage and label text line",
3169
+ "description": "A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label.\n---\n\n\n### **CSS Parts:**\n - **root** - The outer flex wrapper around the bar and the details line\n- **bar** - The visible track of the progress bar, wrapping the native `<progress>` element\n- **details** - The percentage and label text line",
3157
3170
  "doc-url": "",
3158
3171
  "attributes": [
3159
3172
  {
@@ -3215,9 +3228,58 @@
3215
3228
  "events": []
3216
3229
  }
3217
3230
  },
3231
+ {
3232
+ "name": "c-progress-circle",
3233
+ "description": "A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`.\n---\n\n\n### **Slots:**\n - **default** - Optional content centered inside the circle, e.g. '57%' or an icon\n\n### **CSS Parts:**\n - **root** - The wrapper around the ring and the centered content\n- **track** - The background ring (SVG circle)\n- **bar** - The value arc (SVG circle)\n- **content** - The centered slot-content wrapper",
3234
+ "doc-url": "",
3235
+ "attributes": [
3236
+ {
3237
+ "name": "size",
3238
+ "description": "Diameter of the circle in pixels",
3239
+ "value": { "type": "number", "default": "32" }
3240
+ },
3241
+ {
3242
+ "name": "value",
3243
+ "description": "Progress value in percentage (0 to 100)",
3244
+ "value": { "type": "number", "default": "0" }
3245
+ },
3246
+ {
3247
+ "name": "width",
3248
+ "description": "Stroke width of the track in pixels; the value arc draws at half this\nwidth, inset within the track",
3249
+ "value": { "type": "number", "default": "6" }
3250
+ }
3251
+ ],
3252
+ "slots": [
3253
+ {
3254
+ "name": "default",
3255
+ "description": "Optional content centered inside the circle, e.g. '57%' or an icon"
3256
+ }
3257
+ ],
3258
+ "events": [],
3259
+ "js": {
3260
+ "properties": [
3261
+ {
3262
+ "name": "size",
3263
+ "description": "Diameter of the circle in pixels",
3264
+ "type": "number"
3265
+ },
3266
+ {
3267
+ "name": "value",
3268
+ "description": "Progress value in percentage (0 to 100)",
3269
+ "type": "number"
3270
+ },
3271
+ {
3272
+ "name": "width",
3273
+ "description": "Stroke width of the track in pixels; the value arc draws at half this\nwidth, inset within the track",
3274
+ "type": "number"
3275
+ }
3276
+ ],
3277
+ "events": []
3278
+ }
3279
+ },
3218
3280
  {
3219
3281
  "name": "c-radio",
3220
- "description": "A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label.\n---\n\n\n### **Events:**\n - **change** - Fired when the radio is selected by the user, carrying its `value`.\nBubbles composed so the parent `<c-radio-group>` — whose shadow root a\nlight-DOM event never enters — catches it on its host; a consumer\nlistening on the group hears it too, with the radio as `target`.\n\n### **Slots:**\n - **default** - The radio's label content, rendered inside the shadow `<label>` so it stays click-associated and announced\n\n### **CSS Parts:**\n - **root** - The `<label>` row wrapping the input, indicator and label content\n- **indicator** - The circular ripple surface holding the radio ring and dot\n- **content** - Wrapper around the slotted label content",
3282
+ "description": "A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label.\n---\n\n\n### **Events:**\n - **change** - Fired when the radio is selected by the user, carrying its `value`.\nBubbles composed so the parent `<c-radio-group>` — whose shadow root a\nlight-DOM event never enters — catches it on its host; a consumer\nlistening on the group hears it too, with the radio as `target`.\n\n### **Slots:**\n - **default** - The radio's label content, rendered inside the shadow `<label>` so it stays click-associated and announced\n\n### **CSS Parts:**\n - **root** - The `<label>` row wrapping the input, indicator and label content\n- **indicator** - The radio ring itself; the selection dot is its `::after` — both follow `currentColor`, so `color` recolours the whole indicator\n- **content** - Wrapper around the slotted label content",
3221
3283
  "doc-url": "",
3222
3284
  "attributes": [
3223
3285
  {
@@ -4002,7 +4064,7 @@
4002
4064
  },
4003
4065
  {
4004
4066
  "name": "c-spinner",
4005
- "description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The `<svg>` element that draws the spinning circle",
4067
+ "description": "A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration.\n---\n\n\n### **CSS Parts:**\n - **root** - The `<svg>` element that draws the spinning circle",
4006
4068
  "doc-url": "",
4007
4069
  "attributes": [
4008
4070
  {
@@ -4195,7 +4257,7 @@
4195
4257
  },
4196
4258
  {
4197
4259
  "name": "c-switch",
4198
- "description": "\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\nswitch is toggled (the inner input's change does not cross the shadow\nboundary). No detail; read the new value from the host's `value` property.\n- **changeValue** - Fired when the switch is toggled, carrying the new value —\n`trueValue` when on, `falseValue` when off. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on toggle so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on toggle, carrying the new value —\n`trueValue` when on, `falseValue` when off.\n\n### **Slots:**\n - **default** - The visible label of the switch (fallback when the `label` prop is not set)\n\n### **CSS Parts:**\n - **root** - The `<label>` element wrapping the toggle and the label text\n- **slider** - The toggle track (its `::before` pseudo-element is the handle)\n- **label** - Wrapper around the label text or slotted label content",
4260
+ "description": "A toggle for a binary setting that takes effect immediately: a native switch control with a label, an optional hint, and validation messaging.\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\nswitch is toggled (the inner input's change does not cross the shadow\nboundary). No detail; read the new value from the host's `value` property.\n- **changeValue** - Fired when the switch is toggled, carrying the new value —\n`trueValue` when on, `falseValue` when off. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on toggle so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on toggle, carrying the new value —\n`trueValue` when on, `falseValue` when off.\n\n### **Slots:**\n - **default** - The visible label of the switch (fallback when the `label` prop is not set)\n\n### **CSS Parts:**\n - **root** - The `<label>` element wrapping the toggle and the label text\n- **slider** - The toggle track (its `::before` pseudo-element is the handle)\n- **label** - Wrapper around the label text or slotted label content",
4199
4261
  "doc-url": "",
4200
4262
  "attributes": [
4201
4263
  {
@@ -4588,7 +4650,7 @@
4588
4650
  },
4589
4651
  {
4590
4652
  "name": "c-table",
4591
- "description": "\n---\n",
4653
+ "description": "A styled wrapper for a table you author yourself: slot in a plain `<table>` and c-table gives it the CSC look plus an optional responsive card layout on narrow screens. The table stays in your own DOM — your stylesheets, your framework's rendering, and `::part()` selectors on components nested in cells (a `c-tag` status chip, a `c-pagination` footer) all keep working.\n---\n\n\n### **Slots:**\n - **default** - The consumer-authored `<table>` element",
4592
4654
  "doc-url": "",
4593
4655
  "attributes": [
4594
4656
  {
@@ -4602,7 +4664,12 @@
4602
4664
  "value": { "type": "boolean", "default": "false" }
4603
4665
  }
4604
4666
  ],
4605
- "slots": [],
4667
+ "slots": [
4668
+ {
4669
+ "name": "default",
4670
+ "description": "The consumer-authored `<table>` element"
4671
+ }
4672
+ ],
4606
4673
  "events": [],
4607
4674
  "js": {
4608
4675
  "properties": [
@@ -5391,7 +5458,11 @@
5391
5458
  { "name": "part(icon)", "description": "The status icon svg" },
5392
5459
  {
5393
5460
  "name": "part(content)",
5394
- "description": "The wrapper around the slotted title and message content"
5461
+ "description": "The wrapper around the heading and message content"
5462
+ },
5463
+ {
5464
+ "name": "part(heading)",
5465
+ "description": "The heading paragraph rendered from the `heading` prop"
5395
5466
  },
5396
5467
  {
5397
5468
  "name": "part(dismiss)",
@@ -5491,7 +5562,11 @@
5491
5562
  },
5492
5563
  {
5493
5564
  "name": "part(indicator)",
5494
- "description": "The circular ripple surface holding the checkbox box and checkmark"
5565
+ "description": "The checkbox box itself — the bordered square that fills when checked"
5566
+ },
5567
+ {
5568
+ "name": "part(mark)",
5569
+ "description": "The SVG check / indeterminate glyph revealed inside the indicator; draws with `currentColor`, so `color` recolours it"
5495
5570
  },
5496
5571
  {
5497
5572
  "name": "part(content)",
@@ -5782,13 +5857,26 @@
5782
5857
  "name": "part(details)",
5783
5858
  "description": "The percentage and label text line"
5784
5859
  },
5860
+ {
5861
+ "name": "part(root)",
5862
+ "description": "The wrapper around the ring and the centered content"
5863
+ },
5864
+ {
5865
+ "name": "part(track)",
5866
+ "description": "The background ring (SVG circle)"
5867
+ },
5868
+ { "name": "part(bar)", "description": "The value arc (SVG circle)" },
5869
+ {
5870
+ "name": "part(content)",
5871
+ "description": "The centered slot-content wrapper"
5872
+ },
5785
5873
  {
5786
5874
  "name": "part(root)",
5787
5875
  "description": "The `<label>` row wrapping the input, indicator and label content"
5788
5876
  },
5789
5877
  {
5790
5878
  "name": "part(indicator)",
5791
- "description": "The circular ripple surface holding the radio ring and dot"
5879
+ "description": "The radio ring itself; the selection dot is its `::after` — both follow `currentColor`, so `color` recolours the whole indicator"
5792
5880
  },
5793
5881
  {
5794
5882
  "name": "part(content)",
@@ -9,6 +9,13 @@ export interface CAlertProps {
9
9
  * the page stays the consumer's job.
10
10
  */
11
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;
12
19
  /**
13
20
  * Type of the alert
14
21
  *
@@ -28,7 +35,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CAlert
28
35
  type: CAlertType;
29
36
  dismissible: boolean;
30
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
31
- title?: (props: {}) => any;
38
+ heading?: (props: {}) => any;
32
39
  } & {
33
40
  default?: (props: {}) => any;
34
41
  }>;
@@ -0,0 +1,32 @@
1
+ export interface CProgressCircleProps {
2
+ /**
3
+ * Diameter of the circle in pixels
4
+ */
5
+ size?: number;
6
+ /**
7
+ * Progress value in percentage (0 to 100)
8
+ */
9
+ value?: number;
10
+ /**
11
+ * Stroke width of the track in pixels; the value arc draws at half this
12
+ * width, inset within the track
13
+ */
14
+ width?: number;
15
+ }
16
+ declare var __VLS_1: {};
17
+ type __VLS_Slots = {} & {
18
+ default?: (props: typeof __VLS_1) => any;
19
+ };
20
+ declare const __VLS_base: import("vue").DefineComponent<CProgressCircleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CProgressCircleProps> & Readonly<{}>, {
21
+ value: number;
22
+ width: number;
23
+ size: number;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -14,7 +14,13 @@ declare var __VLS_1: {};
14
14
  type __VLS_Slots = {} & {
15
15
  default?: (props: typeof __VLS_1) => any;
16
16
  };
17
- declare const __VLS_base: import("vue").DefineComponent<CRadioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CRadioProps> & Readonly<{}>, {
17
+ declare const __VLS_base: import("vue").DefineComponent<CRadioProps, {
18
+ _syncGroupState: (state: {
19
+ checked: boolean;
20
+ disabled: boolean;
21
+ tabIndex: number;
22
+ }) => void;
23
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CRadioProps> & Readonly<{}>, {
18
24
  value: string;
19
25
  disabled: boolean;
20
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -12,9 +12,19 @@ interface CTableProps {
12
12
  */
13
13
  responsive?: boolean;
14
14
  }
15
- declare const __VLS_export: import("vue").DefineComponent<CTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTableProps> & Readonly<{}>, {
15
+ declare var __VLS_1: {};
16
+ type __VLS_Slots = {} & {
17
+ default?: (props: typeof __VLS_1) => any;
18
+ };
19
+ declare const __VLS_base: import("vue").DefineComponent<CTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTableProps> & Readonly<{}>, {
16
20
  mobileBreakpoint: number;
17
21
  responsive: boolean;
18
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
24
  declare const _default: typeof __VLS_export;
20
25
  export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1 @@
1
+ export declare const ensureTableStyles: () => void;
@@ -9,6 +9,7 @@ export type { CLoginCardActionsAlign, CLoginCardActionsJustify, CLoginCardAction
9
9
  export type { CLoginCardBlendMode, CLoginCardProps, } from './components/c-login-card/CLoginCard.vue';
10
10
  export type { CPaginationOptions, CPaginationProps, CPaginationSize, } from './components/c-pagination/CPagination.vue';
11
11
  export type { CPopoverProps } from './components/c-popover/CPopover.vue';
12
+ export type { CProgressCircleProps } from './components/c-progress-circle/CProgressCircle.vue';
12
13
  export type { CStatusProps, CStatusType, } from './components/c-status/CStatus.vue';
13
14
  export type { CTabButtonsProps, CTabButtonsSize, } from './components/c-tab-buttons/CTabButtons.vue';
14
15
  export type { CTabsJustify, CTabsProps } from './components/c-tabs/CTabs.vue';
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Host custom-state exposure — the single path for publishing a component's
3
+ * internal state to consumer CSS as `:state(<name>)` selectors (ADR-0035).
4
+ *
5
+ * Selection controls keep their live state (checked, indeterminate, …) on a
6
+ * hidden `<input>` inside the shadow root, where no consumer selector can see
7
+ * it. `ElementInternals.states` republishes it on the host, so a consumer can
8
+ * write per-state `::part()` rules:
9
+ *
10
+ * c-checkbox:state(checked)::part(indicator) { background: green; }
11
+ *
12
+ * Usage:
13
+ *
14
+ * const setState = useHostStates();
15
+ * watch(isChecked, (on) => setState('checked', on), { immediate: true });
16
+ *
17
+ * Each exposed state name is public API — curated like parts, documented with
18
+ * a `@cssstate` docblock tag so it lands in the manifest.
19
+ *
20
+ * `attachInternals()` may be called only once per element; this composable
21
+ * owns that call. Everything degrades to a silent no-op where internals or
22
+ * `states` are unavailable (SSR, tests, an ancient browser) — the component
23
+ * still renders and behaves, only the `:state()` selector surface is absent.
24
+ */
25
+ export declare const useHostStates: () => ((name: string, on: boolean) => void);
@@ -95,12 +95,18 @@ export interface CAlertElementEventMap {
95
95
  */
96
96
  dismiss: CustomEvent<void>;
97
97
  }
98
- export interface CAlertElement extends Omit<HTMLElement, 'dismissible' | 'type'> {
98
+ /** A persistent, in-flow status message: a tinted box whose type carries a status family's colours through the icon, heading and accent edge, while the body copy stays neutral. */
99
+ export interface CAlertElement extends Omit<HTMLElement, 'dismissible' | 'heading' | 'type'> {
99
100
  /**
100
101
  * Show a dismiss button. The alert only emits `dismiss` — removing it from
101
102
  * the page stays the consumer's job.
102
103
  */
103
104
  dismissible?: boolean;
105
+ /**
106
+ * Heading rendered above the message. The `heading` slot overrides it for
107
+ * rich content.
108
+ */
109
+ heading?: string;
104
110
  /** Type of the alert */
105
111
  type?: 'default' | 'error' | 'info' | 'success' | 'warning';
106
112
  addEventListener<K extends keyof CAlertElementEventMap>(type: K, listener: (this: CAlertElement, ev: CAlertElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
@@ -337,6 +343,7 @@ export interface CCheckboxElementEventMap {
337
343
  */
338
344
  'update:value': CustomEvent<boolean | number | string>;
339
345
  }
346
+ /** A form control for a single on/off choice: a native checkbox with a label, an optional hint, and validation messaging. */
340
347
  export interface CCheckboxElement extends Omit<HTMLElement, 'checked' | 'disabled' | 'errorMessage' | 'falseValue' | 'hideDetails' | 'hint' | 'hostId' | 'hostName' | 'indeterminate' | 'label' | 'required' | 'trueValue' | 'valid' | 'value'> {
341
348
  /** If `true`, the checkbox is selected. */
342
349
  checked?: boolean;
@@ -922,6 +929,7 @@ export interface CPopoverElement extends Omit<HTMLElement, 'distance' | 'heading
922
929
  removeEventListener<K extends keyof CPopoverElementEventMap>(type: K, listener: (this: CPopoverElement, ev: CPopoverElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
923
930
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
924
931
  }
932
+ /** A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label. */
925
933
  export interface CProgressBarElement extends Omit<HTMLElement, 'hideDetails' | 'indeterminate' | 'label' | 'singleLine' | 'value'> {
926
934
  /** Hide the percentage display */
927
935
  hideDetails?: boolean;
@@ -934,6 +942,18 @@ export interface CProgressBarElement extends Omit<HTMLElement, 'hideDetails' | '
934
942
  /** Progress bar value in percentage (0 to 100) */
935
943
  value?: number;
936
944
  }
945
+ /** A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`. */
946
+ export interface CProgressCircleElement extends Omit<HTMLElement, 'size' | 'value' | 'width'> {
947
+ /** Diameter of the circle in pixels */
948
+ size?: number;
949
+ /** Progress value in percentage (0 to 100) */
950
+ value?: number;
951
+ /**
952
+ * Stroke width of the track in pixels; the value arc draws at half this
953
+ * width, inset within the track
954
+ */
955
+ width?: number;
956
+ }
937
957
  /** Events dispatched by `<c-radio>`. */
938
958
  export interface CRadioElementEventMap {
939
959
  /**
@@ -1169,6 +1189,7 @@ export interface CSliderElement extends Omit<HTMLElement, 'ariaLabelInternal' |
1169
1189
  removeEventListener<K extends keyof CSliderElementEventMap>(type: K, listener: (this: CSliderElement, ev: CSliderElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
1170
1190
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1171
1191
  }
1192
+ /** A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration. */
1172
1193
  export interface CSpinnerElement extends Omit<HTMLElement, 'color' | 'size' | 'width'> {
1173
1194
  /** Color of the spinner */
1174
1195
  color?: string;
@@ -1227,6 +1248,7 @@ export interface CSwitchElementEventMap {
1227
1248
  */
1228
1249
  'update:value': CustomEvent<boolean | number | string>;
1229
1250
  }
1251
+ /** A toggle for a binary setting that takes effect immediately: a native switch control with a label, an optional hint, and validation messaging. */
1230
1252
  export interface CSwitchElement extends Omit<HTMLElement, 'checked' | 'disabled' | 'falseValue' | 'hostId' | 'label' | 'loading' | 'required' | 'trueValue' | 'value'> {
1231
1253
  /** If `true`, the checkbox is selected. */
1232
1254
  checked?: boolean;
@@ -1344,6 +1366,7 @@ export interface CTabItemsElement extends Omit<HTMLElement, 'disableAnimation' |
1344
1366
  /** Currently active tab */
1345
1367
  value?: number | string;
1346
1368
  }
1369
+ /** A styled wrapper for a table you author yourself: slot in a plain `<table>` and c-table gives it the CSC look plus an optional responsive card layout on narrow screens. The table stays in your own DOM — your stylesheets, your framework's rendering, and `::part()` selectors on components nested in cells (a `c-tag` status chip, a `c-pagination` footer) all keep working. */
1347
1370
  export interface CTableElement extends Omit<HTMLElement, 'mobileBreakpoint' | 'responsive'> {
1348
1371
  /** Mobile breakpoint in pixels */
1349
1372
  mobileBreakpoint?: number;
@@ -1613,6 +1636,7 @@ declare global {
1613
1636
  'c-pagination': CPaginationElement;
1614
1637
  'c-popover': CPopoverElement;
1615
1638
  'c-progress-bar': CProgressBarElement;
1639
+ 'c-progress-circle': CProgressCircleElement;
1616
1640
  'c-radio': CRadioElement;
1617
1641
  'c-radio-group': CRadioGroupElement;
1618
1642
  'c-select': CSelectElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cscfi/csc-ui",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0-alpha.6",
4
4
  "description": "Vue 3-based replacement for @cscfi/csc-ui — same custom element tag names, Vue v-model contract.",
5
5
  "type": "module",
6
6
  "main": "./dist/csc-ui.js",