@nldd/design-system 0.8.98 → 0.8.100

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 (185) hide show
  1. package/custom-elements.json +320 -58
  2. package/dist/components/actions/button/button.d.ts +2 -2
  3. package/dist/components/actions/button/button.js +2 -2
  4. package/dist/components/actions/icon-button/icon-button.d.ts +2 -2
  5. package/dist/components/actions/icon-button/icon-button.js +2 -2
  6. package/dist/components/actions/menu/menu.d.ts +48 -5
  7. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  8. package/dist/components/actions/menu/menu.js +138 -8
  9. package/dist/components/actions/menu/menu.js.map +1 -1
  10. package/dist/components/actions/menu/menu.template.d.ts +4 -3
  11. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  12. package/dist/components/actions/menu/menu.template.js +10 -5
  13. package/dist/components/actions/menu/menu.template.js.map +1 -1
  14. package/dist/components/actions/split-button/split-button.d.ts +1 -1
  15. package/dist/components/actions/split-button/split-button.js +1 -1
  16. package/dist/components/actions/toolbar/toolbar.d.ts +14 -3
  17. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  18. package/dist/components/actions/toolbar/toolbar.js +45 -7
  19. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  20. package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
  21. package/dist/components/actions/toolbar/toolbar.styles.js +15 -1
  22. package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
  23. package/dist/components/components.js +1495 -289
  24. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  25. package/dist/components/content/code-viewer/code-viewer.styles.js +11 -7
  26. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  27. package/dist/components/content/text/text.d.ts +1 -1
  28. package/dist/components/content/text/text.js +1 -1
  29. package/dist/components/content/text/text.styles.d.ts.map +1 -1
  30. package/dist/components/content/text/text.styles.js +55 -0
  31. package/dist/components/content/text/text.styles.js.map +1 -1
  32. package/dist/components/content/title/title.d.ts +16 -1
  33. package/dist/components/content/title/title.d.ts.map +1 -1
  34. package/dist/components/content/title/title.js +109 -0
  35. package/dist/components/content/title/title.js.map +1 -1
  36. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  37. package/dist/components/content/title/title.styles.js +39 -0
  38. package/dist/components/content/title/title.styles.js.map +1 -1
  39. package/dist/components/content/token/token.d.ts +1 -1
  40. package/dist/components/content/token/token.js +1 -1
  41. package/dist/components/content/visually-hidden/visually-hidden.d.ts +35 -0
  42. package/dist/components/content/visually-hidden/visually-hidden.d.ts.map +1 -0
  43. package/dist/components/content/visually-hidden/visually-hidden.js +45 -0
  44. package/dist/components/content/visually-hidden/visually-hidden.js.map +1 -0
  45. package/dist/components/content/visually-hidden/visually-hidden.styles.d.ts +2 -0
  46. package/dist/components/content/visually-hidden/visually-hidden.styles.d.ts.map +1 -0
  47. package/dist/components/content/visually-hidden/visually-hidden.styles.js +27 -0
  48. package/dist/components/content/visually-hidden/visually-hidden.styles.js.map +1 -0
  49. package/dist/components/content/visually-hidden/visually-hidden.template.d.ts +3 -0
  50. package/dist/components/content/visually-hidden/visually-hidden.template.d.ts.map +1 -0
  51. package/dist/components/content/visually-hidden/visually-hidden.template.js +7 -0
  52. package/dist/components/content/visually-hidden/visually-hidden.template.js.map +1 -0
  53. package/dist/components/{icon-button-CJIikwyu.js → icon-button-BtU8DX64.js} +2 -2
  54. package/dist/components/index.d.ts +1 -0
  55. package/dist/components/index.d.ts.map +1 -1
  56. package/dist/components/index.js +1 -0
  57. package/dist/components/index.js.map +1 -1
  58. package/dist/components/inputs/dropdown/dropdown.d.ts +6 -0
  59. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  60. package/dist/components/inputs/dropdown/dropdown.js +6 -0
  61. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  62. package/dist/components/layout/card/card.d.ts +12 -1
  63. package/dist/components/layout/card/card.d.ts.map +1 -1
  64. package/dist/components/layout/card/card.js +29 -2
  65. package/dist/components/layout/card/card.js.map +1 -1
  66. package/dist/components/layout/card/card.styles.js +2 -2
  67. package/dist/components/layout/collection/collection.d.ts +16 -5
  68. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  69. package/dist/components/layout/collection/collection.js +44 -10
  70. package/dist/components/layout/collection/collection.js.map +1 -1
  71. package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
  72. package/dist/components/layout/collection/collection.styles.js +7 -6
  73. package/dist/components/layout/collection/collection.styles.js.map +1 -1
  74. package/dist/components/layout/container/container.d.ts +1 -1
  75. package/dist/components/layout/container/container.js +1 -1
  76. package/dist/components/layout/container/container.styles.d.ts.map +1 -1
  77. package/dist/components/layout/container/container.styles.js +4 -0
  78. package/dist/components/layout/container/container.styles.js.map +1 -1
  79. package/dist/components/layout/page-sections/hero/hero-corner.d.ts +20 -0
  80. package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -0
  81. package/dist/components/layout/page-sections/hero/hero-corner.js +103 -0
  82. package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -0
  83. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts +2 -0
  84. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -0
  85. package/dist/components/layout/page-sections/hero/hero-corner.styles.js +132 -0
  86. package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -0
  87. package/dist/components/layout/page-sections/hero/hero.d.ts +9 -5
  88. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  89. package/dist/components/layout/page-sections/hero/hero.js +15 -6
  90. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  91. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  92. package/dist/components/layout/popover/popover.styles.js +4 -0
  93. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  94. package/dist/components/layout/window/window.d.ts +1 -1
  95. package/dist/components/layout/window/window.js +1 -1
  96. package/dist/components/lists-and-tables/table/table.d.ts +8 -5
  97. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  98. package/dist/components/lists-and-tables/table/table.js +19 -10
  99. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  100. package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
  101. package/dist/components/lists-and-tables/table/table.styles.js +4 -0
  102. package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
  103. package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
  104. package/dist/components/lists-and-tables/table/table.template.js +5 -1
  105. package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
  106. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +44 -1
  107. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  108. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +132 -3
  109. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  110. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
  111. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +21 -2
  112. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
  113. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +1 -1
  114. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
  115. package/dist/components/navigation/link/link.d.ts +1 -1
  116. package/dist/components/navigation/link/link.js +1 -1
  117. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +8 -2
  118. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  119. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +20 -2
  120. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  121. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.d.ts.map +1 -1
  122. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +8 -1
  123. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js.map +1 -1
  124. package/dist/components/navigation/pagination/pagination.d.ts +1 -1
  125. package/dist/components/navigation/pagination/pagination.js +1 -1
  126. package/dist/components/navigation/skip-link/skip-link.d.ts +12 -5
  127. package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
  128. package/dist/components/navigation/skip-link/skip-link.js +12 -5
  129. package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
  130. package/dist/components/navigation/tab-bar/tab-bar.d.ts +71 -2
  131. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  132. package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts +5 -0
  133. package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts.map +1 -0
  134. package/dist/components/navigation/tab-bar/tab-bar.i18n.js +4 -0
  135. package/dist/components/navigation/tab-bar/tab-bar.i18n.js.map +1 -0
  136. package/dist/components/navigation/tab-bar/tab-bar.js +214 -23
  137. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  138. package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
  139. package/dist/components/navigation/tab-bar/tab-bar.styles.js +68 -3
  140. package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
  141. package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
  142. package/dist/components/navigation/tab-bar/tab-bar.template.js +36 -5
  143. package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
  144. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +7 -0
  145. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  146. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +16 -0
  147. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  148. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  149. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +13 -3
  150. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  151. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +11 -1
  152. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  153. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +21 -1
  154. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  155. package/dist/components/status-and-feedback/notification/notification.d.ts +62 -1
  156. package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
  157. package/dist/components/status-and-feedback/notification/notification.js +86 -2
  158. package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
  159. package/dist/components/status-and-feedback/notification/notifications-area.d.ts +6 -0
  160. package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -1
  161. package/dist/components/status-and-feedback/notification/notifications-area.js +16 -0
  162. package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -1
  163. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +1 -1
  164. package/dist/components/status-and-feedback/step-bar/step-bar.js +1 -1
  165. package/dist/css/rich-text.css +1 -1
  166. package/dist/css/variables.css +1 -0
  167. package/dist/nldd.min.js +1038 -637
  168. package/dist/translations/en-US.d.ts.map +1 -1
  169. package/dist/translations/en-US.js +1 -0
  170. package/dist/translations/en-US.js.map +1 -1
  171. package/dist/translations/fy.d.ts.map +1 -1
  172. package/dist/translations/fy.js +1 -0
  173. package/dist/translations/fy.js.map +1 -1
  174. package/dist/translations/nl.generated.d.ts +1 -0
  175. package/dist/translations/nl.generated.d.ts.map +1 -1
  176. package/dist/translations/nl.generated.js +2 -0
  177. package/dist/translations/nl.generated.js.map +1 -1
  178. package/dist/translations/pap-AW.d.ts.map +1 -1
  179. package/dist/translations/pap-AW.js +1 -0
  180. package/dist/translations/pap-AW.js.map +1 -1
  181. package/dist/translations/pap-CW.d.ts.map +1 -1
  182. package/dist/translations/pap-CW.js +1 -0
  183. package/dist/translations/pap-CW.js.map +1 -1
  184. package/dist/types/vue.d.ts +66 -36
  185. package/package.json +6 -2
@@ -128,6 +128,10 @@ export const containerStyles = css `
128
128
  }
129
129
  }
130
130
 
131
+ :host([width="fit-content"]) .container {
132
+ container-type: normal;
133
+ }
134
+
131
135
 
132
136
  /* # Inner — actual layout */
133
137
 
@@ -1 +1 @@
1
- {"version":3,"file":"container.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/container/container.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,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,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA6CX,KAAK;uBACL,KAAK,qBAAqB,KAAK;uBAC/B,KAAK;;4CAEgB,KAAK;4CACL,KAAK,qBAAqB,KAAK;4CAC/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA8B1B,KAAK;;;;;;;uBAOL,KAAK,qBAAqB,KAAK;;;;;;;uBAO/B,KAAK;;;;;;;4CAOgB,KAAK;;;;;;;4CAOL,KAAK,qBAAqB,KAAK;;;;;;;4CAO/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA0GvB,KAAK;;;;;;;;;;;;;;;0BAeL,KAAK,qBAAqB,KAAK;;;;;;;;;;;;;;;0BAe/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;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,KAAK;;;;0BAI/B,KAAK;;;CAG9B,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { HeroLayout, HeroMainPosition } from './hero.js';
2
+ export type HeroCorner = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
3
+ /** What the corner logic reads off the hero. */
4
+ interface CornerHost extends HTMLElement {
5
+ corner: string | null;
6
+ layout: HeroLayout;
7
+ mainPosition: HeroMainPosition;
8
+ mainWidth: string;
9
+ width: string;
10
+ readonly _hasMedia: boolean;
11
+ }
12
+ /**
13
+ * Works out which corners are rounded and writes them onto the host as
14
+ * `data-media-corner` and `data-main-corner`, which the corner stylesheet
15
+ * keys off. Without `corner`, or where a corner does not fit the shape
16
+ * language, both are removed and the hero is rectangular.
17
+ */
18
+ export declare function applyCorner(host: CornerHost): void;
19
+ export {};
20
+ //# sourceMappingURL=hero-corner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hero-corner.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero-corner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE9D,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;AAMnF,gDAAgD;AAChD,UAAU,UAAW,SAAQ,WAAW;IACvC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,YAAY,EAAE,gBAAgB,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC5B;AAgDD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAqDlD"}
@@ -0,0 +1,103 @@
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
+ /* The panel's own corner: the one pointing diagonally into the media. A panel
13
+ * that spans a full side has none. */
14
+ const MAIN_CORNER = {
15
+ 'bottom-left': 'top-right',
16
+ 'bottom-right': 'top-left',
17
+ 'top-left': 'bottom-right',
18
+ 'top-right': 'bottom-left',
19
+ 'left': null,
20
+ 'right': null,
21
+ };
22
+ /** The media corners the panel stands on, where a rounded corner would vanish. */
23
+ function coveredCorners(host, position) {
24
+ if (position === 'left')
25
+ return ['top-left', 'bottom-left'];
26
+ if (position === 'right')
27
+ return ['top-right', 'bottom-right'];
28
+ if (host.mainWidth !== 'full')
29
+ return [position];
30
+ const vertical = position.startsWith('top') ? 'top' : 'bottom';
31
+ return [`${vertical}-left`, `${vertical}-right`];
32
+ }
33
+ const warned = new WeakMap();
34
+ function warnOnce(host, key, message) {
35
+ const keys = warned.get(host) ?? new Set();
36
+ if (keys.has(key))
37
+ return;
38
+ keys.add(key);
39
+ warned.set(host, keys);
40
+ console.warn(message, host);
41
+ }
42
+ function clear(host) {
43
+ host.removeAttribute('data-media-corner');
44
+ host.removeAttribute('data-main-corner');
45
+ }
46
+ /**
47
+ * Works out which corners are rounded and writes them onto the host as
48
+ * `data-media-corner` and `data-main-corner`, which the corner stylesheet
49
+ * keys off. Without `corner`, or where a corner does not fit the shape
50
+ * language, both are removed and the hero is rectangular.
51
+ */
52
+ export function applyCorner(host) {
53
+ if (host.corner === null || host.corner === undefined) {
54
+ clear(host);
55
+ return;
56
+ }
57
+ const center = host.mainPosition === 'top-center' || host.mainPosition === 'bottom-center';
58
+ // An unknown main-position is the default, as on the hero itself.
59
+ const position = Object.prototype.hasOwnProperty.call(MAIN_CORNER, host.mainPosition)
60
+ ? host.mainPosition
61
+ : 'bottom-left';
62
+ // Without media the panel is the whole hero, so layout and position do not
63
+ // come into it.
64
+ if (host._hasMedia && (host.layout !== 'contained' || center)) {
65
+ clear(host);
66
+ if (import.meta.env?.DEV) {
67
+ const fixes = [
68
+ host.layout !== 'contained' ? 'set layout="contained"' : '',
69
+ center ? `put the panel in a corner or along a side instead of main-position="${host.mainPosition}"` : '',
70
+ ].filter(Boolean);
71
+ 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.`);
72
+ }
73
+ return;
74
+ }
75
+ const value = host.corner.trim();
76
+ const chosen = CORNERS.includes(value) ? value : null;
77
+ const covered = host._hasMedia ? coveredCorners(host, position) : [];
78
+ let mediaCorner = chosen ?? AUTO_MEDIA_CORNER[position];
79
+ if (!chosen && covered.includes(mediaCorner)) {
80
+ // A full-width strip covers both corners on its edge: move to the
81
+ // other edge, on the same side.
82
+ const horizontal = mediaCorner.endsWith('left') ? 'left' : 'right';
83
+ mediaCorner = `${mediaCorner.startsWith('top') ? 'bottom' : 'top'}-${horizontal}`;
84
+ }
85
+ const mainCorner = host._hasMedia && host.mainWidth !== 'full' ? MAIN_CORNER[position] : null;
86
+ host.setAttribute('data-media-corner', mediaCorner);
87
+ if (mainCorner)
88
+ host.setAttribute('data-main-corner', mainCorner);
89
+ else
90
+ host.removeAttribute('data-main-corner');
91
+ if (!import.meta.env?.DEV)
92
+ return;
93
+ if (!chosen && value !== '' && value !== 'auto') {
94
+ 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.`);
95
+ }
96
+ if (chosen && covered.includes(chosen)) {
97
+ 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.`);
98
+ }
99
+ if (host.width === 'full') {
100
+ 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.');
101
+ }
102
+ }
103
+ //# 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;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,KAAK,CAAC,CAAC,CAAC,QAAQ,C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.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,yBA4H5B,CAAC"}
@@ -0,0 +1,132 @@
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
+ }
15
+
16
+ /* On .hero, not :host: a var() resolves where it is declared, so on :host
17
+ this would halve the sm radius at every breakpoint. */
18
+ :host([data-media-corner]) .hero {
19
+ --_hero-main-corner-radius: calc(var(--_hero-corner-radius) / 2);
20
+
21
+ @container (min-width: ${mdMin}) and (max-width: ${mdMax}) {
22
+ --_hero-corner-radius: calc(var(--semantics-brand-ribbon-md-width) * 2);
23
+ }
24
+
25
+ @container (min-width: ${lgMin}) {
26
+ --_hero-corner-radius: calc(var(--semantics-brand-ribbon-lg-width) * 2);
27
+ }
28
+ }
29
+
30
+ /* ## Contained */
31
+
32
+ :host([data-media-corner][data-has-media]) .hero {
33
+ @container (min-width: ${mdMin}) {
34
+ --_hero-main-inset: var(--primitives-space-0);
35
+ }
36
+ }
37
+
38
+ :host([data-has-media]:is([data-main-corner="top-left"], [data-main-corner="top-right"])) .hero__main {
39
+ @container (min-width: ${mdMin}) {
40
+ margin-top: var(--_hero-corner-radius);
41
+ }
42
+ }
43
+
44
+ :host([data-has-media]:is([data-main-corner="bottom-left"], [data-main-corner="bottom-right"])) .hero__main {
45
+ @container (min-width: ${mdMin}) {
46
+ margin-bottom: var(--_hero-corner-radius);
47
+ }
48
+ }
49
+
50
+ /* ## Media */
51
+
52
+ :host([data-has-media][data-media-corner="top-left"]) .hero__media {
53
+ border-top-left-radius: var(--_hero-corner-radius);
54
+ }
55
+
56
+ :host([data-has-media][data-media-corner="top-right"]) .hero__media {
57
+ border-top-right-radius: var(--_hero-corner-radius);
58
+ }
59
+
60
+ :host([data-has-media][data-media-corner="bottom-left"]) .hero__media {
61
+ @container (min-width: ${mdMin}) {
62
+ border-bottom-left-radius: var(--_hero-corner-radius);
63
+ }
64
+
65
+ @container (max-width: ${smMax}) {
66
+ border-top-left-radius: var(--_hero-corner-radius);
67
+ }
68
+ }
69
+
70
+ :host([data-has-media][data-media-corner="bottom-right"]) .hero__media {
71
+ @container (min-width: ${mdMin}) {
72
+ border-bottom-right-radius: var(--_hero-corner-radius);
73
+ }
74
+
75
+ @container (max-width: ${smMax}) {
76
+ border-top-right-radius: var(--_hero-corner-radius);
77
+ }
78
+ }
79
+
80
+ /* ## Main */
81
+
82
+ :host([data-main-corner="top-left"]) .hero__main {
83
+ @container (min-width: ${mdMin}) {
84
+ border-top-left-radius: var(--_hero-main-corner-radius);
85
+ }
86
+ }
87
+
88
+ :host([data-main-corner="top-right"]) .hero__main {
89
+ @container (min-width: ${mdMin}) {
90
+ border-top-right-radius: var(--_hero-main-corner-radius);
91
+ }
92
+ }
93
+
94
+ :host([data-main-corner="bottom-left"]) .hero__main {
95
+ @container (min-width: ${mdMin}) {
96
+ border-bottom-left-radius: var(--_hero-main-corner-radius);
97
+ }
98
+ }
99
+
100
+ :host([data-main-corner="bottom-right"]) .hero__main {
101
+ @container (min-width: ${mdMin}) {
102
+ border-bottom-right-radius: var(--_hero-main-corner-radius);
103
+ }
104
+ }
105
+
106
+ /* ## Without media */
107
+
108
+ :host(:not([data-has-media])[data-media-corner="top-left"]) :is(.hero__body, .hero__main) {
109
+ border-top-left-radius: var(--_hero-corner-radius);
110
+ }
111
+
112
+ :host(:not([data-has-media])[data-media-corner="top-right"]) :is(.hero__body, .hero__main) {
113
+ border-top-right-radius: var(--_hero-corner-radius);
114
+ }
115
+
116
+ :host(:not([data-has-media])[data-media-corner="bottom-left"]) :is(.hero__body, .hero__main) {
117
+ border-bottom-left-radius: var(--_hero-corner-radius);
118
+ }
119
+
120
+ :host(:not([data-has-media])[data-media-corner="bottom-right"]) :is(.hero__body, .hero__main) {
121
+ border-bottom-right-radius: var(--_hero-corner-radius);
122
+ }
123
+
124
+ :host(:not([data-has-media]):is([data-media-corner="top-left"], [data-media-corner="bottom-left"])) .hero__main {
125
+ padding-left: calc(var(--_hero-main-padding) + var(--_hero-corner-radius) / 2);
126
+ }
127
+
128
+ :host(:not([data-has-media]):is([data-media-corner="top-right"], [data-media-corner="bottom-right"])) .hero__main {
129
+ padding-right: calc(var(--_hero-main-padding) + var(--_hero-corner-radius) / 2);
130
+ }
131
+ `;
132
+ //# 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;;;;;;;;;;;;;;2BAcR,KAAK,qBAAqB,KAAK;;;;2BAI/B,KAAK;;;;;;;;2BAQL,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. Applies with `layout="contained"` and the panel in a corner or along a side; with overlap or a centered panel the hero stays rectangular and says so in development. The panel stands against the edge of the image, so a `main-width` in percent (33.33%, 50%) is a share of the image, and gets a corner at half the radius, the one pointing into the image; a panel along a full side, a `main-width="full"` strip and the panel on mobile stay square. On mobile a bottom corner moves to the top. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg. Says so in development when the chosen corner sits under the panel, or with `width="full"`
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,12 @@ 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. An empty
99
+ * value lets the hero choose the media corner from `main-position`. */
100
+ corner: string | null;
97
101
  layout: HeroLayout;
98
102
  mainBackground: HeroMainBackground;
99
103
  mainWidth: HeroMainWidth;
@@ -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,C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,WAAW,SAAM;IAEjB;;kCAE8B;IAE9B,QAAQ,SAAM;IAGd,WAAW,SAAM;IAGjB,UAAU,SAAM;IAGhB,QAAQ,SAAM;IAGd,aAAa,UAAS;IAEtB,sEAAsE;IACtE,IAAI,SAAS,IAAI,OAAO,CAEvB;IAEQ,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAMzC,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IA8D/C,+CAA+C;IAC/C,OAAO,CAAC,aAAa,CAAS;IAE9B,yFAAyF;IACzF,OAAO,CAAC,gBAAgB,CAA+B;IACvD,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,aAAa;IAgBrB;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAYrB,4EAA4E;IAC5E,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;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. Applies with `layout="contained"` and the panel in a corner or along a side; with overlap or a centered panel the hero stays rectangular and says so in development. The panel stands against the edge of the image, so a `main-width` in percent (33.33%, 50%) is a share of the image, and gets a corner at half the radius, the one pointing into the image; a panel along a full side, a `main-width="full"` strip and the panel on mobile stay square. On mobile a bottom corner moves to the top. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg. Says so in development when the chosen corner sits under the panel, or with `width="full"`
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 } 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,9 @@ 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. An empty
101
+ * value lets the hero choose the media corner from `main-position`. */
102
+ this.corner = null;
97
103
  this.layout = 'overlap';
98
104
  this.mainBackground = 'accent';
99
105
  this.mainWidth = 'auto';
@@ -123,8 +129,8 @@ let NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
123
129
  }
124
130
  willUpdate(changed) {
125
131
  super.willUpdate(changed);
126
- // The stylesheet only keys off whether media is present.
127
132
  this.toggleAttribute('data-has-media', this._hasMedia);
133
+ applyCorner(this);
128
134
  }
129
135
  connectedCallback() {
130
136
  super.connectedCallback();
@@ -250,10 +256,13 @@ let NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
250
256
  return heroTemplate(this);
251
257
  }
252
258
  };
253
- NLDDHero.styles = heroStyles;
259
+ NLDDHero.styles = [heroStyles, heroCornerStyles];
254
260
  __decorate([
255
261
  property({ reflect: true, converter: reflectNonDefault('') })
256
262
  ], NLDDHero.prototype, "width", void 0);
263
+ __decorate([
264
+ property({ type: String, reflect: true })
265
+ ], NLDDHero.prototype, "corner", void 0);
257
266
  __decorate([
258
267
  property({ reflect: true, converter: reflectNonDefault('overlap') })
259
268
  ], 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;A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SAAS,EAAE,iBAAiB,CAAmB,aAAa,CAAC,EAAE,CAAC;8CACxE;AAK/C;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;kDACjF;AAGtB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;6CAChF;AAGjB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,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;AAnDV,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CA4LpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"popover.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/popover/popover.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,yBAoGzB,CAAC"}
1
+ {"version":3,"file":"popover.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/popover/popover.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,yBAwGzB,CAAC"}
@@ -22,6 +22,10 @@ export const popoverStyles = css `
22
22
  overflow: auto;
23
23
  padding: 0;
24
24
  isolation: isolate;
25
+ /* Selectable again under a trigger that switches selection off for itself
26
+ and everything in it, as nldd-button and nldd-menu-bar-item do. */
27
+ -webkit-user-select: text;
28
+ user-select: text;
25
29
 
26
30
  @media (max-width: ${smMax}) {
27
31
  position: fixed;
@@ -1 +1 @@
1
- {"version":3,"file":"popover.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/popover/popover.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,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,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;uBAqBT,KAAK;;;;;;;;;;;;;;uBAcL,KAAK;;;;;;;;;;;;;;;;;;;;;;;sBAuBN,KAAK;;;;;;;;;;;;;uBAaJ,KAAK;;;;;;;;;;uBAUL,KAAK;;;;;;uBAML,KAAK;;;;;;;;;;;;;CAa3B,CAAC"}
1
+ {"version":3,"file":"popover.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/popover/popover.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,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,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;uBAyBT,KAAK;;;;;;;;;;;;;;uBAcL,KAAK;;;;;;;;;;;;;;;;;;;;;;;sBAuBN,KAAK;;;;;;;;;;;;;uBAaJ,KAAK;;;;;;;;;;uBAUL,KAAK;;;;;;uBAML,KAAK;;;;;;;;;;;;;CAa3B,CAAC"}
@@ -25,7 +25,7 @@
25
25
  * @attr {boolean} centered - Centers both axes on the viewport. Overridable per axis: `centered top="0"` is horizontally centered, top aligned. Mirrors CSS `place-items: center` with `align-items`/`justify-items` overrides.
26
26
  * @attr {string} accessible-label - Accessible name (aria-label). Unset, the window takes the text of the nldd-top-title-bar inside it, and without one the i18n default ('Venster'). Each window needs a unique, descriptive name, from either.
27
27
  * @attr {object} translations - Override translation keys; unset keys fall back to the Dutch default.
28
- * @attr {boolean} no-light-dismiss - A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a wizard, a form with filled-in fields. Escape and the dismiss button keep working.
28
+ * @attr {boolean} no-light-dismiss - A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a process of several steps, a form with filled-in fields. Escape and the dismiss button keep working.
29
29
  * @attr {boolean} open - Whether the window is open. Set it to open or close the window, as an alternative to show() and hide(). The window clears it itself when it closes another way (Escape, the backdrop, the close button of its title bar), so bind it together with the close event.
30
30
  *
31
31
  * @slot - Complete window content (e.g. nldd-page)
@@ -25,7 +25,7 @@
25
25
  * @attr {boolean} centered - Centers both axes on the viewport. Overridable per axis: `centered top="0"` is horizontally centered, top aligned. Mirrors CSS `place-items: center` with `align-items`/`justify-items` overrides.
26
26
  * @attr {string} accessible-label - Accessible name (aria-label). Unset, the window takes the text of the nldd-top-title-bar inside it, and without one the i18n default ('Venster'). Each window needs a unique, descriptive name, from either.
27
27
  * @attr {object} translations - Override translation keys; unset keys fall back to the Dutch default.
28
- * @attr {boolean} no-light-dismiss - A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a wizard, a form with filled-in fields. Escape and the dismiss button keep working.
28
+ * @attr {boolean} no-light-dismiss - A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a process of several steps, a form with filled-in fields. Escape and the dismiss button keep working.
29
29
  * @attr {boolean} open - Whether the window is open. Set it to open or close the window, as an alternative to show() and hide(). The window clears it itself when it closes another way (Escape, the backdrop, the close button of its title bar), so bind it together with the close event.
30
30
  *
31
31
  * @slot - Complete window content (e.g. nldd-page)
@@ -41,7 +41,8 @@
41
41
  *
42
42
  * @slot header - One `<nldd-table-row slot="header">` carrying the column headers
43
43
  * @slot - The body rows (`<nldd-table-row>`)
44
- * @slot empty - Shown when there are no visible body rows (the header is hidden too). Empty by default: what an empty table should say is the app's to write, so put an `nldd-inline-dialog` here.
44
+ * @slot empty - Shown when the table has no body rows (the header is hidden too). Empty by default: what an empty table should say is the app's to write, so put an `nldd-inline-dialog` here.
45
+ * @slot no-results - Shown when the table has body rows but every one of them is `[hidden]`, which is what consumer-driven filtering leaves behind. A different state from `empty` and a different sentence: say that nothing matches and how to get rows back. Falls back to `[slot="empty"]` when not given.
45
46
  *
46
47
  * @element nldd-table-row
47
48
  *
@@ -81,10 +82,12 @@ export declare class NLDDTable extends LitElement {
81
82
  connectedCallback(): void;
82
83
  disconnectedCallback(): void;
83
84
  firstUpdated(): void;
84
- /** Show the empty-state slot when there are no visible body rows (header
85
- * excluded). Toggled imperatively (like the tabindex affordance) so it
86
- * doesn't schedule a reactive re-render out of firstUpdated. The `is-empty`
87
- * host class drives hiding the header (CSS) so only the message shows. */
85
+ /** Show the empty-state row when there are no visible body rows (header
86
+ * excluded), with the no-results slot when there are rows that are all
87
+ * hidden and the empty slot otherwise. Toggled imperatively (like the
88
+ * tabindex affordance) so it doesn't schedule a reactive re-render out of
89
+ * firstUpdated. The `is-empty` host class drives hiding the header (CSS)
90
+ * so only the message shows. */
88
91
  private _updateEmpty;
89
92
  /**
90
93
  * A table with no rows and nothing to say about that.
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;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key,
47
47
  *
48
48
  * @slot header - One `<nldd-table-row slot="header">` carrying the column headers
49
49
  * @slot - The body rows (`<nldd-table-row>`)
50
- * @slot empty - Shown when there are no visible body rows (the header is hidden too). Empty by default: what an empty table should say is the app's to write, so put an `nldd-inline-dialog` here.
50
+ * @slot empty - Shown when the table has no body rows (the header is hidden too). Empty by default: what an empty table should say is the app's to write, so put an `nldd-inline-dialog` here.
51
+ * @slot no-results - Shown when the table has body rows but every one of them is `[hidden]`, which is what consumer-driven filtering leaves behind. A different state from `empty` and a different sentence: say that nothing matches and how to get rows back. Falls back to `[slot="empty"]` when not given.
51
52
  *
52
53
  * @element nldd-table-row
53
54
  *
@@ -150,10 +151,12 @@ let NLDDTable = class NLDDTable extends LitElement {
150
151
  });
151
152
  this._updateEmpty();
152
153
  }
153
- /** Show the empty-state slot when there are no visible body rows (header
154
- * excluded). Toggled imperatively (like the tabindex affordance) so it
155
- * doesn't schedule a reactive re-render out of firstUpdated. The `is-empty`
156
- * host class drives hiding the header (CSS) so only the message shows. */
154
+ /** Show the empty-state row when there are no visible body rows (header
155
+ * excluded), with the no-results slot when there are rows that are all
156
+ * hidden and the empty slot otherwise. Toggled imperatively (like the
157
+ * tabindex affordance) so it doesn't schedule a reactive re-render out of
158
+ * firstUpdated. The `is-empty` host class drives hiding the header (CSS)
159
+ * so only the message shows. */
157
160
  _updateEmpty() {
158
161
  const empty = this.shadowRoot?.querySelector('.table__empty');
159
162
  if (!empty)
@@ -161,11 +164,15 @@ let NLDDTable = class NLDDTable extends LitElement {
161
164
  const slot = this.shadowRoot?.querySelector('slot:not([name])');
162
165
  const rows = (slot?.assignedElements() ?? []).filter((el) => el.localName === 'nldd-table-row');
163
166
  const isEmpty = rows.length === 0 || rows.every((row) => row.hasAttribute('hidden'));
167
+ const hasEmpty = !!this.querySelector(':scope > [slot="empty"]');
168
+ const noResults = isEmpty && rows.length > 0 && !!this.querySelector(':scope > [slot="no-results"]');
164
169
  empty.toggleAttribute('hidden', !isEmpty);
170
+ this.shadowRoot?.querySelector('slot[name="empty"]')?.toggleAttribute('hidden', noResults);
171
+ this.shadowRoot?.querySelector('slot[name="no-results"]')?.toggleAttribute('hidden', !noResults);
165
172
  this.classList.toggle('is-empty', isEmpty);
166
173
  // See nldd-list: no rows and nothing slotted is not a thing on the page.
167
- this.classList.toggle('is-blank', isEmpty && !this.querySelector(':scope > [slot="empty"]'));
168
- this._warnSilentEmpty(isEmpty);
174
+ this.classList.toggle('is-blank', isEmpty && !noResults && !hasEmpty);
175
+ this._warnSilentEmpty(isEmpty, hasEmpty, rows.length > 0);
169
176
  }
170
177
  /**
171
178
  * A table with no rows and nothing to say about that.
@@ -176,12 +183,14 @@ let NLDDTable = class NLDDTable extends LitElement {
176
183
  * tree either, so the table asks the person building it rather than
177
184
  * answering for them.
178
185
  */
179
- _warnSilentEmpty(isEmpty) {
186
+ _warnSilentEmpty(isEmpty, hasEmpty, hasRows) {
180
187
  if (!import.meta.env?.DEV)
181
188
  return;
182
- if (!isEmpty || this._warnedSilentEmpty)
189
+ if (!isEmpty || this._warnedSilentEmpty || hasEmpty)
183
190
  return;
184
- if (this.querySelector(':scope > [slot="empty"]'))
191
+ // Rows that are all hidden are the no-results state, and a slot that covers
192
+ // it answers the question.
193
+ if (hasRows && this.querySelector(':scope > [slot="no-results"]'))
185
194
  return;
186
195
  this._warnedSilentEmpty = true;
187
196
  console.warn('nldd-table: no rows and nothing in [slot="empty"], so the table renders a blank area. '