@ds-autonomie/web-components 1.16.2 → 1.18.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 (253) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/chunks/{chunk.VC3XT47N.js → chunk.26R2GJ3D.js} +24 -46
  3. package/dist/chunks/{chunk.RG342A22.js → chunk.2GIZK5OL.js} +5 -5
  4. package/dist/chunks/{chunk.MXDA7QXL.js → chunk.33YIN2OK.js} +12 -9
  5. package/dist/chunks/{chunk.GYJZ3E7K.js → chunk.3RD6XYCZ.js} +1 -1
  6. package/dist/chunks/{chunk.JHPIOVRD.js → chunk.3RQ3AMTB.js} +4 -4
  7. package/dist/chunks/{chunk.VJRDVQTS.js → chunk.4EOWX2QT.js} +1 -1
  8. package/dist/chunks/{chunk.CZFGLE3Y.js → chunk.4FP4K3F5.js} +20 -0
  9. package/dist/chunks/chunk.4IGA5VLC.js +308 -0
  10. package/dist/chunks/{chunk.3UNYRJRK.js → chunk.4IXJVHZ5.js} +1 -1
  11. package/dist/chunks/{chunk.V7MYOBN4.js → chunk.4L7EJLR4.js} +5 -5
  12. package/dist/chunks/{chunk.2UZSRWJ7.js → chunk.4QUJBAX3.js} +5 -0
  13. package/dist/chunks/{chunk.5MXBL3PY.js → chunk.4WWQYBFA.js} +1 -1
  14. package/dist/chunks/{chunk.E475BLMD.js → chunk.63LGJMTZ.js} +1 -1
  15. package/dist/chunks/{chunk.45B5UA3U.js → chunk.64JQY57B.js} +1 -1
  16. package/dist/chunks/{chunk.NXQ42SSB.js → chunk.67S77FO4.js} +145 -313
  17. package/dist/chunks/{chunk.IDAQJSVV.js → chunk.6GVM3YU4.js} +16 -2
  18. package/dist/chunks/chunk.6K3AQESH.js +31 -0
  19. package/dist/chunks/{chunk.Z5LJXDHJ.js → chunk.7PFNOFBI.js} +23 -12
  20. package/dist/chunks/{chunk.MZF7MK5G.js → chunk.7UPFI4HE.js} +1 -0
  21. package/dist/chunks/{chunk.7J3HDP6J.js → chunk.AC3HBDLB.js} +1 -1
  22. package/dist/chunks/{chunk.ORNTGXRO.js → chunk.ARYKCY32.js} +1 -0
  23. package/dist/chunks/{chunk.KKAOTWJY.js → chunk.ATFH7NZ3.js} +23 -1
  24. package/dist/chunks/{chunk.7KF6Z37I.js → chunk.ATHRVCEP.js} +1 -1
  25. package/dist/chunks/{chunk.A2AK34DU.js → chunk.B5XEZJD7.js} +1 -1
  26. package/dist/chunks/{chunk.KOW5OFDN.js → chunk.BAASBQN5.js} +85 -27
  27. package/dist/chunks/{chunk.BROIFXIH.js → chunk.BCJMEP6L.js} +1 -1
  28. package/dist/chunks/chunk.BFVPPAWG.js +277 -0
  29. package/dist/chunks/{chunk.4DRKFRDB.js → chunk.BNPEW3RO.js} +4 -10
  30. package/dist/chunks/{chunk.V5J2RAQ5.js → chunk.CFISAFUN.js} +90 -1
  31. package/dist/chunks/chunk.CFUNT7FK.js +96 -0
  32. package/dist/chunks/{chunk.OXM5EF3F.js → chunk.CZIWWDCG.js} +7 -18
  33. package/dist/chunks/{chunk.WHTNMZZS.js → chunk.DLMZ2MN2.js} +4 -4
  34. package/dist/chunks/{chunk.N2H4K44W.js → chunk.ENMMYFHE.js} +1 -1
  35. package/dist/chunks/chunk.EWT3XVAN.js +319 -0
  36. package/dist/chunks/{chunk.6L4HRCFK.js → chunk.EWVN3OFD.js} +1 -1
  37. package/dist/chunks/{chunk.PNTPO2DN.js → chunk.EY6DBOBY.js} +21 -11
  38. package/dist/chunks/chunk.FWFLQD5T.js +49 -0
  39. package/dist/chunks/chunk.FXAGFSAU.js +68 -0
  40. package/dist/chunks/{chunk.SIPW72IF.js → chunk.FZBZ5HAZ.js} +3 -3
  41. package/dist/chunks/{chunk.ZYY6O4PU.js → chunk.G2ETLWQZ.js} +5 -16
  42. package/dist/chunks/{chunk.BAU3732X.js → chunk.G2PBKGYI.js} +3 -2
  43. package/dist/chunks/{chunk.6L6CZSQX.js → chunk.G3MRVMJ4.js} +2 -16
  44. package/dist/chunks/chunk.GBE3NP7T.js +36 -0
  45. package/dist/chunks/{chunk.IQTKA4UT.js → chunk.GCPXZXYD.js} +1 -1
  46. package/dist/chunks/chunk.H3OIUOL7.js +55 -0
  47. package/dist/chunks/{chunk.CKBRIIGV.js → chunk.HF2BKQ7K.js} +7 -5
  48. package/dist/chunks/chunk.HF7GESMZ.js +15 -0
  49. package/dist/chunks/{chunk.43EIYNTL.js → chunk.HSLR5GY4.js} +9 -3
  50. package/dist/chunks/{chunk.5MB36CJO.js → chunk.IMRGO6QP.js} +1 -1
  51. package/dist/chunks/{chunk.JXWCUSV3.js → chunk.ISIFJ4EB.js} +1 -1
  52. package/dist/chunks/{chunk.O2OMAMMI.js → chunk.IWQVNYM3.js} +1 -1
  53. package/dist/chunks/{chunk.LFYUJOPU.js → chunk.JH5GMUO7.js} +7 -8
  54. package/dist/chunks/{chunk.A3RCXT25.js → chunk.JKSDPLU3.js} +1 -1
  55. package/dist/chunks/{chunk.2PA4QKLT.js → chunk.KKJF6BYU.js} +1 -0
  56. package/dist/chunks/{chunk.VDOVUA55.js → chunk.KOTPR264.js} +1 -0
  57. package/dist/chunks/{chunk.4EFJ2NV3.js → chunk.KSF45YRN.js} +7 -2
  58. package/dist/chunks/{chunk.BHQ3BNQA.js → chunk.L2L37MWZ.js} +10 -12
  59. package/dist/chunks/{chunk.2P44D5YL.js → chunk.L5DEEGJU.js} +10 -1
  60. package/dist/chunks/{chunk.Z74FEBJS.js → chunk.L6I3R7R4.js} +1 -1
  61. package/dist/chunks/{chunk.D433F3FV.js → chunk.LDRVRUQG.js} +1 -0
  62. package/dist/chunks/{chunk.ZLGBX4RI.js → chunk.LQ42ZLXI.js} +1 -1
  63. package/dist/chunks/{chunk.VXQMFXV5.js → chunk.M7QP6END.js} +20 -2
  64. package/dist/chunks/{chunk.WPYZYOD5.js → chunk.MFWGK7WB.js} +1 -1
  65. package/dist/chunks/{chunk.RBXTMFL6.js → chunk.MNWP6APB.js} +1 -1
  66. package/dist/chunks/{chunk.H2JSXKGD.js → chunk.MPZ56XQK.js} +4 -0
  67. package/dist/chunks/{chunk.MUGCPHYQ.js → chunk.MSCG6J3T.js} +4 -4
  68. package/dist/chunks/chunk.MVFQ3IXQ.js +179 -0
  69. package/dist/chunks/{chunk.ZWVWEQGL.js → chunk.NDQ5XCHJ.js} +5 -0
  70. package/dist/chunks/{chunk.GZMFP7UN.js → chunk.O5STCK5X.js} +8 -4
  71. package/dist/chunks/{chunk.3YSH35MM.js → chunk.O7DWCXXH.js} +1 -1
  72. package/dist/chunks/{chunk.7DHGAM7P.js → chunk.PC2VIFJW.js} +2 -2
  73. package/dist/chunks/{chunk.RYD4BVIA.js → chunk.PSAB4UIG.js} +1 -1
  74. package/dist/chunks/{chunk.GE2PTQVM.js → chunk.PT4W6K27.js} +8 -3
  75. package/dist/chunks/{chunk.CWHNW2T5.js → chunk.QGNUX2KV.js} +38 -28
  76. package/dist/chunks/{chunk.EAP74BQL.js → chunk.QVJYJURQ.js} +32 -35
  77. package/dist/chunks/{chunk.VO6MIHUM.js → chunk.RFQ2Y5SK.js} +2 -0
  78. package/dist/chunks/{chunk.QR4Z7SWH.js → chunk.RJCFCZY3.js} +1 -1
  79. package/dist/chunks/{chunk.BQ7R6MC6.js → chunk.RSX6EFCX.js} +23 -1
  80. package/dist/chunks/{chunk.JR77AUQ7.js → chunk.SH26MYV3.js} +1 -1
  81. package/dist/chunks/{chunk.TRKYAEYS.js → chunk.SRYBWTPD.js} +143 -240
  82. package/dist/chunks/{chunk.4V4L6Q7P.js → chunk.TEHCPESC.js} +1 -1
  83. package/dist/chunks/{chunk.AMIXGL74.js → chunk.TOZLN2DN.js} +20 -3
  84. package/dist/chunks/chunk.TSW2ZSHN.js +63 -0
  85. package/dist/chunks/{chunk.IJMNSKEV.js → chunk.TVVACMGN.js} +1 -6
  86. package/dist/chunks/{chunk.EMJZLQCL.js → chunk.UVGAHM33.js} +2 -1
  87. package/dist/chunks/{chunk.YG7TOAY3.js → chunk.V5E77HVI.js} +4 -4
  88. package/dist/chunks/{chunk.SUCVNPSQ.js → chunk.VNMJ2D4A.js} +31 -4
  89. package/dist/chunks/{chunk.R6572W75.js → chunk.WMZ6HMZN.js} +10 -7
  90. package/dist/chunks/{chunk.RTEOTFLP.js → chunk.WQVKSBYD.js} +11 -0
  91. package/dist/chunks/{chunk.QDXCYEAZ.js → chunk.WSP5BYQP.js} +7 -7
  92. package/dist/chunks/{chunk.XD5JM6WF.js → chunk.WYUQG5BJ.js} +20 -0
  93. package/dist/chunks/{chunk.N43R5DJN.js → chunk.YU57HFSC.js} +1 -1
  94. package/dist/chunks/chunk.YVJBJSTS.js +595 -0
  95. package/dist/chunks/{chunk.WAROYP2H.js → chunk.YXVKJQFH.js} +1 -1
  96. package/dist/chunks/{chunk.RCSAV4XJ.js → chunk.ZV7TVP6P.js} +1 -1
  97. package/dist/components/accordion/accordion.js +6 -6
  98. package/dist/components/accordion/accordion.styles.js +1 -1
  99. package/dist/components/alert/alert.d.ts +2 -0
  100. package/dist/components/alert/alert.js +5 -5
  101. package/dist/components/anchor-tag/anchor-tag.js +2 -2
  102. package/dist/components/anchor-tag/anchor-tag.styles.js +1 -1
  103. package/dist/components/avatar/avatar.js +4 -4
  104. package/dist/components/breadcrumb/breadcrumb.js +5 -5
  105. package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
  106. package/dist/components/button/button.js +6 -6
  107. package/dist/components/calendar/calendar.d.ts +1 -1
  108. package/dist/components/calendar/calendar.js +3 -3
  109. package/dist/components/calendar/calendar.styles.js +1 -1
  110. package/dist/components/callout/callout.d.ts +23 -0
  111. package/dist/components/callout/callout.js +75 -0
  112. package/dist/components/callout/callout.styles.d.ts +2 -0
  113. package/dist/components/callout/callout.styles.js +8 -0
  114. package/dist/components/card/card.d.ts +1 -1
  115. package/dist/components/card/card.js +2 -2
  116. package/dist/components/card/card.styles.js +1 -1
  117. package/dist/components/checkbox/checkbox.js +4 -4
  118. package/dist/components/checkbox-button/checkbox-button.d.ts +2 -0
  119. package/dist/components/checkbox-button/checkbox-button.js +5 -5
  120. package/dist/components/checkbox-button/checkbox-button.styles.js +1 -1
  121. package/dist/components/checkbox-group/checkbox-group.d.ts +3 -1
  122. package/dist/components/checkbox-group/checkbox-group.js +2 -2
  123. package/dist/components/combobox/combobox.d.ts +1 -0
  124. package/dist/components/combobox/combobox.js +10 -10
  125. package/dist/components/combobox/combobox.styles.js +1 -1
  126. package/dist/components/dialog/dialog.d.ts +2 -1
  127. package/dist/components/dialog/dialog.js +6 -6
  128. package/dist/components/dialog/dialog.styles.js +1 -1
  129. package/dist/components/download-card/download-card.js +3 -3
  130. package/dist/components/download-link/download-link.js +5 -5
  131. package/dist/components/download-link/download-link.styles.js +1 -1
  132. package/dist/components/drawer/drawer.d.ts +4 -0
  133. package/dist/components/drawer/drawer.js +6 -6
  134. package/dist/components/drawer/drawer.styles.js +1 -1
  135. package/dist/components/dropdown/dropdown.js +2 -2
  136. package/dist/components/error-message-panel/error-message-panel.js +2 -2
  137. package/dist/components/filter/filter-base/filter-base.d.ts +49 -0
  138. package/dist/components/filter/filter-base/filter-base.js +13 -0
  139. package/dist/components/filter/filter-base/filter-base.styles.d.ts +2 -0
  140. package/dist/components/filter/filter-base/filter-base.styles.js +8 -0
  141. package/dist/components/filter/filter-button/filter-button.d.ts +1 -0
  142. package/dist/components/filter/filter-button/filter-button.js +6 -6
  143. package/dist/components/filter/filter-button/filter-button.styles.js +1 -1
  144. package/dist/components/filter/filter-counter/filter-counter.d.ts +5 -42
  145. package/dist/components/filter/filter-counter/filter-counter.js +7 -5
  146. package/dist/components/filter/filter-counter/filter-counter.styles.js +2 -1
  147. package/dist/components/filter/filter-date/filter-date.d.ts +7 -0
  148. package/dist/components/filter/filter-date/filter-date.js +15 -12
  149. package/dist/components/filter/filter-date/filter-date.styles.js +1 -1
  150. package/dist/components/filter/filter-range/filter-range.d.ts +7 -39
  151. package/dist/components/filter/filter-range/filter-range.js +19 -14
  152. package/dist/components/filter/filter-range/filter-range.styles.js +2 -1
  153. package/dist/components/filter/filter-select/filter-select.d.ts +7 -40
  154. package/dist/components/filter/filter-select/filter-select.js +26 -10
  155. package/dist/components/filter/filter-select/filter-select.styles.js +2 -2
  156. package/dist/components/footer/footer.js +3 -3
  157. package/dist/components/footer-sitemap-item/footer-sitemap-item.js +2 -2
  158. package/dist/components/footer-sitemap-item/footer-sitemap-item.styles.js +1 -1
  159. package/dist/components/format-bytes/format-bytes.js +2 -2
  160. package/dist/components/format-date/format-date.js +2 -2
  161. package/dist/components/format-number/format-number.js +2 -2
  162. package/dist/components/header/header.js +3 -3
  163. package/dist/components/header/header.styles.js +1 -1
  164. package/dist/components/header-search/header-search.d.ts +2 -0
  165. package/dist/components/header-search/header-search.js +2 -2
  166. package/dist/components/icon/icon.js +3 -3
  167. package/dist/components/icon/library.js +2 -2
  168. package/dist/components/icon-button/icon-button.js +3 -3
  169. package/dist/components/input/input.d.ts +8 -18
  170. package/dist/components/input/input.js +11 -8
  171. package/dist/components/input/input.styles.js +1 -1
  172. package/dist/components/input-date/input-date.d.ts +157 -0
  173. package/dist/components/input-date/input-date.js +35 -0
  174. package/dist/components/input-date/input-date.styles.d.ts +2 -0
  175. package/dist/components/input-date/input-date.styles.js +10 -0
  176. package/dist/components/input-mask/input-mask.d.ts +2 -0
  177. package/dist/components/input-mask/input-mask.js +3 -3
  178. package/dist/components/input-mask/input-mask.styles.js +1 -1
  179. package/dist/components/input-phone/input-phone.d.ts +4 -2
  180. package/dist/components/input-phone/input-phone.js +17 -17
  181. package/dist/components/input-phone/input-phone.styles.js +1 -1
  182. package/dist/components/menu-accordion/menu-accordion.d.ts +2 -0
  183. package/dist/components/menu-accordion/menu-accordion.js +5 -5
  184. package/dist/components/menu-item/menu-item.js +3 -3
  185. package/dist/components/navbar/navbar-link/navbar-link.js +3 -3
  186. package/dist/components/navbar/navbar-menu/navbar-menu.d.ts +2 -0
  187. package/dist/components/navbar/navbar-menu/navbar-menu.js +5 -5
  188. package/dist/components/option/option.js +6 -6
  189. package/dist/components/option/option.styles.js +1 -1
  190. package/dist/components/pagination/pagination.js +13 -10
  191. package/dist/components/popup/popup.d.ts +8 -0
  192. package/dist/components/popup/popup.js +2 -2
  193. package/dist/components/popup/popup.styles.js +1 -1
  194. package/dist/components/progress-bar/progress-bar.js +2 -2
  195. package/dist/components/radio/radio.js +3 -3
  196. package/dist/components/radio-button/radio-button.d.ts +2 -0
  197. package/dist/components/radio-button/radio-button.js +2 -2
  198. package/dist/components/radio-button/radio-button.styles.js +1 -1
  199. package/dist/components/range-slider/range-slider.js +2 -2
  200. package/dist/components/range-slider/range-slider.styles.js +1 -1
  201. package/dist/components/relative-time/relative-time.js +2 -2
  202. package/dist/components/select/select.d.ts +1 -0
  203. package/dist/components/select/select.js +9 -9
  204. package/dist/components/select/select.styles.js +1 -1
  205. package/dist/components/spinner/spinner.js +2 -2
  206. package/dist/components/split-panel/split-panel.d.ts +66 -0
  207. package/dist/components/split-panel/split-panel.js +21 -0
  208. package/dist/components/split-panel/split-panel.styles.d.ts +2 -0
  209. package/dist/components/split-panel/split-panel.styles.js +7 -0
  210. package/dist/components/step/step.js +6 -6
  211. package/dist/components/tab/tab.js +2 -2
  212. package/dist/components/tab-group/tab-group.js +2 -2
  213. package/dist/components/table/table-action/table-action.js +2 -2
  214. package/dist/components/table/table-caption/table-caption.js +2 -2
  215. package/dist/components/table/table-header-row/table-header-row.js +3 -3
  216. package/dist/components/table/table-row/table-row.js +2 -2
  217. package/dist/components/table-container/table-container.js +2 -2
  218. package/dist/components/table-container/table-container.styles.js +1 -1
  219. package/dist/components/table-of-contents/table-of-contents.d.ts +2 -0
  220. package/dist/components/table-of-contents/table-of-contents.js +2 -2
  221. package/dist/components/table-of-contents/table-of-contents.styles.js +1 -1
  222. package/dist/components/tag/tag.js +5 -5
  223. package/dist/components/tooltip/tooltip.d.ts +1 -1
  224. package/dist/components/tooltip/tooltip.js +5 -5
  225. package/dist/components/tooltip/tooltip.styles.js +1 -1
  226. package/dist/components/tree/tree.js +10 -9
  227. package/dist/components/tree-item/tree-item.js +7 -7
  228. package/dist/custom-elements.json +8830 -6464
  229. package/dist/design-system.d.ts +1 -0
  230. package/dist/design-system.js +170 -159
  231. package/dist/internal/test.d.ts +11 -0
  232. package/dist/internal/test.js +19 -0
  233. package/dist/themes/dsa-wc-theme.css +52 -13
  234. package/dist/themes/dsa-wc-theme.min.css +1 -1
  235. package/dist/themes/dsa-wc-theme.styles.js +52 -15
  236. package/dist/translations/en-gb.js +1 -1
  237. package/dist/translations/en.js +1 -1
  238. package/dist/translations/fr.js +1 -1
  239. package/dist/utilities/date.d.ts +2 -0
  240. package/dist/utilities/date.js +9 -0
  241. package/dist/utilities/icon-library.js +2 -2
  242. package/dist/utilities/localize.d.ts +1 -2
  243. package/dist/utilities/localize.js +1 -1
  244. package/dist/utilities/storybook.d.ts +3 -2
  245. package/dist/utilities/storybook.js +62 -21
  246. package/dist/vscode.html-custom-data.json +302 -67
  247. package/dist/web-types.json +1783 -574
  248. package/package.json +4 -3
  249. package/dist/chunks/chunk.5BCAEDG4.js +0 -382
  250. package/dist/chunks/chunk.FZODQJBF.js +0 -99
  251. package/dist/chunks/chunk.PAF4S7OV.js +0 -484
  252. package/dist/chunks/chunk.YOLAIUYX.js +0 -95
  253. package/dist/chunks/{chunk.O2PIWM25.js → chunk.D34QDO4H.js} +3 -3
@@ -0,0 +1,277 @@
1
+ import {
2
+ clamp
3
+ } from "./chunk.HF7GESMZ.js";
4
+ import {
5
+ split_panel_styles_default
6
+ } from "./chunk.CFUNT7FK.js";
7
+ import {
8
+ LocalizeController
9
+ } from "./chunk.G3MRVMJ4.js";
10
+ import {
11
+ watch
12
+ } from "./chunk.6IH66JBY.js";
13
+ import {
14
+ ShoelaceElement
15
+ } from "./chunk.YCXTCVAZ.js";
16
+ import {
17
+ component_styles_default
18
+ } from "./chunk.TUVJKY7S.js";
19
+ import {
20
+ __decorateClass
21
+ } from "./chunk.6M63UXML.js";
22
+
23
+ // src/components/split-panel/split-panel.ts
24
+ import { html } from "lit";
25
+ import { customElement, property, query } from "lit/decorators.js";
26
+ import { ifDefined } from "lit/directives/if-defined.js";
27
+
28
+ // src/internal/drag.ts
29
+ function drag(container, options) {
30
+ function move(pointerEvent) {
31
+ const dims = container.getBoundingClientRect();
32
+ const defaultView = container.ownerDocument.defaultView;
33
+ const offsetX = dims.left + defaultView.pageXOffset;
34
+ const offsetY = dims.top + defaultView.pageYOffset;
35
+ const x = pointerEvent.pageX - offsetX;
36
+ const y = pointerEvent.pageY - offsetY;
37
+ if (options == null ? void 0 : options.onMove) {
38
+ options.onMove(x, y);
39
+ }
40
+ }
41
+ function stop() {
42
+ document.removeEventListener("pointermove", move);
43
+ document.removeEventListener("pointerup", stop);
44
+ if (options == null ? void 0 : options.onStop) {
45
+ options.onStop();
46
+ }
47
+ }
48
+ document.addEventListener("pointermove", move, { passive: true });
49
+ document.addEventListener("pointerup", stop);
50
+ if ((options == null ? void 0 : options.initialEvent) instanceof PointerEvent) {
51
+ move(options.initialEvent);
52
+ }
53
+ }
54
+
55
+ // src/components/split-panel/split-panel.ts
56
+ var DSASplitPanel = class extends ShoelaceElement {
57
+ constructor() {
58
+ super(...arguments);
59
+ this.localize = new LocalizeController(this);
60
+ this.position = 50;
61
+ this.vertical = false;
62
+ this.disabled = false;
63
+ this.snapThreshold = 12;
64
+ }
65
+ connectedCallback() {
66
+ super.connectedCallback();
67
+ this.resizeObserver = new ResizeObserver(
68
+ (entries) => this.handleResize(entries)
69
+ );
70
+ this.updateComplete.then(() => this.resizeObserver.observe(this));
71
+ this.detectSize();
72
+ this.cachedPositionInPixels = this.percentageToPixels(this.position);
73
+ }
74
+ disconnectedCallback() {
75
+ var _a;
76
+ super.disconnectedCallback();
77
+ (_a = this.resizeObserver) == null ? void 0 : _a.unobserve(this);
78
+ }
79
+ detectSize() {
80
+ const { width, height } = this.getBoundingClientRect();
81
+ this.size = this.vertical ? height : width;
82
+ }
83
+ percentageToPixels(value) {
84
+ return this.size * (value / 100);
85
+ }
86
+ pixelsToPercentage(value) {
87
+ return value / this.size * 100;
88
+ }
89
+ handleDrag(event) {
90
+ const isRtl = this.localize.dir() === "rtl";
91
+ if (this.disabled) {
92
+ return;
93
+ }
94
+ if (event.cancelable) {
95
+ event.preventDefault();
96
+ }
97
+ drag(this, {
98
+ onMove: (x, y) => {
99
+ let newPositionInPixels = this.vertical ? y : x;
100
+ if (this.primary === "end") {
101
+ newPositionInPixels = this.size - newPositionInPixels;
102
+ }
103
+ if (this.snap) {
104
+ const snaps = this.snap.split(" ");
105
+ snaps.forEach((value) => {
106
+ let snapPoint;
107
+ if (value.endsWith("%")) {
108
+ snapPoint = this.size * (parseFloat(value) / 100);
109
+ } else {
110
+ snapPoint = parseFloat(value);
111
+ }
112
+ if (isRtl && !this.vertical) {
113
+ snapPoint = this.size - snapPoint;
114
+ }
115
+ if (newPositionInPixels >= snapPoint - this.snapThreshold && newPositionInPixels <= snapPoint + this.snapThreshold) {
116
+ newPositionInPixels = snapPoint;
117
+ }
118
+ });
119
+ }
120
+ this.position = clamp(
121
+ this.pixelsToPercentage(newPositionInPixels),
122
+ 0,
123
+ 100
124
+ );
125
+ },
126
+ initialEvent: event
127
+ });
128
+ }
129
+ handleKeyDown(event) {
130
+ if (this.disabled) {
131
+ return;
132
+ }
133
+ if ([
134
+ "ArrowLeft",
135
+ "ArrowRight",
136
+ "ArrowUp",
137
+ "ArrowDown",
138
+ "Home",
139
+ "End"
140
+ ].includes(event.key)) {
141
+ let newPosition = this.position;
142
+ const incr = (event.shiftKey ? 10 : 1) * (this.primary === "end" ? -1 : 1);
143
+ event.preventDefault();
144
+ if (event.key === "ArrowLeft" && !this.vertical || event.key === "ArrowUp" && this.vertical) {
145
+ newPosition -= incr;
146
+ }
147
+ if (event.key === "ArrowRight" && !this.vertical || event.key === "ArrowDown" && this.vertical) {
148
+ newPosition += incr;
149
+ }
150
+ if (event.key === "Home") {
151
+ newPosition = this.primary === "end" ? 100 : 0;
152
+ }
153
+ if (event.key === "End") {
154
+ newPosition = this.primary === "end" ? 0 : 100;
155
+ }
156
+ this.position = clamp(newPosition, 0, 100);
157
+ }
158
+ }
159
+ handleResize(entries) {
160
+ const { width, height } = entries[0].contentRect;
161
+ this.size = this.vertical ? height : width;
162
+ if (isNaN(this.cachedPositionInPixels) || this.position === Infinity) {
163
+ this.cachedPositionInPixels = Number(
164
+ this.getAttribute("position-in-pixels")
165
+ );
166
+ this.positionInPixels = Number(this.getAttribute("position-in-pixels"));
167
+ this.position = this.pixelsToPercentage(this.positionInPixels);
168
+ }
169
+ if (this.primary) {
170
+ this.position = this.pixelsToPercentage(this.cachedPositionInPixels);
171
+ }
172
+ }
173
+ handlePositionChange() {
174
+ this.cachedPositionInPixels = this.percentageToPixels(this.position);
175
+ this.positionInPixels = this.percentageToPixels(this.position);
176
+ this.emit("dsa-reposition");
177
+ }
178
+ handlePositionInPixelsChange() {
179
+ this.position = this.pixelsToPercentage(this.positionInPixels);
180
+ }
181
+ handleVerticalChange() {
182
+ this.detectSize();
183
+ }
184
+ render() {
185
+ const gridTemplate = this.vertical ? "gridTemplateRows" : "gridTemplateColumns";
186
+ const gridTemplateAlt = this.vertical ? "gridTemplateColumns" : "gridTemplateRows";
187
+ const isRtl = this.localize.dir() === "rtl";
188
+ const primary = `
189
+ clamp(
190
+ 0%,
191
+ clamp(
192
+ var(--min),
193
+ ${this.position}% - var(--divider-width) / 2,
194
+ var(--max)
195
+ ),
196
+ calc(100% - var(--divider-width))
197
+ )
198
+ `;
199
+ const secondary = "auto";
200
+ if (this.primary === "end") {
201
+ if (isRtl && !this.vertical) {
202
+ this.style[gridTemplate] = `${primary} var(--divider-width) ${secondary}`;
203
+ } else {
204
+ this.style[gridTemplate] = `${secondary} var(--divider-width) ${primary}`;
205
+ }
206
+ } else {
207
+ if (isRtl && !this.vertical) {
208
+ this.style[gridTemplate] = `${secondary} var(--divider-width) ${primary}`;
209
+ } else {
210
+ this.style[gridTemplate] = `${primary} var(--divider-width) ${secondary}`;
211
+ }
212
+ }
213
+ this.style[gridTemplateAlt] = "";
214
+ return html`
215
+ <slot name="start" part="panel start" class="start"></slot>
216
+
217
+ <div
218
+ part="divider"
219
+ class="divider"
220
+ tabindex=${ifDefined(this.disabled ? void 0 : "0")}
221
+ role="separator"
222
+ aria-valuenow=${this.position}
223
+ aria-valuemin="0"
224
+ aria-valuemax="100"
225
+ aria-label=${this.localize.term("resize")}
226
+ @keydown=${this.handleKeyDown}
227
+ @mousedown=${this.handleDrag}
228
+ @touchstart=${this.handleDrag}
229
+ >
230
+ <dsa-icon name="drag_indicator" class="drag-icon"></dsa-icon>
231
+ </div>
232
+
233
+ <slot name="end" part="panel end" class="end"></slot>
234
+ `;
235
+ }
236
+ };
237
+ DSASplitPanel.styles = [component_styles_default, split_panel_styles_default];
238
+ __decorateClass([
239
+ query(".divider")
240
+ ], DSASplitPanel.prototype, "divider", 2);
241
+ __decorateClass([
242
+ property({ type: Number, reflect: true })
243
+ ], DSASplitPanel.prototype, "position", 2);
244
+ __decorateClass([
245
+ property({ attribute: "position-in-pixels", type: Number })
246
+ ], DSASplitPanel.prototype, "positionInPixels", 2);
247
+ __decorateClass([
248
+ property({ type: Boolean, reflect: true })
249
+ ], DSASplitPanel.prototype, "vertical", 2);
250
+ __decorateClass([
251
+ property({ type: Boolean, reflect: true })
252
+ ], DSASplitPanel.prototype, "disabled", 2);
253
+ __decorateClass([
254
+ property()
255
+ ], DSASplitPanel.prototype, "primary", 2);
256
+ __decorateClass([
257
+ property()
258
+ ], DSASplitPanel.prototype, "snap", 2);
259
+ __decorateClass([
260
+ property({ type: Number, attribute: "snap-threshold" })
261
+ ], DSASplitPanel.prototype, "snapThreshold", 2);
262
+ __decorateClass([
263
+ watch("position")
264
+ ], DSASplitPanel.prototype, "handlePositionChange", 1);
265
+ __decorateClass([
266
+ watch("positionInPixels")
267
+ ], DSASplitPanel.prototype, "handlePositionInPixelsChange", 1);
268
+ __decorateClass([
269
+ watch("vertical")
270
+ ], DSASplitPanel.prototype, "handleVerticalChange", 1);
271
+ DSASplitPanel = __decorateClass([
272
+ customElement("dsa-split-panel")
273
+ ], DSASplitPanel);
274
+
275
+ export {
276
+ DSASplitPanel
277
+ };
@@ -214,13 +214,6 @@ var input_mask_styles_default = css`
214
214
  outline: none;
215
215
  }
216
216
 
217
- .input-mask__suffix {
218
- display: inline-flex;
219
- flex: 0 0 auto;
220
- align-items: center;
221
- cursor: default;
222
- }
223
-
224
217
  /*
225
218
  * Size modifiers
226
219
  */
@@ -268,7 +261,8 @@ var input_mask_styles_default = css`
268
261
  * Clearable
269
262
  */
270
263
 
271
- .input-mask__clear {
264
+ .input-mask__clear,
265
+ .input-mask__suffix {
272
266
  display: inline-flex;
273
267
  align-items: center;
274
268
  justify-content: center;
@@ -292,8 +286,8 @@ var input_mask_styles_default = css`
292
286
  outline: none;
293
287
  }
294
288
 
295
- .input-mask__prefix-icon,
296
- .input-mask__prefix {
289
+ .input-mask__prefix,
290
+ .input-mask__suffix {
297
291
  color: var(--dsa-wc-input-icon-color);
298
292
  cursor: pointer;
299
293
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  popup_styles_default
3
- } from "./chunk.XD5JM6WF.js";
3
+ } from "./chunk.WYUQG5BJ.js";
4
4
  import {
5
5
  ShoelaceElement
6
6
  } from "./chunk.YCXTCVAZ.js";
@@ -43,6 +43,83 @@ var DSAPopup = class extends ShoelaceElement {
43
43
  this.shift = false;
44
44
  this.shiftPadding = 0;
45
45
  this.autoSizePadding = 0;
46
+ this.hoverBridge = false;
47
+ this.updateHoverBridge = () => {
48
+ if (this.hoverBridge && this.anchorEl) {
49
+ const anchorRect = this.anchorEl.getBoundingClientRect();
50
+ const popupRect = this.popup.getBoundingClientRect();
51
+ const isVertical = this.placement.includes("top") || this.placement.includes("bottom");
52
+ let topLeftX = 0;
53
+ let topLeftY = 0;
54
+ let topRightX = 0;
55
+ let topRightY = 0;
56
+ let bottomLeftX = 0;
57
+ let bottomLeftY = 0;
58
+ let bottomRightX = 0;
59
+ let bottomRightY = 0;
60
+ if (isVertical) {
61
+ if (anchorRect.top < popupRect.top) {
62
+ topLeftX = anchorRect.left;
63
+ topLeftY = anchorRect.bottom;
64
+ topRightX = anchorRect.right;
65
+ topRightY = anchorRect.bottom;
66
+ bottomLeftX = popupRect.left;
67
+ bottomLeftY = popupRect.top;
68
+ bottomRightX = popupRect.right;
69
+ bottomRightY = popupRect.top;
70
+ } else {
71
+ topLeftX = popupRect.left;
72
+ topLeftY = popupRect.bottom;
73
+ topRightX = popupRect.right;
74
+ topRightY = popupRect.bottom;
75
+ bottomLeftX = anchorRect.left;
76
+ bottomLeftY = anchorRect.top;
77
+ bottomRightX = anchorRect.right;
78
+ bottomRightY = anchorRect.top;
79
+ }
80
+ } else {
81
+ if (anchorRect.left < popupRect.left) {
82
+ topLeftX = anchorRect.right;
83
+ topLeftY = anchorRect.top;
84
+ topRightX = popupRect.left;
85
+ topRightY = popupRect.top;
86
+ bottomLeftX = anchorRect.right;
87
+ bottomLeftY = anchorRect.bottom;
88
+ bottomRightX = popupRect.left;
89
+ bottomRightY = popupRect.bottom;
90
+ } else {
91
+ topLeftX = popupRect.right;
92
+ topLeftY = popupRect.top;
93
+ topRightX = anchorRect.left;
94
+ topRightY = anchorRect.top;
95
+ bottomLeftX = popupRect.right;
96
+ bottomLeftY = popupRect.bottom;
97
+ bottomRightX = anchorRect.left;
98
+ bottomRightY = anchorRect.bottom;
99
+ }
100
+ }
101
+ this.style.setProperty("--hover-bridge-top-left-x", `${topLeftX}px`);
102
+ this.style.setProperty("--hover-bridge-top-left-y", `${topLeftY}px`);
103
+ this.style.setProperty("--hover-bridge-top-right-x", `${topRightX}px`);
104
+ this.style.setProperty("--hover-bridge-top-right-y", `${topRightY}px`);
105
+ this.style.setProperty(
106
+ "--hover-bridge-bottom-left-x",
107
+ `${bottomLeftX}px`
108
+ );
109
+ this.style.setProperty(
110
+ "--hover-bridge-bottom-left-y",
111
+ `${bottomLeftY}px`
112
+ );
113
+ this.style.setProperty(
114
+ "--hover-bridge-bottom-right-x",
115
+ `${bottomRightX}px`
116
+ );
117
+ this.style.setProperty(
118
+ "--hover-bridge-bottom-right-y",
119
+ `${bottomRightY}px`
120
+ );
121
+ }
122
+ };
46
123
  }
47
124
  async connectedCallback() {
48
125
  super.connectedCallback();
@@ -247,12 +324,21 @@ var DSAPopup = class extends ShoelaceElement {
247
324
  });
248
325
  }
249
326
  });
327
+ requestAnimationFrame(() => this.updateHoverBridge());
250
328
  this.emit("dsa-reposition");
251
329
  }
252
330
  render() {
253
331
  return html`
254
332
  <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
255
333
 
334
+ <span
335
+ part="hover-bridge"
336
+ class=${classMap({
337
+ "popup-hover-bridge": true,
338
+ "popup-hover-bridge--visible": this.hoverBridge && this.active
339
+ })}
340
+ ></span>
341
+
256
342
  <div
257
343
  part="popup"
258
344
  class=${classMap({
@@ -352,6 +438,9 @@ __decorateClass([
352
438
  __decorateClass([
353
439
  property({ attribute: "auto-size-padding", type: Number })
354
440
  ], DSAPopup.prototype, "autoSizePadding", 2);
441
+ __decorateClass([
442
+ property({ attribute: "hover-bridge", type: Boolean })
443
+ ], DSAPopup.prototype, "hoverBridge", 2);
355
444
  DSAPopup = __decorateClass([
356
445
  customElement("dsa-popup")
357
446
  ], DSAPopup);
@@ -0,0 +1,96 @@
1
+ // src/components/split-panel/split-panel.styles.ts
2
+ import { css } from "lit";
3
+ var split_panel_styles_default = css`
4
+ :host {
5
+ --divider-width: var(--dsa-wc-split-panel-width);
6
+ --divider-hit-area: var(--dsa-wc-split-panel-hit-area);
7
+ --min: 0%;
8
+ --max: 100%;
9
+
10
+ display: grid;
11
+ }
12
+
13
+ .start,
14
+ .end {
15
+ overflow: hidden;
16
+ }
17
+
18
+ .divider {
19
+ flex: 0 0 var(--divider-width);
20
+ display: flex;
21
+ position: relative;
22
+ align-items: center;
23
+ justify-content: center;
24
+ background-color: var(--dsa-wc-split-panel-color);
25
+ z-index: 1;
26
+ }
27
+
28
+ .drag-icon {
29
+ position: absolute;
30
+ border-radius: var(--dsa-radius-4);
31
+ background-color: var(--dsa-wc-split-panel-color);
32
+ color: var(--dsa-wc-split-panel-icon-color);
33
+ padding: var(--dsa-wc-split-panel-icon-padding);
34
+ }
35
+
36
+ .divider:focus {
37
+ outline: none;
38
+ }
39
+
40
+ :host(:not([disabled])) .divider:focus-visible {
41
+ outline: var(--dsa-wc-focus-ring);
42
+ }
43
+ :host(:not([disabled])) .divider:focus-visible .drag-icon {
44
+ outline: var(--dsa-wc-focus-ring);
45
+ }
46
+
47
+ :host([disabled]) .divider {
48
+ cursor: not-allowed;
49
+ }
50
+
51
+ /* Horizontal */
52
+ :host(:not([vertical], [disabled])) .divider {
53
+ cursor: col-resize;
54
+ }
55
+
56
+ :host(:not([vertical])) .divider::after {
57
+ display: flex;
58
+ content: '';
59
+ position: absolute;
60
+ height: 100%;
61
+ left: calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);
62
+ width: var(--divider-hit-area);
63
+ }
64
+
65
+ /* Vertical */
66
+ :host([vertical]) {
67
+ flex-direction: column;
68
+ }
69
+
70
+ :host([vertical]) .drag-icon {
71
+ rotate: 90deg;
72
+ }
73
+
74
+ :host([vertical]:not([disabled])) .divider {
75
+ cursor: row-resize;
76
+ }
77
+
78
+ :host([vertical]) .divider::after {
79
+ content: '';
80
+ position: absolute;
81
+ width: 100%;
82
+ top: calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);
83
+ height: var(--divider-hit-area);
84
+ }
85
+
86
+ @media (forced-colors: active) {
87
+ .divider,
88
+ .drag-icon {
89
+ outline: solid 1px transparent;
90
+ }
91
+ }
92
+ `;
93
+
94
+ export {
95
+ split_panel_styles_default
96
+ };
@@ -2,9 +2,9 @@ import {
2
2
  component_styles_default
3
3
  } from "./chunk.TUVJKY7S.js";
4
4
 
5
- // src/components/filter/filter-counter/filter-counter.styles.ts
5
+ // src/components/filter/filter-base/filter-base.styles.ts
6
6
  import { css } from "lit";
7
- var filter_counter_styles_default = css`
7
+ var filter_base_styles_default = css`
8
8
  ${component_styles_default}
9
9
 
10
10
  :host {
@@ -25,7 +25,7 @@ var filter_counter_styles_default = css`
25
25
  }
26
26
 
27
27
  /* Panel */
28
- .filter__panel {
28
+ .filter .filter__panel {
29
29
  display: flex;
30
30
  flex-direction: column;
31
31
  position: relative;
@@ -49,23 +49,12 @@ var filter_counter_styles_default = css`
49
49
  );
50
50
  }
51
51
 
52
- .filter__content {
53
- display: flex;
54
- padding: var(--dsa-spacing-16);
55
- gap: 10px;
56
- justify-content: space-between;
57
- }
58
-
59
- .filter__footer {
60
- display: flex;
61
- justify-content: flex-end;
62
- padding: var(--dsa-spacing-8) var(--dsa-spacing-16);
63
- gap: var(--dsa-spacing-16);
64
- border-top: solid var(--dsa-wc-select-listbox-border-width)
65
- var(--dsa-wc-select-listbox-border-color);
52
+ .filter--drawer .filter__panel {
53
+ border-bottom: 1px solid var(--dsa-color-border-default);
54
+ background-color: var(--dsa-color-surface-layer);
66
55
  }
67
56
  `;
68
57
 
69
58
  export {
70
- filter_counter_styles_default
59
+ filter_base_styles_default
71
60
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  checkbox_button_styles_default
3
- } from "./chunk.BQ7R6MC6.js";
3
+ } from "./chunk.RSX6EFCX.js";
4
4
  import {
5
5
  HasSlotController
6
6
  } from "./chunk.YIY5RM53.js";
@@ -135,7 +135,7 @@ __decorateClass([
135
135
  property({ type: Boolean, reflect: true })
136
136
  ], DSACheckboxButton.prototype, "checked", 2);
137
137
  __decorateClass([
138
- property()
138
+ property({ reflect: true })
139
139
  ], DSACheckboxButton.prototype, "value", 2);
140
140
  __decorateClass([
141
141
  property({ type: Boolean, reflect: true })
@@ -144,10 +144,10 @@ __decorateClass([
144
144
  property({ reflect: true })
145
145
  ], DSACheckboxButton.prototype, "size", 2);
146
146
  __decorateClass([
147
- property({ type: Boolean })
147
+ property({ type: Boolean, reflect: true })
148
148
  ], DSACheckboxButton.prototype, "readonly", 2);
149
149
  __decorateClass([
150
- property({ type: Boolean })
150
+ property({ type: Boolean, reflect: true })
151
151
  ], DSACheckboxButton.prototype, "error", 2);
152
152
  __decorateClass([
153
153
  watch("disabled", { waitUntilFirstUpdate: true })
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk.YIY5RM53.js";
10
10
  import {
11
11
  LocalizeController
12
- } from "./chunk.6L6CZSQX.js";
12
+ } from "./chunk.G3MRVMJ4.js";
13
13
  import {
14
14
  watch
15
15
  } from "./chunk.6IH66JBY.js";