@zanichelli/albe-web-components 16.3.0 → 16.3.1

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 (1042) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/cjs/breakpoints-8a1e87e0.js +11 -0
  3. package/dist/cjs/breakpoints-8a1e87e0.js.map +1 -0
  4. package/dist/cjs/{index-b361709b.js → index-041b41e6.js} +2 -2
  5. package/dist/cjs/{index-b361709b.js.map → index-041b41e6.js.map} +1 -1
  6. package/dist/cjs/{index-3a070c6b.js → index-1dfb8b3c.js} +2 -2
  7. package/dist/cjs/{index-3a070c6b.js.map → index-1dfb8b3c.js.map} +1 -1
  8. package/dist/cjs/{index-1f9f28df.js → index-25ded558.js} +2 -2
  9. package/dist/cjs/{index-1f9f28df.js.map → index-25ded558.js.map} +1 -1
  10. package/dist/cjs/{index-f0159789.js → index-4bce26ea.js} +5 -5
  11. package/dist/cjs/{index-f0159789.js.map → index-4bce26ea.js.map} +1 -1
  12. package/dist/cjs/{index-e801ae96.js → index-96af6326.js} +2167 -2127
  13. package/dist/cjs/index-96af6326.js.map +1 -0
  14. package/dist/cjs/{index-1890445d.js → index-b7759a0d.js} +2 -2
  15. package/dist/cjs/{index-1890445d.js.map → index-b7759a0d.js.map} +1 -1
  16. package/dist/cjs/{index-597156d1.js → index-d4272b0e.js} +2 -2
  17. package/dist/cjs/{index-597156d1.js.map → index-d4272b0e.js.map} +1 -1
  18. package/dist/cjs/index.cjs.js +2 -2
  19. package/dist/cjs/loader.cjs.js +2 -2
  20. package/dist/cjs/{utils-6bd8c55e.js → utils-257558ff.js} +19 -5
  21. package/dist/cjs/utils-257558ff.js.map +1 -0
  22. package/dist/cjs/web-components-library.cjs.js +3 -3
  23. package/dist/cjs/web-components-library.cjs.js.map +1 -1
  24. package/dist/cjs/z-accordion.cjs.entry.js +1 -1
  25. package/dist/cjs/z-alert.cjs.entry.js +2 -2
  26. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  27. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +2 -2
  28. package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -1
  29. package/dist/cjs/z-app-header_12.cjs.entry.js +278 -342
  30. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  31. package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
  32. package/dist/cjs/z-avatar.cjs.entry.js +3 -3
  33. package/dist/cjs/z-book-card.cjs.entry.js +5 -5
  34. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  35. package/dist/cjs/z-breadcrumb.cjs.entry.js +5 -5
  36. package/dist/cjs/z-button-sort.cjs.entry.js +4 -4
  37. package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -1
  38. package/dist/cjs/z-card.cjs.entry.js +1 -1
  39. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  40. package/dist/cjs/z-chip.cjs.entry.js +3 -3
  41. package/dist/cjs/z-combobox.cjs.entry.js +5 -5
  42. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -1
  43. package/dist/cjs/z-cover-hero.cjs.entry.js +3 -3
  44. package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
  45. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +7 -7
  46. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
  47. package/dist/cjs/z-file-upload.cjs.entry.js +3 -3
  48. package/dist/cjs/z-file.cjs.entry.js +4 -4
  49. package/dist/cjs/z-file.cjs.entry.js.map +1 -1
  50. package/dist/cjs/z-ghost-loading.cjs.entry.js +2 -2
  51. package/dist/cjs/z-info-box.cjs.entry.js +2 -2
  52. package/dist/cjs/z-info-reveal.cjs.entry.js +2 -2
  53. package/dist/cjs/z-logo.cjs.entry.js +2 -2
  54. package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
  55. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
  56. package/dist/cjs/z-menu-section.cjs.entry.js +141 -112
  57. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -1
  58. package/dist/cjs/z-menu.cjs.entry.js +210 -162
  59. package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
  60. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  61. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  62. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +2 -2
  63. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  64. package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -2
  65. package/dist/cjs/z-myz-card-info.cjs.entry.js +4 -4
  66. package/dist/cjs/z-myz-card-list.cjs.entry.js +2 -2
  67. package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
  68. package/dist/cjs/z-myz-list-item.cjs.entry.js +4 -4
  69. package/dist/cjs/z-myz-list.cjs.entry.js +2 -2
  70. package/dist/cjs/z-navigation-tabs.cjs.entry.js +3 -3
  71. package/dist/cjs/z-notification.cjs.entry.js +2 -2
  72. package/dist/cjs/z-otp.cjs.entry.js +3 -3
  73. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  74. package/dist/cjs/z-panel-elem.cjs.entry.js +3 -3
  75. package/dist/cjs/z-popover.cjs.entry.js +2 -2
  76. package/dist/cjs/z-range-picker.cjs.entry.js +1 -1
  77. package/dist/cjs/z-section-title.cjs.entry.js +2 -2
  78. package/dist/cjs/z-select.cjs.entry.js +4 -4
  79. package/dist/cjs/z-skip-to-content.cjs.entry.js +4 -4
  80. package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
  81. package/dist/cjs/z-stepper-item.cjs.entry.js +2 -2
  82. package/dist/cjs/z-stepper.cjs.entry.js +2 -2
  83. package/dist/cjs/z-table.cjs.entry.js +9 -9
  84. package/dist/cjs/z-tbody.cjs.entry.js +2 -2
  85. package/dist/cjs/z-td.cjs.entry.js +2 -2
  86. package/dist/cjs/z-tfoot.cjs.entry.js +2 -2
  87. package/dist/cjs/z-th.cjs.entry.js +2 -2
  88. package/dist/cjs/z-thead.cjs.entry.js +2 -2
  89. package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  90. package/dist/cjs/z-toast-notification.cjs.entry.js +4 -4
  91. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -1
  92. package/dist/cjs/z-toggle-button.cjs.entry.js +3 -3
  93. package/dist/cjs/z-toggle-switch.cjs.entry.js +6 -6
  94. package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
  95. package/dist/cjs/z-tr.cjs.entry.js +6 -6
  96. package/dist/cjs/z-visually-hidden.cjs.entry.js +2 -2
  97. package/dist/collection/beans/index.js.map +1 -1
  98. package/dist/collection/collection-manifest.json +2 -2
  99. package/dist/collection/components/css-components/z-fab/index.stories.js.map +1 -1
  100. package/dist/collection/components/css-components/z-link/index.stories.js.map +1 -1
  101. package/dist/collection/components/date-picker/utils.js.map +1 -1
  102. package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -1
  103. package/dist/collection/components/date-picker/z-date-picker/index.stories.js.map +1 -1
  104. package/dist/collection/components/date-picker/z-range-picker/index.js.map +1 -1
  105. package/dist/collection/components/date-picker/z-range-picker/index.stories.js.map +1 -1
  106. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +1 -1
  107. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -1
  108. package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js.map +1 -1
  109. package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -1
  110. package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js.map +1 -1
  111. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -1
  112. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js.map +1 -1
  113. package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -1
  114. package/dist/collection/components/file-upload/z-file/index.js +3 -3
  115. package/dist/collection/components/file-upload/z-file/index.js.map +1 -1
  116. package/dist/collection/components/file-upload/z-file/index.stories.js.map +1 -1
  117. package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -1
  118. package/dist/collection/components/file-upload/z-file-upload/index.stories.js.map +1 -1
  119. package/dist/collection/components/index.js.map +1 -1
  120. package/dist/collection/components/list/z-list/index.js.map +1 -1
  121. package/dist/collection/components/list/z-list/index.stories.js.map +1 -1
  122. package/dist/collection/components/list/z-list-element/index.js.map +1 -1
  123. package/dist/collection/components/list/z-list-element/index.stories.js.map +1 -1
  124. package/dist/collection/components/list/z-list-group/index.js.map +1 -1
  125. package/dist/collection/components/list/z-list-group/index.stories.js.map +1 -1
  126. package/dist/collection/components/table/cells/z-td/index.js.map +1 -1
  127. package/dist/collection/components/table/cells/z-th/index.js.map +1 -1
  128. package/dist/collection/components/table/z-table/index.js.map +1 -1
  129. package/dist/collection/components/table/z-table/index.stories.js.map +1 -1
  130. package/dist/collection/components/table/z-tbody/index.js.map +1 -1
  131. package/dist/collection/components/table/z-tfoot/index.js.map +1 -1
  132. package/dist/collection/components/table/z-thead/index.js.map +1 -1
  133. package/dist/collection/components/table/z-tr/index.js.map +1 -1
  134. package/dist/collection/components/z-accordion/index.js.map +1 -1
  135. package/dist/collection/components/z-accordion/index.stories.js.map +1 -1
  136. package/dist/collection/components/z-anchor-navigation/index.js.map +1 -1
  137. package/dist/collection/components/z-anchor-navigation/index.stories.js.map +1 -1
  138. package/dist/collection/components/z-app-header/index.js +149 -206
  139. package/dist/collection/components/z-app-header/index.js.map +1 -1
  140. package/dist/collection/components/z-app-header/index.stories.js +12 -28
  141. package/dist/collection/components/z-app-header/index.stories.js.map +1 -1
  142. package/dist/collection/components/z-app-header/styles.css +95 -121
  143. package/dist/collection/components/z-aria-alert/index.js +1 -1
  144. package/dist/collection/components/z-aria-alert/index.js.map +1 -1
  145. package/dist/collection/components/z-aria-alert/index.stories.js.map +1 -1
  146. package/dist/collection/components/z-avatar/index.js +2 -2
  147. package/dist/collection/components/z-avatar/index.js.map +1 -1
  148. package/dist/collection/components/z-avatar/index.stories.js.map +1 -1
  149. package/dist/collection/components/z-book-card/index.js +3 -3
  150. package/dist/collection/components/z-book-card/index.js.map +1 -1
  151. package/dist/collection/components/z-book-card/index.stories.js.map +1 -1
  152. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  153. package/dist/collection/components/z-breadcrumb/index.js.map +1 -1
  154. package/dist/collection/components/z-breadcrumb/index.stories.js.map +1 -1
  155. package/dist/collection/components/z-button/index.js.map +1 -1
  156. package/dist/collection/components/z-button/index.stories.js.map +1 -1
  157. package/dist/collection/components/z-button-sort/index.js +3 -3
  158. package/dist/collection/components/z-button-sort/index.js.map +1 -1
  159. package/dist/collection/components/z-button-sort/index.stories.js.map +1 -1
  160. package/dist/collection/components/z-card/index.js.map +1 -1
  161. package/dist/collection/components/z-card/index.stories.js.map +1 -1
  162. package/dist/collection/components/z-carousel/index.js.map +1 -1
  163. package/dist/collection/components/z-carousel/index.stories.js.map +1 -1
  164. package/dist/collection/components/z-chip/index.js +2 -2
  165. package/dist/collection/components/z-chip/index.js.map +1 -1
  166. package/dist/collection/components/z-chip/index.stories.js.map +1 -1
  167. package/dist/collection/components/z-combobox/index.js +1 -1
  168. package/dist/collection/components/z-combobox/index.js.map +1 -1
  169. package/dist/collection/components/z-combobox/index.stories.js.map +1 -1
  170. package/dist/collection/components/z-combobox/styles.css +6 -4
  171. package/dist/collection/components/z-cover-hero/index.js +2 -2
  172. package/dist/collection/components/z-cover-hero/index.js.map +1 -1
  173. package/dist/collection/components/z-cover-hero/index.stories.js.map +1 -1
  174. package/dist/collection/components/z-divider/index.js +1 -1
  175. package/dist/collection/components/z-divider/index.js.map +1 -1
  176. package/dist/collection/components/z-divider/index.stories.js.map +1 -1
  177. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  178. package/dist/collection/components/z-ghost-loading/index.js.map +1 -1
  179. package/dist/collection/components/z-ghost-loading/index.stories.js.map +1 -1
  180. package/dist/collection/components/z-icon/index.js.map +1 -1
  181. package/dist/collection/components/z-icon/index.stories.js.map +1 -1
  182. package/dist/collection/components/z-info-box/index.js +1 -1
  183. package/dist/collection/components/z-info-box/index.js.map +1 -1
  184. package/dist/collection/components/z-info-box/index.stories.js.map +1 -1
  185. package/dist/collection/components/z-info-reveal/index.js +1 -1
  186. package/dist/collection/components/z-info-reveal/index.js.map +1 -1
  187. package/dist/collection/components/z-info-reveal/index.stories.js.map +1 -1
  188. package/dist/collection/components/z-input/index.js +1 -1
  189. package/dist/collection/components/z-input/index.js.map +1 -1
  190. package/dist/collection/components/z-input/index.stories.js.map +1 -1
  191. package/dist/collection/components/z-input-message/index.js +1 -1
  192. package/dist/collection/components/z-input-message/index.js.map +1 -1
  193. package/dist/collection/components/z-input-message/index.stories.js.map +1 -1
  194. package/dist/collection/components/z-logo/index.js +1 -1
  195. package/dist/collection/components/z-logo/index.js.map +1 -1
  196. package/dist/collection/components/z-logo/index.stories.js.map +1 -1
  197. package/dist/collection/components/z-menu/index.js +269 -171
  198. package/dist/collection/components/z-menu/index.js.map +1 -1
  199. package/dist/collection/components/z-menu/index.stories.js +2 -8
  200. package/dist/collection/components/z-menu/index.stories.js.map +1 -1
  201. package/dist/collection/components/z-menu/styles.css +38 -46
  202. package/dist/collection/components/z-menu-section/index.js +216 -121
  203. package/dist/collection/components/z-menu-section/index.js.map +1 -1
  204. package/dist/collection/components/z-menu-section/index.stories.js.map +1 -1
  205. package/dist/collection/components/z-menu-section/styles.css +32 -27
  206. package/dist/collection/components/z-modal/index.js +6 -6
  207. package/dist/collection/components/z-modal/index.js.map +1 -1
  208. package/dist/collection/components/z-modal/index.stories.js.map +1 -1
  209. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  210. package/dist/collection/components/z-navigation-tabs/index.js.map +1 -1
  211. package/dist/collection/components/z-navigation-tabs/index.stories.js.map +1 -1
  212. package/dist/collection/components/z-notification/index.js +1 -1
  213. package/dist/collection/components/z-notification/index.js.map +1 -1
  214. package/dist/collection/components/z-notification/index.stories.js.map +1 -1
  215. package/dist/collection/components/z-offcanvas/index.js +1 -1
  216. package/dist/collection/components/z-offcanvas/index.js.map +1 -1
  217. package/dist/collection/components/z-offcanvas/index.stories.js.map +1 -1
  218. package/dist/collection/components/z-pagination/index.js.map +1 -1
  219. package/dist/collection/components/z-pagination/index.stories.js.map +1 -1
  220. package/dist/collection/components/z-panel-elem/index.js +2 -2
  221. package/dist/collection/components/z-panel-elem/index.js.map +1 -1
  222. package/dist/collection/components/z-panel-elem/index.stories.js.map +1 -1
  223. package/dist/collection/components/z-popover/index.js +1 -1
  224. package/dist/collection/components/z-popover/index.js.map +1 -1
  225. package/dist/collection/components/z-popover/index.stories.js.map +1 -1
  226. package/dist/collection/components/z-searchbar/index.js +4 -3
  227. package/dist/collection/components/z-searchbar/index.js.map +1 -1
  228. package/dist/collection/components/z-searchbar/index.stories.js.map +1 -1
  229. package/dist/collection/components/z-section-title/index.js +1 -1
  230. package/dist/collection/components/z-section-title/index.js.map +1 -1
  231. package/dist/collection/components/z-section-title/index.stories.js.map +1 -1
  232. package/dist/collection/components/z-select/index.js +1 -1
  233. package/dist/collection/components/z-select/index.js.map +1 -1
  234. package/dist/collection/components/z-select/index.stories.js.map +1 -1
  235. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  236. package/dist/collection/components/z-skip-to-content/index.js.map +1 -1
  237. package/dist/collection/components/z-skip-to-content/index.stories.js.map +1 -1
  238. package/dist/collection/components/z-stepper/index.js +1 -1
  239. package/dist/collection/components/z-stepper/index.js.map +1 -1
  240. package/dist/collection/components/z-stepper/index.stories.js.map +1 -1
  241. package/dist/collection/components/z-stepper-item/index.js +1 -1
  242. package/dist/collection/components/z-stepper-item/index.js.map +1 -1
  243. package/dist/collection/components/z-stepper-item/index.stories.js.map +1 -1
  244. package/dist/collection/components/z-tag/index.js.map +1 -1
  245. package/dist/collection/components/z-tag/index.stories.js.map +1 -1
  246. package/dist/collection/components/z-toast-notification/index.js +3 -3
  247. package/dist/collection/components/z-toast-notification/index.js.map +1 -1
  248. package/dist/collection/components/z-toast-notification/index.stories.js.map +1 -1
  249. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  250. package/dist/collection/components/z-toast-notification-list/index.js.map +1 -1
  251. package/dist/collection/components/z-toast-notification-list/index.stories.js.map +1 -1
  252. package/dist/collection/components/z-toggle-button/index.js +2 -2
  253. package/dist/collection/components/z-toggle-button/index.js.map +1 -1
  254. package/dist/collection/components/z-toggle-button/index.stories.js.map +1 -1
  255. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  256. package/dist/collection/components/z-toggle-switch/index.js.map +1 -1
  257. package/dist/collection/components/z-toggle-switch/index.stories.js.map +1 -1
  258. package/dist/collection/components/z-tooltip/index.js +1 -1
  259. package/dist/collection/components/z-tooltip/index.js.map +1 -1
  260. package/dist/collection/components/z-tooltip/index.stories.js.map +1 -1
  261. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  262. package/dist/collection/components/z-visually-hidden/index.js.map +1 -1
  263. package/dist/collection/components/z-visually-hidden/index.stories.js.map +1 -1
  264. package/dist/collection/constants/breakpoints.js +7 -4
  265. package/dist/collection/constants/breakpoints.js.map +1 -1
  266. package/dist/collection/constants/icons.js.map +1 -1
  267. package/dist/collection/constants/iconset.js.map +1 -1
  268. package/dist/collection/index.js.map +1 -1
  269. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  270. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -1
  271. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  272. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -1
  273. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  274. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -1
  275. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  276. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -1
  277. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  278. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -1
  279. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  280. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -1
  281. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  282. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -1
  283. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  284. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -1
  285. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  286. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -1
  287. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  288. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -1
  289. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  290. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -1
  291. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  292. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -1
  293. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  294. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -1
  295. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  296. package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -1
  297. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  298. package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -1
  299. package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -1
  300. package/dist/collection/utils/storybook-utils.js.map +1 -1
  301. package/dist/collection/utils/utils.js +17 -7
  302. package/dist/collection/utils/utils.js.map +1 -1
  303. package/dist/components/breakpoints.js +8 -4
  304. package/dist/components/breakpoints.js.map +1 -1
  305. package/dist/components/index10.js +1 -1
  306. package/dist/components/index11.js +1 -1
  307. package/dist/components/index15.js +6 -6
  308. package/dist/components/index15.js.map +1 -1
  309. package/dist/components/index16.js +1 -1
  310. package/dist/components/index17.js +1 -1
  311. package/dist/components/index18.js +1 -1
  312. package/dist/components/index19.js +1 -1
  313. package/dist/components/index20.js +1 -1
  314. package/dist/components/index21.js +1 -1
  315. package/dist/components/index22.js +1 -1
  316. package/dist/components/index23.js +5 -4
  317. package/dist/components/index23.js.map +1 -1
  318. package/dist/components/index3.js +1 -1
  319. package/dist/components/index5.js +2 -2
  320. package/dist/components/index6.js +1 -1
  321. package/dist/components/index8.js +1 -1
  322. package/dist/components/utils.js +18 -5
  323. package/dist/components/utils.js.map +1 -1
  324. package/dist/components/z-app-header-deprecated.js +1 -1
  325. package/dist/components/z-app-header-deprecated.js.map +1 -1
  326. package/dist/components/z-app-header.js +144 -207
  327. package/dist/components/z-app-header.js.map +1 -1
  328. package/dist/components/z-aria-alert.js +1 -1
  329. package/dist/components/z-avatar.js +2 -2
  330. package/dist/components/z-book-card.js +3 -3
  331. package/dist/components/z-book-card.js.map +1 -1
  332. package/dist/components/z-breadcrumb.js +2 -2
  333. package/dist/components/z-button-sort.js +3 -3
  334. package/dist/components/z-button-sort.js.map +1 -1
  335. package/dist/components/z-combobox.js +2 -2
  336. package/dist/components/z-combobox.js.map +1 -1
  337. package/dist/components/z-cover-hero.js +2 -2
  338. package/dist/components/z-file.js +3 -3
  339. package/dist/components/z-file.js.map +1 -1
  340. package/dist/components/z-info-box.js +1 -1
  341. package/dist/components/z-info-reveal.js +1 -1
  342. package/dist/components/z-logo.js +1 -1
  343. package/dist/components/z-menu-section.js +151 -115
  344. package/dist/components/z-menu-section.js.map +1 -1
  345. package/dist/components/z-menu.js +218 -166
  346. package/dist/components/z-menu.js.map +1 -1
  347. package/dist/components/z-myz-card-alert.js +1 -1
  348. package/dist/components/z-myz-card-dictionary.js +1 -1
  349. package/dist/components/z-myz-card-footer-sections.js +1 -1
  350. package/dist/components/z-myz-card-footer.js +1 -1
  351. package/dist/components/z-myz-card-icon.js +1 -1
  352. package/dist/components/z-myz-card-info.js +1 -1
  353. package/dist/components/z-myz-card-list.js +1 -1
  354. package/dist/components/z-myz-list.js +1 -1
  355. package/dist/components/z-navigation-tabs.js +2 -2
  356. package/dist/components/z-notification.js +1 -1
  357. package/dist/components/z-otp.js +2 -2
  358. package/dist/components/z-panel-elem.js +2 -2
  359. package/dist/components/z-section-title.js +1 -1
  360. package/dist/components/z-select.js +2 -2
  361. package/dist/components/z-skip-to-content.js +2 -2
  362. package/dist/components/z-slideshow.js +1 -1
  363. package/dist/components/z-stepper-item.js +1 -1
  364. package/dist/components/z-stepper.js +1 -1
  365. package/dist/components/z-table.js +1 -0
  366. package/dist/components/z-table.js.map +1 -1
  367. package/dist/components/z-toast-notification-list.js +1 -1
  368. package/dist/components/z-toast-notification.js +3 -3
  369. package/dist/components/z-toast-notification.js.map +1 -1
  370. package/dist/components/z-toggle-button.js +2 -2
  371. package/dist/components/z-toggle-switch.js +3 -3
  372. package/dist/components/z-tooltip.js +1 -1
  373. package/dist/components/z-visually-hidden.js +1 -1
  374. package/dist/esm/breakpoints-d148bfde.js +11 -0
  375. package/dist/esm/breakpoints-d148bfde.js.map +1 -0
  376. package/dist/esm/{index-175661e6.js → index-36f0f6c0.js} +2 -2
  377. package/dist/esm/{index-175661e6.js.map → index-36f0f6c0.js.map} +1 -1
  378. package/dist/esm/{index-fd7edd22.js → index-66bd56db.js} +5 -5
  379. package/dist/esm/{index-fd7edd22.js.map → index-66bd56db.js.map} +1 -1
  380. package/dist/esm/{index-7a28ff39.js → index-89520805.js} +2 -2
  381. package/dist/esm/{index-7a28ff39.js.map → index-89520805.js.map} +1 -1
  382. package/dist/esm/{index-a2130b6a.js → index-c8ceadeb.js} +2167 -2127
  383. package/dist/esm/index-c8ceadeb.js.map +1 -0
  384. package/dist/esm/{index-230d44a5.js → index-cddfba10.js} +2 -2
  385. package/dist/esm/{index-230d44a5.js.map → index-cddfba10.js.map} +1 -1
  386. package/dist/esm/{index-a81f1558.js → index-dfddeb25.js} +2 -2
  387. package/dist/esm/{index-a81f1558.js.map → index-dfddeb25.js.map} +1 -1
  388. package/dist/esm/{index-b556b384.js → index-e70be23f.js} +2 -2
  389. package/dist/esm/{index-b556b384.js.map → index-e70be23f.js.map} +1 -1
  390. package/dist/esm/index.js +2 -2
  391. package/dist/esm/loader.js +3 -3
  392. package/dist/esm/{utils-8ade9e2d.js → utils-acc8bdd0.js} +19 -6
  393. package/dist/esm/utils-acc8bdd0.js.map +1 -0
  394. package/dist/esm/web-components-library.js +4 -4
  395. package/dist/esm/web-components-library.js.map +1 -1
  396. package/dist/esm/z-accordion.entry.js +1 -1
  397. package/dist/esm/z-alert.entry.js +2 -2
  398. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  399. package/dist/esm/z-app-header-deprecated.entry.js +2 -2
  400. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -1
  401. package/dist/esm/z-app-header_12.entry.js +145 -209
  402. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  403. package/dist/esm/z-aria-alert.entry.js +2 -2
  404. package/dist/esm/z-avatar.entry.js +3 -3
  405. package/dist/esm/z-book-card.entry.js +5 -5
  406. package/dist/esm/z-book-card.entry.js.map +1 -1
  407. package/dist/esm/z-breadcrumb.entry.js +5 -5
  408. package/dist/esm/z-button-sort.entry.js +4 -4
  409. package/dist/esm/z-button-sort.entry.js.map +1 -1
  410. package/dist/esm/z-card.entry.js +1 -1
  411. package/dist/esm/z-carousel.entry.js +1 -1
  412. package/dist/esm/z-chip.entry.js +3 -3
  413. package/dist/esm/z-combobox.entry.js +5 -5
  414. package/dist/esm/z-combobox.entry.js.map +1 -1
  415. package/dist/esm/z-cover-hero.entry.js +3 -3
  416. package/dist/esm/z-date-picker.entry.js +1 -1
  417. package/dist/esm/z-dragdrop-area_2.entry.js +7 -7
  418. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
  419. package/dist/esm/z-file-upload.entry.js +3 -3
  420. package/dist/esm/z-file.entry.js +4 -4
  421. package/dist/esm/z-file.entry.js.map +1 -1
  422. package/dist/esm/z-ghost-loading.entry.js +2 -2
  423. package/dist/esm/z-info-box.entry.js +2 -2
  424. package/dist/esm/z-info-reveal.entry.js +2 -2
  425. package/dist/esm/z-logo.entry.js +2 -2
  426. package/dist/esm/z-menu-deprecated.entry.js +1 -1
  427. package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
  428. package/dist/esm/z-menu-section.entry.js +140 -111
  429. package/dist/esm/z-menu-section.entry.js.map +1 -1
  430. package/dist/esm/z-menu.entry.js +210 -162
  431. package/dist/esm/z-menu.entry.js.map +1 -1
  432. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  433. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  434. package/dist/esm/z-myz-card-footer-sections.entry.js +2 -2
  435. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  436. package/dist/esm/z-myz-card-icon.entry.js +2 -2
  437. package/dist/esm/z-myz-card-info.entry.js +4 -4
  438. package/dist/esm/z-myz-card-list.entry.js +2 -2
  439. package/dist/esm/z-myz-card_4.entry.js +5 -5
  440. package/dist/esm/z-myz-list-item.entry.js +4 -4
  441. package/dist/esm/z-myz-list.entry.js +2 -2
  442. package/dist/esm/z-navigation-tabs.entry.js +3 -3
  443. package/dist/esm/z-notification.entry.js +2 -2
  444. package/dist/esm/z-otp.entry.js +3 -3
  445. package/dist/esm/z-pagination.entry.js +1 -1
  446. package/dist/esm/z-panel-elem.entry.js +3 -3
  447. package/dist/esm/z-popover.entry.js +2 -2
  448. package/dist/esm/z-range-picker.entry.js +1 -1
  449. package/dist/esm/z-section-title.entry.js +2 -2
  450. package/dist/esm/z-select.entry.js +4 -4
  451. package/dist/esm/z-skip-to-content.entry.js +4 -4
  452. package/dist/esm/z-slideshow.entry.js +3 -3
  453. package/dist/esm/z-stepper-item.entry.js +2 -2
  454. package/dist/esm/z-stepper.entry.js +2 -2
  455. package/dist/esm/z-table.entry.js +9 -9
  456. package/dist/esm/z-tbody.entry.js +2 -2
  457. package/dist/esm/z-td.entry.js +2 -2
  458. package/dist/esm/z-tfoot.entry.js +2 -2
  459. package/dist/esm/z-th.entry.js +2 -2
  460. package/dist/esm/z-thead.entry.js +2 -2
  461. package/dist/esm/z-toast-notification-list.entry.js +2 -2
  462. package/dist/esm/z-toast-notification.entry.js +4 -4
  463. package/dist/esm/z-toast-notification.entry.js.map +1 -1
  464. package/dist/esm/z-toggle-button.entry.js +3 -3
  465. package/dist/esm/z-toggle-switch.entry.js +6 -6
  466. package/dist/esm/z-tooltip.entry.js +2 -2
  467. package/dist/esm/z-tr.entry.js +6 -6
  468. package/dist/esm/z-visually-hidden.entry.js +2 -2
  469. package/dist/types/components/deprecated/z-app-header-deprecated/index.stories.d.ts +3 -3
  470. package/dist/types/components/list/z-list-group/index.stories.d.ts +1 -1
  471. package/dist/types/components/z-app-header/index.d.ts +23 -30
  472. package/dist/types/components/z-app-header/index.stories.d.ts +2 -5
  473. package/dist/types/components/z-book-card/index.stories.d.ts +2 -2
  474. package/dist/types/components/z-carousel/index.stories.d.ts +1 -1
  475. package/dist/types/components/z-cover-hero/index.stories.d.ts +1 -1
  476. package/dist/types/components/z-menu/index.d.ts +34 -26
  477. package/dist/types/components/z-menu/index.stories.d.ts +1 -2
  478. package/dist/types/components/z-menu-section/index.d.ts +28 -18
  479. package/dist/types/components/z-modal/index.stories.d.ts +1 -1
  480. package/dist/types/components/z-navigation-tabs/index.stories.d.ts +2 -2
  481. package/dist/types/components/z-popover/index.stories.d.ts +2 -2
  482. package/dist/types/components/z-section-title/index.stories.d.ts +1 -1
  483. package/dist/types/components/z-tag/index.stories.d.ts +2 -2
  484. package/dist/types/components/z-tooltip/index.stories.d.ts +1 -1
  485. package/dist/types/components.d.ts +48 -8
  486. package/dist/types/constants/breakpoints.d.ts +6 -4
  487. package/dist/types/stencil-public-runtime.d.ts +0 -2
  488. package/dist/types/utils/utils.d.ts +10 -1
  489. package/dist/web-components-library/index.esm.js +1 -1
  490. package/dist/web-components-library/p-04c39e8a.entry.js +2 -0
  491. package/dist/web-components-library/p-04c39e8a.entry.js.map +1 -0
  492. package/dist/web-components-library/p-0542a3c9.entry.js +2 -0
  493. package/dist/web-components-library/p-0542a3c9.entry.js.map +1 -0
  494. package/dist/web-components-library/{p-6319b5e2.entry.js → p-06d98334.entry.js} +2 -2
  495. package/dist/web-components-library/{p-2672e36f.entry.js → p-100c6243.entry.js} +2 -2
  496. package/dist/web-components-library/p-16d625b3.entry.js +2 -0
  497. package/dist/web-components-library/p-16d625b3.entry.js.map +1 -0
  498. package/{www/build/p-28928bb6.entry.js → dist/web-components-library/p-1896cc54.entry.js} +2 -2
  499. package/{www/build/p-19f8c3d2.entry.js → dist/web-components-library/p-1cc37aa7.entry.js} +2 -2
  500. package/{www/build/p-c0bdbfb5.entry.js → dist/web-components-library/p-273f3c53.entry.js} +2 -2
  501. package/dist/web-components-library/{p-4f7dd068.entry.js → p-28018cd3.entry.js} +2 -2
  502. package/{www/build/p-12d62027.entry.js → dist/web-components-library/p-296924ea.entry.js} +2 -2
  503. package/dist/web-components-library/p-2b1fd95a.entry.js +2 -0
  504. package/dist/web-components-library/{p-99b791d1.entry.js → p-2e432a39.entry.js} +2 -2
  505. package/dist/web-components-library/{p-af856537.entry.js → p-2f662fea.entry.js} +2 -2
  506. package/dist/web-components-library/{p-8a10fec5.entry.js → p-38d5e74f.entry.js} +2 -2
  507. package/dist/web-components-library/p-3ae8fb1a.entry.js +2 -0
  508. package/dist/web-components-library/{p-304eeab0.js → p-3dbad75e.js} +2 -2
  509. package/{www/build/p-be4878f2.entry.js → dist/web-components-library/p-4537f922.entry.js} +2 -2
  510. package/dist/web-components-library/{p-91c04edc.entry.js → p-45dc157c.entry.js} +2 -2
  511. package/dist/web-components-library/{p-e366782c.entry.js → p-46d98609.entry.js} +2 -2
  512. package/{www/build/p-7d7c5344.js → dist/web-components-library/p-4a2e0034.js} +2 -2
  513. package/dist/web-components-library/p-4f3f8578.entry.js +2 -0
  514. package/dist/web-components-library/p-5145a606.js +2 -0
  515. package/dist/web-components-library/p-5145a606.js.map +1 -0
  516. package/{www/build/p-e5dc0719.entry.js → dist/web-components-library/p-51f1c9c0.entry.js} +2 -2
  517. package/{www/build/p-e1852de3.entry.js → dist/web-components-library/p-5a0f0978.entry.js} +2 -2
  518. package/dist/web-components-library/{p-6586441a.entry.js → p-5a178c69.entry.js} +3 -3
  519. package/dist/web-components-library/p-5a178c69.entry.js.map +1 -0
  520. package/dist/web-components-library/{p-cf2640b0.entry.js → p-608c35ba.entry.js} +2 -2
  521. package/{www/build/p-cf2640b0.entry.js.map → dist/web-components-library/p-608c35ba.entry.js.map} +1 -1
  522. package/dist/web-components-library/{p-26b5c84d.js → p-60f410df.js} +2 -2
  523. package/dist/web-components-library/p-63ec7bad.entry.js +2 -0
  524. package/dist/web-components-library/p-64364cbf.entry.js +2 -0
  525. package/dist/web-components-library/p-64364cbf.entry.js.map +1 -0
  526. package/dist/web-components-library/p-64aab82f.js +2 -0
  527. package/dist/web-components-library/p-67e5e8ed.js +2 -0
  528. package/dist/web-components-library/p-67e5e8ed.js.map +1 -0
  529. package/dist/web-components-library/{p-57eee056.entry.js → p-68f4fbc8.entry.js} +2 -2
  530. package/dist/web-components-library/{p-f21bc3a9.entry.js → p-6a1b3e86.entry.js} +2 -2
  531. package/dist/web-components-library/{p-05e9ae1e.entry.js → p-6db2fd46.entry.js} +2 -2
  532. package/{www/build/p-83350b5f.entry.js → dist/web-components-library/p-707e5f91.entry.js} +2 -2
  533. package/dist/web-components-library/p-75c4a726.js +3 -0
  534. package/dist/web-components-library/p-75c4a726.js.map +1 -0
  535. package/{www/build/p-85f84e55.entry.js → dist/web-components-library/p-777ad335.entry.js} +2 -2
  536. package/dist/web-components-library/p-777ad335.entry.js.map +1 -0
  537. package/{www/build/p-b84fa3b6.entry.js → dist/web-components-library/p-7aba5af3.entry.js} +2 -2
  538. package/dist/web-components-library/p-7d5bf905.entry.js +2 -0
  539. package/dist/web-components-library/{p-324ef970.entry.js → p-820b48f6.entry.js} +2 -2
  540. package/dist/web-components-library/p-823c45d4.entry.js +2 -0
  541. package/{www/build/p-8c9f7cef.entry.js → dist/web-components-library/p-855334f4.entry.js} +2 -2
  542. package/dist/web-components-library/{p-aa0f083b.js → p-8a6a4d22.js} +2 -2
  543. package/{www/build/p-8b309268.entry.js → dist/web-components-library/p-8d56e74b.entry.js} +2 -2
  544. package/dist/web-components-library/p-8d56e74b.entry.js.map +1 -0
  545. package/dist/web-components-library/{p-d9e1d8c7.js → p-95cb8701.js} +2 -2
  546. package/dist/web-components-library/p-9a1b51ed.entry.js +2 -0
  547. package/{www/build/p-ad76b8ff.entry.js.map → dist/web-components-library/p-9a1b51ed.entry.js.map} +1 -1
  548. package/dist/web-components-library/{p-4552744b.entry.js → p-9b9a04ad.entry.js} +2 -2
  549. package/dist/web-components-library/{p-77d8ad7e.entry.js → p-a0fd1323.entry.js} +2 -2
  550. package/dist/web-components-library/p-a64a1bf0.entry.js +2 -0
  551. package/dist/web-components-library/p-a64a1bf0.entry.js.map +1 -0
  552. package/dist/web-components-library/p-aaae6b16.entry.js +2 -0
  553. package/dist/web-components-library/{p-97b0c3b3.entry.js.map → p-aaae6b16.entry.js.map} +1 -1
  554. package/dist/web-components-library/p-ab7f129e.entry.js +2 -0
  555. package/dist/web-components-library/{p-6f4dd02b.entry.js.map → p-ab7f129e.entry.js.map} +1 -1
  556. package/{www/build/p-088a31dc.entry.js → dist/web-components-library/p-acd911aa.entry.js} +2 -2
  557. package/{www/build/p-a4ada10b.entry.js → dist/web-components-library/p-ad97fdc4.entry.js} +2 -2
  558. package/dist/web-components-library/{p-57ecb5a7.entry.js → p-b2356bc7.entry.js} +2 -2
  559. package/dist/web-components-library/p-c1e498ac.entry.js +2 -0
  560. package/dist/web-components-library/{p-a5781264.entry.js → p-c54d0925.entry.js} +2 -2
  561. package/dist/web-components-library/p-c679277c.entry.js +2 -0
  562. package/{www/build/p-df05727f.entry.js.map → dist/web-components-library/p-c679277c.entry.js.map} +1 -1
  563. package/dist/web-components-library/p-cc71a90c.entry.js +2 -0
  564. package/{www/build/p-c90249e5.entry.js → dist/web-components-library/p-cd0219b4.entry.js} +2 -2
  565. package/{www/build/p-6a664748.entry.js → dist/web-components-library/p-d5f5e107.entry.js} +2 -2
  566. package/dist/web-components-library/p-d5f5e107.entry.js.map +1 -0
  567. package/dist/web-components-library/{p-88e756cd.entry.js → p-da7200c2.entry.js} +2 -2
  568. package/{www/build/p-ae96bc09.entry.js → dist/web-components-library/p-df8c381a.entry.js} +2 -2
  569. package/dist/web-components-library/{p-3b266de4.entry.js → p-df9c3674.entry.js} +2 -2
  570. package/dist/web-components-library/{p-609c11d6.entry.js → p-e25d7f0a.entry.js} +2 -2
  571. package/dist/web-components-library/{p-33eea921.entry.js → p-e4d97fbf.entry.js} +2 -2
  572. package/dist/web-components-library/{p-f74f9f3c.entry.js → p-e529a714.entry.js} +2 -2
  573. package/dist/web-components-library/{p-21b85c7f.entry.js → p-ea9c0ff3.entry.js} +2 -2
  574. package/dist/web-components-library/{p-2a7e4988.entry.js → p-f06ad42c.entry.js} +2 -2
  575. package/dist/web-components-library/{p-8499a29d.entry.js → p-f15d0a00.entry.js} +2 -2
  576. package/{www/build/p-63e970ee.entry.js → dist/web-components-library/p-f425c6f2.entry.js} +2 -2
  577. package/dist/web-components-library/p-f703660d.entry.js +2 -0
  578. package/{www/build/p-49e4ce84.entry.js → dist/web-components-library/p-f8bbca6e.entry.js} +2 -2
  579. package/dist/web-components-library/web-components-library.esm.js +1 -1
  580. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  581. package/loader/index.d.ts +3 -0
  582. package/package.json +16 -18
  583. package/www/build/index.esm.js +1 -1
  584. package/www/build/p-04c39e8a.entry.js +2 -0
  585. package/www/build/p-04c39e8a.entry.js.map +1 -0
  586. package/www/build/p-0542a3c9.entry.js +2 -0
  587. package/www/build/p-0542a3c9.entry.js.map +1 -0
  588. package/www/build/{p-6319b5e2.entry.js → p-06d98334.entry.js} +2 -2
  589. package/www/build/{p-2672e36f.entry.js → p-100c6243.entry.js} +2 -2
  590. package/www/build/p-16d625b3.entry.js +2 -0
  591. package/www/build/p-16d625b3.entry.js.map +1 -0
  592. package/{dist/web-components-library/p-28928bb6.entry.js → www/build/p-1896cc54.entry.js} +2 -2
  593. package/{dist/web-components-library/p-19f8c3d2.entry.js → www/build/p-1cc37aa7.entry.js} +2 -2
  594. package/{dist/web-components-library/p-c0bdbfb5.entry.js → www/build/p-273f3c53.entry.js} +2 -2
  595. package/www/build/{p-4f7dd068.entry.js → p-28018cd3.entry.js} +2 -2
  596. package/{dist/web-components-library/p-12d62027.entry.js → www/build/p-296924ea.entry.js} +2 -2
  597. package/www/build/p-2b1fd95a.entry.js +2 -0
  598. package/www/build/{p-99b791d1.entry.js → p-2e432a39.entry.js} +2 -2
  599. package/www/build/{p-af856537.entry.js → p-2f662fea.entry.js} +2 -2
  600. package/www/build/{p-8a10fec5.entry.js → p-38d5e74f.entry.js} +2 -2
  601. package/www/build/p-3ae8fb1a.entry.js +2 -0
  602. package/www/build/{p-304eeab0.js → p-3dbad75e.js} +2 -2
  603. package/{dist/web-components-library/p-be4878f2.entry.js → www/build/p-4537f922.entry.js} +2 -2
  604. package/www/build/{p-91c04edc.entry.js → p-45dc157c.entry.js} +2 -2
  605. package/www/build/{p-e366782c.entry.js → p-46d98609.entry.js} +2 -2
  606. package/{dist/web-components-library/p-7d7c5344.js → www/build/p-4a2e0034.js} +2 -2
  607. package/www/build/p-4f3f8578.entry.js +2 -0
  608. package/www/build/p-5145a606.js +2 -0
  609. package/www/build/p-5145a606.js.map +1 -0
  610. package/{dist/web-components-library/p-e5dc0719.entry.js → www/build/p-51f1c9c0.entry.js} +2 -2
  611. package/{dist/web-components-library/p-e1852de3.entry.js → www/build/p-5a0f0978.entry.js} +2 -2
  612. package/www/build/{p-6586441a.entry.js → p-5a178c69.entry.js} +3 -3
  613. package/www/build/p-5a178c69.entry.js.map +1 -0
  614. package/www/build/{p-cf2640b0.entry.js → p-608c35ba.entry.js} +2 -2
  615. package/{dist/web-components-library/p-cf2640b0.entry.js.map → www/build/p-608c35ba.entry.js.map} +1 -1
  616. package/www/build/{p-26b5c84d.js → p-60f410df.js} +2 -2
  617. package/www/build/p-63ec7bad.entry.js +2 -0
  618. package/www/build/p-64364cbf.entry.js +2 -0
  619. package/www/build/p-64364cbf.entry.js.map +1 -0
  620. package/www/build/p-64aab82f.js +2 -0
  621. package/www/build/p-67e5e8ed.js +2 -0
  622. package/www/build/p-67e5e8ed.js.map +1 -0
  623. package/www/build/{p-57eee056.entry.js → p-68f4fbc8.entry.js} +2 -2
  624. package/www/build/{p-f21bc3a9.entry.js → p-6a1b3e86.entry.js} +2 -2
  625. package/www/build/{p-05e9ae1e.entry.js → p-6db2fd46.entry.js} +2 -2
  626. package/{dist/web-components-library/p-83350b5f.entry.js → www/build/p-707e5f91.entry.js} +2 -2
  627. package/www/build/p-75c4a726.js +3 -0
  628. package/www/build/p-75c4a726.js.map +1 -0
  629. package/{dist/web-components-library/p-85f84e55.entry.js → www/build/p-777ad335.entry.js} +2 -2
  630. package/www/build/p-777ad335.entry.js.map +1 -0
  631. package/{dist/web-components-library/p-b84fa3b6.entry.js → www/build/p-7aba5af3.entry.js} +2 -2
  632. package/www/build/p-7d5bf905.entry.js +2 -0
  633. package/www/build/{p-324ef970.entry.js → p-820b48f6.entry.js} +2 -2
  634. package/www/build/p-823c45d4.entry.js +2 -0
  635. package/{dist/web-components-library/p-8c9f7cef.entry.js → www/build/p-855334f4.entry.js} +2 -2
  636. package/www/build/{p-aa0f083b.js → p-8a6a4d22.js} +2 -2
  637. package/{dist/web-components-library/p-8b309268.entry.js → www/build/p-8d56e74b.entry.js} +2 -2
  638. package/www/build/p-8d56e74b.entry.js.map +1 -0
  639. package/www/build/{p-d9e1d8c7.js → p-95cb8701.js} +2 -2
  640. package/www/build/p-9a1b51ed.entry.js +2 -0
  641. package/{dist/web-components-library/p-ad76b8ff.entry.js.map → www/build/p-9a1b51ed.entry.js.map} +1 -1
  642. package/www/build/{p-4552744b.entry.js → p-9b9a04ad.entry.js} +2 -2
  643. package/www/build/{p-77d8ad7e.entry.js → p-a0fd1323.entry.js} +2 -2
  644. package/www/build/p-a64a1bf0.entry.js +2 -0
  645. package/www/build/p-a64a1bf0.entry.js.map +1 -0
  646. package/www/build/p-aaae6b16.entry.js +2 -0
  647. package/www/build/{p-97b0c3b3.entry.js.map → p-aaae6b16.entry.js.map} +1 -1
  648. package/www/build/p-ab7f129e.entry.js +2 -0
  649. package/www/build/{p-6f4dd02b.entry.js.map → p-ab7f129e.entry.js.map} +1 -1
  650. package/{dist/web-components-library/p-088a31dc.entry.js → www/build/p-acd911aa.entry.js} +2 -2
  651. package/{dist/web-components-library/p-a4ada10b.entry.js → www/build/p-ad97fdc4.entry.js} +2 -2
  652. package/www/build/p-ae5cec65.js +2 -0
  653. package/www/build/{p-57ecb5a7.entry.js → p-b2356bc7.entry.js} +2 -2
  654. package/www/build/p-c1e498ac.entry.js +2 -0
  655. package/www/build/{p-a5781264.entry.js → p-c54d0925.entry.js} +2 -2
  656. package/www/build/p-c679277c.entry.js +2 -0
  657. package/{dist/web-components-library/p-df05727f.entry.js.map → www/build/p-c679277c.entry.js.map} +1 -1
  658. package/www/build/p-cc71a90c.entry.js +2 -0
  659. package/{dist/web-components-library/p-c90249e5.entry.js → www/build/p-cd0219b4.entry.js} +2 -2
  660. package/{dist/web-components-library/p-6a664748.entry.js → www/build/p-d5f5e107.entry.js} +2 -2
  661. package/www/build/p-d5f5e107.entry.js.map +1 -0
  662. package/www/build/{p-88e756cd.entry.js → p-da7200c2.entry.js} +2 -2
  663. package/{dist/web-components-library/p-ae96bc09.entry.js → www/build/p-df8c381a.entry.js} +2 -2
  664. package/www/build/{p-3b266de4.entry.js → p-df9c3674.entry.js} +2 -2
  665. package/www/build/{p-609c11d6.entry.js → p-e25d7f0a.entry.js} +2 -2
  666. package/www/build/{p-33eea921.entry.js → p-e4d97fbf.entry.js} +2 -2
  667. package/www/build/{p-f74f9f3c.entry.js → p-e529a714.entry.js} +2 -2
  668. package/www/build/{p-21b85c7f.entry.js → p-ea9c0ff3.entry.js} +2 -2
  669. package/www/build/{p-2a7e4988.entry.js → p-f06ad42c.entry.js} +2 -2
  670. package/www/build/{p-8499a29d.entry.js → p-f15d0a00.entry.js} +2 -2
  671. package/{dist/web-components-library/p-63e970ee.entry.js → www/build/p-f425c6f2.entry.js} +2 -2
  672. package/www/build/p-f703660d.entry.js +2 -0
  673. package/{dist/web-components-library/p-49e4ce84.entry.js → www/build/p-f8bbca6e.entry.js} +2 -2
  674. package/www/build/web-components-library.esm.js +1 -1
  675. package/www/build/web-components-library.esm.js.map +1 -1
  676. package/www/index.html +3 -1
  677. package/dist/.storybook/elements/args-controls.js +0 -78
  678. package/dist/.storybook/elements/args-controls.js.map +0 -1
  679. package/dist/.storybook/elements/docs-template.js +0 -11
  680. package/dist/.storybook/elements/docs-template.js.map +0 -1
  681. package/dist/cjs/breakpoints-5c22092a.js +0 -11
  682. package/dist/cjs/breakpoints-5c22092a.js.map +0 -1
  683. package/dist/cjs/index-e801ae96.js.map +0 -1
  684. package/dist/cjs/utils-6bd8c55e.js.map +0 -1
  685. package/dist/collection/assets/orientamento.svg +0 -14
  686. package/dist/collection/components/date-picker/z-date-picker/index.spec.js +0 -38
  687. package/dist/collection/components/date-picker/z-date-picker/index.spec.js.map +0 -1
  688. package/dist/collection/components/date-picker/z-range-picker/index.spec.js +0 -25
  689. package/dist/collection/components/date-picker/z-range-picker/index.spec.js.map +0 -1
  690. package/dist/collection/components/deprecated/z-app-header-deprecated/index.spec.js +0 -203
  691. package/dist/collection/components/deprecated/z-app-header-deprecated/index.spec.js.map +0 -1
  692. package/dist/collection/components/deprecated/z-menu-deprecated/index.spec.js +0 -120
  693. package/dist/collection/components/deprecated/z-menu-deprecated/index.spec.js.map +0 -1
  694. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.spec.js +0 -50
  695. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.spec.js.map +0 -1
  696. package/dist/collection/components/file-upload/z-dragdrop-area/index.spec.js +0 -55
  697. package/dist/collection/components/file-upload/z-dragdrop-area/index.spec.js.map +0 -1
  698. package/dist/collection/components/file-upload/z-file/index.spec.js +0 -20
  699. package/dist/collection/components/file-upload/z-file/index.spec.js.map +0 -1
  700. package/dist/collection/components/file-upload/z-file-upload/index.spec.js +0 -135
  701. package/dist/collection/components/file-upload/z-file-upload/index.spec.js.map +0 -1
  702. package/dist/collection/components/file-upload/z-file-upload/test.e2e.js +0 -69
  703. package/dist/collection/components/file-upload/z-file-upload/test.e2e.js.map +0 -1
  704. package/dist/collection/components/list/z-list/index.spec.js +0 -33
  705. package/dist/collection/components/list/z-list/index.spec.js.map +0 -1
  706. package/dist/collection/components/list/z-list-element/index.spec.js +0 -135
  707. package/dist/collection/components/list/z-list-element/index.spec.js.map +0 -1
  708. package/dist/collection/components/list/z-list-group/index.spec.js +0 -39
  709. package/dist/collection/components/list/z-list-group/index.spec.js.map +0 -1
  710. package/dist/collection/components/z-app-header/index.spec.js +0 -617
  711. package/dist/collection/components/z-app-header/index.spec.js.map +0 -1
  712. package/dist/collection/components/z-aria-alert/index.spec.js +0 -14
  713. package/dist/collection/components/z-aria-alert/index.spec.js.map +0 -1
  714. package/dist/collection/components/z-avatar/index.spec.js +0 -98
  715. package/dist/collection/components/z-avatar/index.spec.js.map +0 -1
  716. package/dist/collection/components/z-book-card/index.spec.js +0 -679
  717. package/dist/collection/components/z-book-card/index.spec.js.map +0 -1
  718. package/dist/collection/components/z-breadcrumb/index.spec.js +0 -39
  719. package/dist/collection/components/z-breadcrumb/index.spec.js.map +0 -1
  720. package/dist/collection/components/z-button/index.spec.js +0 -101
  721. package/dist/collection/components/z-button/index.spec.js.map +0 -1
  722. package/dist/collection/components/z-button-sort/index.spec.js +0 -139
  723. package/dist/collection/components/z-button-sort/index.spec.js.map +0 -1
  724. package/dist/collection/components/z-button-sort/test.e2e.js +0 -29
  725. package/dist/collection/components/z-button-sort/test.e2e.js.map +0 -1
  726. package/dist/collection/components/z-card/index.spec.js +0 -179
  727. package/dist/collection/components/z-card/index.spec.js.map +0 -1
  728. package/dist/collection/components/z-chip/index.spec.js +0 -108
  729. package/dist/collection/components/z-chip/index.spec.js.map +0 -1
  730. package/dist/collection/components/z-chip/test.e2e.js +0 -32
  731. package/dist/collection/components/z-chip/test.e2e.js.map +0 -1
  732. package/dist/collection/components/z-combobox/index.spec.js +0 -475
  733. package/dist/collection/components/z-combobox/index.spec.js.map +0 -1
  734. package/dist/collection/components/z-combobox/test.e2e.js +0 -45
  735. package/dist/collection/components/z-combobox/test.e2e.js.map +0 -1
  736. package/dist/collection/components/z-divider/index.spec.js +0 -82
  737. package/dist/collection/components/z-divider/index.spec.js.map +0 -1
  738. package/dist/collection/components/z-ghost-loading/index.spec.js +0 -16
  739. package/dist/collection/components/z-ghost-loading/index.spec.js.map +0 -1
  740. package/dist/collection/components/z-icon/index.spec.js +0 -96
  741. package/dist/collection/components/z-icon/index.spec.js.map +0 -1
  742. package/dist/collection/components/z-info-box/index.spec.js +0 -71
  743. package/dist/collection/components/z-info-box/index.spec.js.map +0 -1
  744. package/dist/collection/components/z-input/test-checkbox.spec.js +0 -114
  745. package/dist/collection/components/z-input/test-checkbox.spec.js.map +0 -1
  746. package/dist/collection/components/z-input/test-methods.spec.js +0 -13
  747. package/dist/collection/components/z-input/test-methods.spec.js.map +0 -1
  748. package/dist/collection/components/z-input/test-radio.spec.js +0 -114
  749. package/dist/collection/components/z-input/test-radio.spec.js.map +0 -1
  750. package/dist/collection/components/z-input/test-text.spec.js +0 -347
  751. package/dist/collection/components/z-input/test-text.spec.js.map +0 -1
  752. package/dist/collection/components/z-input/test-textarea.spec.js +0 -54
  753. package/dist/collection/components/z-input/test-textarea.spec.js.map +0 -1
  754. package/dist/collection/components/z-input/test.e2e.js +0 -180
  755. package/dist/collection/components/z-input/test.e2e.js.map +0 -1
  756. package/dist/collection/components/z-input-message/index.spec.js +0 -45
  757. package/dist/collection/components/z-input-message/index.spec.js.map +0 -1
  758. package/dist/collection/components/z-logo/index.spec.js +0 -74
  759. package/dist/collection/components/z-logo/index.spec.js.map +0 -1
  760. package/dist/collection/components/z-menu/index.spec.js +0 -136
  761. package/dist/collection/components/z-menu/index.spec.js.map +0 -1
  762. package/dist/collection/components/z-menu-section/index.spec.js +0 -50
  763. package/dist/collection/components/z-menu-section/index.spec.js.map +0 -1
  764. package/dist/collection/components/z-modal/index.spec.js +0 -192
  765. package/dist/collection/components/z-modal/index.spec.js.map +0 -1
  766. package/dist/collection/components/z-modal/test.e2e.js +0 -81
  767. package/dist/collection/components/z-modal/test.e2e.js.map +0 -1
  768. package/dist/collection/components/z-notification/index.spec.js +0 -84
  769. package/dist/collection/components/z-notification/index.spec.js.map +0 -1
  770. package/dist/collection/components/z-notification/test.e2e.js +0 -25
  771. package/dist/collection/components/z-notification/test.e2e.js.map +0 -1
  772. package/dist/collection/components/z-offcanvas/index.spec.js +0 -42
  773. package/dist/collection/components/z-offcanvas/index.spec.js.map +0 -1
  774. package/dist/collection/components/z-pagination/index.spec.js +0 -36
  775. package/dist/collection/components/z-pagination/index.spec.js.map +0 -1
  776. package/dist/collection/components/z-panel-elem/index.spec.js +0 -284
  777. package/dist/collection/components/z-panel-elem/index.spec.js.map +0 -1
  778. package/dist/collection/components/z-searchbar/index.spec.js +0 -395
  779. package/dist/collection/components/z-searchbar/index.spec.js.map +0 -1
  780. package/dist/collection/components/z-searchbar/test.e2e.js +0 -90
  781. package/dist/collection/components/z-searchbar/test.e2e.js.map +0 -1
  782. package/dist/collection/components/z-section-title/index.spec.js +0 -27
  783. package/dist/collection/components/z-section-title/index.spec.js.map +0 -1
  784. package/dist/collection/components/z-select/index.spec.js +0 -698
  785. package/dist/collection/components/z-select/index.spec.js.map +0 -1
  786. package/dist/collection/components/z-select/test.e2e.js +0 -121
  787. package/dist/collection/components/z-select/test.e2e.js.map +0 -1
  788. package/dist/collection/components/z-skip-to-content/index.spec.js +0 -28
  789. package/dist/collection/components/z-skip-to-content/index.spec.js.map +0 -1
  790. package/dist/collection/components/z-stepper/index.spec.js +0 -38
  791. package/dist/collection/components/z-stepper/index.spec.js.map +0 -1
  792. package/dist/collection/components/z-stepper-item/index.spec.js +0 -105
  793. package/dist/collection/components/z-stepper-item/index.spec.js.map +0 -1
  794. package/dist/collection/components/z-tag/index.spec.js +0 -58
  795. package/dist/collection/components/z-tag/index.spec.js.map +0 -1
  796. package/dist/collection/components/z-toast-notification/index.spec.js +0 -104
  797. package/dist/collection/components/z-toast-notification/index.spec.js.map +0 -1
  798. package/dist/collection/components/z-toast-notification-list/index.spec.js +0 -57
  799. package/dist/collection/components/z-toast-notification-list/index.spec.js.map +0 -1
  800. package/dist/collection/components/z-toast-notification-list/test.e2e.js +0 -69
  801. package/dist/collection/components/z-toast-notification-list/test.e2e.js.map +0 -1
  802. package/dist/collection/components/z-toggle-button/index.spec.js +0 -124
  803. package/dist/collection/components/z-toggle-button/index.spec.js.map +0 -1
  804. package/dist/collection/components/z-toggle-button/test.e2e.js +0 -12
  805. package/dist/collection/components/z-toggle-button/test.e2e.js.map +0 -1
  806. package/dist/collection/components/z-toggle-switch/index.spec.js +0 -149
  807. package/dist/collection/components/z-toggle-switch/index.spec.js.map +0 -1
  808. package/dist/collection/components/z-toggle-switch/test.e2e.js +0 -22
  809. package/dist/collection/components/z-toggle-switch/test.e2e.js.map +0 -1
  810. package/dist/collection/components/z-visually-hidden/index.spec.js +0 -18
  811. package/dist/collection/components/z-visually-hidden/index.spec.js.map +0 -1
  812. package/dist/collection/snowflakes/myz/card/z-myz-card/index.spec.js +0 -20
  813. package/dist/collection/snowflakes/myz/card/z-myz-card/index.spec.js.map +0 -1
  814. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.spec.js +0 -128
  815. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.spec.js.map +0 -1
  816. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.spec.js +0 -21
  817. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.spec.js.map +0 -1
  818. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.spec.js +0 -33
  819. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.spec.js.map +0 -1
  820. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.spec.js +0 -121
  821. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.spec.js.map +0 -1
  822. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.spec.js +0 -199
  823. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.spec.js.map +0 -1
  824. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.spec.js +0 -54
  825. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.spec.js.map +0 -1
  826. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.spec.js +0 -22
  827. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.spec.js.map +0 -1
  828. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.spec.js +0 -56
  829. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.spec.js.map +0 -1
  830. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.spec.js +0 -136
  831. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.spec.js.map +0 -1
  832. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.spec.js +0 -39
  833. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.spec.js.map +0 -1
  834. package/dist/collection/snowflakes/myz/list/z-myz-list/index.spec.js +0 -140
  835. package/dist/collection/snowflakes/myz/list/z-myz-list/index.spec.js.map +0 -1
  836. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.spec.js +0 -80
  837. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.spec.js.map +0 -1
  838. package/dist/collection/snowflakes/myz/z-alert/index.spec.js +0 -20
  839. package/dist/collection/snowflakes/myz/z-alert/index.spec.js.map +0 -1
  840. package/dist/collection/snowflakes/myz/z-otp/index.spec.js +0 -74
  841. package/dist/collection/snowflakes/myz/z-otp/index.spec.js.map +0 -1
  842. package/dist/collection/snowflakes/myz/z-otp/test.e2e.js +0 -23
  843. package/dist/collection/snowflakes/myz/z-otp/test.e2e.js.map +0 -1
  844. package/dist/collection/snowflakes/myz/z-slideshow/index.spec.js +0 -193
  845. package/dist/collection/snowflakes/myz/z-slideshow/index.spec.js.map +0 -1
  846. package/dist/collection/utils/utils.spec.js +0 -16
  847. package/dist/collection/utils/utils.spec.js.map +0 -1
  848. package/dist/docs/grid/index.stories.js +0 -47
  849. package/dist/docs/grid/index.stories.js.map +0 -1
  850. package/dist/docs/iconset/index.stories.js +0 -32
  851. package/dist/docs/iconset/index.stories.js.map +0 -1
  852. package/dist/docs/themes/index.stories.js +0 -90
  853. package/dist/docs/themes/index.stories.js.map +0 -1
  854. package/dist/esm/breakpoints-680e0e56.js +0 -7
  855. package/dist/esm/breakpoints-680e0e56.js.map +0 -1
  856. package/dist/esm/index-a2130b6a.js.map +0 -1
  857. package/dist/esm/utils-8ade9e2d.js.map +0 -1
  858. package/dist/types/home/runner/work/design-system/design-system/.stencil/.storybook/elements/args-controls.d.ts +0 -13
  859. package/dist/types/home/runner/work/design-system/design-system/.stencil/.storybook/elements/docs-template.d.ts +0 -5
  860. package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/grid/index.stories.d.ts +0 -9
  861. package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/iconset/index.stories.d.ts +0 -11
  862. package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/themes/index.stories.d.ts +0 -27
  863. package/dist/web-components-library/p-054484d4.entry.js +0 -2
  864. package/dist/web-components-library/p-054484d4.entry.js.map +0 -1
  865. package/dist/web-components-library/p-0794ae16.entry.js +0 -2
  866. package/dist/web-components-library/p-2c184714.js +0 -2
  867. package/dist/web-components-library/p-2c184714.js.map +0 -1
  868. package/dist/web-components-library/p-2c886e8b.js +0 -2
  869. package/dist/web-components-library/p-2c886e8b.js.map +0 -1
  870. package/dist/web-components-library/p-385bf4ca.entry.js +0 -2
  871. package/dist/web-components-library/p-6586441a.entry.js.map +0 -1
  872. package/dist/web-components-library/p-68822fbc.entry.js +0 -2
  873. package/dist/web-components-library/p-6a664748.entry.js.map +0 -1
  874. package/dist/web-components-library/p-6b2cd695.entry.js +0 -2
  875. package/dist/web-components-library/p-6f4dd02b.entry.js +0 -2
  876. package/dist/web-components-library/p-74a65c6f.entry.js +0 -2
  877. package/dist/web-components-library/p-7d827c11.js +0 -2
  878. package/dist/web-components-library/p-85f84e55.entry.js.map +0 -1
  879. package/dist/web-components-library/p-89584f19.entry.js +0 -2
  880. package/dist/web-components-library/p-8a728e82.entry.js +0 -2
  881. package/dist/web-components-library/p-8a728e82.entry.js.map +0 -1
  882. package/dist/web-components-library/p-8b309268.entry.js.map +0 -1
  883. package/dist/web-components-library/p-8c517cd7.entry.js +0 -2
  884. package/dist/web-components-library/p-8c517cd7.entry.js.map +0 -1
  885. package/dist/web-components-library/p-8d7323f7.entry.js +0 -2
  886. package/dist/web-components-library/p-8d7323f7.entry.js.map +0 -1
  887. package/dist/web-components-library/p-97b0c3b3.entry.js +0 -2
  888. package/dist/web-components-library/p-a7292e1c.entry.js +0 -2
  889. package/dist/web-components-library/p-ad76b8ff.entry.js +0 -2
  890. package/dist/web-components-library/p-cfa39bd3.js +0 -3
  891. package/dist/web-components-library/p-cfa39bd3.js.map +0 -1
  892. package/dist/web-components-library/p-df05727f.entry.js +0 -2
  893. package/dist/web-components-library/p-ed2c8484.entry.js +0 -2
  894. package/dist/web-components-library/p-f8d45aa4.entry.js +0 -2
  895. package/dist/web-components-library/p-fe87b081.entry.js +0 -2
  896. package/dist/web-components-library/p-fe87b081.entry.js.map +0 -1
  897. package/www/assets/orientamento.svg +0 -14
  898. package/www/build/p-054484d4.entry.js +0 -2
  899. package/www/build/p-054484d4.entry.js.map +0 -1
  900. package/www/build/p-0794ae16.entry.js +0 -2
  901. package/www/build/p-2c184714.js +0 -2
  902. package/www/build/p-2c184714.js.map +0 -1
  903. package/www/build/p-2c886e8b.js +0 -2
  904. package/www/build/p-2c886e8b.js.map +0 -1
  905. package/www/build/p-385bf4ca.entry.js +0 -2
  906. package/www/build/p-6586441a.entry.js.map +0 -1
  907. package/www/build/p-68822fbc.entry.js +0 -2
  908. package/www/build/p-6a664748.entry.js.map +0 -1
  909. package/www/build/p-6b2cd695.entry.js +0 -2
  910. package/www/build/p-6f4dd02b.entry.js +0 -2
  911. package/www/build/p-74a65c6f.entry.js +0 -2
  912. package/www/build/p-7d827c11.js +0 -2
  913. package/www/build/p-85f84e55.entry.js.map +0 -1
  914. package/www/build/p-89584f19.entry.js +0 -2
  915. package/www/build/p-8a728e82.entry.js +0 -2
  916. package/www/build/p-8a728e82.entry.js.map +0 -1
  917. package/www/build/p-8b309268.entry.js.map +0 -1
  918. package/www/build/p-8c517cd7.entry.js +0 -2
  919. package/www/build/p-8c517cd7.entry.js.map +0 -1
  920. package/www/build/p-8d7323f7.entry.js +0 -2
  921. package/www/build/p-8d7323f7.entry.js.map +0 -1
  922. package/www/build/p-97b0c3b3.entry.js +0 -2
  923. package/www/build/p-a7292e1c.entry.js +0 -2
  924. package/www/build/p-ad76b8ff.entry.js +0 -2
  925. package/www/build/p-cfa39bd3.js +0 -3
  926. package/www/build/p-cfa39bd3.js.map +0 -1
  927. package/www/build/p-dc60b359.js +0 -2
  928. package/www/build/p-df05727f.entry.js +0 -2
  929. package/www/build/p-ed2c8484.entry.js +0 -2
  930. package/www/build/p-f8d45aa4.entry.js +0 -2
  931. package/www/build/p-fe87b081.entry.js +0 -2
  932. package/www/build/p-fe87b081.entry.js.map +0 -1
  933. /package/dist/web-components-library/{p-6319b5e2.entry.js.map → p-06d98334.entry.js.map} +0 -0
  934. /package/dist/web-components-library/{p-2672e36f.entry.js.map → p-100c6243.entry.js.map} +0 -0
  935. /package/dist/web-components-library/{p-28928bb6.entry.js.map → p-1896cc54.entry.js.map} +0 -0
  936. /package/dist/web-components-library/{p-19f8c3d2.entry.js.map → p-1cc37aa7.entry.js.map} +0 -0
  937. /package/dist/web-components-library/{p-c0bdbfb5.entry.js.map → p-273f3c53.entry.js.map} +0 -0
  938. /package/dist/web-components-library/{p-4f7dd068.entry.js.map → p-28018cd3.entry.js.map} +0 -0
  939. /package/dist/web-components-library/{p-12d62027.entry.js.map → p-296924ea.entry.js.map} +0 -0
  940. /package/dist/web-components-library/{p-0794ae16.entry.js.map → p-2b1fd95a.entry.js.map} +0 -0
  941. /package/dist/web-components-library/{p-99b791d1.entry.js.map → p-2e432a39.entry.js.map} +0 -0
  942. /package/dist/web-components-library/{p-af856537.entry.js.map → p-2f662fea.entry.js.map} +0 -0
  943. /package/dist/web-components-library/{p-8a10fec5.entry.js.map → p-38d5e74f.entry.js.map} +0 -0
  944. /package/dist/web-components-library/{p-6b2cd695.entry.js.map → p-3ae8fb1a.entry.js.map} +0 -0
  945. /package/dist/web-components-library/{p-304eeab0.js.map → p-3dbad75e.js.map} +0 -0
  946. /package/dist/web-components-library/{p-be4878f2.entry.js.map → p-4537f922.entry.js.map} +0 -0
  947. /package/dist/web-components-library/{p-91c04edc.entry.js.map → p-45dc157c.entry.js.map} +0 -0
  948. /package/dist/web-components-library/{p-e366782c.entry.js.map → p-46d98609.entry.js.map} +0 -0
  949. /package/dist/web-components-library/{p-7d7c5344.js.map → p-4a2e0034.js.map} +0 -0
  950. /package/dist/web-components-library/{p-68822fbc.entry.js.map → p-4f3f8578.entry.js.map} +0 -0
  951. /package/dist/web-components-library/{p-e5dc0719.entry.js.map → p-51f1c9c0.entry.js.map} +0 -0
  952. /package/dist/web-components-library/{p-e1852de3.entry.js.map → p-5a0f0978.entry.js.map} +0 -0
  953. /package/dist/web-components-library/{p-26b5c84d.js.map → p-60f410df.js.map} +0 -0
  954. /package/dist/web-components-library/{p-74a65c6f.entry.js.map → p-63ec7bad.entry.js.map} +0 -0
  955. /package/dist/web-components-library/{p-7d827c11.js.map → p-64aab82f.js.map} +0 -0
  956. /package/dist/web-components-library/{p-57eee056.entry.js.map → p-68f4fbc8.entry.js.map} +0 -0
  957. /package/dist/web-components-library/{p-f21bc3a9.entry.js.map → p-6a1b3e86.entry.js.map} +0 -0
  958. /package/dist/web-components-library/{p-05e9ae1e.entry.js.map → p-6db2fd46.entry.js.map} +0 -0
  959. /package/dist/web-components-library/{p-83350b5f.entry.js.map → p-707e5f91.entry.js.map} +0 -0
  960. /package/dist/web-components-library/{p-b84fa3b6.entry.js.map → p-7aba5af3.entry.js.map} +0 -0
  961. /package/dist/web-components-library/{p-a7292e1c.entry.js.map → p-7d5bf905.entry.js.map} +0 -0
  962. /package/dist/web-components-library/{p-324ef970.entry.js.map → p-820b48f6.entry.js.map} +0 -0
  963. /package/dist/web-components-library/{p-ed2c8484.entry.js.map → p-823c45d4.entry.js.map} +0 -0
  964. /package/dist/web-components-library/{p-8c9f7cef.entry.js.map → p-855334f4.entry.js.map} +0 -0
  965. /package/dist/web-components-library/{p-aa0f083b.js.map → p-8a6a4d22.js.map} +0 -0
  966. /package/dist/web-components-library/{p-d9e1d8c7.js.map → p-95cb8701.js.map} +0 -0
  967. /package/dist/web-components-library/{p-4552744b.entry.js.map → p-9b9a04ad.entry.js.map} +0 -0
  968. /package/dist/web-components-library/{p-77d8ad7e.entry.js.map → p-a0fd1323.entry.js.map} +0 -0
  969. /package/dist/web-components-library/{p-088a31dc.entry.js.map → p-acd911aa.entry.js.map} +0 -0
  970. /package/dist/web-components-library/{p-a4ada10b.entry.js.map → p-ad97fdc4.entry.js.map} +0 -0
  971. /package/dist/web-components-library/{p-57ecb5a7.entry.js.map → p-b2356bc7.entry.js.map} +0 -0
  972. /package/dist/web-components-library/{p-385bf4ca.entry.js.map → p-c1e498ac.entry.js.map} +0 -0
  973. /package/dist/web-components-library/{p-a5781264.entry.js.map → p-c54d0925.entry.js.map} +0 -0
  974. /package/dist/web-components-library/{p-89584f19.entry.js.map → p-cc71a90c.entry.js.map} +0 -0
  975. /package/dist/web-components-library/{p-c90249e5.entry.js.map → p-cd0219b4.entry.js.map} +0 -0
  976. /package/dist/web-components-library/{p-88e756cd.entry.js.map → p-da7200c2.entry.js.map} +0 -0
  977. /package/dist/web-components-library/{p-ae96bc09.entry.js.map → p-df8c381a.entry.js.map} +0 -0
  978. /package/dist/web-components-library/{p-3b266de4.entry.js.map → p-df9c3674.entry.js.map} +0 -0
  979. /package/dist/web-components-library/{p-609c11d6.entry.js.map → p-e25d7f0a.entry.js.map} +0 -0
  980. /package/dist/web-components-library/{p-33eea921.entry.js.map → p-e4d97fbf.entry.js.map} +0 -0
  981. /package/dist/web-components-library/{p-f74f9f3c.entry.js.map → p-e529a714.entry.js.map} +0 -0
  982. /package/dist/web-components-library/{p-21b85c7f.entry.js.map → p-ea9c0ff3.entry.js.map} +0 -0
  983. /package/dist/web-components-library/{p-2a7e4988.entry.js.map → p-f06ad42c.entry.js.map} +0 -0
  984. /package/dist/web-components-library/{p-8499a29d.entry.js.map → p-f15d0a00.entry.js.map} +0 -0
  985. /package/dist/web-components-library/{p-63e970ee.entry.js.map → p-f425c6f2.entry.js.map} +0 -0
  986. /package/dist/web-components-library/{p-f8d45aa4.entry.js.map → p-f703660d.entry.js.map} +0 -0
  987. /package/dist/web-components-library/{p-49e4ce84.entry.js.map → p-f8bbca6e.entry.js.map} +0 -0
  988. /package/www/build/{p-6319b5e2.entry.js.map → p-06d98334.entry.js.map} +0 -0
  989. /package/www/build/{p-2672e36f.entry.js.map → p-100c6243.entry.js.map} +0 -0
  990. /package/www/build/{p-28928bb6.entry.js.map → p-1896cc54.entry.js.map} +0 -0
  991. /package/www/build/{p-19f8c3d2.entry.js.map → p-1cc37aa7.entry.js.map} +0 -0
  992. /package/www/build/{p-c0bdbfb5.entry.js.map → p-273f3c53.entry.js.map} +0 -0
  993. /package/www/build/{p-4f7dd068.entry.js.map → p-28018cd3.entry.js.map} +0 -0
  994. /package/www/build/{p-12d62027.entry.js.map → p-296924ea.entry.js.map} +0 -0
  995. /package/www/build/{p-0794ae16.entry.js.map → p-2b1fd95a.entry.js.map} +0 -0
  996. /package/www/build/{p-99b791d1.entry.js.map → p-2e432a39.entry.js.map} +0 -0
  997. /package/www/build/{p-af856537.entry.js.map → p-2f662fea.entry.js.map} +0 -0
  998. /package/www/build/{p-8a10fec5.entry.js.map → p-38d5e74f.entry.js.map} +0 -0
  999. /package/www/build/{p-6b2cd695.entry.js.map → p-3ae8fb1a.entry.js.map} +0 -0
  1000. /package/www/build/{p-304eeab0.js.map → p-3dbad75e.js.map} +0 -0
  1001. /package/www/build/{p-be4878f2.entry.js.map → p-4537f922.entry.js.map} +0 -0
  1002. /package/www/build/{p-91c04edc.entry.js.map → p-45dc157c.entry.js.map} +0 -0
  1003. /package/www/build/{p-e366782c.entry.js.map → p-46d98609.entry.js.map} +0 -0
  1004. /package/www/build/{p-7d7c5344.js.map → p-4a2e0034.js.map} +0 -0
  1005. /package/www/build/{p-68822fbc.entry.js.map → p-4f3f8578.entry.js.map} +0 -0
  1006. /package/www/build/{p-e5dc0719.entry.js.map → p-51f1c9c0.entry.js.map} +0 -0
  1007. /package/www/build/{p-e1852de3.entry.js.map → p-5a0f0978.entry.js.map} +0 -0
  1008. /package/www/build/{p-26b5c84d.js.map → p-60f410df.js.map} +0 -0
  1009. /package/www/build/{p-74a65c6f.entry.js.map → p-63ec7bad.entry.js.map} +0 -0
  1010. /package/www/build/{p-7d827c11.js.map → p-64aab82f.js.map} +0 -0
  1011. /package/www/build/{p-57eee056.entry.js.map → p-68f4fbc8.entry.js.map} +0 -0
  1012. /package/www/build/{p-f21bc3a9.entry.js.map → p-6a1b3e86.entry.js.map} +0 -0
  1013. /package/www/build/{p-05e9ae1e.entry.js.map → p-6db2fd46.entry.js.map} +0 -0
  1014. /package/www/build/{p-83350b5f.entry.js.map → p-707e5f91.entry.js.map} +0 -0
  1015. /package/www/build/{p-b84fa3b6.entry.js.map → p-7aba5af3.entry.js.map} +0 -0
  1016. /package/www/build/{p-a7292e1c.entry.js.map → p-7d5bf905.entry.js.map} +0 -0
  1017. /package/www/build/{p-324ef970.entry.js.map → p-820b48f6.entry.js.map} +0 -0
  1018. /package/www/build/{p-ed2c8484.entry.js.map → p-823c45d4.entry.js.map} +0 -0
  1019. /package/www/build/{p-8c9f7cef.entry.js.map → p-855334f4.entry.js.map} +0 -0
  1020. /package/www/build/{p-aa0f083b.js.map → p-8a6a4d22.js.map} +0 -0
  1021. /package/www/build/{p-d9e1d8c7.js.map → p-95cb8701.js.map} +0 -0
  1022. /package/www/build/{p-4552744b.entry.js.map → p-9b9a04ad.entry.js.map} +0 -0
  1023. /package/www/build/{p-77d8ad7e.entry.js.map → p-a0fd1323.entry.js.map} +0 -0
  1024. /package/www/build/{p-088a31dc.entry.js.map → p-acd911aa.entry.js.map} +0 -0
  1025. /package/www/build/{p-a4ada10b.entry.js.map → p-ad97fdc4.entry.js.map} +0 -0
  1026. /package/www/build/{p-57ecb5a7.entry.js.map → p-b2356bc7.entry.js.map} +0 -0
  1027. /package/www/build/{p-385bf4ca.entry.js.map → p-c1e498ac.entry.js.map} +0 -0
  1028. /package/www/build/{p-a5781264.entry.js.map → p-c54d0925.entry.js.map} +0 -0
  1029. /package/www/build/{p-89584f19.entry.js.map → p-cc71a90c.entry.js.map} +0 -0
  1030. /package/www/build/{p-c90249e5.entry.js.map → p-cd0219b4.entry.js.map} +0 -0
  1031. /package/www/build/{p-88e756cd.entry.js.map → p-da7200c2.entry.js.map} +0 -0
  1032. /package/www/build/{p-ae96bc09.entry.js.map → p-df8c381a.entry.js.map} +0 -0
  1033. /package/www/build/{p-3b266de4.entry.js.map → p-df9c3674.entry.js.map} +0 -0
  1034. /package/www/build/{p-609c11d6.entry.js.map → p-e25d7f0a.entry.js.map} +0 -0
  1035. /package/www/build/{p-33eea921.entry.js.map → p-e4d97fbf.entry.js.map} +0 -0
  1036. /package/www/build/{p-f74f9f3c.entry.js.map → p-e529a714.entry.js.map} +0 -0
  1037. /package/www/build/{p-21b85c7f.entry.js.map → p-ea9c0ff3.entry.js.map} +0 -0
  1038. /package/www/build/{p-2a7e4988.entry.js.map → p-f06ad42c.entry.js.map} +0 -0
  1039. /package/www/build/{p-8499a29d.entry.js.map → p-f15d0a00.entry.js.map} +0 -0
  1040. /package/www/build/{p-63e970ee.entry.js.map → p-f425c6f2.entry.js.map} +0 -0
  1041. /package/www/build/{p-f8d45aa4.entry.js.map → p-f703660d.entry.js.map} +0 -0
  1042. /package/www/build/{p-49e4ce84.entry.js.map → p-f8bbca6e.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../../src/components/table/z-table/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAsB,MAAM,KAAK,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAC,eAAe,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AAEnF,OAAO,sBAAsB,CAAC;AAC9B,OAAO,SAAS,CAAC;AACjB,OAAO,qBAAqB,CAAC;AAI7B;;;;;;;;;;GAUG;AACH,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,QAAQ;IACf,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE;QACJ,UAAU,EAAE,IAAI;QAChB,0BAA0B,EAAE,MAAM;KACnC;CACgC,CAAC;AAEpC,eAAe,SAAS,CAAC;AAEzB,MAAM,aAAa,GAAG,CAAC,KAAK,GAAG,CAAC,EAAkB,EAAE,CAClD,IAAI,CAAA,GAAG,MAAM,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA,8BAA8B,CAAC,EAA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AAI,EAAE,QAAQ;iBACf;aACF;YACD,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;SACvD;KACF;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,mBAAmB,CAAC,KAAK;QACnC,eAAe,EAAE,eAAe,CAAC,IAAI;KACtC;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CACf,IAAI,CAAA;;kBAEU,IAAI,CAAC,QAAQ;cACjB,QAAQ,CAAC;QACf,0BAA0B,EAAE,IAAI,CAAC,0BAA0B,CAAC;KAC7D,CAAC;;;;;;wBAMgB,IAAI,CAAC,QAAQ;+BACN,IAAI,CAAC,eAAe;;;;;;;;;UASzC,MAAM,CACN,CAAC,GAAG,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,EACjB,GAAG,EAAE,CACH,IAAI,CAAA;gCACgB,IAAI,CAAC,QAAQ;;;;;gCAKb,IAAI,CAAC,QAAQ;;;;oBAIzB,CACX;;eAEM;CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CACf,IAAI,CAAA;;kBAEU,IAAI,CAAC,QAAQ;cACjB,QAAQ,CAAC;QACf,0BAA0B,EAAE,IAAI,CAAC,0BAA0B,CAAC;KAC7D,CAAC;;;;;;6BAMqB,aAAa,CAAC,GAAG;wBACtB,mBAAmB,CAAC,KAAK;;;;;iCAKhB,aAAa,CAAC,IAAI;;;iBAGlC,MAAM,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA,SAAS,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;eACzE;CACd,CAAC","sourcesContent":["import {Meta} from \"@storybook/web-components\";\nimport {html, type TemplateResult} from \"lit\";\nimport {repeat} from \"lit/directives/repeat.js\";\nimport {styleMap} from \"lit/directives/style-map.js\";\nimport {type ZTable} from \".\";\nimport {PopoverPosition, SortDirection, VisibilityCondition} from \"../../../beans\";\nimport {CSSVarsArguments} from \"../../../utils/storybook-utils\";\nimport \"../../z-button/index\";\nimport \"./index\";\nimport \"./index.stories.css\";\n\ntype ZTableStoriesArgs = ZTable & CSSVarsArguments<\"z-table--cells-padding\">;\n\n/**\n * ## Accessibility\n *\n * The `ZTable` and its related components comes with a set of roles and ARIA attributes to help screen readers to understand the table structure and its content.\n * The roles are mainly used to identify the table parts, since they are not the native HTML table elements.\n * The ARIA attributes used are the following:\n * - [`aria-sort`](https://www.w3.org/TR/wai-aria-1.1/#aria-sort) to identify the sorting direction of a column when sorting is enabled\n * - [`aria-expanded`](https://www.w3.org/TR/wai-aria-1.1/#aria-expanded) to identify if a row is expanded or not when expandable rows are enabled. The attribute is set on the button that expands the row, as explained in the [docs](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n * - [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls) is used on the expandable row button to identify the content that is controlled by the button itself, as explained in the [docs](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls). Maybe the `aria-owns` attribute were more appropriate, but it is not supported on MacOS and iOS with VoiceOver, so we used `aria-controls` instead.\n * - [`aria-label`](https://www.w3.org/TR/wai-aria-1.1/#aria-label) is used on the expandable row button to provide a label for the button, since the button doesn't have any text content.\n */\nconst StoryMeta = {\n title: \"ZTable\",\n component: \"z-table\",\n args: {\n \"bordered\": true,\n \"--z-table--cells-padding\": \"16px\",\n },\n} satisfies Meta<ZTableStoriesArgs>;\n\nexport default StoryMeta;\n\nconst cellsTemplate = (count = 1): TemplateResult =>\n html`${repeat([...new Array(count)], () => html`<z-td>Contenuto cella</z-td>`)}`;\n\nexport const Default = {\n render: (args) =>\n html`<z-table\n class=\"z-table-demo\"\n .bordered=${args.bordered}\n style=${styleMap({\n \"--z-table--cells-padding\": args[\"--z-table--cells-padding\"],\n })}\n >\n <z-thead>\n <z-tr>${repeat([...new Array(8)], () => html`<z-th>Titolo colonna</z-th>`)}</z-tr>\n </z-thead>\n <z-tbody>${repeat([...new Array(5)], () => html`<z-tr>${cellsTemplate(8)}</z-tr>`)}</z-tbody>\n <z-tfoot>\n <z-tr>\n <z-td colspan=\"8\">Table footer</z-td>\n </z-tr>\n </z-tfoot>\n </z-table>`,\n};\n\n/**\n * Just set `expandable` prop on the `z-tr` element to make it expandable, then put an additional `z-td` as extended content.\n * If you put a clickable item as a child cell of a z-tr with `expandable` set to `true`, you need to set a \"prevent-expand\" class on that item, in order to prevent unwanted row expansions.\n */\nexport const ExpandableRows = {\n render: (args) =>\n html`<z-table\n class=\"z-table-demo\"\n .bordered=${args.bordered}\n style=${styleMap({\n \"--z-table--cells-padding\": args[\"--z-table--cells-padding\"],\n })}\n >\n <z-thead>\n <z-tr>${repeat([...new Array(8)], (_, index) => html`<z-th>Colonna ${index + 1}</z-th>`)}</z-tr>\n </z-thead>\n <z-tbody>\n <z-tr>\n <z-td>Contenuto cella</z-td>\n <z-td>Contenuto cella</z-td>\n <z-td show-menu>\n <span>Contenuto cella con menu</span>\n <div slot=\"contextual-menu\">Contenuto del popover</div></z-td\n >\n ${cellsTemplate(5)}\n </z-tr>\n <z-tr>${repeat([...new Array(8)], () => html`<z-td>Contenuto cella</z-td>`)}</z-tr>\n <z-tr expandable>\n <z-td>Contenuto cella</z-td>\n <z-td>Contenuto cella</z-td>\n <z-td>\n <span>Contenuto cella</span>\n <z-button\n class=\"prevent-expand\"\n onclick=\"alert('button clicked without expanding the row')\"\n icon=\"plus\"\n size=\"x-small\"\n ></z-button\n ></z-td>\n ${cellsTemplate(5)}\n <z-td>Contenuto espanso</z-td>\n </z-tr>\n <z-tr>${cellsTemplate(8)}</z-tr>\n <z-tr expandable>\n <z-td>Contenuto cella</z-td>\n <z-td show-menu=\"always\">\n <span>Contenuto cella con menu</span>\n <div slot=\"contextual-menu\">Contenuto del popover</div></z-td\n >\n ${cellsTemplate(6)}\n <z-td>Contenuto espanso</z-td>\n </z-tr>\n </z-tbody>\n <z-tfoot>\n <z-tr>\n <z-td colspan=\"8\">Table footer</z-td>\n </z-tr>\n </z-tfoot>\n </z-table>`,\n};\n\n/**\n * To make a column sticky, you need to set the `sticky` prop on the `z-th` and/or `z-td` elements of the same column.\n * For the header or footer, just set the `sticky` prop on the `z-thead` or `z-tfoot` element.\n */\nexport const Sticky = {\n args: {\n stickyHeader: true,\n stickyFooter: true,\n stickFirstColumn: true,\n },\n render: (args) =>\n html`<z-table\n class=\"z-table-demo\"\n .bordered=${args.bordered}\n style=${styleMap({\n \"--z-table--cells-padding\": args[\"--z-table--cells-padding\"],\n \"height\": \"400px\",\n })}\n >\n <z-thead .sticky=${args.stickyHeader}>\n <z-tr>\n <z-th .sticky=${args.stickFirstColumn}>Colonna 1</z-th>\n ${repeat([...new Array(7)], (_, index) => html`<z-th>Colonna ${index + 2}</z-th>`)}\n </z-tr>\n </z-thead>\n <z-tbody>\n <z-tr>\n <z-td .sticky=${args.stickFirstColumn}>Contenuto cella 1</z-td>\n <z-td>Contenuto cella</z-td>\n <z-td>Contenuto cella</z-td>\n <z-td show-menu>\n <span>Contenuto cella con menu</span>\n <div slot=\"contextual-menu\">Contenuto del popover</div></z-td\n >\n ${cellsTemplate(4)}\n </z-tr>\n ${repeat(\n [...new Array(5)],\n () =>\n html`<z-tr>\n <z-td .sticky=${args.stickFirstColumn}>Contenuto cella 1</z-td>\n ${cellsTemplate(7)}\n </z-tr>`\n )}\n <z-tr expandable>\n <z-td .sticky=${args.stickFirstColumn}>Contenuto cella 1</z-td>\n ${cellsTemplate(6)}\n <z-td>\n <span>Contenuto cella</span>\n <z-button\n class=\"prevent-expand\"\n onclick=\"alert('button clicked')\"\n icon=\"plus\"\n size=\"x-small\"\n ></z-button\n ></z-td>\n <z-td>Contenuto espanso</z-td>\n </z-tr>\n <z-tr expandable>\n <z-td .sticky=${args.stickFirstColumn}>Contenuto cella 1</z-td>\n ${cellsTemplate(7)}\n <z-td>Contenuto espanso</z-td>\n </z-tr>\n </z-tbody>\n <z-tfoot .sticky=${args.stickyFooter}>\n <z-tr>\n <z-td colspan=\"8\">Table footer</z-td>\n </z-tr>\n </z-tfoot>\n </z-table>`,\n};\n\n/**\n * Use the `showMenu` prop on `z-td` or `z-th`, setting a value of the enum `VisibilityCondition` (`HOVER` or `ALWAYS`), to show a contextual menu button on the cell. The content of the menu must be placed using the slot `contextual-menu`.\n * Use `popoverPosition` prop on `z-th` to set the position of contextual menu, default is `auto`.\n */\nexport const CellsWithContextualMenu = {\n argTypes: {\n showMenu: {\n control: {\n type: \"inline-radio\",\n labels: {\n null: \"hidden\",\n },\n },\n popoverPosition: {\n options: Object.values(PopoverPosition),\n control: {\n type: \"select\",\n },\n },\n options: [null, ...Object.values(VisibilityCondition)],\n },\n },\n args: {\n showMenu: VisibilityCondition.HOVER,\n popoverPosition: PopoverPosition.AUTO,\n },\n render: (args) =>\n html`<z-table\n class=\"z-table-demo\"\n .bordered=${args.bordered}\n style=${styleMap({\n \"--z-table--cells-padding\": args[\"--z-table--cells-padding\"],\n })}\n >\n <z-thead>\n <z-tr>\n <z-th>Colonna 1</z-th>\n <z-th\n .showMenu=${args.showMenu}\n .popoverPosition=${args.popoverPosition}\n >\n Heading con menu\n <div slot=\"contextual-menu\">Contenuto del popover</div>\n </z-th>\n <z-th>Colonna 2</z-th>\n </z-tr>\n </z-thead>\n <z-tbody>\n ${repeat(\n [...new Array(3)],\n () =>\n html`<z-tr>\n <z-td .showMenu=${args.showMenu}>\n <span>Contenuto cella con menu</span>\n <div slot=\"contextual-menu\">Contenuto del popover</div>\n </z-td>\n <z-td>Contenuto cella</z-td>\n <z-td .showMenu=${args.showMenu}>\n <span>Contenuto cella con menu</span>\n <div slot=\"contextual-menu\">Contenuto del popover</div>\n </z-td>\n </z-tr>`\n )}\n </z-tbody>\n </z-table>`,\n};\n\n/**\n * Set the `sortDirection` prop to `SortDirection.ASC` or `SortDirection.DESC` to enable sorting and show the sort button.\n * Clicking the button will fire the `sort` event with the `sortDirection` as detail.\n */\nexport const SortAction = {\n render: (args) =>\n html`<z-table\n class=\"z-table-demo\"\n .bordered=${args.bordered}\n style=${styleMap({\n \"--z-table--cells-padding\": args[\"--z-table--cells-padding\"],\n })}\n >\n <z-thead>\n <z-tr>\n <z-th>Colonna 1</z-th>\n <z-th\n .sortDirection=${SortDirection.ASC}\n .showMenu=${VisibilityCondition.HOVER}\n >\n Colonna 2 con menu e sorting\n <div slot=\"contextual-menu\">Contenuto del popover</div>\n </z-th>\n <z-th .sortDirection=${SortDirection.DESC}>Colonna 3 con sorting</z-th>\n </z-tr>\n </z-thead>\n <z-tbody>${repeat([...new Array(3)], () => html`<z-tr>${cellsTemplate(3)}</z-tr>`)}</z-tbody>\n </z-table>`,\n};\n"]}
1
+ {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/table/z-table/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAsB,MAAM,KAAK,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAC,eAAe,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AAEnF,OAAO,sBAAsB,CAAC;AAC9B,OAAO,SAAS,CAAC;AACjB,OAAO,qBAAqB,CAAC;AAI7B;;;;;;;;;;GAUG;AACH,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,QAAQ;IACf,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE;QACJ,UAAU,EAAE,IAAI;QAChB,0BAA0B,EAAE,MAAM;KACnC;CACgC,CAAC;AAEpC,eAAe,SAAS,CAAC;AAEzB,MAAM,aAAa,GAAG,CAAC,KAAK,GAAG,CAAC,EAAkB,EAAE,CAClD,IAAI,CAAA,GAAG,MAAM,CAAC,CAAC,GAAG,IAA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web-components\";\nimport {html, type TemplateResult} from \"lit\";\nimport {repeat} from \"lit/directives/repeat.js\";\nimport {styleMap} from \"lit/directives/style-map.js\";\nimport {type ZTable} from \".\";\nimport {PopoverPosition, SortDirection, VisibilityCondition} from \"../../../beans\";\nimport {CSSVarsArguments} from \"../../../utils/storybook-utils\";\nimport \"../../z-button/index\";\nimport \"./index\";\nimport \"./index.stories.css\";\n\ntype ZTableStoriesArgs = ZTable & CSSVarsArguments<\"z-table--cells-padding\">;\n\n/**\n * ## Accessibility\n *\n * The `ZTable` and its related components comes with a set of roles and ARIA attributes to help screen readers to understand the table structure and its content.\n * The roles are mainly used to identify the table parts, since they are not the native HTML table elements.\n * The ARIA attributes used are the following:\n * - [`aria-sort`](https://www.w3.org/TR/wai-aria-1.1/#aria-sort) to identify the sorting direction of a column when sorting is enabled\n * - [`aria-expanded`](https://www.w3.org/TR/wai-aria-1.1/#aria-expanded) to identify if a row is expanded or not when expandable rows are enabled. The attribute is set on the button that expands the row, as explained in the [docs](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n * - [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls) is used on the expandable row button to identify the content that is controlled by the button itself, as explained in the [docs](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls). Maybe the `aria-owns` attribute were more appropriate, but it is not supported on MacOS and iOS with VoiceOver, so we used `aria-controls` instead.\n * - [`aria-label`](https://www.w3.org/TR/wai-aria-1.1/#aria-label) is used on the expandable row button to provide a label for the button, since the button doesn't have any text content.\n */\nconst StoryMeta = {\n title: \"ZTable\",\n component: \"z-table\",\n args: {\n \"bordered\": true,\n \"--z-table--cells-padding\": \"16px\",\n },\n} satisfies Meta<ZTableStoriesArgs>;\n\nexport default StoryMeta;\n\nconst cellsTemplate = (count = 1): TemplateResult =>\n html`${repeat([...new Array(count)], () => html`<z-td>Contenuto cella</z-td>`)}`;\n\nexport const Default = {\n render: (args) =>\n html`<z-table\n class=\"z-table-demo\"\n .bordered=${args.bordered}\n style=${styleMap({\n \"--z-table--cells-padding\": args[\"--z-table--cells-padding\"],\n })}\n >\n <z-thead>\n <z-tr>${repeat([...new Array(8)], () => html`<z-th>Titolo colonna</z-th>`)}</z-tr>\n </z-thead>\n <z-tbody>${repeat([...new Array(5)], () => html`<z-tr>${cellsTemplate(8)}</z-tr>`)}</z-tbody>\n <z-tfoot>\n <z-tr>\n <z-td colspan=\"8\">Table footer</z-td>\n </z-tr>\n </z-tfoot>\n </z-table>`,\n};\n\n/**\n * Just set `expandable` prop on the `z-tr` element to make it expandable, then put an additional `z-td` as extended content.\n * If you put a clickable item as a child cell of a z-tr with `expandable` set to `true`, you need to set a \"prevent-expand\" class on that item, in order to prevent unwanted row expansions.\n */\nexport const ExpandableRows = {\n render: (args) =>\n html`<z-table\n class=\"z-table-demo\"\n .bordered=${args.bordered}\n style=${styleMap({\n \"--z-table--cells-padding\": args[\"--z-table--cells-padding\"],\n })}\n >\n <z-thead>\n <z-tr>${repeat([...new Array(8)], (_, index) => html`<z-th>Colonna ${index + 1}</z-th>`)}</z-tr>\n </z-thead>\n <z-tbody>\n <z-tr>\n <z-td>Contenuto cella</z-td>\n <z-td>Contenuto cella</z-td>\n <z-td show-menu>\n <span>Contenuto cella con menu</span>\n <div slot=\"contextual-menu\">Contenuto del popover</div></z-td\n >\n ${cellsTemplate(5)}\n </z-tr>\n <z-tr>${repeat([...new Array(8)], () => html`<z-td>Contenuto cella</z-td>`)}</z-tr>\n <z-tr expandable>\n <z-td>Contenuto cella</z-td>\n <z-td>Contenuto cella</z-td>\n <z-td>\n <span>Contenuto cella</span>\n <z-button\n class=\"prevent-expand\"\n onclick=\"alert('button clicked without expanding the row')\"\n icon=\"plus\"\n size=\"x-small\"\n ></z-button\n ></z-td>\n ${cellsTemplate(5)}\n <z-td>Contenuto espanso</z-td>\n </z-tr>\n <z-tr>${cellsTemplate(8)}</z-tr>\n <z-tr expandable>\n <z-td>Contenuto cella</z-td>\n <z-td show-menu=\"always\">\n <span>Contenuto cella con menu</span>\n <div slot=\"contextual-menu\">Contenuto del popover</div></z-td\n >\n ${cellsTemplate(6)}\n <z-td>Contenuto espanso</z-td>\n </z-tr>\n </z-tbody>\n <z-tfoot>\n <z-tr>\n <z-td colspan=\"8\">Table footer</z-td>\n </z-tr>\n </z-tfoot>\n </z-table>`,\n};\n\n/**\n * To make a column sticky, you need to set the `sticky` prop on the `z-th` and/or `z-td` elements of the same column.\n * For the header or footer, just set the `sticky` prop on the `z-thead` or `z-tfoot` element.\n */\nexport const Sticky = {\n args: {\n stickyHeader: true,\n stickyFooter: true,\n stickFirstColumn: true,\n },\n render: (args) =>\n html`<z-table\n class=\"z-table-demo\"\n .bordered=${args.bordered}\n style=${styleMap({\n \"--z-table--cells-padding\": args[\"--z-table--cells-padding\"],\n \"height\": \"400px\",\n })}\n >\n <z-thead .sticky=${args.stickyHeader}>\n <z-tr>\n <z-th .sticky=${args.stickFirstColumn}>Colonna 1</z-th>\n ${repeat([...new Array(7)], (_, index) => html`<z-th>Colonna ${index + 2}</z-th>`)}\n </z-tr>\n </z-thead>\n <z-tbody>\n <z-tr>\n <z-td .sticky=${args.stickFirstColumn}>Contenuto cella 1</z-td>\n <z-td>Contenuto cella</z-td>\n <z-td>Contenuto cella</z-td>\n <z-td show-menu>\n <span>Contenuto cella con menu</span>\n <div slot=\"contextual-menu\">Contenuto del popover</div></z-td\n >\n ${cellsTemplate(4)}\n </z-tr>\n ${repeat(\n [...new Array(5)],\n () =>\n html`<z-tr>\n <z-td .sticky=${args.stickFirstColumn}>Contenuto cella 1</z-td>\n ${cellsTemplate(7)}\n </z-tr>`\n )}\n <z-tr expandable>\n <z-td .sticky=${args.stickFirstColumn}>Contenuto cella 1</z-td>\n ${cellsTemplate(6)}\n <z-td>\n <span>Contenuto cella</span>\n <z-button\n class=\"prevent-expand\"\n onclick=\"alert('button clicked')\"\n icon=\"plus\"\n size=\"x-small\"\n ></z-button\n ></z-td>\n <z-td>Contenuto espanso</z-td>\n </z-tr>\n <z-tr expandable>\n <z-td .sticky=${args.stickFirstColumn}>Contenuto cella 1</z-td>\n ${cellsTemplate(7)}\n <z-td>Contenuto espanso</z-td>\n </z-tr>\n </z-tbody>\n <z-tfoot .sticky=${args.stickyFooter}>\n <z-tr>\n <z-td colspan=\"8\">Table footer</z-td>\n </z-tr>\n </z-tfoot>\n </z-table>`,\n};\n\n/**\n * Use the `showMenu` prop on `z-td` or `z-th`, setting a value of the enum `VisibilityCondition` (`HOVER` or `ALWAYS`), to show a contextual menu button on the cell. The content of the menu must be placed using the slot `contextual-menu`.\n * Use `popoverPosition` prop on `z-th` to set the position of contextual menu, default is `auto`.\n */\nexport const CellsWithContextualMenu = {\n argTypes: {\n showMenu: {\n control: {\n type: \"inline-radio\",\n labels: {\n null: \"hidden\",\n },\n },\n popoverPosition: {\n options: Object.values(PopoverPosition),\n control: {\n type: \"select\",\n },\n },\n options: [null, ...Object.values(VisibilityCondition)],\n },\n },\n args: {\n showMenu: VisibilityCondition.HOVER,\n popoverPosition: PopoverPosition.AUTO,\n },\n render: (args) =>\n html`<z-table\n class=\"z-table-demo\"\n .bordered=${args.bordered}\n style=${styleMap({\n \"--z-table--cells-padding\": args[\"--z-table--cells-padding\"],\n })}\n >\n <z-thead>\n <z-tr>\n <z-th>Colonna 1</z-th>\n <z-th\n .showMenu=${args.showMenu}\n .popoverPosition=${args.popoverPosition}\n >\n Heading con menu\n <div slot=\"contextual-menu\">Contenuto del popover</div>\n </z-th>\n <z-th>Colonna 2</z-th>\n </z-tr>\n </z-thead>\n <z-tbody>\n ${repeat(\n [...new Array(3)],\n () =>\n html`<z-tr>\n <z-td .showMenu=${args.showMenu}>\n <span>Contenuto cella con menu</span>\n <div slot=\"contextual-menu\">Contenuto del popover</div>\n </z-td>\n <z-td>Contenuto cella</z-td>\n <z-td .showMenu=${args.showMenu}>\n <span>Contenuto cella con menu</span>\n <div slot=\"contextual-menu\">Contenuto del popover</div>\n </z-td>\n </z-tr>`\n )}\n </z-tbody>\n </z-table>`,\n};\n\n/**\n * Set the `sortDirection` prop to `SortDirection.ASC` or `SortDirection.DESC` to enable sorting and show the sort button.\n * Clicking the button will fire the `sort` event with the `sortDirection` as detail.\n */\nexport const SortAction = {\n render: (args) =>\n html`<z-table\n class=\"z-table-demo\"\n .bordered=${args.bordered}\n style=${styleMap({\n \"--z-table--cells-padding\": args[\"--z-table--cells-padding\"],\n })}\n >\n <z-thead>\n <z-tr>\n <z-th>Colonna 1</z-th>\n <z-th\n .sortDirection=${SortDirection.ASC}\n .showMenu=${VisibilityCondition.HOVER}\n >\n Colonna 2 con menu e sorting\n <div slot=\"contextual-menu\">Contenuto del popover</div>\n </z-th>\n <z-th .sortDirection=${SortDirection.DESC}>Colonna 3 con sorting</z-th>\n </z-tr>\n </z-thead>\n <z-tbody>${repeat([...new Array(3)], () => html`<z-tr>${cellsTemplate(3)}</z-tr>`)}</z-tbody>\n </z-table>`,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/table/z-tbody/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAEjD;;;GAGG;AAMH,MAAM,OAAO,MAAM;IACjB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU;YACnB,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import {Component, Host, h} from \"@stencil/core\";\n\n/**\n * ZTbody component.\n * @slot - ZTbody content (`z-tr`).\n */\n@Component({\n tag: \"z-tbody\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTbody {\n render(): HTMLZTbodyElement {\n return (\n <Host role=\"rowgroup\">\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/table/z-tbody/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAEjD;;;GAGG;AAMH,MAAM,OAAO,MAAM;IACjB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU;YACnB,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import {Component, Host, h} from \"@stencil/core\";\n\n/**\n * ZTbody component.\n * @slot - ZTbody content (`z-tr`).\n */\n@Component({\n tag: \"z-tbody\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTbody {\n render(): HTMLZTbodyElement {\n return (\n <Host role=\"rowgroup\">\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/table/z-tfoot/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAEvD;;;GAGG;AAMH,MAAM,OAAO,MAAM;;sBAKR,KAAK;;IAEd,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU;YACnB,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Host, Prop, h} from \"@stencil/core\";\n\n/**\n * ZTFoot component.\n * @slot - ZTFoot content (`z-tr`).\n */\n@Component({\n tag: \"z-tfoot\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTfoot {\n /**\n * If true, the footer will be stuck to the bottom of the table.\n */\n @Prop({reflect: true})\n sticky = false;\n\n render(): void {\n return (\n <Host role=\"rowgroup\">\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/table/z-tfoot/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAEvD;;;GAGG;AAMH,MAAM,OAAO,MAAM;;sBAKR,KAAK;;IAEd,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU;YACnB,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Host, Prop, h} from \"@stencil/core\";\n\n/**\n * ZTFoot component.\n * @slot - ZTFoot content (`z-tr`).\n */\n@Component({\n tag: \"z-tfoot\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTfoot {\n /**\n * If true, the footer will be stuck to the bottom of the table.\n */\n @Prop({reflect: true})\n sticky = false;\n\n render(): void {\n return (\n <Host role=\"rowgroup\">\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/table/z-thead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAEvD;;;GAGG;AAMH,MAAM,OAAO,MAAM;;sBAKR,KAAK;;IAEd,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU;YACnB,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Host, Prop, h} from \"@stencil/core\";\n\n/**\n * ZThead component.\n * @slot - ZThead content (`z-tr`).\n */\n@Component({\n tag: \"z-thead\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZThead {\n /**\n * If true, the header will be stuck to the top of the table.\n */\n @Prop({reflect: true})\n sticky = false;\n\n render(): HTMLZTheadElement {\n return (\n <Host role=\"rowgroup\">\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/table/z-thead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAEvD;;;GAGG;AAMH,MAAM,OAAO,MAAM;;sBAKR,KAAK;;IAEd,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU;YACnB,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Host, Prop, h} from \"@stencil/core\";\n\n/**\n * ZThead component.\n * @slot - ZThead content (`z-tr`).\n */\n@Component({\n tag: \"z-thead\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZThead {\n /**\n * If true, the header will be stuck to the top of the table.\n */\n @Prop({reflect: true})\n sticky = false;\n\n render(): HTMLZTheadElement {\n return (\n <Host role=\"rowgroup\">\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/table/z-tr/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAC3G,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAE7B;;;;;GAKG;AAMH,MAAM,OAAO,GAAG;;0BAaD,KAAK;wBAMP,KAAK;;;IAeN,aAAa;QACrB,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAkC,YAAY,CAAC,CAAC,CAAC;QACpG,IAAI,IAAI,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AQ,EAAE,IAAI,CAAC,QAAQ;YAEvB,4DAAK,KAAK,EAAC,+BAA+B,IACvC,IAAI,CAAC,UAAU,IAAI,CAClB,gFACiB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,gBACnC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,mBAC7C,IAAI,CAAC,mBAAmB,EACvC,IAAI,EAAC,QAAQ;gBAEb,+DAAQ,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,GAAW,CAClE,CACV,CACG;YACN,6DAAM,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS,CACrD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {randomId} from \"../../../utils/utils\";\nimport \"../cells/z-td/index\";\nimport \"../cells/z-th/index\";\n\n/**\n * ZTr component.\n * When the row is `expandable`, you can set the `prevent-expand` css class on an interactive element inside the row\n * to prevent the row from expanding.\n * @slot - ZTr content (`z-td` or `z-th`).\n */\n@Component({\n tag: \"z-tr\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTr {\n @Element() host: HTMLZTrElement;\n\n /**\n * Whether the row is expandable.\n * Use a `z-td` as the last cell of the row for the additional content.\n * It will show a button to expand/collapse the row.\n * The last cell will be hidden until the button or row is clicked.\n *\n * If some element inside the expandable row contains the `prevent-expand` css class,\n * the row will not expand by clicking that element.\n */\n @Prop({reflect: true})\n expandable = false;\n\n /**\n * Whether the row is currently expanded.\n */\n @State()\n expanded = false;\n\n /**\n * HTML Id of the expandable content.\n * It is used to link the button to the content through the `aria-controls` attribute.\n */\n @State()\n expandableContentId: string;\n\n /** Row has been expanded */\n @Event()\n expand: EventEmitter;\n\n @Watch(\"expandable\")\n @Listen(\"colspanchange\")\n protected updateColumns(): void {\n const cells = Array.from(this.host.querySelectorAll<HTMLZTdElement | HTMLZThElement>(\"z-td, z-th\"));\n if (this.expandable) {\n cells.pop();\n }\n\n const columns = cells.map((cell) => cell.colspan || 1).reduce((a, b) => a + b, 0);\n this.host.style.setProperty(\"--columns\", `${columns}`);\n\n if (this.expandable) {\n const expandableContent = cells.pop();\n expandableContent.id = expandableContent.id || `z-tr-expandable-content-${randomId()}`;\n this.expandableContentId = expandableContent.id;\n }\n }\n\n /**\n * Handle click on row.\n * Skip expansion if the click is on a element with `prevent-expand` css class.\n */\n private onRowClick(event: MouseEvent): void {\n const preventExpand = (event.target as HTMLElement).closest(\".prevent-expand\");\n if (!this.expandable || preventExpand) {\n return;\n }\n\n this.expanded = !this.expanded;\n this.expand.emit({expanded: this.expanded});\n }\n\n componentWillLoad(): void {\n this.updateColumns();\n }\n\n render(): HTMLZTrElement {\n return (\n <Host\n role=\"row\"\n onClick={this.onRowClick.bind(this)}\n expanded={this.expanded}\n >\n <div class=\"z-tr--expand-button-container\">\n {this.expandable && (\n <button\n aria-expanded={this.expanded ? \"true\" : \"false\"}\n aria-label={this.expanded ? \"Comprimi riga\" : \"Espandi riga\"}\n aria-controls={this.expandableContentId}\n type=\"button\"\n >\n <z-icon name={this.expanded ? \"minus-circled\" : \"plus-circled\"}></z-icon>\n </button>\n )}\n </div>\n <slot onSlotchange={this.updateColumns.bind(this)}></slot>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/table/z-tr/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAC3G,OA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C;QAC/B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAC,CAAC,CAAC;IAC9C,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EACnC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YAEvB,4DAAK,KAAK,EAAC,+BAA+B,IACvC,IAAI,CAAC,UAAU,IAAI,CAClB,gFACiB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,gBACnC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,mBAC7C,IAAI,CAAC,mBAAmB,EACvC,IAAI,EAAC,QAAQ;gBAEb,+DAAQ,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,GAAW,CAClE,CACV,CACG;YACN,6DAAM,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS,CACrD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {randomId} from \"../../../utils/utils\";\nimport \"../cells/z-td/index\";\nimport \"../cells/z-th/index\";\n\n/**\n * ZTr component.\n * When the row is `expandable`, you can set the `prevent-expand` css class on an interactive element inside the row\n * to prevent the row from expanding.\n * @slot - ZTr content (`z-td` or `z-th`).\n */\n@Component({\n tag: \"z-tr\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTr {\n @Element() host: HTMLZTrElement;\n\n /**\n * Whether the row is expandable.\n * Use a `z-td` as the last cell of the row for the additional content.\n * It will show a button to expand/collapse the row.\n * The last cell will be hidden until the button or row is clicked.\n *\n * If some element inside the expandable row contains the `prevent-expand` css class,\n * the row will not expand by clicking that element.\n */\n @Prop({reflect: true})\n expandable = false;\n\n /**\n * Whether the row is currently expanded.\n */\n @State()\n expanded = false;\n\n /**\n * HTML Id of the expandable content.\n * It is used to link the button to the content through the `aria-controls` attribute.\n */\n @State()\n expandableContentId: string;\n\n /** Row has been expanded */\n @Event()\n expand: EventEmitter;\n\n @Watch(\"expandable\")\n @Listen(\"colspanchange\")\n protected updateColumns(): void {\n const cells = Array.from(this.host.querySelectorAll<HTMLZTdElement | HTMLZThElement>(\"z-td, z-th\"));\n if (this.expandable) {\n cells.pop();\n }\n\n const columns = cells.map((cell) => cell.colspan || 1).reduce((a, b) => a + b, 0);\n this.host.style.setProperty(\"--columns\", `${columns}`);\n\n if (this.expandable) {\n const expandableContent = cells.pop();\n expandableContent.id = expandableContent.id || `z-tr-expandable-content-${randomId()}`;\n this.expandableContentId = expandableContent.id;\n }\n }\n\n /**\n * Handle click on row.\n * Skip expansion if the click is on a element with `prevent-expand` css class.\n */\n private onRowClick(event: MouseEvent): void {\n const preventExpand = (event.target as HTMLElement).closest(\".prevent-expand\");\n if (!this.expandable || preventExpand) {\n return;\n }\n\n this.expanded = !this.expanded;\n this.expand.emit({expanded: this.expanded});\n }\n\n componentWillLoad(): void {\n this.updateColumns();\n }\n\n render(): HTMLZTrElement {\n return (\n <Host\n role=\"row\"\n onClick={this.onRowClick.bind(this)}\n expanded={this.expanded}\n >\n <div class=\"z-tr--expand-button-container\">\n {this.expandable && (\n <button\n aria-expanded={this.expanded ? \"true\" : \"false\"}\n aria-label={this.expanded ? \"Comprimi riga\" : \"Espandi riga\"}\n aria-controls={this.expandableContentId}\n type=\"button\"\n >\n <z-icon name={this.expanded ? \"minus-circled\" : \"plus-circled\"}></z-icon>\n </button>\n )}\n </div>\n <slot onSlotchange={this.updateColumns.bind(this)}></slot>\n </Host>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-accordion/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAE1D;;;;;;;;;;;;;;;GAeG;AAMH,MAAM,OAAO,UAAU;;;;oBAiBd,WAAW,CAAC,GAAG;0BAMT,KAAK;oBAMX,KAAK;yBAMA,KAAK;uBAMW,gBAAgB,CAAC,OAAO;sBAM3C,IAAI;;IASH,gBAAgB;QACxB,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QACpB,CAAC;IACH,CAAC;IAID;;;;OAIG;IACK,eAAe;QACrB,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;YAClB,IAAI,CAAC,UAAU,CAAC,IAAI,GAAG,KAAK,CAAC;YAE7B,OAAO;QACT,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QACjC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,MAAM;QACJ,OAAO,CACL,gEACE,GAAG,EAAE,CAAC,GAAuB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,EACzD,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,IAAI,EAAE,IAAI,CAAC,IAAI;YAEf,gEACE,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EACrC,IAAI,EAAC,SAAS;gBAEb,IAAI,CAAC,IAAI,IAAI,CACZ,+DACE,KAAK,EAAC,wBAAwB,EAC9B,IAAI,EAAE,IAAI,CAAC,IAAI,GACf,CACH;gBACD,6DAAM,KAAK,EAAC,mBAAmB,IAAE,IAAI,CAAC,KAAK,CAAQ;gBACnD,6DAAM,KAAK,EAAC,kBAAkB;oBAC5B,6DAAM,IAAI,EAAC,KAAK,GAAG,CACd;gBACP,+DACE,KAAK,EAAC,qBAAqB,EAC3B,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,GAC/C,CACM;YACT,CAAC,IAAI,CAAC,UAAU,IAAI,CACnB,4DACE,KAAK,EAAC,qBAAqB,EAC3B,IAAI,EAAC,SAAS;gBAEd,8DAAQ,CACJ,CACP,CACO,CACX,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Event, EventEmitter, Prop, Watch, h} from \"@stencil/core\";\nimport {AccordionVariant, ControlSize} from \"../../beans\";\n\n/**\n * Accordion component.\n *\n * @slot - Slot for the main content.\n * @slot tag - Slot for tags.\n * @cssprop --z-accordion-highlight-color - Color of the highlight band on the summary's left edge. Only applies when `highlight` is true. Default: `transparent`.\n * @cssprop --z-accordion-bg - Background color of the summary. Default: `--color-surface02`.\n * @cssprop --z-accordion-label-color - Label color. Default: `--color-default-text`.\n * @cssprop --z-accordion-disabled-label-color - Label color when disabled. Default: `--color-text03`.\n * @cssprop --z-accordion-content-bg - Background color of the accordion. Default: `--color-surface02`.\n * @cssprop --z-accordion-content-fg - Content text color. Default: `--color-default-text`.\n * @cssprop --z-accordion-hover-color - Hover color of the summary. Default: `--color-surface03`.\n * @cssprop --z-accordion-left-padding - Left padding of the summary. Default: `--space-unit` * 2.\n * @cssprop --z-accordion-right-padding - Right padding of the summary. Default: `--space-unit`.\n * @cssprop --z-accordion-label-font-weight - Font weight of the summary label. Default: `--font-sb`.\n */\n@Component({\n tag: \"z-accordion\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZAccordion {\n /**\n * Text label.\n */\n @Prop()\n label: string;\n\n /**\n * Name of the z-icon to display before the label's text.\n */\n @Prop()\n icon: string;\n\n /**\n * Size of the component.\n */\n @Prop({reflect: true})\n size = ControlSize.BIG;\n\n /**\n * Disabled state of the accordion.\n */\n @Prop({reflect: true})\n isDisabled = false;\n\n /**\n * The open state of the accordion.\n */\n @Prop({reflect: true, mutable: true})\n open = false;\n\n /**\n * Enable highlight band on the `summary`'s left edge.\n */\n @Prop({reflect: true})\n highlight = false;\n\n /**\n * Accordion variant.\n */\n @Prop({reflect: true})\n variant: AccordionVariant = AccordionVariant.DEFAULT;\n\n /**\n * Enable box-shadow on the accordion. Only applies when `variant` is `BACKGROUND`.\n */\n @Prop({reflect: true})\n shadow = true;\n\n /**\n * Event fired when the accordion is toggled.\n */\n @Event()\n toggled: EventEmitter<boolean>;\n\n @Watch(\"isDisabled\")\n protected onDisabledChange(): void {\n if (this.isDisabled) {\n this.open = false;\n }\n }\n\n private detailsElm: HTMLDetailsElement;\n\n /**\n * Handle `details` element toggle.\n * If currently disabled, prevent toggling by forcing the `open` state to `false`.\n * Unfortunately the \"toggle\" event is not cancelable and when catched, the `open` state is already changed.\n */\n private onDetailsToggle(): void {\n if (this.isDisabled) {\n this.open = false;\n this.detailsElm.open = false;\n\n return;\n }\n\n this.open = this.detailsElm.open;\n this.toggled.emit(this.open);\n }\n\n render(): HTMLDetailsElement {\n return (\n <details\n ref={(elm: HTMLDetailsElement) => (this.detailsElm = elm)}\n onToggle={this.onDetailsToggle.bind(this)}\n open={this.open}\n >\n <summary\n tabIndex={this.isDisabled ? -1 : null}\n part=\"summary\"\n >\n {this.icon && (\n <z-icon\n class=\"z-accordion-label-icon\"\n name={this.icon}\n />\n )}\n <span class=\"z-accordion-label\">{this.label}</span>\n <span class=\"z-accordion-tags\">\n <slot name=\"tag\" />\n </span>\n <z-icon\n class=\"z-accordion-chevron\"\n name={this.open ? \"chevron-up\" : \"chevron-down\"}\n />\n </summary>\n {!this.isDisabled && (\n <div\n class=\"z-accordion-content\"\n part=\"content\"\n >\n <slot />\n </div>\n )}\n </details>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-accordion/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAE1D;;;;;;;;;;;;;;;GAeG;AAMH,MAAM,OAAO,UAAU;;;;oBAiBd,WAAW,CAAC,GAAG;0BAMT,KAAK;oBAMX,KAAK;yBAMA,KAAK;uBAMW,gBAAgB,CAAC,OAAO;sBAM3C,IAAI;;IASH,gBAAgB;QACxB,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QACpB,CAAC;IACH,CAAC;IAID;;;;OAIG;IACK,eAAe;QACrB,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;YAClB,IAAI,CAAC,UAAU,CAAC,IAAI,GAAG,KAAK,CAAC;YAE7B,OAAO;QACT,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QACjC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,MAAM;QACJ,OAAO,CACL,gEACE,GAAG,EAAE,CAAC,GAAuB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,EACzD,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,IAAI,EAAE,IAAI,CAAC,IAAI;YAEf,gEACE,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EACrC,IAAI,EAAC,SAAS;gBAEb,IAAI,CAAC,IAAI,IAAI,CACZ,+DACE,KAAK,EAAC,wBAAwB,EAC9B,IAAI,EAAE,IAAI,CAAC,IAAI,GACf,CACH;gBACD,6DAAM,KAAK,EAAC,mBAAmB,IAAE,IAAI,CAAC,KAAK,CAAQ;gBACnD,6DAAM,KAAK,EAAC,kBAAkB;oBAC5B,6DAAM,IAAI,EAAC,KAAK,GAAG,CACd;gBACP,+DACE,KAAK,EAAC,qBAAqB,EAC3B,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,GAC/C,CACM;YACT,CAAC,IAAI,CAAC,UAAU,IAAI,CACnB,4DACE,KAAK,EAAC,qBAAqB,EAC3B,IAAI,EAAC,SAAS;gBAEd,8DAAQ,CACJ,CACP,CACO,CACX,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Event, EventEmitter, Prop, Watch, h} from \"@stencil/core\";\nimport {AccordionVariant, ControlSize} from \"../../beans\";\n\n/**\n * Accordion component.\n *\n * @slot - Slot for the main content.\n * @slot tag - Slot for tags.\n * @cssprop --z-accordion-highlight-color - Color of the highlight band on the summary's left edge. Only applies when `highlight` is true. Default: `transparent`.\n * @cssprop --z-accordion-bg - Background color of the summary. Default: `--color-surface02`.\n * @cssprop --z-accordion-label-color - Label color. Default: `--color-default-text`.\n * @cssprop --z-accordion-disabled-label-color - Label color when disabled. Default: `--color-text03`.\n * @cssprop --z-accordion-content-bg - Background color of the accordion. Default: `--color-surface02`.\n * @cssprop --z-accordion-content-fg - Content text color. Default: `--color-default-text`.\n * @cssprop --z-accordion-hover-color - Hover color of the summary. Default: `--color-surface03`.\n * @cssprop --z-accordion-left-padding - Left padding of the summary. Default: `--space-unit` * 2.\n * @cssprop --z-accordion-right-padding - Right padding of the summary. Default: `--space-unit`.\n * @cssprop --z-accordion-label-font-weight - Font weight of the summary label. Default: `--font-sb`.\n */\n@Component({\n tag: \"z-accordion\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZAccordion {\n /**\n * Text label.\n */\n @Prop()\n label: string;\n\n /**\n * Name of the z-icon to display before the label's text.\n */\n @Prop()\n icon: string;\n\n /**\n * Size of the component.\n */\n @Prop({reflect: true})\n size = ControlSize.BIG;\n\n /**\n * Disabled state of the accordion.\n */\n @Prop({reflect: true})\n isDisabled = false;\n\n /**\n * The open state of the accordion.\n */\n @Prop({reflect: true, mutable: true})\n open = false;\n\n /**\n * Enable highlight band on the `summary`'s left edge.\n */\n @Prop({reflect: true})\n highlight = false;\n\n /**\n * Accordion variant.\n */\n @Prop({reflect: true})\n variant: AccordionVariant = AccordionVariant.DEFAULT;\n\n /**\n * Enable box-shadow on the accordion. Only applies when `variant` is `BACKGROUND`.\n */\n @Prop({reflect: true})\n shadow = true;\n\n /**\n * Event fired when the accordion is toggled.\n */\n @Event()\n toggled: EventEmitter<boolean>;\n\n @Watch(\"isDisabled\")\n protected onDisabledChange(): void {\n if (this.isDisabled) {\n this.open = false;\n }\n }\n\n private detailsElm: HTMLDetailsElement;\n\n /**\n * Handle `details` element toggle.\n * If currently disabled, prevent toggling by forcing the `open` state to `false`.\n * Unfortunately the \"toggle\" event is not cancelable and when catched, the `open` state is already changed.\n */\n private onDetailsToggle(): void {\n if (this.isDisabled) {\n this.open = false;\n this.detailsElm.open = false;\n\n return;\n }\n\n this.open = this.detailsElm.open;\n this.toggled.emit(this.open);\n }\n\n render(): HTMLDetailsElement {\n return (\n <details\n ref={(elm: HTMLDetailsElement) => (this.detailsElm = elm)}\n onToggle={this.onDetailsToggle.bind(this)}\n open={this.open}\n >\n <summary\n tabIndex={this.isDisabled ? -1 : null}\n part=\"summary\"\n >\n {this.icon && (\n <z-icon\n class=\"z-accordion-label-icon\"\n name={this.icon}\n />\n )}\n <span class=\"z-accordion-label\">{this.label}</span>\n <span class=\"z-accordion-tags\">\n <slot name=\"tag\" />\n </span>\n <z-icon\n class=\"z-accordion-chevron\"\n name={this.open ? \"chevron-up\" : \"chevron-down\"}\n />\n </summary>\n {!this.isDisabled && (\n <div\n class=\"z-accordion-content\"\n part=\"content\"\n >\n <slot />\n </div>\n )}\n </details>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-accordion/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAsB,MAAM,KAAK,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAC,KAAK,EAAC,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAmB,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACrF,OAAO,gBAAgB,CAAC;AACxB,OAAO,SAAS,CAAC;AAEjB,MAAM,YAAY,GAAG;IACnB,kBAAkB,EAAE,sBAAsB,CAAC,IAAI,CAAC;IAChD,2BAA2B,EAAE,sBAAsB,CAA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C,2BAA2B,CAAC;QAC9D,oCAAoC,EAAE,IAAI,CAAC,oCAAoC,CAAC;QAChF,0BAA0B,EAAE,IAAI,CAAC,0BAA0B,CAAC;QAC5D,0BAA0B,EAAE,IAAI,CAAC,0BAA0B,CAAC;QAC5D,2BAA2B,EAAE,IAAI,CAAC,2BAA2B,CAAC;QAC9D,6BAA6B,EAAE,IAAI,CAAC,6BAA6B,CAAC;QAClE,4BAA4B,EAAE,IAAI,CAAC,4BAA4B,CAAC;QAChE,iCAAiC,EAAE,IAAI,CAAC,iCAAiC,CAAC;KAC3E,CAAC;;;;;;;;;;;GAWL;CACc,CAAC","sourcesContent":["import {Args, Meta, StoryObj} from \"@storybook/web-components\";\nimport {html, type TemplateResult} from \"lit\";\nimport {styleMap} from \"lit/directives/style-map.js\";\nimport {type ZAccordion} from \".\";\nimport {AccordionVariant, ControlSize} from \"../../beans\";\nimport {ICONS} from \"../../constants/iconset\";\nimport {CSSVarsArguments, getColorTokenArgConfig} from \"../../utils/storybook-utils\";\nimport \"../z-tag/index\";\nimport \"./index\";\n\nconst cssPropsArgs = {\n \"--z-accordion-bg\": getColorTokenArgConfig(true),\n \"--z-accordion-label-color\": getColorTokenArgConfig(true),\n \"--z-accordion-disabled-label-color\": {\n ...getColorTokenArgConfig(true),\n if: {\n arg: \"isDisabled\",\n truthy: true,\n },\n },\n \"--z-accordion-content-bg\": getColorTokenArgConfig(true),\n \"--z-accordion-content-fg\": getColorTokenArgConfig(true),\n \"--z-accordion-hover-color\": getColorTokenArgConfig(true),\n \"--z-accordion-highlight-color\": {\n ...getColorTokenArgConfig(true),\n if: {\n arg: \"highlight\",\n truthy: true,\n },\n },\n} as const;\n\ntype ZAccordionStoriesArgs = ZAccordion &\n CSSVarsArguments<\n | keyof typeof cssPropsArgs\n | `z-accordion-${\"left\" | \"right\"}-padding`\n | \"z-accordion-label-font-weight\"\n | `z-accordion-highlight-color${number | undefined}`\n >;\n\n/**\n * To add the highlight band on the left, set the `highlight` property to `true` then set the `--z-accordion-highlight-color` CSS variable to the desired color.\n */\nconst StoryMeta = {\n title: \"ZAccordion\",\n component: \"z-accordion\",\n argTypes: {\n ...cssPropsArgs,\n icon: {\n options: [null, ...Object.keys(ICONS).sort()],\n control: {\n type: \"select\",\n labels: {\n null: \"—\",\n },\n },\n },\n shadow: {\n if: {\n arg: \"variant\",\n eq: AccordionVariant.BACKGROUND,\n },\n },\n size: {\n options: Object.values(ControlSize),\n control: {\n type: \"inline-radio\",\n },\n },\n variant: {\n options: Object.values(AccordionVariant),\n control: {\n type: \"inline-radio\",\n },\n },\n },\n args: {\n \"--z-accordion-bg\": null,\n \"--z-accordion-label-color\": null,\n \"--z-accordion-disabled-label-color\": null,\n \"--z-accordion-content-bg\": null,\n \"--z-accordion-content-fg\": null,\n \"--z-accordion-hover-color\": null,\n \"--z-accordion-highlight-color\": null,\n \"--z-accordion-right-padding\": \"var(--space-unit)\",\n \"--z-accordion-left-padding\": \"calc(var(--space-unit) * 2)\",\n \"--z-accordion-label-font-weight\": \"var(--font-sb)\",\n \"highlight\": false,\n \"icon\": null,\n \"isDisabled\": false,\n \"label\": \"Text label\",\n \"open\": false,\n \"shadow\": true,\n \"size\": ControlSize.BIG,\n \"variant\": AccordionVariant.DEFAULT,\n },\n render: (args: Args): TemplateResult =>\n html`<z-accordion\n .highlight=${args.highlight}\n .icon=${args.icon}\n .isDisabled=${args.isDisabled}\n .open=${args.open}\n .shadow=${args.shadow}\n label=${args.label}\n size=${args.size}\n variant=${args.variant}\n style=${styleMap({\n \"--z-accordion-highlight-color\": args[\"--z-accordion-highlight-color\"],\n \"--z-accordion-bg\": args[\"--z-accordion-bg\"],\n \"--z-accordion-label-color\": args[\"--z-accordion-label-color\"],\n \"--z-accordion-disabled-label-color\": args[\"--z-accordion-disabled-label-color\"],\n \"--z-accordion-content-bg\": args[\"--z-accordion-content-bg\"],\n \"--z-accordion-content-fg\": args[\"--z-accordion-content-fg\"],\n \"--z-accordion-hover-color\": args[\"--z-accordion-hover-color\"],\n \"--z-accordion-right-padding\": args[\"--z-accordion-right-padding\"],\n \"--z-accordion-left-padding\": args[\"--z-accordion-left-padding\"],\n \"--z-accordion-label-font-weight\": args[\"--z-accordion-label-font-weight\"],\n })}\n >\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in Archimede,\n qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit? Possumusne ergo in vita\n summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo affectus, exul, orbus, egens,\n torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo, oblivisci non possum quae volo. Nec vero\n sum nescius esse utilitatem in historia, non modo voluptatem.\n </z-accordion>`,\n} satisfies Meta<ZAccordionStoriesArgs>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZAccordionStoriesArgs>;\n\nexport const Default = {};\n\n/**\n * When multiple `ZAccordion`s are placed in stack, the style is automatically optimized through global styles.\n */\nexport const Stack = {\n argTypes: {\n \"--z-accordion-highlight-color2\": cssPropsArgs[\"--z-accordion-highlight-color\"],\n \"--z-accordion-highlight-color3\": cssPropsArgs[\"--z-accordion-highlight-color\"],\n \"--z-accordion-highlight-color4\": cssPropsArgs[\"--z-accordion-highlight-color\"],\n },\n args: {\n \"--z-accordion-highlight-color2\": null,\n \"--z-accordion-highlight-color3\": null,\n \"--z-accordion-highlight-color4\": null,\n },\n parameters: {\n controls: {\n exclude: [\"open\"],\n },\n },\n render: (args) =>\n html`${[\n StoryMeta.render(args),\n StoryMeta.render({\n ...args,\n \"--z-accordion-highlight-color\": args[\"--z-accordion-highlight-color2\"],\n }),\n StoryMeta.render({\n ...args,\n \"--z-accordion-highlight-color\": args[\"--z-accordion-highlight-color3\"],\n }),\n StoryMeta.render({\n ...args,\n \"--z-accordion-highlight-color\": args[\"--z-accordion-highlight-color4\"],\n }),\n ]}`,\n} satisfies Story;\n\nexport const WithTags = {\n render: (args) => html`\n <z-accordion\n .highlight=${args.highlight}\n .icon=${args.icon}\n .isDisabled=${args.isDisabled}\n .open=${args.open}\n .shadow=${args.shadow}\n label=${args.label}\n size=${args.size}\n variant=${args.variant}\n style=${styleMap({\n \"--z-accordion-highlight-color\": args[\"--z-accordion-highlight-color\"],\n \"--z-accordion-bg\": args[\"--z-accordion-bg\"],\n \"--z-accordion-label-color\": args[\"--z-accordion-label-color\"],\n \"--z-accordion-disabled-label-color\": args[\"--z-accordion-disabled-label-color\"],\n \"--z-accordion-content-bg\": args[\"--z-accordion-content-bg\"],\n \"--z-accordion-content-fg\": args[\"--z-accordion-content-fg\"],\n \"--z-accordion-hover-color\": args[\"--z-accordion-hover-color\"],\n \"--z-accordion-right-padding\": args[\"--z-accordion-right-padding\"],\n \"--z-accordion-left-padding\": args[\"--z-accordion-left-padding\"],\n \"--z-accordion-label-font-weight\": args[\"--z-accordion-label-font-weight\"],\n })}\n >\n <z-tag slot=\"tag\">Tag 1</z-tag>\n <z-tag slot=\"tag\">Tag 2</z-tag>\n <z-tag slot=\"tag\">Tag 3</z-tag>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in Archimede,\n qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit? Possumusne ergo in vita\n summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo affectus, exul, orbus, egens,\n torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo, oblivisci non possum quae volo. Nec vero\n sum nescius esse utilitatem in historia, non modo voluptatem.\n </z-accordion>\n `,\n} satisfies Story;\n"]}
1
+ {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../src/components/z-accordion/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAsB,MAAM,KAAK,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAC,K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IAAI;gBACP,IAAI,CAAC,MAAM;cACb,IAAI,CAAC,KAAK;aACX,IAAI,CAAC,IAAI;gBACN,IAAI,CAAC,OAAO;cACd,QAAQ,CAAC;QACf,+BAA+B,EAAE,IAAI,CAAC,+BAA+B,CAAC;QACtE,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,CAAC;QAC5C,2BAA2B,EAAE,IAAI,CAAC,2BAA2B,CAAC;QAC9D,oCAAoC,EAAE,IAAI,CAAC,oCAAoC,CAAC;QAChF,0BAA0B,EAAE,IAAI,CAAC,0BAA0B,CAAC;QAC5D,0BAA0B,EAAE,IAAI,CAAC,0BAA0B,CAAC;QAC5D,2BAA2B,EAAE,IAAI,CAAC,2BAA2B,CAAC;QAC9D,6BAA6B,EAAE,IAAI,CAAC,6BAA6B,CAAC;QAClE,4BAA4B,EAAE,IAAI,CAAC,4BAA4B,CAAC;QAChE,iCAAiC,EAAE,IAAI,CAAC,iCAAiC,CAAC;KAC3E,CAAC;;;;;;;;;;;GAWL;CACc,CAAC","sourcesContent":["import {Args, Meta, StoryObj} from \"@storybook/web-components\";\nimport {html, type TemplateResult} from \"lit\";\nimport {styleMap} from \"lit/directives/style-map.js\";\nimport {type ZAccordion} from \".\";\nimport {AccordionVariant, ControlSize} from \"../../beans\";\nimport {ICONS} from \"../../constants/iconset\";\nimport {CSSVarsArguments, getColorTokenArgConfig} from \"../../utils/storybook-utils\";\nimport \"../z-tag/index\";\nimport \"./index\";\n\nconst cssPropsArgs = {\n \"--z-accordion-bg\": getColorTokenArgConfig(true),\n \"--z-accordion-label-color\": getColorTokenArgConfig(true),\n \"--z-accordion-disabled-label-color\": {\n ...getColorTokenArgConfig(true),\n if: {\n arg: \"isDisabled\",\n truthy: true,\n },\n },\n \"--z-accordion-content-bg\": getColorTokenArgConfig(true),\n \"--z-accordion-content-fg\": getColorTokenArgConfig(true),\n \"--z-accordion-hover-color\": getColorTokenArgConfig(true),\n \"--z-accordion-highlight-color\": {\n ...getColorTokenArgConfig(true),\n if: {\n arg: \"highlight\",\n truthy: true,\n },\n },\n} as const;\n\ntype ZAccordionStoriesArgs = ZAccordion &\n CSSVarsArguments<\n | keyof typeof cssPropsArgs\n | `z-accordion-${\"left\" | \"right\"}-padding`\n | \"z-accordion-label-font-weight\"\n | `z-accordion-highlight-color${number | undefined}`\n >;\n\n/**\n * To add the highlight band on the left, set the `highlight` property to `true` then set the `--z-accordion-highlight-color` CSS variable to the desired color.\n */\nconst StoryMeta = {\n title: \"ZAccordion\",\n component: \"z-accordion\",\n argTypes: {\n ...cssPropsArgs,\n icon: {\n options: [null, ...Object.keys(ICONS).sort()],\n control: {\n type: \"select\",\n labels: {\n null: \"—\",\n },\n },\n },\n shadow: {\n if: {\n arg: \"variant\",\n eq: AccordionVariant.BACKGROUND,\n },\n },\n size: {\n options: Object.values(ControlSize),\n control: {\n type: \"inline-radio\",\n },\n },\n variant: {\n options: Object.values(AccordionVariant),\n control: {\n type: \"inline-radio\",\n },\n },\n },\n args: {\n \"--z-accordion-bg\": null,\n \"--z-accordion-label-color\": null,\n \"--z-accordion-disabled-label-color\": null,\n \"--z-accordion-content-bg\": null,\n \"--z-accordion-content-fg\": null,\n \"--z-accordion-hover-color\": null,\n \"--z-accordion-highlight-color\": null,\n \"--z-accordion-right-padding\": \"var(--space-unit)\",\n \"--z-accordion-left-padding\": \"calc(var(--space-unit) * 2)\",\n \"--z-accordion-label-font-weight\": \"var(--font-sb)\",\n \"highlight\": false,\n \"icon\": null,\n \"isDisabled\": false,\n \"label\": \"Text label\",\n \"open\": false,\n \"shadow\": true,\n \"size\": ControlSize.BIG,\n \"variant\": AccordionVariant.DEFAULT,\n },\n render: (args: Args): TemplateResult =>\n html`<z-accordion\n .highlight=${args.highlight}\n .icon=${args.icon}\n .isDisabled=${args.isDisabled}\n .open=${args.open}\n .shadow=${args.shadow}\n label=${args.label}\n size=${args.size}\n variant=${args.variant}\n style=${styleMap({\n \"--z-accordion-highlight-color\": args[\"--z-accordion-highlight-color\"],\n \"--z-accordion-bg\": args[\"--z-accordion-bg\"],\n \"--z-accordion-label-color\": args[\"--z-accordion-label-color\"],\n \"--z-accordion-disabled-label-color\": args[\"--z-accordion-disabled-label-color\"],\n \"--z-accordion-content-bg\": args[\"--z-accordion-content-bg\"],\n \"--z-accordion-content-fg\": args[\"--z-accordion-content-fg\"],\n \"--z-accordion-hover-color\": args[\"--z-accordion-hover-color\"],\n \"--z-accordion-right-padding\": args[\"--z-accordion-right-padding\"],\n \"--z-accordion-left-padding\": args[\"--z-accordion-left-padding\"],\n \"--z-accordion-label-font-weight\": args[\"--z-accordion-label-font-weight\"],\n })}\n >\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in Archimede,\n qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit? Possumusne ergo in vita\n summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo affectus, exul, orbus, egens,\n torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo, oblivisci non possum quae volo. Nec vero\n sum nescius esse utilitatem in historia, non modo voluptatem.\n </z-accordion>`,\n} satisfies Meta<ZAccordionStoriesArgs>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZAccordionStoriesArgs>;\n\nexport const Default = {};\n\n/**\n * When multiple `ZAccordion`s are placed in stack, the style is automatically optimized through global styles.\n */\nexport const Stack = {\n argTypes: {\n \"--z-accordion-highlight-color2\": cssPropsArgs[\"--z-accordion-highlight-color\"],\n \"--z-accordion-highlight-color3\": cssPropsArgs[\"--z-accordion-highlight-color\"],\n \"--z-accordion-highlight-color4\": cssPropsArgs[\"--z-accordion-highlight-color\"],\n },\n args: {\n \"--z-accordion-highlight-color2\": null,\n \"--z-accordion-highlight-color3\": null,\n \"--z-accordion-highlight-color4\": null,\n },\n parameters: {\n controls: {\n exclude: [\"open\"],\n },\n },\n render: (args) =>\n html`${[\n StoryMeta.render(args),\n StoryMeta.render({\n ...args,\n \"--z-accordion-highlight-color\": args[\"--z-accordion-highlight-color2\"],\n }),\n StoryMeta.render({\n ...args,\n \"--z-accordion-highlight-color\": args[\"--z-accordion-highlight-color3\"],\n }),\n StoryMeta.render({\n ...args,\n \"--z-accordion-highlight-color\": args[\"--z-accordion-highlight-color4\"],\n }),\n ]}`,\n} satisfies Story;\n\nexport const WithTags = {\n render: (args) => html`\n <z-accordion\n .highlight=${args.highlight}\n .icon=${args.icon}\n .isDisabled=${args.isDisabled}\n .open=${args.open}\n .shadow=${args.shadow}\n label=${args.label}\n size=${args.size}\n variant=${args.variant}\n style=${styleMap({\n \"--z-accordion-highlight-color\": args[\"--z-accordion-highlight-color\"],\n \"--z-accordion-bg\": args[\"--z-accordion-bg\"],\n \"--z-accordion-label-color\": args[\"--z-accordion-label-color\"],\n \"--z-accordion-disabled-label-color\": args[\"--z-accordion-disabled-label-color\"],\n \"--z-accordion-content-bg\": args[\"--z-accordion-content-bg\"],\n \"--z-accordion-content-fg\": args[\"--z-accordion-content-fg\"],\n \"--z-accordion-hover-color\": args[\"--z-accordion-hover-color\"],\n \"--z-accordion-right-padding\": args[\"--z-accordion-right-padding\"],\n \"--z-accordion-left-padding\": args[\"--z-accordion-left-padding\"],\n \"--z-accordion-label-font-weight\": args[\"--z-accordion-label-font-weight\"],\n })}\n >\n <z-tag slot=\"tag\">Tag 1</z-tag>\n <z-tag slot=\"tag\">Tag 2</z-tag>\n <z-tag slot=\"tag\">Tag 3</z-tag>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in Archimede,\n qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit? Possumusne ergo in vita\n summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo affectus, exul, orbus, egens,\n torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo, oblivisci non possum quae volo. Nec vero\n sum nescius esse utilitatem in historia, non modo voluptatem.\n </z-accordion>\n `,\n} satisfies Story;\n"]}
@@ -1 +1 @@
1
- {"version":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CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YAClE,IAAI,CAAC,UAAU,EAAE,CAAC;QACpB,CAAC;IACH,CAAC;IAED,oBAAoB;QAClB,MAAM,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,SAAS,EAAE,IAAI,CAAC,SAAS;YAC7B,iEACE,KAAK,EAAC,QAAQ,EACd,OAAO,EAAE,aAAa,CAAC,SAAS,EAChC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,EACpD,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,cAG/B;YACX,4DAAK,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;gBAC/B,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, h, Host, Prop, State} from \"@stencil/core\";\nimport {ButtonVariant} from \"../../beans\";\n\n/**\n * Anchor navigation component.\n * @slot - Anchor navigation items. Use `<a>` elements inside. If you need an extra action element, use a wrapper around it and the anchor.\n * @example\n * ```\n * <z-anchor-navigation>\n * <div>\n * <a href=\"#section-id\">Section name</a>\n * <button type=\"button\">\n * <z-icon name=\"share\" />\n * </button>\n * </div>\n * </z-anchor-navigation>\n * ```\n */\n@Component({\n tag: \"z-anchor-navigation\",\n styleUrl: \"styles.css\",\n shadow: false,\n})\nexport class ZAnchorNavigation {\n /**\n * If enabled, the text of each anchor will be hidden unless\n * for the current one or the one the user is hovering.\n */\n @Prop({reflect: true})\n hideUnselected = false;\n\n /**\n * Enables automatic inference of the current item, listening for hash change\n * and checking the `href` of the slotted anchors.\n * When disabled, the highlight of current item must be handled manually by setting the `data-current`\n * attribute to the correct slotted items and the `aria-current` attribute to the anchors.\n */\n @Prop()\n autoCurrent = true;\n\n /**\n * Whether the mobile list is collapsed.\n */\n @State()\n collapsed = false;\n\n @Element() host: HTMLZAnchorNavigationElement;\n\n /** Reference to the nav element. */\n private nav: HTMLElement;\n\n /**\n * Set `aria-current` attribute to the anchors.\n */\n private setCurrent(): void {\n const currentElement = Array.from(this.nav.querySelectorAll(\"a\")).find(\n (anchor) => anchor.href === this.host.ownerDocument.location.href\n );\n Array.from(this.nav.children).forEach((item) => {\n const anchor = item instanceof HTMLAnchorElement ? item : item.querySelector(\"a\");\n const isCurrent = anchor === currentElement;\n anchor.setAttribute(\"aria-current\", isCurrent.toString());\n item.toggleAttribute(\"data-current\", isCurrent);\n });\n }\n\n /**\n * Toggle collapsed state.\n */\n private toggleCollapsed(): void {\n this.collapsed = !this.collapsed;\n }\n\n componentDidLoad(): void {\n if (this.autoCurrent) {\n window.addEventListener(\"hashchange\", this.setCurrent.bind(this));\n this.setCurrent();\n }\n }\n\n disconnectedCallback(): void {\n window.removeEventListener(\"hashchange\", this.setCurrent);\n }\n\n render(): HTMLZAnchorNavigationElement {\n return (\n <Host collapsed={this.collapsed}>\n <z-button\n class=\"toggle\"\n variant={ButtonVariant.SECONDARY}\n icon={this.collapsed ? \"chevron-up\" : \"chevron-down\"}\n onClick={this.toggleCollapsed.bind(this)}\n >\n salta a\n </z-button>\n <nav ref={(el) => (this.nav = el)}>\n <slot></slot>\n </nav>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-anchor-navigation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;AACvE,OAAO,EAAC,aAAa,EAAC,MAAM,aAA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CAAC;IAC5D,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,SAAS,EAAE,IAAI,CAAC,SAAS;YAC7B,iEACE,KAAK,EAAC,QAAQ,EACd,OAAO,EAAE,aAAa,CAAC,SAAS,EAChC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,EACpD,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,cAG/B;YACX,4DAAK,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;gBAC/B,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, h, Host, Prop, State} from \"@stencil/core\";\nimport {ButtonVariant} from \"../../beans\";\n\n/**\n * Anchor navigation component.\n * @slot - Anchor navigation items. Use `<a>` elements inside. If you need an extra action element, use a wrapper around it and the anchor.\n * @example\n * ```\n * <z-anchor-navigation>\n * <div>\n * <a href=\"#section-id\">Section name</a>\n * <button type=\"button\">\n * <z-icon name=\"share\" />\n * </button>\n * </div>\n * </z-anchor-navigation>\n * ```\n */\n@Component({\n tag: \"z-anchor-navigation\",\n styleUrl: \"styles.css\",\n shadow: false,\n})\nexport class ZAnchorNavigation {\n /**\n * If enabled, the text of each anchor will be hidden unless\n * for the current one or the one the user is hovering.\n */\n @Prop({reflect: true})\n hideUnselected = false;\n\n /**\n * Enables automatic inference of the current item, listening for hash change\n * and checking the `href` of the slotted anchors.\n * When disabled, the highlight of current item must be handled manually by setting the `data-current`\n * attribute to the correct slotted items and the `aria-current` attribute to the anchors.\n */\n @Prop()\n autoCurrent = true;\n\n /**\n * Whether the mobile list is collapsed.\n */\n @State()\n collapsed = false;\n\n @Element() host: HTMLZAnchorNavigationElement;\n\n /** Reference to the nav element. */\n private nav: HTMLElement;\n\n /**\n * Set `aria-current` attribute to the anchors.\n */\n private setCurrent(): void {\n const currentElement = Array.from(this.nav.querySelectorAll(\"a\")).find(\n (anchor) => anchor.href === this.host.ownerDocument.location.href\n );\n Array.from(this.nav.children).forEach((item) => {\n const anchor = item instanceof HTMLAnchorElement ? item : item.querySelector(\"a\");\n const isCurrent = anchor === currentElement;\n anchor.setAttribute(\"aria-current\", isCurrent.toString());\n item.toggleAttribute(\"data-current\", isCurrent);\n });\n }\n\n /**\n * Toggle collapsed state.\n */\n private toggleCollapsed(): void {\n this.collapsed = !this.collapsed;\n }\n\n componentDidLoad(): void {\n if (this.autoCurrent) {\n window.addEventListener(\"hashchange\", this.setCurrent.bind(this));\n this.setCurrent();\n }\n }\n\n disconnectedCallback(): void {\n window.removeEventListener(\"hashchange\", this.setCurrent);\n }\n\n render(): HTMLZAnchorNavigationElement {\n return (\n <Host collapsed={this.collapsed}>\n <z-button\n class=\"toggle\"\n variant={ButtonVariant.SECONDARY}\n icon={this.collapsed ? \"chevron-up\" : \"chevron-down\"}\n onClick={this.toggleCollapsed.bind(this)}\n >\n salta a\n </z-button>\n <nav ref={(el) => (this.nav = el)}>\n <slot></slot>\n </nav>\n </Host>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-anchor-navigation/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,iBAAiB,CAAC;AACzB,OAAO,SAAS,CAAC;AACjB,OAAO,qBAAqB,CAAC;AAE7B,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,qBAAqB;IAChC,IAAI,EAAE;QACJ,cAAc,EAAE,KAAK;KACtB;CACgC,CAAC;AAEpC,eAAe,SAAS,CAAC;AAEzB,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;6CAEqB,IAAI,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4H7D;CACoC,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE;QACJ,WAAW,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,aAAa,CAAC;SACzB;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA+CE,IAAI,CAAC,cAAc;uBACtB,IAAI,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6HpC;CACoC,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {ZAnchorNavigation} from \".\";\nimport \"../z-button/index\";\nimport \"../z-icon/index\";\nimport \"./index\";\nimport \"./index.stories.css\";\n\nconst StoryMeta = {\n title: \"ZAnchorNavigation\",\n component: \"z-anchor-navigation\",\n args: {\n hideUnselected: false,\n },\n} satisfies Meta<ZAnchorNavigation>;\n\nexport default StoryMeta;\n\nexport const Default = {\n render: (args) => html`\n <div class=\"z-anchor-navigation-story-wrapper\">\n <z-anchor-navigation .hideUnselected=${args.hideUnselected}>\n <div>\n <a\n href=\"#first-section\"\n target=\"_self\"\n >First section</a\n >\n <z-button\n variant=\"tertiary\"\n icon=\"share\"\n size=\"x-small\"\n ></z-button>\n </div>\n <div>\n <a\n href=\"#second-section\"\n target=\"_self\"\n >Second section</a\n >\n </div>\n <div>\n <a\n href=\"#third-section\"\n target=\"_self\"\n >Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n </a>\n <button\n type=\"button\"\n aria-label=\"share\"\n >\n <z-icon name=\"share\" />\n </button>\n </div>\n <a\n href=\"#fourth-section\"\n target=\"_self\"\n >Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n </a>\n </z-anchor-navigation>\n <div>\n <div id=\"first-section\">\n <h4>First section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n <div id=\"second-section\">\n <h4>Second section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n <div id=\"third-section\">\n <h4>Third section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n <div id=\"fourth-section\">\n <h4>Fourth section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n </div>\n </div>\n `,\n} satisfies StoryObj<ZAnchorNavigation>;\n\n/**\n * Setting `autoCurrent` to `false` disables the automatic highlighting of the current section in the anchor navigation\n * and allows manual handling.\n * In this story, for example, the highlighting of the current section is done by clicking on the related button.\n */\nexport const AutoCurrentDisabling = {\n args: {\n autoCurrent: false,\n },\n parameters: {\n controls: {\n exclude: [\"autoCurrent\"],\n },\n },\n render: (args) => html`\n <script>\n Array.from(document.querySelectorAll(\".z-anchor-navigation-manual-current z-button\")).forEach((item) =>\n item.addEventListener(\"click\", (ev) => {\n const sectionID = ev.target.closest(\"z-button\")?.dataset.to;\n const current = document.querySelector(\"#\" + sectionID + \"-anchor\");\n const nav = current?.closest(\"nav\");\n Array.from(nav?.children ?? []).forEach((item) => {\n const isCurrent = item.contains(current);\n if (isCurrent) {\n item.setAttribute(\"data-current\", \"\");\n } else {\n item.removeAttribute(\"data-current\");\n }\n const anchor = item.tagName === \"A\" ? item : item.querySelector(\"a\");\n item?.setAttribute(\"aria-current\", isCurrent.toString());\n });\n const section = document.querySelector(\"#\" + sectionID);\n section?.scrollIntoView();\n })\n );\n </script>\n\n <div class=\"z-anchor-navigation-manual-current\">\n <z-button\n size=\"x-small\"\n data-to=\"first-section\"\n >To first section</z-button\n >\n <z-button\n size=\"x-small\"\n data-to=\"second-section\"\n >To second section</z-button\n >\n <z-button\n size=\"x-small\"\n data-to=\"third-section\"\n >To third section</z-button\n >\n <z-button\n size=\"x-small\"\n data-to=\"fourth-section\"\n >Highlight fourth section</z-button\n >\n </div>\n <div class=\"z-anchor-navigation-story-wrapper\">\n <z-anchor-navigation\n .hideUnselected=${args.hideUnselected}\n .autoCurrent=${args.autoCurrent}\n >\n <div>\n <a id=\"first-section-anchor\">First section</a>\n <z-button\n variant=\"tertiary\"\n icon=\"share\"\n size=\"x-small\"\n ></z-button>\n </div>\n <div>\n <a id=\"second-section-anchor\">Second section</a>\n </div>\n <div>\n <a id=\"third-section-anchor\"\n >Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n </a>\n <button\n type=\"button\"\n aria-label=\"share\"\n >\n <z-icon name=\"share\" />\n </button>\n </div>\n <a id=\"fourth-section-anchor\"\n >Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n </a>\n </z-anchor-navigation>\n <div class=\"z-anchor-navigation-demo-sections\">\n <div\n class=\"section\"\n id=\"first-section\"\n >\n <h4>First section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n <div\n class=\"section\"\n id=\"second-section\"\n >\n <h4>Second section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n <div\n class=\"section\"\n id=\"third-section\"\n >\n <h4>Third section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n <div\n class=\"section\"\n id=\"fourth-section\"\n >\n <h4>Fourth section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n </div>\n </div>\n `,\n} satisfies StoryObj<ZAnchorNavigation>;\n"]}
1
+ {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../src/components/z-anchor-navigation/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,iBAAiB,CAAC;AACzB,OAAO,SAAS,CAAC;AACjB,OAAO,qBAAqB,CAAC;AAE7B,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,qBAAqB;IAChC,IAAI,EAAE;QACJ,cAAc,EAAE,KAAK;KACtB;CACgC,CAAC;AAEpC,eAAe,SAAS,CAAC;AAEzB,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;6CAEqB,IAAI,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4H7D;CACoC,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE;QACJ,WAAW,EAAE,KAAK;KACnB;IACD,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,aAAa,CAAC;SACzB;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA+CE,IAAI,CAAC,cAAc;uBACtB,IAAI,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6HpC;CACoC,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {ZAnchorNavigation} from \".\";\nimport \"../z-button/index\";\nimport \"../z-icon/index\";\nimport \"./index\";\nimport \"./index.stories.css\";\n\nconst StoryMeta = {\n title: \"ZAnchorNavigation\",\n component: \"z-anchor-navigation\",\n args: {\n hideUnselected: false,\n },\n} satisfies Meta<ZAnchorNavigation>;\n\nexport default StoryMeta;\n\nexport const Default = {\n render: (args) => html`\n <div class=\"z-anchor-navigation-story-wrapper\">\n <z-anchor-navigation .hideUnselected=${args.hideUnselected}>\n <div>\n <a\n href=\"#first-section\"\n target=\"_self\"\n >First section</a\n >\n <z-button\n variant=\"tertiary\"\n icon=\"share\"\n size=\"x-small\"\n ></z-button>\n </div>\n <div>\n <a\n href=\"#second-section\"\n target=\"_self\"\n >Second section</a\n >\n </div>\n <div>\n <a\n href=\"#third-section\"\n target=\"_self\"\n >Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n </a>\n <button\n type=\"button\"\n aria-label=\"share\"\n >\n <z-icon name=\"share\" />\n </button>\n </div>\n <a\n href=\"#fourth-section\"\n target=\"_self\"\n >Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n </a>\n </z-anchor-navigation>\n <div>\n <div id=\"first-section\">\n <h4>First section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n <div id=\"second-section\">\n <h4>Second section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n <div id=\"third-section\">\n <h4>Third section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n <div id=\"fourth-section\">\n <h4>Fourth section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n </div>\n </div>\n `,\n} satisfies StoryObj<ZAnchorNavigation>;\n\n/**\n * Setting `autoCurrent` to `false` disables the automatic highlighting of the current section in the anchor navigation\n * and allows manual handling.\n * In this story, for example, the highlighting of the current section is done by clicking on the related button.\n */\nexport const AutoCurrentDisabling = {\n args: {\n autoCurrent: false,\n },\n parameters: {\n controls: {\n exclude: [\"autoCurrent\"],\n },\n },\n render: (args) => html`\n <script>\n Array.from(document.querySelectorAll(\".z-anchor-navigation-manual-current z-button\")).forEach((item) =>\n item.addEventListener(\"click\", (ev) => {\n const sectionID = ev.target.closest(\"z-button\")?.dataset.to;\n const current = document.querySelector(\"#\" + sectionID + \"-anchor\");\n const nav = current?.closest(\"nav\");\n Array.from(nav?.children ?? []).forEach((item) => {\n const isCurrent = item.contains(current);\n if (isCurrent) {\n item.setAttribute(\"data-current\", \"\");\n } else {\n item.removeAttribute(\"data-current\");\n }\n const anchor = item.tagName === \"A\" ? item : item.querySelector(\"a\");\n item?.setAttribute(\"aria-current\", isCurrent.toString());\n });\n const section = document.querySelector(\"#\" + sectionID);\n section?.scrollIntoView();\n })\n );\n </script>\n\n <div class=\"z-anchor-navigation-manual-current\">\n <z-button\n size=\"x-small\"\n data-to=\"first-section\"\n >To first section</z-button\n >\n <z-button\n size=\"x-small\"\n data-to=\"second-section\"\n >To second section</z-button\n >\n <z-button\n size=\"x-small\"\n data-to=\"third-section\"\n >To third section</z-button\n >\n <z-button\n size=\"x-small\"\n data-to=\"fourth-section\"\n >Highlight fourth section</z-button\n >\n </div>\n <div class=\"z-anchor-navigation-story-wrapper\">\n <z-anchor-navigation\n .hideUnselected=${args.hideUnselected}\n .autoCurrent=${args.autoCurrent}\n >\n <div>\n <a id=\"first-section-anchor\">First section</a>\n <z-button\n variant=\"tertiary\"\n icon=\"share\"\n size=\"x-small\"\n ></z-button>\n </div>\n <div>\n <a id=\"second-section-anchor\">Second section</a>\n </div>\n <div>\n <a id=\"third-section-anchor\"\n >Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n </a>\n <button\n type=\"button\"\n aria-label=\"share\"\n >\n <z-icon name=\"share\" />\n </button>\n </div>\n <a id=\"fourth-section-anchor\"\n >Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n Third section with a very very long title and an icon and the title is repeated so it can go over 2 lines\n </a>\n </z-anchor-navigation>\n <div class=\"z-anchor-navigation-demo-sections\">\n <div\n class=\"section\"\n id=\"first-section\"\n >\n <h4>First section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n <div\n class=\"section\"\n id=\"second-section\"\n >\n <h4>Second section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n <div\n class=\"section\"\n id=\"third-section\"\n >\n <h4>Third section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n <div\n class=\"section\"\n id=\"fourth-section\"\n >\n <h4>Fourth section</h4>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quem enim ardorem studii censetis fuisse in\n Archimede, qui dum in pulvere quaedam describit attentius, ne patriam quidem captam esse senserit?\n Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur? Morbo gravissimo\n affectus, exul, orbus, egens, torqueatur eculeo: quem hunc appellas, Zeno? Nam memini etiam quae nolo,\n oblivisci non possum quae volo. Nec vero sum nescius esse utilitatem in historia, non modo voluptatem. Duo\n Reges: constructio interrete. Plane idem, inquit, et maxima quidem, qua fieri nulla maior potest. Hoc autem\n loco tantum explicemus haec honesta, quae dico, praeterquam quod nosmet ipsos diligamus, praeterea suapte\n natura per se esse expetenda. Te enim iudicem aequum puto, modo quae dicat ille bene noris. Si enim Zenoni\n licuit, cum rem aliquam invenisset inusitatam, inauditum quoque ei rei nomen inponere, cur non liceat\n Catoni? Ita cum ea volunt retinere, quae superiori sententiae conveniunt, in Aristonem incidunt; Istam\n voluptatem perpetuam quis potest praestare sapienti? Urgent tamen et nihil remittunt. Sin te auctoritas\n commovebat, nobisne omnibus et Platoni ipsi nescio quem illum anteponebas? Stuprata per vim Lucretia a regis\n filio testata civis se ipsa interemit. Sin autem ad animum, falsum est, quod negas animi ullum esse gaudium,\n quod non referatur ad corpus.\n </p>\n </div>\n <div class=\"separator\"></div>\n </div>\n </div>\n `,\n} satisfies StoryObj<ZAnchorNavigation>;\n"]}