@dso-toolkit/core 33.1.0 → 34.0.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 (173) hide show
  1. package/dist/cjs/dso-alert.cjs.entry.js +1 -1
  2. package/dist/cjs/dso-attachments-counter.cjs.entry.js +2 -2
  3. package/dist/cjs/dso-autosuggest.cjs.entry.js +8 -72
  4. package/dist/cjs/dso-badge.cjs.entry.js +1 -1
  5. package/dist/cjs/dso-banner.cjs.entry.js +1 -1
  6. package/dist/cjs/dso-date-picker.cjs.entry.js +11 -11
  7. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +19 -232
  8. package/dist/cjs/dso-header.cjs.entry.js +101 -0
  9. package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +1 -1
  10. package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
  11. package/dist/cjs/dso-icon.cjs.entry.js +1 -1
  12. package/dist/cjs/dso-info-button.cjs.entry.js +2 -2
  13. package/dist/cjs/dso-info_2.cjs.entry.js +2 -2
  14. package/dist/cjs/dso-label.cjs.entry.js +2 -2
  15. package/dist/cjs/dso-map-base-layers.cjs.entry.js +7 -6
  16. package/dist/cjs/dso-map-controls.cjs.entry.js +3 -3
  17. package/dist/cjs/dso-map-overlays.cjs.entry.js +9 -10
  18. package/dist/cjs/dso-ozon-content.cjs.entry.js +1 -1
  19. package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
  20. package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
  21. package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
  22. package/dist/cjs/dso-toolkit.cjs.js +2 -2
  23. package/dist/cjs/dso-tooltip.cjs.entry.js +169 -76
  24. package/dist/cjs/dso-tree-view.cjs.entry.js +2 -2
  25. package/dist/cjs/dso-viewer-grid.cjs.entry.js +778 -0
  26. package/dist/cjs/{index-fcdfdd38.js → index-5ea63531.js} +26 -2
  27. package/dist/cjs/index-794ad37a.js +72 -0
  28. package/dist/cjs/index.esm-2ac7081c.js +267 -0
  29. package/dist/cjs/loader.cjs.js +2 -2
  30. package/dist/collection/collection-manifest.json +3 -1
  31. package/dist/collection/components/alert/alert.css +0 -3
  32. package/dist/collection/components/anchor/anchor.template.js +17 -0
  33. package/dist/collection/components/attachments-counter/attachments-counter.css +0 -4
  34. package/dist/collection/components/autosuggest/autosuggest.css +0 -3
  35. package/dist/collection/components/autosuggest/autosuggest.js +19 -1
  36. package/dist/collection/components/autosuggest/autosuggest.template.js +2 -1
  37. package/dist/collection/components/badge/badge.css +0 -3
  38. package/dist/collection/components/banner/banner.css +0 -3
  39. package/dist/collection/components/button/button.template.js +48 -0
  40. package/dist/collection/components/context/context.template.js +42 -0
  41. package/dist/collection/components/date-picker/date-picker.css +0 -3
  42. package/dist/collection/components/date-picker/date-picker.js +10 -10
  43. package/dist/collection/components/definition-list/definition-list.template.js +36 -0
  44. package/dist/collection/components/dropdown-menu/dropdown-menu.css +0 -3
  45. package/dist/collection/components/dropdown-menu/dropdown-menu.js +15 -4
  46. package/dist/collection/components/header/header.css +433 -0
  47. package/dist/collection/components/header/header.js +294 -0
  48. package/dist/collection/components/header/header.template.js +32 -0
  49. package/dist/collection/components/helpcenter-panel/helpcenter-panel.css +0 -3
  50. package/dist/collection/components/highlight-box/highlight-box.css +0 -3
  51. package/dist/collection/components/icon/icon.css +0 -4
  52. package/dist/collection/components/info/info.css +1 -4
  53. package/dist/collection/components/info-button/info-button.css +1 -3
  54. package/dist/collection/components/label/label.css +0 -3
  55. package/dist/collection/components/label/label.js +2 -1
  56. package/dist/collection/components/label-group/label-group.template.js +7 -0
  57. package/dist/collection/components/list/list.template.js +37 -0
  58. package/dist/collection/components/map-base-layers/map-base-layers.css +4 -3
  59. package/dist/collection/components/map-base-layers/map-base-layers.js +10 -27
  60. package/dist/collection/components/map-controls/map-controls.css +18 -11
  61. package/dist/collection/components/map-controls/map-controls.js +10 -11
  62. package/dist/collection/components/map-controls/map-controls.template.js +12 -20
  63. package/dist/collection/components/map-overlays/map-overlays.css +4 -3
  64. package/dist/collection/components/map-overlays/map-overlays.js +13 -35
  65. package/dist/collection/components/ozon-content/ozon-content.css +0 -3
  66. package/dist/collection/components/progress-bar/progress-bar.css +0 -3
  67. package/dist/collection/components/progress-indicator/progress-indicator.css +0 -3
  68. package/dist/collection/components/selectable/selectable.css +0 -3
  69. package/dist/collection/components/toggletip/toggletip.css +0 -3
  70. package/dist/collection/components/tooltip/tooltip.css +34 -15
  71. package/dist/collection/components/tooltip/tooltip.js +19 -4
  72. package/dist/collection/components/tooltip/tooltip.template.js +3 -5
  73. package/dist/collection/components/tree-view/tree-view.css +3 -3
  74. package/dist/collection/components/viewer-grid/viewer-grid-document-header.template.js +39 -0
  75. package/dist/collection/components/viewer-grid/viewer-grid-document-list-item.template.js +19 -0
  76. package/dist/collection/components/viewer-grid/viewer-grid-filterblok.template.js +28 -0
  77. package/dist/collection/components/viewer-grid/viewer-grid.css +251 -0
  78. package/dist/collection/components/viewer-grid/viewer-grid.js +127 -0
  79. package/dist/collection/components/viewer-grid/viewer-grid.template.js +23 -0
  80. package/dist/custom-elements/index.d.ts +12 -0
  81. package/dist/custom-elements/index.js +1130 -117
  82. package/dist/dso-toolkit/dso-toolkit.css +1 -1
  83. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  84. package/dist/dso-toolkit/p-06de0fa1.entry.js +1 -0
  85. package/dist/dso-toolkit/p-10aa1fba.entry.js +1 -0
  86. package/dist/dso-toolkit/p-17f073d1.entry.js +1 -0
  87. package/dist/dso-toolkit/p-1805f5b0.js +1 -0
  88. package/dist/dso-toolkit/{p-75233655.entry.js → p-1fefbf8c.entry.js} +1 -1
  89. package/dist/dso-toolkit/{p-a52d3623.entry.js → p-20856f91.entry.js} +1 -1
  90. package/dist/dso-toolkit/{p-262858dd.entry.js → p-2b6a3dfa.entry.js} +1 -1
  91. package/dist/dso-toolkit/{p-be5682cc.entry.js → p-348414bf.entry.js} +1 -1
  92. package/dist/dso-toolkit/{p-984551a8.entry.js → p-3b493a2c.entry.js} +1 -1
  93. package/dist/dso-toolkit/p-4e573fc5.entry.js +1 -0
  94. package/dist/dso-toolkit/{p-c9c1bc8f.entry.js → p-5037944e.entry.js} +1 -1
  95. package/dist/dso-toolkit/p-7b006b11.entry.js +1 -0
  96. package/dist/dso-toolkit/p-8bf3a60e.js +5 -0
  97. package/dist/dso-toolkit/p-8f21d07d.entry.js +5 -0
  98. package/dist/dso-toolkit/{p-83f166b3.entry.js → p-94dffa65.entry.js} +1 -1
  99. package/dist/dso-toolkit/{p-b07991b9.entry.js → p-951f5872.entry.js} +1 -1
  100. package/dist/dso-toolkit/p-a6c9e063.entry.js +1 -0
  101. package/dist/dso-toolkit/p-a7306b7b.entry.js +1 -0
  102. package/dist/dso-toolkit/p-aadc4f8e.entry.js +1 -0
  103. package/dist/dso-toolkit/p-ad2210ad.entry.js +1 -0
  104. package/dist/dso-toolkit/{p-b5b946de.entry.js → p-bc14cafd.entry.js} +1 -1
  105. package/dist/dso-toolkit/{p-5665f1ee.entry.js → p-c54ecae1.entry.js} +1 -1
  106. package/dist/dso-toolkit/p-c95108fe.entry.js +1 -0
  107. package/dist/dso-toolkit/{p-e814d644.entry.js → p-daa1e29d.entry.js} +1 -1
  108. package/dist/dso-toolkit/p-dad72605.js +1 -0
  109. package/dist/dso-toolkit/{p-2e7d535c.entry.js → p-dc86d830.entry.js} +1 -1
  110. package/dist/dso-toolkit/{p-19de4cc7.entry.js → p-f0b67246.entry.js} +1 -1
  111. package/dist/esm/dso-alert.entry.js +1 -1
  112. package/dist/esm/dso-attachments-counter.entry.js +2 -2
  113. package/dist/esm/dso-autosuggest.entry.js +7 -71
  114. package/dist/esm/dso-badge.entry.js +1 -1
  115. package/dist/esm/dso-banner.entry.js +1 -1
  116. package/dist/esm/dso-date-picker.entry.js +11 -11
  117. package/dist/esm/dso-dropdown-menu.entry.js +17 -230
  118. package/dist/esm/dso-header.entry.js +97 -0
  119. package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
  120. package/dist/esm/dso-highlight-box.entry.js +1 -1
  121. package/dist/esm/dso-icon.entry.js +1 -1
  122. package/dist/esm/dso-info-button.entry.js +2 -2
  123. package/dist/esm/dso-info_2.entry.js +2 -2
  124. package/dist/esm/dso-label.entry.js +2 -2
  125. package/dist/esm/dso-map-base-layers.entry.js +7 -6
  126. package/dist/esm/dso-map-controls.entry.js +3 -3
  127. package/dist/esm/dso-map-overlays.entry.js +9 -10
  128. package/dist/esm/dso-ozon-content.entry.js +1 -1
  129. package/dist/esm/dso-progress-bar.entry.js +1 -1
  130. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  131. package/dist/esm/dso-toggletip.entry.js +1 -1
  132. package/dist/esm/dso-toolkit.js +2 -2
  133. package/dist/esm/dso-tooltip.entry.js +169 -76
  134. package/dist/esm/dso-tree-view.entry.js +2 -2
  135. package/dist/esm/dso-viewer-grid.entry.js +774 -0
  136. package/dist/esm/{index-61410be2.js → index-d54cae76.js} +26 -2
  137. package/dist/esm/index-f2bf58ce.js +70 -0
  138. package/dist/esm/index.esm-a1362957.js +262 -0
  139. package/dist/esm/loader.js +2 -2
  140. package/dist/types/components/anchor/anchor.template.d.ts +2 -0
  141. package/dist/types/components/autosuggest/autosuggest.d.ts +5 -0
  142. package/dist/types/components/autosuggest/autosuggest.template.d.ts +1 -1
  143. package/dist/types/components/button/button.template.d.ts +2 -0
  144. package/dist/types/components/context/context.template.d.ts +3 -0
  145. package/dist/types/components/definition-list/definition-list.template.d.ts +3 -0
  146. package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +1 -1
  147. package/dist/types/components/header/header.d.ts +36 -0
  148. package/dist/types/components/header/header.template.d.ts +2 -0
  149. package/dist/types/components/label-group/label-group.template.d.ts +2 -0
  150. package/dist/types/components/list/list.template.d.ts +3 -0
  151. package/dist/types/components/map-base-layers/map-base-layers.d.ts +3 -4
  152. package/dist/types/components/map-base-layers/map-base-layers.interfaces.d.ts +6 -1
  153. package/dist/types/components/map-controls/map-controls.template.d.ts +1 -1
  154. package/dist/types/components/map-overlays/map-overlays.d.ts +4 -4
  155. package/dist/types/components/map-overlays/map-overlays.interfaces.d.ts +7 -1
  156. package/dist/types/components/tooltip/tooltip.d.ts +1 -0
  157. package/dist/types/components/viewer-grid/viewer-grid-document-header.template.d.ts +3 -0
  158. package/dist/types/components/viewer-grid/viewer-grid-document-list-item.template.d.ts +3 -0
  159. package/dist/types/components/viewer-grid/viewer-grid-filterblok.template.d.ts +3 -0
  160. package/dist/types/components/viewer-grid/viewer-grid.d.ts +22 -0
  161. package/dist/types/components/viewer-grid/viewer-grid.template.d.ts +3 -0
  162. package/dist/types/components.d.ts +54 -8
  163. package/package.json +4 -2
  164. package/dist/dso-toolkit/p-08427682.entry.js +0 -1
  165. package/dist/dso-toolkit/p-39dae284.entry.js +0 -1
  166. package/dist/dso-toolkit/p-741e96de.entry.js +0 -5
  167. package/dist/dso-toolkit/p-759920d0.entry.js +0 -1
  168. package/dist/dso-toolkit/p-9e9f8bcf.entry.js +0 -1
  169. package/dist/dso-toolkit/p-a40eeb32.js +0 -1
  170. package/dist/dso-toolkit/p-affe82e6.entry.js +0 -1
  171. package/dist/dso-toolkit/p-e03d7741.entry.js +0 -1
  172. package/dist/dso-toolkit/p-e4269e02.entry.js +0 -1
  173. package/dist/dso-toolkit/p-e7700d9e.entry.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-fcdfdd38.js');
5
+ const index = require('./index-5ea63531.js');
6
6
  const clsx_m = require('./clsx.m-b00fa5e1.js');
7
7
 
8
8
  const alertCss = "@media screen and (min-width: 481px){.alert{padding:19px 16px 19px 63px}}@media screen and (max-width: 480px){.alert{padding:63px 16px 16px}}:host{display:block;--di-status-success:url(\"data:image/svg+xml,%3csvg id='status-success' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e %3cg%3e %3ccircle cx='12' cy='12' r='11' style='fill: %2339870c'/%3e %3cpath d='M12%2c1A11%2c11%2c0%2c1%2c1%2c1%2c12%2c11%2c11%2c0%2c0%2c1%2c12%2c1m0-1A12%2c12%2c0%2c1%2c0%2c24%2c12%2c12%2c12%2c0%2c0%2c0%2c12%2c0Z' style='fill: white'/%3e %3c/g%3e %3cpath d='M10.11%2c18%2c5.29%2c13.31A.92.92%2c0%2c0%2c1%2c5.3%2c12a1%2c1%2c0%2c0%2c1%2c1.41%2c0l3.4%2c3.3%2c7.18-7a1%2c1%2c0%2c0%2c1%2c1.41%2c0%2c.92.92%2c0%2c0%2c1%2c0%2c1.35Z' style='fill: white'/%3e %3c/svg%3e\");--di-status-danger:url(\"data:image/svg+xml,%3csvg id='status-danger-line' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e %3cg%3e %3cpath d='M22.6%2c18.51c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4a1.7%2c1.7%2c0%2c0%2c1%2c3.12%2c0Z' style='fill: %23ce3f51'/%3e %3cpath d='M12%2c3a1.9%2c1.9%2c0%2c0%2c1%2c1.56%2c1l9%2c14.48c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4A1.9%2c1.9%2c0%2c0%2c1%2c12%2c3m0-1A2.89%2c2.89%2c0%2c0%2c0%2c9.6%2c3.5L.55%2c18a2.75%2c2.75%2c0%2c0%2c0-.28%2c2.81A2.59%2c2.59%2c0%2c0%2c0%2c2.65%2c22h18.7a2.59%2c2.59%2c0%2c0%2c0%2c2.38-1.21A2.75%2c2.75%2c0%2c0%2c0%2c23.45%2c18L14.4%2c3.5A2.89%2c2.89%2c0%2c0%2c0%2c12%2c2Z' style='fill: white'/%3e %3c/g%3e %3cpath d='M12%2c16a1%2c1%2c0%2c0%2c1-1-.91V8.91a1%2c1%2c0%2c0%2c1%2c2%2c0v6.18A1%2c1%2c0%2c0%2c1%2c12%2c16Zm0%2c1a1%2c1%2c0%2c1%2c0%2c1%2c1A1%2c1%2c0%2c0%2c0%2c12%2c17Z' style='fill: white'/%3e %3c/svg%3e\");--di-status-warning:url(\"data:image/svg+xml,%3csvg id='status-warning' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e %3cg%3e %3cpath d='M22.6%2c18.51c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4a1.7%2c1.7%2c0%2c0%2c1%2c3.12%2c0Z' style='fill: %23dcd400'/%3e %3cpath d='M12%2c3a1.9%2c1.9%2c0%2c0%2c1%2c1.56%2c1l9%2c14.48c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4A1.9%2c1.9%2c0%2c0%2c1%2c12%2c3m0-1A2.89%2c2.89%2c0%2c0%2c0%2c9.6%2c3.5L.55%2c18a2.75%2c2.75%2c0%2c0%2c0-.28%2c2.81A2.59%2c2.59%2c0%2c0%2c0%2c2.65%2c22h18.7a2.59%2c2.59%2c0%2c0%2c0%2c2.38-1.21A2.75%2c2.75%2c0%2c0%2c0%2c23.45%2c18L14.4%2c3.5A2.89%2c2.89%2c0%2c0%2c0%2c12%2c2Z' style='fill: white'/%3e %3c/g%3e %3cpath d='M11.73%2c15.85a1%2c1%2c0%2c0%2c1-1-.91V8.76a1%2c1%2c0%2c0%2c1%2c2%2c0v6.18A1%2c1%2c0%2c0%2c1%2c11.73%2c15.85Zm0%2c1a1%2c1%2c0%2c1%2c0%2c1%2c1A1%2c1%2c0%2c0%2c0%2c11.73%2c16.85Z'/%3e %3c/svg%3e\");--di-status-info:url(\"data:image/svg+xml,%3csvg id='status-info' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e %3cg%3e %3ccircle cx='12' cy='12' r='11' style='fill: %232b5780'/%3e %3cpath d='M12%2c1A11%2c11%2c0%2c1%2c1%2c1%2c12%2c11%2c11%2c0%2c0%2c1%2c12%2c1m0-1A12%2c12%2c0%2c1%2c0%2c24%2c12%2c12%2c12%2c0%2c0%2c0%2c12%2c0Z' style='fill: white'/%3e %3c/g%3e %3cpath d='M11%2c8a1%2c1%2c0%2c1%2c1%2c1%2c1A1%2c1%2c0%2c0%2c1%2c11%2c8Zm2%2c8.79V11.21A1.12%2c1.12%2c0%2c0%2c0%2c12%2c10a1.12%2c1.12%2c0%2c0%2c0-1%2c1.21v5.58A1.12%2c1.12%2c0%2c0%2c0%2c12%2c18%2c1.12%2c1.12%2c0%2c0%2c0%2c13%2c16.79Z' style='fill: white'/%3e %3c/svg%3e\");--di-download-grijs90:url(\"data:image/svg+xml,%3csvg id='download' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M18.72%2c10.44%2c12%2c17l-6.7-6.52C4.8%2c10%2c5%2c9.63%2c5.63%2c9.63H8.5V1.82A.8.8%2c0%2c0%2c1%2c9.28%2c1h5.44a.8.8%2c0%2c0%2c1%2c.78.82V9.61h2.87C19%2c9.6%2c19.2%2c10%2c18.72%2c10.44ZM1%2c17v6H23V17Zm16%2c3a2%2c2%2c0%2c1%2c1-2-2A2%2c2%2c0%2c0%2c1%2c17%2c20Zm5%2c0a2%2c2%2c0%2c1%2c1-2-2A2%2c2%2c0%2c0%2c1%2c22%2c20Z'/%3e %3c/svg%3e\");--di-external-link-grijs90:url(\"data:image/svg+xml,%3csvg id='external-link' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M19%2c6V9.69c0%2c.33-.2.41-.43.17L17.06%2c8.35l-3.35%2c3.36a1%2c1%2c0%2c0%2c1-1.42%2c0%2c1%2c1%2c0%2c0%2c1%2c0-1.42l3.36-3.35L14.14%2c5.43C13.9%2c5.19%2c14%2c5%2c14.31%2c5H19V6ZM18%2c17V13a1%2c1%2c0%2c0%2c0-2%2c0v4a1%2c1%2c0%2c0%2c1-1%2c1H7a1%2c1%2c0%2c0%2c1-1-1V9A1%2c1%2c0%2c0%2c1%2c7%2c8h4a1%2c1%2c0%2c0%2c0%2c0-2H7A3%2c3%2c0%2c0%2c0%2c4%2c9v8a3%2c3%2c0%2c0%2c0%2c3%2c3h8A3%2c3%2c0%2c0%2c0%2c18%2c17Z'/%3e %3c/svg%3e\")}:host(:not(:first-child)){margin-top:24px}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.alert{border:1px solid transparent;line-height:24px;margin-bottom:24px;min-height:64px;position:relative}.alert:not(:first-child){margin-top:24px}.alert::before{content:\"\";left:15px;position:absolute;top:15px}.alert.alert-success{color:#191919;background-color:#e4f1d4;border-color:#e4f1d4}.alert.alert-success::before{background:var(--dso-icon, var(--di-status-success)) no-repeat;background-position:center;background-size:cover;height:32px;vertical-align:top;width:32px}.alert.alert-danger{color:#191919;background-color:#f5d8dc;border-color:#f5d8dc}.alert.alert-danger::before{background:var(--dso-icon, var(--di-status-danger)) no-repeat;background-position:center;background-size:cover;height:32px;vertical-align:top;width:32px}.alert.alert-warning{color:#191919;background-color:#f8f6cc;border-color:#f8f6cc}.alert.alert-warning::before{background:var(--dso-icon, var(--di-status-warning)) no-repeat;background-position:center;background-size:cover;height:32px;vertical-align:top;width:32px}.alert.alert-info{color:#191919;background-color:#e1ecf7;border-color:#e1ecf7}.alert.alert-info::before{background:var(--dso-icon, var(--di-status-info)) no-repeat;background-position:center;background-size:cover;height:32px;vertical-align:top;width:32px}";
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-fcdfdd38.js');
5
+ const index = require('./index-5ea63531.js');
6
6
 
7
- const attachmentsCounterCss = ":host{display:inline-block;--di-paperclip-grijs:url(\"data:image/svg+xml,%3csvg id='paperclip' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23666%3b'%3e %3cpath fill='currentColor' d='M21.88%2c8.94%2c10%2c20.6A4.63%2c4.63%2c0%2c0%2c1%2c6.62%2c22h0a5.78%2c5.78%2c0%2c0%2c1-4.05-1.81%2c5.34%2c5.34%2c0%2c0%2c1%2c0-7.56l9.3-9.26a1%2c1%2c0%2c1%2c1%2c1.48%2c1.48l-9.3%2c9.26h0a3.26%2c3.26%2c0%2c0%2c0%2c0%2c4.6%2c3.79%2c3.79%2c0%2c0%2c0%2c2.58%2c1.21%2c2.55%2c2.55%2c0%2c0%2c0%2c1.85-.81h0L20.4%2c7.46a1.83%2c1.83%2c0%2c0%2c0%2c.5-1.39%2c2.24%2c2.24%2c0%2c0%2c0-.63-1.44%2c1.85%2c1.85%2c0%2c0%2c0-2.61%2c0h0L7.43%2c14.73a.48.48%2c0%2c0%2c0%2c0%2c.67.48.48%2c0%2c0%2c0%2c.34.14.46.46%2c0%2c0%2c0%2c.34-.14l7.36-7.28a1%2c1%2c0%2c0%2c1%2c1.48%2c0A1%2c1%2c0%2c0%2c1%2c17%2c9.6h0L9.6%2c16.88h0a2.66%2c2.66%2c0%2c0%2c1-3.65%2c0%2c2.55%2c2.55%2c0%2c0%2c1%2c0-3.63L16.17%2c3.15a4%2c4%2c0%2c0%2c1%2c5.59%2c0A4.31%2c4.31%2c0%2c0%2c1%2c23%2c6%2c3.89%2c3.89%2c0%2c0%2c1%2c21.88%2c8.94Z'/%3e %3c/svg%3e\");--di-paperclip-wit:url(\"data:image/svg+xml,%3csvg id='paperclip' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M21.88%2c8.94%2c10%2c20.6A4.63%2c4.63%2c0%2c0%2c1%2c6.62%2c22h0a5.78%2c5.78%2c0%2c0%2c1-4.05-1.81%2c5.34%2c5.34%2c0%2c0%2c1%2c0-7.56l9.3-9.26a1%2c1%2c0%2c1%2c1%2c1.48%2c1.48l-9.3%2c9.26h0a3.26%2c3.26%2c0%2c0%2c0%2c0%2c4.6%2c3.79%2c3.79%2c0%2c0%2c0%2c2.58%2c1.21%2c2.55%2c2.55%2c0%2c0%2c0%2c1.85-.81h0L20.4%2c7.46a1.83%2c1.83%2c0%2c0%2c0%2c.5-1.39%2c2.24%2c2.24%2c0%2c0%2c0-.63-1.44%2c1.85%2c1.85%2c0%2c0%2c0-2.61%2c0h0L7.43%2c14.73a.48.48%2c0%2c0%2c0%2c0%2c.67.48.48%2c0%2c0%2c0%2c.34.14.46.46%2c0%2c0%2c0%2c.34-.14l7.36-7.28a1%2c1%2c0%2c0%2c1%2c1.48%2c0A1%2c1%2c0%2c0%2c1%2c17%2c9.6h0L9.6%2c16.88h0a2.66%2c2.66%2c0%2c0%2c1-3.65%2c0%2c2.55%2c2.55%2c0%2c0%2c1%2c0-3.63L16.17%2c3.15a4%2c4%2c0%2c0%2c1%2c5.59%2c0A4.31%2c4.31%2c0%2c0%2c1%2c23%2c6%2c3.89%2c3.89%2c0%2c0%2c1%2c21.88%2c8.94Z'/%3e %3c/svg%3e\")}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-attachments{color:var(--dso-attachments-counter-color, #666);display:inline-block;font-weight:400;text-decoration:none;white-space:nowrap;}.dso-attachments::after{background:var(--dso-icon, var(--di-paperclip-grijs)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;content:\"\";display:inline-block}";
7
+ const attachmentsCounterCss = ":host{display:inline-block;--di-paperclip-grijs:url(\"data:image/svg+xml,%3csvg id='paperclip' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23666%3b'%3e %3cpath fill='currentColor' d='M21.88%2c8.94%2c10%2c20.6A4.63%2c4.63%2c0%2c0%2c1%2c6.62%2c22h0a5.78%2c5.78%2c0%2c0%2c1-4.05-1.81%2c5.34%2c5.34%2c0%2c0%2c1%2c0-7.56l9.3-9.26a1%2c1%2c0%2c1%2c1%2c1.48%2c1.48l-9.3%2c9.26h0a3.26%2c3.26%2c0%2c0%2c0%2c0%2c4.6%2c3.79%2c3.79%2c0%2c0%2c0%2c2.58%2c1.21%2c2.55%2c2.55%2c0%2c0%2c0%2c1.85-.81h0L20.4%2c7.46a1.83%2c1.83%2c0%2c0%2c0%2c.5-1.39%2c2.24%2c2.24%2c0%2c0%2c0-.63-1.44%2c1.85%2c1.85%2c0%2c0%2c0-2.61%2c0h0L7.43%2c14.73a.48.48%2c0%2c0%2c0%2c0%2c.67.48.48%2c0%2c0%2c0%2c.34.14.46.46%2c0%2c0%2c0%2c.34-.14l7.36-7.28a1%2c1%2c0%2c0%2c1%2c1.48%2c0A1%2c1%2c0%2c0%2c1%2c17%2c9.6h0L9.6%2c16.88h0a2.66%2c2.66%2c0%2c0%2c1-3.65%2c0%2c2.55%2c2.55%2c0%2c0%2c1%2c0-3.63L16.17%2c3.15a4%2c4%2c0%2c0%2c1%2c5.59%2c0A4.31%2c4.31%2c0%2c0%2c1%2c23%2c6%2c3.89%2c3.89%2c0%2c0%2c1%2c21.88%2c8.94Z'/%3e %3c/svg%3e\");--di-paperclip-wit:url(\"data:image/svg+xml,%3csvg id='paperclip' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M21.88%2c8.94%2c10%2c20.6A4.63%2c4.63%2c0%2c0%2c1%2c6.62%2c22h0a5.78%2c5.78%2c0%2c0%2c1-4.05-1.81%2c5.34%2c5.34%2c0%2c0%2c1%2c0-7.56l9.3-9.26a1%2c1%2c0%2c1%2c1%2c1.48%2c1.48l-9.3%2c9.26h0a3.26%2c3.26%2c0%2c0%2c0%2c0%2c4.6%2c3.79%2c3.79%2c0%2c0%2c0%2c2.58%2c1.21%2c2.55%2c2.55%2c0%2c0%2c0%2c1.85-.81h0L20.4%2c7.46a1.83%2c1.83%2c0%2c0%2c0%2c.5-1.39%2c2.24%2c2.24%2c0%2c0%2c0-.63-1.44%2c1.85%2c1.85%2c0%2c0%2c0-2.61%2c0h0L7.43%2c14.73a.48.48%2c0%2c0%2c0%2c0%2c.67.48.48%2c0%2c0%2c0%2c.34.14.46.46%2c0%2c0%2c0%2c.34-.14l7.36-7.28a1%2c1%2c0%2c0%2c1%2c1.48%2c0A1%2c1%2c0%2c0%2c1%2c17%2c9.6h0L9.6%2c16.88h0a2.66%2c2.66%2c0%2c0%2c1-3.65%2c0%2c2.55%2c2.55%2c0%2c0%2c1%2c0-3.63L16.17%2c3.15a4%2c4%2c0%2c0%2c1%2c5.59%2c0A4.31%2c4.31%2c0%2c0%2c1%2c23%2c6%2c3.89%2c3.89%2c0%2c0%2c1%2c21.88%2c8.94Z'/%3e %3c/svg%3e\")}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-attachments{color:var(--dso-attachments-counter-color, #666);display:inline-block;font-weight:400;text-decoration:none;white-space:nowrap}.dso-attachments::after{background:var(--dso-icon, var(--di-paperclip-grijs)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;content:\"\";display:inline-block}";
8
8
 
9
9
  let AttachmentsCounter = class {
10
10
  constructor(hostRef) {
@@ -2,78 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-fcdfdd38.js');
5
+ const index = require('./index-5ea63531.js');
6
+ const index$1 = require('./index-794ad37a.js');
6
7
  const v4 = require('./v4-8e8d6fbc.js');
7
8
 
8
- /**
9
- * Returns a function, that, as long as it continues to be invoked, will not
10
- * be triggered. The function will be called after it stops being called for
11
- * N milliseconds. If `immediate` is passed, trigger the function on the
12
- * leading edge, instead of the trailing. The function also has a property 'clear'
13
- * that is a function which will clear the timer to prevent previously scheduled executions.
14
- *
15
- * @source underscore.js
16
- * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
17
- * @param {Function} function to wrap
18
- * @param {Number} timeout in ms (`100`)
19
- * @param {Boolean} whether to execute at the beginning (`false`)
20
- * @api public
21
- */
22
- function debounce(func, wait, immediate){
23
- var timeout, args, context, timestamp, result;
24
- if (null == wait) wait = 100;
25
-
26
- function later() {
27
- var last = Date.now() - timestamp;
28
-
29
- if (last < wait && last >= 0) {
30
- timeout = setTimeout(later, wait - last);
31
- } else {
32
- timeout = null;
33
- if (!immediate) {
34
- result = func.apply(context, args);
35
- context = args = null;
36
- }
37
- }
38
- }
39
- var debounced = function(){
40
- context = this;
41
- args = arguments;
42
- timestamp = Date.now();
43
- var callNow = immediate && !timeout;
44
- if (!timeout) timeout = setTimeout(later, wait);
45
- if (callNow) {
46
- result = func.apply(context, args);
47
- context = args = null;
48
- }
49
-
50
- return result;
51
- };
52
-
53
- debounced.clear = function() {
54
- if (timeout) {
55
- clearTimeout(timeout);
56
- timeout = null;
57
- }
58
- };
59
-
60
- debounced.flush = function() {
61
- if (timeout) {
62
- result = func.apply(context, args);
63
- context = args = null;
64
-
65
- clearTimeout(timeout);
66
- timeout = null;
67
- }
68
- };
69
-
70
- return debounced;
71
- }
72
- // Adds compatibility for ES modules
73
- debounce.debounce = debounce;
74
-
75
- var debounce_1 = debounce;
76
-
77
9
  function escapeStringRegexp(string) {
78
10
  if (typeof string !== 'string') {
79
11
  throw new TypeError('Expected a string');
@@ -93,6 +25,7 @@ let Autosuggest = class {
93
25
  index.registerInstance(this, hostRef);
94
26
  this.selectEmitter = index.createEvent(this, "dsoSelect", 7);
95
27
  this.changeEmitter = index.createEvent(this, "dsoChange", 7);
28
+ this.searchEmitter = index.createEvent(this, "dsoSearch", 7);
96
29
  /**
97
30
  * The suggestions for the value of the slotted input element
98
31
  */
@@ -105,7 +38,7 @@ let Autosuggest = class {
105
38
  this.listboxId = v4.v4();
106
39
  this.inputId = v4.v4();
107
40
  this.labelId = v4.v4();
108
- this.debouncedEmitValue = debounce_1((value) => this.changeEmitter.emit(value), 200);
41
+ this.debouncedEmitValue = index$1.debounce_1((value) => this.changeEmitter.emit(value), 200);
109
42
  this.onInput = (event) => {
110
43
  if (!(event.target instanceof HTMLInputElement)) {
111
44
  throw new Error("event.target is not instanceof HTMLInputElement");
@@ -279,9 +212,12 @@ let Autosuggest = class {
279
212
  this.selectFirstSuggestion();
280
213
  }
281
214
  pickSelectedValue() {
282
- if (this.selectedSuggestion) {
215
+ if (this.selectedSuggestion && this.showSuggestions) {
283
216
  this.selectEmitter.emit(this.selectedSuggestion);
284
217
  }
218
+ else {
219
+ this.searchEmitter.emit(this.input.value);
220
+ }
285
221
  this.closeSuggestions();
286
222
  }
287
223
  listboxItemId(suggestion) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-fcdfdd38.js');
5
+ const index = require('./index-5ea63531.js');
6
6
  const clsx_m = require('./clsx.m-b00fa5e1.js');
7
7
 
8
8
  const badgeCss = ":host{display:inline-block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-badge{background-color:#666;border-radius:1em;color:#fff;display:inline-block;font-size:0.875em;line-height:1em;padding:4px 8px}.dso-badge.badge-info{background-color:#6ca4d9;color:#191919}.dso-badge.badge-primary{background-color:#275937;color:#fff}.dso-badge.badge-success{background-color:#39870c;color:#fff}.dso-badge.badge-warning{background-color:#dcd400;color:#191919}.dso-badge.badge-danger{background-color:#ce3f51;color:#fff}";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-fcdfdd38.js');
5
+ const index = require('./index-5ea63531.js');
6
6
  const clsx_m = require('./clsx.m-b00fa5e1.js');
7
7
 
8
8
  const bannerCss = ":host{display:block;--di-status-danger:url(\"data:image/svg+xml,%3csvg id='status-danger-line' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e %3cg%3e %3cpath d='M22.6%2c18.51c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4a1.7%2c1.7%2c0%2c0%2c1%2c3.12%2c0Z' style='fill: %23ce3f51'/%3e %3cpath d='M12%2c3a1.9%2c1.9%2c0%2c0%2c1%2c1.56%2c1l9%2c14.48c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4A1.9%2c1.9%2c0%2c0%2c1%2c12%2c3m0-1A2.89%2c2.89%2c0%2c0%2c0%2c9.6%2c3.5L.55%2c18a2.75%2c2.75%2c0%2c0%2c0-.28%2c2.81A2.59%2c2.59%2c0%2c0%2c0%2c2.65%2c22h18.7a2.59%2c2.59%2c0%2c0%2c0%2c2.38-1.21A2.75%2c2.75%2c0%2c0%2c0%2c23.45%2c18L14.4%2c3.5A2.89%2c2.89%2c0%2c0%2c0%2c12%2c2Z' style='fill: white'/%3e %3c/g%3e %3cpath d='M12%2c16a1%2c1%2c0%2c0%2c1-1-.91V8.91a1%2c1%2c0%2c0%2c1%2c2%2c0v6.18A1%2c1%2c0%2c0%2c1%2c12%2c16Zm0%2c1a1%2c1%2c0%2c1%2c0%2c1%2c1A1%2c1%2c0%2c0%2c0%2c12%2c17Z' style='fill: white'/%3e %3c/svg%3e\");--di-status-warning:url(\"data:image/svg+xml,%3csvg id='status-warning' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e %3cg%3e %3cpath d='M22.6%2c18.51c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4a1.7%2c1.7%2c0%2c0%2c1%2c3.12%2c0Z' style='fill: %23dcd400'/%3e %3cpath d='M12%2c3a1.9%2c1.9%2c0%2c0%2c1%2c1.56%2c1l9%2c14.48c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4A1.9%2c1.9%2c0%2c0%2c1%2c12%2c3m0-1A2.89%2c2.89%2c0%2c0%2c0%2c9.6%2c3.5L.55%2c18a2.75%2c2.75%2c0%2c0%2c0-.28%2c2.81A2.59%2c2.59%2c0%2c0%2c0%2c2.65%2c22h18.7a2.59%2c2.59%2c0%2c0%2c0%2c2.38-1.21A2.75%2c2.75%2c0%2c0%2c0%2c23.45%2c18L14.4%2c3.5A2.89%2c2.89%2c0%2c0%2c0%2c12%2c2Z' style='fill: white'/%3e %3c/g%3e %3cpath d='M11.73%2c15.85a1%2c1%2c0%2c0%2c1-1-.91V8.76a1%2c1%2c0%2c0%2c1%2c2%2c0v6.18A1%2c1%2c0%2c0%2c1%2c11.73%2c15.85Zm0%2c1a1%2c1%2c0%2c1%2c0%2c1%2c1A1%2c1%2c0%2c0%2c0%2c11.73%2c16.85Z'/%3e %3c/svg%3e\");--di-download-grijs90:url(\"data:image/svg+xml,%3csvg id='download' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M18.72%2c10.44%2c12%2c17l-6.7-6.52C4.8%2c10%2c5%2c9.63%2c5.63%2c9.63H8.5V1.82A.8.8%2c0%2c0%2c1%2c9.28%2c1h5.44a.8.8%2c0%2c0%2c1%2c.78.82V9.61h2.87C19%2c9.6%2c19.2%2c10%2c18.72%2c10.44ZM1%2c17v6H23V17Zm16%2c3a2%2c2%2c0%2c1%2c1-2-2A2%2c2%2c0%2c0%2c1%2c17%2c20Zm5%2c0a2%2c2%2c0%2c1%2c1-2-2A2%2c2%2c0%2c0%2c1%2c22%2c20Z'/%3e %3c/svg%3e\");--di-external-link-grijs90:url(\"data:image/svg+xml,%3csvg id='external-link' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M19%2c6V9.69c0%2c.33-.2.41-.43.17L17.06%2c8.35l-3.35%2c3.36a1%2c1%2c0%2c0%2c1-1.42%2c0%2c1%2c1%2c0%2c0%2c1%2c0-1.42l3.36-3.35L14.14%2c5.43C13.9%2c5.19%2c14%2c5%2c14.31%2c5H19V6ZM18%2c17V13a1%2c1%2c0%2c0%2c0-2%2c0v4a1%2c1%2c0%2c0%2c1-1%2c1H7a1%2c1%2c0%2c0%2c1-1-1V9A1%2c1%2c0%2c0%2c1%2c7%2c8h4a1%2c1%2c0%2c0%2c0%2c0-2H7A3%2c3%2c0%2c0%2c0%2c4%2c9v8a3%2c3%2c0%2c0%2c0%2c3%2c3h8A3%2c3%2c0%2c0%2c0%2c18%2c17Z'/%3e %3c/svg%3e\")}*,*::after,*::before{box-sizing:border-box}.dso-banner{padding:16px 0;position:relative}";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-fcdfdd38.js');
5
+ const index = require('./index-5ea63531.js');
6
6
  const createIdentifier = require('./create-identifier-fa070b11.js');
7
7
 
8
8
  var DaysOfWeek;
@@ -244,7 +244,7 @@ const localization = {
244
244
  ]
245
245
  };
246
246
 
247
- const datePickerCss = ":host{display:block}.dso-date *,.dso-date *::before,.dso-date *::after{box-sizing:border-box}.dso-date{box-sizing:border-box;color:#191919;display:block;font-family:\"Asap\", sans-serif;margin:0;position:relative;text-align:left;width:100%}.dso-date__input{display:block;width:100%;height:40px;padding:6px 14px;font-size:16px;line-height:1.5;color:#191919;background-color:#fff;background-image:none;border:1px solid #275937;border-radius:4px;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s}.dso-date__input::-moz-placeholder{color:#666;opacity:1}.dso-date__input:-ms-input-placeholder{color:#666}.dso-date__input::-webkit-input-placeholder{color:#666}.dso-date__input::-ms-expand{background-color:transparent;border:0}.dso-date__input:focus{border-color:#275937;outline:0;box-shadow:inset 0 0 0 1px #275937}.dso-date__input[disabled],.dso-date__input[readonly],fieldset[disabled] .dso-date__input{background-color:#fff;opacity:1}.dso-date__input[disabled],fieldset[disabled] .dso-date__input{cursor:default}.dso-date__input[disabled]{border-color:#e5e5e5;color:#999}.dso-date__input[readonly]{border-width:1px}.dso-date__input[type=text]{line-height:40px}.dso-date__input[size]{width:auto}.dso-date__toggle{-moz-appearance:none;-webkit-appearance:none;-webkit-user-select:none;align-items:center;appearance:none;background:transparent;border:0;border-radius:0;border-bottom-right-radius:4px;border-top-right-radius:4px;color:#39870c;cursor:pointer;display:flex;height:38px;justify-content:center;padding:0;position:absolute;right:0;transform:translateY(-50%);top:50%;user-select:none;width:38px;z-index:2}.dso-date__toggle:disabled{color:#afcf9d;cursor:pointer}.dso-date__dialog{display:flex;right:0;min-width:320px;opacity:0;position:absolute;top:100%;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;visibility:hidden;will-change:transform, opacity, visibility;z-index:600}@media (max-width: 35.9375em){.dso-date__dialog{background:rgba(25, 25, 25, 0.5);bottom:0;position:fixed;left:0;right:0;top:0;transform:translateZ(0);transform-origin:bottom center}}.dso-date__dialog.is-left{left:auto;right:0;width:auto}.dso-date__dialog.is-active{opacity:1;transform:scale(1.0001) translateZ(0) translateY(0);visibility:visible}.dso-date__dialog-content{background:#fff;border:1px solid rgba(0, 0, 0, 0.1);border-radius:4px;box-shadow:0 8px 10px 1px rgba(0, 0, 0, 0.4);margin-left:auto;margin-right:-1px;margin-top:8px;max-width:310px;min-width:290px;padding:16px;position:relative;transform:none;width:100%;z-index:600}@media (max-width: 35.9375em){.dso-date__dialog-content{border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;bottom:0;left:0;margin:0;max-width:none;min-height:26em;opacity:0;padding:0 8% 20px;position:absolute;transform:translateZ(0) translateY(100%);transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;visibility:hidden;will-change:transform, opacity, visibility}.is-active .dso-date__dialog-content{opacity:1;transform:translateZ(0) translateY(0);visibility:visible}}.dso-date__table{border-collapse:collapse;border-spacing:0;color:#191919;font-size:1rem;font-weight:400;line-height:1.25;min-width:280px;table-layout:fixed;text-align:center;width:100%}.dso-date__table-header{font-size:0.875em;font-weight:600;height:36px;line-height:36px;text-decoration:none;text-transform:uppercase}.dso-date__cell{height:40px;padding:1px;text-align:center;width:40px}.dso-date__day{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;border-radius:50%;box-shadow:0 0 0 1px transparent;color:#191919;cursor:pointer;display:inline-block;font-family:\"Asap\", sans-serif;font-variant-numeric:tabular-nums;font-weight:400;height:38px;line-height:0;padding:0;position:relative;text-align:center;vertical-align:middle;width:38px;z-index:1}.dso-date__day.is-today{background:transparent;height:36px;box-shadow:0 0 0 1px #39870c;width:36px}.dso-date__day:hover,.dso-date__day:active{background:#39870c;color:#fff}.dso-date__day:focus{background:transparent;box-shadow:0 0 0 2px #275937;color:#191919;height:34px;outline:0;width:34px}[aria-selected=true] .dso-date__day{background:#39870c;color:#fff}[aria-selected=true] .dso-date__day:focus{background:transparent}[aria-selected=true] .dso-date__day:focus span[aria-hidden=true]{background:#39870c;border:1px solid #fff;line-height:32px}.dso-date__day.is-outside{background:#f2f2f2;box-shadow:none;color:#666;cursor:default;pointer-events:none}.dso-date__day.is-disabled{background:#fff;cursor:default}.dso-date__day.is-disabled:hover{color:#666}.dso-date__day span[aria-hidden=true]{border-radius:50%;display:inline-block;height:34px;line-height:34px;width:34px}.dso-date__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px;width:100%}.dso-date__header span{font-size:0.875rem}.dso-date__nav{white-space:nowrap}.dso-date__prev,.dso-date__next{-moz-appearance:none;-webkit-appearance:none;align-items:center;appearance:none;background:transparent;border:1px solid #39870c;border-radius:4px;box-sizing:border-box;color:#39870c;cursor:pointer;display:inline-flex;font-size:1em;height:32px;justify-content:center;margin-left:8px;padding:0;width:32px}@media (max-width: 35.9375em){.dso-date__prev,.dso-date__next{height:40px;width:40px}}.dso-date__prev:hover,.dso-date__prev:active,.dso-date__next:hover,.dso-date__next:active{background-color:#39870c;color:#fff}.dso-date__prev:focus,.dso-date__next:focus{background:transparent;color:#39870c}.dso-date__prev:disabled,.dso-date__prev:disabled:hover,.dso-date__next:disabled,.dso-date__next:disabled:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d;opacity:1}.dso-date__prev svg,.dso-date__next svg{margin:0 auto}.dso-date__select{display:inline-flex;height:28px;line-height:28px;position:relative}.dso-date__select span{margin-right:4px}.dso-date__select select{color:#275937;cursor:pointer;font-size:1rem;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:2}.dso-date__select select:focus+.dso-date__select-label{box-shadow:0 0 0 2px #275937}.dso-date__select select:disabled{color:#afcf9d}.dso-date__select-label{align-items:center;border-radius:4px;color:#39870c;display:flex;padding:0 4px 0 8px;pointer-events:none;position:relative;width:100%;z-index:1}.dso-date__select-label span{font-size:1.25rem;font-weight:600;line-height:1.25}.dso-date__select-label svg{width:16px;height:16px}.dso-date__mobile{align-items:center;border-bottom:1px solid rgba(0, 0, 0, 0.12);display:flex;font-size:1em;justify-content:space-between;margin-bottom:20px;margin-left:-10%;overflow:hidden;padding:12px 20px;position:relative;text-overflow:ellipsis;white-space:nowrap;width:120%}@media (min-width: 36em){.dso-date__mobile{border:0;margin:0;overflow:visible;padding:0;position:absolute;right:-16px;top:-16px;width:auto}}.dso-date__mobile-heading{display:inline-block;font-weight:600;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.dso-date__mobile-heading{display:none}}.dso-date__close{-webkit-appearance:none;align-items:center;appearance:none;background-color:#fff;border:0;border-radius:50%;color:#39870c;cursor:pointer;display:flex;font-size:1em;height:32px;justify-content:center;margin-right:-4px;padding:0;width:32px}@media (min-width: 36em){.dso-date__close{margin-right:0;opacity:0}}.dso-date__close:focus{box-shadow:0 0 0 2px #275937;outline:none}@media (min-width: 36em){.dso-date__close:focus{opacity:1}}.dso-date__vhidden{border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;padding:0;position:absolute;top:0;width:1px}";
247
+ const datePickerCss = ".sc-dso-date-picker-h{display:block}.dso-date.sc-dso-date-picker *.sc-dso-date-picker,.dso-date.sc-dso-date-picker *.sc-dso-date-picker::before,.dso-date.sc-dso-date-picker *.sc-dso-date-picker::after{box-sizing:border-box}.dso-date.sc-dso-date-picker{box-sizing:border-box;color:#191919;display:block;font-family:\"Asap\", sans-serif;margin:0;position:relative;text-align:left;width:100%}.dso-date__input.sc-dso-date-picker{display:block;width:100%;height:40px;padding:6px 14px;font-size:16px;line-height:1.5;color:#191919;background-color:#fff;background-image:none;border:1px solid #275937;border-radius:4px;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s}.dso-date__input.sc-dso-date-picker::-moz-placeholder{color:#666;opacity:1}.dso-date__input.sc-dso-date-picker:-ms-input-placeholder{color:#666}.dso-date__input.sc-dso-date-picker::-webkit-input-placeholder{color:#666}.dso-date__input.sc-dso-date-picker::-ms-expand{background-color:transparent;border:0}.dso-date__input.sc-dso-date-picker:focus{border-color:#275937;outline:0;box-shadow:inset 0 0 0 1px #275937}.dso-date__input[disabled].sc-dso-date-picker,.dso-date__input[readonly].sc-dso-date-picker,fieldset[disabled].sc-dso-date-picker .dso-date__input.sc-dso-date-picker{background-color:#fff;opacity:1}.dso-date__input[disabled].sc-dso-date-picker,fieldset[disabled].sc-dso-date-picker .dso-date__input.sc-dso-date-picker{cursor:default}.dso-date__input[disabled].sc-dso-date-picker{border-color:#e5e5e5;color:#999}.dso-date__input[readonly].sc-dso-date-picker{border-width:1px}.dso-date__input[type=text].sc-dso-date-picker{line-height:40px}.dso-date__input[size].sc-dso-date-picker{width:auto}.dso-date__toggle.sc-dso-date-picker{-moz-appearance:none;-webkit-appearance:none;-webkit-user-select:none;align-items:center;appearance:none;background:transparent;border:0;border-radius:0;border-bottom-right-radius:4px;border-top-right-radius:4px;color:#39870c;cursor:pointer;display:flex;height:38px;justify-content:center;padding:0;position:absolute;right:0;transform:translateY(-50%);top:50%;user-select:none;width:38px;z-index:2}.dso-date__toggle.sc-dso-date-picker:disabled{color:#afcf9d;cursor:pointer}.dso-date__dialog.sc-dso-date-picker{display:flex;right:0;min-width:320px;opacity:0;position:absolute;top:100%;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;visibility:hidden;will-change:transform, opacity, visibility;z-index:600}@media (max-width: 35.9375em){.dso-date__dialog.sc-dso-date-picker{background:rgba(25, 25, 25, 0.5);bottom:0;position:fixed;left:0;right:0;top:0;transform:translateZ(0);transform-origin:bottom center}}.dso-date__dialog.is-left.sc-dso-date-picker{left:auto;right:0;width:auto}.dso-date__dialog.is-active.sc-dso-date-picker{opacity:1;transform:scale(1.0001) translateZ(0) translateY(0);visibility:visible}.dso-date__dialog-content.sc-dso-date-picker{background:#fff;border:1px solid rgba(0, 0, 0, 0.1);border-radius:4px;box-shadow:0 8px 10px 1px rgba(0, 0, 0, 0.4);margin-left:auto;margin-right:-1px;margin-top:8px;max-width:310px;min-width:290px;padding:16px;position:relative;transform:none;width:100%;z-index:600}@media (max-width: 35.9375em){.dso-date__dialog-content.sc-dso-date-picker{border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;bottom:0;left:0;margin:0;max-width:none;min-height:26em;opacity:0;padding:0 8% 20px;position:absolute;transform:translateZ(0) translateY(100%);transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;visibility:hidden;will-change:transform, opacity, visibility}.is-active.sc-dso-date-picker .dso-date__dialog-content.sc-dso-date-picker{opacity:1;transform:translateZ(0) translateY(0);visibility:visible}}.dso-date__table.sc-dso-date-picker{border-collapse:collapse;border-spacing:0;color:#191919;font-size:1rem;font-weight:400;line-height:1.25;min-width:280px;table-layout:fixed;text-align:center;width:100%}.dso-date__table-header.sc-dso-date-picker{font-size:0.875em;font-weight:600;height:36px;line-height:36px;text-decoration:none;text-transform:uppercase}.dso-date__cell.sc-dso-date-picker{height:40px;padding:1px;text-align:center;width:40px}.dso-date__day.sc-dso-date-picker{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;border-radius:50%;box-shadow:0 0 0 1px transparent;color:#191919;cursor:pointer;display:inline-block;font-family:\"Asap\", sans-serif;font-variant-numeric:tabular-nums;font-weight:400;height:38px;line-height:0;padding:0;position:relative;text-align:center;vertical-align:middle;width:38px;z-index:1}.dso-date__day.is-today.sc-dso-date-picker{background:transparent;height:36px;box-shadow:0 0 0 1px #39870c;width:36px}.dso-date__day.sc-dso-date-picker:hover,.dso-date__day.sc-dso-date-picker:active{background:#39870c;color:#fff}.dso-date__day.sc-dso-date-picker:focus{background:transparent;box-shadow:0 0 0 2px #275937;color:#191919;height:34px;outline:0;width:34px}[aria-selected=true].sc-dso-date-picker .dso-date__day.sc-dso-date-picker{background:#39870c;color:#fff}[aria-selected=true].sc-dso-date-picker .dso-date__day.sc-dso-date-picker:focus{background:transparent}[aria-selected=true].sc-dso-date-picker .dso-date__day.sc-dso-date-picker:focus span[aria-hidden=true].sc-dso-date-picker{background:#39870c;border:1px solid #fff;line-height:32px}.dso-date__day.is-outside.sc-dso-date-picker{background:#f2f2f2;box-shadow:none;color:#666;cursor:default;pointer-events:none}.dso-date__day.is-disabled.sc-dso-date-picker{background:#fff;cursor:default}.dso-date__day.is-disabled.sc-dso-date-picker:hover{color:#666}.dso-date__day.sc-dso-date-picker span[aria-hidden=true].sc-dso-date-picker{border-radius:50%;display:inline-block;height:34px;line-height:34px;width:34px}.dso-date__header.sc-dso-date-picker{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px;width:100%}.dso-date__header.sc-dso-date-picker span.sc-dso-date-picker{font-size:0.875rem}.dso-date__nav.sc-dso-date-picker{white-space:nowrap}.dso-date__prev.sc-dso-date-picker,.dso-date__next.sc-dso-date-picker{-moz-appearance:none;-webkit-appearance:none;align-items:center;appearance:none;background:transparent;border:1px solid #39870c;border-radius:4px;box-sizing:border-box;color:#39870c;cursor:pointer;display:inline-flex;font-size:1em;height:32px;justify-content:center;margin-left:8px;padding:0;width:32px}@media (max-width: 35.9375em){.dso-date__prev.sc-dso-date-picker,.dso-date__next.sc-dso-date-picker{height:40px;width:40px}}.dso-date__prev.sc-dso-date-picker:hover,.dso-date__prev.sc-dso-date-picker:active,.dso-date__next.sc-dso-date-picker:hover,.dso-date__next.sc-dso-date-picker:active{background-color:#39870c;color:#fff}.dso-date__prev.sc-dso-date-picker:focus,.dso-date__next.sc-dso-date-picker:focus{background:transparent;color:#39870c}.dso-date__prev.sc-dso-date-picker:disabled,.dso-date__prev.sc-dso-date-picker:disabled:hover,.dso-date__next.sc-dso-date-picker:disabled,.dso-date__next.sc-dso-date-picker:disabled:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d;opacity:1}.dso-date__prev.sc-dso-date-picker svg.sc-dso-date-picker,.dso-date__next.sc-dso-date-picker svg.sc-dso-date-picker{margin:0 auto}.dso-date__select.sc-dso-date-picker{display:inline-flex;height:28px;line-height:28px;position:relative}.dso-date__select.sc-dso-date-picker span.sc-dso-date-picker{margin-right:4px}.dso-date__select.sc-dso-date-picker select.sc-dso-date-picker{color:#275937;cursor:pointer;font-size:1rem;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:2}.dso-date__select.sc-dso-date-picker select.sc-dso-date-picker:focus+.dso-date__select-label.sc-dso-date-picker{box-shadow:0 0 0 2px #275937}.dso-date__select.sc-dso-date-picker select.sc-dso-date-picker:disabled{color:#afcf9d}.dso-date__select-label.sc-dso-date-picker{align-items:center;border-radius:4px;color:#39870c;display:flex;padding:0 4px 0 8px;pointer-events:none;position:relative;width:100%;z-index:1}.dso-date__select-label.sc-dso-date-picker span.sc-dso-date-picker{font-size:1.25rem;font-weight:600;line-height:1.25}.dso-date__select-label.sc-dso-date-picker svg.sc-dso-date-picker{width:16px;height:16px}.dso-date__mobile.sc-dso-date-picker{align-items:center;border-bottom:1px solid rgba(0, 0, 0, 0.12);display:flex;font-size:1em;justify-content:space-between;margin-bottom:20px;margin-left:-10%;overflow:hidden;padding:12px 20px;position:relative;text-overflow:ellipsis;white-space:nowrap;width:120%}@media (min-width: 36em){.dso-date__mobile.sc-dso-date-picker{border:0;margin:0;overflow:visible;padding:0;position:absolute;right:-16px;top:-16px;width:auto}}.dso-date__mobile-heading.sc-dso-date-picker{display:inline-block;font-weight:600;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.dso-date__mobile-heading.sc-dso-date-picker{display:none}}.dso-date__close.sc-dso-date-picker{-webkit-appearance:none;align-items:center;appearance:none;background-color:#fff;border:0;border-radius:50%;color:#39870c;cursor:pointer;display:flex;font-size:1em;height:32px;justify-content:center;margin-right:-4px;padding:0;width:32px}@media (min-width: 36em){.dso-date__close.sc-dso-date-picker{margin-right:0;opacity:0}}.dso-date__close.sc-dso-date-picker:focus{box-shadow:0 0 0 2px #275937;outline:none}@media (min-width: 36em){.dso-date__close.sc-dso-date-picker:focus{opacity:1}}.dso-date__vhidden.sc-dso-date-picker{border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;padding:0;position:absolute;top:0;width:1px}";
248
248
 
249
249
  function range(from, to) {
250
250
  var result = [];
@@ -478,8 +478,7 @@ let DsoDatePicker = class {
478
478
  };
479
479
  this.handleInputChange = (e) => {
480
480
  const target = e.target;
481
- target.value = target.value.replace(DISALLOWED_CHARACTERS, "");
482
- this.setValue(target.value);
481
+ this.setValue(target.value.replace(DISALLOWED_CHARACTERS, ""));
483
482
  };
484
483
  this.processFocusedDayNode = (element) => {
485
484
  this.focusedDayNode = element;
@@ -492,13 +491,12 @@ let DsoDatePicker = class {
492
491
  * Component event handling.
493
492
  */
494
493
  handleDocumentClick(e) {
495
- var _a;
496
494
  if (!this.open) {
497
495
  return;
498
496
  }
499
497
  const path = e.composedPath();
500
498
  for (const target of path) {
501
- if (target instanceof Node && ((_a = this.element.shadowRoot) === null || _a === void 0 ? void 0 : _a.contains(target))) {
499
+ if (target instanceof Node && this.element.contains(target)) {
502
500
  return;
503
501
  }
504
502
  }
@@ -585,10 +583,7 @@ let DsoDatePicker = class {
585
583
  event.valueAsDate = parseDutchDate(value);
586
584
  }
587
585
  if (event.valueAsDate) {
588
- event.value = this.value = printDutchDate(event.valueAsDate);
589
- }
590
- else {
591
- this.value = "";
586
+ event.value = printDutchDate(event.valueAsDate);
592
587
  }
593
588
  if (!event.valueAsDate && this.required) {
594
589
  event.error = "required";
@@ -596,9 +591,14 @@ let DsoDatePicker = class {
596
591
  if (event.value && !event.valueAsDate) {
597
592
  event.error = "invalid";
598
593
  }
594
+ this.value = event.value;
599
595
  this.dateChange.emit(event);
600
596
  }
601
597
  componentDidLoad() {
598
+ const valueAsDate = parseDutchDate(this.value);
599
+ if (valueAsDate) {
600
+ this.value = printDutchDate(valueAsDate);
601
+ }
602
602
  if (this.dsoAutofocus) {
603
603
  this.setFocus();
604
604
  }
@@ -625,7 +625,7 @@ let DsoDatePicker = class {
625
625
  if (maxDate) {
626
626
  maxYear = Math.min(maxYear, maxDate.getFullYear());
627
627
  }
628
- return (index.h(index.Host, null, index.h("div", { class: "dso-date" }, index.h("div", { class: "dso-date__input-wrapper" }, index.h("input", { class: "dso-date__input", value: formattedDate, placeholder: this.localization.placeholder, id: this.identifier, disabled: this.disabled, role: this.role, required: this.required ? true : undefined, "aria-autocomplete": "none", onInput: this.handleInputChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyUp: this.handleKeyUp, onKeyDown: this.handleKeyDown, autoComplete: "off", ref: element => (this.datePickerInput = element) }), index.h("button", { type: "button", class: "dso-date__toggle", onClick: this.toggleOpen, disabled: this.disabled, ref: element => (this.datePickerButton = element) }, index.h("span", { class: "dso-date__toggle-icon" }, index.h("dso-icon", { icon: "calendar" })), index.h("span", { class: "dso-date__vhidden" }, this.localization.buttonLabel, formattedDate && (index.h("span", null, ", ", this.localization.selectedDateMessage, " ", formattedDate))))), index.h("div", { class: {
628
+ return (index.h(index.Host, null, index.h("div", { class: "dso-date" }, index.h("div", { class: "dso-date__input-wrapper" }, index.h("input", { class: "dso-date__input", value: this.value, placeholder: this.localization.placeholder, id: this.identifier, disabled: this.disabled, role: this.role, required: this.required ? true : undefined, "aria-autocomplete": "none", onInput: this.handleInputChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyUp: this.handleKeyUp, onKeyDown: this.handleKeyDown, autoComplete: "off", ref: element => (this.datePickerInput = element) }), index.h("button", { type: "button", class: "dso-date__toggle", onClick: this.toggleOpen, disabled: this.disabled, ref: element => (this.datePickerButton = element) }, index.h("span", { class: "dso-date__toggle-icon" }, index.h("dso-icon", { icon: "calendar" })), index.h("span", { class: "dso-date__vhidden" }, this.localization.buttonLabel, formattedDate && (index.h("span", null, ", ", this.localization.selectedDateMessage, " ", formattedDate))))), index.h("div", { class: {
629
629
  "dso-date__dialog": true,
630
630
  "is-left": this.direction === "left",
631
631
  "is-active": this.open,
@@ -2,234 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-fcdfdd38.js');
5
+ const index = require('./index-5ea63531.js');
6
+ const index_esm = require('./index.esm-2ac7081c.js');
6
7
  const v4 = require('./v4-8e8d6fbc.js');
7
8
 
8
- /*!
9
- * tabbable 5.2.1
10
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
11
- */
12
- var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
13
- var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
14
- var matches = typeof Element === 'undefined' ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
15
-
16
- var getCandidates = function getCandidates(el, includeContainer, filter) {
17
- var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
18
-
19
- if (includeContainer && matches.call(el, candidateSelector)) {
20
- candidates.unshift(el);
21
- }
22
-
23
- candidates = candidates.filter(filter);
24
- return candidates;
25
- };
26
-
27
- var isContentEditable = function isContentEditable(node) {
28
- return node.contentEditable === 'true';
29
- };
30
-
31
- var getTabindex = function getTabindex(node) {
32
- var tabindexAttr = parseInt(node.getAttribute('tabindex'), 10);
33
-
34
- if (!isNaN(tabindexAttr)) {
35
- return tabindexAttr;
36
- } // Browsers do not return `tabIndex` correctly for contentEditable nodes;
37
- // so if they don't have a tabindex attribute specifically set, assume it's 0.
38
-
39
-
40
- if (isContentEditable(node)) {
41
- return 0;
42
- } // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
43
- // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
44
- // yet they are still part of the regular tab order; in FF, they get a default
45
- // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
46
- // order, consider their tab index to be 0.
47
-
48
-
49
- if ((node.nodeName === 'AUDIO' || node.nodeName === 'VIDEO' || node.nodeName === 'DETAILS') && node.getAttribute('tabindex') === null) {
50
- return 0;
51
- }
52
-
53
- return node.tabIndex;
54
- };
55
-
56
- var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
57
- return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
58
- };
59
-
60
- var isInput = function isInput(node) {
61
- return node.tagName === 'INPUT';
62
- };
63
-
64
- var isHiddenInput = function isHiddenInput(node) {
65
- return isInput(node) && node.type === 'hidden';
66
- };
67
-
68
- var isDetailsWithSummary = function isDetailsWithSummary(node) {
69
- var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
70
- return child.tagName === 'SUMMARY';
71
- });
72
- return r;
73
- };
74
-
75
- var getCheckedRadio = function getCheckedRadio(nodes, form) {
76
- for (var i = 0; i < nodes.length; i++) {
77
- if (nodes[i].checked && nodes[i].form === form) {
78
- return nodes[i];
79
- }
80
- }
81
- };
82
-
83
- var isTabbableRadio = function isTabbableRadio(node) {
84
- if (!node.name) {
85
- return true;
86
- }
87
-
88
- var radioScope = node.form || node.ownerDocument;
89
-
90
- var queryRadios = function queryRadios(name) {
91
- return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
92
- };
93
-
94
- var radioSet;
95
-
96
- if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
97
- radioSet = queryRadios(window.CSS.escape(node.name));
98
- } else {
99
- try {
100
- radioSet = queryRadios(node.name);
101
- } catch (err) {
102
- // eslint-disable-next-line no-console
103
- console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
104
- return false;
105
- }
106
- }
107
-
108
- var checked = getCheckedRadio(radioSet, node.form);
109
- return !checked || checked === node;
110
- };
111
-
112
- var isRadio = function isRadio(node) {
113
- return isInput(node) && node.type === 'radio';
114
- };
115
-
116
- var isNonTabbableRadio = function isNonTabbableRadio(node) {
117
- return isRadio(node) && !isTabbableRadio(node);
118
- };
119
-
120
- var isHidden = function isHidden(node, displayCheck) {
121
- if (getComputedStyle(node).visibility === 'hidden') {
122
- return true;
123
- }
124
-
125
- var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
126
- var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
127
-
128
- if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
129
- return true;
130
- }
131
-
132
- if (!displayCheck || displayCheck === 'full') {
133
- while (node) {
134
- if (getComputedStyle(node).display === 'none') {
135
- return true;
136
- }
137
-
138
- node = node.parentElement;
139
- }
140
- } else if (displayCheck === 'non-zero-area') {
141
- var _node$getBoundingClie = node.getBoundingClientRect(),
142
- width = _node$getBoundingClie.width,
143
- height = _node$getBoundingClie.height;
144
-
145
- return width === 0 && height === 0;
146
- }
147
-
148
- return false;
149
- }; // form fields (nested) inside a disabled fieldset are not focusable/tabbable
150
- // unless they are in the _first_ <legend> element of the top-most disabled
151
- // fieldset
152
-
153
-
154
- var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
155
- if (isInput(node) || node.tagName === 'SELECT' || node.tagName === 'TEXTAREA' || node.tagName === 'BUTTON') {
156
- var parentNode = node.parentElement;
157
-
158
- while (parentNode) {
159
- if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
160
- // look for the first <legend> as an immediate child of the disabled
161
- // <fieldset>: if the node is in that legend, it'll be enabled even
162
- // though the fieldset is disabled; otherwise, the node is in a
163
- // secondary/subsequent legend, or somewhere else within the fieldset
164
- // (however deep nested) and it'll be disabled
165
- for (var i = 0; i < parentNode.children.length; i++) {
166
- var child = parentNode.children.item(i);
167
-
168
- if (child.tagName === 'LEGEND') {
169
- if (child.contains(node)) {
170
- return false;
171
- } // the node isn't in the first legend (in doc order), so no matter
172
- // where it is now, it'll be disabled
173
-
174
-
175
- return true;
176
- }
177
- } // the node isn't in a legend, so no matter where it is now, it'll be disabled
178
-
179
-
180
- return true;
181
- }
182
-
183
- parentNode = parentNode.parentElement;
184
- }
185
- } // else, node's tabbable/focusable state should not be affected by a fieldset's
186
- // enabled/disabled state
187
-
188
-
189
- return false;
190
- };
191
-
192
- var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
193
- if (node.disabled || isHiddenInput(node) || isHidden(node, options.displayCheck) || // For a details element with a summary, the summary element gets the focus
194
- isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
195
- return false;
196
- }
197
-
198
- return true;
199
- };
200
-
201
- var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
202
- if (!isNodeMatchingSelectorFocusable(options, node) || isNonTabbableRadio(node) || getTabindex(node) < 0) {
203
- return false;
204
- }
205
-
206
- return true;
207
- };
208
-
209
- var tabbable = function tabbable(el, options) {
210
- options = options || {};
211
- var regularTabbables = [];
212
- var orderedTabbables = [];
213
- var candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
214
- candidates.forEach(function (candidate, i) {
215
- var candidateTabindex = getTabindex(candidate);
216
-
217
- if (candidateTabindex === 0) {
218
- regularTabbables.push(candidate);
219
- } else {
220
- orderedTabbables.push({
221
- documentOrder: i,
222
- tabIndex: candidateTabindex,
223
- node: candidate
224
- });
225
- }
226
- });
227
- var tabbableNodes = orderedTabbables.sort(sortOrderedTabbables).map(function (a) {
228
- return a.node;
229
- }).concat(regularTabbables);
230
- return tabbableNodes;
231
- };
232
-
233
9
  const dropdownMenuCss = ":host(:focus){outline:none}:host{--di-check-wit:url(\"data:image/svg+xml,%3csvg id='check' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M10.11%2c18%2c5.29%2c13.31A.92.92%2c0%2c0%2c1%2c5.3%2c12a1%2c1%2c0%2c0%2c1%2c1.41%2c0l3.4%2c3.3%2c7.18-7a1%2c1%2c0%2c0%2c1%2c1.41%2c0%2c.92.92%2c0%2c0%2c1%2c0%2c1.35Z'/%3e %3c/svg%3e\");--di-chevron-down:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-wit:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-wit:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:inline-block;position:relative}";
234
10
 
235
11
  let DropdownMenu = class {
@@ -290,7 +66,7 @@ let DropdownMenu = class {
290
66
  return button;
291
67
  }
292
68
  get tabbables() {
293
- return tabbable(this.host).filter((e) => e !== this.button);
69
+ return index_esm.tabbable(this.host).filter((e) => e !== this.button);
294
70
  }
295
71
  openWatch(open) {
296
72
  if (open) {
@@ -325,12 +101,9 @@ let DropdownMenu = class {
325
101
  this.openPopup();
326
102
  }
327
103
  }
328
- componentDidRender() {
329
- this.host.setAttribute("tabindex", "-1");
330
- }
331
104
  componentWillRender() {
332
105
  for (const li of Array.from(this.host.getElementsByTagName("li"))) {
333
- for (const tab of tabbable(li)) {
106
+ for (const tab of index_esm.tabbable(li)) {
334
107
  tab.setAttribute("role", this.checkable ? "menuitemradio" : "menuitem");
335
108
  if (this.checkable && li.classList.contains("dso-checked")) {
336
109
  tab.setAttribute("aria-checked", "true");
@@ -342,6 +115,7 @@ let DropdownMenu = class {
342
115
  }
343
116
  }
344
117
  openPopup() {
118
+ this.host.setAttribute("tabindex", "-1");
345
119
  this.host.addEventListener("keydown", this.keyDownListener);
346
120
  this.host.addEventListener("focusout", this.focusOutListener);
347
121
  this.button.setAttribute("aria-expanded", "true");
@@ -351,11 +125,24 @@ let DropdownMenu = class {
351
125
  this.host.removeEventListener("keydown", this.keyDownListener);
352
126
  this.host.removeEventListener("focusout", this.focusOutListener);
353
127
  this.button.setAttribute("aria-expanded", "false");
128
+ this.host.removeAttribute("tabindex");
354
129
  this.tabbables.forEach((tabbable) => tabbable.removeEventListener("click", this.escape));
355
130
  }
131
+ getActiveElement(root = document) {
132
+ const activeEl = root.activeElement;
133
+ if (!activeEl) {
134
+ return null;
135
+ }
136
+ if (activeEl.shadowRoot) {
137
+ return this.getActiveElement(activeEl.shadowRoot);
138
+ }
139
+ else {
140
+ return activeEl;
141
+ }
142
+ }
356
143
  tabInPopup(direction) {
357
144
  const tabs = this.tabbables;
358
- const currentIndex = tabs.findIndex((e) => e === document.activeElement);
145
+ const currentIndex = tabs.findIndex((e) => e === this.getActiveElement());
359
146
  let nextIndex = currentIndex + direction;
360
147
  if (nextIndex >= tabs.length) {
361
148
  nextIndex = 0;