@nldd/design-system 0.8.96 → 0.8.98
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.
- package/README.md +14 -10
- package/custom-elements.json +528 -107
- package/dist/components/components.js +894 -267
- package/dist/components/content/code-viewer/code-viewer.d.ts +4 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +43 -5
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +11 -0
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js +1 -0
- package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +1 -1
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.js +15 -4
- package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
- package/dist/components/content/icon/icon-registry.js +12 -12
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/image/image.d.ts +19 -3
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +25 -4
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +36 -0
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/image/image.template.d.ts.map +1 -1
- package/dist/components/content/image/image.template.js +13 -1
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +25 -12
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +25 -12
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +7 -0
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +29 -2
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/{dist-CH9m014O.js → dist-B2QcygzG.js} +1 -1
- package/dist/components/{dist-DMHTTJRJ.js → dist-BB5mlo7D.js} +2 -2
- package/dist/components/{dist-C3uWRipu.js → dist-Bo5Jeyfn.js} +1 -1
- package/dist/components/{dist-CpW8MF-L.js → dist-Bud_7w5g.js} +232 -214
- package/dist/components/{dist-CvL6_ezZ.js → dist-CA0yDFIt.js} +2 -2
- package/dist/components/{dist-DV6Mp5N1.js → dist-CaxHkqR2.js} +3 -3
- package/dist/components/{dist-BWRYv3Mp.js → dist-Ch3gNAuT.js} +1 -1
- package/dist/components/{dist-PlhQXXtE.js → dist-DbNhCpS5.js} +1 -1
- package/dist/components/{dist-DTOshgo1.js → dist-DkqAbJH8.js} +1 -1
- package/dist/components/{dist-BWEAw34D.js → dist-DnZmcpbQ.js} +1 -1
- package/dist/components/{dist-Bi4EHsFY.js → dist-iC2RTM0V.js} +2 -2
- package/dist/components/forms/validation-list/validation-list.d.ts +19 -9
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +38 -12
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/{icon-DQHT2C7z.js → icon-D_ZGezHx.js} +13 -13
- package/dist/components/{icon-button-mevRsl4C.js → icon-button-CJIikwyu.js} +16 -3
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +1 -4
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +1 -4
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +1 -1
- package/dist/components/layout/box/box.js +1 -1
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +2 -1
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +9 -3
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +36 -13
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.js +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +2 -0
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +3 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +5 -0
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +57 -11
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +158 -15
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.js +95 -41
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +4 -0
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +8 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +13 -0
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +4 -0
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +8 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +17 -0
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.d.ts +11 -1
- package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.js +11 -2
- package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +5 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +6 -2
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +13 -10
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +6 -6
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +2 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +3 -2
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +2 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +4 -0
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +8 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +17 -0
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.js +1 -1
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/{app-view/app-view.d.ts → shell/shell.d.ts} +11 -11
- package/dist/components/layout/shell/shell.d.ts.map +1 -0
- package/dist/components/layout/{app-view/app-view.js → shell/shell.js} +24 -24
- package/dist/components/layout/shell/shell.js.map +1 -0
- package/dist/components/layout/shell/shell.styles.d.ts +2 -0
- package/dist/components/layout/shell/shell.styles.d.ts.map +1 -0
- package/dist/components/layout/{app-view/app-view.styles.js → shell/shell.styles.js} +8 -8
- package/dist/components/layout/shell/shell.styles.js.map +1 -0
- package/dist/components/layout/shell/shell.template.d.ts +4 -0
- package/dist/components/layout/shell/shell.template.d.ts.map +1 -0
- package/dist/components/layout/shell/shell.template.js +9 -0
- package/dist/components/layout/shell/shell.template.js.map +1 -0
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +2 -0
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +2 -0
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +6 -1
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +7 -2
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +31 -6
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +55 -11
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +7 -6
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +4 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +8 -2
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +19 -2
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +7 -2
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +15 -3
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +12 -2
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.d.ts +1 -0
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +55 -40
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts +50 -4
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +140 -13
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.js +1 -0
- package/dist/components/navigation/skip-link/skip-link.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +8 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +9 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +10 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +21 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/css/document-reset.css +3 -3
- package/dist/css/rich-text.css +36 -90
- package/dist/nldd.min.js +912 -736
- package/dist/types/vue.d.ts +85 -38
- package/dist/utilities/page-section-mixin.d.ts +5 -0
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +10 -1
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/scroll-mode-controller.d.ts +29 -13
- package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
- package/dist/utilities/scroll-mode-controller.js +48 -13
- package/dist/utilities/scroll-mode-controller.js.map +1 -1
- package/package.json +5 -5
- package/dist/components/layout/app-view/app-view.d.ts.map +0 -1
- package/dist/components/layout/app-view/app-view.js.map +0 -1
- package/dist/components/layout/app-view/app-view.styles.d.ts +0 -2
- package/dist/components/layout/app-view/app-view.styles.d.ts.map +0 -1
- package/dist/components/layout/app-view/app-view.styles.js.map +0 -1
- package/dist/components/layout/app-view/app-view.template.d.ts +0 -4
- package/dist/components/layout/app-view/app-view.template.d.ts.map +0 -1
- package/dist/components/layout/app-view/app-view.template.js +0 -9
- package/dist/components/layout/app-view/app-view.template.js.map +0 -1
- package/dist/components/palettes.html +0 -245
- package/dist/components/sample-images/butterfly-1200.jpg +0 -0
- package/dist/components/sample-images/butterfly-1600.jpg +0 -0
- package/dist/components/sample-images/butterfly-480.jpg +0 -0
- package/dist/components/sample-images/butterfly-960.jpg +0 -0
- package/dist/palettes.html +0 -245
- package/dist/sample-images/butterfly-1200.jpg +0 -0
- package/dist/sample-images/butterfly-1600.jpg +0 -0
- package/dist/sample-images/butterfly-480.jpg +0 -0
- package/dist/sample-images/butterfly-960.jpg +0 -0
package/custom-elements.json
CHANGED
|
@@ -3490,7 +3490,7 @@
|
|
|
3490
3490
|
"declarations": [
|
|
3491
3491
|
{
|
|
3492
3492
|
"kind": "class",
|
|
3493
|
-
"description": "A read-only block of code/text built on a non-editable CodeMirror 6 view. Visually pairs with nldd-code-editor (same engine, same token palette). Whitespace is preserved; long lines scroll horizontally by default. Set `wrap` to break long lines onto the next visual line. Set `language` to one of the supported grammars (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python) to highlight the content. Without `language` the content renders plain. Grammars are loaded lazily on first use, so a page that never sets `language` ships zero grammar code. Token colors are the `--semantics-code-syntax-*` custom properties (shared with the editor via the CodeMirror highlight style). Override them per-instance to swap the theme.",
|
|
3493
|
+
"description": "A read-only block of code/text built on a non-editable CodeMirror 6 view. Visually pairs with nldd-code-editor (same engine, same token palette). Whitespace is preserved; long lines scroll horizontally by default. Set `wrap` to break long lines onto the next visual line. The viewer grows with its content. Set `max-height` to show a long file in a frame of its own: the block grows up to that height and scrolls beyond it. A scroller that overflows, in either direction, is a tab stop with a role and a name, so the keyboard reaches what a pointer can scroll to. Set `language` to one of the supported grammars (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python) to highlight the content. Without `language` the content renders plain. Grammars are loaded lazily on first use, so a page that never sets `language` ships zero grammar code. Token colors are the `--semantics-code-syntax-*` custom properties (shared with the editor via the CodeMirror highlight style). Override them per-instance to swap the theme.",
|
|
3494
3494
|
"name": "NLDDCodeViewer",
|
|
3495
3495
|
"members": [
|
|
3496
3496
|
{
|
|
@@ -3535,6 +3535,16 @@
|
|
|
3535
3535
|
"attribute": "wrap",
|
|
3536
3536
|
"reflects": true
|
|
3537
3537
|
},
|
|
3538
|
+
{
|
|
3539
|
+
"kind": "field",
|
|
3540
|
+
"name": "maxHeight",
|
|
3541
|
+
"type": {
|
|
3542
|
+
"text": "string"
|
|
3543
|
+
},
|
|
3544
|
+
"default": "''",
|
|
3545
|
+
"attribute": "max-height",
|
|
3546
|
+
"reflects": true
|
|
3547
|
+
},
|
|
3538
3548
|
{
|
|
3539
3549
|
"kind": "field",
|
|
3540
3550
|
"name": "translations",
|
|
@@ -3610,6 +3620,15 @@
|
|
|
3610
3620
|
"fieldName": "wrap",
|
|
3611
3621
|
"description": "Wrap long lines instead of horizontal scroll"
|
|
3612
3622
|
},
|
|
3623
|
+
{
|
|
3624
|
+
"name": "max-height",
|
|
3625
|
+
"type": {
|
|
3626
|
+
"text": "string"
|
|
3627
|
+
},
|
|
3628
|
+
"default": "''",
|
|
3629
|
+
"fieldName": "maxHeight",
|
|
3630
|
+
"description": "Tallest the block may get, as a CSS length (e.g. '400px', '50vh'). Beyond it the content scrolls vertically. Unset means no cap."
|
|
3631
|
+
},
|
|
3613
3632
|
{
|
|
3614
3633
|
"name": "copy-unavailable",
|
|
3615
3634
|
"type": {
|
|
@@ -3970,7 +3989,7 @@
|
|
|
3970
3989
|
"declarations": [
|
|
3971
3990
|
{
|
|
3972
3991
|
"kind": "class",
|
|
3973
|
-
"description": "Wraps a native `<img>` with design-system styling: corner radius variants, aspect-ratio reservation, object-fit/position control, optional caption + credit. Renders as `<figure>` + `<figcaption>` only when a caption or credit is set — otherwise just the image, no extra wrapping. Hybrid source: the `src` attribute renders an internal `<img>`. To use a custom `<img>` or `<picture>` (e.g. with art-direction sources), slot it into the default slot and we'll style and wrap it like our own image.",
|
|
3992
|
+
"description": "Wraps a native `<img>` with design-system styling: corner radius variants, aspect-ratio reservation, object-fit/position control, optional caption + credit. Renders as `<figure>` + `<figcaption>` only when a caption or credit is set — otherwise just the image, no extra wrapping. Hybrid source: the `src` attribute renders an internal `<img>`. To use a custom `<img>` or `<picture>` (e.g. with art-direction sources), slot it into the default slot and we'll style and wrap it like our own image. Without an image (no `src`, `srcset`, `lqip` or slotted media) it shows a neutral area with an image icon, in the box, shape and caption a real image would get: a place where an image belongs, for a prototype or a pattern, or an image someone forgot. Without `aspect-ratio` that area is 16/9. While the built-in `<img>` loads without an `lqip`, the same area shows without the icon, and it goes once the image is in.",
|
|
3974
3993
|
"name": "NLDDImage",
|
|
3975
3994
|
"members": [
|
|
3976
3995
|
{
|
|
@@ -4296,7 +4315,7 @@
|
|
|
4296
4315
|
},
|
|
4297
4316
|
"default": "''",
|
|
4298
4317
|
"fieldName": "lqip",
|
|
4299
|
-
"description": "
|
|
4318
|
+
"description": "Loading preview (LQIP, low-quality image placeholder) as a CSV string `\"base,c1,c2,c3,c4,c5,c6\"` — seven 0-255 bytes, each packing an 8-bit Oklab triplet (2 bits L, 3 bits a, 3 bits b). The first is the base color shown outside the cell gradients; the other six are per-cell colors in row-major 3×2 order. Generate via the encoder in `lqip-encoder.ts` or via the \"LQIP encoder tool\" Storybook story. Extends Lean Rada's CSS-only LQIP (https://leanrada.com/notes/css-only-lqip/) with per-cell hue — Lean's original format encodes grayscale cells only; ours encodes a color per cell so multi-color subjects survive the preview."
|
|
4300
4319
|
},
|
|
4301
4320
|
{
|
|
4302
4321
|
"name": "translations",
|
|
@@ -4662,7 +4681,7 @@
|
|
|
4662
4681
|
"declarations": [
|
|
4663
4682
|
{
|
|
4664
4683
|
"kind": "class",
|
|
4665
|
-
"description": "A container for rich text content that automatically applies responsive typography. Uses no shadow DOM so styles apply to all nested elements. Import nldd-rich-text.css globally in your application. The rich text lays out its direct children in a grid: the vertical rhythm between headings, paragraphs and lists, and the width zones below, apply to those children only. A single wrapper `div` without `class`, `style`, `role` or `data-width`, as a markdown renderer or a component root produces it, is passed through with `display: contents`, so its children count as direct. Any other wrapper becomes a single grid item, and the paragraphs inside it lose their spacing. Children are placed in three zones: text (headings, paragraphs, lists, blockquote, div/section)
|
|
4684
|
+
"description": "A container for rich text content that automatically applies responsive typography. Uses no shadow DOM so styles apply to all nested elements. Import nldd-rich-text.css globally in your application. The rich text lays out its direct children in a grid: the vertical rhythm between headings, paragraphs and lists, and the width zones below, apply to those children only. A single wrapper `div` without `class`, `style`, `role` or `data-rich-text-width`, as a markdown renderer or a component root produces it, is passed through with `display: contents`, so its children count as direct. Any other wrapper becomes a single grid item, and the paragraphs inside it lose their spacing. The headings keep one size on every width, the one they have on a phone. A heading in running text sits in a column as wide as a line of reading, on any screen, so its relation to the text beside it does not change and it has no reason to grow. Growing, an h2 on a wide screen was more than twice the size of the text, and an article broke into blocks at every heading. Page and section titles do grow: use nldd-title for those. Children are placed in three zones. A child belongs to the text unless it is listed, so it reads at the `main` size and is never wider than a line: text (headings, paragraphs, lists, blockquote, div/section) and every component that is not named below, such as nldd-box, nldd-card, nldd-banner, nldd-list and a button, and code (pre, nldd-code-viewer), which scrolls inside its block when a line is longer. Media, tables and a step bar (img, figure, video, iframe, table, nldd-table, nldd-image, nldd-step-bar) get the `wide` accent. What needs the room gets the `full` span: hr, nldd-collection and nldd-container. A child takes the room it needs inside its zone (`justify-self: start`), so the room is available without being forced. Overridable per child with `data-rich-text-width=\"main\" | \"wide\" | \"full\"`. In the left-aligned layout, wide and full read as a bleed to the right; with `centered` they are symmetrical.",
|
|
4666
4685
|
"name": "NLDDRichText",
|
|
4667
4686
|
"members": [
|
|
4668
4687
|
{
|
|
@@ -4759,7 +4778,7 @@
|
|
|
4759
4778
|
},
|
|
4760
4779
|
"default": "false",
|
|
4761
4780
|
"fieldName": "hyphens",
|
|
4762
|
-
"description": "Opt-in automatic hyphenation for running text (p, li, dd). Needs a correct `lang` on the page (`lang=\"nl\"` on `<html>`, for instance): without language information the browser does not hyphenate. An `overflow-wrap: break-word` safety net on p
|
|
4781
|
+
"description": "Opt-in automatic hyphenation for running text (p, li, dd). Needs a correct `lang` on the page (`lang=\"nl\"` on `<html>`, for instance): without language information the browser does not hyphenate. An `overflow-wrap: break-word` safety net on headings, p and li is always on, independent of this attribute, so a word wider than the column breaks instead of overflowing, without a hyphen; headings never get one."
|
|
4763
4782
|
}
|
|
4764
4783
|
],
|
|
4765
4784
|
"superclass": {
|
|
@@ -6016,7 +6035,7 @@
|
|
|
6016
6035
|
"text": "boolean"
|
|
6017
6036
|
},
|
|
6018
6037
|
"default": "false",
|
|
6019
|
-
"description": "
|
|
6038
|
+
"description": "Makes the field one that needs a value. See `_evaluate` on the list.",
|
|
6020
6039
|
"attribute": "required",
|
|
6021
6040
|
"reflects": true
|
|
6022
6041
|
},
|
|
@@ -6075,7 +6094,7 @@
|
|
|
6075
6094
|
}
|
|
6076
6095
|
}
|
|
6077
6096
|
],
|
|
6078
|
-
"description": "Whether `value` satisfies this item, or null when there is nothing to\nsatisfy because the item carries no rule.\n\nAn empty value is held against the rules like any other, so \"minimaal
|
|
6097
|
+
"description": "Whether `value` satisfies this item, or null when there is nothing to\nsatisfy because the item carries no rule.\n\nAn empty value is held against the rules like any other here, so \"minimaal\n8 tekens\" fails on it. Whether an empty value is judged at all is not this\nitem's call but the list's, which knows if the field needs a value."
|
|
6079
6098
|
}
|
|
6080
6099
|
],
|
|
6081
6100
|
"attributes": [
|
|
@@ -6085,7 +6104,7 @@
|
|
|
6085
6104
|
"text": "string"
|
|
6086
6105
|
},
|
|
6087
6106
|
"default": "''",
|
|
6088
|
-
"description": "Regular expression the value has to contain. Not anchored, unlike the native `pattern`: `[A-Z]` means \"has a capital in it\".",
|
|
6107
|
+
"description": "Regular expression the value has to contain. Not anchored, unlike the native `pattern`: `[A-Z]` means \"has a capital in it\". Not held against an empty value unless the field is required.",
|
|
6089
6108
|
"fieldName": "match"
|
|
6090
6109
|
},
|
|
6091
6110
|
{
|
|
@@ -6094,7 +6113,7 @@
|
|
|
6094
6113
|
"text": "number | undefined"
|
|
6095
6114
|
},
|
|
6096
6115
|
"fieldName": "minlength",
|
|
6097
|
-
"description": "Fewest characters the value may have."
|
|
6116
|
+
"description": "Fewest characters the value may have. Not held against an empty value unless the field is required."
|
|
6098
6117
|
},
|
|
6099
6118
|
{
|
|
6100
6119
|
"name": "maxlength",
|
|
@@ -6110,7 +6129,7 @@
|
|
|
6110
6129
|
"text": "boolean"
|
|
6111
6130
|
},
|
|
6112
6131
|
"default": "false",
|
|
6113
|
-
"description": "The value may not be empty.
|
|
6132
|
+
"description": "The value may not be empty. Without it, and without `required` on the control, an empty value passes every rule in the list, as it does for the native `pattern` and `minlength`. The control is read by its `required` property or attribute; one that only says `aria-required` needs this item.",
|
|
6114
6133
|
"fieldName": "required"
|
|
6115
6134
|
},
|
|
6116
6135
|
{
|
|
@@ -6709,10 +6728,10 @@
|
|
|
6709
6728
|
},
|
|
6710
6729
|
{
|
|
6711
6730
|
"kind": "js",
|
|
6712
|
-
"name": "
|
|
6731
|
+
"name": "NLDDShell",
|
|
6713
6732
|
"declaration": {
|
|
6714
|
-
"name": "
|
|
6715
|
-
"module": "./layout/
|
|
6733
|
+
"name": "NLDDShell",
|
|
6734
|
+
"module": "./layout/shell/shell.js"
|
|
6716
6735
|
}
|
|
6717
6736
|
},
|
|
6718
6737
|
{
|
|
@@ -22786,70 +22805,6 @@
|
|
|
22786
22805
|
}
|
|
22787
22806
|
]
|
|
22788
22807
|
},
|
|
22789
|
-
{
|
|
22790
|
-
"kind": "javascript-module",
|
|
22791
|
-
"path": "src/components/layout/app-view/app-view.ts",
|
|
22792
|
-
"declarations": [
|
|
22793
|
-
{
|
|
22794
|
-
"kind": "class",
|
|
22795
|
-
"description": "The required root shell of a Nederlandse Digitale Dienst application. Always contains a split view or an nldd-page as direct content. The document font comes from the package stylesheet (`@nldd/design-system/styles`), not from this component: it gives `body` the body font and content color as soon as an app-view is on the page, inside `@layer reset` so any rule of your own wins. Import only the tokens (`/styles/tokens`) and text you write in the light DOM keeps the browser default. Set background=\"tinted\" to give the whole application a tinted background. All descendants read --context-parent-background-color via --_app-view-background-color automatically. Individual components can override locally with their own background attribute. The same background color is forced on `document.body` so that browser- chrome surfaces (iOS overscroll bounce, status bar, page-margin areas) blend with the app instead of revealing the user-agent's default white. Cleared when the app-view disconnects. The app scrolls the DOCUMENT (root mode) or lets each `nldd-page` scroll inside its pane (nested mode). The mode is derived from the outermost horizontal split view: one column means the document scrolls, several columns mean the panes do. An app without such a split view is a single column at every width and therefore scrolls the document too — nested scrolling would cost it the rubber-band and the collapsing browser toolbar on iOS for nothing. Set `--context-scroll-mode` on the `nldd-app-view` itself to override the derived mode; an inherited value loses from it. In nested scroll mode `overscroll-behavior: none` is set on `document.documentElement` and `document.body` while the app-view is connected. Combined with `overscroll-behavior: contain` on `nldd-page`'s scroll target, this prevents iOS rubber-band on the viewport when scroll gestures land outside an `nldd-page` (e.g. on a top-bar). In root scroll mode the document itself is the scroller, so this is lifted to let the native rubber-band happen. Cleared on last disconnect.",
|
|
22796
|
-
"name": "NLDDAppView",
|
|
22797
|
-
"members": [
|
|
22798
|
-
{
|
|
22799
|
-
"kind": "field",
|
|
22800
|
-
"name": "background",
|
|
22801
|
-
"type": {
|
|
22802
|
-
"text": "'base' | 'tinted'"
|
|
22803
|
-
},
|
|
22804
|
-
"default": "'base'",
|
|
22805
|
-
"attribute": "background",
|
|
22806
|
-
"reflects": true
|
|
22807
|
-
}
|
|
22808
|
-
],
|
|
22809
|
-
"attributes": [
|
|
22810
|
-
{
|
|
22811
|
-
"name": "background",
|
|
22812
|
-
"type": {
|
|
22813
|
-
"text": "'base' | 'tinted'"
|
|
22814
|
-
},
|
|
22815
|
-
"default": "'base'",
|
|
22816
|
-
"fieldName": "background",
|
|
22817
|
-
"description": "Background color (cascades to descendants)"
|
|
22818
|
-
}
|
|
22819
|
-
],
|
|
22820
|
-
"superclass": {
|
|
22821
|
-
"name": "LitElement",
|
|
22822
|
-
"package": "lit"
|
|
22823
|
-
},
|
|
22824
|
-
"tagName": "nldd-app-view",
|
|
22825
|
-
"customElement": true,
|
|
22826
|
-
"slots": [
|
|
22827
|
-
{
|
|
22828
|
-
"name": "",
|
|
22829
|
-
"description": "Default slot for the application content"
|
|
22830
|
-
}
|
|
22831
|
-
]
|
|
22832
|
-
}
|
|
22833
|
-
],
|
|
22834
|
-
"exports": [
|
|
22835
|
-
{
|
|
22836
|
-
"kind": "js",
|
|
22837
|
-
"name": "NLDDAppView",
|
|
22838
|
-
"declaration": {
|
|
22839
|
-
"name": "NLDDAppView",
|
|
22840
|
-
"module": "src/components/layout/app-view/app-view.ts"
|
|
22841
|
-
}
|
|
22842
|
-
},
|
|
22843
|
-
{
|
|
22844
|
-
"kind": "custom-element-definition",
|
|
22845
|
-
"name": "nldd-app-view",
|
|
22846
|
-
"declaration": {
|
|
22847
|
-
"name": "NLDDAppView",
|
|
22848
|
-
"module": "src/components/layout/app-view/app-view.ts"
|
|
22849
|
-
}
|
|
22850
|
-
}
|
|
22851
|
-
]
|
|
22852
|
-
},
|
|
22853
22808
|
{
|
|
22854
22809
|
"kind": "javascript-module",
|
|
22855
22810
|
"path": "src/components/layout/box/box.ts",
|
|
@@ -22878,7 +22833,7 @@
|
|
|
22878
22833
|
},
|
|
22879
22834
|
"default": "'tinted'",
|
|
22880
22835
|
"fieldName": "background",
|
|
22881
|
-
"description": "Which surface this box draws, named as it is on nldd-
|
|
22836
|
+
"description": "Which surface this box draws, named as it is on nldd-shell, nldd-page, nldd-split-view-pane and nldd-card. It starts tinted where a card starts base: a box is there to stand out from the page, a card to sit on it. - `tinted` (default): a box on a plain page background. - `base`: a box on an already-tinted parent (the border ring gets +2 palette steps so it still reads against a card-on-card). - `critical`: a region whose actions are destructive or irreversible (a \"danger zone\"), tinted and outlined in critical. It carries no ARIA of its own: unlike nldd-banner this is not an announcement but a permanent part of the page, so the heading and the button labels have to name the danger — color is a reinforcement, never the only signal (WCAG 1.4.1). The box draws the surface and nothing else: it has no padding of its own, the same way nldd-card has none. Put an nldd-container inside it and let that set the inset, so one component owns spacing wherever it is used."
|
|
22882
22837
|
}
|
|
22883
22838
|
],
|
|
22884
22839
|
"superclass": {
|
|
@@ -24483,6 +24438,20 @@
|
|
|
24483
24438
|
"module": "src/utilities/page-section-mixin.ts"
|
|
24484
24439
|
}
|
|
24485
24440
|
},
|
|
24441
|
+
{
|
|
24442
|
+
"kind": "field",
|
|
24443
|
+
"name": "grow",
|
|
24444
|
+
"type": {
|
|
24445
|
+
"text": "boolean"
|
|
24446
|
+
},
|
|
24447
|
+
"default": "false",
|
|
24448
|
+
"attribute": "grow",
|
|
24449
|
+
"reflects": true,
|
|
24450
|
+
"inheritedFrom": {
|
|
24451
|
+
"name": "PageSectionMixin",
|
|
24452
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
24453
|
+
}
|
|
24454
|
+
},
|
|
24486
24455
|
{
|
|
24487
24456
|
"kind": "field",
|
|
24488
24457
|
"name": "paddingBlock",
|
|
@@ -24675,6 +24644,19 @@
|
|
|
24675
24644
|
},
|
|
24676
24645
|
"description": "Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width)."
|
|
24677
24646
|
},
|
|
24647
|
+
{
|
|
24648
|
+
"name": "grow",
|
|
24649
|
+
"type": {
|
|
24650
|
+
"text": "boolean"
|
|
24651
|
+
},
|
|
24652
|
+
"default": "false",
|
|
24653
|
+
"fieldName": "grow",
|
|
24654
|
+
"inheritedFrom": {
|
|
24655
|
+
"name": "PageSectionMixin",
|
|
24656
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
24657
|
+
},
|
|
24658
|
+
"description": "Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow."
|
|
24659
|
+
},
|
|
24678
24660
|
{
|
|
24679
24661
|
"name": "padding-block",
|
|
24680
24662
|
"type": {
|
|
@@ -24865,7 +24847,7 @@
|
|
|
24865
24847
|
"declarations": [
|
|
24866
24848
|
{
|
|
24867
24849
|
"kind": "class",
|
|
24868
|
-
"description": "
|
|
24850
|
+
"description": "The section that says what a page is for: it names the main goal of what you can find there, draws the eye and is the visual welcome. It has a media area and a text panel (the main) that can stand in eight positions. Every area is rectangular. Use it on pages where a visitor first has to know where they are, such as a home or a topic page; where the title already does that, a section with a title is enough. The image in a hero sets the mood and is never the main content, so the panel always stands on it. Over an image the panel keeps a section gap from its edges, so it reads as a panel on the image rather than a frame cut out of it; with `main-width=\"full\"` it is a strip across the whole image, the same gap from the sides. On mobile the image comes first and the panel below it, indented by the section gap and overlapping the image by 48px. For an image beside text without that relation, use a section with an image beside text instead. Without media the main fills the whole area; with `main-background=\"base\"` that area gets a border so it stays visible on the base surface. The hero is the head of a page and sits right under the top bar, so its top padding is half that of the other page sections: the full distance is meant to separate two sections, and under the top bar it reads as a gap. The bottom keeps the full distance to the section below. Set `padding-top` to place a hero elsewhere. By default the panel falls over the bottom of the image and runs on below it (`layout=\"overlap\"`), so the image keeps its height whatever the content. `layout=\"contained\"` keeps the panel on the image, for a short panel or one that stands at the top or along a side. The height of a hero comes from its image: `media-aspect-ratio`, or a fixed `media-height`. The `height` of the other page sections is not used here: as a minimum height for the whole hero it stretched the panel once that sat below the image. A hero given `height` says so in development. `main-background` gives the panel a surface color from the filled categories. Those carry a pure white or black content color along, so components with `color=\"inherit\"` (title, rich-text) are guaranteed to keep their contrast.",
|
|
24869
24851
|
"name": "NLDDHero",
|
|
24870
24852
|
"members": [
|
|
24871
24853
|
{
|
|
@@ -24879,6 +24861,16 @@
|
|
|
24879
24861
|
"attribute": "width",
|
|
24880
24862
|
"reflects": true
|
|
24881
24863
|
},
|
|
24864
|
+
{
|
|
24865
|
+
"kind": "field",
|
|
24866
|
+
"name": "layout",
|
|
24867
|
+
"type": {
|
|
24868
|
+
"text": "HeroLayout"
|
|
24869
|
+
},
|
|
24870
|
+
"default": "'overlap'",
|
|
24871
|
+
"attribute": "layout",
|
|
24872
|
+
"reflects": true
|
|
24873
|
+
},
|
|
24882
24874
|
{
|
|
24883
24875
|
"kind": "field",
|
|
24884
24876
|
"name": "mainBackground",
|
|
@@ -24895,7 +24887,7 @@
|
|
|
24895
24887
|
"type": {
|
|
24896
24888
|
"text": "HeroMainWidth"
|
|
24897
24889
|
},
|
|
24898
|
-
"default": "'
|
|
24890
|
+
"default": "'auto'",
|
|
24899
24891
|
"attribute": "main-width",
|
|
24900
24892
|
"reflects": true
|
|
24901
24893
|
},
|
|
@@ -24920,6 +24912,26 @@
|
|
|
24920
24912
|
"attribute": "media-aspect-ratio",
|
|
24921
24913
|
"reflects": true
|
|
24922
24914
|
},
|
|
24915
|
+
{
|
|
24916
|
+
"kind": "field",
|
|
24917
|
+
"name": "overlapSize",
|
|
24918
|
+
"type": {
|
|
24919
|
+
"text": "string"
|
|
24920
|
+
},
|
|
24921
|
+
"default": "''",
|
|
24922
|
+
"attribute": "overlap-size",
|
|
24923
|
+
"reflects": true
|
|
24924
|
+
},
|
|
24925
|
+
{
|
|
24926
|
+
"kind": "field",
|
|
24927
|
+
"name": "mediaHeight",
|
|
24928
|
+
"type": {
|
|
24929
|
+
"text": "string"
|
|
24930
|
+
},
|
|
24931
|
+
"default": "''",
|
|
24932
|
+
"attribute": "media-height",
|
|
24933
|
+
"reflects": true
|
|
24934
|
+
},
|
|
24923
24935
|
{
|
|
24924
24936
|
"kind": "field",
|
|
24925
24937
|
"name": "mediaSrc",
|
|
@@ -24984,6 +24996,20 @@
|
|
|
24984
24996
|
"module": "src/utilities/page-section-mixin.ts"
|
|
24985
24997
|
}
|
|
24986
24998
|
},
|
|
24999
|
+
{
|
|
25000
|
+
"kind": "field",
|
|
25001
|
+
"name": "grow",
|
|
25002
|
+
"type": {
|
|
25003
|
+
"text": "boolean"
|
|
25004
|
+
},
|
|
25005
|
+
"default": "false",
|
|
25006
|
+
"attribute": "grow",
|
|
25007
|
+
"reflects": true,
|
|
25008
|
+
"inheritedFrom": {
|
|
25009
|
+
"name": "PageSectionMixin",
|
|
25010
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
25011
|
+
}
|
|
25012
|
+
},
|
|
24987
25013
|
{
|
|
24988
25014
|
"kind": "field",
|
|
24989
25015
|
"name": "paddingBlock",
|
|
@@ -25151,6 +25177,15 @@
|
|
|
25151
25177
|
"description": "Body max-width; 'full' removes the bound (section API)",
|
|
25152
25178
|
"fieldName": "width"
|
|
25153
25179
|
},
|
|
25180
|
+
{
|
|
25181
|
+
"name": "layout",
|
|
25182
|
+
"type": {
|
|
25183
|
+
"text": "HeroLayout"
|
|
25184
|
+
},
|
|
25185
|
+
"default": "'overlap'",
|
|
25186
|
+
"fieldName": "layout",
|
|
25187
|
+
"description": "How the panel relates to the image (default: 'overlap'). 'contained' keeps it on the image, in any of the eight positions; 'overlap' lets it fall `overlap-size` over the bottom of the image and run on below as far as its content needs, so the image keeps its height whatever the content. In 'overlap' the image has a fixed height (320px on md, 400px on lg) unless `media-height` or `media-aspect-ratio` is set, and only the horizontal side of `main-position` counts. A panel shorter than `overlap-size` ends inside the image and says so in development"
|
|
25188
|
+
},
|
|
25154
25189
|
{
|
|
25155
25190
|
"name": "main-background",
|
|
25156
25191
|
"type": {
|
|
@@ -25165,9 +25200,9 @@
|
|
|
25165
25200
|
"type": {
|
|
25166
25201
|
"text": "HeroMainWidth"
|
|
25167
25202
|
},
|
|
25168
|
-
"default": "'
|
|
25203
|
+
"default": "'auto'",
|
|
25169
25204
|
"fieldName": "mainWidth",
|
|
25170
|
-
"description": "Width of the panel (default: '
|
|
25205
|
+
"description": "Width of the panel (default: 'auto'). 'auto' follows the content, between 480px and 640px and never wider than the image allows: a short title gets a narrow panel, a paragraph runs on to a readable line length. 'full' makes a strip across the whole image, at the top or the bottom, and is ignored with 'left'/'right'. Any CSS width (e.g. '560px', '60%') sets it exactly on md and lg, still never wider than the image allows; an invalid value falls back to 'auto'"
|
|
25171
25206
|
},
|
|
25172
25207
|
{
|
|
25173
25208
|
"name": "main-position",
|
|
@@ -25187,6 +25222,24 @@
|
|
|
25187
25222
|
"description": "Aspect ratio of the media area (CSS form, '16/9' or '16:9'); default '21/9'. On md/lg it sets the height of the hero, on sm the height of the media area",
|
|
25188
25223
|
"fieldName": "mediaAspectRatio"
|
|
25189
25224
|
},
|
|
25225
|
+
{
|
|
25226
|
+
"name": "overlap-size",
|
|
25227
|
+
"type": {
|
|
25228
|
+
"text": "string"
|
|
25229
|
+
},
|
|
25230
|
+
"default": "''",
|
|
25231
|
+
"fieldName": "overlapSize",
|
|
25232
|
+
"description": "With layout=\"overlap\": how far the panel falls over the bottom of the image, any CSS length (default: 160px). The overlap stays the same whatever the height of the image; a panel shorter than this ends inside the image"
|
|
25233
|
+
},
|
|
25234
|
+
{
|
|
25235
|
+
"name": "media-height",
|
|
25236
|
+
"type": {
|
|
25237
|
+
"text": "string"
|
|
25238
|
+
},
|
|
25239
|
+
"default": "''",
|
|
25240
|
+
"fieldName": "mediaHeight",
|
|
25241
|
+
"description": "Fixed height of the media area, any CSS length (e.g. '320px', '40vh'); wins over media-aspect-ratio. An invalid value falls back to the ratio"
|
|
25242
|
+
},
|
|
25190
25243
|
{
|
|
25191
25244
|
"name": "media-src",
|
|
25192
25245
|
"type": {
|
|
@@ -25242,11 +25295,23 @@
|
|
|
25242
25295
|
"text": "string | undefined"
|
|
25243
25296
|
},
|
|
25244
25297
|
"fieldName": "height",
|
|
25298
|
+
"inheritedFrom": {
|
|
25299
|
+
"name": "PageSectionMixin",
|
|
25300
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
25301
|
+
}
|
|
25302
|
+
},
|
|
25303
|
+
{
|
|
25304
|
+
"name": "grow",
|
|
25305
|
+
"type": {
|
|
25306
|
+
"text": "boolean"
|
|
25307
|
+
},
|
|
25308
|
+
"default": "false",
|
|
25309
|
+
"fieldName": "grow",
|
|
25245
25310
|
"inheritedFrom": {
|
|
25246
25311
|
"name": "PageSectionMixin",
|
|
25247
25312
|
"module": "src/utilities/page-section-mixin.ts"
|
|
25248
25313
|
},
|
|
25249
|
-
"description": "
|
|
25314
|
+
"description": "Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow."
|
|
25250
25315
|
},
|
|
25251
25316
|
{
|
|
25252
25317
|
"name": "padding-block",
|
|
@@ -25445,6 +25510,16 @@
|
|
|
25445
25510
|
"attribute": "width",
|
|
25446
25511
|
"reflects": true
|
|
25447
25512
|
},
|
|
25513
|
+
{
|
|
25514
|
+
"kind": "field",
|
|
25515
|
+
"name": "verticalAlignment",
|
|
25516
|
+
"type": {
|
|
25517
|
+
"text": "'top' | 'center' | 'bottom'"
|
|
25518
|
+
},
|
|
25519
|
+
"default": "'top'",
|
|
25520
|
+
"attribute": "vertical-alignment",
|
|
25521
|
+
"reflects": true
|
|
25522
|
+
},
|
|
25448
25523
|
{
|
|
25449
25524
|
"kind": "field",
|
|
25450
25525
|
"name": "background",
|
|
@@ -25472,6 +25547,20 @@
|
|
|
25472
25547
|
"module": "src/utilities/page-section-mixin.ts"
|
|
25473
25548
|
}
|
|
25474
25549
|
},
|
|
25550
|
+
{
|
|
25551
|
+
"kind": "field",
|
|
25552
|
+
"name": "grow",
|
|
25553
|
+
"type": {
|
|
25554
|
+
"text": "boolean"
|
|
25555
|
+
},
|
|
25556
|
+
"default": "false",
|
|
25557
|
+
"attribute": "grow",
|
|
25558
|
+
"reflects": true,
|
|
25559
|
+
"inheritedFrom": {
|
|
25560
|
+
"name": "PageSectionMixin",
|
|
25561
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
25562
|
+
}
|
|
25563
|
+
},
|
|
25475
25564
|
{
|
|
25476
25565
|
"kind": "field",
|
|
25477
25566
|
"name": "paddingBlock",
|
|
@@ -25639,6 +25728,15 @@
|
|
|
25639
25728
|
"description": "Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.",
|
|
25640
25729
|
"fieldName": "width"
|
|
25641
25730
|
},
|
|
25731
|
+
{
|
|
25732
|
+
"name": "vertical-alignment",
|
|
25733
|
+
"type": {
|
|
25734
|
+
"text": "'top' | 'center' | 'bottom'"
|
|
25735
|
+
},
|
|
25736
|
+
"default": "'top'",
|
|
25737
|
+
"fieldName": "verticalAlignment",
|
|
25738
|
+
"description": "Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other."
|
|
25739
|
+
},
|
|
25642
25740
|
{
|
|
25643
25741
|
"name": "background",
|
|
25644
25742
|
"type": {
|
|
@@ -25664,6 +25762,19 @@
|
|
|
25664
25762
|
},
|
|
25665
25763
|
"description": "Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width)."
|
|
25666
25764
|
},
|
|
25765
|
+
{
|
|
25766
|
+
"name": "grow",
|
|
25767
|
+
"type": {
|
|
25768
|
+
"text": "boolean"
|
|
25769
|
+
},
|
|
25770
|
+
"default": "false",
|
|
25771
|
+
"fieldName": "grow",
|
|
25772
|
+
"inheritedFrom": {
|
|
25773
|
+
"name": "PageSectionMixin",
|
|
25774
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
25775
|
+
},
|
|
25776
|
+
"description": "Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow."
|
|
25777
|
+
},
|
|
25667
25778
|
{
|
|
25668
25779
|
"name": "padding-block",
|
|
25669
25780
|
"type": {
|
|
@@ -25876,6 +25987,16 @@
|
|
|
25876
25987
|
"attribute": "width",
|
|
25877
25988
|
"reflects": true
|
|
25878
25989
|
},
|
|
25990
|
+
{
|
|
25991
|
+
"kind": "field",
|
|
25992
|
+
"name": "verticalAlignment",
|
|
25993
|
+
"type": {
|
|
25994
|
+
"text": "'top' | 'center' | 'bottom'"
|
|
25995
|
+
},
|
|
25996
|
+
"default": "'top'",
|
|
25997
|
+
"attribute": "vertical-alignment",
|
|
25998
|
+
"reflects": true
|
|
25999
|
+
},
|
|
25879
26000
|
{
|
|
25880
26001
|
"kind": "field",
|
|
25881
26002
|
"name": "background",
|
|
@@ -25903,6 +26024,20 @@
|
|
|
25903
26024
|
"module": "src/utilities/page-section-mixin.ts"
|
|
25904
26025
|
}
|
|
25905
26026
|
},
|
|
26027
|
+
{
|
|
26028
|
+
"kind": "field",
|
|
26029
|
+
"name": "grow",
|
|
26030
|
+
"type": {
|
|
26031
|
+
"text": "boolean"
|
|
26032
|
+
},
|
|
26033
|
+
"default": "false",
|
|
26034
|
+
"attribute": "grow",
|
|
26035
|
+
"reflects": true,
|
|
26036
|
+
"inheritedFrom": {
|
|
26037
|
+
"name": "PageSectionMixin",
|
|
26038
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
26039
|
+
}
|
|
26040
|
+
},
|
|
25906
26041
|
{
|
|
25907
26042
|
"kind": "field",
|
|
25908
26043
|
"name": "paddingBlock",
|
|
@@ -26070,6 +26205,15 @@
|
|
|
26070
26205
|
"description": "Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.",
|
|
26071
26206
|
"fieldName": "width"
|
|
26072
26207
|
},
|
|
26208
|
+
{
|
|
26209
|
+
"name": "vertical-alignment",
|
|
26210
|
+
"type": {
|
|
26211
|
+
"text": "'top' | 'center' | 'bottom'"
|
|
26212
|
+
},
|
|
26213
|
+
"default": "'top'",
|
|
26214
|
+
"fieldName": "verticalAlignment",
|
|
26215
|
+
"description": "Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other."
|
|
26216
|
+
},
|
|
26073
26217
|
{
|
|
26074
26218
|
"name": "background",
|
|
26075
26219
|
"type": {
|
|
@@ -26095,6 +26239,19 @@
|
|
|
26095
26239
|
},
|
|
26096
26240
|
"description": "Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width)."
|
|
26097
26241
|
},
|
|
26242
|
+
{
|
|
26243
|
+
"name": "grow",
|
|
26244
|
+
"type": {
|
|
26245
|
+
"text": "boolean"
|
|
26246
|
+
},
|
|
26247
|
+
"default": "false",
|
|
26248
|
+
"fieldName": "grow",
|
|
26249
|
+
"inheritedFrom": {
|
|
26250
|
+
"name": "PageSectionMixin",
|
|
26251
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
26252
|
+
},
|
|
26253
|
+
"description": "Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow."
|
|
26254
|
+
},
|
|
26098
26255
|
{
|
|
26099
26256
|
"name": "padding-block",
|
|
26100
26257
|
"type": {
|
|
@@ -26297,8 +26454,8 @@
|
|
|
26297
26454
|
"type": {
|
|
26298
26455
|
"text": "object"
|
|
26299
26456
|
},
|
|
26300
|
-
"default": "{ background: 'inherit', width: '', height: '', paddingBlock: '', paddingTop: '', paddingBottom: '', smPaddingBlock: '', smPaddingTop: '', smPaddingBottom: '', mdPaddingBlock: '', mdPaddingTop: '', mdPaddingBottom: '', lgPaddingBlock: '', lgPaddingTop: '', lgPaddingBottom: '', }",
|
|
26301
|
-
"description": "Shared Storybook controls for the PageSectionMixin surface API\n(background, width, height and the 12 block-padding overrides).\nSpread into a section story's `args` / `argTypes`, and bind onto the host\nelement in `render` with the `pageSectionAttrs` directive."
|
|
26457
|
+
"default": "{ background: 'inherit', width: '', height: '', grow: false, paddingBlock: '', paddingTop: '', paddingBottom: '', smPaddingBlock: '', smPaddingTop: '', smPaddingBottom: '', mdPaddingBlock: '', mdPaddingTop: '', mdPaddingBottom: '', lgPaddingBlock: '', lgPaddingTop: '', lgPaddingBottom: '', }",
|
|
26458
|
+
"description": "Shared Storybook controls for the PageSectionMixin surface API\n(background, width, height, grow and the 12 block-padding overrides).\nSpread into a section story's `args` / `argTypes`, and bind onto the host\nelement in `render` with the `pageSectionAttrs` directive."
|
|
26302
26459
|
},
|
|
26303
26460
|
{
|
|
26304
26461
|
"kind": "variable",
|
|
@@ -26306,7 +26463,7 @@
|
|
|
26306
26463
|
"type": {
|
|
26307
26464
|
"text": "object"
|
|
26308
26465
|
},
|
|
26309
|
-
"default": "{ background: { control: { type: 'select' }, options: ['inherit', 'base', 'tinted'], description: 'Oppervlak: \"inherit\" laat het oppervlak van de ouder doorschijnen, \"base\" en \"tinted\" tekenen een eigen oppervlak dat naar de inhoud cascadeert', table: { defaultValue: { summary: 'inherit' } }, }, width: { control: 'text', description: 'Maximale breedte van de inhoud: \"full\" haalt de grens weg, een CSS-lengte (bv. \"480px\") vervangt hem', }, height: { control: 'text', description: 'Minimale hoogte van de sectie, als CSS-lengte (bv. \"400px\" of \"100dvh\")', }, paddingBlock: paddingControl('padding-block', 'Padding boven en onder (token 0 tot 96, \"0\" haalt hem weg)'), paddingTop: paddingControl('padding-top', 'Alleen de padding boven'), paddingBottom: paddingControl('padding-bottom', 'Alleen de padding onder'), smPaddingBlock: paddingControl('sm-padding-block', 'Padding boven en onder op sm (tot 640px)'), smPaddingTop: paddingControl('sm-padding-top', 'Padding boven op sm (tot 640px)'), smPaddingBottom: paddingControl('sm-padding-bottom', 'Padding onder op sm (tot 640px)'), mdPaddingBlock: paddingControl('md-padding-block', 'Padding boven en onder op md (641 tot 1007px)'), mdPaddingTop: paddingControl('md-padding-top', 'Padding boven op md (641 tot 1007px)'), mdPaddingBottom: paddingControl('md-padding-bottom', 'Padding onder op md (641 tot 1007px)'), lgPaddingBlock: paddingControl('lg-padding-block', 'Padding boven en onder op lg (vanaf 1008px)'), lgPaddingTop: paddingControl('lg-padding-top', 'Padding boven op lg (vanaf 1008px)'), lgPaddingBottom: paddingControl('lg-padding-bottom', 'Padding onder op lg (vanaf 1008px)'), }"
|
|
26466
|
+
"default": "{ background: { control: { type: 'select' }, options: ['inherit', 'base', 'tinted'], description: 'Oppervlak: \"inherit\" laat het oppervlak van de ouder doorschijnen, \"base\" en \"tinted\" tekenen een eigen oppervlak dat naar de inhoud cascadeert', table: { defaultValue: { summary: 'inherit' } }, }, width: { control: 'text', description: 'Maximale breedte van de inhoud: \"full\" haalt de grens weg, een CSS-lengte (bv. \"480px\") vervangt hem', }, height: { control: 'text', description: 'Minimale hoogte van de sectie, als CSS-lengte (bv. \"400px\" of \"100dvh\")', }, grow: { control: 'boolean', description: 'Neemt de hoogte die de pagina over heeft, zodat de footer onderaan staat. Zonder `grow` groeit de laatste sectie van een `nldd-page`.', table: { defaultValue: { summary: false } }, }, paddingBlock: paddingControl('padding-block', 'Padding boven en onder (token 0 tot 96, \"0\" haalt hem weg)'), paddingTop: paddingControl('padding-top', 'Alleen de padding boven'), paddingBottom: paddingControl('padding-bottom', 'Alleen de padding onder'), smPaddingBlock: paddingControl('sm-padding-block', 'Padding boven en onder op sm (tot 640px)'), smPaddingTop: paddingControl('sm-padding-top', 'Padding boven op sm (tot 640px)'), smPaddingBottom: paddingControl('sm-padding-bottom', 'Padding onder op sm (tot 640px)'), mdPaddingBlock: paddingControl('md-padding-block', 'Padding boven en onder op md (641 tot 1007px)'), mdPaddingTop: paddingControl('md-padding-top', 'Padding boven op md (641 tot 1007px)'), mdPaddingBottom: paddingControl('md-padding-bottom', 'Padding onder op md (641 tot 1007px)'), lgPaddingBlock: paddingControl('lg-padding-block', 'Padding boven en onder op lg (vanaf 1008px)'), lgPaddingTop: paddingControl('lg-padding-top', 'Padding boven op lg (vanaf 1008px)'), lgPaddingBottom: paddingControl('lg-padding-bottom', 'Padding onder op lg (vanaf 1008px)'), }"
|
|
26310
26467
|
},
|
|
26311
26468
|
{
|
|
26312
26469
|
"kind": "variable",
|
|
@@ -26347,7 +26504,7 @@
|
|
|
26347
26504
|
"declarations": [
|
|
26348
26505
|
{
|
|
26349
26506
|
"kind": "class",
|
|
26350
|
-
"description": "A page section with a left sidebar alongside the main content. - **Wide (section >= 1008px):** two columns. The sidebar is a sticky, scrollable
|
|
26507
|
+
"description": "A page section with a left sidebar alongside the main content. - **Wide (section >= 1008px):** two columns. The sidebar is a sticky, scrollable box (max-width 320px) beside the main content. It takes the surface of the section around it and is edged by a divider line, so it reads as a block without drawing the eye away from the main. Its sticky top/bottom insets default to 16px; override with `sticky-top` / `sticky-bottom` so it clears other sticky page elements (e.g. a sticky header). - **Narrow (section < 1008px):** the sidebar collapses behind a sheet (a left panel on md+ viewports, a bottom sheet on mobile), and the host reflects a `collapsed` attribute. The consumer owns the trigger: place any chrome (a button, a chosen-filters bar, …) wherever you want, show it only while collapsed (e.g. `nldd-sidebar-section[collapsed] .my-trigger { … }` or by reading `collapsed` / listening to `collapse-change`), and call `show()` / `toggle()` to open the sheet. Bind `aria-expanded` via the `open`/`close` events. The sheet gets a sticky title bar by default — the `sidebar-label` as title plus a \"Sluit\" button — overridable via the `sheet-top-title-bar` slot. The sidebar content lives in `slot=\"sidebar\"`. Its slot outlet moves between the box (expanded) and the sheet (collapsed) so there is a single, never-duplicated copy — the light DOM (and its state) is preserved across the switch. The box <-> sheet switch follows the section's OWN width (a ResizeObserver on the host), not the viewport — so a sidebar-section in a narrow column or a split-view pane collapses to the sheet just like one in a narrow viewport, and the sidebar never stacks above or crowds the main. Set `no-collapse` to opt out: a narrow section then stacks the sidebar (full-width) above the main instead of using a sheet. Inherits block `padding` and `height` from PageSectionMixin.",
|
|
26351
26508
|
"name": "NLDDSidebarSection",
|
|
26352
26509
|
"members": [
|
|
26353
26510
|
{
|
|
@@ -26476,6 +26633,20 @@
|
|
|
26476
26633
|
"module": "src/utilities/page-section-mixin.ts"
|
|
26477
26634
|
}
|
|
26478
26635
|
},
|
|
26636
|
+
{
|
|
26637
|
+
"kind": "field",
|
|
26638
|
+
"name": "grow",
|
|
26639
|
+
"type": {
|
|
26640
|
+
"text": "boolean"
|
|
26641
|
+
},
|
|
26642
|
+
"default": "false",
|
|
26643
|
+
"attribute": "grow",
|
|
26644
|
+
"reflects": true,
|
|
26645
|
+
"inheritedFrom": {
|
|
26646
|
+
"name": "PageSectionMixin",
|
|
26647
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
26648
|
+
}
|
|
26649
|
+
},
|
|
26479
26650
|
{
|
|
26480
26651
|
"kind": "field",
|
|
26481
26652
|
"name": "paddingBlock",
|
|
@@ -26734,6 +26905,19 @@
|
|
|
26734
26905
|
"module": "src/utilities/page-section-mixin.ts"
|
|
26735
26906
|
}
|
|
26736
26907
|
},
|
|
26908
|
+
{
|
|
26909
|
+
"name": "grow",
|
|
26910
|
+
"type": {
|
|
26911
|
+
"text": "boolean"
|
|
26912
|
+
},
|
|
26913
|
+
"default": "false",
|
|
26914
|
+
"fieldName": "grow",
|
|
26915
|
+
"inheritedFrom": {
|
|
26916
|
+
"name": "PageSectionMixin",
|
|
26917
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
26918
|
+
},
|
|
26919
|
+
"description": "Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow."
|
|
26920
|
+
},
|
|
26737
26921
|
{
|
|
26738
26922
|
"name": "padding-block",
|
|
26739
26923
|
"type": {
|
|
@@ -26990,6 +27174,20 @@
|
|
|
26990
27174
|
"module": "src/utilities/page-section-mixin.ts"
|
|
26991
27175
|
}
|
|
26992
27176
|
},
|
|
27177
|
+
{
|
|
27178
|
+
"kind": "field",
|
|
27179
|
+
"name": "grow",
|
|
27180
|
+
"type": {
|
|
27181
|
+
"text": "boolean"
|
|
27182
|
+
},
|
|
27183
|
+
"default": "false",
|
|
27184
|
+
"attribute": "grow",
|
|
27185
|
+
"reflects": true,
|
|
27186
|
+
"inheritedFrom": {
|
|
27187
|
+
"name": "PageSectionMixin",
|
|
27188
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
27189
|
+
}
|
|
27190
|
+
},
|
|
26993
27191
|
{
|
|
26994
27192
|
"kind": "field",
|
|
26995
27193
|
"name": "paddingBlock",
|
|
@@ -27200,6 +27398,19 @@
|
|
|
27200
27398
|
},
|
|
27201
27399
|
"description": "Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width)."
|
|
27202
27400
|
},
|
|
27401
|
+
{
|
|
27402
|
+
"name": "grow",
|
|
27403
|
+
"type": {
|
|
27404
|
+
"text": "boolean"
|
|
27405
|
+
},
|
|
27406
|
+
"default": "false",
|
|
27407
|
+
"fieldName": "grow",
|
|
27408
|
+
"inheritedFrom": {
|
|
27409
|
+
"name": "PageSectionMixin",
|
|
27410
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
27411
|
+
},
|
|
27412
|
+
"description": "Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow."
|
|
27413
|
+
},
|
|
27203
27414
|
{
|
|
27204
27415
|
"name": "padding-block",
|
|
27205
27416
|
"type": {
|
|
@@ -27404,6 +27615,16 @@
|
|
|
27404
27615
|
"attribute": "width",
|
|
27405
27616
|
"reflects": true
|
|
27406
27617
|
},
|
|
27618
|
+
{
|
|
27619
|
+
"kind": "field",
|
|
27620
|
+
"name": "verticalAlignment",
|
|
27621
|
+
"type": {
|
|
27622
|
+
"text": "'top' | 'center' | 'bottom'"
|
|
27623
|
+
},
|
|
27624
|
+
"default": "'top'",
|
|
27625
|
+
"attribute": "vertical-alignment",
|
|
27626
|
+
"reflects": true
|
|
27627
|
+
},
|
|
27407
27628
|
{
|
|
27408
27629
|
"kind": "field",
|
|
27409
27630
|
"name": "background",
|
|
@@ -27431,6 +27652,20 @@
|
|
|
27431
27652
|
"module": "src/utilities/page-section-mixin.ts"
|
|
27432
27653
|
}
|
|
27433
27654
|
},
|
|
27655
|
+
{
|
|
27656
|
+
"kind": "field",
|
|
27657
|
+
"name": "grow",
|
|
27658
|
+
"type": {
|
|
27659
|
+
"text": "boolean"
|
|
27660
|
+
},
|
|
27661
|
+
"default": "false",
|
|
27662
|
+
"attribute": "grow",
|
|
27663
|
+
"reflects": true,
|
|
27664
|
+
"inheritedFrom": {
|
|
27665
|
+
"name": "PageSectionMixin",
|
|
27666
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
27667
|
+
}
|
|
27668
|
+
},
|
|
27434
27669
|
{
|
|
27435
27670
|
"kind": "field",
|
|
27436
27671
|
"name": "paddingBlock",
|
|
@@ -27598,6 +27833,15 @@
|
|
|
27598
27833
|
"description": "Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.",
|
|
27599
27834
|
"fieldName": "width"
|
|
27600
27835
|
},
|
|
27836
|
+
{
|
|
27837
|
+
"name": "vertical-alignment",
|
|
27838
|
+
"type": {
|
|
27839
|
+
"text": "'top' | 'center' | 'bottom'"
|
|
27840
|
+
},
|
|
27841
|
+
"default": "'top'",
|
|
27842
|
+
"fieldName": "verticalAlignment",
|
|
27843
|
+
"description": "Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other."
|
|
27844
|
+
},
|
|
27601
27845
|
{
|
|
27602
27846
|
"name": "background",
|
|
27603
27847
|
"type": {
|
|
@@ -27623,6 +27867,19 @@
|
|
|
27623
27867
|
},
|
|
27624
27868
|
"description": "Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width)."
|
|
27625
27869
|
},
|
|
27870
|
+
{
|
|
27871
|
+
"name": "grow",
|
|
27872
|
+
"type": {
|
|
27873
|
+
"text": "boolean"
|
|
27874
|
+
},
|
|
27875
|
+
"default": "false",
|
|
27876
|
+
"fieldName": "grow",
|
|
27877
|
+
"inheritedFrom": {
|
|
27878
|
+
"name": "PageSectionMixin",
|
|
27879
|
+
"module": "src/utilities/page-section-mixin.ts"
|
|
27880
|
+
},
|
|
27881
|
+
"description": "Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow."
|
|
27882
|
+
},
|
|
27626
27883
|
{
|
|
27627
27884
|
"name": "padding-block",
|
|
27628
27885
|
"type": {
|
|
@@ -27821,7 +28078,7 @@
|
|
|
27821
28078
|
"declarations": [
|
|
27822
28079
|
{
|
|
27823
28080
|
"kind": "class",
|
|
27824
|
-
"description": "A page layout with optional sticky header and footer. Without sticky-header, the host is the scroll container and the header is in normal flow. With sticky-header, the header becomes absolute and .page__scroll takes over scrolling, padded by the measured header height. That padding freezes once you scroll, so a collapsing bar cannot drag the content up under the cursor. In root-scroll mode (--context-scroll-mode: root, derived upstream by nldd-
|
|
28081
|
+
"description": "A page layout with optional sticky header and footer. Without sticky-header, the host is the scroll container and the header is in normal flow. With sticky-header, the header becomes absolute and .page__scroll takes over scrolling, padded by the measured header height. That padding freezes once you scroll, so a collapsing bar cannot drag the content up under the cursor. In root-scroll mode (--context-scroll-mode: root, derived upstream by nldd-shell) the page stops owning a scroller: the document scrolls and the sticky header/footer stick against the document, offset by --context-inset-top/bottom. The mode is read on connect/resize and reflected to [data-scroll] so the CSS can branch. The page passes those insets on to its own content, with its sticky header and footer added: anything sticky inside (an nldd-sidebar-section, a sticky table head) reads --context-inset-top / --context-inset-bottom and clears every bar above and below it without being told a number. The heights are measured, because a top title bar shrinks as you scroll past its anchor. While the page owns the scroller, only its own bars count: the chrome above the page sits outside that scroller and does not push sticky content down. A page carries the landmarks of a document: its header is the banner, its content the main landmark, its footer the contentinfo. A document has one of each, so a page that sits beside another one cannot have them. Such a page renders a section and a plain div instead, which drops all three at once: a header inside sectioning content is no longer a banner. With `accessible-label` that section is a named region, so there is still one landmark to jump to; without a name it is no landmark at all, which beats an unnamed one. `landmarks` says which of the two a page is, and `auto` (the default) reads it off where the page sits: - in an overlay (nldd-sheet, nldd-modal-dialog, nldd-window, nldd-popover) a region, because the overlay is not the document; - in a pane of nldd-navigation-split-view, nldd-side-by-side-split-view or nldd-stacked-split-view a region, because those place pages beside each other; - anywhere else the page, including the `main` slot of an nldd-bar-split-view, which stacks bars around a single content area. So an app shell has no main until you say which pane holds the primary content, with `landmarks=\"page\"` on that one page. Only the application knows which pane that is. Two pages that both render a main is invalid HTML, and the page says so in development.",
|
|
27825
28082
|
"name": "NLDDPage",
|
|
27826
28083
|
"members": [
|
|
27827
28084
|
{
|
|
@@ -28469,6 +28726,70 @@
|
|
|
28469
28726
|
}
|
|
28470
28727
|
]
|
|
28471
28728
|
},
|
|
28729
|
+
{
|
|
28730
|
+
"kind": "javascript-module",
|
|
28731
|
+
"path": "src/components/layout/shell/shell.ts",
|
|
28732
|
+
"declarations": [
|
|
28733
|
+
{
|
|
28734
|
+
"kind": "class",
|
|
28735
|
+
"description": "The required root shell of a Nederlandse Digitale Dienst application. Always contains a split view or an nldd-page as direct content. The document font comes from the package stylesheet (`@nldd/design-system/styles`), not from this component: it gives `body` the body font and content color as soon as a shell is on the page, inside `@layer reset` so any rule of your own wins. Import only the tokens (`/styles/tokens`) and text you write in the light DOM keeps the browser default. Set background=\"tinted\" to give the whole application a tinted background. All descendants read --context-parent-background-color via --_shell-background-color automatically. Individual components can override locally with their own background attribute. The same background color is forced on `document.body` so that browser- chrome surfaces (iOS overscroll bounce, status bar, page-margin areas) blend with the app instead of revealing the user-agent's default white. Cleared when the shell disconnects. The app scrolls the DOCUMENT (root mode) or lets each `nldd-page` scroll inside its pane (nested mode). The mode is derived from the outermost horizontal split view: one column means the document scrolls, several columns mean the panes do. An app without such a split view is a single column at every width and therefore scrolls the document too — nested scrolling would cost it the rubber-band and the collapsing browser toolbar on iOS for nothing. Set `--context-scroll-mode` on the `nldd-shell` itself to override the derived mode; an inherited value loses from it. In nested scroll mode `overscroll-behavior: none` is set on `document.documentElement` and `document.body` while the shell is connected. Combined with `overscroll-behavior: contain` on `nldd-page`'s scroll target, this prevents iOS rubber-band on the viewport when scroll gestures land outside an `nldd-page` (e.g. on a top-bar). In root scroll mode the document itself is the scroller, so this is lifted to let the native rubber-band happen. Cleared on last disconnect.",
|
|
28736
|
+
"name": "NLDDShell",
|
|
28737
|
+
"members": [
|
|
28738
|
+
{
|
|
28739
|
+
"kind": "field",
|
|
28740
|
+
"name": "background",
|
|
28741
|
+
"type": {
|
|
28742
|
+
"text": "'base' | 'tinted'"
|
|
28743
|
+
},
|
|
28744
|
+
"default": "'base'",
|
|
28745
|
+
"attribute": "background",
|
|
28746
|
+
"reflects": true
|
|
28747
|
+
}
|
|
28748
|
+
],
|
|
28749
|
+
"attributes": [
|
|
28750
|
+
{
|
|
28751
|
+
"name": "background",
|
|
28752
|
+
"type": {
|
|
28753
|
+
"text": "'base' | 'tinted'"
|
|
28754
|
+
},
|
|
28755
|
+
"default": "'base'",
|
|
28756
|
+
"fieldName": "background",
|
|
28757
|
+
"description": "Background color (cascades to descendants)"
|
|
28758
|
+
}
|
|
28759
|
+
],
|
|
28760
|
+
"superclass": {
|
|
28761
|
+
"name": "LitElement",
|
|
28762
|
+
"package": "lit"
|
|
28763
|
+
},
|
|
28764
|
+
"tagName": "nldd-shell",
|
|
28765
|
+
"customElement": true,
|
|
28766
|
+
"slots": [
|
|
28767
|
+
{
|
|
28768
|
+
"name": "",
|
|
28769
|
+
"description": "Default slot for the application content"
|
|
28770
|
+
}
|
|
28771
|
+
]
|
|
28772
|
+
}
|
|
28773
|
+
],
|
|
28774
|
+
"exports": [
|
|
28775
|
+
{
|
|
28776
|
+
"kind": "js",
|
|
28777
|
+
"name": "NLDDShell",
|
|
28778
|
+
"declaration": {
|
|
28779
|
+
"name": "NLDDShell",
|
|
28780
|
+
"module": "src/components/layout/shell/shell.ts"
|
|
28781
|
+
}
|
|
28782
|
+
},
|
|
28783
|
+
{
|
|
28784
|
+
"kind": "custom-element-definition",
|
|
28785
|
+
"name": "nldd-shell",
|
|
28786
|
+
"declaration": {
|
|
28787
|
+
"name": "NLDDShell",
|
|
28788
|
+
"module": "src/components/layout/shell/shell.ts"
|
|
28789
|
+
}
|
|
28790
|
+
}
|
|
28791
|
+
]
|
|
28792
|
+
},
|
|
28472
28793
|
{
|
|
28473
28794
|
"kind": "javascript-module",
|
|
28474
28795
|
"path": "src/components/layout/spacer/spacer.ts",
|
|
@@ -31478,6 +31799,17 @@
|
|
|
31478
31799
|
"attribute": "current",
|
|
31479
31800
|
"reflects": true
|
|
31480
31801
|
},
|
|
31802
|
+
{
|
|
31803
|
+
"kind": "field",
|
|
31804
|
+
"name": "currentType",
|
|
31805
|
+
"type": {
|
|
31806
|
+
"text": "'page' | 'step' | 'location' | 'date' | 'time' | 'true'"
|
|
31807
|
+
},
|
|
31808
|
+
"default": "'page'",
|
|
31809
|
+
"description": "The `aria-current` value of a current segment; see nldd-list-item's `current-type`.",
|
|
31810
|
+
"attribute": "current-type",
|
|
31811
|
+
"reflects": true
|
|
31812
|
+
},
|
|
31481
31813
|
{
|
|
31482
31814
|
"kind": "field",
|
|
31483
31815
|
"name": "disabled",
|
|
@@ -31621,11 +31953,20 @@
|
|
|
31621
31953
|
"type": {
|
|
31622
31954
|
"text": "boolean"
|
|
31623
31955
|
},
|
|
31624
|
-
"description": "Marks the segment as the current
|
|
31956
|
+
"description": "Marks the segment as the current one, with `aria-current` set to `current-type`. The row it sits in paints itself as the current row from it, so on a segmented row this is the only place it has to be set.",
|
|
31625
31957
|
"name": "current",
|
|
31626
31958
|
"default": "false",
|
|
31627
31959
|
"fieldName": "current"
|
|
31628
31960
|
},
|
|
31961
|
+
{
|
|
31962
|
+
"type": {
|
|
31963
|
+
"text": "'page' | 'step' | 'location' | 'date' | 'time' | 'true'"
|
|
31964
|
+
},
|
|
31965
|
+
"description": "The `aria-current` value of a `current` segment (default 'page'). Use 'location' for a table of contents, whose rows point at sections of the page you are on.",
|
|
31966
|
+
"name": "current-type",
|
|
31967
|
+
"default": "'page'",
|
|
31968
|
+
"fieldName": "currentType"
|
|
31969
|
+
},
|
|
31629
31970
|
{
|
|
31630
31971
|
"type": {
|
|
31631
31972
|
"text": "boolean"
|
|
@@ -31683,7 +32024,7 @@
|
|
|
31683
32024
|
"declarations": [
|
|
31684
32025
|
{
|
|
31685
32026
|
"kind": "class",
|
|
31686
|
-
"description": "A row within an `nldd-list`. Renders as a link when `href` is set, as a checkbox when `checkbox` is set, as a button when `button` is set, or as a plain container otherwise. All cells and segments share one flat slot, in source order. With one action, make the row itself the control (`href`, `button`, `checkbox` or `radio`): the whole row is then one hit area. With two or more, give each its own `nldd-list-item-segment` and leave the row without an action of its own. Both at once nests a control inside a control, and the item warns about that in development. Two rules govern every row: 1. State fills always paint the WIDENED row geometry — the row box extended by the indicator inline inset on both sides — whether or not the row is interactive. Paint never differs between a selected plain row and a selected interactive row. 2. The widened strip belongs to the ROW, never to a segment. A row with any action (its own `href`/`button`/`checkbox`, or a slotted segment) pulls itself outward (`is-interactive` host class → negative inline margin) and pads the row block back by the same amount, so content stays on the grid. A row-wide action owns that padding itself, making the whole widened box one hit area; slotted segments stay in the grid, so their footprint is position-independent and tree columns line up at any depth. By default the divider starts at the row's first text or title cell, so the line lands on the words rather than on whatever leads up to them — an icon, an avatar, a checkbox, or the spacers a tree indents with. Rows of different shapes then still line their dividers up with each other, and a tree's dividers step inward with its indentation. Text inside an `nldd-list-item-segment` counts as the row's content, and the marker is that text cell rather than the action: the action carries its own inline padding, so its edge sits before the words. A row with no text or title cell keeps the full content width. Mark a cell with `divider-start` and/or `divider-end` to place it yourself instead — an explicit marker replaces the derived one entirely, so `divider-start` on the leading cell restores the full-width line. Multiple markers resolve as the union: first `divider-start` through last `divider-end`. A start past the last end is an authoring error — the item DEV-warns and falls back to the full content width. A branch row can disclose its children in two ways: a dedicated `nldd-list-item-segment[disclosure]` segment (only the chevron is clickable), or the row itself as the control (`button` + `expanded`, the whole row toggles). In the second case, mark the chevron's `nldd-icon-cell` with `disclosure` and the row turns it with `expanded` — the same affordance, without having to trade a clickable row for a turning chevron. `checkbox` makes the WHOLE row the control: the inner action becomes a `role=\"checkbox\"` button carrying `aria-checked`, it toggles `checked` on activation and fires `change`. Slot an `nldd-checkbox decorative` (or any glyph) before the text: it only shows the state, since the row already conveys role and state, and a second focusable control would double the tab stops. Do NOT nest a real `<input type=\"checkbox\">` in the action: interactive content inside a `<button>` is invalid HTML and AT announces the button, not the checked state. A `<label>` variant is not offered for the same reason it cannot work — label-to-input association walks the DOM tree, and a slotted input is not a descendant of a label in the shadow root. When it renders as a link, `target` and `rel` are forwarded to the inner `<a>` (e.g. `target=\"_blank\" rel=\"noopener noreferrer\"`). With `target=\"_blank\"` the item also injects a visually hidden \"opens in new tab\" announcement for assistive technology (WCAG 2.1 SC 3.2.2). The item synchronizes its ARIA with its parent `nldd-list`'s `type`: - `list` parent → `role=\"listitem\"` - `navigation` parent → `role=\"listitem\"` + `aria-current
|
|
32027
|
+
"description": "A row within an `nldd-list`. Renders as a link when `href` is set, as a checkbox when `checkbox` is set, as a button when `button` is set, or as a plain container otherwise. All cells and segments share one flat slot, in source order. With one action, make the row itself the control (`href`, `button`, `checkbox` or `radio`): the whole row is then one hit area. With two or more, give each its own `nldd-list-item-segment` and leave the row without an action of its own. Both at once nests a control inside a control, and the item warns about that in development. Two rules govern every row: 1. State fills always paint the WIDENED row geometry — the row box extended by the indicator inline inset on both sides — whether or not the row is interactive. Paint never differs between a selected plain row and a selected interactive row. 2. The widened strip belongs to the ROW, never to a segment. A row with any action (its own `href`/`button`/`checkbox`, or a slotted segment) pulls itself outward (`is-interactive` host class → negative inline margin) and pads the row block back by the same amount, so content stays on the grid. A row-wide action owns that padding itself, making the whole widened box one hit area; slotted segments stay in the grid, so their footprint is position-independent and tree columns line up at any depth. By default the divider starts at the row's first text or title cell, so the line lands on the words rather than on whatever leads up to them — an icon, an avatar, a checkbox, or the spacers a tree indents with. Rows of different shapes then still line their dividers up with each other, and a tree's dividers step inward with its indentation. Text inside an `nldd-list-item-segment` counts as the row's content, and the marker is that text cell rather than the action: the action carries its own inline padding, so its edge sits before the words. A row with no text or title cell keeps the full content width. Mark a cell with `divider-start` and/or `divider-end` to place it yourself instead — an explicit marker replaces the derived one entirely, so `divider-start` on the leading cell restores the full-width line. Multiple markers resolve as the union: first `divider-start` through last `divider-end`. A start past the last end is an authoring error — the item DEV-warns and falls back to the full content width. A branch row can disclose its children in two ways: a dedicated `nldd-list-item-segment[disclosure]` segment (only the chevron is clickable), or the row itself as the control (`button` + `expanded`, the whole row toggles). In the second case, mark the chevron's `nldd-icon-cell` with `disclosure` and the row turns it with `expanded` — the same affordance, without having to trade a clickable row for a turning chevron. `checkbox` makes the WHOLE row the control: the inner action becomes a `role=\"checkbox\"` button carrying `aria-checked`, it toggles `checked` on activation and fires `change`. Slot an `nldd-checkbox decorative` (or any glyph) before the text: it only shows the state, since the row already conveys role and state, and a second focusable control would double the tab stops. Do NOT nest a real `<input type=\"checkbox\">` in the action: interactive content inside a `<button>` is invalid HTML and AT announces the button, not the checked state. A `<label>` variant is not offered for the same reason it cannot work — label-to-input association walks the DOM tree, and a slotted input is not a descendant of a label in the shadow root. When it renders as a link, `target` and `rel` are forwarded to the inner `<a>` (e.g. `target=\"_blank\" rel=\"noopener noreferrer\"`). With `target=\"_blank\"` the item also injects a visually hidden \"opens in new tab\" announcement for assistive technology (WCAG 2.1 SC 3.2.2). The item synchronizes its ARIA with its parent `nldd-list`'s `type`: - `list` parent → `role=\"listitem\"` - `navigation` parent → `role=\"listitem\"` + `aria-current` on the inner `<a>` / `<button>` when `current` or `selected`, with `current-type` as its value (`page` unless set) - `listbox` parent → `role=\"option\"` + `aria-selected` reflecting `selected`. The list points its search input's `aria-activedescendant` at the active option via `_highlighted` (separate from `selected`).",
|
|
31687
32028
|
"name": "NLDDListItem",
|
|
31688
32029
|
"slots": [
|
|
31689
32030
|
{
|
|
@@ -31692,7 +32033,7 @@
|
|
|
31692
32033
|
},
|
|
31693
32034
|
{
|
|
31694
32035
|
"name": "children",
|
|
31695
|
-
"description": "Child rows of
|
|
32036
|
+
"description": "Child rows of this row, in an `nldd-list type=\"tree\"` or `type=\"navigation\"`. In a tree they render as a `role=\"group\"` below the row, hidden while `expanded` is false. In a navigation list they are the sub-pages: a `role=\"list\"` inside this list item, always shown, and without the tree's keyboard. For sub-pages that fold away, use a tree. Either way the nesting IS the hierarchy, so a screen reader reads the level from it and nothing is authored. The group has no styling of its own: repeat a spacer-cell per level to indent, or show depth some other way."
|
|
31696
32037
|
}
|
|
31697
32038
|
],
|
|
31698
32039
|
"members": [
|
|
@@ -31822,6 +32163,17 @@
|
|
|
31822
32163
|
"attribute": "current",
|
|
31823
32164
|
"reflects": true
|
|
31824
32165
|
},
|
|
32166
|
+
{
|
|
32167
|
+
"kind": "field",
|
|
32168
|
+
"name": "currentType",
|
|
32169
|
+
"type": {
|
|
32170
|
+
"text": "'page' | 'step' | 'location' | 'date' | 'time' | 'true'"
|
|
32171
|
+
},
|
|
32172
|
+
"default": "'page'",
|
|
32173
|
+
"description": "What kind of \"current\" this row is, for `aria-current`.\n\n`page` fits a menu of pages, but a table of contents points at sections\nof the page you are already on: there every row would announce itself as\n\"the current page\". `location` says \"you are here\" instead.",
|
|
32174
|
+
"attribute": "current-type",
|
|
32175
|
+
"reflects": true
|
|
32176
|
+
},
|
|
31825
32177
|
{
|
|
31826
32178
|
"kind": "field",
|
|
31827
32179
|
"name": "disabled",
|
|
@@ -31964,7 +32316,7 @@
|
|
|
31964
32316
|
"type": {
|
|
31965
32317
|
"text": "boolean"
|
|
31966
32318
|
},
|
|
31967
|
-
"description": "Marks the item as selected: it is one of the rows you picked. Selection is consumer-managed; the list never sets it. In a `navigation` parent it puts `aria-current
|
|
32319
|
+
"description": "Marks the item as selected: it is one of the rows you picked. Selection is consumer-managed; the list never sets it. In a `navigation` parent it puts `aria-current` on the inner action, with `current-type` as its value; in a `listbox` parent it drives `aria-selected`.",
|
|
31968
32320
|
"name": "selected",
|
|
31969
32321
|
"default": "false",
|
|
31970
32322
|
"fieldName": "selected"
|
|
@@ -31990,11 +32342,20 @@
|
|
|
31990
32342
|
"type": {
|
|
31991
32343
|
"text": "boolean"
|
|
31992
32344
|
},
|
|
31993
|
-
"description": "Marks the item as the one you are on: the page a menu row points at, the record a list has open. Exactly one row in a list carries it, where `selected` may be on many. It paints like `selected` at rest, and takes the highlighted fill while focus is anywhere in the row — including inside a nested `nldd-list-item-segment`, which is what a segmented row needs: the focus never reaches the row's own control, because there is none. In a `navigation` parent it puts `aria-current
|
|
32345
|
+
"description": "Marks the item as the one you are on: the page a menu row points at, the record a list has open. Exactly one row in a list carries it, where `selected` may be on many. It paints like `selected` at rest, and takes the highlighted fill while focus is anywhere in the row — including inside a nested `nldd-list-item-segment`, which is what a segmented row needs: the focus never reaches the row's own control, because there is none. In a `navigation` parent it puts `aria-current` on the inner action, with `current-type` as its value. On a segmented row set it on the segment that holds the link instead: the row reads `current` off its own segments and paints itself, so it is written once, where `aria-current` belongs.",
|
|
31994
32346
|
"name": "current",
|
|
31995
32347
|
"default": "false",
|
|
31996
32348
|
"fieldName": "current"
|
|
31997
32349
|
},
|
|
32350
|
+
{
|
|
32351
|
+
"type": {
|
|
32352
|
+
"text": "'page' | 'step' | 'location' | 'date' | 'time' | 'true'"
|
|
32353
|
+
},
|
|
32354
|
+
"description": "The `aria-current` value a `current` or `selected` row puts on its action in a `navigation` parent (default 'page'). Use 'location' for a table of contents, whose rows point at sections of the page you are on.",
|
|
32355
|
+
"name": "current-type",
|
|
32356
|
+
"default": "'page'",
|
|
32357
|
+
"fieldName": "currentType"
|
|
32358
|
+
},
|
|
31998
32359
|
{
|
|
31999
32360
|
"type": {
|
|
32000
32361
|
"text": "boolean"
|
|
@@ -32070,7 +32431,7 @@
|
|
|
32070
32431
|
"declarations": [
|
|
32071
32432
|
{
|
|
32072
32433
|
"kind": "class",
|
|
32073
|
-
"description": "A container for `nldd-list-item` elements. The `type` attribute switches the list's a11y role and behavior: - `list` (default) — `role=\"list\"`, items `role=\"listitem\"`. Reorderable allowed. - `radiogroup` — `role=\"radiogroup\"`, for a set of `nldd-list-item radio` rows: one choice, laid out as rows so each option can carry a count or a second line. The rows step out of the accessibility tree themselves (`role=\"none\"`), so the radios are the group's own children. The arrows move focus here and activation checks, rather than the selection following focus as it does in `nldd-radio-button-group`. - `tree` — `role=\"tree\"`, items `role=\"treeitem\"`. Branch rows put their child rows in their own `slot=\"children\"`, which the item renders as a `role=\"group\"`. Level, position and set size are NOT authored: the nesting represents the hierarchy, so assistive technology derives them. A branch row must carry `expanded`; the group is hidden while it is false. Visual indentation is the consumer's — repeat a spacer-cell per level. Comes with its own keyboard, see \"Tree\" below. - `navigation` — host `role=\"navigation\"`, items with `selected` get `aria-current=\"page\"` on their inner `<a>` or `<button>`. - `form` — rows that are not actions themselves: the controls inside them are. A row of a label and a field, a switch, a menu button, or a value you cannot change at all. Semantically the same as `list` (`role=\"list\"`, `role=\"listitem\"`), and everything visual is unchanged; what falls away is the keyboard of a list you walk through. No arrow navigation, so no promise of it either, and no tab stop on the row: Tab goes straight to the controls, in source order, the way it does in any form. Rows that ARE actions (`href`, `button`, `checkbox`, or a segment) contradict that and warn in development. SwiftUI draws the same line between `List` and `Form`, for the same reason. - `listbox` — an accessible, filterable listbox (combobox pattern). The list renders its OWN search input (`role=\"combobox\"`) pinned above the options; `.list__items` becomes `role=\"listbox\"` and items become `role=\"option\"`. Focus stays in the input, the active option moves via `aria-activedescendant`, and filtering is consumer-managed via the `input` event (toggle `[hidden]` on items). See \"Listbox\" below. Selection state is consumer-managed: the list never mutates `selected` itself. A list you walk through answers to the arrow keys, and there is no attribute to switch that on. Whether the keys do something is not a property of one list: it is what a reader may assume about all of them, and a per-list setting made that unknowable from the outside. It follows the type, which you can see before you touch a key. - ArrowUp / ArrowDown — move focus between the rows there is something to do with. A row of nothing but text is skipped, because focus that leads nowhere is a dead end. - Home / End — the first / last of those rows. - Tab — the list is ONE tab stop, so Tab moves past it rather than through it. Within the current row Tab walks that row's own controls: a chevron beside a checkbox, a menu button at the end. The same controls in the other rows are held out of the tab order (`tabindex=\"-1\"`, or `no-tab` on a design-system control that keeps its tab stop in its own shadow root), and so are this row's once focus leaves the list, so tabbing back in lands on the row again. - Escape — out of a control the row holds, back onto the row. One level up, where Shift+Tab is one step back. On the row itself the list claims nothing, so Escape carries on to whatever holds the list, and a control showing a menu keeps the first press for closing that menu. While focus sits in a control a row holds, the list stands down: those keys are the control's, and a list that took them anyway would pull focus out of a combo box or a text field mid-word. What the row IS — its own link, button or segments — keeps answering here. Arrows move focus only; selection stays consumer-managed. Three types answer differently, and all three say so on screen before you touch a key: a listbox runs its keyboard from its search field, a reorderable list moves rows with the arrows, and a form has no rows to move between at all. In `type=\"listbox\"` the list owns a native `<input role=\"combobox\">` (mirroring how `nldd-combo-box` wires an input to a slotted listbox). Keyboard, handled on the input so focus never leaves it: - ArrowDown / ArrowUp — move the active option among the VISIBLE (non-`[hidden]`) options (wrap around). - Home / End — first / last visible option. - Enter — activate the active option by triggering its inner action (a link navigates, a button fires the consumer's handler). Selection stays consumer-managed. - Escape — clear the search value (and refire `input`). On every active change the input's `aria-activedescendant` is set to the active option's id and the option is scrolled into view. The active option (`_highlighted` on the item, a highlight) is distinct from `selected`. Filtering is the consumer's job: listen to `input` (`{ detail: { value } }`) and toggle `[hidden]` on items; after the visible set changes the list resets the active option to the first visible one. `reorderable` and the roving arrow keys are ignored in listbox mode (listbox has its own keyboard). A tree adds to that keyboard, and counts the rows of an open branch as part of the order the arrows walk: - ArrowRight — opens a closed branch; on an open one it steps to its first child. - ArrowLeft — closes an open branch; on a leaf it steps out to the parent row. - Enter — follows the row: its own link or button, or on a segmented branch the first action that is not the chevron. A branch with only a chevron folds instead. - Space — open and close, the same as Right and Left. Only while focus sits on the row itself: a row that is its own control, and a segmented action you tabbed into, handle both keys themselves. Opening and closing runs through the row's own disclosure control — the segment marked `disclosure`, or the row itself when it is a button. The list activates that control rather than writing `expanded`, so the state keeps being set in one place: the consumer's handler. A row that is a link is never activated this way, since that would navigate away. The tree is one tab stop. Focus lands on the row itself when the row has no control of its own, because that is where `treeitem` sits and it makes assistive technology announce the row rather than a button inside it. Tab then walks the controls of THAT row (a chevron beside a checkbox, say) and leaves the list after the last one. A deliberate deviation: strictly speaking a row with several controls is a `treegrid`, not a `tree`. We keep the tree semantics — level and set size are what matters here, not rows and columns — and borrow the \"Tab within the row\" behavior from the grid pattern. Should a tree with real columns come up, that is when `treegrid` earns its own type. On reorder (type=\"list\" + reorderable), the list dispatches `nldd-reorder` with `fromIndex` / `toIndex` and expects the consumer to mutate the DOM (or their data model that renders the DOM). Focus is restored to the moved item's drag handle via a single `requestAnimationFrame` — this assumes the consumer reorders **synchronously** in the event handler. Async renderers (React, Vue, …) that update the DOM on a later tick will miss the focus restore and should manage focus themselves after their render commits.",
|
|
32434
|
+
"description": "A container for `nldd-list-item` elements. The `type` attribute switches the list's a11y role and behavior: - `list` (default) — `role=\"list\"`, items `role=\"listitem\"`. Reorderable allowed. - `radiogroup` — `role=\"radiogroup\"`, for a set of `nldd-list-item radio` rows: one choice, laid out as rows so each option can carry a count or a second line. The rows step out of the accessibility tree themselves (`role=\"none\"`), so the radios are the group's own children. The arrows move focus here and activation checks, rather than the selection following focus as it does in `nldd-radio-button-group`. - `tree` — `role=\"tree\"`, items `role=\"treeitem\"`. Branch rows put their child rows in their own `slot=\"children\"`, which the item renders as a `role=\"group\"`. Level, position and set size are NOT authored: the nesting represents the hierarchy, so assistive technology derives them. A branch row must carry `expanded`; the group is hidden while it is false. Visual indentation is the consumer's — repeat a spacer-cell per level. Comes with its own keyboard, see \"Tree\" below. - `navigation` — host `role=\"navigation\"`, items with `selected` get `aria-current=\"page\"` on their inner `<a>` or `<button>`. Sub-pages go in their parent row's `slot=\"children\"`, which the item renders as a list inside the list item, so a screen reader hears the level and how many there are. They are always shown and the arrows walk them like any other row; a spacer-cell alone indents but says nothing. Visual indentation is still the consumer's. - `form` — rows that are not actions themselves: the controls inside them are. A row of a label and a field, a switch, a menu button, or a value you cannot change at all. Semantically the same as `list` (`role=\"list\"`, `role=\"listitem\"`), and everything visual is unchanged; what falls away is the keyboard of a list you walk through. No arrow navigation, so no promise of it either, and no tab stop on the row: Tab goes straight to the controls, in source order, the way it does in any form. Rows that ARE actions (`href`, `button`, `checkbox`, or a segment) contradict that and warn in development. SwiftUI draws the same line between `List` and `Form`, for the same reason. - `listbox` — an accessible, filterable listbox (combobox pattern). The list renders its OWN search input (`role=\"combobox\"`) pinned above the options; `.list__items` becomes `role=\"listbox\"` and items become `role=\"option\"`. Focus stays in the input, the active option moves via `aria-activedescendant`, and filtering is consumer-managed via the `input` event (toggle `[hidden]` on items). See \"Listbox\" below. Selection state is consumer-managed: the list never mutates `selected` itself. A list you walk through answers to the arrow keys, and there is no attribute to switch that on. Whether the keys do something is not a property of one list: it is what a reader may assume about all of them, and a per-list setting made that unknowable from the outside. It follows the type, which you can see before you touch a key. - ArrowUp / ArrowDown — move focus between the rows there is something to do with. A row of nothing but text is skipped, because focus that leads nowhere is a dead end. - Home / End — the first / last of those rows. - Tab — the list is ONE tab stop, so Tab moves past it rather than through it. Within the current row Tab walks that row's own controls: a chevron beside a checkbox, a menu button at the end. The same controls in the other rows are held out of the tab order (`tabindex=\"-1\"`, or `no-tab` on a design-system control that keeps its tab stop in its own shadow root), and so are this row's once focus leaves the list, so tabbing back in lands on the row again. - Escape — out of a control the row holds, back onto the row. One level up, where Shift+Tab is one step back. On the row itself the list claims nothing, so Escape carries on to whatever holds the list, and a control showing a menu keeps the first press for closing that menu. While focus sits in a control a row holds, the list stands down: those keys are the control's, and a list that took them anyway would pull focus out of a combo box or a text field mid-word. What the row IS — its own link, button or segments — keeps answering here. Arrows move focus only; selection stays consumer-managed. Three types answer differently, and all three say so on screen before you touch a key: a listbox runs its keyboard from its search field, a reorderable list moves rows with the arrows, and a form has no rows to move between at all. In `type=\"listbox\"` the list owns a native `<input role=\"combobox\">` (mirroring how `nldd-combo-box` wires an input to a slotted listbox). Keyboard, handled on the input so focus never leaves it: - ArrowDown / ArrowUp — move the active option among the VISIBLE (non-`[hidden]`) options (wrap around). - Home / End — first / last visible option. - Enter — activate the active option by triggering its inner action (a link navigates, a button fires the consumer's handler). Selection stays consumer-managed. - Escape — clear the search value (and refire `input`). On every active change the input's `aria-activedescendant` is set to the active option's id and the option is scrolled into view. The active option (`_highlighted` on the item, a highlight) is distinct from `selected`. Filtering is the consumer's job: listen to `input` (`{ detail: { value } }`) and toggle `[hidden]` on items; after the visible set changes the list resets the active option to the first visible one. `reorderable` and the roving arrow keys are ignored in listbox mode (listbox has its own keyboard). A tree adds to that keyboard, and counts the rows of an open branch as part of the order the arrows walk: - ArrowRight — opens a closed branch; on an open one it steps to its first child. - ArrowLeft — closes an open branch; on a leaf it steps out to the parent row. - Enter — follows the row: its own link or button, or on a segmented branch the first action that is not the chevron. A branch with only a chevron folds instead. - Space — open and close, the same as Right and Left. Only while focus sits on the row itself: a row that is its own control, and a segmented action you tabbed into, handle both keys themselves. Opening and closing runs through the row's own disclosure control — the segment marked `disclosure`, or the row itself when it is a button. The list activates that control rather than writing `expanded`, so the state keeps being set in one place: the consumer's handler. A row that is a link is never activated this way, since that would navigate away. The tree is one tab stop. Focus lands on the row itself when the row has no control of its own, because that is where `treeitem` sits and it makes assistive technology announce the row rather than a button inside it. Tab then walks the controls of THAT row (a chevron beside a checkbox, say) and leaves the list after the last one. A deliberate deviation: strictly speaking a row with several controls is a `treegrid`, not a `tree`. We keep the tree semantics — level and set size are what matters here, not rows and columns — and borrow the \"Tab within the row\" behavior from the grid pattern. Should a tree with real columns come up, that is when `treegrid` earns its own type. On reorder (type=\"list\" + reorderable), the list dispatches `nldd-reorder` with `fromIndex` / `toIndex` and expects the consumer to mutate the DOM (or their data model that renders the DOM). Focus is restored to the moved item's drag handle via a single `requestAnimationFrame` — this assumes the consumer reorders **synchronously** in the event handler. Async renderers (React, Vue, …) that update the DOM on a later tick will miss the focus restore and should manage focus themselves after their render commits.",
|
|
32074
32435
|
"name": "NLDDList",
|
|
32075
32436
|
"slots": [
|
|
32076
32437
|
{
|
|
@@ -33526,7 +33887,7 @@
|
|
|
33526
33887
|
},
|
|
33527
33888
|
"default": "false",
|
|
33528
33889
|
"fieldName": "iconOnly",
|
|
33529
|
-
"description": "Hide the text visually (always)"
|
|
33890
|
+
"description": "Hide the text visually (always). The text then shows as a tooltip on hover and focus."
|
|
33530
33891
|
},
|
|
33531
33892
|
{
|
|
33532
33893
|
"name": "content-priority",
|
|
@@ -33535,7 +33896,7 @@
|
|
|
33535
33896
|
},
|
|
33536
33897
|
"default": "''",
|
|
33537
33898
|
"fieldName": "contentPriority",
|
|
33538
|
-
"description": "Decides what stays visible in compact mode: 'icon' hides the text, 'text' hides the icon"
|
|
33899
|
+
"description": "Decides what stays visible in compact mode: 'icon' hides the text, 'text' hides the icon. A bar is compact on a narrow screen and also at 200% zoom on a desktop, so with 'icon' the text is gone there too and shows as a tooltip instead."
|
|
33539
33900
|
},
|
|
33540
33901
|
{
|
|
33541
33902
|
"name": "compact",
|
|
@@ -33596,6 +33957,10 @@
|
|
|
33596
33957
|
}
|
|
33597
33958
|
],
|
|
33598
33959
|
"slots": [
|
|
33960
|
+
{
|
|
33961
|
+
"name": "icon",
|
|
33962
|
+
"description": "Takes the place of the icon: an `nldd-avatar` for the person who is signed in, for instance. It gets the size of an icon, and follows `content-priority` and `icon-only` as the icon does. Wins over `icon`."
|
|
33963
|
+
},
|
|
33599
33964
|
{
|
|
33600
33965
|
"name": "",
|
|
33601
33966
|
"description": "Content of the expandable popover. Wrap items in an `<nldd-menu>` so this component does not have to duplicate the menu API (variant, accessible-label, translations, filterFn and so on). Event listeners on items work directly, because nothing is cloned anymore."
|
|
@@ -33928,7 +34293,7 @@
|
|
|
33928
34293
|
"declarations": [
|
|
33929
34294
|
{
|
|
33930
34295
|
"kind": "class",
|
|
33931
|
-
"description": "Accessibility pattern that lets keyboard users skip past content. Wraps content in a default slot. Without href it
|
|
34296
|
+
"description": "Accessibility pattern that lets keyboard users skip past content. Wraps content in a default slot. Without href it moves focus to the first rendered element after the skip link, so the next Tab lands on the first link or button in it. An element that is not rendered, such as a `<noscript>`, a `<script>` or anything hidden, is passed over. Make sure a rendered element follows the component, otherwise the skip link has no effect. With an `href` that points at an id on the same page, the link scrolls to that element and moves focus to it too. The target needs no `tabindex` of its own. An href to another page is left to the browser. The component cannot know what it skips, so its default text only says \"Sla over\". Name it with `text`: \"Sla navigatie over\", \"Sla filters over\".",
|
|
33932
34297
|
"name": "NLDDSkipLink",
|
|
33933
34298
|
"members": [
|
|
33934
34299
|
{
|
|
@@ -33972,7 +34337,7 @@
|
|
|
33972
34337
|
},
|
|
33973
34338
|
"default": "''",
|
|
33974
34339
|
"fieldName": "text",
|
|
33975
|
-
"description": "Text of the skip link. Falls back to the i18n default."
|
|
34340
|
+
"description": "Text of the skip link. Name what is skipped. Falls back to the i18n default."
|
|
33976
34341
|
},
|
|
33977
34342
|
{
|
|
33978
34343
|
"name": "href",
|
|
@@ -33981,7 +34346,7 @@
|
|
|
33981
34346
|
},
|
|
33982
34347
|
"default": "''",
|
|
33983
34348
|
"fieldName": "href",
|
|
33984
|
-
"description": "Optional external target id. Without href it jumps to the
|
|
34349
|
+
"description": "Optional external target id. Without href it jumps to the first rendered element after the skip link."
|
|
33985
34350
|
},
|
|
33986
34351
|
{
|
|
33987
34352
|
"name": "translations",
|
|
@@ -34662,7 +35027,7 @@
|
|
|
34662
35027
|
"declarations": [
|
|
34663
35028
|
{
|
|
34664
35029
|
"kind": "class",
|
|
34665
|
-
"description": "A toolbar for page and container headings with optional navigation and action buttons. The component has two states: - Default: the back button shows the previous page title as a text button - Compact (class `is-compact`): the back button is an icon button, a divider and the toolbar title are visible When `collapse-anchor` is set, the `is-compact` class is automatically applied as soon as the top of the anchor element reaches this bar's own top edge (the sticky header line). Measuring the bar rather than the page keeps it correct in both nested and root scroll modes; it also re-points at the live scroll target when the page switches mode. Without `collapse-anchor` the bar takes a static state: compact when `text` is set (so the title shows in the title-group), non-compact otherwise (so the `back-text` button stays visible). An anchored bar hides its own title from assistive technology. The anchor is the heading the title swaps in for, so both carry the same words: once you scroll past the heading, a screen reader would otherwise find the same title twice. Sighted readers see one at a time, and this makes that true for everyone. Anchor at the heading, then, and not at some other element that happens to sit at the right height: the bar hands its title over to it.",
|
|
35030
|
+
"description": "A toolbar for page and container headings with optional navigation and action buttons. The component has two states: - Default: the back button shows the previous page title as a text button - Compact (class `is-compact`): the back button is an icon button, a divider and the toolbar title are visible When `collapse-anchor` is set, the `is-compact` class is automatically applied as soon as the top of the anchor element reaches this bar's own top edge (the sticky header line). Measuring the bar rather than the page keeps it correct in both nested and root scroll modes; it also re-points at the live scroll target when the page switches mode. Without `collapse-anchor` the bar takes a static state: compact when `text` is set (so the title shows in the title-group), non-compact otherwise (so the `back-text` button stays visible). An anchored bar hides its own title from assistive technology. The anchor is the heading the title swaps in for, so both carry the same words: once you scroll past the heading, a screen reader would otherwise find the same title twice. Sighted readers see one at a time, and this makes that true for everyone. Anchor at the heading, then, and not at some other element that happens to sit at the right height: the bar hands its title over to it. The title stays on one line and is cut off with an ellipsis when it does not fit, which on a narrow screen or at 400% zoom is soon. The bar is therefore not the place for the full title: put that in an `nldd-title` at the top of the content, which wraps and always fits, and point `collapse-anchor` at it. A bar without an anchor holds the only copy of its title, so keep that one to a word or two.",
|
|
34666
35031
|
"name": "NLDDTopTitleBar",
|
|
34667
35032
|
"members": [
|
|
34668
35033
|
{
|
|
@@ -34752,7 +35117,7 @@
|
|
|
34752
35117
|
},
|
|
34753
35118
|
"default": "''",
|
|
34754
35119
|
"fieldName": "text",
|
|
34755
|
-
"description": "Title of the bar, rendered as the heading in the title group."
|
|
35120
|
+
"description": "Title of the bar, rendered as the heading in the title group. One line, cut off with an ellipsis when it does not fit; see above for a title that can run long."
|
|
34756
35121
|
},
|
|
34757
35122
|
{
|
|
34758
35123
|
"name": "supporting-text",
|
|
@@ -37154,7 +37519,7 @@
|
|
|
37154
37519
|
"declarations": [
|
|
37155
37520
|
{
|
|
37156
37521
|
"kind": "class",
|
|
37157
|
-
"description": "A narrow, page-wide status bar (24px) with a deep background color per variant. Use it for persistent system state: an outage, planned maintenance, a draft view or a recording in progress. The bar deliberately shows no icon and supports text only. The text itself has to name the status (\"Storing: …\", \"Gepland onderhoud …\"), so the meaning does not follow from color alone (WCAG 1.4.1). Keep the text short: the bar shows one line and truncates with an ellipsis, certainly on narrower screens. For a long message with a lot of information only the essence belongs in the bar. Point to a separate page or sheet for the rest (through `href` or `button`, for instance), where the user can read on. The whole bar can be clickable: set `href` (renders an `<a>`) or `button` (renders a `<button>`; listen for the native `click` event). Without either the bar is static. On interaction a chevron appears as an affordance. One action per bar at most; several actions, or links in running text, belong in nldd-banner. role and aria-live are set automatically from the variant: - critical → role=\"alert\" (implies aria-live=\"assertive\"; interrupts the screen reader) - others → role=\"status\" aria-live=\"polite\" Not overridable. If you need a quieter component, pick a different one. Use `critical` only for a real emergency: role=\"alert\" interrupts the screen reader on every change of the content, so do not put text in it that changes regularly (a counting-down timer, for example).",
|
|
37522
|
+
"description": "A narrow, page-wide status bar (24px) with a deep background color per variant. Use it for persistent system state: an outage, planned maintenance, a draft view or a recording in progress. The bar deliberately shows no icon and supports text only. The text itself has to name the status (\"Storing: …\", \"Gepland onderhoud …\"), so the meaning does not follow from color alone (WCAG 1.4.1). Keep the text short: the bar shows one line and truncates with an ellipsis, certainly on narrower screens. For a long message with a lot of information only the essence belongs in the bar. Point to a separate page or sheet for the rest (through `href` or `button`, for instance), where the user can read on. The whole bar can be clickable: set `href` (renders an `<a>`) or `button` (renders a `<button>`; listen for the native `click` event). Without either the bar is static. On interaction a chevron appears as an affordance. One action per bar at most; several actions, or links in running text, belong in nldd-banner. The bar is the first thing on the screen: above nldd-top-navigation-bar or nldd-top-title-bar, across the whole app, also when a split view shows several panes. It reports the state of the service, not of one page, so it never sits inside the content or below a top bar. Below a top bar it says so in development. role and aria-live are set automatically from the variant: - critical → role=\"alert\" (implies aria-live=\"assertive\"; interrupts the screen reader) - others → role=\"status\" aria-live=\"polite\" Not overridable. If you need a quieter component, pick a different one. Use `critical` only for a real emergency: role=\"alert\" interrupts the screen reader on every change of the content, so do not put text in it that changes regularly (a counting-down timer, for example).",
|
|
37158
37523
|
"name": "NLDDStatusBar",
|
|
37159
37524
|
"members": [
|
|
37160
37525
|
{
|
|
@@ -38337,7 +38702,7 @@
|
|
|
38337
38702
|
"declarations": [
|
|
38338
38703
|
{
|
|
38339
38704
|
"kind": "mixin",
|
|
38340
|
-
"description": "Shared surface controls for the page-section components. Adds three\northogonal capabilities, all written as inline host styles / custom\nproperties (no per-component CSS needed for the background — custom\nproperties inherit through the shadow boundary into the section's block\nelement and slotted content):\n\n- **background**: `inherit` (the default — transparent, shows the ancestor's\n surface) | `base` (the base surface color) | `tinted`. Setting\n `base`/`tinted` also cascades `--context-parent-background-color` so\n descendants (cards, nested sections) read the same surface.\n- **block padding**: `padding-block` (both edges) with `padding-top`\n / `padding-bottom` per-edge overrides, each with responsive `sm-` /\n `md-` / `lg-` variants (12 attrs total). Token scale `0`–`96`; `0` strips\n the padding. Per breakpoint the section CSS resolves: scope override →\n base override → responsive default. The inline (gutter) padding stays\n design-controlled.\n- **height**: any CSS length (e.g. '400px', '100dvh') applied as the host's\n min-height (so the section is at least that tall) — mirroring how `width`\n maps to the body max-width.",
|
|
38705
|
+
"description": "Shared surface controls for the page-section components. Adds three\northogonal capabilities, all written as inline host styles / custom\nproperties (no per-component CSS needed for the background — custom\nproperties inherit through the shadow boundary into the section's block\nelement and slotted content):\n\n- **background**: `inherit` (the default — transparent, shows the ancestor's\n surface) | `base` (the base surface color) | `tinted`. Setting\n `base`/`tinted` also cascades `--context-parent-background-color` so\n descendants (cards, nested sections) read the same surface.\n- **block padding**: `padding-block` (both edges) with `padding-top`\n / `padding-bottom` per-edge overrides, each with responsive `sm-` /\n `md-` / `lg-` variants (12 attrs total). Token scale `0`–`96`; `0` strips\n the padding. Per breakpoint the section CSS resolves: scope override →\n base override → responsive default. The inline (gutter) padding stays\n design-controlled.\n- **height**: any CSS length (e.g. '400px', '100dvh') applied as the host's\n min-height (so the section is at least that tall) — mirroring how `width`\n maps to the body max-width.\n- **grow**: the section takes the height the page has left, so the footer\n sits at the bottom of a short page. Without it, nldd-page lets its last\n section grow. nldd-page reads this and marks the growing section with\n `data-growing`; it never writes `grow`, which stays the author's.",
|
|
38341
38706
|
"name": "PageSectionMixin",
|
|
38342
38707
|
"members": [
|
|
38343
38708
|
{
|
|
@@ -38359,6 +38724,16 @@
|
|
|
38359
38724
|
"attribute": "height",
|
|
38360
38725
|
"reflects": true
|
|
38361
38726
|
},
|
|
38727
|
+
{
|
|
38728
|
+
"kind": "field",
|
|
38729
|
+
"name": "grow",
|
|
38730
|
+
"type": {
|
|
38731
|
+
"text": "boolean"
|
|
38732
|
+
},
|
|
38733
|
+
"default": "false",
|
|
38734
|
+
"attribute": "grow",
|
|
38735
|
+
"reflects": true
|
|
38736
|
+
},
|
|
38362
38737
|
{
|
|
38363
38738
|
"kind": "field",
|
|
38364
38739
|
"name": "paddingBlock",
|
|
@@ -38555,6 +38930,14 @@
|
|
|
38555
38930
|
},
|
|
38556
38931
|
"fieldName": "height"
|
|
38557
38932
|
},
|
|
38933
|
+
{
|
|
38934
|
+
"name": "grow",
|
|
38935
|
+
"type": {
|
|
38936
|
+
"text": "boolean"
|
|
38937
|
+
},
|
|
38938
|
+
"default": "false",
|
|
38939
|
+
"fieldName": "grow"
|
|
38940
|
+
},
|
|
38558
38941
|
{
|
|
38559
38942
|
"name": "padding-block",
|
|
38560
38943
|
"type": {
|
|
@@ -39287,7 +39670,7 @@
|
|
|
39287
39670
|
"text": "string"
|
|
39288
39671
|
},
|
|
39289
39672
|
"default": "'nldd-single-column-change'",
|
|
39290
|
-
"description": "Bubbling + composed event a horizontal split view fires when it collapses to\n(or expands out of) a single visible column. nldd-
|
|
39673
|
+
"description": "Bubbling + composed event a horizontal split view fires when it collapses to\n(or expands out of) a single visible column. nldd-shell listens for it to\nderive the document-vs-nested scroll mode."
|
|
39291
39674
|
},
|
|
39292
39675
|
{
|
|
39293
39676
|
"kind": "function",
|
|
@@ -39305,11 +39688,35 @@
|
|
|
39305
39688
|
}
|
|
39306
39689
|
}
|
|
39307
39690
|
],
|
|
39308
|
-
"description": "Nearest ancestor
|
|
39691
|
+
"description": "Nearest ancestor shell (light-DOM `closest`; slotted layers stay in the\nconsumer's light tree so this reaches across the slot boundaries), or null\nwhen a layer is used stand-alone (e.g. a bare page in the docs).\n\nAn overlay ends the search: a sheet or a modal dialog is its own scroll\ncontainer and its own top edge, so a page inside one owns its scroller\nwhatever the app around it does. Without this the shell would push its\nroot mode straight through the overlay and the page's sticky header would\nstick against the document, over the content of the overlay. The overlays\nreset --context-scroll-mode as well, which is what the stand-alone read\nbelow then finds."
|
|
39692
|
+
},
|
|
39693
|
+
{
|
|
39694
|
+
"kind": "function",
|
|
39695
|
+
"name": "whenScrollModeProviderDefined",
|
|
39696
|
+
"return": {
|
|
39697
|
+
"type": {
|
|
39698
|
+
"text": "void"
|
|
39699
|
+
}
|
|
39700
|
+
},
|
|
39701
|
+
"parameters": [
|
|
39702
|
+
{
|
|
39703
|
+
"name": "host",
|
|
39704
|
+
"type": {
|
|
39705
|
+
"text": "Element"
|
|
39706
|
+
}
|
|
39707
|
+
},
|
|
39708
|
+
{
|
|
39709
|
+
"name": "adopt",
|
|
39710
|
+
"type": {
|
|
39711
|
+
"text": "(provider: ScrollModeProvider) => void"
|
|
39712
|
+
}
|
|
39713
|
+
}
|
|
39714
|
+
],
|
|
39715
|
+
"description": "Hands `adopt` the provider above `host` once it is defined, when it was not\nyet at the moment `host` connected.\n\nCustom elements upgrade in the order their modules are defined, and an app\ndoes not control that: importing nldd-sidebar-section defines nldd-page, and\na route that loads before its shell defines the page before the shell. The\nprovider is then in the DOM but has no `registerScrollConsumer` yet, so\nfindScrollModeProvider returns null and the layer starts out stand-alone.\nThis lets it register as soon as the provider is defined. Nothing happens\nwhen the host has left the DOM by then, or sits under another provider."
|
|
39309
39716
|
},
|
|
39310
39717
|
{
|
|
39311
39718
|
"kind": "class",
|
|
39312
|
-
"description": "Reads the inherited `--context-scroll-mode` and reflects it to the host's\n`[data-scroll]` attribute so CSS can branch.\n\nIn root-scroll mode the DOCUMENT scrolls (see nldd-
|
|
39719
|
+
"description": "Reads the inherited `--context-scroll-mode` and reflects it to the host's\n`[data-scroll]` attribute so CSS can branch.\n\nIn root-scroll mode the DOCUMENT scrolls (see nldd-shell): every layout\nlayer between the document and an nldd-page — shell, the split views and\ntheir panes — must flow (overflow: visible) instead of clipping, so the page's\nsticky header/footer can stick against the document. Rather than duplicate the\nread-and-reflect logic in each of those components, they share this controller.\n\nThe mode is derived upstream by nldd-shell. When a shell is present the\nhost registers as a consumer and shell pushes an authoritative re-read on\nevery change (a bare `--context-scroll-mode` update would otherwise not reach\nthe resize-polling layers in time — rAF runs before ResizeObserver). Without\na shell (a stand-alone page), it falls back to re-reading on window resize\nso a manual/media-query override still works. `nldd-page` keeps its own inline\nlogic because it also has to re-wire scroll listeners.",
|
|
39313
39720
|
"name": "ScrollModeController",
|
|
39314
39721
|
"members": [
|
|
39315
39722
|
{
|
|
@@ -39365,6 +39772,12 @@
|
|
|
39365
39772
|
}
|
|
39366
39773
|
}
|
|
39367
39774
|
},
|
|
39775
|
+
{
|
|
39776
|
+
"kind": "field",
|
|
39777
|
+
"name": "_adopt",
|
|
39778
|
+
"privacy": "private",
|
|
39779
|
+
"description": "Switches from stand-alone to push once a provider that was not yet\ndefined at connect is."
|
|
39780
|
+
},
|
|
39368
39781
|
{
|
|
39369
39782
|
"kind": "method",
|
|
39370
39783
|
"name": "hostDisconnected",
|
|
@@ -39391,7 +39804,7 @@
|
|
|
39391
39804
|
}
|
|
39392
39805
|
}
|
|
39393
39806
|
],
|
|
39394
|
-
"description": "ScrollModeConsumer — nldd-
|
|
39807
|
+
"description": "ScrollModeConsumer — nldd-shell pushes the mode it derived. When a mode is\npassed it is applied directly; this is race-free, whereas re-reading\n`getComputedStyle` during a synchronous push can return a stale value for a\ndeeply-nested host (the var may not have propagated through an ancestor's\npending re-render yet). With no argument (resize / no shell) the inherited\nvar is re-read instead."
|
|
39395
39808
|
},
|
|
39396
39809
|
{
|
|
39397
39810
|
"kind": "method",
|
|
@@ -39438,6 +39851,14 @@
|
|
|
39438
39851
|
"module": "src/utilities/scroll-mode-controller.ts"
|
|
39439
39852
|
}
|
|
39440
39853
|
},
|
|
39854
|
+
{
|
|
39855
|
+
"kind": "js",
|
|
39856
|
+
"name": "whenScrollModeProviderDefined",
|
|
39857
|
+
"declaration": {
|
|
39858
|
+
"name": "whenScrollModeProviderDefined",
|
|
39859
|
+
"module": "src/utilities/scroll-mode-controller.ts"
|
|
39860
|
+
}
|
|
39861
|
+
},
|
|
39441
39862
|
{
|
|
39442
39863
|
"kind": "js",
|
|
39443
39864
|
"name": "ScrollModeController",
|