@spw-ds/spw-stencil-library 1.16.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (490) hide show
  1. package/dist/cem.json +52 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/spw-button_2.cjs.entry.js +2 -2
  4. package/dist/cjs/spw-custom-select.cjs.entry.js +22 -26
  5. package/dist/cjs/spw-date-picker.cjs.entry.js +17 -1
  6. package/dist/cjs/spw-drawer.cjs.entry.js +3 -3
  7. package/dist/cjs/spw-dropdown-container.cjs.entry.js +1 -1
  8. package/dist/cjs/spw-dropdown-item.cjs.entry.js +1 -1
  9. package/dist/cjs/spw-dropdown.cjs.entry.js +1 -1
  10. package/dist/cjs/spw-field-label_8.cjs.entry.js +22 -14
  11. package/dist/cjs/spw-file-upload.cjs.entry.js +2 -2
  12. package/dist/cjs/spw-footer-bottom.cjs.entry.js +1 -1
  13. package/dist/cjs/spw-footer-content-col.cjs.entry.js +1 -1
  14. package/dist/cjs/spw-footer-content.cjs.entry.js +1 -1
  15. package/dist/cjs/spw-footer-link.cjs.entry.js +1 -1
  16. package/dist/cjs/spw-footer.cjs.entry.js +1 -1
  17. package/dist/cjs/spw-grid-item.cjs.entry.js +2 -2
  18. package/dist/cjs/spw-grid.cjs.entry.js +2 -2
  19. package/dist/cjs/spw-header-lang.cjs.entry.js +1 -1
  20. package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +1 -1
  21. package/dist/cjs/spw-header-navigation-item.cjs.entry.js +1 -1
  22. package/dist/cjs/spw-header-navigation.cjs.entry.js +1 -1
  23. package/dist/cjs/spw-header-persona-item.cjs.entry.js +1 -1
  24. package/dist/cjs/spw-header-persona.cjs.entry.js +1 -1
  25. package/dist/cjs/spw-header.cjs.entry.js +3 -3
  26. package/dist/cjs/spw-hero.cjs.entry.js +3 -3
  27. package/dist/cjs/spw-input-slider.cjs.entry.js +17 -21
  28. package/dist/cjs/spw-lightbox-item.cjs.entry.js +1 -1
  29. package/dist/cjs/spw-lightbox.cjs.entry.js +2 -2
  30. package/dist/cjs/spw-list-description.cjs.entry.js +1 -1
  31. package/dist/cjs/spw-list-item.cjs.entry.js +1 -1
  32. package/dist/cjs/spw-list-title.cjs.entry.js +1 -1
  33. package/dist/cjs/spw-list.cjs.entry.js +1 -1
  34. package/dist/cjs/spw-message.cjs.entry.js +10 -2
  35. package/dist/cjs/spw-modal.cjs.entry.js +3 -3
  36. package/dist/cjs/spw-mosaic-item.cjs.entry.js +1 -1
  37. package/dist/cjs/spw-mosaic.cjs.entry.js +8 -2
  38. package/dist/cjs/spw-pagination.cjs.entry.js +6 -6
  39. package/dist/cjs/spw-radio.cjs.entry.js +1 -1
  40. package/dist/cjs/spw-scrolltop.cjs.entry.js +1 -1
  41. package/dist/cjs/spw-search-field.cjs.entry.js +62 -10
  42. package/dist/cjs/spw-select.cjs.entry.js +16 -20
  43. package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +1 -1
  44. package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +3 -3
  45. package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +1 -1
  46. package/dist/cjs/spw-sidebar.cjs.entry.js +1 -1
  47. package/dist/cjs/spw-sidenav-group.cjs.entry.js +2 -2
  48. package/dist/cjs/spw-sidenav-item.cjs.entry.js +18 -4
  49. package/dist/cjs/spw-sidenav.cjs.entry.js +111 -2
  50. package/dist/cjs/spw-skeleton.cjs.entry.js +1 -1
  51. package/dist/cjs/spw-slider-item.cjs.entry.js +1 -1
  52. package/dist/cjs/spw-slider.cjs.entry.js +1 -1
  53. package/dist/cjs/spw-socials.cjs.entry.js +1 -1
  54. package/dist/cjs/spw-stencil-library.cjs.js +1 -1
  55. package/dist/cjs/spw-table-body.cjs.entry.js +1 -1
  56. package/dist/cjs/spw-table-cell.cjs.entry.js +1 -1
  57. package/dist/cjs/spw-table-container.cjs.entry.js +1 -1
  58. package/dist/cjs/spw-table-footer.cjs.entry.js +1 -1
  59. package/dist/cjs/spw-table-head.cjs.entry.js +1 -1
  60. package/dist/cjs/spw-table-header.cjs.entry.js +2 -2
  61. package/dist/cjs/spw-table-row.cjs.entry.js +1 -1
  62. package/dist/cjs/spw-table-sidebar.cjs.entry.js +1 -1
  63. package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +1 -1
  64. package/dist/cjs/spw-tabs-navigation.cjs.entry.js +1 -1
  65. package/dist/cjs/spw-tabs.cjs.entry.js +1 -1
  66. package/dist/cjs/spw-tag.cjs.entry.js +1 -1
  67. package/dist/cjs/spw-text-field.cjs.entry.js +17 -20
  68. package/dist/cjs/spw-textarea.cjs.entry.js +16 -20
  69. package/dist/cjs/spw-tile-description.cjs.entry.js +1 -1
  70. package/dist/cjs/spw-tile-title.cjs.entry.js +1 -1
  71. package/dist/cjs/spw-tile.cjs.entry.js +1 -1
  72. package/dist/cjs/spw-timeline-item.cjs.entry.js +2 -2
  73. package/dist/cjs/spw-timeline.cjs.entry.js +2 -2
  74. package/dist/cjs/spw-toc.cjs.entry.js +1 -1
  75. package/dist/cjs/spw-topbar.cjs.entry.js +1 -1
  76. package/dist/cjs/spw-wizard-item.cjs.entry.js +1 -1
  77. package/dist/cjs/spw-wizard.cjs.entry.js +1 -1
  78. package/dist/collection/components/spw-button/spw-button.css +47 -65
  79. package/dist/collection/components/spw-custom-select/spw-custom-select.css +1 -1
  80. package/dist/collection/components/spw-custom-select/spw-custom-select.js +21 -25
  81. package/dist/collection/components/spw-date-picker/spw-date-picker.js +17 -1
  82. package/dist/collection/components/spw-drawer/spw-drawer.js +3 -3
  83. package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.js +1 -1
  84. package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.js +1 -1
  85. package/dist/collection/components/spw-dropdown/spw-dropdown.js +1 -1
  86. package/dist/collection/components/spw-field-label/spw-field-label.js +1 -1
  87. package/dist/collection/components/spw-field-message/spw-field-message.css +2 -14
  88. package/dist/collection/components/spw-field-message/spw-field-message.js +1 -1
  89. package/dist/collection/components/spw-file-upload/spw-file-upload.js +2 -2
  90. package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.js +1 -1
  91. package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.js +1 -1
  92. package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.js +1 -1
  93. package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.js +1 -1
  94. package/dist/collection/components/spw-footer/spw-footer.js +1 -1
  95. package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.js +2 -2
  96. package/dist/collection/components/spw-grid/spw-grid.js +2 -2
  97. package/dist/collection/components/spw-group/spw-group.js +15 -7
  98. package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +1 -1
  99. package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +1 -1
  100. package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +1 -1
  101. package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +1 -1
  102. package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +1 -1
  103. package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.js +1 -1
  104. package/dist/collection/components/spw-header/spw-header.css +13 -6
  105. package/dist/collection/components/spw-header/spw-header.js +2 -2
  106. package/dist/collection/components/spw-hero/spw-hero.js +3 -3
  107. package/dist/collection/components/spw-input-slider/spw-input-slider.js +17 -21
  108. package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.js +1 -1
  109. package/dist/collection/components/spw-lightbox/spw-lightbox.js +2 -2
  110. package/dist/collection/components/spw-link/spw-link.js +1 -1
  111. package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
  112. package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +1 -1
  113. package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
  114. package/dist/collection/components/spw-list/spw-list.js +1 -1
  115. package/dist/collection/components/spw-loading/spw-loading.js +1 -1
  116. package/dist/collection/components/spw-message/spw-message.css +59 -2
  117. package/dist/collection/components/spw-message/spw-message.js +11 -2
  118. package/dist/collection/components/spw-modal/spw-modal.js +3 -3
  119. package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
  120. package/dist/collection/components/spw-mosaic/spw-mosaic.js +8 -2
  121. package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
  122. package/dist/collection/components/spw-radio/spw-radio.js +1 -1
  123. package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +1 -1
  124. package/dist/collection/components/spw-search-field/spw-search-field.js +62 -10
  125. package/dist/collection/components/spw-select/spw-select.js +16 -20
  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-sidenav/spw-sidenav-group/spw-sidenav-group.js +2 -2
  132. package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.css +55 -0
  133. package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.js +40 -4
  134. package/dist/collection/components/spw-sidenav/spw-sidenav.css +33 -0
  135. package/dist/collection/components/spw-sidenav/spw-sidenav.js +152 -1
  136. package/dist/collection/components/spw-skeleton/spw-skeleton.js +1 -1
  137. package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.js +1 -1
  138. package/dist/collection/components/spw-slider/spw-slider.js +1 -1
  139. package/dist/collection/components/spw-socials/spw-socials.js +1 -1
  140. package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +1 -1
  141. package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
  142. package/dist/collection/components/spw-table/spw-table-container/spw-table-container.js +1 -1
  143. package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
  144. package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
  145. package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +2 -2
  146. package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +1 -1
  147. package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.js +1 -1
  148. package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +1 -1
  149. package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js +1 -1
  150. package/dist/collection/components/spw-tabs/spw-tabs.js +1 -1
  151. package/dist/collection/components/spw-tag/spw-tag.js +1 -1
  152. package/dist/collection/components/spw-text-field/spw-text-field.js +17 -20
  153. package/dist/collection/components/spw-textarea/spw-textarea.js +16 -20
  154. package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
  155. package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
  156. package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
  157. package/dist/collection/components/spw-tile/spw-tile.js +1 -1
  158. package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.js +2 -2
  159. package/dist/collection/components/spw-timeline/spw-timeline.js +2 -2
  160. package/dist/collection/components/spw-toc/spw-toc.js +1 -1
  161. package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
  162. package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
  163. package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
  164. package/dist/collection/components/spw-wizard/spw-wizard.js +1 -1
  165. package/dist/collection/stories/components/spw-avatar/spw-avatar.stories.js +2 -0
  166. package/dist/collection/stories/components/spw-block-content/spw-block-content.stories.js +3 -1
  167. package/dist/collection/stories/components/spw-box/spw-box.stories.js +3 -1
  168. package/dist/collection/stories/components/spw-breadcrumb/spw-breadcrumb.stories.js +39 -1
  169. package/dist/collection/stories/components/spw-button/spw-button.stories.js +38 -1
  170. package/dist/collection/stories/components/spw-checkbox/spw-checkbox.stories.js +3 -1
  171. package/dist/collection/stories/components/spw-custom-select/spw-custom-select.stories.js +46 -1
  172. package/dist/collection/stories/components/spw-date-picker/spw-date-picker.stories.js +3 -1
  173. package/dist/collection/stories/components/spw-dropdown/spw-dropdown.stories.js +46 -1
  174. package/dist/collection/stories/components/spw-field-message/spw-field-message.stories.js +3 -1
  175. package/dist/collection/stories/components/spw-file-upload/spw-file-upload.stories.js +40 -1
  176. package/dist/collection/stories/components/spw-icon/spw-icon.stories.js +2 -0
  177. package/dist/collection/stories/components/spw-input-slider/spw-input-slider.stories.js +2 -0
  178. package/dist/collection/stories/components/spw-link/spw-link.stories.js +3 -1
  179. package/dist/collection/stories/components/spw-loading/spw-loading.stories.js +3 -1
  180. package/dist/collection/stories/components/spw-pagination/spw-pagination.stories.js +3 -1
  181. package/dist/collection/stories/components/spw-radio/spw-radio.stories.js +3 -1
  182. package/dist/collection/stories/components/spw-scrolltop/spw-scrolltop.stories.js +2 -0
  183. package/dist/collection/stories/components/spw-search-field/spw-search-field.stories.js +47 -2
  184. package/dist/collection/stories/components/spw-select/spw-select.stories.js +46 -1
  185. package/dist/collection/stories/components/spw-separator/spw-separator.stories.js +3 -1
  186. package/dist/collection/stories/components/spw-skeleton/spw-skeleton.stories.js +3 -1
  187. package/dist/collection/stories/components/spw-tag/spw-tag.stories.js +3 -1
  188. package/dist/collection/stories/components/spw-text-field/spw-text-field.stories.js +3 -1
  189. package/dist/collection/stories/components/spw-textarea/spw-textarea.stories.js +3 -1
  190. package/dist/collection/stories/components/spw-toast/spw-toast.stories.js +3 -1
  191. package/dist/collection/stories/components/spw-tooltip/spw-tooltip.stories.js +3 -1
  192. package/dist/collection/stories/organisms/spw-accordion/spw-accordion.stories.js +39 -1
  193. package/dist/collection/stories/organisms/spw-card/spw-card.stories.js +39 -1
  194. package/dist/collection/stories/organisms/spw-drawer/spw-drawer.stories.js +2 -0
  195. package/dist/collection/stories/organisms/spw-footer/spw-footer.stories.js +39 -1
  196. package/dist/collection/stories/organisms/spw-grid/spw-grid.stories.js +38 -0
  197. package/dist/collection/stories/organisms/spw-group/spw-group.stories.js +3 -1
  198. package/dist/collection/stories/organisms/spw-header/spw-header.stories.js +39 -1
  199. package/dist/collection/stories/organisms/spw-hero/spw-hero.stories.js +39 -1
  200. package/dist/collection/stories/organisms/spw-lightbox/spw-lightbox.stories.js +2 -0
  201. package/dist/collection/stories/organisms/spw-list/spw-list.stories.js +3 -1
  202. package/dist/collection/stories/organisms/spw-message/spw-message.stories.js +78 -1
  203. package/dist/collection/stories/organisms/spw-modal/spw-modal.stories.js +33 -1
  204. package/dist/collection/stories/organisms/spw-mosaic/spw-mosaic.stories.js +39 -1
  205. package/dist/collection/stories/organisms/spw-sidebar/spw-sidebar.stories.js +39 -1
  206. package/dist/collection/stories/organisms/spw-sidenav/spw-sidenav.stories.js +215 -0
  207. package/dist/collection/stories/organisms/spw-slider/spw-slider.stories.js +73 -1
  208. package/dist/collection/stories/organisms/spw-table/spw-table.stories.js +3 -1
  209. package/dist/collection/stories/organisms/spw-tabs/spw-tabs.stories.js +39 -1
  210. package/dist/collection/stories/organisms/spw-tile/spw-tile.stories.js +105 -1
  211. package/dist/collection/stories/organisms/spw-timeline/spw-timeline.stories.js +2 -0
  212. package/dist/collection/stories/organisms/spw-toc/spw-toc.stories.js +38 -0
  213. package/dist/collection/stories/organisms/spw-topbar/spw-topbar.stories.js +2 -0
  214. package/dist/collection/stories/organisms/spw-wizard/spw-wizard.stories.js +123 -1
  215. package/dist/components/p-BBsDk5QJ.js +1 -0
  216. package/dist/components/{p-CnzSr9Im.js → p-BrCHGcGN.js} +1 -1
  217. package/dist/components/{p-DlhwYK4n.js → p-CLldNY-_.js} +1 -1
  218. package/dist/components/{p-aWQ1v8BH.js → p-CdTWu15K.js} +1 -1
  219. package/dist/components/{p-C82UsmH4.js → p-DZoh_5b5.js} +1 -1
  220. package/dist/components/{p-DAfHVLjA.js → p-Fqknc29G.js} +1 -1
  221. package/dist/components/p-R4SpR2mV.js +1 -0
  222. package/dist/components/{p-DXd3uPkn.js → p-nC0sTTf4.js} +1 -1
  223. package/dist/components/{p-BY3XOPGU.js → p-xTIxnTQQ.js} +1 -1
  224. package/dist/components/spw-breadcrumb-item.js +1 -1
  225. package/dist/components/spw-button.js +1 -1
  226. package/dist/components/spw-cookies.js +1 -1
  227. package/dist/components/spw-custom-select.js +1 -1
  228. package/dist/components/spw-date-picker.js +1 -1
  229. package/dist/components/spw-drawer.js +1 -1
  230. package/dist/components/spw-dropdown-container.js +1 -1
  231. package/dist/components/spw-dropdown-item.js +1 -1
  232. package/dist/components/spw-dropdown.js +1 -1
  233. package/dist/components/spw-field-label.js +1 -1
  234. package/dist/components/spw-field-message.js +1 -1
  235. package/dist/components/spw-file-upload.js +1 -1
  236. package/dist/components/spw-footer-bottom.js +1 -1
  237. package/dist/components/spw-footer-content-col.js +1 -1
  238. package/dist/components/spw-footer-content.js +1 -1
  239. package/dist/components/spw-footer-link.js +1 -1
  240. package/dist/components/spw-footer.js +1 -1
  241. package/dist/components/spw-grid-item.js +1 -1
  242. package/dist/components/spw-grid.js +1 -1
  243. package/dist/components/spw-group.js +1 -1
  244. package/dist/components/spw-header-lang.js +1 -1
  245. package/dist/components/spw-header-navigation-dropdown.js +1 -1
  246. package/dist/components/spw-header-navigation-item.js +1 -1
  247. package/dist/components/spw-header-navigation.js +1 -1
  248. package/dist/components/spw-header-persona-item.js +1 -1
  249. package/dist/components/spw-header-persona.js +1 -1
  250. package/dist/components/spw-header.js +1 -1
  251. package/dist/components/spw-hero.js +1 -1
  252. package/dist/components/spw-input-slider.js +1 -1
  253. package/dist/components/spw-lightbox-item.js +1 -1
  254. package/dist/components/spw-lightbox.js +1 -1
  255. package/dist/components/spw-link.js +1 -1
  256. package/dist/components/spw-list-description.js +1 -1
  257. package/dist/components/spw-list-item.js +1 -1
  258. package/dist/components/spw-list-title.js +1 -1
  259. package/dist/components/spw-list.js +1 -1
  260. package/dist/components/spw-loading.js +1 -1
  261. package/dist/components/spw-message.js +1 -1
  262. package/dist/components/spw-modal.js +1 -1
  263. package/dist/components/spw-mosaic-item.js +1 -1
  264. package/dist/components/spw-mosaic.js +3 -3
  265. package/dist/components/spw-pagination.js +1 -1
  266. package/dist/components/spw-radio.js +1 -1
  267. package/dist/components/spw-scrolltop.js +1 -1
  268. package/dist/components/spw-search-field.js +1 -1
  269. package/dist/components/spw-select.js +1 -1
  270. package/dist/components/spw-separator.js +1 -1
  271. package/dist/components/spw-sidebar-navigation-dropdown.js +1 -1
  272. package/dist/components/spw-sidebar-navigation-item.js +1 -1
  273. package/dist/components/spw-sidebar-navigation-separator.js +1 -1
  274. package/dist/components/spw-sidebar.js +1 -1
  275. package/dist/components/spw-sidenav-group.js +1 -1
  276. package/dist/components/spw-sidenav-item.js +1 -1
  277. package/dist/components/spw-sidenav.js +1 -1
  278. package/dist/components/spw-skeleton.js +1 -1
  279. package/dist/components/spw-slider-item.js +1 -1
  280. package/dist/components/spw-slider.js +1 -1
  281. package/dist/components/spw-socials.js +1 -1
  282. package/dist/components/spw-table-body.js +1 -1
  283. package/dist/components/spw-table-cell.js +1 -1
  284. package/dist/components/spw-table-container.js +1 -1
  285. package/dist/components/spw-table-footer.js +1 -1
  286. package/dist/components/spw-table-head.js +1 -1
  287. package/dist/components/spw-table-header.js +1 -1
  288. package/dist/components/spw-table-row.js +1 -1
  289. package/dist/components/spw-table-sidebar.js +1 -1
  290. package/dist/components/spw-tabs-navigation-item.js +1 -1
  291. package/dist/components/spw-tabs-navigation.js +1 -1
  292. package/dist/components/spw-tabs.js +1 -1
  293. package/dist/components/spw-tag.js +1 -1
  294. package/dist/components/spw-text-field.js +1 -1
  295. package/dist/components/spw-textarea.js +1 -1
  296. package/dist/components/spw-theme-provider.js +1 -1
  297. package/dist/components/spw-tile-description.js +1 -1
  298. package/dist/components/spw-tile-title.js +1 -1
  299. package/dist/components/spw-tile.js +1 -1
  300. package/dist/components/spw-timeline-item.js +1 -1
  301. package/dist/components/spw-timeline.js +1 -1
  302. package/dist/components/spw-toc.js +1 -1
  303. package/dist/components/spw-tooltip.js +1 -1
  304. package/dist/components/spw-topbar.js +1 -1
  305. package/dist/components/spw-wizard-item.js +1 -1
  306. package/dist/components/spw-wizard.js +1 -1
  307. package/dist/components_json.json +92 -12
  308. package/dist/esm/loader.js +1 -1
  309. package/dist/esm/spw-button_2.entry.js +2 -2
  310. package/dist/esm/spw-custom-select.entry.js +22 -26
  311. package/dist/esm/spw-date-picker.entry.js +17 -1
  312. package/dist/esm/spw-drawer.entry.js +3 -3
  313. package/dist/esm/spw-dropdown-container.entry.js +1 -1
  314. package/dist/esm/spw-dropdown-item.entry.js +1 -1
  315. package/dist/esm/spw-dropdown.entry.js +1 -1
  316. package/dist/esm/spw-field-label_8.entry.js +22 -14
  317. package/dist/esm/spw-file-upload.entry.js +2 -2
  318. package/dist/esm/spw-footer-bottom.entry.js +1 -1
  319. package/dist/esm/spw-footer-content-col.entry.js +1 -1
  320. package/dist/esm/spw-footer-content.entry.js +1 -1
  321. package/dist/esm/spw-footer-link.entry.js +1 -1
  322. package/dist/esm/spw-footer.entry.js +1 -1
  323. package/dist/esm/spw-grid-item.entry.js +2 -2
  324. package/dist/esm/spw-grid.entry.js +2 -2
  325. package/dist/esm/spw-header-lang.entry.js +1 -1
  326. package/dist/esm/spw-header-navigation-dropdown.entry.js +1 -1
  327. package/dist/esm/spw-header-navigation-item.entry.js +1 -1
  328. package/dist/esm/spw-header-navigation.entry.js +1 -1
  329. package/dist/esm/spw-header-persona-item.entry.js +1 -1
  330. package/dist/esm/spw-header-persona.entry.js +1 -1
  331. package/dist/esm/spw-header.entry.js +3 -3
  332. package/dist/esm/spw-hero.entry.js +3 -3
  333. package/dist/esm/spw-input-slider.entry.js +17 -21
  334. package/dist/esm/spw-lightbox-item.entry.js +1 -1
  335. package/dist/esm/spw-lightbox.entry.js +2 -2
  336. package/dist/esm/spw-list-description.entry.js +1 -1
  337. package/dist/esm/spw-list-item.entry.js +1 -1
  338. package/dist/esm/spw-list-title.entry.js +1 -1
  339. package/dist/esm/spw-list.entry.js +1 -1
  340. package/dist/esm/spw-message.entry.js +10 -2
  341. package/dist/esm/spw-modal.entry.js +3 -3
  342. package/dist/esm/spw-mosaic-item.entry.js +1 -1
  343. package/dist/esm/spw-mosaic.entry.js +8 -2
  344. package/dist/esm/spw-pagination.entry.js +6 -6
  345. package/dist/esm/spw-radio.entry.js +1 -1
  346. package/dist/esm/spw-scrolltop.entry.js +1 -1
  347. package/dist/esm/spw-search-field.entry.js +62 -10
  348. package/dist/esm/spw-select.entry.js +16 -20
  349. package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +1 -1
  350. package/dist/esm/spw-sidebar-navigation-item.entry.js +3 -3
  351. package/dist/esm/spw-sidebar-navigation-separator.entry.js +1 -1
  352. package/dist/esm/spw-sidebar.entry.js +1 -1
  353. package/dist/esm/spw-sidenav-group.entry.js +2 -2
  354. package/dist/esm/spw-sidenav-item.entry.js +18 -4
  355. package/dist/esm/spw-sidenav.entry.js +111 -2
  356. package/dist/esm/spw-skeleton.entry.js +1 -1
  357. package/dist/esm/spw-slider-item.entry.js +1 -1
  358. package/dist/esm/spw-slider.entry.js +1 -1
  359. package/dist/esm/spw-socials.entry.js +1 -1
  360. package/dist/esm/spw-stencil-library.js +1 -1
  361. package/dist/esm/spw-table-body.entry.js +1 -1
  362. package/dist/esm/spw-table-cell.entry.js +1 -1
  363. package/dist/esm/spw-table-container.entry.js +1 -1
  364. package/dist/esm/spw-table-footer.entry.js +1 -1
  365. package/dist/esm/spw-table-head.entry.js +1 -1
  366. package/dist/esm/spw-table-header.entry.js +2 -2
  367. package/dist/esm/spw-table-row.entry.js +1 -1
  368. package/dist/esm/spw-table-sidebar.entry.js +1 -1
  369. package/dist/esm/spw-tabs-navigation-item.entry.js +1 -1
  370. package/dist/esm/spw-tabs-navigation.entry.js +1 -1
  371. package/dist/esm/spw-tabs.entry.js +1 -1
  372. package/dist/esm/spw-tag.entry.js +1 -1
  373. package/dist/esm/spw-text-field.entry.js +17 -20
  374. package/dist/esm/spw-textarea.entry.js +16 -20
  375. package/dist/esm/spw-tile-description.entry.js +1 -1
  376. package/dist/esm/spw-tile-title.entry.js +1 -1
  377. package/dist/esm/spw-tile.entry.js +1 -1
  378. package/dist/esm/spw-timeline-item.entry.js +2 -2
  379. package/dist/esm/spw-timeline.entry.js +2 -2
  380. package/dist/esm/spw-toc.entry.js +1 -1
  381. package/dist/esm/spw-topbar.entry.js +1 -1
  382. package/dist/esm/spw-wizard-item.entry.js +1 -1
  383. package/dist/esm/spw-wizard.entry.js +1 -1
  384. package/dist/spw-stencil-library/p-005e895a.entry.js +1 -0
  385. package/dist/spw-stencil-library/{p-57d57d31.entry.js → p-06356658.entry.js} +1 -1
  386. package/dist/spw-stencil-library/{p-8010145c.entry.js → p-08de3542.entry.js} +1 -1
  387. package/dist/spw-stencil-library/p-09818d2e.entry.js +1 -0
  388. package/dist/spw-stencil-library/{p-bcc0bc5b.entry.js → p-0cd5c984.entry.js} +1 -1
  389. package/dist/spw-stencil-library/p-0edf6e69.entry.js +1 -0
  390. package/dist/spw-stencil-library/{p-e82e97da.entry.js → p-11f9450a.entry.js} +1 -1
  391. package/dist/spw-stencil-library/{p-3a44068e.entry.js → p-13426e40.entry.js} +1 -1
  392. package/dist/spw-stencil-library/{p-e172632c.entry.js → p-1603d35d.entry.js} +1 -1
  393. package/dist/spw-stencil-library/{p-6be62066.entry.js → p-176c735c.entry.js} +1 -1
  394. package/dist/spw-stencil-library/{p-082f93eb.entry.js → p-244c42e1.entry.js} +1 -1
  395. package/dist/spw-stencil-library/{p-e2fbc5ff.entry.js → p-2b6b85a3.entry.js} +1 -1
  396. package/dist/spw-stencil-library/{p-ae18c590.entry.js → p-2c430e60.entry.js} +1 -1
  397. package/dist/spw-stencil-library/{p-995bf47d.entry.js → p-2f45d1f5.entry.js} +1 -1
  398. package/dist/spw-stencil-library/{p-10bf5c42.entry.js → p-36484429.entry.js} +1 -1
  399. package/dist/spw-stencil-library/{p-ca3263fb.entry.js → p-36d80c8f.entry.js} +1 -1
  400. package/dist/spw-stencil-library/p-375581fd.entry.js +1 -0
  401. package/dist/spw-stencil-library/{p-b08eb675.entry.js → p-3d6fe416.entry.js} +1 -1
  402. package/dist/spw-stencil-library/{p-1e940c23.entry.js → p-44a07af3.entry.js} +1 -1
  403. package/dist/spw-stencil-library/p-48078447.entry.js +1 -0
  404. package/dist/spw-stencil-library/{p-fbc26e62.entry.js → p-4c16d701.entry.js} +1 -1
  405. package/dist/spw-stencil-library/{p-1ba59470.entry.js → p-4c636296.entry.js} +1 -1
  406. package/dist/spw-stencil-library/{p-723229e0.entry.js → p-4da69501.entry.js} +1 -1
  407. package/dist/spw-stencil-library/{p-5ca2790b.entry.js → p-529e0d0d.entry.js} +1 -1
  408. package/dist/spw-stencil-library/{p-426be39b.entry.js → p-568f2002.entry.js} +1 -1
  409. package/dist/spw-stencil-library/{p-24cc1b85.entry.js → p-59cb1719.entry.js} +1 -1
  410. package/dist/spw-stencil-library/{p-1001e077.entry.js → p-5a08eb26.entry.js} +1 -1
  411. package/dist/spw-stencil-library/p-5a0c0b53.entry.js +1 -0
  412. package/dist/spw-stencil-library/{p-41568f68.entry.js → p-6500046a.entry.js} +1 -1
  413. package/dist/spw-stencil-library/{p-e6beeeae.entry.js → p-6b0338cb.entry.js} +1 -1
  414. package/dist/spw-stencil-library/{p-fd339689.entry.js → p-6b53d52d.entry.js} +1 -1
  415. package/dist/spw-stencil-library/{p-f0e49272.entry.js → p-6d105331.entry.js} +1 -1
  416. package/dist/spw-stencil-library/{p-571107dc.entry.js → p-6e57e12a.entry.js} +1 -1
  417. package/dist/spw-stencil-library/{p-f8c9e28a.entry.js → p-6f244a33.entry.js} +1 -1
  418. package/dist/spw-stencil-library/{p-af8ccb80.entry.js → p-758ab426.entry.js} +1 -1
  419. package/dist/spw-stencil-library/{p-42dce53f.entry.js → p-7e7cd509.entry.js} +1 -1
  420. package/dist/spw-stencil-library/{p-3e8e6a41.entry.js → p-7e884c21.entry.js} +1 -1
  421. package/dist/spw-stencil-library/{p-a20d2a78.entry.js → p-7ed866cf.entry.js} +1 -1
  422. package/dist/spw-stencil-library/{p-11ee7e7a.entry.js → p-82c5e2e2.entry.js} +1 -1
  423. package/dist/spw-stencil-library/{p-bd0b3958.entry.js → p-85cd97f4.entry.js} +1 -1
  424. package/dist/spw-stencil-library/p-86f8bae3.entry.js +1 -0
  425. package/dist/spw-stencil-library/{p-4f65655d.entry.js → p-8d4885ff.entry.js} +1 -1
  426. package/dist/spw-stencil-library/{p-69f36918.entry.js → p-9193e70b.entry.js} +1 -1
  427. package/dist/spw-stencil-library/{p-fdd83154.entry.js → p-93788d96.entry.js} +1 -1
  428. package/dist/spw-stencil-library/{p-cb4b31a7.entry.js → p-94f78e4c.entry.js} +1 -1
  429. package/dist/spw-stencil-library/{p-a94801a1.entry.js → p-962ec86a.entry.js} +1 -1
  430. package/dist/spw-stencil-library/{p-45be9fce.entry.js → p-9987b6a0.entry.js} +1 -1
  431. package/dist/spw-stencil-library/{p-fe5f81cc.entry.js → p-9bb373cf.entry.js} +1 -1
  432. package/dist/spw-stencil-library/{p-e592738a.entry.js → p-9d93af2b.entry.js} +1 -1
  433. package/dist/spw-stencil-library/{p-0f5debdb.entry.js → p-a2f8133e.entry.js} +1 -1
  434. package/dist/spw-stencil-library/{p-53dfe461.entry.js → p-a418baf5.entry.js} +1 -1
  435. package/dist/spw-stencil-library/{p-49e53cd8.entry.js → p-a86fc0a7.entry.js} +1 -1
  436. package/dist/spw-stencil-library/{p-7996c7c8.entry.js → p-ab100252.entry.js} +1 -1
  437. package/dist/spw-stencil-library/{p-1fca6b4f.entry.js → p-aeb28e9a.entry.js} +1 -1
  438. package/dist/spw-stencil-library/{p-afa2f53d.entry.js → p-b17a13d5.entry.js} +1 -1
  439. package/dist/spw-stencil-library/{p-c2d6da7e.entry.js → p-b494a271.entry.js} +1 -1
  440. package/dist/spw-stencil-library/{p-ec7f05ae.entry.js → p-b5ba7206.entry.js} +1 -1
  441. package/dist/spw-stencil-library/p-b966fc21.entry.js +1 -0
  442. package/dist/spw-stencil-library/{p-79081772.entry.js → p-b9cf4fcb.entry.js} +1 -1
  443. package/dist/spw-stencil-library/{p-ca25cbef.entry.js → p-d5157e05.entry.js} +1 -1
  444. package/dist/spw-stencil-library/{p-e6f4a095.entry.js → p-d6e88176.entry.js} +1 -1
  445. package/dist/spw-stencil-library/{p-95f41c17.entry.js → p-d92bd82f.entry.js} +4 -4
  446. package/dist/spw-stencil-library/{p-fdcc3c5d.entry.js → p-ddd9acdc.entry.js} +1 -1
  447. package/dist/spw-stencil-library/{p-7233f2b1.entry.js → p-e4f1665f.entry.js} +1 -1
  448. package/dist/spw-stencil-library/{p-51d1b03f.entry.js → p-e7c69e88.entry.js} +1 -1
  449. package/dist/spw-stencil-library/{p-4d45c143.entry.js → p-e849e965.entry.js} +1 -1
  450. package/dist/spw-stencil-library/{p-c06529c8.entry.js → p-ecbdf71f.entry.js} +1 -1
  451. package/dist/spw-stencil-library/{p-b868a3da.entry.js → p-f0f0bd9d.entry.js} +1 -1
  452. package/dist/spw-stencil-library/{p-d6587b45.entry.js → p-f35c966d.entry.js} +1 -1
  453. package/dist/spw-stencil-library/p-f38709c1.entry.js +1 -0
  454. package/dist/spw-stencil-library/{p-723b695b.entry.js → p-f932224f.entry.js} +1 -1
  455. package/dist/spw-stencil-library/p-fade4100.entry.js +1 -0
  456. package/dist/spw-stencil-library/{p-915cbfd3.entry.js → p-fbc3d842.entry.js} +1 -1
  457. package/dist/spw-stencil-library/p-fc9acdf2.entry.js +1 -0
  458. package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
  459. package/dist/stats.json +573 -393
  460. package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +1 -4
  461. package/dist/types/components/spw-date-picker/spw-date-picker.d.ts +1 -0
  462. package/dist/types/components/spw-input-slider/spw-input-slider.d.ts +1 -4
  463. package/dist/types/components/spw-message/spw-message.d.ts +3 -0
  464. package/dist/types/components/spw-search-field/spw-search-field.d.ts +1 -0
  465. package/dist/types/components/spw-select/spw-select.d.ts +1 -4
  466. package/dist/types/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.d.ts +3 -0
  467. package/dist/types/components/spw-sidenav/spw-sidenav.d.ts +22 -0
  468. package/dist/types/components/spw-text-field/spw-text-field.d.ts +1 -4
  469. package/dist/types/components/spw-textarea/spw-textarea.d.ts +1 -4
  470. package/dist/types/components.d.ts +18 -1
  471. package/dist/types/stories/organisms/spw-message/spw-message.stories.d.ts +2 -1
  472. package/dist/types/stories/organisms/spw-sidenav/spw-sidenav.stories.d.ts +4 -0
  473. package/dist/types/stories/organisms/spw-tile/spw-tile.stories.d.ts +2 -0
  474. package/hydrate/index.js +431 -230
  475. package/hydrate/index.mjs +431 -230
  476. package/package.json +1 -1
  477. package/dist/components/p-B2P8l7B3.js +0 -1
  478. package/dist/components/p-B43Zutdz.js +0 -1
  479. package/dist/components_vscode.json +0 -5455
  480. package/dist/spw-stencil-library/p-1d319daa.entry.js +0 -1
  481. package/dist/spw-stencil-library/p-20ed6c87.entry.js +0 -1
  482. package/dist/spw-stencil-library/p-56511a1a.entry.js +0 -1
  483. package/dist/spw-stencil-library/p-68787bbe.entry.js +0 -1
  484. package/dist/spw-stencil-library/p-83e6a17b.entry.js +0 -1
  485. package/dist/spw-stencil-library/p-8aa81b70.entry.js +0 -1
  486. package/dist/spw-stencil-library/p-936fc4c0.entry.js +0 -1
  487. package/dist/spw-stencil-library/p-d321091b.entry.js +0 -1
  488. package/dist/spw-stencil-library/p-de10edb8.entry.js +0 -1
  489. package/dist/spw-stencil-library/p-de47fd8e.entry.js +0 -1
  490. package/dist/spw-stencil-library/p-f420e077.entry.js +0 -1
@@ -12,11 +12,20 @@ export class SpwSidenavItem {
12
12
  this.hasChildren = false;
13
13
  this.childrenOpen = false;
14
14
  this.hasActiveChild = false;
15
+ this.mobileFocused = false;
15
16
  this.handleChevronClick = (e) => {
16
17
  e.preventDefault();
17
18
  e.stopPropagation();
18
19
  if (this.disabled)
19
20
  return;
21
+ if (window.matchMedia('(max-width: 767px)').matches) {
22
+ this.el.dispatchEvent(new CustomEvent('spwMobileFocusRequest', {
23
+ detail: { item: this.el },
24
+ bubbles: true,
25
+ composed: true,
26
+ }));
27
+ return;
28
+ }
20
29
  this.toggleGroup();
21
30
  };
22
31
  this.handleLabelClick = (e) => {
@@ -125,21 +134,26 @@ export class SpwSidenavItem {
125
134
  this.childrenOpen = false;
126
135
  }
127
136
  }
137
+ /** Utilisé par spw-sidenav pour focaliser cet item en mobile */
138
+ async setMobileFocus(value) {
139
+ this.mobileFocused = value;
140
+ }
128
141
  get isLink() {
129
142
  return !!this.href && !this.disabled && !this.openOnClick;
130
143
  }
131
144
  render() {
132
145
  const LabelTag = this.isLink ? 'a' : 'button';
133
- return (h(Host, { key: '7ce11484152ad8cd4139bd3493aae972e30789fd' }, h("div", { key: 'aae075da414f38a73015233033376d1deb53fc51', class: {
146
+ return (h(Host, { key: '17607fea24545b9b75737d89a04f23bfd770c470' }, h("div", { key: 'b35c32d3848704761a361422d53d6c7f541c1c98', class: {
134
147
  'spw-sidenav-item': true,
135
148
  'spw-sidenav-item--active': this.active || this.hasActiveChild,
136
149
  'spw-sidenav-item--disabled': this.disabled,
137
150
  'spw-sidenav-item--has-children': this.hasChildren,
138
151
  'spw-sidenav-item--children-open': this.childrenOpen,
139
- } }, h("div", { key: '4155f5d5b8b58a6a8f2b0c09dbbb48dbf2a31510', class: "spw-sidenav-item__row" }, h(LabelTag, { key: '8422b15196e1874bfbe1af698bae06efb60d09bb', class: "spw-sidenav-item__label", href: this.isLink ? this.href : undefined, disabled: LabelTag === 'button' && this.disabled ? true : undefined, "aria-disabled": this.disabled ? 'true' : undefined, "aria-expanded": this.hasChildren ? this.childrenOpen.toString() : undefined, "aria-current": this.active ? 'page' : undefined, onClick: this.handleLabelClick }, this.icon && (h("span", { key: 'b53dad8f63925f1ade16e34a10909f3dc8d7230f', class: "spw-sidenav-item__icon" }, h("spw-icon", { key: '25b441c95d6a66fba855ca8f726252f74bc91b04', variant: this.iconVariant, icon: this.icon }))), h("span", { key: 'c1c0557e37cf76445427dcd6b0648cbcb8b68e9a', class: "spw-sidenav-item__text" }, h("slot", { key: 'c1d9269d0b07e0814588ba20ce0d2fedf3ed4d0c' }))), this.hasChildren && (h("button", { key: '7003cc5fac5b859a6814d9aa2d0bdbcf42d4ab7d', type: "button", class: {
152
+ 'spw-sidenav-item--mobile-focused': this.mobileFocused,
153
+ } }, h("div", { key: 'fb937b1690063919eb303816ddf66ea6fefa5cd1', class: "spw-sidenav-item__row" }, h(LabelTag, { key: '6288f1a598107aa27a7fee5fcec30cf521792933', class: "spw-sidenav-item__label", href: this.isLink ? this.href : undefined, disabled: LabelTag === 'button' && this.disabled ? true : undefined, "aria-disabled": this.disabled ? 'true' : undefined, "aria-expanded": this.hasChildren ? this.childrenOpen.toString() : undefined, "aria-current": this.active ? 'page' : undefined, onClick: this.handleLabelClick }, this.icon && (h("span", { key: 'd4e427cb15f5b019a0ad4fe5373ec61faf415949', class: "spw-sidenav-item__icon" }, h("spw-icon", { key: '065d165607922c9d33f5300a72eaaa2c38e75d7e', variant: this.iconVariant, icon: this.icon }))), h("span", { key: 'f89a8915244e9346c0edef997c1277bd10c8c18c', class: "spw-sidenav-item__text" }, h("slot", { key: '97152c49d15ef22ba48b3d0a6d98d02a62f7a7fc' }))), this.hasChildren && (h("button", { key: '5ef0937493a17b9f09741fd15a2ade6d6ce0f0da', type: "button", class: {
140
154
  'spw-sidenav-item__chevron': true,
141
155
  'spw-sidenav-item__chevron--open': this.childrenOpen,
142
- }, "aria-label": this.childrenOpen ? 'Réduire' : 'Développer', disabled: this.disabled, onClick: this.handleChevronClick }, h("spw-icon", { key: 'ade031d1c331c21f32513de8354a9a651479d308', icon: "fa-chevron-down" })))), h("slot", { key: '3a03696d3d8c10576f41624c7a28a11407a3f75d', name: "children" }))));
156
+ }, "aria-label": this.childrenOpen ? 'Réduire' : 'Développer', disabled: this.disabled, onClick: this.handleChevronClick }, h("spw-icon", { key: '42a4b347a3354c51af6f2b7fecd95d262721d2a7', icon: "fa-chevron-down" })))), h("slot", { key: 'e0627c82022966740d540a35854a74ddba926ad6', name: "children" }))));
143
157
  }
144
158
  static get is() { return "spw-sidenav-item"; }
145
159
  static get originalStyleUrls() {
@@ -278,7 +292,8 @@ export class SpwSidenavItem {
278
292
  return {
279
293
  "hasChildren": {},
280
294
  "childrenOpen": {},
281
- "hasActiveChild": {}
295
+ "hasActiveChild": {},
296
+ "mobileFocused": {}
282
297
  };
283
298
  }
284
299
  static get methods() {
@@ -316,6 +331,27 @@ export class SpwSidenavItem {
316
331
  "text": "Ferme les enfants",
317
332
  "tags": []
318
333
  }
334
+ },
335
+ "setMobileFocus": {
336
+ "complexType": {
337
+ "signature": "(value: boolean) => Promise<void>",
338
+ "parameters": [{
339
+ "name": "value",
340
+ "type": "boolean",
341
+ "docs": ""
342
+ }],
343
+ "references": {
344
+ "Promise": {
345
+ "location": "global",
346
+ "id": "global::Promise"
347
+ }
348
+ },
349
+ "return": "Promise<void>"
350
+ },
351
+ "docs": {
352
+ "text": "Utilis\u00E9 par spw-sidenav pour focaliser cet item en mobile",
353
+ "tags": []
354
+ }
319
355
  }
320
356
  };
321
357
  }
@@ -367,4 +367,37 @@ template {
367
367
  .spw-sidenav {
368
368
  display: flex;
369
369
  flex-direction: column;
370
+ }
371
+ .spw-sidenav__back {
372
+ display: inline-flex;
373
+ align-items: center;
374
+ gap: 8px;
375
+ align-self: flex-start;
376
+ padding: 8px 0;
377
+ margin-bottom: 4px;
378
+ border: none;
379
+ background: none;
380
+ cursor: pointer;
381
+ font-size: 14px;
382
+ font-family: inherit;
383
+ color: var(--spw-colors-support-grey-grey-600);
384
+ transition: color 0.15s ease;
385
+ }
386
+ .spw-sidenav__back:hover {
387
+ color: var(--spw-ds-primary);
388
+ }
389
+ .spw-sidenav__back:focus-visible {
390
+ outline: 3px solid black;
391
+ outline-offset: 2px;
392
+ border-radius: 4px;
393
+ }
394
+ .spw-sidenav__back spw-icon {
395
+ font-size: 12px;
396
+ }
397
+ .spw-sidenav__section-title {
398
+ font-size: 18px;
399
+ font-weight: 700;
400
+ color: var(--spw-colors-support-grey-grey-900);
401
+ padding: 8px 0;
402
+ margin-bottom: 4px;
370
403
  }
@@ -1,12 +1,123 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class SpwSidenav {
3
+ constructor() {
4
+ /** Texte du bouton retour affiché en mobile lors de la navigation dans l'arborescence (fallback quand aucun parent n'a de label) */
5
+ this.mobileBackLabel = 'Retour';
6
+ this.focusedItem = null;
7
+ this.isMobile = false;
8
+ this.showRoot = false;
9
+ this.mediaListener = () => this.updateBreakpoint();
10
+ this.handleBack = () => {
11
+ const target = this.getCurrentTarget();
12
+ if (!target)
13
+ return;
14
+ const parent = this.getParentItem(target);
15
+ this.clearFocus();
16
+ if (parent) {
17
+ this.setFocus(parent);
18
+ }
19
+ else {
20
+ this.showRoot = true;
21
+ }
22
+ };
23
+ }
24
+ componentDidLoad() {
25
+ this.mediaQuery = window.matchMedia('(max-width: 767px)');
26
+ this.mediaQuery.addEventListener('change', this.mediaListener);
27
+ this.updateBreakpoint();
28
+ }
29
+ disconnectedCallback() {
30
+ var _a;
31
+ (_a = this.mediaQuery) === null || _a === void 0 ? void 0 : _a.removeEventListener('change', this.mediaListener);
32
+ }
33
+ updateBreakpoint() {
34
+ this.isMobile = this.mediaQuery.matches;
35
+ if (!this.isMobile) {
36
+ this.clearFocus();
37
+ this.showRoot = false;
38
+ }
39
+ }
40
+ handleFocusRequest(e) {
41
+ this.showRoot = false;
42
+ this.setFocus(e.detail.item);
43
+ }
44
+ clearFocus() {
45
+ var _a, _b;
46
+ if (this.focusedItem) {
47
+ (_b = (_a = this.focusedItem).setMobileFocus) === null || _b === void 0 ? void 0 : _b.call(_a, false);
48
+ this.focusedItem = null;
49
+ }
50
+ }
51
+ setFocus(item) {
52
+ var _a, _b;
53
+ this.clearFocus();
54
+ (_b = (_a = item).setMobileFocus) === null || _b === void 0 ? void 0 : _b.call(_a, true);
55
+ this.focusedItem = item;
56
+ }
57
+ getParentItem(item) {
58
+ var _a;
59
+ return (_a = item.parentElement) === null || _a === void 0 ? void 0 : _a.closest('spw-sidenav-item');
60
+ }
61
+ getItemLabel(item) {
62
+ var _a, _b;
63
+ const textEl = item.querySelector(':scope > .spw-sidenav-item .spw-sidenav-item__text');
64
+ return (_b = (_a = textEl === null || textEl === void 0 ? void 0 : textEl.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '';
65
+ }
66
+ findLeafActive() {
67
+ const items = Array.from(this.el.querySelectorAll('spw-sidenav-item'));
68
+ for (const item of items) {
69
+ const val = item.getAttribute('active');
70
+ if (val === '' || val === 'true')
71
+ return item;
72
+ }
73
+ return null;
74
+ }
75
+ getCurrentTarget() {
76
+ if (this.focusedItem)
77
+ return this.focusedItem;
78
+ const leaf = this.findLeafActive();
79
+ if (!leaf)
80
+ return null;
81
+ return this.getParentItem(leaf);
82
+ }
3
83
  /** Ferme tous les items ouverts */
4
84
  async closeAll() {
5
85
  const items = this.el.querySelectorAll('spw-sidenav-item');
6
86
  items.forEach(item => { var _a; return (_a = item.close) === null || _a === void 0 ? void 0 : _a.call(item); });
7
87
  }
88
+ get backLabel() {
89
+ if (this.showRoot)
90
+ return null;
91
+ const target = this.getCurrentTarget();
92
+ if (!target)
93
+ return null;
94
+ const parent = this.getParentItem(target);
95
+ if (parent)
96
+ return this.getItemLabel(parent) || this.mobileBackLabel;
97
+ return this.mobileBackLabel;
98
+ }
99
+ // Titre de la section courante en mobile — c'est le label du target
100
+ // (l'item dont on affiche les enfants).
101
+ get sectionTitle() {
102
+ if (this.showRoot)
103
+ return null;
104
+ const target = this.getCurrentTarget();
105
+ if (!target)
106
+ return null;
107
+ return this.getItemLabel(target) || null;
108
+ }
8
109
  render() {
9
- return (h(Host, { key: 'c248ceeea7443805b4471b20553fe005a71af44d' }, h("nav", { key: '32ac7857681d12475f5c09d61d21e9c1c0645a00', class: "spw-sidenav" }, h("slot", { key: '0e88515dba47eb47d0db02eb6c7b45fe9e341db9' }))));
110
+ let showBack = false;
111
+ let title = null;
112
+ if (this.isMobile && !this.showRoot) {
113
+ const target = this.getCurrentTarget();
114
+ showBack = !!target;
115
+ title = this.sectionTitle;
116
+ }
117
+ return (h(Host, { key: '5162ae79d8fbc5754bed694e6dc9a49197f1decd', "data-show-root": this.showRoot ? 'true' : null }, h("nav", { key: '15a13f2b45e705d2f451d66c3483d7d4c4b0a9d4', class: {
118
+ 'spw-sidenav': true,
119
+ 'spw-sidenav--show-root': this.showRoot,
120
+ } }, showBack && (h("button", { key: 'b1e9252722cf292e851a24a91dbfb6063e30d592', class: "spw-sidenav__back", type: "button", onClick: this.handleBack }, h("spw-icon", { key: 'd4539634e276aaf5cedffce58a653a1069fbfbfe', icon: "fa-arrow-left" }), h("span", { key: '90f52019e15f5991aa41aa273595ebaa03ff3fb8' }, this.backLabel))), title && h("div", { key: '3b92611317c70878bd4cf4447351881176b7611e', class: "spw-sidenav__section-title" }, title), h("slot", { key: '2d4291c015bf5c4322689868244d449f0dbdf42a' }))));
10
121
  }
11
122
  static get is() { return "spw-sidenav"; }
12
123
  static get encapsulation() { return "shadow"; }
@@ -20,6 +131,37 @@ export class SpwSidenav {
20
131
  "$": ["spw-sidenav.css"]
21
132
  };
22
133
  }
134
+ static get properties() {
135
+ return {
136
+ "mobileBackLabel": {
137
+ "type": "string",
138
+ "mutable": false,
139
+ "complexType": {
140
+ "original": "string",
141
+ "resolved": "string",
142
+ "references": {}
143
+ },
144
+ "required": false,
145
+ "optional": false,
146
+ "docs": {
147
+ "tags": [],
148
+ "text": "Texte du bouton retour affich\u00E9 en mobile lors de la navigation dans l'arborescence (fallback quand aucun parent n'a de label)"
149
+ },
150
+ "getter": false,
151
+ "setter": false,
152
+ "reflect": false,
153
+ "attribute": "mobile-back-label",
154
+ "defaultValue": "'Retour'"
155
+ }
156
+ };
157
+ }
158
+ static get states() {
159
+ return {
160
+ "focusedItem": {},
161
+ "isMobile": {},
162
+ "showRoot": {}
163
+ };
164
+ }
23
165
  static get methods() {
24
166
  return {
25
167
  "closeAll": {
@@ -46,4 +188,13 @@ export class SpwSidenav {
46
188
  };
47
189
  }
48
190
  static get elementRef() { return "el"; }
191
+ static get listeners() {
192
+ return [{
193
+ "name": "spwMobileFocusRequest",
194
+ "method": "handleFocusRequest",
195
+ "target": undefined,
196
+ "capture": false,
197
+ "passive": false
198
+ }];
199
+ }
49
200
  }
@@ -44,7 +44,7 @@ export class SpwSkeleton {
44
44
  }
45
45
  }
46
46
  render() {
47
- return (h(Host, { key: 'baf6617e7f6f8d16bc09d9ed86ddfb299a23f94a' }, h("div", { key: '089813b4d4cdeb5d8e9737ed121df936711a8de6', class: "spw-skeleton" }, this.renderVariant(), h("slot", { key: 'bc44a9531c3922c90137cf8110ebcf80cc6f3f16' }))));
47
+ return (h(Host, { key: '122cd42914b44494633bd055c531072c713e8e91' }, h("div", { key: '2f7e32675363854e4c595059f598154ed1e535a4', class: "spw-skeleton" }, this.renderVariant(), h("slot", { key: '8529d418a3de0d953d519d6cc6308be5c17b9d3f' }))));
48
48
  }
49
49
  static get is() { return "spw-skeleton"; }
50
50
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class SpwSliderItem {
3
3
  render() {
4
- return (h(Host, { key: 'c1227e735448eaea0fa907b30fcefb1c707be454' }, h("div", { key: '276be5b2365d43ae37f11d217a321f0fdddf0f90', class: "spw-slider-item" }, h("slot", { key: '594ebb9169c11d0e08debc43f12dce462cbc4ff3' }))));
4
+ return (h(Host, { key: 'c7a9c50b508ee6623a2699b6800608e1ada2fd39' }, h("div", { key: '30703082a21bda0f84027b749944b3551e04e78c', class: "spw-slider-item" }, h("slot", { key: 'c60a133e08883f8d413375c343162e0b95b0ff84' }))));
5
5
  }
6
6
  static get is() { return "spw-slider-item"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -394,7 +394,7 @@ export class SpwSlider {
394
394
  }, onClick: () => this.handleDotClick(i), "aria-label": `Slide ${i + 1}`, "aria-current": i === this.activeIndex ? 'true' : 'false' })))));
395
395
  }
396
396
  render() {
397
- return (h(Host, { key: 'e3cdcffa3cd1e788cb9ba3b14b54b93154658998' }, h("div", { key: '4e5895bcfa1c51594acd207537bdb6b793609f0c', class: this.elementClass, style: { height: `${this.currentHeight}px` }, tabindex: "0", role: "region", "aria-label": this.accAriaLabel }, h("div", { key: 'ee4be86960ea0cdf99f105d34a2b511a1a2ef7c9', class: "spw-slider__track" }, h("slot", { key: '9324d09e7496a54d2f70684c815a7b833668d3ef' })), this.showArrows && (h("div", { key: 'f817cf37896af468a2a595ebff223457bcb80622', class: "spw-slider__navigation" }, h("button", { key: '9002d2d66e93dc132a7c054931a259559e8e2398', class: "spw-slider__arrow spw-slider__arrow--prev", onClick: this.handlePrevious, disabled: this.activeIndex === 0, "aria-label": this.previousSlideText }, h("spw-icon", { key: '881b9786ec4c1bad320800688a99c1cdd05864f7', icon: "fa-chevron-left" })), h("button", { key: '531a890269a510ce25cbaaac99d6a7b556ebdbd5', class: "spw-slider__arrow spw-slider__arrow--next", onClick: this.handleNext, disabled: this.activeIndex === this.totalSlides - 1, "aria-label": this.nextSlideText }, h("spw-icon", { key: '67da2f2695217740053fbf13879825fc25f8a68a', icon: "fa-chevron-right" })))), this.dotsPosition === 'inside' && this.renderDots()), this.dotsPosition === 'outside' && (h("div", { key: '37854071cc07c7b649af836b6ee4d23009aa3ccc', class: "spw-slider__dots-container" }, this.renderDots())), this.showAutoplayToggle && (h("div", { key: 'b156e6623b0a19012574d538ba41bd2a87d97fd0', class: "spw-slider__autoplay-toggle" }, h("spw-checkbox", { key: '0613184d17c2426e8ef6a9c967af13b462b99e9e', variant: "toggle", checked: this.isAutoplayActive, onSpwChange: this.handleAutoplayToggle }, this.autoplayText)))));
397
+ return (h(Host, { key: 'ae5082afcb30a7aee9b544558d8a519df2fe47a9' }, h("div", { key: '49378e5933cd866c97239485253607b163a4bae0', class: this.elementClass, style: { height: `${this.currentHeight}px` }, tabindex: "0", role: "region", "aria-label": this.accAriaLabel }, h("div", { key: 'aec193435d2f33d4e68fc60117fdf3ce7db84bfd', class: "spw-slider__track" }, h("slot", { key: '45c4c1de3286e6968066a67dfebfd44820a91ef3' })), this.showArrows && (h("div", { key: 'bcef73784f11d15273724e5001500773a18366f8', class: "spw-slider__navigation" }, h("button", { key: '37f94507bdec42684656fd1352f86b3c5f8df76e', class: "spw-slider__arrow spw-slider__arrow--prev", onClick: this.handlePrevious, disabled: this.activeIndex === 0, "aria-label": this.previousSlideText }, h("spw-icon", { key: 'c31df89017385a179b2bbfccce4c889618c7210e', icon: "fa-chevron-left" })), h("button", { key: '0eb8743d02555ebea7abb194832ab0062e16c2b9', class: "spw-slider__arrow spw-slider__arrow--next", onClick: this.handleNext, disabled: this.activeIndex === this.totalSlides - 1, "aria-label": this.nextSlideText }, h("spw-icon", { key: '1873dccaca3fbdfc3dfb8c75b738ce54574e5d0a', icon: "fa-chevron-right" })))), this.dotsPosition === 'inside' && this.renderDots()), this.dotsPosition === 'outside' && (h("div", { key: '471ebb62250e4fbf73d106b78e2604e669ac1279', class: "spw-slider__dots-container" }, this.renderDots())), this.showAutoplayToggle && (h("div", { key: '51e8a4461b6d2234cddbd1c3751b6ffc63f810f7', class: "spw-slider__autoplay-toggle" }, h("spw-checkbox", { key: '1ec3848e90e851fb5e7272c431c28dbe41bfa256', variant: "toggle", checked: this.isAutoplayActive, onSpwChange: this.handleAutoplayToggle }, this.autoplayText)))));
398
398
  }
399
399
  static get is() { return "spw-slider"; }
400
400
  static get encapsulation() { return "shadow"; }
@@ -5,7 +5,7 @@ export class SpwSocials {
5
5
  this.mainTitle = 'Restez connecté';
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: '37ed3a03b7350050ba217872a8a8ee9fcdb747b2' }, h("div", { key: '887f4e81d701a19b99317dead5eacc7f11f64ac3', class: "spw-socials" }, h("div", { key: '037ab94e4f7c748854fbc6375d282bcef10603f2', class: "spw-ds-container" }, h("h2", { key: '4722c336fefac98c035b261e9e03823e6f548975', class: "spw-socials__title" }, this.mainTitle), h("div", { key: 'd3eb5112d91db92e9fff52e51339c31d6085fa9b', class: "spw-socials__content" }, h("slot", { key: '535992ccec35ea2249f67c62491dda3defd40299' }))))));
8
+ return (h(Host, { key: '5863e3f5b584dddbb2e511830309ef0b3a09eef7' }, h("div", { key: '3e56be147344c6a4abe62eb3a6fb0d6f7d3cd7c4', class: "spw-socials" }, h("div", { key: 'd8dcb1313023f6716c3dd551eefe3776afdb3b53', class: "spw-ds-container" }, h("h2", { key: '3407864823f84a277aae4bb7b58462bcf26c0d6f', class: "spw-socials__title" }, this.mainTitle), h("div", { key: '589963b8aea59d72bc0d41ceee67bb90b24e174b', class: "spw-socials__content" }, h("slot", { key: 'bc9969f1672095f66d841716839f1e82fb0df51d' }))))));
9
9
  }
10
10
  static get is() { return "spw-socials"; }
11
11
  static get originalStyleUrls() {
@@ -33,7 +33,7 @@ export class SpwTableBody {
33
33
  });
34
34
  }
35
35
  render() {
36
- return (h("tbody", { key: 'a9e204e735c6df8af028d0973e6e9d093b724d1f', part: "tbody" }, h("slot", { key: 'd4ef5fb72710dba922b4ee232b83dc34c4c85fce' })));
36
+ return (h("tbody", { key: 'd7409dde824328c605547e841dcf6184e84cd3c2', part: "tbody" }, h("slot", { key: '079ac932992a705e09c1b6b0475d66d8e75aaf31' })));
37
37
  }
38
38
  static get is() { return "spw-table-body"; }
39
39
  static get encapsulation() { return "shadow"; }
@@ -87,7 +87,7 @@ export class SpwTableCell {
87
87
  }
88
88
  attrs.style = stickyStyles;
89
89
  }
90
- return (h("td", Object.assign({ key: 'dd15e98018e126db78124d0a36ecc3ada952cd7d' }, attrs), h("slot", { key: '34b37091089de46915e0947ed69800d81a45ba69' })));
90
+ return (h("td", Object.assign({ key: '54d4b03148e699696ed46b3487254df0df7a0f33' }, attrs), h("slot", { key: 'ab32cba26290fac5796df0d9d8fb34f057212def' })));
91
91
  }
92
92
  static get is() { return "spw-table-cell"; }
93
93
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class SpwTableContainer {
3
3
  render() {
4
- return (h(Host, { key: 'ba32d8351f460f3eb7a5243f8b7a838afa85fe71' }, h("div", { key: '515717d2400c7aefb573e0e5f3b1f69be364c020', class: "spw-table-container" }, h("slot", { key: '8d168442cd75f0556cb369e382fde91d7ecb223d' }))));
4
+ return (h(Host, { key: '5edd5889a7ce84f37ff2a98d00a17e4285753e16' }, h("div", { key: '8f098d27881912ccf26e622de578f5e8ca35a199', class: "spw-table-container" }, h("slot", { key: 'd1d754c6a175029aa701a0f3ffb74f99ee2fa58b' }))));
5
5
  }
6
6
  static get is() { return "spw-table-container"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class SpwTableFooter {
3
3
  render() {
4
- return (h("div", { key: '12ca1ccd23f29a2ff5ce4f83d5c95c144e3ed05b', class: "spw-table-footer" }, h("slot", { key: '1f0c922c3ebffeb4e03cc038ad9283531986ba7a', name: "left" }), h("slot", { key: 'b35dc377529b095c7aeb421d94b38386f7533567', name: "center" }), h("slot", { key: '668cab6205dcc48004e0e9a2ec2b1605ccfe26a2', name: "right" })));
4
+ return (h("div", { key: '3274802fb02297ad3766a25a0849bfc52dc46a5c', class: "spw-table-footer" }, h("slot", { key: '7a3ba8f4a8ee2af04dd76f7c7a2dc70d44f2df09', name: "left" }), h("slot", { key: '1cb9ef1b1a7e2a254ebd554a99a46a4bde2b56cc', name: "center" }), h("slot", { key: '6324073526a1541828b573390969b37a8c8cd453', name: "right" })));
5
5
  }
6
6
  static get is() { return "spw-table-footer"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class SpwTableHead {
3
3
  render() {
4
- return (h("thead", { key: 'd957840628bb81aefe0d028e2b87bcdcb70dbefb', part: "thead" }, h("slot", { key: '3d0d79e4b275b2ee7241e7d7f39d2fbb81041dd3' })));
4
+ return (h("thead", { key: '9ec8ad801e891674cb91fa2115daa6313a7050f1', part: "thead" }, h("slot", { key: 'ef1ff2951d7988c3d77ac804fd6f079f0795067d' })));
5
5
  }
6
6
  static get is() { return "spw-table-head"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -65,10 +65,10 @@ export class SpwTableHeader {
65
65
  }
66
66
  attrs.style = stickyStyles;
67
67
  }
68
- return (h("th", Object.assign({ key: '49901ac1ee181ba20ed0a3034df8e66806ae1e54' }, attrs), h("div", { key: '340392945a5dd4d4c60ec8f0dd3b1e11190e106a', class: {
68
+ return (h("th", Object.assign({ key: 'c96b8e0732bbe18ba3eedfa06bfb4ae3a73de540' }, attrs), h("div", { key: '34ae0d5a2fbd7e93aa305b332fcb58c40f20e716', class: {
69
69
  'spw-table-header__content': true,
70
70
  'spw-table-header__content--is-sorted': this.isSorted,
71
- } }, h("slot", { key: '3cdadf97c4a97d6f7f1fe8778ef3509c761a15d2' }), h("div", { key: 'aad3d5b6d8465ca5cbec4fb056e70fbb99cbec9d', class: "spw-table-header__icons" }, h("slot", { key: '3775fb68e7a129db0c1bb6f021ca6ee475a0b8fb', name: "filters" }), (this.tooltipTitle || this.tooltipText) && (h("spw-tooltip", { key: '04a1b70d162ec187ead78f6ea90f4773dc605124', "tooltip-title": this.tooltipTitle, "tooltip-text": this.tooltipText }, h("spw-icon", { key: '724d62b0d6c8532bd50e486778ab5cc43c45ed19', variant: "fa-regular", icon: "fa-circle-question" }))), this.sortable && (h("spw-icon", { key: 'ff9ea419a7fe8f8fe10e8bafb67c20278fbf6c94', class: "spw-table-header__sort-icon", icon: this.isSorted ? (this.sortDirection === 'asc' ? 'fa-arrow-up-short-wide' : 'fa-arrow-down-wide-short') : 'fa-arrow-up-arrow-down' }))))));
71
+ } }, h("slot", { key: 'f844a5f239ed5255492dffd6e064dea78d466a78' }), h("div", { key: '711f86026809f0d858b17ac138d0d69cb05584e5', class: "spw-table-header__icons" }, h("slot", { key: 'd6402e00b5c8ba5053af927215682a13e636cea7', name: "filters" }), (this.tooltipTitle || this.tooltipText) && (h("spw-tooltip", { key: '3080be068c69098c9682dc6d1ad34b936c32517d', "tooltip-title": this.tooltipTitle, "tooltip-text": this.tooltipText }, h("spw-icon", { key: 'b73522b0f1ae52b1f55e8ac90aa4f256860e3ca3', variant: "fa-regular", icon: "fa-circle-question" }))), this.sortable && (h("spw-icon", { key: '92f6b44fceffa12cdec3f692283700c710975e2a', class: "spw-table-header__sort-icon", icon: this.isSorted ? (this.sortDirection === 'asc' ? 'fa-arrow-up-short-wide' : 'fa-arrow-down-wide-short') : 'fa-arrow-up-arrow-down' }))))));
72
72
  }
73
73
  static get is() { return "spw-table-header"; }
74
74
  static get encapsulation() { return "shadow"; }
@@ -49,7 +49,7 @@ export class SpwTableRow {
49
49
  };
50
50
  }
51
51
  render() {
52
- return (h(Host, { key: '2e5b39c7bd307e27d424b9b7607fb42935e4498c', part: "row" }, h("tr", { key: '43ce9efb0946dc89c6bf783da7073406a6fd6b76', class: this.elementClass, part: "row" }, h("slot", { key: '16c69e9d52c86d0286ae3fc42d9c0abc5c339121' }))));
52
+ return (h(Host, { key: 'ef85e30b6faee845cbf6db79117c53e098e99a5a', part: "row" }, h("tr", { key: '0e76eada2017642d143d438c86f29a9e604c8afe', class: this.elementClass, part: "row" }, h("slot", { key: 'b93e4e25e54448fb460719423ba2f4d0e607aea6' }))));
53
53
  }
54
54
  static get is() { return "spw-table-row"; }
55
55
  static get encapsulation() { return "shadow"; }
@@ -123,7 +123,7 @@ export class SpwTableSidebar {
123
123
  }
124
124
  render() {
125
125
  const style = Object.assign(Object.assign({}, (this.observedHeight !== undefined && { height: `${this.observedHeight}px` })), { '--spw-table-sidebar-width': `${this.sidebarWidth}px` });
126
- return (h(Host, { key: 'fb4374fe40ceeefaaf11ae09e93de670caded7c6', style: style, class: this.hostClass }, h("nav", { key: '11f9cf9fab69bd57a4d7580d4f3cdeb5c14a79c0', class: this.elementClass }, h("span", { key: '47b5f9bdf217683e357e04851bd5a01f7f600b32', class: "spw-table-sidebar__toggle", onClick: this.toggleSidebar, "aria-expanded": this.expanded.toString() }, h("spw-icon", { key: '3b837e3d4d2292218a4d5ea91f7ff2c3dc7c8552', icon: "fa-chevron-left" })), h("div", { key: 'd9a7679ed519a5734c89ee529b798b44a897badf', class: "spw-table-sidebar__mini", onClick: this.toggleSidebar }, h("spw-icon", { key: '6d21fbc9dcbd8aadbbaf44307b0fb6f1b7818410', icon: this.sidebarIcon, variant: "fa-regular" })), h("div", { key: '07eb451fd29dedf0c39bd9c5bb132968a184ced6', class: "spw-table-sidebar__content" }, h("div", { key: '43fd77c40dabedb907fd8cc936e97776f582164b', class: "spw-table-sidebar__header" }, h("span", { key: '0142aaa659a39687f7b3c6da39f01285c602b59d', class: "spw-table-sidebar__header-title" }, h("spw-icon", { key: '25b7139651b3832fab1543d43fe9252b1b316010', icon: this.sidebarIcon, variant: "fa-regular" }), " ", this.sidebarTitle), this.hasReset && (h("spw-button", { key: 'c03787c7c5faa815479b641715ce560db0fe3418', class: "spw-table-sidebar__header-reset", onClick: this.handleReset, type: "button", variant: "secondary", size: "small", isIconOnly: true, icon: this.resetIcon }))), h("div", { key: '66e976bf79f4cf19678b3f48c325ec6ca04d7ba2', class: "spw-table-sidebar__scrollable-content" }, h("slot", { key: '8eb07f0a9b371f6ee63663a30cff72be20967f1c' })), h("div", { key: '3c085ce9a9acef989a0b3d86759a0fa89c49469a', class: "spw-table-sidebar__footer" }, h("slot", { key: 'c7ad275117018bec8f1e42325d0335bf6d56b5d8', name: "sidebar-footer" }))))));
126
+ return (h(Host, { key: '0e0e7237879e061033c214e6ba44ec20ce0cfaa0', style: style, class: this.hostClass }, h("nav", { key: 'd8bce9a96e6e7dd985879c259b5d16f290d3de7e', class: this.elementClass }, h("span", { key: '4f07b91f8c5d93d9eef7c7c68bba09ddfad4417d', class: "spw-table-sidebar__toggle", onClick: this.toggleSidebar, "aria-expanded": this.expanded.toString() }, h("spw-icon", { key: 'b3a0feebb78062a2d185ea55c2a1ae986bfe665d', icon: "fa-chevron-left" })), h("div", { key: 'd14f2ebd001188ef6edc200ad2817e1ec55a0e4e', class: "spw-table-sidebar__mini", onClick: this.toggleSidebar }, h("spw-icon", { key: '718aa5704a6a7e5bcd85492abe40f31f1ce00842', icon: this.sidebarIcon, variant: "fa-regular" })), h("div", { key: '138a2aabbe55682ae3b411242591a40d1c2fc162', class: "spw-table-sidebar__content" }, h("div", { key: 'c84392125d283e0d330875c4fa1026597336d28d', class: "spw-table-sidebar__header" }, h("span", { key: '820d3b63f481bebbccb6a611b48dc3be3fcb7be0', class: "spw-table-sidebar__header-title" }, h("spw-icon", { key: 'ed32ded914de3d9199909e8d85d4184c7af87923', icon: this.sidebarIcon, variant: "fa-regular" }), " ", this.sidebarTitle), this.hasReset && (h("spw-button", { key: '5b7fa07306c572ded7a28cd5ead4d27245516847', class: "spw-table-sidebar__header-reset", onClick: this.handleReset, type: "button", variant: "secondary", size: "small", isIconOnly: true, icon: this.resetIcon }))), h("div", { key: 'dc6b37b9a1a6921ddb3462cfe055851f1a25e9ae', class: "spw-table-sidebar__scrollable-content" }, h("slot", { key: 'fec62db7642e1a7998feef12917f6f6fa40c81e2' })), h("div", { key: 'f012224dd279b2c5f92227abf0cfb70ba98ac2b0', class: "spw-table-sidebar__footer" }, h("slot", { key: '8ef26eec47a4bbe7739d7bf75c3aa54358b1be32', name: "sidebar-footer" }))))));
127
127
  }
128
128
  static get is() { return "spw-table-sidebar"; }
129
129
  static get encapsulation() { return "shadow"; }
@@ -102,7 +102,7 @@ export class SpwTabsNavigation {
102
102
  'spw-tabs-navigation__list--vertical-on-mobile': this.isVerticalOnMobile,
103
103
  'spw-tabs-navigation__list--centered': this.isCentered && !this.hasOverflow,
104
104
  };
105
- return (h("div", { key: '2b227b9d3edc52fe3cd7358e8e1b0269863c07d5', class: containerClass }, this.showLeftArrow && (h("button", { key: '6ffc6f975492936714466215e27519ff3137261b', class: "spw-tabs-navigation__arrow spw-tabs-navigation__arrow--left", onClick: this.scrollLeft, "aria-label": "Faire d\u00E9filer vers la gauche" }, h("spw-icon", { key: 'c3609240c389f9f480c79d956b894f433e66a0bd', icon: "fa-chevron-left" }))), h("nav", { key: '85918963ae8cffb79eb21467e54bcda93afb27cb', class: navClass, "aria-label": this.accAriaLabel || 'Navigation' }, h("ul", { key: '36f65c10bcbc0c52095c8491a37fd6bcd6199492', class: listClass, role: "tablist", ref: el => (this.ulElement = el), onScroll: this.handleScroll }, h("slot", { key: '9c0ad17537706fbee2a6158e014593cc6f26b17e' }))), this.showRightArrow && (h("button", { key: '95a250291a6d6586331bc8fd90f6bd011b05f949', class: "spw-tabs-navigation__arrow spw-tabs-navigation__arrow--right", onClick: this.scrollRight, "aria-label": "Faire d\u00E9filer vers la droite" }, h("spw-icon", { key: '6d8646a6d37e816fdfd8a278b5794de3da5f5068', icon: "fa-chevron-right" })))));
105
+ return (h("div", { key: '0adb38f7e049a4193dd9ccf9339c264182e35102', class: containerClass }, this.showLeftArrow && (h("button", { key: '3216c361c65b16d20b1e802f088d6682c430f5f7', class: "spw-tabs-navigation__arrow spw-tabs-navigation__arrow--left", onClick: this.scrollLeft, "aria-label": "Faire d\u00E9filer vers la gauche" }, h("spw-icon", { key: '10ad5f02999ae842182a00d577f82e3ea07ef846', icon: "fa-chevron-left" }))), h("nav", { key: '6b9c5b61686efcb08d3bdb7c00948f829bbb8e11', class: navClass, "aria-label": this.accAriaLabel || 'Navigation' }, h("ul", { key: '9b12145c2c1e83ef30f410355d6e63df48b5dce8', class: listClass, role: "tablist", ref: el => (this.ulElement = el), onScroll: this.handleScroll }, h("slot", { key: '5b1b3c24cbb788037f59b43822b9e9d526667c28' }))), this.showRightArrow && (h("button", { key: '61715a66a54fa8d7d9b92ab98b618336ac9fd385', class: "spw-tabs-navigation__arrow spw-tabs-navigation__arrow--right", onClick: this.scrollRight, "aria-label": "Faire d\u00E9filer vers la droite" }, h("spw-icon", { key: '33c810bf8e4fad017313973f3833cc7fb4dc5d52', icon: "fa-chevron-right" })))));
106
106
  }
107
107
  static get is() { return "spw-tabs-navigation"; }
108
108
  static get encapsulation() { return "shadow"; }
@@ -63,7 +63,7 @@ export class SpwTabsNavigationItem {
63
63
  const iconClass = `spw-icon--${iconPosition}`;
64
64
  const iconElement = this.icon ? h("spw-icon", { class: iconClass, icon: this.icon }) : null;
65
65
  const tagElement = this.tagText ? (h("spw-tag", { size: "small", "has-icon": this.tagIcon ? 'true' : 'false', variant: this.tagVariant }, this.tagText)) : null;
66
- return (h(Host, { key: '3a8f8534ca1682b8e171f8c19e4db53ce29bd0c4', class: this.active ? '--active' : '' }, h("li", { key: '2e12362ae8375e351c93d53c0f3c37e32e96bf11', id: `tab-${this.tabId}`, role: "tab", "aria-selected": this.active ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.accAriaLabel || this.slotText, onKeyDown: this.handleKeyDown, tabIndex: this.disabled ? -1 : 0, class: this.elementClass, onClick: this.handleClick }, this.hasEllipsis && (h("spw-tooltip", { key: 'c212ddbc7e42daee44b30b4b4859c474cfb9938f', cursor: this.disabled ? 'disabled' : 'pointer', class: "spw-tooltip--has-ellipsis", tooltipText: this.slotText }, iconPosition === 'left' && iconElement, h("slot", { key: 'c28046baad6d3160d1bc9dc8fb9258c76432562c' }), iconPosition === 'right' && iconElement, tagElement)), !this.hasEllipsis && (h(Fragment, { key: '8ad13772538c74b690e78da8aa114c179be1d05c' }, iconPosition === 'left' && iconElement, h("slot", { key: 'ea83c3dbb8587ecdebad8f1fa81894a535491c2d' }), iconPosition === 'right' && iconElement, tagElement)), ' ', this.bubble && h("span", { key: '28d465f9942b8207263057e53f9ed0f277a9ab99', class: "bubble" }))));
66
+ return (h(Host, { key: '4b62700a4d2e49968423ab063c0c0aeb7c244d48', class: this.active ? '--active' : '' }, h("li", { key: '0f536a2f72074420a65ef5bd8e0557590d784527', id: `tab-${this.tabId}`, role: "tab", "aria-selected": this.active ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.accAriaLabel || this.slotText, onKeyDown: this.handleKeyDown, tabIndex: this.disabled ? -1 : 0, class: this.elementClass, onClick: this.handleClick }, this.hasEllipsis && (h("spw-tooltip", { key: '2cb56424e3de368f48ba4730e380f2d920ccd79a', cursor: this.disabled ? 'disabled' : 'pointer', class: "spw-tooltip--has-ellipsis", tooltipText: this.slotText }, iconPosition === 'left' && iconElement, h("slot", { key: '59b23a03f00ecc47e49e03977c9c39f8aa39fea4' }), iconPosition === 'right' && iconElement, tagElement)), !this.hasEllipsis && (h(Fragment, { key: '6c5905313497084503d4b206c49debccad662868' }, iconPosition === 'left' && iconElement, h("slot", { key: '75ee1db82675348e3710c68ba2f279833db6f954' }), iconPosition === 'right' && iconElement, tagElement)), ' ', this.bubble && h("span", { key: '39cf06bdd61e7f10e7b6c2a06ece9dc778c17f89', class: "bubble" }))));
67
67
  }
68
68
  static get is() { return "spw-tabs-navigation-item"; }
69
69
  static get encapsulation() { return "shadow"; }
@@ -167,7 +167,7 @@ export class SpwTabs {
167
167
  };
168
168
  }
169
169
  render() {
170
- return (h("div", { key: '3bfb6a6bea5d4ebc4bc2cec369756414c4d94056', class: this.elementClass }, h("slot", { key: '1b73931774867138ceb9bebb0fb5e56b0a0483c6', name: "navigation" }), h("slot", { key: '229876d6e286f1bf7de291dfd41122ca067de57e', name: "content" })));
170
+ return (h("div", { key: 'b6310eb87661de2bf83768ff6cc7d3fc9d6a9669', class: this.elementClass }, h("slot", { key: '57a152f6a6cb53cacd6ef72b374c3428fdd1a69b', name: "navigation" }), h("slot", { key: 'dab20dbc1ba59308580a499bd562890d06315a60', name: "content" })));
171
171
  }
172
172
  static get is() { return "spw-tabs"; }
173
173
  static get encapsulation() { return "shadow"; }
@@ -49,7 +49,7 @@ export class SpwTag {
49
49
  };
50
50
  const iconToDisplay = this.icon || this.getIcon(this.variant);
51
51
  const iconElement = this.hasIcon ? h("spw-icon", { variant: this.iconVariant, icon: iconToDisplay }) : null;
52
- return (h(Host, { key: '4a6158008a587e4a6c534634df08be0c63b98e4b' }, h(TagType, Object.assign({ key: 'bd12d6475acbac06d2f5dfdd87aeb2a15b540ff1' }, attrs, { class: this.elementClass }), this.iconPosition === 'left' && iconElement, h("slot", { key: '195ff4cda1e6e74eab0a3a46d4a04bdbf101da96' }), this.iconPosition === 'right' && iconElement)));
52
+ return (h(Host, { key: '5bbea711fe7b238e190819b7fc90c4751ca21a13' }, h(TagType, Object.assign({ key: '1122317d82979d80fd995ac4861869f685ec93ce' }, attrs, { class: this.elementClass }), this.iconPosition === 'left' && iconElement, h("slot", { key: '3617ec897e76d86a58e970711b0861329124c36f' }), this.iconPosition === 'right' && iconElement)));
53
53
  }
54
54
  static get is() { return "spw-tag"; }
55
55
  static get encapsulation() { return "shadow"; }
@@ -247,25 +247,22 @@ export class SpwTextField {
247
247
  }
248
248
  return result;
249
249
  }
250
- renderErrorMessage() {
251
- if (this.error) {
252
- return (h("spw-field-message", { variant: "error", showIcon: this.showErrorIcon, isExpandable: this.isExpandable, expandLabel: this.expandLabel, collapseLabel: this.collapseLabel }, this.error, h("slot", { name: "details", slot: "details" })));
253
- }
254
- }
255
- renderHintMessage() {
256
- if (this.hint) {
257
- return (h("spw-field-message", { variant: "hint", showIcon: this.showHintIcon, isExpandable: this.isExpandable, expandLabel: this.expandLabel, collapseLabel: this.collapseLabel }, this.hint, h("slot", { name: "details", slot: "details" })));
258
- }
259
- }
260
- renderSuccessMessage() {
261
- if (this.success) {
262
- return (h("spw-field-message", { variant: "success", showIcon: this.showSuccessIcon, isExpandable: this.isExpandable, expandLabel: this.expandLabel, collapseLabel: this.collapseLabel }, this.success, h("slot", { name: "details", slot: "details" })));
263
- }
264
- }
265
- renderWarningMessage() {
266
- if (this.warning) {
267
- return (h("spw-field-message", { variant: "warning", showIcon: this.showWarningIcon, isExpandable: this.isExpandable, expandLabel: this.expandLabel, collapseLabel: this.collapseLabel }, this.warning, h("slot", { name: "details", slot: "details" })));
268
- }
250
+ // isExpandable (details slot) est rendu uniquement sur le dernier message
251
+ // affiché — sinon on aurait un bouton "Plus d'informations" par message.
252
+ renderMessages() {
253
+ const messages = [];
254
+ if (this.error)
255
+ messages.push({ variant: 'error', text: this.error, showIcon: this.showErrorIcon });
256
+ if (this.hint)
257
+ messages.push({ variant: 'hint', text: this.hint, showIcon: this.showHintIcon });
258
+ if (this.success)
259
+ messages.push({ variant: 'success', text: this.success, showIcon: this.showSuccessIcon });
260
+ if (this.warning)
261
+ messages.push({ variant: 'warning', text: this.warning, showIcon: this.showWarningIcon });
262
+ return messages.map((m, i) => {
263
+ const isLast = i === messages.length - 1;
264
+ return (h("spw-field-message", { variant: m.variant, showIcon: m.showIcon, isExpandable: isLast && this.isExpandable, expandLabel: this.expandLabel, collapseLabel: this.collapseLabel }, m.text, isLast && h("slot", { name: "details", slot: "details" })));
265
+ });
269
266
  }
270
267
  get elementClass() {
271
268
  const isNumber = this.type === 'number';
@@ -282,7 +279,7 @@ export class SpwTextField {
282
279
  };
283
280
  }
284
281
  render() {
285
- return (h("div", { key: 'e4bd9a7658360bb809fea011c1be848d410fd4ac', class: this.elementClass }, this.label && (h("spw-field-label", { key: '966ebc8ec9fc846bb3bbddd5872ea9dadf57f559', label: this.label, name: this.name, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: '89cda5a205c9e6ebbc559e244df8b2f09af824a6', class: "spw-text-field__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: 'b9117308948f17fef393c1342e02b838cbb8d1f3', class: "spw-text-field__container" }, this.type === 'number' && this.hasControls && (h("button", { key: '3e9e5115840166cf7d725f6be9353d820ab49752', type: "button", class: "spw-text-field__number-btn spw-text-field__number-btn--decrement", onClick: () => this.decrement(), disabled: this.disabled || (this.min != null && Number(this.value) <= this.min), "aria-label": this.accAriaLabelDecrement }, h("spw-icon", { key: 'cccf7aa4bce081ed985bd29a90d9d9f0fcd7df87', icon: "fa-minus" }))), h("div", { key: 'ce2962bd886e188465abfb7e882ca1e6bebc1844', class: "spw-text-field__input-container" }, h("input", { key: '9266a73c59ff0625e9bb444af04f1966ae3295bf', class: "spw-text-field__input", ref: el => (this.inputElement = el), type: this.type === 'number' && (this.decimalPrecision != null || this.mask != null) ? 'text' : this.type, inputMode: this.type === 'number' && (this.decimalPrecision != null || this.mask != null) ? 'decimal' : undefined, min: this.type === 'number' && this.decimalPrecision == null && this.mask == null ? this.min : undefined, max: this.type === 'number' && this.decimalPrecision == null && this.mask == null ? this.max : undefined, step: this.type === 'number' && this.decimalPrecision == null && this.mask == null ? this.step : undefined, placeholder: this.placeholder, "aria-label": this.accAriaLabel || this.name, disabled: this.disabled, name: this.name, id: this.name, minLength: this.minLength, maxLength: this.maxLength, required: this.required, onInput: event => this.handleInput(event), onKeyDown: event => this.handleKeyDown(event) }), (this.isSearch || this.isClearIconVisible) && (h("div", { key: '2e0e41f825ef7b54057e9f8eac56dbbd1692b0eb', class: "spw-text-field__icons" }, this.isClearIconVisible && (h("span", { key: '8c289f6d07ab2a494b8379bb4dd96b7913b636dc', class: "spw-text-field__clear", onClick: () => this.handleClear() }, h("spw-icon", { key: '45cee755cd23114506a58e6ed8f84547e6531a47', class: "spw-text-field__icon spw-text-field__icon--clear", icon: "fa-xmark" }))), this.isSearch && !this.hasSubmitButton && h("spw-icon", { key: '6e50f234680a9b77143dbd8d247afab10b262976', class: "spw-text-field__icon spw-text-field__icon--search", icon: "fa-magnifying-glass" }), this.hasSubmitButton && (h("button", { key: '4fbcdab588dce86c0498badad56cd378cf1bede5', type: "button", class: "spw-text-field__submit", onClick: () => this.handleSubmit(), "aria-label": "Rechercher" }, h("spw-icon", { key: '9d0df46e6f24a1c321ccdd9dd883e18907241017', icon: "fa-magnifying-glass" })))))), this.type === 'number' && this.hasControls && (h("button", { key: '415467e32e7940ccdb3c79b6eac874e1a249c977', type: "button", class: "spw-text-field__number-btn spw-text-field__number-btn--increment", onClick: () => this.increment(), disabled: this.disabled || (this.max != null && Number(this.value) >= this.max), "aria-label": this.accAriaLabelIncrement }, h("spw-icon", { key: 'f854ab9b9b580b0e995991d5ae8dfaa4e1258caa', icon: "fa-plus" }))), this.indicator && h("div", { key: '23924b26b55b036341038b3a6dd18df9fd3d650e', class: "spw-text-field__indicator" }, this.indicator)), this.renderErrorMessage(), this.renderHintMessage(), this.renderSuccessMessage(), this.renderWarningMessage()));
282
+ return (h("div", { key: 'eac95d9044c5233a1eb4db8f93c85593521160df', class: this.elementClass }, this.label && (h("spw-field-label", { key: '605e3ca1d5e46ef44e36e4386905e8aefd02bb9f', label: this.label, name: this.name, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: 'd0226be53d3efb860c7270af3f175e472b853831', class: "spw-text-field__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: 'deb7a861a993fa17ce7414f6f8ff4e45599fcbfa', class: "spw-text-field__container" }, this.type === 'number' && this.hasControls && (h("button", { key: 'a086085956f44ee9f947b09f0fdc741d214941be', type: "button", class: "spw-text-field__number-btn spw-text-field__number-btn--decrement", onClick: () => this.decrement(), disabled: this.disabled || (this.min != null && Number(this.value) <= this.min), "aria-label": this.accAriaLabelDecrement }, h("spw-icon", { key: '25bf35e3b7163e1a026788a78bd61378800c7315', icon: "fa-minus" }))), h("div", { key: 'b44136077e9857835fd6c77f232af93fd94c7755', class: "spw-text-field__input-container" }, h("input", { key: '37310e16d288b6e5557d4d0b0c6003764371527f', class: "spw-text-field__input", ref: el => (this.inputElement = el), type: this.type === 'number' && (this.decimalPrecision != null || this.mask != null) ? 'text' : this.type, inputMode: this.type === 'number' && (this.decimalPrecision != null || this.mask != null) ? 'decimal' : undefined, min: this.type === 'number' && this.decimalPrecision == null && this.mask == null ? this.min : undefined, max: this.type === 'number' && this.decimalPrecision == null && this.mask == null ? this.max : undefined, step: this.type === 'number' && this.decimalPrecision == null && this.mask == null ? this.step : undefined, placeholder: this.placeholder, "aria-label": this.accAriaLabel || this.name, disabled: this.disabled, name: this.name, id: this.name, minLength: this.minLength, maxLength: this.maxLength, required: this.required, onInput: event => this.handleInput(event), onKeyDown: event => this.handleKeyDown(event) }), (this.isSearch || this.isClearIconVisible) && (h("div", { key: 'c79b5880f91b6f0c1e56fe892e4a050608d44882', class: "spw-text-field__icons" }, this.isClearIconVisible && (h("span", { key: '669dc7c54ff811af1d967b078d20feedb0c5bd5a', class: "spw-text-field__clear", onClick: () => this.handleClear() }, h("spw-icon", { key: '16bfdfb005fcae12024c69d4104b1b7ed8416fcd', class: "spw-text-field__icon spw-text-field__icon--clear", icon: "fa-xmark" }))), this.isSearch && !this.hasSubmitButton && h("spw-icon", { key: '68491038bc146623f90aebc29dd1435d9684d7b2', class: "spw-text-field__icon spw-text-field__icon--search", icon: "fa-magnifying-glass" }), this.hasSubmitButton && (h("button", { key: 'cbd2ea1a3df8cceab6e214ef961eddbfa216fa55', type: "button", class: "spw-text-field__submit", onClick: () => this.handleSubmit(), "aria-label": "Rechercher" }, h("spw-icon", { key: '90b903d8a4a620d0b45270a4730facc602e63c94', icon: "fa-magnifying-glass" })))))), this.type === 'number' && this.hasControls && (h("button", { key: '71cc50996b225e21090e510a466bc5a7accdcd61', type: "button", class: "spw-text-field__number-btn spw-text-field__number-btn--increment", onClick: () => this.increment(), disabled: this.disabled || (this.max != null && Number(this.value) >= this.max), "aria-label": this.accAriaLabelIncrement }, h("spw-icon", { key: 'c34cb66bdac07bf3517a9413d077bb46831e303d', icon: "fa-plus" }))), this.indicator && h("div", { key: 'c666a77985ef4b825e50c65db3c4e2fff55ee942', class: "spw-text-field__indicator" }, this.indicator)), this.renderMessages()));
286
283
  }
287
284
  static get is() { return "spw-text-field"; }
288
285
  static get encapsulation() { return "shadow"; }