@cscfi/csc-ui 4.0.0-alpha.16 → 4.0.0-alpha.18

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.
@@ -2649,7 +2649,7 @@
2649
2649
  },
2650
2650
  {
2651
2651
  "name": "actions",
2652
- "description": "Action controls shown to the right of the title"
2652
+ "description": "Action controls shown to the right of the title, or under it when the two do not fit side by side"
2653
2653
  }
2654
2654
  ]
2655
2655
  }
@@ -6036,7 +6036,7 @@
6036
6036
  "kind": "class",
6037
6037
  "name": "CMain",
6038
6038
  "tagName": "c-main",
6039
- "description": "Wrapper component for the whole page",
6039
+ "description": "The page shell of an application: it paints the page canvas and lays out the toolbar, the side navigation and the page in the dashboard layout. It is at least a viewport tall and grows with its content, so the document — not a component — is what scrolls.",
6040
6040
  "csc": {
6041
6041
  "usage": "docs/c-main/usage.md"
6042
6042
  },
@@ -6054,10 +6054,15 @@
6054
6054
  "cssParts": [
6055
6055
  {
6056
6056
  "name": "root",
6057
- "description": "The main element carrying the page background and dashboard grid layout"
6057
+ "description": "The main element carrying the page canvas and the dashboard grid layout"
6058
+ }
6059
+ ],
6060
+ "cssProperties": [
6061
+ {
6062
+ "name": "--c-main-viewport-height",
6063
+ "description": "Height of the scroll viewport the layout pins against (default `100dvh`); a bounded shell with its own scrollbar sets it to its box height"
6058
6064
  }
6059
6065
  ],
6060
- "cssProperties": [],
6061
6066
  "cssStates": [],
6062
6067
  "events": [],
6063
6068
  "members": [
@@ -6075,7 +6080,11 @@
6075
6080
  "slots": [
6076
6081
  {
6077
6082
  "name": "default",
6078
- "description": "Contents of the page"
6083
+ "description": "Contents of the page: the toolbar, side navigation and page"
6084
+ },
6085
+ {
6086
+ "name": "banner",
6087
+ "description": "A full-width message strip above the toolbar; it scrolls away with the page"
6079
6088
  }
6080
6089
  ]
6081
6090
  }
@@ -7371,7 +7380,7 @@
7371
7380
  "cssParts": [
7372
7381
  {
7373
7382
  "name": "scroll-indicator",
7374
- "description": "The fixed progress bar at the top of the viewport tracking scroll position"
7383
+ "description": "The fixed progress bar at the top of the viewport tracking how far the document is scrolled"
7375
7384
  },
7376
7385
  {
7377
7386
  "name": "container",
@@ -9103,7 +9112,9 @@
9103
9112
  "kind": "class",
9104
9113
  "name": "CSideNavigation",
9105
9114
  "tagName": "c-side-navigation",
9115
+ "description": "The dashboard layout's left-hand menu: section titles, navigation items and their sub-items in a drawer that is pinned beside the page on desktop and slides in over it on mobile.",
9106
9116
  "csc": {
9117
+ "usage": "docs/c-side-navigation/usage.md",
9107
9118
  "subcomponents": [
9108
9119
  "c-side-navigation-item",
9109
9120
  "c-side-navigation-title",
@@ -9133,7 +9144,7 @@
9133
9144
  "cssParts": [
9134
9145
  {
9135
9146
  "name": "root",
9136
- "description": "The outer drawer container"
9147
+ "description": "The outer drawer container: the item list above the bottom slot's region"
9137
9148
  },
9138
9149
  {
9139
9150
  "name": "nav",
@@ -9186,11 +9197,11 @@
9186
9197
  "slots": [
9187
9198
  {
9188
9199
  "name": "default",
9189
- "description": "Default slot"
9200
+ "description": "The navigation items: titles, items and their sub-items"
9190
9201
  },
9191
9202
  {
9192
9203
  "name": "bottom",
9193
- "description": "Place items at the bottom"
9204
+ "description": "Trailing content below the items, such as a sign-out button; it stays at the drawer's bottom edge while the items scroll"
9194
9205
  }
9195
9206
  ]
9196
9207
  }
@@ -10847,6 +10858,14 @@
10847
10858
  {
10848
10859
  "name": "indicator",
10849
10860
  "description": "The sliding fill highlighting the active tab"
10861
+ },
10862
+ {
10863
+ "name": "scroll-back",
10864
+ "description": "The edge arrow that scrolls an overflowing strip back"
10865
+ },
10866
+ {
10867
+ "name": "scroll-forward",
10868
+ "description": "The edge arrow that scrolls an overflowing strip forward"
10850
10869
  }
10851
10870
  ],
10852
10871
  "cssProperties": [],
@@ -12591,17 +12610,42 @@
12591
12610
  "kind": "class",
12592
12611
  "name": "CToolbar",
12593
12612
  "tagName": "c-toolbar",
12594
- "attributes": [],
12613
+ "description": "The app-wide bar at the top of the dashboard layout: the logo, the service name and global actions such as the user menu or log out. It is pinned to the top of the viewport by default and stays there while the page scrolls; `static` keeps it in the page flow so it scrolls away with the content.",
12614
+ "csc": {
12615
+ "usage": "docs/c-toolbar/usage.md"
12616
+ },
12617
+ "attributes": [
12618
+ {
12619
+ "fieldName": "static",
12620
+ "name": "static",
12621
+ "description": "Keep the toolbar in the page flow so it scrolls away with the content\ninstead of staying pinned to the top of its scroll container",
12622
+ "type": {
12623
+ "text": "boolean"
12624
+ },
12625
+ "default": "false"
12626
+ }
12627
+ ],
12595
12628
  "cssParts": [
12596
12629
  {
12597
12630
  "name": "root",
12598
- "description": "The toolbar bar itself, fixed to the top of the viewport"
12631
+ "description": "The toolbar bar itself: pinned to the top of its scroll container by default, in flow when `static`"
12599
12632
  }
12600
12633
  ],
12601
12634
  "cssProperties": [],
12602
12635
  "cssStates": [],
12603
12636
  "events": [],
12604
- "members": [],
12637
+ "members": [
12638
+ {
12639
+ "kind": "field",
12640
+ "name": "static",
12641
+ "privacy": "public",
12642
+ "description": "Keep the toolbar in the page flow so it scrolls away with the content\ninstead of staying pinned to the top of its scroll container",
12643
+ "type": {
12644
+ "text": "boolean"
12645
+ },
12646
+ "default": "false"
12647
+ }
12648
+ ],
12605
12649
  "slots": [
12606
12650
  {
12607
12651
  "name": "default",
@@ -55,6 +55,13 @@ The track keeps an opaque fill under its labels and a hairline frame that
55
55
  reads on any surface, so the group can sit on a card, a muted panel, or
56
56
  directly on the page canvas with no extra styling.
57
57
 
58
+ The buttons are equal columns as wide as the longest label. Given room, the
59
+ group is one row — its natural width in a flex row, the full width of a
60
+ block container. Narrower than one row of its buttons, the group wraps them
61
+ onto further rows inside the same frame rather than letting them overflow.
62
+ Keep the labels short (see above): a group that wraps on a phone is fine, a
63
+ group that wraps on a laptop wants `c-select`.
64
+
58
65
  ## Accessibility
59
66
 
60
67
  Setting `label` names the group for assistive technology (`role="group"` +
@@ -1 +1,21 @@
1
- Wrapper component for the whole page
1
+ The page shell of an application: it paints the page canvas and lays out the toolbar, the side navigation and the page in the dashboard layout. It is at least a viewport tall and grows with its content, so the document — not a component — is what scrolls.
2
+
3
+ ## Dashboard layout
4
+
5
+ Slot the layout components as direct children and `c-main` places them: `c-toolbar` spans the top, `c-side-navigation` takes the left column and `c-page` fills the rest. The toolbar pins itself to the top of the viewport; `c-main` pins the desktop side navigation beneath it and moves its pin to the top edge when the toolbar is `static`. The drawer is sized to the pinned height: a short menu fills the column, a long one scrolls inside the drawer, and the side navigation's bottom slot stays at the bottom edge of the viewport — also while a banner or a static toolbar is still above the drawer. The 3.x `autoheight` host class is ignored here, and the mobile drawer is not touched.
6
+
7
+ ## Banner
8
+
9
+ A full-width message strip above the toolbar — a service notice, an environment warning — goes in the `banner` slot. Slot a `c-alert` or your own markup; `c-main` only places it. The banner scrolls away with the page and the toolbar pins in its place. This is a message strip, not the ARIA `banner` landmark.
10
+
11
+ ## Disabling the layout
12
+
13
+ `disable-layout` turns the grid into a plain column, still at least a viewport tall, for pages that arrange their own chrome. The banner slot renders first in the column.
14
+
15
+ ## Scrolling
16
+
17
+ The document scrolls, so browser scroll restoration, anchors, find-in-page and mobile browser chrome all behave natively, and a modal inside `c-main` stops the page behind it. `c-page` has no fixed height and no scrollbar of its own; its `scroll-indicator` tracks the document. Set `html { scroll-behavior: smooth }` for smooth anchor scrolling.
18
+
19
+ ## Customization
20
+
21
+ Structural styling via `::part(root)`. To show the layout inside a bounded box — a demo, a preview — give the part a height together with `min-height: 0` and `overflow-y: auto`, and set `--c-main-viewport-height` to the same height so the pinned side navigation is sized to the box instead of the viewport; the toolbar and side navigation then pin inside that box.
@@ -111,9 +111,9 @@ c-select::part(list) {
111
111
 
112
112
  On a viewport narrower than 760px the panel opens as a **fullscreen panel**
113
113
  instead of dropping under the field: a heading row with the field's `label` and
114
- a close button, the field itself beneath it, then the options filling the rest
115
- of the screen. The panel keeps covering the screen and the rows above the
116
- options stay in view while the on-screen keyboard is open; the close button and
114
+ a close button, then the options filling the rest of the screen — the field
115
+ itself stays where it is in the page. The panel keeps covering the screen and
116
+ the heading row stays in view while the on-screen keyboard is open; the close button and
117
117
  Escape both return focus to the field; the page behind the panel is inert until
118
118
  it closes, and the list has no half-row cut — the screen edge is the cue. The
119
119
  threshold is the viewport's width, never the field's, so a narrow field on a
@@ -0,0 +1,21 @@
1
+ The dashboard layout's left-hand menu: section titles, navigation items and their sub-items in a drawer that is pinned beside the page on desktop and slides in over it on mobile.
2
+
3
+ ## Inside c-main
4
+
5
+ Slot it as a direct child of `c-main` and the dashboard layout places and pins it: the drawer sits beneath the toolbar — or at the top edge once a `static` toolbar has scrolled away — is sized to the pinned height, and scrolls a long menu on its own. No host class is needed; the 3.x `autoheight` class is ignored there.
6
+
7
+ ## Bottom slot
8
+
9
+ Trailing content — a sign-out button, a help link — goes in the `bottom` slot. It stays at the drawer's bottom edge while the items scroll above it: the viewport's bottom edge on desktop, the panel's in the mobile drawer. It is reached without scrolling the menu and is not a menu item.
10
+
11
+ ## Mobile
12
+
13
+ Set `mobile` to render the drawer as a panel that slides in from the right over a backdrop. `menu-visible` opens and closes it, and a `c-navigation-button` anywhere on the page toggles it. Closing from within — the close button or the backdrop — emits `change:menu-visible`.
14
+
15
+ ## Standalone
16
+
17
+ Outside `c-main` the drawer is an ordinary block that grows with its items. The `autoheight` host class sizes it to the viewport minus the toolbar height and lets its item list scroll, for a shell that pins the drawer itself.
18
+
19
+ ## Customization
20
+
21
+ Structural styling via `::part(root)` (the drawer) and `::part(nav)` (the scrolling item list). The surface is the `nav-surface` token role; override the tokens to re-theme.
@@ -9,3 +9,10 @@ has an active tab. The sliding indicator that glides to the active tab is
9
9
  this component's own affordance. For a standalone segmented control that
10
10
  holds a form value, use `c-button-group` (which this component wraps
11
11
  internally); there, active buttons paint their own fill and nothing slides.
12
+
13
+ A tab strip is always one row. When it is wider than its box it scrolls
14
+ sideways — by touch, by a mouse drag, by the wheel, or with the edge arrows
15
+ that appear while it overflows — and the tab `c-tabs` makes active is
16
+ scrolled into view. The scrollbar is hidden; the half-visible tab at the
17
+ edge and the arrows are the cue. This is the same rule as the underlined
18
+ tab row of `c-tabs`.
@@ -0,0 +1,17 @@
1
+ The app-wide bar at the top of the dashboard layout: the logo, the service name and global actions such as the user menu or log out. It is pinned to the top of the viewport by default and stays there while the page scrolls; `static` keeps it in the page flow so it scrolls away with the content.
2
+
3
+ ## Pinned or static
4
+
5
+ Pinned is the default: the bar sticks to the top edge of its scroll container — the document in the dashboard layout — as soon as the page scrolls past it. Set `static` to leave the bar in flow instead; it then scrolls away with the page and returns when the user scrolls back to the top. The 3.x `class="relative"` switch is gone; `static` replaces it.
6
+
7
+ ## Inside c-main
8
+
9
+ In `c-main`'s dashboard layout the toolbar spans both columns above the side navigation and the page, below an optional banner. `c-main` follows the toolbar's mode: the desktop side navigation is pinned beneath a pinned toolbar, or to the top edge once a static toolbar has scrolled away. No extra markup is needed.
10
+
11
+ ## Content
12
+
13
+ The bar is a horizontal flex row with a small gap. Push trailing actions to the right with `margin-inline-start: auto` on the first of them.
14
+
15
+ ## Customization
16
+
17
+ Structural styling via `::part(root)`. The height is the library's layout value shared with `c-main`, so changing it on the part does not move the pinned side navigation.
@@ -113,6 +113,7 @@
113
113
  --color-on-nav: var(--c-on-nav);
114
114
  --color-nav-active: var(--c-nav-active);
115
115
  --color-on-nav-active: var(--c-on-nav-active);
116
+ --color-nav-sub-active: var(--c-nav-sub-active);
116
117
 
117
118
  --color-logo-wordmark: var(--c-logo-wordmark);
118
119
  --color-logo-teal: var(--c-logo-teal);
@@ -220,6 +220,7 @@
220
220
  --c-on-nav: var(--c-white);
221
221
  --c-nav-active: var(--c-primary-100);
222
222
  --c-on-nav-active: var(--c-primary-700);
223
+ --c-nav-sub-active: var(--c-white);
223
224
  --c-chart-1: oklch(0.6534 0.1710 247.9336);
224
225
  --c-chart-2: oklch(0.5906 0.1462 343.7182);
225
226
  --c-chart-3: oklch(0.6697 0.1291 89.0072);
@@ -315,6 +316,7 @@
315
316
  --c-on-nav: var(--c-primary-100);
316
317
  --c-nav-active: var(--c-primary-500);
317
318
  --c-on-nav-active: var(--c-white);
319
+ --c-nav-sub-active: color-mix(in srgb, var(--c-white) 18%, transparent);
318
320
  --c-chart-1: oklch(0.6504 0.1710 247.9858);
319
321
  --c-chart-2: oklch(0.5920 0.1445 343.8493);
320
322
  --c-chart-3: oklch(0.6696 0.1303 89.2281);
@@ -411,6 +413,7 @@
411
413
  --c-on-nav: var(--c-primary-100);
412
414
  --c-nav-active: var(--c-primary-500);
413
415
  --c-on-nav-active: var(--c-white);
416
+ --c-nav-sub-active: color-mix(in srgb, var(--c-white) 18%, transparent);
414
417
  --c-chart-1: oklch(0.6504 0.1710 247.9858);
415
418
  --c-chart-2: oklch(0.5920 0.1445 343.8493);
416
419
  --c-chart-3: oklch(0.6696 0.1303 89.2281);
@@ -6,6 +6,11 @@
6
6
  "name": "--c-font-family",
7
7
  "description": "Font stack applied to the label (native buttons do not inherit it).",
8
8
  "values": []
9
+ },
10
+ {
11
+ "name": "--c-main-viewport-height",
12
+ "description": "Height of the scroll viewport the layout pins against (default `100dvh`); a bounded shell with its own scrollbar sets it to its box height",
13
+ "values": []
9
14
  }
10
15
  ],
11
16
  "pseudoElements": [
@@ -369,7 +374,7 @@
369
374
  },
370
375
  {
371
376
  "name": "::part(root)",
372
- "description": "The main element carrying the page background and dashboard grid layout"
377
+ "description": "The main element carrying the page canvas and the dashboard grid layout"
373
378
  },
374
379
  {
375
380
  "name": "::part(trigger)",
@@ -445,7 +450,7 @@
445
450
  },
446
451
  {
447
452
  "name": "::part(scroll-indicator)",
448
- "description": "The fixed progress bar at the top of the viewport tracking scroll position"
453
+ "description": "The fixed progress bar at the top of the viewport tracking how far the document is scrolled"
449
454
  },
450
455
  {
451
456
  "name": "::part(container)",
@@ -577,7 +582,10 @@
577
582
  "name": "::part(tag-root)",
578
583
  "description": "The pill box inside each tag (the `c-tag` `root` part), for colours and borders"
579
584
  },
580
- { "name": "::part(root)", "description": "The outer drawer container" },
585
+ {
586
+ "name": "::part(root)",
587
+ "description": "The outer drawer container: the item list above the bottom slot's region"
588
+ },
581
589
  {
582
590
  "name": "::part(nav)",
583
591
  "description": "The scrollable `<nav>` element holding the navigation items"
@@ -686,6 +694,14 @@
686
694
  "name": "::part(indicator)",
687
695
  "description": "The sliding fill highlighting the active tab"
688
696
  },
697
+ {
698
+ "name": "::part(scroll-back)",
699
+ "description": "The edge arrow that scrolls an overflowing strip back"
700
+ },
701
+ {
702
+ "name": "::part(scroll-forward)",
703
+ "description": "The edge arrow that scrolls an overflowing strip forward"
704
+ },
689
705
  {
690
706
  "name": "::part(root)",
691
707
  "description": "The panel's padded content wrapper"
@@ -756,7 +772,7 @@
756
772
  },
757
773
  {
758
774
  "name": "::part(root)",
759
- "description": "The toolbar bar itself, fixed to the top of the viewport"
775
+ "description": "The toolbar bar itself: pinned to the top of its scroll container by default, in flow when `static`"
760
776
  },
761
777
  {
762
778
  "name": "::part(trigger)",
@@ -359,7 +359,7 @@
359
359
  },
360
360
  {
361
361
  "name": "c-card-title",
362
- "description": "\n---\n\n\n### **Slots:**\n - **default** - Card title text\n- **actions** - Action controls shown to the right of the title\n\n### **CSS Parts:**\n - **root** - The outer header element carrying the title typography and padding\n- **header** - The wrapper around the heading and its underline\n- **heading** - The paragraph holding the slotted title text\n- **underline** - The decorative accent bar under the heading\n- **actions** - The wrapper around the slotted action controls",
362
+ "description": "\n---\n\n\n### **Slots:**\n - **default** - Card title text\n- **actions** - Action controls shown to the right of the title, or under it when the two do not fit side by side\n\n### **CSS Parts:**\n - **root** - The outer header element carrying the title typography and padding\n- **header** - The wrapper around the heading and its underline\n- **heading** - The paragraph holding the slotted title text\n- **underline** - The decorative accent bar under the heading\n- **actions** - The wrapper around the slotted action controls",
363
363
  "attributes": [],
364
364
  "references": []
365
365
  },
@@ -937,7 +937,7 @@
937
937
  },
938
938
  {
939
939
  "name": "c-main",
940
- "description": "Wrapper component for the whole page\n---\n\n\n### **Slots:**\n - **default** - Contents of the page\n\n### **CSS Parts:**\n - **root** - The main element carrying the page background and dashboard grid layout",
940
+ "description": "The page shell of an application: it paints the page canvas and lays out the toolbar, the side navigation and the page in the dashboard layout. It is at least a viewport tall and grows with its content, so the document — not a component — is what scrolls.\n---\n\n\n### **Slots:**\n - **default** - Contents of the page: the toolbar, side navigation and page\n- **banner** - A full-width message strip above the toolbar; it scrolls away with the page\n\n### **CSS Properties:**\n - **--c-main-viewport-height** - Height of the scroll viewport the layout pins against (default `100dvh`); a bounded shell with its own scrollbar sets it to its box height _(default: undefined)_\n\n### **CSS Parts:**\n - **root** - The main element carrying the page canvas and the dashboard grid layout",
941
941
  "attributes": [
942
942
  {
943
943
  "name": "disable-layout",
@@ -1166,7 +1166,7 @@
1166
1166
  },
1167
1167
  {
1168
1168
  "name": "c-page",
1169
- "description": "\n---\n\n\n### **Slots:**\n - **default** - Default slot\n- **footer** - Footer slot\n\n### **CSS Parts:**\n - **scroll-indicator** - The fixed progress bar at the top of the viewport tracking scroll position\n- **container** - The max-width content wrapper around the default slot",
1169
+ "description": "\n---\n\n\n### **Slots:**\n - **default** - Default slot\n- **footer** - Footer slot\n\n### **CSS Parts:**\n - **scroll-indicator** - The fixed progress bar at the top of the viewport tracking how far the document is scrolled\n- **container** - The max-width content wrapper around the default slot",
1170
1170
  "attributes": [
1171
1171
  {
1172
1172
  "name": "scroll-indicator",
@@ -1461,7 +1461,7 @@
1461
1461
  },
1462
1462
  {
1463
1463
  "name": "c-side-navigation",
1464
- "description": "\n---\n\n\n### **Events:**\n - **change:menu-visible** - Fired when the drawer is closed from within (the mobile close button or\nthe backdrop overlay), carrying the new visibility (`false`).\nNamed `change:menu-visible`, not `update:menuVisible`: Vue's runtime\nsilently drops `onUpdate:*` listeners on custom elements\n(`isModelListener`), so a template `@update:menu-visible` would never be\nattached.\n\n### **Slots:**\n - **default** - Default slot\n- **bottom** - Place items at the bottom\n\n### **CSS Parts:**\n - **root** - The outer drawer container\n- **nav** - The scrollable `<nav>` element holding the navigation items",
1464
+ "description": "The dashboard layout's left-hand menu: section titles, navigation items and their sub-items in a drawer that is pinned beside the page on desktop and slides in over it on mobile.\n---\n\n\n### **Events:**\n - **change:menu-visible** - Fired when the drawer is closed from within (the mobile close button or\nthe backdrop overlay), carrying the new visibility (`false`).\nNamed `change:menu-visible`, not `update:menuVisible`: Vue's runtime\nsilently drops `onUpdate:*` listeners on custom elements\n(`isModelListener`), so a template `@update:menu-visible` would never be\nattached.\n\n### **Slots:**\n - **default** - The navigation items: titles, items and their sub-items\n- **bottom** - Trailing content below the items, such as a sign-out button; it stays at the drawer's bottom edge while the items scroll\n\n### **CSS Parts:**\n - **root** - The outer drawer container: the item list above the bottom slot's region\n- **nav** - The scrollable `<nav>` element holding the navigation items",
1465
1465
  "attributes": [
1466
1466
  {
1467
1467
  "name": "menu-visible",
@@ -1682,7 +1682,7 @@
1682
1682
  },
1683
1683
  {
1684
1684
  "name": "c-tab-buttons",
1685
- "description": "Tab buttons present a `c-tabs` tab list as a segmented control instead of the underlined tab row. Author it only inside `<c-tabs>`, with plain `<c-button>` children whose `value`s match the `c-tab-item` panels; `c-tabs` owns the active value and pushes it down.\n---\n\n\n### **Events:**\n - **tabChange** - Fired when the user activates a tab button, carrying the newly selected\nvalue. The parent `<c-tabs>` listens for it and pushes the accepted value\nback down; consumers should listen to `c-tabs` instead. Also dispatched as `tab-change` — bind that name in Vue templates.\n\n### **Slots:**\n - **default** - Default slot for the c-button elements\n\n### **CSS Parts:**\n - **root** - The segmented-control box framing the buttons\n- **indicator** - The sliding fill highlighting the active tab",
1685
+ "description": "Tab buttons present a `c-tabs` tab list as a segmented control instead of the underlined tab row. Author it only inside `<c-tabs>`, with plain `<c-button>` children whose `value`s match the `c-tab-item` panels; `c-tabs` owns the active value and pushes it down.\n---\n\n\n### **Events:**\n - **tabChange** - Fired when the user activates a tab button, carrying the newly selected\nvalue. The parent `<c-tabs>` listens for it and pushes the accepted value\nback down; consumers should listen to `c-tabs` instead. Also dispatched as `tab-change` — bind that name in Vue templates.\n\n### **Slots:**\n - **default** - Default slot for the c-button elements\n\n### **CSS Parts:**\n - **root** - The segmented-control box framing the buttons\n- **indicator** - The sliding fill highlighting the active tab\n- **scroll-back** - The edge arrow that scrolls an overflowing strip back\n- **scroll-forward** - The edge arrow that scrolls an overflowing strip forward",
1686
1686
  "attributes": [
1687
1687
  {
1688
1688
  "name": "disabled",
@@ -1993,8 +1993,14 @@
1993
1993
  },
1994
1994
  {
1995
1995
  "name": "c-toolbar",
1996
- "description": "\n---\n\n\n### **Slots:**\n - **default** - Content of toolbar\n\n### **CSS Parts:**\n - **root** - The toolbar bar itself, fixed to the top of the viewport",
1997
- "attributes": [],
1996
+ "description": "The app-wide bar at the top of the dashboard layout: the logo, the service name and global actions such as the user menu or log out. It is pinned to the top of the viewport by default and stays there while the page scrolls; `static` keeps it in the page flow so it scrolls away with the content.\n---\n\n\n### **Slots:**\n - **default** - Content of toolbar\n\n### **CSS Parts:**\n - **root** - The toolbar bar itself: pinned to the top of its scroll container by default, in flow when `static`",
1997
+ "attributes": [
1998
+ {
1999
+ "name": "static",
2000
+ "description": "Keep the toolbar in the page flow so it scrolls away with the content\ninstead of staying pinned to the top of its scroll container",
2001
+ "values": []
2002
+ }
2003
+ ],
1998
2004
  "references": []
1999
2005
  },
2000
2006
  {
@@ -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.16",
4
+ "version": "4.0.0-alpha.18",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -964,14 +964,14 @@
964
964
  },
965
965
  {
966
966
  "name": "c-card-title",
967
- "description": "\n---\n\n\n### **Slots:**\n - **default** - Card title text\n- **actions** - Action controls shown to the right of the title\n\n### **CSS Parts:**\n - **root** - The outer header element carrying the title typography and padding\n- **header** - The wrapper around the heading and its underline\n- **heading** - The paragraph holding the slotted title text\n- **underline** - The decorative accent bar under the heading\n- **actions** - The wrapper around the slotted action controls",
967
+ "description": "\n---\n\n\n### **Slots:**\n - **default** - Card title text\n- **actions** - Action controls shown to the right of the title, or under it when the two do not fit side by side\n\n### **CSS Parts:**\n - **root** - The outer header element carrying the title typography and padding\n- **header** - The wrapper around the heading and its underline\n- **heading** - The paragraph holding the slotted title text\n- **underline** - The decorative accent bar under the heading\n- **actions** - The wrapper around the slotted action controls",
968
968
  "doc-url": "",
969
969
  "attributes": [],
970
970
  "slots": [
971
971
  { "name": "default", "description": "Card title text" },
972
972
  {
973
973
  "name": "actions",
974
- "description": "Action controls shown to the right of the title"
974
+ "description": "Action controls shown to the right of the title, or under it when the two do not fit side by side"
975
975
  }
976
976
  ],
977
977
  "events": [],
@@ -2456,7 +2456,7 @@
2456
2456
  },
2457
2457
  {
2458
2458
  "name": "c-main",
2459
- "description": "Wrapper component for the whole page\n---\n\n\n### **Slots:**\n - **default** - Contents of the page\n\n### **CSS Parts:**\n - **root** - The main element carrying the page background and dashboard grid layout",
2459
+ "description": "The page shell of an application: it paints the page canvas and lays out the toolbar, the side navigation and the page in the dashboard layout. It is at least a viewport tall and grows with its content, so the document — not a component — is what scrolls.\n---\n\n\n### **Slots:**\n - **default** - Contents of the page: the toolbar, side navigation and page\n- **banner** - A full-width message strip above the toolbar; it scrolls away with the page\n\n### **CSS Properties:**\n - **--c-main-viewport-height** - Height of the scroll viewport the layout pins against (default `100dvh`); a bounded shell with its own scrollbar sets it to its box height _(default: undefined)_\n\n### **CSS Parts:**\n - **root** - The main element carrying the page canvas and the dashboard grid layout",
2460
2460
  "doc-url": "",
2461
2461
  "attributes": [
2462
2462
  {
@@ -2466,7 +2466,14 @@
2466
2466
  }
2467
2467
  ],
2468
2468
  "slots": [
2469
- { "name": "default", "description": "Contents of the page" }
2469
+ {
2470
+ "name": "default",
2471
+ "description": "Contents of the page: the toolbar, side navigation and page"
2472
+ },
2473
+ {
2474
+ "name": "banner",
2475
+ "description": "A full-width message strip above the toolbar; it scrolls away with the page"
2476
+ }
2470
2477
  ],
2471
2478
  "events": [],
2472
2479
  "js": {
@@ -3055,7 +3062,7 @@
3055
3062
  },
3056
3063
  {
3057
3064
  "name": "c-page",
3058
- "description": "\n---\n\n\n### **Slots:**\n - **default** - Default slot\n- **footer** - Footer slot\n\n### **CSS Parts:**\n - **scroll-indicator** - The fixed progress bar at the top of the viewport tracking scroll position\n- **container** - The max-width content wrapper around the default slot",
3065
+ "description": "\n---\n\n\n### **Slots:**\n - **default** - Default slot\n- **footer** - Footer slot\n\n### **CSS Parts:**\n - **scroll-indicator** - The fixed progress bar at the top of the viewport tracking how far the document is scrolled\n- **container** - The max-width content wrapper around the default slot",
3059
3066
  "doc-url": "",
3060
3067
  "attributes": [
3061
3068
  {
@@ -3851,7 +3858,7 @@
3851
3858
  },
3852
3859
  {
3853
3860
  "name": "c-side-navigation",
3854
- "description": "\n---\n\n\n### **Events:**\n - **change:menu-visible** - Fired when the drawer is closed from within (the mobile close button or\nthe backdrop overlay), carrying the new visibility (`false`).\nNamed `change:menu-visible`, not `update:menuVisible`: Vue's runtime\nsilently drops `onUpdate:*` listeners on custom elements\n(`isModelListener`), so a template `@update:menu-visible` would never be\nattached.\n\n### **Slots:**\n - **default** - Default slot\n- **bottom** - Place items at the bottom\n\n### **CSS Parts:**\n - **root** - The outer drawer container\n- **nav** - The scrollable `<nav>` element holding the navigation items",
3861
+ "description": "The dashboard layout's left-hand menu: section titles, navigation items and their sub-items in a drawer that is pinned beside the page on desktop and slides in over it on mobile.\n---\n\n\n### **Events:**\n - **change:menu-visible** - Fired when the drawer is closed from within (the mobile close button or\nthe backdrop overlay), carrying the new visibility (`false`).\nNamed `change:menu-visible`, not `update:menuVisible`: Vue's runtime\nsilently drops `onUpdate:*` listeners on custom elements\n(`isModelListener`), so a template `@update:menu-visible` would never be\nattached.\n\n### **Slots:**\n - **default** - The navigation items: titles, items and their sub-items\n- **bottom** - Trailing content below the items, such as a sign-out button; it stays at the drawer's bottom edge while the items scroll\n\n### **CSS Parts:**\n - **root** - The outer drawer container: the item list above the bottom slot's region\n- **nav** - The scrollable `<nav>` element holding the navigation items",
3855
3862
  "doc-url": "",
3856
3863
  "attributes": [
3857
3864
  {
@@ -3866,8 +3873,14 @@
3866
3873
  }
3867
3874
  ],
3868
3875
  "slots": [
3869
- { "name": "default", "description": "Default slot" },
3870
- { "name": "bottom", "description": "Place items at the bottom" }
3876
+ {
3877
+ "name": "default",
3878
+ "description": "The navigation items: titles, items and their sub-items"
3879
+ },
3880
+ {
3881
+ "name": "bottom",
3882
+ "description": "Trailing content below the items, such as a sign-out button; it stays at the drawer's bottom edge while the items scroll"
3883
+ }
3871
3884
  ],
3872
3885
  "events": [
3873
3886
  {
@@ -4635,7 +4648,7 @@
4635
4648
  },
4636
4649
  {
4637
4650
  "name": "c-tab-buttons",
4638
- "description": "Tab buttons present a `c-tabs` tab list as a segmented control instead of the underlined tab row. Author it only inside `<c-tabs>`, with plain `<c-button>` children whose `value`s match the `c-tab-item` panels; `c-tabs` owns the active value and pushes it down.\n---\n\n\n### **Events:**\n - **tabChange** - Fired when the user activates a tab button, carrying the newly selected\nvalue. The parent `<c-tabs>` listens for it and pushes the accepted value\nback down; consumers should listen to `c-tabs` instead. Also dispatched as `tab-change` — bind that name in Vue templates.\n\n### **Slots:**\n - **default** - Default slot for the c-button elements\n\n### **CSS Parts:**\n - **root** - The segmented-control box framing the buttons\n- **indicator** - The sliding fill highlighting the active tab",
4651
+ "description": "Tab buttons present a `c-tabs` tab list as a segmented control instead of the underlined tab row. Author it only inside `<c-tabs>`, with plain `<c-button>` children whose `value`s match the `c-tab-item` panels; `c-tabs` owns the active value and pushes it down.\n---\n\n\n### **Events:**\n - **tabChange** - Fired when the user activates a tab button, carrying the newly selected\nvalue. The parent `<c-tabs>` listens for it and pushes the accepted value\nback down; consumers should listen to `c-tabs` instead. Also dispatched as `tab-change` — bind that name in Vue templates.\n\n### **Slots:**\n - **default** - Default slot for the c-button elements\n\n### **CSS Parts:**\n - **root** - The segmented-control box framing the buttons\n- **indicator** - The sliding fill highlighting the active tab\n- **scroll-back** - The edge arrow that scrolls an overflowing strip back\n- **scroll-forward** - The edge arrow that scrolls an overflowing strip forward",
4639
4652
  "doc-url": "",
4640
4653
  "attributes": [
4641
4654
  {
@@ -5458,12 +5471,27 @@
5458
5471
  },
5459
5472
  {
5460
5473
  "name": "c-toolbar",
5461
- "description": "\n---\n\n\n### **Slots:**\n - **default** - Content of toolbar\n\n### **CSS Parts:**\n - **root** - The toolbar bar itself, fixed to the top of the viewport",
5474
+ "description": "The app-wide bar at the top of the dashboard layout: the logo, the service name and global actions such as the user menu or log out. It is pinned to the top of the viewport by default and stays there while the page scrolls; `static` keeps it in the page flow so it scrolls away with the content.\n---\n\n\n### **Slots:**\n - **default** - Content of toolbar\n\n### **CSS Parts:**\n - **root** - The toolbar bar itself: pinned to the top of its scroll container by default, in flow when `static`",
5462
5475
  "doc-url": "",
5463
- "attributes": [],
5476
+ "attributes": [
5477
+ {
5478
+ "name": "static",
5479
+ "description": "Keep the toolbar in the page flow so it scrolls away with the content\ninstead of staying pinned to the top of its scroll container",
5480
+ "value": { "type": "boolean", "default": "false" }
5481
+ }
5482
+ ],
5464
5483
  "slots": [{ "name": "default", "description": "Content of toolbar" }],
5465
5484
  "events": [],
5466
- "js": { "properties": [], "events": [] }
5485
+ "js": {
5486
+ "properties": [
5487
+ {
5488
+ "name": "static",
5489
+ "description": "Keep the toolbar in the page flow so it scrolls away with the content\ninstead of staying pinned to the top of its scroll container",
5490
+ "type": "boolean"
5491
+ }
5492
+ ],
5493
+ "events": []
5494
+ }
5467
5495
  },
5468
5496
  {
5469
5497
  "name": "c-tooltip",
@@ -5826,6 +5854,10 @@
5826
5854
  {
5827
5855
  "name": "--c-font-family",
5828
5856
  "description": "Font stack applied to the label (native buttons do not inherit it)."
5857
+ },
5858
+ {
5859
+ "name": "--c-main-viewport-height",
5860
+ "description": "Height of the scroll viewport the layout pins against (default `100dvh`); a bounded shell with its own scrollbar sets it to its box height"
5829
5861
  }
5830
5862
  ],
5831
5863
  "pseudo-elements": [
@@ -6198,7 +6230,7 @@
6198
6230
  },
6199
6231
  {
6200
6232
  "name": "part(root)",
6201
- "description": "The main element carrying the page background and dashboard grid layout"
6233
+ "description": "The main element carrying the page canvas and the dashboard grid layout"
6202
6234
  },
6203
6235
  {
6204
6236
  "name": "part(trigger)",
@@ -6274,7 +6306,7 @@
6274
6306
  },
6275
6307
  {
6276
6308
  "name": "part(scroll-indicator)",
6277
- "description": "The fixed progress bar at the top of the viewport tracking scroll position"
6309
+ "description": "The fixed progress bar at the top of the viewport tracking how far the document is scrolled"
6278
6310
  },
6279
6311
  {
6280
6312
  "name": "part(container)",
@@ -6409,7 +6441,10 @@
6409
6441
  "name": "part(tag-root)",
6410
6442
  "description": "The pill box inside each tag (the `c-tag` `root` part), for colours and borders"
6411
6443
  },
6412
- { "name": "part(root)", "description": "The outer drawer container" },
6444
+ {
6445
+ "name": "part(root)",
6446
+ "description": "The outer drawer container: the item list above the bottom slot's region"
6447
+ },
6413
6448
  {
6414
6449
  "name": "part(nav)",
6415
6450
  "description": "The scrollable `<nav>` element holding the navigation items"
@@ -6518,6 +6553,14 @@
6518
6553
  "name": "part(indicator)",
6519
6554
  "description": "The sliding fill highlighting the active tab"
6520
6555
  },
6556
+ {
6557
+ "name": "part(scroll-back)",
6558
+ "description": "The edge arrow that scrolls an overflowing strip back"
6559
+ },
6560
+ {
6561
+ "name": "part(scroll-forward)",
6562
+ "description": "The edge arrow that scrolls an overflowing strip forward"
6563
+ },
6521
6564
  {
6522
6565
  "name": "part(root)",
6523
6566
  "description": "The panel's padded content wrapper"
@@ -6588,7 +6631,7 @@
6588
6631
  },
6589
6632
  {
6590
6633
  "name": "part(root)",
6591
- "description": "The toolbar bar itself, fixed to the top of the viewport"
6634
+ "description": "The toolbar bar itself: pinned to the top of its scroll container by default, in flow when `static`"
6592
6635
  },
6593
6636
  {
6594
6637
  "name": "part(trigger)",
@@ -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;