@nldd/design-system 0.16.0 → 0.16.2

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 (99) hide show
  1. package/README.md +5 -1
  2. package/custom-elements.json +23 -1
  3. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.styles.js +1 -0
  5. package/dist/components/actions/button/button.styles.js.map +1 -1
  6. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  7. package/dist/components/actions/menu/menu.styles.js +1 -0
  8. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  9. package/dist/components/components.js +82 -21
  10. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  11. package/dist/components/content/code-viewer/code-viewer.styles.js +5 -2
  12. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  13. package/dist/components/content/code-viewer/code-viewer.template.js +1 -1
  14. package/dist/components/content/tooltip/tooltip.d.ts +5 -0
  15. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  16. package/dist/components/content/tooltip/tooltip.js +5 -0
  17. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  18. package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
  19. package/dist/components/content/tooltip/tooltip.styles.js +5 -0
  20. package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
  21. package/dist/components/{decorate-pEFCObfp.js → decorate-CtaxGuuh.js} +1 -1
  22. package/dist/components/{defer-focus-CkNrCf_g.js → defer-focus-CC5RVvh6.js} +2 -2
  23. package/dist/components/{dev-checks--aiYe9Pe.js → dev-checks-a7fZ6hgC.js} +5 -0
  24. package/dist/components/forms/validation-list/validation-list.styles.d.ts.map +1 -1
  25. package/dist/components/forms/validation-list/validation-list.styles.js +1 -0
  26. package/dist/components/forms/validation-list/validation-list.styles.js.map +1 -1
  27. package/dist/components/{icon-BQjRjtKH.js → icon-Bkdlj87q.js} +1 -1
  28. package/dist/components/{icon-button-BivCiIpt.js → icon-button-DJPpMxWn.js} +14 -3
  29. package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
  30. package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +1 -0
  31. package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
  32. package/dist/components/inputs/date-field/date-field.dates.d.ts +5 -1
  33. package/dist/components/inputs/date-field/date-field.dates.d.ts.map +1 -1
  34. package/dist/components/inputs/date-field/date-field.dates.js +6 -2
  35. package/dist/components/inputs/date-field/date-field.dates.js.map +1 -1
  36. package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
  37. package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +1 -0
  38. package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
  39. package/dist/components/inputs/swatch-picker/swatch-picker.d.ts.map +1 -1
  40. package/dist/components/inputs/swatch-picker/swatch-picker.js +6 -0
  41. package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -1
  42. package/dist/components/inputs/swatch-picker/swatch-picker.styles.d.ts.map +1 -1
  43. package/dist/components/inputs/swatch-picker/swatch-picker.styles.js +3 -0
  44. package/dist/components/inputs/swatch-picker/swatch-picker.styles.js.map +1 -1
  45. package/dist/components/inputs/switch-field/switch-field.styles.d.ts.map +1 -1
  46. package/dist/components/inputs/switch-field/switch-field.styles.js +1 -0
  47. package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
  48. package/dist/components/layout/box/box.styles.d.ts.map +1 -1
  49. package/dist/components/layout/box/box.styles.js +1 -0
  50. package/dist/components/layout/box/box.styles.js.map +1 -1
  51. package/dist/components/layout/card/card.styles.d.ts.map +1 -1
  52. package/dist/components/layout/card/card.styles.js +3 -0
  53. package/dist/components/layout/card/card.styles.js.map +1 -1
  54. package/dist/components/layout/container/container.d.ts +3 -0
  55. package/dist/components/layout/container/container.d.ts.map +1 -1
  56. package/dist/components/layout/container/container.js +8 -3
  57. package/dist/components/layout/container/container.js.map +1 -1
  58. package/dist/components/layout/container/container.styles.d.ts.map +1 -1
  59. package/dist/components/layout/container/container.styles.js +13 -0
  60. package/dist/components/layout/container/container.styles.js.map +1 -1
  61. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  62. package/dist/components/layout/popover/popover.styles.js +3 -1
  63. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  64. package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
  65. package/dist/components/layout/sheet/sheet.styles.js +3 -1
  66. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  67. package/dist/components/layout/task-board/task-board.styles.d.ts.map +1 -1
  68. package/dist/components/layout/task-board/task-board.styles.js +1 -0
  69. package/dist/components/layout/task-board/task-board.styles.js.map +1 -1
  70. package/dist/components/layout/window/window.styles.d.ts.map +1 -1
  71. package/dist/components/layout/window/window.styles.js +3 -1
  72. package/dist/components/layout/window/window.styles.js.map +1 -1
  73. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.d.ts.map +1 -1
  74. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +2 -0
  75. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js.map +1 -1
  76. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
  77. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +1 -0
  78. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
  79. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
  80. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +3 -1
  81. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
  82. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
  83. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +1 -0
  84. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
  85. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
  86. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +1 -0
  87. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
  88. package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -1
  89. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +5 -0
  90. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
  91. package/dist/components/{visibility-mixin-Ce0goNS6.js → visibility-mixin-CwMutpAK.js} +1 -1
  92. package/dist/css/form-section.css +2 -0
  93. package/dist/nldd.min.js +63 -10
  94. package/dist/types/vue.d.ts +4 -0
  95. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  96. package/dist/utilities/dev-rules.generated.js +5 -0
  97. package/dist/utilities/dev-rules.generated.js.map +1 -1
  98. package/lint/data.generated.json +1 -1
  99. package/package.json +6 -1
package/dist/nldd.min.js CHANGED
@@ -520,6 +520,7 @@ var NLDD=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`
520
520
  min-width: 0;
521
521
  color: var(--_button-secondary-content-color);
522
522
  font: var(--_button-supporting-font);
523
+ text-wrap: pretty;
523
524
  }
524
525
 
525
526
  .button:hover .button__supporting-text {
@@ -2185,6 +2186,7 @@ var NLDD=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`
2185
2186
  color: currentColor;
2186
2187
  font: var(--_activity-indicator-text-font);
2187
2188
  text-align: center;
2189
+ text-wrap: balance;
2188
2190
  }
2189
2191
 
2190
2192
  /* show-text off (default): the label still renders as the announced
@@ -2715,7 +2717,11 @@ var NLDD=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`
2715
2717
 
2716
2718
  /* # Block */
2717
2719
 
2720
+ /* A parent whose triggers sit close together sets
2721
+ --context-tooltip-pointer-events to none, so a click on the tooltip
2722
+ reaches the control underneath. Unset, the tooltip inherits as before. */
2718
2723
  .tooltip {
2724
+ pointer-events: var(--context-tooltip-pointer-events);
2719
2725
  position: fixed;
2720
2726
  opacity: 0;
2721
2727
  margin: 0;
@@ -2783,6 +2789,7 @@ var NLDD=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`
2783
2789
 
2784
2790
  .tooltip__text {
2785
2791
  min-width: 0;
2792
+ text-wrap: pretty;
2786
2793
  }
2787
2794
 
2788
2795
  .tooltip__shortcut {
@@ -3455,6 +3462,7 @@ var NLDD=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`
3455
3462
  padding-left: var(--primitives-space-4);
3456
3463
  font: var(--primitives-font-body-sm-regular-tight);
3457
3464
  color: var(--semantics-content-secondary-color);
3465
+ text-wrap: balance;
3458
3466
  }
3459
3467
 
3460
3468
 
@@ -5490,14 +5498,16 @@ var NLDD=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`
5490
5498
  /* # Host */
5491
5499
 
5492
5500
  :host {
5501
+ --_popover-background-color: var(--semantics-surfaces-base-background-color);
5493
5502
  --_popover-max-height: calc(100vh - var(--semantics-overlays-inset) * 2);
5494
5503
  --_popover-default-width: var(--primitives-area-320);
5504
+ --context-parent-background-color: var(--_popover-background-color);
5495
5505
 
5496
5506
  margin: 0;
5497
5507
  outline: none;
5498
5508
  border: none;
5499
5509
  box-shadow: var(--semantics-overlays-box-shadow);
5500
- background-color: var(--semantics-surfaces-base-background-color);
5510
+ background-color: var(--_popover-background-color);
5501
5511
  overflow: auto;
5502
5512
  padding: 0;
5503
5513
  isolation: isolate;
@@ -5667,6 +5677,19 @@ var NLDD=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`
5667
5677
  display: none;
5668
5678
  }
5669
5679
 
5680
+ /* Same query as shortcutsAvailable() in utilities/shortcut.ts. */
5681
+ @media (any-hover: none) {
5682
+ :host([hide-on="touch"]) {
5683
+ display: none;
5684
+ }
5685
+ }
5686
+
5687
+ @media (any-hover: hover) {
5688
+ :host([hide-on="pointer"]) {
5689
+ display: none;
5690
+ }
5691
+ }
5692
+
5670
5693
 
5671
5694
  /* # Outer chrome — padding + query container. Size queries measure the
5672
5695
  content box, so .container reports the same padded interior width the
@@ -5909,7 +5932,7 @@ var NLDD=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`
5909
5932
  <slot @slotchange=${e._onSlotChange}></slot>
5910
5933
  </div>
5911
5934
  </div>
5912
- `}var Pc=[`0`,`2`,`4`,`6`,`8`,`10`,`12`,`16`,`20`,`24`,`28`,`32`,`40`,`44`,`48`,`56`,`64`,`80`,`96`];function Fc(e){if(e===void 0||e===``)return null;let t=String(e).trim();return Pc.includes(t)?t===`0`?`0`:`var(--primitives-space-${t})`:null}w(),O(),k(),N(),F();var Ic,Lc={left:`flex-start`,center:`center`,right:`flex-end`},Rc={top:`flex-start`,center:`center`,bottom:`flex-end`},zc=[`order`,`sm-order`,`md-order`,`lg-order`],V=(Ic=class extends C{constructor(...e){super(...e),this.width=``,this.minWidth=``,this.maxWidth=``,this.minHeight=``,this.gap=void 0,this.smGap=void 0,this.mdGap=void 0,this.lgGap=void 0,this.padding=void 0,this.paddingInline=void 0,this.paddingBlock=void 0,this.paddingTop=void 0,this.paddingRight=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.smPadding=void 0,this.smPaddingInline=void 0,this.smPaddingBlock=void 0,this.smPaddingTop=void 0,this.smPaddingRight=void 0,this.smPaddingBottom=void 0,this.smPaddingLeft=void 0,this.mdPadding=void 0,this.mdPaddingInline=void 0,this.mdPaddingBlock=void 0,this.mdPaddingTop=void 0,this.mdPaddingRight=void 0,this.mdPaddingBottom=void 0,this.mdPaddingLeft=void 0,this.lgPadding=void 0,this.lgPaddingInline=void 0,this.lgPaddingBlock=void 0,this.lgPaddingTop=void 0,this.lgPaddingRight=void 0,this.lgPaddingBottom=void 0,this.lgPaddingLeft=void 0,this.horizontalAlignment=void 0,this.verticalAlignment=void 0,this._onSlotChange=e=>{let t=e.target;this._childObserver?.disconnect(),this._childObserver=new MutationObserver(e=>{for(let t of e)t.target instanceof HTMLElement&&this._applyOrderProps(t.target)});for(let e of t.assignedElements())e instanceof HTMLElement&&(this._applyOrderProps(e),this._childObserver.observe(e,{attributes:!0,attributeFilter:[...zc]}))}}updated(e){this.writeCustomProperties(),this.writeDimensionProperties()}writeDimensionProperties(){let e=this.width,t=e===`full`||e===`fit-content`,n=!!e&&!t&&CSS.supports(`width`,e);n?this.style.setProperty(`--_container-width`,e):this.style.removeProperty(`--_container-width`),e&&!t&&!n&&(this.width=``),this.minWidth?this.style.setProperty(`--_container-min-width`,this.minWidth):this.style.removeProperty(`--_container-min-width`),this.maxWidth?this.style.setProperty(`--_container-max-width`,this.maxWidth):this.style.removeProperty(`--_container-max-width`),this.minHeight?this.style.setProperty(`--_container-min-height`,this.minHeight):this.style.removeProperty(`--_container-min-height`)}writeCustomProperties(){let e=(e,t)=>{t===null?this.style.removeProperty(e):this.style.setProperty(e,t)},t=this.horizontalAlignment?Lc[this.horizontalAlignment]:null,n=this.verticalAlignment?Rc[this.verticalAlignment]:null,r=this.layout===`row`||this.layout===`wrap`,i=this.layout===`grid`;this.layout===`columns`||this.layout===`lanes`?(e(`--_container-justify-content`,null),e(`--_container-justify-items`,null),e(`--_container-align-items`,null)):i?(e(`--_container-justify-items`,t),e(`--_container-justify-content`,t),e(`--_container-align-items`,n)):r?(e(`--_container-justify-content`,t),e(`--_container-align-items`,n),e(`--_container-justify-items`,null)):(e(`--_container-justify-content`,n),e(`--_container-align-items`,t),e(`--_container-justify-items`,null));let a=Fc(this.gap);e(`--_container-sm-gap`,Fc(this.smGap)??a),e(`--_container-md-gap`,Fc(this.mdGap)??a),e(`--_container-lg-gap`,Fc(this.lgGap)??a);for(let t of[``,`sm`,`md`,`lg`]){let[n,r,i,a]=this.resolvePadding(t),o=t?`${t}-`:``;e(`--_container-${o}padding-top`,Fc(n)),e(`--_container-${o}padding-right`,Fc(r)),e(`--_container-${o}padding-bottom`,Fc(i)),e(`--_container-${o}padding-left`,Fc(a))}}resolvePadding(e){let t=t=>{let n=e?`${e}${t}`:t.charAt(0).toLowerCase()+t.slice(1);return this[n]},n=t(`Padding`),r=t(`PaddingInline`),i=t(`PaddingBlock`);return[t(`PaddingTop`)??i??n,t(`PaddingRight`)??r??n,t(`PaddingBottom`)??i??n,t(`PaddingLeft`)??r??n]}disconnectedCallback(){super.disconnectedCallback(),this._childObserver?.disconnect(),this._childObserver=void 0}_applyOrderProps(e){for(let t of zc){let n=e.getAttribute(t),r=`--_container-slot-${t}`;n===null?e.style.removeProperty(r):e.style.setProperty(r,n)}}render(){return Nc(this)}},Ic.styles=Mc,Ic);P([E({type:String,reflect:!0})],V.prototype,`layout`,void 0),P([E({type:Number,reflect:!0,attribute:`column-count`})],V.prototype,`columnCount`,void 0),P([E({type:Number,reflect:!0,attribute:`sm-column-count`})],V.prototype,`smColumnCount`,void 0),P([E({type:Number,reflect:!0,attribute:`md-column-count`})],V.prototype,`mdColumnCount`,void 0),P([E({type:Number,reflect:!0,attribute:`lg-column-count`})],V.prototype,`lgColumnCount`,void 0),P([E({reflect:!0,converter:M(``)})],V.prototype,`width`,void 0),P([E({type:String,reflect:!0,attribute:`min-width`})],V.prototype,`minWidth`,void 0),P([E({type:String,reflect:!0,attribute:`max-width`})],V.prototype,`maxWidth`,void 0),P([E({type:String,reflect:!0,attribute:`min-height`})],V.prototype,`minHeight`,void 0),P([E({type:String,reflect:!0})],V.prototype,`gap`,void 0),P([E({type:String,reflect:!0,attribute:`sm-gap`})],V.prototype,`smGap`,void 0),P([E({type:String,reflect:!0,attribute:`md-gap`})],V.prototype,`mdGap`,void 0),P([E({type:String,reflect:!0,attribute:`lg-gap`})],V.prototype,`lgGap`,void 0),P([E({type:String,reflect:!0})],V.prototype,`padding`,void 0),P([E({type:String,reflect:!0,attribute:`padding-inline`})],V.prototype,`paddingInline`,void 0),P([E({type:String,reflect:!0,attribute:`padding-block`})],V.prototype,`paddingBlock`,void 0),P([E({type:String,reflect:!0,attribute:`padding-top`})],V.prototype,`paddingTop`,void 0),P([E({type:String,reflect:!0,attribute:`padding-right`})],V.prototype,`paddingRight`,void 0),P([E({type:String,reflect:!0,attribute:`padding-bottom`})],V.prototype,`paddingBottom`,void 0),P([E({type:String,reflect:!0,attribute:`padding-left`})],V.prototype,`paddingLeft`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding`})],V.prototype,`smPadding`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding-inline`})],V.prototype,`smPaddingInline`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding-block`})],V.prototype,`smPaddingBlock`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding-top`})],V.prototype,`smPaddingTop`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding-right`})],V.prototype,`smPaddingRight`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding-bottom`})],V.prototype,`smPaddingBottom`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding-left`})],V.prototype,`smPaddingLeft`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding`})],V.prototype,`mdPadding`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding-inline`})],V.prototype,`mdPaddingInline`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding-block`})],V.prototype,`mdPaddingBlock`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding-top`})],V.prototype,`mdPaddingTop`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding-right`})],V.prototype,`mdPaddingRight`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding-bottom`})],V.prototype,`mdPaddingBottom`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding-left`})],V.prototype,`mdPaddingLeft`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding`})],V.prototype,`lgPadding`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding-inline`})],V.prototype,`lgPaddingInline`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding-block`})],V.prototype,`lgPaddingBlock`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding-top`})],V.prototype,`lgPaddingTop`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding-right`})],V.prototype,`lgPaddingRight`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding-bottom`})],V.prototype,`lgPaddingBottom`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding-left`})],V.prototype,`lgPaddingLeft`,void 0),P([E({type:String,reflect:!0,attribute:`horizontal-alignment`})],V.prototype,`horizontalAlignment`,void 0),P([E({type:String,reflect:!0,attribute:`vertical-alignment`})],V.prototype,`verticalAlignment`,void 0),V=P([T(`nldd-container`)],V);function Bc(e){let t=e.closest?.(Uc);return t&&`registerScrollConsumer`in t?t:null}function Vc(e,t){let n=e.closest?.(Uc);!n||`registerScrollConsumer`in n||customElements.whenDefined(n.localName).then(()=>{if(!e.isConnected)return;let r=Bc(e);r&&r===n&&t(r)})}var Hc,Uc,Wc,Gc=n((()=>{Hc=`nldd-single-column-change`,Uc=`nldd-shell, nldd-sheet, nldd-modal-dialog`,Wc=class{constructor(e,t){this.mode=`nested`,this._raf=0,this._provider=null,this._adopt=e=>{this._provider||(window.removeEventListener(`resize`,this._onResize),this._provider=e,e.registerScrollConsumer(this))},this._onResize=()=>{this._raf||(this._raf=requestAnimationFrame(()=>{this._raf=0,this.read()}))},this._host=e,this._onChange=t,e.addController(this)}hostConnected(){this._provider=Bc(this._host),this._provider?this._provider.registerScrollConsumer(this):(window.addEventListener(`resize`,this._onResize,{passive:!0}),this.read(),Vc(this._host,this._adopt))}hostDisconnected(){this._provider?(this._provider.unregisterScrollConsumer(this),this._provider=null):window.removeEventListener(`resize`,this._onResize),this._raf&&cancelAnimationFrame(this._raf)}readScrollMode(e){let t=e??this._readVar();t!==this.mode&&(this.mode=t,this._host.dataset.scroll=t,this._onChange?.(t))}_readVar(){return getComputedStyle(this._host).getPropertyValue(`--context-scroll-mode`).trim()===`root`?`root`:`nested`}read(){this.readScrollMode()}}})),Kc,qc=n((()=>{w(),Kc=u`
5935
+ `}var Pc=[`0`,`2`,`4`,`6`,`8`,`10`,`12`,`16`,`20`,`24`,`28`,`32`,`40`,`44`,`48`,`56`,`64`,`80`,`96`];function Fc(e){if(e===void 0||e===``)return null;let t=String(e).trim();return Pc.includes(t)?t===`0`?`0`:`var(--primitives-space-${t})`:null}w(),O(),k(),N(),F();var Ic,Lc={left:`flex-start`,center:`center`,right:`flex-end`},Rc={top:`flex-start`,center:`center`,bottom:`flex-end`},zc=[`order`,`sm-order`,`md-order`,`lg-order`],V=(Ic=class extends C{constructor(...e){super(...e),this.width=``,this.minWidth=``,this.maxWidth=``,this.minHeight=``,this.hideOn=``,this.gap=void 0,this.smGap=void 0,this.mdGap=void 0,this.lgGap=void 0,this.padding=void 0,this.paddingInline=void 0,this.paddingBlock=void 0,this.paddingTop=void 0,this.paddingRight=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.smPadding=void 0,this.smPaddingInline=void 0,this.smPaddingBlock=void 0,this.smPaddingTop=void 0,this.smPaddingRight=void 0,this.smPaddingBottom=void 0,this.smPaddingLeft=void 0,this.mdPadding=void 0,this.mdPaddingInline=void 0,this.mdPaddingBlock=void 0,this.mdPaddingTop=void 0,this.mdPaddingRight=void 0,this.mdPaddingBottom=void 0,this.mdPaddingLeft=void 0,this.lgPadding=void 0,this.lgPaddingInline=void 0,this.lgPaddingBlock=void 0,this.lgPaddingTop=void 0,this.lgPaddingRight=void 0,this.lgPaddingBottom=void 0,this.lgPaddingLeft=void 0,this.horizontalAlignment=void 0,this.verticalAlignment=void 0,this._onSlotChange=e=>{let t=e.target;this._childObserver?.disconnect(),this._childObserver=new MutationObserver(e=>{for(let t of e)t.target instanceof HTMLElement&&this._applyOrderProps(t.target)});for(let e of t.assignedElements())e instanceof HTMLElement&&(this._applyOrderProps(e),this._childObserver.observe(e,{attributes:!0,attributeFilter:[...zc]}))}}updated(e){this.writeCustomProperties(),this.writeDimensionProperties()}writeDimensionProperties(){let e=this.width,t=e===`full`||e===`fit-content`,n=!!e&&!t&&CSS.supports(`width`,e);n?this.style.setProperty(`--_container-width`,e):this.style.removeProperty(`--_container-width`),e&&!t&&!n&&(this.width=``),this.minWidth?this.style.setProperty(`--_container-min-width`,this.minWidth):this.style.removeProperty(`--_container-min-width`),this.maxWidth?this.style.setProperty(`--_container-max-width`,this.maxWidth):this.style.removeProperty(`--_container-max-width`),this.minHeight?this.style.setProperty(`--_container-min-height`,this.minHeight):this.style.removeProperty(`--_container-min-height`)}writeCustomProperties(){let e=(e,t)=>{t===null?this.style.removeProperty(e):this.style.setProperty(e,t)},t=this.horizontalAlignment?Lc[this.horizontalAlignment]:null,n=this.verticalAlignment?Rc[this.verticalAlignment]:null,r=this.layout===`row`||this.layout===`wrap`,i=this.layout===`grid`;this.layout===`columns`||this.layout===`lanes`?(e(`--_container-justify-content`,null),e(`--_container-justify-items`,null),e(`--_container-align-items`,null)):i?(e(`--_container-justify-items`,t),e(`--_container-justify-content`,t),e(`--_container-align-items`,n)):r?(e(`--_container-justify-content`,t),e(`--_container-align-items`,n),e(`--_container-justify-items`,null)):(e(`--_container-justify-content`,n),e(`--_container-align-items`,t),e(`--_container-justify-items`,null));let a=Fc(this.gap);e(`--_container-sm-gap`,Fc(this.smGap)??a),e(`--_container-md-gap`,Fc(this.mdGap)??a),e(`--_container-lg-gap`,Fc(this.lgGap)??a);for(let t of[``,`sm`,`md`,`lg`]){let[n,r,i,a]=this.resolvePadding(t),o=t?`${t}-`:``;e(`--_container-${o}padding-top`,Fc(n)),e(`--_container-${o}padding-right`,Fc(r)),e(`--_container-${o}padding-bottom`,Fc(i)),e(`--_container-${o}padding-left`,Fc(a))}}resolvePadding(e){let t=t=>{let n=e?`${e}${t}`:t.charAt(0).toLowerCase()+t.slice(1);return this[n]},n=t(`Padding`),r=t(`PaddingInline`),i=t(`PaddingBlock`);return[t(`PaddingTop`)??i??n,t(`PaddingRight`)??r??n,t(`PaddingBottom`)??i??n,t(`PaddingLeft`)??r??n]}disconnectedCallback(){super.disconnectedCallback(),this._childObserver?.disconnect(),this._childObserver=void 0}_applyOrderProps(e){for(let t of zc){let n=e.getAttribute(t),r=`--_container-slot-${t}`;n===null?e.style.removeProperty(r):e.style.setProperty(r,n)}}render(){return Nc(this)}},Ic.styles=Mc,Ic);P([E({type:String,reflect:!0})],V.prototype,`layout`,void 0),P([E({type:Number,reflect:!0,attribute:`column-count`})],V.prototype,`columnCount`,void 0),P([E({type:Number,reflect:!0,attribute:`sm-column-count`})],V.prototype,`smColumnCount`,void 0),P([E({type:Number,reflect:!0,attribute:`md-column-count`})],V.prototype,`mdColumnCount`,void 0),P([E({type:Number,reflect:!0,attribute:`lg-column-count`})],V.prototype,`lgColumnCount`,void 0),P([E({reflect:!0,converter:M(``)})],V.prototype,`width`,void 0),P([E({reflect:!0,attribute:`min-width`,converter:M(``)})],V.prototype,`minWidth`,void 0),P([E({reflect:!0,attribute:`max-width`,converter:M(``)})],V.prototype,`maxWidth`,void 0),P([E({reflect:!0,attribute:`min-height`,converter:M(``)})],V.prototype,`minHeight`,void 0),P([E({reflect:!0,attribute:`hide-on`,converter:M(``)})],V.prototype,`hideOn`,void 0),P([E({type:String,reflect:!0})],V.prototype,`gap`,void 0),P([E({type:String,reflect:!0,attribute:`sm-gap`})],V.prototype,`smGap`,void 0),P([E({type:String,reflect:!0,attribute:`md-gap`})],V.prototype,`mdGap`,void 0),P([E({type:String,reflect:!0,attribute:`lg-gap`})],V.prototype,`lgGap`,void 0),P([E({type:String,reflect:!0})],V.prototype,`padding`,void 0),P([E({type:String,reflect:!0,attribute:`padding-inline`})],V.prototype,`paddingInline`,void 0),P([E({type:String,reflect:!0,attribute:`padding-block`})],V.prototype,`paddingBlock`,void 0),P([E({type:String,reflect:!0,attribute:`padding-top`})],V.prototype,`paddingTop`,void 0),P([E({type:String,reflect:!0,attribute:`padding-right`})],V.prototype,`paddingRight`,void 0),P([E({type:String,reflect:!0,attribute:`padding-bottom`})],V.prototype,`paddingBottom`,void 0),P([E({type:String,reflect:!0,attribute:`padding-left`})],V.prototype,`paddingLeft`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding`})],V.prototype,`smPadding`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding-inline`})],V.prototype,`smPaddingInline`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding-block`})],V.prototype,`smPaddingBlock`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding-top`})],V.prototype,`smPaddingTop`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding-right`})],V.prototype,`smPaddingRight`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding-bottom`})],V.prototype,`smPaddingBottom`,void 0),P([E({type:String,reflect:!0,attribute:`sm-padding-left`})],V.prototype,`smPaddingLeft`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding`})],V.prototype,`mdPadding`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding-inline`})],V.prototype,`mdPaddingInline`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding-block`})],V.prototype,`mdPaddingBlock`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding-top`})],V.prototype,`mdPaddingTop`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding-right`})],V.prototype,`mdPaddingRight`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding-bottom`})],V.prototype,`mdPaddingBottom`,void 0),P([E({type:String,reflect:!0,attribute:`md-padding-left`})],V.prototype,`mdPaddingLeft`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding`})],V.prototype,`lgPadding`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding-inline`})],V.prototype,`lgPaddingInline`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding-block`})],V.prototype,`lgPaddingBlock`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding-top`})],V.prototype,`lgPaddingTop`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding-right`})],V.prototype,`lgPaddingRight`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding-bottom`})],V.prototype,`lgPaddingBottom`,void 0),P([E({type:String,reflect:!0,attribute:`lg-padding-left`})],V.prototype,`lgPaddingLeft`,void 0),P([E({type:String,reflect:!0,attribute:`horizontal-alignment`})],V.prototype,`horizontalAlignment`,void 0),P([E({type:String,reflect:!0,attribute:`vertical-alignment`})],V.prototype,`verticalAlignment`,void 0),V=P([T(`nldd-container`)],V);function Bc(e){let t=e.closest?.(Uc);return t&&`registerScrollConsumer`in t?t:null}function Vc(e,t){let n=e.closest?.(Uc);!n||`registerScrollConsumer`in n||customElements.whenDefined(n.localName).then(()=>{if(!e.isConnected)return;let r=Bc(e);r&&r===n&&t(r)})}var Hc,Uc,Wc,Gc=n((()=>{Hc=`nldd-single-column-change`,Uc=`nldd-shell, nldd-sheet, nldd-modal-dialog`,Wc=class{constructor(e,t){this.mode=`nested`,this._raf=0,this._provider=null,this._adopt=e=>{this._provider||(window.removeEventListener(`resize`,this._onResize),this._provider=e,e.registerScrollConsumer(this))},this._onResize=()=>{this._raf||(this._raf=requestAnimationFrame(()=>{this._raf=0,this.read()}))},this._host=e,this._onChange=t,e.addController(this)}hostConnected(){this._provider=Bc(this._host),this._provider?this._provider.registerScrollConsumer(this):(window.addEventListener(`resize`,this._onResize,{passive:!0}),this.read(),Vc(this._host,this._adopt))}hostDisconnected(){this._provider?(this._provider.unregisterScrollConsumer(this),this._provider=null):window.removeEventListener(`resize`,this._onResize),this._raf&&cancelAnimationFrame(this._raf)}readScrollMode(e){let t=e??this._readVar();t!==this.mode&&(this.mode=t,this._host.dataset.scroll=t,this._onChange?.(t))}_readVar(){return getComputedStyle(this._host).getPropertyValue(`--context-scroll-mode`).trim()===`root`?`root`:`nested`}read(){this.readScrollMode()}}})),Kc,qc=n((()=>{w(),Kc=u`
5913
5936
  :host {
5914
5937
  box-sizing: border-box;
5915
5938
  }
@@ -7516,9 +7539,12 @@ else:
7516
7539
  --_code-viewer-inline-padding: var(--primitives-space-16);
7517
7540
  --_code-viewer-content-color: var(--semantics-content-color);
7518
7541
  --_code-viewer-font: var(--primitives-font-monospace-sm-regular-snug);
7519
- --_code-viewer-actions-area-padding: var(--primitives-space-8);
7542
+ --_code-viewer-actions-button-size: var(--semantics-controls-sm-min-size);
7543
+ /* Centers the copy button on the first line: one line of code is then
7544
+ as high as the box needs anyway, with the button in the middle. */
7545
+ --_code-viewer-actions-area-padding: calc((var(--_code-viewer-block-padding) * 2 + 1lh - var(--_code-viewer-actions-button-size)) / 2);
7520
7546
  --_code-viewer-actions-gap: var(--primitives-space-8);
7521
- --_code-viewer-actions-area-size: calc(var(--semantics-controls-md-min-size) + var(--_code-viewer-actions-area-padding) * 2);
7547
+ --_code-viewer-actions-area-size: calc(var(--_code-viewer-actions-button-size) + var(--_code-viewer-actions-area-padding) * 2);
7522
7548
  --_code-viewer-actions-z-index: 1;
7523
7549
  --_code-viewer-highlight-border-z-index: 1;
7524
7550
  --_code-viewer-max-height: none;
@@ -7838,7 +7864,7 @@ else:
7838
7864
  icon=${t===`success`?`check-mark`:`copy`}
7839
7865
  accessible-label=${r}
7840
7866
  tooltip-timing="never"
7841
- size="md"
7867
+ size="sm"
7842
7868
  @click=${e._onCopyClick}
7843
7869
  @focusout=${e._onCopyBlur}
7844
7870
  ></nldd-icon-button>
@@ -9763,6 +9789,7 @@ else:
9763
9789
  display: none;
9764
9790
  color: var(--_validation-item-content-color);
9765
9791
  font: var(--_validation-item-font);
9792
+ text-wrap: pretty;
9766
9793
  }
9767
9794
 
9768
9795
  :host([visible]) {
@@ -10042,6 +10069,7 @@ else:
10042
10069
  flex-grow: 1;
10043
10070
  color: var(--semantics-content-color);
10044
10071
  font: var(--primitives-font-body-md-regular-snug);
10072
+ text-wrap: pretty;
10045
10073
  }
10046
10074
 
10047
10075
  :host([disabled]) .checkbox-field__label {
@@ -11430,7 +11458,7 @@ else:
11430
11458
  ${AW(e)}
11431
11459
  ${jW(e)}
11432
11460
  </div>
11433
- `}var FW={"components.date-field.to-pick-date-action":`Datum kiezen`,"components.date-field.default-label":`Datum`,"components.date-field.default-range-label":`Periode`,"components.date-field.cancel-action":`Annuleer`,"components.date-field.range-from-lowercase-label":`van`,"components.date-field.range-to-lowercase-label":`tot en met`,"components.date-field.range-to-short-lowercase-label":`t/m`,"components.date-field.bad-input-error-text":`Een datum als dd-mm-jjjj`,"components.date-field.range-underflow-error-text":`Een datum vanaf {date}`,"components.date-field.range-overflow-error-text":`Een datum tot en met {date}`,"components.date-field.range-incomplete-error-text":`De einddatum ontbreekt`};function IW(e){let t=e.trim();if(t===``)return null;let n=/^(\d{4})[-/.](\d{1,2})[-/.](\d{1,2})$/.exec(t);if(n)return QU(Number(n[1]),Number(n[2]),Number(n[3]));let r=/^(\d{1,2})[-/.](\d{1,2})[-/.](\d{4})$/.exec(t);if(r)return QU(Number(r[3]),Number(r[2]),Number(r[1]));let i=/^(\d{2})(\d{2})(\d{4})$/.exec(t);return i?QU(Number(i[3]),Number(i[2]),Number(i[1])):null}function LW(e){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);return t?`${t[3]}-${t[2]}-${t[1]}`:``}function RW(e,t){let n=e?e.split(`/`):[];return Array.from({length:t},(e,t)=>n[t]??``)}function zW(e){return e.every(e=>e===``)?``:e.join(`/`)}function BW(e,t){return{min:e?nW(e):``,max:t?nW(t):``}}function VW(e,t){let n=IW(e);return!n||t.min&&n<t.min||t.max&&n>t.max?``:n}function HW(e){let[t,n]=e;return e.length!==2||!t||!n||t<=n?null:[n,t]}function UW(e,t,n){for(let n of e){if(!n.trim())continue;let e=IW(n);if(!e)return{flag:`badInput`};if(t.min&&e<t.min)return{flag:`rangeUnderflow`,bound:t.min};if(t.max&&e>t.max)return{flag:`rangeOverflow`,bound:t.max}}let[r,...i]=e;return n&&r?.trim()&&i.some(e=>!e.trim())?{flag:`valueMissing`}:null}w(),O(),k(),N(),Ma(),R(),Qn(),L(),F();var WW=class extends Zn(XB(C)){constructor(...e){super(...e),this._initialValue=``,this.size=`md`,this.value=``,this.range=!1,this.min=``,this.max=``,this.noPicker=!1,this.inputId=``,this.placeholder=``,this.invalid=!1,this.valid=!1,this.disabled=!1,this.readonly=!1,this.required=!1,this.name=``,this.autocomplete=``,this.accessibleLabel=``,this.width=``,this.translations={},this._texts=[``],this._hasSlottedPicker=!1,this._pickerOpen=!1,this._focusOnClose=null,this._pickerPopoverWidth=kW}get _endCount(){return this.range?2:1}get _ends(){return RW(this.value,this._endCount)}get _startValue(){return this._ends[0]??``}get _endValue(){return this.range?this._ends[1]??``:``}_setEnd(e,t){let n=this._ends;n[e]=t,this.value=zW(n)}_sortRange(){let e=HW(this._ends);return e?(this.value=zW(e),!0):!1}_handleFieldBlur(e){let t=e.relatedTarget;t&&this.shadowRoot?.contains(t)||this._sortRange()&&this._emit(`change`)}_commit(e){return VW(e,BW(this.min,this.max))}get _slottedPicker(){return(this.shadowRoot?.querySelector(`slot[name="picker"]`))?.assignedElements({flatten:!0}).find(e=>e.localName===`nldd-date-picker`)??null}_handlePickerSlotChange(){this._hasSlottedPicker=this._slottedPicker!==null}_syncSlottedPicker(){let e=this._slottedPicker;e&&(e.range=this.range,e.min=this.min,e.max=this.max,this.range?(e.start=this._startValue,e.end=this._endValue):e.value=this.value,e.toggleAttribute(`autofocus`,!0))}firstUpdated(){this._initialValue=this.value,this._handlePickerSlotChange()}willUpdate(e){if(!e.has(`value`)&&!e.has(`range`))return;e.has(`range`)&&(this.value=zW(this._ends));let t=this._ends;this._texts=t.map((e,t)=>{let n=this._texts[t]??``;return this._commit(n)===e?n:LW(e)})}updated(e){if(e.has(`width`)){let e=this.width;e===`full`?this.style.setProperty(`--_date-field-width`,`100%`):e===`fit-content`?this.style.removeProperty(`--_date-field-width`):e&&CSS.supports(`width`,e)?this.style.setProperty(`--_date-field-width`,e):this.style.removeProperty(`--_date-field-width`)}let t=this._popover,n=this._pickerTrigger;t&&n&&t.anchorElement!==n&&(t.anchorElement=n),this._syncSlottedPicker()}formResetCallback(){this._texts=RW(this._initialValue,this._endCount).map(LW),this.value=this._initialValue}formStateRestoreCallback(e){typeof e==`string`&&(this.value=e)}_t(e){return I(this.translations,FW,e)}get _fieldLabel(){return this.accessibleLabel||this._t(this.range?`components.date-field.default-range-label`:`components.date-field.default-label`)}get _pickerTrigger(){return this.shadowRoot?.querySelector(`.date-field__picker-button nldd-icon-button`)??null}get _popover(){return this.shadowRoot?.querySelector(`nldd-popover`)??null}get _pickerLabel(){return this.accessibleLabel||this._t(`components.date-field.to-pick-date-action`)}_handlePickerClick(){this._pickerOpen?this._popover?.hide():this._popover?.show()}_applyCloseFocus(){let e=this._focusOnClose;if(this._focusOnClose=null,e===`trigger`)this._pickerTrigger?.focus();else if(e===`last-input`){let e=this._inputs;this._focusAtEnd(e[e.length-1])}}_handlePickerDismiss(e){e.stopPropagation(),this._focusOnClose=`trigger`,this._popover?.hide()}_handlePopoverToggle(e){this._pickerOpen=e.newState===`open`,this._pickerOpen?(this._sortRange()&&this._emit(`change`),this._fitPopoverToSlottedPicker()):queueMicrotask(()=>this._applyCloseFocus())}_fitPopoverToSlottedPicker(){let e=this._slottedPicker;if(!e){this._pickerPopoverWidth=kW;return}let t=e.getBoundingClientRect().width;t>0&&(this._pickerPopoverWidth=`calc(${Math.ceil(t)}px + var(--primitives-space-16) * 2)`)}_handlePickerChange(e){e.stopPropagation();let t=e.detail;if(this.range){if(typeof t?.start!=`string`||typeof t?.end!=`string`)return;this.value=zW([t.start,t.end]),this._focusOnClose=`last-input`}else{if(typeof t?.value!=`string`)return;this.value=t.value,this._focusOnClose=`trigger`}this._popover?.hide(),this._emit(`change`)}get _inputs(){return[...this.shadowRoot?.querySelectorAll(`.date-field__input`)??[]]}_focusAtEnd(e){if(!e)return;e.focus();let t=e.value.length;e.setSelectionRange(t,t)}_handleInputKeydown(e,t){GU(this,e)||t!==0&&e.key===`Backspace`&&e.target.value===``&&(e.preventDefault(),this._focusAtEnd(this._inputs[t-1]))}_setText(e,t){let n=[...this._texts];n[e]=t,this._texts=n}_handleInput(e,t=0){e.stopPropagation();let n=e.target.value;this._setText(t,n),this._setEnd(t,this._commit(n)),this._emit(`input`)}_handleChange(e,t=0){e.stopPropagation();let n=e.target.value,r=this._commit(n);this._setText(t,r?LW(r):n),this._setEnd(t,r),this._emit(`change`)}formValue(){return this.value}ownValidity(){let e=UW(this._texts,BW(this.min,this.max),this.required);return e?{flags:{[e.flag]:!0},message:this._problemMessage(e)}:null}_problemMessage(e){switch(e.flag){case`badInput`:return this._t(`components.date-field.bad-input-error-text`);case`rangeUnderflow`:return this._t(`components.date-field.range-underflow-error-text`).replace(`{date}`,LW(e.bound));case`rangeOverflow`:return this._t(`components.date-field.range-overflow-error-text`).replace(`{date}`,LW(e.bound));case`valueMissing`:return this._t(`components.date-field.range-incomplete-error-text`)}}_emit(e){this.commitFormValue(),this.dispatchEvent(new CustomEvent(e,{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return PW(this)}},GW=(WW.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},WW.styles=XU,WW.isFormInput=!0,WW.blocksImplicitSubmission=!0,WW);P([E({reflect:!0,converter:M(`md`)})],GW.prototype,`size`,void 0),P([E({type:String})],GW.prototype,`value`,void 0),P([E({type:Boolean,reflect:!0})],GW.prototype,`range`,void 0),P([E({type:String})],GW.prototype,`min`,void 0),P([E({type:String})],GW.prototype,`max`,void 0),P([E({type:Boolean,reflect:!0,attribute:`no-picker`})],GW.prototype,`noPicker`,void 0),P([E({type:String,attribute:`input-id`})],GW.prototype,`inputId`,void 0),P([E({reflect:!0,converter:M(``)})],GW.prototype,`placeholder`,void 0),P([E({type:Boolean,reflect:!0})],GW.prototype,`invalid`,void 0),P([E({type:Boolean,reflect:!0})],GW.prototype,`valid`,void 0),P([E({type:Boolean,reflect:!0})],GW.prototype,`disabled`,void 0),P([E({type:Boolean,reflect:!0})],GW.prototype,`readonly`,void 0),P([E({type:Boolean,reflect:!0})],GW.prototype,`required`,void 0),P([E({reflect:!0,converter:M(``)})],GW.prototype,`name`,void 0),P([E({type:String})],GW.prototype,`autocomplete`,void 0),P([E({type:String,attribute:`accessible-label`})],GW.prototype,`accessibleLabel`,void 0),P([E({reflect:!0,converter:M(``)})],GW.prototype,`width`,void 0),P([E({type:Object})],GW.prototype,`translations`,void 0),P([D()],GW.prototype,`_texts`,void 0),P([D()],GW.prototype,`_hasSlottedPicker`,void 0),P([D()],GW.prototype,`_pickerOpen`,void 0),P([D()],GW.prototype,`_pickerPopoverWidth`,void 0),GW=P([T(`nldd-date-field`)],GW),w(),j();var KW=u`
11461
+ `}var FW={"components.date-field.to-pick-date-action":`Datum kiezen`,"components.date-field.default-label":`Datum`,"components.date-field.default-range-label":`Periode`,"components.date-field.cancel-action":`Annuleer`,"components.date-field.range-from-lowercase-label":`van`,"components.date-field.range-to-lowercase-label":`tot en met`,"components.date-field.range-to-short-lowercase-label":`t/m`,"components.date-field.bad-input-error-text":`Een datum als dd-mm-jjjj`,"components.date-field.range-underflow-error-text":`Een datum vanaf {date}`,"components.date-field.range-overflow-error-text":`Een datum tot en met {date}`,"components.date-field.range-incomplete-error-text":`De einddatum ontbreekt`};function IW(e){let t=e.trim();if(t===``)return null;let n=/^(\d{4})[-/.](\d{1,2})[-/.](\d{1,2})$/.exec(t);if(n)return QU(Number(n[1]),Number(n[2]),Number(n[3]));let r=/^(\d{1,2})[-/.](\d{1,2})[-/.](\d{4})$/.exec(t);if(r)return QU(Number(r[3]),Number(r[2]),Number(r[1]));let i=/^(\d{2})(?:\s*[./-]\s*|\s+)?(\d{2})(?:\s*[./-]\s*|\s+)?(\d{4})$/.exec(t);return i?QU(Number(i[3]),Number(i[2]),Number(i[1])):null}function LW(e){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);return t?`${t[3]}-${t[2]}-${t[1]}`:``}function RW(e,t){let n=e?e.split(`/`):[];return Array.from({length:t},(e,t)=>n[t]??``)}function zW(e){return e.every(e=>e===``)?``:e.join(`/`)}function BW(e,t){return{min:e?nW(e):``,max:t?nW(t):``}}function VW(e,t){let n=IW(e);return!n||t.min&&n<t.min||t.max&&n>t.max?``:n}function HW(e){let[t,n]=e;return e.length!==2||!t||!n||t<=n?null:[n,t]}function UW(e,t,n){for(let n of e){if(!n.trim())continue;let e=IW(n);if(!e)return{flag:`badInput`};if(t.min&&e<t.min)return{flag:`rangeUnderflow`,bound:t.min};if(t.max&&e>t.max)return{flag:`rangeOverflow`,bound:t.max}}let[r,...i]=e;return n&&r?.trim()&&i.some(e=>!e.trim())?{flag:`valueMissing`}:null}w(),O(),k(),N(),Ma(),R(),Qn(),L(),F();var WW=class extends Zn(XB(C)){constructor(...e){super(...e),this._initialValue=``,this.size=`md`,this.value=``,this.range=!1,this.min=``,this.max=``,this.noPicker=!1,this.inputId=``,this.placeholder=``,this.invalid=!1,this.valid=!1,this.disabled=!1,this.readonly=!1,this.required=!1,this.name=``,this.autocomplete=``,this.accessibleLabel=``,this.width=``,this.translations={},this._texts=[``],this._hasSlottedPicker=!1,this._pickerOpen=!1,this._focusOnClose=null,this._pickerPopoverWidth=kW}get _endCount(){return this.range?2:1}get _ends(){return RW(this.value,this._endCount)}get _startValue(){return this._ends[0]??``}get _endValue(){return this.range?this._ends[1]??``:``}_setEnd(e,t){let n=this._ends;n[e]=t,this.value=zW(n)}_sortRange(){let e=HW(this._ends);return e?(this.value=zW(e),!0):!1}_handleFieldBlur(e){let t=e.relatedTarget;t&&this.shadowRoot?.contains(t)||this._sortRange()&&this._emit(`change`)}_commit(e){return VW(e,BW(this.min,this.max))}get _slottedPicker(){return(this.shadowRoot?.querySelector(`slot[name="picker"]`))?.assignedElements({flatten:!0}).find(e=>e.localName===`nldd-date-picker`)??null}_handlePickerSlotChange(){this._hasSlottedPicker=this._slottedPicker!==null}_syncSlottedPicker(){let e=this._slottedPicker;e&&(e.range=this.range,e.min=this.min,e.max=this.max,this.range?(e.start=this._startValue,e.end=this._endValue):e.value=this.value,e.toggleAttribute(`autofocus`,!0))}firstUpdated(){this._initialValue=this.value,this._handlePickerSlotChange()}willUpdate(e){if(!e.has(`value`)&&!e.has(`range`))return;e.has(`range`)&&(this.value=zW(this._ends));let t=this._ends;this._texts=t.map((e,t)=>{let n=this._texts[t]??``;return this._commit(n)===e?n:LW(e)})}updated(e){if(e.has(`width`)){let e=this.width;e===`full`?this.style.setProperty(`--_date-field-width`,`100%`):e===`fit-content`?this.style.removeProperty(`--_date-field-width`):e&&CSS.supports(`width`,e)?this.style.setProperty(`--_date-field-width`,e):this.style.removeProperty(`--_date-field-width`)}let t=this._popover,n=this._pickerTrigger;t&&n&&t.anchorElement!==n&&(t.anchorElement=n),this._syncSlottedPicker()}formResetCallback(){this._texts=RW(this._initialValue,this._endCount).map(LW),this.value=this._initialValue}formStateRestoreCallback(e){typeof e==`string`&&(this.value=e)}_t(e){return I(this.translations,FW,e)}get _fieldLabel(){return this.accessibleLabel||this._t(this.range?`components.date-field.default-range-label`:`components.date-field.default-label`)}get _pickerTrigger(){return this.shadowRoot?.querySelector(`.date-field__picker-button nldd-icon-button`)??null}get _popover(){return this.shadowRoot?.querySelector(`nldd-popover`)??null}get _pickerLabel(){return this.accessibleLabel||this._t(`components.date-field.to-pick-date-action`)}_handlePickerClick(){this._pickerOpen?this._popover?.hide():this._popover?.show()}_applyCloseFocus(){let e=this._focusOnClose;if(this._focusOnClose=null,e===`trigger`)this._pickerTrigger?.focus();else if(e===`last-input`){let e=this._inputs;this._focusAtEnd(e[e.length-1])}}_handlePickerDismiss(e){e.stopPropagation(),this._focusOnClose=`trigger`,this._popover?.hide()}_handlePopoverToggle(e){this._pickerOpen=e.newState===`open`,this._pickerOpen?(this._sortRange()&&this._emit(`change`),this._fitPopoverToSlottedPicker()):queueMicrotask(()=>this._applyCloseFocus())}_fitPopoverToSlottedPicker(){let e=this._slottedPicker;if(!e){this._pickerPopoverWidth=kW;return}let t=e.getBoundingClientRect().width;t>0&&(this._pickerPopoverWidth=`calc(${Math.ceil(t)}px + var(--primitives-space-16) * 2)`)}_handlePickerChange(e){e.stopPropagation();let t=e.detail;if(this.range){if(typeof t?.start!=`string`||typeof t?.end!=`string`)return;this.value=zW([t.start,t.end]),this._focusOnClose=`last-input`}else{if(typeof t?.value!=`string`)return;this.value=t.value,this._focusOnClose=`trigger`}this._popover?.hide(),this._emit(`change`)}get _inputs(){return[...this.shadowRoot?.querySelectorAll(`.date-field__input`)??[]]}_focusAtEnd(e){if(!e)return;e.focus();let t=e.value.length;e.setSelectionRange(t,t)}_handleInputKeydown(e,t){GU(this,e)||t!==0&&e.key===`Backspace`&&e.target.value===``&&(e.preventDefault(),this._focusAtEnd(this._inputs[t-1]))}_setText(e,t){let n=[...this._texts];n[e]=t,this._texts=n}_handleInput(e,t=0){e.stopPropagation();let n=e.target.value;this._setText(t,n),this._setEnd(t,this._commit(n)),this._emit(`input`)}_handleChange(e,t=0){e.stopPropagation();let n=e.target.value,r=this._commit(n);this._setText(t,r?LW(r):n),this._setEnd(t,r),this._emit(`change`)}formValue(){return this.value}ownValidity(){let e=UW(this._texts,BW(this.min,this.max),this.required);return e?{flags:{[e.flag]:!0},message:this._problemMessage(e)}:null}_problemMessage(e){switch(e.flag){case`badInput`:return this._t(`components.date-field.bad-input-error-text`);case`rangeUnderflow`:return this._t(`components.date-field.range-underflow-error-text`).replace(`{date}`,LW(e.bound));case`rangeOverflow`:return this._t(`components.date-field.range-overflow-error-text`).replace(`{date}`,LW(e.bound));case`valueMissing`:return this._t(`components.date-field.range-incomplete-error-text`)}}_emit(e){this.commitFormValue(),this.dispatchEvent(new CustomEvent(e,{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return PW(this)}},GW=(WW.shadowRootOptions={...C.shadowRootOptions,delegatesFocus:!0},WW.styles=XU,WW.isFormInput=!0,WW.blocksImplicitSubmission=!0,WW);P([E({reflect:!0,converter:M(`md`)})],GW.prototype,`size`,void 0),P([E({type:String})],GW.prototype,`value`,void 0),P([E({type:Boolean,reflect:!0})],GW.prototype,`range`,void 0),P([E({type:String})],GW.prototype,`min`,void 0),P([E({type:String})],GW.prototype,`max`,void 0),P([E({type:Boolean,reflect:!0,attribute:`no-picker`})],GW.prototype,`noPicker`,void 0),P([E({type:String,attribute:`input-id`})],GW.prototype,`inputId`,void 0),P([E({reflect:!0,converter:M(``)})],GW.prototype,`placeholder`,void 0),P([E({type:Boolean,reflect:!0})],GW.prototype,`invalid`,void 0),P([E({type:Boolean,reflect:!0})],GW.prototype,`valid`,void 0),P([E({type:Boolean,reflect:!0})],GW.prototype,`disabled`,void 0),P([E({type:Boolean,reflect:!0})],GW.prototype,`readonly`,void 0),P([E({type:Boolean,reflect:!0})],GW.prototype,`required`,void 0),P([E({reflect:!0,converter:M(``)})],GW.prototype,`name`,void 0),P([E({type:String})],GW.prototype,`autocomplete`,void 0),P([E({type:String,attribute:`accessible-label`})],GW.prototype,`accessibleLabel`,void 0),P([E({reflect:!0,converter:M(``)})],GW.prototype,`width`,void 0),P([E({type:Object})],GW.prototype,`translations`,void 0),P([D()],GW.prototype,`_texts`,void 0),P([D()],GW.prototype,`_hasSlottedPicker`,void 0),P([D()],GW.prototype,`_pickerOpen`,void 0),P([D()],GW.prototype,`_pickerPopoverWidth`,void 0),GW=P([T(`nldd-date-field`)],GW),w(),j();var KW=u`
11434
11462
  :host {
11435
11463
  box-sizing: border-box;
11436
11464
  }
@@ -13243,6 +13271,7 @@ else:
13243
13271
  flex-grow: 1;
13244
13272
  color: var(--semantics-content-color);
13245
13273
  font: var(--primitives-font-body-md-regular-snug);
13274
+ text-wrap: pretty;
13246
13275
  }
13247
13276
 
13248
13277
  :host([disabled]) .radio-button-field__label {
@@ -13954,6 +13983,9 @@ else:
13954
13983
  --_swatch-picker-item-indicator-icon-size: 88%;
13955
13984
  --_swatch-picker-item-indicator-content-color: var(--primitives-color-neutral-1000);
13956
13985
  --context-tooltip-fingertip-size: var(--semantics-fingertip-size);
13986
+ /* The name sits over the swatch above it, and the swatches are what you
13987
+ click: a click on the name lands on that swatch, not on this one. */
13988
+ --context-tooltip-pointer-events: none;
13957
13989
 
13958
13990
  box-sizing: border-box;
13959
13991
  display: inline-flex;
@@ -14109,7 +14141,7 @@ else:
14109
14141
  </span>
14110
14142
  </span>
14111
14143
  </nldd-tooltip>
14112
- `}var eq={"components.swatch-picker-item.lintblauw-text":`Lintblauw`,"components.swatch-picker-item.donkerblauw-text":`Donkerblauw`,"components.swatch-picker-item.hemelblauw-text":`Hemelblauw`,"components.swatch-picker-item.lichtblauw-text":`Lichtblauw`,"components.swatch-picker-item.paars-text":`Paars`,"components.swatch-picker-item.violet-text":`Violet`,"components.swatch-picker-item.robijnrood-text":`Robijnrood`,"components.swatch-picker-item.roze-text":`Roze`,"components.swatch-picker-item.rood-text":`Rood`,"components.swatch-picker-item.oranje-text":`Oranje`,"components.swatch-picker-item.donkergeel-text":`Donkergeel`,"components.swatch-picker-item.geel-text":`Geel`,"components.swatch-picker-item.donkerbruin-text":`Donkerbruin`,"components.swatch-picker-item.bruin-text":`Bruin`,"components.swatch-picker-item.donkergroen-text":`Donkergroen`,"components.swatch-picker-item.groen-text":`Groen`,"components.swatch-picker-item.mosgroen-text":`Mosgroen`,"components.swatch-picker-item.mintgroen-text":`Mintgroen`};w(),O(),k(),N(),er(),un(),R(),F();var tq,nq,rq=1500,iq=(tq=class extends ln(C,eq){constructor(...e){super(...e),this.color=``,this.customColor=``,this.image=``,this.imageSrcset=``,this.text=``,this.selected=!1,this.disabled=!1,this.value=``,this.size=`md`,this._groupPosition=null,this._appliedLabel=null,this._nameTimer=0,this._pointerType=``,this._onFocus=()=>{this._tooltip?._handleFocusIn()},this._onBlur=()=>{this._tooltip?._handleTriggerLeave()},this._onClick=()=>{this._select(),this._showName()},this._onPointerDown=e=>{this._pointerType=e.pointerType,e.pointerType!==`touch`&&this._showName()},this._onPointerLeave=e=>{e.pointerType!==`touch`&&this._hideName()},this._onScroll=()=>{this._hideName()},this._onKeyDown=e=>{this.disabled||e.key===` `&&(e.preventDefault(),this._select())}}get _name(){return this.text?this.text:this.color?this._t(`components.swatch-picker-item.${this.color}-text`):``}connectedCallback(){super.connectedCallback(),this.addEventListener(`pointerdown`,this._onPointerDown),this.addEventListener(`pointerleave`,this._onPointerLeave),this.addEventListener(`click`,this._onClick),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`focus`,this._onFocus),this.addEventListener(`blur`,this._onBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`pointerdown`,this._onPointerDown),this.removeEventListener(`pointerleave`,this._onPointerLeave),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`focus`,this._onFocus),this.removeEventListener(`blur`,this._onBlur),this._hideName()}updated(e){e.has(`customColor`)&&(this.customColor&&CSS.supports(`color`,this.customColor)?this.style.setProperty(`--_swatch-picker-item-custom-color`,this.customColor):this.style.removeProperty(`--_swatch-picker-item-custom-color`)),this._syncAria()}_syncAria(){this.setAttribute(`role`,`radio`),this.setAttribute(`aria-checked`,String(this.selected)),this._appliedLabel=bB(this,`aria-label`,this._name,this._appliedLabel),this.disabled?this.setAttribute(`aria-disabled`,`true`):this.removeAttribute(`aria-disabled`);let e=this._groupPosition;e?(this.setAttribute(`aria-posinset`,String(e.posInSet)),this.setAttribute(`aria-setsize`,String(e.setSize))):(this.removeAttribute(`aria-posinset`),this.removeAttribute(`aria-setsize`));let t=!this.disabled&&e?.tabbable!==!1;this.setAttribute(`tabindex`,t?`0`:`-1`)}get _tooltip(){return this.shadowRoot?.querySelector(`nldd-tooltip`)??null}_select(){this.disabled||this.selected||this.dispatchEvent(new CustomEvent(`item-change`,{detail:{value:this.value},bubbles:!0,composed:!0}))}_showName(){let e=this._tooltip;e&&this._name&&(e.open=!0,clearTimeout(this._nameTimer),this._nameTimer=this._pointerType===`touch`?window.setTimeout(()=>this._hideName(),rq):0,document.addEventListener(`scroll`,this._onScroll,{capture:!0,passive:!0}))}_hideName(){document.removeEventListener(`scroll`,this._onScroll,{capture:!0}),clearTimeout(this._nameTimer),this._nameTimer=0;let e=this._tooltip;e&&(e.open=!1)}focus(e){$n(this,e)||super.focus(e)}render(){return $K(this)}},tq.styles=ZK,tq);P([E({reflect:!0,converter:M(``)})],iq.prototype,`color`,void 0),P([E({reflect:!0,attribute:`custom-color`,converter:M(``)})],iq.prototype,`customColor`,void 0),P([E({type:String})],iq.prototype,`image`,void 0),P([E({type:String,attribute:`image-srcset`})],iq.prototype,`imageSrcset`,void 0),P([E({reflect:!0,converter:M(``)})],iq.prototype,`text`,void 0),P([E({type:Boolean,reflect:!0})],iq.prototype,`selected`,void 0),P([E({type:Boolean,reflect:!0})],iq.prototype,`disabled`,void 0),P([E({type:String})],iq.prototype,`value`,void 0),P([E({reflect:!0,converter:M(`md`)})],iq.prototype,`size`,void 0),P([D()],iq.prototype,`_groupPosition`,void 0),iq=P([T(`nldd-swatch-picker-item`)],iq);var aq=(nq=class extends XB(C){constructor(...e){super(...e),this.size=`md`,this.accessibleLabel=``,this.accessibleLabeledBy=``,this.invalid=!1,this.disabled=!1,this.name=``,this.value=``,this.required=!1,this._initialValue=``,this._appliedLabel=null,this._handleItemChange=e=>{e.stopPropagation(),!(this.disabled||e.detail.value===this.value)&&(this.value=e.detail.value,this._syncItems(),this.commitFormValue(),this.dispatchEvent(new CustomEvent(`change`,{detail:{value:this.value},bubbles:!0,composed:!0})))},this._handleKeydown=e=>{if(this.disabled)return;if(e.key===`Enter`){GU(this,e);return}let t=this._getItems().filter(e=>!e.disabled);if(t.length===0)return;let n=t.findIndex(e=>e.selected),r;switch(e.key){case`ArrowLeft`:case`ArrowUp`:r=n<=0?t.length-1:n-1;break;case`ArrowRight`:case`ArrowDown`:r=n>=t.length-1?0:n+1;break;case`Home`:r=0;break;case`End`:r=t.length-1;break;default:return}e.preventDefault(),r!==n&&t[r]&&(t[r].focus(),t[r]._select())}}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`radiogroup`),this.addEventListener(`item-change`,this._handleItemChange),this.addEventListener(`keydown`,this._handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`item-change`,this._handleItemChange),this.removeEventListener(`keydown`,this._handleKeydown)}firstUpdated(){this._syncItems(),this._initialValue=this.value}formValue(){return this.value||null}formResetCallback(){this.value=this._initialValue}formStateRestoreCallback(e){typeof e==`string`&&(this.value=e)}validationAnchor(){let e=this._getItems().filter(e=>!e.disabled);return e.find(e=>e.selected)??e[0]}updated(e){(e.has(`value`)||e.has(`size`)||e.has(`disabled`)||e.has(`required`)||e.has(`invalid`))&&this._syncItems(),e.has(`value`)&&this.commitFormValue(),e.has(`accessibleLabel`)&&(this._appliedLabel=bB(this,`aria-label`,this.accessibleLabel,this._appliedLabel)),e.has(`accessibleLabeledBy`)&&(this.accessibleLabeledBy?this.setAttribute(`aria-labelledby`,this.accessibleLabeledBy):this.removeAttribute(`aria-labelledby`))}_getItems(){let e=this.shadowRoot?.querySelector(`slot`);return e?e.assignedElements().filter(e=>e.localName===`nldd-swatch-picker-item`):[]}_syncItems(){let e=this._getItems();this.toggleAttribute(`aria-required`,this.required),this.invalid?this.setAttribute(`aria-invalid`,`true`):this.removeAttribute(`aria-invalid`);for(let t of e)this.disabled&&!t.hasAttribute(`disabled`)?(t.setAttribute(`group-disabled`,``),t.disabled=!0):!this.disabled&&t.hasAttribute(`group-disabled`)&&(t.removeAttribute(`group-disabled`),t.disabled=!1),t.size=this.size,t.selected=!!this.value&&t.value===this.value;let t=bK(e,e=>e.selected,e=>e.disabled);e.forEach((e,n)=>{e._groupPosition=t[n]??null})}_onSlotChange(){this._syncItems()}focus(e){if($n(this,e))return;let t=this._getItems().filter(e=>!e.disabled);(t.find(e=>e.selected)??t[0])?.focus(e)}render(){return QK(this)}},nq.styles=XK,nq.isFormInput=!0,nq);P([E({reflect:!0,converter:M(`md`)})],aq.prototype,`size`,void 0),P([E({type:String,attribute:`accessible-label`})],aq.prototype,`accessibleLabel`,void 0),P([E({type:String,attribute:`accessible-labeled-by`})],aq.prototype,`accessibleLabeledBy`,void 0),P([E({type:Boolean,reflect:!0})],aq.prototype,`invalid`,void 0),P([E({type:Boolean,reflect:!0})],aq.prototype,`disabled`,void 0),P([E({reflect:!0,converter:M(``)})],aq.prototype,`name`,void 0),P([E({type:String,reflect:!0})],aq.prototype,`value`,void 0),P([E({type:Boolean,reflect:!0})],aq.prototype,`required`,void 0),aq=P([T(`nldd-swatch-picker`)],aq),w();var oq=u`
14144
+ `}var eq={"components.swatch-picker-item.lintblauw-text":`Lintblauw`,"components.swatch-picker-item.donkerblauw-text":`Donkerblauw`,"components.swatch-picker-item.hemelblauw-text":`Hemelblauw`,"components.swatch-picker-item.lichtblauw-text":`Lichtblauw`,"components.swatch-picker-item.paars-text":`Paars`,"components.swatch-picker-item.violet-text":`Violet`,"components.swatch-picker-item.robijnrood-text":`Robijnrood`,"components.swatch-picker-item.roze-text":`Roze`,"components.swatch-picker-item.rood-text":`Rood`,"components.swatch-picker-item.oranje-text":`Oranje`,"components.swatch-picker-item.donkergeel-text":`Donkergeel`,"components.swatch-picker-item.geel-text":`Geel`,"components.swatch-picker-item.donkerbruin-text":`Donkerbruin`,"components.swatch-picker-item.bruin-text":`Bruin`,"components.swatch-picker-item.donkergroen-text":`Donkergroen`,"components.swatch-picker-item.groen-text":`Groen`,"components.swatch-picker-item.mosgroen-text":`Mosgroen`,"components.swatch-picker-item.mintgroen-text":`Mintgroen`};w(),O(),k(),N(),er(),un(),R(),F();var tq,nq,rq=1500,iq=(tq=class extends ln(C,eq){constructor(...e){super(...e),this.color=``,this.customColor=``,this.image=``,this.imageSrcset=``,this.text=``,this.selected=!1,this.disabled=!1,this.value=``,this.size=`md`,this._groupPosition=null,this._appliedLabel=null,this._nameTimer=0,this._pointerType=``,this._onFocus=()=>{this._tooltip?._handleFocusIn()},this._onBlur=()=>{this._tooltip?._handleTriggerLeave()},this._onClick=()=>{this._select(),this._showName()},this._onPointerDown=e=>{this._pointerType=e.pointerType,e.pointerType!==`touch`&&this._showName()},this._onPointerLeave=e=>{e.pointerType!==`touch`&&this._hideName()},this._onScroll=()=>{this._hideName()},this._onKeyDown=e=>{this.disabled||e.key===` `&&(e.preventDefault(),this._select())}}get _name(){return this.text?this.text:this.color?this._t(`components.swatch-picker-item.${this.color}-text`):``}connectedCallback(){super.connectedCallback(),this.addEventListener(`pointerdown`,this._onPointerDown),this.addEventListener(`pointerleave`,this._onPointerLeave),this.addEventListener(`click`,this._onClick),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`focus`,this._onFocus),this.addEventListener(`blur`,this._onBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`pointerdown`,this._onPointerDown),this.removeEventListener(`pointerleave`,this._onPointerLeave),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`focus`,this._onFocus),this.removeEventListener(`blur`,this._onBlur),this._hideName()}updated(e){e.has(`customColor`)&&(this.customColor&&CSS.supports(`color`,this.customColor)?this.style.setProperty(`--_swatch-picker-item-custom-color`,this.customColor):this.style.removeProperty(`--_swatch-picker-item-custom-color`)),this._syncAria()}_syncAria(){this.setAttribute(`role`,`radio`),this.setAttribute(`aria-checked`,String(this.selected)),this._appliedLabel=bB(this,`aria-label`,this._name,this._appliedLabel),this.disabled?this.setAttribute(`aria-disabled`,`true`):this.removeAttribute(`aria-disabled`);let e=this._groupPosition;e?(this.setAttribute(`aria-posinset`,String(e.posInSet)),this.setAttribute(`aria-setsize`,String(e.setSize))):(this.removeAttribute(`aria-posinset`),this.removeAttribute(`aria-setsize`));let t=!this.disabled&&e?.tabbable!==!1;this.setAttribute(`tabindex`,t?`0`:`-1`)}get _tooltip(){return this.shadowRoot?.querySelector(`nldd-tooltip`)??null}_select(){this.disabled||this.selected||this.dispatchEvent(new CustomEvent(`item-change`,{detail:{value:this.value},bubbles:!0,composed:!0}))}_showName(){let e=this._tooltip;e&&this._name&&(this.closest(`nldd-swatch-picker`)?.querySelectorAll(`nldd-swatch-picker-item`).forEach(e=>{e!==this&&e._hideName()}),e.open=!0,clearTimeout(this._nameTimer),this._nameTimer=this._pointerType===`touch`?window.setTimeout(()=>this._hideName(),rq):0,document.addEventListener(`scroll`,this._onScroll,{capture:!0,passive:!0}))}_hideName(){document.removeEventListener(`scroll`,this._onScroll,{capture:!0}),clearTimeout(this._nameTimer),this._nameTimer=0;let e=this._tooltip;e&&(e.open=!1)}focus(e){$n(this,e)||super.focus(e)}render(){return $K(this)}},tq.styles=ZK,tq);P([E({reflect:!0,converter:M(``)})],iq.prototype,`color`,void 0),P([E({reflect:!0,attribute:`custom-color`,converter:M(``)})],iq.prototype,`customColor`,void 0),P([E({type:String})],iq.prototype,`image`,void 0),P([E({type:String,attribute:`image-srcset`})],iq.prototype,`imageSrcset`,void 0),P([E({reflect:!0,converter:M(``)})],iq.prototype,`text`,void 0),P([E({type:Boolean,reflect:!0})],iq.prototype,`selected`,void 0),P([E({type:Boolean,reflect:!0})],iq.prototype,`disabled`,void 0),P([E({type:String})],iq.prototype,`value`,void 0),P([E({reflect:!0,converter:M(`md`)})],iq.prototype,`size`,void 0),P([D()],iq.prototype,`_groupPosition`,void 0),iq=P([T(`nldd-swatch-picker-item`)],iq);var aq=(nq=class extends XB(C){constructor(...e){super(...e),this.size=`md`,this.accessibleLabel=``,this.accessibleLabeledBy=``,this.invalid=!1,this.disabled=!1,this.name=``,this.value=``,this.required=!1,this._initialValue=``,this._appliedLabel=null,this._handleItemChange=e=>{e.stopPropagation(),!(this.disabled||e.detail.value===this.value)&&(this.value=e.detail.value,this._syncItems(),this.commitFormValue(),this.dispatchEvent(new CustomEvent(`change`,{detail:{value:this.value},bubbles:!0,composed:!0})))},this._handleKeydown=e=>{if(this.disabled)return;if(e.key===`Enter`){GU(this,e);return}let t=this._getItems().filter(e=>!e.disabled);if(t.length===0)return;let n=t.findIndex(e=>e.selected),r;switch(e.key){case`ArrowLeft`:case`ArrowUp`:r=n<=0?t.length-1:n-1;break;case`ArrowRight`:case`ArrowDown`:r=n>=t.length-1?0:n+1;break;case`Home`:r=0;break;case`End`:r=t.length-1;break;default:return}e.preventDefault(),r!==n&&t[r]&&(t[r].focus(),t[r]._select())}}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`radiogroup`),this.addEventListener(`item-change`,this._handleItemChange),this.addEventListener(`keydown`,this._handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`item-change`,this._handleItemChange),this.removeEventListener(`keydown`,this._handleKeydown)}firstUpdated(){this._syncItems(),this._initialValue=this.value}formValue(){return this.value||null}formResetCallback(){this.value=this._initialValue}formStateRestoreCallback(e){typeof e==`string`&&(this.value=e)}validationAnchor(){let e=this._getItems().filter(e=>!e.disabled);return e.find(e=>e.selected)??e[0]}updated(e){(e.has(`value`)||e.has(`size`)||e.has(`disabled`)||e.has(`required`)||e.has(`invalid`))&&this._syncItems(),e.has(`value`)&&this.commitFormValue(),e.has(`accessibleLabel`)&&(this._appliedLabel=bB(this,`aria-label`,this.accessibleLabel,this._appliedLabel)),e.has(`accessibleLabeledBy`)&&(this.accessibleLabeledBy?this.setAttribute(`aria-labelledby`,this.accessibleLabeledBy):this.removeAttribute(`aria-labelledby`))}_getItems(){let e=this.shadowRoot?.querySelector(`slot`);return e?e.assignedElements().filter(e=>e.localName===`nldd-swatch-picker-item`):[]}_syncItems(){let e=this._getItems();this.toggleAttribute(`aria-required`,this.required),this.invalid?this.setAttribute(`aria-invalid`,`true`):this.removeAttribute(`aria-invalid`);for(let t of e)this.disabled&&!t.hasAttribute(`disabled`)?(t.setAttribute(`group-disabled`,``),t.disabled=!0):!this.disabled&&t.hasAttribute(`group-disabled`)&&(t.removeAttribute(`group-disabled`),t.disabled=!1),t.size=this.size,t.selected=!!this.value&&t.value===this.value;let t=bK(e,e=>e.selected,e=>e.disabled);e.forEach((e,n)=>{e._groupPosition=t[n]??null})}_onSlotChange(){this._syncItems()}focus(e){if($n(this,e))return;let t=this._getItems().filter(e=>!e.disabled);(t.find(e=>e.selected)??t[0])?.focus(e)}render(){return QK(this)}},nq.styles=XK,nq.isFormInput=!0,nq);P([E({reflect:!0,converter:M(`md`)})],aq.prototype,`size`,void 0),P([E({type:String,attribute:`accessible-label`})],aq.prototype,`accessibleLabel`,void 0),P([E({type:String,attribute:`accessible-labeled-by`})],aq.prototype,`accessibleLabeledBy`,void 0),P([E({type:Boolean,reflect:!0})],aq.prototype,`invalid`,void 0),P([E({type:Boolean,reflect:!0})],aq.prototype,`disabled`,void 0),P([E({reflect:!0,converter:M(``)})],aq.prototype,`name`,void 0),P([E({type:String,reflect:!0})],aq.prototype,`value`,void 0),P([E({type:Boolean,reflect:!0})],aq.prototype,`required`,void 0),aq=P([T(`nldd-swatch-picker`)],aq),w();var oq=u`
14113
14145
  :host {
14114
14146
  box-sizing: border-box;
14115
14147
  }
@@ -14447,6 +14479,7 @@ else:
14447
14479
  flex-grow: 1;
14448
14480
  color: var(--semantics-content-color);
14449
14481
  font: var(--primitives-font-body-md-regular-snug);
14482
+ text-wrap: pretty;
14450
14483
  }
14451
14484
 
14452
14485
  :host([disabled]) .switch-field__label {
@@ -20201,6 +20234,7 @@ else:
20201
20234
  /* # Host */
20202
20235
 
20203
20236
  :host {
20237
+ --_sheet-background-color: var(--semantics-surfaces-base-background-color);
20204
20238
  --_sheet-width: initial;
20205
20239
  --_sheet-height: initial;
20206
20240
 
@@ -20265,6 +20299,7 @@ else:
20265
20299
  --context-scroll-mode: nested;
20266
20300
  --context-inset-top: 0px;
20267
20301
  --context-inset-bottom: 0px;
20302
+ --context-parent-background-color: var(--_sheet-background-color);
20268
20303
 
20269
20304
  display: flex;
20270
20305
  position: fixed;
@@ -20272,7 +20307,7 @@ else:
20272
20307
  outline: none;
20273
20308
  border: none;
20274
20309
  box-shadow: var(--semantics-overlays-box-shadow);
20275
- background: var(--semantics-surfaces-base-background-color);
20310
+ background: var(--_sheet-background-color);
20276
20311
  overflow: hidden;
20277
20312
  padding: 0;
20278
20313
  flex-direction: column;
@@ -20462,6 +20497,7 @@ else:
20462
20497
  /* # Block */
20463
20498
 
20464
20499
  .box {
20500
+ --context-parent-background-color: var(--_box-background-color);
20465
20501
  box-sizing: border-box;
20466
20502
  border-radius: var(--_box-corner-radius);
20467
20503
  box-shadow: var(--_box-highlight-border);
@@ -20535,6 +20571,7 @@ else:
20535
20571
  /* # Block */
20536
20572
 
20537
20573
  .card {
20574
+ --context-parent-background-color: var(--_card-background-color);
20538
20575
  display: flex;
20539
20576
  position: relative;
20540
20577
  border-radius: var(--_card-corner-radius);
@@ -20550,12 +20587,14 @@ else:
20550
20587
  @media (hover: hover) {
20551
20588
  .card:has(> .card__action:hover) {
20552
20589
  --_card-border-color: var(--_card-is-hovered-border-color);
20590
+ --context-parent-background-color: var(--_card-is-hovered-background-color);
20553
20591
  background-color: var(--_card-is-hovered-background-color);
20554
20592
  }
20555
20593
  }
20556
20594
 
20557
20595
  :host([data-action-pressed]) .card {
20558
20596
  --_card-border-color: var(--_card-is-active-border-color);
20597
+ --context-parent-background-color: var(--_card-is-active-background-color);
20559
20598
  background-color: var(--_card-is-active-background-color);
20560
20599
  }
20561
20600
 
@@ -20952,6 +20991,7 @@ else:
20952
20991
  /* # Host */
20953
20992
 
20954
20993
  :host {
20994
+ --_window-background-color: var(--semantics-surfaces-base-background-color);
20955
20995
  --_window-default-width: var(--primitives-area-640);
20956
20996
 
20957
20997
  ${A}
@@ -20970,6 +21010,7 @@ else:
20970
21010
  /* # Block */
20971
21011
 
20972
21012
  .window {
21013
+ --context-parent-background-color: var(--_window-background-color);
20973
21014
  display: flex;
20974
21015
  position: fixed;
20975
21016
  margin: auto;
@@ -20977,7 +21018,7 @@ else:
20977
21018
  border: none;
20978
21019
  border-radius: var(--semantics-overlays-corner-radius);
20979
21020
  box-shadow: var(--semantics-overlays-box-shadow);
20980
- background-color: var(--semantics-surfaces-base-background-color);
21021
+ background-color: var(--_window-background-color);
20981
21022
  width: var(--_window-default-width);
20982
21023
  max-width: calc(100vw - var(--semantics-overlays-inset) * 2);
20983
21024
  max-height: calc(100dvh - var(--semantics-overlays-inset) * 2);
@@ -21491,6 +21532,7 @@ else:
21491
21532
  flex-grow: 1;
21492
21533
  color: var(--semantics-content-color);
21493
21534
  font: var(--_task-board-column-title-font);
21535
+ text-wrap: balance;
21494
21536
  }
21495
21537
 
21496
21538
  .task-board-column__count {
@@ -22310,6 +22352,7 @@ else:
22310
22352
  align-self: stretch !important;
22311
22353
  color: var(--context-content-secondary-color, var(--semantics-content-secondary-color)) !important;
22312
22354
  font: var(--primitives-font-body-sm-regular-flat) !important;
22355
+ text-wrap: pretty !important;
22313
22356
  }
22314
22357
 
22315
22358
  @media (forced-colors: active) {
@@ -22326,6 +22369,7 @@ else:
22326
22369
  align-self: stretch !important;
22327
22370
  color: var(--context-content-color, var(--semantics-content-color)) !important;
22328
22371
  font: var(--primitives-font-body-md-regular-tight) !important;
22372
+ text-wrap: pretty !important;
22329
22373
  }
22330
22374
 
22331
22375
  @media (forced-colors: active) {
@@ -25448,6 +25492,7 @@ else:
25448
25492
  /* # Host */
25449
25493
 
25450
25494
  :host {
25495
+ --_modal-dialog-background-color: var(--semantics-surfaces-base-background-color);
25451
25496
  --_modal-dialog-max-height: 90vh;
25452
25497
  --_modal-dialog-padding: var(--primitives-space-16);
25453
25498
  --_modal-dialog-content-max-width: var(--primitives-area-360);
@@ -25477,13 +25522,14 @@ else:
25477
25522
  --context-scroll-mode: nested;
25478
25523
  --context-inset-top: 0px;
25479
25524
  --context-inset-bottom: 0px;
25525
+ --context-parent-background-color: var(--_modal-dialog-background-color);
25480
25526
 
25481
25527
  box-sizing: border-box;
25482
25528
  outline: none;
25483
25529
  border: none;
25484
25530
  border-radius: var(--semantics-overlays-corner-radius);
25485
25531
  box-shadow: var(--semantics-overlays-box-shadow);
25486
- background-color: var(--semantics-surfaces-base-background-color);
25532
+ background-color: var(--_modal-dialog-background-color);
25487
25533
  width: calc(100% - var(--primitives-space-16) * 2);
25488
25534
  max-width: calc(var(--_modal-dialog-content-max-width) + var(--_modal-dialog-padding) * 2);
25489
25535
  max-height: var(--_modal-dialog-max-height);
@@ -26382,6 +26428,7 @@ else:
26382
26428
 
26383
26429
  .progress-bar__text {
26384
26430
  font: var(--_progress-bar-text-font);
26431
+ text-wrap: pretty;
26385
26432
  }
26386
26433
 
26387
26434
  .progress-bar__supporting-text {
@@ -26979,6 +27026,7 @@ else:
26979
27026
  color: var(--_progress-circle-text-color);
26980
27027
  font: var(--_progress-circle-text-font);
26981
27028
  text-align: center;
27029
+ text-wrap: balance;
26982
27030
  }
26983
27031
 
26984
27032
  .progress-circle__supporting-text {
@@ -27285,6 +27333,10 @@ else:
27285
27333
  }
27286
27334
  }
27287
27335
 
27336
+ .step-bar__compact-title {
27337
+ text-wrap: pretty;
27338
+ }
27339
+
27288
27340
  .step-bar__compact-count {
27289
27341
  color: var(--_step-bar-compact-count-color);
27290
27342
  font-variant-numeric: tabular-nums;
@@ -27417,6 +27469,7 @@ else:
27417
27469
  color: var(--_step-bar-title-color);
27418
27470
  font: var(--primitives-font-body-sm-regular-flat);
27419
27471
  overflow-wrap: anywhere;
27472
+ text-wrap: balance;
27420
27473
  }
27421
27474
 
27422
27475
  .step-bar__item.is-current .step-bar__item-title {
@@ -778,6 +778,10 @@ declare module 'vue' {
778
778
  'min-height'?: NLDDContainer['minHeight'];
779
779
  /** Minimum height as a CSS length (e.g. '240px'), padding included. Reserves the room that content still on its way will take; vertical-alignment then places the children within it. */
780
780
  'minHeight'?: NLDDContainer['minHeight'];
781
+ /** 'touch' | 'pointer'. Takes the container and all it holds away, for screen readers as well, on a device that only has touch (`touch`) or on one with a mouse or trackpad (`pointer`), the same test that hides keyboard shortcuts. For what only works with one of the two, such as a setting about hover. Not for content: what one visitor gets, the other should get too. */
782
+ 'hide-on'?: NLDDContainer['hideOn'];
783
+ /** 'touch' | 'pointer'. Takes the container and all it holds away, for screen readers as well, on a device that only has touch (`touch`) or on one with a mouse or trackpad (`pointer`), the same test that hides keyboard shortcuts. For what only works with one of the two, such as a setting about hover. Not for content: what one visitor gets, the other should get too. */
784
+ 'hideOn'?: NLDDContainer['hideOn'];
781
785
  /** Gap between children. One distance for all of them, so it fits children of one kind; for a stack of different kinds, space each seam with nldd-spacer instead. */
782
786
  'gap'?: NLDDContainer['gap'];
783
787
  /** Gap at sm breakpoint */
@@ -1 +1 @@
1
- {"version":3,"file":"dev-rules.generated.d.ts","sourceRoot":"","sources":["../../src/utilities/dev-rules.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,QAAQ,EAAE,OAAO,EA4gF7B,CAAC"}
1
+ {"version":3,"file":"dev-rules.generated.d.ts","sourceRoot":"","sources":["../../src/utilities/dev-rules.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,QAAQ,EAAE,OAAO,EAihF7B,CAAC"}
@@ -1480,6 +1480,11 @@ export const devRules = [
1480
1480
  "message": "`layout` on nldd-container takes: columns, grid, lanes, row, stack, wrap.",
1481
1481
  "context": "nldd-container[layout]:not([layout=\"columns\"], [layout=\"grid\"], [layout=\"lanes\"], [layout=\"row\"], [layout=\"stack\"], [layout=\"wrap\"])"
1482
1482
  },
1483
+ {
1484
+ "id": "invalid-value-container-hide-on",
1485
+ "message": "`hide-on` on nldd-container takes: pointer, touch.",
1486
+ "context": "nldd-container[hide-on]:not([hide-on=\"\"], [hide-on=\"pointer\"], [hide-on=\"touch\"])"
1487
+ },
1483
1488
  {
1484
1489
  "id": "invalid-value-container-gap",
1485
1490
  "message": "`gap` on nldd-container takes: 0, 10, 12, 16, 2, 20, 24, 28, 32, 4, 40, 44, 48, 56, 6, 64, 8, 80, 96.",