@dso-toolkit/core 55.0.0 → 56.1.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 (334) hide show
  1. package/dist/cjs/dso-accordion-section.cjs.entry.js +31 -88
  2. package/dist/cjs/dso-accordion-section.cjs.entry.js.map +1 -1
  3. package/dist/cjs/dso-accordion.cjs.entry.js +197 -107
  4. package/dist/cjs/dso-accordion.cjs.entry.js.map +1 -1
  5. package/dist/cjs/dso-alert_5.cjs.entry.js +721 -0
  6. package/dist/cjs/dso-alert_5.cjs.entry.js.map +1 -0
  7. package/dist/cjs/dso-annotation-output_3.cjs.entry.js +143 -0
  8. package/dist/cjs/dso-annotation-output_3.cjs.entry.js.map +1 -0
  9. package/dist/cjs/dso-expandable.cjs.entry.js +16 -35
  10. package/dist/cjs/dso-expandable.cjs.entry.js.map +1 -1
  11. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  12. package/dist/cjs/dso-viewer-grid.cjs.entry.js +1 -1
  13. package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
  14. package/dist/cjs/dsot-document-component-demo.cjs.entry.js +110 -0
  15. package/dist/cjs/dsot-document-component-demo.cjs.entry.js.map +1 -0
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/collection/collection-manifest.json +5 -4
  18. package/dist/collection/components/accordion/accordion.interfaces.js.map +1 -1
  19. package/dist/collection/components/accordion/accordion.js +9 -254
  20. package/dist/collection/components/accordion/accordion.js.map +1 -1
  21. package/dist/collection/components/accordion/components/accordion-section.css +31 -31
  22. package/dist/collection/components/accordion/components/accordion-section.interfaces.js.map +1 -1
  23. package/dist/collection/components/accordion/components/accordion-section.js +69 -127
  24. package/dist/collection/components/accordion/components/accordion-section.js.map +1 -1
  25. package/dist/collection/components/annotation-button/annotation-button.css +1003 -0
  26. package/dist/collection/components/annotation-button/annotation-button.js +48 -7
  27. package/dist/collection/components/annotation-button/annotation-button.js.map +1 -1
  28. package/dist/collection/components/annotation-output/annotation-output.css +2 -2
  29. package/dist/collection/components/annotation-output/annotation-output.js +32 -64
  30. package/dist/collection/components/annotation-output/annotation-output.js.map +1 -1
  31. package/dist/collection/components/document-component/document-component-heading.js +30 -0
  32. package/dist/collection/components/document-component/document-component-heading.js.map +1 -0
  33. package/dist/collection/components/document-component/document-component.css +135 -0
  34. package/dist/collection/components/document-component/document-component.demo.js +112 -0
  35. package/dist/collection/components/document-component/document-component.demo.js.map +1 -0
  36. package/dist/collection/components/document-component/document-component.js +414 -0
  37. package/dist/collection/components/document-component/document-component.js.map +1 -0
  38. package/dist/collection/components/document-component/document-component.types.js +2 -0
  39. package/dist/collection/components/document-component/document-component.types.js.map +1 -0
  40. package/dist/collection/components/expandable/expandable.js +27 -93
  41. package/dist/collection/components/expandable/expandable.js.map +1 -1
  42. package/dist/collection/components/label/label.js +42 -33
  43. package/dist/collection/components/label/label.js.map +1 -1
  44. package/dist/collection/components/ozon-content/ozon-content-mapper.js +9 -1
  45. package/dist/collection/components/ozon-content/ozon-content-mapper.js.map +1 -1
  46. package/dist/collection/components/ozon-content/ozon-content.css +49 -1
  47. package/dist/collection/components/ozon-content/ozon-content.js +1 -1
  48. package/dist/collection/components/ozon-content/ozon-content.js.map +1 -1
  49. package/dist/collection/components/viewer-grid/viewer-grid.js +1 -1
  50. package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
  51. package/dist/{esm/dso-alert.entry.js → components/alert.js} +33 -9
  52. package/dist/components/alert.js.map +1 -0
  53. package/dist/components/annotation-button.js +46 -0
  54. package/dist/components/annotation-button.js.map +1 -0
  55. package/dist/components/annotation-output.js +60 -0
  56. package/dist/components/annotation-output.js.map +1 -0
  57. package/dist/{esm/dso-badge.entry.js → components/badge.js} +26 -9
  58. package/dist/components/badge.js.map +1 -0
  59. package/dist/components/document-component.js +163 -0
  60. package/dist/components/document-component.js.map +1 -0
  61. package/dist/components/dso-accordion-section.js +36 -95
  62. package/dist/components/dso-accordion-section.js.map +1 -1
  63. package/dist/components/dso-accordion.js +199 -113
  64. package/dist/components/dso-accordion.js.map +1 -1
  65. package/dist/components/dso-alert.js +1 -50
  66. package/dist/components/dso-alert.js.map +1 -1
  67. package/dist/components/dso-annotation-button.js +1 -40
  68. package/dist/components/dso-annotation-button.js.map +1 -1
  69. package/dist/components/dso-annotation-output.js +1 -71
  70. package/dist/components/dso-annotation-output.js.map +1 -1
  71. package/dist/components/dso-autosuggest.js +1 -1
  72. package/dist/components/dso-badge.js +1 -32
  73. package/dist/components/dso-badge.js.map +1 -1
  74. package/dist/components/dso-document-component.d.ts +11 -0
  75. package/dist/components/dso-document-component.js +8 -0
  76. package/dist/components/dso-document-component.js.map +1 -0
  77. package/dist/components/dso-header.js +1 -1
  78. package/dist/components/dso-image-overlay.js +1 -1
  79. package/dist/components/dso-label.js +1 -161
  80. package/dist/components/dso-label.js.map +1 -1
  81. package/dist/components/dso-ozon-content.js +1 -544
  82. package/dist/components/dso-ozon-content.js.map +1 -1
  83. package/dist/components/dso-slide-toggle.js +1 -52
  84. package/dist/components/dso-slide-toggle.js.map +1 -1
  85. package/dist/components/dso-table.js +1 -1
  86. package/dist/components/dso-viewer-grid.js +1 -1
  87. package/dist/components/dso-viewer-grid.js.map +1 -1
  88. package/dist/components/dsot-document-component-demo.d.ts +11 -0
  89. package/dist/components/dsot-document-component-demo.js +202 -0
  90. package/dist/components/dsot-document-component-demo.js.map +1 -0
  91. package/dist/components/expandable.js +18 -39
  92. package/dist/components/expandable.js.map +1 -1
  93. package/dist/components/index.d.ts +4 -2
  94. package/dist/components/index.js +2 -1
  95. package/dist/components/index.js.map +1 -1
  96. package/dist/components/index2.js +61 -185
  97. package/dist/components/index2.js.map +1 -1
  98. package/dist/{esm/dso-label.entry.js → components/label.js} +82 -41
  99. package/dist/components/label.js.map +1 -0
  100. package/dist/{esm/dso-ozon-content.entry.js → components/ozon-content.js} +43 -14
  101. package/dist/components/ozon-content.js.map +1 -0
  102. package/dist/components/scrollable.js +1 -1
  103. package/dist/{esm/dso-slide-toggle.entry.js → components/slide-toggle.js} +31 -10
  104. package/dist/{dso-toolkit/p-b1627d68.entry.js.map → components/slide-toggle.js.map} +1 -1
  105. package/dist/components/tooltip.js +1 -1
  106. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  107. package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
  108. package/dist/dso-toolkit/p-021589dc.entry.js +2 -0
  109. package/dist/dso-toolkit/p-021589dc.entry.js.map +1 -0
  110. package/dist/dso-toolkit/{p-12c3fc19.entry.js → p-05ea1fba.entry.js} +2 -2
  111. package/dist/dso-toolkit/{p-657c43f4.entry.js → p-0e5a93c3.entry.js} +2 -2
  112. package/dist/dso-toolkit/p-14453f73.entry.js +2 -0
  113. package/dist/dso-toolkit/p-14453f73.entry.js.map +1 -0
  114. package/dist/dso-toolkit/{p-63ce173c.entry.js → p-168750a2.entry.js} +2 -2
  115. package/dist/dso-toolkit/{p-904a2caf.entry.js → p-29752a45.entry.js} +2 -2
  116. package/dist/dso-toolkit/{p-9c2d4a91.entry.js → p-29b741cb.entry.js} +2 -2
  117. package/dist/dso-toolkit/{p-fdf8bd94.entry.js → p-3c554a18.entry.js} +2 -2
  118. package/dist/dso-toolkit/{p-d4f8e1e0.entry.js → p-3fa7489e.entry.js} +2 -2
  119. package/dist/dso-toolkit/{p-fa6d8d5a.entry.js → p-422bcf93.entry.js} +2 -2
  120. package/dist/dso-toolkit/p-42d3c595.entry.js +2 -0
  121. package/dist/dso-toolkit/{p-1d3ed808.entry.js.map → p-42d3c595.entry.js.map} +1 -1
  122. package/dist/dso-toolkit/p-5265e22b.entry.js +2 -0
  123. package/dist/dso-toolkit/p-56d87a53.entry.js +2 -0
  124. package/dist/dso-toolkit/p-56d87a53.entry.js.map +1 -0
  125. package/dist/dso-toolkit/{p-71143eef.entry.js → p-6050e8e6.entry.js} +2 -2
  126. package/dist/dso-toolkit/{p-5040a304.entry.js → p-674e2406.entry.js} +2 -2
  127. package/dist/dso-toolkit/{p-2bd5d2a2.entry.js → p-68e9f61b.entry.js} +2 -2
  128. package/dist/dso-toolkit/{p-f70d6a66.entry.js → p-818d032e.entry.js} +2 -2
  129. package/dist/dso-toolkit/{p-a4e3638a.entry.js → p-83cdfde8.entry.js} +2 -2
  130. package/dist/dso-toolkit/p-88f4366e.entry.js +2 -0
  131. package/dist/dso-toolkit/p-88f4366e.entry.js.map +1 -0
  132. package/dist/dso-toolkit/{p-8f166691.entry.js → p-909ccf98.entry.js} +2 -2
  133. package/dist/dso-toolkit/{p-58bed94b.entry.js → p-9b587a94.entry.js} +2 -2
  134. package/dist/dso-toolkit/p-9c0477fc.entry.js +2 -0
  135. package/dist/dso-toolkit/{p-56069350.entry.js.map → p-9c0477fc.entry.js.map} +1 -1
  136. package/dist/dso-toolkit/{p-79767cc1.entry.js → p-9f2bb98b.entry.js} +2 -2
  137. package/dist/dso-toolkit/{p-6e0b67c9.entry.js → p-9fee52e5.entry.js} +2 -2
  138. package/dist/dso-toolkit/{p-9b14a015.entry.js → p-a616ab8a.entry.js} +2 -2
  139. package/dist/dso-toolkit/{p-ef23bffb.entry.js → p-b627d9ac.entry.js} +2 -2
  140. package/dist/dso-toolkit/{p-9d64a2f4.entry.js → p-b67631ef.entry.js} +2 -2
  141. package/dist/dso-toolkit/{p-0653b5d2.entry.js → p-bcae3f55.entry.js} +2 -2
  142. package/dist/dso-toolkit/{p-b1b53cb3.entry.js → p-bf203ab8.entry.js} +2 -2
  143. package/dist/dso-toolkit/{p-ee2771d4.entry.js → p-c8165a50.entry.js} +2 -2
  144. package/dist/dso-toolkit/{p-26cdce1c.js → p-ce928197.js} +2 -2
  145. package/dist/dso-toolkit/{p-601b4ce0.entry.js → p-cfd6f4ef.entry.js} +2 -2
  146. package/dist/dso-toolkit/{p-b6f1ae13.entry.js → p-d3f69d06.entry.js} +2 -2
  147. package/dist/dso-toolkit/{p-554e7d6a.entry.js → p-d4320890.entry.js} +2 -2
  148. package/dist/dso-toolkit/{p-554e7d6a.entry.js.map → p-d4320890.entry.js.map} +1 -1
  149. package/dist/dso-toolkit/{p-3ab9390b.entry.js → p-d8c137b5.entry.js} +2 -2
  150. package/dist/dso-toolkit/p-debbe184.entry.js +2 -0
  151. package/dist/dso-toolkit/{p-c3178955.entry.js.map → p-debbe184.entry.js.map} +1 -1
  152. package/dist/dso-toolkit/{p-7098eb9d.entry.js → p-f56c1b28.entry.js} +2 -2
  153. package/dist/dso-toolkit/p-f56c1b28.entry.js.map +1 -0
  154. package/dist/dso-toolkit/p-fafa5ea1.entry.js +2 -0
  155. package/dist/dso-toolkit/p-fafa5ea1.entry.js.map +1 -0
  156. package/dist/esm/dso-accordion-section.entry.js +32 -89
  157. package/dist/esm/dso-accordion-section.entry.js.map +1 -1
  158. package/dist/esm/dso-accordion.entry.js +198 -108
  159. package/dist/esm/dso-accordion.entry.js.map +1 -1
  160. package/dist/esm/dso-action-list-item.entry.js +1 -1
  161. package/dist/esm/dso-action-list.entry.js +1 -1
  162. package/dist/esm/dso-alert_5.entry.js +713 -0
  163. package/dist/esm/dso-alert_5.entry.js.map +1 -0
  164. package/dist/esm/dso-annotation-output_3.entry.js +137 -0
  165. package/dist/esm/dso-annotation-output_3.entry.js.map +1 -0
  166. package/dist/esm/dso-attachments-counter.entry.js +1 -1
  167. package/dist/esm/dso-autosuggest.entry.js +1 -1
  168. package/dist/esm/dso-banner.entry.js +1 -1
  169. package/dist/esm/dso-card-container.entry.js +1 -1
  170. package/dist/esm/dso-card.entry.js +1 -1
  171. package/dist/esm/dso-date-picker.entry.js +1 -1
  172. package/dist/esm/dso-dropdown-menu.entry.js +1 -1
  173. package/dist/esm/dso-expandable.entry.js +17 -36
  174. package/dist/esm/dso-expandable.entry.js.map +1 -1
  175. package/dist/esm/dso-header.entry.js +1 -1
  176. package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
  177. package/dist/esm/dso-highlight-box.entry.js +1 -1
  178. package/dist/esm/dso-icon.entry.js +1 -1
  179. package/dist/esm/dso-image-overlay.entry.js +1 -1
  180. package/dist/esm/dso-info-button.entry.js +1 -1
  181. package/dist/esm/dso-info_2.entry.js +1 -1
  182. package/dist/esm/dso-list-button.entry.js +1 -1
  183. package/dist/esm/dso-map-base-layers.entry.js +1 -1
  184. package/dist/esm/dso-map-controls.entry.js +1 -1
  185. package/dist/esm/dso-map-overlays.entry.js +1 -1
  186. package/dist/esm/dso-modal.entry.js +1 -1
  187. package/dist/esm/dso-pagination.entry.js +1 -1
  188. package/dist/esm/dso-progress-bar.entry.js +1 -1
  189. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  190. package/dist/esm/dso-responsive-element.entry.js +1 -1
  191. package/dist/esm/dso-scrollable.entry.js +1 -1
  192. package/dist/esm/dso-table.entry.js +1 -1
  193. package/dist/esm/dso-toggletip.entry.js +1 -1
  194. package/dist/esm/dso-toolkit.js +3 -3
  195. package/dist/esm/dso-tooltip.entry.js +1 -1
  196. package/dist/esm/dso-tree-view.entry.js +1 -1
  197. package/dist/esm/dso-viewer-grid.entry.js +2 -2
  198. package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
  199. package/dist/esm/dsot-document-component-demo.entry.js +106 -0
  200. package/dist/esm/dsot-document-component-demo.entry.js.map +1 -0
  201. package/dist/esm/{index-898d8443.js → index-367cff36.js} +2 -2
  202. package/dist/esm/{index-898d8443.js.map → index-367cff36.js.map} +1 -1
  203. package/dist/esm/loader.js +3 -3
  204. package/dist/types/components/accordion/accordion.d.ts +6 -39
  205. package/dist/types/components/accordion/accordion.interfaces.d.ts +2 -18
  206. package/dist/types/components/accordion/components/accordion-section.d.ts +15 -19
  207. package/dist/types/components/accordion/components/accordion-section.interfaces.d.ts +22 -0
  208. package/dist/types/components/annotation-button/annotation-button.d.ts +15 -4
  209. package/dist/types/components/annotation-output/annotation-output.d.ts +7 -5
  210. package/dist/types/components/document-component/document-component-heading.d.ts +7 -0
  211. package/dist/types/components/document-component/document-component.d.ts +84 -0
  212. package/dist/types/components/document-component/document-component.demo.d.ts +40 -0
  213. package/dist/types/components/document-component/document-component.types.d.ts +8 -0
  214. package/dist/types/components/expandable/expandable.d.ts +5 -12
  215. package/dist/types/components/label/label.d.ts +9 -9
  216. package/dist/types/components.d.ts +235 -127
  217. package/package.json +2 -2
  218. package/dist/cjs/annotation.service-60e6b0f1.js +0 -23
  219. package/dist/cjs/annotation.service-60e6b0f1.js.map +0 -1
  220. package/dist/cjs/dso-alert.cjs.entry.js +0 -34
  221. package/dist/cjs/dso-alert.cjs.entry.js.map +0 -1
  222. package/dist/cjs/dso-annotation-button.cjs.entry.js +0 -27
  223. package/dist/cjs/dso-annotation-button.cjs.entry.js.map +0 -1
  224. package/dist/cjs/dso-annotation-output.cjs.entry.js +0 -44
  225. package/dist/cjs/dso-annotation-output.cjs.entry.js.map +0 -1
  226. package/dist/cjs/dso-badge.cjs.entry.js +0 -23
  227. package/dist/cjs/dso-badge.cjs.entry.js.map +0 -1
  228. package/dist/cjs/dso-expandable-heading.cjs.entry.js +0 -54
  229. package/dist/cjs/dso-expandable-heading.cjs.entry.js.map +0 -1
  230. package/dist/cjs/dso-label.cjs.entry.js +0 -130
  231. package/dist/cjs/dso-label.cjs.entry.js.map +0 -1
  232. package/dist/cjs/dso-ozon-content.cjs.entry.js +0 -532
  233. package/dist/cjs/dso-ozon-content.cjs.entry.js.map +0 -1
  234. package/dist/cjs/dso-slide-toggle.cjs.entry.js +0 -39
  235. package/dist/cjs/dso-slide-toggle.cjs.entry.js.map +0 -1
  236. package/dist/cjs/index-a189d603.js +0 -198
  237. package/dist/cjs/index-a189d603.js.map +0 -1
  238. package/dist/collection/components/annotation-output/annotation-output.interfaces.js +0 -2
  239. package/dist/collection/components/annotation-output/annotation-output.interfaces.js.map +0 -1
  240. package/dist/collection/components/expandable/expandable.functions.js +0 -4
  241. package/dist/collection/components/expandable/expandable.functions.js.map +0 -1
  242. package/dist/collection/components/expandable-heading/expandable-heading.css +0 -200
  243. package/dist/collection/components/expandable-heading/expandable-heading.interfaces.js +0 -2
  244. package/dist/collection/components/expandable-heading/expandable-heading.interfaces.js.map +0 -1
  245. package/dist/collection/components/expandable-heading/expandable-heading.js +0 -163
  246. package/dist/collection/components/expandable-heading/expandable-heading.js.map +0 -1
  247. package/dist/collection/components/expandable-heading/heading.js +0 -17
  248. package/dist/collection/components/expandable-heading/heading.js.map +0 -1
  249. package/dist/collection/services/annotation.service.js +0 -17
  250. package/dist/collection/services/annotation.service.js.map +0 -1
  251. package/dist/components/annotation.service.js +0 -21
  252. package/dist/components/annotation.service.js.map +0 -1
  253. package/dist/components/dso-expandable-heading.d.ts +0 -11
  254. package/dist/components/dso-expandable-heading.js +0 -86
  255. package/dist/components/dso-expandable-heading.js.map +0 -1
  256. package/dist/components/index3.js +0 -72
  257. package/dist/components/index3.js.map +0 -1
  258. package/dist/dso-toolkit/p-0c762ac9.entry.js +0 -2
  259. package/dist/dso-toolkit/p-0c762ac9.entry.js.map +0 -1
  260. package/dist/dso-toolkit/p-0ffae824.entry.js +0 -2
  261. package/dist/dso-toolkit/p-0ffae824.entry.js.map +0 -1
  262. package/dist/dso-toolkit/p-1d3ed808.entry.js +0 -2
  263. package/dist/dso-toolkit/p-26713aef.js +0 -2
  264. package/dist/dso-toolkit/p-26713aef.js.map +0 -1
  265. package/dist/dso-toolkit/p-52f2be73.entry.js +0 -2
  266. package/dist/dso-toolkit/p-52f2be73.entry.js.map +0 -1
  267. package/dist/dso-toolkit/p-56069350.entry.js +0 -2
  268. package/dist/dso-toolkit/p-59ff4e19.entry.js +0 -2
  269. package/dist/dso-toolkit/p-59ff4e19.entry.js.map +0 -1
  270. package/dist/dso-toolkit/p-7098eb9d.entry.js.map +0 -1
  271. package/dist/dso-toolkit/p-835a599b.entry.js +0 -2
  272. package/dist/dso-toolkit/p-91453b47.entry.js +0 -2
  273. package/dist/dso-toolkit/p-91453b47.entry.js.map +0 -1
  274. package/dist/dso-toolkit/p-9eccd618.js +0 -2
  275. package/dist/dso-toolkit/p-9eccd618.js.map +0 -1
  276. package/dist/dso-toolkit/p-b1627d68.entry.js +0 -2
  277. package/dist/dso-toolkit/p-c3178955.entry.js +0 -2
  278. package/dist/dso-toolkit/p-c464da66.entry.js +0 -2
  279. package/dist/dso-toolkit/p-c464da66.entry.js.map +0 -1
  280. package/dist/dso-toolkit/p-c4e1c7cb.entry.js +0 -2
  281. package/dist/dso-toolkit/p-c4e1c7cb.entry.js.map +0 -1
  282. package/dist/dso-toolkit/p-dd9e9c47.entry.js +0 -2
  283. package/dist/dso-toolkit/p-dd9e9c47.entry.js.map +0 -1
  284. package/dist/dso-toolkit/p-de310a49.entry.js +0 -2
  285. package/dist/dso-toolkit/p-de310a49.entry.js.map +0 -1
  286. package/dist/esm/annotation.service-cd25eba0.js +0 -21
  287. package/dist/esm/annotation.service-cd25eba0.js.map +0 -1
  288. package/dist/esm/dso-alert.entry.js.map +0 -1
  289. package/dist/esm/dso-annotation-button.entry.js +0 -23
  290. package/dist/esm/dso-annotation-button.entry.js.map +0 -1
  291. package/dist/esm/dso-annotation-output.entry.js +0 -40
  292. package/dist/esm/dso-annotation-output.entry.js.map +0 -1
  293. package/dist/esm/dso-badge.entry.js.map +0 -1
  294. package/dist/esm/dso-expandable-heading.entry.js +0 -50
  295. package/dist/esm/dso-expandable-heading.entry.js.map +0 -1
  296. package/dist/esm/dso-label.entry.js.map +0 -1
  297. package/dist/esm/dso-ozon-content.entry.js.map +0 -1
  298. package/dist/esm/dso-slide-toggle.entry.js.map +0 -1
  299. package/dist/esm/index-b57dbe04.js +0 -196
  300. package/dist/esm/index-b57dbe04.js.map +0 -1
  301. package/dist/types/components/annotation-output/annotation-output.interfaces.d.ts +0 -4
  302. package/dist/types/components/expandable/expandable.functions.d.ts +0 -1
  303. package/dist/types/components/expandable-heading/expandable-heading.d.ts +0 -33
  304. package/dist/types/components/expandable-heading/expandable-heading.interfaces.d.ts +0 -6
  305. package/dist/types/components/expandable-heading/heading.d.ts +0 -9
  306. package/dist/types/services/annotation.service.d.ts +0 -10
  307. /package/dist/dso-toolkit/{p-12c3fc19.entry.js.map → p-05ea1fba.entry.js.map} +0 -0
  308. /package/dist/dso-toolkit/{p-657c43f4.entry.js.map → p-0e5a93c3.entry.js.map} +0 -0
  309. /package/dist/dso-toolkit/{p-63ce173c.entry.js.map → p-168750a2.entry.js.map} +0 -0
  310. /package/dist/dso-toolkit/{p-904a2caf.entry.js.map → p-29752a45.entry.js.map} +0 -0
  311. /package/dist/dso-toolkit/{p-9c2d4a91.entry.js.map → p-29b741cb.entry.js.map} +0 -0
  312. /package/dist/dso-toolkit/{p-fdf8bd94.entry.js.map → p-3c554a18.entry.js.map} +0 -0
  313. /package/dist/dso-toolkit/{p-d4f8e1e0.entry.js.map → p-3fa7489e.entry.js.map} +0 -0
  314. /package/dist/dso-toolkit/{p-fa6d8d5a.entry.js.map → p-422bcf93.entry.js.map} +0 -0
  315. /package/dist/dso-toolkit/{p-835a599b.entry.js.map → p-5265e22b.entry.js.map} +0 -0
  316. /package/dist/dso-toolkit/{p-71143eef.entry.js.map → p-6050e8e6.entry.js.map} +0 -0
  317. /package/dist/dso-toolkit/{p-5040a304.entry.js.map → p-674e2406.entry.js.map} +0 -0
  318. /package/dist/dso-toolkit/{p-2bd5d2a2.entry.js.map → p-68e9f61b.entry.js.map} +0 -0
  319. /package/dist/dso-toolkit/{p-f70d6a66.entry.js.map → p-818d032e.entry.js.map} +0 -0
  320. /package/dist/dso-toolkit/{p-a4e3638a.entry.js.map → p-83cdfde8.entry.js.map} +0 -0
  321. /package/dist/dso-toolkit/{p-8f166691.entry.js.map → p-909ccf98.entry.js.map} +0 -0
  322. /package/dist/dso-toolkit/{p-58bed94b.entry.js.map → p-9b587a94.entry.js.map} +0 -0
  323. /package/dist/dso-toolkit/{p-79767cc1.entry.js.map → p-9f2bb98b.entry.js.map} +0 -0
  324. /package/dist/dso-toolkit/{p-6e0b67c9.entry.js.map → p-9fee52e5.entry.js.map} +0 -0
  325. /package/dist/dso-toolkit/{p-9b14a015.entry.js.map → p-a616ab8a.entry.js.map} +0 -0
  326. /package/dist/dso-toolkit/{p-ef23bffb.entry.js.map → p-b627d9ac.entry.js.map} +0 -0
  327. /package/dist/dso-toolkit/{p-9d64a2f4.entry.js.map → p-b67631ef.entry.js.map} +0 -0
  328. /package/dist/dso-toolkit/{p-0653b5d2.entry.js.map → p-bcae3f55.entry.js.map} +0 -0
  329. /package/dist/dso-toolkit/{p-b1b53cb3.entry.js.map → p-bf203ab8.entry.js.map} +0 -0
  330. /package/dist/dso-toolkit/{p-ee2771d4.entry.js.map → p-c8165a50.entry.js.map} +0 -0
  331. /package/dist/dso-toolkit/{p-26cdce1c.js.map → p-ce928197.js.map} +0 -0
  332. /package/dist/dso-toolkit/{p-601b4ce0.entry.js.map → p-cfd6f4ef.entry.js.map} +0 -0
  333. /package/dist/dso-toolkit/{p-b6f1ae13.entry.js.map → p-d3f69d06.entry.js.map} +0 -0
  334. /package/dist/dso-toolkit/{p-3ab9390b.entry.js.map → p-d8c137b5.entry.js.map} +0 -0
@@ -1,196 +1,72 @@
1
- import { getRenderingRef, forceUpdate } from '@stencil/core/internal/client';
2
-
3
- const appendToMap = (map, propName, value) => {
4
- const items = map.get(propName);
5
- if (!items) {
6
- map.set(propName, [value]);
7
- }
8
- else if (!items.includes(value)) {
9
- items.push(value);
10
- }
11
- };
12
- const debounce = (fn, ms) => {
13
- let timeoutId;
14
- return (...args) => {
15
- if (timeoutId) {
16
- clearTimeout(timeoutId);
17
- }
18
- timeoutId = setTimeout(() => {
19
- timeoutId = 0;
20
- fn(...args);
21
- }, ms);
22
- };
23
- };
24
-
25
1
  /**
26
- * Check if a possible element isConnected.
27
- * The property might not be there, so we check for it.
28
- *
29
- * We want it to return true if isConnected is not a property,
30
- * otherwise we would remove these elements and would not update.
2
+ * Returns a function, that, as long as it continues to be invoked, will not
3
+ * be triggered. The function will be called after it stops being called for
4
+ * N milliseconds. If `immediate` is passed, trigger the function on the
5
+ * leading edge, instead of the trailing. The function also has a property 'clear'
6
+ * that is a function which will clear the timer to prevent previously scheduled executions.
31
7
  *
32
- * Better leak in Edge than to be useless.
8
+ * @source underscore.js
9
+ * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
10
+ * @param {Function} function to wrap
11
+ * @param {Number} timeout in ms (`100`)
12
+ * @param {Boolean} whether to execute at the beginning (`false`)
13
+ * @api public
33
14
  */
34
- const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
35
- const cleanupElements = debounce((map) => {
36
- for (let key of map.keys()) {
37
- map.set(key, map.get(key).filter(isConnected));
15
+ function debounce(func, wait, immediate){
16
+ var timeout, args, context, timestamp, result;
17
+ if (null == wait) wait = 100;
18
+
19
+ function later() {
20
+ var last = Date.now() - timestamp;
21
+
22
+ if (last < wait && last >= 0) {
23
+ timeout = setTimeout(later, wait - last);
24
+ } else {
25
+ timeout = null;
26
+ if (!immediate) {
27
+ result = func.apply(context, args);
28
+ context = args = null;
29
+ }
38
30
  }
39
- }, 2000);
40
- const stencilSubscription = () => {
41
- if (typeof getRenderingRef !== 'function') {
42
- // If we are not in a stencil project, we do nothing.
43
- // This function is not really exported by @stencil/core.
44
- return {};
31
+ }
32
+ var debounced = function(){
33
+ context = this;
34
+ args = arguments;
35
+ timestamp = Date.now();
36
+ var callNow = immediate && !timeout;
37
+ if (!timeout) timeout = setTimeout(later, wait);
38
+ if (callNow) {
39
+ result = func.apply(context, args);
40
+ context = args = null;
45
41
  }
46
- const elmsToUpdate = new Map();
47
- return {
48
- dispose: () => elmsToUpdate.clear(),
49
- get: (propName) => {
50
- const elm = getRenderingRef();
51
- if (elm) {
52
- appendToMap(elmsToUpdate, propName, elm);
53
- }
54
- },
55
- set: (propName) => {
56
- const elements = elmsToUpdate.get(propName);
57
- if (elements) {
58
- elmsToUpdate.set(propName, elements.filter(forceUpdate));
59
- }
60
- cleanupElements(elmsToUpdate);
61
- },
62
- reset: () => {
63
- elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
64
- cleanupElements(elmsToUpdate);
65
- },
66
- };
67
- };
68
42
 
69
- const unwrap = (val) => (typeof val === 'function' ? val() : val);
70
- const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
71
- const unwrappedState = unwrap(defaultState);
72
- let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
73
- const handlers = {
74
- dispose: [],
75
- get: [],
76
- set: [],
77
- reset: [],
78
- };
79
- const reset = () => {
80
- var _a;
81
- // When resetting the state, the default state may be a function - unwrap it to invoke it.
82
- // otherwise, the state won't be properly reset
83
- states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
84
- handlers.reset.forEach((cb) => cb());
85
- };
86
- const dispose = () => {
87
- // Call first dispose as resetting the state would
88
- // cause less updates ;)
89
- handlers.dispose.forEach((cb) => cb());
90
- reset();
91
- };
92
- const get = (propName) => {
93
- handlers.get.forEach((cb) => cb(propName));
94
- return states.get(propName);
95
- };
96
- const set = (propName, value) => {
97
- const oldValue = states.get(propName);
98
- if (shouldUpdate(value, oldValue, propName)) {
99
- states.set(propName, value);
100
- handlers.set.forEach((cb) => cb(propName, value, oldValue));
101
- }
102
- };
103
- const state = (typeof Proxy === 'undefined'
104
- ? {}
105
- : new Proxy(unwrappedState, {
106
- get(_, propName) {
107
- return get(propName);
108
- },
109
- ownKeys(_) {
110
- return Array.from(states.keys());
111
- },
112
- getOwnPropertyDescriptor() {
113
- return {
114
- enumerable: true,
115
- configurable: true,
116
- };
117
- },
118
- has(_, propName) {
119
- return states.has(propName);
120
- },
121
- set(_, propName, value) {
122
- set(propName, value);
123
- return true;
124
- },
125
- }));
126
- const on = (eventName, callback) => {
127
- handlers[eventName].push(callback);
128
- return () => {
129
- removeFromArray(handlers[eventName], callback);
130
- };
131
- };
132
- const onChange = (propName, cb) => {
133
- const unSet = on('set', (key, newValue) => {
134
- if (key === propName) {
135
- cb(newValue);
136
- }
137
- });
138
- // We need to unwrap the defaultState because it might be a function.
139
- // Otherwise we might not be sending the right reset value.
140
- const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
141
- return () => {
142
- unSet();
143
- unReset();
144
- };
145
- };
146
- const use = (...subscriptions) => {
147
- const unsubs = subscriptions.reduce((unsubs, subscription) => {
148
- if (subscription.set) {
149
- unsubs.push(on('set', subscription.set));
150
- }
151
- if (subscription.get) {
152
- unsubs.push(on('get', subscription.get));
153
- }
154
- if (subscription.reset) {
155
- unsubs.push(on('reset', subscription.reset));
156
- }
157
- if (subscription.dispose) {
158
- unsubs.push(on('dispose', subscription.dispose));
159
- }
160
- return unsubs;
161
- }, []);
162
- return () => unsubs.forEach((unsub) => unsub());
163
- };
164
- const forceUpdate = (key) => {
165
- const oldValue = states.get(key);
166
- handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
167
- };
168
- return {
169
- state,
170
- get,
171
- set,
172
- on,
173
- onChange,
174
- use,
175
- dispose,
176
- reset,
177
- forceUpdate,
178
- };
179
- };
180
- const removeFromArray = (array, item) => {
181
- const index = array.indexOf(item);
182
- if (index >= 0) {
183
- array[index] = array[array.length - 1];
184
- array.length--;
43
+ return result;
44
+ };
45
+
46
+ debounced.clear = function() {
47
+ if (timeout) {
48
+ clearTimeout(timeout);
49
+ timeout = null;
185
50
  }
186
- };
51
+ };
52
+
53
+ debounced.flush = function() {
54
+ if (timeout) {
55
+ result = func.apply(context, args);
56
+ context = args = null;
57
+
58
+ clearTimeout(timeout);
59
+ timeout = null;
60
+ }
61
+ };
62
+
63
+ return debounced;
64
+ }
65
+ // Adds compatibility for ES modules
66
+ debounce.debounce = debounce;
187
67
 
188
- const createStore = (defaultState, shouldUpdate) => {
189
- const map = createObservableMap(defaultState, shouldUpdate);
190
- map.use(stencilSubscription());
191
- return map;
192
- };
68
+ var debounce_1 = debounce;
193
69
 
194
- export { createStore as c };
70
+ export { debounce_1 as d };
195
71
 
196
72
  //# sourceMappingURL=index2.js.map
@@ -1 +1 @@
1
- {"file":"index2.js","mappings":";;AAEA,MAAM,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AAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC/C,QAAQ,KAAK,CAAC,MAAM,EAAE,CAAC;AACvB,KAAK;AACL,CAAC,CAAC;AACF;AACK,MAAC,WAAW,GAAG,CAAC,YAAY,EAAE,YAAY,KAAK;AACpD,IAAI,MAAM,GAAG,GAAG,mBAAmB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;AAChE,IAAI,GAAG,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC,CAAC;AACnC,IAAI,OAAO,GAAG,CAAC;AACf;;;;","names":[],"sources":["../../node_modules/@stencil/store/dist/index.mjs"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n"],"version":3}
1
+ {"file":"index2.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC;AACxC,EAAE,IAAI,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC;AAChD,EAAE,IAAI,IAAI,IAAI,IAAI,EAAE,IAAI,GAAG,GAAG,CAAC;AAC/B;AACA,EAAE,SAAS,KAAK,GAAG;AACnB,IAAI,IAAI,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;AACtC;AACA,IAAI,IAAI,IAAI,GAAG,IAAI,IAAI,IAAI,IAAI,CAAC,EAAE;AAClC,MAAM,OAAO,GAAG,UAAU,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC,CAAC;AAC/C,KAAK,MAAM;AACX,MAAM,OAAO,GAAG,IAA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AACL,GAAG,CAAC;AACJ;AACA,EAAE,OAAO,SAAS,CAAC;AACnB,CACA;AACA;AACA,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B;cACc,GAAG;;;;","names":[],"sources":["../../node_modules/debounce/index.js"],"sourcesContent":["/**\n * Returns a function, that, as long as it continues to be invoked, will not\n * be triggered. The function will be called after it stops being called for\n * N milliseconds. If `immediate` is passed, trigger the function on the\n * leading edge, instead of the trailing. The function also has a property 'clear' \n * that is a function which will clear the timer to prevent previously scheduled executions. \n *\n * @source underscore.js\n * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/\n * @param {Function} function to wrap\n * @param {Number} timeout in ms (`100`)\n * @param {Boolean} whether to execute at the beginning (`false`)\n * @api public\n */\nfunction debounce(func, wait, immediate){\n var timeout, args, context, timestamp, result;\n if (null == wait) wait = 100;\n\n function later() {\n var last = Date.now() - timestamp;\n\n if (last < wait && last >= 0) {\n timeout = setTimeout(later, wait - last);\n } else {\n timeout = null;\n if (!immediate) {\n result = func.apply(context, args);\n context = args = null;\n }\n }\n };\n\n var debounced = function(){\n context = this;\n args = arguments;\n timestamp = Date.now();\n var callNow = immediate && !timeout;\n if (!timeout) timeout = setTimeout(later, wait);\n if (callNow) {\n result = func.apply(context, args);\n context = args = null;\n }\n\n return result;\n };\n\n debounced.clear = function() {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n };\n \n debounced.flush = function() {\n if (timeout) {\n result = func.apply(context, args);\n context = args = null;\n \n clearTimeout(timeout);\n timeout = null;\n }\n };\n\n return debounced;\n};\n\n// Adds compatibility for ES modules\ndebounce.debounce = debounce;\n\nmodule.exports = debounce;\n"],"version":3}
@@ -1,6 +1,8 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-898d8443.js';
2
- import { c as clsx } from './clsx.m-25174a58.js';
3
- import { d as debounce_1 } from './index-f2bf58ce.js';
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
2
+ import { c as clsx } from './clsx.m.js';
3
+ import { d as debounce_1 } from './index2.js';
4
+ import { d as defineCustomElement$2 } from './icon.js';
5
+ import { d as defineCustomElement$1 } from './tooltip.js';
4
6
 
5
7
  const labelCss = ":host{display:inline-block;max-width:100%}*,*::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-label{background-color:#f2f2f2;border-radius:4px;color:#191919;display:inline-block;line-height:1.5;max-width:100%;padding:4px 8px}.dso-label:focus-within,.dso-label.dso-hover{text-decoration:line-through}.dso-label button{background:none;border:0;border-radius:0 4px 4px 0;color:inherit;float:right;font-size:1rem;margin-bottom:-4px;margin-left:8px;margin-right:-4px;margin-top:0;padding:0}.dso-label button:hover{cursor:pointer}.dso-label button>dso-icon,.dso-label button>svg.di{display:block}.dso-label.dso-label-info{background-color:#6ca4d9;color:#000}.dso-label.dso-label-primary{background-color:#275937;color:#fff}.dso-label.dso-label-success{background-color:#39870c;color:#fff}.dso-label.dso-label-warning{background-color:#dcd400;color:#000}.dso-label.dso-label-danger{background-color:#ce3f51;color:#fff}.dso-label.dso-label-error{background-color:#ce3f51;color:#fff}.dso-label.dso-label-bright{background-color:#fff;color:#191919;outline:1px solid #ccc;outline-offset:-1px}.dso-label.dso-label-attention{background-color:#8b4a6a;color:#fff}.dso-label.dso-compact{padding:0 8px}.dso-label.dso-hover .dso-label-content{text-decoration:line-through}.dso-truncate.dso-label-content{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}:host([removable]) .dso-truncate.dso-label-content{max-width:calc(100% - 28px)}";
6
8
 
@@ -17,17 +19,12 @@ function isDsoLabelComponent(element) {
17
19
  function hasEllipses(el) {
18
20
  return el.scrollWidth > el.clientWidth;
19
21
  }
20
- const Label = class {
21
- constructor(hostRef) {
22
- registerInstance(this, hostRef);
22
+ const Label = /*@__PURE__*/ proxyCustomElement(class Label extends HTMLElement {
23
+ constructor() {
24
+ super();
25
+ this.__registerHost();
26
+ this.__attachShadow();
23
27
  this.dsoRemoveClick = createEvent(this, "dsoRemoveClick", 7);
24
- this.keydownListenerActive = false;
25
- this.keyDownListener = (event) => {
26
- if (event.key === "Escape") {
27
- this.textHover = false;
28
- this.textFocus = false;
29
- }
30
- };
31
28
  this.compact = undefined;
32
29
  this.removable = undefined;
33
30
  this.status = undefined;
@@ -36,8 +33,16 @@ const Label = class {
36
33
  this.truncate = undefined;
37
34
  this.textHover = undefined;
38
35
  this.textFocus = undefined;
39
- this.isTruncated = undefined;
40
- this.labelText = null;
36
+ this.isTruncated = false;
37
+ this.labelText = "";
38
+ }
39
+ watchRemovable(removable) {
40
+ if (removable) {
41
+ this.startMutationObserver();
42
+ }
43
+ else {
44
+ this.stopMutationObserver();
45
+ }
41
46
  }
42
47
  watchTruncate(truncate) {
43
48
  if (truncate) {
@@ -47,14 +52,10 @@ const Label = class {
47
52
  this.stopTruncate();
48
53
  }
49
54
  }
50
- watchTooltipActive() {
51
- if (!this.keydownListenerActive && (this.textHover || this.textFocus)) {
52
- document.addEventListener("keydown", this.keyDownListener);
53
- this.keydownListenerActive = true;
54
- }
55
- if (!this.textHover && !this.textFocus) {
56
- document.removeEventListener("keydown", this.keyDownListener);
57
- this.keydownListenerActive = false;
55
+ keyDownListener(event) {
56
+ if (event.key === "Escape") {
57
+ this.textHover = false;
58
+ this.textFocus = false;
58
59
  }
59
60
  }
60
61
  /**
@@ -62,11 +63,12 @@ const Label = class {
62
63
  */
63
64
  async _truncateLabel() {
64
65
  setTimeout(() => {
65
- this.isTruncated = this.labelContent && hasEllipses(this.labelContent);
66
+ this.isTruncated = !!this.labelContent && hasEllipses(this.labelContent);
66
67
  });
67
68
  }
68
69
  syncLabelText() {
69
- this.labelText = this.host.textContent;
70
+ var _a, _b;
71
+ this.labelText = (_b = (_a = this.host.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : "";
70
72
  }
71
73
  componentDidLoad() {
72
74
  if (this.truncate) {
@@ -78,19 +80,25 @@ const Label = class {
78
80
  }
79
81
  disconnectedCallback() {
80
82
  this.stopTruncate();
83
+ this.stopMutationObserver(true);
81
84
  }
82
85
  /** The mutationObserver fetches the text placed inside the label, this is then used for the remove button and tooltip. */
83
86
  startMutationObserver() {
84
- if (this.mutationObserver) {
85
- return;
86
- }
87
- this.mutationObserver = new MutationObserver((entries) => entries.forEach(() => this.syncLabelText()));
87
+ this.mutationObserver = new MutationObserver(() => this.syncLabelText());
88
88
  this.mutationObserver.observe(this.host, {
89
89
  characterData: true,
90
+ childList: true,
90
91
  subtree: true,
91
92
  attributes: true,
92
93
  });
93
- this.labelText = this.host.textContent;
94
+ this.syncLabelText();
95
+ }
96
+ stopMutationObserver(force = false) {
97
+ var _a;
98
+ if (force || !(this.truncate && this.removable)) {
99
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
100
+ delete this.mutationObserver;
101
+ }
94
102
  }
95
103
  startTruncate() {
96
104
  resizeObserver.observe(this.host);
@@ -98,10 +106,9 @@ const Label = class {
98
106
  this._truncateLabel();
99
107
  }
100
108
  stopTruncate() {
101
- document.removeEventListener("keydown", this.keyDownListener);
102
109
  resizeObserver.unobserve(this.host);
103
- this.isTruncated = undefined;
104
- this.keydownListenerActive = false;
110
+ this.stopMutationObserver();
111
+ this.isTruncated = false;
105
112
  }
106
113
  render() {
107
114
  return (h(Fragment, null, h("span", { "aria-describedby": "toggle-anchor", class: clsx("dso-label", {
@@ -112,15 +119,49 @@ const Label = class {
112
119
  "dso-truncate": !!this.truncate,
113
120
  }), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.isTruncated ? 0 : undefined, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, h("slot", null)), this.removable && (h("button", { type: "button", onClick: (e) => this.dsoRemoveClick.emit(e), onMouseEnter: () => (this.removeHover = true), onMouseLeave: () => (this.removeHover = false), onFocus: () => (this.removeFocus = true), onBlur: () => (this.removeFocus = false) }, h("span", { class: "sr-only" }, "Verwijder: ", this.labelText), h("dso-icon", { icon: "times" })))), this.isTruncated && (h("dso-tooltip", { stateless: true, id: "toggle-anchor", active: this.textHover || this.textFocus, position: "top", strategy: "absolute" }, this.labelText))));
114
121
  }
115
- get host() { return getElement(this); }
122
+ get host() { return this; }
116
123
  static get watchers() { return {
117
- "truncate": ["watchTruncate"],
118
- "textHover": ["watchTooltipActive"],
119
- "textFocus": ["watchTooltipActive"]
124
+ "removable": ["watchRemovable"],
125
+ "truncate": ["watchTruncate"]
120
126
  }; }
121
- };
122
- Label.style = labelCss;
127
+ static get style() { return labelCss; }
128
+ }, [1, "dso-label", {
129
+ "compact": [4],
130
+ "removable": [4],
131
+ "status": [1],
132
+ "truncate": [4],
133
+ "removeHover": [32],
134
+ "removeFocus": [32],
135
+ "textHover": [32],
136
+ "textFocus": [32],
137
+ "isTruncated": [32],
138
+ "labelText": [32],
139
+ "_truncateLabel": [64]
140
+ }, [[4, "keydown", "keyDownListener"]]]);
141
+ function defineCustomElement() {
142
+ if (typeof customElements === "undefined") {
143
+ return;
144
+ }
145
+ const components = ["dso-label", "dso-icon", "dso-tooltip"];
146
+ components.forEach(tagName => { switch (tagName) {
147
+ case "dso-label":
148
+ if (!customElements.get(tagName)) {
149
+ customElements.define(tagName, Label);
150
+ }
151
+ break;
152
+ case "dso-icon":
153
+ if (!customElements.get(tagName)) {
154
+ defineCustomElement$2();
155
+ }
156
+ break;
157
+ case "dso-tooltip":
158
+ if (!customElements.get(tagName)) {
159
+ defineCustomElement$1();
160
+ }
161
+ break;
162
+ } });
163
+ }
123
164
 
124
- export { Label as dso_label };
165
+ export { Label as L, defineCustomElement as d };
125
166
 
126
- //# sourceMappingURL=dso-label.entry.js.map
167
+ //# sourceMappingURL=label.js.map
@@ -0,0 +1 @@
1
+ {"file":"label.js","mappings":";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C,EACxC,MAAM,EAAE,OAAO,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,IAExC,YAAM,KAAK,EAAC,SAAS,mBAAa,IAAI,CAAC,SAAS,CAAQ,EACxD,gBAAU,IAAI,EAAC,OAAO,GAAY,CAC3B,CACV,CACI,EACN,IAAI,CAAC,WAAW,KACf,mBACE,SAAS,QACT,EAAE,EAAC,eAAe,EAClB,MAAM,EAAE,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,EACxC,QAAQ,EAAC,KAAK,EACd,QAAQ,EAAC,UAAU,IAElB,IAAI,CAAC,SAAS,CACH,CACf,CACQ,EACX;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["debounce"],"sources":["./src/components/label/label.scss?tag=dso-label&encapsulation=shadow","./src/components/label/label.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/components/label\";\r\n\r\n:host {\r\n display: inline-block;\r\n max-width: 100%;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n// Todo: Replace .sr-only selector with web component specific selector, no need for .sr-only if we can generate the SCSS\r\n.sr-only {\r\n @include utilities.sr-only();\r\n}\r\n\r\n.dso-label {\r\n @include label.root();\r\n\r\n &.dso-hover {\r\n .dso-label-content {\r\n text-decoration: line-through;\r\n }\r\n }\r\n}\r\n\r\n.dso-truncate.dso-label-content {\r\n display: inline-block;\r\n max-width: 100%;\r\n overflow: hidden;\r\n text-overflow: ellipsis; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n vertical-align: bottom;\r\n white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n}\r\n\r\n:host([removable]) {\r\n .dso-truncate.dso-label-content {\r\n max-width: calc(100% - (units.$u3 + 4px));\r\n }\r\n}\r\n","import {\r\n h,\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n Event,\r\n EventEmitter,\r\n Fragment,\r\n Method,\r\n Prop,\r\n State,\r\n Watch,\r\n Listen,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\nimport { debounce } from \"debounce\";\r\n\r\nconst resizeObserver = new ResizeObserver(\r\n debounce((entries) => {\r\n entries.forEach(({ target }) => {\r\n if (isDsoLabelComponent(target)) {\r\n target._truncateLabel();\r\n }\r\n });\r\n }, 150)\r\n);\r\n\r\nfunction isDsoLabelComponent(element: Element): element is HTMLDsoLabelElement {\r\n return element.tagName === \"DSO-LABEL\";\r\n}\r\n\r\nfunction hasEllipses(el: HTMLElement): boolean {\r\n return el.scrollWidth > el.clientWidth;\r\n}\r\n\r\n@Component({\r\n tag: \"dso-label\",\r\n styleUrl: \"label.scss\",\r\n shadow: true,\r\n})\r\nexport class Label implements ComponentInterface {\r\n private labelContent: HTMLSpanElement | undefined;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n @Element()\r\n private host!: HTMLDsoLabelElement;\r\n\r\n /**\r\n * For compact Label\r\n */\r\n @Prop()\r\n compact?: boolean;\r\n\r\n /**\r\n * Shows a button that can be used to remove the Label.\r\n */\r\n @Prop()\r\n removable?: boolean;\r\n\r\n /**\r\n * The status of this Label.\r\n */\r\n @Prop()\r\n status?: \"primary\" | \"info\" | \"success\" | \"warning\" | \"danger\" | \"error\" | \"bright\" | \"attention\";\r\n\r\n /**\r\n * Emitted when the user activates the remove button.\r\n */\r\n @Event()\r\n dsoRemoveClick!: EventEmitter<MouseEvent>;\r\n\r\n @State()\r\n removeHover?: boolean;\r\n\r\n @State()\r\n removeFocus?: boolean;\r\n\r\n /**\r\n * Whether the Label is allowed to truncate the contents if it does not fit the container element.\r\n */\r\n @Prop()\r\n truncate?: boolean;\r\n\r\n @State()\r\n textHover?: boolean;\r\n\r\n @State()\r\n textFocus?: boolean;\r\n\r\n @State()\r\n isTruncated = false;\r\n\r\n @State()\r\n labelText = \"\";\r\n\r\n @Watch(\"removable\")\r\n watchRemovable(removable: boolean) {\r\n if (removable) {\r\n this.startMutationObserver();\r\n } else {\r\n this.stopMutationObserver();\r\n }\r\n }\r\n\r\n @Watch(\"truncate\")\r\n watchTruncate(truncate: boolean) {\r\n if (truncate) {\r\n this.startTruncate();\r\n } else {\r\n this.stopTruncate();\r\n }\r\n }\r\n\r\n @Listen(\"keydown\", { target: \"document\" })\r\n keyDownListener(event: KeyboardEvent) {\r\n if (event.key === \"Escape\") {\r\n this.textHover = false;\r\n this.textFocus = false;\r\n }\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n @Method()\r\n async _truncateLabel() {\r\n setTimeout(() => {\r\n this.isTruncated = !!this.labelContent && hasEllipses(this.labelContent);\r\n });\r\n }\r\n\r\n private syncLabelText() {\r\n this.labelText = this.host.textContent?.trim() ?? \"\";\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.truncate) {\r\n this.startTruncate();\r\n }\r\n\r\n if (this.removable) {\r\n this.startMutationObserver();\r\n }\r\n }\r\n\r\n disconnectedCallback() {\r\n this.stopTruncate();\r\n\r\n this.stopMutationObserver(true);\r\n }\r\n\r\n /** The mutationObserver fetches the text placed inside the label, this is then used for the remove button and tooltip. */\r\n private startMutationObserver(): void {\r\n this.mutationObserver = new MutationObserver(() => this.syncLabelText());\r\n\r\n this.mutationObserver.observe(this.host, {\r\n characterData: true,\r\n childList: true,\r\n subtree: true,\r\n attributes: true,\r\n });\r\n\r\n this.syncLabelText();\r\n }\r\n\r\n private stopMutationObserver(force = false): void {\r\n if (force || !(this.truncate && this.removable)) {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n }\r\n\r\n private startTruncate(): void {\r\n resizeObserver.observe(this.host);\r\n this.startMutationObserver();\r\n this._truncateLabel();\r\n }\r\n\r\n private stopTruncate(): void {\r\n resizeObserver.unobserve(this.host);\r\n this.stopMutationObserver();\r\n this.isTruncated = false;\r\n }\r\n\r\n render() {\r\n return (\r\n <Fragment>\r\n <span\r\n aria-describedby=\"toggle-anchor\"\r\n class={clsx(\"dso-label\", {\r\n [`dso-label-${this.status}`]: this.status,\r\n \"dso-compact\": this.compact && !this.removable,\r\n \"dso-hover\": this.removeHover || this.removeFocus,\r\n })}\r\n >\r\n <slot name=\"symbol\"></slot>\r\n <span\r\n class={clsx(\"dso-label-content\", {\r\n \"dso-truncate\": !!this.truncate,\r\n })}\r\n ref={(element) => (this.labelContent = element)}\r\n tabindex={this.truncate && this.isTruncated ? 0 : undefined}\r\n onMouseEnter={() => (this.textHover = true)}\r\n onMouseLeave={() => (this.textHover = false)}\r\n onFocus={() => (this.textFocus = true)}\r\n onBlur={() => (this.textFocus = false)}\r\n >\r\n <slot></slot>\r\n </span>\r\n {this.removable && (\r\n <button\r\n type=\"button\"\r\n onClick={(e) => this.dsoRemoveClick.emit(e)}\r\n onMouseEnter={() => (this.removeHover = true)}\r\n onMouseLeave={() => (this.removeHover = false)}\r\n onFocus={() => (this.removeFocus = true)}\r\n onBlur={() => (this.removeFocus = false)}\r\n >\r\n <span class=\"sr-only\">Verwijder: {this.labelText}</span>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n </button>\r\n )}\r\n </span>\r\n {this.isTruncated && (\r\n <dso-tooltip\r\n stateless\r\n id=\"toggle-anchor\"\r\n active={this.textHover || this.textFocus}\r\n position=\"top\"\r\n strategy=\"absolute\"\r\n >\r\n {this.labelText}\r\n </dso-tooltip>\r\n )}\r\n </Fragment>\r\n );\r\n }\r\n}\r\n"],"version":3}
@@ -1,7 +1,7 @@
1
- import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-898d8443.js';
2
- import { i as isTabbable } from './index.esm-3d6c8190.js';
3
- import { c as clsx } from './clsx.m-25174a58.js';
4
- import { v as v4 } from './v4-d398bde5.js';
1
+ import { h, Fragment, proxyCustomElement, HTMLElement, createEvent, Host } from '@stencil/core/internal/client';
2
+ import { i as isTabbable } from './index.esm.js';
3
+ import { c as clsx } from './clsx.m.js';
4
+ import { v as v4 } from './v4.js';
5
5
 
6
6
  function getNodeName(node) {
7
7
  if (node instanceof Element) {
@@ -472,19 +472,29 @@ class Mapper {
472
472
  });
473
473
  }
474
474
  transform(xml, context) {
475
+ if (!xml) {
476
+ return h(Fragment, null);
477
+ }
475
478
  if (!this.cache || this.cache.xml !== xml) {
476
- this.cache = { xml, document: this.domParser.parseFromString(xml, "text/xml") };
479
+ const document = this.domParser.parseFromString(xml, "text/xml");
480
+ if (document.querySelector("html > body > parsererror")) {
481
+ console.error(document);
482
+ return h(Fragment, null);
483
+ }
484
+ this.cache = { xml, document };
477
485
  }
478
486
  const xmlDocument = this.cache.document;
479
487
  return this.mapNodeToJsx(xmlDocument.getRootNode(), context, []);
480
488
  }
481
489
  }
482
490
 
483
- const ozonContentCss = "ins.sc-dso-ozon-content {\n background-color: #e4f1d4;\n box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25);\n color: #000;\n text-decoration: none;\n}\n\n.sc-dso-ozon-content-h:not([inline]) {\n display: block;\n}\n\n[inline].sc-dso-ozon-content-h {\n display: inline;\n}\n\n[deleted].sc-dso-ozon-content-h *.sc-dso-ozon-content {\n text-decoration: line-through !important;\n}\n\n[interactive].sc-dso-ozon-content-h {\n background-color: transparent;\n color: #39870c;\n text-decoration: underline;\n cursor: pointer;\n color: #275937;\n font-weight: 600;\n text-decoration: none;\n}\n[interactive].sc-dso-ozon-content-h:hover, [interactive].sc-dso-ozon-content-h:focus {\n color: #676cb0;\n text-decoration: underline;\n}\n[interactive].sc-dso-ozon-content-h:active {\n text-decoration: none;\n}\n\n[interactive=sub].sc-dso-ozon-content-h {\n color: #191919;\n}\n\n.deleted-start.sc-dso-ozon-content, .deleted-end.sc-dso-ozon-content {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n\nbutton.toggle-note.sc-dso-ozon-content {\n display: inline-block;\n font-size: 1em;\n font-weight: 500;\n margin-bottom: 0;\n text-decoration: none;\n touch-action: manipulation;\n text-align: left;\n user-select: none;\n vertical-align: middle;\n border: 0;\n color: #39870c;\n line-height: 1;\n padding: 0;\n background-color: transparent;\n}\nbutton.toggle-note.sc-dso-ozon-content:focus, button.toggle-note.sc-dso-ozon-content:focus-visible {\n outline-offset: 2px;\n}\nbutton.toggle-note.sc-dso-ozon-content:active {\n outline: 0;\n}\nbutton.toggle-note[disabled].sc-dso-ozon-content {\n color: #afcf9d;\n}\nbutton.toggle-note[disabled].dso-spinner-left.sc-dso-ozon-content, button.toggle-note[disabled].dso-spinner-right.sc-dso-ozon-content {\n color: #39870c;\n}\nbutton.toggle-note.sc-dso-ozon-content:not([disabled]):hover {\n color: #275937;\n text-decoration: underline;\n text-underline-position: under;\n}\nbutton.toggle-note.sc-dso-ozon-content:not([disabled]):active {\n color: #173521;\n}\nbutton.toggle-note.btn-align.sc-dso-ozon-content {\n line-height: calc(1.5em - 1px);\n padding: 11px 0;\n position: relative;\n}\nbutton.toggle-note.dso-spinner-left.sc-dso-ozon-content::before {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n height: 24px;\n vertical-align: middle;\n width: 24px;\n margin-right: 8px;\n}\nbutton.toggle-note.dso-spinner-right.sc-dso-ozon-content::after {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n height: 24px;\n vertical-align: middle;\n width: 24px;\n margin-left: 8px;\n}\nbutton.toggle-note.sc-dso-ozon-content dso-icon.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + dso-icon.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.sc-dso-ozon-content {\n margin-left: 8px;\n}\nbutton.toggle-note.sc-dso-ozon-content svg.di.di-chevron-down.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.di-chevron-up.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-chevron-down.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-chevron-up.sc-dso-ozon-content {\n margin-left: 4px;\n}\nbutton.toggle-note.sc-dso-ozon-content dso-icon[icon=chevron-left].sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content dso-icon[icon=chevron-right].sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.di-angle-down.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.di-angle-up.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-angle-down.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-angle-up.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + dso-icon[icon=chevron-left].sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + dso-icon[icon=chevron-right].sc-dso-ozon-content {\n margin-left: 0;\n}\nbutton.toggle-note.sc-dso-ozon-content dso-icon.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content svg.di.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content {\n vertical-align: middle;\n}\n\nspan[role=section].sc-dso-ozon-content, span[role=paragraph].sc-dso-ozon-content {\n display: block;\n}\n\n.fallback.sc-dso-ozon-content {\n display: block;\n}\n\n.od-Term.sc-dso-ozon-content {\n font-weight: 700;\n}\n\n.od-Definitie.sc-dso-ozon-content, .od-Tussenkop.sc-dso-ozon-content {\n font-style: italic;\n}\n\n.od-Inhoud.sc-dso-ozon-content, .od-Inhoud.sc-dso-ozon-content > .od-Lijst.sc-dso-ozon-content, .od-IntIoRef.sc-dso-ozon-content, .od-Lidnr.sc-dso-ozon-content, .od-LiNr.sc-dso-ozon-content, .od-Opschrift.sc-dso-ozon-content, .od-Tussenkop.sc-dso-ozon-content {\n display: inline;\n}\n\n.od-Al.sc-dso-ozon-content {\n margin-bottom: 0.75em;\n}\n\n.od-IntIoRef.sc-dso-ozon-content {\n border-bottom: 1px dotted;\n}\n\n.dso-ozon-bron.sc-dso-ozon-content {\n font-style: italic;\n font-size: 0.75rem;\n}\n\n.dso-ozon-figuur.sc-dso-ozon-content {\n margin-bottom: 16px;\n}\n.dso-ozon-figuur.sc-dso-ozon-content .figuur-bijschrift.sc-dso-ozon-content {\n display: block;\n font-size: 0.75rem;\n font-style: italic;\n}\n.dso-ozon-figuur.bijschrift-boven.sc-dso-ozon-content .figuur-bijschrift.sc-dso-ozon-content {\n padding-bottom: 0.25rem;\n}\n.dso-ozon-figuur.bijschrift-onder.sc-dso-ozon-content .figuur-bijschrift.sc-dso-ozon-content {\n padding-top: 0.25rem;\n}\n.dso-ozon-figuur.sc-dso-ozon-content .figuur-titel.sc-dso-ozon-content {\n color: #8b4a6a;\n display: block;\n font-weight: 500;\n padding-bottom: 0.5rem;\n}\n\n.dso-ozon-lijst.sc-dso-ozon-content span.od-Lijstaanhef.sc-dso-ozon-content, .dso-ozon-lijst.sc-dso-ozon-content span.od-Lijstsluiting.sc-dso-ozon-content {\n margin-bottom: 1rem;\n}\n.dso-ozon-lijst.sc-dso-ozon-content ul.expliciet.sc-dso-ozon-content {\n list-style: none;\n}\n.dso-ozon-lijst.sc-dso-ozon-content ul.expliciet.sc-dso-ozon-content > .od-Li.sc-dso-ozon-content {\n position: relative;\n}\n.dso-ozon-lijst.sc-dso-ozon-content ul.expliciet.sc-dso-ozon-content > .od-Li.sc-dso-ozon-content > span.od-LiNummer.sc-dso-ozon-content {\n position: absolute;\n left: -44px;\n text-align: right;\n width: 40px;\n}\n\n.od-Tabel.sc-dso-ozon-content thead.sc-dso-ozon-content {\n font-weight: 600;\n}\n\n.od-Kadertekst.sc-dso-ozon-content {\n border: 1px solid #e5e5e5;\n margin-bottom: 1rem;\n padding: 1rem;\n}\n\n.dso-del.sc-dso-ozon-content {\n background-color: #f5d8dc;\n color: #000;\n text-decoration: line-through;\n}\n.dso-del.sc-dso-ozon-content a.sc-dso-ozon-content {\n color: #000;\n}\n\n.dso-ins.sc-dso-ozon-content {\n background-color: #e4f1d4;\n box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25);\n color: #000;\n}\n.dso-ins.sc-dso-ozon-content a.sc-dso-ozon-content {\n color: #000;\n}";
491
+ const ozonContentCss = "ins {\n background-color: #e4f1d4;\n box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25);\n color: #000;\n text-decoration: none;\n}\n\ndel {\n background-color: #f5d8dc;\n color: #000;\n}\n\n:host(:not([inline])) {\n display: block;\n}\n\n:host([inline]) {\n display: inline;\n}\n\n:host([deleted]) * {\n text-decoration: line-through !important;\n}\n\n:host([interactive]) {\n background-color: transparent;\n color: #39870c;\n text-decoration: underline;\n cursor: pointer;\n color: #275937;\n font-weight: 600;\n text-decoration: none;\n}\n:host([interactive]):hover, :host([interactive]):focus {\n color: #676cb0;\n text-decoration: underline;\n}\n:host([interactive]):active {\n text-decoration: none;\n}\n\n:host([interactive=sub]) {\n color: #191919;\n}\n\n.sr-only,\n.deleted-start,\n.deleted-end {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n\nbutton.toggle-note {\n display: inline-block;\n font-size: 1em;\n font-weight: 500;\n margin-bottom: 0;\n text-decoration: none;\n touch-action: manipulation;\n text-align: left;\n user-select: none;\n vertical-align: middle;\n border: 0;\n color: #39870c;\n line-height: 1;\n padding: 0;\n background-color: transparent;\n}\nbutton.toggle-note:focus, button.toggle-note:focus-visible {\n outline-offset: 2px;\n}\nbutton.toggle-note:active {\n outline: 0;\n}\nbutton.toggle-note[disabled] {\n color: #afcf9d;\n}\nbutton.toggle-note[disabled].dso-spinner-left, button.toggle-note[disabled].dso-spinner-right {\n color: #39870c;\n}\nbutton.toggle-note:not([disabled]):hover {\n color: #275937;\n text-decoration: underline;\n text-underline-position: under;\n}\nbutton.toggle-note:not([disabled]):active {\n color: #173521;\n}\nbutton.toggle-note.btn-align {\n line-height: calc(1.5em - 1px);\n padding: 11px 0;\n position: relative;\n}\nbutton.toggle-note.dso-spinner-left::before {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n height: 24px;\n vertical-align: middle;\n width: 24px;\n margin-right: 8px;\n}\nbutton.toggle-note.dso-spinner-right::after {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n height: 24px;\n vertical-align: middle;\n width: 24px;\n margin-left: 8px;\n}\nbutton.toggle-note dso-icon + span:not(.sr-only),\nbutton.toggle-note svg.di + span:not(.sr-only),\nbutton.toggle-note span:not(.sr-only) + dso-icon,\nbutton.toggle-note span:not(.sr-only) + svg.di {\n margin-left: 8px;\n}\nbutton.toggle-note svg.di.di-chevron-down + span:not(.sr-only),\nbutton.toggle-note svg.di.di-chevron-up + span:not(.sr-only),\nbutton.toggle-note span:not(.sr-only) + svg.di.di-chevron-down,\nbutton.toggle-note span:not(.sr-only) + svg.di.di-chevron-up {\n margin-left: 4px;\n}\nbutton.toggle-note dso-icon[icon=chevron-left] + span:not(.sr-only),\nbutton.toggle-note dso-icon[icon=chevron-right] + span:not(.sr-only),\nbutton.toggle-note svg.di.di-angle-down + span:not(.sr-only),\nbutton.toggle-note svg.di.di-angle-up + span:not(.sr-only),\nbutton.toggle-note span:not(.sr-only) + svg.di.di-angle-down,\nbutton.toggle-note span:not(.sr-only) + svg.di.di-angle-up,\nbutton.toggle-note span:not(.sr-only) + dso-icon[icon=chevron-left],\nbutton.toggle-note span:not(.sr-only) + dso-icon[icon=chevron-right] {\n margin-left: 0;\n}\nbutton.toggle-note dso-icon,\nbutton.toggle-note svg.di,\nbutton.toggle-note span {\n vertical-align: middle;\n}\n\nspan[role=section],\nspan[role=paragraph] {\n display: block;\n}\n\n:host(:not([inline])) .fallback {\n display: block;\n}\n\na {\n background-color: transparent;\n color: #39870c;\n text-decoration: underline;\n}\na:hover, a:focus {\n color: #676cb0;\n text-decoration: underline;\n}\na:active {\n text-decoration: none;\n}\na:visited {\n color: #8b4a6a;\n}\n\n.od-Term {\n font-weight: 700;\n}\n\n.od-Definitie,\n.od-Tussenkop {\n font-style: italic;\n}\n\n.od-Inhoud,\n.od-Inhoud > .od-Lijst,\n.od-IntIoRef,\n.od-Lidnr,\n.od-LiNr,\n.od-Opschrift,\n.od-Tussenkop {\n display: inline;\n}\n\n.od-Al {\n margin-bottom: 0.75em;\n}\n\n.od-IntIoRef {\n border-bottom: 1px dotted;\n}\n\n.dso-ozon-bron {\n font-style: italic;\n font-size: 0.75rem;\n}\n\n.dso-ozon-figuur {\n margin-bottom: 16px;\n}\n.dso-ozon-figuur .figuur-bijschrift {\n display: block;\n font-size: 0.75rem;\n font-style: italic;\n}\n.dso-ozon-figuur.bijschrift-boven .figuur-bijschrift {\n padding-bottom: 0.25rem;\n}\n.dso-ozon-figuur.bijschrift-onder .figuur-bijschrift {\n padding-top: 0.25rem;\n}\n.dso-ozon-figuur .figuur-titel {\n color: #8b4a6a;\n display: block;\n font-weight: 500;\n padding-bottom: 0.5rem;\n}\n\n.dso-ozon-lijst span.od-Lijstaanhef,\n.dso-ozon-lijst span.od-Lijstsluiting {\n margin-bottom: 1rem;\n}\n.dso-ozon-lijst ul.expliciet {\n list-style: none;\n}\n.dso-ozon-lijst ul.expliciet > .od-Li {\n position: relative;\n}\n.dso-ozon-lijst ul.expliciet > .od-Li > span.od-LiNummer {\n position: absolute;\n left: -44px;\n text-align: right;\n width: 40px;\n}\n\n.od-Tabel thead {\n font-weight: 600;\n}\n\n.od-Kadertekst {\n border: 1px solid #e5e5e5;\n margin-bottom: 1rem;\n padding: 1rem;\n}\n\n.dso-del {\n background-color: #f5d8dc;\n color: #000;\n text-decoration: line-through;\n}\n.dso-del a {\n color: #000;\n}\n\n.dso-ins {\n background-color: #e4f1d4;\n box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25);\n color: #000;\n}\n.dso-ins a {\n color: #000;\n}\n\n.dso-rich-content p {\n margin: 0 0 16px;\n}\n.dso-rich-content ul,\n.dso-rich-content ol {\n margin-bottom: 16px;\n}\n.dso-rich-content ul:not(.list-group):not(.dso-link-list):not(.dso-columns-list),\n.dso-rich-content ol:not(.list-group):not(.dso-link-list):not(.dso-columns-list) {\n padding-inline-start: 24px;\n}\n.dso-rich-content pre {\n margin: 0 0 16px;\n}\n.dso-rich-content blockquote {\n padding: 16px 24px;\n}\n.dso-rich-content dso-highlight-box,\n.dso-rich-content .dso-highlight-box {\n margin-bottom: 24px;\n}\n.dso-rich-content img {\n height: auto;\n max-width: 100%;\n}";
484
492
 
485
- const OzonContent = class {
486
- constructor(hostRef) {
487
- registerInstance(this, hostRef);
493
+ const OzonContent = /*@__PURE__*/ proxyCustomElement(class OzonContent extends HTMLElement {
494
+ constructor() {
495
+ super();
496
+ this.__registerHost();
497
+ this.__attachShadow();
488
498
  this.dsoAnchorClick = createEvent(this, "dsoAnchorClick", 7);
489
499
  this.dsoClick = createEvent(this, "dsoClick", 7);
490
500
  this.mapper = new Mapper();
@@ -519,10 +529,29 @@ const OzonContent = class {
519
529
  }
520
530
  return (h(Host, { onClick: (e) => this.handleHostOnClick(e) }, h("slot", { name: "prefix" }), transformed, h("slot", { name: "suffix" })));
521
531
  }
522
- get host() { return getElement(this); }
523
- };
524
- OzonContent.style = ozonContentCss;
532
+ get host() { return this; }
533
+ static get style() { return ozonContentCss; }
534
+ }, [1, "dso-ozon-content", {
535
+ "content": [1],
536
+ "inline": [516],
537
+ "deleted": [516],
538
+ "interactive": [520],
539
+ "state": [32]
540
+ }]);
541
+ function defineCustomElement() {
542
+ if (typeof customElements === "undefined") {
543
+ return;
544
+ }
545
+ const components = ["dso-ozon-content"];
546
+ components.forEach(tagName => { switch (tagName) {
547
+ case "dso-ozon-content":
548
+ if (!customElements.get(tagName)) {
549
+ customElements.define(tagName, OzonContent);
550
+ }
551
+ break;
552
+ } });
553
+ }
525
554
 
526
- export { OzonContent as dso_ozon_content };
555
+ export { OzonContent as O, defineCustomElement as d };
527
556
 
528
- //# sourceMappingURL=dso-ozon-content.entry.js.map
557
+ //# sourceMappingURL=ozon-content.js.map