wcs-core 7.5.1 → 7.6.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 (481) hide show
  1. package/bundle/{p-763371a0.js → p-1329a1af.js} +3 -3
  2. package/bundle/p-1329a1af.js.map +1 -0
  3. package/bundle/p-2f7bca1e.js +2 -0
  4. package/bundle/p-2f7bca1e.js.map +1 -0
  5. package/bundle/p-475be4d2.js +2 -0
  6. package/bundle/{p-010cf905.js → p-5ef2bc63.js} +2 -2
  7. package/bundle/{p-44a3b0b9.js → p-7a06295b.js} +2 -2
  8. package/bundle/{p-2751ddc1.js → p-8b186fcf.js} +2 -2
  9. package/bundle/{p-d23d7658.js → p-a0268a31.js} +2 -2
  10. package/bundle/{p-c8b73e93.js → p-bce8c93f.js} +2 -2
  11. package/bundle/{p-2e9b9605.js → p-bf326ae8.js} +2 -2
  12. package/bundle/{p-98bd8a96.js → p-d018450c.js} +2 -2
  13. package/bundle/p-d05140f5.js +2 -0
  14. package/bundle/p-d05140f5.js.map +1 -0
  15. package/bundle/{p-f0dda0b8.js → p-d3fe6951.js} +2 -2
  16. package/bundle/{p-9c2aa87a.js → p-ee6ff5f8.js} +2 -2
  17. package/bundle/{p-cdc6f6c2.js → p-ff261e50.js} +2 -2
  18. package/bundle/wcs-accordion-panel.js +1 -1
  19. package/bundle/wcs-alert-drawer.js +1 -1
  20. package/bundle/wcs-alert.js +1 -1
  21. package/bundle/wcs-breadcrumb.js +1 -1
  22. package/bundle/wcs-button.js +1 -1
  23. package/bundle/wcs-card-content.js +1 -1
  24. package/bundle/wcs-card-content.js.map +1 -1
  25. package/bundle/wcs-card.js +1 -1
  26. package/bundle/wcs-card.js.map +1 -1
  27. package/bundle/wcs-checkbox.js +1 -1
  28. package/bundle/wcs-com-nav-category.js +1 -1
  29. package/bundle/wcs-com-nav-submenu.js +1 -1
  30. package/bundle/wcs-com-nav.js +1 -1
  31. package/bundle/wcs-counter.js +1 -1
  32. package/bundle/wcs-dropdown-item.js +1 -1
  33. package/bundle/wcs-dropdown.js +1 -1
  34. package/bundle/wcs-dropdown.js.map +1 -1
  35. package/bundle/wcs-editable-field.js +1 -1
  36. package/bundle/wcs-editable-field.js.map +1 -1
  37. package/bundle/wcs-form-field.js +1 -1
  38. package/bundle/wcs-galactic-menu.js +1 -1
  39. package/bundle/wcs-grid-column.js +1 -1
  40. package/bundle/wcs-grid-column.js.map +1 -1
  41. package/bundle/wcs-grid-custom-cell.js +1 -1
  42. package/bundle/wcs-grid-custom-cell.js.map +1 -1
  43. package/bundle/wcs-grid-pagination.js +1 -1
  44. package/bundle/wcs-grid.js +1 -1
  45. package/bundle/wcs-grid.js.map +1 -1
  46. package/bundle/wcs-header.js +1 -1
  47. package/bundle/wcs-hint.js +1 -1
  48. package/bundle/wcs-horizontal-stepper.js +1 -1
  49. package/bundle/wcs-icon.js +1 -1
  50. package/bundle/wcs-input.js +1 -1
  51. package/bundle/wcs-input.js.map +1 -1
  52. package/bundle/wcs-label.js +1 -1
  53. package/bundle/wcs-list-item-properties.js +1 -1
  54. package/bundle/wcs-list-item-property.js +1 -1
  55. package/bundle/wcs-list-item.js +1 -1
  56. package/bundle/wcs-mat-icon.js +1 -1
  57. package/bundle/wcs-modal.js +1 -1
  58. package/bundle/wcs-native-select.js +1 -1
  59. package/bundle/wcs-nav-item.js +1 -1
  60. package/bundle/wcs-nav.js +1 -1
  61. package/bundle/wcs-progress-bar.js +1 -1
  62. package/bundle/wcs-progress-radial.js +1 -1
  63. package/bundle/wcs-radio-group.js +1 -1
  64. package/bundle/wcs-radio-group.js.map +1 -1
  65. package/bundle/wcs-radio.js +1 -1
  66. package/bundle/wcs-radio.js.map +1 -1
  67. package/bundle/wcs-select-option.js +1 -1
  68. package/bundle/wcs-select.js +1 -1
  69. package/bundle/wcs-skeleton-circle.js +1 -1
  70. package/bundle/wcs-skeleton-rectangle.js +1 -1
  71. package/bundle/wcs-skeleton-text.js +1 -1
  72. package/bundle/wcs-spinner.js +1 -1
  73. package/bundle/wcs-switch.js +1 -1
  74. package/bundle/wcs-tab.js +1 -1
  75. package/bundle/wcs-tabs.js +1 -1
  76. package/bundle/wcs-textarea.js +1 -1
  77. package/bundle/wcs-tooltip.js +2 -2
  78. package/composite-elements/{p-af24fb0d.js → p-00dd13c3.js} +3 -3
  79. package/composite-elements/p-00dd13c3.js.map +1 -0
  80. package/composite-elements/p-6b91c7bd.js +2 -0
  81. package/composite-elements/p-6b91c7bd.js.map +1 -0
  82. package/{bundle/p-30d83d3d.js → composite-elements/p-7feba658.js} +2 -2
  83. package/composite-elements/p-7feba658.js.map +1 -0
  84. package/composite-elements/{p-b83afff9.js → p-87e97a2e.js} +2 -2
  85. package/composite-elements/{p-b92e818b.js → p-a70a3379.js} +2 -2
  86. package/composite-elements/{p-55668982.js → p-c028b8e6.js} +2 -2
  87. package/composite-elements/{p-2a51c239.js → p-c6adb221.js} +2 -2
  88. package/composite-elements/{p-04663560.js → p-e4e3ed2c.js} +2 -2
  89. package/composite-elements/{p-51517fda.js → p-ec3ce4d4.js} +2 -2
  90. package/composite-elements/wcs-alert-drawer.js +1 -1
  91. package/composite-elements/wcs-alert.js +1 -1
  92. package/composite-elements/wcs-breadcrumb.js +1 -1
  93. package/composite-elements/wcs-button.js +1 -1
  94. package/composite-elements/wcs-card-content.js +1 -1
  95. package/composite-elements/wcs-card-content.js.map +1 -1
  96. package/composite-elements/wcs-card.js +1 -1
  97. package/composite-elements/wcs-card.js.map +1 -1
  98. package/composite-elements/wcs-counter.js +1 -1
  99. package/composite-elements/wcs-dropdown.js +1 -1
  100. package/composite-elements/wcs-dropdown.js.map +1 -1
  101. package/composite-elements/wcs-editable-field.js +1 -1
  102. package/composite-elements/wcs-editable-field.js.map +1 -1
  103. package/composite-elements/wcs-galactic-menu.js +1 -1
  104. package/composite-elements/wcs-grid-column.js +1 -1
  105. package/composite-elements/wcs-grid-column.js.map +1 -1
  106. package/composite-elements/wcs-grid-custom-cell.js +1 -1
  107. package/composite-elements/wcs-grid-custom-cell.js.map +1 -1
  108. package/composite-elements/wcs-grid-pagination.js +1 -1
  109. package/composite-elements/wcs-grid.js +1 -1
  110. package/composite-elements/wcs-grid.js.map +1 -1
  111. package/composite-elements/wcs-header.js +1 -1
  112. package/composite-elements/wcs-hint.js +1 -1
  113. package/composite-elements/wcs-horizontal-stepper.js +1 -1
  114. package/composite-elements/wcs-icon.js +1 -1
  115. package/composite-elements/wcs-input.js +1 -1
  116. package/composite-elements/wcs-input.js.map +1 -1
  117. package/composite-elements/wcs-label.js +1 -1
  118. package/composite-elements/wcs-list-item-properties.js +1 -1
  119. package/composite-elements/wcs-list-item-property.js +1 -1
  120. package/composite-elements/wcs-list-item.js +1 -1
  121. package/composite-elements/wcs-mat-icon.js +1 -1
  122. package/composite-elements/wcs-modal.js +1 -1
  123. package/composite-elements/wcs-native-select.js +1 -1
  124. package/composite-elements/wcs-nav-item.js +1 -1
  125. package/composite-elements/wcs-nav.js +1 -1
  126. package/composite-elements/wcs-progress-bar.js +1 -1
  127. package/composite-elements/wcs-progress-radial.js +1 -1
  128. package/composite-elements/wcs-radio-group.js +1 -1
  129. package/composite-elements/wcs-radio.js +1 -1
  130. package/composite-elements/wcs-radio.js.map +1 -1
  131. package/composite-elements/wcs-select-option.js +1 -1
  132. package/composite-elements/wcs-select.js +1 -1
  133. package/composite-elements/wcs-skeleton-circle.js +1 -1
  134. package/composite-elements/wcs-skeleton-rectangle.js +1 -1
  135. package/composite-elements/wcs-skeleton-text.js +1 -1
  136. package/composite-elements/wcs-spinner.js +1 -1
  137. package/composite-elements/wcs-switch.js +1 -1
  138. package/composite-elements/wcs-tab.js +1 -1
  139. package/composite-elements/wcs-tabs.js +1 -1
  140. package/composite-elements/wcs-textarea.js +1 -1
  141. package/composite-elements/wcs-tooltip.js +1 -1
  142. package/dist/cjs/{grid-pagination-4505d7b6.js → grid-pagination-ded127cc.js} +2 -2
  143. package/dist/cjs/grid-pagination-ded127cc.js.map +1 -0
  144. package/dist/cjs/{isEqual-8a0a6936.js → isEqual-be8e5a57.js} +2 -2
  145. package/dist/cjs/{isEqual-8a0a6936.js.map → isEqual-be8e5a57.js.map} +1 -1
  146. package/dist/cjs/loader.cjs.js +1 -1
  147. package/dist/cjs/wcs-button_2.cjs.entry.js +1 -1
  148. package/dist/cjs/wcs-card-content.cjs.entry.js +1 -1
  149. package/dist/cjs/wcs-card-content.cjs.entry.js.map +1 -1
  150. package/dist/cjs/wcs-card.cjs.entry.js +1 -1
  151. package/dist/cjs/wcs-card.cjs.entry.js.map +1 -1
  152. package/dist/cjs/wcs-dropdown.cjs.entry.js +1 -1
  153. package/dist/cjs/wcs-dropdown.cjs.entry.js.map +1 -1
  154. package/dist/cjs/wcs-editable-field.cjs.entry.js +34 -10
  155. package/dist/cjs/wcs-editable-field.cjs.entry.js.map +1 -1
  156. package/dist/cjs/wcs-error_3.cjs.entry.js +2 -2
  157. package/dist/cjs/wcs-error_3.cjs.entry.js.map +1 -1
  158. package/dist/cjs/wcs-grid-column.cjs.entry.js +1 -1
  159. package/dist/cjs/wcs-grid-custom-cell.cjs.entry.js +1 -1
  160. package/dist/cjs/wcs-grid-pagination.cjs.entry.js +1 -1
  161. package/dist/cjs/wcs-grid.cjs.entry.js +6 -6
  162. package/dist/cjs/wcs-grid.cjs.entry.js.map +1 -1
  163. package/dist/cjs/wcs-header.cjs.entry.js +1 -1
  164. package/dist/cjs/wcs-hint.cjs.entry.js +1 -1
  165. package/dist/cjs/wcs-horizontal-stepper.cjs.entry.js +1 -1
  166. package/dist/cjs/wcs-icon.cjs.entry.js +1 -1
  167. package/dist/cjs/wcs-input.cjs.entry.js +1 -6
  168. package/dist/cjs/wcs-input.cjs.entry.js.map +1 -1
  169. package/dist/cjs/wcs-list-item-properties.cjs.entry.js +1 -1
  170. package/dist/cjs/wcs-list-item-property.cjs.entry.js +1 -1
  171. package/dist/cjs/wcs-list-item.cjs.entry.js +1 -1
  172. package/dist/cjs/wcs-mat-icon.cjs.entry.js +1 -1
  173. package/dist/cjs/wcs-modal.cjs.entry.js +1 -1
  174. package/dist/cjs/wcs-native-select.cjs.entry.js +1 -1
  175. package/dist/cjs/wcs-nav-item.cjs.entry.js +1 -1
  176. package/dist/cjs/wcs-nav.cjs.entry.js +1 -1
  177. package/dist/cjs/wcs-progress-bar.cjs.entry.js +2 -2
  178. package/dist/cjs/wcs-progress-radial.cjs.entry.js +2 -2
  179. package/dist/cjs/wcs-radio-group.cjs.entry.js +1 -1
  180. package/dist/cjs/wcs-radio.cjs.entry.js +24 -20
  181. package/dist/cjs/wcs-radio.cjs.entry.js.map +1 -1
  182. package/dist/cjs/wcs-select_2.cjs.entry.js +19 -9
  183. package/dist/cjs/wcs-select_2.cjs.entry.js.map +1 -1
  184. package/dist/cjs/wcs-skeleton-circle.cjs.entry.js +1 -1
  185. package/dist/cjs/wcs-skeleton-rectangle.cjs.entry.js +1 -1
  186. package/dist/cjs/wcs-skeleton-text.cjs.entry.js +1 -1
  187. package/dist/cjs/wcs-switch.cjs.entry.js +1 -1
  188. package/dist/cjs/wcs-tab.cjs.entry.js +1 -1
  189. package/dist/cjs/wcs-tabs.cjs.entry.js +1 -1
  190. package/dist/cjs/wcs-textarea.cjs.entry.js +1 -1
  191. package/dist/cjs/wcs-tooltip.cjs.entry.js +1 -1
  192. package/dist/cjs/wcs.cjs.js +1 -1
  193. package/dist/collection/components/card/card.js +11 -4
  194. package/dist/collection/components/card/card.js.map +1 -1
  195. package/dist/collection/components/card-content/card-content.js +8 -3
  196. package/dist/collection/components/card-content/card-content.js.map +1 -1
  197. package/dist/collection/components/dropdown/dropdown.css +8 -0
  198. package/dist/collection/components/dropdown/dropdown.e2e.playwright.js +53 -0
  199. package/dist/collection/components/dropdown/dropdown.e2e.playwright.js.map +1 -1
  200. package/dist/collection/components/editable-field/editable-field.e2e.playwright.js +214 -0
  201. package/dist/collection/components/editable-field/editable-field.e2e.playwright.js.map +1 -1
  202. package/dist/collection/components/editable-field/editable-field.js +34 -10
  203. package/dist/collection/components/editable-field/editable-field.js.map +1 -1
  204. package/dist/collection/components/grid/grid-radio.css +8 -0
  205. package/dist/collection/components/grid/grid.e2e.playwright.js +55 -0
  206. package/dist/collection/components/grid/grid.e2e.playwright.js.map +1 -1
  207. package/dist/collection/components/grid/grid.js +3 -3
  208. package/dist/collection/components/grid-column/grid-column.js +1 -1
  209. package/dist/collection/components/grid-custom-cell/grid-custom-cell.js +1 -1
  210. package/dist/collection/components/grid-pagination/grid-pagination.js +4 -1
  211. package/dist/collection/components/grid-pagination/grid-pagination.js.map +1 -1
  212. package/dist/collection/components/header/header.js +1 -1
  213. package/dist/collection/components/hint/hint.js +1 -1
  214. package/dist/collection/components/horizontal-stepper/horizontal-stepper.js +1 -1
  215. package/dist/collection/components/icon/icon.js +1 -1
  216. package/dist/collection/components/input/input.js +2 -7
  217. package/dist/collection/components/input/input.js.map +1 -1
  218. package/dist/collection/components/label/label.css +12 -8
  219. package/dist/collection/components/label/label.e2e.playwright.js +62 -0
  220. package/dist/collection/components/label/label.e2e.playwright.js.map +1 -1
  221. package/dist/collection/components/label/label.js +1 -1
  222. package/dist/collection/components/label/label.js.map +1 -1
  223. package/dist/collection/components/list-item/list-item.js +1 -1
  224. package/dist/collection/components/list-item-properties/list-item-properties.js +1 -1
  225. package/dist/collection/components/list-item-property/list-item-property.js +1 -1
  226. package/dist/collection/components/mat-icon/mat-icon.js +1 -1
  227. package/dist/collection/components/modal/modal.js +1 -1
  228. package/dist/collection/components/native-select/native-select.js +1 -1
  229. package/dist/collection/components/nav/nav.js +1 -1
  230. package/dist/collection/components/nav-item/nav-item.js +1 -1
  231. package/dist/collection/components/progress-bar/progress-bar.js +2 -2
  232. package/dist/collection/components/progress-radial/progress-radial.js +2 -2
  233. package/dist/collection/components/radio/radio.css +48 -37
  234. package/dist/collection/components/radio/radio.js +24 -20
  235. package/dist/collection/components/radio/radio.js.map +1 -1
  236. package/dist/collection/components/radio-group/radio-group.e2e.playwright.js +92 -7
  237. package/dist/collection/components/radio-group/radio-group.e2e.playwright.js.map +1 -1
  238. package/dist/collection/components/radio-group/radio-group.js +1 -1
  239. package/dist/collection/components/select/select-interface.js.map +1 -1
  240. package/dist/collection/components/select/select.e2e.playwright.js +9 -9
  241. package/dist/collection/components/select/select.e2e.playwright.js.map +1 -1
  242. package/dist/collection/components/select/select.js +16 -6
  243. package/dist/collection/components/select/select.js.map +1 -1
  244. package/dist/collection/components/select-option/select-option.js +2 -2
  245. package/dist/collection/components/skeleton-circle/skeleton-circle.js +1 -1
  246. package/dist/collection/components/skeleton-rectangle/skeleton-rectangle.js +1 -1
  247. package/dist/collection/components/skeleton-text/skeleton-text.js +1 -1
  248. package/dist/collection/components/spinner/spinner.js +1 -1
  249. package/dist/collection/components/switch/switch.js +1 -1
  250. package/dist/collection/components/tab/tab.js +1 -1
  251. package/dist/collection/components/tabs/tabs.js +1 -1
  252. package/dist/collection/components/textarea/textarea.js +1 -1
  253. package/dist/collection/components/tooltip/tooltip.js +1 -1
  254. package/dist/esm/{com-nav-utils-ee7bf77c.js → com-nav-utils-27c1efdf.js} +2 -2
  255. package/dist/esm/{com-nav-utils-ee7bf77c.js.map → com-nav-utils-27c1efdf.js.map} +1 -1
  256. package/dist/esm/{grid-pagination-731726a6.js → grid-pagination-23102986.js} +3 -3
  257. package/dist/esm/grid-pagination-23102986.js.map +1 -0
  258. package/dist/esm/{helpers-ece6a2d3.js → helpers-89faa1b1.js} +2 -2
  259. package/dist/esm/{helpers-ece6a2d3.js.map → helpers-89faa1b1.js.map} +1 -1
  260. package/dist/esm/{isEqual-f2a07f4c.js → isEqual-89e74e17.js} +2 -2
  261. package/dist/esm/{isEqual-f2a07f4c.js.map → isEqual-89e74e17.js.map} +1 -1
  262. package/dist/esm/{keyboard-event-26b65ae5.js → keyboard-event-dd35bb6b.js} +2 -2
  263. package/dist/esm/{keyboard-event-26b65ae5.js.map → keyboard-event-dd35bb6b.js.map} +1 -1
  264. package/dist/esm/loader.js +1 -1
  265. package/dist/esm/wcs-accordion-panel.entry.js +1 -1
  266. package/dist/esm/wcs-alert-drawer.entry.js +1 -1
  267. package/dist/esm/wcs-breadcrumb.entry.js +1 -1
  268. package/dist/esm/wcs-button_2.entry.js +2 -2
  269. package/dist/esm/wcs-card-content.entry.js +1 -1
  270. package/dist/esm/wcs-card-content.entry.js.map +1 -1
  271. package/dist/esm/wcs-card.entry.js +1 -1
  272. package/dist/esm/wcs-card.entry.js.map +1 -1
  273. package/dist/esm/wcs-checkbox.entry.js +1 -1
  274. package/dist/esm/wcs-com-nav-category.entry.js +2 -2
  275. package/dist/esm/wcs-com-nav-submenu.entry.js +2 -2
  276. package/dist/esm/wcs-com-nav.entry.js +2 -2
  277. package/dist/esm/wcs-counter.entry.js +1 -1
  278. package/dist/esm/wcs-dropdown-item.entry.js +1 -1
  279. package/dist/esm/wcs-dropdown.entry.js +3 -3
  280. package/dist/esm/wcs-dropdown.entry.js.map +1 -1
  281. package/dist/esm/wcs-editable-field.entry.js +35 -11
  282. package/dist/esm/wcs-editable-field.entry.js.map +1 -1
  283. package/dist/esm/wcs-error_3.entry.js +3 -3
  284. package/dist/esm/wcs-error_3.entry.js.map +1 -1
  285. package/dist/esm/wcs-galactic-menu.entry.js +1 -1
  286. package/dist/esm/wcs-grid-column.entry.js +2 -2
  287. package/dist/esm/wcs-grid-custom-cell.entry.js +1 -1
  288. package/dist/esm/wcs-grid-pagination.entry.js +2 -2
  289. package/dist/esm/wcs-grid.entry.js +8 -8
  290. package/dist/esm/wcs-grid.entry.js.map +1 -1
  291. package/dist/esm/wcs-header.entry.js +2 -2
  292. package/dist/esm/wcs-hint.entry.js +1 -1
  293. package/dist/esm/wcs-horizontal-stepper.entry.js +1 -1
  294. package/dist/esm/wcs-icon.entry.js +2 -2
  295. package/dist/esm/wcs-input.entry.js +2 -7
  296. package/dist/esm/wcs-input.entry.js.map +1 -1
  297. package/dist/esm/wcs-list-item-properties.entry.js +1 -1
  298. package/dist/esm/wcs-list-item-property.entry.js +1 -1
  299. package/dist/esm/wcs-list-item.entry.js +1 -1
  300. package/dist/esm/wcs-mat-icon.entry.js +2 -2
  301. package/dist/esm/wcs-modal.entry.js +2 -2
  302. package/dist/esm/wcs-native-select.entry.js +1 -1
  303. package/dist/esm/wcs-nav-item.entry.js +2 -2
  304. package/dist/esm/wcs-nav.entry.js +2 -2
  305. package/dist/esm/wcs-progress-bar.entry.js +3 -3
  306. package/dist/esm/wcs-progress-radial.entry.js +3 -3
  307. package/dist/esm/wcs-radio-group.entry.js +2 -2
  308. package/dist/esm/wcs-radio.entry.js +25 -21
  309. package/dist/esm/wcs-radio.entry.js.map +1 -1
  310. package/dist/esm/wcs-select_2.entry.js +21 -11
  311. package/dist/esm/wcs-select_2.entry.js.map +1 -1
  312. package/dist/esm/wcs-skeleton-circle.entry.js +1 -1
  313. package/dist/esm/wcs-skeleton-rectangle.entry.js +1 -1
  314. package/dist/esm/wcs-skeleton-text.entry.js +1 -1
  315. package/dist/esm/wcs-switch.entry.js +2 -2
  316. package/dist/esm/wcs-tab.entry.js +1 -1
  317. package/dist/esm/wcs-tabs.entry.js +2 -2
  318. package/dist/esm/wcs-textarea.entry.js +2 -2
  319. package/dist/esm/wcs-tooltip.entry.js +2 -2
  320. package/dist/esm/wcs.js +1 -1
  321. package/dist/types/components/card/card.d.ts +10 -3
  322. package/dist/types/components/card-content/card-content.d.ts +7 -2
  323. package/dist/types/components/editable-field/editable-field.d.ts +3 -0
  324. package/dist/types/components/grid-pagination/grid-pagination.d.ts +3 -0
  325. package/dist/types/components/radio/radio.d.ts +4 -5
  326. package/dist/types/components/select/select-interface.d.ts +4 -0
  327. package/dist/types/components.d.ts +52 -16
  328. package/dist/wcs/{p-1ba616c2.entry.js → p-03838b42.entry.js} +2 -2
  329. package/dist/wcs/{p-b0a6eec6.entry.js → p-0cbf08fb.entry.js} +2 -2
  330. package/dist/wcs/{p-cad10435.entry.js → p-0d233c6a.entry.js} +2 -2
  331. package/dist/wcs/{p-db7ba599.entry.js → p-14dfa087.entry.js} +3 -3
  332. package/dist/wcs/p-1c356201.entry.js +2 -0
  333. package/dist/wcs/p-1c356201.entry.js.map +1 -0
  334. package/dist/wcs/{p-b28b2fba.entry.js → p-218b5f3d.entry.js} +2 -2
  335. package/dist/wcs/{p-aadf37e7.entry.js → p-25d7b2f8.entry.js} +2 -2
  336. package/dist/wcs/{p-850fa9c9.entry.js → p-3e57c746.entry.js} +2 -2
  337. package/dist/wcs/{p-52d77e1f.js → p-5314a64d.js} +2 -2
  338. package/dist/wcs/{p-27b438c0.entry.js → p-53bc2cae.entry.js} +2 -2
  339. package/dist/wcs/p-5443c9af.entry.js +2 -0
  340. package/dist/wcs/p-5443c9af.entry.js.map +1 -0
  341. package/dist/wcs/{p-ad286030.entry.js → p-56d9554a.entry.js} +2 -2
  342. package/dist/wcs/p-59f96b21.entry.js +2 -0
  343. package/dist/wcs/{p-ff826ebe.js → p-5cea30cb.js} +1 -1
  344. package/dist/wcs/{p-ff826ebe.js.map → p-5cea30cb.js.map} +1 -1
  345. package/dist/wcs/{p-2329af04.entry.js → p-63a8e5cc.entry.js} +2 -2
  346. package/dist/wcs/{p-fbd68522.entry.js → p-6d8f0040.entry.js} +2 -2
  347. package/dist/wcs/p-6e7db56e.entry.js +2 -0
  348. package/dist/wcs/p-6e7db56e.entry.js.map +1 -0
  349. package/dist/wcs/{p-c84ae00d.entry.js → p-6f937b20.entry.js} +2 -2
  350. package/dist/wcs/p-7af9a2f3.js +2 -0
  351. package/dist/wcs/p-7b60d4c7.js +2 -0
  352. package/dist/wcs/p-7b60d4c7.js.map +1 -0
  353. package/dist/wcs/{p-2221bf0c.entry.js → p-82838611.entry.js} +3 -3
  354. package/dist/wcs/p-82838611.entry.js.map +1 -0
  355. package/dist/wcs/{p-bc009574.entry.js → p-8f95bbf3.entry.js} +2 -2
  356. package/dist/wcs/{p-9fd3366c.entry.js → p-912c2c9b.entry.js} +2 -2
  357. package/dist/wcs/p-9197e9b5.entry.js +2 -0
  358. package/dist/wcs/p-9197e9b5.entry.js.map +1 -0
  359. package/dist/wcs/{p-1e7ea63c.entry.js → p-9388283a.entry.js} +2 -2
  360. package/dist/wcs/{p-18fa39f4.entry.js → p-9c6db857.entry.js} +2 -2
  361. package/dist/wcs/{p-637ec45a.entry.js → p-9d4c8f84.entry.js} +2 -2
  362. package/dist/wcs/p-9d4c8f84.entry.js.map +1 -0
  363. package/dist/wcs/{p-dfb52a1c.entry.js → p-9e091c53.entry.js} +2 -2
  364. package/dist/wcs/{p-450942b1.entry.js → p-a60ba874.entry.js} +3 -3
  365. package/dist/wcs/{p-c6f8c45c.entry.js → p-a6d64e5b.entry.js} +2 -2
  366. package/dist/wcs/{p-9c73744c.entry.js → p-ae299c3f.entry.js} +2 -2
  367. package/dist/wcs/{p-a0f6ef30.entry.js → p-b04471f5.entry.js} +2 -2
  368. package/dist/wcs/p-b04471f5.entry.js.map +1 -0
  369. package/dist/wcs/{p-4ae08567.entry.js → p-b3b31d43.entry.js} +2 -2
  370. package/dist/wcs/{p-abd8d5a0.entry.js → p-b42f441f.entry.js} +2 -2
  371. package/dist/wcs/{p-5202b323.entry.js → p-b9368690.entry.js} +2 -2
  372. package/dist/wcs/{p-e56b9ce2.entry.js → p-beeec782.entry.js} +2 -2
  373. package/dist/wcs/{p-c261eaf9.entry.js → p-c169d496.entry.js} +2 -2
  374. package/dist/wcs/p-c3b733ff.entry.js +2 -0
  375. package/dist/wcs/{p-22620c69.entry.js → p-c42a6c1c.entry.js} +2 -2
  376. package/dist/wcs/p-c42a6c1c.entry.js.map +1 -0
  377. package/dist/wcs/p-c6808cab.entry.js +2 -0
  378. package/dist/wcs/{p-ed3b0709.entry.js → p-cb9147b8.entry.js} +2 -2
  379. package/dist/wcs/{p-f2f7595e.entry.js → p-cceee683.entry.js} +2 -2
  380. package/dist/wcs/{p-f2f7595e.entry.js.map → p-cceee683.entry.js.map} +1 -1
  381. package/dist/wcs/p-d3afc02f.entry.js +2 -0
  382. package/dist/wcs/{p-5e8fff73.entry.js → p-d89ad962.entry.js} +2 -2
  383. package/dist/wcs/{p-4e2d6227.entry.js → p-d8c4dbc3.entry.js} +2 -2
  384. package/dist/wcs/p-dbf82cb9.js +2 -0
  385. package/dist/wcs/{p-dff8641e.entry.js → p-e35b138e.entry.js} +2 -2
  386. package/dist/wcs/{p-fdeae83e.entry.js → p-f2c49d83.entry.js} +2 -2
  387. package/dist/wcs/{p-cbda74f6.entry.js → p-f411974e.entry.js} +2 -2
  388. package/dist/wcs/{p-0326f834.entry.js → p-f974210c.entry.js} +2 -2
  389. package/dist/wcs/{p-352e1f99.entry.js → p-ff48a8b2.entry.js} +2 -2
  390. package/dist/wcs/wcs.esm.js +1 -1
  391. package/dist/wcs/wcs.esm.js.map +1 -1
  392. package/package.json +2 -2
  393. package/bundle/p-30d83d3d.js.map +0 -1
  394. package/bundle/p-581fc0fc.js +0 -2
  395. package/bundle/p-581fc0fc.js.map +0 -1
  396. package/bundle/p-763371a0.js.map +0 -1
  397. package/bundle/p-97e70e10.js +0 -2
  398. package/composite-elements/p-79ad61e4.js +0 -2
  399. package/composite-elements/p-79ad61e4.js.map +0 -1
  400. package/composite-elements/p-af24fb0d.js.map +0 -1
  401. package/composite-elements/p-bc4c736d.js +0 -2
  402. package/composite-elements/p-bc4c736d.js.map +0 -1
  403. package/dist/cjs/grid-pagination-4505d7b6.js.map +0 -1
  404. package/dist/esm/grid-pagination-731726a6.js.map +0 -1
  405. package/dist/wcs/p-0017d766.js +0 -2
  406. package/dist/wcs/p-0b8157e7.entry.js +0 -2
  407. package/dist/wcs/p-2221bf0c.entry.js.map +0 -1
  408. package/dist/wcs/p-22620c69.entry.js.map +0 -1
  409. package/dist/wcs/p-3823f54e.entry.js +0 -2
  410. package/dist/wcs/p-580b3142.entry.js +0 -2
  411. package/dist/wcs/p-5da0534f.entry.js +0 -2
  412. package/dist/wcs/p-5da0534f.entry.js.map +0 -1
  413. package/dist/wcs/p-637ec45a.entry.js.map +0 -1
  414. package/dist/wcs/p-86ec9ead.entry.js +0 -2
  415. package/dist/wcs/p-86ec9ead.entry.js.map +0 -1
  416. package/dist/wcs/p-89b8c724.js +0 -2
  417. package/dist/wcs/p-98a8b806.entry.js +0 -2
  418. package/dist/wcs/p-98a8b806.entry.js.map +0 -1
  419. package/dist/wcs/p-a0f6ef30.entry.js.map +0 -1
  420. package/dist/wcs/p-ad5192cd.entry.js +0 -2
  421. package/dist/wcs/p-c5bad0b8.js +0 -2
  422. package/dist/wcs/p-c5bad0b8.js.map +0 -1
  423. package/dist/wcs/p-fe303f58.entry.js +0 -2
  424. package/dist/wcs/p-fe303f58.entry.js.map +0 -1
  425. /package/bundle/{p-97e70e10.js.map → p-475be4d2.js.map} +0 -0
  426. /package/bundle/{p-010cf905.js.map → p-5ef2bc63.js.map} +0 -0
  427. /package/bundle/{p-44a3b0b9.js.map → p-7a06295b.js.map} +0 -0
  428. /package/bundle/{p-2751ddc1.js.map → p-8b186fcf.js.map} +0 -0
  429. /package/bundle/{p-d23d7658.js.map → p-a0268a31.js.map} +0 -0
  430. /package/bundle/{p-c8b73e93.js.map → p-bce8c93f.js.map} +0 -0
  431. /package/bundle/{p-2e9b9605.js.map → p-bf326ae8.js.map} +0 -0
  432. /package/bundle/{p-98bd8a96.js.map → p-d018450c.js.map} +0 -0
  433. /package/bundle/{p-f0dda0b8.js.map → p-d3fe6951.js.map} +0 -0
  434. /package/bundle/{p-9c2aa87a.js.map → p-ee6ff5f8.js.map} +0 -0
  435. /package/bundle/{p-cdc6f6c2.js.map → p-ff261e50.js.map} +0 -0
  436. /package/composite-elements/{p-b83afff9.js.map → p-87e97a2e.js.map} +0 -0
  437. /package/composite-elements/{p-b92e818b.js.map → p-a70a3379.js.map} +0 -0
  438. /package/composite-elements/{p-55668982.js.map → p-c028b8e6.js.map} +0 -0
  439. /package/composite-elements/{p-2a51c239.js.map → p-c6adb221.js.map} +0 -0
  440. /package/composite-elements/{p-04663560.js.map → p-e4e3ed2c.js.map} +0 -0
  441. /package/composite-elements/{p-51517fda.js.map → p-ec3ce4d4.js.map} +0 -0
  442. /package/dist/wcs/{p-1ba616c2.entry.js.map → p-03838b42.entry.js.map} +0 -0
  443. /package/dist/wcs/{p-b0a6eec6.entry.js.map → p-0cbf08fb.entry.js.map} +0 -0
  444. /package/dist/wcs/{p-cad10435.entry.js.map → p-0d233c6a.entry.js.map} +0 -0
  445. /package/dist/wcs/{p-db7ba599.entry.js.map → p-14dfa087.entry.js.map} +0 -0
  446. /package/dist/wcs/{p-b28b2fba.entry.js.map → p-218b5f3d.entry.js.map} +0 -0
  447. /package/dist/wcs/{p-aadf37e7.entry.js.map → p-25d7b2f8.entry.js.map} +0 -0
  448. /package/dist/wcs/{p-850fa9c9.entry.js.map → p-3e57c746.entry.js.map} +0 -0
  449. /package/dist/wcs/{p-52d77e1f.js.map → p-5314a64d.js.map} +0 -0
  450. /package/dist/wcs/{p-27b438c0.entry.js.map → p-53bc2cae.entry.js.map} +0 -0
  451. /package/dist/wcs/{p-ad286030.entry.js.map → p-56d9554a.entry.js.map} +0 -0
  452. /package/dist/wcs/{p-3823f54e.entry.js.map → p-59f96b21.entry.js.map} +0 -0
  453. /package/dist/wcs/{p-2329af04.entry.js.map → p-63a8e5cc.entry.js.map} +0 -0
  454. /package/dist/wcs/{p-fbd68522.entry.js.map → p-6d8f0040.entry.js.map} +0 -0
  455. /package/dist/wcs/{p-c84ae00d.entry.js.map → p-6f937b20.entry.js.map} +0 -0
  456. /package/dist/wcs/{p-89b8c724.js.map → p-7af9a2f3.js.map} +0 -0
  457. /package/dist/wcs/{p-bc009574.entry.js.map → p-8f95bbf3.entry.js.map} +0 -0
  458. /package/dist/wcs/{p-9fd3366c.entry.js.map → p-912c2c9b.entry.js.map} +0 -0
  459. /package/dist/wcs/{p-1e7ea63c.entry.js.map → p-9388283a.entry.js.map} +0 -0
  460. /package/dist/wcs/{p-18fa39f4.entry.js.map → p-9c6db857.entry.js.map} +0 -0
  461. /package/dist/wcs/{p-dfb52a1c.entry.js.map → p-9e091c53.entry.js.map} +0 -0
  462. /package/dist/wcs/{p-450942b1.entry.js.map → p-a60ba874.entry.js.map} +0 -0
  463. /package/dist/wcs/{p-c6f8c45c.entry.js.map → p-a6d64e5b.entry.js.map} +0 -0
  464. /package/dist/wcs/{p-9c73744c.entry.js.map → p-ae299c3f.entry.js.map} +0 -0
  465. /package/dist/wcs/{p-4ae08567.entry.js.map → p-b3b31d43.entry.js.map} +0 -0
  466. /package/dist/wcs/{p-abd8d5a0.entry.js.map → p-b42f441f.entry.js.map} +0 -0
  467. /package/dist/wcs/{p-5202b323.entry.js.map → p-b9368690.entry.js.map} +0 -0
  468. /package/dist/wcs/{p-e56b9ce2.entry.js.map → p-beeec782.entry.js.map} +0 -0
  469. /package/dist/wcs/{p-c261eaf9.entry.js.map → p-c169d496.entry.js.map} +0 -0
  470. /package/dist/wcs/{p-0b8157e7.entry.js.map → p-c3b733ff.entry.js.map} +0 -0
  471. /package/dist/wcs/{p-580b3142.entry.js.map → p-c6808cab.entry.js.map} +0 -0
  472. /package/dist/wcs/{p-ed3b0709.entry.js.map → p-cb9147b8.entry.js.map} +0 -0
  473. /package/dist/wcs/{p-ad5192cd.entry.js.map → p-d3afc02f.entry.js.map} +0 -0
  474. /package/dist/wcs/{p-5e8fff73.entry.js.map → p-d89ad962.entry.js.map} +0 -0
  475. /package/dist/wcs/{p-4e2d6227.entry.js.map → p-d8c4dbc3.entry.js.map} +0 -0
  476. /package/dist/wcs/{p-0017d766.js.map → p-dbf82cb9.js.map} +0 -0
  477. /package/dist/wcs/{p-dff8641e.entry.js.map → p-e35b138e.entry.js.map} +0 -0
  478. /package/dist/wcs/{p-fdeae83e.entry.js.map → p-f2c49d83.entry.js.map} +0 -0
  479. /package/dist/wcs/{p-cbda74f6.entry.js.map → p-f411974e.entry.js.map} +0 -0
  480. /package/dist/wcs/{p-0326f834.entry.js.map → p-f974210c.entry.js.map} +0 -0
  481. /package/dist/wcs/{p-352e1f99.entry.js.map → p-ff48a8b2.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-d9de61ce.js';
2
- import { i as inheritAriaAttributes, a as inheritAttributes, s as setOrRemoveAttribute } from './helpers-ece6a2d3.js';
2
+ import { i as inheritAriaAttributes, a as inheritAttributes, s as setOrRemoveAttribute } from './helpers-89faa1b1.js';
3
3
 
4
4
  const getAccessibleName = (order, double) => {
5
5
  switch (order) {
@@ -128,7 +128,7 @@ const GridPagination = class {
128
128
  });
129
129
  }
130
130
  render() {
131
- return (h(Host, { key: 'a51e533835607f4e0b712fe26680704a71f76cd6', slot: "grid-pagination" }, h("div", { key: '8ff4ebf10c9e134a8e2fe5d577860a8d6dc9c863', class: "container" }, h("div", { key: 'a4c6ce48c71fb017dfecdb3f1e8bdc59894e1cbd', class: "page-size" }, h("wcs-select", { key: 'ae08e610f92bc8084806b25b0b5d7fa95db079ee', placeholder: "El\u00E9ments par page", class: "available-page-sizes", "aria-labelledby": "elements-per-page-number elements-per-page-text", value: this.pageSize, onWcsChange: this.onChangePageSize.bind(this) }, this.availablePageSizes.map((pageSize) => h("wcs-select-option", { value: pageSize }, pageSize))), h("span", { key: '282fd594fa817e9f2535c7403b5e1d66e4a7d030', id: "elements-per-page-number", hidden: true }, this.pageSize), h("span", { key: '00ee37d7e5156aa17b234fdf6eec956228064094', id: "elements-per-page-text" }, "\u00E9l\u00E9ments par page")), h("div", { key: '2ae95e32fc77cafebf0a38eb2746c62d0bd3a537', class: "items-count" }, h("span", { key: '5861d6bbf937867579181842dc93ba33290cdfe9' }, this.itemsCount, " \u00E9l\u00E9ments")), h("nav", Object.assign({ key: '7d847f316fb18ec7bdc08f7c055115a7391bb25e', "aria-label": "pagination", ref: (el) => (this.nativeNav = el) }, this.inheritedAttributes), h("ul", { key: 'd58fdfcd0a663071a6c94b72acf339a2efd57b5d', class: "page-management" }, h("li", { key: 'd18366653d52b0e481bfc8bb0d001d72aa5b3b36', class: "pagination-arrow", onClick: this.firstPage.bind(this) }, h(GridPaginationArrow, { key: 'ce33b84750ac08bfc50e91378f79ce62c11c9750', active: this.canGoToPreviousPage(), order: "previous", double: true })), h("li", { key: 'fb8adcbe91d40dd5d5dd741ec2c69299d971a1ee', class: "pagination-arrow", onClick: this.previousPage.bind(this) }, h(GridPaginationArrow, { key: 'b5f8b2804909a64e73e4d26a1faea483a10d2137', active: this.canGoToPreviousPage(), order: "previous" })), h("li", { key: '22742254c3c37ecf900eba29d1605a0420ff11e2', class: "pagination-counter" }, h("span", { key: '1f9385fffd93e2eb97d8199b0d7e459e58e01285', "aria-label": `Page ${this.currentPage + 1} sur ${this.pageCount}`, "aria-current": "page" }, this.currentPage + 1, " / ", this.pageCount)), h("li", { key: '3a408b5b27a1ff8ba7dc52b6027506100e371d49', class: "pagination-arrow", onClick: this.nextPage.bind(this) }, h(GridPaginationArrow, { key: '54e0d638e0645fd46b8a96a99509c8a3dafc842b', active: this.canGoToNextPage(), order: "next" })), h("li", { key: 'e91b2f2eeadfeea3ef68fa83c3c3e9fa30c3c17f', class: "pagination-arrow", onClick: this.lastPage.bind(this) }, h(GridPaginationArrow, { key: '14834c2f39a7f1076dfe2660aa2c651d1c52f40e', active: this.canGoToNextPage(), order: "next", double: true })))))));
131
+ return (h(Host, { key: '3efc96789e89f352f23038016baf6cbc232d6e0c', slot: "grid-pagination" }, h("div", { key: 'df2365f3367fe20bfb66f8b4969036a1662daef3', class: "container" }, h("div", { key: 'b700909bbdcef7087af7a7f5d624db07bf909315', class: "page-size" }, h("wcs-select", { key: 'bd9454c106da98c1dfbd7c5081f1bc2c564db2ae', placeholder: "El\u00E9ments par page", class: "available-page-sizes", "aria-labelledby": "elements-per-page-number elements-per-page-text", value: this.pageSize, onWcsChange: this.onChangePageSize.bind(this) }, this.availablePageSizes.map((pageSize) => h("wcs-select-option", { value: pageSize }, pageSize))), h("span", { key: '792711f34454bb10a42c44b7e13d03f8fbf4af74', id: "elements-per-page-number", hidden: true }, this.pageSize), h("span", { key: '00848f6a348aed84d37ebb19172e3d7818ba3c17', id: "elements-per-page-text" }, h("slot", { key: '21848ccaf60179a82c53916f8e438e8b63ebaf61', name: "elements-per-page-text" }, h("span", { key: '6bf5a0c3e6dc2bd81193e362abab61b7e165de54' }, " \u00E9l\u00E9ments par page")))), h("div", { key: 'ef6378352c7251430bb90540b28d52407b792b4d', class: "items-count" }, h("span", { key: 'a0f8ebf6564358233cf2683107d7a3af50bbd3e7' }, this.itemsCount, h("slot", { key: 'b0549af31d518ea3d748ba615c226d242aa1ea3e', name: "items-count-text" }, h("span", { key: 'b0266239fa9726005d9946ccedf59bfe26e030a3' }, " \u00E9l\u00E9ments")))), h("nav", Object.assign({ key: '43a87e737be4890ac0f4fcb8f76e56fc5a40a27d', "aria-label": "pagination", ref: (el) => (this.nativeNav = el) }, this.inheritedAttributes), h("ul", { key: '6e95be555deb6741ac851eaa0163483bd9a33e19', class: "page-management" }, h("li", { key: 'faab6e7ab55628be3b5bf4e61c559a67c6ea2a57', class: "pagination-arrow", onClick: this.firstPage.bind(this) }, h(GridPaginationArrow, { key: '699c51108204e3e13c408abb43ed59039b12cddb', active: this.canGoToPreviousPage(), order: "previous", double: true })), h("li", { key: '3e13d327cab3e2b4c54ad915e38c10effa852970', class: "pagination-arrow", onClick: this.previousPage.bind(this) }, h(GridPaginationArrow, { key: '5fbe8676685d367affe840948a4ae037e7e1b0d0', active: this.canGoToPreviousPage(), order: "previous" })), h("li", { key: '086fd79d45cc0d8c60cf53b9ae44015944341b95', class: "pagination-counter" }, h("span", { key: '9bd2e83985ae3b482830628ed9384c1583392f70', "aria-label": `Page ${this.currentPage + 1} sur ${this.pageCount}`, "aria-current": "page" }, this.currentPage + 1, " / ", this.pageCount)), h("li", { key: '6a61141774ba5ddc261e911945cbe71282c34793', class: "pagination-arrow", onClick: this.nextPage.bind(this) }, h(GridPaginationArrow, { key: '4c41d7cdce692495b67227f0bb24fd0b605998e0', active: this.canGoToNextPage(), order: "next" })), h("li", { key: 'c929ccd8c749763034a42a7006264747eed59b02', class: "pagination-arrow", onClick: this.lastPage.bind(this) }, h(GridPaginationArrow, { key: '184d97af95b7fad98617f7fb138463826f94c9a8', active: this.canGoToNextPage(), order: "next", double: true })))))));
132
132
  }
133
133
  get el() { return getElement(this); }
134
134
  };
@@ -137,4 +137,4 @@ GridPagination.style = WcsGridPaginationStyle0;
137
137
 
138
138
  export { GridPagination as G };
139
139
 
140
- //# sourceMappingURL=grid-pagination-731726a6.js.map
140
+ //# sourceMappingURL=grid-pagination-23102986.js.map
@@ -0,0 +1 @@
1
+ {"file":"grid-pagination-23102986.js","mappings":";;;AAQA,MAAM,iBAAiB,GAAG,CAAC,KAAwC,EAAE,MAA0C;IAC7G,QAAQ,KAAK;QACX,KAAK,MAAM;YACT,OAAO,MAAM,GAAG,eAAe,GAAG,eAAe,CAAC;QACpD,KAAK,UAAU,CAAC;QAChB;YACE,OAAO,MAAM,GAAG,eAAe,GAAG,iBAAiB,CAAC;KACvD;AACH,CAAC,CAAA;AAEM,MAAM,mBAAmB,GAAkD,CAAC,EAAC,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,KAAK,EAAC,MAChH,kBAAY,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,QAAQ,EACd,IAAI,EAAC,GAAG,EACR,QAAQ,EAAE,CAAC,MAAM,EACjB,KAAK,EAAE,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC;IACjD,WAAK,KAAK,EAAE,EAAC,MAAM,EAAE,SAAS,EAAC,iBACd,MAAM,EAClB,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW;QAChF,aAAO,IAAI,EAAC,UAAU,IAAE;;;;;;;;;;;;;;;;;;;;;WAqBnB,CAAS;QACd,SAAG,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,GAAG,cAAc;YAC1C,YAAM,KAAK,EAAE,CAAC,MAAM,GAAG,QAAQ,GAAG,EAAE,I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EAAC,kBAAkB,EAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAC3D,EAAC,mBAAmB,qDAAC,MAAM,EAAE,IAAI,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAC,UAAU,EAAC,MAAM,SAAuB,CACtG,EACL,2DAAI,KAAK,EAAC,kBAAkB,EAAC,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,IAC9D,EAAC,mBAAmB,qDAAC,MAAM,EAAE,IAAI,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAC,UAAU,GAAuB,CAC/F,EAEL,2DAAI,KAAK,EAAC,oBAAoB,IAC1B,2EAAkB,QAAQ,IAAI,CAAC,WAAW,GAAG,CAAC,QAAQ,IAAI,CAAC,SAAS,EAAE,kBAAe,MAAM,IACtF,IAAI,CAAC,WAAW,GAAG,CAAC,SAAK,IAAI,CAAC,SAAS,CACrC,CACN,EAEL,2DAAI,KAAK,EAAC,kBAAkB,EAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAC1D,EAAC,mBAAmB,qDAAC,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,EAAE,KAAK,EAAC,MAAM,GAAuB,CACvF,EACL,2DAAI,KAAK,EAAC,kBAAkB,EAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAC1D,EAAC,mBAAmB,qDAAC,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,SAAuB,CAC9F,CACJ,CACH,CACJ,CACH,EAAC;KACX;;;AA5Ke,+BAAgB,GAAW,CAAX,CAAa;;;;;","names":[],"sources":["src/components/grid-pagination/grid-pagination-arrow.tsx","src/components/grid-pagination/grid-pagination.scss?tag=wcs-grid-pagination&encapsulation=shadow","src/components/grid-pagination/grid-pagination.tsx"],"sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\n\ninterface GridPaginationArrowProps {\n active: boolean;\n order: 'next' | 'previous';\n double?: boolean;\n}\n\nconst getAccessibleName = (order: GridPaginationArrowProps['order'], double: GridPaginationArrowProps['double']): string => {\n switch (order) {\n case 'next':\n return double ? 'Dernière page' : 'Page suivante';\n case 'previous':\n default:\n return double ? 'Première page' : 'Page précédente';\n }\n}\n\nexport const GridPaginationArrow: FunctionalComponent<GridPaginationArrowProps> = ({active, order, double = false}) => (\n <wcs-button mode=\"clear\"\n shape=\"square\"\n size=\"s\"\n disabled={!active}\n title={getAccessibleName(order, double)}>\n <svg style={{cursor: 'pointer'}}\n aria-hidden=\"true\"\n xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"20\" viewBox=\"0 0 24 20\">\n <style type=\"text/css\">{`\n .arrow-group {\n transform-origin: 50% 51%;\n transition: transform 175ms ease-in-out;\n }\n .arrow {\n transition: fill 175ms ease-in-out;\n fill: var(--wcs-grid-pagination-arrow-color-inactive, var(--wcs-button-color));\n }\n .second-arrow {\n transform: translateY(-8px);\n }\n .next {\n transform: rotate(90deg);\n }\n .previous {\n transform: rotate(-90deg);\n }\n .active {\n fill: var(--wcs-grid-pagination-arrow-color-active, var(--wcs-button-color));\n }\n `}</style>\n <g fill=\"none\" class={order + ' arrow-group'}>\n <path class={(active ? 'active' : '') + ' arrow'} d=\"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z\"/>\n <path d=\"M0 0h24v24H0z\" fill=\"none\"/>\n </g>\n {\n double ?\n <g fill=\"none\" class={order + ' arrow-group'}>\n <path class={(active ? 'active' : '') + ' arrow second-arrow'}\n d=\"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z\"/>\n <path d=\"M0 0h24v24H0z\" fill=\"none\"/>\n </g>\n : ''\n }\n </svg>\n </wcs-button>\n);\n","@import '../../style/focus-outline.scss';\n\n:host {\n display: block;\n margin-top: var(--wcs-grid-pagination-margin-top);\n\n --wcs-grid-pagination-color: var(--wcs-semantic-color-text-primary);\n --wcs-grid-pagination-font-size: var(--wcs-semantic-font-size-label-2);\n --wcs-grid-pagination-font-weight: var(--wcs-semantic-font-weight-medium);\n\n --wcs-grid-pagination-gap: var(--wcs-semantic-spacing-base);\n --wcs-grid-pagination-page-size-gap: var(--wcs-semantic-spacing-base);\n --wcs-grid-pagination-counter-gap: var(--wcs-semantic-spacing-small);\n --wcs-grid-pagination-margin-top: var(--wcs-semantic-spacing-large);\n\n --wcs-grid-pagination-arrow-color-inactive: unset; /* Optional : Overrides the fill property of the grid-pagination-arrow */\n --wcs-grid-pagination-arrow-color-active: unset; /* Optional : Overrides the fill property of the grid-pagination-arrow */\n}\n\n.container {\n display: grid;\n gap: var(--wcs-grid-pagination-gap);\n grid-template-columns: auto auto auto;\n justify-content: space-between;\n align-items: center;\n color: var(--wcs-grid-pagination-color);\n font-size: var(--wcs-grid-pagination-font-size);\n font-weight: var(--wcs-grid-pagination-font-weight);\n}\n\n.available-page-sizes {\n width: auto;\n}\n\n.page-management, .page-size, .items-count {\n display: flex;\n align-items: center;\n}\n\n.page-size {\n gap: var(--wcs-grid-pagination-page-size-gap);\n}\n\n.page-management {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n\n.pagination-arrow {\n display: flex;\n}\n\n.pagination-counter {\n padding: 0 var(--wcs-grid-pagination-counter-gap);\n\n span {\n white-space: nowrap;\n }\n}\n\n/* TODO : Remove this when the select component will be able to handle the size S */\nwcs-select.available-page-sizes {\n --wcs-select-control-height: var(--wcs-semantic-size-s);\n}\n","import {\n Component,\n ComponentInterface, Element,\n Event, EventEmitter,\n h,\n Host, Method,\n Prop\n} from '@stencil/core';\nimport {\n WcsGridPaginationChangeEventDetails\n} from '../grid/grid-interface';\nimport { SelectChangeEventDetail } from '../select/select-interface';\nimport { GridPaginationArrow } from './grid-pagination-arrow';\nimport { AriaAttributeName, MutableAriaAttribute } from \"../../utils/mutable-aria-attribute\";\nimport { inheritAriaAttributes, inheritAttributes, setOrRemoveAttribute } from \"../../utils/helpers\";\n\nconst GRID_PAGINATION_INHERITED_ATTRS = ['tabindex', 'title'];\n\n/**\n * The grid pagination is a subcomponent of `wcs-grid`, slotted in `grid-pagination` under the `<table>` element.\n * \n * @cssprop --wcs-grid-pagination-color - Text color of the grid pagination\n * @cssprop --wcs-grid-pagination-font-size - Font-size of the grid pagination\n * @cssprop --wcs-grid-pagination-font-weight - Font-weight of the grid pagination\n * @cssprop --wcs-grid-pagination-gap - Gap between the page size, number of elements and page management\n * @cssprop --wcs-grid-pagination-page-size-gap - Gap between the select and the text within the page size container\n * @cssprop --wcs-grid-pagination-counter-gap - Gap within the page management counter\n * @cssprop --wcs-grid-pagination-margin-top - Margin between the grid and the pagination\n * @cssprop --wcs-grid-pagination-arrow-color-inactive - Color of the inactive arrow\n * @cssprop --wcs-grid-pagination-arrow-color-active - Color of the active arrow\n * \n * @slot elements-per-page-text - Text following the page size select. Default text is \" éléments par page\". You may want to add a non-breaking space before the text to separate it from the number.\n * @slot items-count-text - Text following the number of elements. Default text is \" éléments\". You may want to add a non-breaking space before the text to separate it from the number.\n */\n@Component({\n tag: 'wcs-grid-pagination',\n styleUrl: 'grid-pagination.scss',\n shadow: true\n})\nexport class GridPagination implements ComponentInterface, MutableAriaAttribute {\n @Element() private el!: HTMLElement;\n private nativeNav!: HTMLElement;\n private inheritedAttributes: { [k: string]: any } = {};\n \n static readonly INDEX_FIRST_PAGE: number = 0;\n /**\n * Set the available page sizes in the pagination dropdown on the left.\n */\n @Prop() availablePageSizes: number[] = [10, 20, 50];\n /**\n * The current page of the pagination. First page starts at index 0.\n */\n @Prop({mutable: true}) currentPage: number = GridPagination.INDEX_FIRST_PAGE;\n /**\n * Maximum number of elements shown per page. \n * Default is the first value of `availablePageSizes`.\n */\n @Prop() pageSize: number = this.availablePageSizes[0];\n /**\n * Total elements in the grid. \n * - **Grid in `Server mode`** : You have to set `itemsCount` = your total data length. \n * - **Grid not in Server mode** : Do not set it manually : itemsCount is set and updated every pagination refresh.\n */\n @Prop() itemsCount: number = 0;\n /**\n * Max number of pages. \n * - **Grid in `Server mode`** : You have to set `pageCount` = `itemsCount` divided by `pageSize`. \n * - **Grid not in Server mode** : Do not set it manually : pageCount is set and updated every pagination refresh.\n */\n @Prop() pageCount: number = 1;\n /**\n * Event emitted when the pagination changes.\n */\n @Event() wcsGridPaginationChange!: EventEmitter<WcsGridPaginationChangeEventDetails>;\n\n componentWillLoad(): Promise<void> | void {\n this.inheritedAttributes = {\n ...inheritAriaAttributes(this.el),\n ...inheritAttributes(this.el, GRID_PAGINATION_INHERITED_ATTRS),\n };\n }\n\n @Method()\n async setAriaAttribute(attr: AriaAttributeName, value: string | null | undefined) {\n setOrRemoveAttribute(this.nativeNav, attr, value);\n }\n \n private getWcsGrid(): HTMLWcsGridElement | undefined {\n return this.el.parentElement.tagName === 'WCS-GRID' ? this.el.parentElement as HTMLWcsGridElement : undefined;\n }\n\n private lastPage(): void {\n this.currentPage = this.pageCount - 1;\n this.emitPaginationChange();\n this.focusFirstGridCell();\n }\n\n private nextPage(): void {\n if (this.canGoToNextPage()) {\n this.currentPage++;\n this.emitPaginationChange();\n this.focusFirstGridCell();\n }\n }\n\n private canGoToNextPage(): boolean {\n return this.currentPage + 1 < this.pageCount;\n }\n\n private previousPage(): void {\n if (this.canGoToPreviousPage()) {\n this.currentPage--;\n this.emitPaginationChange();\n this.focusFirstGridCell();\n }\n }\n\n private canGoToPreviousPage(): boolean {\n return this.currentPage > 0;\n }\n\n private firstPage(): void {\n this.currentPage = 0;\n this.emitPaginationChange();\n this.focusFirstGridCell();\n }\n\n private onChangePageSize(event: CustomEvent<SelectChangeEventDetail>): void {\n this.pageSize = event.detail.value;\n if (this.currentPage + 1 > this.pageSize) {\n this.currentPage = 0;\n }\n this.emitPaginationChange();\n this.focusFirstGridCell();\n }\n\n /**\n * Move focus to the first grid cell after a pagination change\n */\n private focusFirstGridCell() {\n const grid = this.getWcsGrid();\n if (grid) {\n requestAnimationFrame(() => {\n this.el.blur();\n grid.focusFirstCell();\n })\n }\n }\n\n private emitPaginationChange(): void {\n this.wcsGridPaginationChange.emit({\n pagination: {\n currentPage: this.currentPage,\n pageSize: this.pageSize,\n itemsCount: this.itemsCount,\n pageCount: this.pageCount\n }\n });\n }\n\n render(): any {\n return (<Host slot=\"grid-pagination\">\n <div class=\"container\">\n <div class=\"page-size\">\n <wcs-select placeholder=\"Eléments par page\"\n class=\"available-page-sizes\"\n aria-labelledby=\"elements-per-page-number elements-per-page-text\"\n value={this.pageSize}\n onWcsChange={this.onChangePageSize.bind(this)}>\n {\n this.availablePageSizes.map((pageSize) =>\n <wcs-select-option value={pageSize}>{pageSize}</wcs-select-option>\n )\n }\n </wcs-select>\n <span id=\"elements-per-page-number\" hidden>{this.pageSize}</span>\n <span id=\"elements-per-page-text\"> \n <slot name=\"elements-per-page-text\">\n <span> éléments par page</span>\n </slot>\n </span>\n </div>\n\n <div class=\"items-count\">\n <span>{this.itemsCount}\n <slot name=\"items-count-text\">\n <span> éléments</span>\n </slot>\n </span>\n </div>\n\n <nav aria-label=\"pagination\" ref={(el) => (this.nativeNav = el)} {...this.inheritedAttributes}>\n <ul class=\"page-management\">\n <li class=\"pagination-arrow\" onClick={this.firstPage.bind(this)}>\n <GridPaginationArrow active={this.canGoToPreviousPage()} order=\"previous\" double></GridPaginationArrow>\n </li>\n <li class=\"pagination-arrow\" onClick={this.previousPage.bind(this)}>\n <GridPaginationArrow active={this.canGoToPreviousPage()} order=\"previous\"></GridPaginationArrow>\n </li>\n \n <li class=\"pagination-counter\">\n <span aria-label={`Page ${this.currentPage + 1} sur ${this.pageCount}`} aria-current=\"page\">\n {this.currentPage + 1} / {this.pageCount}\n </span>\n </li>\n \n <li class=\"pagination-arrow\" onClick={this.nextPage.bind(this)}>\n <GridPaginationArrow active={this.canGoToNextPage()} order=\"next\"></GridPaginationArrow>\n </li>\n <li class=\"pagination-arrow\" onClick={this.lastPage.bind(this)}>\n <GridPaginationArrow active={this.canGoToNextPage()} order=\"next\" double></GridPaginationArrow>\n </li>\n </ul>\n </nav>\n </div>\n </Host>)\n }\n}\n"],"version":3}
@@ -264,6 +264,6 @@ function parseCssTimeValueToMilliseconds(timeValue) {
264
264
  return match[2] === 's' ? value * 1000 : value;
265
265
  }
266
266
 
267
- export { generateUniqueId as A, compareLists as B, isElement as C, hasShadowDom as D, inheritAttributes as a, isEscapeKey as b, isSpaceKey as c, isEnterKey as d, isKeyup as e, isKeydown as f, getCssRootPropertyValue as g, isHomeKey as h, inheritAriaAttributes as i, isEndKey as j, clickTargetIsElementOrChildren as k, isPageUpKey as l, isPageDownKey as m, isTabKey as n, isMouseEvent as o, parseCssTimeValueToMilliseconds as p, clickInsideElement as q, debounceEvent as r, setOrRemoveAttribute as s, findItemLabel as t, isDownArrowKey as u, isRightArrowKey as v, isUpArrowKey as w, isLeftArrowKey as x, raf as y, normalizeWhitespace as z };
267
+ export { compareLists as A, findItemLabel as B, isElement as C, hasShadowDom as D, inheritAttributes as a, isEscapeKey as b, isSpaceKey as c, isEnterKey as d, isKeyup as e, isKeydown as f, getCssRootPropertyValue as g, isHomeKey as h, inheritAriaAttributes as i, isEndKey as j, clickTargetIsElementOrChildren as k, isPageUpKey as l, isPageDownKey as m, isTabKey as n, isMouseEvent as o, parseCssTimeValueToMilliseconds as p, clickInsideElement as q, debounceEvent as r, setOrRemoveAttribute as s, isDownArrowKey as t, isRightArrowKey as u, isUpArrowKey as v, isLeftArrowKey as w, raf as x, normalizeWhitespace as y, generateUniqueId as z };
268
268
 
269
- //# sourceMappingURL=helpers-ece6a2d3.js.map
269
+ //# sourceMappingURL=helpers-89faa1b1.js.map
@@ -1 +1 @@
1
- {"file":"helpers-ece6a2d3.js","mappings":"SAEgB,SAAS,CAAC,OAAY;IAClC,OAAO,aAAa,IAAI,OAAO;WACxB,cAAc,IAAI,OAAO,CAAC;AACrC,CAAC;SAEe,YAAY,CAAC,EAAe;IACxC,OAAO,CAAC,CAAC,EAAE,C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AExC,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5C,IAAI,CAAC,KAAK;QAAE,OAAO,CAAC,CAAC;IAErB,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IAEtC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;AACnD;;;;","names":[],"sources":["src/utils/helpers.ts"],"sourcesContent":["import { EventEmitter } from '@stencil/core';\n\nexport function isElement(element: any): element is Element {\n return 'clientWidth' in element\n && 'clientHeight' in element;\n}\n\nexport function hasShadowDom(el: HTMLElement) {\n return !!el.shadowRoot && !!(el as any).attachShadow;\n}\n\nexport const debounceEvent = (event: EventEmitter, wait: number): EventEmitter => {\n const original = (event as any)._original || event;\n return {\n _original: event,\n emit: debounce(original.emit.bind(original), wait)\n } as EventEmitter;\n};\n\nexport const debounce = (func: (...args: any[]) => void, wait = 0) => {\n let timer: any;\n return (...args: any[]): any => {\n clearTimeout(timer);\n timer = setTimeout(func, wait, ...args);\n };\n};\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `wcs-input` should inherit\n * the `title` attribute that developers set directly on `wcs-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\nexport const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {};\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n\n/**\n * List of available ARIA attributes + `role`.\n * Removed deprecated attributes.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes\n */\nconst ariaAttributes = [\n 'role',\n 'aria-activedescendant',\n 'aria-atomic',\n 'aria-autocomplete',\n 'aria-braillelabel',\n 'aria-brailleroledescription',\n 'aria-busy',\n 'aria-checked',\n 'aria-colcount',\n 'aria-colindex',\n 'aria-colindextext',\n 'aria-colspan',\n 'aria-controls',\n 'aria-current',\n 'aria-describedby',\n 'aria-description',\n 'aria-details',\n 'aria-disabled',\n 'aria-errormessage',\n 'aria-expanded',\n 'aria-flowto',\n 'aria-haspopup',\n 'aria-hidden',\n 'aria-invalid',\n 'aria-keyshortcuts',\n 'aria-label',\n 'aria-labelledby',\n 'aria-level',\n 'aria-live',\n 'aria-multiline',\n 'aria-multiselectable',\n 'aria-orientation',\n 'aria-owns',\n 'aria-placeholder',\n 'aria-posinset',\n 'aria-pressed',\n 'aria-readonly',\n 'aria-relevant',\n 'aria-required',\n 'aria-roledescription',\n 'aria-rowcount',\n 'aria-rowindex',\n 'aria-rowindextext',\n 'aria-rowspan',\n 'aria-selected',\n 'aria-setsize',\n 'aria-sort',\n 'aria-valuemax',\n 'aria-valuemin',\n 'aria-valuenow',\n 'aria-valuetext',\n];\n\n/**\n * Returns an array of aria attributes that should be copied from\n * the shadow host element to a target within the light DOM.\n * @param el The element that the attributes should be copied from.\n * @param ignoreList The list of aria-attributes to ignore reflecting and removing from the host.\n * Use this in instances where we manually specify aria attributes on the `<Host>` element.\n */\nexport const inheritAriaAttributes = (el: HTMLElement, ignoreList?: string[]) => {\n let attributesToInherit = ariaAttributes;\n if (ignoreList && ignoreList.length > 0) {\n attributesToInherit = attributesToInherit.filter((attr) => !ignoreList.includes(attr));\n }\n return inheritAttributes(el, attributesToInherit);\n};\n\n/**\n * Dynamically add or remove an attribute on the element.\n * If the value of the attribute is null or undefined, the attribute is removed.\n *\n * @param el - The HTMLElement\n * @param attr - The attribute to be added or removed\n * @param value - The value of the attribute\n */\nexport function setOrRemoveAttribute(el: HTMLElement, attr: string, value: string | null | undefined) {\n if (el) {\n if (value === undefined || value === null) {\n el.removeAttribute(attr);\n } else {\n el.setAttribute(attr, value);\n }\n }\n}\n\nexport const findItemLabel = (componentEl: HTMLElement): HTMLWcsLabelElement | null => {\n const itemEl = componentEl.closest('wcs-form-field');\n if (itemEl) {\n return itemEl.querySelector('wcs-label');\n }\n return null;\n};\n\n/**\n * Given two lists of items, this function will return the items that were removed, kept, and added compared to the source list.\n * @param sourceList - The source list of items\n * @param newList - The target list of items\n * @param compareFn - The function to compare the items\n */\nexport const compareLists: <T>(sourceList: T[], newList: T[], compareFn: (v1: T, v2: T) => boolean) => {\n removed: T[];\n kept: T[];\n added: T[]\n} = <T>(sourceList: T[], newList: T[], compareFn: (v1: T, v2: T) => boolean) => {\n const removed = sourceList.filter(val => !newList.some(newVal => compareFn(val, newVal)));\n const kept = sourceList.filter(val => newList.some(newVal => compareFn(val, newVal)));\n const added = newList.filter(val => !sourceList.some(sourceVal => compareFn(val, sourceVal)));\n\n return { removed, kept, added };\n};\n\n/**\n * Normalizes whitespace by replacing multiple consecutive whitespace characters \n * with a single space and removes leading and trailing whitespace.\n * \n * @param content - String potentially containing multiple whitespace characters to normalize, if the content is null or undefined, it will return an empty string.\n * @returns Normalized string where sequences of whitespace are replaced by a single space.\n * \n * @example\n * normalizeWhitespace(\" Text with spaces \") // Returns \"Text with spaces\"\n */\nexport function normalizeWhitespace(content: string): string {\n return content?.replace(/\\s+/g, ' ')?.trim() ?? '';\n}\n\ndeclare const __zone_symbol__requestAnimationFrame: any;\n\n/**\n * Patched version of requestAnimationFrame that avoids ngzone\n * Use only when you know ngzone should not run\n */\nexport const raf = (h: any) => {\n if (typeof __zone_symbol__requestAnimationFrame === 'function') {\n return __zone_symbol__requestAnimationFrame(h);\n }\n if (typeof requestAnimationFrame === 'function') {\n return requestAnimationFrame(h);\n }\n return setTimeout(h);\n};\n\n/**\n * Return true if the mouseEvent click is inside the given HTML element\n */\nexport const clickInsideElement = (event: MouseEvent, element: HTMLElement): boolean => {\n return event.x >= element.getBoundingClientRect().x && event.x <= element.getBoundingClientRect().x + element.getBoundingClientRect().width\n && event.y >= element.getBoundingClientRect().y && event.y <= element.getBoundingClientRect().y + element.getBoundingClientRect().height;\n}\n\nexport const clickTargetIsElementOrChildren = (mouseEvent: MouseEvent, element: HTMLElement) => {\n return mouseEvent.target instanceof Node\n && element.contains(mouseEvent.target);\n}\n\nexport function generateUniqueId(componentName: string): string {\n return componentName + \"-\" + Math.random().toString(36);\n}\n\n/**\n * `clientX` property doesn't exist on KeyboardEvent, we therefore deduce it's a MouseEvent.\n */\nexport function isMouseEvent(event: MouseEvent | KeyboardEvent): event is MouseEvent {\n return 'clientX' in event;\n}\n\nexport function isKeyup(evt: KeyboardEvent) {\n return evt.code === 'ArrowUp';\n}\n\nexport function isKeydown(evt: KeyboardEvent) {\n return evt.code === 'ArrowDown';\n}\n\nexport function isEscapeKey(evt: KeyboardEvent) {\n return evt.code === 'Escape';\n}\n\nexport function isSpaceKey(evt: KeyboardEvent) {\n return evt.code === 'Space';\n}\n\nexport function isEnterKey(evt: KeyboardEvent) {\n return evt.key === 'Enter';\n}\n\nexport function isHomeKey(evt: KeyboardEvent) {\n return evt.code === 'Home';\n}\n\nexport function isEndKey(evt: KeyboardEvent) {\n return evt.code === 'End';\n}\n\nexport function isUpArrowKey(evt: KeyboardEvent) {\n return evt.key === 'ArrowUp';\n}\n\nexport function isDownArrowKey(evt: KeyboardEvent) {\n return evt.key === 'ArrowDown';\n}\n\nexport function isLeftArrowKey(evt: KeyboardEvent) {\n return evt.key === 'ArrowLeft';\n}\n\nexport function isRightArrowKey(evt: KeyboardEvent) {\n return evt.key === 'ArrowRight';\n}\n\nexport function isPageDownKey(evt: KeyboardEvent) {\n return evt.key === 'PageDown';\n}\n\nexport function isPageUpKey(evt: KeyboardEvent) {\n return evt.key === 'PageUp';\n}\n\nexport function isTabKey(evt: KeyboardEvent) {\n return evt.key === 'Tab';\n}\n\nexport function isCtrlA(evt: KeyboardEvent) {\n return evt.key === 'a' && evt.ctrlKey;\n}\n\nexport function getCssRootPropertyValue(name: string): string | null {\n return window.getComputedStyle(document.body).getPropertyValue(name) || null;\n}\n\n/**\n * Converts a CSS time value string (e.g., '150ms', '1.5s') into milliseconds\n * @param {string} timeValue - The CSS time value string\n * @returns {number} Time in milliseconds\n */\nexport function parseCssTimeValueToMilliseconds(timeValue: string): number {\n if (!timeValue) return 0;\n\n const TIME_REGEX = /^([\\d.]+)(?:(ms|s))?$/;\n\n const trimmedValue = timeValue.trim();\n if (!/^\\d/.test(trimmedValue)) return 0;\n\n const match = TIME_REGEX.exec(trimmedValue);\n if (!match) return 0;\n\n const value = Number(match[1]);\n if (!Number.isFinite(value)) return 0;\n\n return match[2] === 's' ? value * 1000 : value;\n}\n"],"version":3}
1
+ {"file":"helpers-89faa1b1.js","mappings":"SAEgB,SAAS,CAAC,OAAY;IAClC,OAAO,aAAa,IAAI,OAAO;WACxB,cAAc,IAAI,OAAO,CAAC;AACrC,CAAC;SAEe,YAAY,CAAC,EAAe;IACxC,OAAO,CAAC,CAAC,EAAE,CAAC,UAAU,IAAI,CAAC,CAAE,EAAU,CAAC,YAAY,CAAC;AACzD,CAAC;MAEY,aAAa,GAAG,CAAC,KAAmB,EAAE,IAAY;IAC3D,MAAM,QAAQ,GAAI,KAAa,CAAC,SAAS,IAAI,KAAK,CAAC;IACnD,OAAO;QACH,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC;KACrC,CAAC;AACtB,EAAE;AAEK,MAAM,QAAQ,GAAG,CAAC,IAA8B,EAAE,IAAI,GAAG,CAAC;IAC7D,IAAI,KAAU,CAAC;IACf,OAAO,CAAC,GAAG,IAAW;QAClB,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,KAAK,GAAG,UAAU,CAAC,IAAI,EAAE,IAAI,EA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AY,CAAC;AACpC,CAAC;SAEe,aAAa,CAAC,GAAkB;IAC5C,OAAO,GAAG,CAAC,GAAG,KAAK,UAAU,CAAC;AAClC,CAAC;SAEe,WAAW,CAAC,GAAkB;IAC1C,OAAO,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC;AAChC,CAAC;SAEe,QAAQ,CAAC,GAAkB;IACvC,OAAO,GAAG,CAAC,GAAG,KAAK,KAAK,CAAC;AAC7B,CAAC;SAMe,uBAAuB,CAAC,IAAY;IAChD,OAAO,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;AACjF,CAAC;AAED;;;;;SAKgB,+BAA+B,CAAC,SAAiB;IAC7D,IAAI,CAAC,SAAS;QAAE,OAAO,CAAC,CAAC;IAEzB,MAAM,UAAU,GAAG,uBAAuB,CAAC;IAE3C,MAAM,YAAY,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;IACtC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,CAAC,CAAC;IAExC,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5C,IAAI,CAAC,KAAK;QAAE,OAAO,CAAC,CAAC;IAErB,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IAEtC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;AACnD;;;;","names":[],"sources":["src/utils/helpers.ts"],"sourcesContent":["import { EventEmitter } from '@stencil/core';\n\nexport function isElement(element: any): element is Element {\n return 'clientWidth' in element\n && 'clientHeight' in element;\n}\n\nexport function hasShadowDom(el: HTMLElement) {\n return !!el.shadowRoot && !!(el as any).attachShadow;\n}\n\nexport const debounceEvent = (event: EventEmitter, wait: number): EventEmitter => {\n const original = (event as any)._original || event;\n return {\n _original: event,\n emit: debounce(original.emit.bind(original), wait)\n } as EventEmitter;\n};\n\nexport const debounce = (func: (...args: any[]) => void, wait = 0) => {\n let timer: any;\n return (...args: any[]): any => {\n clearTimeout(timer);\n timer = setTimeout(func, wait, ...args);\n };\n};\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `wcs-input` should inherit\n * the `title` attribute that developers set directly on `wcs-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\nexport const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {};\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n\n/**\n * List of available ARIA attributes + `role`.\n * Removed deprecated attributes.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes\n */\nconst ariaAttributes = [\n 'role',\n 'aria-activedescendant',\n 'aria-atomic',\n 'aria-autocomplete',\n 'aria-braillelabel',\n 'aria-brailleroledescription',\n 'aria-busy',\n 'aria-checked',\n 'aria-colcount',\n 'aria-colindex',\n 'aria-colindextext',\n 'aria-colspan',\n 'aria-controls',\n 'aria-current',\n 'aria-describedby',\n 'aria-description',\n 'aria-details',\n 'aria-disabled',\n 'aria-errormessage',\n 'aria-expanded',\n 'aria-flowto',\n 'aria-haspopup',\n 'aria-hidden',\n 'aria-invalid',\n 'aria-keyshortcuts',\n 'aria-label',\n 'aria-labelledby',\n 'aria-level',\n 'aria-live',\n 'aria-multiline',\n 'aria-multiselectable',\n 'aria-orientation',\n 'aria-owns',\n 'aria-placeholder',\n 'aria-posinset',\n 'aria-pressed',\n 'aria-readonly',\n 'aria-relevant',\n 'aria-required',\n 'aria-roledescription',\n 'aria-rowcount',\n 'aria-rowindex',\n 'aria-rowindextext',\n 'aria-rowspan',\n 'aria-selected',\n 'aria-setsize',\n 'aria-sort',\n 'aria-valuemax',\n 'aria-valuemin',\n 'aria-valuenow',\n 'aria-valuetext',\n];\n\n/**\n * Returns an array of aria attributes that should be copied from\n * the shadow host element to a target within the light DOM.\n * @param el The element that the attributes should be copied from.\n * @param ignoreList The list of aria-attributes to ignore reflecting and removing from the host.\n * Use this in instances where we manually specify aria attributes on the `<Host>` element.\n */\nexport const inheritAriaAttributes = (el: HTMLElement, ignoreList?: string[]) => {\n let attributesToInherit = ariaAttributes;\n if (ignoreList && ignoreList.length > 0) {\n attributesToInherit = attributesToInherit.filter((attr) => !ignoreList.includes(attr));\n }\n return inheritAttributes(el, attributesToInherit);\n};\n\n/**\n * Dynamically add or remove an attribute on the element.\n * If the value of the attribute is null or undefined, the attribute is removed.\n *\n * @param el - The HTMLElement\n * @param attr - The attribute to be added or removed\n * @param value - The value of the attribute\n */\nexport function setOrRemoveAttribute(el: HTMLElement, attr: string, value: string | null | undefined) {\n if (el) {\n if (value === undefined || value === null) {\n el.removeAttribute(attr);\n } else {\n el.setAttribute(attr, value);\n }\n }\n}\n\nexport const findItemLabel = (componentEl: HTMLElement): HTMLWcsLabelElement | null => {\n const itemEl = componentEl.closest('wcs-form-field');\n if (itemEl) {\n return itemEl.querySelector('wcs-label');\n }\n return null;\n};\n\n/**\n * Given two lists of items, this function will return the items that were removed, kept, and added compared to the source list.\n * @param sourceList - The source list of items\n * @param newList - The target list of items\n * @param compareFn - The function to compare the items\n */\nexport const compareLists: <T>(sourceList: T[], newList: T[], compareFn: (v1: T, v2: T) => boolean) => {\n removed: T[];\n kept: T[];\n added: T[]\n} = <T>(sourceList: T[], newList: T[], compareFn: (v1: T, v2: T) => boolean) => {\n const removed = sourceList.filter(val => !newList.some(newVal => compareFn(val, newVal)));\n const kept = sourceList.filter(val => newList.some(newVal => compareFn(val, newVal)));\n const added = newList.filter(val => !sourceList.some(sourceVal => compareFn(val, sourceVal)));\n\n return { removed, kept, added };\n};\n\n/**\n * Normalizes whitespace by replacing multiple consecutive whitespace characters \n * with a single space and removes leading and trailing whitespace.\n * \n * @param content - String potentially containing multiple whitespace characters to normalize, if the content is null or undefined, it will return an empty string.\n * @returns Normalized string where sequences of whitespace are replaced by a single space.\n * \n * @example\n * normalizeWhitespace(\" Text with spaces \") // Returns \"Text with spaces\"\n */\nexport function normalizeWhitespace(content: string): string {\n return content?.replace(/\\s+/g, ' ')?.trim() ?? '';\n}\n\ndeclare const __zone_symbol__requestAnimationFrame: any;\n\n/**\n * Patched version of requestAnimationFrame that avoids ngzone\n * Use only when you know ngzone should not run\n */\nexport const raf = (h: any) => {\n if (typeof __zone_symbol__requestAnimationFrame === 'function') {\n return __zone_symbol__requestAnimationFrame(h);\n }\n if (typeof requestAnimationFrame === 'function') {\n return requestAnimationFrame(h);\n }\n return setTimeout(h);\n};\n\n/**\n * Return true if the mouseEvent click is inside the given HTML element\n */\nexport const clickInsideElement = (event: MouseEvent, element: HTMLElement): boolean => {\n return event.x >= element.getBoundingClientRect().x && event.x <= element.getBoundingClientRect().x + element.getBoundingClientRect().width\n && event.y >= element.getBoundingClientRect().y && event.y <= element.getBoundingClientRect().y + element.getBoundingClientRect().height;\n}\n\nexport const clickTargetIsElementOrChildren = (mouseEvent: MouseEvent, element: HTMLElement) => {\n return mouseEvent.target instanceof Node\n && element.contains(mouseEvent.target);\n}\n\nexport function generateUniqueId(componentName: string): string {\n return componentName + \"-\" + Math.random().toString(36);\n}\n\n/**\n * `clientX` property doesn't exist on KeyboardEvent, we therefore deduce it's a MouseEvent.\n */\nexport function isMouseEvent(event: MouseEvent | KeyboardEvent): event is MouseEvent {\n return 'clientX' in event;\n}\n\nexport function isKeyup(evt: KeyboardEvent) {\n return evt.code === 'ArrowUp';\n}\n\nexport function isKeydown(evt: KeyboardEvent) {\n return evt.code === 'ArrowDown';\n}\n\nexport function isEscapeKey(evt: KeyboardEvent) {\n return evt.code === 'Escape';\n}\n\nexport function isSpaceKey(evt: KeyboardEvent) {\n return evt.code === 'Space';\n}\n\nexport function isEnterKey(evt: KeyboardEvent) {\n return evt.key === 'Enter';\n}\n\nexport function isHomeKey(evt: KeyboardEvent) {\n return evt.code === 'Home';\n}\n\nexport function isEndKey(evt: KeyboardEvent) {\n return evt.code === 'End';\n}\n\nexport function isUpArrowKey(evt: KeyboardEvent) {\n return evt.key === 'ArrowUp';\n}\n\nexport function isDownArrowKey(evt: KeyboardEvent) {\n return evt.key === 'ArrowDown';\n}\n\nexport function isLeftArrowKey(evt: KeyboardEvent) {\n return evt.key === 'ArrowLeft';\n}\n\nexport function isRightArrowKey(evt: KeyboardEvent) {\n return evt.key === 'ArrowRight';\n}\n\nexport function isPageDownKey(evt: KeyboardEvent) {\n return evt.key === 'PageDown';\n}\n\nexport function isPageUpKey(evt: KeyboardEvent) {\n return evt.key === 'PageUp';\n}\n\nexport function isTabKey(evt: KeyboardEvent) {\n return evt.key === 'Tab';\n}\n\nexport function isCtrlA(evt: KeyboardEvent) {\n return evt.key === 'a' && evt.ctrlKey;\n}\n\nexport function getCssRootPropertyValue(name: string): string | null {\n return window.getComputedStyle(document.body).getPropertyValue(name) || null;\n}\n\n/**\n * Converts a CSS time value string (e.g., '150ms', '1.5s') into milliseconds\n * @param {string} timeValue - The CSS time value string\n * @returns {number} Time in milliseconds\n */\nexport function parseCssTimeValueToMilliseconds(timeValue: string): number {\n if (!timeValue) return 0;\n\n const TIME_REGEX = /^([\\d.]+)(?:(ms|s))?$/;\n\n const trimmedValue = timeValue.trim();\n if (!/^\\d/.test(trimmedValue)) return 0;\n\n const match = TIME_REGEX.exec(trimmedValue);\n if (!match) return 0;\n\n const value = Number(match[1]);\n if (!Number.isFinite(value)) return 0;\n\n return match[2] === 's' ? value * 1000 : value;\n}\n"],"version":3}
@@ -1556,7 +1556,7 @@ function setCacheAdd(value) {
1556
1556
  * @name has
1557
1557
  * @memberOf SetCache
1558
1558
  * @param {*} value The value to search for.
1559
- * @returns {number} Returns `true` if `value` is found, else `false`.
1559
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
1560
1560
  */
1561
1561
  function setCacheHas(value) {
1562
1562
  return this.__data__.has(value);
@@ -2053,4 +2053,4 @@ function isEqual(value, other) {
2053
2053
 
2054
2054
  export { MapCache as M, Symbol$1 as S, Uint8Array$1 as U, isArray$1 as a, baseGetTag as b, isObject as c, isPrototype as d, eq as e, isArrayLike as f, getNative as g, arrayLikeKeys as h, isObjectLike as i, getSymbols$1 as j, keys as k, arrayPush as l, baseGetAllKeys as m, getTag$1 as n, overArg as o, baseUnary as p, nodeUtil$1 as q, root$1 as r, stubArray as s, isBuffer$1 as t, Stack as u, getAllKeys as v, isEqual as w };
2055
2055
 
2056
- //# sourceMappingURL=isEqual-f2a07f4c.js.map
2056
+ //# sourceMappingURL=isEqual-89e74e17.js.map