@spw-ds/spw-stencil-library 1.2.2 → 1.2.3

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 (469) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/spw-accordion.spw-accordion-content.spw-accordion-item.spw-accordion-title.entry.cjs.js.map +1 -1
  3. package/dist/cjs/spw-accordion_4.cjs.entry.js +2 -2
  4. package/dist/cjs/spw-accordion_4.cjs.entry.js.map +1 -1
  5. package/dist/cjs/spw-button_2.cjs.entry.js +1 -1
  6. package/dist/cjs/spw-card-content.cjs.entry.js +1 -1
  7. package/dist/cjs/spw-card-content.cjs.entry.js.map +1 -1
  8. package/dist/cjs/spw-card-content.entry.cjs.js.map +1 -1
  9. package/dist/cjs/spw-card-excerpt.cjs.entry.js +1 -1
  10. package/dist/cjs/spw-card-excerpt.cjs.entry.js.map +1 -1
  11. package/dist/cjs/spw-card-excerpt.entry.cjs.js.map +1 -1
  12. package/dist/cjs/spw-card-image.cjs.entry.js +1 -1
  13. package/dist/cjs/spw-card-image.cjs.entry.js.map +1 -1
  14. package/dist/cjs/spw-card-image.entry.cjs.js.map +1 -1
  15. package/dist/cjs/spw-card-title.cjs.entry.js +1 -1
  16. package/dist/cjs/spw-card-title.cjs.entry.js.map +1 -1
  17. package/dist/cjs/spw-card-title.entry.cjs.js.map +1 -1
  18. package/dist/cjs/spw-card.cjs.entry.js +39 -9
  19. package/dist/cjs/spw-card.cjs.entry.js.map +1 -1
  20. package/dist/cjs/spw-card.entry.cjs.js.map +1 -1
  21. package/dist/cjs/spw-field-label_6.cjs.entry.js +3 -3
  22. package/dist/cjs/spw-header-lang-item.cjs.entry.js +1 -1
  23. package/dist/cjs/spw-header-lang.cjs.entry.js +1 -1
  24. package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +1 -1
  25. package/dist/cjs/spw-header-navigation-item.cjs.entry.js +1 -1
  26. package/dist/cjs/spw-header-navigation.cjs.entry.js +1 -1
  27. package/dist/cjs/spw-header-persona-item.cjs.entry.js +1 -1
  28. package/dist/cjs/spw-header-persona.cjs.entry.js +3 -1
  29. package/dist/cjs/spw-header-persona.cjs.entry.js.map +1 -1
  30. package/dist/cjs/spw-header-persona.entry.cjs.js.map +1 -1
  31. package/dist/cjs/spw-header.cjs.entry.js +20 -2
  32. package/dist/cjs/spw-header.cjs.entry.js.map +1 -1
  33. package/dist/cjs/spw-header.entry.cjs.js.map +1 -1
  34. package/dist/cjs/spw-hero.cjs.entry.js +16 -2
  35. package/dist/cjs/spw-hero.cjs.entry.js.map +1 -1
  36. package/dist/cjs/spw-hero.entry.cjs.js.map +1 -1
  37. package/dist/cjs/spw-iodda.cjs.entry.js +1 -1
  38. package/dist/cjs/spw-list-description.cjs.entry.js +1 -1
  39. package/dist/cjs/spw-list-item.cjs.entry.js +6 -2
  40. package/dist/cjs/spw-list-item.cjs.entry.js.map +1 -1
  41. package/dist/cjs/spw-list-item.entry.cjs.js.map +1 -1
  42. package/dist/cjs/spw-list-title.cjs.entry.js +2 -2
  43. package/dist/cjs/spw-list-title.cjs.entry.js.map +1 -1
  44. package/dist/cjs/spw-list-title.entry.cjs.js.map +1 -1
  45. package/dist/cjs/spw-list.cjs.entry.js +20 -1
  46. package/dist/cjs/spw-list.cjs.entry.js.map +1 -1
  47. package/dist/cjs/spw-list.entry.cjs.js.map +1 -1
  48. package/dist/cjs/spw-modal.cjs.entry.js +9 -2
  49. package/dist/cjs/spw-modal.cjs.entry.js.map +1 -1
  50. package/dist/cjs/spw-modal.entry.cjs.js.map +1 -1
  51. package/dist/cjs/spw-mosaic-item.cjs.entry.js +1 -1
  52. package/dist/cjs/spw-mosaic.cjs.entry.js +1 -1
  53. package/dist/cjs/spw-pagination.cjs.entry.js +6 -6
  54. package/dist/cjs/spw-radio.cjs.entry.js +1 -1
  55. package/dist/cjs/spw-search-field.cjs.entry.js +2 -2
  56. package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +1 -1
  57. package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +3 -3
  58. package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +1 -1
  59. package/dist/cjs/spw-sidebar.cjs.entry.js +1 -1
  60. package/dist/cjs/spw-skeleton.cjs.entry.js +1 -1
  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-footer.cjs.entry.js +1 -1
  66. package/dist/cjs/spw-table-head.cjs.entry.js +1 -1
  67. package/dist/cjs/spw-table-header.cjs.entry.js +2 -2
  68. package/dist/cjs/spw-table-row.cjs.entry.js +1 -1
  69. package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +2 -2
  70. package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js.map +1 -1
  71. package/dist/cjs/spw-tabs-navigation-item.entry.cjs.js.map +1 -1
  72. package/dist/cjs/spw-tabs-navigation.cjs.entry.js +1 -1
  73. package/dist/cjs/spw-tabs.cjs.entry.js +1 -1
  74. package/dist/cjs/spw-tag.cjs.entry.js +1 -1
  75. package/dist/cjs/spw-text-field.cjs.entry.js +1 -1
  76. package/dist/cjs/spw-textarea.cjs.entry.js +1 -1
  77. package/dist/cjs/spw-tile-description.cjs.entry.js +1 -1
  78. package/dist/cjs/spw-tile-title.cjs.entry.js +2 -2
  79. package/dist/cjs/spw-tile-title.cjs.entry.js.map +1 -1
  80. package/dist/cjs/spw-tile-title.entry.cjs.js.map +1 -1
  81. package/dist/cjs/spw-tile.cjs.entry.js +1 -1
  82. package/dist/cjs/spw-tooltip.cjs.entry.js +1 -1
  83. package/dist/cjs/spw-topbar.cjs.entry.js +1 -1
  84. package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.css +1 -1
  85. package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.css +1 -1
  86. package/dist/collection/components/spw-card/spw-card-content/spw-card-content.css +1 -1
  87. package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.css +1 -1
  88. package/dist/collection/components/spw-card/spw-card-image/spw-card-image.css +1 -1
  89. package/dist/collection/components/spw-card/spw-card-title/spw-card-title.css +1 -1
  90. package/dist/collection/components/spw-card/spw-card.css +1 -1
  91. package/dist/collection/components/spw-card/spw-card.js +38 -8
  92. package/dist/collection/components/spw-card/spw-card.js.map +1 -1
  93. package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +1 -1
  94. package/dist/collection/components/spw-header/spw-header-lang-item/spw-header-lang-item.js +1 -1
  95. package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +1 -1
  96. package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +1 -1
  97. package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +1 -1
  98. package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +27 -1
  99. package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js.map +1 -1
  100. package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.js +1 -1
  101. package/dist/collection/components/spw-header/spw-header.css +1 -1
  102. package/dist/collection/components/spw-header/spw-header.js +199 -1
  103. package/dist/collection/components/spw-header/spw-header.js.map +1 -1
  104. package/dist/collection/components/spw-hero/spw-hero.css +1 -1
  105. package/dist/collection/components/spw-hero/spw-hero.js +54 -1
  106. package/dist/collection/components/spw-hero/spw-hero.js.map +1 -1
  107. package/dist/collection/components/spw-iodda/spw-iodda.js +1 -1
  108. package/dist/collection/components/spw-link/spw-link.js +1 -1
  109. package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
  110. package/dist/collection/components/spw-list/spw-list-item/spw-list-item.css +1 -1
  111. package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +25 -1
  112. package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js.map +1 -1
  113. package/dist/collection/components/spw-list/spw-list-title/spw-list-title.css +1 -1
  114. package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
  115. package/dist/collection/components/spw-list/spw-list.js +49 -1
  116. package/dist/collection/components/spw-list/spw-list.js.map +1 -1
  117. package/dist/collection/components/spw-loading/spw-loading.js +1 -1
  118. package/dist/collection/components/spw-modal/spw-modal.css +1 -1
  119. package/dist/collection/components/spw-modal/spw-modal.js +8 -1
  120. package/dist/collection/components/spw-modal/spw-modal.js.map +1 -1
  121. package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
  122. package/dist/collection/components/spw-mosaic/spw-mosaic.js +1 -1
  123. package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
  124. package/dist/collection/components/spw-radio/spw-radio.js +1 -1
  125. package/dist/collection/components/spw-search-field/spw-search-field.js +2 -2
  126. package/dist/collection/components/spw-separator/spw-separator.js +1 -1
  127. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.js +1 -1
  128. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.js +3 -3
  129. package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.js +1 -1
  130. package/dist/collection/components/spw-sidebar/spw-sidebar.js +1 -1
  131. package/dist/collection/components/spw-skeleton/spw-skeleton.js +1 -1
  132. package/dist/collection/components/spw-socials/spw-socials.js +1 -1
  133. package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +1 -1
  134. package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
  135. package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
  136. package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
  137. package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +2 -2
  138. package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +1 -1
  139. package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +1 -1
  140. package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.css +1 -1
  141. package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js +1 -1
  142. package/dist/collection/components/spw-tabs/spw-tabs.js +1 -1
  143. package/dist/collection/components/spw-tag/spw-tag.js +1 -1
  144. package/dist/collection/components/spw-text-field/spw-text-field.js +1 -1
  145. package/dist/collection/components/spw-textarea/spw-textarea.js +1 -1
  146. package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
  147. package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
  148. package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.css +1 -1
  149. package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
  150. package/dist/collection/components/spw-tile/spw-tile.js +1 -1
  151. package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
  152. package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
  153. package/dist/components/{p-BvWTgY8c.js → p-B-sLKmnT.js} +3 -3
  154. package/dist/components/{p-BvWTgY8c.js.map → p-B-sLKmnT.js.map} +1 -1
  155. package/dist/components/{p-z27d6ASx.js → p-B3OQ2nRI.js} +3 -3
  156. package/dist/components/p-B3OQ2nRI.js.map +1 -0
  157. package/dist/components/{p-DPUqdUk8.js → p-BDRCqK1w.js} +3 -3
  158. package/dist/components/{p-DPUqdUk8.js.map → p-BDRCqK1w.js.map} +1 -1
  159. package/dist/components/{p-BQKQ0k0G.js → p-DIhULKFM.js} +3 -3
  160. package/dist/components/{p-BQKQ0k0G.js.map → p-DIhULKFM.js.map} +1 -1
  161. package/dist/components/{p-CMFyBNvH.js → p-DaosfSzT.js} +9 -9
  162. package/dist/components/{p-CMFyBNvH.js.map → p-DaosfSzT.js.map} +1 -1
  163. package/dist/components/{p-5qcE_Ljw.js → p-Dku0Cksp.js} +3 -3
  164. package/dist/components/{p-5qcE_Ljw.js.map → p-Dku0Cksp.js.map} +1 -1
  165. package/dist/components/{p-BsulPKjc.js → p-GUYao_6w.js} +3 -3
  166. package/dist/components/{p-BsulPKjc.js.map → p-GUYao_6w.js.map} +1 -1
  167. package/dist/components/{p-BbuJ0hsQ.js → p-c0hJPgjJ.js} +3 -3
  168. package/dist/components/p-c0hJPgjJ.js.map +1 -0
  169. package/dist/components/{p-8jCY8rtJ.js → p-fNRoK67L.js} +3 -3
  170. package/dist/components/{p-8jCY8rtJ.js.map → p-fNRoK67L.js.map} +1 -1
  171. package/dist/components/spw-accordion-item.js +1 -1
  172. package/dist/components/spw-accordion-title.js +1 -1
  173. package/dist/components/spw-breadcrumb-item.js +1 -1
  174. package/dist/components/spw-button.js +1 -1
  175. package/dist/components/spw-card-content.js +1 -1
  176. package/dist/components/spw-card-content.js.map +1 -1
  177. package/dist/components/spw-card-excerpt.js +1 -1
  178. package/dist/components/spw-card-excerpt.js.map +1 -1
  179. package/dist/components/spw-card-image.js +1 -1
  180. package/dist/components/spw-card-image.js.map +1 -1
  181. package/dist/components/spw-card-title.js +1 -1
  182. package/dist/components/spw-card-title.js.map +1 -1
  183. package/dist/components/spw-card.js +39 -9
  184. package/dist/components/spw-card.js.map +1 -1
  185. package/dist/components/spw-cookies.js +4 -4
  186. package/dist/components/spw-file-upload.js +2 -2
  187. package/dist/components/spw-header-lang-item.js +1 -1
  188. package/dist/components/spw-header-lang.js +3 -3
  189. package/dist/components/spw-header-navigation-dropdown.js +1 -1
  190. package/dist/components/spw-header-navigation-item.js +1 -1
  191. package/dist/components/spw-header-navigation.js +1 -1
  192. package/dist/components/spw-header-persona-item.js +1 -1
  193. package/dist/components/spw-header-persona.js +4 -1
  194. package/dist/components/spw-header-persona.js.map +1 -1
  195. package/dist/components/spw-header.js +31 -4
  196. package/dist/components/spw-header.js.map +1 -1
  197. package/dist/components/spw-hero.js +25 -3
  198. package/dist/components/spw-hero.js.map +1 -1
  199. package/dist/components/spw-iodda.js +4 -4
  200. package/dist/components/spw-link.js +1 -1
  201. package/dist/components/spw-list-description.js +1 -1
  202. package/dist/components/spw-list-item.js +8 -3
  203. package/dist/components/spw-list-item.js.map +1 -1
  204. package/dist/components/spw-list-title.js +2 -2
  205. package/dist/components/spw-list-title.js.map +1 -1
  206. package/dist/components/spw-list.js +23 -3
  207. package/dist/components/spw-list.js.map +1 -1
  208. package/dist/components/spw-loading.js +1 -1
  209. package/dist/components/spw-message.js +1 -1
  210. package/dist/components/spw-modal.js +9 -2
  211. package/dist/components/spw-modal.js.map +1 -1
  212. package/dist/components/spw-mosaic-item.js +1 -1
  213. package/dist/components/spw-mosaic.js +1 -1
  214. package/dist/components/spw-pagination.js +1 -1
  215. package/dist/components/spw-radio.js +1 -1
  216. package/dist/components/spw-search-field.js +3 -3
  217. package/dist/components/spw-separator.js +1 -1
  218. package/dist/components/spw-sidebar-navigation-dropdown.js +1 -1
  219. package/dist/components/spw-sidebar-navigation-item.js +4 -4
  220. package/dist/components/spw-sidebar-navigation-separator.js +2 -2
  221. package/dist/components/spw-sidebar.js +1 -1
  222. package/dist/components/spw-skeleton.js +1 -1
  223. package/dist/components/spw-socials.js +1 -1
  224. package/dist/components/spw-table-body.js +1 -1
  225. package/dist/components/spw-table-cell.js +1 -1
  226. package/dist/components/spw-table-footer.js +1 -1
  227. package/dist/components/spw-table-head.js +1 -1
  228. package/dist/components/spw-table-header.js +3 -3
  229. package/dist/components/spw-table-row.js +1 -1
  230. package/dist/components/spw-tabs-navigation-item.js +3 -3
  231. package/dist/components/spw-tabs-navigation-item.js.map +1 -1
  232. package/dist/components/spw-tabs-navigation.js +1 -1
  233. package/dist/components/spw-tabs.js +1 -1
  234. package/dist/components/spw-tag.js +1 -1
  235. package/dist/components/spw-text-field.js +1 -1
  236. package/dist/components/spw-textarea.js +1 -1
  237. package/dist/components/spw-theme-provider.js +1 -1
  238. package/dist/components/spw-tile-description.js +1 -1
  239. package/dist/components/spw-tile-title.js +2 -2
  240. package/dist/components/spw-tile-title.js.map +1 -1
  241. package/dist/components/spw-tile.js +1 -1
  242. package/dist/components/spw-tooltip.js +1 -1
  243. package/dist/components/spw-topbar.js +1 -1
  244. package/dist/components_json.json +367 -5
  245. package/dist/esm/loader.js +1 -1
  246. package/dist/esm/spw-accordion.spw-accordion-content.spw-accordion-item.spw-accordion-title.entry.js.map +1 -1
  247. package/dist/esm/spw-accordion_4.entry.js +2 -2
  248. package/dist/esm/spw-accordion_4.entry.js.map +1 -1
  249. package/dist/esm/spw-button_2.entry.js +1 -1
  250. package/dist/esm/spw-card-content.entry.js +1 -1
  251. package/dist/esm/spw-card-content.entry.js.map +1 -1
  252. package/dist/esm/spw-card-excerpt.entry.js +1 -1
  253. package/dist/esm/spw-card-excerpt.entry.js.map +1 -1
  254. package/dist/esm/spw-card-image.entry.js +1 -1
  255. package/dist/esm/spw-card-image.entry.js.map +1 -1
  256. package/dist/esm/spw-card-title.entry.js +1 -1
  257. package/dist/esm/spw-card-title.entry.js.map +1 -1
  258. package/dist/esm/spw-card.entry.js +39 -9
  259. package/dist/esm/spw-card.entry.js.map +1 -1
  260. package/dist/esm/spw-field-label_6.entry.js +3 -3
  261. package/dist/esm/spw-header-lang-item.entry.js +1 -1
  262. package/dist/esm/spw-header-lang.entry.js +1 -1
  263. package/dist/esm/spw-header-navigation-dropdown.entry.js +1 -1
  264. package/dist/esm/spw-header-navigation-item.entry.js +1 -1
  265. package/dist/esm/spw-header-navigation.entry.js +1 -1
  266. package/dist/esm/spw-header-persona-item.entry.js +1 -1
  267. package/dist/esm/spw-header-persona.entry.js +3 -1
  268. package/dist/esm/spw-header-persona.entry.js.map +1 -1
  269. package/dist/esm/spw-header.entry.js +20 -2
  270. package/dist/esm/spw-header.entry.js.map +1 -1
  271. package/dist/esm/spw-hero.entry.js +16 -2
  272. package/dist/esm/spw-hero.entry.js.map +1 -1
  273. package/dist/esm/spw-iodda.entry.js +1 -1
  274. package/dist/esm/spw-list-description.entry.js +1 -1
  275. package/dist/esm/spw-list-item.entry.js +6 -2
  276. package/dist/esm/spw-list-item.entry.js.map +1 -1
  277. package/dist/esm/spw-list-title.entry.js +2 -2
  278. package/dist/esm/spw-list-title.entry.js.map +1 -1
  279. package/dist/esm/spw-list.entry.js +21 -2
  280. package/dist/esm/spw-list.entry.js.map +1 -1
  281. package/dist/esm/spw-modal.entry.js +9 -2
  282. package/dist/esm/spw-modal.entry.js.map +1 -1
  283. package/dist/esm/spw-mosaic-item.entry.js +1 -1
  284. package/dist/esm/spw-mosaic.entry.js +1 -1
  285. package/dist/esm/spw-pagination.entry.js +6 -6
  286. package/dist/esm/spw-radio.entry.js +1 -1
  287. package/dist/esm/spw-search-field.entry.js +2 -2
  288. package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +1 -1
  289. package/dist/esm/spw-sidebar-navigation-item.entry.js +3 -3
  290. package/dist/esm/spw-sidebar-navigation-separator.entry.js +1 -1
  291. package/dist/esm/spw-sidebar.entry.js +1 -1
  292. package/dist/esm/spw-skeleton.entry.js +1 -1
  293. package/dist/esm/spw-socials.entry.js +1 -1
  294. package/dist/esm/spw-stencil-library.js +1 -1
  295. package/dist/esm/spw-table-body.entry.js +1 -1
  296. package/dist/esm/spw-table-cell.entry.js +1 -1
  297. package/dist/esm/spw-table-footer.entry.js +1 -1
  298. package/dist/esm/spw-table-head.entry.js +1 -1
  299. package/dist/esm/spw-table-header.entry.js +2 -2
  300. package/dist/esm/spw-table-row.entry.js +1 -1
  301. package/dist/esm/spw-tabs-navigation-item.entry.js +2 -2
  302. package/dist/esm/spw-tabs-navigation-item.entry.js.map +1 -1
  303. package/dist/esm/spw-tabs-navigation.entry.js +1 -1
  304. package/dist/esm/spw-tabs.entry.js +1 -1
  305. package/dist/esm/spw-tag.entry.js +1 -1
  306. package/dist/esm/spw-text-field.entry.js +1 -1
  307. package/dist/esm/spw-textarea.entry.js +1 -1
  308. package/dist/esm/spw-tile-description.entry.js +1 -1
  309. package/dist/esm/spw-tile-title.entry.js +2 -2
  310. package/dist/esm/spw-tile-title.entry.js.map +1 -1
  311. package/dist/esm/spw-tile.entry.js +1 -1
  312. package/dist/esm/spw-tooltip.entry.js +1 -1
  313. package/dist/esm/spw-topbar.entry.js +1 -1
  314. package/dist/spw-stencil-library/p-02151d7e.entry.js +2 -0
  315. package/dist/spw-stencil-library/p-02151d7e.entry.js.map +1 -0
  316. package/dist/spw-stencil-library/{p-e1a459eb.entry.js → p-0226ad72.entry.js} +2 -2
  317. package/dist/spw-stencil-library/{p-328fb48c.entry.js → p-04274072.entry.js} +2 -2
  318. package/dist/spw-stencil-library/{p-2c8e65e5.entry.js → p-09a2d080.entry.js} +2 -2
  319. package/dist/spw-stencil-library/{p-5426464a.entry.js → p-09d27c4b.entry.js} +2 -2
  320. package/dist/spw-stencil-library/{p-b726755c.entry.js → p-11805364.entry.js} +2 -2
  321. package/dist/spw-stencil-library/{p-96fac544.entry.js → p-181ae002.entry.js} +2 -2
  322. package/dist/spw-stencil-library/p-181ae002.entry.js.map +1 -0
  323. package/dist/spw-stencil-library/{p-274ce2d2.entry.js → p-19a69f36.entry.js} +2 -2
  324. package/dist/spw-stencil-library/p-1d93e0d8.entry.js +2 -0
  325. package/dist/spw-stencil-library/p-1d93e0d8.entry.js.map +1 -0
  326. package/dist/spw-stencil-library/p-1d9ef3d5.entry.js +2 -0
  327. package/dist/spw-stencil-library/p-1d9ef3d5.entry.js.map +1 -0
  328. package/dist/spw-stencil-library/{p-991d5382.entry.js → p-1f382434.entry.js} +2 -2
  329. package/dist/spw-stencil-library/{p-49be45a2.entry.js → p-272dc0ee.entry.js} +2 -2
  330. package/dist/spw-stencil-library/{p-44124a37.entry.js → p-2fd3eb76.entry.js} +2 -2
  331. package/dist/spw-stencil-library/{p-c1a30fb7.entry.js → p-3450855b.entry.js} +2 -2
  332. package/dist/spw-stencil-library/p-3450855b.entry.js.map +1 -0
  333. package/dist/spw-stencil-library/{p-4526bef6.entry.js → p-376b1e84.entry.js} +2 -2
  334. package/dist/spw-stencil-library/{p-228a413d.entry.js → p-403fe46c.entry.js} +2 -2
  335. package/dist/spw-stencil-library/p-403fe46c.entry.js.map +1 -0
  336. package/dist/spw-stencil-library/{p-573393ab.entry.js → p-42658e0a.entry.js} +2 -2
  337. package/dist/spw-stencil-library/{p-aa364a44.entry.js → p-44d87d3f.entry.js} +2 -2
  338. package/dist/spw-stencil-library/{p-be3b1d65.entry.js → p-4d61f200.entry.js} +2 -2
  339. package/dist/spw-stencil-library/p-532314d2.entry.js +2 -0
  340. package/dist/spw-stencil-library/p-532314d2.entry.js.map +1 -0
  341. package/dist/spw-stencil-library/{p-f2008faa.entry.js → p-554af1e3.entry.js} +2 -2
  342. package/dist/spw-stencil-library/{p-4e7df891.entry.js → p-5a034423.entry.js} +2 -2
  343. package/dist/spw-stencil-library/{p-57851ceb.entry.js → p-5f82570e.entry.js} +2 -2
  344. package/dist/spw-stencil-library/{p-b64a003c.entry.js → p-64670b2e.entry.js} +2 -2
  345. package/dist/spw-stencil-library/{p-35ef6489.entry.js → p-74b4aea0.entry.js} +2 -2
  346. package/dist/spw-stencil-library/p-74b4aea0.entry.js.map +1 -0
  347. package/dist/spw-stencil-library/{p-a2b3dd47.entry.js → p-7cd55113.entry.js} +2 -2
  348. package/dist/spw-stencil-library/{p-ca672774.entry.js → p-7d80a44e.entry.js} +2 -2
  349. package/dist/spw-stencil-library/p-817e139e.entry.js +2 -0
  350. package/dist/spw-stencil-library/p-817e139e.entry.js.map +1 -0
  351. package/dist/spw-stencil-library/{p-8d94697c.entry.js → p-8c6c9db5.entry.js} +2 -2
  352. package/dist/spw-stencil-library/p-8dca994a.entry.js +2 -0
  353. package/dist/spw-stencil-library/p-8dca994a.entry.js.map +1 -0
  354. package/dist/spw-stencil-library/{p-74d118ec.entry.js → p-8ef8864e.entry.js} +2 -2
  355. package/dist/spw-stencil-library/{p-ad5f01e4.entry.js → p-9219fe7c.entry.js} +2 -2
  356. package/dist/spw-stencil-library/{p-1e725439.entry.js → p-9356f8c9.entry.js} +2 -2
  357. package/dist/spw-stencil-library/p-9356f8c9.entry.js.map +1 -0
  358. package/dist/spw-stencil-library/{p-d8078491.entry.js → p-a30563ff.entry.js} +2 -2
  359. package/dist/spw-stencil-library/{p-a27ed650.entry.js → p-a8311acd.entry.js} +2 -2
  360. package/dist/spw-stencil-library/{p-3cfcf070.entry.js → p-a93f21f9.entry.js} +2 -2
  361. package/dist/spw-stencil-library/{p-4fa98537.entry.js → p-a950bce8.entry.js} +2 -2
  362. package/dist/spw-stencil-library/{p-0e310e7a.entry.js → p-ba27b9b0.entry.js} +2 -2
  363. package/dist/spw-stencil-library/{p-e5c9fb8e.entry.js → p-bf2d0cf4.entry.js} +2 -2
  364. package/dist/spw-stencil-library/{p-af49292e.entry.js → p-c2de4206.entry.js} +2 -2
  365. package/dist/spw-stencil-library/{p-5cb1344b.entry.js → p-c54fee67.entry.js} +2 -2
  366. package/dist/spw-stencil-library/{p-68f9c5bf.entry.js → p-cb269271.entry.js} +2 -2
  367. package/dist/spw-stencil-library/p-cb269271.entry.js.map +1 -0
  368. package/dist/spw-stencil-library/{p-c7fecad8.entry.js → p-db2354cf.entry.js} +2 -2
  369. package/dist/spw-stencil-library/{p-3240c1a4.entry.js → p-dd4bf12d.entry.js} +2 -2
  370. package/dist/spw-stencil-library/p-e00468aa.entry.js +2 -0
  371. package/dist/spw-stencil-library/p-e00468aa.entry.js.map +1 -0
  372. package/dist/spw-stencil-library/{p-10269c11.entry.js → p-e2f03a02.entry.js} +2 -2
  373. package/dist/spw-stencil-library/p-e2f03a02.entry.js.map +1 -0
  374. package/dist/spw-stencil-library/{p-e1c4d94e.entry.js → p-e72c6410.entry.js} +2 -2
  375. package/dist/spw-stencil-library/{p-1e07197c.entry.js → p-f5de314e.entry.js} +2 -2
  376. package/dist/spw-stencil-library/{p-07cadb86.entry.js → p-fabf41a2.entry.js} +2 -2
  377. package/dist/spw-stencil-library/{p-a093ab2f.entry.js → p-fbe468de.entry.js} +2 -2
  378. package/dist/spw-stencil-library/p-fda153e0.entry.js +2 -0
  379. package/dist/spw-stencil-library/p-fda153e0.entry.js.map +1 -0
  380. package/dist/spw-stencil-library/spw-accordion.spw-accordion-content.spw-accordion-item.spw-accordion-title.entry.esm.js.map +1 -1
  381. package/dist/spw-stencil-library/spw-card-content.entry.esm.js.map +1 -1
  382. package/dist/spw-stencil-library/spw-card-excerpt.entry.esm.js.map +1 -1
  383. package/dist/spw-stencil-library/spw-card-image.entry.esm.js.map +1 -1
  384. package/dist/spw-stencil-library/spw-card-title.entry.esm.js.map +1 -1
  385. package/dist/spw-stencil-library/spw-card.entry.esm.js.map +1 -1
  386. package/dist/spw-stencil-library/spw-header-persona.entry.esm.js.map +1 -1
  387. package/dist/spw-stencil-library/spw-header.entry.esm.js.map +1 -1
  388. package/dist/spw-stencil-library/spw-hero.entry.esm.js.map +1 -1
  389. package/dist/spw-stencil-library/spw-list-item.entry.esm.js.map +1 -1
  390. package/dist/spw-stencil-library/spw-list-title.entry.esm.js.map +1 -1
  391. package/dist/spw-stencil-library/spw-list.entry.esm.js.map +1 -1
  392. package/dist/spw-stencil-library/spw-modal.entry.esm.js.map +1 -1
  393. package/dist/spw-stencil-library/spw-stencil-library.css +1 -1
  394. package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
  395. package/dist/spw-stencil-library/spw-tabs-navigation-item.entry.esm.js.map +1 -1
  396. package/dist/spw-stencil-library/spw-tile-title.entry.esm.js.map +1 -1
  397. package/dist/stats.json +1063 -410
  398. package/dist/types/components/spw-card/spw-card.d.ts +5 -0
  399. package/dist/types/components/spw-header/spw-header-persona/spw-header-persona.d.ts +2 -0
  400. package/dist/types/components/spw-header/spw-header.d.ts +18 -0
  401. package/dist/types/components/spw-hero/spw-hero.d.ts +6 -0
  402. package/dist/types/components/spw-list/spw-list-item/spw-list-item.d.ts +2 -0
  403. package/dist/types/components/spw-list/spw-list.d.ts +6 -0
  404. package/dist/types/components/spw-modal/spw-modal.d.ts +1 -0
  405. package/dist/types/components.d.ts +112 -0
  406. package/hydrate/index.js +189 -81
  407. package/hydrate/index.mjs +189 -81
  408. package/package.json +1 -1
  409. package/dist/components/p-BbuJ0hsQ.js.map +0 -1
  410. package/dist/components/p-z27d6ASx.js.map +0 -1
  411. package/dist/spw-stencil-library/p-10269c11.entry.js.map +0 -1
  412. package/dist/spw-stencil-library/p-1e725439.entry.js.map +0 -1
  413. package/dist/spw-stencil-library/p-228a413d.entry.js.map +0 -1
  414. package/dist/spw-stencil-library/p-35ef6489.entry.js.map +0 -1
  415. package/dist/spw-stencil-library/p-57d83f8b.entry.js +0 -2
  416. package/dist/spw-stencil-library/p-57d83f8b.entry.js.map +0 -1
  417. package/dist/spw-stencil-library/p-68f9c5bf.entry.js.map +0 -1
  418. package/dist/spw-stencil-library/p-6b291009.entry.js +0 -2
  419. package/dist/spw-stencil-library/p-6b291009.entry.js.map +0 -1
  420. package/dist/spw-stencil-library/p-6d08bcc3.entry.js +0 -2
  421. package/dist/spw-stencil-library/p-6d08bcc3.entry.js.map +0 -1
  422. package/dist/spw-stencil-library/p-6ee69164.entry.js +0 -2
  423. package/dist/spw-stencil-library/p-6ee69164.entry.js.map +0 -1
  424. package/dist/spw-stencil-library/p-96fac544.entry.js.map +0 -1
  425. package/dist/spw-stencil-library/p-aaffdc4f.entry.js +0 -2
  426. package/dist/spw-stencil-library/p-aaffdc4f.entry.js.map +0 -1
  427. package/dist/spw-stencil-library/p-bf14b880.entry.js +0 -2
  428. package/dist/spw-stencil-library/p-bf14b880.entry.js.map +0 -1
  429. package/dist/spw-stencil-library/p-bf43d61c.entry.js +0 -2
  430. package/dist/spw-stencil-library/p-bf43d61c.entry.js.map +0 -1
  431. package/dist/spw-stencil-library/p-c1a30fb7.entry.js.map +0 -1
  432. package/dist/spw-stencil-library/p-f1d04cc1.entry.js +0 -2
  433. package/dist/spw-stencil-library/p-f1d04cc1.entry.js.map +0 -1
  434. /package/dist/spw-stencil-library/{p-e1a459eb.entry.js.map → p-0226ad72.entry.js.map} +0 -0
  435. /package/dist/spw-stencil-library/{p-328fb48c.entry.js.map → p-04274072.entry.js.map} +0 -0
  436. /package/dist/spw-stencil-library/{p-2c8e65e5.entry.js.map → p-09a2d080.entry.js.map} +0 -0
  437. /package/dist/spw-stencil-library/{p-5426464a.entry.js.map → p-09d27c4b.entry.js.map} +0 -0
  438. /package/dist/spw-stencil-library/{p-b726755c.entry.js.map → p-11805364.entry.js.map} +0 -0
  439. /package/dist/spw-stencil-library/{p-274ce2d2.entry.js.map → p-19a69f36.entry.js.map} +0 -0
  440. /package/dist/spw-stencil-library/{p-991d5382.entry.js.map → p-1f382434.entry.js.map} +0 -0
  441. /package/dist/spw-stencil-library/{p-49be45a2.entry.js.map → p-272dc0ee.entry.js.map} +0 -0
  442. /package/dist/spw-stencil-library/{p-44124a37.entry.js.map → p-2fd3eb76.entry.js.map} +0 -0
  443. /package/dist/spw-stencil-library/{p-4526bef6.entry.js.map → p-376b1e84.entry.js.map} +0 -0
  444. /package/dist/spw-stencil-library/{p-573393ab.entry.js.map → p-42658e0a.entry.js.map} +0 -0
  445. /package/dist/spw-stencil-library/{p-aa364a44.entry.js.map → p-44d87d3f.entry.js.map} +0 -0
  446. /package/dist/spw-stencil-library/{p-be3b1d65.entry.js.map → p-4d61f200.entry.js.map} +0 -0
  447. /package/dist/spw-stencil-library/{p-f2008faa.entry.js.map → p-554af1e3.entry.js.map} +0 -0
  448. /package/dist/spw-stencil-library/{p-4e7df891.entry.js.map → p-5a034423.entry.js.map} +0 -0
  449. /package/dist/spw-stencil-library/{p-57851ceb.entry.js.map → p-5f82570e.entry.js.map} +0 -0
  450. /package/dist/spw-stencil-library/{p-b64a003c.entry.js.map → p-64670b2e.entry.js.map} +0 -0
  451. /package/dist/spw-stencil-library/{p-a2b3dd47.entry.js.map → p-7cd55113.entry.js.map} +0 -0
  452. /package/dist/spw-stencil-library/{p-ca672774.entry.js.map → p-7d80a44e.entry.js.map} +0 -0
  453. /package/dist/spw-stencil-library/{p-8d94697c.entry.js.map → p-8c6c9db5.entry.js.map} +0 -0
  454. /package/dist/spw-stencil-library/{p-74d118ec.entry.js.map → p-8ef8864e.entry.js.map} +0 -0
  455. /package/dist/spw-stencil-library/{p-ad5f01e4.entry.js.map → p-9219fe7c.entry.js.map} +0 -0
  456. /package/dist/spw-stencil-library/{p-d8078491.entry.js.map → p-a30563ff.entry.js.map} +0 -0
  457. /package/dist/spw-stencil-library/{p-a27ed650.entry.js.map → p-a8311acd.entry.js.map} +0 -0
  458. /package/dist/spw-stencil-library/{p-3cfcf070.entry.js.map → p-a93f21f9.entry.js.map} +0 -0
  459. /package/dist/spw-stencil-library/{p-4fa98537.entry.js.map → p-a950bce8.entry.js.map} +0 -0
  460. /package/dist/spw-stencil-library/{p-0e310e7a.entry.js.map → p-ba27b9b0.entry.js.map} +0 -0
  461. /package/dist/spw-stencil-library/{p-e5c9fb8e.entry.js.map → p-bf2d0cf4.entry.js.map} +0 -0
  462. /package/dist/spw-stencil-library/{p-af49292e.entry.js.map → p-c2de4206.entry.js.map} +0 -0
  463. /package/dist/spw-stencil-library/{p-5cb1344b.entry.js.map → p-c54fee67.entry.js.map} +0 -0
  464. /package/dist/spw-stencil-library/{p-c7fecad8.entry.js.map → p-db2354cf.entry.js.map} +0 -0
  465. /package/dist/spw-stencil-library/{p-3240c1a4.entry.js.map → p-dd4bf12d.entry.js.map} +0 -0
  466. /package/dist/spw-stencil-library/{p-e1c4d94e.entry.js.map → p-e72c6410.entry.js.map} +0 -0
  467. /package/dist/spw-stencil-library/{p-1e07197c.entry.js.map → p-f5de314e.entry.js.map} +0 -0
  468. /package/dist/spw-stencil-library/{p-07cadb86.entry.js.map → p-fabf41a2.entry.js.map} +0 -0
  469. /package/dist/spw-stencil-library/{p-a093ab2f.entry.js.map → p-fbe468de.entry.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-BYM_CUUH.js';
2
2
 
3
- const spwListTitleCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-ds-typography,[class*=spw-ds-typography-]{font-family:Nunito Sans}.spw-ds-typography-display-1{font-size:56px;font-weight:400;line-height:1.2}@media (min-width:1024px){.spw-ds-typography-display-1{font-size:68px;font-weight:400;line-height:1.1}}.spw-ds-typography-display-2{font-size:40px;font-weight:400;line-height:1.25}@media (min-width:1024px){.spw-ds-typography-display-2{font-size:56px;font-weight:400;line-height:1.2}}.spw-ds-typography-display-3{font-size:32px;font-weight:400;line-height:1.4}@media (min-width:1024px){.spw-ds-typography-display-3{font-size:48px;font-weight:400;line-height:1.2}}.spw-ds-typography-heading-01{font-size:28px;font-weight:700;line-height:1.4}@media (min-width:1024px){.spw-ds-typography-heading-01{font-size:32px;font-weight:700;line-height:1.25}}.spw-ds-typography-heading-02{font-size:24px;font-weight:700;line-height:1.4}@media (min-width:1024px){.spw-ds-typography-heading-02{font-size:28px;font-weight:700;line-height:1.3}}.spw-ds-typography-heading-03{font-size:20px;font-weight:700;line-height:1.4}@media (min-width:1024px){.spw-ds-typography-heading-03{font-size:20px;font-weight:700;line-height:1.4}}.spw-ds-typography-heading-04,:host(.--default) .spw-list-title{font-size:18px;font-weight:700;line-height:1.5}@media (min-width:1024px){.spw-ds-typography-heading-04,:host(.--default) .spw-list-title{font-size:18px;font-weight:700;line-height:1.5}}.spw-ds-typography-heading-05,:host(.--shortcut) .spw-list-title{font-size:16px;font-weight:700;line-height:1.5}@media (min-width:1024px){.spw-ds-typography-heading-05,:host(.--shortcut) .spw-list-title{font-size:16px;font-weight:700;line-height:1.6}}.spw-ds-typography-heading-06{font-size:14px;font-weight:700;line-height:1.7}@media (min-width:1024px){.spw-ds-typography-heading-06{font-size:14px;font-weight:700;line-height:1.6}}.spw-ds-typography-lead-body{font-size:20px!important;font-weight:400;line-height:1.6}@media (min-width:1024px){.spw-ds-typography-lead-body{font-size:20px;font-weight:400;line-height:1.5}}.spw-ds-typography-lead-body-compact{font-size:20px;font-weight:400;line-height:1.5}@media (min-width:1024px){.spw-ds-typography-lead-body-compact{font-size:20px;font-weight:400;line-height:1.25}}.spw-ds-typography-body-1{font-size:18px;font-weight:400;line-height:1.6}@media (min-width:1024px){.spw-ds-typography-body-1{font-size:18px;font-weight:400;line-height:1.5}}.spw-ds-typography-body-compact-1{font-size:18px;font-weight:400;line-height:1.5}@media (min-width:1024px){.spw-ds-typography-body-compact-1{font-size:18px;font-weight:400;line-height:1.25}}.spw-ds-typography-body-2{font-size:16px;font-weight:400;line-height:1.6}@media (min-width:1024px){.spw-ds-typography-body-2{font-size:16px;font-weight:400;line-height:1.5}}.spw-ds-typography-body-compact-2{font-size:16px;font-weight:400;line-height:1.5}@media (min-width:1024px){.spw-ds-typography-body-compact-2{font-size:16px;font-weight:400;line-height:1.25}}.spw-ds-typography-body-3{font-size:14px;font-weight:400;line-height:1.6}@media (min-width:1024px){.spw-ds-typography-body-3{font-size:14px;font-weight:400;line-height:1.5}}.spw-ds-typography-body-compact-3{font-size:14px;font-weight:400;line-height:1.5}@media (min-width:1024px){.spw-ds-typography-body-compact-3{font-size:14px;font-weight:400;line-height:1.25}}.spw-ds-typography-tag{font-size:14px;font-weight:700;line-height:1.2}.spw-ds-typography-label{font-size:16px;font-weight:600;line-height:1.2}.spw-ds-typography-date{font-size:16px;font-weight:300;line-height:1}.spw-ds-typography-caption{font-size:14px;font-style:italic;font-weight:300;line-height:1}.spw-ds-typography-link{border-bottom:1px solid var(--spw-ds-primary);color:var(--spw-ds-primary);font-size:inherit;font-weight:700;line-height:1.2}.spw-ds-typography-link:hover{color:var(--spw-ds-variant)}.spw-ds-typography-link:active{color:var(--spw-ds-active)}.spw-ds-typography-link:active,.spw-ds-typography-link:hover{border-color:currentColor;border-width:2px}.spw-ds-typography-hint{font-size:14px;font-weight:400;line-height:1.5}.spw-ds-typography-code{font-family:monospace;font-size:14px;font-weight:400;line-height:1.2}.spw-ds-typography-overline{font-size:10px;font-weight:800;line-height:1;text-transform:uppercase}.spw-list-title{display:inline-flex;position:relative;transition:all .2s linear}.spw-list-title spw-icon{color:var(--spw-ds-primary);left:-28px;position:absolute;top:4px;transition:all .2s linear}:host(.--active) .spw-list-title spw-icon{color:var(--spw-ds-active)}.spw-list-title__content-text{border-bottom:1px solid transparent;display:inline;transition:all .2s linear}:host(.--hovered) .spw-list-title__content-text{border-color:var(--spw-ds-primary)}:host(.--active) .spw-list-title__content-text{border-color:var(--spw-ds-active)}:host(.--default) .spw-list-title{color:var(--spw-color-themes-grey-grey-900)}:host(.--shortcut) .spw-list-title{color:var(--spw-ds-primary)}:host(.--hovered) .spw-list-title{color:var(--spw-ds-primary)}:host(.--active) .spw-list-title{color:var(--spw-ds-active)}.spw-list-title--has-clamp .spw-list-title__content{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.spw-list-title--clamp-1 .spw-list-title__content{-webkit-line-clamp:1;line-clamp:1}.spw-list-title--clamp-2 .spw-list-title__content{-webkit-line-clamp:2;line-clamp:2}.spw-list-title--clamp-3 .spw-list-title__content{-webkit-line-clamp:3;line-clamp:3}.spw-list-title--clamp-4 .spw-list-title__content{-webkit-line-clamp:4;line-clamp:4}.spw-list-title--clamp-5 .spw-list-title__content{-webkit-line-clamp:5;line-clamp:5}.spw-list-title--clamp-6 .spw-list-title__content{-webkit-line-clamp:6;line-clamp:6}.spw-list-title--clamp-7 .spw-list-title__content{-webkit-line-clamp:7;line-clamp:7}.spw-list-title--clamp-8 .spw-list-title__content{-webkit-line-clamp:8;line-clamp:8}.spw-list-title--clamp-9 .spw-list-title__content{-webkit-line-clamp:9;line-clamp:9}.spw-list-title--clamp-10 .spw-list-title__content{-webkit-line-clamp:10;line-clamp:10}";
3
+ const spwListTitleCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-ds-typography,[class*=spw-ds-typography-]{font-family:Nunito Sans}.spw-ds-typography-display-1{font-size:56px;font-weight:400;line-height:1.2}@media (min-width:1024px){.spw-ds-typography-display-1{font-size:68px;font-weight:400;line-height:1.1}}.spw-ds-typography-display-2{font-size:40px;font-weight:400;line-height:1.25}@media (min-width:1024px){.spw-ds-typography-display-2{font-size:56px;font-weight:400;line-height:1.2}}.spw-ds-typography-display-3{font-size:32px;font-weight:400;line-height:1.4}@media (min-width:1024px){.spw-ds-typography-display-3{font-size:48px;font-weight:400;line-height:1.2}}.spw-ds-typography-heading-01{font-size:28px;font-weight:700;line-height:1.4}@media (min-width:1024px){.spw-ds-typography-heading-01{font-size:32px;font-weight:700;line-height:1.25}}.spw-ds-typography-heading-02{font-size:24px;font-weight:700;line-height:1.4}@media (min-width:1024px){.spw-ds-typography-heading-02{font-size:28px;font-weight:700;line-height:1.3}}.spw-ds-typography-heading-03{font-size:20px;font-weight:700;line-height:1.4}@media (min-width:1024px){.spw-ds-typography-heading-03{font-size:20px;font-weight:700;line-height:1.4}}.spw-ds-typography-heading-04,:host(.--default) .spw-list-title{font-size:18px;font-weight:700;line-height:1.5}@media (min-width:1024px){.spw-ds-typography-heading-04,:host(.--default) .spw-list-title{font-size:18px;font-weight:700;line-height:1.5}}.spw-ds-typography-heading-05,:host(.--shortcut) .spw-list-title{font-size:16px;font-weight:700;line-height:1.5}@media (min-width:1024px){.spw-ds-typography-heading-05,:host(.--shortcut) .spw-list-title{font-size:16px;font-weight:700;line-height:1.6}}.spw-ds-typography-heading-06{font-size:14px;font-weight:700;line-height:1.7}@media (min-width:1024px){.spw-ds-typography-heading-06{font-size:14px;font-weight:700;line-height:1.6}}.spw-ds-typography-lead-body{font-size:20px!important;font-weight:400;line-height:1.6}@media (min-width:1024px){.spw-ds-typography-lead-body{font-size:20px;font-weight:400;line-height:1.5}}.spw-ds-typography-lead-body-compact{font-size:20px;font-weight:400;line-height:1.5}@media (min-width:1024px){.spw-ds-typography-lead-body-compact{font-size:20px;font-weight:400;line-height:1.25}}.spw-ds-typography-body-1{font-size:18px;font-weight:400;line-height:1.6}@media (min-width:1024px){.spw-ds-typography-body-1{font-size:18px;font-weight:400;line-height:1.5}}.spw-ds-typography-body-compact-1{font-size:18px;font-weight:400;line-height:1.5}@media (min-width:1024px){.spw-ds-typography-body-compact-1{font-size:18px;font-weight:400;line-height:1.25}}.spw-ds-typography-body-2{font-size:16px;font-weight:400;line-height:1.6}@media (min-width:1024px){.spw-ds-typography-body-2{font-size:16px;font-weight:400;line-height:1.5}}.spw-ds-typography-body-compact-2{font-size:16px;font-weight:400;line-height:1.5}@media (min-width:1024px){.spw-ds-typography-body-compact-2{font-size:16px;font-weight:400;line-height:1.25}}.spw-ds-typography-body-3{font-size:14px;font-weight:400;line-height:1.6}@media (min-width:1024px){.spw-ds-typography-body-3{font-size:14px;font-weight:400;line-height:1.5}}.spw-ds-typography-body-compact-3{font-size:14px;font-weight:400;line-height:1.5}@media (min-width:1024px){.spw-ds-typography-body-compact-3{font-size:14px;font-weight:400;line-height:1.25}}.spw-ds-typography-tag{font-size:14px;font-weight:700;line-height:1.2}.spw-ds-typography-label{font-size:16px;font-weight:600;line-height:1.2}.spw-ds-typography-date{font-size:16px;font-weight:300;line-height:1}.spw-ds-typography-caption{font-size:14px;font-style:italic;font-weight:300;line-height:1}.spw-ds-typography-link{border-bottom:1px solid var(--spw-ds-primary);color:var(--spw-ds-primary);font-size:inherit;font-weight:700;line-height:1.2}.spw-ds-typography-link:hover{color:var(--spw-ds-variant)}.spw-ds-typography-link:active{color:var(--spw-ds-active)}.spw-ds-typography-link:active,.spw-ds-typography-link:hover{border-color:currentColor;border-width:2px}.spw-ds-typography-hint{font-size:14px;font-weight:400;line-height:1.5}.spw-ds-typography-code{font-family:monospace;font-size:14px;font-weight:400;line-height:1.2}.spw-ds-typography-overline{font-size:10px;font-weight:800;line-height:1;text-transform:uppercase}.spw-list-title{display:inline-flex;position:relative;transition:all .2s linear}.spw-list-title spw-icon{color:var(--spw-ds-primary);left:-28px;position:absolute;top:4px;transition:all .2s linear}:host(.--active) .spw-list-title spw-icon{color:var(--spw-ds-active)}:host(.--dark) .spw-list-title spw-icon{color:var(--spw-ds-white)}.spw-list-title__content-text{border-bottom:1px solid transparent;display:inline;transition:all .2s linear}:host(.--hovered) .spw-list-title__content-text{border-color:var(--spw-ds-primary)}:host(.--active) .spw-list-title__content-text{border-color:var(--spw-ds-active)}:host(.--default) .spw-list-title{color:var(--spw-color-themes-grey-grey-900)}:host(.--shortcut) .spw-list-title{color:var(--spw-ds-primary)}:host(.--hovered) .spw-list-title{color:var(--spw-ds-primary)}:host(.--active) .spw-list-title{color:var(--spw-ds-active)}:host(.--dark) .spw-list-title{color:var(--spw-ds-white)}.spw-list-title--has-clamp .spw-list-title__content{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.spw-list-title--clamp-1 .spw-list-title__content{-webkit-line-clamp:1;line-clamp:1}.spw-list-title--clamp-2 .spw-list-title__content{-webkit-line-clamp:2;line-clamp:2}.spw-list-title--clamp-3 .spw-list-title__content{-webkit-line-clamp:3;line-clamp:3}.spw-list-title--clamp-4 .spw-list-title__content{-webkit-line-clamp:4;line-clamp:4}.spw-list-title--clamp-5 .spw-list-title__content{-webkit-line-clamp:5;line-clamp:5}.spw-list-title--clamp-6 .spw-list-title__content{-webkit-line-clamp:6;line-clamp:6}.spw-list-title--clamp-7 .spw-list-title__content{-webkit-line-clamp:7;line-clamp:7}.spw-list-title--clamp-8 .spw-list-title__content{-webkit-line-clamp:8;line-clamp:8}.spw-list-title--clamp-9 .spw-list-title__content{-webkit-line-clamp:9;line-clamp:9}.spw-list-title--clamp-10 .spw-list-title__content{-webkit-line-clamp:10;line-clamp:10}";
4
4
 
5
5
  const SpwListTitle = class {
6
6
  constructor(hostRef) {
@@ -16,7 +16,7 @@ const SpwListTitle = class {
16
16
  };
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: '27a216b5f2528a19a2d6ea1005da441945f60b3c' }, h("div", { key: 'd3563c6655136e698231eb9b592c13d60eb9ea47', class: this.elementClass }, this.icon && h("spw-icon", { key: 'bbe74eb639a3646587cf2a35bb103901a5ede59f', icon: this.icon }), h("div", { key: 'e6f8ac9c569ca843a082caf65cecb97ae5830614', class: "spw-list-title__content" }, h("div", { key: '0b12989d788bedc8393248c612f20e9bdf67bf05', class: "spw-list-title__content-text" }, h("slot", { key: '2c53dc6eaa074cd48e5f2bffe11a0390b077c2a4' }))))));
19
+ return (h(Host, { key: 'c9c3901f829d7b5f2a3177ca556c018406d6ea73' }, h("div", { key: 'cf79b9d13b1924112e722313bf6047e8dd38a928', class: this.elementClass }, this.icon && h("spw-icon", { key: '8c7c3e1aebad500d2cc9f61397f9aaecce10813a', icon: this.icon }), h("div", { key: 'b4ebd2d41241bf1c3d12e0585967dd49b3b1e16a', class: "spw-list-title__content" }, h("div", { key: '8fa9a3410f155dd978758b25d8265fd2116b5dee', class: "spw-list-title__content-text" }, h("slot", { key: '23e919d7c182a801221cd3bc856e4443b4601795' }))))));
20
20
  }
21
21
  };
22
22
  SpwListTitle.style = spwListTitleCss;
@@ -1 +1 @@
1
- {"version":3,"file":"spw-list-title.entry.js","sources":["src/components/spw-list/spw-list-title/spw-list-title.scss?tag=spw-list-title&encapsulation=shadow","src/components/spw-list/spw-list-title/spw-list-title.tsx"],"sourcesContent":["@import '../../../scss/utils/foundations/typography';\n\n:host {\n display: block;\n}\n\n.spw-list-title {\n position: relative;\n transition: all 0.2s linear;\n display: inline-flex;\n spw-icon {\n transition: all 0.2s linear;\n position: absolute;\n top: 4px;\n left: -28px;\n color: var(--spw-ds-primary);\n :host(.--active) & {\n color: var(--spw-ds-active);\n }\n }\n &__content-text {\n display: inline;\n border-bottom: 1px solid transparent;\n transition: all 0.2s linear;\n :host(.--hovered) & {\n border-color: var(--spw-ds-primary);\n }\n :host(.--active) & {\n border-color: var(--spw-ds-active);\n }\n }\n :host(.--default) & {\n @extend .spw-ds-typography-heading-04;\n color: var(--spw-color-themes-grey-grey-900);\n }\n :host(.--shortcut) & {\n @extend .spw-ds-typography-heading-05;\n color: var(--spw-ds-primary);\n }\n :host(.--hovered) & {\n color: var(--spw-ds-primary);\n }\n :host(.--active) & {\n color: var(--spw-ds-active);\n }\n &--has-clamp {\n .spw-list-title__content {\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n }\n }\n @for $i from 1 through 10 {\n &--clamp-#{$i} {\n .spw-list-title__content {\n -webkit-line-clamp: $i;\n line-clamp: $i;\n }\n }\n }\n}\n","import { Component, Prop, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'spw-list-title',\n styleUrl: 'spw-list-title.scss',\n shadow: true,\n})\nexport class SpwListTitle {\n /** Spécifie une icône à côté du titre */\n @Prop() icon?: string;\n /** Spécifie un nombre de ligne maximum à afficher */\n @Prop() lineClamp?: string;\n\n private get elementClass(): { [className: string]: boolean } {\n const hasLineClamp = this.lineClamp !== 'none';\n return {\n 'spw-list-title': true,\n [`spw-list-title--has-clamp`]: hasLineClamp,\n [`spw-list-title--icon`]: !!this.icon,\n [`spw-list-title--clamp-${this.lineClamp}`]: true,\n };\n }\n\n render() {\n return (\n <Host>\n <div class={this.elementClass}>\n {this.icon && <spw-icon icon={this.icon}></spw-icon>}\n <div class=\"spw-list-title__content\">\n <div class=\"spw-list-title__content-text\">\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,eAAe,GAAG,g9QAAg9Q;;MCO39Q,YAAY,GAAA,MAAA;;;;AAMvB,IAAA,IAAY,YAAY,GAAA;AACtB,QAAA,MAAM,YAAY,GAAG,IAAI,CAAC,SAAS,KAAK,MAAM;QAC9C,OAAO;AACL,YAAA,gBAAgB,EAAE,IAAI;YACtB,CAAC,CAAA,yBAAA,CAA2B,GAAG,YAAY;AAC3C,YAAA,CAAC,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI;AACrC,YAAA,CAAC,yBAAyB,IAAI,CAAC,SAAS,CAAE,CAAA,GAAG,IAAI;SAClD;;IAGH,MAAM,GAAA;AACJ,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAE,IAAI,CAAC,YAAY,EAAA,EAC1B,IAAI,CAAC,IAAI,IAAI,CAAA,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAU,IAAI,EAAE,IAAI,CAAC,IAAI,EAAa,CAAA,EACpD,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,yBAAyB,EAAA,EAClC,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,8BAA8B,EAAA,EACvC,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACT,CACF,CACF,CACD;;;;;;;"}
1
+ {"version":3,"file":"spw-list-title.entry.js","sources":["src/components/spw-list/spw-list-title/spw-list-title.scss?tag=spw-list-title&encapsulation=shadow","src/components/spw-list/spw-list-title/spw-list-title.tsx"],"sourcesContent":["@import '../../../scss/utils/foundations/typography';\n\n:host {\n display: block;\n}\n\n.spw-list-title {\n position: relative;\n transition: all 0.2s linear;\n display: inline-flex;\n spw-icon {\n transition: all 0.2s linear;\n position: absolute;\n top: 4px;\n left: -28px;\n color: var(--spw-ds-primary);\n :host(.--active) & {\n color: var(--spw-ds-active);\n }\n :host(.--dark) & {\n color: var(--spw-ds-white);\n }\n }\n &__content-text {\n display: inline;\n border-bottom: 1px solid transparent;\n transition: all 0.2s linear;\n :host(.--hovered) & {\n border-color: var(--spw-ds-primary);\n }\n :host(.--active) & {\n border-color: var(--spw-ds-active);\n }\n }\n :host(.--default) & {\n @extend .spw-ds-typography-heading-04;\n color: var(--spw-color-themes-grey-grey-900);\n }\n :host(.--shortcut) & {\n @extend .spw-ds-typography-heading-05;\n color: var(--spw-ds-primary);\n }\n :host(.--hovered) & {\n color: var(--spw-ds-primary);\n }\n :host(.--active) & {\n color: var(--spw-ds-active);\n }\n :host(.--dark) & {\n color: var(--spw-ds-white);\n }\n &--has-clamp {\n .spw-list-title__content {\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n }\n }\n @for $i from 1 through 10 {\n &--clamp-#{$i} {\n .spw-list-title__content {\n -webkit-line-clamp: $i;\n line-clamp: $i;\n }\n }\n }\n}\n","import { Component, Prop, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'spw-list-title',\n styleUrl: 'spw-list-title.scss',\n shadow: true,\n})\nexport class SpwListTitle {\n /** Spécifie une icône à côté du titre */\n @Prop() icon?: string;\n /** Spécifie un nombre de ligne maximum à afficher */\n @Prop() lineClamp?: string;\n\n private get elementClass(): { [className: string]: boolean } {\n const hasLineClamp = this.lineClamp !== 'none';\n return {\n 'spw-list-title': true,\n [`spw-list-title--has-clamp`]: hasLineClamp,\n [`spw-list-title--icon`]: !!this.icon,\n [`spw-list-title--clamp-${this.lineClamp}`]: true,\n };\n }\n\n render() {\n return (\n <Host>\n <div class={this.elementClass}>\n {this.icon && <spw-icon icon={this.icon}></spw-icon>}\n <div class=\"spw-list-title__content\">\n <div class=\"spw-list-title__content-text\">\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,eAAe,GAAG,2kRAA2kR;;MCOtlR,YAAY,GAAA,MAAA;;;;AAMvB,IAAA,IAAY,YAAY,GAAA;AACtB,QAAA,MAAM,YAAY,GAAG,IAAI,CAAC,SAAS,KAAK,MAAM;QAC9C,OAAO;AACL,YAAA,gBAAgB,EAAE,IAAI;YACtB,CAAC,CAAA,yBAAA,CAA2B,GAAG,YAAY;AAC3C,YAAA,CAAC,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI;AACrC,YAAA,CAAC,yBAAyB,IAAI,CAAC,SAAS,CAAE,CAAA,GAAG,IAAI;SAClD;;IAGH,MAAM,GAAA;AACJ,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAE,IAAI,CAAC,YAAY,EAAA,EAC1B,IAAI,CAAC,IAAI,IAAI,CAAA,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAU,IAAI,EAAE,IAAI,CAAC,IAAI,EAAa,CAAA,EACpD,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,yBAAyB,EAAA,EAClC,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,8BAA8B,EAAA,EACvC,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACT,CACF,CACF,CACD;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-BYM_CUUH.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-BYM_CUUH.js';
2
2
 
3
3
  const spwListCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:block;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-list{display:flex;flex-direction:column}.spw-list--small{gap:12px}.spw-list--medium{gap:24px}.spw-list--large{gap:32px}";
4
4
 
@@ -7,6 +7,24 @@ const SpwList = class {
7
7
  registerInstance(this, hostRef);
8
8
  /** Spécifie l'écart entre les éléments de liste */
9
9
  this.gap = 'medium';
10
+ /** Permet de choisir la surface d'arrière-plan de la liste */
11
+ this.surface = 'light';
12
+ }
13
+ componentWillLoad() {
14
+ this.applyVariantToChildren();
15
+ }
16
+ slotChanged() {
17
+ this.applyVariantToChildren();
18
+ }
19
+ applyVariantToChildren() {
20
+ requestAnimationFrame(() => {
21
+ const variantClass = `--${this.surface}`;
22
+ const contentElements = this.el.querySelectorAll('spw-list-item');
23
+ contentElements.forEach(contentElement => {
24
+ contentElement.classList.add(variantClass);
25
+ contentElement.setAttribute('surface', this.surface);
26
+ });
27
+ });
10
28
  }
11
29
  get elementClass() {
12
30
  return {
@@ -15,8 +33,9 @@ const SpwList = class {
15
33
  };
16
34
  }
17
35
  render() {
18
- return (h(Host, { key: '7474a92f800b0e42ee4f7ae928602fab40678129' }, h("ul", { key: 'bb478eb83d2b3533c70f74a6c4054bd5c8985883', class: this.elementClass }, h("slot", { key: 'ec64155dd2191f5f751611729b814e4228c19ec3' }))));
36
+ return (h(Host, { key: 'b4148947174922198db9c5d900e0bd3e12dc3463' }, h("ul", { key: '100ab0ec463be6a6c94aa5853c6b4cadc95f8f55', class: this.elementClass }, h("slot", { key: 'b0a7ee73af4a21f35aa90b0eb77522b0d9679e27' }))));
19
37
  }
38
+ get el() { return getElement(this); }
20
39
  };
21
40
  SpwList.style = spwListCss;
22
41
 
@@ -1 +1 @@
1
- {"version":3,"file":"spw-list.entry.js","sources":["src/components/spw-list/spw-list.scss?tag=spw-list&encapsulation=shadow","src/components/spw-list/spw-list.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.spw-list {\n display: flex;\n flex-direction: column;\n &--small {\n gap: 12px;\n }\n &--medium {\n gap: 24px;\n }\n &--large {\n gap: 32px;\n }\n}\n","import { Component, Prop, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'spw-list',\n styleUrl: 'spw-list.scss',\n shadow: true,\n})\nexport class SpwList {\n /** Spécifie l'écart entre les éléments de liste */\n @Prop() gap?: 'small' | 'medium' | 'large' = 'medium';\n\n private get elementClass(): { [className: string]: boolean } {\n return {\n 'spw-list': true,\n [`spw-list--${this.gap}`]: true,\n };\n }\n\n render() {\n return (\n <Host>\n <ul class={this.elementClass}>\n <slot></slot>\n </ul>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,UAAU,GAAG,wsFAAwsF;;MCO9sF,OAAO,GAAA,MAAA;AALpB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAOU,QAAA,IAAG,CAAA,GAAA,GAAkC,QAAQ;AAkBtD;AAhBC,IAAA,IAAY,YAAY,GAAA;QACtB,OAAO;AACL,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,CAAC,aAAa,IAAI,CAAC,GAAG,CAAE,CAAA,GAAG,IAAI;SAChC;;IAGH,MAAM,GAAA;AACJ,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,IAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAI,KAAK,EAAE,IAAI,CAAC,YAAY,EAAA,EAC1B,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACV,CACA;;;;;;;"}
1
+ {"version":3,"file":"spw-list.entry.js","sources":["src/components/spw-list/spw-list.scss?tag=spw-list&encapsulation=shadow","src/components/spw-list/spw-list.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.spw-list {\n display: flex;\n flex-direction: column;\n &--small {\n gap: 12px;\n }\n &--medium {\n gap: 24px;\n }\n &--large {\n gap: 32px;\n }\n}\n","import { Component, Prop, Element, Listen, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'spw-list',\n styleUrl: 'spw-list.scss',\n shadow: true,\n})\nexport class SpwList {\n @Element() el: HTMLSpwListElement;\n /** Spécifie l'écart entre les éléments de liste */\n @Prop() gap?: 'small' | 'medium' | 'large' = 'medium';\n /** Permet de choisir la surface d'arrière-plan de la liste */\n @Prop() surface?: 'light' | 'dark' = 'light';\n\n componentWillLoad() {\n this.applyVariantToChildren();\n }\n\n @Listen('slotchange')\n slotChanged() {\n this.applyVariantToChildren();\n }\n\n private applyVariantToChildren() {\n requestAnimationFrame(() => {\n const variantClass = `--${this.surface}`;\n const contentElements = this.el.querySelectorAll('spw-list-item');\n\n contentElements.forEach(contentElement => {\n contentElement.classList.add(variantClass);\n contentElement.setAttribute('surface', this.surface);\n });\n });\n }\n\n private get elementClass(): { [className: string]: boolean } {\n return {\n 'spw-list': true,\n [`spw-list--${this.gap}`]: true,\n };\n }\n\n render() {\n return (\n <Host>\n <ul class={this.elementClass}>\n <slot></slot>\n </ul>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,UAAU,GAAG,wsFAAwsF;;MCO9sF,OAAO,GAAA,MAAA;AALpB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAQU,QAAA,IAAG,CAAA,GAAA,GAAkC,QAAQ;;AAE7C,QAAA,IAAO,CAAA,OAAA,GAAsB,OAAO;AAuC7C;IArCC,iBAAiB,GAAA;QACf,IAAI,CAAC,sBAAsB,EAAE;;IAI/B,WAAW,GAAA;QACT,IAAI,CAAC,sBAAsB,EAAE;;IAGvB,sBAAsB,GAAA;QAC5B,qBAAqB,CAAC,MAAK;AACzB,YAAA,MAAM,YAAY,GAAG,CAAA,EAAA,EAAK,IAAI,CAAC,OAAO,EAAE;YACxC,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,eAAe,CAAC;AAEjE,YAAA,eAAe,CAAC,OAAO,CAAC,cAAc,IAAG;AACvC,gBAAA,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC;gBAC1C,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC;AACtD,aAAC,CAAC;AACJ,SAAC,CAAC;;AAGJ,IAAA,IAAY,YAAY,GAAA;QACtB,OAAO;AACL,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,CAAC,aAAa,IAAI,CAAC,GAAG,CAAE,CAAA,GAAG,IAAI;SAChC;;IAGH,MAAM,GAAA;AACJ,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,IAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAI,KAAK,EAAE,IAAI,CAAC,YAAY,EAAA,EAC1B,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACV,CACA;;;;;;;;"}
@@ -136,7 +136,7 @@ const KEYFRAMES = {
136
136
  ],
137
137
  };
138
138
 
139
- const spwModalCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:contents;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-modal{align-items:center;display:none;height:100%;justify-content:center;left:0;overflow-y:auto;position:fixed;top:0;width:100%;z-index:1060}.spw-modal--opened{display:flex}.spw-modal__overlay{background:#000;height:100%;left:0;opacity:.7;position:absolute;top:0;width:100%;z-index:0}.spw-modal__content-container{align-items:stretch;background-color:#fff;border-radius:var(--spw-spacings-border-radius-lg);box-shadow:var(--spw-effect-elevation-6);box-sizing:border-box;display:flex;justify-content:center;overflow:hidden;position:absolute;width:90%}.spw-modal__content-container--small{max-width:480px}.spw-modal__content-container--medium{max-width:600px}.spw-modal__content-container--large{max-width:768px}.spw-modal__content-container--fluid{max-width:100%}.spw-modal__content{border:1px solid var(--spw-color-themes-grey-grey-300);display:flex;flex-direction:column;max-height:90vh;overflow-y:auto;width:100%}.spw-modal--sticky-buttons .spw-modal__content{overflow-y:visible}.spw-modal__icon-container{align-items:center;align-self:stretch;background-color:#fff;display:flex;justify-content:center;width:32px}.spw-modal__header{align-items:center;border-radius:1px 1px 0 0;box-sizing:border-box;color:var(--spw-colors-support-grey-grey-900);display:flex;justify-content:space-between;margin-bottom:12px;margin-top:6px;padding:24px 24px 0}.spw-modal__caption{word-wrap:break-word;overflow:hidden;white-space:pre-wrap}.spw-modal__header h2{color:var(--spw-colors-support-grey-grey-900);font-size:18px;margin:0}.spw-modal__header button{background:none;border:none;cursor:pointer;font-size:1.5em;padding:0}.spw-modal__close-button{cursor:pointer;font-size:21px;position:absolute;right:12px;top:12px}.spw-modal__close-button:hover{opacity:.7}.spw-modal__body{box-sizing:border-box;color:var(--spw-colors-support-grey-grey-700);flex:1;font-size:16px;margin-bottom:12px;padding:0 24px}.spw-modal--sticky-buttons .spw-modal__body{overflow-y:auto}.spw-modal__buttons ::slotted([slot=buttons]){padding:12px 24px 24px}.spw-modal__footer--buttons-present ::slotted(*){display:flex;gap:12px;justify-content:flex-end;padding:8px 24px 24px}.spw-modal__content-container--small .spw-modal__footer--buttons-present ::slotted(*){flex-direction:column;gap:8px}.spw-modal__content-container--medium .spw-modal__footer--buttons-present ::slotted(*){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.spw-modal__border{align-items:center;display:flex;flex-grow:1;font-size:1.5em;justify-content:center;width:100%}";
139
+ const spwModalCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.3}h1,h2,h3,h4,h5,h6,li,p,ul{margin:0;padding:0}ul{list-style:none}:host{-webkit-text-size-adjust:100%;box-sizing:border-box;display:contents;font-size:100%;line-height:1.3}:host *,:host :after,:host :before{box-sizing:inherit;font-family:Nunito Sans}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;width:100%}@media (min-width:460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width:768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width:1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width:1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}.spw-modal{align-items:center;display:none;height:100%;justify-content:center;left:0;overflow-y:auto;position:fixed;top:0;width:100%;z-index:1060}.spw-modal--opened{display:flex}.spw-modal__overlay{background:#000;height:100%;left:0;opacity:.7;position:absolute;top:0;width:100%;z-index:0}.spw-modal__content-container{align-items:stretch;background-color:#fff;border-radius:var(--spw-spacings-border-radius-lg);box-shadow:var(--spw-effect-elevation-6);box-sizing:border-box;display:flex;justify-content:center;overflow:hidden;position:absolute;width:90%}.spw-modal__content-container--small{max-width:480px}.spw-modal__content-container--medium{max-width:600px}.spw-modal__content-container--large{max-width:768px}.spw-modal__content-container--fluid{max-width:100%}.spw-modal__content{border:1px solid var(--spw-color-themes-grey-grey-300);display:flex;flex-direction:column;max-height:90vh;overflow-y:auto;width:100%}.spw-modal--sticky-buttons .spw-modal__content{overflow-y:visible}.spw-modal__icon-container{align-items:center;align-self:stretch;background-color:#fff;display:flex;justify-content:center;width:32px}.spw-modal__header{align-items:center;border-radius:1px 1px 0 0;box-sizing:border-box;color:var(--spw-colors-support-grey-grey-900);display:flex;justify-content:space-between;margin-bottom:12px;margin-top:6px;padding:24px 24px 0}.spw-modal__caption{word-wrap:break-word;overflow:hidden;white-space:pre-wrap}.spw-modal__header h2{color:var(--spw-colors-support-grey-grey-900);font-size:18px;margin:0}.spw-modal__header button{background:none;border:none;cursor:pointer;font-size:1.5em;padding:0}.spw-modal__close-button{cursor:pointer;font-size:21px;position:absolute;right:12px;top:12px}.spw-modal__close-button:hover{opacity:.7}.spw-modal__body{box-sizing:border-box;color:var(--spw-colors-support-grey-grey-700);flex:1;font-size:16px;margin-bottom:12px;padding:0 24px}.spw-modal--sticky-buttons .spw-modal__body{overflow-y:auto}.spw-modal__buttons{padding-top:12px}.spw-modal__buttons ::slotted([slot=buttons]){padding:0 24px 24px}.spw-modal__footer--buttons-present ::slotted(*){display:flex;gap:12px;justify-content:flex-end;padding:8px 24px 24px}.spw-modal__content-container--small .spw-modal__footer--buttons-present ::slotted(*){flex-direction:column;gap:8px}.spw-modal__content-container--medium .spw-modal__footer--buttons-present ::slotted(*){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.spw-modal__border{align-items:center;display:flex;flex-grow:1;font-size:1.5em;justify-content:center;width:100%}";
140
140
 
141
141
  const SpwModal = class {
142
142
  constructor(hostRef) {
@@ -254,6 +254,7 @@ const SpwModal = class {
254
254
  }
255
255
  }
256
256
  close() {
257
+ this.stopAllVideos();
257
258
  try {
258
259
  const anim = animationTo(this.modalContainer, KEYFRAMES.fadeOut, {
259
260
  duration: 200,
@@ -268,6 +269,12 @@ const SpwModal = class {
268
269
  this.spwModalClose.emit();
269
270
  }
270
271
  }
272
+ stopAllVideos() {
273
+ const iframes = this.hostElement.querySelectorAll('iframe');
274
+ iframes.forEach(iframe => {
275
+ iframe.src = iframe.src;
276
+ });
277
+ }
271
278
  doBeforeClose(trigger) {
272
279
  const triggers = [];
273
280
  triggers.push(trigger);
@@ -292,7 +299,7 @@ const SpwModal = class {
292
299
  };
293
300
  }
294
301
  render() {
295
- return (h(Host, { key: 'ef3f979574368eb716f783a10b0df51de505844d' }, h("div", { key: 'd3de3986ed767588fbbc33771f5a2ec96950c814', ref: el => (this.modalContainer = el), class: this.elementClass }, h("div", { key: 'e838b0d47874973d88bd325cadafcbccecd62e71', class: "spw-modal__overlay", onClick: () => this.handleOverlayClick() }), h("div", { key: '959a56f373b62d3905ca072f842270d50f7974e9', "data-focus-trap-edge": true, onFocus: this.handleTopFocus, tabindex: "0" }), h("div", { key: '5a4e4d7e92007969e2bdfbccb8a30901448edaa4', class: `spw-modal__content-container spw-modal__content-container--${this.size}`, role: "dialog", "aria-modal": "true", "aria-label": this.caption }, h("div", { key: 'ff3c6bd78a3aa647a5fc10b007219bfa0a406fbc', class: "spw-modal__content" }, h("div", { key: '78448d8952820d8d1b32c8633642daca6e6eaa61', class: "spw-modal__header" }, h("h2", { key: '64cd4b7a37899ff59b94cdfaeb24841c185ff68d', class: "spw-modal__caption" }, this.caption), this.showCloseButton && (h("spw-icon", { key: '6ccf7739a69cc24dd7d05ee73851bdc9391e63d0', class: "spw-modal__close-button", ref: el => (this.closeButton = el), icon: "fa-xmark", onClick: () => this.doBeforeClose('CLOSE_BUTTON') }))), h("div", { key: '588bb35bb2dc1cdff8d85911851fa3acbd2e36c4', class: "spw-modal__body" }, h("slot", { key: 'b9e689f2f08aa6456eaeb4481ac09bf7841ded24', name: "content" })), h("div", { key: '7d66d94b7de6b109d9897d44329c897822f70179', class: "spw-modal__buttons" }, h("slot", { key: '052f64558204a71b45cf367026c5213939645ba4', name: "buttons" })))), h("div", { key: '65632a2bcb8d66ab99f45a20e159caaf44a3cec7', "data-focus-trap-edge": true, onFocus: this.handleBottomFocus, tabindex: "0" }))));
302
+ return (h(Host, { key: '48c698e01ba5d0545c04246eaddbde29a9cae6b9' }, h("div", { key: 'a82e49fb97ee9d19dd1fc4fcde824e408cbdef09', ref: el => (this.modalContainer = el), class: this.elementClass }, h("div", { key: '35eb6c15f52d877cf0089904238651f39d66c964', class: "spw-modal__overlay", onClick: () => this.handleOverlayClick() }), h("div", { key: 'cff9c1866bfba1349853f075868ae1cddb8f4a03', "data-focus-trap-edge": true, onFocus: this.handleTopFocus, tabindex: "0" }), h("div", { key: '44c011464dbea7f7e41c33d36c703689f0953dff', class: `spw-modal__content-container spw-modal__content-container--${this.size}`, role: "dialog", "aria-modal": "true", "aria-label": this.caption }, h("div", { key: '2b8c969ed7a5d0ff31b1993ba3cf6582dcfd3a4a', class: "spw-modal__content" }, h("div", { key: '9a8857bfae65ab5faa7df24591090a073e7b8a7f', class: "spw-modal__header" }, h("h2", { key: 'adb8a929be3706f248767beac148efd1c5ab02ba', class: "spw-modal__caption" }, this.caption), this.showCloseButton && (h("spw-icon", { key: '0a295da24d9deec49c7cb6dca7c9b02478aaedf8', class: "spw-modal__close-button", ref: el => (this.closeButton = el), icon: "fa-xmark", onClick: () => this.doBeforeClose('CLOSE_BUTTON') }))), h("div", { key: '81a2f2838737c49291eea6c571db70d2c5858141', class: "spw-modal__body" }, h("slot", { key: '2641d4d98bb5e4b3a2bd0b4fcff1587a7e071337', name: "content" })), h("div", { key: '640ae662d1b7e4a9d3fac0abe71a6e548d80a298', class: "spw-modal__buttons" }, h("slot", { key: '1cc48d97165b66e05dc2cce809ac9b66f9893a64', name: "buttons" })))), h("div", { key: 'c6bf055784ae5808d82b0fea5fac6e34ca9d9eca', "data-focus-trap-edge": true, onFocus: this.handleBottomFocus, tabindex: "0" }))));
296
303
  }
297
304
  get hostElement() { return getElement(this); }
298
305
  static get watchers() { return {
@@ -1 +1 @@
1
- {"version":3,"file":"spw-modal.entry.js","sources":["src/utils/focus-trap.ts","src/utils/animation.ts","src/components/spw-modal/spw-modal.scss?tag=spw-modal&encapsulation=shadow","src/components/spw-modal/spw-modal.tsx"],"sourcesContent":["/**\n * Copy/pasted from https://github.com/andreasbm/focus-trap\n */\n\n/**\n * Traverses the slots of the open shadowroots and returns all children matching the query.\n * We need to traverse each child-depth one at a time because if an element should be skipped\n * (for example because it is hidden) we need to skip all of it's children. If we use querySelectorAll(\"*\")\n * the information of whether the children is within a hidden parent is lost.\n * @param {ShadowRoot | HTMLElement} root\n * @param skipNode\n * @param isMatch\n * @param {number} maxDepth\n * @param {number} depth\n * @returns {HTMLElement[]}\n */\nexport function queryShadowRoot(\n root: ShadowRoot | HTMLElement,\n skipNode: ($elem: HTMLElement) => boolean,\n isMatch: ($elem: HTMLElement) => boolean,\n maxDepth: number = 20,\n depth: number = 0,\n): HTMLElement[] {\n const matches: HTMLElement[] = [];\n\n // If the depth is above the max depth, abort the searching here.\n if (depth >= maxDepth) {\n return matches;\n }\n\n // Traverses a slot element\n const traverseSlot = ($slot: HTMLSlotElement) => {\n // Only check nodes that are of the type Node.ELEMENT_NODE\n // Read more here https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n const assignedNodes = $slot.assignedNodes().filter(node => node.nodeType === 1);\n if (assignedNodes.length > 0) {\n const $slotParent = assignedNodes[0].parentElement!;\n return queryShadowRoot($slotParent, skipNode, isMatch, maxDepth, depth + 1);\n }\n\n return [];\n };\n\n // Go through each child and continue the traversing if necessary\n // Even though the typing says that children can't be undefined, Edge 15 sometimes gives an undefined value.\n // Therefore we fallback to an empty array if it is undefined.\n const children = Array.from(root.children || []) as HTMLElement[];\n for (const $child of children) {\n // Check if the element and its descendants should be skipped\n if (skipNode($child)) {\n // console.log('-- SKIP', $child);\n continue;\n }\n\n // console.log('$child', $child);\n\n // If the element matches we always add it\n if (isMatch($child)) {\n matches.push($child);\n }\n\n if ($child.shadowRoot != null) {\n // If the element has a shadow root we need to traverse it\n matches.push(...queryShadowRoot($child.shadowRoot, skipNode, isMatch, maxDepth, depth + 1));\n } else if ($child.tagName === 'SLOT') {\n // If the child is a slot we need to traverse each assigned node\n matches.push(...traverseSlot($child as HTMLSlotElement));\n } else {\n // Traverse the children of the element\n matches.push(...queryShadowRoot($child, skipNode, isMatch, maxDepth, depth + 1));\n }\n }\n\n return matches;\n}\n\n/**\n * Returns whether the element is hidden.\n * @param $elem\n */\nexport function isHidden($elem: HTMLElement): boolean {\n return (\n $elem.hasAttribute('hidden') ||\n ($elem.hasAttribute('aria-hidden') && $elem.getAttribute('aria-hidden') !== 'false') ||\n // A quick and dirty way to check whether the element is hidden.\n // For a more fine-grained check we could use \"window.getComputedStyle\" but we don't because of bad performance.\n // If the element has visibility set to \"hidden\" or \"collapse\", display set to \"none\" or opacity set to \"0\" through CSS\n // we won't be able to catch it here. We accept it due to the huge performance benefits.\n $elem.style.display === `none` ||\n $elem.style.opacity === `0` ||\n $elem.style.visibility === `hidden` ||\n $elem.style.visibility === `collapse`\n );\n\n // If offsetParent is null we can assume that the element is hidden\n // https://stackoverflow.com/questions/306305/what-would-make-offsetparent-null\n // || $elem.offsetParent == null;\n}\n\n/**\n * Returns whether the element is disabled.\n * @param $elem\n */\nexport function isDisabled($elem: HTMLElement): boolean {\n return $elem.hasAttribute('disabled') || ($elem.hasAttribute('aria-disabled') && $elem.getAttribute('aria-disabled') !== 'false');\n}\n\n/**\n * Determines whether an element is focusable.\n * Read more here: https://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus/1600194#1600194\n * Or here: https://stackoverflow.com/questions/18261595/how-to-check-if-a-dom-element-is-focusable\n * @param $elem\n */\nexport function isFocusable($elem: HTMLElement): boolean {\n // Discard elements that are removed from the tab order.\n if ($elem.getAttribute('tabindex') === '-1' || isHidden($elem) || isDisabled($elem)) {\n return false;\n }\n\n return (\n // At this point we know that the element can have focus (eg. won't be -1) if the tabindex attribute exists\n $elem.hasAttribute('tabindex') ||\n // Anchor tags or area tags with a href set\n (($elem instanceof HTMLAnchorElement || $elem instanceof HTMLAreaElement) && $elem.hasAttribute('href')) ||\n // Form elements which are not disabled\n $elem instanceof HTMLButtonElement ||\n $elem instanceof HTMLInputElement ||\n $elem instanceof HTMLTextAreaElement ||\n $elem instanceof HTMLSelectElement ||\n // IFrames\n $elem instanceof HTMLIFrameElement\n );\n}\n","export function animationTo(element: HTMLElement, keyframes: Keyframe | Keyframe[], options?: KeyframeAnimationOptions) {\n const animated = element.animate(keyframes, { ...options, fill: 'both' });\n animated.addEventListener('finish', () => {\n // @ts-ignore\n animated.commitStyles();\n animated.cancel();\n });\n\n return animated;\n}\n\nconst keyframeDefaults = {\n easing: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)',\n};\n\nexport const KEYFRAMES = {\n fadeIn: [\n {\n offset: 0,\n ...keyframeDefaults,\n opacity: 0,\n },\n {\n offset: 1,\n ...keyframeDefaults,\n opacity: 1,\n },\n ],\n fadeOut: [\n {\n offset: 0,\n ...keyframeDefaults,\n opacity: 1,\n },\n {\n offset: 1,\n ...keyframeDefaults,\n opacity: 0,\n },\n ],\n};\n",":host {\n display: contents;\n}\n\n.spw-modal {\n display: none;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1060;\n overflow-y: auto;\n\n &--opened {\n display: flex;\n }\n}\n\n.spw-modal__overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: black;\n opacity: 0.7;\n z-index: 0;\n}\n\n.spw-modal__content-container {\n position: absolute;\n display: flex;\n justify-content: center;\n width: 90%;\n background-color: #fff;\n box-shadow: var(--spw-effect-elevation-6);\n overflow: hidden;\n box-sizing: border-box;\n align-items: stretch;\n border-radius: var(--spw-spacings-border-radius-lg);\n\n &--small {\n max-width: 480px;\n }\n\n &--medium {\n max-width: 600px;\n }\n\n &--large {\n max-width: 768px;\n }\n\n &--fluid {\n max-width: 100%;\n }\n}\n\n.spw-modal__content {\n display: flex;\n flex-direction: column;\n border: 1px solid var(--spw-color-themes-grey-grey-300);\n width: 100%;\n max-height: 90vh;\n overflow-y: auto;\n\n .spw-modal--sticky-buttons & {\n overflow-y: visible;\n }\n}\n\n.spw-modal__icon-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n background-color: #fff;\n align-self: stretch;\n}\n\n.spw-modal__header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 24px;\n padding-bottom: 0;\n margin-top: 6px;\n margin-bottom: 12px;\n box-sizing: border-box;\n border-radius: 1px 1px 0px 0px;\n color: var(--spw-colors-support-grey-grey-900);\n}\n\n.spw-modal__caption {\n overflow: hidden;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n\n.spw-modal__header h2 {\n margin: 0;\n font-size: 18px;\n color: var(--spw-colors-support-grey-grey-900);\n}\n\n.spw-modal__header button {\n background: none;\n border: none;\n font-size: 1.5em;\n padding: 0;\n cursor: pointer;\n}\n\n.spw-modal__close-button {\n position: absolute;\n top: 12px;\n right: 12px;\n cursor: pointer;\n font-size: 21px;\n &:hover {\n opacity: 0.7;\n }\n}\n\n.spw-modal__body {\n padding: 0 24px;\n margin-bottom: 12px;\n box-sizing: border-box;\n flex: 1;\n font-size: 16px;\n color: var(--spw-colors-support-grey-grey-700);\n\n .spw-modal--sticky-buttons & {\n overflow-y: auto;\n }\n}\n\n.spw-modal__buttons {\n ::slotted([slot='buttons']) {\n padding: 24px;\n padding-top: 12px;\n }\n}\n\n.spw-modal__footer--buttons-present ::slotted(*) {\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n padding: 24px;\n padding-top: 8px;\n\n .spw-modal__content-container--small & {\n flex-direction: column;\n gap: 8px;\n }\n\n .spw-modal__content-container--medium & {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n\n.spw-modal__border {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n font-size: 1.5em;\n flex-grow: 1;\n}\n","import { Component, Prop, Element, State, Event, Host, EventEmitter, h, Watch, Method } from '@stencil/core';\nimport { queryShadowRoot, isHidden, isFocusable } from '@utils/focus-trap';\nimport { animationTo, KEYFRAMES } from '@utils/animation';\n\ntype CloseEventTrigger = 'CLOSE_BUTTON' | 'ESCAPE_KEY' | 'BACKDROP' | 'PROGRAMMATIC';\n\nexport interface BeforeCloseEventDetail {\n trigger: CloseEventTrigger;\n}\n\n@Component({\n tag: 'spw-modal',\n styleUrl: 'spw-modal.scss',\n shadow: true,\n})\nexport class SpwModal {\n /** Indique si la modal est ouverte ou fermée, mutable et reflétée dans le DOM */\n @Prop({ reflect: true, mutable: true }) opened?: boolean = false;\n\n @State() showModal: boolean = this.opened || false;\n\n /** Titre de la modal */\n @Prop() caption: string = 'Titre de la modal';\n /** Indique si la fermeture de la modal est possible en cliquant sur l'overlay */\n @Prop() closeOnOverlayClick: boolean = true;\n /** Rend les boutons en bas de la modal \"collants\" (toujours visibles) si vrai */\n @Prop() stickyButtons: boolean = false;\n /** Événement déclenché lors de l'ouverture de la modal */\n @Event() spwModalOpen: EventEmitter;\n /** Événement déclenché lors de la fermeture de la modal */\n @Event() spwModalClose: EventEmitter;\n /** Définit la taille de la modal : 'small', 'medium', 'large' ou 'fluid' */\n @Prop() size: 'small' | 'medium' | 'large' | 'fluid' = 'small';\n /** Icône d'alerte à afficher dans la modal */\n @Prop() alertIcon: string = '';\n\n @Element() hostElement: HTMLSpwModalElement;\n\n @State() slotButtonsPresent: boolean = false;\n\n /** Indique si le bouton de fermeture est visible */\n @Prop() showCloseButton: boolean = true;\n\n private modalContainer: HTMLElement;\n private focusableElements: HTMLElement[] = [];\n private closeButton: HTMLSpwIconElement;\n\n /**\n * Méthode publique pour fermer la modal programmatiquement\n * @returns Promise qui se résout quand la modal est fermée\n */\n @Method()\n async closeModal(): Promise<void> {\n this.doBeforeClose('PROGRAMMATIC');\n }\n\n /**\n * Méthode publique pour ouvrir la modal programmatiquement\n * @returns Promise qui se résout quand la modal est ouverte\n */\n @Method()\n async openModal(): Promise<void> {\n this.opened = true;\n }\n\n componentDidLoad() {\n this.focusableElements = queryShadowRoot(this.hostElement.shadowRoot, el => isHidden(el) || el.matches('[data-focus-trap-edge]'), isFocusable);\n window.addEventListener('click', this.handleClick, { capture: true });\n window.addEventListener('click', this.handleClose, { capture: true });\n window.addEventListener('keydown', this.handleKeypress);\n }\n\n disconnectedCallback() {\n window.removeEventListener('click', this.handleClick);\n window.removeEventListener('click', this.handleClose);\n window.removeEventListener('keydown', this.handleKeypress);\n }\n\n private handleClick = (event: MouseEvent) => {\n const path = event.composedPath() as HTMLElement[];\n const trigger = path.find(el => el instanceof HTMLElement && el.hasAttribute?.('data-modal-trigger')) as HTMLElement | undefined;\n\n if (trigger) {\n const modalId = trigger.getAttribute('data-modal-trigger');\n if (modalId === this.hostElement.id) {\n this.opened = true;\n }\n }\n };\n\n private handleClose = (event: MouseEvent) => {\n const path = event.composedPath() as HTMLElement[];\n const trigger = path.find(el => el instanceof HTMLElement && el.hasAttribute?.('data-modal-close')) as HTMLElement | undefined;\n\n if (trigger) {\n const modalId = trigger.getAttribute('data-modal-close');\n if (modalId === this.hostElement.id) {\n this.opened = false;\n }\n }\n };\n\n private getFirstFocusableElement(): HTMLElement | null {\n return this.focusableElements[0];\n }\n\n private getLastFocusableElement(): HTMLElement | null {\n return this.focusableElements[this.focusableElements.length - 1];\n }\n\n private handleTopFocus = () => {\n this.attemptFocus(this.getLastFocusableElement());\n };\n\n private handleBottomFocus = () => {\n this.attemptFocus(this.getFirstFocusableElement());\n };\n\n private attemptFocus(element: HTMLElement | null) {\n if (element == null) {\n setTimeout(() => {\n this.closeButton.focus();\n });\n return;\n }\n\n setTimeout(() => {\n element.focus();\n }, 0);\n }\n\n private open() {\n this.showModal = true;\n try {\n const anim = animationTo(this.modalContainer, KEYFRAMES.fadeIn, {\n duration: 200,\n });\n anim.addEventListener('finish', () => {\n setTimeout(() => {\n this.getLastFocusableElement()?.focus();\n this.getLastFocusableElement()?.blur();\n }, 0);\n\n this.spwModalOpen.emit();\n });\n } catch (err) {\n this.spwModalOpen.emit();\n }\n }\n\n private close() {\n try {\n const anim = animationTo(this.modalContainer, KEYFRAMES.fadeOut, {\n duration: 200,\n });\n anim.addEventListener('finish', () => {\n this.showModal = false;\n this.spwModalClose.emit();\n });\n } catch (err) {\n this.showModal = false;\n this.spwModalClose.emit();\n }\n }\n\n private handleKeypress = (event: KeyboardEvent) => {\n if (this.showModal && event.key === 'Escape') {\n this.doBeforeClose('ESCAPE_KEY');\n }\n };\n\n private doBeforeClose(trigger: CloseEventTrigger) {\n const triggers = [];\n triggers.push(trigger);\n const prevented = triggers.some(event => event.defaultPrevented);\n if (!prevented) {\n this.opened = false;\n }\n }\n\n @Watch('opened')\n openedChanged(newValue: boolean) {\n newValue === true ? this.open() : this.close();\n }\n\n private handleOverlayClick() {\n if (this.closeOnOverlayClick) {\n this.doBeforeClose('BACKDROP');\n }\n }\n\n private get elementClass(): { [className: string]: boolean } {\n return {\n 'spw-modal': true,\n 'spw-modal--opened': this.showModal,\n 'spw-modal--sticky-buttons': this.stickyButtons,\n };\n }\n\n render() {\n return (\n <Host>\n <div ref={el => (this.modalContainer = el)} class={this.elementClass}>\n <div class=\"spw-modal__overlay\" onClick={() => this.handleOverlayClick()}></div>\n <div data-focus-trap-edge onFocus={this.handleTopFocus} tabindex=\"0\"></div>\n <div class={`spw-modal__content-container spw-modal__content-container--${this.size}`} role=\"dialog\" aria-modal=\"true\" aria-label={this.caption}>\n <div class=\"spw-modal__content\">\n <div class=\"spw-modal__header\">\n <h2 class=\"spw-modal__caption\">{this.caption}</h2>\n {this.showCloseButton && (\n <spw-icon class=\"spw-modal__close-button\" ref={el => (this.closeButton = el)} icon=\"fa-xmark\" onClick={() => this.doBeforeClose('CLOSE_BUTTON')}></spw-icon>\n )}\n </div>\n <div class=\"spw-modal__body\">\n <slot name=\"content\" />\n </div>\n <div class=\"spw-modal__buttons\">\n <slot name=\"buttons\"></slot>\n </div>\n </div>\n </div>\n <div data-focus-trap-edge onFocus={this.handleBottomFocus} tabindex=\"0\"></div>\n </div>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA;;AAEG;AAEH;;;;;;;;;;;AAWG;AACa,SAAA,eAAe,CAC7B,IAA8B,EAC9B,QAAyC,EACzC,OAAwC,EACxC,QAAA,GAAmB,EAAE,EACrB,QAAgB,CAAC,EAAA;IAEjB,MAAM,OAAO,GAAkB,EAAE;;AAGjC,IAAA,IAAI,KAAK,IAAI,QAAQ,EAAE;AACrB,QAAA,OAAO,OAAO;;;AAIhB,IAAA,MAAM,YAAY,GAAG,CAAC,KAAsB,KAAI;;;AAG9C,QAAA,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,CAAC,CAAC;AAC/E,QAAA,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE;YAC5B,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,aAAc;AACnD,YAAA,OAAO,eAAe,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,GAAG,CAAC,CAAC;;AAG7E,QAAA,OAAO,EAAE;AACX,KAAC;;;;AAKD,IAAA,MAAM,QAAQ,GAA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E,KAAK,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,EAAE,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,EAAA,CAAa,CAC7J,CACG,EACN,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,iBAAiB,EAAA,EAC1B,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,SAAS,EAAA,CAAG,CACnB,EACN,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,oBAAoB,EAAA,EAC7B,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,SAAS,EAAQ,CAAA,CACxB,CACF,CACF,EACN,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,sBAAA,EAAA,IAAA,EAA0B,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,QAAQ,EAAC,GAAG,EAAA,CAAO,CAC1E,CACD;;;;;;;;;;;"}
1
+ {"version":3,"file":"spw-modal.entry.js","sources":["src/utils/focus-trap.ts","src/utils/animation.ts","src/components/spw-modal/spw-modal.scss?tag=spw-modal&encapsulation=shadow","src/components/spw-modal/spw-modal.tsx"],"sourcesContent":["/**\n * Copy/pasted from https://github.com/andreasbm/focus-trap\n */\n\n/**\n * Traverses the slots of the open shadowroots and returns all children matching the query.\n * We need to traverse each child-depth one at a time because if an element should be skipped\n * (for example because it is hidden) we need to skip all of it's children. If we use querySelectorAll(\"*\")\n * the information of whether the children is within a hidden parent is lost.\n * @param {ShadowRoot | HTMLElement} root\n * @param skipNode\n * @param isMatch\n * @param {number} maxDepth\n * @param {number} depth\n * @returns {HTMLElement[]}\n */\nexport function queryShadowRoot(\n root: ShadowRoot | HTMLElement,\n skipNode: ($elem: HTMLElement) => boolean,\n isMatch: ($elem: HTMLElement) => boolean,\n maxDepth: number = 20,\n depth: number = 0,\n): HTMLElement[] {\n const matches: HTMLElement[] = [];\n\n // If the depth is above the max depth, abort the searching here.\n if (depth >= maxDepth) {\n return matches;\n }\n\n // Traverses a slot element\n const traverseSlot = ($slot: HTMLSlotElement) => {\n // Only check nodes that are of the type Node.ELEMENT_NODE\n // Read more here https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n const assignedNodes = $slot.assignedNodes().filter(node => node.nodeType === 1);\n if (assignedNodes.length > 0) {\n const $slotParent = assignedNodes[0].parentElement!;\n return queryShadowRoot($slotParent, skipNode, isMatch, maxDepth, depth + 1);\n }\n\n return [];\n };\n\n // Go through each child and continue the traversing if necessary\n // Even though the typing says that children can't be undefined, Edge 15 sometimes gives an undefined value.\n // Therefore we fallback to an empty array if it is undefined.\n const children = Array.from(root.children || []) as HTMLElement[];\n for (const $child of children) {\n // Check if the element and its descendants should be skipped\n if (skipNode($child)) {\n // console.log('-- SKIP', $child);\n continue;\n }\n\n // console.log('$child', $child);\n\n // If the element matches we always add it\n if (isMatch($child)) {\n matches.push($child);\n }\n\n if ($child.shadowRoot != null) {\n // If the element has a shadow root we need to traverse it\n matches.push(...queryShadowRoot($child.shadowRoot, skipNode, isMatch, maxDepth, depth + 1));\n } else if ($child.tagName === 'SLOT') {\n // If the child is a slot we need to traverse each assigned node\n matches.push(...traverseSlot($child as HTMLSlotElement));\n } else {\n // Traverse the children of the element\n matches.push(...queryShadowRoot($child, skipNode, isMatch, maxDepth, depth + 1));\n }\n }\n\n return matches;\n}\n\n/**\n * Returns whether the element is hidden.\n * @param $elem\n */\nexport function isHidden($elem: HTMLElement): boolean {\n return (\n $elem.hasAttribute('hidden') ||\n ($elem.hasAttribute('aria-hidden') && $elem.getAttribute('aria-hidden') !== 'false') ||\n // A quick and dirty way to check whether the element is hidden.\n // For a more fine-grained check we could use \"window.getComputedStyle\" but we don't because of bad performance.\n // If the element has visibility set to \"hidden\" or \"collapse\", display set to \"none\" or opacity set to \"0\" through CSS\n // we won't be able to catch it here. We accept it due to the huge performance benefits.\n $elem.style.display === `none` ||\n $elem.style.opacity === `0` ||\n $elem.style.visibility === `hidden` ||\n $elem.style.visibility === `collapse`\n );\n\n // If offsetParent is null we can assume that the element is hidden\n // https://stackoverflow.com/questions/306305/what-would-make-offsetparent-null\n // || $elem.offsetParent == null;\n}\n\n/**\n * Returns whether the element is disabled.\n * @param $elem\n */\nexport function isDisabled($elem: HTMLElement): boolean {\n return $elem.hasAttribute('disabled') || ($elem.hasAttribute('aria-disabled') && $elem.getAttribute('aria-disabled') !== 'false');\n}\n\n/**\n * Determines whether an element is focusable.\n * Read more here: https://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus/1600194#1600194\n * Or here: https://stackoverflow.com/questions/18261595/how-to-check-if-a-dom-element-is-focusable\n * @param $elem\n */\nexport function isFocusable($elem: HTMLElement): boolean {\n // Discard elements that are removed from the tab order.\n if ($elem.getAttribute('tabindex') === '-1' || isHidden($elem) || isDisabled($elem)) {\n return false;\n }\n\n return (\n // At this point we know that the element can have focus (eg. won't be -1) if the tabindex attribute exists\n $elem.hasAttribute('tabindex') ||\n // Anchor tags or area tags with a href set\n (($elem instanceof HTMLAnchorElement || $elem instanceof HTMLAreaElement) && $elem.hasAttribute('href')) ||\n // Form elements which are not disabled\n $elem instanceof HTMLButtonElement ||\n $elem instanceof HTMLInputElement ||\n $elem instanceof HTMLTextAreaElement ||\n $elem instanceof HTMLSelectElement ||\n // IFrames\n $elem instanceof HTMLIFrameElement\n );\n}\n","export function animationTo(element: HTMLElement, keyframes: Keyframe | Keyframe[], options?: KeyframeAnimationOptions) {\n const animated = element.animate(keyframes, { ...options, fill: 'both' });\n animated.addEventListener('finish', () => {\n // @ts-ignore\n animated.commitStyles();\n animated.cancel();\n });\n\n return animated;\n}\n\nconst keyframeDefaults = {\n easing: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)',\n};\n\nexport const KEYFRAMES = {\n fadeIn: [\n {\n offset: 0,\n ...keyframeDefaults,\n opacity: 0,\n },\n {\n offset: 1,\n ...keyframeDefaults,\n opacity: 1,\n },\n ],\n fadeOut: [\n {\n offset: 0,\n ...keyframeDefaults,\n opacity: 1,\n },\n {\n offset: 1,\n ...keyframeDefaults,\n opacity: 0,\n },\n ],\n};\n",":host {\n display: contents;\n}\n\n.spw-modal {\n display: none;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1060;\n overflow-y: auto;\n\n &--opened {\n display: flex;\n }\n}\n\n.spw-modal__overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: black;\n opacity: 0.7;\n z-index: 0;\n}\n\n.spw-modal__content-container {\n position: absolute;\n display: flex;\n justify-content: center;\n width: 90%;\n background-color: #fff;\n box-shadow: var(--spw-effect-elevation-6);\n overflow: hidden;\n box-sizing: border-box;\n align-items: stretch;\n border-radius: var(--spw-spacings-border-radius-lg);\n\n &--small {\n max-width: 480px;\n }\n\n &--medium {\n max-width: 600px;\n }\n\n &--large {\n max-width: 768px;\n }\n\n &--fluid {\n max-width: 100%;\n }\n}\n\n.spw-modal__content {\n display: flex;\n flex-direction: column;\n border: 1px solid var(--spw-color-themes-grey-grey-300);\n width: 100%;\n max-height: 90vh;\n overflow-y: auto;\n\n .spw-modal--sticky-buttons & {\n overflow-y: visible;\n }\n}\n\n.spw-modal__icon-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n background-color: #fff;\n align-self: stretch;\n}\n\n.spw-modal__header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 24px;\n padding-bottom: 0;\n margin-top: 6px;\n margin-bottom: 12px;\n box-sizing: border-box;\n border-radius: 1px 1px 0px 0px;\n color: var(--spw-colors-support-grey-grey-900);\n}\n\n.spw-modal__caption {\n overflow: hidden;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n\n.spw-modal__header h2 {\n margin: 0;\n font-size: 18px;\n color: var(--spw-colors-support-grey-grey-900);\n}\n\n.spw-modal__header button {\n background: none;\n border: none;\n font-size: 1.5em;\n padding: 0;\n cursor: pointer;\n}\n\n.spw-modal__close-button {\n position: absolute;\n top: 12px;\n right: 12px;\n cursor: pointer;\n font-size: 21px;\n &:hover {\n opacity: 0.7;\n }\n}\n\n.spw-modal__body {\n padding: 0 24px;\n margin-bottom: 12px;\n box-sizing: border-box;\n flex: 1;\n font-size: 16px;\n color: var(--spw-colors-support-grey-grey-700);\n\n .spw-modal--sticky-buttons & {\n overflow-y: auto;\n }\n}\n\n.spw-modal__buttons {\n padding-top: 12px;\n ::slotted([slot='buttons']) {\n padding: 24px;\n padding-top: 0;\n }\n}\n\n.spw-modal__footer--buttons-present ::slotted(*) {\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n padding: 24px;\n padding-top: 8px;\n\n .spw-modal__content-container--small & {\n flex-direction: column;\n gap: 8px;\n }\n\n .spw-modal__content-container--medium & {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n\n.spw-modal__border {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n font-size: 1.5em;\n flex-grow: 1;\n}\n","import { Component, Prop, Element, State, Event, Host, EventEmitter, h, Watch, Method } from '@stencil/core';\nimport { queryShadowRoot, isHidden, isFocusable } from '@utils/focus-trap';\nimport { animationTo, KEYFRAMES } from '@utils/animation';\n\ntype CloseEventTrigger = 'CLOSE_BUTTON' | 'ESCAPE_KEY' | 'BACKDROP' | 'PROGRAMMATIC';\n\nexport interface BeforeCloseEventDetail {\n trigger: CloseEventTrigger;\n}\n\n@Component({\n tag: 'spw-modal',\n styleUrl: 'spw-modal.scss',\n shadow: true,\n})\nexport class SpwModal {\n /** Indique si la modal est ouverte ou fermée, mutable et reflétée dans le DOM */\n @Prop({ reflect: true, mutable: true }) opened?: boolean = false;\n\n @State() showModal: boolean = this.opened || false;\n\n /** Titre de la modal */\n @Prop() caption: string = 'Titre de la modal';\n /** Indique si la fermeture de la modal est possible en cliquant sur l'overlay */\n @Prop() closeOnOverlayClick: boolean = true;\n /** Rend les boutons en bas de la modal \"collants\" (toujours visibles) si vrai */\n @Prop() stickyButtons: boolean = false;\n /** Événement déclenché lors de l'ouverture de la modal */\n @Event() spwModalOpen: EventEmitter;\n /** Événement déclenché lors de la fermeture de la modal */\n @Event() spwModalClose: EventEmitter;\n /** Définit la taille de la modal : 'small', 'medium', 'large' ou 'fluid' */\n @Prop() size: 'small' | 'medium' | 'large' | 'fluid' = 'small';\n /** Icône d'alerte à afficher dans la modal */\n @Prop() alertIcon: string = '';\n\n @Element() hostElement: HTMLSpwModalElement;\n\n @State() slotButtonsPresent: boolean = false;\n\n /** Indique si le bouton de fermeture est visible */\n @Prop() showCloseButton: boolean = true;\n\n private modalContainer: HTMLElement;\n private focusableElements: HTMLElement[] = [];\n private closeButton: HTMLSpwIconElement;\n\n /**\n * Méthode publique pour fermer la modal programmatiquement\n * @returns Promise qui se résout quand la modal est fermée\n */\n @Method()\n async closeModal(): Promise<void> {\n this.doBeforeClose('PROGRAMMATIC');\n }\n\n /**\n * Méthode publique pour ouvrir la modal programmatiquement\n * @returns Promise qui se résout quand la modal est ouverte\n */\n @Method()\n async openModal(): Promise<void> {\n this.opened = true;\n }\n\n componentDidLoad() {\n this.focusableElements = queryShadowRoot(this.hostElement.shadowRoot, el => isHidden(el) || el.matches('[data-focus-trap-edge]'), isFocusable);\n window.addEventListener('click', this.handleClick, { capture: true });\n window.addEventListener('click', this.handleClose, { capture: true });\n window.addEventListener('keydown', this.handleKeypress);\n }\n\n disconnectedCallback() {\n window.removeEventListener('click', this.handleClick);\n window.removeEventListener('click', this.handleClose);\n window.removeEventListener('keydown', this.handleKeypress);\n }\n\n private handleClick = (event: MouseEvent) => {\n const path = event.composedPath() as HTMLElement[];\n const trigger = path.find(el => el instanceof HTMLElement && el.hasAttribute?.('data-modal-trigger')) as HTMLElement | undefined;\n\n if (trigger) {\n const modalId = trigger.getAttribute('data-modal-trigger');\n if (modalId === this.hostElement.id) {\n this.opened = true;\n }\n }\n };\n\n private handleClose = (event: MouseEvent) => {\n const path = event.composedPath() as HTMLElement[];\n const trigger = path.find(el => el instanceof HTMLElement && el.hasAttribute?.('data-modal-close')) as HTMLElement | undefined;\n\n if (trigger) {\n const modalId = trigger.getAttribute('data-modal-close');\n if (modalId === this.hostElement.id) {\n this.opened = false;\n }\n }\n };\n\n private getFirstFocusableElement(): HTMLElement | null {\n return this.focusableElements[0];\n }\n\n private getLastFocusableElement(): HTMLElement | null {\n return this.focusableElements[this.focusableElements.length - 1];\n }\n\n private handleTopFocus = () => {\n this.attemptFocus(this.getLastFocusableElement());\n };\n\n private handleBottomFocus = () => {\n this.attemptFocus(this.getFirstFocusableElement());\n };\n\n private attemptFocus(element: HTMLElement | null) {\n if (element == null) {\n setTimeout(() => {\n this.closeButton.focus();\n });\n return;\n }\n\n setTimeout(() => {\n element.focus();\n }, 0);\n }\n\n private open() {\n this.showModal = true;\n try {\n const anim = animationTo(this.modalContainer, KEYFRAMES.fadeIn, {\n duration: 200,\n });\n anim.addEventListener('finish', () => {\n setTimeout(() => {\n this.getLastFocusableElement()?.focus();\n this.getLastFocusableElement()?.blur();\n }, 0);\n\n this.spwModalOpen.emit();\n });\n } catch (err) {\n this.spwModalOpen.emit();\n }\n }\n\n private close() {\n this.stopAllVideos();\n try {\n const anim = animationTo(this.modalContainer, KEYFRAMES.fadeOut, {\n duration: 200,\n });\n anim.addEventListener('finish', () => {\n this.showModal = false;\n this.spwModalClose.emit();\n });\n } catch (err) {\n this.showModal = false;\n this.spwModalClose.emit();\n }\n }\n\n private stopAllVideos() {\n const iframes = this.hostElement.querySelectorAll('iframe');\n iframes.forEach(iframe => {\n iframe.src = iframe.src;\n });\n }\n\n private handleKeypress = (event: KeyboardEvent) => {\n if (this.showModal && event.key === 'Escape') {\n this.doBeforeClose('ESCAPE_KEY');\n }\n };\n\n private doBeforeClose(trigger: CloseEventTrigger) {\n const triggers = [];\n triggers.push(trigger);\n const prevented = triggers.some(event => event.defaultPrevented);\n if (!prevented) {\n this.opened = false;\n }\n }\n\n @Watch('opened')\n openedChanged(newValue: boolean) {\n newValue === true ? this.open() : this.close();\n }\n\n private handleOverlayClick() {\n if (this.closeOnOverlayClick) {\n this.doBeforeClose('BACKDROP');\n }\n }\n\n private get elementClass(): { [className: string]: boolean } {\n return {\n 'spw-modal': true,\n 'spw-modal--opened': this.showModal,\n 'spw-modal--sticky-buttons': this.stickyButtons,\n };\n }\n\n render() {\n return (\n <Host>\n <div ref={el => (this.modalContainer = el)} class={this.elementClass}>\n <div class=\"spw-modal__overlay\" onClick={() => this.handleOverlayClick()}></div>\n <div data-focus-trap-edge onFocus={this.handleTopFocus} tabindex=\"0\"></div>\n <div class={`spw-modal__content-container spw-modal__content-container--${this.size}`} role=\"dialog\" aria-modal=\"true\" aria-label={this.caption}>\n <div class=\"spw-modal__content\">\n <div class=\"spw-modal__header\">\n <h2 class=\"spw-modal__caption\">{this.caption}</h2>\n {this.showCloseButton && (\n <spw-icon class=\"spw-modal__close-button\" ref={el => (this.closeButton = el)} icon=\"fa-xmark\" onClick={() => this.doBeforeClose('CLOSE_BUTTON')}></spw-icon>\n )}\n </div>\n <div class=\"spw-modal__body\">\n <slot name=\"content\" />\n </div>\n <div class=\"spw-modal__buttons\">\n <slot name=\"buttons\"></slot>\n </div>\n </div>\n </div>\n <div data-focus-trap-edge onFocus={this.handleBottomFocus} tabindex=\"0\"></div>\n </div>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA;;AAEG;AAEH;;;;;;;;;;;AAWG;AACa,SAAA,eAAe,CAC7B,IAA8B,EAC9B,QAAyC,EACzC,OAAwC,EACxC,QAAA,GAAmB,EAAE,EACrB,QAAgB,CAAC,EAAA;IAEjB,MAAM,OAAO,GAAkB,EAAE;;AAGjC,IAAA,IAAI,KAAK,IAAI,QAAQ,EAAE;AACrB,QAAA,OAAO,OAAO;;;AAIhB,IAAA,MAAM,YAAY,GAA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,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,sBAAA,EAAA,IAAA,EAA0B,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,QAAQ,EAAC,GAAG,EAAA,CAAO,CAC1E,CACD;;;;;;;;;;;"}
@@ -20,7 +20,7 @@ const SpwMosaicItem = class {
20
20
  this.el.style.setProperty('--spw-mosaic-item-width-desktop', `calc(100% / ${colsDesktop})`);
21
21
  }
22
22
  render() {
23
- return (h(Host, { key: '777ed50773d2a53a334e62ebf41afd26140290be' }, h("slot", { key: '2c9f8f5b9cd454b9adcc33b253c0d2a7d98c6d32' })));
23
+ return (h(Host, { key: 'c726f2de1d38182ed770c2d04d009c70dd66154a' }, h("slot", { key: 'b3bc026c63f237dbe70c3af28358db7210419a2d' })));
24
24
  }
25
25
  get el() { return getElement(this); }
26
26
  };
@@ -2508,7 +2508,7 @@ const SpwMosaic = class {
2508
2508
  };
2509
2509
  }
2510
2510
  render() {
2511
- return (h(Host, { key: 'd3af26d6a7bb38bd05d47b1e6d796fb5b5d27871' }, h("div", { key: '6385d379e19cdd77891340b27d585af00b78d82a', class: this.elementClass }, h("slot", { key: '31b642d80de4ae0156695b06e2c7d8c10eeb7bac' }))));
2511
+ return (h(Host, { key: '117e400a488b8924e1a5932a113a2b708ed6d996' }, h("div", { key: 'c8baead6cfd55eb34298997107b85667acbf577f', class: this.elementClass }, h("slot", { key: 'fb8948e5e1db602c7309505660e647e615c1a8f8' }))));
2512
2512
  }
2513
2513
  get el() { return getElement(this); }
2514
2514
  static get watchers() { return {
@@ -151,12 +151,12 @@ const SpwPagination = class {
151
151
  const pages = this.calculatePageRange();
152
152
  const showPrevArrow = this.currentPage > 1;
153
153
  const showNextArrow = this.currentPage < this.totalPages;
154
- const prevArrow = showPrevArrow && (h("li", { key: '93b7b7b7e63a0f412ba0cd3ce24184fe82e1dd97', class: "spw-pagination__item spw-pagination__item--desktop spw-pagination__item--arrow" }, h("button", { key: 'd72f5565596f08444ad3faa718e4ce482f5444eb', onClick: () => this.goToPage(this.currentPage - 1) }, h("spw-icon", { key: '088d91e7c6e7cb046473cf89a4e0e7679d2050f4', icon: "fa-chevron-left" }), " ", h("span", { key: '08cc3c30ed90e5606e30d2782a2cc03668d465c1', class: "spw-pagination__item-arrow-text" }, "Pr\u00E9c\u00E9dent"))));
155
- const nextArrow = showNextArrow && (h("li", { key: 'cbf1b440f1eb2635e30cb80da5d8a1ffdd1f87bd', class: "spw-pagination__item spw-pagination__item--desktop spw-pagination__item--arrow" }, h("button", { key: '835ecbf9ca6769b4b254719b02465c7e1fdc1914', onClick: () => this.goToPage(this.currentPage + 1) }, h("span", { key: '583807dca336b9c5cb6ec86e1feb6907c6495797', class: "spw-pagination__item-arrow-text" }, "Suivant"), " ", h("spw-icon", { key: '43fb4e649edba05cba2ed79ce47e81fc68ab2f8c', icon: "fa-chevron-right" }))));
156
- const prevArrowMobile = this.currentPage > 1 && (h("li", { key: '8a5ad0c164c4cfa61c189e4dbcf89932b97b8c06', class: "spw-pagination__item spw-pagination__item--arrow" }, h("button", { key: '63fc9e75e422091c7d1def40d194b7effc7afec3', onClick: () => this.goToPage(this.currentPage - 1) }, h("spw-icon", { key: '174ff450acf99500bee370850ac30d045ec324cc', icon: "fa-chevron-left" }), " ", h("span", { key: '442d67afa7c34c5c8cd3b8dc8d1d1f555ed1223b' }, "Pr\u00E9c\u00E9dent"))));
157
- const nextArrowMobile = this.currentPage < this.totalPages && (h("li", { key: '7b031cd5000f95c4b921d848b634e2dc4c9289be', class: "spw-pagination__item spw-pagination__item--arrow" }, h("button", { key: 'd8c57c1604f2638ee44657ff8f3f4617b4ff38d5', onClick: () => this.goToPage(this.currentPage + 1), disabled: this.currentPage >= this.totalPages }, h("span", { key: '29d978a4bf52f7c146401442821b7b3336ec0217' }, "Suivant"), " ", h("spw-icon", { key: '14559f10203814d0b42fc6567a15b6ed3a993bda', icon: "fa-chevron-right" }))));
158
- const mobileArrows = (h("ul", { key: 'ca42a18d13d6533e18b89f1cb6131e31a14d41fc', class: "spw-pagination__mobile-arrows" }, prevArrowMobile, nextArrowMobile));
159
- return (h(Host, { key: 'a2ed6883a1af9b1750e4833c4c559c6d958a74b5' }, h("div", { key: '6e7361afa017fe41525d67414346bca67471ab33', class: this.getPaginationClass() }, this.variant === 'input' && (h(Fragment, { key: '64316a6450d4cd29f6064bcba7d3a161a84a69a3' }, h("ul", { key: 'c576be59dc85a343c423aa53c2688028d4f6b0af' }, prevArrow, h("li", { key: '38b2dac9f26e71fc4cf95c48c8e6accdf7f9d41f', class: "spw-pagination__input" }, h("spw-text-field", { key: 'c87191808ecce0ab90343d1f920acf6b0df1deea', value: this.inputPageValue, type: "text", onInput: event => this.handleInputChange(event), onKeyDown: event => this.handleKeyDown(event), disabled: this.isDisabled, style: { width: this.calculateWidth() } })), h("li", { key: '612f6734bbe6ba502797545a3336d0e4392d164e', class: "spw-pagination__total-pages" }, "sur ", this.totalPages, " pages"), nextArrow), mobileArrows)), this.variant === 'numbers' && (h(Fragment, { key: 'efa601b474e1e77bb2ece97e9a93a8c20cc7e216' }, h("ul", { key: '6d31ecbb8d703920c38d2eb6da9e55e0e5b99eae' }, prevArrow, pages.map(({ page, class: pageClass }) => {
154
+ const prevArrow = showPrevArrow && (h("li", { key: '23e8fe7cb9bf88f35c1f1f99a3c6bcaa7af2fc96', class: "spw-pagination__item spw-pagination__item--desktop spw-pagination__item--arrow" }, h("button", { key: '6a647a7f177e3889cdcd190dddbbd5885dccc892', onClick: () => this.goToPage(this.currentPage - 1) }, h("spw-icon", { key: 'd4fae743d7651d8e95dbe7a221275d9be131185b', icon: "fa-chevron-left" }), " ", h("span", { key: '3be1084c190aeb0a9ba59d0ba2068d5eb7dc0e21', class: "spw-pagination__item-arrow-text" }, "Pr\u00E9c\u00E9dent"))));
155
+ const nextArrow = showNextArrow && (h("li", { key: '3256bbafc49646f669217c2d7282eceea1c1ac9c', class: "spw-pagination__item spw-pagination__item--desktop spw-pagination__item--arrow" }, h("button", { key: '02e3536426a160343e0e0b34f140ae3e457c513c', onClick: () => this.goToPage(this.currentPage + 1) }, h("span", { key: '26a62ad836a7131c780963c5ab5e95f178cc2343', class: "spw-pagination__item-arrow-text" }, "Suivant"), " ", h("spw-icon", { key: '0431aa80be22ce6585cf68766a225d0a8844aa27', icon: "fa-chevron-right" }))));
156
+ const prevArrowMobile = this.currentPage > 1 && (h("li", { key: 'b5a3c4e674f893d4c8334dfa477003af35853532', class: "spw-pagination__item spw-pagination__item--arrow" }, h("button", { key: '13427b7d0284a79d2c832de2dbbce46eb055d300', onClick: () => this.goToPage(this.currentPage - 1) }, h("spw-icon", { key: 'a32885548c3dabefd4907138dc676e9c6c1ef436', icon: "fa-chevron-left" }), " ", h("span", { key: 'c8ec154db3bb084a1cc3fe42de20fdeee18e8050' }, "Pr\u00E9c\u00E9dent"))));
157
+ const nextArrowMobile = this.currentPage < this.totalPages && (h("li", { key: 'e85fc334e74d0924f74f1ad6b8f748291917c378', class: "spw-pagination__item spw-pagination__item--arrow" }, h("button", { key: 'b9f9150062da23f9a86651d7e967343781887627', onClick: () => this.goToPage(this.currentPage + 1), disabled: this.currentPage >= this.totalPages }, h("span", { key: '6b9cfe60c786a19eacdd8457b82b6182d7cee3ab' }, "Suivant"), " ", h("spw-icon", { key: '0862e8d7e6ae9097e5221643e86638b0e79b5363', icon: "fa-chevron-right" }))));
158
+ const mobileArrows = (h("ul", { key: 'f7efec01971ca4afeedfee572c82f8957c470e2b', class: "spw-pagination__mobile-arrows" }, prevArrowMobile, nextArrowMobile));
159
+ return (h(Host, { key: '04b18ee37c26515723429eb4844f1609d587b7e8' }, h("div", { key: '4a8a8484cdf6506f9b6fffd64cba8b433d7f95d6', class: this.getPaginationClass() }, this.variant === 'input' && (h(Fragment, { key: '54dedb6e5d280a02aa652f6ca703cfd784c0565f' }, h("ul", { key: '53aa2e0bec339e9f6a0625f8c055637166090933' }, prevArrow, h("li", { key: '92df3c5a2fb15a9e02d3e47be5dbbc65a81e704b', class: "spw-pagination__input" }, h("spw-text-field", { key: '39205d9ce11a9a84b1e75f33efe605e80cd4b409', value: this.inputPageValue, type: "text", onInput: event => this.handleInputChange(event), onKeyDown: event => this.handleKeyDown(event), disabled: this.isDisabled, style: { width: this.calculateWidth() } })), h("li", { key: '6700f9ec12c9311d7bb49feba4674735ac45074f', class: "spw-pagination__total-pages" }, "sur ", this.totalPages, " pages"), nextArrow), mobileArrows)), this.variant === 'numbers' && (h(Fragment, { key: '7e1b28fe5ab3d9451b88e90eb7bda30522b305f4' }, h("ul", { key: '4e0c92397b92fd9247db02b3915ea430e40c7001' }, prevArrow, pages.map(({ page, class: pageClass }) => {
160
160
  if (page === '...') {
161
161
  return (h("li", { class: `spw-pagination__item spw-pagination__item--dots ${pageClass}` }, h("spw-icon", { icon: "fa-ellipsis" })));
162
162
  }
@@ -93,7 +93,7 @@ const SpwRadio = class {
93
93
  render() {
94
94
  const slot = this.el.innerHTML;
95
95
  const hasSlot = Boolean(slot);
96
- return (h("div", { key: '341ca0ede848a22ba1ce3fa54228642c94206208', class: "spw-radio" }, h("input", { key: 'c663e784e069eb5cf798488cacf7f39b01708999', type: "radio", ref: el => (this.inputElement = el), checked: this.internalChecked, onChange: this.handleRadio.bind(this), name: this.name, value: this.value, disabled: this.disabled, style: { display: 'none' } }), hasSlot && (h("label", { key: '14f3f9c6f1897f75e0b546f188b67ded8c6a0bb0', class: `spw-radio__label ${this.disabled ? 'spw-radio__label--disabled' : ''}`, onClick: this.handleRadio.bind(this) }, h("slot", { key: 'b18d354b0ca8b89b26d8d43b236c57e51de3814a' }))), h("div", { key: '3b8e088d843c84b2ad21b96e13684dc75654a3f1', tabIndex: this.disabled ? -1 : 0, onClick: this.handleRadio.bind(this), onKeyDown: this.handleKeydown.bind(this), role: "radio", "aria-checked": this.internalChecked, "aria-disabled": this.disabled, "aria-labelledby": "label", class: this.elementClass }, this.internalChecked && h("span", { key: '93071e5d99bb7f78351b0d78720dc65b2c99cd6f', class: "spw-radio__circle" }))));
96
+ return (h("div", { key: 'baa7577a2208b0068e8b645ace6a526097662795', class: "spw-radio" }, h("input", { key: '98eafc01aad495f34f06ddea944315614214deeb', type: "radio", ref: el => (this.inputElement = el), checked: this.internalChecked, onChange: this.handleRadio.bind(this), name: this.name, value: this.value, disabled: this.disabled, style: { display: 'none' } }), hasSlot && (h("label", { key: '12bbed6c31f0ef2e7273ba7ae5a44171f1442b84', class: `spw-radio__label ${this.disabled ? 'spw-radio__label--disabled' : ''}`, onClick: this.handleRadio.bind(this) }, h("slot", { key: '4212bdb0eb06dfc1f55f29f13b57cb3520a0e9d5' }))), h("div", { key: 'a1b30aec9156411cd9859c514785abbc3b76c6aa', tabIndex: this.disabled ? -1 : 0, onClick: this.handleRadio.bind(this), onKeyDown: this.handleKeydown.bind(this), role: "radio", "aria-checked": this.internalChecked, "aria-disabled": this.disabled, "aria-labelledby": "label", class: this.elementClass }, this.internalChecked && h("span", { key: 'eed4894d706357d7f230b89b03ba199dfb85ca6e', class: "spw-radio__circle" }))));
97
97
  }
98
98
  static get formAssociated() { return true; }
99
99
  get el() { return getElement(this); }
@@ -136,10 +136,10 @@ const SpwSearchField = class {
136
136
  };
137
137
  }
138
138
  render() {
139
- return (h("div", { key: '7cdca9f13fa7eafd8daed5d5e895e57e7a62eed6', ref: el => (this.hostElement = el), class: this.elementClass }, h("spw-text-field", { key: 'e47decd821d472dd4e99b7f812ab454591f5cfad', placeholder: this.placeholder, name: this.name, label: this.label, size: this.size, "is-search": true, "is-clear": true, required: this.required, disabled: this.disabled, assistiveText: this.assistiveText, value: this.searchText, onInput: event => this.handleSearchInput(event), onKeyDown: event => this.handleKeyDown(event) }), this.isOpen && !!this.items && (h("div", { key: '3c011d6dfd26b6863a0fe0d36594b86bdea1f2bb', class: `spw-search-field__options spw-search-field__options--${this.dropdownDirection}` }, !!this.filteredItems.length && (h("ul", { key: '6af2531d99fed0f945a790f73e8cf6b75cdba179' }, this.filteredItems.map((item, index) => (h("li", { class: {
139
+ return (h("div", { key: 'f3cd48c80c32587805de72f3a660e52dffa8e17a', ref: el => (this.hostElement = el), class: this.elementClass }, h("spw-text-field", { key: 'c26ce464161f090dfc9ea2adb9e365e4bda12919', placeholder: this.placeholder, name: this.name, label: this.label, size: this.size, "is-search": true, "is-clear": true, required: this.required, disabled: this.disabled, assistiveText: this.assistiveText, value: this.searchText, onInput: event => this.handleSearchInput(event), onKeyDown: event => this.handleKeyDown(event) }), this.isOpen && !!this.items && (h("div", { key: 'c7ca8245c7c6fcee65897d335234cefd97429409', class: `spw-search-field__options spw-search-field__options--${this.dropdownDirection}` }, !!this.filteredItems.length && (h("ul", { key: '5f80870d7304e8cd3c0a781a77b1c9fcf8eb0592' }, this.filteredItems.map((item, index) => (h("li", { class: {
140
140
  'spw-search-field__option': true,
141
141
  'spw-search-field__option--focused': index === this.focusedItemIndex,
142
- }, onClick: () => this.selectItem(item) }, this.highlightMatch(item.label), " ", item.category && h("span", { class: "spw-tw-italic" }, " - ", item.category)))))), !this.filteredItems.length && h("p", { key: '51b90874356e8fa8f2f8c8a603c35b438a7b04a5', class: "spw-search-field__no-results" }, "Pas de r\u00E9sultats.")))));
142
+ }, onClick: () => this.selectItem(item) }, this.highlightMatch(item.label), " ", item.category && h("span", { class: "spw-tw-italic" }, " - ", item.category)))))), !this.filteredItems.length && h("p", { key: 'b1970a37534fed8358ec30cc62d07badc45bff9e', class: "spw-search-field__no-results" }, "Pas de r\u00E9sultats.")))));
143
143
  }
144
144
  static get watchers() { return {
145
145
  "items": ["parseItems"]
@@ -15,7 +15,7 @@ const SpwSidebarNavigationDropdown = class {
15
15
  };
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: '4a893e6ce9b405fe37145a7e129593833423a4d6', class: this.classes }, h("div", { key: 'a7a9de1e9a4a801abaeb77932fff8f6808eb0326', class: "spw-sidebar-navigation-dropdown__content", style: { display: this.open ? 'block' : 'none' } }, h("slot", { key: '8c1221ce9034d5fc3cfe0f2ba741f6529b36a187' }))));
18
+ return (h(Host, { key: '3856d77e8803085928919315aff1997af803d318', class: this.classes }, h("div", { key: '6ce3b93698efcc4d187a5b49108648735140487d', class: "spw-sidebar-navigation-dropdown__content", style: { display: this.open ? 'block' : 'none' } }, h("slot", { key: 'c975c7f2b9e3c57e0d85a53a50f78b87d58e9362' }))));
19
19
  }
20
20
  };
21
21
  SpwSidebarNavigationDropdown.style = spwSidebarNavigationDropdownCss;
@@ -95,14 +95,14 @@ const SpwSidebarNavigationItem = class {
95
95
  }
96
96
  render() {
97
97
  const Tag = this.href && !this.disabled ? 'a' : 'div';
98
- const iconContent = h("spw-icon", { key: '8371a1fe7024feb9c68534858fc8768a7e1cf95e', variant: this.iconVariant, icon: this.icon });
99
- const iconDiv = (h("div", { key: 'e9e34febe064a3facaa09fd23d330ac417d04c04', class: "spw-sidebar-navigation-item__icon" }, this.bubble && h("span", { key: '31ae7f9415ebe94381b9df72b00897064ad2f88e', class: "spw-sidebar-navigation-item__bubble" }, this.bubble), iconContent));
98
+ const iconContent = h("spw-icon", { key: '2f9860be47d53d7bfa9be6e901ce515682aed40c', variant: this.iconVariant, icon: this.icon });
99
+ const iconDiv = (h("div", { key: '740859f0b9ef998cfb5a0412347c6cd0b574e930', class: "spw-sidebar-navigation-item__icon" }, this.bubble && h("span", { key: '8ea56c6f135f052bc237df0690ec601f1a5a5744', class: "spw-sidebar-navigation-item__bubble" }, this.bubble), iconContent));
100
100
  const iconWithBubble = this.tooltipTitle ? (h("spw-tooltip", { cursor: this.disabled ? 'disabled' : 'pointer', "tooltip-title": this.tooltipTitle, direction: "right", visible: !this.navExpanded }, iconDiv)) : (iconDiv);
101
101
  const toggleClasses = {
102
102
  'spw-sidebar-navigation-item__dropdown-toggle': true,
103
103
  'spw-sidebar-navigation-item__dropdown-toggle--open': this.dropdownOpen,
104
104
  };
105
- return (h(Tag, { key: 'a7ffd31c241efc7524e4ac47af8e1e5d54d9dc35', class: this.classes, href: this.href, "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: this.disabled ? -1 : 0 }, this.icon && iconWithBubble, h("div", { key: '6c01087c628490b790543c4eea02259d748083c9', class: "spw-sidebar-navigation-item__content" }, h("div", { key: 'fdab7760fe3995a44a1eb90296328b468a567ea3', class: "spw-sidebar-navigation-item__content-label" }, h("slot", { key: '18fcbae9c031f6976438141e5aec16ed0e61aa92' })), this.hasDropdown && (h("div", { key: 'a26d8b8cb3620f5eddb87503e2031d614a125504', class: toggleClasses, onClick: this.handleDropdownToggle, tabIndex: this.disabled ? -1 : 0 }, h("spw-icon", { key: '45589b6bd31dcd3b0f9307ea88fb6a7cb7fc68c1', icon: "fa-chevron-down" }))), h("slot", { key: 'd0738e4c9fc413811cb882fb0c472e4fa3ae652f', name: "dropdown" }))));
105
+ return (h(Tag, { key: 'fb6661be9c90aeeba52d5dee1e0d42c32d605ae1', class: this.classes, href: this.href, "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: this.disabled ? -1 : 0 }, this.icon && iconWithBubble, h("div", { key: 'a8c78fa983e0a2eef8eb76e0a25e25ec431545dd', class: "spw-sidebar-navigation-item__content" }, h("div", { key: '8296bb1500b0a3832c3afd9e52e83a3f60be91d4', class: "spw-sidebar-navigation-item__content-label" }, h("slot", { key: '1d08db1184d912b80b1fc27e852ad46428fcd1a2' })), this.hasDropdown && (h("div", { key: '676a39dbbb3b1b0a7a3f32df2bf43fe7cc644d99', class: toggleClasses, onClick: this.handleDropdownToggle, tabIndex: this.disabled ? -1 : 0 }, h("spw-icon", { key: 'b8bfa8d5f5355b5f3e876e232f72ae8464a73600', icon: "fa-chevron-down" }))), h("slot", { key: '1a77b8dc78652576d29da9620eae9450ead62a25', name: "dropdown" }))));
106
106
  }
107
107
  get el() { return getElement(this); }
108
108
  };
@@ -7,7 +7,7 @@ const SpwSidebarNavigationSeparator = class {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: '2f4c3aeaa89247ef388e2426c48f8af49be1a29a' }, h("spw-separator", { key: '12412655f03fd8d9ff44c0cddadebd1425c6e1aa', class: "spw-sidebar-navigation-separator" })));
10
+ return (h(Host, { key: '5931190d536fcfad890d75a47587ed301507542a' }, h("spw-separator", { key: '8b1e73c9f463260683c3c3e5dd60640f0165406f', class: "spw-sidebar-navigation-separator" })));
11
11
  }
12
12
  };
13
13
  SpwSidebarNavigationSeparator.style = spwSidebarNavigationSeparatorCss;
@@ -54,7 +54,7 @@ const SpwSidebar = class {
54
54
  };
55
55
  }
56
56
  render() {
57
- return (h(Host, { key: 'f9472dcb7f09b1f993fc50116e96d7ea87349365', class: this.hostClass }, h("div", { key: '1ab9cf225ed66198a7b1bb255d98bb5c01421041', class: this.elementClass }, h("span", { key: '39c5490d678fc3b8d34e50e845cd83092f534a25', class: "spw-sidebar__toggle", onClick: this.toggleSidebar, "aria-expanded": this.expanded.toString() }, h("spw-icon", { key: 'edf2fe4d4b84ecc82e7def1b8da1aacc40792259', icon: "fa-chevron-right" })), h("div", { key: '69280f7da47974cf1ad005b5180f9275e5be7c18', class: "spw-sidebar__content" }, h("slot", { key: 'bf2264e863a103b1a1e9840a5308f5a9ab3bb09f', name: "navigation-top" }), h("slot", { key: 'ac11bc6fc4a645aadccc714d0129474624ac0bbe', name: "navigation-bottom" })), h("div", { key: 'e60996e7b59550cf563dce1ae3b51b7414f21c65', class: "spw-sidebar__resize-border", onClick: this.toggleSidebar }))));
57
+ return (h(Host, { key: 'e8b5fe55c0a0bd0bf866cc5cad1da1a8b33ba792', class: this.hostClass }, h("div", { key: 'd9495832225a3008a17de912a79e53602110b5c0', class: this.elementClass }, h("span", { key: 'd5d37ddf70fceee382a5157ac4f468e4923d6a90', class: "spw-sidebar__toggle", onClick: this.toggleSidebar, "aria-expanded": this.expanded.toString() }, h("spw-icon", { key: '5bdd17e49970af56834efd8871c6b5d844189e1e', icon: "fa-chevron-right" })), h("div", { key: 'e372d08ee8ba3d55580bca0a63b554ec01a3719d', class: "spw-sidebar__content" }, h("slot", { key: 'a4d65d4fc323a58c5fa8346d79d8a54e304509fa', name: "navigation-top" }), h("slot", { key: '6484ae2e83756f473c7deab3574e3f747eed744f', name: "navigation-bottom" })), h("div", { key: '495e33ae7faf1aa1116412d876d1352a754c6e9b', class: "spw-sidebar__resize-border", onClick: this.toggleSidebar }))));
58
58
  }
59
59
  get el() { return getElement(this); }
60
60
  };
@@ -46,7 +46,7 @@ const SpwSkeleton = class {
46
46
  }
47
47
  }
48
48
  render() {
49
- return (h(Host, { key: '71f854e837c78403df7e34e4f52e6ee27defd411' }, h("div", { key: '124c92061c0afdfb16ed3b54cc7a90088177d6f4', class: "spw-skeleton" }, this.renderVariant(), h("slot", { key: '3c83184ae810cd9e169e7af560a8d17ec446bcc1' }))));
49
+ return (h(Host, { key: 'd09d57159d888a28edca9d579ee00fef11871279' }, h("div", { key: '6220d349418650cfb4dd368e692f85aa1b304b36', class: "spw-skeleton" }, this.renderVariant(), h("slot", { key: 'd830f7f5c7ed120e0aab5f81919947a26357fd5e' }))));
50
50
  }
51
51
  };
52
52
  SpwSkeleton.style = spwSkeletonCss;
@@ -9,7 +9,7 @@ const SpwSocials = class {
9
9
  this.mainTitle = 'Restez connecté';
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: 'a52f42e7836c857b7a86da792471a645b3969adf' }, h("div", { key: '243f7b0756f7c353b2c5119d65ac2479a07ed154', class: "spw-socials" }, h("div", { key: 'dbf39950d8be3031199d66ed3f73b0a725e1f1b5', class: "spw-ds-container" }, h("h2", { key: '619567f5710030537bf3fd932431af894bf1ab19', class: "spw-socials__title" }, this.mainTitle), h("div", { key: '15e747c318754f6794495e001df02219fdb018f4', class: "spw-socials__content" }, h("slot", { key: 'd035a0e74c38084b949374210fa0568974ad7ddb' }))))));
12
+ return (h(Host, { key: 'd2c120f651461ddbe1115d8e848b610132d3a287' }, h("div", { key: '200fabf8d9086a1686c5d296f7d456f46622cb27', class: "spw-socials" }, h("div", { key: '5e038715b91cdf5813b3c72d5d1f987ed06a6609', class: "spw-ds-container" }, h("h2", { key: '4d3fc6a5266625ad177c863b49318f89a3d3147f', class: "spw-socials__title" }, this.mainTitle), h("div", { key: '2d86cbd2650709d0d56df013fda5b02fa7e929ef', class: "spw-socials__content" }, h("slot", { key: '1d911bbdf0cd21be24ed7189e7bd0a544032148d' }))))));
13
13
  }
14
14
  };
15
15
  SpwSocials.style = spwSocialsCss;