@spw-ds/spw-stencil-library 1.10.2 → 1.11.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 (560) hide show
  1. package/dist/cem.json +1124 -157
  2. package/dist/cjs/{animation-DMuoVGnA.js → animation-tH5DQHbp.js} +7 -2
  3. package/dist/cjs/index-B9VTdKwF.js +3187 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/spw-accordion_4.cjs.entry.js +5 -5
  6. package/dist/cjs/spw-avatar.cjs.entry.js +2 -2
  7. package/dist/cjs/spw-block-content.cjs.entry.js +2 -2
  8. package/dist/cjs/spw-box.cjs.entry.js +62 -0
  9. package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +2 -2
  10. package/dist/cjs/spw-breadcrumb.cjs.entry.js +2 -2
  11. package/dist/cjs/spw-button_2.cjs.entry.js +4 -4
  12. package/dist/cjs/spw-card-content.cjs.entry.js +2 -2
  13. package/dist/cjs/spw-card-excerpt.cjs.entry.js +2 -2
  14. package/dist/cjs/spw-card-image.cjs.entry.js +2 -2
  15. package/dist/cjs/spw-card-subtag-item.cjs.entry.js +2 -2
  16. package/dist/cjs/spw-card-subtags.cjs.entry.js +2 -2
  17. package/dist/cjs/spw-card-title.cjs.entry.js +2 -2
  18. package/dist/cjs/spw-card.cjs.entry.js +2 -2
  19. package/dist/cjs/spw-checkbox.cjs.entry.js +2 -2
  20. package/dist/cjs/spw-cookies.cjs.entry.js +1 -1
  21. package/dist/cjs/spw-custom-select.cjs.entry.js +65 -6
  22. package/dist/cjs/spw-date-picker.cjs.entry.js +2 -2
  23. package/dist/cjs/spw-dropdown-container.cjs.entry.js +2 -2
  24. package/dist/cjs/spw-dropdown-item.cjs.entry.js +2 -2
  25. package/dist/cjs/spw-dropdown.cjs.entry.js +2 -2
  26. package/dist/cjs/spw-field-label_7.cjs.entry.js +8 -8
  27. package/dist/cjs/spw-field-message.cjs.entry.js +2 -2
  28. package/dist/cjs/spw-file-upload.cjs.entry.js +3 -3
  29. package/dist/cjs/spw-footer-bottom.cjs.entry.js +2 -2
  30. package/dist/cjs/spw-footer-content-col.cjs.entry.js +2 -2
  31. package/dist/cjs/spw-footer-content.cjs.entry.js +2 -2
  32. package/dist/cjs/spw-footer-link.cjs.entry.js +2 -2
  33. package/dist/cjs/spw-footer.cjs.entry.js +2 -2
  34. package/dist/cjs/spw-grid-item.cjs.entry.js +3 -3
  35. package/dist/cjs/spw-grid.cjs.entry.js +6 -4
  36. package/dist/cjs/spw-header-lang.cjs.entry.js +2 -2
  37. package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +2 -2
  38. package/dist/cjs/spw-header-navigation-item.cjs.entry.js +2 -2
  39. package/dist/cjs/spw-header-navigation.cjs.entry.js +2 -2
  40. package/dist/cjs/spw-header-persona-item.cjs.entry.js +2 -2
  41. package/dist/cjs/spw-header-persona.cjs.entry.js +2 -2
  42. package/dist/cjs/spw-header.cjs.entry.js +13 -2
  43. package/dist/cjs/spw-hero.cjs.entry.js +21 -5
  44. package/dist/cjs/spw-illustration.cjs.entry.js +1 -1
  45. package/dist/cjs/spw-input-slider.cjs.entry.js +2 -2
  46. package/dist/cjs/spw-lightbox-item.cjs.entry.js +53 -0
  47. package/dist/cjs/spw-lightbox.cjs.entry.js +235 -0
  48. package/dist/cjs/spw-list-description.cjs.entry.js +2 -2
  49. package/dist/cjs/spw-list-item.cjs.entry.js +2 -2
  50. package/dist/cjs/spw-list-title.cjs.entry.js +2 -2
  51. package/dist/cjs/spw-list.cjs.entry.js +2 -2
  52. package/dist/cjs/spw-message.cjs.entry.js +1 -1
  53. package/dist/cjs/spw-modal.cjs.entry.js +5 -5
  54. package/dist/cjs/spw-mosaic-item.cjs.entry.js +2 -2
  55. package/dist/cjs/spw-mosaic.cjs.entry.js +2 -2
  56. package/dist/cjs/spw-pagination.cjs.entry.js +7 -7
  57. package/dist/cjs/spw-radio.cjs.entry.js +2 -2
  58. package/dist/cjs/spw-scrolltop.cjs.entry.js +2 -2
  59. package/dist/cjs/spw-search-field.cjs.entry.js +12 -6
  60. package/dist/cjs/spw-select.cjs.entry.js +2 -2
  61. package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +2 -2
  62. package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +4 -4
  63. package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +2 -2
  64. package/dist/cjs/spw-sidebar.cjs.entry.js +2 -2
  65. package/dist/cjs/spw-skeleton.cjs.entry.js +2 -2
  66. package/dist/cjs/spw-slider-item.cjs.entry.js +2 -2
  67. package/dist/cjs/spw-slider.cjs.entry.js +16 -7
  68. package/dist/cjs/spw-socials.cjs.entry.js +2 -2
  69. package/dist/cjs/spw-stencil-library.cjs.js +2 -2
  70. package/dist/cjs/spw-table-body.cjs.entry.js +2 -2
  71. package/dist/cjs/spw-table-cell.cjs.entry.js +2 -2
  72. package/dist/cjs/spw-table-container.cjs.entry.js +2 -2
  73. package/dist/cjs/spw-table-footer.cjs.entry.js +2 -2
  74. package/dist/cjs/spw-table-head.cjs.entry.js +2 -2
  75. package/dist/cjs/spw-table-header.cjs.entry.js +3 -3
  76. package/dist/cjs/spw-table-row.cjs.entry.js +2 -2
  77. package/dist/cjs/spw-table-sidebar.cjs.entry.js +2 -2
  78. package/dist/cjs/spw-table.cjs.entry.js +3 -3
  79. package/dist/cjs/spw-tabs-content.cjs.entry.js +1 -1
  80. package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +2 -2
  81. package/dist/cjs/spw-tabs-navigation.cjs.entry.js +2 -2
  82. package/dist/cjs/spw-tabs.cjs.entry.js +2 -2
  83. package/dist/cjs/spw-tag.cjs.entry.js +2 -2
  84. package/dist/cjs/spw-text-field.cjs.entry.js +69 -10
  85. package/dist/cjs/spw-textarea.cjs.entry.js +2 -2
  86. package/dist/cjs/spw-tile-description.cjs.entry.js +2 -2
  87. package/dist/cjs/spw-tile-title.cjs.entry.js +2 -2
  88. package/dist/cjs/spw-tile.cjs.entry.js +2 -2
  89. package/dist/cjs/spw-timeline-item.cjs.entry.js +3 -3
  90. package/dist/cjs/spw-timeline.cjs.entry.js +3 -3
  91. package/dist/cjs/spw-toast-controller.cjs.entry.js +2 -2
  92. package/dist/cjs/spw-toast.cjs.entry.js +2 -2
  93. package/dist/cjs/spw-toc-container.cjs.entry.js +2 -2
  94. package/dist/cjs/spw-toc-navigation.cjs.entry.js +1 -1
  95. package/dist/cjs/spw-toc.cjs.entry.js +2 -2
  96. package/dist/cjs/spw-topbar.cjs.entry.js +2 -2
  97. package/dist/cjs/spw-wizard-item.cjs.entry.js +2 -2
  98. package/dist/cjs/spw-wizard.cjs.entry.js +2 -2
  99. package/dist/collection/collection-manifest.json +3 -0
  100. package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.js +1 -1
  101. package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.js +1 -1
  102. package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.js +1 -1
  103. package/dist/collection/components/spw-accordion/spw-accordion.js +1 -1
  104. package/dist/collection/components/spw-avatar/spw-avatar.js +1 -1
  105. package/dist/collection/components/spw-block-content/spw-block-content.js +1 -1
  106. package/dist/collection/components/spw-box/spw-box.css +507 -0
  107. package/dist/collection/components/spw-box/spw-box.js +213 -0
  108. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.js +1 -1
  109. package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.js +1 -1
  110. package/dist/collection/components/spw-button/spw-button.css +2 -2
  111. package/dist/collection/components/spw-button/spw-button.js +2 -2
  112. package/dist/collection/components/spw-card/spw-card-content/spw-card-content.js +1 -1
  113. package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.js +1 -1
  114. package/dist/collection/components/spw-card/spw-card-image/spw-card-image.js +1 -1
  115. package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.js +1 -1
  116. package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.js +1 -1
  117. package/dist/collection/components/spw-card/spw-card-title/spw-card-title.js +1 -1
  118. package/dist/collection/components/spw-card/spw-card.js +1 -1
  119. package/dist/collection/components/spw-checkbox/spw-checkbox.js +1 -1
  120. package/dist/collection/components/spw-custom-select/spw-custom-select.css +61 -3
  121. package/dist/collection/components/spw-custom-select/spw-custom-select.js +124 -5
  122. package/dist/collection/components/spw-date-picker/spw-date-picker.js +2 -2
  123. package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.js +1 -1
  124. package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.js +1 -1
  125. package/dist/collection/components/spw-dropdown/spw-dropdown.js +1 -1
  126. package/dist/collection/components/spw-field-label/spw-field-label.js +1 -1
  127. package/dist/collection/components/spw-field-message/spw-field-message.js +1 -1
  128. package/dist/collection/components/spw-file-upload/spw-file-upload.js +2 -2
  129. package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.js +1 -1
  130. package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.js +1 -1
  131. package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.js +1 -1
  132. package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.js +1 -1
  133. package/dist/collection/components/spw-footer/spw-footer.js +1 -1
  134. package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.js +2 -2
  135. package/dist/collection/components/spw-grid/spw-grid.css +18 -1
  136. package/dist/collection/components/spw-grid/spw-grid.js +24 -2
  137. package/dist/collection/components/spw-group/spw-group.js +1 -1
  138. package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +1 -1
  139. package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +1 -1
  140. package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +1 -1
  141. package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +1 -1
  142. package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +1 -1
  143. package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.js +1 -1
  144. package/dist/collection/components/spw-header/spw-header.js +12 -1
  145. package/dist/collection/components/spw-hero/spw-hero.css +37 -0
  146. package/dist/collection/components/spw-hero/spw-hero.js +97 -5
  147. package/dist/collection/components/spw-icon/spw-icon.js +1 -1
  148. package/dist/collection/components/spw-input-slider/spw-input-slider.js +1 -1
  149. package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.css +436 -0
  150. package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.js +292 -0
  151. package/dist/collection/components/spw-lightbox/spw-lightbox.css +614 -0
  152. package/dist/collection/components/spw-lightbox/spw-lightbox.js +511 -0
  153. package/dist/collection/components/spw-link/spw-link.js +1 -1
  154. package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
  155. package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +1 -1
  156. package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
  157. package/dist/collection/components/spw-list/spw-list.js +1 -1
  158. package/dist/collection/components/spw-loading/spw-loading.js +1 -1
  159. package/dist/collection/components/spw-modal/spw-modal.js +3 -3
  160. package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
  161. package/dist/collection/components/spw-mosaic/spw-mosaic.js +1 -1
  162. package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
  163. package/dist/collection/components/spw-radio/spw-radio.js +1 -1
  164. package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +1 -1
  165. package/dist/collection/components/spw-search-field/spw-search-field.css +6 -3
  166. package/dist/collection/components/spw-search-field/spw-search-field.js +51 -5
  167. package/dist/collection/components/spw-select/spw-select.js +2 -2
  168. package/dist/collection/components/spw-separator/spw-separator.js +1 -1
  169. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.js +1 -1
  170. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.js +3 -3
  171. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.js +1 -1
  172. package/dist/collection/components/spw-sidebar/spw-sidebar.js +1 -1
  173. package/dist/collection/components/spw-skeleton/spw-skeleton.js +1 -1
  174. package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.js +1 -1
  175. package/dist/collection/components/spw-slider/spw-slider.js +60 -6
  176. package/dist/collection/components/spw-socials/spw-socials.js +1 -1
  177. package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +1 -1
  178. package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
  179. package/dist/collection/components/spw-table/spw-table-container/spw-table-container.js +1 -1
  180. package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
  181. package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
  182. package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +2 -2
  183. package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +1 -1
  184. package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.js +1 -1
  185. package/dist/collection/components/spw-table/spw-table.js +2 -2
  186. package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +1 -1
  187. package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js +1 -1
  188. package/dist/collection/components/spw-tabs/spw-tabs.js +1 -1
  189. package/dist/collection/components/spw-tag/spw-tag.js +1 -1
  190. package/dist/collection/components/spw-text-field/spw-text-field.js +88 -10
  191. package/dist/collection/components/spw-textarea/spw-textarea.js +2 -2
  192. package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
  193. package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
  194. package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
  195. package/dist/collection/components/spw-tile/spw-tile.js +1 -1
  196. package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.js +2 -2
  197. package/dist/collection/components/spw-timeline/spw-timeline.js +2 -2
  198. package/dist/collection/components/spw-toast/spw-toast-controller/spw-toast-controller.js +1 -1
  199. package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.js +1 -1
  200. package/dist/collection/components/spw-toc/spw-toc.js +1 -1
  201. package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
  202. package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
  203. package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
  204. package/dist/collection/components/spw-wizard/spw-wizard.js +1 -1
  205. package/dist/collection/stories/components/spw-box/spw-box.stories.js +312 -0
  206. package/dist/collection/stories/components/spw-custom-select/spw-custom-select.stories.js +23 -2
  207. package/dist/collection/stories/organisms/spw-hero/spw-hero.stories.js +61 -0
  208. package/dist/collection/stories/organisms/spw-toc/spw-toc.stories.js +40 -34
  209. package/dist/collection/utils/animation.js +7 -2
  210. package/dist/components/index.js +1 -1
  211. package/dist/components/{p-CMLl0RMI.js → p-BNVh4npd.js} +1 -1
  212. package/dist/components/{p-LSa_rZXb.js → p-BNsbxGcj.js} +1 -1
  213. package/dist/components/p-BRFNx2DL.js +1 -0
  214. package/dist/components/{p-BhdoYDTm.js → p-BRlLi9Ar.js} +1 -1
  215. package/dist/components/{p-D6LWZKvR.js → p-BqEbo61A.js} +1 -1
  216. package/dist/components/{p-BjLZzV7o.js → p-C8Vf9QlU.js} +1 -1
  217. package/dist/components/{p-CDlTW4jP.js → p-CLCgZYzK.js} +1 -1
  218. package/dist/components/{p-BxRsJDtg.js → p-CNmnvMAU.js} +1 -1
  219. package/dist/components/{p-DbSA5Qg5.js → p-CyuzNTuL.js} +1 -1
  220. package/dist/components/{p-DJvzArBD.js → p-D0jLTe4Y.js} +1 -1
  221. package/dist/components/{p-DwCnnHgn.js → p-D2bR89OY.js} +1 -1
  222. package/dist/components/p-D3lAXshq.js +1 -0
  223. package/dist/components/{p-JuqrTYPp.js → p-DdZeGXq7.js} +1 -1
  224. package/dist/components/{p-BlIs4luv.js → p-HzgF73Oa.js} +1 -1
  225. package/dist/components/p-lA7JXY3H.js +1 -0
  226. package/dist/components/{p-DiO72wMf.js → p-oVOlDrOp.js} +1 -1
  227. package/dist/components/{p-D8N138f1.js → p-w411zfAm.js} +1 -1
  228. package/dist/components/spw-accordion-content.js +1 -1
  229. package/dist/components/spw-accordion-item.js +1 -1
  230. package/dist/components/spw-accordion-title.js +1 -1
  231. package/dist/components/spw-accordion.js +1 -1
  232. package/dist/components/spw-avatar.js +1 -1
  233. package/dist/components/spw-block-content.js +1 -1
  234. package/dist/components/spw-box.d.ts +11 -0
  235. package/dist/components/spw-box.js +1 -0
  236. package/dist/components/spw-breadcrumb-item.js +1 -1
  237. package/dist/components/spw-breadcrumb.js +1 -1
  238. package/dist/components/spw-button.js +1 -1
  239. package/dist/components/spw-card-content.js +1 -1
  240. package/dist/components/spw-card-excerpt.js +1 -1
  241. package/dist/components/spw-card-image.js +1 -1
  242. package/dist/components/spw-card-subtag-item.js +1 -1
  243. package/dist/components/spw-card-subtags.js +1 -1
  244. package/dist/components/spw-card-title.js +1 -1
  245. package/dist/components/spw-card.js +1 -1
  246. package/dist/components/spw-checkbox.js +1 -1
  247. package/dist/components/spw-cookies.js +1 -1
  248. package/dist/components/spw-custom-select.js +1 -1
  249. package/dist/components/spw-date-picker.js +1 -1
  250. package/dist/components/spw-dropdown-container.js +1 -1
  251. package/dist/components/spw-dropdown-item.js +1 -1
  252. package/dist/components/spw-dropdown.js +1 -1
  253. package/dist/components/spw-field-label.js +1 -1
  254. package/dist/components/spw-field-message.js +1 -1
  255. package/dist/components/spw-file-upload.js +1 -1
  256. package/dist/components/spw-footer-bottom.js +1 -1
  257. package/dist/components/spw-footer-content-col.js +1 -1
  258. package/dist/components/spw-footer-content.js +1 -1
  259. package/dist/components/spw-footer-link.js +1 -1
  260. package/dist/components/spw-footer.js +1 -1
  261. package/dist/components/spw-grid-item.js +1 -1
  262. package/dist/components/spw-grid.js +1 -1
  263. package/dist/components/spw-group.js +1 -1
  264. package/dist/components/spw-header-lang.js +1 -1
  265. package/dist/components/spw-header-navigation-dropdown.js +1 -1
  266. package/dist/components/spw-header-navigation-item.js +1 -1
  267. package/dist/components/spw-header-navigation.js +1 -1
  268. package/dist/components/spw-header-persona-item.js +1 -1
  269. package/dist/components/spw-header-persona.js +1 -1
  270. package/dist/components/spw-header.js +1 -1
  271. package/dist/components/spw-hero.js +1 -1
  272. package/dist/components/spw-icon.js +1 -1
  273. package/dist/components/spw-input-slider.js +1 -1
  274. package/dist/components/spw-lightbox-item.d.ts +11 -0
  275. package/dist/components/spw-lightbox-item.js +1 -0
  276. package/dist/components/spw-lightbox.d.ts +11 -0
  277. package/dist/components/spw-lightbox.js +1 -0
  278. package/dist/components/spw-link.js +1 -1
  279. package/dist/components/spw-list-description.js +1 -1
  280. package/dist/components/spw-list-item.js +1 -1
  281. package/dist/components/spw-list-title.js +1 -1
  282. package/dist/components/spw-list.js +1 -1
  283. package/dist/components/spw-loading.js +1 -1
  284. package/dist/components/spw-message.js +1 -1
  285. package/dist/components/spw-modal.js +1 -1
  286. package/dist/components/spw-mosaic-item.js +1 -1
  287. package/dist/components/spw-mosaic.js +4 -4
  288. package/dist/components/spw-pagination.js +1 -1
  289. package/dist/components/spw-radio.js +1 -1
  290. package/dist/components/spw-scrolltop.js +1 -1
  291. package/dist/components/spw-search-field.js +1 -1
  292. package/dist/components/spw-select.js +1 -1
  293. package/dist/components/spw-separator.js +1 -1
  294. package/dist/components/spw-sidebar-navigation-dropdown.js +1 -1
  295. package/dist/components/spw-sidebar-navigation-item.js +1 -1
  296. package/dist/components/spw-sidebar-navigation-separator.js +1 -1
  297. package/dist/components/spw-sidebar.js +1 -1
  298. package/dist/components/spw-skeleton.js +1 -1
  299. package/dist/components/spw-slider-item.js +1 -1
  300. package/dist/components/spw-slider.js +1 -1
  301. package/dist/components/spw-socials.js +1 -1
  302. package/dist/components/spw-table-body.js +1 -1
  303. package/dist/components/spw-table-cell.js +1 -1
  304. package/dist/components/spw-table-container.js +1 -1
  305. package/dist/components/spw-table-footer.js +1 -1
  306. package/dist/components/spw-table-head.js +1 -1
  307. package/dist/components/spw-table-header.js +1 -1
  308. package/dist/components/spw-table-row.js +1 -1
  309. package/dist/components/spw-table-sidebar.js +1 -1
  310. package/dist/components/spw-table.js +1 -1
  311. package/dist/components/spw-tabs-navigation-item.js +1 -1
  312. package/dist/components/spw-tabs-navigation.js +1 -1
  313. package/dist/components/spw-tabs.js +1 -1
  314. package/dist/components/spw-tag.js +1 -1
  315. package/dist/components/spw-text-field.js +1 -1
  316. package/dist/components/spw-textarea.js +1 -1
  317. package/dist/components/spw-theme-provider.js +1 -1
  318. package/dist/components/spw-tile-description.js +1 -1
  319. package/dist/components/spw-tile-title.js +1 -1
  320. package/dist/components/spw-tile.js +1 -1
  321. package/dist/components/spw-timeline-item.js +1 -1
  322. package/dist/components/spw-timeline.js +1 -1
  323. package/dist/components/spw-toast-controller.js +1 -1
  324. package/dist/components/spw-toast.js +1 -1
  325. package/dist/components/spw-toc-container.js +1 -1
  326. package/dist/components/spw-toc.js +1 -1
  327. package/dist/components/spw-tooltip.js +1 -1
  328. package/dist/components/spw-topbar.js +1 -1
  329. package/dist/components/spw-wizard-item.js +1 -1
  330. package/dist/components/spw-wizard.js +1 -1
  331. package/dist/components_json.json +1545 -122
  332. package/dist/esm/{animation-BO7xVlWo.js → animation-BRFNx2DL.js} +7 -2
  333. package/dist/esm/index-BU-5xOtc.js +3158 -0
  334. package/dist/esm/loader.js +3 -3
  335. package/dist/esm/spw-accordion_4.entry.js +5 -5
  336. package/dist/esm/spw-avatar.entry.js +2 -2
  337. package/dist/esm/spw-block-content.entry.js +2 -2
  338. package/dist/esm/spw-box.entry.js +60 -0
  339. package/dist/esm/spw-breadcrumb-item.entry.js +2 -2
  340. package/dist/esm/spw-breadcrumb.entry.js +2 -2
  341. package/dist/esm/spw-button_2.entry.js +4 -4
  342. package/dist/esm/spw-card-content.entry.js +2 -2
  343. package/dist/esm/spw-card-excerpt.entry.js +2 -2
  344. package/dist/esm/spw-card-image.entry.js +2 -2
  345. package/dist/esm/spw-card-subtag-item.entry.js +2 -2
  346. package/dist/esm/spw-card-subtags.entry.js +2 -2
  347. package/dist/esm/spw-card-title.entry.js +2 -2
  348. package/dist/esm/spw-card.entry.js +2 -2
  349. package/dist/esm/spw-checkbox.entry.js +2 -2
  350. package/dist/esm/spw-cookies.entry.js +1 -1
  351. package/dist/esm/spw-custom-select.entry.js +65 -6
  352. package/dist/esm/spw-date-picker.entry.js +2 -2
  353. package/dist/esm/spw-dropdown-container.entry.js +2 -2
  354. package/dist/esm/spw-dropdown-item.entry.js +2 -2
  355. package/dist/esm/spw-dropdown.entry.js +2 -2
  356. package/dist/esm/spw-field-label_7.entry.js +8 -8
  357. package/dist/esm/spw-field-message.entry.js +2 -2
  358. package/dist/esm/spw-file-upload.entry.js +3 -3
  359. package/dist/esm/spw-footer-bottom.entry.js +2 -2
  360. package/dist/esm/spw-footer-content-col.entry.js +2 -2
  361. package/dist/esm/spw-footer-content.entry.js +2 -2
  362. package/dist/esm/spw-footer-link.entry.js +2 -2
  363. package/dist/esm/spw-footer.entry.js +2 -2
  364. package/dist/esm/spw-grid-item.entry.js +3 -3
  365. package/dist/esm/spw-grid.entry.js +6 -4
  366. package/dist/esm/spw-header-lang.entry.js +2 -2
  367. package/dist/esm/spw-header-navigation-dropdown.entry.js +2 -2
  368. package/dist/esm/spw-header-navigation-item.entry.js +2 -2
  369. package/dist/esm/spw-header-navigation.entry.js +2 -2
  370. package/dist/esm/spw-header-persona-item.entry.js +2 -2
  371. package/dist/esm/spw-header-persona.entry.js +2 -2
  372. package/dist/esm/spw-header.entry.js +13 -2
  373. package/dist/esm/spw-hero.entry.js +21 -5
  374. package/dist/esm/spw-illustration.entry.js +1 -1
  375. package/dist/esm/spw-input-slider.entry.js +2 -2
  376. package/dist/esm/spw-lightbox-item.entry.js +51 -0
  377. package/dist/esm/spw-lightbox.entry.js +233 -0
  378. package/dist/esm/spw-list-description.entry.js +2 -2
  379. package/dist/esm/spw-list-item.entry.js +2 -2
  380. package/dist/esm/spw-list-title.entry.js +2 -2
  381. package/dist/esm/spw-list.entry.js +2 -2
  382. package/dist/esm/spw-message.entry.js +1 -1
  383. package/dist/esm/spw-modal.entry.js +5 -5
  384. package/dist/esm/spw-mosaic-item.entry.js +2 -2
  385. package/dist/esm/spw-mosaic.entry.js +2 -2
  386. package/dist/esm/spw-pagination.entry.js +7 -7
  387. package/dist/esm/spw-radio.entry.js +2 -2
  388. package/dist/esm/spw-scrolltop.entry.js +2 -2
  389. package/dist/esm/spw-search-field.entry.js +12 -6
  390. package/dist/esm/spw-select.entry.js +2 -2
  391. package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +2 -2
  392. package/dist/esm/spw-sidebar-navigation-item.entry.js +4 -4
  393. package/dist/esm/spw-sidebar-navigation-separator.entry.js +2 -2
  394. package/dist/esm/spw-sidebar.entry.js +2 -2
  395. package/dist/esm/spw-skeleton.entry.js +2 -2
  396. package/dist/esm/spw-slider-item.entry.js +2 -2
  397. package/dist/esm/spw-slider.entry.js +16 -7
  398. package/dist/esm/spw-socials.entry.js +2 -2
  399. package/dist/esm/spw-stencil-library.js +3 -3
  400. package/dist/esm/spw-table-body.entry.js +2 -2
  401. package/dist/esm/spw-table-cell.entry.js +2 -2
  402. package/dist/esm/spw-table-container.entry.js +2 -2
  403. package/dist/esm/spw-table-footer.entry.js +2 -2
  404. package/dist/esm/spw-table-head.entry.js +2 -2
  405. package/dist/esm/spw-table-header.entry.js +3 -3
  406. package/dist/esm/spw-table-row.entry.js +2 -2
  407. package/dist/esm/spw-table-sidebar.entry.js +2 -2
  408. package/dist/esm/spw-table.entry.js +3 -3
  409. package/dist/esm/spw-tabs-content.entry.js +1 -1
  410. package/dist/esm/spw-tabs-navigation-item.entry.js +2 -2
  411. package/dist/esm/spw-tabs-navigation.entry.js +2 -2
  412. package/dist/esm/spw-tabs.entry.js +2 -2
  413. package/dist/esm/spw-tag.entry.js +2 -2
  414. package/dist/esm/spw-text-field.entry.js +69 -10
  415. package/dist/esm/spw-textarea.entry.js +2 -2
  416. package/dist/esm/spw-tile-description.entry.js +2 -2
  417. package/dist/esm/spw-tile-title.entry.js +2 -2
  418. package/dist/esm/spw-tile.entry.js +2 -2
  419. package/dist/esm/spw-timeline-item.entry.js +3 -3
  420. package/dist/esm/spw-timeline.entry.js +3 -3
  421. package/dist/esm/spw-toast-controller.entry.js +2 -2
  422. package/dist/esm/spw-toast.entry.js +2 -2
  423. package/dist/esm/spw-toc-container.entry.js +2 -2
  424. package/dist/esm/spw-toc-navigation.entry.js +1 -1
  425. package/dist/esm/spw-toc.entry.js +2 -2
  426. package/dist/esm/spw-topbar.entry.js +2 -2
  427. package/dist/esm/spw-wizard-item.entry.js +2 -2
  428. package/dist/esm/spw-wizard.entry.js +2 -2
  429. package/dist/spw-stencil-library/{p-bc6051f9.entry.js → p-024a26e8.entry.js} +1 -1
  430. package/dist/spw-stencil-library/p-03addc15.entry.js +1 -0
  431. package/dist/spw-stencil-library/{p-fd8ae317.entry.js → p-05378ed8.entry.js} +1 -1
  432. package/dist/spw-stencil-library/p-0583eb9e.entry.js +1 -0
  433. package/dist/spw-stencil-library/{p-e88d700b.entry.js → p-074758e0.entry.js} +1 -1
  434. package/dist/spw-stencil-library/p-0fbae5ce.entry.js +1 -0
  435. package/dist/spw-stencil-library/{p-d9b44e31.entry.js → p-123bfbc0.entry.js} +1 -1
  436. package/dist/spw-stencil-library/{p-f5b3255d.entry.js → p-1337adf5.entry.js} +1 -1
  437. package/dist/spw-stencil-library/{p-e1b7565b.entry.js → p-170c4262.entry.js} +1 -1
  438. package/dist/spw-stencil-library/{p-231fbcc9.entry.js → p-1bdcb44c.entry.js} +1 -1
  439. package/dist/spw-stencil-library/p-1cd657f6.entry.js +1 -0
  440. package/dist/spw-stencil-library/p-1cd68465.entry.js +1 -0
  441. package/dist/spw-stencil-library/{p-68c8ab55.entry.js → p-1eb101b8.entry.js} +1 -1
  442. package/dist/spw-stencil-library/{p-ce6499ac.entry.js → p-2fb76b1e.entry.js} +1 -1
  443. package/dist/spw-stencil-library/{p-21ac7e70.entry.js → p-31035d04.entry.js} +1 -1
  444. package/dist/spw-stencil-library/{p-c84743b7.entry.js → p-311be1c9.entry.js} +1 -1
  445. package/dist/spw-stencil-library/{p-536082bb.entry.js → p-32340c8d.entry.js} +1 -1
  446. package/dist/spw-stencil-library/{p-bb50f1c6.entry.js → p-3374ac92.entry.js} +1 -1
  447. package/dist/spw-stencil-library/p-3703f96f.entry.js +1 -0
  448. package/dist/spw-stencil-library/{p-9bcade02.entry.js → p-38f286b7.entry.js} +1 -1
  449. package/dist/spw-stencil-library/{p-5b6d907b.entry.js → p-3cee0356.entry.js} +1 -1
  450. package/dist/spw-stencil-library/{p-fc3463d2.entry.js → p-404a11b2.entry.js} +1 -1
  451. package/dist/spw-stencil-library/{p-77c9e985.entry.js → p-4265f6e5.entry.js} +1 -1
  452. package/dist/spw-stencil-library/{p-a4336c0c.entry.js → p-4504a51e.entry.js} +1 -1
  453. package/dist/spw-stencil-library/{p-d8967e7d.entry.js → p-47ee3609.entry.js} +1 -1
  454. package/dist/spw-stencil-library/{p-bef41011.entry.js → p-49be0d9e.entry.js} +1 -1
  455. package/dist/spw-stencil-library/{p-017e66d3.entry.js → p-4a8766cc.entry.js} +1 -1
  456. package/dist/spw-stencil-library/{p-12e209dc.entry.js → p-4f163e66.entry.js} +1 -1
  457. package/dist/spw-stencil-library/{p-7d0fb1fc.entry.js → p-50bf3984.entry.js} +1 -1
  458. package/dist/spw-stencil-library/{p-33b37c7f.entry.js → p-543d3e89.entry.js} +1 -1
  459. package/dist/spw-stencil-library/{p-899045e0.entry.js → p-5631f2de.entry.js} +1 -1
  460. package/dist/spw-stencil-library/{p-1e21eb78.entry.js → p-56b73f04.entry.js} +1 -1
  461. package/dist/spw-stencil-library/{p-53b60fa8.entry.js → p-5ac48320.entry.js} +1 -1
  462. package/dist/spw-stencil-library/{p-ed5c4229.entry.js → p-66b30373.entry.js} +1 -1
  463. package/dist/spw-stencil-library/{p-428c33de.entry.js → p-699e435e.entry.js} +1 -1
  464. package/dist/spw-stencil-library/{p-8cfe9a5c.entry.js → p-6dabae01.entry.js} +1 -1
  465. package/dist/spw-stencil-library/{p-c195597b.entry.js → p-6ea95517.entry.js} +1 -1
  466. package/dist/spw-stencil-library/{p-937eeeeb.entry.js → p-79c6f599.entry.js} +1 -1
  467. package/dist/spw-stencil-library/{p-c7f64bb6.entry.js → p-79f8babf.entry.js} +1 -1
  468. package/dist/spw-stencil-library/{p-04208e52.entry.js → p-7a3131fa.entry.js} +1 -1
  469. package/dist/spw-stencil-library/{p-461f9d48.entry.js → p-7ae08cea.entry.js} +1 -1
  470. package/dist/spw-stencil-library/{p-3049cc60.entry.js → p-7fe2e659.entry.js} +1 -1
  471. package/dist/spw-stencil-library/{p-ce6317dd.entry.js → p-7ffe8116.entry.js} +1 -1
  472. package/dist/spw-stencil-library/{p-72d6b4cb.entry.js → p-82b5e1a1.entry.js} +1 -1
  473. package/dist/spw-stencil-library/{p-9911694d.entry.js → p-8901c312.entry.js} +1 -1
  474. package/dist/spw-stencil-library/{p-989fa86f.entry.js → p-8e8f253e.entry.js} +1 -1
  475. package/dist/spw-stencil-library/{p-eb71cf55.entry.js → p-910755a9.entry.js} +1 -1
  476. package/dist/spw-stencil-library/{p-1c25df2f.entry.js → p-94158325.entry.js} +1 -1
  477. package/dist/spw-stencil-library/{p-335b9ec2.entry.js → p-98f51dbc.entry.js} +1 -1
  478. package/dist/spw-stencil-library/{p-6c67f42e.entry.js → p-9b28f86c.entry.js} +1 -1
  479. package/dist/spw-stencil-library/{p-9f3abef5.entry.js → p-9ddfa4ef.entry.js} +1 -1
  480. package/dist/spw-stencil-library/{p-584f8ba5.entry.js → p-9ee8fd30.entry.js} +1 -1
  481. package/dist/spw-stencil-library/p-BRFNx2DL.js +1 -0
  482. package/dist/spw-stencil-library/p-BU-5xOtc.js +2 -0
  483. package/dist/spw-stencil-library/{p-4aa5759c.entry.js → p-a09e3914.entry.js} +1 -1
  484. package/dist/spw-stencil-library/{p-dd9a9e15.entry.js → p-a7b665db.entry.js} +2 -2
  485. package/dist/spw-stencil-library/{p-326f87ff.entry.js → p-a8d2e217.entry.js} +1 -1
  486. package/dist/spw-stencil-library/{p-ef377fc3.entry.js → p-ac6f9351.entry.js} +1 -1
  487. package/dist/spw-stencil-library/{p-862ebaf0.entry.js → p-afb26e73.entry.js} +1 -1
  488. package/dist/spw-stencil-library/{p-a77de6f3.entry.js → p-b15db228.entry.js} +1 -1
  489. package/dist/spw-stencil-library/{p-11039299.entry.js → p-b1b6f3cb.entry.js} +1 -1
  490. package/dist/spw-stencil-library/{p-2ef62013.entry.js → p-b218aeda.entry.js} +1 -1
  491. package/dist/spw-stencil-library/{p-12878c95.entry.js → p-b3152418.entry.js} +1 -1
  492. package/dist/spw-stencil-library/{p-6ac1cfdb.entry.js → p-b53d9fdb.entry.js} +1 -1
  493. package/dist/spw-stencil-library/{p-935f19f8.entry.js → p-bd26c928.entry.js} +1 -1
  494. package/dist/spw-stencil-library/p-be220196.entry.js +1 -0
  495. package/dist/spw-stencil-library/{p-b82b3af6.entry.js → p-bebfe3cd.entry.js} +1 -1
  496. package/dist/spw-stencil-library/{p-39cae775.entry.js → p-bfd908c9.entry.js} +1 -1
  497. package/dist/spw-stencil-library/{p-3694301c.entry.js → p-c41fe381.entry.js} +1 -1
  498. package/dist/spw-stencil-library/p-c5824697.entry.js +1 -0
  499. package/dist/spw-stencil-library/{p-92b69e67.entry.js → p-cdff9c53.entry.js} +1 -1
  500. package/dist/spw-stencil-library/{p-a574c1f7.entry.js → p-ce6af096.entry.js} +1 -1
  501. package/dist/spw-stencil-library/{p-d21b0833.entry.js → p-d2cabbe3.entry.js} +1 -1
  502. package/dist/spw-stencil-library/{p-5c58ca89.entry.js → p-da0a8272.entry.js} +1 -1
  503. package/dist/spw-stencil-library/{p-72e7b957.entry.js → p-daf0d53e.entry.js} +1 -1
  504. package/dist/spw-stencil-library/{p-eba031ea.entry.js → p-dc802ca2.entry.js} +1 -1
  505. package/dist/spw-stencil-library/{p-9eeeb874.entry.js → p-dcd5fa8d.entry.js} +1 -1
  506. package/dist/spw-stencil-library/{p-06e9e52e.entry.js → p-deca1884.entry.js} +1 -1
  507. package/dist/spw-stencil-library/{p-862856bf.entry.js → p-dee97ef5.entry.js} +1 -1
  508. package/dist/spw-stencil-library/{p-e53ff9dd.entry.js → p-df311267.entry.js} +1 -1
  509. package/dist/spw-stencil-library/{p-9397da21.entry.js → p-e0b50329.entry.js} +1 -1
  510. package/dist/spw-stencil-library/{p-acd69768.entry.js → p-e1c2b8f8.entry.js} +1 -1
  511. package/dist/spw-stencil-library/{p-1a85816b.entry.js → p-e4710721.entry.js} +1 -1
  512. package/dist/spw-stencil-library/{p-46256b79.entry.js → p-e5579295.entry.js} +1 -1
  513. package/dist/spw-stencil-library/{p-6b8ad6ec.entry.js → p-e7115b5c.entry.js} +1 -1
  514. package/dist/spw-stencil-library/{p-5779ce33.entry.js → p-e7dbe743.entry.js} +1 -1
  515. package/dist/spw-stencil-library/{p-8fc73ffb.entry.js → p-e86c4192.entry.js} +1 -1
  516. package/dist/spw-stencil-library/{p-f413fe3a.entry.js → p-e96bccc1.entry.js} +1 -1
  517. package/dist/spw-stencil-library/{p-c9cb2441.entry.js → p-eda2cbd9.entry.js} +1 -1
  518. package/dist/spw-stencil-library/{p-b460afdc.entry.js → p-f2aaa06a.entry.js} +1 -1
  519. package/dist/spw-stencil-library/{p-218ae66c.entry.js → p-f43e54c9.entry.js} +1 -1
  520. package/dist/spw-stencil-library/p-f7b152f7.entry.js +1 -0
  521. package/dist/spw-stencil-library/{p-3ad3b8d1.entry.js → p-f880da57.entry.js} +1 -1
  522. package/dist/spw-stencil-library/{p-fb0820ba.entry.js → p-fbbacf1e.entry.js} +1 -1
  523. package/dist/spw-stencil-library/p-ff26da9e.entry.js +1 -0
  524. package/dist/spw-stencil-library/spw-stencil-library.css +3 -3
  525. package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
  526. package/dist/stats.json +13077 -10025
  527. package/dist/types/components/spw-box/spw-box.d.ts +25 -0
  528. package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +12 -1
  529. package/dist/types/components/spw-date-picker/spw-date-picker.d.ts +1 -1
  530. package/dist/types/components/spw-grid/spw-grid.d.ts +2 -0
  531. package/dist/types/components/spw-hero/spw-hero.d.ts +9 -1
  532. package/dist/types/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.d.ts +37 -0
  533. package/dist/types/components/spw-lightbox/spw-lightbox.d.ts +69 -0
  534. package/dist/types/components/spw-search-field/spw-search-field.d.ts +7 -1
  535. package/dist/types/components/spw-select/spw-select.d.ts +1 -1
  536. package/dist/types/components/spw-slider/spw-slider.d.ts +14 -0
  537. package/dist/types/components/spw-text-field/spw-text-field.d.ts +6 -1
  538. package/dist/types/components/spw-textarea/spw-textarea.d.ts +1 -1
  539. package/dist/types/components.d.ts +507 -15
  540. package/dist/types/stories/components/spw-box/spw-box.stories.d.ts +10 -0
  541. package/dist/types/stories/components/spw-custom-select/spw-custom-select.stories.d.ts +1 -0
  542. package/dist/types/stories/organisms/spw-hero/spw-hero.stories.d.ts +3 -0
  543. package/hydrate/index.js +737 -164
  544. package/hydrate/index.mjs +737 -164
  545. package/package.json +1 -1
  546. package/dist/cjs/index-CX9is0m-.js +0 -3175
  547. package/dist/components/p-BO7xVlWo.js +0 -1
  548. package/dist/components/p-CANbQKSH.js +0 -1
  549. package/dist/components/p-D4YZDvw0.js +0 -1
  550. package/dist/components_vscode.json +0 -4824
  551. package/dist/esm/index-Dk6w7kAO.js +0 -3146
  552. package/dist/spw-stencil-library/p-17891524.entry.js +0 -1
  553. package/dist/spw-stencil-library/p-438fedef.entry.js +0 -1
  554. package/dist/spw-stencil-library/p-9e73b259.entry.js +0 -1
  555. package/dist/spw-stencil-library/p-BO7xVlWo.js +0 -1
  556. package/dist/spw-stencil-library/p-Dk6w7kAO.js +0 -2
  557. package/dist/spw-stencil-library/p-b4391972.entry.js +0 -1
  558. package/dist/spw-stencil-library/p-c452d5b0.entry.js +0 -1
  559. package/dist/spw-stencil-library/p-c8800fc9.entry.js +0 -1
  560. package/dist/spw-stencil-library/p-dd4fe0fb.entry.js +0 -1
@@ -35,7 +35,7 @@ export class SpwBreadcrumbItem {
35
35
  this.el.classList.add(`spw-breadcrumb-item--${this.surface}`);
36
36
  }
37
37
  render() {
38
- return (h(Host, { key: 'a07d5ca9937a66747f3a57b1aaec669cb8739852' }, h("div", { key: '59635c4d896f644da3fbac9e15f9318f667d1bde', role: "listitem", class: `spw-breadcrumb-item spw-breadcrumb-item--${this.surface}` }, this.href ? (h("spw-link", { href: this.href, surface: this.surface }, h("slot", null))) : (h("span", { class: "spw-breadcrumb-item__text", "aria-current": "page" }, h("slot", null))))));
38
+ return (h(Host, { key: '68661d36076f8e2ded2e0d3d438157e4bf5eeba7' }, h("div", { key: '9bbabf1f3d7a3d5655b08670e4f021adc48c50c3', role: "listitem", class: `spw-breadcrumb-item spw-breadcrumb-item--${this.surface}` }, this.href ? (h("spw-link", { href: this.href, surface: this.surface }, h("slot", null))) : (h("span", { class: "spw-breadcrumb-item__text", "aria-current": "page" }, h("slot", null))))));
39
39
  }
40
40
  static get is() { return "spw-breadcrumb-item"; }
41
41
  static get encapsulation() { return "shadow"; }
@@ -43,7 +43,7 @@ export class SpwBreadcrumb {
43
43
  [`spw-breadcrumb--font-size-${this.fontSize}`]: true,
44
44
  [`spw-breadcrumb--${this.variant}`]: true,
45
45
  };
46
- return (h(Host, { key: '74660bd9340877c273c3c9c8753a8472da5ce1f3' }, h("nav", { key: '2d224aa0a9a5bba745ebd677397436e49ddae4a5', "aria-label": this.accAriaLabel, class: elementClass }, h("div", { key: '147da2b5f6255a234bf4a6497cae2d468b5396c1', role: "list", class: "spw-breadcrumb__list" }, h("slot", { key: '2aa870373a7a87824fcff249a5de6d18f1675ed9' })))));
46
+ return (h(Host, { key: '72cd3232357b54b5fa081df2c605ea039b791fd7' }, h("nav", { key: '214606d2a4d13a2d629d9d88aa8a5182be5006c3', "aria-label": this.accAriaLabel, class: elementClass }, h("div", { key: '4ea1cedcd9fcd650e8198c1d613959bbee9f155e', role: "list", class: "spw-breadcrumb__list" }, h("slot", { key: '8cc4da01764ace42c2de886f453e3c322c2f0483' })))));
47
47
  }
48
48
  static get is() { return "spw-breadcrumb"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -401,13 +401,13 @@ template {
401
401
  --spw-button-text-decoration: none;
402
402
  }
403
403
 
404
- :host([is-full-width]) {
404
+ :host([is-full-width]:not([is-full-width=false])) {
405
405
  display: block;
406
406
  width: 100%;
407
407
  }
408
408
 
409
409
  @media (max-width: 767px) {
410
- :host([is-full-width-mobile]) {
410
+ :host([is-full-width-mobile]:not([is-full-width-mobile=false])) {
411
411
  display: block;
412
412
  width: 100%;
413
413
  }
@@ -109,7 +109,7 @@ export class SpwButton {
109
109
  'aria-label': this.accAriaLabel || this.name || slotText || 'Label',
110
110
  'aria-disabled': isDisabled ? 'true' : null,
111
111
  };
112
- return (h(TagType, Object.assign({ key: '316d05271e86ba2531e425a47dcd1721dc8fcf30' }, attrs, { ref: (el) => (this.nativeEl = el), class: this.elementClass, disabled: isDisabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick }, ariaAttributes), h("div", { key: '52f1bddd0970534a429c1648eb23e46a80f99d55', class: "spw-button__inner" }, h("div", { key: '4dfa05084188c5cb185479485a351f4a7bcdfce7', class: "spw-button__inner-text" }, iconPosition === 'left' && iconElement, !this.isIconOnly && h("slot", { key: 'c75a8b4617fa584a0080060132bd19d1b354c381' }), iconPosition === 'right' && iconElement)), h("spw-loading", { key: 'ee0ca7890a7f0bba52c3a5296d69f9fec2992ed7', text: "" })));
112
+ return (h(TagType, Object.assign({ key: 'af8ac1a8762a7da373014f322ee004297a8295f5' }, attrs, { ref: (el) => (this.nativeEl = el), class: this.elementClass, disabled: isDisabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick }, ariaAttributes), h("div", { key: 'dc40b975fc312377bcbdc89ee1e0da4707893b13', class: "spw-button__inner" }, h("div", { key: 'c5a397c631fd9984fca6f711b1cc890cf1516f79', class: "spw-button__inner-text" }, iconPosition === 'left' && iconElement, !this.isIconOnly && h("slot", { key: '92e532897aa0f62a2c1927026b15a7e81307256c' }), iconPosition === 'right' && iconElement)), h("spw-loading", { key: 'f7ae144bc041a0fa7d189a532a069cf7ed3e3aa5', text: "" })));
113
113
  }
114
114
  static get is() { return "spw-button"; }
115
115
  static get encapsulation() { return "shadow"; }
@@ -474,7 +474,7 @@ export class SpwButton {
474
474
  },
475
475
  "getter": false,
476
476
  "setter": false,
477
- "reflect": false,
477
+ "reflect": true,
478
478
  "attribute": "is-full-width",
479
479
  "defaultValue": "false"
480
480
  },
@@ -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: 'd9d47ad3877b66d9113b05050b68bf462b3ed017', class: "spw-card-content" }, this.tag && h("span", { key: '58af78f953da3fc3a6a5b1ce06563f4168353956', class: "spw-card-content__tag" }, this.tag), this.date && (h("time", { key: 'e34eac772387ff3d45eb52318009d6a79889525c', "date-time": this.date, class: "spw-card-content__date" }, formatDate(this.date))), h("slot", { key: '32b34558aa7762681135a1f978473c0d78529f3e' })));
5
+ return (h("div", { key: '66ceb610e7cb0b66d4aa8287f75f698840a50819', class: "spw-card-content" }, this.tag && h("span", { key: '51e3aa55120ee1ae99fc37843a8cd1d118418b63', class: "spw-card-content__tag" }, this.tag), this.date && (h("time", { key: 'e507fba4526c323f520378e711da8418c3c4b929', "date-time": this.date, class: "spw-card-content__date" }, formatDate(this.date))), h("slot", { key: '104ffaf30fd8c9a3b1d274141971a7c747894fad' })));
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: 'df99c81e5c3fcb16f6cca1ef6ca3bae5252ff582' }, h("div", { key: '88c59ddb64c3f5ff1b6138ef461c6117b1ba9c02', class: this.elementClass }, h("slot", { key: '81de29562bda2fe379e217feb457db94686504f1' }))));
16
+ return (h(Host, { key: '94f53e8e2d7a9c333ab2320ca3f37d13657fece3' }, h("div", { key: '84c391bea45ccec30809e488c8ff12d2e921edbb', class: this.elementClass }, h("slot", { key: 'd9b85510693fe08e8b9951ab7395dca3ebfaa0d9' }))));
17
17
  }
18
18
  static get is() { return "spw-card-excerpt"; }
19
19
  static get encapsulation() { return "shadow"; }
@@ -50,7 +50,7 @@ export class SpwCardImage {
50
50
  if (this.imageFit) {
51
51
  style['--spw-card-image-object-fit'] = this.imageFit;
52
52
  }
53
- return (h("div", { key: 'e1f2601d8b5dc598c49ea7f5551147425c6580ab', class: this.elementClass, style: style }, this.label && h("span", { key: '194e4631adabd4e0614987cbbbd5299a6969ee5a', class: "spw-card-image__label" }, this.label), h("slot", { key: '7de001872d27c26a234a63ebeff2aaa41df007a9' }), h("div", { key: 'a0ce9899948e03a8b845d41fe9c52a720209a1aa', class: "spw-card-image__icon" }, h("spw-icon", { key: 'b713d4db6e672f081587afc829b2040a5ac5a71e', icon: "fa-plus" }))));
53
+ return (h("div", { key: '4068c0b001f0e42e24f1310fbc1eac023e544b91', class: this.elementClass, style: style }, this.label && h("span", { key: '7413245a62cae16674a7dd0f5bd201b3011c9356', class: "spw-card-image__label" }, this.label), h("slot", { key: '39c2c73eaa4323575d525fe664203200f90dd8c1' }), h("div", { key: '0bd09043e8f6ed6fecbd3ebe3d8ba9b1bf683a59', class: "spw-card-image__icon" }, h("spw-icon", { key: '15c00a9fc5ece402f8a81297fadf83475dd027cf', icon: "fa-plus" }))));
54
54
  }
55
55
  static get is() { return "spw-card-image"; }
56
56
  static get encapsulation() { return "shadow"; }
@@ -12,7 +12,7 @@ export class SpwCardSubtagItem {
12
12
  };
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '309176a0b6b7137b9e20b206dd6d6adcc9bd0255' }, h("span", { key: 'f4cac2ead07892cd662d0d6b4e7a90f9599da6c3', class: this.elementClass, onClick: () => this.handleClick() }, h("slot", { key: '39e95ca92d83f970698ec818738a7e8063173555' }))));
15
+ return (h(Host, { key: 'b9cc69c396246f2312c714f9a92064051a2a7593' }, h("span", { key: '18ceda99d47d27ff2a465fde67d426590445d3d8', class: this.elementClass, onClick: () => this.handleClick() }, h("slot", { key: '332ea40deefbe4b854c4dbeb07eabbf0c964d61b' }))));
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: 'c23d50a99ea5e9368ea09cca0751bb5ce549b0b0' }, h("div", { key: '3c17f1cf831107c7ce5811fe468ea53ab10f7ce4', class: this.elementClass }, h("slot", { key: '60ac08dbac2350180fb8e3590e096dc24a641979' }))));
29
+ return (h(Host, { key: '932526d39865c60a98dc2c5b3a725d08116a8435' }, h("div", { key: '5127d371be9c14528be9afa1badbd1278b1ae40c', class: this.elementClass }, h("slot", { key: '06cb3b41922d0f2a4bcc1dee186a01b515581144' }))));
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: '4356c7ad9d0981bded5d7debabb2364ef36e8087', style: { '--spw-card-title-border-color': this.borderColor } }, h("h3", { key: '983eeef1db06a2eb721929a8d944b3e8301ab1f4', class: "spw-card-title" }, h("span", { key: 'f4fe9fa98b1a6800c45d1a9cae5a83ca29e2a49b', class: "spw-card-title__text" }, h("slot", { key: 'bf4b013493f59213aeead1db37aea00fcd186bea' })))));
8
+ return (h(Host, { key: '334d6835dd28e414809f7de8b2f6ad82708d88e6', style: { '--spw-card-title-border-color': this.borderColor } }, h("h3", { key: 'ff00413ca35178fc4cbf60a605fe350e1239e7b7', class: "spw-card-title" }, h("span", { key: '629c669018ecb697c63c9d938b46010c8706b6ba', class: "spw-card-title__text" }, h("slot", { key: 'dac76a2afd228e94dd389122d060304f165743ed' })))));
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: '1e65d1bc2a62ed8206c9c7410745ac59f7ec1e64', class: { '--is-full-height': this.fullHeight } }, h("article", { key: 'fc543b93cf3119a054f24efcfb4525f6ef3834b1', class: this.elementClass }, variant === 'event' && (h(TagType, Object.assign({ key: '9c0ad157e2d6f679256b0e041073f1471ad20b9f' }, attrs, { class: "spw-card__dates" }), dateStart && h("div", { key: '7262fcf08eb53b3f99875b02f400a36ffe742875', class: "spw-card__date-item" }, this.formatDate(dateStart)), dateEnd && h("div", { key: '41774d02ebe77b9a47c5ba42e27595f62d2c8fb1', class: "spw-card__date-item" }, this.formatDate(dateEnd)))), h(TagType, Object.assign({ key: '14c0955bc08e9d6843c52b0bd83d8f11311023a1' }, attrs, ariaAttributes, { class: "spw-card__link" }), h("slot", { key: '2304c972c6093712e23cd42c83bc2a539592d7ee' })))));
123
+ return (h(Host, { key: 'a82c4310865f2cc2ce5b446da38c81bfd2bb9678', class: { '--is-full-height': this.fullHeight } }, h("article", { key: 'fe460202702412232d7879197914999fafbbee50', class: this.elementClass }, variant === 'event' && (h(TagType, Object.assign({ key: '9b462c7cfb15fcbef342e40e707d53125ca0ac34' }, attrs, { class: "spw-card__dates" }), dateStart && h("div", { key: '596cb0847afb8da0b8211715ff5141b11a481ab4', class: "spw-card__date-item" }, this.formatDate(dateStart)), dateEnd && h("div", { key: '72b61e7173a55795a0139c4d73260b8c97af9213', class: "spw-card__date-item" }, this.formatDate(dateEnd)))), h(TagType, Object.assign({ key: '4e86eb1a2540512b44964d01cb53e3bc4aeebdde' }, attrs, ariaAttributes, { class: "spw-card__link" }), h("slot", { key: '4b81b7820f5c4ec19c507976c94c49aa74a53db2' })))));
124
124
  }
125
125
  static get is() { return "spw-card"; }
126
126
  static get encapsulation() { return "shadow"; }
@@ -75,7 +75,7 @@ export class SpwCheckbox {
75
75
  render() {
76
76
  const slot = this.el.innerHTML;
77
77
  const hasSlot = Boolean(slot);
78
- return (h("div", { key: '3c93d12219bc3702648fa36f23a3312dec0c7ef8', class: "spw-checkbox" }, h("input", { key: '5cc40881c8f867c64f3d9ddffc53da0f4dae1c23', 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: '3fa58e8024cf04c9b950635a4225594bf6da22d6', htmlFor: this.name, class: `spw-checkbox__label ${this.disabled ? 'spw-checkbox__label--disabled' : ''}`, onClick: e => this.handleCheckbox(e) }, h("slot", { key: 'fb47f566f0aa3e71acd1e08384a1af3f88a6263d' }))), h("div", { key: '117d66c56c2265875dac8a29ffb2901d1b5c86bc', 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: '606602da39984e48e875800f145180f5db8c9a35', icon: this.icon }))));
78
+ return (h("div", { key: 'c38a01b2898e391335b55297929b50109d892434', class: "spw-checkbox" }, h("input", { key: '2e696c49a36c92eed15f06e64b4a52722fab8062', 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: 'aaa5422e96bd40d32972996be19f389cdb276e70', htmlFor: this.name, class: `spw-checkbox__label ${this.disabled ? 'spw-checkbox__label--disabled' : ''}`, onClick: e => this.handleCheckbox(e) }, h("slot", { key: 'baa3fbdb4b6a17b91dba5c6077bd50a1f8207b61' }))), h("div", { key: '36a552efdb1a0afe004d8e518978175cfb788ccb', 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: '95cdfbb6513f76bb570e3707cf34cb8ccf8e1107', icon: this.icon }))));
79
79
  }
80
80
  static get is() { return "spw-checkbox"; }
81
81
  static get encapsulation() { return "shadow"; }
@@ -527,6 +527,8 @@ template {
527
527
  z-index: 11;
528
528
  width: 100%;
529
529
  margin-top: 1px;
530
+ display: flex;
531
+ align-items: center;
530
532
  }
531
533
  .spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search {
532
534
  top: 100%;
@@ -546,12 +548,17 @@ template {
546
548
  border: none;
547
549
  margin: 0;
548
550
  width: calc(100% - 30px);
551
+ background: transparent;
552
+ text-overflow: ellipsis;
549
553
  }
550
554
  .spw-custom-select--is-clear .spw-custom-select__search-input {
551
555
  width: calc(100% - 58px);
552
556
  }
553
- .spw-custom-select__search-input {
554
- text-overflow: ellipsis;
557
+ .spw-custom-select--show-create .spw-custom-select__search-input {
558
+ width: calc(100% - 66px);
559
+ }
560
+ .spw-custom-select--is-clear.spw-custom-select--show-create .spw-custom-select__search-input {
561
+ width: calc(100% - 94px);
555
562
  }
556
563
  .spw-custom-select__search-input:focus {
557
564
  outline: none;
@@ -562,9 +569,44 @@ template {
562
569
  }
563
570
  .spw-custom-select--is-opened.spw-custom-select--has-value .spw-custom-select__search-input {
564
571
  border: 1px solid var(--spw-color-themes-grey-grey-800);
565
- width: 100%;
572
+ flex: 1;
573
+ width: auto;
566
574
  border-radius: 3px;
567
575
  }
576
+ .spw-custom-select__create-btn {
577
+ flex-shrink: 0;
578
+ display: inline-flex;
579
+ align-items: center;
580
+ justify-content: center;
581
+ height: 28px;
582
+ padding: 0;
583
+ padding-top: 2px;
584
+ width: 28px;
585
+ line-height: 28px;
586
+ border: 1px solid var(--spw-color-themes-grey-grey-800);
587
+ border-radius: 100px;
588
+ background: #fff;
589
+ cursor: pointer;
590
+ color: var(--spw-color-themes-grey-grey-900);
591
+ font-size: 14px;
592
+ pointer-events: auto;
593
+ transition: background 0.15s ease, border-color 0.15s ease;
594
+ }
595
+ .spw-custom-select__create-btn:hover {
596
+ background: var(--spw-color-themes-grey-grey-200);
597
+ border-color: var(--spw-color-themes-grey-grey-900);
598
+ }
599
+ .spw-custom-select__create-btn:focus-visible {
600
+ outline: 3px solid white;
601
+ box-shadow: 0 0 0 6px black;
602
+ }
603
+ .spw-custom-select__create-btn--big {
604
+ width: 38px;
605
+ height: 38px;
606
+ border-radius: 4px;
607
+ margin-left: 4px;
608
+ padding-top: 0;
609
+ }
568
610
  .spw-custom-select__options {
569
611
  background-color: #fff;
570
612
  border: 1px solid var(--spw-color-themes-grey-grey-800);
@@ -637,6 +679,8 @@ template {
637
679
  color: var(--spw-color-themes-grey-grey-600);
638
680
  }
639
681
  .spw-custom-select__option {
682
+ display: flex;
683
+ align-items: center;
640
684
  border-bottom: 1px solid var(--spw-color-themes-grey-grey-900);
641
685
  padding: 12px;
642
686
  cursor: pointer;
@@ -658,6 +702,20 @@ template {
658
702
  .spw-custom-select__option--disabled:hover {
659
703
  background-color: transparent;
660
704
  }
705
+ .spw-custom-select__option--created {
706
+ justify-content: space-between;
707
+ }
708
+ .spw-custom-select__option-remove {
709
+ padding-left: 4px;
710
+ margin-left: auto;
711
+ flex-shrink: 0;
712
+ font-size: 14px;
713
+ color: var(--spw-color-themes-grey-grey-600);
714
+ transition: color 0.15s ease;
715
+ }
716
+ .spw-custom-select__option-remove:hover {
717
+ color: var(--spw-color-themes-grey-grey-900);
718
+ }
661
719
  .spw-custom-select__error {
662
720
  display: block;
663
721
  font-size: 12px;
@@ -54,6 +54,8 @@ export class SpwCustomSelect {
54
54
  this.isClear = false;
55
55
  /** Direction d'ouverture du dropdown */
56
56
  this.direction = 'auto';
57
+ /** Permet à l'utilisateur d'ajouter une option si elle n'existe pas dans la liste (nécessite isSearch) */
58
+ this.allowCreate = false;
57
59
  this.handleOtherSelectOpened = (event) => {
58
60
  if (event.detail.instance !== this.host && this.isOpen) {
59
61
  this.closeDropdown();
@@ -362,6 +364,43 @@ export class SpwCustomSelect {
362
364
  this.focusedOptionIndex = null;
363
365
  this.searchText = '';
364
366
  }
367
+ slugify(str) {
368
+ return this.normalizeString(str)
369
+ .replace(/\s+/g, '-')
370
+ .replace(/[^a-z0-9-]/g, '');
371
+ }
372
+ addCreatedOption(label) {
373
+ const trimmed = label.trim();
374
+ if (!trimmed)
375
+ return;
376
+ const value = this.slugify(trimmed);
377
+ const newOption = { label: trimmed, value, created: true };
378
+ this.parsedOptions = [...this.parsedOptions, newOption];
379
+ this.optionCreated.emit(newOption);
380
+ this.selectOption(value);
381
+ this.searchText = '';
382
+ }
383
+ removeCreatedOption(option, event) {
384
+ event.stopPropagation();
385
+ // Désélectionne si l'option était sélectionnée
386
+ if (this.multiple) {
387
+ const idx = this.internalValue.findIndex(val => String(val) === String(option.value));
388
+ if (idx > -1) {
389
+ this.internalValue = [...this.internalValue.slice(0, idx), ...this.internalValue.slice(idx + 1)];
390
+ this.value = this.internalValue;
391
+ this.internals.setFormValue(this.getFormValue());
392
+ this.valueChanged.emit(this.internalValue);
393
+ }
394
+ }
395
+ else if (String(this.internalValue) === String(option.value)) {
396
+ this.internalValue = '';
397
+ this.value = '';
398
+ this.internals.setFormValue(this.getFormValue());
399
+ this.valueChanged.emit(this.internalValue);
400
+ }
401
+ this.parsedOptions = this.parsedOptions.filter(o => String(o.value) !== String(option.value));
402
+ this.optionRemoved.emit(option);
403
+ }
365
404
  handleClear(event) {
366
405
  event.stopPropagation();
367
406
  this.resetSelect();
@@ -468,6 +507,7 @@ export class SpwCustomSelect {
468
507
  }
469
508
  }
470
509
  get elementClass() {
510
+ const showCreate = this.showCreateButton();
471
511
  return {
472
512
  'spw-custom-select': true,
473
513
  [`spw-custom-select--${this.size}`]: true,
@@ -480,6 +520,7 @@ export class SpwCustomSelect {
480
520
  'spw-custom-select--is-searchable': this.isSearch,
481
521
  'spw-custom-select--not-searchable': !this.isSearch,
482
522
  'spw-custom-select--is-clear': this.isClear && (this.hasSelectedValue || !!this.searchText),
523
+ 'spw-custom-select--show-create': showCreate,
483
524
  };
484
525
  }
485
526
  normalizeString(str) {
@@ -532,14 +573,29 @@ export class SpwCustomSelect {
532
573
  return false;
533
574
  return true;
534
575
  }
576
+ showCreateButton() {
577
+ if (!this.allowCreate || !this.isSearch || !this.searchText.trim())
578
+ return false;
579
+ const normalized = this.normalizeString(this.searchText.trim());
580
+ return !this.parsedOptions.some(o => this.normalizeString(o.label) === normalized);
581
+ }
535
582
  render() {
536
583
  const filteredOptions = this.getFilteredOptions();
537
584
  const showPlaceholder = this.showPlaceholder();
538
- return (h("div", { key: '90e9ea2c24e199fd3c88f599154845da1ec2d79b', class: this.elementClass, ref: el => (this.host = el) }, this.label && (h("spw-field-label", { key: 'dac0b1830b366bcc713e15f28ef43981a5d5c946', 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: 'e3436cdb0e98e1f697e23c92170db014ff732b43', class: "spw-custom-select__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '9b42be36b6f9a2955b44da1f4498b842d58d4e34', class: "spw-custom-select__wrapper" }, h("div", { key: 'c5cca55daefb235da7b75c9701857d21ce82000a', 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: 'd1c67ff5e7bc7ec049a4d87e1bffd73e66aec7aa', class: "spw-custom-select__selected" }, this.isSearchVisible() && (h("div", { key: 'd92f3a98a85b593370feaba84b63ab566e23cb5e', class: "spw-custom-select__search" }, h("input", { key: 'ca4ce948648c06cebde704d9e0e248e06bf96ccb', class: "spw-custom-select__search-input", placeholder: this.searchPlaceholder, onInput: event => this.handleSearchInput(event), value: this.searchText }))), showPlaceholder && h("span", { key: '2abe144800c9f6d58f5dfa380568a5fefea5d9a8' }, this.placeholder), this.multiple && this.internalValue.length > 0 && (h("div", { key: 'e21d7ec421c049072b9cc408c10ae9e6a51ac816', class: "spw-custom-select__selected-items" }, this.internalValue.map(val => {
585
+ const showCreate = this.showCreateButton();
586
+ return (h("div", { key: '4bb22979651b6946dd66fc9844f205e59d0a5411', class: this.elementClass, ref: el => (this.host = el) }, this.label && (h("spw-field-label", { key: '4d9c26597da16ec05bc8aee0c2a03413ea17ff50', 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: '85594d2693007a09d2d1b70b9f5bc61056548ee2', class: "spw-custom-select__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '53fe8200e2e8ec025c9148bb76a4bd7418068513', class: "spw-custom-select__wrapper" }, h("div", { key: '79b757cffef9f53eb738d2e11aee592e63211841', 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: 'c502d3c270203b548990cfab7d45394557314334', class: "spw-custom-select__selected" }, this.isSearchVisible() && (h("div", { key: '9134c7f87988d3f0efb6c8095646bb6a1ca8ebd0', class: "spw-custom-select__search" }, h("input", { key: '0a5b873ac75d71f480e1209184fa0e63552632b9', class: "spw-custom-select__search-input", placeholder: this.searchPlaceholder, onInput: event => this.handleSearchInput(event), value: this.searchText }), showCreate && this.isOpen && this.hasSelectedValue && (h("button", { key: '7ecf48c56ddb8a7918a38b37b0dbfb47994fc0af', class: "spw-custom-select__create-btn spw-custom-select__create-btn--big", type: "button", onMouseDown: (event) => {
587
+ event.preventDefault();
588
+ event.stopPropagation();
589
+ this.addCreatedOption(this.searchText);
590
+ } }, h("spw-icon", { key: '078c09832bcce6f476a83be55bc54e4cd19223bc', icon: "fa-plus" }))))), showPlaceholder && h("span", { key: '29e59d519f39c3dcafe60a169b2a01adee8904f7' }, this.placeholder), this.multiple && this.internalValue.length > 0 && (h("div", { key: '205e9ebc3bf531b76fc0abdbb760c214a08b6623', class: "spw-custom-select__selected-items" }, this.internalValue.map(val => {
539
591
  var _a;
540
592
  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 :
541
593
  _a.label, h("spw-icon", { icon: "fa-times", class: "spw-custom-select__deselect-icon", onClick: event => this.selectOption(val, event) })));
542
- }))), !this.multiple && h("span", { key: '00e929e2885410304cab3b22398c9c373073ca6f' }, this.getSelectedLabels()))), h("div", { key: '7b40dc3276b8497a96690424e8338cdcc734d581', class: "spw-custom-select__icons" }, this.isClear && (this.hasSelectedValue || !!this.searchText) && (h("span", { key: '7983ec19d8152fd891f82591f7b56ded9d8301e8', class: "spw-custom-select__clear", onClick: event => this.handleClear(event) }, h("spw-icon", { key: '6b8693b534b39b43e83cea7e8822feb9b956a768', icon: "fa-xmark" }))), h("div", { key: 'd56d83f20216fbccdc403811637c76039c6b5891', class: "spw-custom-select__arrow" }, h("spw-icon", { key: 'c95a0208ac8b9c53f314ab349074142df85cfaaa', icon: this.isOpen ? 'fa-chevron-up' : 'fa-chevron-down' }))), this.isOpen && (h("div", { key: 'e967118beb739a3601b434fcbb97056426eac0a8', class: {
594
+ }))), !this.multiple && h("span", { key: '67eb1e59a69443c63cfe030421a45dd9ed98d626' }, this.getSelectedLabels()))), h("div", { key: 'd36ae8e7dbcbdf5d3895482bf94ce352ccb2deb2', class: "spw-custom-select__icons" }, showCreate && !(this.isOpen && this.hasSelectedValue) && (h("button", { key: 'd5ab27383e5915b3a6a23e2a4c233e37b56bdcda', class: "spw-custom-select__create-btn", type: "button", onMouseDown: (event) => {
595
+ event.preventDefault();
596
+ event.stopPropagation();
597
+ this.addCreatedOption(this.searchText);
598
+ } }, h("spw-icon", { key: '00e486f257d3576fe5a481320685c0f73ac76b43', icon: "fa-plus" }))), this.isClear && (this.hasSelectedValue || !!this.searchText) && (h("span", { key: '522cc58133eebfc86d8f64ab549905f4d7dc85ea', class: "spw-custom-select__clear", onClick: event => this.handleClear(event) }, h("spw-icon", { key: '4afc256de08bae62efde4d0903a2fa2de4438d89', icon: "fa-xmark" }))), h("div", { key: 'ae0fb99288bad447c52288df66afdcf042c139d8', class: "spw-custom-select__arrow" }, h("spw-icon", { key: '2166910463c05b09b845eab799fbb13b63bcc06f', icon: this.isOpen ? 'fa-chevron-up' : 'fa-chevron-down' }))), this.isOpen && (h("div", { key: '2331976d5867174852a1394987bf6bdf8545a3f2', class: {
543
599
  'spw-custom-select__options': true,
544
600
  [`spw-custom-select__options--${this.dropdownDirection}`]: true,
545
601
  'spw-custom-select__options--fixed': this.fixedDropdown,
@@ -550,14 +606,15 @@ export class SpwCustomSelect {
550
606
  left: `${this.dropdownPosition.left}px`,
551
607
  width: `${this.dropdownPosition.width}px`,
552
608
  }
553
- : {} }, h("div", { key: 'aebe7b9b720af8d5e008e3d611940bcc24a9535d', class: "spw-custom-select__options-list" }, !!filteredOptions.length && (h("ul", { key: '3446e6c6182941c087467113e08484ad69365fed' }, filteredOptions.map((option, index) => (h("li", { class: {
609
+ : {} }, h("div", { key: '43dd9a1b026ff6aac3a4d309e4f4e950156566ef', class: "spw-custom-select__options-list" }, !!filteredOptions.length && (h("ul", { key: 'dc42399871b8b4286a440a9c5da7c618301ca330' }, filteredOptions.map((option, index) => (h("li", { class: {
554
610
  'spw-custom-select__option': true,
555
611
  'spw-custom-select__option--selected': this.multiple
556
612
  ? this.internalValue.some(val => String(val) === String(option.value))
557
613
  : option.value === this.internalValue,
558
614
  'spw-custom-select__option--focused': index === this.focusedOptionIndex,
559
615
  'spw-custom-select__option--disabled': option.disabled,
560
- }, 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: 'cf38b5d9a54ba2db0fddee0c722be0078795623f', class: "spw-custom-select__no-results" }, this.noResultsText)), this.hasSlottedFooter && (h("div", { key: 'dfb7fd80d642d9c0a0409d5fdde5f42717d590f4', class: "spw-custom-select__options-footer" }, h("slot", { key: '7a4c4c58b8703e01503b370df7a34f8b0aa93f46', name: "footer" })))))), this.renderErrorMessage(), this.renderHintMessage(), this.renderSuccessMessage(), this.renderWarningMessage()));
616
+ 'spw-custom-select__option--created': !!option.created,
617
+ }, 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, option.created && (h("spw-icon", { class: "spw-custom-select__option-remove", icon: "fa-trash", onClick: (event) => this.removeCreatedOption(option, event) }))))))), !filteredOptions.length && h("p", { key: '16b8fc9d36f71937588d8f57ddf593380766a5a8', class: "spw-custom-select__no-results" }, this.noResultsText)), this.hasSlottedFooter && (h("div", { key: 'c273c08ab20c4d80b26045fba0bc8abca5564851', class: "spw-custom-select__options-footer" }, h("slot", { key: 'f54f6b94a36cc064f8820a6892cfb02b05e039b1', name: "footer" })))))), this.renderErrorMessage(), this.renderHintMessage(), this.renderSuccessMessage(), this.renderWarningMessage()));
561
618
  }
562
619
  static get is() { return "spw-custom-select"; }
563
620
  static get encapsulation() { return "shadow"; }
@@ -827,7 +884,7 @@ export class SpwCustomSelect {
827
884
  "optional": true,
828
885
  "docs": {
829
886
  "tags": [],
830
- "text": "Texte d'assistance \u00E0 afficher sous le champ"
887
+ "text": "Texte d'assistance \u00E0 afficher sous le label"
831
888
  },
832
889
  "getter": false,
833
890
  "setter": false,
@@ -1169,6 +1226,26 @@ export class SpwCustomSelect {
1169
1226
  "reflect": false,
1170
1227
  "attribute": "direction",
1171
1228
  "defaultValue": "'auto'"
1229
+ },
1230
+ "allowCreate": {
1231
+ "type": "boolean",
1232
+ "mutable": false,
1233
+ "complexType": {
1234
+ "original": "boolean",
1235
+ "resolved": "boolean",
1236
+ "references": {}
1237
+ },
1238
+ "required": false,
1239
+ "optional": true,
1240
+ "docs": {
1241
+ "tags": [],
1242
+ "text": "Permet \u00E0 l'utilisateur d'ajouter une option si elle n'existe pas dans la liste (n\u00E9cessite isSearch)"
1243
+ },
1244
+ "getter": false,
1245
+ "setter": false,
1246
+ "reflect": false,
1247
+ "attribute": "allow-create",
1248
+ "defaultValue": "false"
1172
1249
  }
1173
1250
  };
1174
1251
  }
@@ -1201,6 +1278,48 @@ export class SpwCustomSelect {
1201
1278
  "resolved": "(string | number)[] | number | string",
1202
1279
  "references": {}
1203
1280
  }
1281
+ }, {
1282
+ "method": "optionCreated",
1283
+ "name": "optionCreated",
1284
+ "bubbles": true,
1285
+ "cancelable": true,
1286
+ "composed": true,
1287
+ "docs": {
1288
+ "tags": [],
1289
+ "text": "\u00C9v\u00E9nement \u00E9mis lorsqu'une nouvelle option est cr\u00E9\u00E9e via le champ de recherche"
1290
+ },
1291
+ "complexType": {
1292
+ "original": "SelectItem",
1293
+ "resolved": "SelectItem",
1294
+ "references": {
1295
+ "SelectItem": {
1296
+ "location": "local",
1297
+ "path": "/Users/pectonite/Desktop/SPW/spw-design-system/packages/spw-stencil-library/src/components/spw-custom-select/spw-custom-select.tsx",
1298
+ "id": "src/components/spw-custom-select/spw-custom-select.tsx::SelectItem"
1299
+ }
1300
+ }
1301
+ }
1302
+ }, {
1303
+ "method": "optionRemoved",
1304
+ "name": "optionRemoved",
1305
+ "bubbles": true,
1306
+ "cancelable": true,
1307
+ "composed": true,
1308
+ "docs": {
1309
+ "tags": [],
1310
+ "text": "\u00C9v\u00E9nement \u00E9mis lorsqu'une option cr\u00E9\u00E9e est supprim\u00E9e"
1311
+ },
1312
+ "complexType": {
1313
+ "original": "SelectItem",
1314
+ "resolved": "SelectItem",
1315
+ "references": {
1316
+ "SelectItem": {
1317
+ "location": "local",
1318
+ "path": "/Users/pectonite/Desktop/SPW/spw-design-system/packages/spw-stencil-library/src/components/spw-custom-select/spw-custom-select.tsx",
1319
+ "id": "src/components/spw-custom-select/spw-custom-select.tsx::SelectItem"
1320
+ }
1321
+ }
1322
+ }
1204
1323
  }];
1205
1324
  }
1206
1325
  static get methods() {
@@ -908,7 +908,7 @@ export class SpwDatePicker {
908
908
  'spw-date-picker--is-clear': this.isClearIconVisible,
909
909
  };
910
910
  const errorMessage = this.error || this.internalError;
911
- return (h(Host, { key: '32fda3ad55541f1f01f642767f858d34d6a0024e' }, h("div", { key: 'a0faea1339d67bcb275aeee5376931074ccc2868', class: containerClass }, this.label && (h("spw-field-label", { key: '1863da889dcb1b82a0d49f69be999b667fb5c91e', 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: 'a5aa7018207c305640ee07dc92b251f2cd439565', class: "spw-date-picker__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '5a23a4432a0a0ed30594fd0845f983f3ec6cbf88', class: "spw-date-picker__input-container" }, h("input", { key: '04a9b370e0ffb263aa798cc6b6d084dcace2b5a2', 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: 'a635b1611eb9183972ee38174e828d08893193eb', class: "spw-date-picker__icons" }, this.isClearIconVisible && (h("span", { key: 'd64c8fb2c387354808a701f8a3872107a87a65ad', class: "spw-date-picker__clear", onClick: this.handleClear }, h("spw-icon", { key: 'ae39233eec8f792eef57cb8fa29b86520d695e78', class: "spw-date-picker__icon spw-date-picker__icon--clear", icon: "fa-xmark" }))), h("span", { key: 'ff01a8db8582dd9ce909609524fc481bfb3be24a', class: "spw-date-picker__calendar-trigger", onMouseDown: this.handleCalendarIconMouseDown, onClick: this.handleCalendarIconClick }, h("spw-icon", { key: 'c8ffae53c5dad546abf185e63ab6210801d7f31f', icon: "fa-calendar", variant: "fa-regular", class: "spw-date-picker__icon spw-date-picker__icon--calendar" })))), this.error && (h("spw-field-message", { key: '0605af92c5d84c8d6feab3a0425f49c3f2945b75', variant: "error", showIcon: this.showErrorIcon }, this.error)), this.hint && (h("spw-field-message", { key: '38acac99be7fc4485a11b5b08f98c8f7fd480b4d', variant: "hint", showIcon: this.showHintIcon }, this.hint)), this.success && (h("spw-field-message", { key: '3b7205d8e7586167766ec97f444f2f8aff8c5aeb', variant: "success", showIcon: this.showSuccessIcon }, this.success)), this.warning && (h("spw-field-message", { key: '5e0c60fc788013422d0f25de6ee178a0d64a77c2', variant: "warning", showIcon: this.showWarningIcon }, this.warning)))));
911
+ return (h(Host, { key: '532d487da5196336bc86cfa98eb2b0cf4812fdfa' }, h("div", { key: 'bd0182c0dc06cf9a5ea846513bee1960c4a6b567', class: containerClass }, this.label && (h("spw-field-label", { key: 'aa8311ff9e5d1214a8b83613b01dd0fe75981542', 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: 'ddf1fee6b4ac1e18c8bc6ddf433dcb58d07bfb87', class: "spw-date-picker__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '8445c6f924ce87b0a630b55d15bcf439f7ae208b', class: "spw-date-picker__input-container" }, h("input", { key: '2dccede48303f05eba9fa4f37cb179f6dd8eda65', 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: '0d2a94739a90dce420005bab0639cadb29444939', class: "spw-date-picker__icons" }, this.isClearIconVisible && (h("span", { key: '37b50fb2c43d2ca1be2a39b7ce9dc65e84b1b69c', class: "spw-date-picker__clear", onClick: this.handleClear }, h("spw-icon", { key: '4668571785391971ff209c46bf74f71306487f28', class: "spw-date-picker__icon spw-date-picker__icon--clear", icon: "fa-xmark" }))), h("span", { key: '14714c220f11d9b223a69354725bddbe36eed30a', class: "spw-date-picker__calendar-trigger", onMouseDown: this.handleCalendarIconMouseDown, onClick: this.handleCalendarIconClick }, h("spw-icon", { key: '67ccce624a7aed6324d48be9d3ed7c0adbf2cedf', icon: "fa-calendar", variant: "fa-regular", class: "spw-date-picker__icon spw-date-picker__icon--calendar" })))), this.error && (h("spw-field-message", { key: '7d138427f2e0a4c9863a3f041006cb0113caf038', variant: "error", showIcon: this.showErrorIcon }, this.error)), this.hint && (h("spw-field-message", { key: 'fd3265202be2901f1ad32e8343cfd2193366d201', variant: "hint", showIcon: this.showHintIcon }, this.hint)), this.success && (h("spw-field-message", { key: '085721c834bf6adfbd45ff15d3bdaaf1b4af72fb', variant: "success", showIcon: this.showSuccessIcon }, this.success)), this.warning && (h("spw-field-message", { key: '4222fb895d724619a4be4faad50d884ef571e1c9', variant: "warning", showIcon: this.showWarningIcon }, this.warning)))));
912
912
  }
913
913
  static get is() { return "spw-date-picker"; }
914
914
  static get encapsulation() { return "shadow"; }
@@ -1351,7 +1351,7 @@ export class SpwDatePicker {
1351
1351
  "optional": true,
1352
1352
  "docs": {
1353
1353
  "tags": [],
1354
- "text": "Texte d'assistance \u00E0 afficher sous le champ de saisie"
1354
+ "text": "Texte d'assistance \u00E0 afficher sous le label"
1355
1355
  },
1356
1356
  "getter": false,
1357
1357
  "setter": false,
@@ -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: 'c8265cb8d5ef7243be690ea271f3c8c579bb083c' }, h("div", { key: '8b2873be6609a2ad2e786208cfea172d881f9756', class: "spw-dropdown-container" }, h("slot", { key: 'cd56093ab34e849d28743645757378822849f802' }))));
4
+ return (h(Host, { key: '79dc2cc099719ae4705b6b17fa914f137145bbf4' }, h("div", { key: 'e91b67898f25f782a67681a03c5a7ab6c2ed58a1', class: "spw-dropdown-container" }, h("slot", { key: 'c3ddaa4ae9f44d5e90cd1e26d93297935910be85' }))));
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: '5e2c9770daee538a1f0495d289f4eccdacdbe72c' }, h(Tag, { key: '412276eb62185db2e27421286235cc2970a837c5', class: this.classes, href: this.href, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.handleItemClick }, this.icon && (h("div", { key: '1ad97be19239600527f1b6149d156091fc01fd92', class: "spw-dropdown-item__icon" }, h("spw-icon", { key: 'aec2cb8b6c404263a99b9e67ad356a63df619428', variant: this.iconVariant, icon: this.icon }))), h("div", { key: '44b396930499798cff1acc822efe7cb790ac5b90', class: "spw-dropdown-item__content" }, h("div", { key: '7f36c99ebb87ee48c0dcc6979a862e30c2bf0bcf', class: "spw-dropdown-item__label" }, h("slot", { key: 'cb64dd00921722adea1cc3806a6a5607d16270bd' })), this.hasSubItems && (h("div", { key: '282fb73f722d57cc48ce45cd1d789a0dc3772175', class: toggleClasses, onClick: this.handleToggleSubItems }, h("spw-icon", { key: '788fc6c235c3471e0fafa52a4a97eb26b08adb50', icon: "fa-chevron-down" }))))), this.hasSubItems && (h("div", { key: 'd9401d49db1fb458b53a7e115c96e5c18ccd6ad5', class: "spw-dropdown-item__sub-items", style: { display: this.subItemsOpen ? 'block' : 'none' } }, h("slot", { key: '2f44d2f20d907c1d3883a1d9fb36d39001f66faf', name: "sub-items" })))));
72
+ return (h(Host, { key: '64d51205ea8e220d8d3d22c6163ffae1def82892' }, h(Tag, { key: '5cfb7b0bd5d57228f49efb175bfa01c2b1678c8c', class: this.classes, href: this.href, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.handleItemClick }, this.icon && (h("div", { key: 'b397503e12d41f4b3f339d73aa014942ee94b70e', class: "spw-dropdown-item__icon" }, h("spw-icon", { key: '0545ea4d6f163007279e315bbb0fd80c6f5e22a2', variant: this.iconVariant, icon: this.icon }))), h("div", { key: 'eff42c92481ce24a1807f7eb97ce0df4092b3310', class: "spw-dropdown-item__content" }, h("div", { key: '8735e69e60341295fdb844af88704ce040aa0cd8', class: "spw-dropdown-item__label" }, h("slot", { key: '8f186c331628491298a61ca203e1ef1d9f80825e' })), this.hasSubItems && (h("div", { key: '91c60f4dd34200d5e575a7cec98e6f690c6195ef', class: toggleClasses, onClick: this.handleToggleSubItems }, h("spw-icon", { key: 'c563396ee0b6e27f81be1466f2d9c7b8f03b9c70', icon: "fa-chevron-down" }))))), this.hasSubItems && (h("div", { key: '41325cd7b9755084a80ed15ebb7e505a1d5ca0a0', class: "spw-dropdown-item__sub-items", style: { display: this.subItemsOpen ? 'block' : 'none' } }, h("slot", { key: '927d7b7b3b9206ea64a4b930d3f91d76d49128e1', name: "sub-items" })))));
73
73
  }
74
74
  static get is() { return "spw-dropdown-item"; }
75
75
  static get originalStyleUrls() {
@@ -154,7 +154,7 @@ export class SpwDropdown {
154
154
  dropdown.style.visibility = 'visible';
155
155
  }
156
156
  render() {
157
- return (h("div", { key: '06cc46ab430b0ac8d83e11822a5e5820056b0cb9', class: "spw-dropdown__trigger", onClick: () => (this.open = !this.open) }, h("slot", { key: '9f134f9f6f0a003314337670053fba654062b6f6' })));
157
+ return (h("div", { key: 'f14c3090969b4a5a84e343f6aacfeb0616afd36a', class: "spw-dropdown__trigger", onClick: () => (this.open = !this.open) }, h("slot", { key: '0cfd75ddf8a40ebc2090ca1c5959d27851352d00' })));
158
158
  }
159
159
  static get is() { return "spw-dropdown"; }
160
160
  static get encapsulation() { return "shadow"; }
@@ -21,7 +21,7 @@ export class SpwFieldLabel {
21
21
  return !!(this.tooltipText || this.tooltipTitle);
22
22
  }
23
23
  render() {
24
- return (h(Host, { key: 'fc516da55de8afb4ca293689bb6c1b3aa2f9b70d' }, h("label", { key: '9131274cdb4dc74d55b04354077b25c032fa7e00', class: "spw-field-label", htmlFor: this.name, onClick: this.handleClick }, h("span", { key: '611cb1086ddb380e1f25a353ff2ce49815926325', class: "spw-field-label__text" }, this.label), this.hasTooltip && (h("spw-tooltip", { key: '632de96983eb0d5ad8ffe0de00e09479c55d8793', tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, maxWidth: this.tooltipMaxWidth, direction: this.tooltipDirection, cursor: this.tooltipCursor }, h("spw-icon", { key: '9dc18189642c2af5ec2a4b24a5c5b290ecfee434', variant: "fa-regular", icon: "fa-circle-info", class: "spw-field-label__icon" }))), this.required && h("span", { key: '3711c0074f9a7610918b4241cf0f12cb53b013df', class: "spw-field-label__required" }, "*"))));
24
+ return (h(Host, { key: 'cb454d092cd78fb71bf1167a4e387ad9fd416d69' }, h("label", { key: '641218aa7a026e9dd5805d51926b88ae94692926', class: "spw-field-label", htmlFor: this.name, onClick: this.handleClick }, h("span", { key: '53de42be7abcc40b2418489bc13bcd449dcb342f', class: "spw-field-label__text" }, this.label), this.hasTooltip && (h("spw-tooltip", { key: 'c1f0fdbb0e3742a3f303846b89078a727d69bc04', tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, maxWidth: this.tooltipMaxWidth, direction: this.tooltipDirection, cursor: this.tooltipCursor }, h("spw-icon", { key: '01b65ea5af7cbf012902ee0b9d50bede9451d0aa', variant: "fa-regular", icon: "fa-circle-info", class: "spw-field-label__icon" }))), this.required && h("span", { key: '5eb8fd2d808a54133da51de5eaa7f7277d08c393', 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: 'bc9fe4ec26a539bec0cdcad49829d600806e9fa6' }, h("div", { key: '4f32f686ed280899cffabbcd5ecd0bdae5d4ab5e', class: this.elementClass }, this.showIcon && (h("div", { key: 'c69d9d3bf3f77a2d7ca84e09c9ce6175f62533bc', class: "spw-field-message__icon" }, h("spw-icon", { key: '0d0534dbf2b46472c166f888edc27815f70f84b0', icon: this.variantIcon }))), h("span", { key: '6a49b7f20237bf6e23afe6277dc156176dc00812', class: "spw-field-message__text" }, h("slot", { key: '70137c786dd7e303b1fa4bb2634066aed6d3f333' })))));
28
+ return (h(Host, { key: 'c37e4fcd1a62f74a582ea34b5ad35405d1fdfe15' }, h("div", { key: 'dec558441b64aaaba6fd7ce8501be8c674ade97d', class: this.elementClass }, this.showIcon && (h("div", { key: '867ccb3a82414bc19f8f0e59857b879d615f2d69', class: "spw-field-message__icon" }, h("spw-icon", { key: '2fde1c1acdcbe924bf3448355a17433540ff6a59', icon: this.variantIcon }))), h("span", { key: '0c9b68f44ec54d00aa6ee52b007a3c34e721ebdc', class: "spw-field-message__text" }, h("slot", { key: 'f2fb8c461e7b9b81d5b8a96a2fbcdf3373e66aea' })))));
29
29
  }
30
30
  static get is() { return "spw-field-message"; }
31
31
  static get encapsulation() { return "shadow"; }
@@ -252,10 +252,10 @@ export class SpwFileUpload {
252
252
  render() {
253
253
  const inputTextNoDrop = this.multiple ? this.textChooseFiles : this.textChooseFile;
254
254
  const inputTextDrop = this.multiple ? this.textDropFiles : this.textDropFile;
255
- return (h("div", { key: '119fcdb457be0960d4e09962ff69b13fd62ae107', class: this.elementClass, onDragOver: this.handleDragOver.bind(this), onDragLeave: this.handleDragLeave.bind(this), onDrop: this.handleDrop.bind(this) }, h("input", { key: 'bc5ff74a94e3c017f8a420b839d7fd2e68fa778b', 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, " ", h("span", { class: "spw-file-upload__dropzone-link" }, this.textChooseFromComputer))) : (h("spw-button", { variant: "secondary", onClick: () => !this.disabled && !this.isMaxFilesReached && this.inputElement.click(), disabled: this.disabled || this.isMaxFilesReached }, inputTextNoDrop)), h("div", { key: '049a263dbc1122e7c0d2d42d2db472f2b08c0ee6', class: "spw-file-upload__hints" }, this.hintsMessages.length > 0 && (h("ul", { key: '970ebda1d832282f39d1c8fd7ce06cbca535d208' }, this.hintsMessages.map((message, index) => (h("li", { key: index }, message)))))), h("div", { key: '6ad016fe3698c91c45a3ff80dd755d5da8b21fde', 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 => {
255
+ return (h("div", { key: '095815bbee9c872183a2341238301ac432ce869d', class: this.elementClass, onDragOver: this.handleDragOver.bind(this), onDragLeave: this.handleDragLeave.bind(this), onDrop: this.handleDrop.bind(this) }, h("input", { key: '726cfe005146924eaf46928a526d82e82ddab1c3', 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, " ", h("span", { class: "spw-file-upload__dropzone-link" }, this.textChooseFromComputer))) : (h("spw-button", { variant: "secondary", onClick: () => !this.disabled && !this.isMaxFilesReached && this.inputElement.click(), disabled: this.disabled || this.isMaxFilesReached }, inputTextNoDrop)), h("div", { key: 'a6a12a7dc2df2f202897002c1f1feab51557700f', class: "spw-file-upload__hints" }, this.hintsMessages.length > 0 && (h("ul", { key: '1d9643b6214b0d4b312a16f4a91ee063b96de380' }, this.hintsMessages.map((message, index) => (h("li", { key: index }, message)))))), h("div", { key: 'e98776cde22505ae8d1ffe0016ed205544031c9b', 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 => {
256
256
  e.preventDefault();
257
257
  this.removeFile(index);
258
- } }, this.textDelete))))))) : (''), this.fileLimitErrors.length > 0 && (h("ul", { key: '99e425da348f4e1d334f04548c1acabc63a1d94b', 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: '5fa327feeb9f5f1a6fa064024fd18fd663ce4a72', 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))))))));
258
+ } }, this.textDelete))))))) : (''), this.fileLimitErrors.length > 0 && (h("ul", { key: '87d3841b82f412458d986ec97a6d6636a1f038d1', 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: '5878e2f09ff3249386fe3d3d68a4ac79b2f05868', 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))))))));
259
259
  }
260
260
  static get is() { return "spw-file-upload"; }
261
261
  static get encapsulation() { return "shadow"; }