@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 +0,0 @@
1
- {"file":"dso-slide-toggle.entry.js","mappings":";;;AAAA,MAAM,cAAc,GAAG,4vBAA4vB;;MCStwB,WAAW;;;;mBAQZ,KAAK;oBAMJ,KAAK;;;;sBAqBH,EAAE,EAAE;;EAQT,YAAY,CAAC,CAAQ;IAC3B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;MACxB,aAAa,EAAE,CAAC;MAChB,OAAO,EAAE,CAAC,IAAI,CAAC,OAAO;KACvB,CAAC,CAAC;GACJ;EAED,iBAAiB;IACf,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;GAC9D;EAED,MAAM;IACJ,QACE,kBACE,4BACE,EAAE,EAAE,IAAI,CAAC,UAAU,EACnB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,YAAY,kBACJ,EAAE,GAAG,IAAI,CAAC,OAAO,EAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,KAC/B,IAAI,CAAC,eAAe,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,eAAe,EAAE,GAAG,EAAE,IAClE,IAAI,CAAC,YAAY,GAAG,EAAE,iBAAiB,EAAE,IAAI,CAAC,YAAY,EAAE,GAAG,EAAE,IAEtE,WAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,IAChF,SAAG,IAAI,EAAC,MAAM,eAAW,SAAS,IAChC,YAAM,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,cAAc,EAAC,EAAE,EAAC,IAAI,GAAG,EAC3D,cAAQ,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,EAAC,IAAI,EAAC,cAAc,GAAG,CAC1C,CACA,CACC,EACR,IAAI,CAAC,eAAe,KACnB,aAAO,OAAO,EAAE,IAAI,CAAC,UAAU,IAC7B,eAAQ,CACF,CACT,CACA,EACH;GACH;;;;;;;","names":[],"sources":["./src/components/slide-toggle/slide-toggle.scss?tag=dso-slide-toggle","./src/components/slide-toggle/slide-toggle.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/colors\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n\r\nbutton.dso-slider {\r\n border: 0;\r\n padding: 0;\r\n\r\n &:focus-visible {\r\n outline: 2px solid colors.$grijs-80;\r\n outline-offset: 1px;\r\n }\r\n\r\n svg {\r\n rect {\r\n fill: colors.$grijs-40;\r\n transition: fill 0.25s;\r\n }\r\n\r\n circle {\r\n @include utilities.transition(transform);\r\n\r\n transform: translateX(10px);\r\n fill: colors.$wit;\r\n }\r\n }\r\n\r\n &[aria-checked=\"true\"] svg {\r\n rect {\r\n fill: colors.$bosgroen;\r\n }\r\n\r\n circle {\r\n transform: translateX(30px);\r\n fill: colors.$wit;\r\n }\r\n }\r\n\r\n &[disabled] svg {\r\n rect {\r\n fill: colors.$grijs-20;\r\n }\r\n\r\n circle {\r\n fill: colors.$grijs-10;\r\n }\r\n }\r\n\r\n &[disabled][aria-checked=\"true\"] svg {\r\n rect {\r\n fill: colors.$bosgroen-40;\r\n }\r\n\r\n circle {\r\n fill: colors.$grijs-10;\r\n }\r\n }\r\n}\r\n\r\n.dso-slider {\r\n border-radius: units.$u3;\r\n display: inline-flex;\r\n\r\n &:hover {\r\n cursor: pointer;\r\n }\r\n}\r\n","import { h, Component, ComponentInterface, Event, Fragment, Prop, EventEmitter, Element, State } from \"@stencil/core\";\r\nimport { v4 } from \"uuid\";\r\nimport { SlideToggleActiveEvent } from \"./slide-toggle.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-slide-toggle\",\r\n styleUrl: \"slide-toggle.scss\",\r\n shadow: false,\r\n})\r\nexport class SlideToggle implements ComponentInterface {\r\n @Element()\r\n private host!: HTMLDsoSlideToggleElement;\r\n\r\n /**\r\n * Set to true if Slide Toggle is checked.\r\n */\r\n @Prop()\r\n checked = false;\r\n\r\n /**\r\n * Disables the Slide Toggle, preventing it from checking/unchecking and therefor not emitting any events.\r\n */\r\n @Prop()\r\n disabled = false;\r\n\r\n /**\r\n * When provided the `<button>` will be labelled with `aria-label`. For a visible label provide a `<span>` inside the component.\r\n */\r\n @Prop()\r\n accessibleLabel?: string;\r\n\r\n /**\r\n * Provide the `id` of the element that labels this element. this property sets the `aria-labelledby` on the switch button.\r\n */\r\n @Prop()\r\n labelledbyId?: string;\r\n\r\n @State()\r\n hasVisibleLabel?: boolean;\r\n\r\n /**\r\n * Provide an `id` for the `<button>`. Useful for placing your to place your own `<label for=\"id\">`.\r\n */\r\n @Prop()\r\n identifier = v4();\r\n\r\n /**\r\n * Emitted when user checks or unchecks the Slide Toggle.\r\n */\r\n @Event()\r\n dsoActiveChange!: EventEmitter<SlideToggleActiveEvent>;\r\n\r\n private handleSwitch(e: Event): void {\r\n this.dsoActiveChange.emit({\r\n originalEvent: e,\r\n checked: !this.checked,\r\n });\r\n }\r\n\r\n componentWillLoad(): void {\r\n this.hasVisibleLabel = this.host.querySelector(\"*\") !== null;\r\n }\r\n\r\n render() {\r\n return (\r\n <>\r\n <button\r\n id={this.identifier}\r\n role=\"switch\"\r\n class=\"dso-slider\"\r\n aria-checked={\"\" + this.checked}\r\n disabled={this.disabled}\r\n onClick={(e) => this.handleSwitch(e)}\r\n {...(this.accessibleLabel ? { \"aria-label\": this.accessibleLabel } : {})}\r\n {...(this.labelledbyId ? { \"aria-labelledby\": this.labelledbyId } : {})}\r\n >\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"20\" viewBox=\"0 0 40 20\">\r\n <g fill=\"none\" fill-rule=\"evenodd\">\r\n <rect width=\"40\" height=\"20\" fill=\"currentColor\" rx=\"10\" />\r\n <circle cy=\"10\" r=\"8\" fill=\"currentColor\" />\r\n </g>\r\n </svg>\r\n </button>\r\n {this.hasVisibleLabel && (\r\n <label htmlFor={this.identifier}>\r\n <slot />\r\n </label>\r\n )}\r\n </>\r\n );\r\n }\r\n}\r\n"],"version":3}
@@ -1,196 +0,0 @@
1
- import { a as getRenderingRef, f as forceUpdate } from './index-898d8443.js';
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
- /**
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.
31
- *
32
- * Better leak in Edge than to be useless.
33
- */
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));
38
- }
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 {};
45
- }
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
-
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--;
185
- }
186
- };
187
-
188
- const createStore = (defaultState, shouldUpdate) => {
189
- const map = createObservableMap(defaultState, shouldUpdate);
190
- map.use(stencilSubscription());
191
- return map;
192
- };
193
-
194
- export { createStore as c };
195
-
196
- //# sourceMappingURL=index-b57dbe04.js.map
@@ -1 +0,0 @@
1
- {"file":"index-b57dbe04.js","mappings":";;AAEA,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,KAAK;AAC9C,IAAI,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACpC,IAAI,IAAI,CAAC,KAAK,EAAE;AAChB,QAAQ,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACnC,KAAK;AACL,SAAS,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrC,QAAQ,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1B,KAAK;AACL,CAAC,CAAC;AACF,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK;AAC7B,IAAI,IAAI,SAAS,CAAC;AAClB,IAAI,OAAO,CAAC,GAAG,IAAI,KAAK;AACxB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY,YAAY,CAAC,SAAS,CAAC,CAAC;AACpC,SAAS;AACT,QAAQ,SAAS,GAAG,UAAU,CAAC,MAAM;AACrC,YAAY,SAAS,GAAG,CAAC,CAAC;AAC1B,YAAY,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;AACxB,SAAS,EAAE,EAAE,CAAC,CAAC;AACf,KAAK,CAAC;AACN,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,WAAW,GAAG,CAAC,YAAY,KAAK,EAAE,aAA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AChB,QAAQ,GAAG;AACX,QAAQ,OAAO;AACf,QAAQ,KAAK;AACb,QAAQ,WAAW;AACnB,KAAK,CAAC;AACN,CAAC,CAAC;AACF,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK;AACzC,IAAI,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACtC,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,KAAK,CAAC,KAAK,CAAC,GAAG,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,4 +0,0 @@
1
- export interface AnnotationToggleEvent {
2
- originalEvent?: MouseEvent | KeyboardEvent;
3
- open: boolean;
4
- }
@@ -1 +0,0 @@
1
- export declare function isExpandable(element: Element | null): element is HTMLDsoExpandableElement;
@@ -1,33 +0,0 @@
1
- import { EventEmitter } from "../../stencil-public-runtime";
2
- import { EditAction, ExpandableHeadingToggleEvent, HeadingTags } from "./expandable-heading.interfaces";
3
- export declare class ExpandableHeading {
4
- /**
5
- * To open the Expandable Heading.
6
- */
7
- open?: boolean;
8
- /**
9
- * Which heading element to use.
10
- */
11
- heading: HeadingTags;
12
- /**
13
- * The color.
14
- */
15
- color: "default" | "black";
16
- /**
17
- * Marks this element as unavailable.
18
- */
19
- suppressed: boolean;
20
- /**
21
- * Whether this Expandable Heading has an edit action.
22
- *
23
- * Also known as "wijzigactie" in STOP.
24
- */
25
- editAction?: EditAction;
26
- /**
27
- * Emitted when the user activates the toggle button.
28
- */
29
- dsoToggle: EventEmitter<ExpandableHeadingToggleEvent>;
30
- private identifier;
31
- private toggle;
32
- render(): any;
33
- }
@@ -1,6 +0,0 @@
1
- export type HeadingTags = "h2" | "h3" | "h4" | "h5" | "h6";
2
- export interface ExpandableHeadingToggleEvent {
3
- originalEvent?: MouseEvent | KeyboardEvent;
4
- open: boolean;
5
- }
6
- export type EditAction = "delete" | "insert";
@@ -1,9 +0,0 @@
1
- import { FunctionalComponent } from "../../stencil-public-runtime";
2
- import { HeadingTags } from "./expandable-heading.interfaces";
3
- export declare const Heading: FunctionalComponent<{
4
- heading: HeadingTags;
5
- className?: string | {
6
- [className: string]: boolean;
7
- };
8
- ref?: (element: HTMLHeadingElement | undefined) => void;
9
- }>;
@@ -1,10 +0,0 @@
1
- interface AnnotationState {
2
- [key: string]: boolean;
3
- }
4
- export declare abstract class AnnotationService {
5
- private static _state;
6
- static get state(): AnnotationState;
7
- static toggle(id: string): void;
8
- private static initializeStore;
9
- }
10
- export {};