@spw-ds/spw-stencil-library 1.7.0 → 1.8.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 (524) hide show
  1. package/dist/cjs/index-CGg8f9_X.js +12 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/spw-accordion_4.cjs.entry.js +4 -4
  4. package/dist/cjs/spw-avatar.cjs.entry.js +41 -0
  5. package/dist/cjs/spw-block-content.cjs.entry.js +37 -0
  6. package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +1 -1
  7. package/dist/cjs/spw-breadcrumb.cjs.entry.js +2 -2
  8. package/dist/cjs/spw-button_2.cjs.entry.js +2 -2
  9. package/dist/cjs/spw-card-content.cjs.entry.js +1 -1
  10. package/dist/cjs/spw-card-excerpt.cjs.entry.js +1 -1
  11. package/dist/cjs/spw-card-image.cjs.entry.js +1 -1
  12. package/dist/cjs/spw-card-subtag-item.cjs.entry.js +1 -1
  13. package/dist/cjs/spw-card-subtags.cjs.entry.js +1 -1
  14. package/dist/cjs/spw-card-title.cjs.entry.js +1 -1
  15. package/dist/cjs/spw-card.cjs.entry.js +1 -1
  16. package/dist/cjs/spw-checkbox.cjs.entry.js +1 -1
  17. package/dist/cjs/spw-custom-select.cjs.entry.js +25 -7
  18. package/dist/cjs/spw-date-picker.cjs.entry.js +37 -4
  19. package/dist/cjs/spw-dropdown-container.cjs.entry.js +1 -1
  20. package/dist/cjs/spw-dropdown-item.cjs.entry.js +1 -1
  21. package/dist/cjs/spw-dropdown.cjs.entry.js +5 -1
  22. package/dist/cjs/spw-field-label_7.cjs.entry.js +7 -7
  23. package/dist/cjs/spw-field-message.cjs.entry.js +1 -1
  24. package/dist/cjs/spw-file-upload.cjs.entry.js +2 -2
  25. package/dist/cjs/spw-footer-bottom.cjs.entry.js +2 -2
  26. package/dist/cjs/spw-footer-content-col.cjs.entry.js +2 -2
  27. package/dist/cjs/spw-footer-content.cjs.entry.js +2 -2
  28. package/dist/cjs/spw-footer-link.cjs.entry.js +1 -1
  29. package/dist/cjs/spw-footer.cjs.entry.js +1 -1
  30. package/dist/cjs/spw-grid-item.cjs.entry.js +2 -2
  31. package/dist/cjs/spw-grid.cjs.entry.js +2 -2
  32. package/dist/cjs/spw-header-lang.cjs.entry.js +1 -1
  33. package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +21 -2
  34. package/dist/cjs/spw-header-navigation-item.cjs.entry.js +2 -2
  35. package/dist/cjs/spw-header-navigation.cjs.entry.js +1 -1
  36. package/dist/cjs/spw-header-persona-item.cjs.entry.js +1 -1
  37. package/dist/cjs/spw-header-persona.cjs.entry.js +1 -1
  38. package/dist/cjs/spw-header.cjs.entry.js +1 -1
  39. package/dist/cjs/spw-hero.cjs.entry.js +6 -2
  40. package/dist/cjs/spw-input-slider.cjs.entry.js +1 -1
  41. package/dist/cjs/spw-list-description.cjs.entry.js +1 -1
  42. package/dist/cjs/spw-list-item.cjs.entry.js +1 -1
  43. package/dist/cjs/spw-list-title.cjs.entry.js +1 -1
  44. package/dist/cjs/spw-list.cjs.entry.js +1 -1
  45. package/dist/cjs/spw-message.cjs.entry.js +14 -3
  46. package/dist/cjs/spw-modal.cjs.entry.js +1 -1
  47. package/dist/cjs/spw-mosaic-item.cjs.entry.js +1 -1
  48. package/dist/cjs/spw-mosaic.cjs.entry.js +1 -1
  49. package/dist/cjs/spw-pagination.cjs.entry.js +6 -6
  50. package/dist/cjs/spw-radio.cjs.entry.js +1 -1
  51. package/dist/cjs/spw-scrolltop.cjs.entry.js +88 -0
  52. package/dist/cjs/spw-search-field.cjs.entry.js +2 -2
  53. package/dist/cjs/spw-select.cjs.entry.js +1 -1
  54. package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +1 -1
  55. package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +3 -3
  56. package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +1 -1
  57. package/dist/cjs/spw-sidebar.cjs.entry.js +2 -2
  58. package/dist/cjs/spw-skeleton.cjs.entry.js +1 -1
  59. package/dist/cjs/spw-slider-item.cjs.entry.js +1 -1
  60. package/dist/cjs/spw-slider.cjs.entry.js +15 -2
  61. package/dist/cjs/spw-socials.cjs.entry.js +1 -1
  62. package/dist/cjs/spw-stencil-library.cjs.js +1 -1
  63. package/dist/cjs/spw-table-body.cjs.entry.js +1 -1
  64. package/dist/cjs/spw-table-cell.cjs.entry.js +1 -1
  65. package/dist/cjs/spw-table-container.cjs.entry.js +1 -1
  66. package/dist/cjs/spw-table-footer.cjs.entry.js +1 -1
  67. package/dist/cjs/spw-table-head.cjs.entry.js +1 -1
  68. package/dist/cjs/spw-table-header.cjs.entry.js +2 -2
  69. package/dist/cjs/spw-table-row.cjs.entry.js +1 -1
  70. package/dist/cjs/spw-table-sidebar.cjs.entry.js +1 -1
  71. package/dist/cjs/spw-table.cjs.entry.js +2 -2
  72. package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +1 -1
  73. package/dist/cjs/spw-tabs-navigation.cjs.entry.js +9 -5
  74. package/dist/cjs/spw-tabs.cjs.entry.js +1 -1
  75. package/dist/cjs/spw-tag.cjs.entry.js +2 -2
  76. package/dist/cjs/spw-text-field.cjs.entry.js +8 -5
  77. package/dist/cjs/spw-textarea.cjs.entry.js +1 -1
  78. package/dist/cjs/spw-tile-description.cjs.entry.js +1 -1
  79. package/dist/cjs/spw-tile-title.cjs.entry.js +1 -1
  80. package/dist/cjs/spw-tile.cjs.entry.js +1 -1
  81. package/dist/cjs/spw-timeline-item.cjs.entry.js +2 -2
  82. package/dist/cjs/spw-timeline.cjs.entry.js +2 -2
  83. package/dist/cjs/spw-toc-container.cjs.entry.js +1 -1
  84. package/dist/cjs/spw-toc.cjs.entry.js +1 -1
  85. package/dist/cjs/spw-topbar.cjs.entry.js +1 -1
  86. package/dist/cjs/spw-wizard-item.cjs.entry.js +1 -1
  87. package/dist/cjs/spw-wizard.cjs.entry.js +1 -1
  88. package/dist/collection/collection-manifest.json +3 -0
  89. package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.js +1 -1
  90. package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.js +1 -1
  91. package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.js +1 -1
  92. package/dist/collection/components/spw-accordion/spw-accordion.js +1 -1
  93. package/dist/collection/components/spw-avatar/spw-avatar.css +468 -0
  94. package/dist/collection/components/spw-avatar/spw-avatar.js +164 -0
  95. package/dist/collection/components/spw-block-content/spw-block-content.css +492 -0
  96. package/dist/collection/components/spw-block-content/spw-block-content.js +141 -0
  97. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.js +1 -1
  98. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.css +7 -7
  99. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.js +1 -1
  100. package/dist/collection/components/spw-button/spw-button.js +1 -1
  101. package/dist/collection/components/spw-card/spw-card-content/spw-card-content.js +1 -1
  102. package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.js +1 -1
  103. package/dist/collection/components/spw-card/spw-card-image/spw-card-image.js +1 -1
  104. package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.js +1 -1
  105. package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.js +1 -1
  106. package/dist/collection/components/spw-card/spw-card-title/spw-card-title.js +1 -1
  107. package/dist/collection/components/spw-card/spw-card.js +1 -1
  108. package/dist/collection/components/spw-checkbox/spw-checkbox.js +1 -1
  109. package/dist/collection/components/spw-custom-select/spw-custom-select.css +49 -8
  110. package/dist/collection/components/spw-custom-select/spw-custom-select.js +64 -6
  111. package/dist/collection/components/spw-date-picker/spw-date-picker.css +1 -1
  112. package/dist/collection/components/spw-date-picker/spw-date-picker.js +42 -7
  113. package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.js +1 -1
  114. package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.js +1 -1
  115. package/dist/collection/components/spw-dropdown/spw-dropdown.js +36 -1
  116. package/dist/collection/components/spw-field-label/spw-field-label.js +1 -1
  117. package/dist/collection/components/spw-field-message/spw-field-message.js +1 -1
  118. package/dist/collection/components/spw-file-upload/spw-file-upload.js +2 -2
  119. package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.css +3 -3
  120. package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.js +1 -1
  121. package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.css +6 -6
  122. package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.js +1 -1
  123. package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.css +3 -3
  124. package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.js +1 -1
  125. package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.js +1 -1
  126. package/dist/collection/components/spw-footer/spw-footer.js +1 -1
  127. package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.js +2 -2
  128. package/dist/collection/components/spw-grid/spw-grid.js +2 -2
  129. package/dist/collection/components/spw-group/spw-group.js +1 -1
  130. package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +1 -1
  131. package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +1 -1
  132. package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.css +1 -1
  133. package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +22 -2
  134. package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.css +17 -17
  135. package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +1 -1
  136. package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +1 -1
  137. package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.js +1 -1
  138. package/dist/collection/components/spw-header/spw-header.js +1 -1
  139. package/dist/collection/components/spw-hero/spw-hero.js +45 -2
  140. package/dist/collection/components/spw-icon/spw-icon.js +1 -1
  141. package/dist/collection/components/spw-input-slider/spw-input-slider.js +1 -1
  142. package/dist/collection/components/spw-link/spw-link.js +1 -1
  143. package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
  144. package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +1 -1
  145. package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
  146. package/dist/collection/components/spw-list/spw-list.js +1 -1
  147. package/dist/collection/components/spw-loading/spw-loading.js +1 -1
  148. package/dist/collection/components/spw-message/spw-message.css +29 -2
  149. package/dist/collection/components/spw-message/spw-message.js +33 -2
  150. package/dist/collection/components/spw-message/utils.js +2 -1
  151. package/dist/collection/components/spw-modal/spw-modal.js +1 -1
  152. package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
  153. package/dist/collection/components/spw-mosaic/spw-mosaic.js +1 -1
  154. package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
  155. package/dist/collection/components/spw-radio/spw-radio.js +1 -1
  156. package/dist/collection/components/spw-scrolltop/spw-scrolltop.css +401 -0
  157. package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +180 -0
  158. package/dist/collection/components/spw-search-field/spw-search-field.js +2 -2
  159. package/dist/collection/components/spw-select/spw-select.js +1 -1
  160. package/dist/collection/components/spw-separator/spw-separator.js +1 -1
  161. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.js +1 -1
  162. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.js +3 -3
  163. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.js +1 -1
  164. package/dist/collection/components/spw-sidebar/spw-sidebar.css +1 -1
  165. package/dist/collection/components/spw-sidebar/spw-sidebar.js +1 -1
  166. package/dist/collection/components/spw-skeleton/spw-skeleton.js +1 -1
  167. package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.js +1 -1
  168. package/dist/collection/components/spw-slider/spw-slider.js +15 -2
  169. package/dist/collection/components/spw-socials/spw-socials.js +1 -1
  170. package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +1 -1
  171. package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
  172. package/dist/collection/components/spw-table/spw-table-container/spw-table-container.js +1 -1
  173. package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
  174. package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
  175. package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +2 -2
  176. package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +1 -1
  177. package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.js +1 -1
  178. package/dist/collection/components/spw-table/spw-table.js +2 -2
  179. package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.css +5 -0
  180. package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +30 -5
  181. package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js +1 -1
  182. package/dist/collection/components/spw-tabs/spw-tabs.js +1 -1
  183. package/dist/collection/components/spw-tag/spw-tag.css +1 -1
  184. package/dist/collection/components/spw-tag/spw-tag.js +1 -1
  185. package/dist/collection/components/spw-text-field/spw-text-field.css +2 -2
  186. package/dist/collection/components/spw-text-field/spw-text-field.js +27 -4
  187. package/dist/collection/components/spw-textarea/spw-textarea.js +1 -1
  188. package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
  189. package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
  190. package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
  191. package/dist/collection/components/spw-tile/spw-tile.js +1 -1
  192. package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.js +2 -2
  193. package/dist/collection/components/spw-timeline/spw-timeline.js +2 -2
  194. package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.js +1 -1
  195. package/dist/collection/components/spw-toc/spw-toc.js +1 -1
  196. package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
  197. package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
  198. package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
  199. package/dist/collection/components/spw-wizard/spw-wizard.js +1 -1
  200. package/dist/collection/stories/components/spw-avatar/spw-avatar.stories.js +156 -0
  201. package/dist/collection/stories/components/spw-scrolltop/spw-scrolltop.stories.js +123 -0
  202. package/dist/collection/stories/organisms/spw-block-content/spw-block-content.stories.js +192 -0
  203. package/dist/collection/stories/organisms/spw-message/spw-message.stories.js +56 -0
  204. package/dist/collection/stories/organisms/spw-tabs/spw-tabs.stories.js +63 -0
  205. package/dist/components/{p-B35CPhPA.js → p-7oLmQmmE.js} +1 -1
  206. package/dist/components/{p-Dho6BaN9.js → p-B1SCChor.js} +1 -1
  207. package/dist/components/{p-D7UzluXV.js → p-BqvDpR82.js} +1 -1
  208. package/dist/components/{p-Xvp0cPQF.js → p-C2um7CKN.js} +1 -1
  209. package/dist/components/{p-B4MjZRXh.js → p-C45GoR7l.js} +1 -1
  210. package/dist/components/{p-DUP3RzKn.js → p-CCYCLemd.js} +1 -1
  211. package/dist/components/{p-DU5JMjD4.js → p-CEq9lOD1.js} +1 -1
  212. package/dist/components/{p-CHBnJ4fw.js → p-CYC9FMY4.js} +1 -1
  213. package/dist/components/{p-BjsZMdr8.js → p-Cy-dX0dz.js} +1 -1
  214. package/dist/components/{p-Ctu7oZKH.js → p-D63saAXj.js} +1 -1
  215. package/dist/components/{p-OryNj86N.js → p-DVDmp5m3.js} +1 -1
  216. package/dist/components/{p-D6eYkgFG.js → p-DccxymX8.js} +1 -1
  217. package/dist/components/p-Df0o7KPW.js +1 -0
  218. package/dist/components/{p-DyYwiqCq.js → p-hlgutkqg.js} +1 -1
  219. package/dist/components/{p-Ce2AHwGh.js → p-xo2kVNYT.js} +1 -1
  220. package/dist/components/spw-accordion-content.js +1 -1
  221. package/dist/components/spw-accordion-item.js +1 -1
  222. package/dist/components/spw-accordion-title.js +1 -1
  223. package/dist/components/spw-accordion.js +1 -1
  224. package/dist/components/spw-avatar.d.ts +11 -0
  225. package/dist/components/spw-avatar.js +1 -0
  226. package/dist/components/spw-block-content.d.ts +11 -0
  227. package/dist/components/spw-block-content.js +1 -0
  228. package/dist/components/spw-breadcrumb-item.js +1 -1
  229. package/dist/components/spw-breadcrumb.js +1 -1
  230. package/dist/components/spw-button.js +1 -1
  231. package/dist/components/spw-card-content.js +1 -1
  232. package/dist/components/spw-card-excerpt.js +1 -1
  233. package/dist/components/spw-card-image.js +1 -1
  234. package/dist/components/spw-card-subtag-item.js +1 -1
  235. package/dist/components/spw-card-subtags.js +1 -1
  236. package/dist/components/spw-card-title.js +1 -1
  237. package/dist/components/spw-card.js +1 -1
  238. package/dist/components/spw-checkbox.js +1 -1
  239. package/dist/components/spw-cookies.js +1 -1
  240. package/dist/components/spw-custom-select.js +1 -1
  241. package/dist/components/spw-date-picker.js +1 -1
  242. package/dist/components/spw-dropdown-container.js +1 -1
  243. package/dist/components/spw-dropdown-item.js +1 -1
  244. package/dist/components/spw-dropdown.js +1 -1
  245. package/dist/components/spw-field-label.js +1 -1
  246. package/dist/components/spw-field-message.js +1 -1
  247. package/dist/components/spw-file-upload.js +1 -1
  248. package/dist/components/spw-footer-bottom.js +1 -1
  249. package/dist/components/spw-footer-content-col.js +1 -1
  250. package/dist/components/spw-footer-content.js +1 -1
  251. package/dist/components/spw-footer-link.js +1 -1
  252. package/dist/components/spw-footer.js +1 -1
  253. package/dist/components/spw-grid-item.js +1 -1
  254. package/dist/components/spw-grid.js +1 -1
  255. package/dist/components/spw-group.js +1 -1
  256. package/dist/components/spw-header-lang.js +1 -1
  257. package/dist/components/spw-header-navigation-dropdown.js +1 -1
  258. package/dist/components/spw-header-navigation-item.js +1 -1
  259. package/dist/components/spw-header-navigation.js +1 -1
  260. package/dist/components/spw-header-persona-item.js +1 -1
  261. package/dist/components/spw-header-persona.js +1 -1
  262. package/dist/components/spw-header.js +1 -1
  263. package/dist/components/spw-hero.js +1 -1
  264. package/dist/components/spw-icon.js +1 -1
  265. package/dist/components/spw-input-slider.js +1 -1
  266. package/dist/components/spw-link.js +1 -1
  267. package/dist/components/spw-list-description.js +1 -1
  268. package/dist/components/spw-list-item.js +1 -1
  269. package/dist/components/spw-list-title.js +1 -1
  270. package/dist/components/spw-list.js +1 -1
  271. package/dist/components/spw-loading.js +1 -1
  272. package/dist/components/spw-message.js +1 -1
  273. package/dist/components/spw-modal.js +1 -1
  274. package/dist/components/spw-mosaic-item.js +1 -1
  275. package/dist/components/spw-mosaic.js +4 -4
  276. package/dist/components/spw-pagination.js +1 -1
  277. package/dist/components/spw-radio.js +1 -1
  278. package/dist/components/spw-scrolltop.d.ts +11 -0
  279. package/dist/components/spw-scrolltop.js +1 -0
  280. package/dist/components/spw-search-field.js +1 -1
  281. package/dist/components/spw-select.js +1 -1
  282. package/dist/components/spw-separator.js +1 -1
  283. package/dist/components/spw-sidebar-navigation-dropdown.js +1 -1
  284. package/dist/components/spw-sidebar-navigation-item.js +1 -1
  285. package/dist/components/spw-sidebar-navigation-separator.js +1 -1
  286. package/dist/components/spw-sidebar.js +1 -1
  287. package/dist/components/spw-skeleton.js +1 -1
  288. package/dist/components/spw-slider-item.js +1 -1
  289. package/dist/components/spw-slider.js +1 -1
  290. package/dist/components/spw-socials.js +1 -1
  291. package/dist/components/spw-table-body.js +1 -1
  292. package/dist/components/spw-table-cell.js +1 -1
  293. package/dist/components/spw-table-container.js +1 -1
  294. package/dist/components/spw-table-footer.js +1 -1
  295. package/dist/components/spw-table-head.js +1 -1
  296. package/dist/components/spw-table-header.js +1 -1
  297. package/dist/components/spw-table-row.js +1 -1
  298. package/dist/components/spw-table-sidebar.js +1 -1
  299. package/dist/components/spw-table.js +1 -1
  300. package/dist/components/spw-tabs-navigation-item.js +1 -1
  301. package/dist/components/spw-tabs-navigation.js +1 -1
  302. package/dist/components/spw-tabs.js +1 -1
  303. package/dist/components/spw-tag.js +1 -1
  304. package/dist/components/spw-text-field.js +1 -1
  305. package/dist/components/spw-textarea.js +1 -1
  306. package/dist/components/spw-theme-provider.js +1 -1
  307. package/dist/components/spw-tile-description.js +1 -1
  308. package/dist/components/spw-tile-title.js +1 -1
  309. package/dist/components/spw-tile.js +1 -1
  310. package/dist/components/spw-timeline-item.js +1 -1
  311. package/dist/components/spw-timeline.js +1 -1
  312. package/dist/components/spw-toc-container.js +1 -1
  313. package/dist/components/spw-toc.js +1 -1
  314. package/dist/components/spw-tooltip.js +1 -1
  315. package/dist/components/spw-topbar.js +1 -1
  316. package/dist/components/spw-wizard-item.js +1 -1
  317. package/dist/components/spw-wizard.js +1 -1
  318. package/dist/components_json.json +751 -19
  319. package/dist/esm/index-DNZ0HWFd.js +12 -0
  320. package/dist/esm/loader.js +1 -1
  321. package/dist/esm/spw-accordion_4.entry.js +4 -4
  322. package/dist/esm/spw-avatar.entry.js +39 -0
  323. package/dist/esm/spw-block-content.entry.js +35 -0
  324. package/dist/esm/spw-breadcrumb-item.entry.js +1 -1
  325. package/dist/esm/spw-breadcrumb.entry.js +2 -2
  326. package/dist/esm/spw-button_2.entry.js +2 -2
  327. package/dist/esm/spw-card-content.entry.js +1 -1
  328. package/dist/esm/spw-card-excerpt.entry.js +1 -1
  329. package/dist/esm/spw-card-image.entry.js +1 -1
  330. package/dist/esm/spw-card-subtag-item.entry.js +1 -1
  331. package/dist/esm/spw-card-subtags.entry.js +1 -1
  332. package/dist/esm/spw-card-title.entry.js +1 -1
  333. package/dist/esm/spw-card.entry.js +1 -1
  334. package/dist/esm/spw-checkbox.entry.js +1 -1
  335. package/dist/esm/spw-custom-select.entry.js +25 -7
  336. package/dist/esm/spw-date-picker.entry.js +37 -4
  337. package/dist/esm/spw-dropdown-container.entry.js +1 -1
  338. package/dist/esm/spw-dropdown-item.entry.js +1 -1
  339. package/dist/esm/spw-dropdown.entry.js +6 -2
  340. package/dist/esm/spw-field-label_7.entry.js +7 -7
  341. package/dist/esm/spw-field-message.entry.js +1 -1
  342. package/dist/esm/spw-file-upload.entry.js +2 -2
  343. package/dist/esm/spw-footer-bottom.entry.js +2 -2
  344. package/dist/esm/spw-footer-content-col.entry.js +2 -2
  345. package/dist/esm/spw-footer-content.entry.js +2 -2
  346. package/dist/esm/spw-footer-link.entry.js +1 -1
  347. package/dist/esm/spw-footer.entry.js +1 -1
  348. package/dist/esm/spw-grid-item.entry.js +2 -2
  349. package/dist/esm/spw-grid.entry.js +2 -2
  350. package/dist/esm/spw-header-lang.entry.js +1 -1
  351. package/dist/esm/spw-header-navigation-dropdown.entry.js +21 -2
  352. package/dist/esm/spw-header-navigation-item.entry.js +2 -2
  353. package/dist/esm/spw-header-navigation.entry.js +1 -1
  354. package/dist/esm/spw-header-persona-item.entry.js +1 -1
  355. package/dist/esm/spw-header-persona.entry.js +1 -1
  356. package/dist/esm/spw-header.entry.js +1 -1
  357. package/dist/esm/spw-hero.entry.js +6 -2
  358. package/dist/esm/spw-input-slider.entry.js +1 -1
  359. package/dist/esm/spw-list-description.entry.js +1 -1
  360. package/dist/esm/spw-list-item.entry.js +1 -1
  361. package/dist/esm/spw-list-title.entry.js +1 -1
  362. package/dist/esm/spw-list.entry.js +1 -1
  363. package/dist/esm/spw-message.entry.js +14 -3
  364. package/dist/esm/spw-modal.entry.js +1 -1
  365. package/dist/esm/spw-mosaic-item.entry.js +1 -1
  366. package/dist/esm/spw-mosaic.entry.js +1 -1
  367. package/dist/esm/spw-pagination.entry.js +6 -6
  368. package/dist/esm/spw-radio.entry.js +1 -1
  369. package/dist/esm/spw-scrolltop.entry.js +86 -0
  370. package/dist/esm/spw-search-field.entry.js +2 -2
  371. package/dist/esm/spw-select.entry.js +1 -1
  372. package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +1 -1
  373. package/dist/esm/spw-sidebar-navigation-item.entry.js +3 -3
  374. package/dist/esm/spw-sidebar-navigation-separator.entry.js +1 -1
  375. package/dist/esm/spw-sidebar.entry.js +2 -2
  376. package/dist/esm/spw-skeleton.entry.js +1 -1
  377. package/dist/esm/spw-slider-item.entry.js +1 -1
  378. package/dist/esm/spw-slider.entry.js +15 -2
  379. package/dist/esm/spw-socials.entry.js +1 -1
  380. package/dist/esm/spw-stencil-library.js +1 -1
  381. package/dist/esm/spw-table-body.entry.js +1 -1
  382. package/dist/esm/spw-table-cell.entry.js +1 -1
  383. package/dist/esm/spw-table-container.entry.js +1 -1
  384. package/dist/esm/spw-table-footer.entry.js +1 -1
  385. package/dist/esm/spw-table-head.entry.js +1 -1
  386. package/dist/esm/spw-table-header.entry.js +2 -2
  387. package/dist/esm/spw-table-row.entry.js +1 -1
  388. package/dist/esm/spw-table-sidebar.entry.js +1 -1
  389. package/dist/esm/spw-table.entry.js +2 -2
  390. package/dist/esm/spw-tabs-navigation-item.entry.js +1 -1
  391. package/dist/esm/spw-tabs-navigation.entry.js +9 -5
  392. package/dist/esm/spw-tabs.entry.js +1 -1
  393. package/dist/esm/spw-tag.entry.js +2 -2
  394. package/dist/esm/spw-text-field.entry.js +8 -5
  395. package/dist/esm/spw-textarea.entry.js +1 -1
  396. package/dist/esm/spw-tile-description.entry.js +1 -1
  397. package/dist/esm/spw-tile-title.entry.js +1 -1
  398. package/dist/esm/spw-tile.entry.js +1 -1
  399. package/dist/esm/spw-timeline-item.entry.js +2 -2
  400. package/dist/esm/spw-timeline.entry.js +2 -2
  401. package/dist/esm/spw-toc-container.entry.js +1 -1
  402. package/dist/esm/spw-toc.entry.js +1 -1
  403. package/dist/esm/spw-topbar.entry.js +1 -1
  404. package/dist/esm/spw-wizard-item.entry.js +1 -1
  405. package/dist/esm/spw-wizard.entry.js +1 -1
  406. package/dist/spw-stencil-library/{p-145dfedc.entry.js → p-00829e69.entry.js} +1 -1
  407. package/dist/spw-stencil-library/p-08d179af.entry.js +1 -0
  408. package/dist/spw-stencil-library/{p-a3926a91.entry.js → p-0fe88118.entry.js} +1 -1
  409. package/dist/spw-stencil-library/{p-237b0e5d.entry.js → p-14a660ac.entry.js} +1 -1
  410. package/dist/spw-stencil-library/{p-8a1a24b5.entry.js → p-14d14ae2.entry.js} +1 -1
  411. package/dist/spw-stencil-library/{p-45e60a7a.entry.js → p-1a43879a.entry.js} +1 -1
  412. package/dist/spw-stencil-library/{p-41a373fc.entry.js → p-1ae9d66b.entry.js} +1 -1
  413. package/dist/spw-stencil-library/p-1c059cfd.entry.js +1 -0
  414. package/dist/spw-stencil-library/{p-9a43513e.entry.js → p-1ca7aecb.entry.js} +1 -1
  415. package/dist/spw-stencil-library/{p-08c93dce.entry.js → p-1fad50b0.entry.js} +1 -1
  416. package/dist/spw-stencil-library/{p-f54465cb.entry.js → p-22b043dd.entry.js} +1 -1
  417. package/dist/spw-stencil-library/{p-af3e6cb1.entry.js → p-29cc06e9.entry.js} +1 -1
  418. package/dist/spw-stencil-library/{p-b9b0b419.entry.js → p-31fc0d76.entry.js} +1 -1
  419. package/dist/spw-stencil-library/{p-4afb6e38.entry.js → p-327fa3e5.entry.js} +1 -1
  420. package/dist/spw-stencil-library/{p-f91ee5f4.entry.js → p-36e62f2f.entry.js} +1 -1
  421. package/dist/spw-stencil-library/{p-35d26ee3.entry.js → p-375f88d3.entry.js} +1 -1
  422. package/dist/spw-stencil-library/p-37ef1e77.entry.js +1 -0
  423. package/dist/spw-stencil-library/{p-0fd968e6.entry.js → p-3ba55fa6.entry.js} +1 -1
  424. package/dist/spw-stencil-library/{p-3fd7e236.entry.js → p-3dc88b13.entry.js} +1 -1
  425. package/dist/spw-stencil-library/{p-acf9c014.entry.js → p-3df6280e.entry.js} +1 -1
  426. package/dist/spw-stencil-library/{p-69a55f2d.entry.js → p-456c24b0.entry.js} +1 -1
  427. package/dist/spw-stencil-library/{p-43cf9b0f.entry.js → p-4618e516.entry.js} +1 -1
  428. package/dist/spw-stencil-library/{p-69a776aa.entry.js → p-461dbb77.entry.js} +1 -1
  429. package/dist/spw-stencil-library/{p-e9d97ee2.entry.js → p-4764e6e0.entry.js} +1 -1
  430. package/dist/spw-stencil-library/{p-f1fe388c.entry.js → p-4aa8f4bf.entry.js} +1 -1
  431. package/dist/spw-stencil-library/{p-7a58d649.entry.js → p-4d8d46e6.entry.js} +1 -1
  432. package/dist/spw-stencil-library/{p-ec0beb1d.entry.js → p-5e79839f.entry.js} +1 -1
  433. package/dist/spw-stencil-library/p-620519ea.entry.js +1 -0
  434. package/dist/spw-stencil-library/{p-72ce7302.entry.js → p-6510e984.entry.js} +1 -1
  435. package/dist/spw-stencil-library/{p-ce29d4c7.entry.js → p-69e1e8e1.entry.js} +1 -1
  436. package/dist/spw-stencil-library/{p-f8ea7419.entry.js → p-6b113e71.entry.js} +1 -1
  437. package/dist/spw-stencil-library/{p-4f8facb1.entry.js → p-724eee10.entry.js} +1 -1
  438. package/dist/spw-stencil-library/{p-5119feac.entry.js → p-73b2e94c.entry.js} +1 -1
  439. package/dist/spw-stencil-library/{p-209bbd33.entry.js → p-74014ca0.entry.js} +1 -1
  440. package/dist/spw-stencil-library/p-772f56c1.entry.js +1 -0
  441. package/dist/spw-stencil-library/{p-7be76eb7.entry.js → p-77e3a560.entry.js} +1 -1
  442. package/dist/spw-stencil-library/{p-3d27b754.entry.js → p-7ee48374.entry.js} +1 -1
  443. package/dist/spw-stencil-library/{p-b4d31c51.entry.js → p-87efcf90.entry.js} +1 -1
  444. package/dist/spw-stencil-library/{p-0c03d6ae.entry.js → p-8956e7de.entry.js} +1 -1
  445. package/dist/spw-stencil-library/p-89cefdcf.entry.js +1 -0
  446. package/dist/spw-stencil-library/{p-f5c6952a.entry.js → p-8a95adc5.entry.js} +1 -1
  447. package/dist/spw-stencil-library/{p-b162f257.entry.js → p-8ea775f1.entry.js} +1 -1
  448. package/dist/spw-stencil-library/{p-91c801d2.entry.js → p-8fea1c7b.entry.js} +1 -1
  449. package/dist/spw-stencil-library/{p-cb7cd2ea.entry.js → p-9156e2cc.entry.js} +1 -1
  450. package/dist/spw-stencil-library/{p-3c36b7e8.entry.js → p-9c35e7cb.entry.js} +1 -1
  451. package/dist/spw-stencil-library/{p-e8919632.entry.js → p-9c97f183.entry.js} +1 -1
  452. package/dist/spw-stencil-library/{p-5a32e95e.entry.js → p-a16a6ee3.entry.js} +1 -1
  453. package/dist/spw-stencil-library/{p-ab2b0b73.entry.js → p-a457bd16.entry.js} +1 -1
  454. package/dist/spw-stencil-library/{p-5feeb463.entry.js → p-a62e75d7.entry.js} +1 -1
  455. package/dist/spw-stencil-library/{p-f2a7d244.entry.js → p-a74b8c56.entry.js} +1 -1
  456. package/dist/spw-stencil-library/{p-eb873278.entry.js → p-aaa5636b.entry.js} +1 -1
  457. package/dist/spw-stencil-library/{p-2d9b278f.entry.js → p-ab9bd917.entry.js} +1 -1
  458. package/dist/spw-stencil-library/{p-81978a6f.entry.js → p-ac73da88.entry.js} +1 -1
  459. package/dist/spw-stencil-library/{p-43f249c5.entry.js → p-ae198f34.entry.js} +1 -1
  460. package/dist/spw-stencil-library/{p-1a34cb29.entry.js → p-b0028796.entry.js} +1 -1
  461. package/dist/spw-stencil-library/{p-02403cb6.entry.js → p-b0582aa7.entry.js} +1 -1
  462. package/dist/spw-stencil-library/{p-64611da7.entry.js → p-b1c1be45.entry.js} +1 -1
  463. package/dist/spw-stencil-library/{p-a447d67b.entry.js → p-bb4a0f1c.entry.js} +1 -1
  464. package/dist/spw-stencil-library/p-be0c6609.entry.js +1 -0
  465. package/dist/spw-stencil-library/p-bf656c7e.entry.js +1 -0
  466. package/dist/spw-stencil-library/{p-dfd101ac.entry.js → p-bf8f52ef.entry.js} +1 -1
  467. package/dist/spw-stencil-library/p-c1209aa5.entry.js +1 -0
  468. package/dist/spw-stencil-library/{p-1ee82890.entry.js → p-c7dcf793.entry.js} +1 -1
  469. package/dist/spw-stencil-library/{p-18cd905c.entry.js → p-cc679461.entry.js} +1 -1
  470. package/dist/spw-stencil-library/p-d5825b95.entry.js +1 -0
  471. package/dist/spw-stencil-library/{p-e8c8f285.entry.js → p-d5d2f9f8.entry.js} +1 -1
  472. package/dist/spw-stencil-library/{p-21952d13.entry.js → p-d7b03752.entry.js} +1 -1
  473. package/dist/spw-stencil-library/{p-bc22d1b9.entry.js → p-d94bc511.entry.js} +1 -1
  474. package/dist/spw-stencil-library/{p-e3d6c9c1.entry.js → p-dc886ffd.entry.js} +1 -1
  475. package/dist/spw-stencil-library/{p-7c0aad07.entry.js → p-dd4bd13d.entry.js} +1 -1
  476. package/dist/spw-stencil-library/{p-72e6a077.entry.js → p-dfa82fb0.entry.js} +1 -1
  477. package/dist/spw-stencil-library/p-e4ef4e0a.entry.js +1 -0
  478. package/dist/spw-stencil-library/{p-4f54c3cd.entry.js → p-e572bd8b.entry.js} +1 -1
  479. package/dist/spw-stencil-library/{p-4988c023.entry.js → p-e83f4dd9.entry.js} +1 -1
  480. package/dist/spw-stencil-library/p-ecfd8d0a.entry.js +1 -0
  481. package/dist/spw-stencil-library/{p-c627a4fc.entry.js → p-ed4c861f.entry.js} +1 -1
  482. package/dist/spw-stencil-library/{p-4c6ccf99.entry.js → p-edb98ec3.entry.js} +1 -1
  483. package/dist/spw-stencil-library/{p-edcd4cde.entry.js → p-ef0e431d.entry.js} +1 -1
  484. package/dist/spw-stencil-library/{p-44a867dd.entry.js → p-f36ac36b.entry.js} +1 -1
  485. package/dist/spw-stencil-library/{p-47b7bcd0.entry.js → p-f4c9fe35.entry.js} +1 -1
  486. package/dist/spw-stencil-library/p-f5f93df5.entry.js +1 -0
  487. package/dist/spw-stencil-library/{p-5602de22.entry.js → p-f958aabf.entry.js} +1 -1
  488. package/dist/spw-stencil-library/p-fa39b517.entry.js +1 -0
  489. package/dist/spw-stencil-library/{p-cdfb5724.entry.js → p-fba1aea3.entry.js} +1 -1
  490. package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
  491. package/dist/stats.json +2392 -575
  492. package/dist/types/components/spw-avatar/spw-avatar.d.ts +18 -0
  493. package/dist/types/components/spw-block-content/spw-block-content.d.ts +16 -0
  494. package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +5 -0
  495. package/dist/types/components/spw-date-picker/spw-date-picker.d.ts +4 -2
  496. package/dist/types/components/spw-dropdown/spw-dropdown.d.ts +5 -0
  497. package/dist/types/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.d.ts +2 -0
  498. package/dist/types/components/spw-hero/spw-hero.d.ts +4 -0
  499. package/dist/types/components/spw-message/spw-message.d.ts +5 -0
  500. package/dist/types/components/spw-scrolltop/spw-scrolltop.d.ts +22 -0
  501. package/dist/types/components/spw-slider/spw-slider.d.ts +1 -0
  502. package/dist/types/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.d.ts +3 -0
  503. package/dist/types/components/spw-text-field/spw-text-field.d.ts +2 -0
  504. package/dist/types/components.d.ts +300 -4
  505. package/dist/types/stories/components/spw-avatar/spw-avatar.stories.d.ts +9 -0
  506. package/dist/types/stories/components/spw-scrolltop/spw-scrolltop.stories.d.ts +6 -0
  507. package/dist/types/stories/organisms/spw-block-content/spw-block-content.stories.d.ts +8 -0
  508. package/dist/types/stories/organisms/spw-message/spw-message.stories.d.ts +2 -0
  509. package/dist/types/stories/organisms/spw-tabs/spw-tabs.stories.d.ts +1 -0
  510. package/hydrate/index.js +455 -139
  511. package/hydrate/index.mjs +455 -139
  512. package/package.json +1 -1
  513. package/dist/components/p-CictYFdo.js +0 -1
  514. package/dist/spw-stencil-library/p-0498fe6a.entry.js +0 -1
  515. package/dist/spw-stencil-library/p-18b34dde.entry.js +0 -1
  516. package/dist/spw-stencil-library/p-1d54bbe5.entry.js +0 -1
  517. package/dist/spw-stencil-library/p-8d71666a.entry.js +0 -1
  518. package/dist/spw-stencil-library/p-a2d18047.entry.js +0 -1
  519. package/dist/spw-stencil-library/p-bb1a5089.entry.js +0 -1
  520. package/dist/spw-stencil-library/p-c2a97189.entry.js +0 -1
  521. package/dist/spw-stencil-library/p-c4e2378d.entry.js +0 -1
  522. package/dist/spw-stencil-library/p-e0b746ed.entry.js +0 -1
  523. package/dist/spw-stencil-library/p-e739c5c9.entry.js +0 -1
  524. package/dist/spw-stencil-library/p-fe446522.entry.js +0 -1
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
2
2
  import { formatDate } from "../../../utils/utils";
3
3
  export class SpwCardContent {
4
4
  render() {
5
- return (h("div", { key: '659e7c16eb372abdabda6ca929b4a22189fe8b90', class: "spw-card-content" }, this.tag && h("span", { key: '201ab8b6bcb72fee3810e7d91d8c40bd03c98e0f', class: "spw-card-content__tag" }, this.tag), this.date && (h("time", { key: '83f2dabb7b74160735d0d52348c182234d69fe9b', "date-time": this.date, class: "spw-card-content__date" }, formatDate(this.date))), h("slot", { key: '23178f23d7955013a8c1c094dbc3c8347b85bb57' })));
5
+ return (h("div", { key: '2c2fcc3b2e3d78df09ea2d116ba7aa27572ff73e', class: "spw-card-content" }, this.tag && h("span", { key: '1d12fbb8b97c86ec445a129cfc011150e35b8da1', class: "spw-card-content__tag" }, this.tag), this.date && (h("time", { key: 'd6dc084becca10d787823b57db1bac4776524603', "date-time": this.date, class: "spw-card-content__date" }, formatDate(this.date))), h("slot", { key: 'd2e5d24d49ad9e51e443792ebfe876f7c56a2731' })));
6
6
  }
7
7
  static get is() { return "spw-card-content"; }
8
8
  static get encapsulation() { return "shadow"; }
@@ -13,7 +13,7 @@ export class SpwCardExcerpt {
13
13
  };
14
14
  }
15
15
  render() {
16
- return (h(Host, { key: '3ce6bd5152fdf097f241ba361d3f7823eae93845' }, h("div", { key: '2c93ecd7d1ab68daac8404fe57eb1c50c452d914', class: this.elementClass }, h("slot", { key: 'e92c70a8e76754d3843091bc32369c2ef8b4e05f' }))));
16
+ return (h(Host, { key: '6c429d9b3db9b3e04b84742f950d4b9885a014c7' }, h("div", { key: 'adbceaf382d03493c1aae9362607d08a2ef2062c', class: this.elementClass }, h("slot", { key: '686487cd3cbbef5883fe8d5fc3b0b3846cd155d2' }))));
17
17
  }
18
18
  static get is() { return "spw-card-excerpt"; }
19
19
  static get encapsulation() { return "shadow"; }
@@ -44,7 +44,7 @@ export class SpwCardImage {
44
44
  if (this.ratioDesktop) {
45
45
  style['--spw-card-image-ratio-desktop'] = this.ratioDesktop;
46
46
  }
47
- return (h("div", { key: 'e4d45657e976103bdd67405febb94ff533ca2074', class: this.elementClass, style: style }, this.label && h("span", { key: '58b6dc5996fab34308abf15de2f230bf60e037e9', class: "spw-card-image__label" }, this.label), h("slot", { key: 'd54fc4978046124e6ded97a7972c4c5b14b308fe' }), h("div", { key: '83162eabecde03729482a0c6b80e49b830c78482', class: "spw-card-image__icon" }, h("spw-icon", { key: '18bb59635032c99ed53170e651acb0032e529e93', icon: "fa-plus" }))));
47
+ return (h("div", { key: '99a420e6d6504a680e042962bef1515fd69e3478', class: this.elementClass, style: style }, this.label && h("span", { key: '987cf7aa45cca97688e1ab1875f6ad2f18cca83c', class: "spw-card-image__label" }, this.label), h("slot", { key: '9fa9212f1177b61ea60b2fbadb3bafdc044a97b5' }), h("div", { key: '9e2c8cc0e80f22fd0691c6ab651a2b56cedacde9', class: "spw-card-image__icon" }, h("spw-icon", { key: 'a33dc1ba20503731a718f652097a056f9059f07c', icon: "fa-plus" }))));
48
48
  }
49
49
  static get is() { return "spw-card-image"; }
50
50
  static get encapsulation() { return "shadow"; }
@@ -12,7 +12,7 @@ export class SpwCardSubtagItem {
12
12
  };
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: 'e96d5dafe20d14f18b0add74ea5641b3666057a5' }, h("span", { key: '9fcd5530d7d36dec9f2f4edba969a95acc5f0143', class: this.elementClass, onClick: () => this.handleClick() }, h("slot", { key: '74a4fb7f092805c989af5ebbeede916573574043' }))));
15
+ return (h(Host, { key: '9af637b294bc0fa88b1114846e378be0052e8710' }, h("span", { key: 'aca8582fe5aa57a98c377a9d72842dcd025b4e05', class: this.elementClass, onClick: () => this.handleClick() }, h("slot", { key: '1de78f781b517956870720a4e414a07c414ac6db' }))));
16
16
  }
17
17
  static get is() { return "spw-card-subtag-item"; }
18
18
  static get encapsulation() { return "shadow"; }
@@ -26,7 +26,7 @@ export class SpwCardSubtags {
26
26
  };
27
27
  }
28
28
  render() {
29
- return (h(Host, { key: '664ee2fcec65eb94517e2dd3f23bae61ec574b99' }, h("div", { key: 'e49c2d907cedd73a08651fb65a816e3b40e9edf0', class: this.elementClass }, h("slot", { key: '5807f5671b7351eac2f399581bb35baf624e0db9' }))));
29
+ return (h(Host, { key: '6acdf44537f3fe253a660c42bcd49747c174b259' }, h("div", { key: 'cbd71216edf3195d757859cc4b8813aca0fb4634', class: this.elementClass }, h("slot", { key: '7ab3d0c3bd911f659eaab8577a9ef27a5263be7e' }))));
30
30
  }
31
31
  static get is() { return "spw-card-subtags"; }
32
32
  static get originalStyleUrls() {
@@ -5,7 +5,7 @@ export class SpwCardTitle {
5
5
  this.borderColor = '';
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: '7b07a8041f2487ebdb8e1318989cb8dcf937fbd7', style: { '--spw-card-title-border-color': this.borderColor } }, h("h3", { key: '2361bf21437a9ab6dd815cd3455b69b535496fdb', class: "spw-card-title" }, h("span", { key: '71f90f818d9b1e5b4197f19e3b74335b72923f24', class: "spw-card-title__text" }, h("slot", { key: 'e72130ff761b029e91ef605c74432a9b090e12fb' })))));
8
+ return (h(Host, { key: 'ed14489eda79f574bb4464af65eaaa1504eb8ccd', style: { '--spw-card-title-border-color': this.borderColor } }, h("h3", { key: '47e51dddf149cbd95512495f5813148fa9f53cba', class: "spw-card-title" }, h("span", { key: '4d47a9766c2a209a4095fb7d472b40f1c1eae80f', class: "spw-card-title__text" }, h("slot", { key: 'a35dfd22138be0fbd403ee908e20e7c542659f98' })))));
9
9
  }
10
10
  static get is() { return "spw-card-title"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -120,7 +120,7 @@ export class SpwCard {
120
120
  'aria-label': this === null || this === void 0 ? void 0 : this.accAriaLabel,
121
121
  'aria-disabled': this.disabled ? 'true' : null,
122
122
  };
123
- return (h(Host, { key: '1f0f6b29c31aa045351634067ab593b11ab20a77', class: { '--is-full-height': this.fullHeight } }, h("article", { key: 'abd117a054dc991f74db62ac0af55d45602cf656', class: this.elementClass }, variant === 'event' && (h(TagType, Object.assign({ key: '2acc816999271e75e76e4b9dd35217b67636d9c5' }, attrs, { class: "spw-card__dates" }), dateStart && h("div", { key: '895dd6639551a59749ae92b8c54d1acd47ce0d95', class: "spw-card__date-item" }, this.formatDate(dateStart)), dateEnd && h("div", { key: 'c5be06349fc473ff0096c88d592442cb3799a7f4', class: "spw-card__date-item" }, this.formatDate(dateEnd)))), h(TagType, Object.assign({ key: '46364754b07bd3904338571e651efb95025c9f59' }, attrs, ariaAttributes, { class: "spw-card__link" }), h("slot", { key: 'df4b298a2db8f764923600dabe9439fe33ca9217' })))));
123
+ return (h(Host, { key: 'a40ca4684fd0b73eabdba58b4d59dbd18b2676a3', class: { '--is-full-height': this.fullHeight } }, h("article", { key: '3b9b6460c69201c27e416c1dbadd5686e3a01bfc', class: this.elementClass }, variant === 'event' && (h(TagType, Object.assign({ key: 'fc00c807b2500988de46bc84b9f74b8b0e4d49a4' }, attrs, { class: "spw-card__dates" }), dateStart && h("div", { key: '6fca1dbdc58b345ca8683fc9bdfed31a82241cee', class: "spw-card__date-item" }, this.formatDate(dateStart)), dateEnd && h("div", { key: '07c73a061e0cd2f223e67b36de0dd66d2c39e4d2', class: "spw-card__date-item" }, this.formatDate(dateEnd)))), h(TagType, Object.assign({ key: '67b8338341be65711bc605f3db233a954708666e' }, attrs, ariaAttributes, { class: "spw-card__link" }), h("slot", { key: 'ce06b59ae1a8c729c9831081e1a7b7adc5c5dc61' })))));
124
124
  }
125
125
  static get is() { return "spw-card"; }
126
126
  static get encapsulation() { return "shadow"; }
@@ -81,7 +81,7 @@ export class SpwCheckbox {
81
81
  render() {
82
82
  const slot = this.el.innerHTML;
83
83
  const hasSlot = Boolean(slot);
84
- return (h("div", { key: 'ce535188428a408a9f9d08c42975e7e764f3d2a1', class: "spw-checkbox" }, h("input", { key: 'b93941fddd412647334238e7ba3563dfcfe51866', type: "checkbox", ref: el => (this.inputElement = el), checked: this.internalChecked, onChange: this.handleCheckbox.bind(this), name: this.name, disabled: this.disabled, style: { display: 'none' } }), hasSlot && (h("label", { key: '742f94b4a30b75cf93ae95de94cd4ac8cd6a95c1', htmlFor: this.name, class: `spw-checkbox__label ${this.disabled ? 'spw-checkbox__label--disabled' : ''}`, onClick: e => this.handleCheckbox(e) }, h("slot", { key: '052f299aa4bdc0a9353e611bdb069d7f35bac107' }))), h("div", { key: '14f1d7e20e9727d0e46421d8ff8a8fd4ab846afa', tabindex: this.disabled ? -1 : 0, onClick: e => this.handleCheckbox(e), onKeyDown: this.handleKeydown.bind(this), role: "checkbox", "aria-checked": this.internalChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.accAriaLabel || this.name || 'Label', class: this.elementClass }, this.internalChecked && h("spw-icon", { key: 'c6d04c91720fee0c9f87f647f5077777dec77764', icon: this.icon }))));
84
+ return (h("div", { key: '99bf5a7027aaa9f09bc6a0e55bb60a7469848fc5', class: "spw-checkbox" }, h("input", { key: '712c81629b8a498d48befbb1571ce10dd52de89b', type: "checkbox", ref: el => (this.inputElement = el), checked: this.internalChecked, onChange: this.handleCheckbox.bind(this), name: this.name, disabled: this.disabled, style: { display: 'none' } }), hasSlot && (h("label", { key: '4b849e52cee771bd0c242842fb92a15f441ac1ec', htmlFor: this.name, class: `spw-checkbox__label ${this.disabled ? 'spw-checkbox__label--disabled' : ''}`, onClick: e => this.handleCheckbox(e) }, h("slot", { key: 'd766bae2995612c4b09aedf6337d6dd67447aba9' }))), h("div", { key: '0620b906667f2c7b40551129bcb63a48d88d552c', tabindex: this.disabled ? -1 : 0, onClick: e => this.handleCheckbox(e), onKeyDown: this.handleKeydown.bind(this), role: "checkbox", "aria-checked": this.internalChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.accAriaLabel || this.name || 'Label', class: this.elementClass }, this.internalChecked && h("spw-icon", { key: '1a4fb292ee263daa07bd7bf09599ca5ecae16840', icon: this.icon }))));
85
85
  }
86
86
  static get is() { return "spw-checkbox"; }
87
87
  static get encapsulation() { return "shadow"; }
@@ -446,6 +446,14 @@ template {
446
446
  flex: 1;
447
447
  padding-right: 30px;
448
448
  max-width: 100%;
449
+ overflow: hidden;
450
+ text-overflow: ellipsis;
451
+ }
452
+ .spw-custom-select__selected span {
453
+ white-space: nowrap;
454
+ }
455
+ .spw-custom-select--is-clear .spw-custom-select__selected {
456
+ padding-right: 58px;
449
457
  }
450
458
  .spw-custom-select__selected-item {
451
459
  display: inline-flex;
@@ -475,10 +483,34 @@ template {
475
483
  text-overflow: initial;
476
484
  text-wrap: initial;
477
485
  }
478
- .spw-custom-select__arrow {
486
+ .spw-custom-select__icons {
487
+ display: flex;
488
+ align-items: center;
479
489
  position: absolute;
490
+ top: 50%;
480
491
  right: 12px;
481
- top: 10px;
492
+ gap: 8px;
493
+ pointer-events: none;
494
+ transform: translateY(-50%);
495
+ z-index: 12;
496
+ }
497
+ .spw-custom-select--large .spw-custom-select__icons {
498
+ right: 24px;
499
+ }
500
+ .spw-custom-select__clear {
501
+ display: inline-flex;
502
+ align-items: center;
503
+ justify-content: center;
504
+ width: 20px;
505
+ height: 20px;
506
+ pointer-events: auto;
507
+ cursor: pointer;
508
+ padding: 2px;
509
+ border: 2px var(--spw-color-themes-grey-grey-900) solid;
510
+ border-radius: 50%;
511
+ font-size: 12px;
512
+ }
513
+ .spw-custom-select__arrow {
482
514
  font-size: 16px;
483
515
  color: var(--spw-color-themes-grey-grey-600);
484
516
  pointer-events: none;
@@ -497,10 +529,13 @@ template {
497
529
  .spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search {
498
530
  top: 100%;
499
531
  margin-top: -3px;
532
+ padding: 4px;
533
+ border: 1px solid var(--spw-color-themes-grey-grey-800);
534
+ background: white;
500
535
  }
501
536
  .spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search {
502
537
  top: -100%;
503
- margin-top: 3px;
538
+ margin-top: -7px;
504
539
  }
505
540
  .spw-custom-select__search-input {
506
541
  padding: 0;
@@ -509,6 +544,11 @@ template {
509
544
  border: none;
510
545
  margin: 0;
511
546
  width: calc(100% - 30px);
547
+ }
548
+ .spw-custom-select--is-clear .spw-custom-select__search-input {
549
+ width: calc(100% - 58px);
550
+ }
551
+ .spw-custom-select__search-input {
512
552
  text-overflow: ellipsis;
513
553
  }
514
554
  .spw-custom-select__search-input:focus {
@@ -519,8 +559,9 @@ template {
519
559
  padding: 0 12px;
520
560
  }
521
561
  .spw-custom-select--is-opened.spw-custom-select--has-value .spw-custom-select__search-input {
522
- border-right: 1px solid var(--spw-color-themes-grey-grey-800);
562
+ border: 1px solid var(--spw-color-themes-grey-grey-800);
523
563
  width: 100%;
564
+ border-radius: 3px;
524
565
  }
525
566
  .spw-custom-select__options {
526
567
  background-color: #fff;
@@ -553,16 +594,16 @@ template {
553
594
  margin-top: -40px;
554
595
  }
555
596
  .spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed {
556
- margin-top: 35px;
597
+ margin-top: 44px;
557
598
  }
558
599
  .spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed {
559
- margin-top: -77px;
600
+ margin-top: -86px;
560
601
  }
561
602
  .spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed) {
562
- margin-top: 34px;
603
+ margin-top: 44px;
563
604
  }
564
605
  .spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed) {
565
- margin-top: -36px;
606
+ margin-top: -46px;
566
607
  }
567
608
  .spw-custom-select__no-results {
568
609
  padding: 12px;
@@ -48,6 +48,10 @@ export class SpwCustomSelect {
48
48
  this.tooltipCursor = 'help';
49
49
  /** Utilise un positionnement fixed pour le dropdown si nécessité de sortir du contexte (utile dans une modal avec overflow hidden) */
50
50
  this.fixedDropdown = false;
51
+ /** Indique si le champ peut être effacé avec un bouton */
52
+ this.isClear = false;
53
+ /** Direction d'ouverture du dropdown */
54
+ this.direction = 'auto';
51
55
  this.handleOtherSelectOpened = (event) => {
52
56
  if (event.detail.instance !== this.host && this.isOpen) {
53
57
  this.closeDropdown();
@@ -76,12 +80,21 @@ export class SpwCustomSelect {
76
80
  return;
77
81
  const rect = this.selectContainer.getBoundingClientRect();
78
82
  const viewportHeight = window.innerHeight;
79
- if (rect.bottom + 200 > viewportHeight && rect.top > 200) {
83
+ if (this.direction === 'top') {
80
84
  this.dropdownDirection = 'up';
81
85
  }
82
- else {
86
+ else if (this.direction === 'bottom') {
83
87
  this.dropdownDirection = 'down';
84
88
  }
89
+ else {
90
+ // auto
91
+ if (rect.bottom + 200 > viewportHeight && rect.top > 200) {
92
+ this.dropdownDirection = 'up';
93
+ }
94
+ else {
95
+ this.dropdownDirection = 'down';
96
+ }
97
+ }
85
98
  this.dropdownPosition = {
86
99
  top: rect.bottom,
87
100
  left: rect.left,
@@ -270,6 +283,10 @@ export class SpwCustomSelect {
270
283
  this.focusedOptionIndex = null;
271
284
  this.searchText = '';
272
285
  }
286
+ handleClear(event) {
287
+ event.stopPropagation();
288
+ this.resetSelect();
289
+ }
273
290
  selectOption(optionValue, event) {
274
291
  if (event) {
275
292
  event.stopPropagation();
@@ -383,6 +400,7 @@ export class SpwCustomSelect {
383
400
  'spw-custom-select--no-value': !this.hasSelectedValue,
384
401
  'spw-custom-select--is-searchable': this.isSearch,
385
402
  'spw-custom-select--not-searchable': !this.isSearch,
403
+ 'spw-custom-select--is-clear': this.isClear && (this.hasSelectedValue || !!this.searchText),
386
404
  };
387
405
  }
388
406
  normalizeString(str) {
@@ -437,11 +455,11 @@ export class SpwCustomSelect {
437
455
  render() {
438
456
  const filteredOptions = this.getFilteredOptions();
439
457
  const showPlaceholder = this.showPlaceholder();
440
- return (h("div", { key: '3c0bdcc75efdcf34c0315643aeddc3f9002854ae', class: this.elementClass, ref: el => (this.host = el) }, this.label && (h("spw-field-label", { key: 'a2c74f82793145576a3e5355b7bfcaf8daa58248', label: this.label, name: this.name, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: '6279adf0d5d98508c1f67eb18c9a80190a2bc939', class: "spw-custom-select__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '8dd3424a06bb24e258a14e9bdf50f78cbe7e8cad', class: "spw-custom-select__wrapper" }, h("div", { key: 'cb20a730c342f3a5ef9047d8271718251bb77799', class: "spw-custom-select__container", id: this.name, ref: el => (this.selectContainer = el), onClick: event => this.toggleDropdown(event), onKeyDown: event => this.handleKeyDown(event), tabindex: this.disabled ? -1 : 0 }, h("div", { key: '15d1a85d0c355d1265e1f1f57a78a1c27d8118e0', class: "spw-custom-select__selected" }, this.isSearchVisible() && (h("div", { key: '329785ae3726c0ad5a75c4068e3cc131b057564a', class: "spw-custom-select__search" }, h("input", { key: 'cb5b8955c16b49002888400ffb1b25c996b6da35', class: "spw-custom-select__search-input", placeholder: this.searchPlaceholder, onInput: event => this.handleSearchInput(event), value: this.searchText }))), showPlaceholder && h("span", { key: 'd04a28ee8d9c48ed3948ea38024f6758b19c2fca' }, this.placeholder), this.multiple && this.internalValue.length > 0 && (h("div", { key: '3e246c4809d60bac38d593923687b21735fd7ffb', class: "spw-custom-select__selected-items" }, this.internalValue.map(val => {
458
+ return (h("div", { key: '064c59c91692cc15ba93199a724553477bac7697', class: this.elementClass, ref: el => (this.host = el) }, this.label && (h("spw-field-label", { key: 'c326970b9d3da20f7ca2236500e98bddd9bf1ce4', label: this.label, name: this.name, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: '85103620cd282232f01fdbd467886490fd888991', class: "spw-custom-select__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '337d9a34f40c13f8fb491c73a137711d7cbcee6d', class: "spw-custom-select__wrapper" }, h("div", { key: '50566c5d50437a9d351ee44198d479f32a603158', class: "spw-custom-select__container", id: this.name, ref: el => (this.selectContainer = el), onClick: event => this.toggleDropdown(event), onKeyDown: event => this.handleKeyDown(event), tabindex: this.disabled ? -1 : 0 }, h("div", { key: '4f847641c06968e5d7be950bcdae69c988245755', class: "spw-custom-select__selected" }, this.isSearchVisible() && (h("div", { key: '5001191ddaed6c57f2f3242a374288ba1998e874', class: "spw-custom-select__search" }, h("input", { key: '5ab68945bdc9fd54365dcac92d27c20dad0f8061', class: "spw-custom-select__search-input", placeholder: this.searchPlaceholder, onInput: event => this.handleSearchInput(event), value: this.searchText }))), showPlaceholder && h("span", { key: '6edafe01385ba6d334532cc72029255a11cc83a5' }, this.placeholder), this.multiple && this.internalValue.length > 0 && (h("div", { key: '7c344bbc9beff7011fe4b25acd4d267ac7c37caa', class: "spw-custom-select__selected-items" }, this.internalValue.map(val => {
441
459
  var _a;
442
460
  return (h("span", { class: "spw-custom-select__selected-item" }, (_a = this.parsedOptions.find(option => String(option.value) === String(val))) === null || _a === void 0 ? void 0 :
443
461
  _a.label, h("spw-icon", { icon: "fa-times", class: "spw-custom-select__deselect-icon", onClick: event => this.selectOption(val, event) })));
444
- }))), !this.multiple && h("span", { key: 'e3563dcc1d7a0d624a289ded3ca6d070365fb265' }, this.getSelectedLabels()))), h("div", { key: '8973c6c9b6106798cc00daab1e649d7329f4a32c', class: "spw-custom-select__arrow" }, h("spw-icon", { key: '2c013ec6bdccff0f59ccbc7db1ab629e1eb1029f', icon: this.isOpen ? 'fa-chevron-up' : 'fa-chevron-down' })), this.isOpen && (h("div", { key: '0f77a182d16650137014adb896a5d9ee0da5df82', class: {
462
+ }))), !this.multiple && h("span", { key: 'ac06a9718592fde37f42c90d84700d74d0d50416' }, this.getSelectedLabels()))), h("div", { key: '4a083004a149ab7388a982fb5eff4e128bbb4913', class: "spw-custom-select__icons" }, this.isClear && (this.hasSelectedValue || !!this.searchText) && (h("span", { key: 'de239bf60b076f4e01a82c454f285c7bdf65c5df', class: "spw-custom-select__clear", onClick: (event) => this.handleClear(event) }, h("spw-icon", { key: '1dce3eb6f67567b559992645681d9796a1152ed3', icon: "fa-xmark" }))), h("div", { key: 'f4473657553e03512f3c3468ee4303e83fb4183e', class: "spw-custom-select__arrow" }, h("spw-icon", { key: 'f4ccf66ee935c4e169eca3fc4beebaa35c3adc1c', icon: this.isOpen ? 'fa-chevron-up' : 'fa-chevron-down' }))), this.isOpen && (h("div", { key: '4c5fc4853b083c4a1128fadb6f35e33a67b07428', class: {
445
463
  'spw-custom-select__options': true,
446
464
  [`spw-custom-select__options--${this.dropdownDirection}`]: true,
447
465
  'spw-custom-select__options--fixed': this.fixedDropdown,
@@ -452,14 +470,14 @@ export class SpwCustomSelect {
452
470
  left: `${this.dropdownPosition.left}px`,
453
471
  width: `${this.dropdownPosition.width}px`,
454
472
  }
455
- : {} }, !!filteredOptions.length && (h("ul", { key: '24708d6ae015ea9f65887ce87fd53687b7ea6ebb' }, filteredOptions.map((option, index) => (h("li", { class: {
473
+ : {} }, !!filteredOptions.length && (h("ul", { key: 'a652e4fd6b5741337eceb5dc6c5efbe0deb7d995' }, filteredOptions.map((option, index) => (h("li", { class: {
456
474
  'spw-custom-select__option': true,
457
475
  'spw-custom-select__option--selected': this.multiple
458
476
  ? this.internalValue.some(val => String(val) === String(option.value))
459
477
  : option.value === this.internalValue,
460
478
  'spw-custom-select__option--focused': index === this.focusedOptionIndex,
461
479
  'spw-custom-select__option--disabled': option.disabled,
462
- }, onClick: () => this.selectOption(option.value) }, this.multiple && (h("spw-checkbox", { onKeyDown: event => this.handleOptionKeyDown(event, option.value), class: "spw-custom-select__checkbox", checked: this.internalValue.some(val => String(val) === String(option.value)), disabled: option.disabled })), option.label))))), !filteredOptions.length && h("p", { key: '329bf21e220fc97e90e0edb085a10fda539f79cf', class: "spw-custom-select__no-results" }, this.noResultsText)))), this.renderErrorMessage(), this.renderHintMessage(), this.renderSuccessMessage(), this.renderWarningMessage()));
480
+ }, onClick: () => this.selectOption(option.value) }, this.multiple && (h("spw-checkbox", { onKeyDown: event => this.handleOptionKeyDown(event, option.value), class: "spw-custom-select__checkbox", checked: this.internalValue.some(val => String(val) === String(option.value)), disabled: option.disabled })), option.label))))), !filteredOptions.length && h("p", { key: '0d786046f4f8b3c6a9a43f5c2199758feb63a305', class: "spw-custom-select__no-results" }, this.noResultsText)))), this.renderErrorMessage(), this.renderHintMessage(), this.renderSuccessMessage(), this.renderWarningMessage()));
463
481
  }
464
482
  static get is() { return "spw-custom-select"; }
465
483
  static get encapsulation() { return "shadow"; }
@@ -1012,6 +1030,46 @@ export class SpwCustomSelect {
1012
1030
  "reflect": false,
1013
1031
  "attribute": "fixed-dropdown",
1014
1032
  "defaultValue": "false"
1033
+ },
1034
+ "isClear": {
1035
+ "type": "boolean",
1036
+ "mutable": false,
1037
+ "complexType": {
1038
+ "original": "boolean",
1039
+ "resolved": "boolean",
1040
+ "references": {}
1041
+ },
1042
+ "required": false,
1043
+ "optional": true,
1044
+ "docs": {
1045
+ "tags": [],
1046
+ "text": "Indique si le champ peut \u00EAtre effac\u00E9 avec un bouton"
1047
+ },
1048
+ "getter": false,
1049
+ "setter": false,
1050
+ "reflect": false,
1051
+ "attribute": "is-clear",
1052
+ "defaultValue": "false"
1053
+ },
1054
+ "direction": {
1055
+ "type": "string",
1056
+ "mutable": false,
1057
+ "complexType": {
1058
+ "original": "'top' | 'bottom' | 'auto'",
1059
+ "resolved": "\"auto\" | \"bottom\" | \"top\"",
1060
+ "references": {}
1061
+ },
1062
+ "required": false,
1063
+ "optional": true,
1064
+ "docs": {
1065
+ "tags": [],
1066
+ "text": "Direction d'ouverture du dropdown"
1067
+ },
1068
+ "getter": false,
1069
+ "setter": false,
1070
+ "reflect": false,
1071
+ "attribute": "direction",
1072
+ "defaultValue": "'auto'"
1015
1073
  }
1016
1074
  };
1017
1075
  }
@@ -493,8 +493,8 @@ template {
493
493
  color: var(--spw-color-themes-grey-grey-500);
494
494
  }
495
495
  .spw-date-picker__icon--calendar {
496
- pointer-events: none;
497
496
  font-size: 16px;
497
+ cursor: pointer;
498
498
  color: var(--spw-color-text-secondary, #6b7280);
499
499
  }
500
500
  .spw-date-picker__icon--clear {
@@ -12,7 +12,7 @@ export class SpwDatePicker {
12
12
  this.dateFormat = 'dd/MM/yyyy';
13
13
  /** Jours de la semaine désactivés (0=dimanche, 1=lundi, etc.) */
14
14
  this.disabledDays = [];
15
- /** Dates spécifiques désactivées (format ISO) */
15
+ /** Dates spécifiques désactivées (format ISO, ex: ["2026-01-01", "2026-12-25"]) */
16
16
  this.disabledDates = [];
17
17
  /** Position du datepicker */
18
18
  this.position = 'bl';
@@ -134,6 +134,24 @@ export class SpwDatePicker {
134
134
  this.handleClear = () => {
135
135
  this.resetInput();
136
136
  };
137
+ this.handleCalendarIconClick = (ev) => {
138
+ var _a, _b;
139
+ ev.stopPropagation();
140
+ if (this.disabled)
141
+ return;
142
+ if (this.isOpen) {
143
+ (_a = this.datepickerInstance) === null || _a === void 0 ? void 0 : _a.hide();
144
+ }
145
+ else {
146
+ if (!this.datepickerInstance) {
147
+ this.initializeDatepicker();
148
+ }
149
+ (_b = this.datepickerInstance) === null || _b === void 0 ? void 0 : _b.show();
150
+ }
151
+ };
152
+ this.handleCalendarIconMouseDown = (ev) => {
153
+ ev.preventDefault();
154
+ };
137
155
  this.handleKeyDown = (ev) => {
138
156
  const target = ev.target;
139
157
  const isInputFocused = target === this.inputElement;
@@ -209,6 +227,20 @@ export class SpwDatePicker {
209
227
  this.disabledDays = [];
210
228
  }
211
229
  }
230
+ if (typeof this.disabledDates === 'string') {
231
+ try {
232
+ const parsed = JSON.parse(this.disabledDates);
233
+ if (Array.isArray(parsed) && parsed.every(val => typeof val === 'string')) {
234
+ this.disabledDates = parsed;
235
+ }
236
+ else {
237
+ this.disabledDates = [];
238
+ }
239
+ }
240
+ catch (_b) {
241
+ this.disabledDates = [];
242
+ }
243
+ }
212
244
  const start = this.value ? this.formatDate(new Date(this.value)) : '';
213
245
  this.internalValue = start;
214
246
  this.lastInputValue = this.internalValue;
@@ -615,7 +647,8 @@ export class SpwDatePicker {
615
647
  if (disabledDays.includes(date.getDay()))
616
648
  return true;
617
649
  const dateStr = date.toISOString().split('T')[0];
618
- return this.disabledDates.includes(dateStr);
650
+ const disabledDates = this.disabledDates;
651
+ return disabledDates.includes(dateStr);
619
652
  },
620
653
  onSelect: (selectedDateOrInstance) => {
621
654
  const selectedDate = selectedDateOrInstance instanceof Date ? selectedDateOrInstance : selectedDateOrInstance === null || selectedDateOrInstance === void 0 ? void 0 : selectedDateOrInstance.dateSelected;
@@ -757,7 +790,7 @@ export class SpwDatePicker {
757
790
  'spw-date-picker--is-clear': this.isClearIconVisible,
758
791
  };
759
792
  const errorMessage = this.error || this.internalError;
760
- return (h(Host, { key: '503da6a7f48f41929ebddb4c8b66486c9b785e78' }, h("div", { key: '7ad729d90a3dd0348a6a58b9cfdd1627bd224a6b', class: containerClass }, this.label && (h("spw-field-label", { key: '868476a029336f48fc8f134992276e444692cc54', label: this.label, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: 'f06ed76d523873a3628d28c8083c1a52d6d518b7', class: "spw-date-picker__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '323e82bd4d724cc60471ff3669bdf97614a718fd', class: "spw-date-picker__input-container" }, h("input", { key: 'f483a32dbdabf38dbc03c4d038dd023746459fa8', ref: el => (this.inputElement = el), id: this.uniqueId, type: "text", class: inputClass, value: this.internalValue, placeholder: this.placeholder, disabled: this.disabled, required: this.required, onFocus: this.handleInputFocus, onInput: this.handleInputChange, onKeyDown: this.handleKeyDown, "aria-label": this.accAriaLabel || this.label || this.name, "aria-describedby": this.assistiveText || errorMessage ? `${this.uniqueId}-help ${this.uniqueId}-error` : undefined, "aria-invalid": this.hasError }), h("div", { key: 'f942188c43e0e927850d0c94757fa344b6595d02', class: "spw-date-picker__icons" }, this.isClearIconVisible && (h("span", { key: '4ef6e052f8c95dba2484f60845b94f9783d263ae', class: "spw-date-picker__clear", onClick: this.handleClear }, h("spw-icon", { key: '2f75e0ad4b966de9751fa6b3989df3292dbf01c5', class: "spw-date-picker__icon spw-date-picker__icon--clear", icon: "fa-xmark" }))), h("spw-icon", { key: 'cc9d0d66e9b7bc3d4f1a952a9d956bbd63720977', icon: "fa-calendar", class: "spw-date-picker__icon spw-date-picker__icon--calendar" }))), this.error && (h("spw-field-message", { key: '95917a665e75ef3816ec4a8e6248dfd93df81341', variant: "error", showIcon: this.showErrorIcon }, this.error)), this.hint && (h("spw-field-message", { key: 'a44899149cc889dda1388394d4601b0bd9ac6b39', variant: "hint", showIcon: this.showHintIcon }, this.hint)), this.success && (h("spw-field-message", { key: '83519ce1b0d604a8f69fe95349b81c41974107e4', variant: "success", showIcon: this.showSuccessIcon }, this.success)), this.warning && (h("spw-field-message", { key: 'b33097d07b1b2a276a45e5d73097e1a372b0f5da', variant: "warning", showIcon: this.showWarningIcon }, this.warning)))));
793
+ return (h(Host, { key: '70bc9908337a34fce7a364e15343231c7cddfb3e' }, h("div", { key: '22eebe0dd218243c5b64e07039816788c5fe4366', class: containerClass }, this.label && (h("spw-field-label", { key: 'b05bbd092cc3e170f5d4111b9cb9fc5791066109', label: this.label, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: 'a3a9cb74cb09f307472a7a41beb8937d095a3477', class: "spw-date-picker__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: 'b31e2486767d521c3a9b6d1b7462af85fdbd2e60', class: "spw-date-picker__input-container" }, h("input", { key: '7f5c7a4168768a6828f198973d180e1f6600532a', ref: el => (this.inputElement = el), id: this.uniqueId, type: "text", class: inputClass, value: this.internalValue, placeholder: this.placeholder, disabled: this.disabled, required: this.required, onFocus: this.handleInputFocus, onInput: this.handleInputChange, onKeyDown: this.handleKeyDown, "aria-label": this.accAriaLabel || this.label || this.name, "aria-describedby": this.assistiveText || errorMessage ? `${this.uniqueId}-help ${this.uniqueId}-error` : undefined, "aria-invalid": this.hasError }), h("div", { key: '863780d4d9a6b3f07e17977125237809166d835f', class: "spw-date-picker__icons" }, this.isClearIconVisible && (h("span", { key: 'c25cd0e5a75ef062ef50b2db3dfa33e40c075f9b', class: "spw-date-picker__clear", onClick: this.handleClear }, h("spw-icon", { key: '4761fbc6c02cc8200c90882a8dd556dae77d9313', class: "spw-date-picker__icon spw-date-picker__icon--clear", icon: "fa-xmark" }))), h("span", { key: 'b35d76a9ca1b914b0bec648692e7939dc1ab4cb9', class: "spw-date-picker__calendar-trigger", onMouseDown: this.handleCalendarIconMouseDown, onClick: this.handleCalendarIconClick }, h("spw-icon", { key: 'b28190ea0b55dcf994fd023f6c7c6c003710dea9', icon: "fa-calendar", class: "spw-date-picker__icon spw-date-picker__icon--calendar" })))), this.error && (h("spw-field-message", { key: '2fb10c2981460f879c7d66fd6fb0439c38d7929c', variant: "error", showIcon: this.showErrorIcon }, this.error)), this.hint && (h("spw-field-message", { key: '8d1d51c87b3fc336de054c8bfe5780b0fefb31e8', variant: "hint", showIcon: this.showHintIcon }, this.hint)), this.success && (h("spw-field-message", { key: '2f73dff0acc8048983c6e55ce239e575e91a9440', variant: "success", showIcon: this.showSuccessIcon }, this.success)), this.warning && (h("spw-field-message", { key: 'f4a9746012910672908fcb188fd0fe4ed69ef352', variant: "warning", showIcon: this.showWarningIcon }, this.warning)))));
761
794
  }
762
795
  static get is() { return "spw-date-picker"; }
763
796
  static get encapsulation() { return "shadow"; }
@@ -989,21 +1022,23 @@ export class SpwDatePicker {
989
1022
  "defaultValue": "[]"
990
1023
  },
991
1024
  "disabledDates": {
992
- "type": "unknown",
1025
+ "type": "string",
993
1026
  "mutable": false,
994
1027
  "complexType": {
995
- "original": "string[]",
996
- "resolved": "string[]",
1028
+ "original": "string | string[]",
1029
+ "resolved": "string | string[]",
997
1030
  "references": {}
998
1031
  },
999
1032
  "required": false,
1000
1033
  "optional": false,
1001
1034
  "docs": {
1002
1035
  "tags": [],
1003
- "text": "Dates sp\u00E9cifiques d\u00E9sactiv\u00E9es (format ISO)"
1036
+ "text": "Dates sp\u00E9cifiques d\u00E9sactiv\u00E9es (format ISO, ex: [\"2026-01-01\", \"2026-12-25\"])"
1004
1037
  },
1005
1038
  "getter": false,
1006
1039
  "setter": false,
1040
+ "reflect": false,
1041
+ "attribute": "disabled-dates",
1007
1042
  "defaultValue": "[]"
1008
1043
  },
1009
1044
  "position": {
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class SpwDropdownContainer {
3
3
  render() {
4
- return (h(Host, { key: '3fe5b3bf817789aaeb93012096dfae279a170022' }, h("div", { key: '9974e7b7a489f4d325c75390efae3adbd9ce4277', class: "spw-dropdown-container" }, h("slot", { key: '67f4d540d2666584bfc8e39ca1ea9ed3f29f9d40' }))));
4
+ return (h(Host, { key: 'f32b9cfb6175c45e09c54aaf0d84b1584f5922de' }, h("div", { key: 'aeed248057b80b9fe32268bfe626f60528f9eda5', class: "spw-dropdown-container" }, h("slot", { key: 'b8b91107d4d1de0f882256b4a2578766c5017e5a' }))));
5
5
  }
6
6
  static get is() { return "spw-dropdown-container"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -69,7 +69,7 @@ export class SpwDropdownItem {
69
69
  'spw-dropdown-item__toggle': true,
70
70
  'spw-dropdown-item__toggle--open': this.subItemsOpen,
71
71
  };
72
- return (h(Host, { key: 'b3f7ce5ca20bee483f526283143e2301b108e438' }, h(Tag, { key: '49a4d04cb4fe11f1c82f203934c2b236a1b1147f', class: this.classes, href: this.href, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.handleItemClick }, this.icon && (h("div", { key: '0c200bb9198e20fb19b752583d8aeed5b008427f', class: "spw-dropdown-item__icon" }, h("spw-icon", { key: '20fae7abdcd164ef6a17fcbab803bb63c7d1f6f6', variant: this.iconVariant, icon: this.icon }))), h("div", { key: '672d0ec30cdfac72f86b58f92e22a3a7b420ba3f', class: "spw-dropdown-item__content" }, h("div", { key: 'dd8f5191e40b6a90b13a1718ab5783f1686ec652', class: "spw-dropdown-item__label" }, h("slot", { key: 'd7a5d6c362ce583de2a3d6ff48fd523cc5aeecc0' })), this.hasSubItems && (h("div", { key: '3dadabe2ff4e5aa362b717c743ce528697647b08', class: toggleClasses, onClick: this.handleToggleSubItems }, h("spw-icon", { key: '2e7fb8df2435c76c39add6f448cf4e4fa12893e4', icon: "fa-chevron-down" }))))), this.hasSubItems && (h("div", { key: 'd4c1701ee2215d78fea87bded96a68c37c3c1762', class: "spw-dropdown-item__sub-items", style: { display: this.subItemsOpen ? 'block' : 'none' } }, h("slot", { key: '5181144a85a979b89306854aa2f4c4c130cdf678', name: "sub-items" })))));
72
+ return (h(Host, { key: '1596a4172e1e8eefbfa765546719c55e2c98f3d5' }, h(Tag, { key: '24ae4e7ba274e59218030e38153d7c4c0493a835', class: this.classes, href: this.href, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.handleItemClick }, this.icon && (h("div", { key: '4b8b5d3739afbabc92d67182a4a9a978f9af6a6b', class: "spw-dropdown-item__icon" }, h("spw-icon", { key: 'fed0d8d7561105acca93330014763cb1fe812b71', variant: this.iconVariant, icon: this.icon }))), h("div", { key: '6e9f0758fa21309ebf4a26143987510e2c610cf3', class: "spw-dropdown-item__content" }, h("div", { key: 'a0d0da494fc950e1fd06214143b7aa87af92bfec', class: "spw-dropdown-item__label" }, h("slot", { key: '6d8c7a857150d96359abd2a1c856905a7c170ae9' })), this.hasSubItems && (h("div", { key: '19cd50f2dde61fadb6e121b831c1518abf0e54e9', class: toggleClasses, onClick: this.handleToggleSubItems }, h("spw-icon", { key: 'f04c856a18d549c40b68d702f2d27a2b930bd881', icon: "fa-chevron-down" }))))), this.hasSubItems && (h("div", { key: '11b2e9dac24ea9232cb03d8e6332f056408f657d', class: "spw-dropdown-item__sub-items", style: { display: this.subItemsOpen ? 'block' : 'none' } }, h("slot", { key: 'fa0fa7f551ef87ab9ad0a8fe16e5fb5f21244fbc', name: "sub-items" })))));
73
73
  }
74
74
  static get is() { return "spw-dropdown-item"; }
75
75
  static get originalStyleUrls() {
@@ -19,6 +19,7 @@ export class SpwDropdown {
19
19
  if (!slotContent)
20
20
  return;
21
21
  this.isVisible = true;
22
+ this.spwDropdownOpen.emit();
22
23
  this.dropdownEl = document.createElement('div');
23
24
  this.dropdownEl.className = `spw-dropdown-fixed spw-dropdown-fixed--${this.direction}`;
24
25
  if (this.hasPadding)
@@ -39,6 +40,7 @@ export class SpwDropdown {
39
40
  return;
40
41
  this.isVisible = false;
41
42
  this.open = false;
43
+ this.spwDropdownClose.emit();
42
44
  if (this.dropdownEl && this.movedContentEl) {
43
45
  this.host.appendChild(this.movedContentEl);
44
46
  }
@@ -130,7 +132,7 @@ export class SpwDropdown {
130
132
  dropdown.style.visibility = 'visible';
131
133
  }
132
134
  render() {
133
- return (h("div", { key: 'baffda0bbcd562a9b1aab9a95093fa685df833c9', class: "spw-dropdown__trigger", onClick: () => (this.open = !this.open) }, h("slot", { key: '35cdd3181680e76069cc5954fea5aed9b9d1a861' })));
135
+ return (h("div", { key: '69f5c85c85f197d1e2627f51f38026a124c8adc9', class: "spw-dropdown__trigger", onClick: () => (this.open = !this.open) }, h("slot", { key: '4738589550833682aa02288bde77dbfc248caf51' })));
134
136
  }
135
137
  static get is() { return "spw-dropdown"; }
136
138
  static get encapsulation() { return "shadow"; }
@@ -233,6 +235,39 @@ export class SpwDropdown {
233
235
  "isVisible": {}
234
236
  };
235
237
  }
238
+ static get events() {
239
+ return [{
240
+ "method": "spwDropdownOpen",
241
+ "name": "spwDropdownOpen",
242
+ "bubbles": true,
243
+ "cancelable": true,
244
+ "composed": true,
245
+ "docs": {
246
+ "tags": [],
247
+ "text": "\u00C9v\u00E9nement \u00E9mis quand le dropdown s'ouvre"
248
+ },
249
+ "complexType": {
250
+ "original": "void",
251
+ "resolved": "void",
252
+ "references": {}
253
+ }
254
+ }, {
255
+ "method": "spwDropdownClose",
256
+ "name": "spwDropdownClose",
257
+ "bubbles": true,
258
+ "cancelable": true,
259
+ "composed": true,
260
+ "docs": {
261
+ "tags": [],
262
+ "text": "\u00C9v\u00E9nement \u00E9mis quand le dropdown se ferme"
263
+ },
264
+ "complexType": {
265
+ "original": "void",
266
+ "resolved": "void",
267
+ "references": {}
268
+ }
269
+ }];
270
+ }
236
271
  static get methods() {
237
272
  return {
238
273
  "close": {
@@ -21,7 +21,7 @@ export class SpwFieldLabel {
21
21
  return !!(this.tooltipText || this.tooltipTitle);
22
22
  }
23
23
  render() {
24
- return (h(Host, { key: '6a8c2bf53b718b7588d115e69e9fd36f566f3d86' }, h("label", { key: 'd4e270a7e27ebcc6691b70eefc920af21bc0bf12', class: "spw-field-label", htmlFor: this.name, onClick: this.handleClick }, h("span", { key: 'a738b89f8331a78f6b0e81532d58222b6969d732', class: "spw-field-label__text" }, this.label), this.hasTooltip && (h("spw-tooltip", { key: '87030abf7cd411e916ecbeeaf93233eac983693c', tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, maxWidth: this.tooltipMaxWidth, direction: this.tooltipDirection, cursor: this.tooltipCursor }, h("spw-icon", { key: 'b54afad9da37de45ceaa445503f89b5a37f12d9a', variant: "fa-regular", icon: "fa-circle-info", class: "spw-field-label__icon" }))), this.required && h("span", { key: '1b96ed633361f1a3ab7ee10879764cd2fe8bd95f', class: "spw-field-label__required" }, "*"))));
24
+ return (h(Host, { key: '2b8692efd1b89269954369f9b5a7c3ca93bdb373' }, h("label", { key: 'ea0528fd37014887aa69ec5daa0b5bd27fa0c587', class: "spw-field-label", htmlFor: this.name, onClick: this.handleClick }, h("span", { key: 'f6b5d82cb06a872eafa95e59d583d5fe5d9f10a7', class: "spw-field-label__text" }, this.label), this.hasTooltip && (h("spw-tooltip", { key: '52ae36c3a49b219378f161b9d3836cc2eddfbe77', tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, maxWidth: this.tooltipMaxWidth, direction: this.tooltipDirection, cursor: this.tooltipCursor }, h("spw-icon", { key: 'ad8cc7d2edf098f79776fa96c93d249cd593a048', variant: "fa-regular", icon: "fa-circle-info", class: "spw-field-label__icon" }))), this.required && h("span", { key: 'f512051ad319f4e0b1c985cbb931076662140505', class: "spw-field-label__required" }, "*"))));
25
25
  }
26
26
  static get is() { return "spw-field-label"; }
27
27
  static get encapsulation() { return "shadow"; }
@@ -25,7 +25,7 @@ export class SpwFieldMessage {
25
25
  };
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: '80b007505fa5a234dc16806b1e06aa7d0adc5993' }, h("div", { key: 'df861af6760dde32da4765280cd080d7ac4ec490', class: this.elementClass }, this.showIcon && (h("div", { key: '2c2195d50faa9de71f777dac0d331ca3f85d86fb', class: "spw-field-message__icon" }, h("spw-icon", { key: 'a2260cec32a7212c074e63c400f79ea0689831c6', icon: this.variantIcon }))), h("span", { key: 'bf13d18c14d44501834c1e5234cec11341c95f77', class: "spw-field-message__text" }, h("slot", { key: '83dff455be123186f4f413b94378af62dce06f58' })))));
28
+ return (h(Host, { key: '910e4185ba899bff2dd459a6511858312e1a48c8' }, h("div", { key: '8bfc190c38b5c0670416697d10949fc579c3567d', class: this.elementClass }, this.showIcon && (h("div", { key: 'e9c7cb9ac764d1149b741b2e8c9b6d10324e9c87', class: "spw-field-message__icon" }, h("spw-icon", { key: 'c68c05e5250f151ddddaa9aaa735040fb095849c', icon: this.variantIcon }))), h("span", { key: '7c6d9ced9d81496e65f4f02a111a731458e7d3b4', class: "spw-field-message__text" }, h("slot", { key: 'ec50fc1f5c1d082f293601dcb94ab412177053ec' })))));
29
29
  }
30
30
  static get is() { return "spw-field-message"; }
31
31
  static get encapsulation() { return "shadow"; }
@@ -221,10 +221,10 @@ export class SpwFileUpload {
221
221
  render() {
222
222
  const inputTextNoDrop = this.multiple ? 'Choisir vos fichiers...' : 'Choisir votre fichier...';
223
223
  const inputTextDrop = this.multiple ? 'Déposez vos fichiers ici' : 'Déposez votre fichier ici';
224
- return (h("div", { key: '97c31d702f7eae1d568f0edf3c2a18e626a8cb46', class: this.elementClass, onDragOver: this.handleDragOver.bind(this), onDragLeave: this.handleDragLeave.bind(this), onDrop: this.handleDrop.bind(this) }, h("input", { key: '59066fd99ea2dc7428787080f794dc3862c21b8e', type: "file", ref: el => (this.inputElement = el), onChange: this.handleFileChange.bind(this), name: this.name, multiple: this.multiple, accept: this.accept, style: { display: 'none' }, disabled: this.isMaxFilesReached }), this.enableDropZone ? (h("div", { tabindex: this.disabled || this.isMaxFilesReached ? -1 : 0, onKeyDown: this.handleKeydown.bind(this), onClick: () => !this.disabled && !this.isMaxFilesReached && this.inputElement.click(), class: "spw-file-upload__dropzone" }, inputTextDrop, " ou ", h("span", { class: "spw-file-upload__dropzone-link" }, "choisissez sur votre ordinateur..."))) : (h("spw-button", { variant: "secondary", onClick: () => !this.disabled && !this.isMaxFilesReached && this.inputElement.click(), disabled: this.disabled || this.isMaxFilesReached }, inputTextNoDrop)), h("div", { key: 'b21008bdc6841473447d3d91c62e58ade6185aba', class: "spw-file-upload__hints" }, this.hintsMessages.length > 0 && (h("ul", { key: '41e148516f6a007e6b48a3c40cae197ea884a3ef' }, this.hintsMessages.map((message, index) => (h("li", { key: index }, message)))))), h("div", { key: '26f4a6e08072b6a1d25e48fed59dbc2e5d940c28', class: "spw-file-upload__info" }, this.selectedFiles.length > 0 ? (h("ul", { class: "spw-file-upload__info-list" }, this.selectedFiles.map((file, index) => (h("li", { key: index }, h("span", { class: "spw-file-upload__info-list-name" }, file.name), h("div", { class: "spw-file-upload__info-list-actions" }, h("span", { class: "spw-file-upload__spacing" }, formatFileSize(file.size)), h("a", { class: "spw-file-upload__info-list-delete", href: "#", onClick: e => {
224
+ return (h("div", { key: '71112781ef43b1aa8f4949a0e077852d1c2dfbdf', class: this.elementClass, onDragOver: this.handleDragOver.bind(this), onDragLeave: this.handleDragLeave.bind(this), onDrop: this.handleDrop.bind(this) }, h("input", { key: '784c5cdd9cd48c9e2752b631b5f565daa0f03e19', type: "file", ref: el => (this.inputElement = el), onChange: this.handleFileChange.bind(this), name: this.name, multiple: this.multiple, accept: this.accept, style: { display: 'none' }, disabled: this.isMaxFilesReached }), this.enableDropZone ? (h("div", { tabindex: this.disabled || this.isMaxFilesReached ? -1 : 0, onKeyDown: this.handleKeydown.bind(this), onClick: () => !this.disabled && !this.isMaxFilesReached && this.inputElement.click(), class: "spw-file-upload__dropzone" }, inputTextDrop, " ou ", h("span", { class: "spw-file-upload__dropzone-link" }, "choisissez sur votre ordinateur..."))) : (h("spw-button", { variant: "secondary", onClick: () => !this.disabled && !this.isMaxFilesReached && this.inputElement.click(), disabled: this.disabled || this.isMaxFilesReached }, inputTextNoDrop)), h("div", { key: '7397f66a134a686290fc0ef68e688c723c6c939c', class: "spw-file-upload__hints" }, this.hintsMessages.length > 0 && (h("ul", { key: 'b1145fefb6c007e21c40154d2044c2e8ac8d031d' }, this.hintsMessages.map((message, index) => (h("li", { key: index }, message)))))), h("div", { key: 'a9453e3eb05187f1b52d14199f2d67336fdc9d88', class: "spw-file-upload__info" }, this.selectedFiles.length > 0 ? (h("ul", { class: "spw-file-upload__info-list" }, this.selectedFiles.map((file, index) => (h("li", { key: index }, h("span", { class: "spw-file-upload__info-list-name" }, file.name), h("div", { class: "spw-file-upload__info-list-actions" }, h("span", { class: "spw-file-upload__spacing" }, formatFileSize(file.size)), h("a", { class: "spw-file-upload__info-list-delete", href: "#", onClick: e => {
225
225
  e.preventDefault();
226
226
  this.removeFile(index);
227
- } }, "Supprimer"))))))) : (''), this.fileLimitErrors.length > 0 && (h("ul", { key: '2dff84f028676d113f0596f0f107016a99d5257e', class: `spw-file-upload__errors ${this.isMaxFilesReachedExact ? 'spw-file-upload__errors--warning' : ''}` }, this.fileLimitErrors.map((message, index) => (h("li", { key: index }, h("spw-icon", { class: "spw-file-upload__spacing", icon: this.isMaxFilesReachedExact ? 'fa-circle-exclamation' : 'fa-warning' }), message))))), this.fileTypeErrors.length > 0 && (h("ul", { key: '31c7a3b8f79787b578de47d6a080740e61ff6edb', class: "spw-file-upload__errors" }, this.fileTypeErrors.map((message, index) => (h("li", { key: index }, h("spw-icon", { class: "spw-file-upload__spacing", icon: "fa-warning" }), message))))))));
227
+ } }, "Supprimer"))))))) : (''), this.fileLimitErrors.length > 0 && (h("ul", { key: 'dc302035aae13502d1069ead4d9bbcc6b009a7c9', class: `spw-file-upload__errors ${this.isMaxFilesReachedExact ? 'spw-file-upload__errors--warning' : ''}` }, this.fileLimitErrors.map((message, index) => (h("li", { key: index }, h("spw-icon", { class: "spw-file-upload__spacing", icon: this.isMaxFilesReachedExact ? 'fa-circle-exclamation' : 'fa-warning' }), message))))), this.fileTypeErrors.length > 0 && (h("ul", { key: 'cdd8241ad727032162872d1bb8df5f82a4ec4e57', class: "spw-file-upload__errors" }, this.fileTypeErrors.map((message, index) => (h("li", { key: index }, h("spw-icon", { class: "spw-file-upload__spacing", icon: "fa-warning" }), message))))))));
228
228
  }
229
229
  static get is() { return "spw-file-upload"; }
230
230
  static get encapsulation() { return "shadow"; }