@nldd/design-system 0.8.100 → 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.
Files changed (154) hide show
  1. package/custom-elements.json +325 -16
  2. package/dist/components/actions/button/button.d.ts +5 -3
  3. package/dist/components/actions/button/button.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.i18n.d.ts +3 -1
  5. package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
  6. package/dist/components/actions/button/button.i18n.js +3 -1
  7. package/dist/components/actions/button/button.i18n.js.map +1 -1
  8. package/dist/components/actions/button/button.js +1 -1
  9. package/dist/components/actions/button/button.styles.js +2 -2
  10. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  11. package/dist/components/actions/button/button.template.js +9 -10
  12. package/dist/components/actions/button/button.template.js.map +1 -1
  13. package/dist/components/actions/icon-button/icon-button.d.ts +5 -3
  14. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  15. package/dist/components/actions/icon-button/icon-button.i18n.d.ts +3 -1
  16. package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
  17. package/dist/components/actions/icon-button/icon-button.i18n.js +3 -1
  18. package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
  19. package/dist/components/actions/icon-button/icon-button.js +1 -1
  20. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  21. package/dist/components/actions/icon-button/icon-button.template.js +7 -7
  22. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  23. package/dist/components/actions/toolbar/toolbar.d.ts +1 -1
  24. package/dist/components/actions/toolbar/toolbar.i18n.d.ts +3 -1
  25. package/dist/components/actions/toolbar/toolbar.i18n.d.ts.map +1 -1
  26. package/dist/components/actions/toolbar/toolbar.i18n.js +3 -1
  27. package/dist/components/actions/toolbar/toolbar.i18n.js.map +1 -1
  28. package/dist/components/actions/toolbar/toolbar.js +1 -1
  29. package/dist/components/actions/toolbar/toolbar.styles.js +1 -1
  30. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  31. package/dist/components/actions/toolbar/toolbar.template.js +4 -2
  32. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  33. package/dist/components/components.js +357 -122
  34. package/dist/components/content/avatar/avatar.d.ts +5 -3
  35. package/dist/components/content/avatar/avatar.d.ts.map +1 -1
  36. package/dist/components/content/avatar/avatar.i18n.d.ts +3 -1
  37. package/dist/components/content/avatar/avatar.i18n.d.ts.map +1 -1
  38. package/dist/components/content/avatar/avatar.i18n.js +3 -1
  39. package/dist/components/content/avatar/avatar.i18n.js.map +1 -1
  40. package/dist/components/content/avatar/avatar.js +1 -1
  41. package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
  42. package/dist/components/content/avatar/avatar.template.js +6 -6
  43. package/dist/components/content/avatar/avatar.template.js.map +1 -1
  44. package/dist/components/{icon-button-BtU8DX64.js → icon-button-BVhiOwX9.js} +10 -5
  45. package/dist/components/layout/card/card.d.ts +6 -4
  46. package/dist/components/layout/card/card.d.ts.map +1 -1
  47. package/dist/components/layout/card/card.i18n.d.ts +3 -1
  48. package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
  49. package/dist/components/layout/card/card.i18n.js +3 -1
  50. package/dist/components/layout/card/card.i18n.js.map +1 -1
  51. package/dist/components/layout/card/card.js +2 -2
  52. package/dist/components/layout/card/card.template.d.ts.map +1 -1
  53. package/dist/components/layout/card/card.template.js +6 -6
  54. package/dist/components/layout/card/card.template.js.map +1 -1
  55. package/dist/components/layout/page-sections/hero/hero-corner.d.ts +9 -0
  56. package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -1
  57. package/dist/components/layout/page-sections/hero/hero-corner.js +29 -1
  58. package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -1
  59. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -1
  60. package/dist/components/layout/page-sections/hero/hero-corner.styles.js +20 -13
  61. package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
  62. package/dist/components/layout/page-sections/hero/hero.d.ts +7 -3
  63. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  64. package/dist/components/layout/page-sections/hero/hero.js +31 -4
  65. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  66. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +16 -0
  67. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
  68. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +61 -1
  69. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  70. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +5 -0
  71. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
  72. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +25 -0
  73. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
  74. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
  75. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +28 -7
  76. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
  77. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts.map +1 -1
  78. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js +8 -4
  79. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js.map +1 -1
  80. package/dist/components/lists-and-tables/list/list.d.ts +5 -2
  81. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  82. package/dist/components/lists-and-tables/list/list.js +9 -4
  83. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  84. package/dist/components/lists-and-tables/list-item/list-item.d.ts +12 -5
  85. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  86. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts +3 -1
  87. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts.map +1 -1
  88. package/dist/components/lists-and-tables/list-item/list-item.i18n.js +3 -1
  89. package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
  90. package/dist/components/lists-and-tables/list-item/list-item.js +15 -7
  91. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  92. package/dist/components/lists-and-tables/list-item/list-item.styles.js +1 -1
  93. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
  94. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  95. package/dist/components/lists-and-tables/list-item/list-item.template.js +9 -2
  96. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  97. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -2
  98. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  99. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts +7 -0
  100. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -0
  101. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +6 -0
  102. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -0
  103. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +7 -3
  104. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  105. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
  106. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +12 -0
  107. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
  108. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
  109. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
  110. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +6 -3
  111. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
  112. package/dist/components/navigation/link/link.d.ts +6 -4
  113. package/dist/components/navigation/link/link.d.ts.map +1 -1
  114. package/dist/components/navigation/link/link.i18n.d.ts +3 -1
  115. package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
  116. package/dist/components/navigation/link/link.i18n.js +3 -1
  117. package/dist/components/navigation/link/link.i18n.js.map +1 -1
  118. package/dist/components/navigation/link/link.js +2 -2
  119. package/dist/components/navigation/link/link.styles.js +2 -2
  120. package/dist/components/navigation/link/link.template.d.ts.map +1 -1
  121. package/dist/components/navigation/link/link.template.js +7 -8
  122. package/dist/components/navigation/link/link.template.js.map +1 -1
  123. package/dist/components/navigation/skip-link/skip-link.d.ts +1 -14
  124. package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
  125. package/dist/components/navigation/skip-link/skip-link.js +7 -55
  126. package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
  127. package/dist/components/{with-translations-C8_0-9y8.js → with-translations-C6QfP6_S.js} +24 -1
  128. package/dist/nldd.min.js +753 -707
  129. package/dist/translations/en-US.d.ts.map +1 -1
  130. package/dist/translations/en-US.js +24 -7
  131. package/dist/translations/en-US.js.map +1 -1
  132. package/dist/translations/fy.d.ts.map +1 -1
  133. package/dist/translations/fy.js +24 -7
  134. package/dist/translations/fy.js.map +1 -1
  135. package/dist/translations/nl.generated.d.ts +24 -7
  136. package/dist/translations/nl.generated.d.ts.map +1 -1
  137. package/dist/translations/nl.generated.js +2 -0
  138. package/dist/translations/nl.generated.js.map +1 -1
  139. package/dist/translations/pap-AW.d.ts.map +1 -1
  140. package/dist/translations/pap-AW.js +24 -7
  141. package/dist/translations/pap-AW.js.map +1 -1
  142. package/dist/translations/pap-CW.d.ts.map +1 -1
  143. package/dist/translations/pap-CW.js +24 -7
  144. package/dist/translations/pap-CW.js.map +1 -1
  145. package/dist/types/vue.d.ts +29 -16
  146. package/dist/utilities/focus-target.d.ts +23 -0
  147. package/dist/utilities/focus-target.d.ts.map +1 -0
  148. package/dist/utilities/focus-target.js +70 -0
  149. package/dist/utilities/focus-target.js.map +1 -0
  150. package/dist/utilities/link-hint.d.ts +18 -0
  151. package/dist/utilities/link-hint.d.ts.map +1 -0
  152. package/dist/utilities/link-hint.js +29 -0
  153. package/dist/utilities/link-hint.js.map +1 -0
  154. package/package.json +2 -1
@@ -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
  {
@@ -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
  {
@@ -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",
@@ -23091,7 +23091,7 @@
23091
23091
  },
23092
23092
  "default": "''",
23093
23093
  "fieldName": "target",
23094
- "description": "Link target for href (e.g. '_blank'); adjusts rel automatically and adds an \"Opent in nieuw tabblad\" announcement for '_blank'"
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."
23095
23095
  },
23096
23096
  {
23097
23097
  "name": "rel",
@@ -23122,7 +23122,7 @@
23122
23122
  "name": "withTranslations",
23123
23123
  "module": "src/utilities/with-translations.ts"
23124
23124
  },
23125
- "description": "Override translation keys (e.g. the \"Opent in nieuw tabblad\" announcement)"
23125
+ "description": "Override translation keys (e.g. the \"opent in nieuw tabblad\" announcement)"
23126
23126
  }
23127
23127
  ],
23128
23128
  "mixins": [
@@ -24989,6 +24989,47 @@
24989
24989
  }
24990
24990
  ],
24991
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
+ ]
24992
25033
  }
24993
25034
  ],
24994
25035
  "exports": [
@@ -24999,6 +25040,22 @@
24999
25040
  "name": "applyCorner",
25000
25041
  "module": "src/components/layout/page-sections/hero/hero-corner.ts"
25001
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
+ }
25002
25059
  }
25003
25060
  ]
25004
25061
  },
@@ -25029,7 +25086,7 @@
25029
25086
  "text": "string | null"
25030
25087
  },
25031
25088
  "default": "null",
25032
- "description": "Rounds one corner of the media area and one of the panel. An empty\nvalue lets the hero choose the media corner from `main-position`.",
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`.",
25033
25090
  "attribute": "corner",
25034
25091
  "reflects": true
25035
25092
  },
@@ -25355,7 +25412,7 @@
25355
25412
  "text": "string | null"
25356
25413
  },
25357
25414
  "default": "null",
25358
- "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. 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. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg. Says so in development when the chosen corner sits under the panel, or with `width=\"full\"`",
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\"`",
25359
25416
  "fieldName": "corner"
25360
25417
  },
25361
25418
  {
@@ -26685,7 +26742,7 @@
26685
26742
  "declarations": [
26686
26743
  {
26687
26744
  "kind": "class",
26688
- "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.",
26689
26746
  "name": "NLDDSidebarSection",
26690
26747
  "members": [
26691
26748
  {
@@ -30886,6 +30943,26 @@
30886
30943
  "attribute": "size",
30887
30944
  "reflects": true
30888
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
+ },
30889
30966
  {
30890
30967
  "kind": "field",
30891
30968
  "name": "direction",
@@ -31000,6 +31077,24 @@
31000
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",
31001
31078
  "fieldName": "size"
31002
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
+ },
31003
31098
  {
31004
31099
  "name": "direction",
31005
31100
  "type": {
@@ -32019,6 +32114,19 @@
32019
32114
  }
32020
32115
  ],
32021
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
+ }
32022
32130
  }
32023
32131
  ],
32024
32132
  "events": [
@@ -32049,7 +32157,7 @@
32049
32157
  "type": {
32050
32158
  "text": "string | undefined"
32051
32159
  },
32052
- "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.",
32053
32161
  "name": "target",
32054
32162
  "fieldName": "target"
32055
32163
  },
@@ -32170,6 +32278,24 @@
32170
32278
  },
32171
32279
  "description": "The row's divider stops after this cell.",
32172
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"
32173
32299
  }
32174
32300
  ],
32175
32301
  "superclass": {
@@ -32205,7 +32331,7 @@
32205
32331
  "declarations": [
32206
32332
  {
32207
32333
  "kind": "class",
32208
- "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`).",
32209
32335
  "name": "NLDDListItem",
32210
32336
  "slots": [
32211
32337
  {
@@ -32291,6 +32417,16 @@
32291
32417
  "attribute": "radio",
32292
32418
  "reflects": true
32293
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
+ },
32294
32430
  {
32295
32431
  "kind": "field",
32296
32432
  "name": "reorderable",
@@ -32445,7 +32581,7 @@
32445
32581
  "type": {
32446
32582
  "text": "string | undefined"
32447
32583
  },
32448
- "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.",
32449
32585
  "name": "target",
32450
32586
  "fieldName": "target"
32451
32587
  },
@@ -32484,6 +32620,15 @@
32484
32620
  "default": "false",
32485
32621
  "fieldName": "radio"
32486
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
+ },
32487
32632
  {
32488
32633
  "type": {
32489
32634
  "text": "boolean"
@@ -32523,7 +32668,7 @@
32523
32668
  "type": {
32524
32669
  "text": "boolean"
32525
32670
  },
32526
- "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.",
32527
32672
  "name": "current",
32528
32673
  "default": "false",
32529
32674
  "fieldName": "current"
@@ -32764,7 +32909,7 @@
32764
32909
  "type": {
32765
32910
  "text": "string"
32766
32911
  },
32767
- "description": "Accessible name, forwarded to the list in `type=\"list\"` and to the search field in `type=\"listbox\"`. For `type=\"navigation\"` set `aria-label` / `aria-labelledby` on the element itself. Falls back to the i18n default.",
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.",
32768
32913
  "name": "accessible-label",
32769
32914
  "default": "''",
32770
32915
  "fieldName": "accessibleLabel"
@@ -33702,7 +33847,7 @@
33702
33847
  },
33703
33848
  "default": "undefined",
33704
33849
  "fieldName": "target",
33705
- "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)."
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."
33706
33851
  },
33707
33852
  {
33708
33853
  "name": "rel",
@@ -33787,7 +33932,7 @@
33787
33932
  "name": "withTranslations",
33788
33933
  "module": "src/utilities/with-translations.ts"
33789
33934
  },
33790
- "description": "Override translation keys (e.g. the \"Opent in nieuw tabblad\" announcement); unset keys fall back to Dutch."
33935
+ "description": "Override translation keys (e.g. the \"opent in nieuw tabblad\" announcement); unset keys fall back to Dutch."
33791
33936
  }
33792
33937
  ],
33793
33938
  "mixins": [
@@ -38439,6 +38584,105 @@
38439
38584
  }
38440
38585
  ]
38441
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
+ },
38442
38686
  {
38443
38687
  "kind": "javascript-module",
38444
38688
  "path": "src/utilities/form-associated-mixin.ts",
@@ -38722,6 +38966,71 @@
38722
38966
  }
38723
38967
  ]
38724
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
+ },
38725
39034
  {
38726
39035
  "kind": "javascript-module",
38727
39036
  "path": "src/utilities/link-rel.ts",
@@ -25,7 +25,7 @@
25
25
  * @attr {string} end-icon - Icon name for the end icon (after text)
26
26
  * @attr {string} accessible-label - Accessible label for the button, overrides text for screen readers
27
27
  * @attr {string} href - When set, renders an <a> element instead of <button>
28
- * @attr {string} target - 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).
28
+ * @attr {string} target - 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.
29
29
  * @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
30
30
  * @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
31
31
  *
@@ -46,9 +46,11 @@ type ButtonType = 'button' | 'submit' | 'reset';
46
46
  type PopupType = 'menu' | 'listbox' | 'dialog' | 'tree' | 'grid';
47
47
  declare const NLDDButton_base: (abstract new (...args: any[]) => LitElement & {
48
48
  translations: Partial<{
49
- 'components.button.opens-in-new-tab-label': string;
49
+ 'components.button.link-hint-new-tab-lowercase-label': string;
50
+ 'components.button.link-hint-external-lowercase-label': string;
51
+ 'components.button.link-hint-external-new-tab-lowercase-label': string;
50
52
  }>;
51
- _t(key: "components.button.opens-in-new-tab-label", vars?: Record<string, string | number>): string;
53
+ _t(key: "components.button.link-hint-new-tab-lowercase-label" | "components.button.link-hint-external-lowercase-label" | "components.button.link-hint-external-new-tab-lowercase-label", vars?: Record<string, string | number>): string;
52
54
  }) & typeof LitElement & (abstract new (...args: any[]) => import("../../../utilities/described-by-mixin.js").DescribedElement);
53
55
  export declare class NLDDButton extends NLDDButton_base {
54
56
  static styles: import("lit").CSSResult;
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,EAAE,UAAU,EAAE,M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,UAAS;IAEjB,mBAAmB;IAEnB,IAAI,SAAM;IAEV,mMAAmM;IAEnM,cAAc,SAAM;IAGpB,UAAU,UAAS;IAEnB,mHAAmH;IAEnH,iBAAiB,UAAS;IAE1B,6FAA6F;IAE7F,SAAS,SAAM;IAEf,wFAAwF;IAExF,OAAO,SAAM;IAEb,0GAA0G;IAE1G,eAAe,SAAM;IAErB,4DAA4D;IAE5D,IAAI,EAAE,MAAM,GAAG,SAAS,CAAa;IAErC,+DAA+D;IAE/D,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IAEvC;;;OAGG;IAEH,GAAG,EAAE,MAAM,GAAG,SAAS,CAAa;IAEpC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAAuB;IAE5C;;6BAEyB;IACzB,MAAM,wBAAmC;IAEhC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAmC/D,OAAO,CAAC,YAAY;IAgCpB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,UAAU;IAuBlB;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAI5C,6DAA6D;IACpD,eAAe,IAAI,OAAO,GAAG,IAAI;IAIjC,MAAM;CAKf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,aAAa,EAAE,UAAU,CAAC;KAC1B;CACD"}
@@ -1,5 +1,7 @@
1
1
  export declare const nlddButtonTranslations: {
2
- 'components.button.opens-in-new-tab-label': string;
2
+ 'components.button.link-hint-new-tab-lowercase-label': string;
3
+ 'components.button.link-hint-external-lowercase-label': string;
4
+ 'components.button.link-hint-external-new-tab-lowercase-label': string;
3
5
  };
4
6
  export type NLDDButtonTranslations = typeof nlddButtonTranslations;
5
7
  //# sourceMappingURL=button.i18n.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;CAElC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC"}
1
+ {"version":3,"file":"button.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;;CAIlC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export const nlddButtonTranslations = {
2
- 'components.button.opens-in-new-tab-label': 'Opent in nieuw tabblad',
2
+ 'components.button.link-hint-new-tab-lowercase-label': 'opent in nieuw tabblad',
3
+ 'components.button.link-hint-external-lowercase-label': 'andere website',
4
+ 'components.button.link-hint-external-new-tab-lowercase-label': 'andere website, opent in nieuw tabblad',
3
5
  };
4
6
  //# sourceMappingURL=button.i18n.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.i18n.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,0CAA0C,EAAE,wBAAwB;CACpE,CAAC"}
1
+ {"version":3,"file":"button.i18n.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,qDAAqD,EAAE,wBAAwB;IAC/E,sDAAsD,EAAE,gBAAgB;IACxE,8DAA8D,EAAE,wCAAwC;CACxG,CAAC"}
@@ -25,7 +25,7 @@
25
25
  * @attr {string} end-icon - Icon name for the end icon (after text)
26
26
  * @attr {string} accessible-label - Accessible label for the button, overrides text for screen readers
27
27
  * @attr {string} href - When set, renders an <a> element instead of <button>
28
- * @attr {string} target - 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).
28
+ * @attr {string} target - 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.
29
29
  * @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
30
30
  * @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
31
31
  *
@@ -526,9 +526,9 @@ export const buttonStyles = css `
526
526
  color: var(--_button-is-active-secondary-content-color);
527
527
  }
528
528
 
529
- /* Visually-hidden "opens in new tab" announcement (href + target="_blank");
529
+ /* Visually-hidden link hint (another website, a new tab);
530
530
  part of the link's accessible name but never shown. Standard recipe. */
531
- .button__opens-in-new-tab-hint {
531
+ .button__link-hint {
532
532
  position: absolute;
533
533
  margin: -1px;
534
534
  border: 0;