@nldd/design-system 0.8.99 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/custom-elements.json +484 -40
  2. package/dist/components/actions/button/button.d.ts +7 -5
  3. package/dist/components/actions/button/button.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.i18n.d.ts +3 -1
  5. package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
  6. package/dist/components/actions/button/button.i18n.js +3 -1
  7. package/dist/components/actions/button/button.i18n.js.map +1 -1
  8. package/dist/components/actions/button/button.js +3 -3
  9. package/dist/components/actions/button/button.styles.js +2 -2
  10. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  11. package/dist/components/actions/button/button.template.js +9 -10
  12. package/dist/components/actions/button/button.template.js.map +1 -1
  13. package/dist/components/actions/icon-button/icon-button.d.ts +7 -5
  14. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  15. package/dist/components/actions/icon-button/icon-button.i18n.d.ts +3 -1
  16. package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
  17. package/dist/components/actions/icon-button/icon-button.i18n.js +3 -1
  18. package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
  19. package/dist/components/actions/icon-button/icon-button.js +3 -3
  20. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  21. package/dist/components/actions/icon-button/icon-button.template.js +7 -7
  22. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  23. package/dist/components/actions/menu/menu.d.ts +9 -0
  24. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  25. package/dist/components/actions/menu/menu.js +18 -1
  26. package/dist/components/actions/menu/menu.js.map +1 -1
  27. package/dist/components/actions/split-button/split-button.d.ts +1 -1
  28. package/dist/components/actions/split-button/split-button.js +1 -1
  29. package/dist/components/actions/toolbar/toolbar.d.ts +1 -1
  30. package/dist/components/actions/toolbar/toolbar.i18n.d.ts +3 -1
  31. package/dist/components/actions/toolbar/toolbar.i18n.d.ts.map +1 -1
  32. package/dist/components/actions/toolbar/toolbar.i18n.js +3 -1
  33. package/dist/components/actions/toolbar/toolbar.i18n.js.map +1 -1
  34. package/dist/components/actions/toolbar/toolbar.js +1 -1
  35. package/dist/components/actions/toolbar/toolbar.styles.js +1 -1
  36. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  37. package/dist/components/actions/toolbar/toolbar.template.js +4 -2
  38. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  39. package/dist/components/components.js +1014 -296
  40. package/dist/components/content/avatar/avatar.d.ts +5 -3
  41. package/dist/components/content/avatar/avatar.d.ts.map +1 -1
  42. package/dist/components/content/avatar/avatar.i18n.d.ts +3 -1
  43. package/dist/components/content/avatar/avatar.i18n.d.ts.map +1 -1
  44. package/dist/components/content/avatar/avatar.i18n.js +3 -1
  45. package/dist/components/content/avatar/avatar.i18n.js.map +1 -1
  46. package/dist/components/content/avatar/avatar.js +1 -1
  47. package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
  48. package/dist/components/content/avatar/avatar.template.js +6 -6
  49. package/dist/components/content/avatar/avatar.template.js.map +1 -1
  50. package/dist/components/content/text/text.d.ts +1 -1
  51. package/dist/components/content/text/text.js +1 -1
  52. package/dist/components/content/text/text.styles.d.ts.map +1 -1
  53. package/dist/components/content/text/text.styles.js +55 -0
  54. package/dist/components/content/text/text.styles.js.map +1 -1
  55. package/dist/components/content/title/title.d.ts +16 -1
  56. package/dist/components/content/title/title.d.ts.map +1 -1
  57. package/dist/components/content/title/title.js +109 -0
  58. package/dist/components/content/title/title.js.map +1 -1
  59. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  60. package/dist/components/content/title/title.styles.js +39 -0
  61. package/dist/components/content/title/title.styles.js.map +1 -1
  62. package/dist/components/content/token/token.d.ts +1 -1
  63. package/dist/components/content/token/token.js +1 -1
  64. package/dist/components/{icon-button-CJIikwyu.js → icon-button-BVhiOwX9.js} +12 -7
  65. package/dist/components/inputs/dropdown/dropdown.d.ts +6 -0
  66. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  67. package/dist/components/inputs/dropdown/dropdown.js +6 -0
  68. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  69. package/dist/components/layout/card/card.d.ts +6 -4
  70. package/dist/components/layout/card/card.d.ts.map +1 -1
  71. package/dist/components/layout/card/card.i18n.d.ts +3 -1
  72. package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
  73. package/dist/components/layout/card/card.i18n.js +3 -1
  74. package/dist/components/layout/card/card.i18n.js.map +1 -1
  75. package/dist/components/layout/card/card.js +2 -2
  76. package/dist/components/layout/card/card.template.d.ts.map +1 -1
  77. package/dist/components/layout/card/card.template.js +6 -6
  78. package/dist/components/layout/card/card.template.js.map +1 -1
  79. package/dist/components/layout/collection/collection.d.ts +16 -5
  80. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  81. package/dist/components/layout/collection/collection.js +44 -10
  82. package/dist/components/layout/collection/collection.js.map +1 -1
  83. package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
  84. package/dist/components/layout/collection/collection.styles.js +7 -6
  85. package/dist/components/layout/collection/collection.styles.js.map +1 -1
  86. package/dist/components/layout/container/container.d.ts +1 -1
  87. package/dist/components/layout/container/container.js +1 -1
  88. package/dist/components/layout/container/container.styles.d.ts.map +1 -1
  89. package/dist/components/layout/container/container.styles.js +4 -0
  90. package/dist/components/layout/container/container.styles.js.map +1 -1
  91. package/dist/components/layout/page-sections/hero/hero-corner.d.ts +29 -0
  92. package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -0
  93. package/dist/components/layout/page-sections/hero/hero-corner.js +131 -0
  94. package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -0
  95. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts +2 -0
  96. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -0
  97. package/dist/components/layout/page-sections/hero/hero-corner.styles.js +139 -0
  98. package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -0
  99. package/dist/components/layout/page-sections/hero/hero.d.ts +13 -5
  100. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  101. package/dist/components/layout/page-sections/hero/hero.js +42 -6
  102. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  103. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +16 -0
  104. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
  105. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +61 -1
  106. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  107. package/dist/components/layout/window/window.d.ts +1 -1
  108. package/dist/components/layout/window/window.js +1 -1
  109. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +5 -0
  110. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
  111. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +25 -0
  112. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
  113. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
  114. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +28 -7
  115. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
  116. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts.map +1 -1
  117. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js +8 -4
  118. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js.map +1 -1
  119. package/dist/components/lists-and-tables/list/list.d.ts +5 -2
  120. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  121. package/dist/components/lists-and-tables/list/list.js +9 -4
  122. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  123. package/dist/components/lists-and-tables/list-item/list-item.d.ts +12 -5
  124. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  125. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts +3 -1
  126. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts.map +1 -1
  127. package/dist/components/lists-and-tables/list-item/list-item.i18n.js +3 -1
  128. package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
  129. package/dist/components/lists-and-tables/list-item/list-item.js +15 -7
  130. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  131. package/dist/components/lists-and-tables/list-item/list-item.styles.js +1 -1
  132. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
  133. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  134. package/dist/components/lists-and-tables/list-item/list-item.template.js +9 -2
  135. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  136. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -2
  137. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  138. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts +7 -0
  139. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -0
  140. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +6 -0
  141. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -0
  142. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +7 -3
  143. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  144. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
  145. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +12 -0
  146. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
  147. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
  148. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
  149. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +6 -3
  150. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
  151. package/dist/components/lists-and-tables/table/table.d.ts +8 -5
  152. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  153. package/dist/components/lists-and-tables/table/table.js +19 -10
  154. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  155. package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
  156. package/dist/components/lists-and-tables/table/table.styles.js +4 -0
  157. package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
  158. package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
  159. package/dist/components/lists-and-tables/table/table.template.js +5 -1
  160. package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
  161. package/dist/components/navigation/link/link.d.ts +7 -5
  162. package/dist/components/navigation/link/link.d.ts.map +1 -1
  163. package/dist/components/navigation/link/link.i18n.d.ts +3 -1
  164. package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
  165. package/dist/components/navigation/link/link.i18n.js +3 -1
  166. package/dist/components/navigation/link/link.i18n.js.map +1 -1
  167. package/dist/components/navigation/link/link.js +3 -3
  168. package/dist/components/navigation/link/link.styles.js +2 -2
  169. package/dist/components/navigation/link/link.template.d.ts.map +1 -1
  170. package/dist/components/navigation/link/link.template.js +7 -8
  171. package/dist/components/navigation/link/link.template.js.map +1 -1
  172. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +4 -1
  173. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  174. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +11 -1
  175. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  176. package/dist/components/navigation/pagination/pagination.d.ts +1 -1
  177. package/dist/components/navigation/pagination/pagination.js +1 -1
  178. package/dist/components/navigation/skip-link/skip-link.d.ts +1 -14
  179. package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
  180. package/dist/components/navigation/skip-link/skip-link.js +7 -55
  181. package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
  182. package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -1
  183. package/dist/components/navigation/tab-bar/tab-bar.js +1 -1
  184. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  185. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +6 -3
  186. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  187. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +11 -1
  188. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  189. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +21 -1
  190. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  191. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +1 -1
  192. package/dist/components/status-and-feedback/step-bar/step-bar.js +1 -1
  193. package/dist/components/{with-translations-C8_0-9y8.js → with-translations-C6QfP6_S.js} +24 -1
  194. package/dist/css/rich-text.css +1 -1
  195. package/dist/css/variables.css +1 -0
  196. package/dist/nldd.min.js +962 -683
  197. package/dist/translations/en-US.d.ts.map +1 -1
  198. package/dist/translations/en-US.js +24 -7
  199. package/dist/translations/en-US.js.map +1 -1
  200. package/dist/translations/fy.d.ts.map +1 -1
  201. package/dist/translations/fy.js +24 -7
  202. package/dist/translations/fy.js.map +1 -1
  203. package/dist/translations/nl.generated.d.ts +24 -7
  204. package/dist/translations/nl.generated.d.ts.map +1 -1
  205. package/dist/translations/nl.generated.js +2 -0
  206. package/dist/translations/nl.generated.js.map +1 -1
  207. package/dist/translations/pap-AW.d.ts.map +1 -1
  208. package/dist/translations/pap-AW.js +24 -7
  209. package/dist/translations/pap-AW.js.map +1 -1
  210. package/dist/translations/pap-CW.d.ts.map +1 -1
  211. package/dist/translations/pap-CW.js +24 -7
  212. package/dist/translations/pap-CW.js.map +1 -1
  213. package/dist/types/vue.d.ts +71 -38
  214. package/dist/utilities/focus-target.d.ts +23 -0
  215. package/dist/utilities/focus-target.d.ts.map +1 -0
  216. package/dist/utilities/focus-target.js +70 -0
  217. package/dist/utilities/focus-target.js.map +1 -0
  218. package/dist/utilities/link-hint.d.ts +18 -0
  219. package/dist/utilities/link-hint.d.ts.map +1 -0
  220. package/dist/utilities/link-hint.js +29 -0
  221. package/dist/utilities/link-hint.js.map +1 -0
  222. package/package.json +3 -2
@@ -0,0 +1,131 @@
1
+ const CORNERS = ['top-left', 'top-right', 'bottom-left', 'bottom-right'];
2
+ /* The media corner per panel position, curated from the Rijkshuisstijl
3
+ * examples rather than derived: always a corner the panel leaves free. */
4
+ const AUTO_MEDIA_CORNER = {
5
+ 'bottom-left': 'top-right',
6
+ 'bottom-right': 'bottom-left',
7
+ 'top-left': 'top-right',
8
+ 'top-right': 'top-left',
9
+ 'left': 'top-right',
10
+ 'right': 'top-left',
11
+ };
12
+ /* Without media the panel is the whole hero: the free corner is at the top,
13
+ * on the side the text does not start from. */
14
+ function autoCornerWithoutMedia(position) {
15
+ return position.endsWith('right') ? 'top-left' : 'top-right';
16
+ }
17
+ /* The panel's own corner: the one pointing diagonally into the media. A panel
18
+ * that spans a full side has none. */
19
+ const MAIN_CORNER = {
20
+ 'bottom-left': 'top-right',
21
+ 'bottom-right': 'top-left',
22
+ 'top-left': 'bottom-right',
23
+ 'top-right': 'bottom-left',
24
+ 'left': null,
25
+ 'right': null,
26
+ };
27
+ /** The media corners the panel stands on, where a rounded corner would vanish. */
28
+ function coveredCorners(host, position) {
29
+ if (position === 'left')
30
+ return ['top-left', 'bottom-left'];
31
+ if (position === 'right')
32
+ return ['top-right', 'bottom-right'];
33
+ if (host.mainWidth !== 'full')
34
+ return [position];
35
+ const vertical = position.startsWith('top') ? 'top' : 'bottom';
36
+ return [`${vertical}-left`, `${vertical}-right`];
37
+ }
38
+ const warned = new WeakMap();
39
+ function warnOnce(host, key, message) {
40
+ const keys = warned.get(host) ?? new Set();
41
+ if (keys.has(key))
42
+ return;
43
+ keys.add(key);
44
+ warned.set(host, keys);
45
+ console.warn(message, host);
46
+ }
47
+ function clear(host) {
48
+ host.removeAttribute('data-media-corner');
49
+ host.removeAttribute('data-main-corner');
50
+ }
51
+ /**
52
+ * Works out which corners are rounded and writes them onto the host as
53
+ * `data-media-corner` and `data-main-corner`, which the corner stylesheet
54
+ * keys off. Without `corner`, or where a corner does not fit the shape
55
+ * language, both are removed and the hero is rectangular.
56
+ */
57
+ export function applyCorner(host) {
58
+ if (host.corner === null || host.corner === undefined) {
59
+ clear(host);
60
+ return;
61
+ }
62
+ const center = host.mainPosition === 'top-center' || host.mainPosition === 'bottom-center';
63
+ // An unknown main-position is the default, as on the hero itself.
64
+ const position = Object.prototype.hasOwnProperty.call(MAIN_CORNER, host.mainPosition)
65
+ ? host.mainPosition
66
+ : 'bottom-left';
67
+ // Without media the panel is the whole hero, so layout and position do not
68
+ // come into it.
69
+ if (host._hasMedia && (host.layout !== 'contained' || center)) {
70
+ clear(host);
71
+ if (import.meta.env?.DEV) {
72
+ const fixes = [
73
+ host.layout !== 'contained' ? 'set layout="contained"' : '',
74
+ center ? `put the panel in a corner or along a side instead of main-position="${host.mainPosition}"` : '',
75
+ ].filter(Boolean);
76
+ warnOnce(host, `unsupported-${host.layout !== 'contained' ? 'layout' : ''}-${center ? 'center' : ''}`, `<nldd-hero>: corner only applies with layout="contained" and the panel in a corner or along a side, so this hero stays rectangular. To round it, ${fixes.join(' and ')}; or drop the corner.`);
77
+ }
78
+ return;
79
+ }
80
+ const value = host.corner.trim();
81
+ const chosen = CORNERS.includes(value) ? value : null;
82
+ const covered = host._hasMedia ? coveredCorners(host, position) : [];
83
+ let mediaCorner = chosen ?? (host._hasMedia ? AUTO_MEDIA_CORNER[position] : autoCornerWithoutMedia(host.mainPosition));
84
+ if (!chosen && covered.includes(mediaCorner)) {
85
+ // A full-width strip covers both corners on its edge: move to the
86
+ // other edge, on the same side.
87
+ const horizontal = mediaCorner.endsWith('left') ? 'left' : 'right';
88
+ mediaCorner = `${mediaCorner.startsWith('top') ? 'bottom' : 'top'}-${horizontal}`;
89
+ }
90
+ const mainCorner = host._hasMedia && host.mainWidth !== 'full' ? MAIN_CORNER[position] : null;
91
+ host.setAttribute('data-media-corner', mediaCorner);
92
+ if (mainCorner)
93
+ host.setAttribute('data-main-corner', mainCorner);
94
+ else
95
+ host.removeAttribute('data-main-corner');
96
+ if (!import.meta.env?.DEV)
97
+ return;
98
+ if (!chosen && value !== '' && value !== 'auto') {
99
+ warnOnce(host, `unknown-${value}`, `<nldd-hero>: corner="${value}" is not a corner, so the hero chooses one. Use "top-left", "top-right", "bottom-left" or "bottom-right", or leave the value empty.`);
100
+ }
101
+ if (chosen && covered.includes(chosen)) {
102
+ warnOnce(host, `covered-${chosen}`, `<nldd-hero>: corner="${chosen}" sits under the panel, so the rounded corner does not show. Choose a corner the panel leaves free, or leave the value empty to let the hero choose.`);
103
+ }
104
+ if (host.width === 'full') {
105
+ warnOnce(host, 'width-full', '<nldd-hero>: corner with width="full" runs the hero to the edge of the screen. A shape with a rounded corner always keeps a margin around it; leave width="full" off or drop the corner.');
106
+ }
107
+ }
108
+ const LIMITS = ['--_hero-media-corner-limit', '--_hero-main-corner-limit'];
109
+ /**
110
+ * Caps the radius at a third of the shortest side of the area it rounds, so a
111
+ * low hero (a single title without media, a small `media-height`) keeps a
112
+ * corner rather than turning into a drop. Fed by a ResizeObserver on the media
113
+ * and the panel; the panel's own limit only counts without media, where it is
114
+ * the whole hero. An area that is not shown measures zero and keeps its limit.
115
+ */
116
+ export function limitCorner(host, entries) {
117
+ for (const entry of entries) {
118
+ const box = entry.borderBoxSize?.[0];
119
+ const width = box?.inlineSize ?? entry.contentRect.width;
120
+ const height = box?.blockSize ?? entry.contentRect.height;
121
+ if (!width || !height)
122
+ continue;
123
+ const limit = entry.target.classList.contains('hero__media') ? LIMITS[0] : LIMITS[1];
124
+ host.style.setProperty(limit, `${Math.min(width, height) / 3}px`);
125
+ }
126
+ }
127
+ export function clearCornerLimits(host) {
128
+ for (const limit of LIMITS)
129
+ host.style.removeProperty(limit);
130
+ }
131
+ //# sourceMappingURL=hero-corner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hero-corner.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero-corner.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,GAA0B,CAAC,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,CAAC,CAAC;AAYhG;0EAC0E;AAC1E,MAAM,iBAAiB,GAAuC;IAC7D,aAAa,EAAE,WAAW;IAC1B,cAAc,EAAE,aAAa;IAC7B,UAAU,EAAE,WAAW;IACvB,WAAW,EAAE,UAAU;IACvB,MAAM,EAAE,WAAW;IACnB,OAAO,EAAE,UAAU;CACnB,CAAC;AAEF;+CAC+C;AAC/C,SAAS,sBAAsB,CAAC,QAA0B;IACzD,OAAO,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC;AAC9D,CAAC;AAED;sCACsC;AACtC,MAAM,WAAW,GAA8C;IAC9D,aAAa,EAAE,WAAW;IAC1B,cAAc,EAAE,UAAU;IAC1B,UAAU,EAAE,cAAc;IAC1B,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,kFAAkF;AAClF,SAAS,cAAc,CAAC,IAAgB,EAAE,QAAwB;IACjE,IAAI,QAAQ,KAAK,MAAM;QAAE,OAAO,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IAC5D,IAAI,QAAQ,KAAK,OAAO;QAAE,OAAO,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAC/D,IAAI,IAAI,CAAC,SAAS,KAAK,MAAM;QAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IACjD,MAAM,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,K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AAY,EAAE,0LAA0L,CAAC,CAAC;IAC1N,CAAC;AACF,CAAC;AAED,MAAM,MAAM,GAAG,CAAC,4BAA4B,EAAE,2BAA2B,CAAU,CAAC;AAEpF;;;;;;GAMG;AACH,MAAM,UAAU,WAAW,CAAC,IAAiB,EAAE,OAAuC;IACrF,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,GAAG,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC;QACrC,MAAM,KAAK,GAAG,GAAG,EAAE,UAAU,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC;QACzD,MAAM,MAAM,GAAG,GAAG,EAAE,SAAS,IAAI,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC;QAC1D,IAAI,CAAC,KAAK,IAAI,CAAC,MAAM;YAAE,SAAS;QAChC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACrF,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnE,CAAC;AACF,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAiB;IAClD,KAAK,MAAM,KAAK,IAAI,MAAM;QAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const heroCornerStyles: import("lit").CSSResult;
2
+ //# sourceMappingURL=hero-corner.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hero-corner.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero-corner.styles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB,yBAmI5B,CAAC"}
@@ -0,0 +1,139 @@
1
+ import { css, unsafeCSS } from 'lit';
2
+ import { breakpoints } from '../../../../assets/styles/breakpoints.js';
3
+ const smMax = unsafeCSS(breakpoints.smMax);
4
+ const mdMin = unsafeCSS(breakpoints.mdMin);
5
+ const mdMax = unsafeCSS(breakpoints.mdMax);
6
+ const lgMin = unsafeCSS(breakpoints.lgMin);
7
+ export const heroCornerStyles = css `
8
+
9
+
10
+ /* # Corner */
11
+
12
+ :host([data-media-corner]) {
13
+ --_hero-corner-radius: calc(var(--semantics-brand-ribbon-sm-width) * 1.5);
14
+ --_hero-media-corner-limit: initial;
15
+ --_hero-main-corner-limit: initial;
16
+ }
17
+
18
+ /* On .hero, not :host: a var() resolves where it is declared, so on :host
19
+ this would halve the sm radius at every breakpoint. */
20
+ :host([data-media-corner]) .hero {
21
+ --_hero-media-corner-radius: min(var(--_hero-corner-radius), var(--_hero-media-corner-limit, var(--_hero-corner-radius)));
22
+ --_hero-main-corner-radius: calc(var(--_hero-media-corner-radius) / 2);
23
+
24
+ @container (min-width: ${mdMin}) and (max-width: ${mdMax}) {
25
+ --_hero-corner-radius: calc(var(--semantics-brand-ribbon-md-width) * 2);
26
+ }
27
+
28
+ @container (min-width: ${lgMin}) {
29
+ --_hero-corner-radius: calc(var(--semantics-brand-ribbon-lg-width) * 2);
30
+ }
31
+ }
32
+
33
+ :host([data-media-corner]:not([data-has-media])) .hero {
34
+ --_hero-main-corner-radius: min(var(--_hero-corner-radius) / 2, var(--_hero-main-corner-limit, var(--_hero-corner-radius)));
35
+ }
36
+
37
+ /* ## Contained */
38
+
39
+ :host([data-media-corner][data-has-media]) .hero {
40
+ @container (min-width: ${mdMin}) {
41
+ --_hero-main-inset: var(--primitives-space-0);
42
+ }
43
+ }
44
+
45
+ :host([data-has-media]:is([data-main-corner="top-left"], [data-main-corner="top-right"])) .hero__main {
46
+ @container (min-width: ${mdMin}) {
47
+ margin-top: var(--_hero-corner-radius);
48
+ }
49
+ }
50
+
51
+ :host([data-has-media]:is([data-main-corner="bottom-left"], [data-main-corner="bottom-right"])) .hero__main {
52
+ @container (min-width: ${mdMin}) {
53
+ margin-bottom: var(--_hero-corner-radius);
54
+ }
55
+ }
56
+
57
+ /* ## Media */
58
+
59
+ :host([data-has-media][data-media-corner="top-left"]) .hero__media {
60
+ border-top-left-radius: var(--_hero-media-corner-radius);
61
+ }
62
+
63
+ :host([data-has-media][data-media-corner="top-right"]) .hero__media {
64
+ border-top-right-radius: var(--_hero-media-corner-radius);
65
+ }
66
+
67
+ :host([data-has-media][data-media-corner="bottom-left"]) .hero__media {
68
+ @container (min-width: ${mdMin}) {
69
+ border-bottom-left-radius: var(--_hero-media-corner-radius);
70
+ }
71
+
72
+ @container (max-width: ${smMax}) {
73
+ border-top-left-radius: var(--_hero-media-corner-radius);
74
+ }
75
+ }
76
+
77
+ :host([data-has-media][data-media-corner="bottom-right"]) .hero__media {
78
+ @container (min-width: ${mdMin}) {
79
+ border-bottom-right-radius: var(--_hero-media-corner-radius);
80
+ }
81
+
82
+ @container (max-width: ${smMax}) {
83
+ border-top-right-radius: var(--_hero-media-corner-radius);
84
+ }
85
+ }
86
+
87
+ /* ## Main */
88
+
89
+ :host([data-main-corner="top-left"]) .hero__main {
90
+ @container (min-width: ${mdMin}) {
91
+ border-top-left-radius: var(--_hero-main-corner-radius);
92
+ }
93
+ }
94
+
95
+ :host([data-main-corner="top-right"]) .hero__main {
96
+ @container (min-width: ${mdMin}) {
97
+ border-top-right-radius: var(--_hero-main-corner-radius);
98
+ }
99
+ }
100
+
101
+ :host([data-main-corner="bottom-left"]) .hero__main {
102
+ @container (min-width: ${mdMin}) {
103
+ border-bottom-left-radius: var(--_hero-main-corner-radius);
104
+ }
105
+ }
106
+
107
+ :host([data-main-corner="bottom-right"]) .hero__main {
108
+ @container (min-width: ${mdMin}) {
109
+ border-bottom-right-radius: var(--_hero-main-corner-radius);
110
+ }
111
+ }
112
+
113
+ /* ## Without media */
114
+
115
+ :host(:not([data-has-media])[data-media-corner="top-left"]) :is(.hero__body, .hero__main) {
116
+ border-top-left-radius: var(--_hero-main-corner-radius);
117
+ }
118
+
119
+ :host(:not([data-has-media])[data-media-corner="top-right"]) :is(.hero__body, .hero__main) {
120
+ border-top-right-radius: var(--_hero-main-corner-radius);
121
+ }
122
+
123
+ :host(:not([data-has-media])[data-media-corner="bottom-left"]) :is(.hero__body, .hero__main) {
124
+ border-bottom-left-radius: var(--_hero-main-corner-radius);
125
+ }
126
+
127
+ :host(:not([data-has-media])[data-media-corner="bottom-right"]) :is(.hero__body, .hero__main) {
128
+ border-bottom-right-radius: var(--_hero-main-corner-radius);
129
+ }
130
+
131
+ :host(:not([data-has-media]):is([data-media-corner="top-left"], [data-media-corner="bottom-left"])) .hero__main {
132
+ padding-left: calc(var(--_hero-main-padding) + var(--_hero-main-corner-radius) / 2);
133
+ }
134
+
135
+ :host(:not([data-has-media]):is([data-media-corner="top-right"], [data-media-corner="bottom-right"])) .hero__main {
136
+ padding-right: calc(var(--_hero-main-padding) + var(--_hero-main-corner-radius) / 2);
137
+ }
138
+ `;
139
+ //# sourceMappingURL=hero-corner.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hero-corner.styles.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero-corner.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAEvE,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;2BAiBR,KAAK,qBAAqB,KAAK;;;;2BAI/B,KAAK;;;;;;;;;;;;2BAYL,KAAK;;;;;;2BAML,KAAK;;;;;;2BAML,KAAK;;;;;;;;;;;;;;;;2BAgBL,KAAK;;;;2BAIL,KAAK;;;;;;2BAML,KAAK;;;;2BAIL,KAAK;;;;;;;;2BAQL,KAAK;;;;;;2BAML,KAAK;;;;;;2BAML,KAAK;;;;;;2BAML,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B/B,CAAC"}
@@ -3,10 +3,10 @@
3
3
  *
4
4
  * The section that says what a page is for: it names the main goal of what
5
5
  * you can find there, draws the eye and is the visual welcome. It has a media
6
- * area and a text panel (the main) that can stand in eight positions. Every
7
- * area is rectangular. Use it on pages where a visitor first has to know where
8
- * they are, such as a home or a topic page; where the title already does
9
- * that, a section with a title is enough.
6
+ * area and a text panel (the main) that can stand in eight positions. The
7
+ * areas are rectangular; `corner` rounds one corner of each. Use it on pages
8
+ * where a visitor first has to know where they are, such as a home or a topic
9
+ * page; where the title already does that, a section with a title is enough.
10
10
  *
11
11
  * The image in a hero sets the mood and is never the main content, so the
12
12
  * panel always stands on it. Over an image the panel keeps a section gap from
@@ -45,6 +45,7 @@
45
45
  * @attr {string} width - Body max-width; 'full' removes the bound (section API)
46
46
  * @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.
47
47
  * @attr {string} padding-block - Block padding override, also per edge and responsive (section API)
48
+ * @attr {string} corner - Rounds one corner of the media area, in the shape language of the Rijkshuisstijl: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', or empty (or 'auto') to let the hero choose a corner the panel leaves free. With media it applies with `layout="contained"` and the panel in a corner or along a side; with overlap or a centered panel the hero stays rectangular and says so in development. The panel stands against the edge of the image, so a `main-width` in percent (33.33%, 50%) is a share of the image, and gets a corner at half the radius, the one pointing into the image; a panel along a full side, a `main-width="full"` strip and the panel on mobile stay square. On mobile a bottom corner moves to the top. Without media the panel is the whole hero: the corner applies in every layout and position, at half the radius, and the hero chooses top-right, or top-left for a panel on the right. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg, and is never more than a third of the shortest side of the area it rounds, so a low hero keeps a corner rather than a drop. Says so in development when the chosen corner sits under the panel, or with `width="full"`
48
49
  * @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
49
50
  * @attr {string} main-background - Surface color of the panel: 'base' (the base surface)
50
51
  * or a category color — 'accent' (default) or a Rijkshuisstijl color such as
@@ -91,9 +92,13 @@ declare const NLDDHero_base: typeof LitElement & (new (...args: any[]) => LitEle
91
92
  _onSlotChange(e: Event): void;
92
93
  });
93
94
  export declare class NLDDHero extends NLDDHero_base {
94
- static styles: import("lit").CSSResult;
95
+ static styles: import("lit").CSSResult[];
95
96
  /** Width mode: 'full' (removes body max-width) or any CSS length. */
96
97
  width: string;
98
+ /** Rounds one corner of the media area and one of the panel, or without
99
+ * media one corner of the hero. An empty value lets the hero choose the
100
+ * corner from `main-position`. */
101
+ corner: string | null;
97
102
  layout: HeroLayout;
98
103
  mainBackground: HeroMainBackground;
99
104
  mainWidth: HeroMainWidth;
@@ -117,6 +122,9 @@ export declare class NLDDHero extends NLDDHero_base {
117
122
  connectedCallback(): void;
118
123
  disconnectedCallback(): void;
119
124
  updated(changed: PropertyValues): void;
125
+ /** Measures the rounded areas, so the radius never outgrows them. */
126
+ private _cornerObserver;
127
+ private _watchCorner;
120
128
  /** DEV-only latch for the `height` warning. */
121
129
  private _warnedHeight;
122
130
  /** DEV-only: watches an overlap hero for a panel that does not reach below its image. */
@@ -1 +1 @@
1
- {"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAOtD,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,YAAY,GAAG,WAAW,GAAG,aAAa,GAAG,eAAe,GAAG,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;AAC7I,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAC5D,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;AAajD,MAAM,MAAM,kBAAkB,GAC3B,MAAM,GAAG,QAAQ,GACjB,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,YAAY,GACzD,OAAO,GAAG,QAAQ,GAClB,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GACzC,YAAY,GAAG,MAAM,GACrB,aAAa,GAAG,OAAO,GACvB,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;AAEtD,qBACa,QAAS,SAAQ,aAA4B;IACzD,OAAgB,MAAM,0BAAc;IAEpC,qEAAqE;IAErE,KAAK,SAAM;IAGX,MAAM,EAAE,UAAU,CAAa;IAG/B,cAAc,EAAE,kBAAkB,CAAY;IAG9C,SAAS,EAAE,aAAa,CAAU;IAGlC,YAAY,EAAE,gBAAgB,CAAiB;IAE/C;qEACiE;IAEjE,gBAAgB,SAAM;IAGtB,WAAW,SAAM;IAGjB,WAAW,SAAM;IAEjB;;kCAE8B;IAE9B,QAAQ,SAAM;IAGd,WAAW,SAAM;IAGjB,UAAU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;IAKzB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;KACtB;CACD"}
@@ -9,10 +9,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
9
9
  *
10
10
  * The section that says what a page is for: it names the main goal of what
11
11
  * you can find there, draws the eye and is the visual welcome. It has a media
12
- * area and a text panel (the main) that can stand in eight positions. Every
13
- * area is rectangular. Use it on pages where a visitor first has to know where
14
- * they are, such as a home or a topic page; where the title already does
15
- * that, a section with a title is enough.
12
+ * area and a text panel (the main) that can stand in eight positions. The
13
+ * areas are rectangular; `corner` rounds one corner of each. Use it on pages
14
+ * where a visitor first has to know where they are, such as a home or a topic
15
+ * page; where the title already does that, a section with a title is enough.
16
16
  *
17
17
  * The image in a hero sets the mood and is never the main content, so the
18
18
  * panel always stands on it. Over an image the panel keeps a section gap from
@@ -51,6 +51,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
51
51
  * @attr {string} width - Body max-width; 'full' removes the bound (section API)
52
52
  * @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.
53
53
  * @attr {string} padding-block - Block padding override, also per edge and responsive (section API)
54
+ * @attr {string} corner - Rounds one corner of the media area, in the shape language of the Rijkshuisstijl: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', or empty (or 'auto') to let the hero choose a corner the panel leaves free. With media it applies with `layout="contained"` and the panel in a corner or along a side; with overlap or a centered panel the hero stays rectangular and says so in development. The panel stands against the edge of the image, so a `main-width` in percent (33.33%, 50%) is a share of the image, and gets a corner at half the radius, the one pointing into the image; a panel along a full side, a `main-width="full"` strip and the panel on mobile stay square. On mobile a bottom corner moves to the top. Without media the panel is the whole hero: the corner applies in every layout and position, at half the radius, and the hero chooses top-right, or top-left for a panel on the right. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg, and is never more than a third of the shortest side of the area it rounds, so a low hero keeps a corner rather than a drop. Says so in development when the chosen corner sits under the panel, or with `width="full"`
54
55
  * @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
55
56
  * @attr {string} main-background - Surface color of the panel: 'base' (the base surface)
56
57
  * or a category color — 'accent' (default) or a Rijkshuisstijl color such as
@@ -79,6 +80,8 @@ import { PageSectionMixin } from '../../../../utilities/page-section-mixin.js';
79
80
  import { reflectNonDefault } from '../../../../utilities/reflect-non-default.js';
80
81
  import { heroStyles } from './hero.styles.js';
81
82
  import { heroTemplate } from './hero.template.js';
83
+ import { heroCornerStyles } from './hero-corner.styles.js';
84
+ import { applyCorner, clearCornerLimits, limitCorner } from './hero-corner.js';
82
85
  const CSS_WIDE_KEYWORDS = new Set(['inherit', 'initial', 'unset', 'revert', 'revert-layer']);
83
86
  /**
84
87
  * Whether `property` takes `value` as a value of its own. CSS.supports alone
@@ -94,6 +97,10 @@ let NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
94
97
  super(...arguments);
95
98
  /** Width mode: 'full' (removes body max-width) or any CSS length. */
96
99
  this.width = '';
100
+ /** Rounds one corner of the media area and one of the panel, or without
101
+ * media one corner of the hero. An empty value lets the hero choose the
102
+ * corner from `main-position`. */
103
+ this.corner = null;
97
104
  this.layout = 'overlap';
98
105
  this.mainBackground = 'accent';
99
106
  this.mainWidth = 'auto';
@@ -111,6 +118,8 @@ let NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
111
118
  this.mediaSizes = '';
112
119
  this.mediaAlt = '';
113
120
  this._slotHasMedia = false;
121
+ /** Measures the rounded areas, so the radius never outgrows them. */
122
+ this._cornerObserver = null;
114
123
  /** DEV-only latch for the `height` warning. */
115
124
  this._warnedHeight = false;
116
125
  /** DEV-only: watches an overlap hero for a panel that does not reach below its image. */
@@ -123,18 +132,22 @@ let NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
123
132
  }
124
133
  willUpdate(changed) {
125
134
  super.willUpdate(changed);
126
- // The stylesheet only keys off whether media is present.
127
135
  this.toggleAttribute('data-has-media', this._hasMedia);
136
+ applyCorner(this);
128
137
  }
129
138
  connectedCallback() {
130
139
  super.connectedCallback();
131
140
  if (import.meta.env?.DEV && this.hasUpdated)
132
141
  this._watchOverlap();
142
+ if (this.hasUpdated)
143
+ this._watchCorner();
133
144
  }
134
145
  disconnectedCallback() {
135
146
  super.disconnectedCallback();
136
147
  this._overlapObserver?.disconnect();
137
148
  this._overlapObserver = null;
149
+ this._cornerObserver?.disconnect();
150
+ this._cornerObserver = null;
138
151
  // A hero that comes back is watched again, so it may warn again.
139
152
  this._warnedOverlap = false;
140
153
  }
@@ -153,6 +166,8 @@ let NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
153
166
  }
154
167
  if (import.meta.env?.DEV && changed.has('layout'))
155
168
  this._watchOverlap();
169
+ if (changed.has('corner'))
170
+ this._watchCorner();
156
171
  if (changed.has('mainWidth')) {
157
172
  const width = (this.mainWidth ?? '').trim();
158
173
  const length = width !== '' && width !== 'auto' && width !== 'full';
@@ -206,6 +221,24 @@ let NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
206
221
  }
207
222
  }
208
223
  }
224
+ _watchCorner() {
225
+ const watch = this.corner !== null && this.corner !== undefined && typeof ResizeObserver !== 'undefined';
226
+ if (!watch) {
227
+ this._cornerObserver?.disconnect();
228
+ this._cornerObserver = null;
229
+ clearCornerLimits(this);
230
+ return;
231
+ }
232
+ if (this._cornerObserver)
233
+ return;
234
+ const media = this.shadowRoot?.querySelector('.hero__media');
235
+ const main = this.shadowRoot?.querySelector('.hero__main');
236
+ if (!media || !main)
237
+ return;
238
+ this._cornerObserver = new ResizeObserver((entries) => limitCorner(this, entries));
239
+ this._cornerObserver.observe(media);
240
+ this._cornerObserver.observe(main);
241
+ }
209
242
  _watchOverlap() {
210
243
  const watch = this.layout !== 'contained' && typeof ResizeObserver !== 'undefined';
211
244
  if (!watch) {
@@ -250,10 +283,13 @@ let NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
250
283
  return heroTemplate(this);
251
284
  }
252
285
  };
253
- NLDDHero.styles = heroStyles;
286
+ NLDDHero.styles = [heroStyles, heroCornerStyles];
254
287
  __decorate([
255
288
  property({ reflect: true, converter: reflectNonDefault('') })
256
289
  ], NLDDHero.prototype, "width", void 0);
290
+ __decorate([
291
+ property({ type: String, reflect: true })
292
+ ], NLDDHero.prototype, "corner", void 0);
257
293
  __decorate([
258
294
  property({ reflect: true, converter: reflectNonDefault('overlap') })
259
295
  ], NLDDHero.prototype, "layout", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"hero.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC;AAE7F;;;;;GAKG;AACH,SAAS,UAAU,CAAC,QA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E,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;6CAChF;AAMjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;0CACrC;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;6CACrC;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;4CACrC;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;0CACrC;AAGd;IADC,KAAK,EAAE;+CACc;AApDV,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAqNpB"}
@@ -19,6 +19,18 @@
19
19
  * The sheet gets a sticky title bar by default — the `sidebar-label` as title plus a
20
20
  * "Sluit" button — overridable via the `sheet-top-title-bar` slot.
21
21
  *
22
+ * A link in the sheet to a place on the page beside it, such as a row of a
23
+ * table of contents, closes the sheet first and then scrolls to that place and
24
+ * moves focus there, with a temporary tab stop as a skip link does. Left to the
25
+ * browser, the page would scroll under a sheet that is still open, and on
26
+ * closing the browser gives focus back to the trigger without scrolling to it,
27
+ * so focus ends up out of sight. A link that opens elsewhere (another page, a
28
+ * new tab, a modifier key, a `download`) or points into the sidebar itself is
29
+ * left alone, as is a click the consumer has already handled with
30
+ * `preventDefault()`. The address gets the fragment through `replaceState`,
31
+ * without a new history entry and without a `hashchange` event or a `:target`
32
+ * match: a router that listens for those does not see the jump.
33
+ *
22
34
  * The sidebar content lives in `slot="sidebar"`. Its slot outlet moves between the
23
35
  * box (expanded) and the sheet (collapsed) so there is a single, never-duplicated
24
36
  * copy — the light DOM (and its state) is preserved across the switch.
@@ -111,6 +123,10 @@ export declare class NLDDSidebarSection extends NLDDSidebarSection_base {
111
123
  hide(): void;
112
124
  /** Opens or closes the sidebar sheet. No-op on lg. */
113
125
  toggle(): void;
126
+ /** A link in the open sheet to a place on the page: close first, then go there. */
127
+ private _onClick;
128
+ private _pendingJump?;
129
+ private _inSidebar;
114
130
  _onSheetOpen: () => void;
115
131
  _onSheetClose: () => void;
116
132
  render(): import("lit-html").TemplateResult;
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-section.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/sidebar-section/sidebar-section.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAOtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,sBAAsB,CAAC;AAC9B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oDAAoD,CAAC;;;;;;;;;;;;;;;;;;;AAI5D,qBACa,kBAAmB,SAAQ,uBAA4B;IACnE,OAAgB,MAAM,0BAAwB;IAG9C,KAAK,SAAM;IAGX,YAAY,SAAM;IAElB,yGAAyG;IAEzG,YAAY,EAAE,OAAO,CAAC,OAAO,8BAA8B,CAAC,CAAM;IAGlE,UAAU,UAAS;IAGnB,SAAS,SAAM;IAGf,YAAY,SAAM;IAGlB,SAAS,UAAS;IAGlB,OAAO,CAAC,MAAM,CAAC,CAAY;IAE3B,OAAO,CAAC,GAAG,CAAC,CAAiB;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmC;IAC1D,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,UAAU,CAAS;IAE3B,IAAI,qBAAqB,IAAI,MAAM,CAElC;IAED,qEAAqE;IACrE,IAAI,iBAAiB,IAAI,MAAM,CAE9B;IAED,OAAO,CAAC,EAAE;IAID,iBAAiB,IAAI,IAAI;IAQzB,oBAAoB,IAAI,IAAI;IAO5B,YAAY,IAAI,IAAI;IAM7B,OAAO,CAAC,SAAS,CAOf;IAEF,OAAO,CAAC,eAAe;IAcd,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAoB/C,OAAO,CAAC,WAAW;IAQnB,iFAAiF;IACjF,IAAI,IAAI,IAAI;IAKZ,gCAAgC;IAChC,IAAI,IAAI,IAAI;IAIZ,sDAAsD;IACtD,MAAM,IAAI,IAAI;IAQd,YAAY,QAAO,IAAI,CAAgC;IACvD,aAAa,QAAO,IAAI,CAAiC;IAEhD,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,sBAAsB,EAAE,kBAAkB,CAAC;KAC3C;CACD"}
1
+ {"version":3,"file":"sidebar-section.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/sidebar-section/sidebar-section.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAOtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,sBAAsB,CAAC;AAC9B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oDAAoD,CAAC;;;;;;;;;;;;;;;;;;;AAK5D,qBACa,kBAAmB,SAAQ,uBAA4B;IACnE,OAAgB,MAAM,0BAAwB;IAG9C,KAAK,SAAM;IAGX,YAAY,SAAM;IAElB,yGAAyG;IAEzG,YAAY,EAAE,OAAO,CAAC,OAAO,8BAA8B,CAAC,CAAM;IAGlE,UAAU,UAAS;IAGnB,SAAS,SAAM;IAGf,YAAY,SAAM;IAGlB,SAAS,UAAS;IAGlB,OAAO,CAAC,MAAM,CAAC,CAAY;IAE3B,OAAO,CAAC,GAAG,CAAC,CAAiB;IAC7B,OAAO,CAAC,QAAQ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