@nldd/design-system 0.8.99 → 0.9.0
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 +484 -40
- package/dist/components/actions/button/button.d.ts +7 -5
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.d.ts +3 -1
- package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.js +3 -1
- package/dist/components/actions/button/button.i18n.js.map +1 -1
- package/dist/components/actions/button/button.js +3 -3
- package/dist/components/actions/button/button.styles.js +2 -2
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +9 -10
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +7 -5
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts +3 -1
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.js +3 -1
- package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +3 -3
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +7 -7
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +9 -0
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +18 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +1 -1
- package/dist/components/actions/split-button/split-button.js +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +1 -1
- package/dist/components/actions/toolbar/toolbar.i18n.d.ts +3 -1
- package/dist/components/actions/toolbar/toolbar.i18n.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.i18n.js +3 -1
- package/dist/components/actions/toolbar/toolbar.i18n.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +1 -1
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +4 -2
- package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
- package/dist/components/components.js +1014 -296
- package/dist/components/content/avatar/avatar.d.ts +5 -3
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.i18n.d.ts +3 -1
- package/dist/components/content/avatar/avatar.i18n.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.i18n.js +3 -1
- package/dist/components/content/avatar/avatar.i18n.js.map +1 -1
- package/dist/components/content/avatar/avatar.js +1 -1
- package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.js +6 -6
- package/dist/components/content/avatar/avatar.template.js.map +1 -1
- package/dist/components/content/text/text.d.ts +1 -1
- package/dist/components/content/text/text.js +1 -1
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +55 -0
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/title/title.d.ts +16 -1
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +109 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +39 -0
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/token/token.d.ts +1 -1
- package/dist/components/content/token/token.js +1 -1
- package/dist/components/{icon-button-CJIikwyu.js → icon-button-BVhiOwX9.js} +12 -7
- package/dist/components/inputs/dropdown/dropdown.d.ts +6 -0
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +6 -0
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +6 -4
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.d.ts +3 -1
- package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.js +3 -1
- package/dist/components/layout/card/card.i18n.js.map +1 -1
- package/dist/components/layout/card/card.js +2 -2
- package/dist/components/layout/card/card.template.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.js +6 -6
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +16 -5
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +44 -10
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +7 -6
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +1 -1
- package/dist/components/layout/container/container.js +1 -1
- package/dist/components/layout/container/container.styles.d.ts.map +1 -1
- package/dist/components/layout/container/container.styles.js +4 -0
- package/dist/components/layout/container/container.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts +29 -0
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.js +131 -0
- package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts +2 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js +139 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts +13 -5
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +42 -6
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +16 -0
- 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 +61 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +1 -1
- package/dist/components/layout/window/window.js +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +5 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +25 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +28 -7
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js +8 -4
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +5 -2
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +9 -4
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +12 -5
- 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.i18n.d.ts +3 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js +3 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +15 -7
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +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 +9 -2
- 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 +11 -2
- 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.i18n.d.ts +7 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +6 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +7 -3
- 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.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +12 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.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 +6 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +8 -5
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +19 -10
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +4 -0
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.js +5 -1
- package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +7 -5
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.i18n.d.ts +3 -1
- package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
- package/dist/components/navigation/link/link.i18n.js +3 -1
- package/dist/components/navigation/link/link.i18n.js.map +1 -1
- package/dist/components/navigation/link/link.js +3 -3
- package/dist/components/navigation/link/link.styles.js +2 -2
- package/dist/components/navigation/link/link.template.d.ts.map +1 -1
- package/dist/components/navigation/link/link.template.js +7 -8
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +4 -1
- 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 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination.js +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts +1 -14
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +7 -55
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +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 +6 -3
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +11 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +21 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +1 -1
- package/dist/components/{with-translations-C8_0-9y8.js → with-translations-C6QfP6_S.js} +24 -1
- package/dist/css/rich-text.css +1 -1
- package/dist/css/variables.css +1 -0
- package/dist/nldd.min.js +962 -683
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +24 -7
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +24 -7
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +24 -7
- 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 +24 -7
- 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 +24 -7
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +71 -38
- package/dist/utilities/focus-target.d.ts +23 -0
- package/dist/utilities/focus-target.d.ts.map +1 -0
- package/dist/utilities/focus-target.js +70 -0
- package/dist/utilities/focus-target.js.map +1 -0
- package/dist/utilities/link-hint.d.ts +18 -0
- package/dist/utilities/link-hint.d.ts.map +1 -0
- package/dist/utilities/link-hint.js +29 -0
- package/dist/utilities/link-hint.js.map +1 -0
- package/package.json +3 -2
package/custom-elements.json
CHANGED
|
@@ -659,7 +659,7 @@
|
|
|
659
659
|
"text": "boolean"
|
|
660
660
|
},
|
|
661
661
|
"default": "false",
|
|
662
|
-
"description": "Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width.",
|
|
662
|
+
"description": "Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width. Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe.",
|
|
663
663
|
"fieldName": "loading"
|
|
664
664
|
},
|
|
665
665
|
{
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
},
|
|
679
679
|
"default": "false",
|
|
680
680
|
"fieldName": "disabled",
|
|
681
|
-
"description": "Disabled state"
|
|
681
|
+
"description": "Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why."
|
|
682
682
|
},
|
|
683
683
|
{
|
|
684
684
|
"name": "text",
|
|
@@ -758,7 +758,7 @@
|
|
|
758
758
|
"text": "string | undefined"
|
|
759
759
|
},
|
|
760
760
|
"default": "undefined",
|
|
761
|
-
"description": "Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden \"opens in new tab\" announcement for screen readers (WCAG 2.1 SC 3.2.2).",
|
|
761
|
+
"description": "Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden \"opens in new tab\" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden \"andere website\", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.",
|
|
762
762
|
"fieldName": "target"
|
|
763
763
|
},
|
|
764
764
|
{
|
|
@@ -1165,7 +1165,7 @@
|
|
|
1165
1165
|
"text": "boolean"
|
|
1166
1166
|
},
|
|
1167
1167
|
"default": "false",
|
|
1168
|
-
"description": "Loading state (default: false). Shows an activity indicator over the visually hidden icon, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled).",
|
|
1168
|
+
"description": "Loading state (default: false). Shows an activity indicator over the visually hidden icon, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe.",
|
|
1169
1169
|
"fieldName": "loading"
|
|
1170
1170
|
},
|
|
1171
1171
|
{
|
|
@@ -1184,7 +1184,7 @@
|
|
|
1184
1184
|
},
|
|
1185
1185
|
"default": "false",
|
|
1186
1186
|
"fieldName": "disabled",
|
|
1187
|
-
"description": "Disabled state"
|
|
1187
|
+
"description": "Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why."
|
|
1188
1188
|
},
|
|
1189
1189
|
{
|
|
1190
1190
|
"name": "no-highlight-border",
|
|
@@ -1308,7 +1308,7 @@
|
|
|
1308
1308
|
"text": "string | undefined"
|
|
1309
1309
|
},
|
|
1310
1310
|
"default": "undefined",
|
|
1311
|
-
"description": "Link target (e.g. '_blank'); only used when href is set. With '_blank' the \"opens in new tab\" announcement is folded into the aria-label for screen readers (WCAG 2.1 SC 3.2.2).",
|
|
1311
|
+
"description": "Link target (e.g. '_blank'); only used when href is set. With '_blank' the \"opens in new tab\" announcement is folded into the aria-label for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden \"andere website\", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.",
|
|
1312
1312
|
"fieldName": "target"
|
|
1313
1313
|
},
|
|
1314
1314
|
{
|
|
@@ -2317,7 +2317,7 @@
|
|
|
2317
2317
|
},
|
|
2318
2318
|
"default": "false",
|
|
2319
2319
|
"fieldName": "disabled",
|
|
2320
|
-
"description": "Disabled state"
|
|
2320
|
+
"description": "Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why."
|
|
2321
2321
|
},
|
|
2322
2322
|
{
|
|
2323
2323
|
"name": "width",
|
|
@@ -2678,7 +2678,7 @@
|
|
|
2678
2678
|
},
|
|
2679
2679
|
"default": "''",
|
|
2680
2680
|
"fieldName": "target",
|
|
2681
|
-
"description": "Where the link opens; only meaningful with `href`. `_blank` adds rel=\"noopener noreferrer\" and a visually hidden \"opens in a new tab\" announcement."
|
|
2681
|
+
"description": "Where the link opens; only meaningful with `href`. `_blank` adds rel=\"noopener noreferrer\" and a visually hidden \"opens in a new tab\" announcement. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden \"andere website\", in one sentence with the new-tab announcement when both apply; there is no way to switch it off."
|
|
2682
2682
|
},
|
|
2683
2683
|
{
|
|
2684
2684
|
"name": "translations",
|
|
@@ -3359,7 +3359,7 @@
|
|
|
3359
3359
|
},
|
|
3360
3360
|
"default": "''",
|
|
3361
3361
|
"fieldName": "target",
|
|
3362
|
-
"description": "Link target for href (e.g. '_blank'); completes rel and announces \"Opens in a new tab\""
|
|
3362
|
+
"description": "Link target for href (e.g. '_blank'); completes rel and announces \"Opens in a new tab\". An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden \"andere website\", in one sentence with the new-tab announcement when both apply; there is no way to switch it off."
|
|
3363
3363
|
},
|
|
3364
3364
|
{
|
|
3365
3365
|
"name": "rel",
|
|
@@ -5085,7 +5085,7 @@
|
|
|
5085
5085
|
"slots": [
|
|
5086
5086
|
{
|
|
5087
5087
|
"name": "",
|
|
5088
|
-
"description": "The text. Inline elements
|
|
5088
|
+
"description": "The text. Inline elements look as they do in nldd-rich-text: `<strong>` and `<b>` take the bold weight from the scale, `<em>` and `<i>` are italic, `<a>` is an underlined link, `<code>` sits on a tinted surface in the monospace font, and `<mark>` is highlighted. This holds for elements directly in the text; one inside another (a link inside `<strong>`) keeps only the outer one's styling. Components such as `nldd-tag` are left alone."
|
|
5089
5089
|
}
|
|
5090
5090
|
]
|
|
5091
5091
|
}
|
|
@@ -5128,6 +5128,36 @@
|
|
|
5128
5128
|
"attribute": "size",
|
|
5129
5129
|
"reflects": true
|
|
5130
5130
|
},
|
|
5131
|
+
{
|
|
5132
|
+
"kind": "field",
|
|
5133
|
+
"name": "smCustomSize",
|
|
5134
|
+
"type": {
|
|
5135
|
+
"text": "string"
|
|
5136
|
+
},
|
|
5137
|
+
"default": "''",
|
|
5138
|
+
"attribute": "sm-custom-size",
|
|
5139
|
+
"reflects": true
|
|
5140
|
+
},
|
|
5141
|
+
{
|
|
5142
|
+
"kind": "field",
|
|
5143
|
+
"name": "mdCustomSize",
|
|
5144
|
+
"type": {
|
|
5145
|
+
"text": "string"
|
|
5146
|
+
},
|
|
5147
|
+
"default": "''",
|
|
5148
|
+
"attribute": "md-custom-size",
|
|
5149
|
+
"reflects": true
|
|
5150
|
+
},
|
|
5151
|
+
{
|
|
5152
|
+
"kind": "field",
|
|
5153
|
+
"name": "lgCustomSize",
|
|
5154
|
+
"type": {
|
|
5155
|
+
"text": "string"
|
|
5156
|
+
},
|
|
5157
|
+
"default": "''",
|
|
5158
|
+
"attribute": "lg-custom-size",
|
|
5159
|
+
"reflects": true
|
|
5160
|
+
},
|
|
5131
5161
|
{
|
|
5132
5162
|
"kind": "field",
|
|
5133
5163
|
"name": "color",
|
|
@@ -5189,6 +5219,33 @@
|
|
|
5189
5219
|
"fieldName": "size",
|
|
5190
5220
|
"description": "Visual size of the title: 1–6 (default: 3)"
|
|
5191
5221
|
},
|
|
5222
|
+
{
|
|
5223
|
+
"name": "sm-custom-size",
|
|
5224
|
+
"type": {
|
|
5225
|
+
"text": "string"
|
|
5226
|
+
},
|
|
5227
|
+
"default": "''",
|
|
5228
|
+
"fieldName": "smCustomSize",
|
|
5229
|
+
"description": "A size of your own at sm, any CSS length (e.g. '56px', '3.5rem', 'clamp(3rem, 8vw, 7rem)'), for a statement larger than size 1. A var() works when the variable holds a length; one that is not defined leaves the title without its size, the floor included. For headings use `size`; if a design does not fit the scale, raise it as an issue. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so a title made large for a wide screen never breaks a narrow one. Never smaller than size 1 at the same breakpoint: a smaller value shows as size 1, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Takes the weight, typeface and line height of size 1. An invalid value falls back to `size`"
|
|
5230
|
+
},
|
|
5231
|
+
{
|
|
5232
|
+
"name": "md-custom-size",
|
|
5233
|
+
"type": {
|
|
5234
|
+
"text": "string"
|
|
5235
|
+
},
|
|
5236
|
+
"default": "''",
|
|
5237
|
+
"fieldName": "mdCustomSize",
|
|
5238
|
+
"description": "The same, at md"
|
|
5239
|
+
},
|
|
5240
|
+
{
|
|
5241
|
+
"name": "lg-custom-size",
|
|
5242
|
+
"type": {
|
|
5243
|
+
"text": "string"
|
|
5244
|
+
},
|
|
5245
|
+
"default": "''",
|
|
5246
|
+
"fieldName": "lgCustomSize",
|
|
5247
|
+
"description": "The same, at lg"
|
|
5248
|
+
},
|
|
5192
5249
|
{
|
|
5193
5250
|
"name": "color",
|
|
5194
5251
|
"type": {
|
|
@@ -5464,7 +5521,7 @@
|
|
|
5464
5521
|
},
|
|
5465
5522
|
"default": "false",
|
|
5466
5523
|
"fieldName": "disabled",
|
|
5467
|
-
"description": "Disabled state"
|
|
5524
|
+
"description": "Disabled state. Avoid it where you can; the design guidelines say why."
|
|
5468
5525
|
}
|
|
5469
5526
|
],
|
|
5470
5527
|
"superclass": {
|
|
@@ -10489,7 +10546,7 @@
|
|
|
10489
10546
|
"declarations": [
|
|
10490
10547
|
{
|
|
10491
10548
|
"kind": "class",
|
|
10492
|
-
"description": "A visual wrapper around a native `<select>` element. The consumer provides a native `<select>` as a slotted child — this way the browser retains full control over form submission, accessibility and keyboard navigation, including `<optgroup>`, `data-*` attributes and dynamic changes to options.",
|
|
10549
|
+
"description": "A visual wrapper around a native `<select>` element. The consumer provides a native `<select>` as a slotted child — this way the browser retains full control over form submission, accessibility and keyboard navigation, including `<optgroup>`, `data-*` attributes and dynamic changes to options. A dropdown hides its options, so it is the last resort for a choice from a fixed set. Show a handful of options with nldd-segmented-control, nldd-toggle-button-group or nldd-radio-button-group, and let the user type in nldd-combo-box when there are many, a list of countries included. The design guidelines explain the order.",
|
|
10493
10550
|
"name": "NLDDDropdown",
|
|
10494
10551
|
"members": [
|
|
10495
10552
|
{
|
|
@@ -23034,7 +23091,7 @@
|
|
|
23034
23091
|
},
|
|
23035
23092
|
"default": "''",
|
|
23036
23093
|
"fieldName": "target",
|
|
23037
|
-
"description": "Link target for href (e.g. '_blank'); adjusts rel automatically and adds an \"
|
|
23094
|
+
"description": "Link target for href (e.g. '_blank'); adjusts rel automatically and adds an \"opent in nieuw tabblad\" announcement for '_blank'. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden \"andere website\", in one sentence with the new-tab announcement when both apply; there is no way to switch it off."
|
|
23038
23095
|
},
|
|
23039
23096
|
{
|
|
23040
23097
|
"name": "rel",
|
|
@@ -23065,7 +23122,7 @@
|
|
|
23065
23122
|
"name": "withTranslations",
|
|
23066
23123
|
"module": "src/utilities/with-translations.ts"
|
|
23067
23124
|
},
|
|
23068
|
-
"description": "Override translation keys (e.g. the \"
|
|
23125
|
+
"description": "Override translation keys (e.g. the \"opent in nieuw tabblad\" announcement)"
|
|
23069
23126
|
}
|
|
23070
23127
|
],
|
|
23071
23128
|
"mixins": [
|
|
@@ -23121,7 +23178,7 @@
|
|
|
23121
23178
|
"declarations": [
|
|
23122
23179
|
{
|
|
23123
23180
|
"kind": "class",
|
|
23124
|
-
"description": "A container for displaying collections of items. Supports grid, stack, lanes and horizontal scroll layouts. Use it for a set of equal blocks, usually `nldd-card`s, instead of a CSS grid of your own: the collection sets the columns from `item-width` and the available width, and the gap per breakpoint. In grid and stack modes, items are paginated via a load-more button. In horizontal scroll, the prev/next controls and the edge fade appear only when the items overflow the container. With `lazy-load`, the next items are automatically loaded when the load-more button comes into view.",
|
|
23181
|
+
"description": "A container for displaying collections of items. Supports grid, stack, lanes and horizontal scroll layouts. Use it for a set of equal blocks, usually `nldd-card`s, instead of a CSS grid of your own: the collection sets the columns from `item-min-width` and the available width, and the gap per breakpoint. In grid and stack modes, items are paginated via a load-more button. In horizontal scroll, the prev/next controls and the edge fade appear only when the items overflow the container. Use horizontal scroll for items that together serve one purpose, such as the events of one agenda; it is not a carousel for unrelated highlights, which the design guidelines advise against. With `lazy-load`, the next items are automatically loaded when the load-more button comes into view.",
|
|
23125
23182
|
"name": "NLDDCollection",
|
|
23126
23183
|
"members": [
|
|
23127
23184
|
{
|
|
@@ -23136,11 +23193,20 @@
|
|
|
23136
23193
|
},
|
|
23137
23194
|
{
|
|
23138
23195
|
"kind": "field",
|
|
23139
|
-
"name": "
|
|
23196
|
+
"name": "itemMinWidth",
|
|
23140
23197
|
"type": {
|
|
23141
23198
|
"text": "string | undefined"
|
|
23142
23199
|
},
|
|
23143
|
-
"attribute": "item-width",
|
|
23200
|
+
"attribute": "item-min-width",
|
|
23201
|
+
"reflects": true
|
|
23202
|
+
},
|
|
23203
|
+
{
|
|
23204
|
+
"kind": "field",
|
|
23205
|
+
"name": "itemMaxWidth",
|
|
23206
|
+
"type": {
|
|
23207
|
+
"text": "string | undefined"
|
|
23208
|
+
},
|
|
23209
|
+
"attribute": "item-max-width",
|
|
23144
23210
|
"reflects": true
|
|
23145
23211
|
},
|
|
23146
23212
|
{
|
|
@@ -23226,6 +23292,9 @@
|
|
|
23226
23292
|
}
|
|
23227
23293
|
],
|
|
23228
23294
|
"attributes": [
|
|
23295
|
+
{
|
|
23296
|
+
"name": "item-width"
|
|
23297
|
+
},
|
|
23229
23298
|
{
|
|
23230
23299
|
"name": "layout",
|
|
23231
23300
|
"type": {
|
|
@@ -23236,12 +23305,20 @@
|
|
|
23236
23305
|
"description": "Layout mode: 'grid' | 'stack' | 'lanes' | 'horizontal-scroll' (default: 'grid')"
|
|
23237
23306
|
},
|
|
23238
23307
|
{
|
|
23239
|
-
"name": "item-width",
|
|
23308
|
+
"name": "item-min-width",
|
|
23240
23309
|
"type": {
|
|
23241
23310
|
"text": "string | undefined"
|
|
23242
23311
|
},
|
|
23243
|
-
"fieldName": "
|
|
23244
|
-
"description": "
|
|
23312
|
+
"fieldName": "itemMinWidth",
|
|
23313
|
+
"description": "Smallest width an item takes (e.g. '280px', '20rem'). In grid and lanes the minimum column width: columns are at least this wide and grow to fill the row. In horizontal scroll the flex-basis: items never shrink below it, and grow up to `item-max-width` when they fit. No effect in stack. Never forces horizontal overflow, the value is clamped to the container width."
|
|
23314
|
+
},
|
|
23315
|
+
{
|
|
23316
|
+
"name": "item-max-width",
|
|
23317
|
+
"type": {
|
|
23318
|
+
"text": "string | undefined"
|
|
23319
|
+
},
|
|
23320
|
+
"fieldName": "itemMaxWidth",
|
|
23321
|
+
"description": "Largest width an item takes in horizontal scroll (e.g. '400px', '25rem'), so one or two items that fit do not stretch across the container. Defaults to 480px; `item-max-width=\"100%\"` lets items fill the container, as they did before the default. Never narrower than `item-min-width`, which wins when it is wider, and never wider than the container. No effect in grid, lanes and stack: a grid leaves empty columns rather than stretching an item, and its right edge stays aligned with the content around it."
|
|
23245
23322
|
},
|
|
23246
23323
|
{
|
|
23247
23324
|
"name": "gap",
|
|
@@ -23822,7 +23899,7 @@
|
|
|
23822
23899
|
},
|
|
23823
23900
|
"default": "''",
|
|
23824
23901
|
"fieldName": "width",
|
|
23825
|
-
"description": "'full' (default, fills the parent) | 'fit-content' | a CSS length (e.g. '480px'). A container narrower than its parent stays where its parent puts it; use the parent's horizontal-alignment to move it."
|
|
23902
|
+
"description": "'full' (default, fills the parent) | 'fit-content' | a CSS length (e.g. '480px'). A container narrower than its parent stays where its parent puts it; use the parent's horizontal-alignment to move it. A 'fit-content' container takes its width from its content, so it cannot measure itself: its breakpoint padding, gap and column count follow the container around it."
|
|
23826
23903
|
},
|
|
23827
23904
|
{
|
|
23828
23905
|
"name": "min-width",
|
|
@@ -24891,13 +24968,104 @@
|
|
|
24891
24968
|
}
|
|
24892
24969
|
]
|
|
24893
24970
|
},
|
|
24971
|
+
{
|
|
24972
|
+
"kind": "javascript-module",
|
|
24973
|
+
"path": "src/components/layout/page-sections/hero/hero-corner.ts",
|
|
24974
|
+
"declarations": [
|
|
24975
|
+
{
|
|
24976
|
+
"kind": "function",
|
|
24977
|
+
"name": "applyCorner",
|
|
24978
|
+
"return": {
|
|
24979
|
+
"type": {
|
|
24980
|
+
"text": "void"
|
|
24981
|
+
}
|
|
24982
|
+
},
|
|
24983
|
+
"parameters": [
|
|
24984
|
+
{
|
|
24985
|
+
"name": "host",
|
|
24986
|
+
"type": {
|
|
24987
|
+
"text": "CornerHost"
|
|
24988
|
+
}
|
|
24989
|
+
}
|
|
24990
|
+
],
|
|
24991
|
+
"description": "Works out which corners are rounded and writes them onto the host as\n`data-media-corner` and `data-main-corner`, which the corner stylesheet\nkeys off. Without `corner`, or where a corner does not fit the shape\nlanguage, both are removed and the hero is rectangular."
|
|
24992
|
+
},
|
|
24993
|
+
{
|
|
24994
|
+
"kind": "function",
|
|
24995
|
+
"name": "limitCorner",
|
|
24996
|
+
"return": {
|
|
24997
|
+
"type": {
|
|
24998
|
+
"text": "void"
|
|
24999
|
+
}
|
|
25000
|
+
},
|
|
25001
|
+
"parameters": [
|
|
25002
|
+
{
|
|
25003
|
+
"name": "host",
|
|
25004
|
+
"type": {
|
|
25005
|
+
"text": "HTMLElement"
|
|
25006
|
+
}
|
|
25007
|
+
},
|
|
25008
|
+
{
|
|
25009
|
+
"name": "entries",
|
|
25010
|
+
"type": {
|
|
25011
|
+
"text": "readonly ResizeObserverEntry[]"
|
|
25012
|
+
}
|
|
25013
|
+
}
|
|
25014
|
+
],
|
|
25015
|
+
"description": "Caps the radius at a third of the shortest side of the area it rounds, so a\nlow hero (a single title without media, a small `media-height`) keeps a\ncorner rather than turning into a drop. Fed by a ResizeObserver on the media\nand the panel; the panel's own limit only counts without media, where it is\nthe whole hero. An area that is not shown measures zero and keeps its limit."
|
|
25016
|
+
},
|
|
25017
|
+
{
|
|
25018
|
+
"kind": "function",
|
|
25019
|
+
"name": "clearCornerLimits",
|
|
25020
|
+
"return": {
|
|
25021
|
+
"type": {
|
|
25022
|
+
"text": "void"
|
|
25023
|
+
}
|
|
25024
|
+
},
|
|
25025
|
+
"parameters": [
|
|
25026
|
+
{
|
|
25027
|
+
"name": "host",
|
|
25028
|
+
"type": {
|
|
25029
|
+
"text": "HTMLElement"
|
|
25030
|
+
}
|
|
25031
|
+
}
|
|
25032
|
+
]
|
|
25033
|
+
}
|
|
25034
|
+
],
|
|
25035
|
+
"exports": [
|
|
25036
|
+
{
|
|
25037
|
+
"kind": "js",
|
|
25038
|
+
"name": "applyCorner",
|
|
25039
|
+
"declaration": {
|
|
25040
|
+
"name": "applyCorner",
|
|
25041
|
+
"module": "src/components/layout/page-sections/hero/hero-corner.ts"
|
|
25042
|
+
}
|
|
25043
|
+
},
|
|
25044
|
+
{
|
|
25045
|
+
"kind": "js",
|
|
25046
|
+
"name": "limitCorner",
|
|
25047
|
+
"declaration": {
|
|
25048
|
+
"name": "limitCorner",
|
|
25049
|
+
"module": "src/components/layout/page-sections/hero/hero-corner.ts"
|
|
25050
|
+
}
|
|
25051
|
+
},
|
|
25052
|
+
{
|
|
25053
|
+
"kind": "js",
|
|
25054
|
+
"name": "clearCornerLimits",
|
|
25055
|
+
"declaration": {
|
|
25056
|
+
"name": "clearCornerLimits",
|
|
25057
|
+
"module": "src/components/layout/page-sections/hero/hero-corner.ts"
|
|
25058
|
+
}
|
|
25059
|
+
}
|
|
25060
|
+
]
|
|
25061
|
+
},
|
|
24894
25062
|
{
|
|
24895
25063
|
"kind": "javascript-module",
|
|
24896
25064
|
"path": "src/components/layout/page-sections/hero/hero.ts",
|
|
24897
25065
|
"declarations": [
|
|
24898
25066
|
{
|
|
24899
25067
|
"kind": "class",
|
|
24900
|
-
"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.
|
|
25068
|
+
"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. The areas are rectangular; `corner` rounds one corner of each. 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.",
|
|
24901
25069
|
"name": "NLDDHero",
|
|
24902
25070
|
"members": [
|
|
24903
25071
|
{
|
|
@@ -24911,6 +25079,17 @@
|
|
|
24911
25079
|
"attribute": "width",
|
|
24912
25080
|
"reflects": true
|
|
24913
25081
|
},
|
|
25082
|
+
{
|
|
25083
|
+
"kind": "field",
|
|
25084
|
+
"name": "corner",
|
|
25085
|
+
"type": {
|
|
25086
|
+
"text": "string | null"
|
|
25087
|
+
},
|
|
25088
|
+
"default": "null",
|
|
25089
|
+
"description": "Rounds one corner of the media area and one of the panel, or without\nmedia one corner of the hero. An empty value lets the hero choose the\ncorner from `main-position`.",
|
|
25090
|
+
"attribute": "corner",
|
|
25091
|
+
"reflects": true
|
|
25092
|
+
},
|
|
24914
25093
|
{
|
|
24915
25094
|
"kind": "field",
|
|
24916
25095
|
"name": "layout",
|
|
@@ -25227,6 +25406,15 @@
|
|
|
25227
25406
|
"description": "Body max-width; 'full' removes the bound (section API)",
|
|
25228
25407
|
"fieldName": "width"
|
|
25229
25408
|
},
|
|
25409
|
+
{
|
|
25410
|
+
"name": "corner",
|
|
25411
|
+
"type": {
|
|
25412
|
+
"text": "string | null"
|
|
25413
|
+
},
|
|
25414
|
+
"default": "null",
|
|
25415
|
+
"description": "Rounds one corner of the media area, in the shape language of the Rijkshuisstijl: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', or empty (or 'auto') to let the hero choose a corner the panel leaves free. With media it applies with `layout=\"contained\"` and the panel in a corner or along a side; with overlap or a centered panel the hero stays rectangular and says so in development. The panel stands against the edge of the image, so a `main-width` in percent (33.33%, 50%) is a share of the image, and gets a corner at half the radius, the one pointing into the image; a panel along a full side, a `main-width=\"full\"` strip and the panel on mobile stay square. On mobile a bottom corner moves to the top. Without media the panel is the whole hero: the corner applies in every layout and position, at half the radius, and the hero chooses top-right, or top-left for a panel on the right. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg, and is never more than a third of the shortest side of the area it rounds, so a low hero keeps a corner rather than a drop. Says so in development when the chosen corner sits under the panel, or with `width=\"full\"`",
|
|
25416
|
+
"fieldName": "corner"
|
|
25417
|
+
},
|
|
25230
25418
|
{
|
|
25231
25419
|
"name": "layout",
|
|
25232
25420
|
"type": {
|
|
@@ -26554,7 +26742,7 @@
|
|
|
26554
26742
|
"declarations": [
|
|
26555
26743
|
{
|
|
26556
26744
|
"kind": "class",
|
|
26557
|
-
"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.",
|
|
26745
|
+
"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. A link in the sheet to a place on the page beside it, such as a row of a table of contents, closes the sheet first and then scrolls to that place and moves focus there, with a temporary tab stop as a skip link does. Left to the browser, the page would scroll under a sheet that is still open, and on closing the browser gives focus back to the trigger without scrolling to it, so focus ends up out of sight. A link that opens elsewhere (another page, a new tab, a modifier key, a `download`) or points into the sidebar itself is left alone, as is a click the consumer has already handled with `preventDefault()`. The address gets the fragment through `replaceState`, without a new history entry and without a `hashchange` event or a `:target` match: a router that listens for those does not see the jump. 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.",
|
|
26558
26746
|
"name": "NLDDSidebarSection",
|
|
26559
26747
|
"members": [
|
|
26560
26748
|
{
|
|
@@ -29901,7 +30089,7 @@
|
|
|
29901
30089
|
},
|
|
29902
30090
|
"default": "false",
|
|
29903
30091
|
"fieldName": "noLightDismiss",
|
|
29904
|
-
"description": "A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a
|
|
30092
|
+
"description": "A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a process of several steps, a form with filled-in fields. Escape and the dismiss button keep working."
|
|
29905
30093
|
},
|
|
29906
30094
|
{
|
|
29907
30095
|
"name": "open",
|
|
@@ -30755,6 +30943,26 @@
|
|
|
30755
30943
|
"attribute": "size",
|
|
30756
30944
|
"reflects": true
|
|
30757
30945
|
},
|
|
30946
|
+
{
|
|
30947
|
+
"kind": "field",
|
|
30948
|
+
"name": "verticalAlignment",
|
|
30949
|
+
"type": {
|
|
30950
|
+
"text": "VerticalAlignment"
|
|
30951
|
+
},
|
|
30952
|
+
"default": "'center'",
|
|
30953
|
+
"attribute": "vertical-alignment",
|
|
30954
|
+
"reflects": true
|
|
30955
|
+
},
|
|
30956
|
+
{
|
|
30957
|
+
"kind": "field",
|
|
30958
|
+
"name": "markerOffset",
|
|
30959
|
+
"type": {
|
|
30960
|
+
"text": "string"
|
|
30961
|
+
},
|
|
30962
|
+
"default": "''",
|
|
30963
|
+
"attribute": "marker-offset",
|
|
30964
|
+
"reflects": true
|
|
30965
|
+
},
|
|
30758
30966
|
{
|
|
30759
30967
|
"kind": "field",
|
|
30760
30968
|
"name": "direction",
|
|
@@ -30869,6 +31077,24 @@
|
|
|
30869
31077
|
"description": "How wide the lane is and so how big the dot: `sm` (default, 16px) for steps without a number, `md` (24px) where a number or an icon has to fit. Every row in one list takes the same size, or the track jumps",
|
|
30870
31078
|
"fieldName": "size"
|
|
30871
31079
|
},
|
|
31080
|
+
{
|
|
31081
|
+
"name": "vertical-alignment",
|
|
31082
|
+
"type": {
|
|
31083
|
+
"text": "VerticalAlignment"
|
|
31084
|
+
},
|
|
31085
|
+
"default": "'center'",
|
|
31086
|
+
"fieldName": "verticalAlignment",
|
|
31087
|
+
"description": "Where the dot stands in the row (default 'center'). `top` puts it against the row's top padding and `bottom` against its bottom padding, as a whole dot would stand, so a `minor` dot lines up with a `major` one. To line it up with what stands beside it, such as the first line of a text cell or a title, use `marker-offset`. The track runs to the middle of the dot either way, so consecutive rows still connect"
|
|
31088
|
+
},
|
|
31089
|
+
{
|
|
31090
|
+
"name": "marker-offset",
|
|
31091
|
+
"type": {
|
|
31092
|
+
"text": "string"
|
|
31093
|
+
},
|
|
31094
|
+
"default": "''",
|
|
31095
|
+
"fieldName": "markerOffset",
|
|
31096
|
+
"description": "How far below the top of the row's content the middle of the dot stands, as a CSS length or a percentage of the content's height: `0%` is its top, `50%` its middle and `100%` its bottom. For a row whose first line is not as high as a whole dot, such as a large title beside it: half the height of that line puts the dot beside it. Measured after the row's padding, so it stays right when `size` changes that padding. Prefer `rem` over `px`, so the dot moves along when someone sets a larger font size in the browser. Wins over `vertical-alignment`; an invalid value falls back to it and says so in development"
|
|
31097
|
+
},
|
|
30872
31098
|
{
|
|
30873
31099
|
"name": "direction",
|
|
30874
31100
|
"type": {
|
|
@@ -31888,6 +32114,19 @@
|
|
|
31888
32114
|
}
|
|
31889
32115
|
],
|
|
31890
32116
|
"description": "Delegates focus to the inner control so consumers needn't reach into shadow DOM."
|
|
32117
|
+
},
|
|
32118
|
+
{
|
|
32119
|
+
"kind": "field",
|
|
32120
|
+
"name": "translations",
|
|
32121
|
+
"type": {
|
|
32122
|
+
"text": "Partial<T>"
|
|
32123
|
+
},
|
|
32124
|
+
"default": "{}",
|
|
32125
|
+
"attribute": "translations",
|
|
32126
|
+
"inheritedFrom": {
|
|
32127
|
+
"name": "withTranslations",
|
|
32128
|
+
"module": "src/utilities/with-translations.ts"
|
|
32129
|
+
}
|
|
31891
32130
|
}
|
|
31892
32131
|
],
|
|
31893
32132
|
"events": [
|
|
@@ -31918,7 +32157,7 @@
|
|
|
31918
32157
|
"type": {
|
|
31919
32158
|
"text": "string | undefined"
|
|
31920
32159
|
},
|
|
31921
|
-
"description": "Link target forwarded to the `<a>`; only applies with `href`",
|
|
32160
|
+
"description": "Link target forwarded to the `<a>`; only applies with `href`. With '_blank' a visually hidden \"opent in nieuw tabblad\" announcement is added. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden \"andere website\", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. With `accessible-label` the hint goes into the label.",
|
|
31922
32161
|
"name": "target",
|
|
31923
32162
|
"fieldName": "target"
|
|
31924
32163
|
},
|
|
@@ -32039,6 +32278,24 @@
|
|
|
32039
32278
|
},
|
|
32040
32279
|
"description": "The row's divider stops after this cell.",
|
|
32041
32280
|
"name": "divider-end"
|
|
32281
|
+
},
|
|
32282
|
+
{
|
|
32283
|
+
"name": "translations",
|
|
32284
|
+
"type": {
|
|
32285
|
+
"text": "Partial<T>"
|
|
32286
|
+
},
|
|
32287
|
+
"default": "{}",
|
|
32288
|
+
"fieldName": "translations",
|
|
32289
|
+
"inheritedFrom": {
|
|
32290
|
+
"name": "withTranslations",
|
|
32291
|
+
"module": "src/utilities/with-translations.ts"
|
|
32292
|
+
}
|
|
32293
|
+
}
|
|
32294
|
+
],
|
|
32295
|
+
"mixins": [
|
|
32296
|
+
{
|
|
32297
|
+
"name": "withTranslations",
|
|
32298
|
+
"module": "/src/utilities/with-translations.js"
|
|
32042
32299
|
}
|
|
32043
32300
|
],
|
|
32044
32301
|
"superclass": {
|
|
@@ -32074,7 +32331,7 @@
|
|
|
32074
32331
|
"declarations": [
|
|
32075
32332
|
{
|
|
32076
32333
|
"kind": "class",
|
|
32077
|
-
"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`).",
|
|
32334
|
+
"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), and an `href` to another website a visually hidden \"andere website\". An `nldd-icon-cell` with `external-link` is only the picture of that; the row says it either way. 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`).",
|
|
32078
32335
|
"name": "NLDDListItem",
|
|
32079
32336
|
"slots": [
|
|
32080
32337
|
{
|
|
@@ -32160,6 +32417,16 @@
|
|
|
32160
32417
|
"attribute": "radio",
|
|
32161
32418
|
"reflects": true
|
|
32162
32419
|
},
|
|
32420
|
+
{
|
|
32421
|
+
"kind": "field",
|
|
32422
|
+
"name": "accessibleLabel",
|
|
32423
|
+
"type": {
|
|
32424
|
+
"text": "string"
|
|
32425
|
+
},
|
|
32426
|
+
"default": "''",
|
|
32427
|
+
"description": "Accessible name of the row's action; replaces the content of the whole row.",
|
|
32428
|
+
"attribute": "accessible-label"
|
|
32429
|
+
},
|
|
32163
32430
|
{
|
|
32164
32431
|
"kind": "field",
|
|
32165
32432
|
"name": "reorderable",
|
|
@@ -32314,7 +32581,7 @@
|
|
|
32314
32581
|
"type": {
|
|
32315
32582
|
"text": "string | undefined"
|
|
32316
32583
|
},
|
|
32317
|
-
"description": "Link target forwarded to the `<a>` (e.g. '_blank'); only applies with `href`. With '_blank' a visually hidden \"opens in new tab\" announcement is added for assistive technology.",
|
|
32584
|
+
"description": "Link target forwarded to the `<a>` (e.g. '_blank'); only applies with `href`. With '_blank' a visually hidden \"opens in new tab\" announcement is added for assistive technology. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden \"andere website\", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.",
|
|
32318
32585
|
"name": "target",
|
|
32319
32586
|
"fieldName": "target"
|
|
32320
32587
|
},
|
|
@@ -32353,6 +32620,15 @@
|
|
|
32353
32620
|
"default": "false",
|
|
32354
32621
|
"fieldName": "radio"
|
|
32355
32622
|
},
|
|
32623
|
+
{
|
|
32624
|
+
"type": {
|
|
32625
|
+
"text": "string"
|
|
32626
|
+
},
|
|
32627
|
+
"description": "Accessible name of the row's action (its link, button, checkbox or radio), for a row whose text does not say enough on its own. It replaces the content of the whole row for assistive technology, the supporting text and a status included, so set it only when the row has no text of its own, or put everything that matters in it. The hint for another website or a new tab is added to it.",
|
|
32628
|
+
"name": "accessible-label",
|
|
32629
|
+
"default": "''",
|
|
32630
|
+
"fieldName": "accessibleLabel"
|
|
32631
|
+
},
|
|
32356
32632
|
{
|
|
32357
32633
|
"type": {
|
|
32358
32634
|
"text": "boolean"
|
|
@@ -32392,7 +32668,7 @@
|
|
|
32392
32668
|
"type": {
|
|
32393
32669
|
"text": "boolean"
|
|
32394
32670
|
},
|
|
32395
|
-
"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.",
|
|
32671
|
+
"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, a quiet fill on purpose: the page itself says where you are, in its title, heading and breadcrumb, so the fill is an extra that should not pull attention from the content, and an automated check that flags its contrast is expected. It 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.",
|
|
32396
32672
|
"name": "current",
|
|
32397
32673
|
"default": "false",
|
|
32398
32674
|
"fieldName": "current"
|
|
@@ -32633,7 +32909,7 @@
|
|
|
32633
32909
|
"type": {
|
|
32634
32910
|
"text": "string"
|
|
32635
32911
|
},
|
|
32636
|
-
"description": "Accessible name
|
|
32912
|
+
"description": "Accessible name: of the list in `type=\"list\"`, of the search field in `type=\"listbox\"`, and of the navigation landmark in `type=\"navigation\"`, so several navigation lists on a page can be told apart. Falls back to the i18n default. An `aria-label` or `aria-labelledby` set on the element itself wins.",
|
|
32637
32913
|
"name": "accessible-label",
|
|
32638
32914
|
"default": "''",
|
|
32639
32915
|
"fieldName": "accessibleLabel"
|
|
@@ -32869,7 +33145,11 @@
|
|
|
32869
33145
|
},
|
|
32870
33146
|
{
|
|
32871
33147
|
"name": "empty",
|
|
32872
|
-
"description": "Shown when
|
|
33148
|
+
"description": "Shown when the table has no body rows (the header is hidden too). Empty by default: what an empty table should say is the app's to write, so put an `nldd-inline-dialog` here."
|
|
33149
|
+
},
|
|
33150
|
+
{
|
|
33151
|
+
"name": "no-results",
|
|
33152
|
+
"description": "Shown when the table has body rows but every one of them is `[hidden]`, which is what consumer-driven filtering leaves behind. A different state from `empty` and a different sentence: say that nothing matches and how to get rows back. Falls back to `[slot=\"empty\"]` when not given."
|
|
32873
33153
|
}
|
|
32874
33154
|
]
|
|
32875
33155
|
},
|
|
@@ -33567,7 +33847,7 @@
|
|
|
33567
33847
|
},
|
|
33568
33848
|
"default": "undefined",
|
|
33569
33849
|
"fieldName": "target",
|
|
33570
|
-
"description": "Link target (e.g. '_blank'); adjusts rel automatically. With '_blank' the link adds a visually hidden \"
|
|
33850
|
+
"description": "Link target (e.g. '_blank'); adjusts rel automatically. With '_blank' the link adds a visually hidden \"opent in nieuw tabblad\" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden \"andere website\", in one sentence with the new-tab announcement when both apply; there is no way to switch it off."
|
|
33571
33851
|
},
|
|
33572
33852
|
{
|
|
33573
33853
|
"name": "rel",
|
|
@@ -33630,7 +33910,7 @@
|
|
|
33630
33910
|
},
|
|
33631
33911
|
"default": "false",
|
|
33632
33912
|
"fieldName": "disabled",
|
|
33633
|
-
"description": "Disabled state"
|
|
33913
|
+
"description": "Disabled state. Avoid it where you can; the design guidelines say why."
|
|
33634
33914
|
},
|
|
33635
33915
|
{
|
|
33636
33916
|
"name": "no-tab",
|
|
@@ -33652,7 +33932,7 @@
|
|
|
33652
33932
|
"name": "withTranslations",
|
|
33653
33933
|
"module": "src/utilities/with-translations.ts"
|
|
33654
33934
|
},
|
|
33655
|
-
"description": "Override translation keys (e.g. the \"
|
|
33935
|
+
"description": "Override translation keys (e.g. the \"opent in nieuw tabblad\" announcement); unset keys fall back to Dutch."
|
|
33656
33936
|
}
|
|
33657
33937
|
],
|
|
33658
33938
|
"mixins": [
|
|
@@ -33964,7 +34244,7 @@
|
|
|
33964
34244
|
},
|
|
33965
34245
|
"default": "false",
|
|
33966
34246
|
"fieldName": "disabled",
|
|
33967
|
-
"description": "Turn interaction off"
|
|
34247
|
+
"description": "Turn interaction off. Avoid it where you can; the design guidelines say why."
|
|
33968
34248
|
},
|
|
33969
34249
|
{
|
|
33970
34250
|
"name": "accessible-label",
|
|
@@ -34274,7 +34554,7 @@
|
|
|
34274
34554
|
},
|
|
34275
34555
|
"default": "false",
|
|
34276
34556
|
"fieldName": "disabled",
|
|
34277
|
-
"description": "Disabled state"
|
|
34557
|
+
"description": "Disabled state. Avoid it where you can; the design guidelines say why."
|
|
34278
34558
|
},
|
|
34279
34559
|
{
|
|
34280
34560
|
"name": "centered",
|
|
@@ -34735,7 +35015,7 @@
|
|
|
34735
35015
|
"text": "boolean"
|
|
34736
35016
|
},
|
|
34737
35017
|
"default": "false",
|
|
34738
|
-
"description": "Disables the whole bar: dims it, blocks pointer interaction, and takes the tabs out of the tab order",
|
|
35018
|
+
"description": "Disables the whole bar: dims it, blocks pointer interaction, and takes the tabs out of the tab order. Avoid it where you can; the design guidelines say why.",
|
|
34739
35019
|
"fieldName": "disabled"
|
|
34740
35020
|
},
|
|
34741
35021
|
{
|
|
@@ -36372,7 +36652,7 @@
|
|
|
36372
36652
|
"declarations": [
|
|
36373
36653
|
{
|
|
36374
36654
|
"kind": "class",
|
|
36375
|
-
"description": "A modal window with overlay backdrop, based on the native <dialog> element. Internally renders an <nldd-inline-dialog> for the visual structure. Open and close it with `open`, bound to your state together with the close event: the dialog clears `open` itself when the user closes it. show() and hide() do the same for code without a binding. Keep the dialog in the DOM rather than mounting it when it opens, or the animations are skipped.",
|
|
36655
|
+
"description": "A modal window with overlay backdrop, based on the native <dialog> element. Internally renders an <nldd-inline-dialog> for the visual structure. Use it only when there is no way back, and give it a real choice: a dialog with one button offers nothing to decide, so tell the user with an nldd-notification or an inline message instead. In a destructive dialog the safe way out comes first, as the primary button. Work that needs the page as context, such as editing, belongs in an nldd-sheet. The design guidelines say why. A dialog that opens with one action says so in development. Open and close it with `open`, bound to your state together with the close event: the dialog clears `open` itself when the user closes it. show() and hide() do the same for code without a binding. Keep the dialog in the DOM rather than mounting it when it opens, or the animations are skipped.",
|
|
36376
36656
|
"name": "NLDDModalDialog",
|
|
36377
36657
|
"members": [
|
|
36378
36658
|
{
|
|
@@ -36471,7 +36751,7 @@
|
|
|
36471
36751
|
},
|
|
36472
36752
|
{
|
|
36473
36753
|
"name": "close",
|
|
36474
|
-
"description": "When the dialog is fully closed. Does not bubble: overlays nest, and a listener on one dialog asking about that dialog should not also hear the form it opened.
|
|
36754
|
+
"description": "When the dialog is fully closed. Does not bubble: overlays nest, and a listener on one dialog asking about that dialog should not also hear the form it opened."
|
|
36475
36755
|
}
|
|
36476
36756
|
],
|
|
36477
36757
|
"attributes": [
|
|
@@ -37852,7 +38132,7 @@
|
|
|
37852
38132
|
"text": "boolean"
|
|
37853
38133
|
},
|
|
37854
38134
|
"default": "false",
|
|
37855
|
-
"description": "For flows without a URL per step (a
|
|
38135
|
+
"description": "For flows without a URL per step (a process that runs inside one window). Ignored\nonce `href` is set: one step is one action, and a link outranks a button\n-- the same rule as nldd-card and nldd-avatar.",
|
|
37856
38136
|
"attribute": "button",
|
|
37857
38137
|
"reflects": true
|
|
37858
38138
|
},
|
|
@@ -37906,7 +38186,7 @@
|
|
|
37906
38186
|
"type": {
|
|
37907
38187
|
"text": "boolean"
|
|
37908
38188
|
},
|
|
37909
|
-
"description": "For flows without a URL per step (a
|
|
38189
|
+
"description": "For flows without a URL per step (a process that runs inside one window). Ignored\nonce `href` is set: one step is one action, and a link outranks a button\n-- the same rule as nldd-card and nldd-avatar.",
|
|
37910
38190
|
"name": "button",
|
|
37911
38191
|
"default": "false",
|
|
37912
38192
|
"fieldName": "button"
|
|
@@ -38304,6 +38584,105 @@
|
|
|
38304
38584
|
}
|
|
38305
38585
|
]
|
|
38306
38586
|
},
|
|
38587
|
+
{
|
|
38588
|
+
"kind": "javascript-module",
|
|
38589
|
+
"path": "src/utilities/focus-target.ts",
|
|
38590
|
+
"declarations": [
|
|
38591
|
+
{
|
|
38592
|
+
"kind": "function",
|
|
38593
|
+
"name": "samePageHash",
|
|
38594
|
+
"return": {
|
|
38595
|
+
"type": {
|
|
38596
|
+
"text": "string"
|
|
38597
|
+
}
|
|
38598
|
+
},
|
|
38599
|
+
"parameters": [
|
|
38600
|
+
{
|
|
38601
|
+
"name": "href",
|
|
38602
|
+
"type": {
|
|
38603
|
+
"text": "string"
|
|
38604
|
+
}
|
|
38605
|
+
}
|
|
38606
|
+
],
|
|
38607
|
+
"description": "The fragment of an href that stays on this page, or an empty string. An\nabsolute URL to the page you are on counts too: a router or a CMS writes\n`/pagina#inhoud` as readily as `#inhoud`."
|
|
38608
|
+
},
|
|
38609
|
+
{
|
|
38610
|
+
"kind": "function",
|
|
38611
|
+
"name": "hashTarget",
|
|
38612
|
+
"return": {
|
|
38613
|
+
"type": {
|
|
38614
|
+
"text": "HTMLElement | null"
|
|
38615
|
+
}
|
|
38616
|
+
},
|
|
38617
|
+
"parameters": [
|
|
38618
|
+
{
|
|
38619
|
+
"name": "hash",
|
|
38620
|
+
"type": {
|
|
38621
|
+
"text": "string"
|
|
38622
|
+
}
|
|
38623
|
+
},
|
|
38624
|
+
{
|
|
38625
|
+
"name": "from",
|
|
38626
|
+
"type": {
|
|
38627
|
+
"text": "Node"
|
|
38628
|
+
}
|
|
38629
|
+
}
|
|
38630
|
+
],
|
|
38631
|
+
"description": "The element a fragment points at, looked up in the tree of `from` first."
|
|
38632
|
+
},
|
|
38633
|
+
{
|
|
38634
|
+
"kind": "function",
|
|
38635
|
+
"name": "focusTemporarily",
|
|
38636
|
+
"return": {
|
|
38637
|
+
"type": {
|
|
38638
|
+
"text": "(() => void) | null"
|
|
38639
|
+
}
|
|
38640
|
+
},
|
|
38641
|
+
"parameters": [
|
|
38642
|
+
{
|
|
38643
|
+
"name": "target",
|
|
38644
|
+
"type": {
|
|
38645
|
+
"text": "HTMLElement"
|
|
38646
|
+
}
|
|
38647
|
+
},
|
|
38648
|
+
{
|
|
38649
|
+
"name": "options",
|
|
38650
|
+
"optional": true,
|
|
38651
|
+
"type": {
|
|
38652
|
+
"text": "FocusOptions"
|
|
38653
|
+
}
|
|
38654
|
+
}
|
|
38655
|
+
],
|
|
38656
|
+
"description": "Focuses the target and leaves it as it was once focus moves on. Returns the\nfunction that puts it back (safe to call twice), or null when the target did\nnot take focus because it is hidden or inert; it is then already put back.\n\nThe tabindex is 0 and not -1, also when the target came with a -1 of its\nown. WebKit skips everything inside a shadow host that has a negative\ntabindex, slotted content included, so with -1 on an nldd-* section the\nnext Tab left the page instead of reaching the first link in it."
|
|
38657
|
+
}
|
|
38658
|
+
],
|
|
38659
|
+
"exports": [
|
|
38660
|
+
{
|
|
38661
|
+
"kind": "js",
|
|
38662
|
+
"name": "samePageHash",
|
|
38663
|
+
"declaration": {
|
|
38664
|
+
"name": "samePageHash",
|
|
38665
|
+
"module": "src/utilities/focus-target.ts"
|
|
38666
|
+
}
|
|
38667
|
+
},
|
|
38668
|
+
{
|
|
38669
|
+
"kind": "js",
|
|
38670
|
+
"name": "hashTarget",
|
|
38671
|
+
"declaration": {
|
|
38672
|
+
"name": "hashTarget",
|
|
38673
|
+
"module": "src/utilities/focus-target.ts"
|
|
38674
|
+
}
|
|
38675
|
+
},
|
|
38676
|
+
{
|
|
38677
|
+
"kind": "js",
|
|
38678
|
+
"name": "focusTemporarily",
|
|
38679
|
+
"declaration": {
|
|
38680
|
+
"name": "focusTemporarily",
|
|
38681
|
+
"module": "src/utilities/focus-target.ts"
|
|
38682
|
+
}
|
|
38683
|
+
}
|
|
38684
|
+
]
|
|
38685
|
+
},
|
|
38307
38686
|
{
|
|
38308
38687
|
"kind": "javascript-module",
|
|
38309
38688
|
"path": "src/utilities/form-associated-mixin.ts",
|
|
@@ -38587,6 +38966,71 @@
|
|
|
38587
38966
|
}
|
|
38588
38967
|
]
|
|
38589
38968
|
},
|
|
38969
|
+
{
|
|
38970
|
+
"kind": "javascript-module",
|
|
38971
|
+
"path": "src/utilities/link-hint.ts",
|
|
38972
|
+
"declarations": [
|
|
38973
|
+
{
|
|
38974
|
+
"kind": "function",
|
|
38975
|
+
"name": "linkHintKey",
|
|
38976
|
+
"return": {
|
|
38977
|
+
"type": {
|
|
38978
|
+
"text": "LinkHintKey | null"
|
|
38979
|
+
}
|
|
38980
|
+
},
|
|
38981
|
+
"parameters": [
|
|
38982
|
+
{
|
|
38983
|
+
"name": "href",
|
|
38984
|
+
"type": {
|
|
38985
|
+
"text": "string | null | undefined"
|
|
38986
|
+
}
|
|
38987
|
+
},
|
|
38988
|
+
{
|
|
38989
|
+
"name": "target",
|
|
38990
|
+
"type": {
|
|
38991
|
+
"text": "string | null | undefined"
|
|
38992
|
+
}
|
|
38993
|
+
}
|
|
38994
|
+
]
|
|
38995
|
+
},
|
|
38996
|
+
{
|
|
38997
|
+
"kind": "function",
|
|
38998
|
+
"name": "isExternalHref",
|
|
38999
|
+
"return": {
|
|
39000
|
+
"type": {
|
|
39001
|
+
"text": "boolean"
|
|
39002
|
+
}
|
|
39003
|
+
},
|
|
39004
|
+
"parameters": [
|
|
39005
|
+
{
|
|
39006
|
+
"name": "href",
|
|
39007
|
+
"type": {
|
|
39008
|
+
"text": "string"
|
|
39009
|
+
}
|
|
39010
|
+
}
|
|
39011
|
+
],
|
|
39012
|
+
"description": "Whether `href` points at another origin than the page it is on."
|
|
39013
|
+
}
|
|
39014
|
+
],
|
|
39015
|
+
"exports": [
|
|
39016
|
+
{
|
|
39017
|
+
"kind": "js",
|
|
39018
|
+
"name": "linkHintKey",
|
|
39019
|
+
"declaration": {
|
|
39020
|
+
"name": "linkHintKey",
|
|
39021
|
+
"module": "src/utilities/link-hint.ts"
|
|
39022
|
+
}
|
|
39023
|
+
},
|
|
39024
|
+
{
|
|
39025
|
+
"kind": "js",
|
|
39026
|
+
"name": "isExternalHref",
|
|
39027
|
+
"declaration": {
|
|
39028
|
+
"name": "isExternalHref",
|
|
39029
|
+
"module": "src/utilities/link-hint.ts"
|
|
39030
|
+
}
|
|
39031
|
+
}
|
|
39032
|
+
]
|
|
39033
|
+
},
|
|
38590
39034
|
{
|
|
38591
39035
|
"kind": "javascript-module",
|
|
38592
39036
|
"path": "src/utilities/link-rel.ts",
|