@nldd/design-system 0.8.96 → 0.8.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/README.md +14 -10
  2. package/custom-elements.json +528 -107
  3. package/dist/components/components.js +894 -267
  4. package/dist/components/content/code-viewer/code-viewer.d.ts +4 -1
  5. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  6. package/dist/components/content/code-viewer/code-viewer.js +43 -5
  7. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  8. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  9. package/dist/components/content/code-viewer/code-viewer.styles.js +11 -0
  10. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  11. package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
  12. package/dist/components/content/code-viewer/code-viewer.template.js +1 -0
  13. package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
  14. package/dist/components/content/icon/icon-aliases.js +1 -1
  15. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  16. package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
  17. package/dist/components/content/icon/icon-gallery-status.js +15 -4
  18. package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
  19. package/dist/components/content/icon/icon-registry.js +12 -12
  20. package/dist/components/content/icon/icon-registry.js.map +1 -1
  21. package/dist/components/content/image/image.d.ts +19 -3
  22. package/dist/components/content/image/image.d.ts.map +1 -1
  23. package/dist/components/content/image/image.js +25 -4
  24. package/dist/components/content/image/image.js.map +1 -1
  25. package/dist/components/content/image/image.styles.d.ts.map +1 -1
  26. package/dist/components/content/image/image.styles.js +36 -0
  27. package/dist/components/content/image/image.styles.js.map +1 -1
  28. package/dist/components/content/image/image.template.d.ts.map +1 -1
  29. package/dist/components/content/image/image.template.js +13 -1
  30. package/dist/components/content/image/image.template.js.map +1 -1
  31. package/dist/components/content/rich-text/rich-text.d.ts +25 -12
  32. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  33. package/dist/components/content/rich-text/rich-text.js +25 -12
  34. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  35. package/dist/components/content/tooltip/tooltip.d.ts +7 -0
  36. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  37. package/dist/components/content/tooltip/tooltip.js +29 -2
  38. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  39. package/dist/components/{dist-CH9m014O.js → dist-B2QcygzG.js} +1 -1
  40. package/dist/components/{dist-DMHTTJRJ.js → dist-BB5mlo7D.js} +2 -2
  41. package/dist/components/{dist-C3uWRipu.js → dist-Bo5Jeyfn.js} +1 -1
  42. package/dist/components/{dist-CpW8MF-L.js → dist-Bud_7w5g.js} +232 -214
  43. package/dist/components/{dist-CvL6_ezZ.js → dist-CA0yDFIt.js} +2 -2
  44. package/dist/components/{dist-DV6Mp5N1.js → dist-CaxHkqR2.js} +3 -3
  45. package/dist/components/{dist-BWRYv3Mp.js → dist-Ch3gNAuT.js} +1 -1
  46. package/dist/components/{dist-PlhQXXtE.js → dist-DbNhCpS5.js} +1 -1
  47. package/dist/components/{dist-DTOshgo1.js → dist-DkqAbJH8.js} +1 -1
  48. package/dist/components/{dist-BWEAw34D.js → dist-DnZmcpbQ.js} +1 -1
  49. package/dist/components/{dist-Bi4EHsFY.js → dist-iC2RTM0V.js} +2 -2
  50. package/dist/components/forms/validation-list/validation-list.d.ts +19 -9
  51. package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
  52. package/dist/components/forms/validation-list/validation-list.js +38 -12
  53. package/dist/components/forms/validation-list/validation-list.js.map +1 -1
  54. package/dist/components/{icon-DQHT2C7z.js → icon-D_ZGezHx.js} +13 -13
  55. package/dist/components/{icon-button-mevRsl4C.js → icon-button-CJIikwyu.js} +16 -3
  56. package/dist/components/index.d.ts +1 -1
  57. package/dist/components/index.d.ts.map +1 -1
  58. package/dist/components/index.js +1 -1
  59. package/dist/components/index.js.map +1 -1
  60. package/dist/components/inputs/segmented-control/segmented-control.d.ts +1 -1
  61. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  62. package/dist/components/inputs/segmented-control/segmented-control.js +1 -4
  63. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  64. package/dist/components/inputs/toggle-button/toggle-button.d.ts +1 -1
  65. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  66. package/dist/components/inputs/toggle-button/toggle-button.js +1 -4
  67. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  68. package/dist/components/layout/box/box.d.ts +1 -1
  69. package/dist/components/layout/box/box.js +1 -1
  70. package/dist/components/layout/container/container.d.ts.map +1 -1
  71. package/dist/components/layout/container/container.js +2 -1
  72. package/dist/components/layout/container/container.js.map +1 -1
  73. package/dist/components/layout/page/page.d.ts +9 -3
  74. package/dist/components/layout/page/page.d.ts.map +1 -1
  75. package/dist/components/layout/page/page.js +36 -13
  76. package/dist/components/layout/page/page.js.map +1 -1
  77. package/dist/components/layout/page/page.styles.js +1 -1
  78. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +2 -0
  79. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
  80. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +3 -1
  81. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
  82. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.d.ts.map +1 -1
  83. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +5 -0
  84. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
  85. package/dist/components/layout/page-sections/hero/hero.d.ts +57 -11
  86. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  87. package/dist/components/layout/page-sections/hero/hero.js +158 -15
  88. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  89. package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
  90. package/dist/components/layout/page-sections/hero/hero.styles.js +95 -41
  91. package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
  92. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +4 -0
  93. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
  94. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +8 -1
  95. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
  96. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
  97. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +13 -0
  98. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
  99. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +4 -0
  100. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
  101. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +8 -1
  102. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
  103. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
  104. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +17 -0
  105. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
  106. package/dist/components/layout/page-sections/page-section-controls.d.ts +11 -1
  107. package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -1
  108. package/dist/components/layout/page-sections/page-section-controls.js +11 -2
  109. package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
  110. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +5 -1
  111. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
  112. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +6 -2
  113. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  114. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -1
  115. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +13 -10
  116. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
  117. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +6 -6
  118. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -1
  119. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +2 -0
  120. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
  121. package/dist/components/layout/page-sections/simple-section/simple-section.js +3 -2
  122. package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
  123. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +2 -2
  124. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +4 -0
  125. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
  126. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +8 -1
  127. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
  128. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
  129. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +17 -0
  130. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
  131. package/dist/components/layout/sheet/sheet.js +1 -1
  132. package/dist/components/layout/sheet/sheet.js.map +1 -1
  133. package/dist/components/layout/{app-view/app-view.d.ts → shell/shell.d.ts} +11 -11
  134. package/dist/components/layout/shell/shell.d.ts.map +1 -0
  135. package/dist/components/layout/{app-view/app-view.js → shell/shell.js} +24 -24
  136. package/dist/components/layout/shell/shell.js.map +1 -0
  137. package/dist/components/layout/shell/shell.styles.d.ts +2 -0
  138. package/dist/components/layout/shell/shell.styles.d.ts.map +1 -0
  139. package/dist/components/layout/{app-view/app-view.styles.js → shell/shell.styles.js} +8 -8
  140. package/dist/components/layout/shell/shell.styles.js.map +1 -0
  141. package/dist/components/layout/shell/shell.template.d.ts +4 -0
  142. package/dist/components/layout/shell/shell.template.d.ts.map +1 -0
  143. package/dist/components/layout/shell/shell.template.js +9 -0
  144. package/dist/components/layout/shell/shell.template.js.map +1 -0
  145. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -1
  146. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
  147. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +1 -1
  148. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +1 -1
  149. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +1 -1
  150. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +1 -1
  151. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
  152. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +2 -0
  153. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
  154. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
  155. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +2 -0
  156. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
  157. package/dist/components/lists-and-tables/list/list.d.ts +6 -1
  158. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  159. package/dist/components/lists-and-tables/list/list.js +7 -2
  160. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  161. package/dist/components/lists-and-tables/list-item/list-item.d.ts +31 -6
  162. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  163. package/dist/components/lists-and-tables/list-item/list-item.js +55 -11
  164. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  165. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
  166. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  167. package/dist/components/lists-and-tables/list-item/list-item.template.js +7 -6
  168. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  169. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +4 -1
  170. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  171. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +8 -2
  172. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  173. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
  174. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
  175. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +1 -1
  176. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
  177. package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
  178. package/dist/components/navigation/menu-bar/menu-bar.js +19 -2
  179. package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
  180. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +7 -2
  181. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  182. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +15 -3
  183. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  184. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
  185. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +12 -2
  186. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
  187. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.d.ts +1 -0
  188. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.d.ts.map +1 -1
  189. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +55 -40
  190. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js.map +1 -1
  191. package/dist/components/navigation/skip-link/skip-link.d.ts +50 -4
  192. package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
  193. package/dist/components/navigation/skip-link/skip-link.js +140 -13
  194. package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
  195. package/dist/components/navigation/skip-link/skip-link.template.d.ts.map +1 -1
  196. package/dist/components/navigation/skip-link/skip-link.template.js +1 -0
  197. package/dist/components/navigation/skip-link/skip-link.template.js.map +1 -1
  198. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +8 -1
  199. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  200. package/dist/components/navigation/top-title-bar/top-title-bar.js +9 -2
  201. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  202. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +10 -0
  203. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
  204. package/dist/components/status-and-feedback/status-bar/status-bar.js +21 -0
  205. package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
  206. package/dist/css/document-reset.css +3 -3
  207. package/dist/css/rich-text.css +36 -90
  208. package/dist/nldd.min.js +912 -736
  209. package/dist/types/vue.d.ts +85 -38
  210. package/dist/utilities/page-section-mixin.d.ts +5 -0
  211. package/dist/utilities/page-section-mixin.d.ts.map +1 -1
  212. package/dist/utilities/page-section-mixin.js +10 -1
  213. package/dist/utilities/page-section-mixin.js.map +1 -1
  214. package/dist/utilities/scroll-mode-controller.d.ts +29 -13
  215. package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
  216. package/dist/utilities/scroll-mode-controller.js +48 -13
  217. package/dist/utilities/scroll-mode-controller.js.map +1 -1
  218. package/package.json +5 -5
  219. package/dist/components/layout/app-view/app-view.d.ts.map +0 -1
  220. package/dist/components/layout/app-view/app-view.js.map +0 -1
  221. package/dist/components/layout/app-view/app-view.styles.d.ts +0 -2
  222. package/dist/components/layout/app-view/app-view.styles.d.ts.map +0 -1
  223. package/dist/components/layout/app-view/app-view.styles.js.map +0 -1
  224. package/dist/components/layout/app-view/app-view.template.d.ts +0 -4
  225. package/dist/components/layout/app-view/app-view.template.d.ts.map +0 -1
  226. package/dist/components/layout/app-view/app-view.template.js +0 -9
  227. package/dist/components/layout/app-view/app-view.template.js.map +0 -1
  228. package/dist/components/palettes.html +0 -245
  229. package/dist/components/sample-images/butterfly-1200.jpg +0 -0
  230. package/dist/components/sample-images/butterfly-1600.jpg +0 -0
  231. package/dist/components/sample-images/butterfly-480.jpg +0 -0
  232. package/dist/components/sample-images/butterfly-960.jpg +0 -0
  233. package/dist/palettes.html +0 -245
  234. package/dist/sample-images/butterfly-1200.jpg +0 -0
  235. package/dist/sample-images/butterfly-1600.jpg +0 -0
  236. package/dist/sample-images/butterfly-480.jpg +0 -0
  237. package/dist/sample-images/butterfly-960.jpg +0 -0
@@ -3,14 +3,14 @@ import { n as slottedReset, t as inheritedTextReset } from "./shadow-resets-CPa5
3
3
  import { i as linkRel, n as setTranslations, r as translate, t as withTranslations } from "./with-translations-C8_0-9y8.js";
4
4
  import { t as __decorate } from "./decorate-CO88j7Lc.js";
5
5
  import { t as reflectNonDefault } from "./reflect-non-default-OLaK60rT.js";
6
- import { i as PopupAnchorController, n as NLDDTooltip, r as NLDDActivityIndicator, t as NLDDIconButton } from "./icon-button-mevRsl4C.js";
7
- import { t as NLDDIcon } from "./icon-DQHT2C7z.js";
6
+ import { i as PopupAnchorController, n as NLDDTooltip, r as NLDDActivityIndicator, t as NLDDIconButton } from "./icon-button-CJIikwyu.js";
7
+ import { t as NLDDIcon } from "./icon-D_ZGezHx.js";
8
8
  import { n as isPointerMode, r as isTouchMode, t as isKeyboardMode } from "./input-modality-DhTeUxKi.js";
9
9
  import { t as breakpoints } from "./breakpoints-CkxsiRgH.js";
10
10
  import { t as VisibilityMixin } from "./visibility-mixin-Crbt8PFP.js";
11
- import { $ as layer, A as syntaxTree, B as Tree, C as indentNodeProp, Ct as countColumn, D as matchBrackets, E as languageDataProp, F as NodeProp, G as RectangleMarker, H as Decoration, I as NodeSet, J as drawSelection, K as ViewPlugin, L as NodeType, M as styleTags, N as tags, Q as keymap, S as getIndentation, St as combineConfig, T as indentUnit, U as Direction, V as parseMixed, W as EditorView, X as getDrawSelectionConfig, Y as dropCursor, _t as StateField, a as HighlightStyle, at as Annotation, b as foldService, c as Language, ct as Compartment, d as ParseContext, dt as Facet, et as lineNumbers, f as StreamLanguage, gt as StateEffect, h as defineLanguageFacet, it as tooltips, j as Tag, k as syntaxHighlighting, l as LanguageDescription, lt as EditorSelection, mt as RangeSetBuilder, nt as placeholder, o as IndentContext, ot as ChangeDesc, pt as Prec, q as WidgetType, rt as showTooltip, st as ChangeSet, u as LanguageSupport, ut as EditorState, vt as Text, w as indentString, wt as findClusterBreak, x as getIndentUnit, y as foldNodeProp, yt as Transaction, z as Parser } from "./dist-CpW8MF-L.js";
12
- import { i as completionStatus, n as autocompletion, s as startCompletion, t as CompletionContext } from "./dist-DTOshgo1.js";
13
- import { n as html$2, r as htmlCompletionSource } from "./dist-DV6Mp5N1.js";
11
+ import { $ as layer, A as syntaxTree, B as Tree, C as indentNodeProp, Ct as countColumn, D as matchBrackets, E as languageDataProp, F as NodeProp, G as RectangleMarker, H as Decoration, I as NodeSet, J as drawSelection, K as ViewPlugin, L as NodeType, M as styleTags, N as tags, Q as keymap, S as getIndentation, St as combineConfig, T as indentUnit, U as Direction, V as parseMixed, W as EditorView, X as getDrawSelectionConfig, Y as dropCursor, _t as StateField, a as HighlightStyle, at as Annotation, b as foldService, c as Language, ct as Compartment, d as ParseContext, dt as Facet, et as lineNumbers, f as StreamLanguage, gt as StateEffect, h as defineLanguageFacet, it as tooltips, j as Tag, k as syntaxHighlighting, l as LanguageDescription, lt as EditorSelection, mt as RangeSetBuilder, nt as placeholder, o as IndentContext, ot as ChangeDesc, pt as Prec, q as WidgetType, rt as showTooltip, st as ChangeSet, u as LanguageSupport, ut as EditorState, vt as Text, w as indentString, wt as findClusterBreak, x as getIndentUnit, y as foldNodeProp, yt as Transaction, z as Parser } from "./dist-Bud_7w5g.js";
12
+ import { i as completionStatus, n as autocompletion, s as startCompletion, t as CompletionContext } from "./dist-DkqAbJH8.js";
13
+ import { n as html$2, r as htmlCompletionSource } from "./dist-CaxHkqR2.js";
14
14
  import { LitElement, css, html, nothing, svg, unsafeCSS } from "lit";
15
15
  import { customElement, property, query, state } from "lit/decorators.js";
16
16
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
@@ -2282,6 +2282,7 @@ var textCellStyles = css`
2282
2282
  color: var(--_text-cell-secondary-color);
2283
2283
  font: var(--_text-cell-secondary-font);
2284
2284
  overflow-wrap: anywhere;
2285
+ text-wrap: pretty;
2285
2286
  }
2286
2287
 
2287
2288
  .text-cell__text {
@@ -2309,6 +2310,7 @@ var textCellStyles = css`
2309
2310
  color: var(--_text-cell-secondary-color);
2310
2311
  font: var(--_text-cell-secondary-font);
2311
2312
  overflow-wrap: anywhere;
2313
+ text-wrap: pretty;
2312
2314
  }
2313
2315
  `;
2314
2316
  //#endregion
@@ -8441,8 +8443,8 @@ __decorate([property({
8441
8443
  attribute: "lg-column-count"
8442
8444
  })], NLDDContainer.prototype, "lgColumnCount", void 0);
8443
8445
  __decorate([property({
8444
- type: String,
8445
- reflect: true
8446
+ reflect: true,
8447
+ converter: reflectNonDefault("")
8446
8448
  })], NLDDContainer.prototype, "width", void 0);
8447
8449
  __decorate([property({
8448
8450
  type: String,
@@ -9392,7 +9394,7 @@ var NLDDList = (_NLDDList2 = class NLDDList extends LitElement {
9392
9394
  * the branch and the next top-level row, so the last row of the list is the
9393
9395
  * deepest last child, not the last item in the list's own slot. */
9394
9396
  _getPaintedRows(rows = this._getItems()) {
9395
- return rows.filter((row) => !row.hasAttribute("hidden")).flatMap((row) => row.expanded ? [row, ...this._getPaintedRows(row.childRows)] : [row]);
9397
+ return rows.filter((row) => !row.hasAttribute("hidden")).flatMap((row) => row._childrenOpen ? [row, ...this._getPaintedRows(row.childRows)] : [row]);
9396
9398
  }
9397
9399
  _updateItems() {
9398
9400
  const items = this._getItems();
@@ -10334,11 +10336,11 @@ var listItemStyles = css`
10334
10336
  //#region src/components/lists-and-tables/list-item/list-item.template.ts
10335
10337
  var content = html`<slot></slot>`;
10336
10338
  var divider = html`<div class="list-item__divider"></div>`;
10337
- var template$13 = (button, href, target, rel, opensInNewTabLabel, actionTabindex, isHighlighted = false, checkbox = false, radio = false, checked = false, expanded, showChildren = false, hasCheckedSegment = false, disabled = false) => {
10339
+ var template$13 = (button, href, target, rel, opensInNewTabLabel, actionTabindex, isHighlighted = false, checkbox = false, radio = false, checked = false, expanded, showChildren = false, hasCheckedSegment = false, disabled = false, childrenRole = "group", childrenOpen = expanded === true) => {
10338
10340
  const ariaExpanded = expanded === void 0 ? nothing : String(expanded);
10339
10341
  const children = showChildren ? html`<div class="list-item__children"
10340
- role="group"
10341
- ?hidden=${expanded !== true}
10342
+ role=${childrenRole}
10343
+ ?hidden=${!childrenOpen}
10342
10344
  ><slot name="children"></slot></div>` : html`<slot name="children" hidden></slot>`;
10343
10345
  const blockClass = classMap({
10344
10346
  "list-item": true,
@@ -10474,6 +10476,7 @@ var NLDDListItem = (_NLDDListItem2 = class NLDDListItem extends withTranslations
10474
10476
  this.selected = false;
10475
10477
  this.checked = false;
10476
10478
  this.current = false;
10479
+ this.currentType = "page";
10477
10480
  this.disabled = false;
10478
10481
  this._showChildren = false;
10479
10482
  this._parentType = "list";
@@ -10488,6 +10491,8 @@ var NLDDListItem = (_NLDDListItem2 = class NLDDListItem extends withTranslations
10488
10491
  this._observedMarkerTargets = [];
10489
10492
  this._warnedDegenerateDivider = false;
10490
10493
  this._warnedChildrenOutsideTree = false;
10494
+ this._warnedExpandedInNavigation = false;
10495
+ this._warnedStrayExpanded = false;
10491
10496
  this._warnedStrayContent = false;
10492
10497
  this._warnedNestedControl = false;
10493
10498
  this._ownCellSize = /* @__PURE__ */ new WeakMap();
@@ -10643,7 +10648,7 @@ var NLDDListItem = (_NLDDListItem2 = class NLDDListItem extends withTranslations
10643
10648
  /**
10644
10649
  * A segment marked `current` makes the whole row the current one.
10645
10650
  *
10646
- * A row cut into segments has no control of its own, so `aria-current="page"`
10651
+ * A row cut into segments has no control of its own, so `aria-current`
10647
10652
  * belongs on the segment that holds the link. Written there, the row would
10648
10653
  * stay unpainted and the consumer had to set `current` twice, once for the
10649
10654
  * semantics and once for the color, with nothing to catch the two drifting
@@ -10728,7 +10733,7 @@ var NLDDListItem = (_NLDDListItem2 = class NLDDListItem extends withTranslations
10728
10733
  });
10729
10734
  }
10730
10735
  updated(changed) {
10731
- if (changed.has("selected") || changed.has("current") || changed.has("button") || changed.has("checkbox") || changed.has("radio") || changed.has("href") || changed.has("_parentType")) this._updateAriaState();
10736
+ if (changed.has("selected") || changed.has("current") || changed.has("currentType") || changed.has("button") || changed.has("checkbox") || changed.has("radio") || changed.has("href") || changed.has("_parentType")) this._updateAriaState();
10732
10737
  if (changed.has("button") || changed.has("checkbox") || changed.has("radio") || changed.has("href")) {
10733
10738
  this._updateInteractive();
10734
10739
  this._warnOnNestedControl();
@@ -10751,11 +10756,27 @@ var NLDDListItem = (_NLDDListItem2 = class NLDDListItem extends withTranslations
10751
10756
  * attribute keeps its other meaning: this row discloses nothing, emit no
10752
10757
  * aria-expanded at all. Without this split, `?expanded=\${false}` (which
10753
10758
  * removes the attribute) would leave a branch that never collapses.
10759
+ *
10760
+ * A navigation list is the exception. Its sub-pages are always shown, so a
10761
+ * row with children discloses nothing there and emits no aria-expanded,
10762
+ * whatever `expanded` says: "collapsed" next to visible children would be
10763
+ * a contradiction.
10754
10764
  */
10755
10765
  get _resolvedExpanded() {
10766
+ if (this._showChildren && this._parentType === "navigation") return void 0;
10756
10767
  if (this._showChildren) return this.expanded === true;
10757
10768
  return this.expanded;
10758
10769
  }
10770
+ /**
10771
+ * Whether the child rows are on screen. A tree branch is closed until it
10772
+ * says `expanded`. In a navigation list the sub-pages are always there: it
10773
+ * has no branches to open, which is what sets it apart from a tree.
10774
+ *
10775
+ * @internal Read by the list, which walks the rows that paint.
10776
+ */
10777
+ get _childrenOpen() {
10778
+ return this._parentType === "navigation" || this.expanded === true;
10779
+ }
10759
10780
  /** Segments marked `disclosure` announce the row's expanded state, so the
10760
10781
  * consumer writes it once — here, where it also drives the children group. */
10761
10782
  _relayExpanded() {
@@ -10822,7 +10843,7 @@ var NLDDListItem = (_NLDDListItem2 = class NLDDListItem extends withTranslations
10822
10843
  this.removeAttribute("aria-selected");
10823
10844
  }
10824
10845
  const action = this._action;
10825
- if (this._parentType === "navigation" && (this.current || this.selected) && action) action.setAttribute("aria-current", "page");
10846
+ if (this._parentType === "navigation" && (this.current || this.selected) && action) action.setAttribute("aria-current", this.currentType);
10826
10847
  else action?.removeAttribute("aria-current");
10827
10848
  }
10828
10849
  /**
@@ -11054,7 +11075,7 @@ var NLDDListItem = (_NLDDListItem2 = class NLDDListItem extends withTranslations
11054
11075
  render() {
11055
11076
  const opensInNewTabLabel = this.href && this.target === "_blank" ? this._t("components.list-item.opens-in-new-tab-label") : void 0;
11056
11077
  const actionTabindex = this._isListboxOption ? "-1" : this._arrowNavigation ? this._rovingActive ? "0" : "-1" : void 0;
11057
- return template$13(this.button, this.href, this.target, this.rel, opensInNewTabLabel, actionTabindex, this._highlighted, this.checkbox, this.radio, this.checked, this._resolvedExpanded, this._showChildren, this._hasCheckedSegment, this.disabled);
11078
+ return template$13(this.button, this.href, this.target, this.rel, opensInNewTabLabel, actionTabindex, this._highlighted, this.checkbox, this.radio, this.checked, this._resolvedExpanded, this._showChildren, this._hasCheckedSegment, this.disabled, this._parentType === "navigation" ? "list" : "group", this._childrenOpen);
11058
11079
  }
11059
11080
  }, _NLDDListItem = _NLDDListItem2, _NLDDListItem2.styles = [listItemStyles], _NLDDListItem2.SIZED_CELLS = "nldd-text-cell, nldd-drag-handle-cell", _NLDDListItem2);
11060
11081
  __decorate([property({
@@ -11096,6 +11117,11 @@ __decorate([property({
11096
11117
  type: Boolean,
11097
11118
  reflect: true
11098
11119
  })], NLDDListItem.prototype, "current", void 0);
11120
+ __decorate([property({
11121
+ reflect: true,
11122
+ attribute: "current-type",
11123
+ converter: reflectNonDefault("page")
11124
+ })], NLDDListItem.prototype, "currentType", void 0);
11099
11125
  __decorate([property({
11100
11126
  type: Boolean,
11101
11127
  reflect: true
@@ -11912,16 +11938,16 @@ var nlddCodeMirrorTheme = [baseTheme, syntaxHighlighting(highlightStyle)];
11912
11938
  //#endregion
11913
11939
  //#region src/utilities/codemirror/languages.ts
11914
11940
  var loaders = {
11915
- json: async () => (await import("./dist-CH9m014O.js")).json(),
11916
- yaml: async () => (await import("./dist-BWRYv3Mp.js")).yaml(),
11917
- javascript: async () => (await import("./dist-DMHTTJRJ.js").then((n) => n.t)).javascript(),
11918
- typescript: async () => (await import("./dist-DMHTTJRJ.js").then((n) => n.t)).javascript({ typescript: true }),
11919
- css: async () => (await import("./dist-PlhQXXtE.js").then((n) => n.r)).css(),
11920
- html: async () => (await import("./dist-DV6Mp5N1.js").then((n) => n.t)).html(),
11921
- xml: async () => (await import("./dist-BWEAw34D.js")).xml(),
11922
- python: async () => (await import("./dist-Bi4EHsFY.js")).python(),
11923
- rust: async () => (await import("./dist-C3uWRipu.js")).rust(),
11924
- sql: async () => (await import("./dist-CvL6_ezZ.js")).sql(),
11941
+ json: async () => (await import("./dist-B2QcygzG.js")).json(),
11942
+ yaml: async () => (await import("./dist-Ch3gNAuT.js")).yaml(),
11943
+ javascript: async () => (await import("./dist-BB5mlo7D.js").then((n) => n.t)).javascript(),
11944
+ typescript: async () => (await import("./dist-BB5mlo7D.js").then((n) => n.t)).javascript({ typescript: true }),
11945
+ css: async () => (await import("./dist-DbNhCpS5.js").then((n) => n.r)).css(),
11946
+ html: async () => (await import("./dist-CaxHkqR2.js").then((n) => n.t)).html(),
11947
+ xml: async () => (await import("./dist-DnZmcpbQ.js")).xml(),
11948
+ python: async () => (await import("./dist-iC2RTM0V.js")).python(),
11949
+ rust: async () => (await import("./dist-Bo5Jeyfn.js")).rust(),
11950
+ sql: async () => (await import("./dist-CA0yDFIt.js")).sql(),
11925
11951
  markdown: async () => (await Promise.resolve().then(() => dist_exports)).markdown(),
11926
11952
  bash: async () => new LanguageSupport(StreamLanguage.define((await import("./shell-C61GCsJA.js")).shell)),
11927
11953
  toml: async () => new LanguageSupport(StreamLanguage.define((await import("./toml-C2HBbPgG.js")).toml)),
@@ -11964,6 +11990,7 @@ var codeViewerStyles = css`
11964
11990
  --_code-viewer-actions-area-padding: var(--primitives-space-8);
11965
11991
  --_code-viewer-actions-area-size: calc(var(--semantics-controls-md-min-size) + var(--_code-viewer-actions-area-padding) * 2);
11966
11992
  --_code-viewer-actions-z-index: 1;
11993
+ --_code-viewer-max-height: none;
11967
11994
 
11968
11995
  ${inheritedTextReset}
11969
11996
  display: flex;
@@ -12044,6 +12071,16 @@ var codeViewerStyles = css`
12044
12071
  box-shadow: var(--semantics-focus-ring-box-shadow), var(--_code-viewer-border-shadow);
12045
12072
  }
12046
12073
 
12074
+ :host([max-height]) .code-viewer {
12075
+ display: flex;
12076
+ max-height: var(--_code-viewer-max-height);
12077
+ flex-direction: column;
12078
+ }
12079
+
12080
+ :host([max-height]) .cm-editor {
12081
+ min-height: 0;
12082
+ }
12083
+
12047
12084
  .cm-content {
12048
12085
  tab-size: 2;
12049
12086
  }
@@ -12111,6 +12148,7 @@ function codeViewerTemplate(component) {
12111
12148
  tooltip-timing="never"
12112
12149
  size="md"
12113
12150
  @click=${component._onCopyClick}
12151
+ @focusout=${component._onCopyBlur}
12114
12152
  ></nldd-icon-button>
12115
12153
  </nldd-tooltip>
12116
12154
  </div>
@@ -12201,6 +12239,11 @@ function forceScrollLayerRepaint(el) {
12201
12239
  * Whitespace is preserved; long lines scroll horizontally by default. Set
12202
12240
  * `wrap` to break long lines onto the next visual line.
12203
12241
  *
12242
+ * The viewer grows with its content. Set `max-height` to show a long file in
12243
+ * a frame of its own: the block grows up to that height and scrolls beyond it.
12244
+ * A scroller that overflows, in either direction, is a tab stop with a role
12245
+ * and a name, so the keyboard reaches what a pointer can scroll to.
12246
+ *
12204
12247
  * ## Syntax highlighting
12205
12248
  * Set `language` to one of the supported grammars (yaml, json, javascript,
12206
12249
  * typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql,
@@ -12219,6 +12262,7 @@ function forceScrollLayerRepaint(el) {
12219
12262
  * @attr {string} language - Grammar to highlight with. Empty disables highlighting.
12220
12263
  * @attr {boolean} no-copy - Hide the copy-to-clipboard button (shown by default).
12221
12264
  * @attr {boolean} wrap - Wrap long lines instead of horizontal scroll
12265
+ * @attr {string} max-height - Tallest the block may get, as a CSS length (e.g. '400px', '50vh'). Beyond it the content scrolls vertically. Unset means no cap.
12222
12266
  * @attr {object} translations - Override translation keys (e.g. the copy button
12223
12267
  * labels and the scroll-region label); unset keys fall back to Dutch.
12224
12268
  *
@@ -12236,6 +12280,7 @@ var NLDDCodeViewer = (_NLDDCodeViewer = class NLDDCodeViewer extends NLDDCodeMir
12236
12280
  this.language = "";
12237
12281
  this.noCopy = false;
12238
12282
  this.wrap = false;
12283
+ this.maxHeight = "";
12239
12284
  this._copyUnavailable = false;
12240
12285
  this.translations = {};
12241
12286
  this._isScrollable = false;
@@ -12323,6 +12368,10 @@ var NLDDCodeViewer = (_NLDDCodeViewer = class NLDDCodeViewer extends NLDDCodeMir
12323
12368
  }
12324
12369
  updated(changed) {
12325
12370
  if (changed.has("noCopy")) this._copyUnavailable = !this.noCopy && !isClipboardAvailable();
12371
+ if (changed.has("maxHeight")) {
12372
+ if (this.maxHeight && CSS.supports("max-height", this.maxHeight)) this.style.setProperty("--_code-viewer-max-height", this.maxHeight);
12373
+ else this.style.removeProperty("--_code-viewer-max-height");
12374
+ }
12326
12375
  if (!this.view) return;
12327
12376
  if (this._isScrollable) this.view.scrollDOM.setAttribute("aria-label", this._t("components.code-viewer.region-label"));
12328
12377
  if (changed.has("language")) this._applyLanguage();
@@ -12330,7 +12379,7 @@ var NLDDCodeViewer = (_NLDDCodeViewer = class NLDDCodeViewer extends NLDDCodeMir
12330
12379
  this.reconfigure(this._wrapCompartment, this.wrap ? EditorView.lineWrapping : []);
12331
12380
  this._updateScrollable();
12332
12381
  }
12333
- if (changed.has("appearance") || changed.has("noCopy") || changed.has("_copyUnavailable")) this._updateScrollable();
12382
+ if (changed.has("appearance") || changed.has("maxHeight") || changed.has("noCopy") || changed.has("_copyUnavailable")) this._updateScrollable();
12334
12383
  }
12335
12384
  _onSlotChange() {
12336
12385
  this.setDoc(this._getRawText());
@@ -12379,7 +12428,7 @@ var NLDDCodeViewer = (_NLDDCodeViewer = class NLDDCodeViewer extends NLDDCodeMir
12379
12428
  const scroller = this.view?.scrollDOM;
12380
12429
  if (!scroller) return;
12381
12430
  if (scroller.clientWidth === 0) return;
12382
- const scrollable = !this.wrap && scroller.scrollWidth > scroller.clientWidth;
12431
+ const scrollable = scroller.scrollHeight > scroller.clientHeight || !this.wrap && scroller.scrollWidth > scroller.clientWidth;
12383
12432
  this._isScrollable = scrollable;
12384
12433
  if (scrollable) {
12385
12434
  scroller.setAttribute("tabindex", "0");
@@ -12396,7 +12445,8 @@ var NLDDCodeViewer = (_NLDDCodeViewer = class NLDDCodeViewer extends NLDDCodeMir
12396
12445
  if (!slot) return "";
12397
12446
  return slot.assignedNodes({ flatten: true }).map((n) => n.textContent ?? "").join("");
12398
12447
  }
12399
- async _onCopyClick() {
12448
+ async _onCopyClick(event) {
12449
+ (event?.currentTarget)?.focus?.();
12400
12450
  try {
12401
12451
  if (!isClipboardAvailable()) throw new Error("Clipboard API unavailable");
12402
12452
  await navigator.clipboard.writeText(this._getRawText());
@@ -12405,10 +12455,15 @@ var NLDDCodeViewer = (_NLDDCodeViewer = class NLDDCodeViewer extends NLDDCodeMir
12405
12455
  this._copyState = "failure";
12406
12456
  }
12407
12457
  clearTimeout(this._copyResetTimer);
12458
+ if (this._copyState === "failure") return;
12408
12459
  this._copyResetTimer = setTimeout(() => {
12409
12460
  this._copyState = "idle";
12410
12461
  }, COPY_FEEDBACK_DURATION_MS);
12411
12462
  }
12463
+ /** Leaving the button clears a failure, which no timer does. */
12464
+ _onCopyBlur() {
12465
+ if (this._copyState === "failure") this._copyState = "idle";
12466
+ }
12412
12467
  /** Escape on the open feedback tooltip dismisses it early (WCAG 1.4.13). */
12413
12468
  _onCopyDismiss() {
12414
12469
  clearTimeout(this._copyResetTimer);
@@ -12436,6 +12491,11 @@ __decorate([property({
12436
12491
  type: Boolean,
12437
12492
  reflect: true
12438
12493
  })], NLDDCodeViewer.prototype, "wrap", void 0);
12494
+ __decorate([property({
12495
+ reflect: true,
12496
+ attribute: "max-height",
12497
+ converter: reflectNonDefault("")
12498
+ })], NLDDCodeViewer.prototype, "maxHeight", void 0);
12439
12499
  __decorate([property({
12440
12500
  type: Boolean,
12441
12501
  reflect: true,
@@ -12468,9 +12528,13 @@ var imageStyles = css`
12468
12528
  --_image-error-padding: var(--primitives-space-8);
12469
12529
  --_image-error-gap: var(--primitives-space-2);
12470
12530
  --_image-caption-row-gap: var(--primitives-space-8);
12531
+ --_image-pending-background-color: var(--semantics-categories-neutral-tinted-background-color);
12532
+ --_image-empty-icon-size: var(--primitives-space-32);
12533
+ --_image-empty-icon-color: light-dark(var(--primitives-color-neutral-450), var(--primitives-color-neutral-550));
12471
12534
  --_image-object-fit: cover;
12472
12535
  --_image-object-position: center;
12473
12536
  --_image-max-width: 100%;
12537
+ --_image-media-height: var(--context-image-height, auto);
12474
12538
 
12475
12539
  ${inheritedTextReset}
12476
12540
  box-sizing: border-box;
@@ -12531,6 +12595,7 @@ var imageStyles = css`
12531
12595
  position: relative;
12532
12596
  overflow: hidden;
12533
12597
  max-width: 100%;
12598
+ height: var(--_image-media-height);
12534
12599
  border-radius: var(--_image-corner-radius);
12535
12600
  }
12536
12601
 
@@ -12799,6 +12864,37 @@ var imageStyles = css`
12799
12864
  }
12800
12865
 
12801
12866
 
12867
+ /* # Empty and loading */
12868
+
12869
+ .image__media.is-loading {
12870
+ background-color: var(--_image-pending-background-color);
12871
+ }
12872
+
12873
+ .image__media--empty {
12874
+ display: flex;
12875
+ background-color: var(--_image-pending-background-color);
12876
+ width: 100%;
12877
+ height: 100%;
12878
+ aspect-ratio: 16 / 9;
12879
+ align-items: center;
12880
+ justify-content: center;
12881
+ }
12882
+
12883
+ @media (forced-colors: active) {
12884
+ .image__media--empty {
12885
+ outline: 1px solid CanvasText;
12886
+ outline-offset: -1px;
12887
+ }
12888
+ }
12889
+
12890
+ .image__empty-icon {
12891
+ display: block;
12892
+ width: var(--_image-empty-icon-size);
12893
+ height: var(--_image-empty-icon-size);
12894
+ color: var(--_image-empty-icon-color);
12895
+ }
12896
+
12897
+
12802
12898
  /* # Error state
12803
12899
  Centred icon + alt-text shown when the image fails to load. The media is
12804
12900
  painted gray (--_image-background-color) via :host([errored]) so the icon and
@@ -12875,8 +12971,11 @@ function imageTemplate(component) {
12875
12971
  mediaStyles[`--context-lqip-c${i + 1}`] = String(cell);
12876
12972
  });
12877
12973
  }
12974
+ const isEmpty = component._isEmpty;
12878
12975
  const mediaClasses = classMap({
12879
12976
  "image__media": true,
12977
+ "image__media--empty": isEmpty,
12978
+ "is-loading": !isEmpty && !hasLqip && !component._hasSlottedMedia && !component._imageLoaded && !component._imageErrored,
12880
12979
  "image__media--lqip": hasLqip && !component._imageErrored
12881
12980
  });
12882
12981
  const fallbackImg = html`
@@ -12915,8 +13014,10 @@ function imageTemplate(component) {
12915
13014
  const media = html`
12916
13015
  <div class=${mediaClasses}
12917
13016
  style=${styleMap(mediaStyles)}
13017
+ aria-hidden=${isEmpty ? "true" : nothing}
12918
13018
  >
12919
- <slot @slotchange=${component._onMediaSlotChange}>${fallbackImg}</slot>
13019
+ <slot @slotchange=${component._onMediaSlotChange}>${isEmpty ? nothing : fallbackImg}</slot>
13020
+ ${isEmpty ? html`<span class="image__empty-icon"><nldd-icon icon="image"></nldd-icon></span>` : nothing}
12920
13021
  ${errorOverlay}
12921
13022
  ${liveRegion}
12922
13023
  </div>
@@ -12955,6 +13056,13 @@ var nlddImageTranslations = {
12955
13056
  * custom `<img>` or `<picture>` (e.g. with art-direction sources), slot it
12956
13057
  * into the default slot and we'll style and wrap it like our own image.
12957
13058
  *
13059
+ * Without an image (no `src`, `srcset`, `lqip` or slotted media) it shows a
13060
+ * neutral area with an image icon, in the box, shape and caption a real image
13061
+ * would get: a place where an image belongs, for a prototype or a pattern, or
13062
+ * an image someone forgot. Without `aspect-ratio` that area is 16/9. While the
13063
+ * built-in `<img>` loads without an `lqip`, the same area shows without the
13064
+ * icon, and it goes once the image is in.
13065
+ *
12958
13066
  * @element nldd-image
12959
13067
  *
12960
13068
  * @attr {string} src - Image URL
@@ -12982,7 +13090,7 @@ var nlddImageTranslations = {
12982
13090
  * @attr {string} caption - Caption text shown below the image
12983
13091
  * @attr {string} credit - Smaller credit/attribution text shown beside the caption
12984
13092
  * @attr {boolean} decorative - Decorative image: alt is forced empty + aria-hidden
12985
- * @attr {string} lqip - Low-quality image placeholder as a CSV string
13093
+ * @attr {string} lqip - Loading preview (LQIP, low-quality image placeholder) as a CSV string
12986
13094
  * `"base,c1,c2,c3,c4,c5,c6"` — seven 0-255 bytes, each packing an 8-bit
12987
13095
  * Oklab triplet (2 bits L, 3 bits a, 3 bits b). The first is the base
12988
13096
  * color shown outside the cell gradients; the other six are per-cell
@@ -12991,10 +13099,14 @@ var nlddImageTranslations = {
12991
13099
  * Extends Lean Rada's CSS-only LQIP (https://leanrada.com/notes/css-only-lqip/)
12992
13100
  * with per-cell hue — Lean's original format encodes grayscale cells only;
12993
13101
  * ours encodes a color per cell so multi-color subjects survive the
12994
- * placeholder.
13102
+ * preview.
12995
13103
  * @attr {object} translations - Override translation keys (e.g. the message
12996
13104
  * shown when the image fails to load); unset keys fall back to Dutch.
12997
13105
  *
13106
+ * A parent that gives the image a fixed box, such as the media area of
13107
+ * nldd-hero, sets `--context-image-height: 100%` on it, so the image fills that
13108
+ * box instead of taking the height of the photo.
13109
+ *
12998
13110
  * @slot - Custom `<img>`, `<picture>` or inline `<svg>` (overrides the src-based default). An inline svg keeps its own colors and scales by its viewBox, so a drawing gets the same box, ratio and caption as a photo. Slotted media carries its own text alternative: an `alt` on the img (empty when it conveys nothing), or `role="img"` with an `aria-label`, `aria-labelledby` or `<title>` on the svg.
12999
13111
  * The internal `error` listener is attached only to the built-in `<img>`, so
13000
13112
  * slotted content does not trigger the error-state overlay automatically.
@@ -13028,6 +13140,7 @@ var _NLDDImage = class NLDDImage extends LitElement {
13028
13140
  this._warnedWidth = false;
13029
13141
  this._warnedAlt = false;
13030
13142
  this._onMediaSlotChange = () => {
13143
+ this.requestUpdate();
13031
13144
  this._warnMissingAlt();
13032
13145
  };
13033
13146
  this._onImageLoad = () => {
@@ -13131,6 +13244,15 @@ var _NLDDImage = class NLDDImage extends LitElement {
13131
13244
  _slottedMedia() {
13132
13245
  return ((this.shadowRoot?.querySelector("slot:not([name])"))?.assignedElements() ?? []).flatMap((el) => el instanceof HTMLSlotElement ? el.assignedElements({ flatten: true }) : [el]);
13133
13246
  }
13247
+ /** Whether anything sits in the default slot. Read off the light DOM, so
13248
+ * the first render already knows and an image does not flash empty. */
13249
+ get _hasSlottedMedia() {
13250
+ return Array.from(this.children).some((el) => !el.hasAttribute("slot"));
13251
+ }
13252
+ /** No image at all: the component shows where one belongs. */
13253
+ get _isEmpty() {
13254
+ return !this.src && !this.srcset && !this._parsedLqip && !this._hasSlottedMedia;
13255
+ }
13134
13256
  firstUpdated() {
13135
13257
  const img = this.shadowRoot?.querySelector(".image__img");
13136
13258
  if (img?.complete && img.naturalWidth > 0) this._imageLoaded = true;
@@ -13152,8 +13274,8 @@ var _NLDDImage = class NLDDImage extends LitElement {
13152
13274
  };
13153
13275
  var NLDDImage = (_NLDDImage.styles = imageStyles, _NLDDImage);
13154
13276
  __decorate([property({
13155
- type: String,
13156
- reflect: true
13277
+ reflect: true,
13278
+ converter: reflectNonDefault("")
13157
13279
  })], NLDDImage.prototype, "src", void 0);
13158
13280
  __decorate([property({ type: String })], NLDDImage.prototype, "alt", void 0);
13159
13281
  __decorate([property({ type: String })], NLDDImage.prototype, "srcset", void 0);
@@ -13225,18 +13347,30 @@ var nlddRichTextTranslations = { "components.rich-text.table-scroll-label": "Scr
13225
13347
  * The rich text lays out its direct children in a grid: the vertical rhythm
13226
13348
  * between headings, paragraphs and lists, and the width zones below, apply to
13227
13349
  * those children only. A single wrapper `div` without `class`, `style`, `role`
13228
- * or `data-width`, as a markdown renderer or a component root produces it, is
13350
+ * or `data-rich-text-width`, as a markdown renderer or a component root produces it, is
13229
13351
  * passed through with `display: contents`, so its children count as direct.
13230
13352
  * Any other wrapper becomes a single grid item, and the paragraphs inside it
13231
13353
  * lose their spacing.
13232
13354
  *
13355
+ * ## Headings
13356
+ * The headings keep one size on every width, the one they have on a phone. A
13357
+ * heading in running text sits in a column as wide as a line of reading, on
13358
+ * any screen, so its relation to the text beside it does not change and it has
13359
+ * no reason to grow. Growing, an h2 on a wide screen was more than twice the
13360
+ * size of the text, and an article broke into blocks at every heading. Page
13361
+ * and section titles do grow: use nldd-title for those.
13362
+ *
13233
13363
  * ## Width zones
13234
- * Children are placed in three zones: text (headings, paragraphs, lists,
13235
- * blockquote, div/section) reads at the `main` size; media and tables (img,
13236
- * figure, video, iframe, table) get the `wide` accent; everything else, code
13237
- * blocks and every component, gets the full `full` span with
13238
- * `justify-self: start`, so the room is available without being forced.
13239
- * Overridable per child with `data-width="main" | "wide" | "full"`. In the
13364
+ * Children are placed in three zones. A child belongs to the text unless it is
13365
+ * listed, so it reads at the `main` size and is never wider than a line: text
13366
+ * (headings, paragraphs, lists, blockquote, div/section) and every component
13367
+ * that is not named below, such as nldd-box, nldd-card, nldd-banner,
13368
+ * nldd-list and a button, and code (pre, nldd-code-viewer), which scrolls
13369
+ * inside its block when a line is longer. Media, tables and a step bar (img, figure, video, iframe,
13370
+ * table, nldd-table, nldd-image, nldd-step-bar) get the `wide` accent. What
13371
+ * needs the room gets the `full` span: hr, nldd-collection and nldd-container. A child takes the room it needs inside its zone
13372
+ * (`justify-self: start`), so the room is available without being forced.
13373
+ * Overridable per child with `data-rich-text-width="main" | "wide" | "full"`. In the
13240
13374
  * left-aligned layout, wide and full read as a bleed to the right; with
13241
13375
  * `centered` they are symmetrical.
13242
13376
  *
@@ -13252,11 +13386,12 @@ var nlddRichTextTranslations = { "components.rich-text.table-scroll-label": "Scr
13252
13386
  * @attr {boolean} centered - Centers the main column inside the container; without it, content is left-aligned
13253
13387
  * @attr {object} translations - Override translation keys; unset keys fall back to Dutch
13254
13388
  * @attr {boolean} hyphens - Opt-in automatic hyphenation for running text (p,
13255
- * li, dd). Needs a correct `lang` on the page (`lang="nl"` on `<html>`, for
13256
- * instance): without language information the browser does not hyphenate. An
13257
- * `overflow-wrap: break-word` safety net on p/li is always on, independent of
13258
- * this attribute, so long URLs and compounds break neatly instead of
13259
- * overflowing even without a dictionary.
13389
+ * li, dd). Needs a correct
13390
+ * `lang` on the page (`lang="nl"` on `<html>`, for instance): without
13391
+ * language information the browser does not hyphenate. An
13392
+ * `overflow-wrap: break-word` safety net on headings, p and li is always on,
13393
+ * independent of this attribute, so a word wider than the column breaks
13394
+ * instead of overflowing, without a hyphen; headings never get one.
13260
13395
  */
13261
13396
  var MANAGED_LABEL_ATTR = "data-nldd-managed-label";
13262
13397
  var NLDDRichText = class NLDDRichText extends LitElement {
@@ -15683,10 +15818,10 @@ function validationItemTemplate(_component) {
15683
15818
  * the command ("Gebruik minimaal 8 tekens"): before a verdict it stands there as
15684
15819
  * what the field wants, after one as what the value does not meet.
15685
15820
  *
15686
- * @attr {string} match - Regular expression the value has to contain. Not anchored, unlike the native `pattern`: `[A-Z]` means "has a capital in it".
15687
- * @attr {number} minlength - Fewest characters the value may have.
15821
+ * @attr {string} match - Regular expression the value has to contain. Not anchored, unlike the native `pattern`: `[A-Z]` means "has a capital in it". Not held against an empty value unless the field is required.
15822
+ * @attr {number} minlength - Fewest characters the value may have. Not held against an empty value unless the field is required.
15688
15823
  * @attr {number} maxlength - Most characters the value may have.
15689
- * @attr {boolean} required - The value may not be empty. Use it on a field whose other rules would pass an empty value.
15824
+ * @attr {boolean} required - The value may not be empty. Without it, and without `required` on the control, an empty value passes every rule in the list, as it does for the native `pattern` and `minlength`. The control is read by its `required` property or attribute; one that only says `aria-required` needs this item.
15690
15825
  * @attr {boolean} hint - Show this item before there is a verdict, whatever the list says.
15691
15826
  * @attr {boolean} unmet - Whether the value fails this item. Managed by the list; do not set it yourself.
15692
15827
  * @attr {boolean} visible - Whether the item is on screen. Managed by the list.
@@ -15722,11 +15857,9 @@ var _NLDDValidationItem = class NLDDValidationItem extends LitElement {
15722
15857
  * Whether `value` satisfies this item, or null when there is nothing to
15723
15858
  * satisfy because the item carries no rule.
15724
15859
  *
15725
- * An empty value is held against the rules like any other, so "minimaal 8
15726
- * tekens" fails on it, because it does. What keeps a fresh field from
15727
- * lighting up all of its requirements is not this method but the verdict: an
15728
- * item only turns critical once the control says `invalid`, and an untouched
15729
- * field has not been judged yet.
15860
+ * An empty value is held against the rules like any other here, so "minimaal
15861
+ * 8 tekens" fails on it. Whether an empty value is judged at all is not this
15862
+ * item's call but the list's, which knows if the field needs a value.
15730
15863
  */
15731
15864
  test(value) {
15732
15865
  if (!this.hasRule) return null;
@@ -15740,6 +15873,21 @@ var _NLDDValidationItem = class NLDDValidationItem extends LitElement {
15740
15873
  super.connectedCallback();
15741
15874
  this.setAttribute("role", "listitem");
15742
15875
  }
15876
+ /**
15877
+ * A rule that changes after the fact changes the verdict, and `required`
15878
+ * changes it for every item in the list. The list only re-checks on input
15879
+ * and on its control's attributes, so the item tells it.
15880
+ */
15881
+ updated(changed) {
15882
+ if (![
15883
+ "match",
15884
+ "minlength",
15885
+ "maxlength",
15886
+ "required"
15887
+ ].some((key) => changed.has(key))) return;
15888
+ const list = this.parentElement;
15889
+ if (list instanceof NLDDValidationList) list.requestUpdate();
15890
+ }
15743
15891
  render() {
15744
15892
  return validationItemTemplate(this);
15745
15893
  }
@@ -15836,7 +15984,11 @@ var NLDDValidationList = (_NLDDValidationList = class NLDDValidationList extends
15836
15984
  });
15837
15985
  this._observer.observe(next, {
15838
15986
  attributes: true,
15839
- attributeFilter: ["invalid", "unmet"]
15987
+ attributeFilter: [
15988
+ "invalid",
15989
+ "unmet",
15990
+ "required"
15991
+ ]
15840
15992
  });
15841
15993
  }
15842
15994
  _detach() {
@@ -15856,17 +16008,27 @@ var NLDDValidationList = (_NLDDValidationList = class NLDDValidationList extends
15856
16008
  * `unmet` on the control. Never both: a rule is held against the value as it
15857
16009
  * is now, while `unmet` is a snapshot of the last check and therefore older,
15858
16010
  * so letting the snapshot win would show a mistake that has been fixed.
16011
+ *
16012
+ * An empty value in a field that does not need one passes every rule, the
16013
+ * way the native `pattern` and `minlength` leave an empty input alone. A
16014
+ * field needs a value when an item says `required` or the control does.
16015
+ * Without this a `match` under an optional field blocked every submit that
16016
+ * left it empty, and nothing on screen said why.
15859
16017
  */
15860
16018
  _evaluate() {
15861
16019
  const control = this._resolved;
15862
16020
  const invalid = control?.hasAttribute("invalid") ?? false;
15863
16021
  const named = (control?.getAttribute("unmet") ?? "").split(" ").filter(Boolean);
15864
16022
  const value = this._currentValue();
16023
+ const items = this._items;
16024
+ const needsValue = items.some((item) => item.required) || Boolean(control?.required) || (control?.hasAttribute("required") ?? false);
16025
+ const skipRules = value === "" && !needsValue;
15865
16026
  let anyVisible = false;
15866
16027
  let anyRuleFails = false;
15867
16028
  const messages = [];
15868
- for (const item of this._items) {
15869
- const rule = item.test(value);
16029
+ for (const item of items) {
16030
+ const tested = item.test(value);
16031
+ const rule = tested !== null && skipRules ? true : tested;
15870
16032
  const failing = rule === null ? named.includes(item.id) : !rule;
15871
16033
  item.unmet = invalid && failing;
15872
16034
  item.visible = item.unmet || !this.judging && (item.hint || this.hint);
@@ -20314,9 +20476,16 @@ function topTitleBarTemplate(component) {
20314
20476
  * everyone. Anchor at the heading, then, and not at some other element that
20315
20477
  * happens to sit at the right height: the bar hands its title over to it.
20316
20478
  *
20479
+ * The title stays on one line and is cut off with an ellipsis when it does not
20480
+ * fit, which on a narrow screen or at 400% zoom is soon. The bar is therefore
20481
+ * not the place for the full title: put that in an `nldd-title` at the top of
20482
+ * the content, which wraps and always fits, and point `collapse-anchor` at it.
20483
+ * A bar without an anchor holds the only copy of its title, so keep that one to
20484
+ * a word or two.
20485
+ *
20317
20486
  * @element nldd-top-title-bar
20318
20487
  *
20319
- * @attr {string} text - Title of the bar, rendered as the heading in the title group.
20488
+ * @attr {string} text - Title of the bar, rendered as the heading in the title group. One line, cut off with an ellipsis when it does not fit; see above for a title that can run long.
20320
20489
  * @attr {string} supporting-text - Text under the title.
20321
20490
  * @attr {1|2|3|4|5|6} heading-level - Heading level of the title: 1–6 (default: 1). Lower it where the bar is not the top of the page, such as a pane beside content that already has its h1.
20322
20491
  * @attr {string} collapse-anchor - Id of the element whose top edge triggers the compact state on scroll. Without it the state is static (see above).
@@ -26313,7 +26482,6 @@ var NLDDSegmentedControlItem = (_NLDDSegmentedControlItem = class NLDDSegmentedC
26313
26482
  this._select();
26314
26483
  return;
26315
26484
  }
26316
- if (e.key === "Escape") this._tooltip?._handleTriggerLeave();
26317
26485
  };
26318
26486
  }
26319
26487
  connectedCallback() {
@@ -26333,7 +26501,7 @@ var NLDDSegmentedControlItem = (_NLDDSegmentedControlItem = class NLDDSegmentedC
26333
26501
  /**
26334
26502
  * The tooltip of the icon variant, which shows itself when focus moves into
26335
26503
  * it. In radio mode the focus is on this element, outside it, so it hears
26336
- * about focus and Escape from here.
26504
+ * about focus from here. Escape it hears by itself, from the document.
26337
26505
  */
26338
26506
  get _tooltip() {
26339
26507
  return this.inputType === "radio" ? this.shadowRoot?.querySelector("nldd-tooltip") ?? null : null;
@@ -36621,7 +36789,6 @@ var _NLDDToggleButton = class NLDDToggleButton extends DescribedBy(FormAssociate
36621
36789
  submitOnEnter(this, e);
36622
36790
  return;
36623
36791
  }
36624
- if (e.key === "Escape") this._tooltip?._handleTriggerLeave();
36625
36792
  };
36626
36793
  this._onRadioFocus = () => {
36627
36794
  this._tooltip?._handleFocusIn();
@@ -36709,7 +36876,7 @@ var _NLDDToggleButton = class NLDDToggleButton extends DescribedBy(FormAssociate
36709
36876
  /**
36710
36877
  * The tooltip of an icon-only button, which shows itself when focus moves
36711
36878
  * into it. In radio mode the focus is on this element, outside it, so it
36712
- * hears about focus and Escape from here.
36879
+ * hears about focus from here. Escape it hears by itself, from the document.
36713
36880
  */
36714
36881
  get _tooltip() {
36715
36882
  return this.type === "radio" ? this.shadowRoot?.querySelector("nldd-tooltip") ?? null : null;
@@ -38126,39 +38293,61 @@ NLDDTokenField = _NLDDTokenField = __decorate([customElement("nldd-token-field")
38126
38293
  //#endregion
38127
38294
  //#region src/utilities/scroll-mode-controller.ts
38128
38295
  /** Bubbling + composed event a horizontal split view fires when it collapses to
38129
- * (or expands out of) a single visible column. nldd-app-view listens for it to
38296
+ * (or expands out of) a single visible column. nldd-shell listens for it to
38130
38297
  * derive the document-vs-nested scroll mode. */
38131
38298
  var SINGLE_COLUMN_CHANGE_EVENT = "nldd-single-column-change";
38132
- /** Nearest ancestor app-view (light-DOM `closest`; slotted layers stay in the
38299
+ var PROVIDER_SELECTOR = "nldd-shell, nldd-sheet, nldd-modal-dialog";
38300
+ /** Nearest ancestor shell (light-DOM `closest`; slotted layers stay in the
38133
38301
  * consumer's light tree so this reaches across the slot boundaries), or null
38134
38302
  * when a layer is used stand-alone (e.g. a bare page in the docs).
38135
38303
  *
38136
38304
  * An overlay ends the search: a sheet or a modal dialog is its own scroll
38137
38305
  * container and its own top edge, so a page inside one owns its scroller
38138
- * whatever the app around it does. Without this the app-view would push its
38306
+ * whatever the app around it does. Without this the shell would push its
38139
38307
  * root mode straight through the overlay and the page's sticky header would
38140
38308
  * stick against the document, over the content of the overlay. The overlays
38141
38309
  * reset --context-scroll-mode as well, which is what the stand-alone read
38142
38310
  * below then finds. */
38143
38311
  function findScrollModeProvider(host) {
38144
- const el = host.closest?.("nldd-app-view, nldd-sheet, nldd-modal-dialog");
38312
+ const el = host.closest?.(PROVIDER_SELECTOR);
38145
38313
  return el && "registerScrollConsumer" in el ? el : null;
38146
38314
  }
38147
38315
  /**
38316
+ * Hands `adopt` the provider above `host` once it is defined, when it was not
38317
+ * yet at the moment `host` connected.
38318
+ *
38319
+ * Custom elements upgrade in the order their modules are defined, and an app
38320
+ * does not control that: importing nldd-sidebar-section defines nldd-page, and
38321
+ * a route that loads before its shell defines the page before the shell. The
38322
+ * provider is then in the DOM but has no `registerScrollConsumer` yet, so
38323
+ * findScrollModeProvider returns null and the layer starts out stand-alone.
38324
+ * This lets it register as soon as the provider is defined. Nothing happens
38325
+ * when the host has left the DOM by then, or sits under another provider.
38326
+ */
38327
+ function whenScrollModeProviderDefined(host, adopt) {
38328
+ const el = host.closest?.(PROVIDER_SELECTOR);
38329
+ if (!el || "registerScrollConsumer" in el) return;
38330
+ customElements.whenDefined(el.localName).then(() => {
38331
+ if (!host.isConnected) return;
38332
+ const provider = findScrollModeProvider(host);
38333
+ if (provider && provider === el) adopt(provider);
38334
+ });
38335
+ }
38336
+ /**
38148
38337
  * Reads the inherited `--context-scroll-mode` and reflects it to the host's
38149
38338
  * `[data-scroll]` attribute so CSS can branch.
38150
38339
  *
38151
- * In root-scroll mode the DOCUMENT scrolls (see nldd-app-view): every layout
38152
- * layer between the document and an nldd-page — app-view, the split views and
38340
+ * In root-scroll mode the DOCUMENT scrolls (see nldd-shell): every layout
38341
+ * layer between the document and an nldd-page — shell, the split views and
38153
38342
  * their panes — must flow (overflow: visible) instead of clipping, so the page's
38154
38343
  * sticky header/footer can stick against the document. Rather than duplicate the
38155
38344
  * read-and-reflect logic in each of those components, they share this controller.
38156
38345
  *
38157
- * The mode is derived upstream by nldd-app-view. When an app-view is present the
38158
- * host registers as a consumer and app-view pushes an authoritative re-read on
38346
+ * The mode is derived upstream by nldd-shell. When a shell is present the
38347
+ * host registers as a consumer and shell pushes an authoritative re-read on
38159
38348
  * every change (a bare `--context-scroll-mode` update would otherwise not reach
38160
38349
  * the resize-polling layers in time — rAF runs before ResizeObserver). Without
38161
- * an app-view (a stand-alone page), it falls back to re-reading on window resize
38350
+ * a shell (a stand-alone page), it falls back to re-reading on window resize
38162
38351
  * so a manual/media-query override still works. `nldd-page` keeps its own inline
38163
38352
  * logic because it also has to re-wire scroll listeners.
38164
38353
  */
@@ -38167,6 +38356,12 @@ var ScrollModeController = class {
38167
38356
  this.mode = "nested";
38168
38357
  this._raf = 0;
38169
38358
  this._provider = null;
38359
+ this._adopt = (provider) => {
38360
+ if (this._provider) return;
38361
+ window.removeEventListener("resize", this._onResize);
38362
+ this._provider = provider;
38363
+ provider.registerScrollConsumer(this);
38364
+ };
38170
38365
  this._onResize = () => {
38171
38366
  if (this._raf) return;
38172
38367
  this._raf = requestAnimationFrame(() => {
@@ -38184,6 +38379,7 @@ var ScrollModeController = class {
38184
38379
  else {
38185
38380
  window.addEventListener("resize", this._onResize, { passive: true });
38186
38381
  this.read();
38382
+ whenScrollModeProviderDefined(this._host, this._adopt);
38187
38383
  }
38188
38384
  }
38189
38385
  hostDisconnected() {
@@ -38194,11 +38390,11 @@ var ScrollModeController = class {
38194
38390
  if (this._raf) cancelAnimationFrame(this._raf);
38195
38391
  }
38196
38392
  /**
38197
- * ScrollModeConsumer — nldd-app-view pushes the mode it derived. When a mode is
38393
+ * ScrollModeConsumer — nldd-shell pushes the mode it derived. When a mode is
38198
38394
  * passed it is applied directly; this is race-free, whereas re-reading
38199
38395
  * `getComputedStyle` during a synchronous push can return a stale value for a
38200
38396
  * deeply-nested host (the var may not have propagated through an ancestor's
38201
- * pending re-render yet). With no argument (resize / no app-view) the inherited
38397
+ * pending re-render yet). With no argument (resize / no shell) the inherited
38202
38398
  * var is re-read instead.
38203
38399
  */
38204
38400
  readScrollMode(mode) {
@@ -38217,8 +38413,8 @@ var ScrollModeController = class {
38217
38413
  }
38218
38414
  };
38219
38415
  //#endregion
38220
- //#region src/components/layout/app-view/app-view.styles.ts
38221
- var appViewStyles = css`
38416
+ //#region src/components/layout/shell/shell.styles.ts
38417
+ var shellStyles = css`
38222
38418
  :host {
38223
38419
  box-sizing: border-box;
38224
38420
  }
@@ -38228,10 +38424,10 @@ var appViewStyles = css`
38228
38424
 
38229
38425
  :host {
38230
38426
  --context-parent-background-color: var(--semantics-surfaces-base-background-color);
38231
- --_app-view-background-color: var(--context-parent-background-color);
38427
+ --_shell-background-color: var(--context-parent-background-color);
38232
38428
 
38233
38429
  display: flex;
38234
- background-color: var(--_app-view-background-color);
38430
+ background-color: var(--_shell-background-color);
38235
38431
  width: 100%;
38236
38432
  height: 100%;
38237
38433
  }
@@ -38242,11 +38438,11 @@ var appViewStyles = css`
38242
38438
 
38243
38439
  :host([background="tinted"]) {
38244
38440
  --context-parent-background-color: var(--semantics-surfaces-tinted-background-color);
38245
- --_app-view-background-color: var(--semantics-surfaces-tinted-background-color);
38441
+ --_shell-background-color: var(--semantics-surfaces-tinted-background-color);
38246
38442
  }
38247
38443
 
38248
38444
  /* Root-scroll mode — the DOCUMENT scrolls (see ScrollModeController +
38249
- --context-scroll-mode). The app-view is the outermost DS layer, so it grows
38445
+ --context-scroll-mode). The shell is the outermost DS layer, so it grows
38250
38446
  with its content (min-height fills the viewport for short pages), letting a
38251
38447
  descendant nldd-page's sticky layers stick against the document. */
38252
38448
  :host([data-scroll="root"]) {
@@ -38257,7 +38453,7 @@ var appViewStyles = css`
38257
38453
 
38258
38454
  /* # Block */
38259
38455
 
38260
- .app-view {
38456
+ .shell {
38261
38457
  display: flex;
38262
38458
  min-width: 0;
38263
38459
  min-height: 0;
@@ -38270,7 +38466,7 @@ var appViewStyles = css`
38270
38466
 
38271
38467
  /* Root-scroll mode — row axis untouched (this is a column block but a row item
38272
38468
  of the host); only stop clipping so descendant sticky layers can escape. */
38273
- :host([data-scroll="root"]) .app-view {
38469
+ :host([data-scroll="root"]) .shell {
38274
38470
  overflow: visible;
38275
38471
  }
38276
38472
 
@@ -38295,18 +38491,18 @@ var appViewStyles = css`
38295
38491
  }
38296
38492
  `;
38297
38493
  //#endregion
38298
- //#region src/components/layout/app-view/app-view.template.ts
38299
- function appViewTemplate(_component) {
38494
+ //#region src/components/layout/shell/shell.template.ts
38495
+ function shellTemplate(_component) {
38300
38496
  return html`
38301
- <div class="app-view">
38497
+ <div class="shell">
38302
38498
  <slot></slot>
38303
38499
  </div>
38304
38500
  `;
38305
38501
  }
38306
38502
  //#endregion
38307
- //#region src/components/layout/app-view/app-view.ts
38503
+ //#region src/components/layout/shell/shell.ts
38308
38504
  /**
38309
- * Nederlandse Digitale Dienst App View Component (Lit + TypeScript)
38505
+ * Nederlandse Digitale Dienst Shell Component (Lit + TypeScript)
38310
38506
  *
38311
38507
  * The required root shell of a Nederlandse Digitale Dienst application. Always contains
38312
38508
  * a split view or an nldd-page as direct content.
@@ -38314,20 +38510,20 @@ function appViewTemplate(_component) {
38314
38510
  * ## Typography
38315
38511
  * The document font comes from the package stylesheet
38316
38512
  * (`@nldd/design-system/styles`), not from this component: it gives `body` the
38317
- * body font and content color as soon as an app-view is on the page, inside
38513
+ * body font and content color as soon as a shell is on the page, inside
38318
38514
  * `@layer reset` so any rule of your own wins. Import only the tokens
38319
38515
  * (`/styles/tokens`) and text you write in the light DOM keeps the browser
38320
38516
  * default.
38321
38517
  *
38322
38518
  * ## Background color
38323
38519
  * Set background="tinted" to give the whole application a tinted background.
38324
- * All descendants read --context-parent-background-color via --_app-view-background-color automatically.
38520
+ * All descendants read --context-parent-background-color via --_shell-background-color automatically.
38325
38521
  * Individual components can override locally with their own background attribute.
38326
38522
  *
38327
38523
  * The same background color is forced on `document.body` so that browser-
38328
38524
  * chrome surfaces (iOS overscroll bounce, status bar, page-margin areas)
38329
38525
  * blend with the app instead of revealing the user-agent's default white.
38330
- * Cleared when the app-view disconnects.
38526
+ * Cleared when the shell disconnects.
38331
38527
  *
38332
38528
  * ## Scroll mode
38333
38529
  * The app scrolls the DOCUMENT (root mode) or lets each `nldd-page` scroll
@@ -38336,31 +38532,31 @@ function appViewTemplate(_component) {
38336
38532
  * mean the panes do. An app without such a split view is a single column at
38337
38533
  * every width and therefore scrolls the document too — nested scrolling would
38338
38534
  * cost it the rubber-band and the collapsing browser toolbar on iOS for nothing.
38339
- * Set `--context-scroll-mode` on the `nldd-app-view` itself to override the
38535
+ * Set `--context-scroll-mode` on the `nldd-shell` itself to override the
38340
38536
  * derived mode; an inherited value loses from it.
38341
38537
  *
38342
38538
  * ## Overscroll
38343
38539
  * In nested scroll mode `overscroll-behavior: none` is set on
38344
- * `document.documentElement` and `document.body` while the app-view is
38540
+ * `document.documentElement` and `document.body` while the shell is
38345
38541
  * connected. Combined with `overscroll-behavior: contain` on `nldd-page`'s
38346
38542
  * scroll target, this prevents iOS rubber-band on the viewport when scroll
38347
38543
  * gestures land outside an `nldd-page` (e.g. on a top-bar). In root scroll mode
38348
38544
  * the document itself is the scroller, so this is lifted to let the native
38349
38545
  * rubber-band happen. Cleared on last disconnect.
38350
38546
  *
38351
- * @element nldd-app-view
38547
+ * @element nldd-shell
38352
38548
  *
38353
38549
  * @attr {'base'|'tinted'} background - Background color (cascades to descendants)
38354
38550
  *
38355
38551
  * @slot - Default slot for the application content
38356
38552
  */
38357
- var _NLDDAppView;
38553
+ var _NLDDShell;
38358
38554
  var _connectedStack = [];
38359
38555
  function _currentOwner() {
38360
38556
  for (let i = _connectedStack.length - 1; i >= 0; i--) if (_connectedStack[i].isConnected) return _connectedStack[i];
38361
38557
  return null;
38362
38558
  }
38363
- var NLDDAppView = (_NLDDAppView = class NLDDAppView extends LitElement {
38559
+ var NLDDShell = (_NLDDShell = class NLDDShell extends LitElement {
38364
38560
  constructor(..._args) {
38365
38561
  super(..._args);
38366
38562
  this.background = "base";
@@ -38390,7 +38586,7 @@ var NLDDAppView = (_NLDDAppView = class NLDDAppView extends LitElement {
38390
38586
  * split view and push it to every registered layer. Without such a split view
38391
38587
  * the app is a single column at any width, so it scrolls the document: nested
38392
38588
  * scrolling costs you the rubber-band and the collapsing browser toolbar on
38393
- * iOS for nothing. Set `--context-scroll-mode: nested` on the `nldd-app-view`
38589
+ * iOS for nothing. Set `--context-scroll-mode: nested` on the `nldd-shell`
38394
38590
  * itself to override (an inherited value loses from the derived one).
38395
38591
  */
38396
38592
  _evaluateScrollMode() {
@@ -38443,14 +38639,14 @@ var NLDDAppView = (_NLDDAppView = class NLDDAppView extends LitElement {
38443
38639
  document.body.style.backgroundColor = `var(${token})`;
38444
38640
  }
38445
38641
  render() {
38446
- return appViewTemplate(this);
38642
+ return shellTemplate(this);
38447
38643
  }
38448
- }, _NLDDAppView.styles = appViewStyles, _NLDDAppView);
38644
+ }, _NLDDShell.styles = shellStyles, _NLDDShell);
38449
38645
  __decorate([property({
38450
38646
  reflect: true,
38451
38647
  converter: reflectNonDefault("base")
38452
- })], NLDDAppView.prototype, "background", void 0);
38453
- NLDDAppView = __decorate([customElement("nldd-app-view")], NLDDAppView);
38648
+ })], NLDDShell.prototype, "background", void 0);
38649
+ NLDDShell = __decorate([customElement("nldd-shell")], NLDDShell);
38454
38650
  //#endregion
38455
38651
  //#region src/components/layout/split-views/bar-split-view/bar-split-view.styles.ts
38456
38652
  var barSplitViewStyles = css`
@@ -39446,7 +39642,7 @@ var _NLDDNavigationSplitView = class NLDDNavigationSplitView extends LitElement
39446
39642
  return this.querySelector(":scope > [slot=\"inspector\"]") !== null;
39447
39643
  }
39448
39644
  /**
39449
- * True when collapsed to a single visible pane (full-stack). nldd-app-view
39645
+ * True when collapsed to a single visible pane (full-stack). nldd-shell
39450
39646
  * reads this — and listens for the `single-column-change` event below — to
39451
39647
  * switch the whole app to document-level scroll.
39452
39648
  * @internal
@@ -39892,7 +40088,7 @@ var _NLDDSideBySideSplitView = class NLDDSideBySideSplitView extends LitElement
39892
40088
  if (changed.has("panes")) this._updateVisiblePanes();
39893
40089
  }
39894
40090
  /**
39895
- * True when only one pane fits. nldd-app-view reads this — and listens for the
40091
+ * True when only one pane fits. nldd-shell reads this — and listens for the
39896
40092
  * `single-column-change` event below — to switch to document-level scroll.
39897
40093
  * @internal
39898
40094
  */
@@ -40339,7 +40535,7 @@ var pageStyles = css`
40339
40535
  overflow: hidden;
40340
40536
  }
40341
40537
 
40342
- /* Root-scroll mode: the DOCUMENT scrolls (see nldd-app-view), not the page.
40538
+ /* Root-scroll mode: the DOCUMENT scrolls (see nldd-shell), not the page.
40343
40539
  The page stops owning an inner scroll container and its sticky-header/footer
40344
40540
  stick against the document, offset by the insets above and below
40345
40541
  (--context-inset-top/bottom, published by any bars outside the page). The mode is derived upstream and
@@ -40548,7 +40744,7 @@ function pageTemplate(component) {
40548
40744
  * content up under the cursor.
40549
40745
  *
40550
40746
  * In root-scroll mode (--context-scroll-mode: root, derived upstream by
40551
- * nldd-app-view) the page stops owning a scroller: the document scrolls and the
40747
+ * nldd-shell) the page stops owning a scroller: the document scrolls and the
40552
40748
  * sticky header/footer stick against the document, offset by
40553
40749
  * --context-inset-top/bottom. The mode is read on connect/resize and reflected
40554
40750
  * to [data-scroll] so the CSS can branch.
@@ -40632,7 +40828,15 @@ var NLDDPage = (_NLDDPage = class NLDDPage extends LitElement {
40632
40828
  this._insetObserver = null;
40633
40829
  this._headerFullHeight = 0;
40634
40830
  this._mainSlot = null;
40831
+ this._mainAttrObserver = null;
40635
40832
  this._resizeRaf = 0;
40833
+ this._adoptScrollProvider = (provider) => {
40834
+ if (this._scrollProvider) return;
40835
+ window.removeEventListener("resize", this._onResize);
40836
+ this._scrollProvider = provider;
40837
+ provider.registerScrollConsumer(this);
40838
+ if (this.hasUpdated) this._configureScroll();
40839
+ };
40636
40840
  this._onResize = () => {
40637
40841
  if (this._resizeRaf) return;
40638
40842
  this._resizeRaf = requestAnimationFrame(() => {
@@ -40648,8 +40852,9 @@ var NLDDPage = (_NLDDPage = class NLDDPage extends LitElement {
40648
40852
  if (!slot) return;
40649
40853
  const items = slot.assignedElements();
40650
40854
  const visible = items.filter((el) => !el.hasAttribute("hidden"));
40651
- const last = visible[visible.length - 1];
40652
- items.forEach((el) => el.classList.toggle("is-last", el === last));
40855
+ const chosen = visible.filter((el) => el.hasAttribute("grow"));
40856
+ const growing = chosen.length > 0 ? chosen : visible.slice(-1);
40857
+ items.forEach((el) => el.toggleAttribute("data-growing", growing.includes(el)));
40653
40858
  };
40654
40859
  }
40655
40860
  /** True when this page renders a section instead of the document landmarks. @internal */
@@ -40725,6 +40930,7 @@ var NLDDPage = (_NLDDPage = class NLDDPage extends LitElement {
40725
40930
  this._readScrollMode();
40726
40931
  this._configureScroll();
40727
40932
  }
40933
+ whenScrollModeProviderDefined(this, this._adoptScrollProvider);
40728
40934
  }
40729
40935
  }
40730
40936
  disconnectedCallback() {
@@ -40748,8 +40954,8 @@ var NLDDPage = (_NLDDPage = class NLDDPage extends LitElement {
40748
40954
  this._warnOnSecondMain();
40749
40955
  }
40750
40956
  /**
40751
- * ScrollModeConsumer — nldd-app-view pushes the derived mode here; called with
40752
- * no argument (resize / no app-view) it re-reads the inherited var. @internal
40957
+ * ScrollModeConsumer — nldd-shell pushes the derived mode here; called with
40958
+ * no argument (resize / no shell) it re-reads the inherited var. @internal
40753
40959
  */
40754
40960
  readScrollMode(mode) {
40755
40961
  if (this._readScrollMode(mode)) this._configureScroll();
@@ -40844,6 +41050,14 @@ var NLDDPage = (_NLDDPage = class NLDDPage extends LitElement {
40844
41050
  this._mainSlot = slot;
40845
41051
  if (!slot) return;
40846
41052
  slot.addEventListener("slotchange", this._updateMainItems);
41053
+ this._mainAttrObserver = new MutationObserver((records) => {
41054
+ if (records.some((record) => record.target.parentElement === this)) this._updateMainItems();
41055
+ });
41056
+ this._mainAttrObserver.observe(this, {
41057
+ attributes: true,
41058
+ attributeFilter: ["grow", "hidden"],
41059
+ subtree: true
41060
+ });
40847
41061
  this._updateMainItems();
40848
41062
  }
40849
41063
  _teardownMainSlotListener() {
@@ -40851,6 +41065,8 @@ var NLDDPage = (_NLDDPage = class NLDDPage extends LitElement {
40851
41065
  this._mainSlot.removeEventListener("slotchange", this._updateMainItems);
40852
41066
  this._mainSlot = null;
40853
41067
  }
41068
+ this._mainAttrObserver?.disconnect();
41069
+ this._mainAttrObserver = null;
40854
41070
  }
40855
41071
  render() {
40856
41072
  return pageTemplate(this);
@@ -40932,6 +41148,10 @@ var PADDING_KEYS = [
40932
41148
  * - **height**: any CSS length (e.g. '400px', '100dvh') applied as the host's
40933
41149
  * min-height (so the section is at least that tall) — mirroring how `width`
40934
41150
  * maps to the body max-width.
41151
+ * - **grow**: the section takes the height the page has left, so the footer
41152
+ * sits at the bottom of a short page. Without it, nldd-page lets its last
41153
+ * section grow. nldd-page reads this and marks the growing section with
41154
+ * `data-growing`; it never writes `grow`, which stays the author's.
40935
41155
  *
40936
41156
  * @example
40937
41157
  * ```ts
@@ -40943,6 +41163,7 @@ function PageSectionMixin(Base) {
40943
41163
  constructor(..._args) {
40944
41164
  super(..._args);
40945
41165
  this.background = "inherit";
41166
+ this.grow = false;
40946
41167
  }
40947
41168
  updated(changed) {
40948
41169
  super.updated(changed);
@@ -40989,13 +41210,17 @@ function PageSectionMixin(Base) {
40989
41210
  }
40990
41211
  }
40991
41212
  __decorate([property({
40992
- type: String,
40993
- reflect: true
41213
+ reflect: true,
41214
+ converter: reflectNonDefault("inherit")
40994
41215
  })], WithPageSection.prototype, "background", void 0);
40995
41216
  __decorate([property({
40996
41217
  type: String,
40997
41218
  reflect: true
40998
41219
  })], WithPageSection.prototype, "height", void 0);
41220
+ __decorate([property({
41221
+ type: Boolean,
41222
+ reflect: true
41223
+ })], WithPageSection.prototype, "grow", void 0);
40999
41224
  __decorate([property({
41000
41225
  type: String,
41001
41226
  reflect: true,
@@ -41097,8 +41322,8 @@ var simpleSectionStyles = css`
41097
41322
  display: none;
41098
41323
  }
41099
41324
 
41100
- :host(:last-child),
41101
- :host(.is-last) {
41325
+ :host([data-growing]),
41326
+ :host([grow]) {
41102
41327
  flex-grow: 1;
41103
41328
  }
41104
41329
 
@@ -41244,6 +41469,7 @@ function simpleSectionTemplate(component) {
41244
41469
  * @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
41245
41470
  * @attr {string} [width] - Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.
41246
41471
  * @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
41472
+ * @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
41247
41473
  * @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
41248
41474
  * @attr {string} [padding-top] - Top padding override.
41249
41475
  * @attr {string} [padding-bottom] - Bottom padding override.
@@ -41277,8 +41503,8 @@ var _NLDDSimpleSection = class NLDDSimpleSection extends PageSectionMixin(LitEle
41277
41503
  };
41278
41504
  var NLDDSimpleSection = (_NLDDSimpleSection.styles = simpleSectionStyles, _NLDDSimpleSection);
41279
41505
  __decorate([property({
41280
- type: String,
41281
- reflect: true
41506
+ reflect: true,
41507
+ converter: reflectNonDefault("")
41282
41508
  })], NLDDSimpleSection.prototype, "width", void 0);
41283
41509
  __decorate([property({
41284
41510
  reflect: true,
@@ -41320,10 +41546,19 @@ var heroStyles = css`
41320
41546
  --_hero-lg-padding-bottom: initial;
41321
41547
  --_hero-max-width: var(--semantics-page-sections-body-max-width);
41322
41548
  --_hero-media-aspect-ratio: 21 / 9;
41323
- --_hero-main-width: 50%;
41549
+ --_hero-media-height: auto;
41550
+ --_hero-main-min-width: var(--primitives-area-480);
41551
+ --_hero-main-max-width: var(--primitives-area-640);
41552
+ --_hero-main-width: auto;
41324
41553
  --_hero-main-background-color: var(--semantics-categories-accent-reference-background-color);
41325
41554
  --_hero-main-content-color: var(--semantics-categories-accent-reference-content-color);
41326
41555
  --_hero-main-padding: var(--primitives-space-16);
41556
+ --_hero-main-inset: var(--primitives-space-0);
41557
+ --_hero-sm-main-inset: var(--semantics-page-sections-sm-gap);
41558
+ --_hero-sm-main-overlap: var(--primitives-space-48);
41559
+ --_hero-overlap-size: initial;
41560
+ --_hero-default-overlap-size: var(--primitives-space-0);
41561
+ --_hero-default-media-height: auto;
41327
41562
 
41328
41563
  ${inheritedTextReset}
41329
41564
  display: flex;
@@ -41336,8 +41571,8 @@ var heroStyles = css`
41336
41571
  display: none;
41337
41572
  }
41338
41573
 
41339
- :host(:last-child),
41340
- :host(.is-last) {
41574
+ :host([data-growing]),
41575
+ :host([grow]) {
41341
41576
  flex-grow: 1;
41342
41577
  }
41343
41578
 
@@ -41345,18 +41580,6 @@ var heroStyles = css`
41345
41580
  --_hero-max-width: none;
41346
41581
  }
41347
41582
 
41348
- :host([main-width="2/3"]) {
41349
- --_hero-main-width: 66.667%;
41350
- }
41351
-
41352
- :host([main-width="3/4"]) {
41353
- --_hero-main-width: 75%;
41354
- }
41355
-
41356
- :host([main-width="full"]) {
41357
- --_hero-main-width: 100%;
41358
- }
41359
-
41360
41583
  :host([main-background="base"]) {
41361
41584
  --_hero-main-background-color: var(--semantics-surfaces-base-background-color);
41362
41585
  --_hero-main-content-color: var(--semantics-content-color);
@@ -41469,21 +41692,27 @@ var heroStyles = css`
41469
41692
 
41470
41693
  @container (max-width: ${smMax$11}) {
41471
41694
  padding-inline: var(--semantics-page-sections-sm-margin-inline);
41472
- padding-top: var(--_hero-sm-padding-top, var(--_hero-padding-top, var(--semantics-page-sections-sm-margin-block)));
41695
+ padding-top: var(--_hero-sm-padding-top, var(--_hero-padding-top, calc(var(--semantics-page-sections-sm-margin-block) / 2)));
41473
41696
  padding-bottom: var(--_hero-sm-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-sm-margin-block)));
41474
41697
  }
41475
41698
 
41476
41699
  @container (min-width: ${mdMin$10}) and (max-width: ${mdMax$8}) {
41477
41700
  --_hero-main-padding: var(--primitives-space-24);
41701
+ --_hero-main-inset: var(--semantics-page-sections-md-gap);
41702
+ --_hero-default-overlap-size: var(--primitives-area-160);
41703
+ --_hero-default-media-height: var(--primitives-area-320);
41478
41704
  padding-inline: var(--semantics-page-sections-md-margin-inline);
41479
- padding-top: var(--_hero-md-padding-top, var(--_hero-padding-top, var(--semantics-page-sections-md-margin-block)));
41705
+ padding-top: var(--_hero-md-padding-top, var(--_hero-padding-top, calc(var(--semantics-page-sections-md-margin-block) / 2)));
41480
41706
  padding-bottom: var(--_hero-md-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-md-margin-block)));
41481
41707
  }
41482
41708
 
41483
41709
  @container (min-width: ${lgMin$9}) {
41484
41710
  --_hero-main-padding: var(--primitives-space-32);
41711
+ --_hero-main-inset: var(--semantics-page-sections-lg-gap);
41712
+ --_hero-default-overlap-size: var(--primitives-area-160);
41713
+ --_hero-default-media-height: var(--primitives-area-400);
41485
41714
  padding-inline: var(--semantics-page-sections-lg-margin-inline);
41486
- padding-top: var(--_hero-lg-padding-top, var(--_hero-padding-top, var(--semantics-page-sections-lg-margin-block)));
41715
+ padding-top: var(--_hero-lg-padding-top, var(--_hero-padding-top, calc(var(--semantics-page-sections-lg-margin-block) / 2)));
41487
41716
  padding-bottom: var(--_hero-lg-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-lg-margin-block)));
41488
41717
  }
41489
41718
  }
@@ -41499,13 +41728,16 @@ var heroStyles = css`
41499
41728
  .hero__body {
41500
41729
  display: grid;
41501
41730
  position: relative;
41502
- background-color: var(--_hero-main-background-color);
41503
41731
  width: 100%;
41504
41732
  max-width: var(--_hero-max-width);
41505
41733
  flex-grow: 1;
41506
41734
  grid-template-columns: 100%;
41507
41735
  }
41508
41736
 
41737
+ :host(:not([data-has-media])) .hero__body {
41738
+ background-color: var(--_hero-main-background-color);
41739
+ }
41740
+
41509
41741
  /* Without media a base-colored panel would be invisible on the base surface;
41510
41742
  give it a full border so the rectangle reads. */
41511
41743
  :host(:not([data-has-media])[main-background="base"]) .hero__body {
@@ -41518,9 +41750,10 @@ var heroStyles = css`
41518
41750
  (instead of aspect-ratio on the body) keeps growth content-driven
41519
41751
  rather than rigidly tied to the width. align-self: start stops the
41520
41752
  stretch fit from cancelling the ratio. */
41521
- :host([data-has-media]:not([main-width="full"])) .hero__body::before {
41753
+ :host([data-has-media]) .hero__body::before {
41522
41754
  @container (min-width: ${mdMin$10}) {
41523
41755
  content: '';
41756
+ height: var(--_hero-media-height);
41524
41757
  aspect-ratio: var(--_hero-media-aspect-ratio);
41525
41758
  grid-area: 1 / 1;
41526
41759
  align-self: start;
@@ -41554,7 +41787,11 @@ var heroStyles = css`
41554
41787
  object-fit: cover !important;
41555
41788
  }
41556
41789
 
41790
+ /* Two heights: the host fills the media area, and the variable makes the
41791
+ image inside the host fill the host. Without either one it collapses. */
41557
41792
  .hero__media ::slotted(nldd-image) {
41793
+ --context-image-height: 100%;
41794
+
41558
41795
  display: block !important;
41559
41796
  width: 100% !important;
41560
41797
  height: 100% !important;
@@ -41583,7 +41820,9 @@ var heroStyles = css`
41583
41820
  align-self: end;
41584
41821
  justify-self: start;
41585
41822
  background-color: var(--_hero-main-background-color);
41586
- width: var(--_hero-main-width);
41823
+ width: fit-content;
41824
+ min-width: min(var(--_hero-main-min-width), 100% - 2 * var(--_hero-main-inset));
41825
+ max-width: min(var(--_hero-main-max-width), 100% - 2 * var(--_hero-main-inset));
41587
41826
  padding: var(--_hero-main-padding);
41588
41827
  flex-direction: column;
41589
41828
  color: var(--_hero-main-content-color);
@@ -41591,6 +41830,26 @@ var heroStyles = css`
41591
41830
 
41592
41831
  :host(:not([data-has-media])) .hero__main {
41593
41832
  width: 100%;
41833
+ min-width: 0;
41834
+ max-width: none;
41835
+ }
41836
+
41837
+ :host([data-has-media]) .hero__main {
41838
+ margin: var(--_hero-main-inset);
41839
+ }
41840
+
41841
+ :host([data-has-media][data-main-width-length]) .hero__main {
41842
+ @container (min-width: ${mdMin$10}) {
41843
+ width: var(--_hero-main-width);
41844
+ min-width: 0;
41845
+ max-width: calc(100% - 2 * var(--_hero-main-inset));
41846
+ }
41847
+ }
41848
+
41849
+ :host([data-has-media][main-width="full"]) .hero__main {
41850
+ width: auto;
41851
+ max-width: none;
41852
+ justify-self: stretch;
41594
41853
  }
41595
41854
 
41596
41855
  :host([main-position="top-left"]) .hero__main {
@@ -41606,6 +41865,15 @@ var heroStyles = css`
41606
41865
  justify-self: end;
41607
41866
  }
41608
41867
 
41868
+ :host([main-position="bottom-center"]) .hero__main {
41869
+ justify-self: center;
41870
+ }
41871
+
41872
+ :host([main-position="top-center"]) .hero__main {
41873
+ align-self: start;
41874
+ justify-self: center;
41875
+ }
41876
+
41609
41877
  :host([main-position="left"]) .hero__main {
41610
41878
  align-self: stretch;
41611
41879
  }
@@ -41622,32 +41890,38 @@ var heroStyles = css`
41622
41890
  }
41623
41891
 
41624
41892
 
41625
- /* # Full-width strip (md+)
41626
- With main-width="full" the panel is a full top or bottom strip and the
41627
- media stacks on the opposite side instead of sitting behind it. Switch the
41628
- body to a column so the two blocks stack: a bottom panel keeps the media on
41629
- top, a top panel (column-reverse) drops it below. The media keeps the
41630
- overlay's 21/9 strip. Below sm every layout already stacks, so this only
41631
- targets md and up. */
41893
+ /* # Overlap (md+) — the media keeps a fixed height; the panel sits in the
41894
+ row below it, pulled up over it by the overlap size. */
41632
41895
 
41633
41896
  @container (min-width: ${mdMin$10}) {
41634
- :host([data-has-media][main-width="full"]) .hero__body {
41635
- display: flex;
41636
- flex-direction: column;
41897
+ :host([data-has-media]:not([layout="contained"])) .hero__body::before {
41898
+ content: none;
41899
+ }
41900
+
41901
+ :host([data-has-media]:not([layout="contained"])) .hero__media {
41902
+ position: relative;
41903
+ width: 100%;
41904
+ height: var(--_hero-media-height);
41905
+ aspect-ratio: var(--_hero-media-aspect-ratio);
41906
+ grid-area: 1 / 1;
41907
+ align-self: start;
41637
41908
  }
41638
41909
 
41639
- :host([data-has-media][main-width="full"]:is([main-position="top-left"], [main-position="top-right"])) .hero__body {
41640
- flex-direction: column-reverse;
41910
+ :host([data-has-media]:not([layout="contained"]):not([media-height], [media-aspect-ratio])) .hero__media {
41911
+ height: var(--_hero-default-media-height);
41641
41912
  }
41642
41913
 
41643
- :host([data-has-media][main-width="full"]) .hero__media {
41644
- position: static;
41645
- aspect-ratio: var(--_hero-media-aspect-ratio);
41914
+ :host([data-has-media]:not([layout="contained"])) .hero__main {
41915
+ margin-top: calc(-1 * var(--_hero-overlap-size, var(--_hero-default-overlap-size)));
41916
+ margin-bottom: 0;
41917
+ grid-area: 2 / 1;
41918
+ align-self: start;
41646
41919
  }
41647
41920
  }
41648
41921
 
41649
41922
 
41650
- /* # Mobile — stack media over a full-width panel. */
41923
+ /* # Mobile — the media on top, the panel below it, indented and overlapping
41924
+ it a little. */
41651
41925
 
41652
41926
  @container (max-width: ${smMax$11}) {
41653
41927
  .hero__body {
@@ -41655,18 +41929,24 @@ var heroStyles = css`
41655
41929
  flex-direction: column;
41656
41930
  }
41657
41931
 
41658
- :host(:is([main-position="top-left"], [main-position="top-right"])) .hero__body {
41659
- flex-direction: column-reverse;
41660
- }
41661
-
41662
41932
  .hero__media {
41663
41933
  position: static;
41934
+ width: 100%;
41935
+ height: var(--_hero-media-height);
41664
41936
  overflow: hidden;
41665
41937
  aspect-ratio: var(--_hero-media-aspect-ratio);
41666
41938
  }
41667
41939
 
41668
41940
  .hero__main {
41669
41941
  width: 100%;
41942
+ min-width: 0;
41943
+ max-width: none;
41944
+ }
41945
+
41946
+ :host([data-has-media]) .hero__main {
41947
+ margin: calc(-1 * var(--_hero-sm-main-overlap)) var(--_hero-sm-main-inset) 0;
41948
+ width: auto;
41949
+ align-self: stretch;
41670
41950
  }
41671
41951
  }
41672
41952
  `;
@@ -41705,15 +41985,40 @@ function heroTemplate(component) {
41705
41985
  /**
41706
41986
  * Nederlandse Digitale Dienst Hero Component (Lit + TypeScript)
41707
41987
  *
41708
- * A page header with a media area and a text panel (the main) that can stand in
41709
- * six positions. Every area is rectangular.
41710
- *
41711
- * With `main-width="full"` the media area sits as its own strip above or below
41712
- * the panel rather than behind it. On mobile the media always stacks above the
41713
- * full-width panel. Without media the main fills the whole area; with
41988
+ * The section that says what a page is for: it names the main goal of what
41989
+ * you can find there, draws the eye and is the visual welcome. It has a media
41990
+ * area and a text panel (the main) that can stand in eight positions. Every
41991
+ * area is rectangular. Use it on pages where a visitor first has to know where
41992
+ * they are, such as a home or a topic page; where the title already does
41993
+ * that, a section with a title is enough.
41994
+ *
41995
+ * The image in a hero sets the mood and is never the main content, so the
41996
+ * panel always stands on it. Over an image the panel keeps a section gap from
41997
+ * its edges, so it reads as a panel on the image rather than a frame cut out of
41998
+ * it; with `main-width="full"` it is a strip across the whole image, the same
41999
+ * gap from the sides. On mobile the image comes first and the panel below it,
42000
+ * indented by the section gap and overlapping the image by 48px. For an
42001
+ * image beside text without that relation, use a section with an image beside
42002
+ * text instead. Without media the main fills the whole area; with
41714
42003
  * `main-background="base"` that area gets a border so it stays visible on the
41715
42004
  * base surface.
41716
42005
  *
42006
+ * The hero is the head of a page and sits right under the top bar, so its top
42007
+ * padding is half that of the other page sections: the full distance is meant
42008
+ * to separate two sections, and under the top bar it reads as a gap. The
42009
+ * bottom keeps the full distance to the section below. Set `padding-top` to
42010
+ * place a hero elsewhere.
42011
+ *
42012
+ * By default the panel falls over the bottom of the image and runs on below it
42013
+ * (`layout="overlap"`), so the image keeps its height whatever the content.
42014
+ * `layout="contained"` keeps the panel on the image, for a short panel or one
42015
+ * that stands at the top or along a side.
42016
+ *
42017
+ * The height of a hero comes from its image: `media-aspect-ratio`, or a fixed
42018
+ * `media-height`. The `height` of the other page sections is not used here: as
42019
+ * a minimum height for the whole hero it stretched the panel once that sat
42020
+ * below the image. A hero given `height` says so in development.
42021
+ *
41717
42022
  * `main-background` gives the panel a surface color from the filled categories.
41718
42023
  * Those carry a pure white or black content color along, so components with
41719
42024
  * `color="inherit"` (title, rich-text) are guaranteed to keep their contrast.
@@ -41722,17 +42027,19 @@ function heroTemplate(component) {
41722
42027
  *
41723
42028
  * @attr {'inherit'|'base'|'tinted'} background - Surface behind the hero (section API)
41724
42029
  * @attr {string} width - Body max-width; 'full' removes the bound (section API)
41725
- * @attr {string} height - Minimum height of the section (section API)
42030
+ * @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
41726
42031
  * @attr {string} padding-block - Block padding override, also per edge and responsive (section API)
42032
+ * @attr {'contained'|'overlap'} layout - How the panel relates to the image (default: 'overlap'). 'contained' keeps it on the image, in any of the eight positions; 'overlap' lets it fall `overlap-size` over the bottom of the image and run on below as far as its content needs, so the image keeps its height whatever the content. In 'overlap' the image has a fixed height (320px on md, 400px on lg) unless `media-height` or `media-aspect-ratio` is set, and only the horizontal side of `main-position` counts. A panel shorter than `overlap-size` ends inside the image and says so in development
41727
42033
  * @attr {string} main-background - Surface color of the panel: 'base' (the base surface)
41728
42034
  * or a category color — 'accent' (default) or a Rijkshuisstijl color such as
41729
42035
  * 'lintblauw'|'donkerblauw'|'oranje'
41730
- * @attr {'1/2'|'2/3'|'3/4'|'full'} main-width - Width of the panel (default: '1/2');
41731
- * 'full' makes a full top or bottom strip and is ignored with 'left'/'right'
41732
- * @attr {'top-left'|'top-right'|'bottom-left'|'bottom-right'|'left'|'right'} main-position -
42036
+ * @attr {string} main-width - Width of the panel (default: 'auto'). 'auto' follows the content, between 480px and 640px and never wider than the image allows: a short title gets a narrow panel, a paragraph runs on to a readable line length. 'full' makes a strip across the whole image, at the top or the bottom, and is ignored with 'left'/'right'. Any CSS width (e.g. '560px', '60%') sets it exactly on md and lg, still never wider than the image allows; an invalid value falls back to 'auto'
42037
+ * @attr {'top-left'|'top-center'|'top-right'|'bottom-left'|'bottom-center'|'bottom-right'|'left'|'right'} main-position -
41733
42038
  * Position of the text panel (default: 'bottom-left'); 'left'/'right' span the full height
42039
+ * @attr {string} overlap-size - With layout="overlap": how far the panel falls over the bottom of the image, any CSS length (default: 160px). The overlap stays the same whatever the height of the image; a panel shorter than this ends inside the image
41734
42040
  * @attr {string} media-aspect-ratio - Aspect ratio of the media area (CSS form, '16/9' or '16:9');
41735
42041
  * default '21/9'. On md/lg it sets the height of the hero, on sm the height of the media area
42042
+ * @attr {string} media-height - Fixed height of the media area, any CSS length (e.g. '320px', '40vh'); wins over media-aspect-ratio. An invalid value falls back to the ratio
41736
42043
  * @attr {string} media-src - Source of the media area (an alternative to the media slot);
41737
42044
  * ignored as soon as the media slot is filled
41738
42045
  * @attr {string} media-srcset - Responsive source set for media-src
@@ -41744,19 +42051,42 @@ function heroTemplate(component) {
41744
42051
  * otherwise give a describing alt text.
41745
42052
  * @slot - Content of the text panel (nldd-title and nldd-rich-text with color="inherit", for instance)
41746
42053
  */
41747
- var _NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
42054
+ var _NLDDHero;
42055
+ var CSS_WIDE_KEYWORDS = /* @__PURE__ */ new Set([
42056
+ "inherit",
42057
+ "initial",
42058
+ "unset",
42059
+ "revert",
42060
+ "revert-layer"
42061
+ ]);
42062
+ /**
42063
+ * Whether `property` takes `value` as a value of its own. CSS.supports alone
42064
+ * also says yes to the CSS-wide keywords, for any property; written into a
42065
+ * custom property those would not fall back to the default but resolve to
42066
+ * something else.
42067
+ */
42068
+ function takesValue(property, value) {
42069
+ return !CSS_WIDE_KEYWORDS.has(value.trim().toLowerCase()) && CSS.supports(property, value);
42070
+ }
42071
+ var NLDDHero = (_NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
41748
42072
  constructor(..._args) {
41749
42073
  super(..._args);
41750
42074
  this.width = "";
42075
+ this.layout = "overlap";
41751
42076
  this.mainBackground = "accent";
41752
- this.mainWidth = "1/2";
42077
+ this.mainWidth = "auto";
41753
42078
  this.mainPosition = "bottom-left";
41754
42079
  this.mediaAspectRatio = "";
42080
+ this.overlapSize = "";
42081
+ this.mediaHeight = "";
41755
42082
  this.mediaSrc = "";
41756
42083
  this.mediaSrcset = "";
41757
42084
  this.mediaSizes = "";
41758
42085
  this.mediaAlt = "";
41759
42086
  this._slotHasMedia = false;
42087
+ this._warnedHeight = false;
42088
+ this._overlapObserver = null;
42089
+ this._warnedOverlap = false;
41760
42090
  }
41761
42091
  /** Media is present when the slot has content or media-src is set. */
41762
42092
  get _hasMedia() {
@@ -41766,19 +42096,75 @@ var _NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
41766
42096
  super.willUpdate(changed);
41767
42097
  this.toggleAttribute("data-has-media", this._hasMedia);
41768
42098
  }
42099
+ connectedCallback() {
42100
+ super.connectedCallback();
42101
+ }
42102
+ disconnectedCallback() {
42103
+ super.disconnectedCallback();
42104
+ this._overlapObserver?.disconnect();
42105
+ this._overlapObserver = null;
42106
+ this._warnedOverlap = false;
42107
+ }
41769
42108
  updated(changed) {
41770
42109
  super.updated(changed);
41771
42110
  if (changed.has("width")) {
41772
42111
  const w = this.width;
41773
- if (w && w !== "full" && CSS.supports("max-width", w)) this.style.setProperty("--_hero-max-width", w);
42112
+ if (w && w !== "full" && takesValue("max-width", w)) this.style.setProperty("--_hero-max-width", w);
41774
42113
  else this.style.removeProperty("--_hero-max-width");
41775
42114
  }
42115
+ if (changed.has("mainWidth")) {
42116
+ const width = (this.mainWidth ?? "").trim();
42117
+ const valid = width !== "" && width !== "auto" && width !== "full" && takesValue("width", width);
42118
+ if (valid) this.style.setProperty("--_hero-main-width", width);
42119
+ else this.style.removeProperty("--_hero-main-width");
42120
+ this.toggleAttribute("data-main-width-length", valid);
42121
+ }
42122
+ if (changed.has("overlapSize")) {
42123
+ const size = (this.overlapSize ?? "").trim();
42124
+ if (size && takesValue("margin-top", size)) this.style.setProperty("--_hero-overlap-size", size);
42125
+ else this.style.removeProperty("--_hero-overlap-size");
42126
+ }
42127
+ if (changed.has("mediaHeight")) {
42128
+ const height = (this.mediaHeight ?? "").trim();
42129
+ if (height && takesValue("height", height)) this.style.setProperty("--_hero-media-height", height);
42130
+ else this.style.removeProperty("--_hero-media-height");
42131
+ }
42132
+ if (changed.has("height") && this.height) this.style.removeProperty("min-height");
41776
42133
  if (changed.has("mediaAspectRatio")) {
41777
42134
  const ratio = (this.mediaAspectRatio ?? "").replace(":", "/").trim();
41778
- if (ratio && CSS.supports("aspect-ratio", ratio)) this.style.setProperty("--_hero-media-aspect-ratio", ratio);
42135
+ if (ratio && takesValue("aspect-ratio", ratio)) this.style.setProperty("--_hero-media-aspect-ratio", ratio);
41779
42136
  else this.style.removeProperty("--_hero-media-aspect-ratio");
41780
42137
  }
41781
42138
  }
42139
+ _watchOverlap() {
42140
+ if (!(this.layout !== "contained" && typeof ResizeObserver !== "undefined")) {
42141
+ this._overlapObserver?.disconnect();
42142
+ this._overlapObserver = null;
42143
+ return;
42144
+ }
42145
+ if (this._overlapObserver) return;
42146
+ const media = this.shadowRoot?.querySelector(".hero__media");
42147
+ const main = this.shadowRoot?.querySelector(".hero__main");
42148
+ if (!media || !main) return;
42149
+ this._overlapObserver = new ResizeObserver(() => this._checkOverlap(media, main));
42150
+ this._overlapObserver.observe(media);
42151
+ this._overlapObserver.observe(main);
42152
+ }
42153
+ /**
42154
+ * In an overlap hero the panel is meant to run on below the image. When it
42155
+ * ends inside it, the content is shorter than `overlap-size`; the consumer
42156
+ * decides how far it runs on, so this only says so, in development.
42157
+ */
42158
+ _checkOverlap(media, main) {
42159
+ if (!this._hasMedia || getComputedStyle(media).position === "static") return;
42160
+ if (!(main.getBoundingClientRect().bottom <= media.getBoundingClientRect().bottom)) {
42161
+ this._warnedOverlap = false;
42162
+ return;
42163
+ }
42164
+ if (this._warnedOverlap) return;
42165
+ this._warnedOverlap = true;
42166
+ console.warn("<nldd-hero>: With layout=\"overlap\" the panel is shorter than `overlap-size` and ends inside the image. Give it more content or a smaller `overlap-size`, or set layout=\"contained\" to keep the panel on the image.", this);
42167
+ }
41782
42168
  /** @internal Tracks the media slot so the no-media mode can collapse it. */
41783
42169
  _onMediaSlotChange(e) {
41784
42170
  const slot = e.target;
@@ -41787,12 +42173,15 @@ var _NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
41787
42173
  render() {
41788
42174
  return heroTemplate(this);
41789
42175
  }
41790
- };
41791
- var NLDDHero = (_NLDDHero.styles = heroStyles, _NLDDHero);
42176
+ }, _NLDDHero.styles = heroStyles, _NLDDHero);
41792
42177
  __decorate([property({
41793
- type: String,
41794
- reflect: true
42178
+ reflect: true,
42179
+ converter: reflectNonDefault("")
41795
42180
  })], NLDDHero.prototype, "width", void 0);
42181
+ __decorate([property({
42182
+ reflect: true,
42183
+ converter: reflectNonDefault("overlap")
42184
+ })], NLDDHero.prototype, "layout", void 0);
41796
42185
  __decorate([property({
41797
42186
  reflect: true,
41798
42187
  attribute: "main-background",
@@ -41801,7 +42190,7 @@ __decorate([property({
41801
42190
  __decorate([property({
41802
42191
  reflect: true,
41803
42192
  attribute: "main-width",
41804
- converter: reflectNonDefault("1/2")
42193
+ converter: reflectNonDefault("auto")
41805
42194
  })], NLDDHero.prototype, "mainWidth", void 0);
41806
42195
  __decorate([property({
41807
42196
  reflect: true,
@@ -41809,10 +42198,20 @@ __decorate([property({
41809
42198
  converter: reflectNonDefault("bottom-left")
41810
42199
  })], NLDDHero.prototype, "mainPosition", void 0);
41811
42200
  __decorate([property({
41812
- type: String,
41813
42201
  reflect: true,
41814
- attribute: "media-aspect-ratio"
42202
+ attribute: "media-aspect-ratio",
42203
+ converter: reflectNonDefault("")
41815
42204
  })], NLDDHero.prototype, "mediaAspectRatio", void 0);
42205
+ __decorate([property({
42206
+ reflect: true,
42207
+ attribute: "overlap-size",
42208
+ converter: reflectNonDefault("")
42209
+ })], NLDDHero.prototype, "overlapSize", void 0);
42210
+ __decorate([property({
42211
+ reflect: true,
42212
+ attribute: "media-height",
42213
+ converter: reflectNonDefault("")
42214
+ })], NLDDHero.prototype, "mediaHeight", void 0);
41816
42215
  __decorate([property({
41817
42216
  type: String,
41818
42217
  attribute: "media-src"
@@ -41869,6 +42268,11 @@ var fullBleedSectionStyles = css`
41869
42268
  display: none;
41870
42269
  }
41871
42270
 
42271
+ :host([data-growing]),
42272
+ :host([grow]) {
42273
+ flex-grow: 1;
42274
+ }
42275
+
41872
42276
  :host([width="full"]) {
41873
42277
  --_full-bleed-section-max-width: none;
41874
42278
  }
@@ -41981,6 +42385,7 @@ function fullBleedSectionTemplate(component) {
41981
42385
  * @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
41982
42386
  * @attr {string} [width] - Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.
41983
42387
  * @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
42388
+ * @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
41984
42389
  * @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
41985
42390
  * @attr {string} [padding-top] - Top padding override.
41986
42391
  * @attr {string} [padding-bottom] - Bottom padding override.
@@ -42009,8 +42414,8 @@ var _NLDDFullBleedSection = class NLDDFullBleedSection extends PageSectionMixin(
42009
42414
  };
42010
42415
  var NLDDFullBleedSection = (_NLDDFullBleedSection.styles = fullBleedSectionStyles, _NLDDFullBleedSection);
42011
42416
  __decorate([property({
42012
- type: String,
42013
- reflect: true
42417
+ reflect: true,
42418
+ converter: reflectNonDefault("")
42014
42419
  })], NLDDFullBleedSection.prototype, "width", void 0);
42015
42420
  NLDDFullBleedSection = __decorate([customElement("nldd-full-bleed-section")], NLDDFullBleedSection);
42016
42421
  //#endregion
@@ -42051,6 +42456,11 @@ var oneThirdTwoThirdsSectionStyles = css`
42051
42456
  display: none;
42052
42457
  }
42053
42458
 
42459
+ :host([data-growing]),
42460
+ :host([grow]) {
42461
+ flex-grow: 1;
42462
+ }
42463
+
42054
42464
  :host([width="full"]) {
42055
42465
  --_one-third-two-thirds-section-max-width: none;
42056
42466
  }
@@ -42138,6 +42548,18 @@ var oneThirdTwoThirdsSectionStyles = css`
42138
42548
  }
42139
42549
  }
42140
42550
 
42551
+ :host([vertical-alignment="center"]) .one-third-two-thirds-section__columns {
42552
+ @container (min-width: 769px) {
42553
+ align-items: center;
42554
+ }
42555
+ }
42556
+
42557
+ :host([vertical-alignment="bottom"]) .one-third-two-thirds-section__columns {
42558
+ @container (min-width: 769px) {
42559
+ align-items: flex-end;
42560
+ }
42561
+ }
42562
+
42141
42563
  .one-third-two-thirds-section__left-column {
42142
42564
  min-width: var(--primitives-area-280);
42143
42565
  flex-grow: 1;
@@ -42201,10 +42623,12 @@ function oneThirdTwoThirdsSectionTemplate(component) {
42201
42623
  * @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
42202
42624
  * @attr {string} [width] - Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.
42203
42625
  * @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
42626
+ * @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
42204
42627
  * @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
42205
42628
  * @attr {string} [padding-top] - Top padding override.
42206
42629
  * @attr {string} [padding-bottom] - Bottom padding override.
42207
42630
  * @attr {string} [sm-padding-block] - Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}).
42631
+ * @attr {'top'|'center'|'bottom'} [vertical-alignment] - Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other.
42208
42632
  *
42209
42633
  * @slot header - Content above the columns
42210
42634
  * @slot left - Left column (1/3)
@@ -42216,6 +42640,7 @@ var _NLDDOneThirdTwoThirdsSection = class NLDDOneThirdTwoThirdsSection extends P
42216
42640
  constructor(..._args) {
42217
42641
  super(..._args);
42218
42642
  this.width = "";
42643
+ this.verticalAlignment = "top";
42219
42644
  }
42220
42645
  updated(changedProperties) {
42221
42646
  super.updated(changedProperties);
@@ -42231,9 +42656,14 @@ var _NLDDOneThirdTwoThirdsSection = class NLDDOneThirdTwoThirdsSection extends P
42231
42656
  };
42232
42657
  var NLDDOneThirdTwoThirdsSection = (_NLDDOneThirdTwoThirdsSection.styles = oneThirdTwoThirdsSectionStyles, _NLDDOneThirdTwoThirdsSection);
42233
42658
  __decorate([property({
42234
- type: String,
42235
- reflect: true
42659
+ reflect: true,
42660
+ converter: reflectNonDefault("")
42236
42661
  })], NLDDOneThirdTwoThirdsSection.prototype, "width", void 0);
42662
+ __decorate([property({
42663
+ reflect: true,
42664
+ attribute: "vertical-alignment",
42665
+ converter: reflectNonDefault("top")
42666
+ })], NLDDOneThirdTwoThirdsSection.prototype, "verticalAlignment", void 0);
42237
42667
  NLDDOneThirdTwoThirdsSection = __decorate([customElement("nldd-one-third-two-thirds-section")], NLDDOneThirdTwoThirdsSection);
42238
42668
  //#endregion
42239
42669
  //#region src/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.ts
@@ -42273,6 +42703,11 @@ var twoThirdsOneThirdSectionStyles = css`
42273
42703
  display: none;
42274
42704
  }
42275
42705
 
42706
+ :host([data-growing]),
42707
+ :host([grow]) {
42708
+ flex-grow: 1;
42709
+ }
42710
+
42276
42711
  :host([width="full"]) {
42277
42712
  --_two-thirds-one-third-section-max-width: none;
42278
42713
  }
@@ -42360,6 +42795,18 @@ var twoThirdsOneThirdSectionStyles = css`
42360
42795
  }
42361
42796
  }
42362
42797
 
42798
+ :host([vertical-alignment="center"]) .two-thirds-one-third-section__columns {
42799
+ @container (min-width: 769px) {
42800
+ align-items: center;
42801
+ }
42802
+ }
42803
+
42804
+ :host([vertical-alignment="bottom"]) .two-thirds-one-third-section__columns {
42805
+ @container (min-width: 769px) {
42806
+ align-items: flex-end;
42807
+ }
42808
+ }
42809
+
42363
42810
  .two-thirds-one-third-section__left-column {
42364
42811
  min-width: var(--primitives-area-280);
42365
42812
  flex-grow: 2;
@@ -42423,10 +42870,12 @@ function twoThirdsOneThirdSectionTemplate(component) {
42423
42870
  * @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
42424
42871
  * @attr {string} [width] - Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.
42425
42872
  * @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
42873
+ * @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
42426
42874
  * @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
42427
42875
  * @attr {string} [padding-top] - Top padding override.
42428
42876
  * @attr {string} [padding-bottom] - Bottom padding override.
42429
42877
  * @attr {string} [sm-padding-block] - Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}).
42878
+ * @attr {'top'|'center'|'bottom'} [vertical-alignment] - Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other.
42430
42879
  *
42431
42880
  * @slot header - Content above the columns
42432
42881
  * @slot - Left column (2/3), alternative for slot="left"
@@ -42438,6 +42887,7 @@ var _NLDDTwoThirdsOneThirdSection = class NLDDTwoThirdsOneThirdSection extends P
42438
42887
  constructor(..._args) {
42439
42888
  super(..._args);
42440
42889
  this.width = "";
42890
+ this.verticalAlignment = "top";
42441
42891
  }
42442
42892
  updated(changedProperties) {
42443
42893
  super.updated(changedProperties);
@@ -42453,9 +42903,14 @@ var _NLDDTwoThirdsOneThirdSection = class NLDDTwoThirdsOneThirdSection extends P
42453
42903
  };
42454
42904
  var NLDDTwoThirdsOneThirdSection = (_NLDDTwoThirdsOneThirdSection.styles = twoThirdsOneThirdSectionStyles, _NLDDTwoThirdsOneThirdSection);
42455
42905
  __decorate([property({
42456
- type: String,
42457
- reflect: true
42906
+ reflect: true,
42907
+ converter: reflectNonDefault("")
42458
42908
  })], NLDDTwoThirdsOneThirdSection.prototype, "width", void 0);
42909
+ __decorate([property({
42910
+ reflect: true,
42911
+ attribute: "vertical-alignment",
42912
+ converter: reflectNonDefault("top")
42913
+ })], NLDDTwoThirdsOneThirdSection.prototype, "verticalAlignment", void 0);
42459
42914
  NLDDTwoThirdsOneThirdSection = __decorate([customElement("nldd-two-thirds-one-third-section")], NLDDTwoThirdsOneThirdSection);
42460
42915
  //#endregion
42461
42916
  //#region src/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.ts
@@ -42495,6 +42950,11 @@ var oneHalfOneHalfSectionStyles = css`
42495
42950
  display: none;
42496
42951
  }
42497
42952
 
42953
+ :host([data-growing]),
42954
+ :host([grow]) {
42955
+ flex-grow: 1;
42956
+ }
42957
+
42498
42958
  :host([width="full"]) {
42499
42959
  --_one-half-one-half-section-max-width: none;
42500
42960
  }
@@ -42573,6 +43033,14 @@ var oneHalfOneHalfSectionStyles = css`
42573
43033
  }
42574
43034
  }
42575
43035
 
43036
+ :host([vertical-alignment="center"]) .one-half-one-half-section__columns {
43037
+ align-items: center;
43038
+ }
43039
+
43040
+ :host([vertical-alignment="bottom"]) .one-half-one-half-section__columns {
43041
+ align-items: flex-end;
43042
+ }
43043
+
42576
43044
  .one-half-one-half-section__left-column {
42577
43045
  min-width: var(--primitives-area-280);
42578
43046
  flex-grow: 1;
@@ -42636,10 +43104,12 @@ function oneHalfOneHalfSectionTemplate(component) {
42636
43104
  * @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
42637
43105
  * @attr {string} [width] - Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.
42638
43106
  * @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
43107
+ * @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
42639
43108
  * @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
42640
43109
  * @attr {string} [padding-top] - Top padding override.
42641
43110
  * @attr {string} [padding-bottom] - Bottom padding override.
42642
43111
  * @attr {string} [sm-padding-block] - Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}).
43112
+ * @attr {'top'|'center'|'bottom'} [vertical-alignment] - Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other.
42643
43113
  *
42644
43114
  * @slot header - Content above the columns
42645
43115
  * @slot - Left column (1/2), alternative for slot="left"
@@ -42651,6 +43121,7 @@ var _NLDDOneHalfOneHalfSection = class NLDDOneHalfOneHalfSection extends PageSec
42651
43121
  constructor(..._args) {
42652
43122
  super(..._args);
42653
43123
  this.width = "";
43124
+ this.verticalAlignment = "top";
42654
43125
  }
42655
43126
  updated(changedProperties) {
42656
43127
  super.updated(changedProperties);
@@ -42666,9 +43137,14 @@ var _NLDDOneHalfOneHalfSection = class NLDDOneHalfOneHalfSection extends PageSec
42666
43137
  };
42667
43138
  var NLDDOneHalfOneHalfSection = (_NLDDOneHalfOneHalfSection.styles = oneHalfOneHalfSectionStyles, _NLDDOneHalfOneHalfSection);
42668
43139
  __decorate([property({
42669
- type: String,
42670
- reflect: true
43140
+ reflect: true,
43141
+ converter: reflectNonDefault("")
42671
43142
  })], NLDDOneHalfOneHalfSection.prototype, "width", void 0);
43143
+ __decorate([property({
43144
+ reflect: true,
43145
+ attribute: "vertical-alignment",
43146
+ converter: reflectNonDefault("top")
43147
+ })], NLDDOneHalfOneHalfSection.prototype, "verticalAlignment", void 0);
42672
43148
  NLDDOneHalfOneHalfSection = __decorate([customElement("nldd-one-half-one-half-section")], NLDDOneHalfOneHalfSection);
42673
43149
  //#endregion
42674
43150
  //#region src/components/layout/page-sections/sidebar-section/sidebar-section.styles.ts
@@ -42708,8 +43184,8 @@ var sidebarSectionStyles = css`
42708
43184
  --_sidebar-section-sticky-top: calc(var(--context-inset-top, 0px) + var(--primitives-space-24));
42709
43185
  --_sidebar-section-sticky-bottom: calc(var(--context-inset-bottom, 0px) + var(--primitives-space-24));
42710
43186
  --_sidebar-section-width: var(--primitives-area-320);
42711
- --_sidebar-section-sidebar-box-background-color: var(--semantics-surfaces-tinted-background-color);
42712
- --_sidebar-section-sidebar-box-highlight-border-color: var(--semantics-surfaces-tinted-border-color);
43187
+ --_sidebar-section-sidebar-box-background-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
43188
+ --_sidebar-section-sidebar-box-border-color: var(--semantics-dividers-color);
42713
43189
 
42714
43190
  display: flex;
42715
43191
  width: 100%;
@@ -42725,14 +43201,14 @@ var sidebarSectionStyles = css`
42725
43201
  --_sidebar-section-max-width: none;
42726
43202
  }
42727
43203
 
42728
- /* # Growth — mirrors simple-section. The host only grows as the last
42729
- (visible) section in an nldd-page; the chain below (block -> body ->
43204
+ /* # Growth — mirrors simple-section. The host only grows when it is the
43205
+ growing section of an nldd-page, or has grow itself; the chain below (block -> body ->
42730
43206
  columns -> main) is unconditional, so whatever height the host gets
42731
43207
  always reaches the main column. An nldd-inline-dialog there (itself
42732
43208
  flex-grow: 1) then fills and centers in the leftover space. */
42733
43209
 
42734
- :host(:last-child),
42735
- :host(.is-last) {
43210
+ :host([data-growing]),
43211
+ :host([grow]) {
42736
43212
  flex-grow: 1;
42737
43213
  }
42738
43214
 
@@ -42827,15 +43303,18 @@ var sidebarSectionStyles = css`
42827
43303
  }
42828
43304
  }
42829
43305
 
42830
- /* # Box — tinted always. Sticky + scrollable only beside the main (wide); when
42831
- stacked it's a plain full-width tinted box above the main, so no sticky (which
42832
- would scroll over the main) and no viewport height cap. */
43306
+ /* # Box — the surface around it, edged by a divider. Sticky + scrollable only
43307
+ beside the main (wide); when stacked it's a plain full-width box above the
43308
+ main, so no sticky (which would scroll over the main) and no viewport
43309
+ height cap. The box is the aside itself: Firefox puts a tab stop on
43310
+ whatever scrolls, and that stop needs the landmark's role and name. */
42833
43311
 
42834
43312
  .sidebar-section__sidebar-box {
43313
+ display: block;
42835
43314
  box-sizing: border-box;
42836
43315
  border-radius: var(--semantics-surfaces-corner-radius);
42837
43316
  background-color: var(--_sidebar-section-sidebar-box-background-color);
42838
- box-shadow: inset 0 0 0 var(--semantics-surfaces-border-width) var(--_sidebar-section-sidebar-box-highlight-border-color);
43317
+ box-shadow: inset 0 0 0 var(--semantics-surfaces-border-width) var(--_sidebar-section-sidebar-box-border-color);
42839
43318
 
42840
43319
  @container (min-width: ${lgMin$4}) {
42841
43320
  position: sticky;
@@ -42866,13 +43345,13 @@ function sidebarSectionTemplate(component) {
42866
43345
  </header>
42867
43346
  <div class="sidebar-section__columns">
42868
43347
  ${!collapsed ? html`
42869
- <aside class="sidebar-section__sidebar"
42870
- aria-label=${sidebarLabel}
42871
- >
42872
- <div class="sidebar-section__sidebar-box">
43348
+ <div class="sidebar-section__sidebar">
43349
+ <aside class="sidebar-section__sidebar-box"
43350
+ aria-label=${sidebarLabel}
43351
+ >
42873
43352
  <slot name="sidebar"></slot>
42874
- </div>
42875
- </aside>
43353
+ </aside>
43354
+ </div>
42876
43355
  ` : nothing}
42877
43356
  <div class="sidebar-section__main">
42878
43357
  <slot></slot>
@@ -43465,8 +43944,8 @@ var NLDDSheet = (_NLDDSheet = class NLDDSheet extends LitElement {
43465
43944
  }
43466
43945
  }, _NLDDSheet.styles = sheetStyles, _NLDDSheet);
43467
43946
  __decorate([property({
43468
- type: String,
43469
- reflect: true
43947
+ reflect: true,
43948
+ converter: reflectNonDefault("")
43470
43949
  })], NLDDSheet.prototype, "width", void 0);
43471
43950
  __decorate([property({
43472
43951
  type: String,
@@ -43493,7 +43972,9 @@ NLDDSheet = __decorate([customElement("nldd-sheet")], NLDDSheet);
43493
43972
  * A page section with a left sidebar alongside the main content.
43494
43973
  *
43495
43974
  * - **Wide (section >= 1008px):** two columns. The sidebar is a sticky, scrollable
43496
- * tinted box (max-width 320px) beside the main content. Its sticky top/bottom insets
43975
+ * box (max-width 320px) beside the main content. It takes the surface of the
43976
+ * section around it and is edged by a divider line, so it reads as a block
43977
+ * without drawing the eye away from the main. Its sticky top/bottom insets
43497
43978
  * default to 16px; override with `sticky-top` / `sticky-bottom` so it clears
43498
43979
  * other sticky page elements (e.g. a sticky header).
43499
43980
  * - **Narrow (section < 1008px):** the sidebar collapses behind a sheet (a left panel on
@@ -43521,6 +44002,7 @@ NLDDSheet = __decorate([customElement("nldd-sheet")], NLDDSheet);
43521
44002
  * @element nldd-sidebar-section
43522
44003
  *
43523
44004
  * @attr {string} [width] - Body max-width: 'full' removes the constraint; any CSS length overrides the default.
44005
+ * @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
43524
44006
  * @attr {string} [sidebar-label] - Accessible name for the sidebar (the aside landmark on lg and the sheet on sm/md). Default 'Zijbalk'.
43525
44007
  * @attr {object} [translations] - Override translation keys (sheet title fallback, dismiss label); unset keys fall back to Dutch.
43526
44008
  * @attr {boolean} [no-collapse] - Opt out of the sheet: a narrow section stacks the sidebar above the main instead of collapsing. `collapsed` then stays false.
@@ -43640,8 +44122,8 @@ var _NLDDSidebarSection = class NLDDSidebarSection extends PageSectionMixin(LitE
43640
44122
  };
43641
44123
  var NLDDSidebarSection = (_NLDDSidebarSection.styles = sidebarSectionStyles, _NLDDSidebarSection);
43642
44124
  __decorate([property({
43643
- type: String,
43644
- reflect: true
44125
+ reflect: true,
44126
+ converter: reflectNonDefault("")
43645
44127
  })], NLDDSidebarSection.prototype, "width", void 0);
43646
44128
  __decorate([property({
43647
44129
  type: String,
@@ -43745,7 +44227,7 @@ function boxTemplate(_component) {
43745
44227
  * helping users understand their relationship at a glance.
43746
44228
  *
43747
44229
  * @element nldd-box
43748
- * @attr {'tinted'|'base'|'critical'} background - Which surface this box draws, named as it is on nldd-app-view, nldd-page, nldd-split-view-pane and nldd-card. It starts tinted where a card starts base: a box is there to stand out from the page, a card to sit on it.
44230
+ * @attr {'tinted'|'base'|'critical'} background - Which surface this box draws, named as it is on nldd-shell, nldd-page, nldd-split-view-pane and nldd-card. It starts tinted where a card starts base: a box is there to stand out from the page, a card to sit on it.
43749
44231
  * - `tinted` (default): a box on a plain page background.
43750
44232
  * - `base`: a box on an already-tinted parent (the border ring gets +2
43751
44233
  * palette steps so it still reads against a card-on-card).
@@ -45599,7 +46081,7 @@ var listItemSegmentStyles = css`
45599
46081
  function template$9(control, href, target, rel, checked, expanded, current, disabled, accessibleLabel, actionTabindex, popupType, popovertarget, popoverTargetElement, popoverTargetAction) {
45600
46082
  const content = html`<slot></slot>`;
45601
46083
  const ariaExpanded = expanded === void 0 ? popupType ? "false" : nothing : String(expanded);
45602
- const ariaCurrent = current ? "page" : nothing;
46084
+ const ariaCurrent = current ?? nothing;
45603
46085
  const label = accessibleLabel || nothing;
45604
46086
  if (control === "link") return html`<a class="list-item-segment"
45605
46087
  href=${href ?? nothing}
@@ -45641,6 +46123,7 @@ var _NLDDListItemSegment = class NLDDListItemSegment extends LitElement {
45641
46123
  this.popoverTargetElement = null;
45642
46124
  this.popoverTargetAction = "toggle";
45643
46125
  this.current = false;
46126
+ this.currentType = "page";
45644
46127
  this.disabled = false;
45645
46128
  this._parentType = "list";
45646
46129
  this._handleClick = (e) => {
@@ -45729,7 +46212,7 @@ var _NLDDListItemSegment = class NLDDListItemSegment extends LitElement {
45729
46212
  this.classList.toggle("is-expanded", expanded === true);
45730
46213
  }
45731
46214
  render() {
45732
- return template$9(this._controlType, this.href, this.target, this.rel, this.checked, this.disclosure ? this._rowExpanded : this.expanded, this.current, this.disabled, this.accessibleLabel, this._tabbable === void 0 ? void 0 : this._tabbable ? "0" : "-1", this.popupType, this.popovertarget, this.popoverTargetElement, this.popoverTargetAction);
46215
+ return template$9(this._controlType, this.href, this.target, this.rel, this.checked, this.disclosure ? this._rowExpanded : this.expanded, this.current ? this.currentType : void 0, this.disabled, this.accessibleLabel, this._tabbable === void 0 ? void 0 : this._tabbable ? "0" : "-1", this.popupType, this.popovertarget, this.popoverTargetElement, this.popoverTargetAction);
45733
46216
  }
45734
46217
  };
45735
46218
  var NLDDListItemSegment = (_NLDDListItemSegment.styles = [listItemSegmentStyles], _NLDDListItemSegment);
@@ -45772,6 +46255,11 @@ __decorate([property({
45772
46255
  type: Boolean,
45773
46256
  reflect: true
45774
46257
  })], NLDDListItemSegment.prototype, "current", void 0);
46258
+ __decorate([property({
46259
+ reflect: true,
46260
+ attribute: "current-type",
46261
+ converter: reflectNonDefault("page")
46262
+ })], NLDDListItemSegment.prototype, "currentType", void 0);
45775
46263
  __decorate([property({
45776
46264
  type: Boolean,
45777
46265
  reflect: true
@@ -46372,6 +46860,7 @@ var titleCellStyles = css`
46372
46860
  color: var(--_title-cell-secondary-color);
46373
46861
  font: var(--primitives-font-body-xs-regular-tight);
46374
46862
  overflow-wrap: anywhere;
46863
+ text-wrap: pretty;
46375
46864
  }
46376
46865
 
46377
46866
  /* Balanced, not pretty: a title is a handful of words, and evening out the
@@ -46402,6 +46891,7 @@ var titleCellStyles = css`
46402
46891
  color: var(--_title-cell-secondary-color);
46403
46892
  font: var(--primitives-font-body-sm-regular-tight);
46404
46893
  overflow-wrap: anywhere;
46894
+ text-wrap: pretty;
46405
46895
  }
46406
46896
  `;
46407
46897
  //#endregion
@@ -47776,6 +48266,16 @@ var menuBarItemStyles = css`
47776
48266
  flex-shrink: 0;
47777
48267
  }
47778
48268
 
48269
+ .menu-bar-item__icon[hidden] {
48270
+ display: none;
48271
+ }
48272
+
48273
+ ::slotted([slot="icon"]) {
48274
+ display: flex;
48275
+ width: 100%;
48276
+ height: 100%;
48277
+ }
48278
+
47779
48279
  /* ## Disclosure icon */
47780
48280
 
47781
48281
  .menu-bar-item__disclosure-icon {
@@ -47821,12 +48321,12 @@ var menuBarItemStyles = css`
47821
48321
  /* # Icon-only */
47822
48322
 
47823
48323
  :host([icon-only]) .menu-bar-item,
47824
- :host([content-priority="icon"][compact][icon]:not([icon=""])) .menu-bar-item {
48324
+ :host([content-priority="icon"][compact]:is([icon]:not([icon=""]), [data-has-icon])) .menu-bar-item {
47825
48325
  padding: var(--primitives-space-8);
47826
48326
  }
47827
48327
 
47828
48328
  :host([icon-only]) .menu-bar-item__text,
47829
- :host([content-priority="icon"][compact][icon]:not([icon=""])) .menu-bar-item__text {
48329
+ :host([content-priority="icon"][compact]:is([icon]:not([icon=""]), [data-has-icon])) .menu-bar-item__text {
47830
48330
  position: absolute;
47831
48331
  margin: -1px;
47832
48332
  border: 0;
@@ -47847,26 +48347,57 @@ var menuBarItemStyles = css`
47847
48347
  function template$4(component) {
47848
48348
  const safeHref = sanitizeUrl(component.href);
47849
48349
  const isLink = Boolean(safeHref);
47850
- const isIconOnly = Boolean((component.iconOnly || component.contentPriority === "icon" && component.compact) && component.text);
47851
- const ariaLabel = component.accessibleLabel || (isIconOnly ? component.text : nothing);
48350
+ const hasIcon = Boolean(component.icon) || component._hasSlottedIcon;
48351
+ const showsIconOnly = Boolean(component.text) && (component.iconOnly || component.contentPriority === "icon" && component.compact && hasIcon);
48352
+ const ariaLabel = component.accessibleLabel || (showsIconOnly ? component.text : nothing);
48353
+ const tooltipText = showsIconOnly ? component.accessibleLabel || component.text : "";
47852
48354
  const ariaCurrent = component.current ? component.currentType : nothing;
47853
48355
  const ariaHaspopup = component.expandable ? "menu" : component.haspopup || nothing;
47854
48356
  const ariaExpanded = component.expandable || component.haspopup ? String(component.expanded) : nothing;
48357
+ const icon = html`
48358
+ <span class="menu-bar-item__icon" ?hidden=${!component.icon && !component._hasSlottedIcon}>
48359
+ <slot name="icon" @slotchange=${component._onIconSlotChange}>
48360
+ ${component.icon ? html`<nldd-icon icon=${component.icon}></nldd-icon>` : nothing}
48361
+ </slot>
48362
+ </span>
48363
+ `;
47855
48364
  if (isLink) return html`
47856
- <a class="menu-bar-item"
47857
- href=${safeHref}
47858
- aria-disabled=${component.disabled || nothing}
47859
- tabindex=${component.disabled ? "-1" : nothing}
48365
+ <nldd-tooltip text=${tooltipText}>
48366
+ <a class="menu-bar-item"
48367
+ href=${safeHref}
48368
+ aria-disabled=${component.disabled || nothing}
48369
+ tabindex=${component.disabled ? "-1" : nothing}
48370
+ aria-current=${ariaCurrent}
48371
+ aria-label=${ariaLabel}
48372
+ aria-haspopup=${ariaHaspopup}
48373
+ aria-expanded=${ariaExpanded}
48374
+ >
48375
+ ${icon}
48376
+ <span class="menu-bar-item__text">
48377
+ ${component.text}
48378
+ </span>
48379
+ ${component.expandable ? html`
48380
+ <span class="menu-bar-item__disclosure-icon">
48381
+ <nldd-icon icon="chevron-down-small"></nldd-icon>
48382
+ </span>
48383
+ ` : nothing}
48384
+ </a>
48385
+ </nldd-tooltip>
48386
+ <slot @slotchange=${component._onSlotChange}></slot>
48387
+ `;
48388
+ return html`
48389
+ <nldd-tooltip text=${tooltipText}>
48390
+ <button class="menu-bar-item"
48391
+ type="button"
48392
+ ?disabled=${component.disabled}
47860
48393
  aria-current=${ariaCurrent}
47861
48394
  aria-label=${ariaLabel}
47862
48395
  aria-haspopup=${ariaHaspopup}
47863
48396
  aria-expanded=${ariaExpanded}
48397
+ .popoverTargetElement=${component.popoverTargetElement}
48398
+ .popoverTargetAction=${component.popoverTargetAction}
47864
48399
  >
47865
- ${component.icon ? html`
47866
- <span class="menu-bar-item__icon">
47867
- <nldd-icon icon=${component.icon}></nldd-icon>
47868
- </span>
47869
- ` : nothing}
48400
+ ${icon}
47870
48401
  <span class="menu-bar-item__text">
47871
48402
  ${component.text}
47872
48403
  </span>
@@ -47875,34 +48406,8 @@ function template$4(component) {
47875
48406
  <nldd-icon icon="chevron-down-small"></nldd-icon>
47876
48407
  </span>
47877
48408
  ` : nothing}
47878
- </a>
47879
- <slot @slotchange=${component._onSlotChange}></slot>
47880
- `;
47881
- return html`
47882
- <button class="menu-bar-item"
47883
- type="button"
47884
- ?disabled=${component.disabled}
47885
- aria-current=${ariaCurrent}
47886
- aria-label=${ariaLabel}
47887
- aria-haspopup=${ariaHaspopup}
47888
- aria-expanded=${ariaExpanded}
47889
- .popoverTargetElement=${component.popoverTargetElement}
47890
- .popoverTargetAction=${component.popoverTargetAction}
47891
- >
47892
- ${component.icon ? html`
47893
- <span class="menu-bar-item__icon">
47894
- <nldd-icon icon=${component.icon}></nldd-icon>
47895
- </span>
47896
- ` : nothing}
47897
- <span class="menu-bar-item__text">
47898
- ${component.text}
47899
- </span>
47900
- ${component.expandable ? html`
47901
- <span class="menu-bar-item__disclosure-icon">
47902
- <nldd-icon icon="chevron-down-small"></nldd-icon>
47903
- </span>
47904
- ` : nothing}
47905
- </button>
48409
+ </button>
48410
+ </nldd-tooltip>
47906
48411
  <slot @slotchange=${component._onSlotChange}></slot>
47907
48412
  `;
47908
48413
  }
@@ -47923,8 +48428,8 @@ function template$4(component) {
47923
48428
  * @attr {string} href - Optional link URL. Without href it renders as a button.
47924
48429
  * @attr {string} icon - Optional icon name (nldd-icon)
47925
48430
  * @attr {boolean} expandable - Show the disclosure icon and open the slotted `<nldd-menu>` on click
47926
- * @attr {boolean} icon-only - Hide the text visually (always)
47927
- * @attr {'icon'|'text'} content-priority - Decides what stays visible in compact mode: 'icon' hides the text, 'text' hides the icon
48431
+ * @attr {boolean} icon-only - Hide the text visually (always). The text then shows as a tooltip on hover and focus.
48432
+ * @attr {'icon'|'text'} content-priority - Decides what stays visible in compact mode: 'icon' hides the text, 'text' hides the icon. A bar is compact on a narrow screen and also at 200% zoom on a desktop, so with 'icon' the text is gone there too and shows as a tooltip instead.
47928
48433
  * @attr {boolean} compact - Activates content-priority behavior (set by the parent nldd-menu-bar)
47929
48434
  * @attr {boolean} disabled - Turn interaction off
47930
48435
  * @attr {string} accessible-label - Override aria-label
@@ -47934,6 +48439,7 @@ function template$4(component) {
47934
48439
  *
47935
48440
  * @fires select - On a click on a non-expandable button item (bubbles, composed)
47936
48441
  *
48442
+ * @slot icon - Takes the place of the icon: an `nldd-avatar` for the person who is signed in, for instance. It gets the size of an icon, and follows `content-priority` and `icon-only` as the icon does. Wins over `icon`.
47937
48443
  * @slot - Content of the expandable popover. Wrap items in an `<nldd-menu>` so
47938
48444
  * this component does not have to duplicate the menu API (variant,
47939
48445
  * accessible-label, translations, filterFn and so on). Event listeners on
@@ -47961,6 +48467,11 @@ var _NLDDMenuBarItem = class NLDDMenuBarItem extends LitElement {
47961
48467
  this._menuOpen = false;
47962
48468
  this._pointerdownWhileMenuOpen = false;
47963
48469
  this._menuToggleHandler = null;
48470
+ this._hasSlottedIcon = false;
48471
+ this._onIconSlotChange = (e) => {
48472
+ this._hasSlottedIcon = e.target.assignedElements().length > 0;
48473
+ this.toggleAttribute("data-has-icon", this._hasSlottedIcon);
48474
+ };
47964
48475
  this._onSlotChange = () => {
47965
48476
  this._wireMenu();
47966
48477
  };
@@ -48094,6 +48605,7 @@ __decorate([property({
48094
48605
  })], NLDDMenuBarItem.prototype, "expanded", void 0);
48095
48606
  __decorate([property({ attribute: false })], NLDDMenuBarItem.prototype, "popoverTargetElement", void 0);
48096
48607
  __decorate([property({ attribute: false })], NLDDMenuBarItem.prototype, "popoverTargetAction", void 0);
48608
+ __decorate([state()], NLDDMenuBarItem.prototype, "_hasSlottedIcon", void 0);
48097
48609
  NLDDMenuBarItem = __decorate([customElement("nldd-menu-bar-item")], NLDDMenuBarItem);
48098
48610
  //#endregion
48099
48611
  //#region src/components/navigation/menu-bar/menu-bar.ts
@@ -48288,6 +48800,7 @@ var _NLDDMenuBar = class NLDDMenuBar extends withTranslations(LitElement, nlddMe
48288
48800
  const menuItem = document.createElement("nldd-menu-item");
48289
48801
  menuItem.setAttribute("text", item.text);
48290
48802
  if (item.icon) menuItem.setAttribute("icon", item.icon);
48803
+ if (item.href) menuItem.setAttribute("href", item.href);
48291
48804
  if (item.current) menuItem.setAttribute("selected", "");
48292
48805
  if (item.disabled) menuItem.setAttribute("disabled", "");
48293
48806
  if (item.expandable) {
@@ -48305,8 +48818,24 @@ var _NLDDMenuBar = class NLDDMenuBar extends withTranslations(LitElement, nlddMe
48305
48818
  continue;
48306
48819
  }
48307
48820
  }
48308
- menuItem.addEventListener("click", () => {
48309
- item.click();
48821
+ menuItem.addEventListener("click", (event) => {
48822
+ if (!item.href) {
48823
+ item.click();
48824
+ return;
48825
+ }
48826
+ const { button, ctrlKey, metaKey, shiftKey, altKey } = event;
48827
+ const forwarded = new MouseEvent("click", {
48828
+ bubbles: true,
48829
+ cancelable: true,
48830
+ composed: true,
48831
+ button,
48832
+ ctrlKey,
48833
+ metaKey,
48834
+ shiftKey,
48835
+ altKey
48836
+ });
48837
+ item.dispatchEvent(forwarded);
48838
+ if (forwarded.defaultPrevented) event.preventDefault();
48310
48839
  });
48311
48840
  this._overflowMenu.appendChild(menuItem);
48312
48841
  }
@@ -48710,6 +49239,7 @@ function template$2(component) {
48710
49239
  ${safeHref ? html`
48711
49240
  <a class="skip-link__control"
48712
49241
  href=${safeHref}
49242
+ @click=${component._handleLinkClick}
48713
49243
  >
48714
49244
  ${component._text}
48715
49245
  </a>
@@ -48734,13 +49264,22 @@ var nlddSkipLinkTranslations = { "components.skip-link.action": "Sla over" };
48734
49264
  * Nederlandse Digitale Dienst Skip Link Component (Lit + TypeScript)
48735
49265
  *
48736
49266
  * Accessibility pattern that lets keyboard users skip past content. Wraps
48737
- * content in a default slot. Without href it focuses the first element after
48738
- * the skip link in the DOM (nextElementSibling). Make sure a focusable element
49267
+ * content in a default slot. Without href it moves focus to the first rendered
49268
+ * element after the skip link, so the next Tab lands on the first link or
49269
+ * button in it. An element that is not rendered, such as a `<noscript>`, a
49270
+ * `<script>` or anything hidden, is passed over. Make sure a rendered element
48739
49271
  * follows the component, otherwise the skip link has no effect.
48740
49272
  *
49273
+ * With an `href` that points at an id on the same page, the link scrolls to
49274
+ * that element and moves focus to it too. The target needs no `tabindex` of
49275
+ * its own. An href to another page is left to the browser.
49276
+ *
49277
+ * The component cannot know what it skips, so its default text only says
49278
+ * "Sla over". Name it with `text`: "Sla navigatie over", "Sla filters over".
49279
+ *
48741
49280
  * @element nldd-skip-link
48742
- * @attr {string} text - Text of the skip link. Falls back to the i18n default.
48743
- * @attr {string} href - Optional external target id. Without href it jumps to the end of its own content.
49281
+ * @attr {string} text - Text of the skip link. Name what is skipped. Falls back to the i18n default.
49282
+ * @attr {string} href - Optional external target id. Without href it jumps to the first rendered element after the skip link.
48744
49283
  *
48745
49284
  * @slot - Content that can be skipped
48746
49285
  */
@@ -48750,21 +49289,97 @@ var _NLDDSkipLink = class NLDDSkipLink extends withTranslations(LitElement, nldd
48750
49289
  this.text = "";
48751
49290
  this.href = "";
48752
49291
  this._handleClick = () => {
48753
- const next = this.nextElementSibling;
48754
- if (next) {
48755
- if (!next.hasAttribute("tabindex")) {
48756
- next.setAttribute("tabindex", "-1");
48757
- next.addEventListener("blur", () => {
48758
- next.removeAttribute("tabindex");
48759
- }, { once: true });
48760
- }
48761
- next.focus();
48762
- }
49292
+ const next = this._target();
49293
+ if (!next) return;
49294
+ this._focus(next);
49295
+ };
49296
+ this._handleLinkClick = (event) => {
49297
+ const hash = this._samePageHash();
49298
+ if (!hash) return;
49299
+ if (event && (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)) return;
49300
+ let id = hash.slice(1);
49301
+ try {
49302
+ id = decodeURIComponent(id);
49303
+ } catch {}
49304
+ const target = this.getRootNode().getElementById?.(id) ?? document.getElementById(id);
49305
+ if (!target) return;
49306
+ clearTimeout(this._focusTimer);
49307
+ this._focusTimer = setTimeout(() => this._focus(target));
48763
49308
  };
48764
49309
  }
48765
49310
  get _text() {
48766
49311
  return this.text || this._t("components.skip-link.action");
48767
49312
  }
49313
+ /**
49314
+ * The fragment of an href that stays on this page, or an empty string. An
49315
+ * absolute URL to the page you are on counts too: a router or a CMS writes
49316
+ * `/pagina#inhoud` as readily as `#inhoud`.
49317
+ */
49318
+ _samePageHash() {
49319
+ try {
49320
+ const url = new URL(this.href, location.href);
49321
+ return url.origin === location.origin && url.pathname === location.pathname && url.search === location.search ? url.hash : "";
49322
+ } catch {
49323
+ return "";
49324
+ }
49325
+ }
49326
+ disconnectedCallback() {
49327
+ super.disconnectedCallback();
49328
+ clearTimeout(this._focusTimer);
49329
+ }
49330
+ /**
49331
+ * Focuses the target and leaves it as it was once focus moves on.
49332
+ *
49333
+ * The tabindex is 0 and not -1, also when the target came with a -1 of its
49334
+ * own. WebKit skips everything inside a shadow host that has a negative
49335
+ * tabindex, slotted content included, so with -1 on an nldd-* section the
49336
+ * next Tab left the page instead of reaching the first link in it.
49337
+ */
49338
+ _focus(target) {
49339
+ this._restoreTarget?.();
49340
+ const previous = target.getAttribute("tabindex");
49341
+ const restore = () => {
49342
+ target.removeEventListener("blur", restore);
49343
+ if (this._restoreTarget === restore) this._restoreTarget = void 0;
49344
+ if (previous === null) target.removeAttribute("tabindex");
49345
+ else target.setAttribute("tabindex", previous);
49346
+ };
49347
+ this._restoreTarget = restore;
49348
+ target.setAttribute("tabindex", "0");
49349
+ target.addEventListener("blur", restore);
49350
+ target.focus();
49351
+ if (target.getRootNode().activeElement !== target) restore();
49352
+ }
49353
+ /**
49354
+ * The first following sibling that is rendered. `focus()` does nothing on
49355
+ * an element without a box, and a `<noscript>` or a hidden element sitting
49356
+ * between the skip link and the content left the button dead.
49357
+ */
49358
+ _target() {
49359
+ let next = this.nextElementSibling;
49360
+ while (next) {
49361
+ const rendered = this._rendered(next);
49362
+ if (rendered) return rendered;
49363
+ next = next.nextElementSibling;
49364
+ }
49365
+ return null;
49366
+ }
49367
+ /**
49368
+ * The element itself when it has a box and can take focus. A `display:
49369
+ * contents` wrapper has no box, yet its children are on screen, so the
49370
+ * first rendered one of those stands in for it. An element that is
49371
+ * `visibility: hidden` or inert does have a box and still refuses focus.
49372
+ */
49373
+ _rendered(el) {
49374
+ if (!(el instanceof HTMLElement)) return null;
49375
+ if (el.getClientRects().length > 0) return getComputedStyle(el).visibility !== "hidden" && !el.closest("[inert]") ? el : null;
49376
+ if (getComputedStyle(el).display !== "contents") return null;
49377
+ for (const child of el.children) {
49378
+ const rendered = this._rendered(child);
49379
+ if (rendered) return rendered;
49380
+ }
49381
+ return null;
49382
+ }
48768
49383
  render() {
48769
49384
  return template$2(this);
48770
49385
  }
@@ -49647,7 +50262,7 @@ var _NLDDTopNavigationBar = class NLDDTopNavigationBar extends withTranslations(
49647
50262
  Promise.resolve().then(() => list_item_exports),
49648
50263
  Promise.resolve().then(() => text_cell_exports),
49649
50264
  Promise.resolve().then(() => icon_cell_exports),
49650
- import("./icon-DQHT2C7z.js").then((n) => n.n)
50265
+ import("./icon-D_ZGezHx.js").then((n) => n.n)
49651
50266
  ]);
49652
50267
  }
49653
50268
  _createGlobalMenuSheet() {
@@ -56588,6 +57203,13 @@ function statusBarTemplate(component) {
56588
57203
  * action per bar at most; several actions, or links in running text, belong in
56589
57204
  * nldd-banner.
56590
57205
  *
57206
+ * ## Placement
57207
+ * The bar is the first thing on the screen: above nldd-top-navigation-bar or
57208
+ * nldd-top-title-bar, across the whole app, also when a split view shows
57209
+ * several panes. It reports the state of the service, not of one page, so it
57210
+ * never sits inside the content or below a top bar. Below a top bar it says so
57211
+ * in development.
57212
+ *
56591
57213
  * ## ARIA
56592
57214
  * role and aria-live are set automatically from the variant:
56593
57215
  * - critical → role="alert" (implies aria-live="assertive"; interrupts the screen reader)
@@ -56620,6 +57242,11 @@ var _NLDDStatusBar = class NLDDStatusBar extends LitElement {
56620
57242
  super.connectedCallback();
56621
57243
  this._applyAriaForVariant(this.variant);
56622
57244
  }
57245
+ firstUpdated() {}
57246
+ /** DEV-only: warns when a top bar comes before the status bar. Top bars in an overlay are left out, since a sheet or dialog has its own. */
57247
+ _checkPlacement() {
57248
+ if ([...this.getRootNode().querySelectorAll("nldd-top-navigation-bar, nldd-top-title-bar")].some((bar) => !bar.closest("nldd-sheet, nldd-modal-dialog, nldd-popover, dialog") && (bar.compareDocumentPosition(this) & Node.DOCUMENT_POSITION_FOLLOWING) !== 0 && !bar.contains(this))) console.warn("<nldd-status-bar>: The status bar sits below a top bar. It belongs above it, as the first thing on the screen.", this);
57249
+ }
56623
57250
  updated(changed) {
56624
57251
  if (changed.has("variant")) this._applyAriaForVariant(this.variant);
56625
57252
  }
@@ -57514,4 +58141,4 @@ __decorate([property({
57514
58141
  })], NLDDJustInTimeEducation.prototype, "noArrow", void 0);
57515
58142
  NLDDJustInTimeEducation = _NLDDJustInTimeEducation = __decorate([customElement("nldd-just-in-time-education")], NLDDJustInTimeEducation);
57516
58143
  //#endregion
57517
- export { NLDDActivityIndicator, NLDDAppView, NLDDAvatar, NLDDAvatarGroup, NLDDBadge, NLDDBanner, NLDDBarSplitView, NLDDBlockquote, NLDDBox, NLDDBreadcrumbs, NLDDBreadcrumbsItem, NLDDButton, NLDDButtonBar, NLDDButtonGroup, NLDDCard, NLDDCell, NLDDCheckbox, NLDDCheckboxField, NLDDCodeEditor, NLDDCodeViewer, NLDDCollection, NLDDComboBox, NLDDContainer, NLDDDateField, NLDDDatePicker, NLDDDescriptionCell, NLDDDivider, NLDDDocumentTabBar, NLDDDragHandleCell, NLDDDropdown, NLDDFileField, NLDDForm, NLDDFormActions, NLDDFormField, NLDDFormSection, NLDDFullBleedSection, NLDDHero, NLDDIcon, NLDDIconButton, NLDDIconCell, NLDDIdentity, NLDDImage, NLDDInlineDialog, NLDDJustInTimeEducation, NLDDKeyboardShortcut, NLDDLink, NLDDList, NLDDListItem, NLDDListItemSegment, NLDDMenu, NLDDMenuBar, NLDDMenuBarItem, NLDDModalDialog, NLDDMultiLineTextField, NLDDNavigationSplitView, NLDDNotification, NLDDNumberField, NLDDOneHalfOneHalfSection, NLDDOneThirdTwoThirdsSection, NLDDPage, NLDDPageFooter, NLDDPageFooterLegalBar, NLDDPageFooterLegalBarItem, NLDDPagination, NLDDPasswordField, NLDDPopover, NLDDProgressBar, NLDDProgressBarSegmentIndicator, NLDDProgressCircle, NLDDProgressCircleSegmentIndicator, NLDDRadioButton, NLDDRadioButtonField, NLDDRadioButtonGroup, NLDDRichText, NLDDSearchField, NLDDSegmentedControl, NLDDSheet, NLDDSideBySideSplitView, NLDDSidebarSection, NLDDSimpleSection, NLDDSkipLink, NLDDSpacer, NLDDSpacerCell, NLDDSplitButton, NLDDSplitViewDivider, NLDDSplitViewPane, NLDDStackedSplitView, NLDDStatusBar, NLDDStepBar, NLDDStepBarItem, NLDDStepCell, NLDDStepper, NLDDSwitch, NLDDSwitchField, NLDDTabBar, NLDDTable, NLDDTableRow, NLDDTag, NLDDText, NLDDTextCell, NLDDTextEditor, NLDDTextField, NLDDTimeField, NLDDTimePicker, NLDDTitle, NLDDTitleCell, NLDDToggleButton, NLDDToggleButtonGroup, NLDDToken, NLDDTokenField, NLDDToolbar, NLDDTooltip, NLDDTopNavigationBar, NLDDTopTitleBar, NLDDTwoThirdsOneThirdSection, NLDDValidationList, NLDDWindow, setTranslations };
58144
+ export { NLDDActivityIndicator, NLDDAvatar, NLDDAvatarGroup, NLDDBadge, NLDDBanner, NLDDBarSplitView, NLDDBlockquote, NLDDBox, NLDDBreadcrumbs, NLDDBreadcrumbsItem, NLDDButton, NLDDButtonBar, NLDDButtonGroup, NLDDCard, NLDDCell, NLDDCheckbox, NLDDCheckboxField, NLDDCodeEditor, NLDDCodeViewer, NLDDCollection, NLDDComboBox, NLDDContainer, NLDDDateField, NLDDDatePicker, NLDDDescriptionCell, NLDDDivider, NLDDDocumentTabBar, NLDDDragHandleCell, NLDDDropdown, NLDDFileField, NLDDForm, NLDDFormActions, NLDDFormField, NLDDFormSection, NLDDFullBleedSection, NLDDHero, NLDDIcon, NLDDIconButton, NLDDIconCell, NLDDIdentity, NLDDImage, NLDDInlineDialog, NLDDJustInTimeEducation, NLDDKeyboardShortcut, NLDDLink, NLDDList, NLDDListItem, NLDDListItemSegment, NLDDMenu, NLDDMenuBar, NLDDMenuBarItem, NLDDModalDialog, NLDDMultiLineTextField, NLDDNavigationSplitView, NLDDNotification, NLDDNumberField, NLDDOneHalfOneHalfSection, NLDDOneThirdTwoThirdsSection, NLDDPage, NLDDPageFooter, NLDDPageFooterLegalBar, NLDDPageFooterLegalBarItem, NLDDPagination, NLDDPasswordField, NLDDPopover, NLDDProgressBar, NLDDProgressBarSegmentIndicator, NLDDProgressCircle, NLDDProgressCircleSegmentIndicator, NLDDRadioButton, NLDDRadioButtonField, NLDDRadioButtonGroup, NLDDRichText, NLDDSearchField, NLDDSegmentedControl, NLDDSheet, NLDDShell, NLDDSideBySideSplitView, NLDDSidebarSection, NLDDSimpleSection, NLDDSkipLink, NLDDSpacer, NLDDSpacerCell, NLDDSplitButton, NLDDSplitViewDivider, NLDDSplitViewPane, NLDDStackedSplitView, NLDDStatusBar, NLDDStepBar, NLDDStepBarItem, NLDDStepCell, NLDDStepper, NLDDSwitch, NLDDSwitchField, NLDDTabBar, NLDDTable, NLDDTableRow, NLDDTag, NLDDText, NLDDTextCell, NLDDTextEditor, NLDDTextField, NLDDTimeField, NLDDTimePicker, NLDDTitle, NLDDTitleCell, NLDDToggleButton, NLDDToggleButtonGroup, NLDDToken, NLDDTokenField, NLDDToolbar, NLDDTooltip, NLDDTopNavigationBar, NLDDTopTitleBar, NLDDTwoThirdsOneThirdSection, NLDDValidationList, NLDDWindow, setTranslations };