@nldd/design-system 0.17.1 → 0.19.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 (184) hide show
  1. package/custom-elements.json +384 -338
  2. package/dist/assets/styles/breakpoints.d.ts +9 -0
  3. package/dist/assets/styles/breakpoints.d.ts.map +1 -1
  4. package/dist/assets/styles/breakpoints.js +9 -0
  5. package/dist/assets/styles/breakpoints.js.map +1 -1
  6. package/dist/components/actions/menu/menu.d.ts +7 -1
  7. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  8. package/dist/components/actions/menu/menu.js +15 -2
  9. package/dist/components/actions/menu/menu.js.map +1 -1
  10. package/dist/components/{breakpoints-Bti55RWY.js → breakpoints-DtL62nLI.js} +8 -1
  11. package/dist/components/components.js +660 -285
  12. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  13. package/dist/components/content/code-viewer/code-viewer.styles.js +1 -0
  14. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  15. package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
  16. package/dist/components/content/icon/icon-gallery-status.js +12 -6
  17. package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
  18. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  19. package/dist/components/content/icon/icon-registry.js +373 -372
  20. package/dist/components/content/icon/icon-registry.js.map +1 -1
  21. package/dist/components/{decorate-D2HtKmpx.js → decorate-C7khEuc7.js} +1 -1
  22. package/dist/components/{defer-focus-JRj1EYUV.js → defer-focus-BQ3c4mzj.js} +2 -2
  23. package/dist/components/{dev-checks-BPjCXw_r.js → dev-checks-lQ-gHUjV.js} +30 -25
  24. package/dist/components/icon-CrBk3W-t.js +969 -0
  25. package/dist/components/{icon-button-BgeikVnm.js → icon-button-CfpnGzYQ.js} +3 -3
  26. package/dist/components/index.d.ts +1 -1
  27. package/dist/components/index.d.ts.map +1 -1
  28. package/dist/components/index.js +1 -1
  29. package/dist/components/index.js.map +1 -1
  30. package/dist/components/inputs/number-field/number-field.d.ts +18 -9
  31. package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
  32. package/dist/components/inputs/number-field/number-field.js +73 -34
  33. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  34. package/dist/components/inputs/number-field/number-field.template.d.ts.map +1 -1
  35. package/dist/components/inputs/number-field/number-field.template.js +8 -5
  36. package/dist/components/inputs/number-field/number-field.template.js.map +1 -1
  37. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +20 -1
  38. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
  39. package/dist/components/inputs/one-time-code-field/one-time-code-field.js +97 -3
  40. package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
  41. package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts.map +1 -1
  42. package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js +132 -4
  43. package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -1
  44. package/dist/components/inputs/one-time-code-field/one-time-code-field.template.d.ts +1 -0
  45. package/dist/components/inputs/one-time-code-field/one-time-code-field.template.d.ts.map +1 -1
  46. package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js +21 -1
  47. package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js.map +1 -1
  48. package/dist/components/inputs/search-field/search-field.d.ts +2 -2
  49. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  50. package/dist/components/inputs/search-field/search-field.js +1 -1
  51. package/dist/components/inputs/search-field/search-field.template.js +1 -1
  52. package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
  53. package/dist/components/inputs/slider/slider.d.ts +5 -0
  54. package/dist/components/inputs/slider/slider.d.ts.map +1 -1
  55. package/dist/components/inputs/slider/slider.js +13 -5
  56. package/dist/components/inputs/slider/slider.js.map +1 -1
  57. package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
  58. package/dist/components/inputs/slider/slider.styles.js +2 -1
  59. package/dist/components/inputs/slider/slider.styles.js.map +1 -1
  60. package/dist/components/inputs/time-picker/time-picker.d.ts +25 -1
  61. package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
  62. package/dist/components/inputs/time-picker/time-picker.js +95 -6
  63. package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
  64. package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
  65. package/dist/components/inputs/time-picker/time-picker.styles.js +8 -0
  66. package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
  67. package/dist/components/inputs/time-picker/time-picker.template.d.ts.map +1 -1
  68. package/dist/components/inputs/time-picker/time-picker.template.js +3 -0
  69. package/dist/components/inputs/time-picker/time-picker.template.js.map +1 -1
  70. package/dist/components/{just-in-time-education.i18n-eCghRteQ.js → just-in-time-education.i18n-BqU1ImP4.js} +10 -10
  71. package/dist/components/layout/card/card.styles.d.ts.map +1 -1
  72. package/dist/components/layout/card/card.styles.js +2 -9
  73. package/dist/components/layout/card/card.styles.js.map +1 -1
  74. package/dist/components/layout/{column-board/column-board-column.d.ts → kanban/kanban-column.d.ts} +5 -5
  75. package/dist/components/layout/kanban/kanban-column.d.ts.map +1 -0
  76. package/dist/components/layout/{column-board/column-board-column.js → kanban/kanban-column.js} +34 -34
  77. package/dist/components/layout/kanban/kanban-column.js.map +1 -0
  78. package/dist/components/layout/kanban/kanban-column.template.d.ts +3 -0
  79. package/dist/components/layout/kanban/kanban-column.template.d.ts.map +1 -0
  80. package/dist/components/layout/{column-board/column-board-column.template.js → kanban/kanban-column.template.js} +10 -10
  81. package/dist/components/layout/kanban/kanban-column.template.js.map +1 -0
  82. package/dist/components/layout/{column-board/column-board.d.ts → kanban/kanban.d.ts} +22 -22
  83. package/dist/components/layout/kanban/kanban.d.ts.map +1 -0
  84. package/dist/components/layout/kanban/kanban.i18n.d.ts +11 -0
  85. package/dist/components/layout/kanban/kanban.i18n.d.ts.map +1 -0
  86. package/dist/components/layout/kanban/kanban.i18n.js +10 -0
  87. package/dist/components/layout/kanban/kanban.i18n.js.map +1 -0
  88. package/dist/components/layout/{column-board/column-board.js → kanban/kanban.js} +44 -44
  89. package/dist/components/layout/kanban/kanban.js.map +1 -0
  90. package/dist/components/layout/kanban/kanban.styles.d.ts +3 -0
  91. package/dist/components/layout/kanban/kanban.styles.d.ts.map +1 -0
  92. package/dist/components/layout/kanban/kanban.styles.js +260 -0
  93. package/dist/components/layout/kanban/kanban.styles.js.map +1 -0
  94. package/dist/components/layout/kanban/kanban.template.d.ts +3 -0
  95. package/dist/components/layout/kanban/kanban.template.d.ts.map +1 -0
  96. package/dist/components/layout/{column-board/column-board.template.js → kanban/kanban.template.js} +5 -5
  97. package/dist/components/layout/kanban/kanban.template.js.map +1 -0
  98. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
  99. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -1
  100. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
  101. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +15 -3
  102. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
  103. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
  104. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -1
  105. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
  106. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +6 -7
  107. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
  108. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
  109. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -1
  110. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
  111. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +6 -7
  112. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
  113. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  114. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +1 -6
  115. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  116. package/dist/components/{nl.generated-B0pvf8VH.js → nl.generated-DzZkOgnP.js} +2 -2
  117. package/dist/components/status-and-feedback/banner/banner.d.ts +1 -1
  118. package/dist/components/status-and-feedback/banner/banner.js +1 -1
  119. package/dist/components/status-and-feedback/banner/banner.template.js +1 -1
  120. package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -1
  121. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +7 -1
  122. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
  123. package/dist/components/{visibility-mixin-Dti3xE8R.js → visibility-mixin-BMtETgjk.js} +2 -2
  124. package/dist/css/themes/bruin.css +1 -0
  125. package/dist/css/themes/donkerblauw.css +1 -0
  126. package/dist/css/themes/donkerbruin.css +1 -0
  127. package/dist/css/themes/donkergeel.css +1 -0
  128. package/dist/css/themes/donkergroen.css +1 -0
  129. package/dist/css/themes/geel.css +1 -0
  130. package/dist/css/themes/groen.css +1 -0
  131. package/dist/css/themes/hemelblauw.css +1 -0
  132. package/dist/css/themes/lichtblauw.css +1 -0
  133. package/dist/css/themes/mintgroen.css +1 -0
  134. package/dist/css/themes/mosgroen.css +1 -0
  135. package/dist/css/themes/oranje.css +1 -0
  136. package/dist/css/themes/paars.css +1 -0
  137. package/dist/css/themes/robijnrood.css +1 -0
  138. package/dist/css/themes/rood.css +1 -0
  139. package/dist/css/themes/roze.css +1 -0
  140. package/dist/css/themes/violet.css +1 -0
  141. package/dist/css/themes.css +17 -0
  142. package/dist/css/variables.css +1 -0
  143. package/dist/nldd.min.js +1428 -1331
  144. package/dist/translations/en-US.js +7 -7
  145. package/dist/translations/en-US.js.map +1 -1
  146. package/dist/translations/fy.js +7 -7
  147. package/dist/translations/fy.js.map +1 -1
  148. package/dist/translations/nl.generated.d.ts +7 -7
  149. package/dist/translations/nl.generated.js +2 -2
  150. package/dist/translations/nl.generated.js.map +1 -1
  151. package/dist/translations/pap-AW.js +7 -7
  152. package/dist/translations/pap-AW.js.map +1 -1
  153. package/dist/translations/pap-CW.js +7 -7
  154. package/dist/translations/pap-CW.js.map +1 -1
  155. package/dist/types/vue.d.ts +53 -49
  156. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  157. package/dist/utilities/dev-rules.generated.js +32 -27
  158. package/dist/utilities/dev-rules.generated.js.map +1 -1
  159. package/dist/utilities/file-drag-and-drop.js +1 -1
  160. package/dist/utilities/file-drag-and-drop.js.map +1 -1
  161. package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
  162. package/dist/utilities/form-associated-mixin.js +3 -1
  163. package/dist/utilities/form-associated-mixin.js.map +1 -1
  164. package/lint/data.generated.json +1 -1
  165. package/package.json +4 -4
  166. package/dist/components/icon-DU_IMj2t.js +0 -968
  167. package/dist/components/layout/column-board/column-board-column.d.ts.map +0 -1
  168. package/dist/components/layout/column-board/column-board-column.js.map +0 -1
  169. package/dist/components/layout/column-board/column-board-column.template.d.ts +0 -3
  170. package/dist/components/layout/column-board/column-board-column.template.d.ts.map +0 -1
  171. package/dist/components/layout/column-board/column-board-column.template.js.map +0 -1
  172. package/dist/components/layout/column-board/column-board.d.ts.map +0 -1
  173. package/dist/components/layout/column-board/column-board.i18n.d.ts +0 -11
  174. package/dist/components/layout/column-board/column-board.i18n.d.ts.map +0 -1
  175. package/dist/components/layout/column-board/column-board.i18n.js +0 -10
  176. package/dist/components/layout/column-board/column-board.i18n.js.map +0 -1
  177. package/dist/components/layout/column-board/column-board.js.map +0 -1
  178. package/dist/components/layout/column-board/column-board.styles.d.ts +0 -3
  179. package/dist/components/layout/column-board/column-board.styles.d.ts.map +0 -1
  180. package/dist/components/layout/column-board/column-board.styles.js +0 -260
  181. package/dist/components/layout/column-board/column-board.styles.js.map +0 -1
  182. package/dist/components/layout/column-board/column-board.template.d.ts +0 -3
  183. package/dist/components/layout/column-board/column-board.template.d.ts.map +0 -1
  184. package/dist/components/layout/column-board/column-board.template.js.map +0 -1
@@ -1,16 +1,16 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
2
- import { n as customElement, t as __decorate } from "./decorate-D2HtKmpx.js";
2
+ import { n as customElement, t as __decorate } from "./decorate-C7khEuc7.js";
3
3
  import { n as slottedReset, t as inheritedTextReset } from "./shadow-resets-BwOyyZFH.js";
4
- import { a as downloadLinkHintKey, c as linkRel, i as translate, n as withTranslations, o as linkHintKey, r as setTranslations, s as markDownloadTarget, t as deferFocus } from "./defer-focus-JRj1EYUV.js";
4
+ import { a as downloadLinkHintKey, c as linkRel, i as translate, n as withTranslations, o as linkHintKey, r as setTranslations, s as markDownloadTarget, t as deferFocus } from "./defer-focus-BQ3c4mzj.js";
5
5
  import { n as internalsOf, r as setState$1 } from "./element-state-BnarBv0M.js";
6
- import { a as releaseContext, c as anchorPopoverTarget, d as ShortcutAvailabilityController, f as hasShortcut, i as langOf, l as popoverTargetOf, m as shortcutsAvailable, n as NLDDTooltip, o as NLDDActivityIndicator, p as shortcutLabel, r as carryContext, s as PopupAnchorController, t as NLDDIconButton, u as NLDDKeyboardShortcut } from "./icon-button-BgeikVnm.js";
6
+ import { a as releaseContext, c as anchorPopoverTarget, d as ShortcutAvailabilityController, f as hasShortcut, i as langOf, l as popoverTargetOf, m as shortcutsAvailable, n as NLDDTooltip, o as NLDDActivityIndicator, p as shortcutLabel, r as carryContext, s as PopupAnchorController, t as NLDDIconButton, u as NLDDKeyboardShortcut } from "./icon-button-CfpnGzYQ.js";
7
7
  import { t as reflectNonDefault } from "./reflect-non-default-B9wQcnne.js";
8
8
  import { t as nlddButtonTranslations } from "./button.i18n-DiDGynnq.js";
9
- import { t as NLDDIcon } from "./icon-DU_IMj2t.js";
9
+ import { t as NLDDIcon } from "./icon-CrBk3W-t.js";
10
10
  import { n as isPointerMode, r as isTouchMode, t as isKeyboardMode } from "./input-modality-CiPLYYMN.js";
11
- import { A as nlddStepperTranslations, B as nlddComboBoxTranslations, C as nlddCardTranslations, D as nlddTimeFieldTranslations, E as nlddTokenFieldTranslations, F as nlddFileFieldTranslations, G as nlddCodeViewerTranslations, H as nlddTokenTranslations, I as nlddDateFieldTranslations, J as nlddAvatarTranslations, K as nlddAvatarGroupTranslations, L as MONTH_KEYS, M as nlddSearchFieldTranslations, N as nlddPasswordFieldTranslations, O as nlddTimePickerTranslations, P as nlddNumberFieldTranslations, R as WEEKDAY_KEYS, S as nlddCollectionTranslations, T as nlddSliderTranslations, U as nlddRichTextTranslations, V as nlddValidationListTranslations, W as nlddImageTranslations, X as nlddMenuTranslations, Y as nlddToolbarTranslations, Z as nlddSplitButtonTranslations, _ as nlddTableTranslations, a as nlddBadgeTranslations, b as nlddPageFooterTranslations, c as nlddPaginationTranslations, d as nlddTopNavigationBarTranslations, f as nlddSkipLinkTranslations, g as nlddDragHandleCellTranslations, h as nlddBreadcrumbsTranslations, i as nlddProgressBarTranslations, j as nlddSwatchPickerItemTranslations, k as nlddTextEditorTranslations, l as nlddDocumentTabBarTranslations, m as nlddMenuBarTranslations, n as nlddStepBarTranslations, o as nlddNotificationTranslations, p as nlddLinkTranslations, q as nlddPopoverTranslations, r as nlddProgressCircleTranslations, s as nlddBannerTranslations, t as nlddJustInTimeEducationTranslations, u as nlddTabBarTranslations, v as nlddListItemSegmentTranslations, w as nlddSidebarSectionTranslations, x as nlddWindowTranslations, y as nlddColumnBoardTranslations, z as nlddDatePickerTranslations } from "./just-in-time-education.i18n-eCghRteQ.js";
12
- import { n as queryBreakpoints, r as rootFontSize, t as breakpointPx } from "./breakpoints-Bti55RWY.js";
13
- import { t as VisibilityMixin } from "./visibility-mixin-Dti3xE8R.js";
11
+ import { A as nlddStepperTranslations, B as nlddComboBoxTranslations, C as nlddCardTranslations, D as nlddTimeFieldTranslations, E as nlddTokenFieldTranslations, F as nlddFileFieldTranslations, G as nlddCodeViewerTranslations, H as nlddTokenTranslations, I as nlddDateFieldTranslations, J as nlddAvatarTranslations, K as nlddAvatarGroupTranslations, L as MONTH_KEYS, M as nlddSearchFieldTranslations, N as nlddPasswordFieldTranslations, O as nlddTimePickerTranslations, P as nlddNumberFieldTranslations, R as WEEKDAY_KEYS, S as nlddCollectionTranslations, T as nlddSliderTranslations, U as nlddRichTextTranslations, V as nlddValidationListTranslations, W as nlddImageTranslations, X as nlddMenuTranslations, Y as nlddToolbarTranslations, Z as nlddSplitButtonTranslations, _ as nlddTableTranslations, a as nlddBadgeTranslations, b as nlddPageFooterTranslations, c as nlddPaginationTranslations, d as nlddTopNavigationBarTranslations, f as nlddSkipLinkTranslations, g as nlddDragHandleCellTranslations, h as nlddBreadcrumbsTranslations, i as nlddProgressBarTranslations, j as nlddSwatchPickerItemTranslations, k as nlddTextEditorTranslations, l as nlddDocumentTabBarTranslations, m as nlddMenuBarTranslations, n as nlddStepBarTranslations, o as nlddNotificationTranslations, p as nlddLinkTranslations, q as nlddPopoverTranslations, r as nlddProgressCircleTranslations, s as nlddBannerTranslations, t as nlddJustInTimeEducationTranslations, u as nlddTabBarTranslations, v as nlddListItemSegmentTranslations, w as nlddSidebarSectionTranslations, x as nlddWindowTranslations, y as nlddKanbanTranslations, z as nlddDatePickerTranslations } from "./just-in-time-education.i18n-BqU1ImP4.js";
12
+ import { i as splitSectionBreakpoints, n as queryBreakpoints, r as rootFontSize, t as breakpointPx } from "./breakpoints-DtL62nLI.js";
13
+ import { t as VisibilityMixin } from "./visibility-mixin-BMtETgjk.js";
14
14
  import { t as nlddListTranslations } from "./list.i18n-CKqbhFQ_.js";
15
15
  import { t as nlddListItemTranslations } from "./list-item.i18n-89uqlBMK.js";
16
16
  import { $ as ChangeSet, A as syntaxTree, B as getDrawSelectionConfig, C as indentNodeProp, D as matchBrackets, E as languageDataProp, F as RectangleMarker, G as layer, H as gutter, I as ViewPlugin, J as placeholder, K as lineNumbers, L as WidgetType, M as Direction, N as EditorView, P as GutterMarker, Q as ChangeDesc, R as drawSelection, S as getIndentation, T as indentUnit, U as gutterLineClass, W as keymap, X as tooltips, Y as showTooltip, Z as Annotation, _t as findClusterBreak, a as HighlightStyle, at as Prec, b as foldService, c as Language, d as ParseContext, dt as Text, et as Compartment, f as StreamLanguage, ft as Transaction, gt as countColumn, h as defineLanguageFacet, ht as combineConfig, j as Decoration, k as syntaxHighlighting, l as LanguageDescription, lt as StateEffect, nt as EditorState, o as IndentContext, ot as RangeSet, rt as Facet, st as RangeSetBuilder, tt as EditorSelection, u as LanguageSupport, ut as StateField, w as indentString, x as getIndentUnit, y as foldNodeProp, z as dropCursor } from "./dist-BFZM0YsR.js";
@@ -4194,7 +4194,9 @@ var NLDDMenu = class NLDDMenu extends LitElement {
4194
4194
  this._clearHighlight();
4195
4195
  };
4196
4196
  this._pointer = new MenuPointerController(this);
4197
+ this._openWindowWidth = 0;
4197
4198
  this._handleWindowResize = () => {
4199
+ if (window.innerWidth === this._openWindowWidth) return;
4198
4200
  this._collapseChain();
4199
4201
  };
4200
4202
  this._collapseChain = () => {
@@ -4208,7 +4210,8 @@ var NLDDMenu = class NLDDMenu extends LitElement {
4208
4210
  if (!this._isOpen) return;
4209
4211
  if (!this._isSubmenu) {
4210
4212
  const anchorEl = this._getAnchorEl();
4211
- if (anchorEl && event.composedPath().includes(anchorEl)) {
4213
+ const path = event.composedPath();
4214
+ if (anchorEl && path.includes(anchorEl) && !path.includes(this)) {
4212
4215
  this._collapsedByPointerGesture = true;
4213
4216
  return;
4214
4217
  }
@@ -4348,6 +4351,7 @@ var NLDDMenu = class NLDDMenu extends LitElement {
4348
4351
  this.setAttribute("positioned", "");
4349
4352
  const anchorEl = this._getAnchorEl();
4350
4353
  if (anchorEl) this._cleanupAutoUpdate = autoUpdate(anchorEl, this, () => this.reposition());
4354
+ this._openWindowWidth = window.innerWidth;
4351
4355
  window.addEventListener("resize", this._handleWindowResize, { passive: true });
4352
4356
  document.addEventListener("pointerdown", this._handleDocumentPointerdown, true);
4353
4357
  await this.updateComplete;
@@ -13960,6 +13964,7 @@ var codeViewerStyles = css`
13960
13964
 
13961
13965
  ${inheritedTextReset}
13962
13966
  display: flex;
13967
+ max-width: 100%;
13963
13968
  position: relative;
13964
13969
  /* Own stacking context so the absolutely-positioned actions button
13965
13970
  (z-index: var(--_code-viewer-actions-z-index)) stays scoped to the code-viewer
@@ -19332,7 +19337,7 @@ function FormAssociated(Base) {
19332
19337
  }
19333
19338
  const flags = {};
19334
19339
  let message = "";
19335
- if (target && !target.validity.valid) {
19340
+ if (target && target.willValidate && !target.validity.valid) {
19336
19341
  for (const sleutel of VALIDITY_FLAGS) if (target.validity[sleutel]) flags[sleutel] = true;
19337
19342
  message = target.validationMessage;
19338
19343
  }
@@ -24703,7 +24708,7 @@ function renderInput$1(component, text, index) {
24703
24708
  >
24704
24709
  `;
24705
24710
  }
24706
- function renderSeparator(component) {
24711
+ function renderSeparator$1(component) {
24707
24712
  return html`
24708
24713
  <span class="date-field__separator"
24709
24714
  aria-hidden="true"
@@ -24720,7 +24725,7 @@ function dateFieldTemplate(component) {
24720
24725
  @focusout=${component._handleFieldBlur}
24721
24726
  >
24722
24727
  ${component._texts.map((text, index) => html`
24723
- ${index > 0 ? renderSeparator(component) : nothing}
24728
+ ${index > 0 ? renderSeparator$1(component) : nothing}
24724
24729
  ${renderInput$1(component, text, index)}
24725
24730
  `)}
24726
24731
  <div class="date-field__input-fade"></div>
@@ -28264,8 +28269,10 @@ var numberFieldStyles = css`
28264
28269
  `;
28265
28270
  // src/components/inputs/number-field/number-field.template.ts
28266
28271
  function numberFieldTemplate(component) {
28267
- const canDecrease = component.value > component.min;
28268
- const canIncrease = component.value < component.max;
28272
+ const { value } = component;
28273
+ const empty = value === null;
28274
+ const canDecrease = value === null || value > component.min;
28275
+ const canIncrease = value === null || value < component.max;
28269
28276
  const iconButtonSize = component.size === "sm" ? "xs" : "sm";
28270
28277
  return html`
28271
28278
  <div class="number-field"
@@ -28289,11 +28296,12 @@ function numberFieldTemplate(component) {
28289
28296
  type="number"
28290
28297
  inputmode=${Number.isInteger(component.step) ? "numeric" : "decimal"}
28291
28298
  aria-label=${component.accessibleLabel || nothing}
28292
- .value=${String(component.value)}
28293
- min=${component.min}
28294
- max=${component.max}
28299
+ .value=${empty ? "" : String(value)}
28300
+ min=${Number.isFinite(component.min) ? component.min : nothing}
28301
+ max=${Number.isFinite(component.max) ? component.max : nothing}
28295
28302
  step=${component.step}
28296
28303
  ?disabled=${component.disabled}
28304
+ ?required=${component.required}
28297
28305
  name=${component.name || nothing}
28298
28306
  @keydown=${component._handleKeydown}
28299
28307
  @input=${component._handleInput}
@@ -28322,12 +28330,13 @@ function numberFieldTemplate(component) {
28322
28330
  * A numeric input field with decrement and increment buttons.
28323
28331
  *
28324
28332
  * @element nldd-number-field
28325
- * @attr {number} value - Current value
28333
+ * @attr {number} value - Current value. Leave it out for an empty field, which submits an empty string and takes `min` and `max` as no reason to be invalid: only `required` asks for a value, as with a native number input. As a property, `null` is empty. In an empty field + and - are both enabled, and start at 0, or at the nearer end of the range when 0 lies outside it (`min="1"` starts at 1).
28326
28334
  * @attr {number} min - Minimum value (default: -Infinity)
28327
28335
  * @attr {number} max - Maximum value (default: Infinity)
28328
28336
  * @attr {number} step - Step size (default: 1)
28329
28337
  * @attr {string} size - Size: 'sm' | 'md' (default: 'md')
28330
28338
  * @attr {boolean} disabled - Disabled state
28339
+ * @attr {boolean} required - A value has to be filled in. An empty field is then invalid.
28331
28340
  * @attr {string} name - Name for form submission
28332
28341
  * @attr {object} translations - Translations; unspecified keys fall back to Dutch
28333
28342
  * @attr {string} width - Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px')
@@ -28335,30 +28344,43 @@ function numberFieldTemplate(component) {
28335
28344
  * @attr {string} accessible-label - Accessible label (aria-label) forwarded to the native input
28336
28345
  * @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
28337
28346
  *
28338
- * @fires input - When the value changes (typing, +/- button, or on-commit correction); detail: { value: number }
28339
- * @fires change - When the value is committed (blur/Enter or +/- button), clamped to [min, max]; empty input falls back to the last valid value. When the committed value differs from the typed value, a matching input event is fired immediately before this one. detail: { value: number }
28347
+ * @fires input - When the value changes (typing, +/- button, or on-commit correction); not for typing that reads as the same number, such as `1.0` after `1`. detail: { value: number | null }, null when the field is empty
28348
+ * @fires change - When the value is committed (blur/Enter or +/- button), clamped to [min, max]; an emptied field, or text that is no number (such as `-` or `1e`), commits as empty: null. From empty, + and - start at 0, or at the nearer end of the range when 0 lies outside it. When the committed value differs from the typed value, a matching input event is fired immediately before this one. detail: { value: number | null }
28340
28349
  */
28341
- var _NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(LitElement)) {
28350
+ var _NLDDNumberField;
28351
+ /** A number as a native number input accepts it: no hex, no Infinity. Above
28352
+ * the class: an element already in the page upgrades while the class is
28353
+ * defined, before the rest of this module has run. */
28354
+ var FLOATING_POINT = /^-?(?:\d+(?:\.\d+)?|\.\d+)(?:[eE][-+]?\d+)?$/;
28355
+ /** An attribute or restored state as a number, or null when it is empty or no number. */
28356
+ function emptyOrNumber(value) {
28357
+ const text = value?.trim() ?? "";
28358
+ if (!FLOATING_POINT.test(text)) return null;
28359
+ const parsed = Number(text);
28360
+ return Number.isFinite(parsed) ? parsed : null;
28361
+ }
28362
+ var NLDDNumberField = (_NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(LitElement)) {
28342
28363
  constructor(..._args) {
28343
28364
  super(..._args);
28344
- this._initialValue = 0;
28345
- this.value = 0;
28365
+ this._initialValue = null;
28366
+ this.value = null;
28346
28367
  this.min = -Infinity;
28347
28368
  this.max = Infinity;
28348
28369
  this.step = 1;
28349
28370
  this.size = "md";
28350
28371
  this.disabled = false;
28372
+ this.required = false;
28351
28373
  this.name = "";
28352
28374
  this.width = "";
28353
28375
  this.hideSpinButtons = false;
28354
28376
  this.accessibleLabel = "";
28355
28377
  this.translations = {};
28356
- this._lastValidValue = 0;
28357
28378
  this.invalid = false;
28379
+ this._committed = null;
28380
+ this._typed = void 0;
28358
28381
  }
28359
28382
  firstUpdated() {
28360
- this._lastValidValue = this._clamp(this.value);
28361
- this._initialValue = this._lastValidValue;
28383
+ this._initialValue = this.value === null ? null : this._clamp(this.value);
28362
28384
  }
28363
28385
  updated(changedProperties) {
28364
28386
  if (changedProperties.has("width")) {
@@ -28366,29 +28388,39 @@ var _NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(
28366
28388
  if (w && w !== "full" && CSS.supports("width", w)) this.style.setProperty("--_number-field-width", w);
28367
28389
  else this.style.removeProperty("--_number-field-width");
28368
28390
  }
28369
- if (changedProperties.has("value")) this.commitFormValue();
28391
+ if (changedProperties.has("value")) {
28392
+ if (this.value !== this._typed) {
28393
+ this._committed = this.value;
28394
+ this._typed = void 0;
28395
+ }
28396
+ this.commitFormValue();
28397
+ }
28370
28398
  }
28371
28399
  formValue() {
28372
- return String(this.value);
28400
+ return this.value === null ? "" : String(this.value);
28373
28401
  }
28374
28402
  formResetCallback() {
28375
28403
  this.value = this._initialValue;
28376
28404
  }
28377
28405
  formStateRestoreCallback(state) {
28378
28406
  if (typeof state !== "string") return;
28379
- const parsed = parseFloat(state);
28380
- if (!isNaN(parsed)) this.value = this._clamp(parsed);
28407
+ const parsed = emptyOrNumber(state);
28408
+ this.value = parsed === null ? null : this._clamp(parsed);
28381
28409
  }
28382
28410
  _t(key) {
28383
28411
  return translate(this.translations, nlddNumberFieldTranslations, key);
28384
28412
  }
28385
28413
  _handleDecrease() {
28386
28414
  if (this.disabled) return;
28387
- this._commitValue(this.value - this.step);
28415
+ this._commitValue(this.value === null ? this._startValue() : this.value - this.step);
28388
28416
  }
28389
28417
  _handleIncrease() {
28390
28418
  if (this.disabled) return;
28391
- this._commitValue(this.value + this.step);
28419
+ this._commitValue(this.value === null ? this._startValue() : this.value + this.step);
28420
+ }
28421
+ /** Where + and - begin in an empty field: 0, or the nearer end of the range. */
28422
+ _startValue() {
28423
+ return this._clamp(0);
28392
28424
  }
28393
28425
  /** Fires while the user types. The value may be outside [min, max]; clamping happens on change. */
28394
28426
  /** Enter submits the form this field belongs to, the way the browser would
@@ -28399,8 +28431,10 @@ var _NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(
28399
28431
  _handleInput(e) {
28400
28432
  if (this.disabled) return;
28401
28433
  const input = e.target;
28402
- const parsed = parseFloat(input.value);
28403
- if (isNaN(parsed)) return;
28434
+ const parsed = input.value === "" && !input.validity.badInput ? null : parseFloat(input.value);
28435
+ if (parsed !== null && isNaN(parsed)) return;
28436
+ if (parsed === this.value) return;
28437
+ this._typed = parsed;
28404
28438
  this.value = parsed;
28405
28439
  this.commitFormValue();
28406
28440
  this.dispatchEvent(new CustomEvent("input", {
@@ -28409,27 +28443,29 @@ var _NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(
28409
28443
  composed: true
28410
28444
  }));
28411
28445
  }
28412
- /** Fires on blur or Enter. Clamps the value and falls back to the last valid value when empty. */
28446
+ /** Fires on blur or Enter. Clamps the value; an emptied field stays empty. */
28413
28447
  _handleChange(e) {
28414
28448
  if (this.disabled) return;
28415
28449
  const input = e.target;
28416
28450
  const parsed = parseFloat(input.value);
28417
- const finalValue = isNaN(parsed) ? this._lastValidValue : this._clamp(parsed);
28418
- this._commitValue(finalValue, input);
28451
+ this._commitValue(isNaN(parsed) ? null : parsed, input);
28419
28452
  }
28420
28453
  _commitValue(newValue, input) {
28421
- const clampedValue = this._clamp(newValue);
28422
- const changed = clampedValue !== this.value;
28454
+ const clampedValue = newValue === null ? null : this._clamp(newValue);
28455
+ const corrected = clampedValue !== this.value;
28456
+ const changed = clampedValue !== this._committed;
28423
28457
  this.value = clampedValue;
28424
- this._lastValidValue = clampedValue;
28425
- if (input) input.value = String(clampedValue);
28426
- if (!changed) return;
28458
+ this._committed = clampedValue;
28459
+ this._typed = void 0;
28460
+ if (input) input.value = clampedValue === null ? "" : String(clampedValue);
28461
+ if (!changed && !corrected) return;
28427
28462
  this.commitFormValue();
28428
- this.dispatchEvent(new CustomEvent("input", {
28463
+ if (corrected) this.dispatchEvent(new CustomEvent("input", {
28429
28464
  detail: { value: this.value },
28430
28465
  bubbles: true,
28431
28466
  composed: true
28432
28467
  }));
28468
+ if (!changed) return;
28433
28469
  this.dispatchEvent(new CustomEvent("change", {
28434
28470
  detail: { value: this.value },
28435
28471
  bubbles: true,
@@ -28450,9 +28486,8 @@ var _NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(
28450
28486
  render() {
28451
28487
  return numberFieldTemplate(this);
28452
28488
  }
28453
- };
28454
- var NLDDNumberField = (_NLDDNumberField.styles = numberFieldStyles, _NLDDNumberField.isFormInput = true, _NLDDNumberField.blocksImplicitSubmission = true, _NLDDNumberField);
28455
- __decorate([property({ type: Number })], NLDDNumberField.prototype, "value", void 0);
28489
+ }, _NLDDNumberField.styles = numberFieldStyles, _NLDDNumberField.isFormInput = true, _NLDDNumberField.blocksImplicitSubmission = true, _NLDDNumberField);
28490
+ __decorate([property({ converter: emptyOrNumber })], NLDDNumberField.prototype, "value", void 0);
28456
28491
  __decorate([property({ type: Number })], NLDDNumberField.prototype, "min", void 0);
28457
28492
  __decorate([property({ type: Number })], NLDDNumberField.prototype, "max", void 0);
28458
28493
  __decorate([property({ type: Number })], NLDDNumberField.prototype, "step", void 0);
@@ -28464,6 +28499,10 @@ __decorate([property({
28464
28499
  type: Boolean,
28465
28500
  reflect: true
28466
28501
  })], NLDDNumberField.prototype, "disabled", void 0);
28502
+ __decorate([property({
28503
+ type: Boolean,
28504
+ reflect: true
28505
+ })], NLDDNumberField.prototype, "required", void 0);
28467
28506
  __decorate([property({
28468
28507
  reflect: true,
28469
28508
  converter: reflectNonDefault("")
@@ -28499,12 +28538,19 @@ var oneTimeCodeFieldStyles = css`
28499
28538
  :host {
28500
28539
  --_one-time-code-field-gap: var(--primitives-space-8);
28501
28540
  --_one-time-code-field-box-size: var(--semantics-controls-md-min-size);
28541
+ --_one-time-code-field-box-width: var(--primitives-space-32);
28502
28542
  --_one-time-code-field-box-corner-radius: var(--semantics-controls-md-corner-radius);
28503
28543
  --_one-time-code-field-box-background-color: var(--semantics-input-fields-background-color);
28504
28544
  --_one-time-code-field-font: var(--semantics-input-fields-md-text-font);
28505
28545
  --_one-time-code-field-box-font: var(--primitives-font-monospace-md-regular-flat);
28506
28546
  --_one-time-code-field-caret-width: var(--primitives-space-2);
28507
28547
  --_one-time-code-field-caret-height: var(--primitives-space-20);
28548
+ --_one-time-code-field-space-width: var(--primitives-space-12);
28549
+ --_one-time-code-field-dash-width: var(--primitives-space-12);
28550
+ --_one-time-code-field-dash-height: var(--primitives-space-3);
28551
+ --_one-time-code-field-inline-padding: var(--semantics-controls-md-inline-padding);
28552
+ --_one-time-code-field-letter-spacing: 0.1em;
28553
+ --_one-time-code-field-validation-icon-size: var(--semantics-input-fields-md-validation-icon-size);
28508
28554
 
28509
28555
  ${inheritedTextReset}
28510
28556
  display: block;
@@ -28516,21 +28562,33 @@ var oneTimeCodeFieldStyles = css`
28516
28562
  display: none;
28517
28563
  }
28518
28564
 
28519
- :host([size="sm"]) {
28565
+ :host([size="sm"]),
28566
+ :host([data-fit="sm"]) {
28520
28567
  --_one-time-code-field-gap: var(--primitives-space-6);
28521
28568
  --_one-time-code-field-box-size: var(--semantics-controls-sm-min-size);
28569
+ --_one-time-code-field-box-width: var(--primitives-space-24);
28522
28570
  --_one-time-code-field-box-corner-radius: var(--semantics-controls-sm-corner-radius);
28523
28571
  --_one-time-code-field-font: var(--semantics-input-fields-sm-text-font);
28524
28572
  --_one-time-code-field-box-font: var(--primitives-font-monospace-sm-regular-flat);
28525
28573
  --_one-time-code-field-caret-height: var(--primitives-space-16);
28574
+ --_one-time-code-field-space-width: var(--primitives-space-8);
28575
+ --_one-time-code-field-dash-width: var(--primitives-space-10);
28576
+ --_one-time-code-field-dash-height: var(--primitives-space-2);
28577
+ --_one-time-code-field-inline-padding: var(--semantics-controls-sm-inline-padding);
28578
+ --_one-time-code-field-validation-icon-size: var(--semantics-input-fields-sm-validation-icon-size);
28526
28579
  }
28527
28580
 
28528
- :host([size="lg"]) {
28581
+ :host([size="lg"]:not([data-fit="md"], [data-fit="sm"])) {
28529
28582
  --_one-time-code-field-gap: var(--primitives-space-10);
28530
28583
  --_one-time-code-field-box-size: var(--semantics-controls-lg-min-size);
28584
+ --_one-time-code-field-box-width: var(--primitives-space-40);
28531
28585
  --_one-time-code-field-box-corner-radius: var(--semantics-controls-lg-corner-radius);
28532
28586
  --_one-time-code-field-box-font: var(--primitives-font-weight-body-regular) var(--primitives-font-size-300) / var(--primitives-line-height-flat) var(--primitives-font-family-monospace);
28533
28587
  --_one-time-code-field-caret-height: var(--primitives-space-28);
28588
+ --_one-time-code-field-space-width: var(--primitives-space-16);
28589
+ --_one-time-code-field-dash-width: var(--primitives-space-16);
28590
+ --_one-time-code-field-dash-height: var(--primitives-space-4);
28591
+ --_one-time-code-field-inline-padding: var(--semantics-controls-lg-inline-padding);
28534
28592
  }
28535
28593
 
28536
28594
  :host([readonly]) {
@@ -28547,6 +28605,10 @@ var oneTimeCodeFieldStyles = css`
28547
28605
  max-width: 100%;
28548
28606
  }
28549
28607
 
28608
+ :host([centered]) .one-time-code-field {
28609
+ margin-inline: auto;
28610
+ }
28611
+
28550
28612
  :host([disabled]) .one-time-code-field {
28551
28613
  opacity: var(--primitives-opacity-disabled);
28552
28614
  }
@@ -28572,7 +28634,7 @@ var oneTimeCodeFieldStyles = css`
28572
28634
  appearance: none;
28573
28635
  }
28574
28636
 
28575
- .one-time-code-field__input::selection {
28637
+ :host(:not([data-fit="field"])) .one-time-code-field__input::selection {
28576
28638
  background: transparent;
28577
28639
  }
28578
28640
 
@@ -28597,7 +28659,7 @@ var oneTimeCodeFieldStyles = css`
28597
28659
  border: var(--semantics-input-fields-border);
28598
28660
  border-radius: var(--_one-time-code-field-box-corner-radius);
28599
28661
  background-color: var(--_one-time-code-field-box-background-color);
28600
- width: var(--_one-time-code-field-box-size);
28662
+ width: var(--_one-time-code-field-box-width);
28601
28663
  min-width: 0;
28602
28664
  height: var(--_one-time-code-field-box-size);
28603
28665
  flex-shrink: 1;
@@ -28629,6 +28691,20 @@ var oneTimeCodeFieldStyles = css`
28629
28691
  white-space: pre;
28630
28692
  }
28631
28693
 
28694
+ .one-time-code-field__separator.is-space {
28695
+ width: var(--_one-time-code-field-space-width);
28696
+ flex-shrink: 0;
28697
+ }
28698
+
28699
+ .one-time-code-field__separator.is-dash {
28700
+ border-radius: calc(var(--_one-time-code-field-dash-height) / 2);
28701
+ background-color: currentColor;
28702
+ width: var(--_one-time-code-field-dash-width);
28703
+ height: var(--_one-time-code-field-dash-height);
28704
+ flex-shrink: 0;
28705
+ align-self: center;
28706
+ }
28707
+
28632
28708
  .one-time-code-field__character {
28633
28709
  position: relative;
28634
28710
  }
@@ -28661,6 +28737,97 @@ var oneTimeCodeFieldStyles = css`
28661
28737
  }
28662
28738
 
28663
28739
 
28740
+ /* # Field */
28741
+
28742
+ :host([data-fit="field"]) .one-time-code-field {
28743
+ box-sizing: border-box;
28744
+ border: var(--semantics-input-fields-border);
28745
+ border-radius: var(--_one-time-code-field-box-corner-radius);
28746
+ background-color: var(--_one-time-code-field-box-background-color);
28747
+ width: 100%;
28748
+ height: var(--_one-time-code-field-box-size);
28749
+ overflow: hidden;
28750
+ padding-left: calc(var(--_one-time-code-field-inline-padding) - var(--semantics-input-fields-border-width));
28751
+ align-items: center;
28752
+ }
28753
+
28754
+ .one-time-code-field__input-fade,
28755
+ .one-time-code-field__validation-icon-area {
28756
+ display: none;
28757
+ }
28758
+
28759
+ :host([data-fit="field"]) .one-time-code-field__input-fade {
28760
+ display: block;
28761
+ position: relative;
28762
+ width: 0;
28763
+ flex-shrink: 0;
28764
+ align-self: stretch;
28765
+ }
28766
+
28767
+ :host([data-fit="field"]) .one-time-code-field__input-fade::after {
28768
+ content: '';
28769
+ position: absolute;
28770
+ top: 0;
28771
+ right: 0;
28772
+ bottom: 0;
28773
+ background: linear-gradient(90deg, color-mix(in oklch, var(--_one-time-code-field-box-background-color) 0%, transparent) 0%, var(--_one-time-code-field-box-background-color) 100%);
28774
+ pointer-events: none;
28775
+ width: var(--primitives-space-8);
28776
+ }
28777
+
28778
+ :host([data-fit="field"]) .one-time-code-field__validation-icon-area {
28779
+ display: flex;
28780
+ width: calc(var(--_one-time-code-field-box-size) - var(--semantics-input-fields-border-width) * 2);
28781
+ height: 100%;
28782
+ flex-shrink: 0;
28783
+ align-items: center;
28784
+ justify-content: center;
28785
+ color: var(--semantics-input-fields-is-invalid-icon-color);
28786
+ }
28787
+
28788
+ .one-time-code-field__validation-icon {
28789
+ width: var(--_one-time-code-field-validation-icon-size);
28790
+ height: var(--_one-time-code-field-validation-icon-size);
28791
+ }
28792
+
28793
+ :host([data-fit="field"]) .one-time-code-field:has(.one-time-code-field__input:focus-visible) {
28794
+ outline: var(--semantics-focus-ring-outline);
28795
+ outline-offset: var(--semantics-focus-ring-outline-offset);
28796
+ box-shadow: var(--semantics-focus-ring-box-shadow);
28797
+ }
28798
+
28799
+ :host([data-fit="field"][invalid]) .one-time-code-field {
28800
+ border-color: var(--semantics-input-fields-is-invalid-border-color);
28801
+ }
28802
+
28803
+ :host([data-fit="field"][readonly]) .one-time-code-field {
28804
+ border-color: var(--semantics-input-fields-is-read-only-border-color);
28805
+ }
28806
+
28807
+ :host([data-fit="field"]) .one-time-code-field__boxes {
28808
+ display: none;
28809
+ }
28810
+
28811
+ :host([data-fit="field"]) .one-time-code-field__input {
28812
+ position: static;
28813
+ z-index: auto;
28814
+ width: auto;
28815
+ min-width: 0;
28816
+ height: 100%;
28817
+ flex-grow: 1;
28818
+ color: var(--semantics-content-color);
28819
+ font: var(--_one-time-code-field-box-font);
28820
+ letter-spacing: var(--_one-time-code-field-letter-spacing);
28821
+ caret-color: auto;
28822
+ }
28823
+
28824
+ :host([data-fit="field"]) .one-time-code-field__input:-webkit-autofill,
28825
+ :host([data-fit="field"]) .one-time-code-field__input:autofill {
28826
+ box-shadow: 0 0 0 999px var(--_one-time-code-field-box-background-color) inset;
28827
+ -webkit-text-fill-color: currentColor;
28828
+ }
28829
+
28830
+
28664
28831
  /* # Accessibility */
28665
28832
 
28666
28833
  @media (forced-colors: active) {
@@ -28697,7 +28864,15 @@ function renderBoxes(component) {
28697
28864
  const parts = component.formatParts;
28698
28865
  if (!parts) return Array.from({ length: component.boxes }, (_, index) => renderBox(component, index));
28699
28866
  let index = 0;
28700
- return parts.map((part) => part === BOX ? renderBox(component, index++) : html`<span class="one-time-code-field__separator">${part}</span>`);
28867
+ return parts.map((part) => part === BOX ? renderBox(component, index++) : renderSeparator(part));
28868
+ }
28869
+ /** A space becomes room between the groups and a dash a drawn bar, both sized
28870
+ * with the boxes; any other character stays text. */
28871
+ function renderSeparator(part) {
28872
+ const mark = part.trim();
28873
+ if (mark === "") return html`<span class="one-time-code-field__separator is-space"></span>`;
28874
+ if (mark === "-" || mark === "–") return html`<span class="one-time-code-field__separator is-dash"></span>`;
28875
+ return html`<span class="one-time-code-field__separator">${part}</span>`;
28701
28876
  }
28702
28877
  function oneTimeCodeFieldTemplate(component) {
28703
28878
  return html`
@@ -28728,6 +28903,15 @@ function oneTimeCodeFieldTemplate(component) {
28728
28903
  @input=${component._handleInput}
28729
28904
  @change=${component._handleChange}
28730
28905
  >
28906
+ <div class="one-time-code-field__input-fade"></div>
28907
+ ${component.invalid ? html`
28908
+ <div class="one-time-code-field__validation-icon-area">
28909
+ <nldd-icon class="one-time-code-field__validation-icon"
28910
+ icon="invalid"
28911
+ aria-hidden="true"
28912
+ ></nldd-icon>
28913
+ </div>
28914
+ ` : nothing}
28731
28915
  <div class="one-time-code-field__boxes"
28732
28916
  aria-hidden="true"
28733
28917
  >
@@ -28766,7 +28950,8 @@ function oneTimeCodeFieldTemplate(component) {
28766
28950
  *
28767
28951
  * @element nldd-one-time-code-field
28768
28952
  *
28769
- * @attr {string} size - 'sm' | 'md' (default) | 'lg'. 'lg' has boxes of 56px with larger characters, for a page where the code is the only thing to do, such as signing in.
28953
+ * @attr {string} size - 'sm' | 'md' (default) | 'lg'. 'lg' has boxes 56px tall with larger characters, for a page where the code is the only thing to do, such as signing in. Where the boxes do not fit the width, the field steps down a size, to md and then sm: a code never wraps onto a second line. Where not even sm fits, the field shows the code in a text field of its own size.
28954
+ * @attr {boolean} centered - Puts the boxes in the middle of the row, as on a sign-in page where the code is the only field. The field keeps the full width of the row, so it still sees when the boxes no longer fit and steps down a size; centering it from outside, with the alignment of its parent, would shrink it to its boxes and take that away.
28770
28955
  * @attr {number} length - How many characters the code has (default: 6).
28771
28956
  * @attr {string} format - The shape of a code that is printed in groups, such as '###-###' or '#### ####': each `#` is a box, anything else a separator you see but a screen reader does not hear. The number of `#` is then the length, so `format` wins over `length`. The value never holds a separator: '123-234' is submitted as '123234'. Leave it out for a code without groups, as most codes from a text message are.
28772
28957
  * @attr {string} accessible-label - Accessible label forwarded to the inner input. Set automatically by nldd-form-field.
@@ -28802,6 +28987,7 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
28802
28987
  super(..._args);
28803
28988
  this._initialValue = "";
28804
28989
  this.size = "md";
28990
+ this.centered = false;
28805
28991
  this.length = DEFAULT_LENGTH;
28806
28992
  this.format = "";
28807
28993
  this.accessibleLabel = "";
@@ -28885,6 +29071,49 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
28885
29071
  firstUpdated() {
28886
29072
  this._initialValue = this.value;
28887
29073
  }
29074
+ connectedCallback() {
29075
+ super.connectedCallback();
29076
+ this._resizeObserver = new ResizeObserver(() => this._fit());
29077
+ this._resizeObserver.observe(this);
29078
+ }
29079
+ disconnectedCallback() {
29080
+ this._resizeObserver?.disconnect();
29081
+ super.disconnectedCallback();
29082
+ }
29083
+ updated(changed) {
29084
+ super.updated(changed);
29085
+ if ([
29086
+ "size",
29087
+ "length",
29088
+ "format"
29089
+ ].some((key) => changed.has(key))) this._fit();
29090
+ }
29091
+ /** Steps down from `size` until the boxes fit the width, so a code never
29092
+ * wraps. Where not even sm fits, the input itself shows as a text field in
29093
+ * the size of `size`. The boxes are measured at their full width for this. */
29094
+ _fit() {
29095
+ const boxes = this.shadowRoot?.querySelector(".one-time-code-field__boxes");
29096
+ const available = this.clientWidth;
29097
+ if (!boxes || available === 0) return;
29098
+ const sizes = [
29099
+ "lg",
29100
+ "md",
29101
+ "sm"
29102
+ ];
29103
+ const start = sizes.includes(this.size) ? sizes.indexOf(this.size) : sizes.indexOf("md");
29104
+ this.removeAttribute("data-fit");
29105
+ boxes.style.minWidth = "max-content";
29106
+ let fits = false;
29107
+ for (const size of sizes.slice(start)) {
29108
+ if (size !== this.size) this.setAttribute("data-fit", size);
29109
+ if (boxes.getBoundingClientRect().width <= available + .5) {
29110
+ fits = true;
29111
+ break;
29112
+ }
29113
+ }
29114
+ boxes.style.removeProperty("min-width");
29115
+ if (!fits) this.setAttribute("data-fit", "field");
29116
+ }
28888
29117
  formValue() {
28889
29118
  return this.value;
28890
29119
  }
@@ -28923,6 +29152,7 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
28923
29152
  * keeps the browser's focus, which is what raises the keyboard.
28924
29153
  */
28925
29154
  _handlePointerDown(e) {
29155
+ if (this._asField) return;
28926
29156
  const box = this._boxAt(e.clientX);
28927
29157
  this._pressedBox = box;
28928
29158
  this._moveTo(box);
@@ -28932,6 +29162,7 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
28932
29162
  }
28933
29163
  _handleFocus() {
28934
29164
  this._focused = true;
29165
+ if (this._asField) return;
28935
29166
  if (this._pressedBox === null) this._moveTo(this._nextBox);
28936
29167
  this._pressedBox = null;
28937
29168
  this._keepNativeCaretAtEnd();
@@ -28943,7 +29174,7 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
28943
29174
  /** The native caret means nothing here; at the end it never selects a part of the code. */
28944
29175
  _keepNativeCaretAtEnd() {
28945
29176
  const input = this._input;
28946
- if (!input || this.shadowRoot?.activeElement !== input) return;
29177
+ if (!input || this._asField || this.shadowRoot?.activeElement !== input) return;
28947
29178
  const end = input.value.length;
28948
29179
  if (input.selectionStart !== end || input.selectionEnd !== end) input.setSelectionRange(end, end);
28949
29180
  }
@@ -28956,6 +29187,10 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
28956
29187
  */
28957
29188
  _handleBeforeInput(e) {
28958
29189
  if (this.readonly || this.disabled) return;
29190
+ if (this._asField) {
29191
+ this._beforeFieldInput(e);
29192
+ return;
29193
+ }
28959
29194
  switch (e.inputType) {
28960
29195
  case "insertText": {
28961
29196
  e.preventDefault();
@@ -28988,6 +29223,44 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
28988
29223
  return;
28989
29224
  }
28990
29225
  }
29226
+ /**
29227
+ * As a text field the input edits like any other: select, move and delete
29228
+ * where you like. Only what cannot be in the code is kept out, and a pasted
29229
+ * code is cut out of the text around it.
29230
+ */
29231
+ _beforeFieldInput(e) {
29232
+ const input = this._input;
29233
+ if (e.inputType === "insertText") {
29234
+ if (!this._clean(e.data ?? "")) e.preventDefault();
29235
+ return;
29236
+ }
29237
+ if ([
29238
+ "insertFromPaste",
29239
+ "insertFromDrop",
29240
+ "insertReplacementText"
29241
+ ].includes(e.inputType)) {
29242
+ e.preventDefault();
29243
+ const text = this._codeIn(e.dataTransfer?.getData("text/plain") ?? e.data ?? "");
29244
+ if (text.length === this.boxes) input.value = text;
29245
+ else input.setRangeText(text, input.selectionStart ?? 0, input.selectionEnd ?? 0, "end");
29246
+ this._syncFromField();
29247
+ }
29248
+ }
29249
+ /** Reads the text field back into the code, keeping the caret where it was. */
29250
+ _syncFromField() {
29251
+ const input = this._input;
29252
+ const caret = input.selectionStart ?? input.value.length;
29253
+ const clean = this._clean(input.value);
29254
+ if (input.value !== clean) {
29255
+ const at = this._clean(input.value.slice(0, caret)).length;
29256
+ input.value = clean;
29257
+ input.setSelectionRange(at, at);
29258
+ }
29259
+ this._setChars(this._charsOf(clean), Math.min(clean.length, this.boxes - 1));
29260
+ }
29261
+ get _asField() {
29262
+ return this.getAttribute("data-fit") === "field";
29263
+ }
28991
29264
  /** Writes characters from the caret on; a whole code at once replaces what was there. */
28992
29265
  _write(text, pasted) {
28993
29266
  if (pasted && text.length === this.boxes) {
@@ -29006,7 +29279,7 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
29006
29279
  }
29007
29280
  _handleKeydown(e) {
29008
29281
  submitOnEnter(this, e);
29009
- if (e.altKey || e.ctrlKey || e.metaKey) return;
29282
+ if (this._asField || e.altKey || e.ctrlKey || e.metaKey) return;
29010
29283
  const move = {
29011
29284
  ArrowLeft: () => this._box - 1,
29012
29285
  ArrowRight: () => Math.min(this._box + 1, this._nextBox),
@@ -29020,6 +29293,10 @@ var NLDDOneTimeCodeField = (_NLDDOneTimeCodeField = class NLDDOneTimeCodeField e
29020
29293
  /** Input that did not come through beforeinput, such as a code a phone fills in: take it from the start. */
29021
29294
  _handleInput(e) {
29022
29295
  e.stopPropagation();
29296
+ if (this._asField) {
29297
+ this._syncFromField();
29298
+ return;
29299
+ }
29023
29300
  const clean = this._clean(this._input.value);
29024
29301
  this._setChars(this._charsOf(clean), Math.min(clean.length, this.boxes - 1));
29025
29302
  }
@@ -29077,6 +29354,10 @@ __decorate([property({
29077
29354
  reflect: true,
29078
29355
  converter: reflectNonDefault("md")
29079
29356
  })], NLDDOneTimeCodeField.prototype, "size", void 0);
29357
+ __decorate([property({
29358
+ type: Boolean,
29359
+ reflect: true
29360
+ })], NLDDOneTimeCodeField.prototype, "centered", void 0);
29080
29361
  __decorate([property({
29081
29362
  reflect: true,
29082
29363
  converter: reflectNonDefault(DEFAULT_LENGTH)
@@ -30804,7 +31085,7 @@ function searchFieldTemplate(component) {
30804
31085
  ${hasSearchButton ? html`
30805
31086
  <div class="search-field__search-button">
30806
31087
  <nldd-button
30807
- appearance=${component.searchButton === "accent-filled" ? "accent-filled" : "neutral-tinted"}
31088
+ appearance=${component.searchButton === "primary" ? "primary" : "secondary"}
30808
31089
  size=${buttonSize}
30809
31090
  text=${component._t("components.search-field.search-action")}
30810
31091
  @click=${component._handleSearch}
@@ -30828,7 +31109,7 @@ function searchFieldTemplate(component) {
30828
31109
  * @attr {string} width - Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container.
30829
31110
  * @attr {string} placeholder - Placeholder text for the input
30830
31111
  * @attr {string} accessible-label - Accessible name (aria-label) of the native input. Falls back to `placeholder`, and keeps it when a value is typed. That works while the placeholder names the field ('Zoek een gebruiker'); set this when the placeholder is an example instead ('bijv. Jansen'). Without a visible label the placeholder is the only text on screen, so a name of your own starts with it: someone who works the computer by voice says what they see, and a name that leaves it out does not answer (WCAG 2.5.3).
30831
- * @attr {string} search-button - Shows a search button on the right, in the appearance you name: 'neutral-tinted' (also with no value) | 'accent-filled'. Leave it out for no button: Enter searches as well. 'accent-filled' is for a page where searching is the main task, such as a search page; in a header or above a list the quiet one fits.
31112
+ * @attr {string} search-button - Shows a search button on the right, in the appearance you name: 'secondary' (also with no value) | 'primary'. Leave it out for no button: Enter searches as well. 'primary' is for a page where searching is the main task, such as a search page; in a header or above a list the quiet one fits.
30832
31113
  * @attr {string} shortcut - Keyboard shortcut hint shown at the right end of the empty field, e.g. 'Cmd+K' or '/'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up focusing the field in your app. Hidden while the field has focus or a value, and on touch-only devices. Joins the field's description for screen readers.
30833
31114
  * @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
30834
31115
  * @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
@@ -41834,6 +42115,7 @@ var timePickerStyles = css`
41834
42115
 
41835
42116
  :host {
41836
42117
  --_time-picker-control-min-size: var(--semantics-controls-md-min-size);
42118
+ --_time-picker-glide-duration: var(--primitives-transition-duration-medium);
41837
42119
  --_time-picker-control-corner-radius: var(--semantics-controls-md-corner-radius);
41838
42120
  --_time-picker-list-item-font: var(--primitives-font-body-md-medium-flat);
41839
42121
  --_time-picker-list-item-is-hovered-background-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-150));
@@ -41894,6 +42176,11 @@ var timePickerStyles = css`
41894
42176
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
41895
42177
  }
41896
42178
 
42179
+ /* Snapping would pull each frame of the glide to the nearest value. */
42180
+ .time-picker__list[data-gliding] {
42181
+ scroll-snap-type: none;
42182
+ }
42183
+
41897
42184
  .time-picker__list::-webkit-scrollbar {
41898
42185
  display: none;
41899
42186
  }
@@ -41921,6 +42208,8 @@ var timePickerStyles = css`
41921
42208
  color: var(--semantics-content-color);
41922
42209
  font: var(--_time-picker-list-item-font);
41923
42210
  font-variant-numeric: tabular-nums;
42211
+ cursor: default;
42212
+ user-select: none;
41924
42213
  scroll-snap-align: center;
41925
42214
  }
41926
42215
 
@@ -42029,6 +42318,9 @@ function renderColumn(component, column, numbers, selected) {
42029
42318
  data-column=${column}
42030
42319
  @keydown=${(e) => component._handleKeydown(e, column)}
42031
42320
  @scroll=${(e) => component._handleScroll(e, column)}
42321
+ @wheel=${component._takeOver}
42322
+ @touchstart=${component._takeOver}
42323
+ @pointerdown=${component._takeOver}
42032
42324
  >
42033
42325
  ${numbers.map((number) => {
42034
42326
  return html`
@@ -42131,6 +42423,12 @@ function fromMinutes$1(total) {
42131
42423
  function isTime(value) {
42132
42424
  return /^([01]\d|2[0-3]):[0-5]\d$/.test(value);
42133
42425
  }
42426
+ /** A CSS time (`200ms`, `0.2s`) in milliseconds; 0 for anything else. */
42427
+ function toMs(time) {
42428
+ const value = parseFloat(time);
42429
+ if (Number.isNaN(value)) return 0;
42430
+ return time.trim().endsWith("ms") ? value : time.trim().endsWith("s") ? value * 1e3 : 0;
42431
+ }
42134
42432
  var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy(LitElement) {
42135
42433
  constructor(..._args) {
42136
42434
  super(..._args);
@@ -42153,6 +42451,16 @@ var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy
42153
42451
  minutes: 0
42154
42452
  };
42155
42453
  this._selfScrollTimer = 0;
42454
+ this._chosenHere = false;
42455
+ this._glides = /* @__PURE__ */ new Map();
42456
+ this._takeOver = {
42457
+ passive: true,
42458
+ handleEvent: () => {
42459
+ for (const column of [...this._glides.keys()]) this._stopGlide(column);
42460
+ clearTimeout(this._selfScrollTimer);
42461
+ this._scrollingSelf = false;
42462
+ }
42463
+ };
42156
42464
  }
42157
42465
  _t(key) {
42158
42466
  return translate(this.translations, nlddTimePickerTranslations, key);
@@ -42228,9 +42536,18 @@ var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy
42228
42536
  next = (this._selected === null ? this._hours[0] : Math.floor(this._selected / 60)) * 60 + number;
42229
42537
  if (!slots.includes(next)) return;
42230
42538
  }
42539
+ if (commit) this._cancelSettle();
42231
42540
  const changed = fromMinutes$1(next) !== this.value;
42541
+ this._chosenHere = changed;
42232
42542
  this.value = fromMinutes$1(next);
42233
42543
  if (changed) this._emit("input");
42544
+ else if (commit) {
42545
+ this._scrolledTo = {
42546
+ hours: null,
42547
+ minutes: null
42548
+ };
42549
+ this.scrollSelectedIntoView(true);
42550
+ }
42234
42551
  if (commit) this._emit("change");
42235
42552
  }
42236
42553
  _emit(type) {
@@ -42298,6 +42615,7 @@ var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy
42298
42615
  clearTimeout(this._scrollTimers.hours);
42299
42616
  clearTimeout(this._scrollTimers.minutes);
42300
42617
  clearTimeout(this._selfScrollTimer);
42618
+ for (const column of [...this._glides.keys()]) this._stopGlide(column);
42301
42619
  super.disconnectedCallback();
42302
42620
  }
42303
42621
  /**
@@ -42307,7 +42625,10 @@ var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy
42307
42625
  * enough not to pick halfway through a swipe.
42308
42626
  */
42309
42627
  _handleScroll(e, column) {
42310
- if (this._scrollingSelf) return;
42628
+ if (this._scrollingSelf) {
42629
+ this._releaseSelfScroll();
42630
+ return;
42631
+ }
42311
42632
  if (!this.isConnected) return;
42312
42633
  const el = e.currentTarget;
42313
42634
  const centered = this._centeredOption(el);
@@ -42322,6 +42643,11 @@ var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy
42322
42643
  this.toggleAttribute("data-scrolling", false);
42323
42644
  }, 120);
42324
42645
  }
42646
+ _cancelSettle() {
42647
+ clearTimeout(this._scrollTimers.hours);
42648
+ clearTimeout(this._scrollTimers.minutes);
42649
+ this.toggleAttribute("data-scrolling", false);
42650
+ }
42325
42651
  /** The number of the option closest to the middle of the column. */
42326
42652
  _centeredOption(el) {
42327
42653
  const center = el.scrollTop + el.clientHeight / 2;
@@ -42351,14 +42677,52 @@ var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy
42351
42677
  * does nothing. The field therefore calls this as soon as the popover
42352
42678
  * opens.
42353
42679
  */
42354
- scrollSelectedIntoView() {
42680
+ scrollSelectedIntoView(smooth = false) {
42355
42681
  this._scrollingSelf = true;
42682
+ const glide = smooth && !matchMedia("(prefers-reduced-motion: reduce)").matches;
42356
42683
  for (const name of ["hours", "minutes"]) {
42357
42684
  const column = this.shadowRoot?.querySelector(`[data-column="${name}"]`);
42358
42685
  const option = column?.querySelector("[data-selected]");
42359
42686
  if (!column || !option) continue;
42360
- column.scrollTop = option.offsetTop + option.offsetHeight / 2 - column.clientHeight / 2;
42687
+ const top = option.offsetTop + option.offsetHeight / 2 - column.clientHeight / 2;
42688
+ if (glide) this._glide(column, top);
42689
+ else {
42690
+ this._stopGlide(column);
42691
+ column.scrollTop = top;
42692
+ }
42361
42693
  }
42694
+ this._releaseSelfScroll();
42695
+ }
42696
+ /**
42697
+ * Scroll to `top` ourselves, because `behavior: 'smooth'` lets the browser
42698
+ * pick the duration and it is too quick to follow. Ease-out over
42699
+ * `--_time-picker-glide-duration`.
42700
+ */
42701
+ _glide(column, top) {
42702
+ this._stopGlide(column);
42703
+ const from = column.scrollTop;
42704
+ const distance = top - from;
42705
+ if (Math.abs(distance) < 1) return;
42706
+ const duration = toMs(getComputedStyle(this).getPropertyValue("--_time-picker-glide-duration"));
42707
+ const start = performance.now();
42708
+ column.toggleAttribute("data-gliding", true);
42709
+ const step = (now) => {
42710
+ const t = duration > 0 ? Math.min(1, (now - start) / duration) : 1;
42711
+ column.scrollTop = from + distance * (1 - (1 - t) ** 3);
42712
+ if (t < 1) this._glides.set(column, requestAnimationFrame(step));
42713
+ else this._stopGlide(column);
42714
+ };
42715
+ this._glides.set(column, requestAnimationFrame(step));
42716
+ }
42717
+ _stopGlide(column) {
42718
+ cancelAnimationFrame(this._glides.get(column) ?? 0);
42719
+ this._glides.delete(column);
42720
+ column.removeAttribute("data-gliding");
42721
+ }
42722
+ /** Listen to scrolling again once our own has been still a little longer than
42723
+ * the debounce above, so all its scroll events have been ignored. */
42724
+ _releaseSelfScroll() {
42725
+ clearTimeout(this._selfScrollTimer);
42362
42726
  this._selfScrollTimer = window.setTimeout(() => {
42363
42727
  this._scrollingSelf = false;
42364
42728
  }, 200);
@@ -42376,7 +42740,8 @@ var NLDDTimePicker = (_NLDDTimePicker = class NLDDTimePicker extends DescribedBy
42376
42740
  hours: null,
42377
42741
  minutes: null
42378
42742
  };
42379
- this.scrollSelectedIntoView();
42743
+ this.scrollSelectedIntoView(this._chosenHere);
42744
+ this._chosenHere = false;
42380
42745
  }
42381
42746
  }
42382
42747
  /** The group is the widget; hour and minute are spinbuttons inside it. */
@@ -45088,6 +45453,7 @@ var sliderStyles = css`
45088
45453
  --_slider-histogram-bar-corner-radius: var(--primitives-space-2);
45089
45454
  --_slider-histogram-bar-height: 0;
45090
45455
  --_slider-tooltip-offset: var(--primitives-space-8);
45456
+ --_slider-histogram-tooltip-offset: var(--primitives-space-4);
45091
45457
  --_slider-tooltip-touch-offset: calc(var(--semantics-fingertip-size) / 2);
45092
45458
  --_slider-tooltip-shift: 0px;
45093
45459
  --_slider-tooltip-background-color: var(--semantics-tooltips-background-color);
@@ -45393,7 +45759,7 @@ var sliderStyles = css`
45393
45759
  }
45394
45760
 
45395
45761
  .slider__control.has-histogram .slider__tooltip {
45396
- bottom: calc(50% + var(--_slider-track-height) / 2 + var(--_slider-histogram-track-gap) + var(--_slider-histogram-height) + var(--_slider-tooltip-offset));
45762
+ bottom: calc(50% + var(--_slider-track-height) / 2 + var(--_slider-histogram-track-gap) + var(--_slider-histogram-height) + var(--_slider-histogram-tooltip-offset));
45397
45763
  }
45398
45764
 
45399
45765
  .slider__tooltip--start {
@@ -45848,7 +46214,7 @@ var NLDDSlider = (_NLDDSlider = class NLDDSlider extends DescribedBy(FormAssocia
45848
46214
  this._dragThumb = landed;
45849
46215
  this._held = landed;
45850
46216
  }
45851
- this._focusThumb(landed);
46217
+ this._focusThumb(landed, !!dragged);
45852
46218
  }
45853
46219
  this._emit("input");
45854
46220
  }
@@ -45904,10 +46270,15 @@ var NLDDSlider = (_NLDDSlider = class NLDDSlider extends DescribedBy(FormAssocia
45904
46270
  _grab(thumb) {
45905
46271
  this._trackThumb = thumb;
45906
46272
  this._held = thumb;
45907
- this._focusThumb(thumb);
46273
+ this._focusThumb(thumb, true);
45908
46274
  }
45909
- _focusThumb(thumb) {
45910
- this.shadowRoot?.querySelector(`.slider__input--${thumb}`)?.focus();
46275
+ /** Under a pointer the focus that moves to the other thumb is no keyboard
46276
+ * focus, so it draws no ring: Safari would draw one for a focus from script,
46277
+ * also in the middle of a touch. Safari (from 18.4) and Firefox read the
46278
+ * option; Chromium ignores it and decides the ring itself, which it already
46279
+ * leaves off here. */
46280
+ _focusThumb(thumb, pointer = false) {
46281
+ (this.shadowRoot?.querySelector(`.slider__input--${thumb}`))?.focus(pointer ? { focusVisible: false } : void 0);
45911
46282
  }
45912
46283
  /** Ends a press: its listeners on the window, and the thumb it drags. */
45913
46284
  _stopPress() {
@@ -49643,6 +50014,7 @@ var smMax$9 = unsafeCSS(queryBreakpoints.smMax);
49643
50014
  var mdMin$8 = unsafeCSS(queryBreakpoints.mdMin);
49644
50015
  var mdMax$6 = unsafeCSS(queryBreakpoints.mdMax);
49645
50016
  var lgMin$7 = unsafeCSS(queryBreakpoints.lgMin);
50017
+ var stackedMax$2 = unsafeCSS(splitSectionBreakpoints.stackedMax);
49646
50018
  var oneThirdTwoThirdsSectionStyles = css`
49647
50019
  :host {
49648
50020
  box-sizing: border-box;
@@ -49745,11 +50117,9 @@ var oneThirdTwoThirdsSectionStyles = css`
49745
50117
  display: flex;
49746
50118
  flex-wrap: wrap;
49747
50119
 
49748
- /* Below ~768px the 2/3 column would shrink under 400px and read as
49749
- two near-equal columns; stack to a single column instead. nowrap
49750
- stops the column-direction wrap container from stretching the
50120
+ /* nowrap stops the column-direction wrap container from stretching the
49751
50121
  shorter column to fill height. */
49752
- @container (max-width: 48rem) {
50122
+ @container (max-width: ${stackedMax$2}) {
49753
50123
  flex-direction: column;
49754
50124
  flex-wrap: nowrap;
49755
50125
  }
@@ -49768,13 +50138,13 @@ var oneThirdTwoThirdsSectionStyles = css`
49768
50138
  }
49769
50139
 
49770
50140
  :host([vertical-alignment="center"]) .one-third-two-thirds-section__columns {
49771
- @container (min-width: 48.0625rem) {
50141
+ @container (width > ${stackedMax$2}) {
49772
50142
  align-items: center;
49773
50143
  }
49774
50144
  }
49775
50145
 
49776
50146
  :host([vertical-alignment="bottom"]) .one-third-two-thirds-section__columns {
49777
- @container (min-width: 48.0625rem) {
50147
+ @container (width > ${stackedMax$2}) {
49778
50148
  align-items: flex-end;
49779
50149
  }
49780
50150
  }
@@ -49832,7 +50202,7 @@ function oneThirdTwoThirdsSectionTemplate(component) {
49832
50202
  * Nederlandse Digitale Dienst One Third Two Thirds Section Component (Lit + TypeScript)
49833
50203
  *
49834
50204
  * A section with a 1/3 sidebar on the left and 2/3 main content on the right.
49835
- * The columns wrap automatically when they become smaller than 280px.
50205
+ * The columns stand side by side in a section of 50rem (800px) or wider and stack below that, at the same width for every section with two columns.
49836
50206
  * Padding and gap adjust via container queries.
49837
50207
  *
49838
50208
  * @element nldd-one-third-two-thirds-section
@@ -49887,6 +50257,7 @@ var smMax$8 = unsafeCSS(queryBreakpoints.smMax);
49887
50257
  var mdMin$7 = unsafeCSS(queryBreakpoints.mdMin);
49888
50258
  var mdMax$5 = unsafeCSS(queryBreakpoints.mdMax);
49889
50259
  var lgMin$6 = unsafeCSS(queryBreakpoints.lgMin);
50260
+ var stackedMax$1 = unsafeCSS(splitSectionBreakpoints.stackedMax);
49890
50261
  var twoThirdsOneThirdSectionStyles = css`
49891
50262
  :host {
49892
50263
  box-sizing: border-box;
@@ -49989,11 +50360,9 @@ var twoThirdsOneThirdSectionStyles = css`
49989
50360
  display: flex;
49990
50361
  flex-wrap: wrap;
49991
50362
 
49992
- /* Below ~768px the 2/3 column would shrink under 400px and read as
49993
- two near-equal columns; stack to a single column instead. nowrap
49994
- stops the column-direction wrap container from stretching the
50363
+ /* nowrap stops the column-direction wrap container from stretching the
49995
50364
  shorter column to fill height. */
49996
- @container (max-width: 48rem) {
50365
+ @container (max-width: ${stackedMax$1}) {
49997
50366
  flex-direction: column;
49998
50367
  flex-wrap: nowrap;
49999
50368
  }
@@ -50012,13 +50381,13 @@ var twoThirdsOneThirdSectionStyles = css`
50012
50381
  }
50013
50382
 
50014
50383
  :host([vertical-alignment="center"]) .two-thirds-one-third-section__columns {
50015
- @container (min-width: 48.0625rem) {
50384
+ @container (width > ${stackedMax$1}) {
50016
50385
  align-items: center;
50017
50386
  }
50018
50387
  }
50019
50388
 
50020
50389
  :host([vertical-alignment="bottom"]) .two-thirds-one-third-section__columns {
50021
- @container (min-width: 48.0625rem) {
50390
+ @container (width > ${stackedMax$1}) {
50022
50391
  align-items: flex-end;
50023
50392
  }
50024
50393
  }
@@ -50076,7 +50445,7 @@ function twoThirdsOneThirdSectionTemplate(component) {
50076
50445
  * Nederlandse Digitale Dienst Two Thirds One Third Section Component (Lit + TypeScript)
50077
50446
  *
50078
50447
  * A section with 2/3 main content on the left and a 1/3 sidebar on the right.
50079
- * The columns wrap automatically when they become smaller than 280px.
50448
+ * The columns stand side by side in a section of 50rem (800px) or wider and stack below that, at the same width for every section with two columns.
50080
50449
  * Padding and gap adjust via container queries.
50081
50450
  *
50082
50451
  * @element nldd-two-thirds-one-third-section
@@ -50131,6 +50500,7 @@ var smMax$7 = unsafeCSS(queryBreakpoints.smMax);
50131
50500
  var mdMin$6 = unsafeCSS(queryBreakpoints.mdMin);
50132
50501
  var mdMax$4 = unsafeCSS(queryBreakpoints.mdMax);
50133
50502
  var lgMin$5 = unsafeCSS(queryBreakpoints.lgMin);
50503
+ var stackedMax = unsafeCSS(splitSectionBreakpoints.stackedMax);
50134
50504
  var oneHalfOneHalfSectionStyles = css`
50135
50505
  :host {
50136
50506
  box-sizing: border-box;
@@ -50233,6 +50603,13 @@ var oneHalfOneHalfSectionStyles = css`
50233
50603
  display: flex;
50234
50604
  flex-wrap: wrap;
50235
50605
 
50606
+ /* nowrap stops the column-direction wrap container from stretching the
50607
+ shorter column to fill height. */
50608
+ @container (max-width: ${stackedMax}) {
50609
+ flex-direction: column;
50610
+ flex-wrap: nowrap;
50611
+ }
50612
+
50236
50613
  @container (max-width: ${smMax$7}) {
50237
50614
  gap: var(--semantics-page-sections-sm-gap);
50238
50615
  }
@@ -50247,11 +50624,15 @@ var oneHalfOneHalfSectionStyles = css`
50247
50624
  }
50248
50625
 
50249
50626
  :host([vertical-alignment="center"]) .one-half-one-half-section__columns {
50250
- align-items: center;
50627
+ @container (width > ${stackedMax}) {
50628
+ align-items: center;
50629
+ }
50251
50630
  }
50252
50631
 
50253
50632
  :host([vertical-alignment="bottom"]) .one-half-one-half-section__columns {
50254
- align-items: flex-end;
50633
+ @container (width > ${stackedMax}) {
50634
+ align-items: flex-end;
50635
+ }
50255
50636
  }
50256
50637
 
50257
50638
  .one-half-one-half-section__left-column {
@@ -50307,7 +50688,7 @@ function oneHalfOneHalfSectionTemplate(component) {
50307
50688
  * Nederlandse Digitale Dienst One Half One Half Section Component (Lit + TypeScript)
50308
50689
  *
50309
50690
  * A section with two equal columns side by side.
50310
- * The columns wrap automatically when they become smaller than 280px.
50691
+ * The columns stand side by side in a section of 50rem (800px) or wider and stack below that, at the same width for every section with two columns.
50311
50692
  * Padding and gap adjust via container queries.
50312
50693
  *
50313
50694
  * @element nldd-one-half-one-half-section
@@ -51616,6 +51997,8 @@ var cardStyles = css`
51616
51997
  flex-direction: column;
51617
51998
  flex-grow: 1;
51618
51999
  isolation: isolate;
52000
+ outline: var(--_card-highlight-border-width) solid var(--_card-border-color);
52001
+ outline-offset: calc(-1 * var(--_card-highlight-border-width));
51619
52002
  transition: background-color var(--primitives-transition-duration-fast) var(--primitives-transition-easing-default);
51620
52003
  }
51621
52004
 
@@ -51633,15 +52016,6 @@ var cardStyles = css`
51633
52016
  background-color: var(--_card-is-active-background-color);
51634
52017
  }
51635
52018
 
51636
- .card::after {
51637
- content: '';
51638
- position: absolute;
51639
- inset: 0;
51640
- border-radius: inherit;
51641
- box-shadow: inset 0 0 0 var(--_card-highlight-border-width) var(--_card-border-color);
51642
- pointer-events: none;
51643
- }
51644
-
51645
52019
 
51646
52020
  /* # Link / button overlay */
51647
52021
 
@@ -53315,23 +53689,23 @@ __decorate([state()], NLDDPageFooter.prototype, "_hasBreadcrumbs", void 0);
53315
53689
  __decorate([state()], NLDDPageFooter.prototype, "_hasMain", void 0);
53316
53690
  __decorate([state()], NLDDPageFooter.prototype, "_hasLegalBar", void 0);
53317
53691
  NLDDPageFooter = __decorate([customElement("nldd-page-footer")], NLDDPageFooter);
53318
- // src/components/layout/column-board/column-board.styles.ts
53319
- var columnBoardStyles = css`
53692
+ // src/components/layout/kanban/kanban.styles.ts
53693
+ var kanbanStyles = css`
53320
53694
 
53321
53695
 
53322
53696
  /* # Host */
53323
53697
 
53324
53698
  :host {
53325
- --_column-board-gap: var(--primitives-space-12);
53326
- --_column-board-fade-size: var(--primitives-space-32);
53327
- --_column-board-fade-left: var(--primitives-space-0);
53328
- --_column-board-fade-right: var(--primitives-space-0);
53329
- --_column-board-height: auto;
53699
+ --_kanban-gap: var(--primitives-space-12);
53700
+ --_kanban-fade-size: var(--primitives-space-32);
53701
+ --_kanban-fade-left: var(--primitives-space-0);
53702
+ --_kanban-fade-right: var(--primitives-space-0);
53703
+ --_kanban-height: auto;
53330
53704
 
53331
53705
  box-sizing: border-box;
53332
53706
  display: block;
53333
53707
  min-width: 0;
53334
- height: var(--_column-board-height);
53708
+ height: var(--_kanban-height);
53335
53709
  }
53336
53710
 
53337
53711
  :host([hidden]) {
@@ -53341,41 +53715,41 @@ var columnBoardStyles = css`
53341
53715
 
53342
53716
  /* # Block */
53343
53717
 
53344
- .column-board {
53718
+ .kanban {
53345
53719
  display: flex;
53346
53720
  height: 100%;
53347
53721
  overflow-x: auto;
53348
- gap: var(--_column-board-gap);
53722
+ gap: var(--_kanban-gap);
53349
53723
  align-items: stretch;
53350
53724
  scroll-snap-type: x proximity;
53351
- scroll-padding-inline: var(--_column-board-gap);
53352
- mask-image: linear-gradient(to right, transparent 0, black var(--_column-board-fade-left), black calc(100% - var(--_column-board-fade-right)), transparent 100%);
53725
+ scroll-padding-inline: var(--_kanban-gap);
53726
+ mask-image: linear-gradient(to right, transparent 0, black var(--_kanban-fade-left), black calc(100% - var(--_kanban-fade-right)), transparent 100%);
53353
53727
  }
53354
53728
 
53355
- .column-board.can-scroll-left {
53356
- --_column-board-fade-left: var(--_column-board-fade-size);
53729
+ .kanban.can-scroll-left {
53730
+ --_kanban-fade-left: var(--_kanban-fade-size);
53357
53731
  }
53358
53732
 
53359
- .column-board.can-scroll-right {
53360
- --_column-board-fade-right: var(--_column-board-fade-size);
53733
+ .kanban.can-scroll-right {
53734
+ --_kanban-fade-right: var(--_kanban-fade-size);
53361
53735
  }
53362
53736
 
53363
53737
  /* Snapping would pull the board back after every step it scrolls while an
53364
53738
  item is dragged to its edge. */
53365
- .column-board.is-dragging {
53739
+ .kanban.is-dragging {
53366
53740
  scroll-snap-type: none;
53367
53741
  }
53368
53742
 
53369
- .column-board:focus-visible {
53743
+ .kanban:focus-visible {
53370
53744
  outline: var(--semantics-focus-ring-outline);
53371
53745
  outline-offset: var(--semantics-focus-ring-outline-offset);
53372
53746
  }
53373
53747
 
53374
- ::slotted(nldd-column-board-column) {
53748
+ ::slotted(nldd-kanban-column) {
53375
53749
  scroll-snap-align: start;
53376
53750
  }
53377
53751
 
53378
- .column-board__announcer {
53752
+ .kanban__announcer {
53379
53753
  position: absolute;
53380
53754
  width: 1px;
53381
53755
  height: 1px;
@@ -53384,50 +53758,50 @@ var columnBoardStyles = css`
53384
53758
  overflow: hidden;
53385
53759
  }
53386
53760
  `;
53387
- var columnBoardColumnStyles = css`
53761
+ var kanbanColumnStyles = css`
53388
53762
 
53389
53763
 
53390
53764
  /* # Host */
53391
53765
 
53392
53766
  :host {
53393
- --_column-board-column-width: var(--primitives-area-280);
53394
- --_column-board-column-corner-radius: var(--semantics-surfaces-corner-radius);
53395
- --_column-board-column-highlight-border-width: var(--semantics-surfaces-highlight-border-width);
53396
- --_column-board-column-highlight-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
53397
- --_column-board-column-background-color: var(--semantics-surfaces-tinted-background-color);
53398
- --_column-board-column-drop-border-width: var(--semantics-drop-targets-border-width);
53399
- --_column-board-column-available-border-color: var(--semantics-drop-targets-is-available-border-color);
53400
- --_column-board-column-over-border-color: var(--semantics-drop-targets-is-over-border-color);
53401
- --_column-board-column-over-background-color: var(--semantics-drop-targets-is-over-background-color);
53402
- --_column-board-column-header-padding: var(--primitives-space-12) var(--primitives-space-16) var(--primitives-space-4);
53403
- --_column-board-column-header-gap: var(--primitives-space-8);
53404
- --_column-board-column-title-font: var(--primitives-font-body-md-bold-tight);
53405
- --_column-board-column-count-color: var(--semantics-content-secondary-color);
53406
- --_column-board-column-count-font: var(--primitives-font-body-sm-regular-tight);
53407
- --_column-board-column-main-gap: var(--primitives-space-8);
53408
- --_column-board-column-main-padding: var(--primitives-space-8);
53409
- --_column-board-column-main-min-height: var(--primitives-space-80);
53410
- --_column-board-column-main-fade-size: var(--primitives-space-24);
53411
- --_column-board-column-main-fade-top: var(--primitives-space-0);
53412
- --_column-board-column-main-fade-bottom: var(--primitives-space-0);
53413
- --_column-board-column-placeholder-background-color: var(--semantics-drop-targets-placeholder-background-color);
53414
- --_column-board-column-placeholder-corner-radius: var(--semantics-surfaces-corner-radius);
53415
- --_column-board-column-placeholder-border-width: var(--semantics-drop-targets-border-width);
53416
- --_column-board-column-placeholder-border-color: var(--semantics-drop-indicators-color);
53417
- --_column-board-column-placeholder-top: 0px;
53418
- --_column-board-column-placeholder-left: 0px;
53419
- --_column-board-column-placeholder-width: 0px;
53420
- --_column-board-column-placeholder-height: 0px;
53421
- --_column-board-column-indicator-top: 0px;
53422
- --_column-board-column-indicator-inset: var(--primitives-space-8);
53423
- --_column-board-column-indicator-thickness: var(--primitives-border-width-regular);
53424
- --_column-board-column-indicator-color: var(--semantics-drop-indicators-color);
53767
+ --_kanban-column-width: var(--primitives-area-280);
53768
+ --_kanban-column-corner-radius: var(--semantics-surfaces-corner-radius);
53769
+ --_kanban-column-highlight-border-width: var(--semantics-surfaces-highlight-border-width);
53770
+ --_kanban-column-highlight-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
53771
+ --_kanban-column-background-color: var(--semantics-surfaces-tinted-background-color);
53772
+ --_kanban-column-drop-border-width: var(--semantics-drop-targets-border-width);
53773
+ --_kanban-column-available-border-color: var(--semantics-drop-targets-is-available-border-color);
53774
+ --_kanban-column-over-border-color: var(--semantics-drop-targets-is-over-border-color);
53775
+ --_kanban-column-over-background-color: var(--semantics-drop-targets-is-over-background-color);
53776
+ --_kanban-column-header-padding: var(--primitives-space-12) var(--primitives-space-16) var(--primitives-space-4);
53777
+ --_kanban-column-header-gap: var(--primitives-space-8);
53778
+ --_kanban-column-title-font: var(--primitives-font-body-md-bold-tight);
53779
+ --_kanban-column-count-color: var(--semantics-content-secondary-color);
53780
+ --_kanban-column-count-font: var(--primitives-font-body-sm-regular-tight);
53781
+ --_kanban-column-main-gap: var(--primitives-space-8);
53782
+ --_kanban-column-main-padding: var(--primitives-space-8);
53783
+ --_kanban-column-main-min-height: var(--primitives-space-80);
53784
+ --_kanban-column-main-fade-size: var(--primitives-space-24);
53785
+ --_kanban-column-main-fade-top: var(--primitives-space-0);
53786
+ --_kanban-column-main-fade-bottom: var(--primitives-space-0);
53787
+ --_kanban-column-placeholder-background-color: var(--semantics-drop-targets-placeholder-background-color);
53788
+ --_kanban-column-placeholder-corner-radius: var(--semantics-surfaces-corner-radius);
53789
+ --_kanban-column-placeholder-border-width: var(--semantics-drop-targets-border-width);
53790
+ --_kanban-column-placeholder-border-color: var(--semantics-drop-indicators-color);
53791
+ --_kanban-column-placeholder-top: 0px;
53792
+ --_kanban-column-placeholder-left: 0px;
53793
+ --_kanban-column-placeholder-width: 0px;
53794
+ --_kanban-column-placeholder-height: 0px;
53795
+ --_kanban-column-indicator-top: 0px;
53796
+ --_kanban-column-indicator-inset: var(--primitives-space-8);
53797
+ --_kanban-column-indicator-thickness: var(--primitives-border-width-regular);
53798
+ --_kanban-column-indicator-color: var(--semantics-drop-indicators-color);
53425
53799
 
53426
53800
  ${inheritedTextReset}
53427
53801
  box-sizing: border-box;
53428
53802
  display: flex;
53429
53803
  flex-shrink: 0;
53430
- width: var(--_column-board-column-width);
53804
+ width: var(--_kanban-column-width);
53431
53805
  min-height: 0;
53432
53806
  }
53433
53807
 
@@ -53438,80 +53812,80 @@ var columnBoardColumnStyles = css`
53438
53812
 
53439
53813
  /* # Block */
53440
53814
 
53441
- .column-board-column {
53815
+ .kanban-column {
53442
53816
  box-sizing: border-box;
53443
53817
  display: flex;
53444
- border-radius: var(--_column-board-column-corner-radius);
53445
- box-shadow: inset 0 0 0 var(--_column-board-column-highlight-border-width) var(--_column-board-column-highlight-border-color);
53446
- background-color: var(--_column-board-column-background-color);
53818
+ border-radius: var(--_kanban-column-corner-radius);
53819
+ box-shadow: inset 0 0 0 var(--_kanban-column-highlight-border-width) var(--_kanban-column-highlight-border-color);
53820
+ background-color: var(--_kanban-column-background-color);
53447
53821
  width: 100%;
53448
53822
  min-height: 0;
53449
53823
  max-height: 100%;
53450
53824
  flex-direction: column;
53451
53825
  }
53452
53826
 
53453
- .column-board-column.is-drop-available {
53454
- --_column-board-column-highlight-border-width: var(--_column-board-column-drop-border-width);
53455
- --_column-board-column-highlight-border-color: var(--_column-board-column-available-border-color);
53827
+ .kanban-column.is-drop-available {
53828
+ --_kanban-column-highlight-border-width: var(--_kanban-column-drop-border-width);
53829
+ --_kanban-column-highlight-border-color: var(--_kanban-column-available-border-color);
53456
53830
  }
53457
53831
 
53458
- .column-board-column.is-drop-over {
53459
- --_column-board-column-highlight-border-width: var(--_column-board-column-drop-border-width);
53460
- --_column-board-column-highlight-border-color: var(--_column-board-column-over-border-color);
53461
- --_column-board-column-background-color: var(--_column-board-column-over-background-color);
53832
+ .kanban-column.is-drop-over {
53833
+ --_kanban-column-highlight-border-width: var(--_kanban-column-drop-border-width);
53834
+ --_kanban-column-highlight-border-color: var(--_kanban-column-over-border-color);
53835
+ --_kanban-column-background-color: var(--_kanban-column-over-background-color);
53462
53836
  }
53463
53837
 
53464
53838
 
53465
53839
  /* # Elements */
53466
53840
 
53467
- .column-board-column__header {
53841
+ .kanban-column__header {
53468
53842
  display: flex;
53469
53843
  flex-shrink: 0;
53470
- padding: var(--_column-board-column-header-padding);
53471
- gap: var(--_column-board-column-header-gap);
53844
+ padding: var(--_kanban-column-header-padding);
53845
+ gap: var(--_kanban-column-header-gap);
53472
53846
  align-items: center;
53473
53847
  }
53474
53848
 
53475
- .column-board-column__title {
53849
+ .kanban-column__title {
53476
53850
  min-width: 0;
53477
53851
  flex-grow: 1;
53478
53852
  color: var(--semantics-content-color);
53479
- font: var(--_column-board-column-title-font);
53853
+ font: var(--_kanban-column-title-font);
53480
53854
  text-wrap: balance;
53481
53855
  }
53482
53856
 
53483
- .column-board-column__count {
53857
+ .kanban-column__count {
53484
53858
  flex-shrink: 0;
53485
- color: var(--_column-board-column-count-color);
53486
- font: var(--_column-board-column-count-font);
53859
+ color: var(--_kanban-column-count-color);
53860
+ font: var(--_kanban-column-count-font);
53487
53861
  }
53488
53862
 
53489
- .column-board-column__main {
53863
+ .kanban-column__main {
53490
53864
  box-sizing: border-box;
53491
53865
  display: flex;
53492
53866
  position: relative;
53493
- min-height: var(--_column-board-column-main-min-height);
53867
+ min-height: var(--_kanban-column-main-min-height);
53494
53868
  overflow-y: auto;
53495
- padding: var(--_column-board-column-main-padding);
53869
+ padding: var(--_kanban-column-main-padding);
53496
53870
  flex-direction: column;
53497
53871
  flex-grow: 1;
53498
- gap: var(--_column-board-column-main-gap);
53499
- mask-image: linear-gradient(to bottom, transparent 0, black var(--_column-board-column-main-fade-top), black calc(100% - var(--_column-board-column-main-fade-bottom)), transparent 100%);
53872
+ gap: var(--_kanban-column-main-gap);
53873
+ mask-image: linear-gradient(to bottom, transparent 0, black var(--_kanban-column-main-fade-top), black calc(100% - var(--_kanban-column-main-fade-bottom)), transparent 100%);
53500
53874
  }
53501
53875
 
53502
- .column-board-column__main.can-scroll-up {
53503
- --_column-board-column-main-fade-top: var(--_column-board-column-main-fade-size);
53876
+ .kanban-column__main.can-scroll-up {
53877
+ --_kanban-column-main-fade-top: var(--_kanban-column-main-fade-size);
53504
53878
  }
53505
53879
 
53506
- .column-board-column__main.can-scroll-down {
53507
- --_column-board-column-main-fade-bottom: var(--_column-board-column-main-fade-size);
53880
+ .kanban-column__main.can-scroll-down {
53881
+ --_kanban-column-main-fade-bottom: var(--_kanban-column-main-fade-size);
53508
53882
  }
53509
53883
 
53510
- .column-board-column__footer {
53884
+ .kanban-column__footer {
53511
53885
  flex-shrink: 0;
53512
53886
  }
53513
53887
 
53514
- .column-board-column__footer[hidden] {
53888
+ .kanban-column__footer[hidden] {
53515
53889
  display: none;
53516
53890
  }
53517
53891
 
@@ -53521,42 +53895,42 @@ var columnBoardColumnStyles = css`
53521
53895
  }
53522
53896
 
53523
53897
  /* The item keeps its place while it is dragged, as an empty slot. */
53524
- ::slotted([data-column-board-dragging]) {
53898
+ ::slotted([data-kanban-dragging]) {
53525
53899
  visibility: hidden;
53526
53900
  }
53527
53901
 
53528
- .column-board-column__placeholder {
53902
+ .kanban-column__placeholder {
53529
53903
  position: absolute;
53530
- top: var(--_column-board-column-placeholder-top);
53531
- left: var(--_column-board-column-placeholder-left);
53532
- border-radius: var(--_column-board-column-placeholder-corner-radius);
53533
- background-color: var(--_column-board-column-placeholder-background-color);
53904
+ top: var(--_kanban-column-placeholder-top);
53905
+ left: var(--_kanban-column-placeholder-left);
53906
+ border-radius: var(--_kanban-column-placeholder-corner-radius);
53907
+ background-color: var(--_kanban-column-placeholder-background-color);
53534
53908
  pointer-events: none;
53535
- width: var(--_column-board-column-placeholder-width);
53536
- height: var(--_column-board-column-placeholder-height);
53909
+ width: var(--_kanban-column-placeholder-width);
53910
+ height: var(--_kanban-column-placeholder-height);
53537
53911
  }
53538
53912
 
53539
- .column-board-column__placeholder.is-returning {
53540
- box-shadow: inset 0 0 0 var(--_column-board-column-placeholder-border-width) var(--_column-board-column-placeholder-border-color);
53913
+ .kanban-column__placeholder.is-returning {
53914
+ box-shadow: inset 0 0 0 var(--_kanban-column-placeholder-border-width) var(--_kanban-column-placeholder-border-color);
53541
53915
  }
53542
53916
 
53543
- .column-board-column__placeholder[hidden] {
53917
+ .kanban-column__placeholder[hidden] {
53544
53918
  display: none;
53545
53919
  }
53546
53920
 
53547
- .column-board-column__drop-indicator {
53921
+ .kanban-column__drop-indicator {
53548
53922
  position: absolute;
53549
- top: var(--_column-board-column-indicator-top);
53550
- right: var(--_column-board-column-indicator-inset);
53551
- left: var(--_column-board-column-indicator-inset);
53552
- border-radius: var(--_column-board-column-indicator-thickness);
53553
- background-color: var(--_column-board-column-indicator-color);
53923
+ top: var(--_kanban-column-indicator-top);
53924
+ right: var(--_kanban-column-indicator-inset);
53925
+ left: var(--_kanban-column-indicator-inset);
53926
+ border-radius: var(--_kanban-column-indicator-thickness);
53927
+ background-color: var(--_kanban-column-indicator-color);
53554
53928
  pointer-events: none;
53555
- height: var(--_column-board-column-indicator-thickness);
53929
+ height: var(--_kanban-column-indicator-thickness);
53556
53930
  transform: translateY(-50%);
53557
53931
  }
53558
53932
 
53559
- .column-board-column__drop-indicator[hidden] {
53933
+ .kanban-column__drop-indicator[hidden] {
53560
53934
  display: none;
53561
53935
  }
53562
53936
 
@@ -53564,84 +53938,84 @@ var columnBoardColumnStyles = css`
53564
53938
  /* # High contrast */
53565
53939
 
53566
53940
  @media (forced-colors: active) {
53567
- .column-board-column {
53568
- border: var(--_column-board-column-highlight-border-width) solid CanvasText;
53941
+ .kanban-column {
53942
+ border: var(--_kanban-column-highlight-border-width) solid CanvasText;
53569
53943
  }
53570
53944
 
53571
- .column-board-column__drop-indicator {
53945
+ .kanban-column__drop-indicator {
53572
53946
  background-color: Highlight;
53573
53947
  }
53574
53948
  }
53575
53949
  `;
53576
- // src/components/layout/column-board/column-board.template.ts
53577
- function columnBoardTemplate(component) {
53950
+ // src/components/layout/kanban/kanban.template.ts
53951
+ function kanbanTemplate(component) {
53578
53952
  return html`
53579
53953
  <div class=${classMap({
53580
- "column-board": true,
53954
+ "kanban": true,
53581
53955
  "can-scroll-left": component._canScrollLeft,
53582
53956
  "can-scroll-right": component._canScrollRight,
53583
53957
  "is-dragging": component._dragging
53584
53958
  })}
53585
53959
  role="region"
53586
- aria-label=${component.accessibleLabel || component._t("components.column-board.accessible-label")}
53960
+ aria-label=${component.accessibleLabel || component._t("components.kanban.accessible-label")}
53587
53961
  tabindex=${component._canScrollLeft || component._canScrollRight ? "0" : nothing}
53588
53962
  @scroll=${component._updateScroll}
53589
53963
  >
53590
53964
  <slot @slotchange=${component._updateScroll}></slot>
53591
53965
  </div>
53592
- <div class="column-board__announcer"
53966
+ <div class="kanban__announcer"
53593
53967
  role="status"
53594
53968
  aria-live="polite"
53595
53969
  aria-atomic="true"
53596
53970
  ></div>
53597
53971
  `;
53598
53972
  }
53599
- // src/components/layout/column-board/column-board-column.template.ts
53600
- function columnBoardColumnTemplate(component) {
53973
+ // src/components/layout/kanban/kanban-column.template.ts
53974
+ function kanbanColumnTemplate(component) {
53601
53975
  return html`
53602
53976
  <section class=${classMap({
53603
- "column-board-column": true,
53977
+ "kanban-column": true,
53604
53978
  "is-drop-available": component._dropState === "available",
53605
53979
  "is-drop-over": component._dropState === "over"
53606
53980
  })}
53607
53981
  aria-label=${component.label || nothing}
53608
53982
  >
53609
- <div class="column-board-column__header">
53983
+ <div class="kanban-column__header">
53610
53984
  <slot name="header">
53611
- <span class="column-board-column__title">
53985
+ <span class="kanban-column__title">
53612
53986
  ${component.text}
53613
53987
  </span>
53614
- <span class="column-board-column__count">
53988
+ <span class="kanban-column__count">
53615
53989
  ${component._count}
53616
53990
  </span>
53617
53991
  </slot>
53618
53992
  </div>
53619
53993
  <div class=${classMap({
53620
- "column-board-column__main": true,
53994
+ "kanban-column__main": true,
53621
53995
  "can-scroll-up": component._canScrollUp,
53622
53996
  "can-scroll-down": component._canScrollDown
53623
53997
  })}
53624
53998
  @scroll=${component._updateScroll}
53625
53999
  >
53626
- <div class="column-board-column__placeholder${component._returning ? " is-returning" : ""}"
54000
+ <div class="kanban-column__placeholder${component._returning ? " is-returning" : ""}"
53627
54001
  ?hidden=${!component._placeholder}
53628
54002
  ></div>
53629
54003
  <slot @slotchange=${component._handleSlotChange}></slot>
53630
- <div class="column-board-column__footer"
54004
+ <div class="kanban-column__footer"
53631
54005
  ?hidden=${!component._hasFooter}
53632
54006
  >
53633
54007
  <slot name="footer" @slotchange=${component._handleFooterChange}></slot>
53634
54008
  </div>
53635
- <div class="column-board-column__drop-indicator"
54009
+ <div class="kanban-column__drop-indicator"
53636
54010
  ?hidden=${component._dropIndex === null}
53637
54011
  ></div>
53638
54012
  </div>
53639
54013
  </section>
53640
54014
  `;
53641
54015
  }
53642
- // src/components/layout/column-board/column-board-column.ts
54016
+ // src/components/layout/kanban/kanban-column.ts
53643
54017
  /**
53644
- * One column of an `nldd-column-board`: a header and the items under it. The items
54018
+ * One column of an `nldd-kanban`: a header and the items under it. The items
53645
54019
  * are whatever you put in the column, usually an `nldd-card` each; the board
53646
54020
  * moves them between columns.
53647
54021
  *
@@ -53654,7 +54028,7 @@ function columnBoardColumnTemplate(component) {
53654
54028
  * The column scrolls on its own once its items do not fit the height of the
53655
54029
  * board, and fades at the top or the bottom while there is more to scroll to.
53656
54030
  *
53657
- * @element nldd-column-board-column
54031
+ * @element nldd-kanban-column
53658
54032
  * @attr {string} text - The column's name, shown in the header and used as its accessible name
53659
54033
  * @attr {string} accessible-label - Accessible name in place of `text`, for a column whose header comes from the slot
53660
54034
  * @attr {string} value - What the column stands for in your data, such as a status; `nldd-move` reports it as `fromColumn` and `toColumn`
@@ -53663,7 +54037,7 @@ function columnBoardColumnTemplate(component) {
53663
54037
  * @slot - The items
53664
54038
  * @slot footer - Right under the last item, such as a button to add one; it scrolls along with the items
53665
54039
  */
53666
- var _NLDDColumnBoardColumn = class NLDDColumnBoardColumn extends LitElement {
54040
+ var _NLDDKanbanColumn = class NLDDKanbanColumn extends LitElement {
53667
54041
  constructor(..._args) {
53668
54042
  super(..._args);
53669
54043
  this.text = "";
@@ -53709,7 +54083,7 @@ var _NLDDColumnBoardColumn = class NLDDColumnBoardColumn extends LitElement {
53709
54083
  this._resizeObserver.disconnect();
53710
54084
  this._resizeObserver.observe(this._mainElement);
53711
54085
  for (const item of this.items) this._resizeObserver.observe(item);
53712
- const footer = this.shadowRoot?.querySelector(".column-board-column__footer");
54086
+ const footer = this.shadowRoot?.querySelector(".kanban-column__footer");
53713
54087
  if (footer) this._resizeObserver.observe(footer);
53714
54088
  }
53715
54089
  connectedCallback() {
@@ -53739,14 +54113,14 @@ var _NLDDColumnBoardColumn = class NLDDColumnBoardColumn extends LitElement {
53739
54113
  /** Lays the placeholder over the empty place of the dragged item. */
53740
54114
  _placePlaceholder() {
53741
54115
  const item = this._placeholder;
53742
- const placeholder = this.shadowRoot?.querySelector(".column-board-column__placeholder");
54116
+ const placeholder = this.shadowRoot?.querySelector(".kanban-column__placeholder");
53743
54117
  if (!item || !placeholder) return;
53744
54118
  const main = this._mainElement.getBoundingClientRect();
53745
54119
  const rect = item.getBoundingClientRect();
53746
- placeholder.style.setProperty("--_column-board-column-placeholder-top", `${rect.top - main.top + this._mainElement.scrollTop}px`);
53747
- placeholder.style.setProperty("--_column-board-column-placeholder-left", `${rect.left - main.left + this._mainElement.scrollLeft}px`);
53748
- placeholder.style.setProperty("--_column-board-column-placeholder-width", `${rect.width}px`);
53749
- placeholder.style.setProperty("--_column-board-column-placeholder-height", `${rect.height}px`);
54120
+ placeholder.style.setProperty("--_kanban-column-placeholder-top", `${rect.top - main.top + this._mainElement.scrollTop}px`);
54121
+ placeholder.style.setProperty("--_kanban-column-placeholder-left", `${rect.left - main.left + this._mainElement.scrollLeft}px`);
54122
+ placeholder.style.setProperty("--_kanban-column-placeholder-width", `${rect.width}px`);
54123
+ placeholder.style.setProperty("--_kanban-column-placeholder-height", `${rect.height}px`);
53750
54124
  }
53751
54125
  /** Puts the line between the items where a dropped item would land. */
53752
54126
  _placeIndicator() {
@@ -53760,43 +54134,43 @@ var _NLDDColumnBoardColumn = class NLDDColumnBoardColumn extends LitElement {
53760
54134
  if (before) top = before.getBoundingClientRect().top - gap / 2;
53761
54135
  else if (after) top = after.getBoundingClientRect().bottom + gap / 2;
53762
54136
  else top = main.top + parseFloat(getComputedStyle(this._mainElement).paddingTop);
53763
- this._indicator.style.setProperty("--_column-board-column-indicator-top", `${top - main.top + this._mainElement.scrollTop}px`);
54137
+ this._indicator.style.setProperty("--_kanban-column-indicator-top", `${top - main.top + this._mainElement.scrollTop}px`);
53764
54138
  }
53765
54139
  render() {
53766
- return columnBoardColumnTemplate(this);
54140
+ return kanbanColumnTemplate(this);
53767
54141
  }
53768
54142
  };
53769
- var NLDDColumnBoardColumn = (_NLDDColumnBoardColumn.styles = columnBoardColumnStyles, _NLDDColumnBoardColumn);
54143
+ var NLDDKanbanColumn = (_NLDDKanbanColumn.styles = kanbanColumnStyles, _NLDDKanbanColumn);
53770
54144
  __decorate([property({
53771
54145
  reflect: true,
53772
54146
  converter: reflectNonDefault("")
53773
- })], NLDDColumnBoardColumn.prototype, "text", void 0);
54147
+ })], NLDDKanbanColumn.prototype, "text", void 0);
53774
54148
  __decorate([property({
53775
54149
  type: String,
53776
54150
  attribute: "accessible-label"
53777
- })], NLDDColumnBoardColumn.prototype, "accessibleLabel", void 0);
54151
+ })], NLDDKanbanColumn.prototype, "accessibleLabel", void 0);
53778
54152
  __decorate([property({
53779
54153
  reflect: true,
53780
54154
  converter: reflectNonDefault("")
53781
- })], NLDDColumnBoardColumn.prototype, "value", void 0);
53782
- __decorate([state()], NLDDColumnBoardColumn.prototype, "_count", void 0);
53783
- __decorate([state()], NLDDColumnBoardColumn.prototype, "_hasFooter", void 0);
53784
- __decorate([state()], NLDDColumnBoardColumn.prototype, "_dropIndex", void 0);
53785
- __decorate([state()], NLDDColumnBoardColumn.prototype, "_placeholder", void 0);
53786
- __decorate([state()], NLDDColumnBoardColumn.prototype, "_returning", void 0);
53787
- __decorate([state()], NLDDColumnBoardColumn.prototype, "_dropState", void 0);
53788
- __decorate([state()], NLDDColumnBoardColumn.prototype, "_canScrollUp", void 0);
53789
- __decorate([state()], NLDDColumnBoardColumn.prototype, "_canScrollDown", void 0);
53790
- __decorate([query(".column-board-column__main")], NLDDColumnBoardColumn.prototype, "_mainElement", void 0);
53791
- __decorate([query(".column-board-column__drop-indicator")], NLDDColumnBoardColumn.prototype, "_indicator", void 0);
53792
- NLDDColumnBoardColumn = __decorate([customElement("nldd-column-board-column")], NLDDColumnBoardColumn);
53793
- // src/components/layout/column-board/column-board.ts
54155
+ })], NLDDKanbanColumn.prototype, "value", void 0);
54156
+ __decorate([state()], NLDDKanbanColumn.prototype, "_count", void 0);
54157
+ __decorate([state()], NLDDKanbanColumn.prototype, "_hasFooter", void 0);
54158
+ __decorate([state()], NLDDKanbanColumn.prototype, "_dropIndex", void 0);
54159
+ __decorate([state()], NLDDKanbanColumn.prototype, "_placeholder", void 0);
54160
+ __decorate([state()], NLDDKanbanColumn.prototype, "_returning", void 0);
54161
+ __decorate([state()], NLDDKanbanColumn.prototype, "_dropState", void 0);
54162
+ __decorate([state()], NLDDKanbanColumn.prototype, "_canScrollUp", void 0);
54163
+ __decorate([state()], NLDDKanbanColumn.prototype, "_canScrollDown", void 0);
54164
+ __decorate([query(".kanban-column__main")], NLDDKanbanColumn.prototype, "_mainElement", void 0);
54165
+ __decorate([query(".kanban-column__drop-indicator")], NLDDKanbanColumn.prototype, "_indicator", void 0);
54166
+ NLDDKanbanColumn = __decorate([customElement("nldd-kanban-column")], NLDDKanbanColumn);
54167
+ // src/components/layout/kanban/kanban.ts
53794
54168
  /**
53795
- * Nederlandse Digitale Dienst Column Board Component (Lit + TypeScript)
54169
+ * Nederlandse Digitale Dienst Kanban Component (Lit + TypeScript)
53796
54170
  *
53797
- * Columns side by side, with items you move between them: a kanban board, or
53798
- * any board where an item's column is one of its values, such as a status or a
53799
- * team. Put `nldd-column-board-column`s in it, and the items in those, usually an
54171
+ * Columns side by side, with items you move between them. Kanban is Japanese
54172
+ * for a visible board, so it is any board where an item's column is one of its
54173
+ * values: a status, but also a team or a phase. Put `nldd-kanban-column`s in it, and the items in those, usually an
53800
54174
  * `nldd-card` each. The board scrolls sideways once its columns do not fit, and
53801
54175
  * a column scrolls on its own once its items do not fit the height you give the
53802
54176
  * board.
@@ -53833,20 +54207,20 @@ NLDDColumnBoardColumn = __decorate([customElement("nldd-column-board-column")],
53833
54207
  * synchronously in the handler: the board puts focus back on the item right
53834
54208
  * after, and a screen reader hears where it landed.
53835
54209
  *
53836
- * @element nldd-column-board
54210
+ * @element nldd-kanban
53837
54211
  * @attr {string} accessible-label - Accessible name of the board (default: "Bord")
53838
54212
  * @attr {string} height - Fixed height as a CSS length (e.g. '480px'): every column takes it, and scrolls its items once they do not fit. To fill a page or a pane, set the height in your layout instead (flex, or `height: 100%`)
53839
54213
  * @attr {boolean} readonly - Items cannot be dragged or moved with the keyboard; they still work, and `moveItem()` still moves
53840
54214
  * @attr {object} translations - Override translation keys; unset keys fall back to Dutch
53841
54215
  *
53842
- * @slot - The columns: `nldd-column-board-column`
54216
+ * @slot - The columns: `nldd-kanban-column`
53843
54217
  *
53844
54218
  * @fires nldd-move - An item moves: `{ item, fromColumn, fromIndex, toColumn, toIndex }`, where a column is its `value` (or its `text` without one)
53845
54219
  * @fires nldd-move-denied - An item a `readonly` board does not move was dragged or moved with the keyboard: `{ item }`
53846
54220
  *
53847
54221
  * @method moveItem(item, toColumn, toIndex?) - Moves an item to a column, given as its `value` or as the element, at `toIndex` or at the end; fires `nldd-move` and says where it landed. Returns whether it moved.
53848
54222
  */
53849
- var _NLDDColumnBoard;
54223
+ var _NLDDKanban;
53850
54224
  /** How far a mouse or pen moves before a press becomes a drag, in pixels. */
53851
54225
  var DRAG_THRESHOLD$1 = 4;
53852
54226
  /** How far a finger may wander while it holds an item, and how long it holds. */
@@ -53862,7 +54236,7 @@ var COLUMN_REVEAL_DELAY_MS = 300;
53862
54236
  var DENIED_MS = 1500;
53863
54237
  /** How long the pointer stays outside the board before the copy says it goes back. */
53864
54238
  var RETURN_NOTE_DELAY_MS = 300;
53865
- var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTranslations(LitElement, nlddColumnBoardTranslations) {
54239
+ var NLDDKanban = (_NLDDKanban = class NLDDKanban extends withTranslations(LitElement, nlddKanbanTranslations) {
53866
54240
  constructor(..._args) {
53867
54241
  super(..._args);
53868
54242
  this.accessibleLabel = "";
@@ -53920,7 +54294,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
53920
54294
  if (step === 0) {
53921
54295
  const toIndex = fromIndex + (event.key === "ArrowUp" ? -1 : 1);
53922
54296
  if (toIndex < 0 || toIndex > from.items.length - 1) {
53923
- this._announce(this._t("components.column-board.edge-text"));
54297
+ this._announce(this._t("components.kanban.edge-text"));
53924
54298
  return;
53925
54299
  }
53926
54300
  this._move(item, from, fromIndex, from, toIndex);
@@ -53928,7 +54302,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
53928
54302
  }
53929
54303
  const to = columns[columns.indexOf(from) + step];
53930
54304
  if (!to) {
53931
- this._announce(this._t("components.column-board.edge-text"));
54305
+ this._announce(this._t("components.kanban.edge-text"));
53932
54306
  return;
53933
54307
  }
53934
54308
  this._move(item, from, fromIndex, to, Math.min(fromIndex, to.items.length));
@@ -54021,7 +54395,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54021
54395
  }
54022
54396
  /** The columns, in order. */
54023
54397
  get columns() {
54024
- return Array.from(this.children).filter((el) => el instanceof NLDDColumnBoardColumn && !el.hidden);
54398
+ return Array.from(this.children).filter((el) => el instanceof NLDDKanbanColumn && !el.hidden);
54025
54399
  }
54026
54400
  connectedCallback() {
54027
54401
  super.connectedCallback();
@@ -54043,8 +54417,8 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54043
54417
  updated(changed) {
54044
54418
  if (changed.has("height")) {
54045
54419
  const height = this.height;
54046
- if (height && CSS.supports("height", height)) this.style.setProperty("--_column-board-height", height);
54047
- else this.style.removeProperty("--_column-board-height");
54420
+ if (height && CSS.supports("height", height)) this.style.setProperty("--_kanban-height", height);
54421
+ else this.style.removeProperty("--_kanban-height");
54048
54422
  }
54049
54423
  if (changed.has("readonly")) {
54050
54424
  this._endPress();
@@ -54068,7 +54442,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54068
54442
  const room = to.items.filter((el) => el !== item).length;
54069
54443
  const index = Math.max(0, Math.min(toIndex ?? room, room));
54070
54444
  if (from === to && index === fromIndex) {
54071
- this._announce(this._t("components.column-board.no-change-text"));
54445
+ this._announce(this._t("components.kanban.no-change-text"));
54072
54446
  return false;
54073
54447
  }
54074
54448
  return this._move(item, from, fromIndex, to, index);
@@ -54090,7 +54464,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54090
54464
  composed: true
54091
54465
  }));
54092
54466
  const total = to.items.filter((el) => el !== item).length + 1;
54093
- this._announce(this._t("components.column-board.moved-text", {
54467
+ this._announce(this._t("components.kanban.moved-text", {
54094
54468
  column: to.label,
54095
54469
  position: toIndex + 1,
54096
54470
  total
@@ -54106,7 +54480,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54106
54480
  /** The column an element sits in as an item, if it is one in this board. */
54107
54481
  _columnOf(item) {
54108
54482
  const parent = item.parentElement;
54109
- return parent instanceof NLDDColumnBoardColumn && parent.parentElement === this && !item.slot ? parent : null;
54483
+ return parent instanceof NLDDKanbanColumn && parent.parentElement === this && !item.slot ? parent : null;
54110
54484
  }
54111
54485
  /** The item an event happened in: the child of a column it came through. */
54112
54486
  _itemFrom(event) {
@@ -54132,7 +54506,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54132
54506
  return active instanceof HTMLElement ? active : null;
54133
54507
  }
54134
54508
  _announce(message) {
54135
- const region = this.shadowRoot?.querySelector(".column-board__announcer");
54509
+ const region = this.shadowRoot?.querySelector(".kanban__announcer");
54136
54510
  if (!region) return;
54137
54511
  region.textContent = "";
54138
54512
  requestAnimationFrame(() => requestAnimationFrame(() => {
@@ -54195,7 +54569,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54195
54569
  borderRadius: this._cornerRadius(item)
54196
54570
  });
54197
54571
  document.body.append(ghost);
54198
- item.setAttribute("data-column-board-dragging", "");
54572
+ item.setAttribute("data-kanban-dragging", "");
54199
54573
  document.getSelection()?.removeAllRanges();
54200
54574
  document.documentElement.style.setProperty("user-select", "none");
54201
54575
  document.documentElement.style.setProperty("-webkit-user-select", "none");
@@ -54284,7 +54658,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54284
54658
  }
54285
54659
  if (!drag.note && !drag.noteTimer) drag.noteTimer = window.setTimeout(() => {
54286
54660
  if (this._drag !== drag) return;
54287
- drag.note = this._note(this._t("components.column-board.drag-return-text"));
54661
+ drag.note = this._note(this._t("components.kanban.drag-return-text"));
54288
54662
  this._followReturnNote(false);
54289
54663
  }, RETURN_NOTE_DELAY_MS);
54290
54664
  if (!drag.note) return;
@@ -54313,7 +54687,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54313
54687
  _columnRevealLeft(column) {
54314
54688
  const el = this._scroller;
54315
54689
  const styles = getComputedStyle(el);
54316
- const insetStart = parseFloat(styles.getPropertyValue("--_column-board-fade-size")) || 0;
54690
+ const insetStart = parseFloat(styles.getPropertyValue("--_kanban-fade-size")) || 0;
54317
54691
  const insetEnd = insetStart;
54318
54692
  const current = el.scrollLeft;
54319
54693
  const rect = column.getBoundingClientRect();
@@ -54342,11 +54716,11 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54342
54716
  const { item, from, fromIndex, target, index } = drag;
54343
54717
  this._endDrag();
54344
54718
  if (!target) {
54345
- this._announce(this._t("components.column-board.drag-canceled-text"));
54719
+ this._announce(this._t("components.kanban.drag-canceled-text"));
54346
54720
  return;
54347
54721
  }
54348
54722
  if (target === from && (index === fromIndex || index === fromIndex + 1)) {
54349
- this._announce(this._t("components.column-board.no-change-text"));
54723
+ this._announce(this._t("components.kanban.no-change-text"));
54350
54724
  return;
54351
54725
  }
54352
54726
  this._move(item, from, fromIndex, target, target === from && index > fromIndex ? index - 1 : index);
@@ -54354,7 +54728,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54354
54728
  _cancelDrag() {
54355
54729
  if (!this._drag) return;
54356
54730
  this._endDrag();
54357
- this._announce(this._t("components.column-board.drag-canceled-text"));
54731
+ this._announce(this._t("components.kanban.drag-canceled-text"));
54358
54732
  }
54359
54733
  _endDrag() {
54360
54734
  const drag = this._drag;
@@ -54364,7 +54738,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54364
54738
  clearTimeout(drag.columnRevealTimer);
54365
54739
  drag.note?.remove();
54366
54740
  drag.ghost.remove();
54367
- drag.item.removeAttribute("data-column-board-dragging");
54741
+ drag.item.removeAttribute("data-kanban-dragging");
54368
54742
  if (drag.target) drag.target._dropIndex = null;
54369
54743
  for (const column of this.columns) column._dropState = null;
54370
54744
  drag.from._placeholder = null;
@@ -54398,7 +54772,7 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54398
54772
  * and tells the app. */
54399
54773
  _deny(item) {
54400
54774
  this._hideDenied();
54401
- const text = this._t("components.column-board.readonly-text");
54775
+ const text = this._t("components.kanban.readonly-text");
54402
54776
  this._announce(text);
54403
54777
  const rect = item.getBoundingClientRect();
54404
54778
  const below = rect.top < SCROLL_EDGE;
@@ -54448,26 +54822,26 @@ var NLDDColumnBoard = (_NLDDColumnBoard = class NLDDColumnBoard extends withTran
54448
54822
  this._deniedCursor = null;
54449
54823
  }
54450
54824
  render() {
54451
- return columnBoardTemplate(this);
54825
+ return kanbanTemplate(this);
54452
54826
  }
54453
- }, _NLDDColumnBoard.styles = columnBoardStyles, _NLDDColumnBoard);
54827
+ }, _NLDDKanban.styles = kanbanStyles, _NLDDKanban);
54454
54828
  __decorate([property({
54455
54829
  type: String,
54456
54830
  attribute: "accessible-label"
54457
- })], NLDDColumnBoard.prototype, "accessibleLabel", void 0);
54831
+ })], NLDDKanban.prototype, "accessibleLabel", void 0);
54458
54832
  __decorate([property({
54459
54833
  type: String,
54460
54834
  reflect: true
54461
- })], NLDDColumnBoard.prototype, "height", void 0);
54835
+ })], NLDDKanban.prototype, "height", void 0);
54462
54836
  __decorate([property({
54463
54837
  type: Boolean,
54464
54838
  reflect: true
54465
- })], NLDDColumnBoard.prototype, "readonly", void 0);
54466
- __decorate([query(".column-board")], NLDDColumnBoard.prototype, "_scroller", void 0);
54467
- __decorate([state()], NLDDColumnBoard.prototype, "_canScrollLeft", void 0);
54468
- __decorate([state()], NLDDColumnBoard.prototype, "_canScrollRight", void 0);
54469
- __decorate([state()], NLDDColumnBoard.prototype, "_dragging", void 0);
54470
- NLDDColumnBoard = __decorate([customElement("nldd-column-board")], NLDDColumnBoard);
54839
+ })], NLDDKanban.prototype, "readonly", void 0);
54840
+ __decorate([query(".kanban")], NLDDKanban.prototype, "_scroller", void 0);
54841
+ __decorate([state()], NLDDKanban.prototype, "_canScrollLeft", void 0);
54842
+ __decorate([state()], NLDDKanban.prototype, "_canScrollRight", void 0);
54843
+ __decorate([state()], NLDDKanban.prototype, "_dragging", void 0);
54844
+ NLDDKanban = __decorate([customElement("nldd-kanban")], NLDDKanban);
54471
54845
  // src/components/lists-and-tables/list-item-segment/list-item-segment.styles.ts
54472
54846
  var listItemSegmentStyles = css`
54473
54847
  :host {
@@ -58561,14 +58935,10 @@ var topNavigationBarStyles = css`
58561
58935
  .top-navigation-bar__website-title-bar {
58562
58936
  display: flex;
58563
58937
  align-items: center;
58564
-
58565
- @container (max-width: ${smMax$2}) {
58566
- justify-content: center;
58567
- }
58938
+ justify-content: flex-start;
58568
58939
 
58569
58940
  @container (min-width: ${mdMin$1}) {
58570
58941
  padding-inline-end: var(--semantics-menu-bar-items-inline-padding);
58571
- justify-content: flex-start;
58572
58942
  }
58573
58943
  }
58574
58944
 
@@ -58599,7 +58969,6 @@ var topNavigationBarStyles = css`
58599
58969
  min-width: 0;
58600
58970
  white-space: normal;
58601
58971
  overflow-wrap: break-word;
58602
- text-align: center;
58603
58972
  }
58604
58973
 
58605
58974
  @container (min-width: ${mdMin$1}) {
@@ -58996,7 +59365,7 @@ async function loadDependencies() {
58996
59365
  Promise.resolve().then(() => list_item_exports),
58997
59366
  Promise.resolve().then(() => text_cell_exports),
58998
59367
  Promise.resolve().then(() => icon_cell_exports),
58999
- import("./icon-DU_IMj2t.js").then((n) => n.n)
59368
+ import("./icon-CrBk3W-t.js").then((n) => n.n)
59000
59369
  ]);
59001
59370
  }
59002
59371
  /** The rows of a level, read from its container: the global menu bar's items
@@ -62601,7 +62970,7 @@ function bannerTemplate(component) {
62601
62970
  <div class="banner__actions"
62602
62971
  ?hidden=${!component._hasActions}
62603
62972
  >
62604
- <nldd-button-group orientation="horizontal">
62973
+ <nldd-button-group orientation="horizontal" size="sm">
62605
62974
  <slot name="actions"></slot>
62606
62975
  </nldd-button-group>
62607
62976
  </div>
@@ -62662,7 +63031,7 @@ function bannerTemplate(component) {
62662
63031
  * @attr {object} translations - Override translation keys; unset keys fall back to Dutch
62663
63032
  *
62664
63033
  * @slot - Optional rich content between text and actions (e.g. nldd-rich-text)
62665
- * @slot actions - nldd-button elements, wrapped in a horizontal nldd-button-group
63034
+ * @slot actions - nldd-button elements, wrapped in a horizontal nldd-button-group that makes them sm, at either banner size: an action beside a notice should not weigh as much as the buttons of the page.
62666
63035
  *
62667
63036
  * @fires dismiss - Fired when the dismiss button is clicked. The consumer is responsible for removing/hiding the banner.
62668
63037
  */
@@ -65759,6 +66128,10 @@ var stepBarStyles = css`
65759
66128
  --_step-bar-compact-bar-corner-radius: var(--primitives-corner-radius-full);
65760
66129
  --_step-bar-track-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
65761
66130
  --_step-bar-compact-bar-height: var(--primitives-space-6);
66131
+ --_step-bar-compact-bar-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-150));
66132
+ --_step-bar-compact-bar-border-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
66133
+ --_step-bar-compact-bar-progress-border-color: var(--semantics-steps-progress-highlight-border-color);
66134
+ --_step-bar-compact-bar-border-width: var(--primitives-border-width-thin);
65762
66135
  --_step-bar-progress-color: var(--semantics-steps-progress-color);
65763
66136
  --_step-bar-item-gap: var(--primitives-space-4);
65764
66137
  --_step-bar-marker-size: var(--primitives-space-24);
@@ -65826,11 +66199,13 @@ var stepBarStyles = css`
65826
66199
  .step-bar__compact-bar-segment {
65827
66200
  flex: 1;
65828
66201
  border-radius: var(--_step-bar-compact-bar-corner-radius);
65829
- background-color: var(--_step-bar-track-color);
66202
+ box-shadow: inset 0 0 0 var(--_step-bar-compact-bar-border-width) var(--_step-bar-compact-bar-border-color);
66203
+ background-color: var(--_step-bar-compact-bar-background-color);
65830
66204
  height: var(--_step-bar-compact-bar-height);
65831
66205
  }
65832
66206
 
65833
66207
  .step-bar__compact-bar-segment[data-filled] {
66208
+ --_step-bar-compact-bar-border-color: var(--_step-bar-compact-bar-progress-border-color);
65834
66209
  background-color: var(--_step-bar-progress-color);
65835
66210
  }
65836
66211
 
@@ -67517,4 +67892,4 @@ __decorate([property({
67517
67892
  attribute: "no-arrow"
67518
67893
  })], NLDDJustInTimeEducation.prototype, "noArrow", void 0);
67519
67894
  NLDDJustInTimeEducation = _NLDDJustInTimeEducation = __decorate([customElement("nldd-just-in-time-education")], NLDDJustInTimeEducation);
67520
- export { NLDDActivityIndicator, NLDDAvatar, NLDDAvatarGroup, NLDDBadge, NLDDBanner, NLDDBarSplitView, NLDDBlockquote, NLDDBox, NLDDBreadcrumbs, NLDDBreadcrumbsItem, NLDDButton, NLDDButtonBar, NLDDButtonGroup, NLDDCard, NLDDCell, NLDDCheckbox, NLDDCheckboxField, NLDDCodeEditor, NLDDCodeViewer, NLDDCollection, NLDDColumnBoard, NLDDColumnBoardColumn, NLDDComboBox, NLDDContainer, NLDDDateField, NLDDDatePicker, NLDDDescriptionCell, NLDDDivider, NLDDDocumentTabBar, NLDDDragHandleCell, NLDDDropdown, NLDDFileField, NLDDForm, NLDDFormActions, NLDDFormField, NLDDFormSection, NLDDFullBleedSection, NLDDHero, NLDDIcon, NLDDIconButton, NLDDIconCell, NLDDIdentity, NLDDImage, NLDDInlineDialog, NLDDJustInTimeEducation, NLDDKeyboardShortcut, NLDDLink, NLDDLinkGroup, NLDDList, NLDDListItem, NLDDListItemSegment, NLDDMenu, NLDDMenuBar, NLDDMenuBarItem, NLDDModalDialog, NLDDMultiLineTextField, NLDDNavigationSplitView, NLDDNotification, NLDDNumberField, NLDDOneHalfOneHalfSection, NLDDOneThirdTwoThirdsSection, NLDDOneTimeCodeField, NLDDPage, NLDDPageFooter, NLDDPageFooterLegalBar, NLDDPageFooterLegalBarItem, NLDDPagination, NLDDPasswordField, NLDDPopover, NLDDProgressBar, NLDDProgressBarSegmentIndicator, NLDDProgressCircle, NLDDProgressCircleSegmentIndicator, NLDDRadioButton, NLDDRadioButtonField, NLDDRadioButtonGroup, NLDDRichText, NLDDSearchField, NLDDSegmentedControl, NLDDSheet, NLDDShell, NLDDSideBySideSplitView, NLDDSidebarSection, NLDDSimpleSection, NLDDSkipLink, NLDDSlider, NLDDSpacer, NLDDSpacerCell, NLDDSplitButton, NLDDSplitViewDivider, NLDDSplitViewPane, NLDDStackedSplitView, NLDDStatusBar, NLDDStepBar, NLDDStepBarItem, NLDDStepCell, NLDDStepper, NLDDSwatchPicker, NLDDSwatchPickerItem, NLDDSwitch, NLDDSwitchField, NLDDTabBar, NLDDTable, NLDDTableRow, NLDDTag, NLDDText, NLDDTextCell, NLDDTextEditor, NLDDTextField, NLDDTimeField, NLDDTimePicker, NLDDTitle, NLDDTitleCell, NLDDToggleButton, NLDDToggleButtonGroup, NLDDToken, NLDDTokenField, NLDDToolbar, NLDDTooltip, NLDDTopNavigationBar, NLDDTopTitleBar, NLDDTwoThirdsOneThirdSection, NLDDValidationList, NLDDVisuallyHidden, NLDDWindow, setTranslations };
67895
+ export { NLDDActivityIndicator, NLDDAvatar, NLDDAvatarGroup, NLDDBadge, NLDDBanner, NLDDBarSplitView, NLDDBlockquote, NLDDBox, NLDDBreadcrumbs, NLDDBreadcrumbsItem, NLDDButton, NLDDButtonBar, NLDDButtonGroup, NLDDCard, NLDDCell, NLDDCheckbox, NLDDCheckboxField, NLDDCodeEditor, NLDDCodeViewer, NLDDCollection, NLDDComboBox, NLDDContainer, NLDDDateField, NLDDDatePicker, NLDDDescriptionCell, NLDDDivider, NLDDDocumentTabBar, NLDDDragHandleCell, NLDDDropdown, NLDDFileField, NLDDForm, NLDDFormActions, NLDDFormField, NLDDFormSection, NLDDFullBleedSection, NLDDHero, NLDDIcon, NLDDIconButton, NLDDIconCell, NLDDIdentity, NLDDImage, NLDDInlineDialog, NLDDJustInTimeEducation, NLDDKanban, NLDDKanbanColumn, NLDDKeyboardShortcut, NLDDLink, NLDDLinkGroup, NLDDList, NLDDListItem, NLDDListItemSegment, NLDDMenu, NLDDMenuBar, NLDDMenuBarItem, NLDDModalDialog, NLDDMultiLineTextField, NLDDNavigationSplitView, NLDDNotification, NLDDNumberField, NLDDOneHalfOneHalfSection, NLDDOneThirdTwoThirdsSection, NLDDOneTimeCodeField, NLDDPage, NLDDPageFooter, NLDDPageFooterLegalBar, NLDDPageFooterLegalBarItem, NLDDPagination, NLDDPasswordField, NLDDPopover, NLDDProgressBar, NLDDProgressBarSegmentIndicator, NLDDProgressCircle, NLDDProgressCircleSegmentIndicator, NLDDRadioButton, NLDDRadioButtonField, NLDDRadioButtonGroup, NLDDRichText, NLDDSearchField, NLDDSegmentedControl, NLDDSheet, NLDDShell, NLDDSideBySideSplitView, NLDDSidebarSection, NLDDSimpleSection, NLDDSkipLink, NLDDSlider, NLDDSpacer, NLDDSpacerCell, NLDDSplitButton, NLDDSplitViewDivider, NLDDSplitViewPane, NLDDStackedSplitView, NLDDStatusBar, NLDDStepBar, NLDDStepBarItem, NLDDStepCell, NLDDStepper, NLDDSwatchPicker, NLDDSwatchPickerItem, NLDDSwitch, NLDDSwitchField, NLDDTabBar, NLDDTable, NLDDTableRow, NLDDTag, NLDDText, NLDDTextCell, NLDDTextEditor, NLDDTextField, NLDDTimeField, NLDDTimePicker, NLDDTitle, NLDDTitleCell, NLDDToggleButton, NLDDToggleButtonGroup, NLDDToken, NLDDTokenField, NLDDToolbar, NLDDTooltip, NLDDTopNavigationBar, NLDDTopTitleBar, NLDDTwoThirdsOneThirdSection, NLDDValidationList, NLDDVisuallyHidden, NLDDWindow, setTranslations };