@dso-toolkit/core 103.0.0 → 104.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/dist/bundle/dso-accordion-section.js +4 -4
  2. package/dist/bundle/dso-action-list.js +1 -1
  3. package/dist/bundle/dso-advanced-select.js +4 -4
  4. package/dist/bundle/dso-alert.js +1 -1
  5. package/dist/bundle/dso-annotation-activiteit.js +2 -2
  6. package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +2 -2
  7. package/dist/bundle/dso-annotation-kaart.js +2 -2
  8. package/dist/bundle/dso-annotation-locatie.js +1 -1
  9. package/dist/bundle/dso-annotation-omgevingsnormwaarde.js +2 -2
  10. package/dist/bundle/dso-badge.js +1 -1
  11. package/dist/bundle/dso-banner.js +1 -1
  12. package/dist/bundle/dso-card-container.js +1 -1
  13. package/dist/bundle/dso-card.js +1 -1
  14. package/dist/bundle/dso-document-component.js +1 -1
  15. package/dist/bundle/dso-dropdown-menu-item.js +6 -2
  16. package/dist/bundle/dso-dropdown-menu.js +1 -1
  17. package/dist/bundle/dso-grid-column.js +1 -1
  18. package/dist/bundle/dso-header.js +1 -1
  19. package/dist/bundle/dso-highlight-box.js +1 -1
  20. package/dist/bundle/dso-icon-button.js +1 -1
  21. package/dist/bundle/dso-image-overlay.js +1 -1
  22. package/dist/bundle/dso-info-button.js +1 -1
  23. package/dist/bundle/dso-info.js +1 -1
  24. package/dist/bundle/dso-label.js +1 -1
  25. package/dist/bundle/dso-legend-group.js +1 -1
  26. package/dist/bundle/dso-legend-item.js +2 -2
  27. package/dist/bundle/dso-legend.js +1 -1
  28. package/dist/bundle/dso-list-button.js +5 -5
  29. package/dist/bundle/dso-map-base-layers.js +4 -4
  30. package/dist/bundle/dso-map-controls.js +2 -2
  31. package/dist/bundle/dso-map-layer-object.js +1 -1
  32. package/dist/bundle/dso-map-layer.js +1 -1
  33. package/dist/bundle/dso-map-overlays.js +4 -4
  34. package/dist/bundle/dso-mark-bar.js +1 -1
  35. package/dist/bundle/dso-modal.js +1 -1
  36. package/dist/bundle/dso-onboarding-tip.js +1 -1
  37. package/dist/bundle/dso-ozon-content-toggletip.js +1 -1
  38. package/dist/bundle/dso-ozon-content.js +1 -1
  39. package/dist/bundle/dso-panel.js +1 -1
  40. package/dist/bundle/dso-plekinfo-card-item.js +1 -1
  41. package/dist/bundle/dso-plekinfo-card.js +1 -1
  42. package/dist/bundle/dso-project-item.js +2 -2
  43. package/dist/bundle/dso-renvooi.js +1 -1
  44. package/dist/bundle/dso-selectable.js +1 -1
  45. package/dist/bundle/dso-shopping-cart-item.js +2 -2
  46. package/dist/bundle/dso-shopping-cart.js +1 -1
  47. package/dist/bundle/dso-survey-rating.js +3 -3
  48. package/dist/bundle/dso-table.js +1 -1
  49. package/dist/bundle/dso-viewer-grid.js +1 -1
  50. package/dist/bundle/dsot-document-component-demo.js +13 -13
  51. package/dist/bundle/p--gUaHmK1.js +69 -0
  52. package/dist/bundle/{p-DHqJaOkE.js → p-B-KTvN4y.js} +1 -1
  53. package/dist/bundle/{p-C5ts7_Ak.js → p-BB_ih7Hk.js} +2 -2
  54. package/dist/bundle/{p-VEPEqk4_.js → p-BWa52F1H.js} +1 -1
  55. package/dist/bundle/p-Bs_nbcJ5.js +130 -0
  56. package/dist/bundle/{p-T4Dc3DFJ.js → p-CIVR1Iwo.js} +1 -1
  57. package/dist/bundle/{p-Bn0wLbPn.js → p-COWOGCTP.js} +1 -1
  58. package/dist/bundle/{p-D49N6P3Z.js → p-CYMksuXA.js} +2 -2
  59. package/dist/bundle/p-D3Akngmt.js +386 -0
  60. package/dist/bundle/{p-Cbzkudtw.js → p-DK7XdyJj.js} +9 -4
  61. package/dist/bundle/p-DwujHx9z.js +1232 -0
  62. package/dist/bundle/{p-Cq5S5vzL.js → p-DxSsBFIv.js} +2 -2
  63. package/dist/bundle/p-bSxB3IXF.js +176 -0
  64. package/dist/bundle/{p-DMsFeivg.js → p-lNRYydvn.js} +30 -4
  65. package/dist/bundle/{p-k0MQ-KkF.js → p-syG347lq.js} +1 -1
  66. package/dist/bundle/{p-CNb6BsD9.js → p-zu7axvCG.js} +9 -7
  67. package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
  68. package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
  69. package/dist/cjs/dso-advanced-select.cjs.entry.js +1 -1
  70. package/dist/cjs/dso-alert_7.cjs.entry.js +14 -12
  71. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +1 -1
  72. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +1 -1
  73. package/dist/cjs/dso-annotation-kaart.cjs.entry.js +1 -1
  74. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +2 -2
  75. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +1 -1
  76. package/dist/cjs/dso-banner.cjs.entry.js +1 -1
  77. package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
  78. package/dist/cjs/dso-card.cjs.entry.js +1 -1
  79. package/dist/cjs/dso-dropdown-menu-item.cjs.entry.js +6 -2
  80. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
  81. package/dist/cjs/dso-grid-column.cjs.entry.js +1 -1
  82. package/dist/cjs/dso-header.cjs.entry.js +1 -1
  83. package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
  84. package/dist/cjs/dso-icon-button.cjs.entry.js +21 -2
  85. package/dist/cjs/dso-info_3.cjs.entry.js +28 -3
  86. package/dist/cjs/dso-label_2.cjs.entry.js +1 -1
  87. package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
  88. package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
  89. package/dist/cjs/dso-map-layer-object.cjs.entry.js +1 -1
  90. package/dist/cjs/dso-map-layer.cjs.entry.js +1 -1
  91. package/dist/cjs/dso-plekinfo-card-item.cjs.entry.js +1 -1
  92. package/dist/cjs/dso-plekinfo-card.cjs.entry.js +1 -1
  93. package/dist/cjs/dso-renvooi_2.cjs.entry.js +1 -1
  94. package/dist/cjs/dso-shopping-cart-item.cjs.entry.js +1 -1
  95. package/dist/cjs/dso-shopping-cart.cjs.entry.js +1 -1
  96. package/dist/cjs/dso-survey-rating.cjs.entry.js +1 -1
  97. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  98. package/dist/cjs/dso-viewer-grid.cjs.entry.js +1 -1
  99. package/dist/cjs/loader.cjs.js +1 -1
  100. package/dist/collection/components/accordion/components/accordion-section.css +1 -3
  101. package/dist/collection/components/action-list/action-list.css +1 -1
  102. package/dist/collection/components/advanced-select/advanced-select.css +2 -2
  103. package/dist/collection/components/alert/alert.css +4 -4
  104. package/dist/collection/components/annotation/annotation.css +14 -10
  105. package/dist/collection/components/badge/badge.css +5 -5
  106. package/dist/collection/components/banner/banner.css +4 -4
  107. package/dist/collection/components/card/card.css +12 -8
  108. package/dist/collection/components/card-container/card-container.css +0 -2
  109. package/dist/collection/components/document-component/document-component.css +166 -57
  110. package/dist/collection/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.css +1 -0
  111. package/dist/collection/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.js +5 -1
  112. package/dist/collection/components/dropdown-menu/dropdown-menu.css +11 -11
  113. package/dist/collection/components/grid-column/grid-column.js +3 -1
  114. package/dist/collection/components/header/header.css +1 -1
  115. package/dist/collection/components/highlight-box/highlight-box.css +4 -4
  116. package/dist/collection/components/icon-button/icon-button.css +22 -21
  117. package/dist/collection/components/icon-button/icon-button.js +41 -2
  118. package/dist/collection/components/image-overlay/image-overlay.css +4 -4
  119. package/dist/collection/components/image-overlay/image-overlay.js +7 -5
  120. package/dist/collection/components/info/info.css +1 -1
  121. package/dist/collection/components/info/info.interfaces.js +1 -0
  122. package/dist/collection/components/info/info.js +50 -7
  123. package/dist/collection/components/label/label.css +6 -6
  124. package/dist/collection/components/list-button/list-button.css +3 -3
  125. package/dist/collection/components/map-controls/map-controls.css +164 -55
  126. package/dist/collection/components/map-layer/components/map-layer-object.css +2 -2
  127. package/dist/collection/components/map-layer/map-layer.css +2 -2
  128. package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.js +3 -1
  129. package/dist/collection/components/ozon-content/ozon-content.css +178 -69
  130. package/dist/collection/components/panel/panel.css +1 -1
  131. package/dist/collection/components/plekinfo-card/plekinfo-card-item/plekinfo-card-item.css +2 -2
  132. package/dist/collection/components/plekinfo-card/plekinfo-card.css +3 -2
  133. package/dist/collection/components/renvooi/renvooi.css +2 -2
  134. package/dist/collection/components/selectable/selectable.js +24 -1
  135. package/dist/collection/components/shopping-cart/shopping-cart-item/shopping-cart-item.css +3 -3
  136. package/dist/collection/components/shopping-cart/shopping-cart.css +1 -1
  137. package/dist/collection/components/survey-rating/survey-rating.css +9 -9
  138. package/dist/collection/components/table/table.css +164 -55
  139. package/dist/collection/components/viewer-grid/viewer-grid.css +3 -3
  140. package/dist/components/alert.js +1 -1
  141. package/dist/components/annotation-locatie.js +1 -1
  142. package/dist/components/badge.js +1 -1
  143. package/dist/components/document-component.js +1 -1
  144. package/dist/components/dso-accordion-section.js +1 -1
  145. package/dist/components/dso-action-list.js +1 -1
  146. package/dist/components/dso-advanced-select.js +1 -1
  147. package/dist/components/dso-annotation-activiteit.js +1 -1
  148. package/dist/components/dso-annotation-gebiedsaanwijzing.js +1 -1
  149. package/dist/components/dso-annotation-kaart.js +1 -1
  150. package/dist/components/dso-annotation-omgevingsnormwaarde.js +1 -1
  151. package/dist/components/dso-banner.js +1 -1
  152. package/dist/components/dso-card-container.js +1 -1
  153. package/dist/components/dso-card.js +1 -1
  154. package/dist/components/dso-dropdown-menu-item.js +1 -1
  155. package/dist/components/dso-dropdown-menu.js +1 -1
  156. package/dist/components/dso-grid-column.js +1 -1
  157. package/dist/components/dso-header.js +1 -1
  158. package/dist/components/dso-highlight-box.js +1 -1
  159. package/dist/components/dso-list-button.js +1 -1
  160. package/dist/components/dso-map-controls.js +1 -1
  161. package/dist/components/dso-map-layer-object.js +1 -1
  162. package/dist/components/dso-map-layer.js +1 -1
  163. package/dist/components/dso-plekinfo-card-item.js +1 -1
  164. package/dist/components/dso-plekinfo-card.js +1 -1
  165. package/dist/components/dso-shopping-cart-item.js +1 -1
  166. package/dist/components/dso-shopping-cart.js +1 -1
  167. package/dist/components/dso-survey-rating.js +1 -1
  168. package/dist/components/dso-viewer-grid.js +1 -1
  169. package/dist/components/icon-button.js +1 -1
  170. package/dist/components/image-overlay.js +1 -1
  171. package/dist/components/info.js +1 -1
  172. package/dist/components/label.js +1 -1
  173. package/dist/components/ozon-content-toggletip.js +1 -1
  174. package/dist/components/ozon-content.js +1 -1
  175. package/dist/components/panel.js +1 -1
  176. package/dist/components/renvooi.js +1 -1
  177. package/dist/components/selectable.js +1 -1
  178. package/dist/components/table.js +1 -1
  179. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  180. package/dist/dso-toolkit/p-0bd4359a.entry.js +1 -0
  181. package/dist/dso-toolkit/p-1a83428e.entry.js +1 -0
  182. package/dist/dso-toolkit/p-1cbeac39.entry.js +1 -0
  183. package/dist/dso-toolkit/p-24b06d7f.entry.js +1 -0
  184. package/dist/dso-toolkit/{p-0262f952.entry.js → p-3474228d.entry.js} +1 -1
  185. package/dist/dso-toolkit/{p-93e628a3.entry.js → p-3d996ab8.entry.js} +1 -1
  186. package/dist/dso-toolkit/p-3f519757.entry.js +1 -0
  187. package/dist/dso-toolkit/p-4fb3a234.entry.js +1 -0
  188. package/dist/dso-toolkit/{p-5adcc734.entry.js → p-5578a548.entry.js} +1 -1
  189. package/dist/dso-toolkit/p-681b9112.entry.js +1 -0
  190. package/dist/dso-toolkit/p-6aac2c86.entry.js +1 -0
  191. package/dist/dso-toolkit/{p-98a57da4.entry.js → p-6ab91ffc.entry.js} +1 -1
  192. package/dist/dso-toolkit/{p-53cb1473.entry.js → p-7c1c3774.entry.js} +1 -1
  193. package/dist/dso-toolkit/{p-842861bd.entry.js → p-7fb97253.entry.js} +1 -1
  194. package/dist/dso-toolkit/p-90252564.entry.js +1 -0
  195. package/dist/dso-toolkit/{p-04d83ab7.entry.js → p-93947f6b.entry.js} +1 -1
  196. package/dist/dso-toolkit/p-9802516f.entry.js +1 -0
  197. package/dist/dso-toolkit/{p-5646f4e6.entry.js → p-a1104ea3.entry.js} +1 -1
  198. package/dist/dso-toolkit/p-a5ec568e.entry.js +1 -0
  199. package/dist/dso-toolkit/p-a9537924.entry.js +1 -0
  200. package/dist/dso-toolkit/p-aae78745.entry.js +1 -0
  201. package/dist/dso-toolkit/p-aecf9f7b.entry.js +1 -0
  202. package/dist/dso-toolkit/{p-313ae4fd.entry.js → p-bd471a11.entry.js} +1 -1
  203. package/dist/dso-toolkit/{p-55887adb.entry.js → p-c78ebf82.entry.js} +1 -1
  204. package/dist/dso-toolkit/{p-81f901f1.entry.js → p-ccee0ef7.entry.js} +1 -1
  205. package/dist/dso-toolkit/{p-e213b2c0.entry.js → p-ce252fc6.entry.js} +1 -1
  206. package/dist/dso-toolkit/p-d2b3ead1.entry.js +1 -0
  207. package/dist/dso-toolkit/{p-01819a74.entry.js → p-dabd6116.entry.js} +1 -1
  208. package/dist/dso-toolkit/{p-4ca411bb.entry.js → p-ecfd8dce.entry.js} +1 -1
  209. package/dist/dso-toolkit/p-f80e161a.entry.js +1 -0
  210. package/dist/dso-toolkit/p-fb0c4194.entry.js +1 -0
  211. package/dist/esm/dso-accordion-section.entry.js +1 -1
  212. package/dist/esm/dso-action-list.entry.js +1 -1
  213. package/dist/esm/dso-advanced-select.entry.js +1 -1
  214. package/dist/esm/dso-alert_7.entry.js +14 -12
  215. package/dist/esm/dso-annotation-activiteit.entry.js +1 -1
  216. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +1 -1
  217. package/dist/esm/dso-annotation-kaart.entry.js +1 -1
  218. package/dist/esm/dso-annotation-locatie_2.entry.js +2 -2
  219. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +1 -1
  220. package/dist/esm/dso-banner.entry.js +1 -1
  221. package/dist/esm/dso-card-container.entry.js +1 -1
  222. package/dist/esm/dso-card.entry.js +1 -1
  223. package/dist/esm/dso-dropdown-menu-item.entry.js +6 -2
  224. package/dist/esm/dso-dropdown-menu.entry.js +1 -1
  225. package/dist/esm/dso-grid-column.entry.js +1 -1
  226. package/dist/esm/dso-header.entry.js +1 -1
  227. package/dist/esm/dso-highlight-box.entry.js +1 -1
  228. package/dist/esm/dso-icon-button.entry.js +21 -2
  229. package/dist/esm/dso-info_3.entry.js +28 -3
  230. package/dist/esm/dso-label_2.entry.js +1 -1
  231. package/dist/esm/dso-list-button.entry.js +1 -1
  232. package/dist/esm/dso-map-controls.entry.js +1 -1
  233. package/dist/esm/dso-map-layer-object.entry.js +1 -1
  234. package/dist/esm/dso-map-layer.entry.js +1 -1
  235. package/dist/esm/dso-plekinfo-card-item.entry.js +1 -1
  236. package/dist/esm/dso-plekinfo-card.entry.js +1 -1
  237. package/dist/esm/dso-renvooi_2.entry.js +1 -1
  238. package/dist/esm/dso-shopping-cart-item.entry.js +1 -1
  239. package/dist/esm/dso-shopping-cart.entry.js +1 -1
  240. package/dist/esm/dso-survey-rating.entry.js +1 -1
  241. package/dist/esm/dso-toolkit.js +1 -1
  242. package/dist/esm/dso-viewer-grid.entry.js +1 -1
  243. package/dist/esm/loader.js +1 -1
  244. package/dist/types/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.d.ts +1 -0
  245. package/dist/types/components/grid-column/grid-column.d.ts +2 -0
  246. package/dist/types/components/icon-button/icon-button.d.ts +8 -1
  247. package/dist/types/components/info/info.d.ts +13 -1
  248. package/dist/types/components/info/info.interfaces.d.ts +8 -0
  249. package/dist/types/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.d.ts +2 -0
  250. package/dist/types/components/selectable/selectable.d.ts +7 -0
  251. package/dist/types/components.d.ts +58 -5
  252. package/package.json +3 -3
  253. package/dist/bundle/p-BhoDbIAQ.js +0 -176
  254. package/dist/bundle/p-CNbJmSyU.js +0 -69
  255. package/dist/bundle/p-DDk2ov3h.js +0 -1232
  256. package/dist/bundle/p-DLbAdYPZ.js +0 -103
  257. package/dist/bundle/p-pV5ZBLPc.js +0 -386
  258. package/dist/dso-toolkit/p-170d6663.entry.js +0 -1
  259. package/dist/dso-toolkit/p-18241351.entry.js +0 -1
  260. package/dist/dso-toolkit/p-1c5754f0.entry.js +0 -1
  261. package/dist/dso-toolkit/p-3f1b48b1.entry.js +0 -1
  262. package/dist/dso-toolkit/p-3f525f8d.entry.js +0 -1
  263. package/dist/dso-toolkit/p-489094b9.entry.js +0 -1
  264. package/dist/dso-toolkit/p-4b1a0d10.entry.js +0 -1
  265. package/dist/dso-toolkit/p-4ecee93c.entry.js +0 -1
  266. package/dist/dso-toolkit/p-60050330.entry.js +0 -1
  267. package/dist/dso-toolkit/p-60e95275.entry.js +0 -1
  268. package/dist/dso-toolkit/p-6403d242.entry.js +0 -1
  269. package/dist/dso-toolkit/p-79b82b53.entry.js +0 -1
  270. package/dist/dso-toolkit/p-c369ad55.entry.js +0 -1
  271. package/dist/dso-toolkit/p-c85aee47.entry.js +0 -1
  272. package/dist/dso-toolkit/p-cbc3c1f5.entry.js +0 -1
  273. package/dist/dso-toolkit/p-df8f33a6.entry.js +0 -1
  274. package/dist/dso-toolkit/p-e2247a98.entry.js +0 -1
@@ -189,7 +189,7 @@
189
189
  padding-block: 11px;
190
190
  padding-inline: 15px;
191
191
  }
192
- .dso-secondary:hover {
192
+ .dso-secondary:hover, .dso-secondary:focus-visible {
193
193
  background-color: var(--_dso-button-secondary-hover-background-color, #d7e7ce);
194
194
  border-color: var(--_dso-button-secondary-hover-border-color, #275937);
195
195
  color: var(--_dso-button-secondary-hover-color, #275937);
@@ -201,7 +201,7 @@
201
201
  color: var(--_dso-button-secondary-active-color, #fff);
202
202
  float: var(--_dso-button-float-secondary, none);
203
203
  }
204
- .dso-secondary[disabled], .dso-secondary[disabled]:hover {
204
+ .dso-secondary[disabled], .dso-secondary[disabled]:hover, .dso-secondary[disabled]:focus-visible {
205
205
  background-color: var(--_dso-button-secondary-disabled-background-color, #fff);
206
206
  border-color: var(--_dso-button-secondary-disabled-border-color, #afcf9d);
207
207
  color: var(--_dso-button-secondary-disabled-color, #afcf9d);
@@ -265,7 +265,7 @@
265
265
  inline-size: 24px;
266
266
  margin-inline-end: 8px;
267
267
  }
268
- .dso-secondary.dso-spinner-left:not([disabled]):hover::before {
268
+ .dso-secondary.dso-spinner-left:not([disabled]):hover::before, .dso-secondary.dso-spinner-left:not([disabled]):focus-visible::before {
269
269
  background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E");
270
270
  background-repeat: no-repeat;
271
271
  content: "";
@@ -275,7 +275,7 @@
275
275
  inline-size: 24px;
276
276
  margin-inline-end: 8px;
277
277
  }
278
- .dso-secondary.dso-spinner-left:not([disabled]).dso-small:hover::before {
278
+ .dso-secondary.dso-spinner-left:not([disabled]).dso-small:hover::before, .dso-secondary.dso-spinner-left:not([disabled]).dso-small:focus-visible::before {
279
279
  block-size: 16px;
280
280
  inline-size: 16px;
281
281
  }
@@ -289,7 +289,7 @@
289
289
  inline-size: 24px;
290
290
  margin-inline-start: 8px;
291
291
  }
292
- .dso-secondary.dso-spinner-right:not([disabled]):hover::after {
292
+ .dso-secondary.dso-spinner-right:not([disabled]):hover::after, .dso-secondary.dso-spinner-right:not([disabled]):focus-visible::after {
293
293
  background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E");
294
294
  background-repeat: no-repeat;
295
295
  content: "";
@@ -299,7 +299,7 @@
299
299
  inline-size: 24px;
300
300
  margin-inline-start: 8px;
301
301
  }
302
- .dso-secondary.dso-spinner-right:not([disabled]).dso-small:hover::after {
302
+ .dso-secondary.dso-spinner-right:not([disabled]).dso-small:hover::after, .dso-secondary.dso-spinner-right:not([disabled]).dso-small:focus-visible::after {
303
303
  block-size: 16px;
304
304
  inline-size: 16px;
305
305
  }
@@ -323,7 +323,7 @@
323
323
  border-color: var(--_dso-icon-button-secondary-toggled-background-color, #275937);
324
324
  color: var(--_dso-icon-button-secondary-toggled-color, #fff);
325
325
  }
326
- .dso-secondary:not([disabled]).toggled:hover {
326
+ .dso-secondary:not([disabled]).toggled:hover, .dso-secondary:not([disabled]).toggled:focus-visible {
327
327
  background-color: var(--_dso-icon-button-secondary-toggled-hover-background-color, #1b3e27);
328
328
  border-color: var(--_dso-icon-button-secondary-toggled-hover-background-color, #1b3e27);
329
329
  }
@@ -362,20 +362,20 @@
362
362
  background-color: transparent;
363
363
  border: 0;
364
364
  }
365
- .dso-tertiary:not([disabled]):hover {
365
+ .dso-tertiary:not([disabled]):hover, .dso-tertiary:not([disabled]):focus-visible {
366
366
  color: var(--_dso-icon-button-tertiary-hover-color, var(--_dso-icon-button-tertiary-color, #275937));
367
367
  }
368
368
  .dso-tertiary:not([disabled]):active {
369
- color: var(--_dso-icon-button-tertiary-active-color, var(--_dso-icon-button-tertiary-color, #1f472c));
369
+ color: var(--_dso-icon-button-tertiary-active-color, var(--_dso-icon-button-tertiary-color, #173521));
370
370
  }
371
371
  .dso-tertiary:not([disabled]).toggled {
372
372
  color: var(--_dso-icon-button-tertiary-toggled-color, var(--_dso-icon-button-tertiary-color, #275937));
373
373
  }
374
- .dso-tertiary:not([disabled]).toggled:hover {
374
+ .dso-tertiary:not([disabled]).toggled:hover, .dso-tertiary:not([disabled]).toggled:focus-visible {
375
375
  color: var(--_dso-icon-button-tertiary-toggled-hover-color, var(--_dso-icon-button-tertiary-color, #1b3e27));
376
376
  }
377
377
  .dso-tertiary:not([disabled]).toggled:active {
378
- color: var(--_dso-icon-button-tertiary-active-color, var(--_dso-icon-button-tertiary-color, #1f472c));
378
+ color: var(--_dso-icon-button-tertiary-active-color, var(--_dso-icon-button-tertiary-color, #173521));
379
379
  }
380
380
  .dso-tertiary[disabled] {
381
381
  color: var(--_dso-icon-button-tertiary-disabled-color, var(--_dso-icon-button-tertiary-color, #afcf9d));
@@ -399,6 +399,10 @@
399
399
  .dso-map:active {
400
400
  outline: 0;
401
401
  }
402
+ .dso-map.extern::after, .dso-map.download::after {
403
+ content: "";
404
+ display: inline-block;
405
+ }
402
406
  .dso-map {
403
407
  background-color: var(--_dso-button-secondary-background-color, #fff);
404
408
  border-color: var(--_dso-button-secondary-border-color, #39870c);
@@ -413,7 +417,7 @@
413
417
  padding-block: 11px;
414
418
  padding-inline: 15px;
415
419
  }
416
- .dso-map:hover {
420
+ .dso-map:hover, .dso-map:focus-visible {
417
421
  background-color: var(--_dso-button-secondary-hover-background-color, #d7e7ce);
418
422
  border-color: var(--_dso-button-secondary-hover-border-color, #275937);
419
423
  color: var(--_dso-button-secondary-hover-color, #275937);
@@ -425,7 +429,7 @@
425
429
  color: var(--_dso-button-secondary-active-color, #fff);
426
430
  float: var(--_dso-button-float-secondary, none);
427
431
  }
428
- .dso-map[disabled], .dso-map[disabled]:hover {
432
+ .dso-map[disabled], .dso-map[disabled]:hover, .dso-map[disabled]:focus-visible {
429
433
  background-color: var(--_dso-button-secondary-disabled-background-color, #fff);
430
434
  border-color: var(--_dso-button-secondary-disabled-border-color, #afcf9d);
431
435
  color: var(--_dso-button-secondary-disabled-color, #afcf9d);
@@ -489,7 +493,7 @@
489
493
  inline-size: 24px;
490
494
  margin-inline-end: 8px;
491
495
  }
492
- .dso-map.dso-spinner-left:not([disabled]):hover::before {
496
+ .dso-map.dso-spinner-left:not([disabled]):hover::before, .dso-map.dso-spinner-left:not([disabled]):focus-visible::before {
493
497
  background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E");
494
498
  background-repeat: no-repeat;
495
499
  content: "";
@@ -499,7 +503,7 @@
499
503
  inline-size: 24px;
500
504
  margin-inline-end: 8px;
501
505
  }
502
- .dso-map.dso-spinner-left:not([disabled]).dso-small:hover::before {
506
+ .dso-map.dso-spinner-left:not([disabled]).dso-small:hover::before, .dso-map.dso-spinner-left:not([disabled]).dso-small:focus-visible::before {
503
507
  block-size: 16px;
504
508
  inline-size: 16px;
505
509
  }
@@ -513,7 +517,7 @@
513
517
  inline-size: 24px;
514
518
  margin-inline-start: 8px;
515
519
  }
516
- .dso-map.dso-spinner-right:not([disabled]):hover::after {
520
+ .dso-map.dso-spinner-right:not([disabled]):hover::after, .dso-map.dso-spinner-right:not([disabled]):focus-visible::after {
517
521
  background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E");
518
522
  background-repeat: no-repeat;
519
523
  content: "";
@@ -523,7 +527,7 @@
523
527
  inline-size: 24px;
524
528
  margin-inline-start: 8px;
525
529
  }
526
- .dso-map.dso-spinner-right:not([disabled]).dso-small:hover::after {
530
+ .dso-map.dso-spinner-right:not([disabled]).dso-small:hover::after, .dso-map.dso-spinner-right:not([disabled]).dso-small:focus-visible::after {
527
531
  block-size: 16px;
528
532
  inline-size: 16px;
529
533
  }
@@ -536,9 +540,6 @@
536
540
  padding-inline: 16px;
537
541
  white-space: nowrap;
538
542
  }
539
- .dso-map:focus, .dso-map:focus-visible {
540
- outline-offset: -1px;
541
- }
542
543
  .dso-map:has(span.sr-only):has(dso-icon) {
543
544
  padding: 8px;
544
545
  min-inline-size: auto;
@@ -566,7 +567,7 @@
566
567
  border-color: var(--_dso-icon-button-secondary-toggled-background-color, #275937);
567
568
  color: var(--_dso-icon-button-secondary-toggled-color, #fff);
568
569
  }
569
- .dso-map:not([disabled]).toggled:hover {
570
+ .dso-map:not([disabled]).toggled:hover, .dso-map:not([disabled]).toggled:focus-visible {
570
571
  background-color: var(--_dso-icon-button-secondary-toggled-hover-background-color, #1b3e27);
571
572
  border-color: var(--_dso-icon-button-secondary-toggled-hover-background-color, #1b3e27);
572
573
  }
@@ -43,6 +43,17 @@ export class IconButton {
43
43
  async setFocus() {
44
44
  this.buttonElRef?.focus();
45
45
  }
46
+ tooltipWatcher() {
47
+ this.warnIfTooltipNotInLabel();
48
+ }
49
+ warnIfTooltipNotInLabel() {
50
+ if (this.tooltip && !` ${this.label ?? ""} `.includes(` ${this.tooltip} `)) {
51
+ console.warn(`Icon Button: tooltip "${this.tooltip}" does not appear in label "${this.label ?? ""}"`);
52
+ }
53
+ }
54
+ componentWillLoad() {
55
+ this.warnIfTooltipNotInLabel();
56
+ }
46
57
  disconnectedCallback() {
47
58
  this.tooltipController.dispose();
48
59
  }
@@ -56,7 +67,7 @@ export class IconButton {
56
67
  }
57
68
  }
58
69
  render() {
59
- return (h("button", { key: '9bf48abb6605ca685ce380b65ffaeacd66bb12d2', ref: (element) => (this.buttonElRef = element), type: "button", disabled: this.disabled, "aria-label": this.label, class: `icon-button dso-${this.variant} ${this.toggled ? "toggled" : ""}`, "aria-pressed": this.toggled?.toString(), "aria-expanded": this.expanded?.toString(), onMouseEnter: this.handleShowTooltip, onMouseLeave: this.handleHideTooltip, onFocus: this.handleShowTooltip, onBlur: this.handleHideTooltip, onClick: this.handleClick }, h("dso-icon", { key: '0815abe603bc590898366bf6ffafb51a7c4d71a1', icon: this.icon, "aria-hidden": "true" }), h(Tooltip, { key: '5aa6aa5397384dde536db5e613f5eae5886d838f', tipElementRef: (element) => (this.tooltipElRef = element), tipArrowElementRef: (element) => (this.tooltipArrowElRef = element) }, this.label)));
70
+ return (h("button", { key: '51f3663454ff5552d123a55d566d618a097880d4', ref: (element) => (this.buttonElRef = element), type: "button", disabled: this.disabled, "aria-label": this.label, class: `icon-button dso-${this.variant} ${this.toggled ? "toggled" : ""}`, "aria-pressed": this.toggled?.toString(), "aria-expanded": this.expanded?.toString(), onMouseEnter: this.handleShowTooltip, onMouseLeave: this.handleHideTooltip, onFocus: this.handleShowTooltip, onBlur: this.handleHideTooltip, onClick: this.handleClick }, h("dso-icon", { key: 'b270947dd0ac8537699d4ab050fa359d62dfd9f9', icon: this.icon, "aria-hidden": "true" }), h(Tooltip, { key: '54b98cd18f0f4054426f5e1f402f750c1c45b51d', tipElementRef: (element) => (this.tooltipElRef = element), tipArrowElementRef: (element) => (this.tooltipArrowElRef = element) }, this.tooltip || this.label)));
60
71
  }
61
72
  static get is() { return "dso-icon-button"; }
62
73
  static get encapsulation() { return "shadow"; }
@@ -110,13 +121,32 @@ export class IconButton {
110
121
  "optional": false,
111
122
  "docs": {
112
123
  "tags": [],
113
- "text": "The label of the Icon Button which is shown on hover in a tooltip."
124
+ "text": "The accessible name of the Icon Button. Also shown as tooltip when `tooltip` is not set."
114
125
  },
115
126
  "getter": false,
116
127
  "setter": false,
117
128
  "reflect": true,
118
129
  "attribute": "label"
119
130
  },
131
+ "tooltip": {
132
+ "type": "string",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "string",
136
+ "resolved": "string | undefined",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": true,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": "Optional shorter text for the tooltip. Must occur as whole words in `label`, preferably at the start."
144
+ },
145
+ "getter": false,
146
+ "setter": false,
147
+ "reflect": true,
148
+ "attribute": "tooltip"
149
+ },
120
150
  "variant": {
121
151
  "type": "string",
122
152
  "mutable": false,
@@ -321,4 +351,13 @@ export class IconButton {
321
351
  }
322
352
  };
323
353
  }
354
+ static get watchers() {
355
+ return [{
356
+ "propName": "label",
357
+ "methodName": "tooltipWatcher"
358
+ }, {
359
+ "propName": "tooltip",
360
+ "methodName": "tooltipWatcher"
361
+ }];
362
+ }
324
363
  }
@@ -103,7 +103,7 @@ ins.editaction-add {
103
103
  --_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
104
104
  --_dso-icon-button-tertiary-color: #191919;
105
105
  --_dso-icon-button-tertiary-hover-color: #4c4c4c;
106
- --_dso-icon-button-tertiary-active-color: #1f472c;
106
+ --_dso-icon-button-tertiary-active-color: #173521;
107
107
  --_dso-icon-button-tertiary-toggled-color: #275937;
108
108
  --_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
109
109
  --_dso-icon-button-tertiary-disabled-color: #999;
@@ -140,7 +140,7 @@ ins.editaction-add .wrapper {
140
140
  --_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
141
141
  --_dso-icon-button-tertiary-color: #191919;
142
142
  --_dso-icon-button-tertiary-hover-color: #4c4c4c;
143
- --_dso-icon-button-tertiary-active-color: #1f472c;
143
+ --_dso-icon-button-tertiary-active-color: #173521;
144
144
  --_dso-icon-button-tertiary-toggled-color: #275937;
145
145
  --_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
146
146
  --_dso-icon-button-tertiary-disabled-color: #999;
@@ -185,7 +185,7 @@ del.editaction-remove {
185
185
  --_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
186
186
  --_dso-icon-button-tertiary-color: #191919;
187
187
  --_dso-icon-button-tertiary-hover-color: #4c4c4c;
188
- --_dso-icon-button-tertiary-active-color: #1f472c;
188
+ --_dso-icon-button-tertiary-active-color: #173521;
189
189
  --_dso-icon-button-tertiary-toggled-color: #275937;
190
190
  --_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
191
191
  --_dso-icon-button-tertiary-disabled-color: #999;
@@ -228,7 +228,7 @@ del.editaction-remove .wrapper {
228
228
  --_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
229
229
  --_dso-icon-button-tertiary-color: #191919;
230
230
  --_dso-icon-button-tertiary-hover-color: #4c4c4c;
231
- --_dso-icon-button-tertiary-active-color: #1f472c;
231
+ --_dso-icon-button-tertiary-active-color: #173521;
232
232
  --_dso-icon-button-tertiary-toggled-color: #275937;
233
233
  --_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
234
234
  --_dso-icon-button-tertiary-disabled-color: #999;
@@ -4,8 +4,8 @@ const wijzigactieLabels = {
4
4
  verwijder: "Verwijderd",
5
5
  voegtoe: "Toegevoegd",
6
6
  };
7
- const Dimmer = ({ active, src, alt, ref, close, click }, children) => active &&
8
- src && (h("dialog", { class: "wrapper", ref: ref, onClose: close, onClick: close }, h("div", { onClick: close }, children[2], h("div", { class: "figure" }, children[0], h("div", { class: "content" }, h("img", { src: src, alt: alt }), h("dso-icon-button", { icon: "cross", variant: "map", class: "close", label: "Sluiten", onDsoClick: click }), children[1])))));
7
+ const Dimmer = ({ active, src, alt, ref, close, click, titel, bijschrift, editactionLabel }) => active &&
8
+ src && (h("dialog", { class: "wrapper", ref: ref, onClose: close, onClick: close }, h("div", { onClick: close }, editactionLabel, h("div", { class: "figure" }, titel, h("div", { class: "content" }, h("img", { src: src, alt: alt }), h("dso-icon-button", { icon: "cross", variant: "map", class: "close", label: "Sluiten", onDsoClick: click }), bijschrift)))));
9
9
  /**
10
10
  * @slot - A slot to place the target `<img>` element in to make it zoomable.
11
11
  * @slot bijschrift - An optional slot to place a caption in, displayed inside the modal overlay.
@@ -108,14 +108,16 @@ export class ImageOverlay {
108
108
  render() {
109
109
  const { src, alt } = this.host.querySelector("img") ?? {};
110
110
  const editActionLabel = (this.wijzigactie && this.isWijzigactie(this.wijzigactie) && wijzigactieLabels[this.wijzigactie]) || undefined;
111
+ const titel = this.titelSlot ? (h("div", { class: "title" }, h("slot", { name: "titel" }))) : undefined;
112
+ const bijschrift = (h("div", { class: "figuur-bijschrift", hidden: !this.bijschriftSlot }, h("slot", { name: "bijschrift" })));
111
113
  const button = this.zoomable && (h("dso-icon-button", { icon: "external-link", class: "open", variant: "map", label: "Afbeelding vergroot weergeven", ref: (element) => (this.iconButtonElement = element), onDsoClick: () => (this.active = true) }));
112
114
  if (this.wijzigactie === "verwijder") {
113
- return (h(Host, { onClick: () => this.iconButtonElement?.setFocus() }, h("del", { class: "editaction-remove" }, h("div", { class: "editaction-label" }, editActionLabel, ":"), h(Dimmer, { active: this.active, src: src, alt: alt, ref: (element) => (this.wrapperElement = element), close: this.dialogCloseEventListener, click: () => this.closeZoomedImage() }, this.titelSlot && (h("div", { class: "title" }, h("slot", { name: "titel" }))), h("div", { class: "figuur-bijschrift", hidden: !this.bijschriftSlot }, h("slot", { name: "bijschrift" })), h("div", { class: "editaction-label" }, editActionLabel, ":")), h("slot", null), button)));
115
+ return (h(Host, { onClick: () => this.iconButtonElement?.setFocus() }, h("del", { class: "editaction-remove" }, h("div", { class: "editaction-label" }, editActionLabel, ":"), h(Dimmer, { active: this.active, src: src, alt: alt, ref: (element) => (this.wrapperElement = element), close: this.dialogCloseEventListener, click: () => this.closeZoomedImage(), titel: titel, bijschrift: bijschrift, editactionLabel: h("div", { class: "editaction-label" }, editActionLabel, ":") }), h("slot", null), button)));
114
116
  }
115
117
  if (this.wijzigactie === "voegtoe") {
116
- return (h(Host, { onClick: () => this.iconButtonElement?.setFocus() }, h("ins", { class: "editaction-add" }, h("div", { class: "editaction-label" }, editActionLabel, ":"), h(Dimmer, { active: this.active, src: src, alt: alt, ref: (element) => (this.wrapperElement = element), close: this.dialogCloseEventListener, click: () => this.closeZoomedImage() }, this.titelSlot && (h("div", { class: "title" }, h("slot", { name: "titel" }))), h("div", { class: "figuur-bijschrift", hidden: !this.bijschriftSlot }, h("slot", { name: "bijschrift" })), h("div", { class: "editaction-label" }, editActionLabel, ":")), h("slot", null), button)));
118
+ return (h(Host, { onClick: () => this.iconButtonElement?.setFocus() }, h("ins", { class: "editaction-add" }, h("div", { class: "editaction-label" }, editActionLabel, ":"), h(Dimmer, { active: this.active, src: src, alt: alt, ref: (element) => (this.wrapperElement = element), close: this.dialogCloseEventListener, click: () => this.closeZoomedImage(), titel: titel, bijschrift: bijschrift, editactionLabel: h("div", { class: "editaction-label" }, editActionLabel, ":") }), h("slot", null), button)));
117
119
  }
118
- return (h(Host, { onClick: () => this.iconButtonElement?.setFocus() }, h(Dimmer, { active: this.active, src: src, alt: alt, ref: (element) => (this.wrapperElement = element), close: this.dialogCloseEventListener, click: () => this.closeZoomedImage() }, this.titelSlot && (h("div", { class: "title" }, h("slot", { name: "titel" }))), h("div", { class: "figuur-bijschrift", hidden: !this.bijschriftSlot }, h("slot", { name: "bijschrift" }))), h("slot", null), button));
120
+ return (h(Host, { onClick: () => this.iconButtonElement?.setFocus() }, h(Dimmer, { active: this.active, src: src, alt: alt, ref: (element) => (this.wrapperElement = element), close: this.dialogCloseEventListener, click: () => this.closeZoomedImage(), titel: titel, bijschrift: bijschrift }), h("slot", null), button));
119
121
  }
120
122
  static get is() { return "dso-image-overlay"; }
121
123
  static get encapsulation() { return "shadow"; }
@@ -28,7 +28,7 @@
28
28
  --_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
29
29
  --_dso-icon-button-tertiary-color: #191919;
30
30
  --_dso-icon-button-tertiary-hover-color: #4c4c4c;
31
- --_dso-icon-button-tertiary-active-color: #1f472c;
31
+ --_dso-icon-button-tertiary-active-color: #173521;
32
32
  --_dso-icon-button-tertiary-toggled-color: #275937;
33
33
  --_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
34
34
  --_dso-icon-button-tertiary-disabled-color: #999;
@@ -0,0 +1 @@
1
+ export {};
@@ -3,8 +3,17 @@ import { Fragment, h } from "@stencil/core";
3
3
  * @slot - The content to be displayed inside the info box.
4
4
  */
5
5
  export class Info {
6
+ activeChanged(active) {
7
+ this.previousActiveElement = active ? getDeepActiveElement() : undefined;
8
+ }
9
+ componentWillLoad() {
10
+ this.activeChanged(this.active);
11
+ }
6
12
  render() {
7
- return (h(Fragment, { key: '943df64625f93307bd76327b6659a36d591b6301' }, h("slot", { key: '032e327a6ad730378710bb8cd5ebe4ae0506665e' }), !this.fixed && (h("dso-icon-button", { key: '64af9e7a36634d09c2d9a6089d1226c7dcebf0f9', label: "Sluiten", variant: "tertiary", icon: "cross", onDsoClick: (e) => this.dsoClose.emit(e.detail.originalEvent) }))));
13
+ return (h(Fragment, { key: '0bbfdfd01d151bc0470268f28b5d1aafc06412ae' }, h("slot", { key: '3784cc98da4db09929429405731f09cfd8448a69' }), !this.fixed && (h("dso-icon-button", { key: 'a27bb2288904385423df3b75be23c7761885fbea', label: this.closeLabel ?? "Sluiten", variant: "tertiary", icon: "cross", onDsoClick: (e) => this.dsoClose.emit({
14
+ originalEvent: e.detail.originalEvent,
15
+ previousActiveElement: this.previousActiveElement,
16
+ }) }))));
8
17
  }
9
18
  static get is() { return "dso-info"; }
10
19
  static get encapsulation() { return "shadow"; }
@@ -57,6 +66,25 @@ export class Info {
57
66
  "setter": false,
58
67
  "reflect": true,
59
68
  "attribute": "active"
69
+ },
70
+ "closeLabel": {
71
+ "type": "string",
72
+ "mutable": false,
73
+ "complexType": {
74
+ "original": "string",
75
+ "resolved": "string | undefined",
76
+ "references": {}
77
+ },
78
+ "required": false,
79
+ "optional": true,
80
+ "docs": {
81
+ "tags": [],
82
+ "text": "The accessible label of the close button. Make this specific, for example `Sluit toelichting [label]`.\r\nDefaults to \"Sluiten\"."
83
+ },
84
+ "getter": false,
85
+ "setter": false,
86
+ "reflect": false,
87
+ "attribute": "close-label"
60
88
  }
61
89
  };
62
90
  }
@@ -69,18 +97,33 @@ export class Info {
69
97
  "composed": true,
70
98
  "docs": {
71
99
  "tags": [],
72
- "text": "Emitted when the user activates the close button."
100
+ "text": "Emitted when the user activates the close button.\r\n\r\n`previousActiveElement` contains the element that had focus when the Info was activated. Use it to return focus\r\nafter closing the Info."
73
101
  },
74
102
  "complexType": {
75
- "original": "MouseEvent",
76
- "resolved": "MouseEvent",
103
+ "original": "InfoCloseEvent",
104
+ "resolved": "InfoCloseEvent",
77
105
  "references": {
78
- "MouseEvent": {
79
- "location": "global",
80
- "id": "global::MouseEvent"
106
+ "InfoCloseEvent": {
107
+ "location": "import",
108
+ "path": "./info.interfaces",
109
+ "id": "src/components/info/info.interfaces.ts::InfoCloseEvent",
110
+ "referenceLocation": "InfoCloseEvent"
81
111
  }
82
112
  }
83
113
  }
84
114
  }];
85
115
  }
116
+ static get watchers() {
117
+ return [{
118
+ "propName": "active",
119
+ "methodName": "activeChanged"
120
+ }];
121
+ }
122
+ }
123
+ function getDeepActiveElement() {
124
+ let activeElement = document.activeElement;
125
+ while (activeElement?.shadowRoot?.activeElement) {
126
+ activeElement = activeElement.shadowRoot.activeElement;
127
+ }
128
+ return activeElement instanceof HTMLElement && activeElement !== document.body ? activeElement : undefined;
86
129
  }
@@ -46,7 +46,7 @@
46
46
  --_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
47
47
  --_dso-icon-button-tertiary-color: #191919;
48
48
  --_dso-icon-button-tertiary-hover-color: #4c4c4c;
49
- --_dso-icon-button-tertiary-active-color: #1f472c;
49
+ --_dso-icon-button-tertiary-active-color: #173521;
50
50
  --_dso-icon-button-tertiary-toggled-color: #275937;
51
51
  --_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
52
52
  --_dso-icon-button-tertiary-disabled-color: #999;
@@ -91,7 +91,7 @@
91
91
  --_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
92
92
  --_dso-icon-button-tertiary-color: #191919;
93
93
  --_dso-icon-button-tertiary-hover-color: #4c4c4c;
94
- --_dso-icon-button-tertiary-active-color: #1f472c;
94
+ --_dso-icon-button-tertiary-active-color: #173521;
95
95
  --_dso-icon-button-tertiary-toggled-color: #275937;
96
96
  --_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
97
97
  --_dso-icon-button-tertiary-disabled-color: #999;
@@ -238,7 +238,7 @@
238
238
  --_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
239
239
  --_dso-icon-button-tertiary-color: #191919;
240
240
  --_dso-icon-button-tertiary-hover-color: #4c4c4c;
241
- --_dso-icon-button-tertiary-active-color: #1f472c;
241
+ --_dso-icon-button-tertiary-active-color: #173521;
242
242
  --_dso-icon-button-tertiary-toggled-color: #275937;
243
243
  --_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
244
244
  --_dso-icon-button-tertiary-disabled-color: #999;
@@ -395,7 +395,7 @@
395
395
  --_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
396
396
  --_dso-icon-button-tertiary-color: #191919;
397
397
  --_dso-icon-button-tertiary-hover-color: #4c4c4c;
398
- --_dso-icon-button-tertiary-active-color: #1f472c;
398
+ --_dso-icon-button-tertiary-active-color: #173521;
399
399
  --_dso-icon-button-tertiary-toggled-color: #275937;
400
400
  --_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
401
401
  --_dso-icon-button-tertiary-disabled-color: #999;
@@ -429,7 +429,7 @@
429
429
  --_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
430
430
  --_dso-icon-button-tertiary-color: #191919;
431
431
  --_dso-icon-button-tertiary-hover-color: #4c4c4c;
432
- --_dso-icon-button-tertiary-active-color: #1f472c;
432
+ --_dso-icon-button-tertiary-active-color: #173521;
433
433
  --_dso-icon-button-tertiary-toggled-color: #275937;
434
434
  --_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
435
435
  --_dso-icon-button-tertiary-disabled-color: #999;
@@ -464,7 +464,7 @@
464
464
  --_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
465
465
  --_dso-icon-button-tertiary-color: #191919;
466
466
  --_dso-icon-button-tertiary-hover-color: #4c4c4c;
467
- --_dso-icon-button-tertiary-active-color: #1f472c;
467
+ --_dso-icon-button-tertiary-active-color: #173521;
468
468
  --_dso-icon-button-tertiary-toggled-color: #275937;
469
469
  --_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
470
470
  --_dso-icon-button-tertiary-disabled-color: #999;
@@ -69,7 +69,7 @@
69
69
  padding-block: 11px;
70
70
  padding-inline: 15px;
71
71
  }
72
- .dso-tertiary:hover {
72
+ .dso-tertiary:hover, .dso-tertiary:focus-visible {
73
73
  background-color: var(--_dso-button-tertiary-hover-background-color, );
74
74
  border-color: var(--_dso-button-tertiary-hover-border-color, );
75
75
  color: var(--_dso-button-tertiary-hover-color, #275937);
@@ -81,7 +81,7 @@
81
81
  color: var(--_dso-button-tertiary-active-color, #173521);
82
82
  float: var(--_dso-button-float-tertiary, none);
83
83
  }
84
- .dso-tertiary[disabled], .dso-tertiary[disabled]:hover {
84
+ .dso-tertiary[disabled], .dso-tertiary[disabled]:hover, .dso-tertiary[disabled]:focus-visible {
85
85
  background-color: var(--_dso-button-tertiary-disabled-background-color, );
86
86
  border-color: var(--_dso-button-tertiary-disabled-border-color, );
87
87
  color: var(--_dso-button-tertiary-disabled-color, #afcf9d);
@@ -130,7 +130,7 @@
130
130
  .dso-tertiary[disabled].dso-spinner-left, .dso-tertiary[disabled].dso-spinner-right {
131
131
  color: #39870c;
132
132
  }
133
- .dso-tertiary:not([disabled]):hover {
133
+ .dso-tertiary:not([disabled]):hover, .dso-tertiary:not([disabled]):active {
134
134
  text-decoration: underline;
135
135
  text-underline-position: under;
136
136
  }