@nldd/design-system 0.8.97 → 0.8.99
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/custom-elements.json +192 -46
- package/dist/components/actions/menu/menu.d.ts +39 -5
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +120 -7
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts +4 -3
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +10 -5
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +14 -3
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +45 -7
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +15 -1
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/components.js +1104 -186
- 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 +22 -7
- 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/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/content/visually-hidden/visually-hidden.d.ts +35 -0
- package/dist/components/content/visually-hidden/visually-hidden.d.ts.map +1 -0
- package/dist/components/content/visually-hidden/visually-hidden.js +45 -0
- package/dist/components/content/visually-hidden/visually-hidden.js.map +1 -0
- package/dist/components/content/visually-hidden/visually-hidden.styles.d.ts +2 -0
- package/dist/components/content/visually-hidden/visually-hidden.styles.d.ts.map +1 -0
- package/dist/components/content/visually-hidden/visually-hidden.styles.js +27 -0
- package/dist/components/content/visually-hidden/visually-hidden.styles.js.map +1 -0
- package/dist/components/content/visually-hidden/visually-hidden.template.d.ts +3 -0
- package/dist/components/content/visually-hidden/visually-hidden.template.d.ts.map +1 -0
- package/dist/components/content/visually-hidden/visually-hidden.template.js +7 -0
- package/dist/components/content/visually-hidden/visually-hidden.template.js.map +1 -0
- 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-button-NN0SrgS3.js → icon-button-CJIikwyu.js} +15 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- 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/card/card.d.ts +12 -1
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +29 -2
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.styles.js +2 -2
- 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 +3 -1
- 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/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +4 -0
- package/dist/components/layout/popover/popover.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 +16 -1
- 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 +35 -4
- 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/navigation/document-tab-bar/document-tab-bar.d.ts +44 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +132 -3
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +21 -2
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.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 +6 -3
- 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 +11 -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.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 +53 -32
- 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 +58 -5
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +148 -14
- 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/tab-bar/tab-bar.d.ts +70 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts +5 -0
- package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts.map +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.i18n.js +4 -0
- package/dist/components/navigation/tab-bar/tab-bar.i18n.js.map +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.js +213 -22
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +68 -3
- package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +36 -5
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +7 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +16 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +7 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.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 +8 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts +62 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +86 -2
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notifications-area.d.ts +6 -0
- package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notifications-area.js +16 -0
- package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -1
- package/dist/nldd.min.js +799 -612
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +1 -0
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +1 -0
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +1 -0
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +2 -0
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +1 -0
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +1 -0
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +40 -26
- package/package.json +6 -2
package/custom-elements.json
CHANGED
|
@@ -1608,7 +1608,7 @@
|
|
|
1608
1608
|
"kind": "field",
|
|
1609
1609
|
"name": "menuVariant",
|
|
1610
1610
|
"type": {
|
|
1611
|
-
"text": "
|
|
1611
|
+
"text": "MenuVariant | null"
|
|
1612
1612
|
},
|
|
1613
1613
|
"default": "null",
|
|
1614
1614
|
"description": "Which menu owns this item, set by that nldd-menu. Not part of the public API.\n\n`null` until one claims it, and an unclaimed item carries no menu role.\nA menu role is a promise about what is around you, so an item cannot make\nit on its own. `nldd-toolbar-item` holds exactly such an item: the\ndeclaration of what belongs in the overflow menu, which the toolbar clones\ninto the real menu when it collapses. The clone is claimed there and the\ndeclaration stays what it is."
|
|
@@ -1850,10 +1850,10 @@
|
|
|
1850
1850
|
"kind": "field",
|
|
1851
1851
|
"name": "variant",
|
|
1852
1852
|
"type": {
|
|
1853
|
-
"text": "
|
|
1853
|
+
"text": "MenuVariant"
|
|
1854
1854
|
},
|
|
1855
1855
|
"default": "'menu'",
|
|
1856
|
-
"description": "
|
|
1856
|
+
"description": "What the menu is, which sets its roles and part of its keyboard. See the\n`variant` attribute in the docblock above.",
|
|
1857
1857
|
"attribute": "variant",
|
|
1858
1858
|
"reflects": true
|
|
1859
1859
|
},
|
|
@@ -2045,6 +2045,15 @@
|
|
|
2045
2045
|
}
|
|
2046
2046
|
],
|
|
2047
2047
|
"attributes": [
|
|
2048
|
+
{
|
|
2049
|
+
"type": {
|
|
2050
|
+
"text": "MenuVariant"
|
|
2051
|
+
},
|
|
2052
|
+
"description": "What the menu is, which sets its roles and part of its keyboard. See the\n`variant` attribute in the docblock above.",
|
|
2053
|
+
"name": "variant",
|
|
2054
|
+
"default": "'menu'",
|
|
2055
|
+
"fieldName": "variant"
|
|
2056
|
+
},
|
|
2048
2057
|
{
|
|
2049
2058
|
"type": {
|
|
2050
2059
|
"text": "string"
|
|
@@ -2114,15 +2123,6 @@
|
|
|
2114
2123
|
},
|
|
2115
2124
|
"description": "Custom filter function (query, item) => boolean.",
|
|
2116
2125
|
"name": "filterFn"
|
|
2117
|
-
},
|
|
2118
|
-
{
|
|
2119
|
-
"name": "variant",
|
|
2120
|
-
"type": {
|
|
2121
|
-
"text": "'menu' | 'listbox'"
|
|
2122
|
-
},
|
|
2123
|
-
"default": "'menu'",
|
|
2124
|
-
"description": "Render variant. Use 'listbox' when the menu serves as a combobox popup —\nthis switches role to \"listbox\" and item roles to \"option\" per ARIA spec.\nDefault: 'menu'.",
|
|
2125
|
-
"fieldName": "variant"
|
|
2126
2126
|
}
|
|
2127
2127
|
],
|
|
2128
2128
|
"superclass": {
|
|
@@ -2709,7 +2709,7 @@
|
|
|
2709
2709
|
},
|
|
2710
2710
|
{
|
|
2711
2711
|
"kind": "class",
|
|
2712
|
-
"description": "A row of controls that belong to a whole screen or pane, with an overflow menu for what does not fit. The toolbar measures itself: as the row runs out of room, items move into that menu, the lowest `priority` first, and items that share a priority move together. So the order in the HTML says where an item sits, and `priority` says how long it stays. Every item carries its own alternative for the menu, an nldd-menu-item in its `overflow` slot. Without one the action is simply gone once the item overflows, which on a wide screen you never see; the item warns about it in development. The toolbar's own `overflow` slot holds the actions that live in the menu at every width.",
|
|
2712
|
+
"description": "A row of controls that belong to a whole screen or pane, with an overflow menu for what does not fit. The toolbar measures itself: as the row runs out of room, items move into that menu, the lowest `priority` first, and items that share a priority move together. So the order in the HTML says where an item sits, and `priority` says how long it stays. An item holding a control with its own overflow, such as nldd-tab-bar, first narrows down when its turn comes, so that control moves what does not fit into its own menu, and only then goes into the toolbar's menu. Every item carries its own alternative for the menu, an nldd-menu-item in its `overflow` slot. Without one the action is simply gone once the item overflows, which on a wide screen you never see; the item warns about it in development. The toolbar's own `overflow` slot holds the actions that live in the menu at every width.",
|
|
2713
2713
|
"name": "NLDDToolbar",
|
|
2714
2714
|
"members": [
|
|
2715
2715
|
{
|
|
@@ -2734,12 +2734,12 @@
|
|
|
2734
2734
|
},
|
|
2735
2735
|
{
|
|
2736
2736
|
"kind": "field",
|
|
2737
|
-
"name": "
|
|
2737
|
+
"name": "accessibleLabel",
|
|
2738
2738
|
"type": {
|
|
2739
2739
|
"text": "string"
|
|
2740
2740
|
},
|
|
2741
2741
|
"default": "''",
|
|
2742
|
-
"attribute": "label",
|
|
2742
|
+
"attribute": "accessible-label",
|
|
2743
2743
|
"reflects": true
|
|
2744
2744
|
},
|
|
2745
2745
|
{
|
|
@@ -2772,13 +2772,13 @@
|
|
|
2772
2772
|
"description": "When true, shows a text label below each toolbar item and the overflow button"
|
|
2773
2773
|
},
|
|
2774
2774
|
{
|
|
2775
|
-
"name": "label",
|
|
2775
|
+
"name": "accessible-label",
|
|
2776
2776
|
"type": {
|
|
2777
2777
|
"text": "string"
|
|
2778
2778
|
},
|
|
2779
2779
|
"default": "''",
|
|
2780
|
-
"fieldName": "
|
|
2781
|
-
"description": "Accessible
|
|
2780
|
+
"fieldName": "accessibleLabel",
|
|
2781
|
+
"description": "Accessible name of the toolbar. Only needed when multiple toolbars appear on the same page."
|
|
2782
2782
|
},
|
|
2783
2783
|
{
|
|
2784
2784
|
"name": "translations",
|
|
@@ -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": {
|
|
@@ -5613,6 +5632,48 @@
|
|
|
5613
5632
|
}
|
|
5614
5633
|
]
|
|
5615
5634
|
},
|
|
5635
|
+
{
|
|
5636
|
+
"kind": "javascript-module",
|
|
5637
|
+
"path": "src/components/content/visually-hidden/visually-hidden.ts",
|
|
5638
|
+
"declarations": [
|
|
5639
|
+
{
|
|
5640
|
+
"kind": "class",
|
|
5641
|
+
"description": "Text a screen reader reads and the screen does not show. It stays in the accessibility tree and in the reading order, and takes no room on the page. For a name that is visually redundant: the header of a column of checkboxes, where the checkboxes say enough to anyone who can see them, or the \"(opent in een nieuw venster)\" after a link whose icon already says it. Not for repairing structure that is missing. Hidden text that describes how something is laid out (\"subpagina van Aanvragen\") stands in for semantics the markup should carry, and only a screen reader gets the stand-in. Not for a status either: a status that matters to a screen reader matters to anyone, so show it, as text with `role=\"status\"` or as an `nldd-notification`. And not for the name of a component that takes `accessible-label`: give it that. Nothing in it should take focus. A control inside would be reached with Tab and be nowhere on the screen.",
|
|
5642
|
+
"name": "NLDDVisuallyHidden",
|
|
5643
|
+
"members": [],
|
|
5644
|
+
"superclass": {
|
|
5645
|
+
"name": "LitElement",
|
|
5646
|
+
"package": "lit"
|
|
5647
|
+
},
|
|
5648
|
+
"tagName": "nldd-visually-hidden",
|
|
5649
|
+
"customElement": true,
|
|
5650
|
+
"slots": [
|
|
5651
|
+
{
|
|
5652
|
+
"name": "",
|
|
5653
|
+
"description": "The text, read by a screen reader and not shown."
|
|
5654
|
+
}
|
|
5655
|
+
]
|
|
5656
|
+
}
|
|
5657
|
+
],
|
|
5658
|
+
"exports": [
|
|
5659
|
+
{
|
|
5660
|
+
"kind": "js",
|
|
5661
|
+
"name": "NLDDVisuallyHidden",
|
|
5662
|
+
"declaration": {
|
|
5663
|
+
"name": "NLDDVisuallyHidden",
|
|
5664
|
+
"module": "src/components/content/visually-hidden/visually-hidden.ts"
|
|
5665
|
+
}
|
|
5666
|
+
},
|
|
5667
|
+
{
|
|
5668
|
+
"kind": "custom-element-definition",
|
|
5669
|
+
"name": "nldd-visually-hidden",
|
|
5670
|
+
"declaration": {
|
|
5671
|
+
"name": "NLDDVisuallyHidden",
|
|
5672
|
+
"module": "src/components/content/visually-hidden/visually-hidden.ts"
|
|
5673
|
+
}
|
|
5674
|
+
}
|
|
5675
|
+
]
|
|
5676
|
+
},
|
|
5616
5677
|
{
|
|
5617
5678
|
"kind": "javascript-module",
|
|
5618
5679
|
"path": "src/components/forms/form-actions/form-actions.ts",
|
|
@@ -6016,7 +6077,7 @@
|
|
|
6016
6077
|
"text": "boolean"
|
|
6017
6078
|
},
|
|
6018
6079
|
"default": "false",
|
|
6019
|
-
"description": "
|
|
6080
|
+
"description": "Makes the field one that needs a value. See `_evaluate` on the list.",
|
|
6020
6081
|
"attribute": "required",
|
|
6021
6082
|
"reflects": true
|
|
6022
6083
|
},
|
|
@@ -6075,7 +6136,7 @@
|
|
|
6075
6136
|
}
|
|
6076
6137
|
}
|
|
6077
6138
|
],
|
|
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
|
|
6139
|
+
"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
6140
|
}
|
|
6080
6141
|
],
|
|
6081
6142
|
"attributes": [
|
|
@@ -6085,7 +6146,7 @@
|
|
|
6085
6146
|
"text": "string"
|
|
6086
6147
|
},
|
|
6087
6148
|
"default": "''",
|
|
6088
|
-
"description": "Regular expression the value has to contain. Not anchored, unlike the native `pattern`: `[A-Z]` means \"has a capital in it\".",
|
|
6149
|
+
"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
6150
|
"fieldName": "match"
|
|
6090
6151
|
},
|
|
6091
6152
|
{
|
|
@@ -6094,7 +6155,7 @@
|
|
|
6094
6155
|
"text": "number | undefined"
|
|
6095
6156
|
},
|
|
6096
6157
|
"fieldName": "minlength",
|
|
6097
|
-
"description": "Fewest characters the value may have."
|
|
6158
|
+
"description": "Fewest characters the value may have. Not held against an empty value unless the field is required."
|
|
6098
6159
|
},
|
|
6099
6160
|
{
|
|
6100
6161
|
"name": "maxlength",
|
|
@@ -6110,7 +6171,7 @@
|
|
|
6110
6171
|
"text": "boolean"
|
|
6111
6172
|
},
|
|
6112
6173
|
"default": "false",
|
|
6113
|
-
"description": "The value may not be empty.
|
|
6174
|
+
"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
6175
|
"fieldName": "required"
|
|
6115
6176
|
},
|
|
6116
6177
|
{
|
|
@@ -6459,6 +6520,14 @@
|
|
|
6459
6520
|
"module": "./content/tooltip/tooltip.js"
|
|
6460
6521
|
}
|
|
6461
6522
|
},
|
|
6523
|
+
{
|
|
6524
|
+
"kind": "js",
|
|
6525
|
+
"name": "NLDDVisuallyHidden",
|
|
6526
|
+
"declaration": {
|
|
6527
|
+
"name": "NLDDVisuallyHidden",
|
|
6528
|
+
"module": "./content/visually-hidden/visually-hidden.js"
|
|
6529
|
+
}
|
|
6530
|
+
},
|
|
6462
6531
|
{
|
|
6463
6532
|
"kind": "js",
|
|
6464
6533
|
"name": "NLDDForm",
|
|
@@ -22856,7 +22925,7 @@
|
|
|
22856
22925
|
"declarations": [
|
|
22857
22926
|
{
|
|
22858
22927
|
"kind": "class",
|
|
22859
|
-
"description": "A visually bounded card with optional header, body and footer sections. The card is elevated by default. Padding is left to nested containers. With `href` the whole card becomes a link (an overlay anchor across the card), with `button` a button (an overlay button that fires a plain, composed `click`, so a click listener or htmx attribute on the card itself works directly, and Enter/Space work natively). `href` wins when both are set. Nested interactive content, footer buttons for instance, has to be lifted above it with `position: relative; z-index: 1` to stay clickable. A card that is a link or button steps its surface and border one shade up on hover and one more while pressed, as a neutral-base button does; content lifted above the overlay does not set it off.",
|
|
22928
|
+
"description": "A visually bounded card with optional header, body and footer sections. The card is elevated by default. Padding is left to nested containers. With `href` the whole card becomes a link (an overlay anchor across the card), with `button` a button (an overlay button that fires a plain, composed `click`, so a click listener or htmx attribute on the card itself works directly, and Enter/Space work natively). `href` wins when both are set. Nested interactive content, footer buttons for instance, has to be lifted above it with `position: relative; z-index: 1` to stay clickable. A card that is a link or button steps its surface and border one shade up on hover and one more while pressed, as a neutral-base button does; content lifted above the overlay does not set it off. On a touch screen there is no hover, and a touch that turns into a scroll lets go of the pressed shade.",
|
|
22860
22929
|
"name": "NLDDCard",
|
|
22861
22930
|
"members": [
|
|
22862
22931
|
{
|
|
@@ -32014,7 +32083,7 @@
|
|
|
32014
32083
|
},
|
|
32015
32084
|
{
|
|
32016
32085
|
"name": "children",
|
|
32017
|
-
"description": "Child rows of
|
|
32086
|
+
"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."
|
|
32018
32087
|
}
|
|
32019
32088
|
],
|
|
32020
32089
|
"members": [
|
|
@@ -32412,7 +32481,7 @@
|
|
|
32412
32481
|
"declarations": [
|
|
32413
32482
|
{
|
|
32414
32483
|
"kind": "class",
|
|
32415
|
-
"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.",
|
|
32484
|
+
"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.",
|
|
32416
32485
|
"name": "NLDDList",
|
|
32417
32486
|
"slots": [
|
|
32418
32487
|
{
|
|
@@ -33267,7 +33336,7 @@
|
|
|
33267
33336
|
},
|
|
33268
33337
|
{
|
|
33269
33338
|
"name": "nldd-reorder",
|
|
33270
|
-
"description": "Fired when
|
|
33339
|
+
"description": "Fired when a tab is moved, by dragging or with Shift+Arrow; detail: { fromIndex, toIndex }"
|
|
33271
33340
|
}
|
|
33272
33341
|
],
|
|
33273
33342
|
"attributes": [
|
|
@@ -33859,7 +33928,7 @@
|
|
|
33859
33928
|
},
|
|
33860
33929
|
"default": "false",
|
|
33861
33930
|
"fieldName": "expandable",
|
|
33862
|
-
"description": "Show the disclosure icon and open the slotted `<nldd-menu>` on click"
|
|
33931
|
+
"description": "Show the disclosure icon and open the slotted `<nldd-menu>` on click. The control then says `aria-haspopup=\"menu\"`, except for a menu with `variant=\"navigation\"`: that is a list of links, so the control only says `aria-expanded`."
|
|
33863
33932
|
},
|
|
33864
33933
|
{
|
|
33865
33934
|
"name": "icon-only",
|
|
@@ -33868,7 +33937,7 @@
|
|
|
33868
33937
|
},
|
|
33869
33938
|
"default": "false",
|
|
33870
33939
|
"fieldName": "iconOnly",
|
|
33871
|
-
"description": "Hide the text visually (always)"
|
|
33940
|
+
"description": "Hide the text visually (always). The text then shows as a tooltip on hover and focus."
|
|
33872
33941
|
},
|
|
33873
33942
|
{
|
|
33874
33943
|
"name": "content-priority",
|
|
@@ -33877,7 +33946,7 @@
|
|
|
33877
33946
|
},
|
|
33878
33947
|
"default": "''",
|
|
33879
33948
|
"fieldName": "contentPriority",
|
|
33880
|
-
"description": "Decides what stays visible in compact mode: 'icon' hides the text, 'text' hides the icon"
|
|
33949
|
+
"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."
|
|
33881
33950
|
},
|
|
33882
33951
|
{
|
|
33883
33952
|
"name": "compact",
|
|
@@ -34274,7 +34343,7 @@
|
|
|
34274
34343
|
"declarations": [
|
|
34275
34344
|
{
|
|
34276
34345
|
"kind": "class",
|
|
34277
|
-
"description": "Accessibility pattern that lets keyboard users skip past content. Wraps content in a default slot. Without href it
|
|
34346
|
+
"description": "Accessibility pattern that lets keyboard users skip past content. Wraps content in a default slot. Not only for the header of a page. Any block with many stops that someone on a keyboard often wants to get past can have one: a set of filters, a long toolbar, a table of contents. Keep it to blocks like that; a skip link before every section is one more stop on the way, not one less. 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\".",
|
|
34278
34347
|
"name": "NLDDSkipLink",
|
|
34279
34348
|
"members": [
|
|
34280
34349
|
{
|
|
@@ -34318,7 +34387,7 @@
|
|
|
34318
34387
|
},
|
|
34319
34388
|
"default": "''",
|
|
34320
34389
|
"fieldName": "text",
|
|
34321
|
-
"description": "Text of the skip link. Falls back to the i18n default."
|
|
34390
|
+
"description": "Text of the skip link. Name what is skipped. Falls back to the i18n default."
|
|
34322
34391
|
},
|
|
34323
34392
|
{
|
|
34324
34393
|
"name": "href",
|
|
@@ -34327,7 +34396,7 @@
|
|
|
34327
34396
|
},
|
|
34328
34397
|
"default": "''",
|
|
34329
34398
|
"fieldName": "href",
|
|
34330
|
-
"description": "Optional external target id. Without href it jumps to the
|
|
34399
|
+
"description": "Optional external target id. Without href it jumps to the first rendered element after the skip link."
|
|
34331
34400
|
},
|
|
34332
34401
|
{
|
|
34333
34402
|
"name": "translations",
|
|
@@ -34538,7 +34607,7 @@
|
|
|
34538
34607
|
},
|
|
34539
34608
|
{
|
|
34540
34609
|
"kind": "class",
|
|
34541
|
-
"description": "A horizontal navigation bar with mutually exclusive tabs. Exports both NLDDTabBar and NLDDTabBarItem.",
|
|
34610
|
+
"description": "A horizontal navigation bar with mutually exclusive tabs. Exports both NLDDTabBar and NLDDTabBarItem. When the tabs do not fit, the ones that do not fit go behind a \"Meer tabs\" button at the end, in a menu. The current tab always stays in the bar: if it would fall in the part that does not fit, another tab goes to the menu in its place. While tabs are in the menu, the bar fills its container and the tabs in it share the width in proportion to their own. Choosing a tab in the bar changes nothing about what is shown; choosing one from the menu swaps it with the last tab in the bar, so the bar does not jump. `centered` has no effect then. In an nldd-toolbar the other items go to the toolbar's menu first, by their priority; when it is the bar's turn, it narrows down to the current tab beside its button, and only then moves into the toolbar's menu as a whole. Tabs are hidden, never moved, so a framework that renders them finds them where it put them. Only a tab that does not fit on its own is cut off.",
|
|
34542
34611
|
"name": "NLDDTabBar",
|
|
34543
34612
|
"members": [
|
|
34544
34613
|
{
|
|
@@ -34602,6 +34671,25 @@
|
|
|
34602
34671
|
},
|
|
34603
34672
|
"default": "''",
|
|
34604
34673
|
"attribute": "accessible-label"
|
|
34674
|
+
},
|
|
34675
|
+
{
|
|
34676
|
+
"kind": "field",
|
|
34677
|
+
"name": "translations",
|
|
34678
|
+
"type": {
|
|
34679
|
+
"text": "Partial<T>"
|
|
34680
|
+
},
|
|
34681
|
+
"default": "{}",
|
|
34682
|
+
"attribute": "translations",
|
|
34683
|
+
"inheritedFrom": {
|
|
34684
|
+
"name": "withTranslations",
|
|
34685
|
+
"module": "src/utilities/with-translations.ts"
|
|
34686
|
+
}
|
|
34687
|
+
}
|
|
34688
|
+
],
|
|
34689
|
+
"events": [
|
|
34690
|
+
{
|
|
34691
|
+
"name": "tabchange",
|
|
34692
|
+
"description": "When a tab is selected; detail: { item: NLDDTabBarItem }"
|
|
34605
34693
|
}
|
|
34606
34694
|
],
|
|
34607
34695
|
"attributes": [
|
|
@@ -34658,6 +34746,25 @@
|
|
|
34658
34746
|
"default": "''",
|
|
34659
34747
|
"fieldName": "accessibleLabel",
|
|
34660
34748
|
"description": "Accessible name for the navigation region; defaults to 'Tabs'"
|
|
34749
|
+
},
|
|
34750
|
+
{
|
|
34751
|
+
"name": "translations",
|
|
34752
|
+
"type": {
|
|
34753
|
+
"text": "Partial<T>"
|
|
34754
|
+
},
|
|
34755
|
+
"default": "{}",
|
|
34756
|
+
"fieldName": "translations",
|
|
34757
|
+
"inheritedFrom": {
|
|
34758
|
+
"name": "withTranslations",
|
|
34759
|
+
"module": "src/utilities/with-translations.ts"
|
|
34760
|
+
},
|
|
34761
|
+
"description": "Override translation keys (e.g. the overflow button label); unset keys fall back to Dutch."
|
|
34762
|
+
}
|
|
34763
|
+
],
|
|
34764
|
+
"mixins": [
|
|
34765
|
+
{
|
|
34766
|
+
"name": "withTranslations",
|
|
34767
|
+
"module": "/src/utilities/with-translations.js"
|
|
34661
34768
|
}
|
|
34662
34769
|
],
|
|
34663
34770
|
"superclass": {
|
|
@@ -34666,12 +34773,6 @@
|
|
|
34666
34773
|
},
|
|
34667
34774
|
"tagName": "nldd-tab-bar",
|
|
34668
34775
|
"customElement": true,
|
|
34669
|
-
"events": [
|
|
34670
|
-
{
|
|
34671
|
-
"name": "tabchange",
|
|
34672
|
-
"description": "When a tab is selected; detail: { item: NLDDTabBarItem }"
|
|
34673
|
-
}
|
|
34674
|
-
],
|
|
34675
34776
|
"slots": [
|
|
34676
34777
|
{
|
|
34677
34778
|
"name": "",
|
|
@@ -34721,7 +34822,7 @@
|
|
|
34721
34822
|
"declarations": [
|
|
34722
34823
|
{
|
|
34723
34824
|
"kind": "class",
|
|
34724
|
-
"description": "The top bar of a page: a logo bar with the Rijkslogo and an optional wordmark, and below it the main bar with the website title, a back button, the global navigation and the utility navigation. On narrow widths the global navigation moves into a menu sheet behind the menu button.",
|
|
34825
|
+
"description": "The top bar of a page: a logo bar with the Rijkslogo and an optional wordmark, and below it the main bar with the website title, a back button, the global navigation and the utility navigation. On narrow widths the global navigation moves into a menu sheet behind the menu button. The top bar of a website, and of nothing else: put it in the `header` slot of an `nldd-page`. Do not combine it with a split view. A split view is the layout of an application, whose panes carry a bar of their own, usually an `nldd-toolbar`, and a site header above it gives a second layer of navigation and a second thing that scrolls. Does a page need a sidebar under this bar, use an `nldd-sidebar-section` inside that `nldd-page`.",
|
|
34725
34826
|
"name": "NLDDTopNavigationBar",
|
|
34726
34827
|
"members": [
|
|
34727
34828
|
{
|
|
@@ -35008,7 +35109,7 @@
|
|
|
35008
35109
|
"declarations": [
|
|
35009
35110
|
{
|
|
35010
35111
|
"kind": "class",
|
|
35011
|
-
"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.",
|
|
35112
|
+
"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.",
|
|
35012
35113
|
"name": "NLDDTopTitleBar",
|
|
35013
35114
|
"members": [
|
|
35014
35115
|
{
|
|
@@ -35098,7 +35199,7 @@
|
|
|
35098
35199
|
},
|
|
35099
35200
|
"default": "''",
|
|
35100
35201
|
"fieldName": "text",
|
|
35101
|
-
"description": "Title of the bar, rendered as the heading in the title group."
|
|
35202
|
+
"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."
|
|
35102
35203
|
},
|
|
35103
35204
|
{
|
|
35104
35205
|
"name": "supporting-text",
|
|
@@ -36485,7 +36586,7 @@
|
|
|
36485
36586
|
"declarations": [
|
|
36486
36587
|
{
|
|
36487
36588
|
"kind": "class",
|
|
36488
|
-
"description": "A short message that arrives over the interface and leaves on its own: a save that worked, a request that failed. Not a banner, which stands in the page and stays there — this one floats, stacks, and goes away. It places itself. Write it wherever it belongs in your code and it moves to one shared area: top right from md, full width across the top below that. Nothing about the position is settable, so notifications from anywhere in an application land in the same place and stack in the same order. A modal overlay is the one thing that moves it. An nldd-sheet, nldd-window or nldd-modal-dialog paints in the browser's top layer, above the whole page and out of reach of any z-index, and while one is open everything outside it is inert. So the area goes in: into the topmost overlay that is open, and back down as they close. A notification already on screen travels with it, and one raised from inside a sheet is readable and reachable where it is raised. More than one is a deck, not a list: the front one is readable and the older ones peek out below it, so a burst of messages takes the room of roughly one. The newest is in front. Behind it a notification is a bare surface, cut to the height of the one in front; dismiss the front and it slides up into the place that came free while its message fades in, because it was standing there all along. Under the front notification sits a strip as wide as the deck and as tall as the deck is when it fans out. Pointing at it fans the deck out to fill it, which is the only hint that there is more here than the message you can read; clicking it, or moving focus into the area, lays the whole deck out as a list. Clicking or tabbing away puts it back. The notification itself is not a button: a click on the message you are reading does nothing. Only the front of the deck counts down, and only while the deck is closed: open means someone is reading. The rest wait, so nothing disappears from under the one you are reading. `critical` never leaves on its own: a failure is worth reading, and the count-down would take it away while you were. That also keeps this within WCAG 2.2.1, which allows a time limit when what disappears is not essential. The clock pauses while a pointer moves over the notification and while focus is inside it, and resumes where it left off rather than starting over. A pointer that merely happens to rest where the notification appears does not count: it never moved, so nobody is reading. role follows the variant: `critical` becomes role=\"alert\", the rest role=\"status\". Focus never moves on its own. Escape dismisses the notification that focus is in.",
|
|
36589
|
+
"description": "A short message that arrives over the interface and leaves on its own: a save that worked, a request that failed. Not a banner, which stands in the page and stays there — this one floats, stacks, and goes away. It places itself. Write it wherever it belongs in your code and it moves to one shared area: top right from md, full width across the top below that. Nothing about the position is settable, so notifications from anywhere in an application land in the same place and stack in the same order. A modal overlay is the one thing that moves it. An nldd-sheet, nldd-window or nldd-modal-dialog paints in the browser's top layer, above the whole page and out of reach of any z-index, and while one is open everything outside it is inert. So the area goes in: into the topmost overlay that is open, and back down as they close. A notification already on screen travels with it, and one raised from inside a sheet is readable and reachable where it is raised. More than one is a deck, not a list: the front one is readable and the older ones peek out below it, so a burst of messages takes the room of roughly one. The newest is in front. Behind it a notification is a bare surface, cut to the height of the one in front; dismiss the front and it slides up into the place that came free while its message fades in, because it was standing there all along. Under the front notification sits a strip as wide as the deck and as tall as the deck is when it fans out. Pointing at it fans the deck out to fill it, which is the only hint that there is more here than the message you can read; clicking it, or moving focus into the area, lays the whole deck out as a list. Clicking or tabbing away puts it back. The notification itself is not a button: a click on the message you are reading does nothing. Only the front of the deck counts down, and only while the deck is closed: open means someone is reading. The rest wait, so nothing disappears from under the one you are reading. `critical` never leaves on its own: a failure is worth reading, and the count-down would take it away while you were. That also keeps this within WCAG 2.2.1, which allows a time limit when what disappears is not essential. The clock pauses while a pointer moves over the notification and while focus is inside it, and resumes where it left off rather than starting over. A pointer that merely happens to rest where the notification appears does not count: it never moved, so nobody is reading. role follows the variant: `critical` becomes role=\"alert\", the rest role=\"status\". Focus never moves on its own. Escape dismisses the notification that focus is in. `NLDDNotification.show({ text, supportingText, variant, icon, duration, actions })` raises a notification without an element to manage: it creates one, shows it, and removes it once it is dismissed. An action is `{ text, onClick }`, at most 2, and a click on one also takes the notification away. It returns a handle with `dismiss()` and `update(options)`. An update changes the message, puts the notification in front and starts its clock over, so a status that changes often is one notification that keeps up instead of a new one sliding in each time; one that has already left arrives again. Use `show()` from a framework. Because a notification places itself, an element that a framework rendered is no longer where that framework left it: a keyed list (`v-for` with a `:key`) then fails on its next render, and a removed row leaves its notification on screen.",
|
|
36489
36590
|
"name": "NLDDNotification",
|
|
36490
36591
|
"members": [
|
|
36491
36592
|
{
|
|
@@ -36538,6 +36639,25 @@
|
|
|
36538
36639
|
"text": "number"
|
|
36539
36640
|
}
|
|
36540
36641
|
},
|
|
36642
|
+
{
|
|
36643
|
+
"kind": "method",
|
|
36644
|
+
"name": "show",
|
|
36645
|
+
"static": true,
|
|
36646
|
+
"return": {
|
|
36647
|
+
"type": {
|
|
36648
|
+
"text": "NotificationHandle"
|
|
36649
|
+
}
|
|
36650
|
+
},
|
|
36651
|
+
"parameters": [
|
|
36652
|
+
{
|
|
36653
|
+
"name": "options",
|
|
36654
|
+
"type": {
|
|
36655
|
+
"text": "NotificationOptions"
|
|
36656
|
+
}
|
|
36657
|
+
}
|
|
36658
|
+
],
|
|
36659
|
+
"description": "Raises a notification from code, and takes it away again when it is\ndismissed.\n\nThe way to raise one from a framework. A notification places itself, so\nan element a framework rendered is no longer where that framework left\nit, and the next render of that list fails. Here nothing owns the\nelement but the notification itself."
|
|
36660
|
+
},
|
|
36541
36661
|
{
|
|
36542
36662
|
"kind": "field",
|
|
36543
36663
|
"name": "translations",
|
|
@@ -36555,7 +36675,7 @@
|
|
|
36555
36675
|
"events": [
|
|
36556
36676
|
{
|
|
36557
36677
|
"name": "dismiss",
|
|
36558
|
-
"description": "Fired when the notification is dismissed, by the button, by Escape, or by its own clock. The consumer removes it."
|
|
36678
|
+
"description": "Fired when the notification is dismissed, by the button, by Escape, or by its own clock. The consumer removes it, unless it was raised with `show()`, which removes it itself."
|
|
36559
36679
|
}
|
|
36560
36680
|
],
|
|
36561
36681
|
"attributes": [
|
|
@@ -36682,6 +36802,24 @@
|
|
|
36682
36802
|
],
|
|
36683
36803
|
"description": "Newest in front: what just happened is what you want to read, and the older\nones slide back and downwards behind it."
|
|
36684
36804
|
},
|
|
36805
|
+
{
|
|
36806
|
+
"kind": "function",
|
|
36807
|
+
"name": "bringToFront",
|
|
36808
|
+
"return": {
|
|
36809
|
+
"type": {
|
|
36810
|
+
"text": "void"
|
|
36811
|
+
}
|
|
36812
|
+
},
|
|
36813
|
+
"parameters": [
|
|
36814
|
+
{
|
|
36815
|
+
"name": "notification",
|
|
36816
|
+
"type": {
|
|
36817
|
+
"text": "NLDDNotification"
|
|
36818
|
+
}
|
|
36819
|
+
}
|
|
36820
|
+
],
|
|
36821
|
+
"description": "Puts a notification that is already in the deck back in front, as if it had\njust arrived. For one that was updated: the change is what just happened, and\nbehind a newer notification nobody would see it."
|
|
36822
|
+
},
|
|
36685
36823
|
{
|
|
36686
36824
|
"kind": "function",
|
|
36687
36825
|
"name": "leaveArea",
|
|
@@ -36709,6 +36847,14 @@
|
|
|
36709
36847
|
"module": "src/components/status-and-feedback/notification/notifications-area.ts"
|
|
36710
36848
|
}
|
|
36711
36849
|
},
|
|
36850
|
+
{
|
|
36851
|
+
"kind": "js",
|
|
36852
|
+
"name": "bringToFront",
|
|
36853
|
+
"declaration": {
|
|
36854
|
+
"name": "bringToFront",
|
|
36855
|
+
"module": "src/components/status-and-feedback/notification/notifications-area.ts"
|
|
36856
|
+
}
|
|
36857
|
+
},
|
|
36712
36858
|
{
|
|
36713
36859
|
"kind": "js",
|
|
36714
36860
|
"name": "leaveArea",
|