@zanichelli/albe-web-components 18.2.0 → 18.2.1-rc1

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 (400) hide show
  1. package/dist/cjs/{index-50ec1f12.js → index-364e3f60.js} +2 -2
  2. package/dist/cjs/{index-50ec1f12.js.map → index-364e3f60.js.map} +1 -1
  3. package/dist/cjs/{index-be1dfa97.js → index-394da17e.js} +4 -4
  4. package/dist/cjs/{index-be1dfa97.js.map → index-394da17e.js.map} +1 -1
  5. package/dist/cjs/{index-1c288846.js → index-62712250.js} +2 -2
  6. package/dist/cjs/{index-1c288846.js.map → index-62712250.js.map} +1 -1
  7. package/dist/cjs/{index-afafb76c.js → index-bf197d11.js} +2 -2
  8. package/dist/cjs/{index-afafb76c.js.map → index-bf197d11.js.map} +1 -1
  9. package/dist/cjs/{index-5af9d3d1.js → index-d1759a5a.js} +2 -2
  10. package/dist/cjs/{index-5af9d3d1.js.map → index-d1759a5a.js.map} +1 -1
  11. package/dist/cjs/{index-be650150.js → index-f0b0a7d1.js} +2 -2
  12. package/dist/cjs/{index-be650150.js.map → index-f0b0a7d1.js.map} +1 -1
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/web-components-library.cjs.js +1 -1
  15. package/dist/cjs/z-accordion.cjs.entry.js +1 -1
  16. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  17. package/dist/cjs/z-app-header_12.cjs.entry.js +12 -12
  18. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  19. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  20. package/dist/cjs/z-avatar.cjs.entry.js +2 -2
  21. package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
  22. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  23. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  24. package/dist/cjs/z-combobox.cjs.entry.js +1 -1
  25. package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
  26. package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
  27. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -1
  28. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +6 -6
  29. package/dist/cjs/z-file.cjs.entry.js +1 -1
  30. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  31. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  32. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  33. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  34. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  35. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
  36. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  37. package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
  38. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  39. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  40. package/dist/cjs/z-section-title.cjs.entry.js.map +1 -1
  41. package/dist/cjs/z-select.cjs.entry.js +1 -1
  42. package/dist/cjs/z-table.cjs.entry.js +7 -7
  43. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  44. package/dist/cjs/z-td.cjs.entry.js +1 -1
  45. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  46. package/dist/cjs/z-th.cjs.entry.js +1 -1
  47. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  48. package/dist/cjs/z-tr.cjs.entry.js +3 -3
  49. package/dist/cjs/z-tree-list.cjs.entry.js +1 -1
  50. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  51. package/dist/collection/collection-manifest.json +1 -1
  52. package/dist/collection/components/date-picker/z-date-picker/index.js +2 -2
  53. package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -1
  54. package/dist/collection/components/{z-section-title → deprecated/z-section-title}/index.js +3 -3
  55. package/dist/collection/components/deprecated/z-section-title/index.js.map +1 -0
  56. package/dist/collection/components/{z-section-title → deprecated/z-section-title}/index.stories.js +7 -3
  57. package/dist/collection/components/deprecated/z-section-title/index.stories.js.map +1 -0
  58. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
  59. package/dist/collection/components/file-upload/z-file/index.js +1 -1
  60. package/dist/collection/components/list/z-list/index.js +1 -1
  61. package/dist/collection/components/list/z-list-element/index.js +1 -1
  62. package/dist/collection/components/list/z-list-group/index.js +2 -2
  63. package/dist/collection/components/list/z-tree-list/index.js +1 -1
  64. package/dist/collection/components/table/cells/z-td/index.js +1 -1
  65. package/dist/collection/components/table/cells/z-th/index.js +1 -1
  66. package/dist/collection/components/table/z-table/index.js +1 -1
  67. package/dist/collection/components/table/z-tbody/index.js +1 -1
  68. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  69. package/dist/collection/components/table/z-thead/index.js +1 -1
  70. package/dist/collection/components/table/z-tr/index.js +1 -1
  71. package/dist/collection/components/z-accordion/index.js +1 -1
  72. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  73. package/dist/collection/components/z-app-header/index.js +1 -1
  74. package/dist/collection/components/z-aria-alert/index.js +1 -1
  75. package/dist/collection/components/z-avatar/index.js +2 -2
  76. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  77. package/dist/collection/components/z-button-sort/index.js +1 -1
  78. package/dist/collection/components/z-chip/index.js +2 -2
  79. package/dist/collection/components/z-combobox/index.js +1 -1
  80. package/dist/collection/components/z-cover-hero/index.js +2 -2
  81. package/dist/collection/components/z-divider/index.js +1 -1
  82. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  83. package/dist/collection/components/z-icon/index.js +7 -7
  84. package/dist/collection/components/z-icon/index.js.map +1 -1
  85. package/dist/collection/components/z-icon/index.stories.js +26 -1
  86. package/dist/collection/components/z-icon/index.stories.js.map +1 -1
  87. package/dist/collection/components/z-icon/styles.css +2 -2
  88. package/dist/collection/components/z-info-box/index.js +1 -1
  89. package/dist/collection/components/z-info-reveal/index.js +1 -1
  90. package/dist/collection/components/z-input/index.js +1 -1
  91. package/dist/collection/components/z-input-message/index.js +1 -1
  92. package/dist/collection/components/z-logo/index.js +1 -1
  93. package/dist/collection/components/z-menu-section/index.js +1 -1
  94. package/dist/collection/components/z-modal/index.js +4 -4
  95. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  96. package/dist/collection/components/z-notification/index.js +1 -1
  97. package/dist/collection/components/z-offcanvas/index.js +1 -1
  98. package/dist/collection/components/z-panel-elem/index.js +2 -2
  99. package/dist/collection/components/z-popover/index.js +1 -1
  100. package/dist/collection/components/z-searchbar/index.js +1 -1
  101. package/dist/collection/components/z-select/index.js +1 -1
  102. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  103. package/dist/components/index.d.ts +1 -1
  104. package/dist/components/index10.js +1 -1
  105. package/dist/components/index11.js +1 -1
  106. package/dist/components/index12.js +1 -1
  107. package/dist/components/index13.js +1 -1
  108. package/dist/components/index14.js +1 -1
  109. package/dist/components/index15.js +2 -2
  110. package/dist/components/index16.js +4 -4
  111. package/dist/components/index22.js +1 -1
  112. package/dist/components/index23.js +1 -1
  113. package/dist/components/index24.js +1 -1
  114. package/dist/components/index5.js +2 -2
  115. package/dist/components/index6.js +1 -1
  116. package/dist/components/index7.js +2 -2
  117. package/dist/components/index8.js +1 -1
  118. package/dist/components/index9.js +4 -4
  119. package/dist/components/index9.js.map +1 -1
  120. package/dist/components/z-accordion.js +1 -1
  121. package/dist/components/z-anchor-navigation.js +1 -1
  122. package/dist/components/z-app-header.js +1 -1
  123. package/dist/components/z-aria-alert.js +1 -1
  124. package/dist/components/z-avatar.js +2 -2
  125. package/dist/components/z-breadcrumb.js +2 -2
  126. package/dist/components/z-button-sort.js +1 -1
  127. package/dist/components/z-combobox.js +1 -1
  128. package/dist/components/z-cover-hero.js +2 -2
  129. package/dist/components/z-date-picker.js +2 -2
  130. package/dist/components/z-date-picker.js.map +1 -1
  131. package/dist/components/z-file.js +1 -1
  132. package/dist/components/z-info-box.js +1 -1
  133. package/dist/components/z-logo.js +1 -1
  134. package/dist/components/z-menu-section.js +1 -1
  135. package/dist/components/z-navigation-tabs.js +2 -2
  136. package/dist/components/z-notification.js +1 -1
  137. package/dist/components/z-panel-elem.js +2 -2
  138. package/dist/components/z-section-title.js +1 -1
  139. package/dist/components/z-section-title.js.map +1 -1
  140. package/dist/components/z-select.js +1 -1
  141. package/dist/components/z-table.js +1 -1
  142. package/dist/components/z-tbody.js +1 -1
  143. package/dist/components/z-td.js +1 -1
  144. package/dist/components/z-tfoot.js +1 -1
  145. package/dist/components/z-th.js +1 -1
  146. package/dist/components/z-thead.js +1 -1
  147. package/dist/components/z-tr.js +1 -1
  148. package/dist/components/z-tree-list.js +1 -1
  149. package/dist/components/z-visually-hidden.js +1 -1
  150. package/dist/docs/themes/index.stories.js +1 -1
  151. package/dist/docs/themes/index.stories.js.map +1 -1
  152. package/dist/esm/{index-9a0ea49b.js → index-0ea3c7c8.js} +2 -2
  153. package/dist/esm/{index-9a0ea49b.js.map → index-0ea3c7c8.js.map} +1 -1
  154. package/dist/esm/{index-2a83dc12.js → index-2ccbb96f.js} +2 -2
  155. package/dist/esm/{index-2a83dc12.js.map → index-2ccbb96f.js.map} +1 -1
  156. package/dist/esm/{index-43637886.js → index-571f913c.js} +2 -2
  157. package/dist/esm/{index-43637886.js.map → index-571f913c.js.map} +1 -1
  158. package/dist/esm/{index-1294ef3d.js → index-ceebee64.js} +4 -4
  159. package/dist/esm/{index-1294ef3d.js.map → index-ceebee64.js.map} +1 -1
  160. package/dist/esm/{index-b2c92bbb.js → index-eb53c87f.js} +2 -2
  161. package/dist/esm/{index-b2c92bbb.js.map → index-eb53c87f.js.map} +1 -1
  162. package/dist/esm/{index-ea1d61dc.js → index-fc0913d1.js} +2 -2
  163. package/dist/esm/{index-ea1d61dc.js.map → index-fc0913d1.js.map} +1 -1
  164. package/dist/esm/loader.js +1 -1
  165. package/dist/esm/web-components-library.js +1 -1
  166. package/dist/esm/z-accordion.entry.js +1 -1
  167. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  168. package/dist/esm/z-app-header_12.entry.js +12 -12
  169. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  170. package/dist/esm/z-aria-alert.entry.js +1 -1
  171. package/dist/esm/z-avatar.entry.js +2 -2
  172. package/dist/esm/z-breadcrumb.entry.js +2 -2
  173. package/dist/esm/z-button-sort.entry.js +1 -1
  174. package/dist/esm/z-chip.entry.js +2 -2
  175. package/dist/esm/z-combobox.entry.js +1 -1
  176. package/dist/esm/z-cover-hero.entry.js +2 -2
  177. package/dist/esm/z-date-picker.entry.js +1 -1
  178. package/dist/esm/z-date-picker.entry.js.map +1 -1
  179. package/dist/esm/z-dragdrop-area_2.entry.js +6 -6
  180. package/dist/esm/z-file.entry.js +1 -1
  181. package/dist/esm/z-ghost-loading.entry.js +1 -1
  182. package/dist/esm/z-info-box.entry.js +1 -1
  183. package/dist/esm/z-info-reveal.entry.js +1 -1
  184. package/dist/esm/z-logo.entry.js +1 -1
  185. package/dist/esm/z-menu-section.entry.js +1 -1
  186. package/dist/esm/z-navigation-tabs.entry.js +2 -2
  187. package/dist/esm/z-notification.entry.js +1 -1
  188. package/dist/esm/z-panel-elem.entry.js +2 -2
  189. package/dist/esm/z-popover.entry.js +1 -1
  190. package/dist/esm/z-section-title.entry.js +1 -1
  191. package/dist/esm/z-section-title.entry.js.map +1 -1
  192. package/dist/esm/z-select.entry.js +1 -1
  193. package/dist/esm/z-table.entry.js +7 -7
  194. package/dist/esm/z-tbody.entry.js +1 -1
  195. package/dist/esm/z-td.entry.js +1 -1
  196. package/dist/esm/z-tfoot.entry.js +1 -1
  197. package/dist/esm/z-th.entry.js +1 -1
  198. package/dist/esm/z-thead.entry.js +1 -1
  199. package/dist/esm/z-tr.entry.js +3 -3
  200. package/dist/esm/z-tree-list.entry.js +1 -1
  201. package/dist/esm/z-visually-hidden.entry.js +1 -1
  202. package/dist/types/components/{z-section-title → deprecated/z-section-title}/index.d.ts +1 -1
  203. package/dist/types/components/{z-section-title → deprecated/z-section-title}/index.stories.d.ts +6 -2
  204. package/dist/types/components/z-icon/index.d.ts +2 -2
  205. package/dist/types/components/z-icon/index.stories.d.ts +23 -3
  206. package/dist/types/components.d.ts +4 -4
  207. package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/themes/index.stories.d.ts +1 -1
  208. package/{www/build/p-fbe3bc33.js → dist/web-components-library/p-0b26a8e0.js} +2 -2
  209. package/dist/web-components-library/p-0bd2b21e.entry.js +2 -0
  210. package/dist/web-components-library/p-1170826b.js +2 -0
  211. package/dist/web-components-library/p-195ed6d2.js +2 -0
  212. package/dist/web-components-library/{p-1d78d37b.entry.js → p-209db20e.entry.js} +2 -2
  213. package/dist/web-components-library/{p-3e1983eb.entry.js → p-222d4160.entry.js} +2 -2
  214. package/dist/web-components-library/p-237fcaa9.entry.js +2 -0
  215. package/dist/web-components-library/p-39a968af.entry.js +2 -0
  216. package/dist/web-components-library/{p-c8501bd3.entry.js → p-3cb9a131.entry.js} +2 -2
  217. package/dist/web-components-library/{p-d5e29462.entry.js → p-40fc2770.entry.js} +2 -2
  218. package/dist/web-components-library/{p-b16272ea.entry.js → p-430916e9.entry.js} +2 -2
  219. package/{www/build/p-7a33fe43.entry.js → dist/web-components-library/p-43f9569d.entry.js} +2 -2
  220. package/dist/web-components-library/{p-66576512.entry.js → p-49f99fa3.entry.js} +2 -2
  221. package/{www/build/p-b0d88afc.entry.js → dist/web-components-library/p-564ddab3.entry.js} +2 -2
  222. package/dist/web-components-library/{p-ca1a7347.entry.js → p-5cda7027.entry.js} +2 -2
  223. package/dist/web-components-library/{p-1e25d225.entry.js → p-604602a8.entry.js} +2 -2
  224. package/{www/build/p-b555681f.entry.js → dist/web-components-library/p-684c8fcb.entry.js} +2 -2
  225. package/dist/web-components-library/{p-b69a3542.entry.js → p-6949d27d.entry.js} +2 -2
  226. package/{www/build/p-9b2e5033.entry.js → dist/web-components-library/p-6a48d114.entry.js} +2 -2
  227. package/{www/build/p-9b2e5033.entry.js.map → dist/web-components-library/p-6a48d114.entry.js.map} +1 -1
  228. package/dist/web-components-library/{p-b240bd96.entry.js → p-82d52ee6.entry.js} +2 -2
  229. package/dist/web-components-library/p-83e3b2ff.entry.js +2 -0
  230. package/dist/web-components-library/{p-1ee52b2e.entry.js → p-8cbb9bbe.entry.js} +2 -2
  231. package/dist/web-components-library/{p-79aab6de.entry.js → p-93150ae0.entry.js} +2 -2
  232. package/dist/web-components-library/{p-79aab6de.entry.js.map → p-93150ae0.entry.js.map} +1 -1
  233. package/dist/web-components-library/{p-3abd3f25.entry.js → p-93af4721.entry.js} +2 -2
  234. package/{www/build/p-6f761080.entry.js → dist/web-components-library/p-96b5a35d.entry.js} +2 -2
  235. package/dist/web-components-library/p-a22b7aa0.entry.js +2 -0
  236. package/dist/web-components-library/{p-c4878fa9.entry.js → p-b376a58c.entry.js} +2 -2
  237. package/{www/build/p-2618e4de.entry.js → dist/web-components-library/p-c1d89e00.entry.js} +2 -2
  238. package/dist/web-components-library/{p-a2b1d98b.js → p-c7d5971f.js} +2 -2
  239. package/{www/build/p-663115e2.entry.js → dist/web-components-library/p-c8eef88d.entry.js} +2 -2
  240. package/dist/web-components-library/{p-95e28308.entry.js → p-ccb2318f.entry.js} +2 -2
  241. package/dist/web-components-library/p-cf837902.entry.js +2 -0
  242. package/dist/web-components-library/p-e2b57681.js +2 -0
  243. package/{www/build/p-6e8d5142.js.map → dist/web-components-library/p-e2b57681.js.map} +1 -1
  244. package/dist/web-components-library/p-e8bab6ad.entry.js +2 -0
  245. package/dist/web-components-library/p-eb9ef3cb.js +2 -0
  246. package/dist/web-components-library/{p-8f59d90d.entry.js → p-f609b40e.entry.js} +2 -2
  247. package/dist/web-components-library/p-f609b40e.entry.js.map +1 -0
  248. package/dist/web-components-library/{p-542e0154.entry.js → p-fbbacad0.entry.js} +2 -2
  249. package/dist/web-components-library/p-fd7c7885.entry.js +2 -0
  250. package/dist/web-components-library/{p-6669b4c9.entry.js → p-fed6d4ac.entry.js} +2 -2
  251. package/dist/web-components-library/web-components-library.esm.js +1 -1
  252. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  253. package/package.json +1 -1
  254. package/{dist/web-components-library/p-fbe3bc33.js → www/build/p-0b26a8e0.js} +2 -2
  255. package/www/build/p-0bd2b21e.entry.js +2 -0
  256. package/www/build/p-1170826b.js +2 -0
  257. package/www/build/p-11df33c9.js +2 -0
  258. package/www/build/p-195ed6d2.js +2 -0
  259. package/www/build/{p-1d78d37b.entry.js → p-209db20e.entry.js} +2 -2
  260. package/www/build/{p-3e1983eb.entry.js → p-222d4160.entry.js} +2 -2
  261. package/www/build/p-237fcaa9.entry.js +2 -0
  262. package/www/build/p-39a968af.entry.js +2 -0
  263. package/www/build/{p-c8501bd3.entry.js → p-3cb9a131.entry.js} +2 -2
  264. package/www/build/{p-d5e29462.entry.js → p-40fc2770.entry.js} +2 -2
  265. package/www/build/{p-b16272ea.entry.js → p-430916e9.entry.js} +2 -2
  266. package/{dist/web-components-library/p-7a33fe43.entry.js → www/build/p-43f9569d.entry.js} +2 -2
  267. package/www/build/{p-66576512.entry.js → p-49f99fa3.entry.js} +2 -2
  268. package/{dist/web-components-library/p-b0d88afc.entry.js → www/build/p-564ddab3.entry.js} +2 -2
  269. package/www/build/{p-ca1a7347.entry.js → p-5cda7027.entry.js} +2 -2
  270. package/www/build/{p-1e25d225.entry.js → p-604602a8.entry.js} +2 -2
  271. package/{dist/web-components-library/p-b555681f.entry.js → www/build/p-684c8fcb.entry.js} +2 -2
  272. package/www/build/{p-b69a3542.entry.js → p-6949d27d.entry.js} +2 -2
  273. package/{dist/web-components-library/p-9b2e5033.entry.js → www/build/p-6a48d114.entry.js} +2 -2
  274. package/{dist/web-components-library/p-9b2e5033.entry.js.map → www/build/p-6a48d114.entry.js.map} +1 -1
  275. package/www/build/{p-b240bd96.entry.js → p-82d52ee6.entry.js} +2 -2
  276. package/www/build/p-83e3b2ff.entry.js +2 -0
  277. package/www/build/{p-1ee52b2e.entry.js → p-8cbb9bbe.entry.js} +2 -2
  278. package/www/build/{p-79aab6de.entry.js → p-93150ae0.entry.js} +2 -2
  279. package/www/build/{p-79aab6de.entry.js.map → p-93150ae0.entry.js.map} +1 -1
  280. package/www/build/{p-3abd3f25.entry.js → p-93af4721.entry.js} +2 -2
  281. package/{dist/web-components-library/p-6f761080.entry.js → www/build/p-96b5a35d.entry.js} +2 -2
  282. package/www/build/p-a22b7aa0.entry.js +2 -0
  283. package/www/build/{p-c4878fa9.entry.js → p-b376a58c.entry.js} +2 -2
  284. package/{dist/web-components-library/p-2618e4de.entry.js → www/build/p-c1d89e00.entry.js} +2 -2
  285. package/www/build/{p-a2b1d98b.js → p-c7d5971f.js} +2 -2
  286. package/{dist/web-components-library/p-663115e2.entry.js → www/build/p-c8eef88d.entry.js} +2 -2
  287. package/www/build/{p-95e28308.entry.js → p-ccb2318f.entry.js} +2 -2
  288. package/www/build/p-cf837902.entry.js +2 -0
  289. package/www/build/p-e2b57681.js +2 -0
  290. package/{dist/web-components-library/p-6e8d5142.js.map → www/build/p-e2b57681.js.map} +1 -1
  291. package/www/build/p-e8bab6ad.entry.js +2 -0
  292. package/www/build/p-eb9ef3cb.js +2 -0
  293. package/www/build/{p-8f59d90d.entry.js → p-f609b40e.entry.js} +2 -2
  294. package/www/build/p-f609b40e.entry.js.map +1 -0
  295. package/www/build/{p-542e0154.entry.js → p-fbbacad0.entry.js} +2 -2
  296. package/www/build/p-fd7c7885.entry.js +2 -0
  297. package/www/build/{p-6669b4c9.entry.js → p-fed6d4ac.entry.js} +2 -2
  298. package/www/build/web-components-library.esm.js +1 -1
  299. package/www/build/web-components-library.esm.js.map +1 -1
  300. package/www/index.html +1 -1
  301. package/dist/collection/components/z-section-title/index.js.map +0 -1
  302. package/dist/collection/components/z-section-title/index.stories.js.map +0 -1
  303. package/dist/web-components-library/p-26f324ab.js +0 -2
  304. package/dist/web-components-library/p-29759f61.entry.js +0 -2
  305. package/dist/web-components-library/p-2ac26cde.entry.js +0 -2
  306. package/dist/web-components-library/p-2e373eba.entry.js +0 -2
  307. package/dist/web-components-library/p-473ac922.entry.js +0 -2
  308. package/dist/web-components-library/p-4900a14c.entry.js +0 -2
  309. package/dist/web-components-library/p-6e8d5142.js +0 -2
  310. package/dist/web-components-library/p-7000e4f8.js +0 -2
  311. package/dist/web-components-library/p-88983b48.entry.js +0 -2
  312. package/dist/web-components-library/p-8f59d90d.entry.js.map +0 -1
  313. package/dist/web-components-library/p-8fe13fca.entry.js +0 -2
  314. package/dist/web-components-library/p-ad821c05.entry.js +0 -2
  315. package/dist/web-components-library/p-ee43894c.js +0 -2
  316. package/www/build/p-26f324ab.js +0 -2
  317. package/www/build/p-29759f61.entry.js +0 -2
  318. package/www/build/p-2ac26cde.entry.js +0 -2
  319. package/www/build/p-2e373eba.entry.js +0 -2
  320. package/www/build/p-473ac922.entry.js +0 -2
  321. package/www/build/p-4900a14c.entry.js +0 -2
  322. package/www/build/p-6e8d5142.js +0 -2
  323. package/www/build/p-7000e4f8.js +0 -2
  324. package/www/build/p-88983b48.entry.js +0 -2
  325. package/www/build/p-8f59d90d.entry.js.map +0 -1
  326. package/www/build/p-8fe13fca.entry.js +0 -2
  327. package/www/build/p-ad821c05.entry.js +0 -2
  328. package/www/build/p-ee43894c.js +0 -2
  329. package/www/build/p-fb3cf8fc.js +0 -2
  330. /package/dist/collection/components/{z-section-title → deprecated/z-section-title}/styles.css +0 -0
  331. /package/dist/web-components-library/{p-fbe3bc33.js.map → p-0b26a8e0.js.map} +0 -0
  332. /package/dist/web-components-library/{p-29759f61.entry.js.map → p-0bd2b21e.entry.js.map} +0 -0
  333. /package/dist/web-components-library/{p-ee43894c.js.map → p-1170826b.js.map} +0 -0
  334. /package/dist/web-components-library/{p-7000e4f8.js.map → p-195ed6d2.js.map} +0 -0
  335. /package/dist/web-components-library/{p-1d78d37b.entry.js.map → p-209db20e.entry.js.map} +0 -0
  336. /package/dist/web-components-library/{p-3e1983eb.entry.js.map → p-222d4160.entry.js.map} +0 -0
  337. /package/dist/web-components-library/{p-2ac26cde.entry.js.map → p-237fcaa9.entry.js.map} +0 -0
  338. /package/dist/web-components-library/{p-2e373eba.entry.js.map → p-39a968af.entry.js.map} +0 -0
  339. /package/dist/web-components-library/{p-c8501bd3.entry.js.map → p-3cb9a131.entry.js.map} +0 -0
  340. /package/dist/web-components-library/{p-d5e29462.entry.js.map → p-40fc2770.entry.js.map} +0 -0
  341. /package/dist/web-components-library/{p-b16272ea.entry.js.map → p-430916e9.entry.js.map} +0 -0
  342. /package/dist/web-components-library/{p-7a33fe43.entry.js.map → p-43f9569d.entry.js.map} +0 -0
  343. /package/dist/web-components-library/{p-66576512.entry.js.map → p-49f99fa3.entry.js.map} +0 -0
  344. /package/dist/web-components-library/{p-b0d88afc.entry.js.map → p-564ddab3.entry.js.map} +0 -0
  345. /package/dist/web-components-library/{p-ca1a7347.entry.js.map → p-5cda7027.entry.js.map} +0 -0
  346. /package/dist/web-components-library/{p-1e25d225.entry.js.map → p-604602a8.entry.js.map} +0 -0
  347. /package/dist/web-components-library/{p-b555681f.entry.js.map → p-684c8fcb.entry.js.map} +0 -0
  348. /package/dist/web-components-library/{p-b69a3542.entry.js.map → p-6949d27d.entry.js.map} +0 -0
  349. /package/dist/web-components-library/{p-b240bd96.entry.js.map → p-82d52ee6.entry.js.map} +0 -0
  350. /package/dist/web-components-library/{p-4900a14c.entry.js.map → p-83e3b2ff.entry.js.map} +0 -0
  351. /package/dist/web-components-library/{p-1ee52b2e.entry.js.map → p-8cbb9bbe.entry.js.map} +0 -0
  352. /package/dist/web-components-library/{p-3abd3f25.entry.js.map → p-93af4721.entry.js.map} +0 -0
  353. /package/dist/web-components-library/{p-6f761080.entry.js.map → p-96b5a35d.entry.js.map} +0 -0
  354. /package/dist/web-components-library/{p-88983b48.entry.js.map → p-a22b7aa0.entry.js.map} +0 -0
  355. /package/dist/web-components-library/{p-c4878fa9.entry.js.map → p-b376a58c.entry.js.map} +0 -0
  356. /package/dist/web-components-library/{p-2618e4de.entry.js.map → p-c1d89e00.entry.js.map} +0 -0
  357. /package/dist/web-components-library/{p-a2b1d98b.js.map → p-c7d5971f.js.map} +0 -0
  358. /package/dist/web-components-library/{p-663115e2.entry.js.map → p-c8eef88d.entry.js.map} +0 -0
  359. /package/dist/web-components-library/{p-95e28308.entry.js.map → p-ccb2318f.entry.js.map} +0 -0
  360. /package/dist/web-components-library/{p-ad821c05.entry.js.map → p-cf837902.entry.js.map} +0 -0
  361. /package/dist/web-components-library/{p-473ac922.entry.js.map → p-e8bab6ad.entry.js.map} +0 -0
  362. /package/dist/web-components-library/{p-26f324ab.js.map → p-eb9ef3cb.js.map} +0 -0
  363. /package/dist/web-components-library/{p-542e0154.entry.js.map → p-fbbacad0.entry.js.map} +0 -0
  364. /package/dist/web-components-library/{p-8fe13fca.entry.js.map → p-fd7c7885.entry.js.map} +0 -0
  365. /package/dist/web-components-library/{p-6669b4c9.entry.js.map → p-fed6d4ac.entry.js.map} +0 -0
  366. /package/www/build/{p-fbe3bc33.js.map → p-0b26a8e0.js.map} +0 -0
  367. /package/www/build/{p-29759f61.entry.js.map → p-0bd2b21e.entry.js.map} +0 -0
  368. /package/www/build/{p-ee43894c.js.map → p-1170826b.js.map} +0 -0
  369. /package/www/build/{p-7000e4f8.js.map → p-195ed6d2.js.map} +0 -0
  370. /package/www/build/{p-1d78d37b.entry.js.map → p-209db20e.entry.js.map} +0 -0
  371. /package/www/build/{p-3e1983eb.entry.js.map → p-222d4160.entry.js.map} +0 -0
  372. /package/www/build/{p-2ac26cde.entry.js.map → p-237fcaa9.entry.js.map} +0 -0
  373. /package/www/build/{p-2e373eba.entry.js.map → p-39a968af.entry.js.map} +0 -0
  374. /package/www/build/{p-c8501bd3.entry.js.map → p-3cb9a131.entry.js.map} +0 -0
  375. /package/www/build/{p-d5e29462.entry.js.map → p-40fc2770.entry.js.map} +0 -0
  376. /package/www/build/{p-b16272ea.entry.js.map → p-430916e9.entry.js.map} +0 -0
  377. /package/www/build/{p-7a33fe43.entry.js.map → p-43f9569d.entry.js.map} +0 -0
  378. /package/www/build/{p-66576512.entry.js.map → p-49f99fa3.entry.js.map} +0 -0
  379. /package/www/build/{p-b0d88afc.entry.js.map → p-564ddab3.entry.js.map} +0 -0
  380. /package/www/build/{p-ca1a7347.entry.js.map → p-5cda7027.entry.js.map} +0 -0
  381. /package/www/build/{p-1e25d225.entry.js.map → p-604602a8.entry.js.map} +0 -0
  382. /package/www/build/{p-b555681f.entry.js.map → p-684c8fcb.entry.js.map} +0 -0
  383. /package/www/build/{p-b69a3542.entry.js.map → p-6949d27d.entry.js.map} +0 -0
  384. /package/www/build/{p-b240bd96.entry.js.map → p-82d52ee6.entry.js.map} +0 -0
  385. /package/www/build/{p-4900a14c.entry.js.map → p-83e3b2ff.entry.js.map} +0 -0
  386. /package/www/build/{p-1ee52b2e.entry.js.map → p-8cbb9bbe.entry.js.map} +0 -0
  387. /package/www/build/{p-3abd3f25.entry.js.map → p-93af4721.entry.js.map} +0 -0
  388. /package/www/build/{p-6f761080.entry.js.map → p-96b5a35d.entry.js.map} +0 -0
  389. /package/www/build/{p-88983b48.entry.js.map → p-a22b7aa0.entry.js.map} +0 -0
  390. /package/www/build/{p-c4878fa9.entry.js.map → p-b376a58c.entry.js.map} +0 -0
  391. /package/www/build/{p-2618e4de.entry.js.map → p-c1d89e00.entry.js.map} +0 -0
  392. /package/www/build/{p-a2b1d98b.js.map → p-c7d5971f.js.map} +0 -0
  393. /package/www/build/{p-663115e2.entry.js.map → p-c8eef88d.entry.js.map} +0 -0
  394. /package/www/build/{p-95e28308.entry.js.map → p-ccb2318f.entry.js.map} +0 -0
  395. /package/www/build/{p-ad821c05.entry.js.map → p-cf837902.entry.js.map} +0 -0
  396. /package/www/build/{p-473ac922.entry.js.map → p-e8bab6ad.entry.js.map} +0 -0
  397. /package/www/build/{p-26f324ab.js.map → p-eb9ef3cb.js.map} +0 -0
  398. /package/www/build/{p-542e0154.entry.js.map → p-fbbacad0.entry.js.map} +0 -0
  399. /package/www/build/{p-8fe13fca.entry.js.map → p-fd7c7885.entry.js.map} +0 -0
  400. /package/www/build/{p-6669b4c9.entry.js.map → p-fed6d4ac.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"z-section-title.js","mappings":";;;;AAAA,MAAM,SAAS,GAAG,6zBAA6zB,CAAC;AACh1B,4BAAe,SAAS;;MCgBXA,eAAa;;;;;+BAMwB,4BAA4B,CAAC,MAAM;yBAMvE,IAAI;;IAMhB,mBAAmB;QACjB,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC;KAC9E;IAED,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,6DAAM,IAAI,EAAC,iBAAiB,GAAG,EAC9B,CAAC,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,eAAe,KAAK,4BAA4B,CAAC,MAAM,KACtF,kEACE,IAAI,EAAE,WAAW,CAAC,KAAK,EACvB,KAAK,EAAC,gCAAgC,GACtC,CACH,EACD,6DAAM,IAAI,EAAC,eAAe,GAAG,EAC5B,CAAC,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,eAAe,KAAK,4BAA4B,CAAC,KAAK,KACrF,kEACE,IAAI,EAAE,WAAW,CAAC,KAAK,EACvB,KAAK,EAAC,gCAAgC,GACtC,CACH,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ZSectionTitle"],"sources":["src/components/z-section-title/styles.css?tag=z-section-title&encapsulation=shadow","src/components/z-section-title/index.tsx"],"sourcesContent":[":host {\n --z-section-title--divider-color: var(--red500);\n\n display: flex;\n width: fit-content;\n flex-direction: column;\n align-items: flex-start;\n font-family: var(--font-family-sans);\n}\n\n:host,\n:host ::slotted(*) {\n box-sizing: border-box;\n}\n\n::slotted(*) {\n margin: 0;\n}\n\n::slotted([slot=\"secondary-title\"]) {\n padding-bottom: calc(var(--space-unit) / 2);\n border-bottom: var(--border-size-large) solid var(--z-section-title--divider-color);\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n line-height: 1.5rem;\n text-transform: uppercase;\n}\n\n::slotted([slot=\"primary-title\"]) {\n font-size: var(--font-size-6);\n font-weight: var(--font-sb);\n line-height: 2rem;\n}\n\n:host([uppercase]:not([uppercase=\"false\"])) ::slotted([slot=\"primary-title\"]) {\n text-transform: uppercase;\n}\n\n/* Desktop breakpoint */\n@media (min-width: 1152px) {\n ::slotted([slot=\"primary-title\"]) {\n font-size: var(--font-size-7);\n line-height: 2.25rem;\n }\n}\n","import {Component, Element, h, Host, Prop} from \"@stencil/core\";\nimport {DividerSize, ZSectionTitleDividerPosition} from \"../../beans\";\n\n/**\n * Section title component.\n * An optional secondary title can be put over the primary one.\n *\n * @slot secondary-title - Slot for the secondary title. When present, the divider is always displayed under it,\n * following its width and removing the one for the primary title.\n * @slot primary-title - Slot for the primary title.\n * @cssprop --z-section-title--divider-color - Color of the divider. Use a CSS prop string like `\"--red500\"`. Default is `\"--red500\"`.\n */\n@Component({\n tag: \"z-section-title\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZSectionTitle {\n /**\n * Divider position for the primary title.\n * This prop only works if the secondary title is not set.\n */\n @Prop()\n dividerPosition: ZSectionTitleDividerPosition = ZSectionTitleDividerPosition.BEFORE;\n\n /**\n * Whether the primary title text is uppercase.\n */\n @Prop({reflect: true})\n uppercase = true;\n\n @Element() host: HTMLZSectionTitleElement;\n\n private hasSecondaryTitle: boolean;\n\n componentWillRender(): void {\n this.hasSecondaryTitle = !!this.host.querySelector(\"[slot=secondary-title]\");\n }\n\n render(): HTMLZSectionTitleElement {\n return (\n <Host>\n <slot name=\"secondary-title\" />\n {!this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.BEFORE && (\n <z-divider\n size={DividerSize.LARGE}\n color=\"z-section-title--divider-color\"\n />\n )}\n <slot name=\"primary-title\" />\n {!this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.AFTER && (\n <z-divider\n size={DividerSize.LARGE}\n color=\"z-section-title--divider-color\"\n />\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"z-section-title.js","mappings":";;;;AAAA,MAAM,SAAS,GAAG,6zBAA6zB,CAAC;AACh1B,4BAAe,SAAS;;MCgBXA,eAAa;;;;;+BAMwB,4BAA4B,CAAC,MAAM;yBAMvE,IAAI;;IAMhB,mBAAmB;QACjB,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC;KAC9E;IAED,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,6DAAM,IAAI,EAAC,iBAAiB,GAAG,EAC9B,CAAC,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,eAAe,KAAK,4BAA4B,CAAC,MAAM,KACtF,kEACE,IAAI,EAAE,WAAW,CAAC,KAAK,EACvB,KAAK,EAAC,gCAAgC,GACtC,CACH,EACD,6DAAM,IAAI,EAAC,eAAe,GAAG,EAC5B,CAAC,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,eAAe,KAAK,4BAA4B,CAAC,KAAK,KACrF,kEACE,IAAI,EAAE,WAAW,CAAC,KAAK,EACvB,KAAK,EAAC,gCAAgC,GACtC,CACH,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ZSectionTitle"],"sources":["src/components/deprecated/z-section-title/styles.css?tag=z-section-title&encapsulation=shadow","src/components/deprecated/z-section-title/index.tsx"],"sourcesContent":[":host {\n --z-section-title--divider-color: var(--red500);\n\n display: flex;\n width: fit-content;\n flex-direction: column;\n align-items: flex-start;\n font-family: var(--font-family-sans);\n}\n\n:host,\n:host ::slotted(*) {\n box-sizing: border-box;\n}\n\n::slotted(*) {\n margin: 0;\n}\n\n::slotted([slot=\"secondary-title\"]) {\n padding-bottom: calc(var(--space-unit) / 2);\n border-bottom: var(--border-size-large) solid var(--z-section-title--divider-color);\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n line-height: 1.5rem;\n text-transform: uppercase;\n}\n\n::slotted([slot=\"primary-title\"]) {\n font-size: var(--font-size-6);\n font-weight: var(--font-sb);\n line-height: 2rem;\n}\n\n:host([uppercase]:not([uppercase=\"false\"])) ::slotted([slot=\"primary-title\"]) {\n text-transform: uppercase;\n}\n\n/* Desktop breakpoint */\n@media (min-width: 1152px) {\n ::slotted([slot=\"primary-title\"]) {\n font-size: var(--font-size-7);\n line-height: 2.25rem;\n }\n}\n","import {Component, Element, h, Host, Prop} from \"@stencil/core\";\nimport {DividerSize, ZSectionTitleDividerPosition} from \"../../../beans\";\n\n/**\n * Section title component.\n * An optional secondary title can be put over the primary one.\n *\n * @slot secondary-title - Slot for the secondary title. When present, the divider is always displayed under it,\n * following its width and removing the one for the primary title.\n * @slot primary-title - Slot for the primary title.\n * @cssprop --z-section-title--divider-color - Color of the divider. Use a CSS prop string like `\"--red500\"`. Default is `\"--red500\"`.\n */\n@Component({\n tag: \"z-section-title\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZSectionTitle {\n /**\n * Divider position for the primary title.\n * This prop only works if the secondary title is not set.\n */\n @Prop()\n dividerPosition: ZSectionTitleDividerPosition = ZSectionTitleDividerPosition.BEFORE;\n\n /**\n * Whether the primary title text is uppercase.\n */\n @Prop({reflect: true})\n uppercase = true;\n\n @Element() host: HTMLZSectionTitleElement;\n\n private hasSecondaryTitle: boolean;\n\n componentWillRender(): void {\n this.hasSecondaryTitle = !!this.host.querySelector(\"[slot=secondary-title]\");\n }\n\n render(): HTMLZSectionTitleElement {\n return (\n <Host>\n <slot name=\"secondary-title\" />\n {!this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.BEFORE && (\n <z-divider\n size={DividerSize.LARGE}\n color=\"z-section-title--divider-color\"\n />\n )}\n <slot name=\"primary-title\" />\n {!this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.AFTER && (\n <z-divider\n size={DividerSize.LARGE}\n color=\"z-section-title--divider-color\"\n />\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -482,7 +482,7 @@ const ZSelect$1 = /*@__PURE__*/ proxyCustomElement(class ZSelect extends HTMLEle
482
482
  return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size, disabled: this.disabled }));
483
483
  }
484
484
  render() {
485
- return (h("div", { key: '3d387c6835c33fd7fe875223800a342d3fc50762', class: "select-wrapper" }, this.renderInput(), this.renderSelectUl(), this.renderMessage()));
485
+ return (h("div", { key: '50d85283f13af94f07e960f17e2f8126c7f2469e', class: "select-wrapper" }, this.renderInput(), this.renderSelectUl(), this.renderMessage()));
486
486
  }
487
487
  get host() { return this; }
488
488
  static get watchers() { return {
@@ -37,7 +37,7 @@ const ZTable$1 = /*@__PURE__*/ proxyCustomElement(class ZTable extends HTMLEleme
37
37
  (_a = this.expandableMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: '18f6152b1942c333fb95a9f7e7a23715bf27675d', expandable: this.expandable }, h("div", { key: 'fc7084c01d72828d9d2d8a565a1498a111504992', class: "table", role: "table" }, h("slot", { key: '78d5bf7370f5497868f2277e29d9ad8191123c5e' }))));
40
+ return (h(Host, { key: 'a37bf2d018aedf198e11248d9952c062deddc545', expandable: this.expandable }, h("div", { key: 'a769b79ee55eb5425bb6c72059437f051967c3b3', class: "table", role: "table" }, h("slot", { key: '0ba782144cc2f139484954747d530d6f1c606a0d' }))));
41
41
  }
42
42
  get host() { return this; }
43
43
  static get style() { return ZTableStyle0; }
@@ -10,7 +10,7 @@ const ZTbody$1 = /*@__PURE__*/ proxyCustomElement(class ZTbody extends HTMLEleme
10
10
  this.__attachShadow();
11
11
  }
12
12
  render() {
13
- return (h(Host, { key: 'b489d32d81a796eafef0fa82f9bb24c53db9e7f7', role: "rowgroup" }, h("slot", { key: '89b11f845de05e0a40dc0180fa45a23c2fd281c7' })));
13
+ return (h(Host, { key: 'c14251b56741e89faba797de5c531dc539b4561b', role: "rowgroup" }, h("slot", { key: '3d2168a3fdc01ff6f68f19f3c346d6732fb7aab0' })));
14
14
  }
15
15
  static get style() { return ZTbodyStyle0; }
16
16
  }, [1, "z-tbody"]);
@@ -36,7 +36,7 @@ const ZTd$1 = /*@__PURE__*/ proxyCustomElement(class ZTd extends HTMLElement {
36
36
  this.updateColspan();
37
37
  }
38
38
  render() {
39
- return (h(Host, { key: '9c7d03779f5c51ed26cd794d62f6fe489afa557c', role: "cell", "menu-open": this.isMenuOpen }, h("div", { key: '71494ed002d042d686248cc9382e6b8f98ec4f18', class: "cell--content" }, h("slot", { key: 'd4d89e6814b00e5e120468727205cff474201d00' }), this.showMenu && (h("div", { key: '60a3e28f42528ea07f9fed652f645397f949d197', class: "cell--menu-container prevent-expand" }, h("z-button", { key: '5bc9cfaa9f5215eb4068a6243c80131a1ea8b5c3', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: this.onMenuButtonClick.bind(this) }), h("z-popover", { key: 'f9d6370971330f8fe989a59c5adeaecfa9d66180', class: "cell-popover", ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: '7e14e87932afb69dc68ffa04a874981770368c5e', name: "contextual-menu" })))))));
39
+ return (h(Host, { key: 'c9c2a31f99dc72acd54744c8c1abdbb56b0a7df3', role: "cell", "menu-open": this.isMenuOpen }, h("div", { key: 'f503630802052c5c3566b725aba40ea0923d60da', class: "cell--content" }, h("slot", { key: 'e26dc22a7b21eef5475d10124312384593957bf8' }), this.showMenu && (h("div", { key: '4c7204766c53e4502ff24e51e9ea751620246278', class: "cell--menu-container prevent-expand" }, h("z-button", { key: '3d0f59414241c2b195dd45cf74f678b15e957cac', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: this.onMenuButtonClick.bind(this) }), h("z-popover", { key: '68d2f577c442c9a72009dd6365cd4182e9333d5a', class: "cell-popover", ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'c90cf570174b2e2af659ae02e217d725a1951cb4', name: "contextual-menu" })))))));
40
40
  }
41
41
  get host() { return this; }
42
42
  static get watchers() { return {
@@ -11,7 +11,7 @@ const ZTfoot$1 = /*@__PURE__*/ proxyCustomElement(class ZTfoot extends HTMLEleme
11
11
  this.sticky = false;
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: '441a3e0656da274193c4a12681b9e9d641690982', role: "rowgroup" }, h("slot", { key: '5e80207cbf1238b2141fcd657cb10fc18be7bccb' })));
14
+ return (h(Host, { key: '68f9134c92fd8aa1db8236ca1cae82945b8dff40', role: "rowgroup" }, h("slot", { key: 'e76426e09634deb41395104af9c37f8f75415435' })));
15
15
  }
16
16
  static get style() { return ZTfootStyle0; }
17
17
  }, [1, "z-tfoot", {
@@ -56,7 +56,7 @@ const ZTh$1 = /*@__PURE__*/ proxyCustomElement(class ZTh extends HTMLElement {
56
56
  this.updateColspan();
57
57
  }
58
58
  render() {
59
- return (h(Host, { key: 'e8bf215c5bdf5c0486d0de3768919d54a94b8b46', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, h("div", { key: 'e7dfc68ddaeac9f1f763eb62e2717ea5e166df16', class: "cell--content" }, h("slot", { key: '96edba7522e8e43bcfecea9d305ffc9840548020' }), this.showSorting && (h("button", { key: '81cef37216c2c823b1027df224ddb905d3c9d412', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: 'b00db383bf202b9f774781551a6e59329fed10b2', name: this.sortDirection === SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: '2762feca4feeff61aa673d2a3535f91c9ee7db03', class: "cell--menu-container" }, h("z-button", { key: 'e91a00179db0075255b57d5f946e3c321883faf6', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), h("z-popover", { key: 'c632eb1071f2533aa86251e8e345eda845512693', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'bc3aa447b61972c3299352d49f27c9a060a2ce4d', name: "contextual-menu" })))))));
59
+ return (h(Host, { key: '80d84d10038bfd5171b1596db3175c4e915e3c81', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, h("div", { key: 'b98f5cbe6c9fa873e39f46ba701c76755a4f9da7', class: "cell--content" }, h("slot", { key: 'f7d2b12496eb334bf07fcfc80e42cacf95a2b6c7' }), this.showSorting && (h("button", { key: '000518536845b9b1383d2aa90a655000a2d0cc0b', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: '61cedbe8a54e51cac9d94f00e4d9d84dbcc1b48d', name: this.sortDirection === SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: '3c2ac483288672ac1c65dc3586fb9b346abe53e9', class: "cell--menu-container" }, h("z-button", { key: '6a495a201dc8343267ef8892bc97150c2d4ec4fc', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), h("z-popover", { key: 'b97a3477c4f63bccb2445304676ad2127a26d9df', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'd51ba2caa4e7929e3aedf3beec9b95f4c9b1cf24', name: "contextual-menu" })))))));
60
60
  }
61
61
  get host() { return this; }
62
62
  static get watchers() { return {
@@ -11,7 +11,7 @@ const ZThead$1 = /*@__PURE__*/ proxyCustomElement(class ZThead extends HTMLEleme
11
11
  this.sticky = false;
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: '96a3a467d89c4de659693e31c46f8aee89497140', role: "rowgroup" }, h("slot", { key: 'd1af4ab3b7b484f5de8b16a9d4a74e93ae65ee60' })));
14
+ return (h(Host, { key: '8f4e7bb738d8d4cf6aaf83faf5b2ecd4ed58feac', role: "rowgroup" }, h("slot", { key: '2a7dfe21b40cb26c57c98b6cae40dc801b22e7e3' })));
15
15
  }
16
16
  static get style() { return ZTheadStyle0; }
17
17
  }, [1, "z-thead", {
@@ -45,7 +45,7 @@ const ZTr$1 = /*@__PURE__*/ proxyCustomElement(class ZTr extends HTMLElement {
45
45
  this.updateColumns();
46
46
  }
47
47
  render() {
48
- return (h(Host, { key: '5ce42271810a5e186701cef65ba6d0e4b7f044fe', role: "row", onClick: this.onRowClick.bind(this), expanded: this.expanded }, h("div", { key: 'e699c444b5d3f21e5468e895a1b4f39829077cc9', class: "z-tr--expand-button-container" }, this.expandable && (h("button", { key: '9f4dee6f1fd647c40fe3612ed52ccff4f8231778', "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, h("z-icon", { key: '572c95ff115f9c00c07a2e84130020e2f03031c5', name: this.expanded ? "minus-circled" : "plus-circled" })))), h("slot", { key: '97c0be024dde1cf6e218ddaaef53a2b4ca723d37', onSlotchange: this.updateColumns.bind(this) })));
48
+ return (h(Host, { key: 'c7aef75dce7ad486aa08145e3df1a9a4fbc0a086', role: "row", onClick: this.onRowClick.bind(this), expanded: this.expanded }, h("div", { key: '474efb8147efb3045b2d671081674330209674ae', class: "z-tr--expand-button-container" }, this.expandable && (h("button", { key: 'd4f77c52514979ee1e52483d1031d222f8b60dfd', "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, h("z-icon", { key: 'a488e44b2b9119f2b96aeb42c2880f16650685a6', name: this.expanded ? "minus-circled" : "plus-circled" })))), h("slot", { key: '03ec3ec33b29e7ec504282289fa0daf8990deef5', onSlotchange: this.updateColumns.bind(this) })));
49
49
  }
50
50
  get host() { return this; }
51
51
  static get watchers() { return {
@@ -106,7 +106,7 @@ const ZTreeList$1 = /*@__PURE__*/ proxyCustomElement(class ZTreeList extends HTM
106
106
  }
107
107
  render() {
108
108
  const hasClickableItems = this.parsedItems.some((item) => !!item.url);
109
- return (h(Host, { key: 'a69d54dfd302656adc09278ac77cde23a7c1e69c', class: "tree-list", role: hasClickableItems ? "navigation" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-labelledby": this.htmlAriaLabelledby }, h("div", { key: '780851098b592574ee55839e4a28d030d9bfa5b7', tabIndex: -1, role: hasClickableItems ? "tree" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-label": this.htmlSectionTitle }, this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`)))));
109
+ return (h(Host, { key: '860eebd2ba1f46fb493bc07eb245596a9dc8be99', class: "tree-list", role: hasClickableItems ? "navigation" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-labelledby": this.htmlAriaLabelledby }, h("div", { key: '6a5876f627d499e9c04464383463f97d5caa1272', tabIndex: -1, role: hasClickableItems ? "tree" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-label": this.htmlSectionTitle }, this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`)))));
110
110
  }
111
111
  get host() { return this; }
112
112
  static get watchers() { return {
@@ -10,7 +10,7 @@ const ZVisuallyHidden$1 = /*@__PURE__*/ proxyCustomElement(class ZVisuallyHidden
10
10
  this.__attachShadow();
11
11
  }
12
12
  render() {
13
- return h("slot", { key: '9ce7d87881fa96e717bc1556d5242cbfe68d0739' });
13
+ return h("slot", { key: '3d75845d1ec7fa620b82b32f68fe73368d800e61' });
14
14
  }
15
15
  static get style() { return ZVisuallyHiddenStyle0; }
16
16
  }, [1, "z-visually-hidden"]);
@@ -1,5 +1,5 @@
1
1
  import { html } from "lit";
2
- import "../../src/components/z-section-title/index";
2
+ import "../../src/components/deprecated/z-section-title/index";
3
3
  import { getPalettes, getThemeColorTokens } from "../../src/utils/storybook-utils";
4
4
  import "./index.stories.css";
5
5
  export default {
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../docs/themes/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AACzB,OAAO,4CAA4C,CAAC;AACpD,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,iCAAiC,CAAC;AACjF,OAAO,qBAAqB,CAAC;AAE7B,eAAe;IACb,KAAK,EAAE,QAAQ;IACf,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;IACD,IAAI,EAAE,CAAC,WAAW,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,MAAM,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE;QACrB,MAAM,CAAC,YAAY,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxG,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,YAAY,EAAE,mBAAmB,CAAC,CAAC;QAChF,MAAM,YAAY,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;QAE1D,OAAO,IAAI,CAAA;;;;;;;;;;;;gBAYC,4CAA4C;;;;;;;;;;;cAW9C,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,GAAG,CACjC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA;;6CAEgB,KAAK;;;;qDAIG,KAAK;;;oDAGN,gBAAgB,CAAC,KAAK,CAAC;;4BAE/C,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC;;;;;eAK/E,CACF;cACC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CACxC,CAAC,gBAAgB,CAAC,KAAK,CAAC;YACtB,CAAC,CAAC,IAAI,CAAA;;2DAEqC,KAAK;;;;yDAIP,KAAK;;;wDAGN,YAAY,CAAC,KAAK,CAAC;;gCAE3C,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC;;;;;mBAK/E;YACH,CAAC,CAAC,EAAE,CACP;;;;KAIR,CAAC;IACJ,CAAC;CACiB,CAAC;AAErB,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;AAE/B,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;;QAEZ,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CACzB,CAAC,WAAW,EAAE,EAAE,CACd,IAAI,CAAA;iDACmC,WAAW;;gBAE5C,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CACzB,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA;;+CAEgB,KAAK;;;;uDAIG,KAAK;;;0BAGlC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC;;;;iBAI3E,CACF;;iBAEE,CACV;;GAEJ;CACiB,CAAC","sourcesContent":["import {StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport \"../../src/components/z-section-title/index\";\nimport {getPalettes, getThemeColorTokens} from \"../../src/utils/storybook-utils\";\nimport \"./index.stories.css\";\n\nexport default {\n title: \"Colors\",\n parameters: {\n layout: \"fullscreen\",\n },\n tags: [\"!autodocs\"],\n};\n\nexport const Themes = {\n render: (_, context) => {\n const [currentTheme, currentThemeVariant] = context.parameters.themes[context.globals.theme].split(\" \");\n const themeColorTokens = getThemeColorTokens(currentTheme, currentThemeVariant);\n const defaultTheme = getThemeColorTokens(\"theme-default\");\n\n return html`\n <div class=\"colors-story themes\">\n <p>\n Currently available color themes: <strong>default</strong>, <strong>black</strong>,\n <strong>black-red</strong>, <strong>black-yellow</strong>, <strong>dark</strong>, and <strong>red</strong>.\n </p>\n <p>\n Each theme has a CSS class that can be used to theme any html element and each class name is the \"theme-\"\n prefix + the theme's name (\"theme-default\", \"theme-red\", ...). Themes variants like \"black-red\" or\n \"black-yellow\" can be applied to the related main theme by using both classes (variant class names have te\n same form of main themes plus a double dash and the variant name, like \"theme-black--red\"):\n </p>\n <code>${'<div class=\"theme-black theme-black--red\">'}</code>\n <p>\n On this page you can see the value of the color tokens for each theme. Switch the theme from the list in the\n toolbar.\n </p>\n <p class=\"interactive-1\">\n Note: the tokens marked with \"<span class=\"reference\">*</span>\" are inherited from the default theme.\n </p>\n <div class=\"tokens-container\">\n <div class=\"title section-title-4\">Color tokens</div>\n <ul>\n ${Object.keys(themeColorTokens).map(\n (token) => html`\n <li>\n <span class=\"token-name\">${token}</span>\n <div class=\"color\">\n <div\n class=\"color-box\"\n style=\"background-color: var(${token})\"\n ></div>\n <div>\n <span class=\"interactive-2\">${themeColorTokens[token]}</span>\n <span class=\"interactive-3\"\n >(${getComputedStyle(document.documentElement).getPropertyValue(token)})</span\n >\n </div>\n </div>\n </li>\n `\n )}\n ${Object.keys(defaultTheme).map((token) =>\n !themeColorTokens[token]\n ? html`\n <li>\n <span class=\"token-name inherited\">${token}<span class=\"reference\">*</span></span>\n <div class=\"color\">\n <div\n class=\"color-box\"\n style=\"background-color: var(${token})\"\n ></div>\n <div>\n <span class=\"interactive-2\">${defaultTheme[token]}</span>\n <span class=\"interactive-3\"\n >(${getComputedStyle(document.documentElement).getPropertyValue(token)})</span\n >\n </div>\n </div>\n </li>\n `\n : \"\"\n )}\n </ul>\n </div>\n </div>\n `;\n },\n} satisfies StoryObj;\n\nconst palettes = getPalettes();\n\nexport const Palettes = {\n render: () => html`\n <div class=\"colors-story palettes\">\n ${Object.keys(palettes).map(\n (paletteName) =>\n html`<div class=\"tokens-container\">\n <div class=\"title section-title-4\">${paletteName}</div>\n <ul>\n ${palettes[paletteName].map(\n (token) => html`\n <li>\n <span class=\"token-name\">${token}</span>\n <div class=\"color\">\n <div\n class=\"color-box\"\n style=\"background-color: var(${token})\"\n ></div>\n <div class=\"interactive-2\">\n ${getComputedStyle(document.documentElement).getPropertyValue(token)}\n </div>\n </div>\n </li>\n `\n )}\n </ul>\n </div>`\n )}\n </div>\n `,\n} satisfies StoryObj;\n"]}
1
+ {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../docs/themes/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AACzB,OAAO,uDAAuD,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,iCAAiC,CAAC;AACjF,OAAO,qBAAqB,CAAC;AAE7B,eAAe;IACb,KAAK,EAAE,QAAQ;IACf,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;IACD,IAAI,EAAE,CAAC,WAAW,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,MAAM,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE;QACrB,MAAM,CAAC,YAAY,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxG,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,YAAY,EAAE,mBAAmB,CAAC,CAAC;QAChF,MAAM,YAAY,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;QAE1D,OAAO,IAAI,CAAA;;;;;;;;;;;;gBAYC,4CAA4C;;;;;;;;;;;cAW9C,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,GAAG,CACjC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA;;6CAEgB,KAAK;;;;qDAIG,KAAK;;;oDAGN,gBAAgB,CAAC,KAAK,CAAC;;4BAE/C,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC;;;;;eAK/E,CACF;cACC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CACxC,CAAC,gBAAgB,CAAC,KAAK,CAAC;YACtB,CAAC,CAAC,IAAI,CAAA;;2DAEqC,KAAK;;;;yDAIP,KAAK;;;wDAGN,YAAY,CAAC,KAAK,CAAC;;gCAE3C,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC;;;;;mBAK/E;YACH,CAAC,CAAC,EAAE,CACP;;;;KAIR,CAAC;IACJ,CAAC;CACiB,CAAC;AAErB,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;AAE/B,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA;;QAEZ,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CACzB,CAAC,WAAW,EAAE,EAAE,CACd,IAAI,CAAA;iDACmC,WAAW;;gBAE5C,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CACzB,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA;;+CAEgB,KAAK;;;;uDAIG,KAAK;;;0BAGlC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC;;;;iBAI3E,CACF;;iBAEE,CACV;;GAEJ;CACiB,CAAC","sourcesContent":["import {StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport \"../../src/components/deprecated/z-section-title/index\";\nimport {getPalettes, getThemeColorTokens} from \"../../src/utils/storybook-utils\";\nimport \"./index.stories.css\";\n\nexport default {\n title: \"Colors\",\n parameters: {\n layout: \"fullscreen\",\n },\n tags: [\"!autodocs\"],\n};\n\nexport const Themes = {\n render: (_, context) => {\n const [currentTheme, currentThemeVariant] = context.parameters.themes[context.globals.theme].split(\" \");\n const themeColorTokens = getThemeColorTokens(currentTheme, currentThemeVariant);\n const defaultTheme = getThemeColorTokens(\"theme-default\");\n\n return html`\n <div class=\"colors-story themes\">\n <p>\n Currently available color themes: <strong>default</strong>, <strong>black</strong>,\n <strong>black-red</strong>, <strong>black-yellow</strong>, <strong>dark</strong>, and <strong>red</strong>.\n </p>\n <p>\n Each theme has a CSS class that can be used to theme any html element and each class name is the \"theme-\"\n prefix + the theme's name (\"theme-default\", \"theme-red\", ...). Themes variants like \"black-red\" or\n \"black-yellow\" can be applied to the related main theme by using both classes (variant class names have te\n same form of main themes plus a double dash and the variant name, like \"theme-black--red\"):\n </p>\n <code>${'<div class=\"theme-black theme-black--red\">'}</code>\n <p>\n On this page you can see the value of the color tokens for each theme. Switch the theme from the list in the\n toolbar.\n </p>\n <p class=\"interactive-1\">\n Note: the tokens marked with \"<span class=\"reference\">*</span>\" are inherited from the default theme.\n </p>\n <div class=\"tokens-container\">\n <div class=\"title section-title-4\">Color tokens</div>\n <ul>\n ${Object.keys(themeColorTokens).map(\n (token) => html`\n <li>\n <span class=\"token-name\">${token}</span>\n <div class=\"color\">\n <div\n class=\"color-box\"\n style=\"background-color: var(${token})\"\n ></div>\n <div>\n <span class=\"interactive-2\">${themeColorTokens[token]}</span>\n <span class=\"interactive-3\"\n >(${getComputedStyle(document.documentElement).getPropertyValue(token)})</span\n >\n </div>\n </div>\n </li>\n `\n )}\n ${Object.keys(defaultTheme).map((token) =>\n !themeColorTokens[token]\n ? html`\n <li>\n <span class=\"token-name inherited\">${token}<span class=\"reference\">*</span></span>\n <div class=\"color\">\n <div\n class=\"color-box\"\n style=\"background-color: var(${token})\"\n ></div>\n <div>\n <span class=\"interactive-2\">${defaultTheme[token]}</span>\n <span class=\"interactive-3\"\n >(${getComputedStyle(document.documentElement).getPropertyValue(token)})</span\n >\n </div>\n </div>\n </li>\n `\n : \"\"\n )}\n </ul>\n </div>\n </div>\n `;\n },\n} satisfies StoryObj;\n\nconst palettes = getPalettes();\n\nexport const Palettes = {\n render: () => html`\n <div class=\"colors-story palettes\">\n ${Object.keys(palettes).map(\n (paletteName) =>\n html`<div class=\"tokens-container\">\n <div class=\"title section-title-4\">${paletteName}</div>\n <ul>\n ${palettes[paletteName].map(\n (token) => html`\n <li>\n <span class=\"token-name\">${token}</span>\n <div class=\"color\">\n <div\n class=\"color-box\"\n style=\"background-color: var(${token})\"\n ></div>\n <div class=\"interactive-2\">\n ${getComputedStyle(document.documentElement).getPropertyValue(token)}\n </div>\n </div>\n </li>\n `\n )}\n </ul>\n </div>`\n )}\n </div>\n `,\n} satisfies StoryObj;\n"]}
@@ -8,11 +8,11 @@ const ZTbody = class {
8
8
  registerInstance(this, hostRef);
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: 'b489d32d81a796eafef0fa82f9bb24c53db9e7f7', role: "rowgroup" }, h("slot", { key: '89b11f845de05e0a40dc0180fa45a23c2fd281c7' })));
11
+ return (h(Host, { key: 'c14251b56741e89faba797de5c531dc539b4561b', role: "rowgroup" }, h("slot", { key: '3d2168a3fdc01ff6f68f19f3c346d6732fb7aab0' })));
12
12
  }
13
13
  };
14
14
  ZTbody.style = ZTbodyStyle0;
15
15
 
16
16
  export { ZTbody as Z };
17
17
 
18
- //# sourceMappingURL=index-9a0ea49b.js.map
18
+ //# sourceMappingURL=index-0ea3c7c8.js.map
@@ -1 +1 @@
1
- {"file":"index-9a0ea49b.js","mappings":";;AAAA,MAAM,SAAS,GAAG,4CAA4C,CAAC;AAC/D,qBAAe,SAAS;;MCUX,MAAM;;;;IACjB,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU,IACnB,8DAAa,CACR,EACP;KACH;;;;;;","names":[],"sources":["src/components/table/z-tbody/styles.css?tag=z-tbody&encapsulation=shadow","src/components/table/z-tbody/index.tsx"],"sourcesContent":[":host {\n display: block;\n box-sizing: border-box;\n}\n","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"],"version":3}
1
+ {"file":"index-0ea3c7c8.js","mappings":";;AAAA,MAAM,SAAS,GAAG,4CAA4C,CAAC;AAC/D,qBAAe,SAAS;;MCUX,MAAM;;;;IACjB,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU,IACnB,8DAAa,CACR,EACP;KACH;;;;;;","names":[],"sources":["src/components/table/z-tbody/styles.css?tag=z-tbody&encapsulation=shadow","src/components/table/z-tbody/index.tsx"],"sourcesContent":[":host {\n display: block;\n box-sizing: border-box;\n}\n","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"],"version":3}
@@ -31,7 +31,7 @@ const ZTd = class {
31
31
  this.updateColspan();
32
32
  }
33
33
  render() {
34
- return (h(Host, { key: '9c7d03779f5c51ed26cd794d62f6fe489afa557c', role: "cell", "menu-open": this.isMenuOpen }, h("div", { key: '71494ed002d042d686248cc9382e6b8f98ec4f18', class: "cell--content" }, h("slot", { key: 'd4d89e6814b00e5e120468727205cff474201d00' }), this.showMenu && (h("div", { key: '60a3e28f42528ea07f9fed652f645397f949d197', class: "cell--menu-container prevent-expand" }, h("z-button", { key: '5bc9cfaa9f5215eb4068a6243c80131a1ea8b5c3', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: this.onMenuButtonClick.bind(this) }), h("z-popover", { key: 'f9d6370971330f8fe989a59c5adeaecfa9d66180', class: "cell-popover", ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: '7e14e87932afb69dc68ffa04a874981770368c5e', name: "contextual-menu" })))))));
34
+ return (h(Host, { key: 'c9c2a31f99dc72acd54744c8c1abdbb56b0a7df3', role: "cell", "menu-open": this.isMenuOpen }, h("div", { key: 'f503630802052c5c3566b725aba40ea0923d60da', class: "cell--content" }, h("slot", { key: 'e26dc22a7b21eef5475d10124312384593957bf8' }), this.showMenu && (h("div", { key: '4c7204766c53e4502ff24e51e9ea751620246278', class: "cell--menu-container prevent-expand" }, h("z-button", { key: '3d0f59414241c2b195dd45cf74f678b15e957cac', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: this.onMenuButtonClick.bind(this) }), h("z-popover", { key: '68d2f577c442c9a72009dd6365cd4182e9333d5a', class: "cell-popover", ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'c90cf570174b2e2af659ae02e217d725a1951cb4', name: "contextual-menu" })))))));
35
35
  }
36
36
  get host() { return getElement(this); }
37
37
  static get watchers() { return {
@@ -42,4 +42,4 @@ ZTd.style = ZTdStyle0;
42
42
 
43
43
  export { ZTd as Z };
44
44
 
45
- //# sourceMappingURL=index-2a83dc12.js.map
45
+ //# sourceMappingURL=index-2ccbb96f.js.map
@@ -1 +1 @@
1
- {"file":"index-2a83dc12.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,2hCAA2hC,CAAC;AAC9iC,kBAAe,SAAS;;MCWX,GAAG;;;;;sBAaL,KAAK;wBAQkB,IAAI;+BAMA,eAAe,CAAC,IAAI;0BAM3C,KAAK;;IAgBR,aAAa;QACrB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;SACrD;aAAM;YACL,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;SAC/C;QAED,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;KAC5C;IAEO,iBAAiB,CAAC,EAAc;QACtC,EAAE,CAAC,eAAe,EAAE,CAAC;QACrB,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC5C;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,IAAI,EAAC,MAAM,eACA,IAAI,CAAC,UAAU,IAE1B,4DAAK,KAAK,EAAC,eAAe,IACxB,8DAAa,EACZ,IAAI,CAAC,QAAQ,KACZ,4DAAK,KAAK,EAAC,qCAAqC,IAC9C,iEACE,OAAO,EAAE,aAAa,CAAC,QAAQ,EAC/B,IAAI,EAAC,iBAAiB,EACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAwB,CAAC,EAC1D,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAC1C,EACF,kEACE,KAAK,EAAC,cAAc,EACpB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAyB,CAAC,EACzD,MAAM,EAAE,IAAI,CAAC,WAA0B,EACvC,YAAY,EAAE,CAAC,KAAK,MAAM,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe,IAE9B,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC1B,CACR,CACP,CACG,CACD,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/table/cells/z-td/styles.css?tag=z-td&encapsulation=shadow","src/components/table/cells/z-td/index.tsx"],"sourcesContent":["@import \"../z-table-cells.css\";\n","import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, PopoverPosition, VisibilityCondition} from \"../../../../beans\";\n\n/**\n * ZTd component.\n * @slot - ZTd content.\n */\n@Component({\n tag: \"z-td\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTd {\n @Element() host: HTMLZTdElement;\n\n /**\n * Number of columns that the cell should span.\n */\n @Prop()\n colspan: number;\n\n /**\n * Whether the cell should stick.\n */\n @Prop({reflect: true})\n sticky = false;\n\n /**\n * Enables the contextual menu.\n * Can be set to \"hover\" or \"always\" to show the button only on cell hover or always.\n * Set a nullish value to hide the menu button.\n */\n @Prop({reflect: true})\n showMenu: VisibilityCondition = null;\n\n /**\n * Set the popover position, the default is \"auto\".\n */\n @Prop()\n popoverPosition?: PopoverPosition = PopoverPosition.AUTO;\n\n /**\n * Store the open state of the menu.\n */\n @State()\n isMenuOpen = false;\n\n private menuTrigger: HTMLZButtonElement;\n\n private popoverEl: HTMLZPopoverElement;\n\n /**\n * Emitted when the value of the `colspan` changes.\n */\n @Event({\n bubbles: true,\n cancelable: false,\n })\n colspanChange: EventEmitter<number>;\n\n @Watch(\"colspan\")\n protected updateColspan(): void {\n if (this.colspan) {\n this.host.style.gridColumn = `span ${this.colspan}`;\n } else {\n this.host.style.removeProperty(\"grid-column\");\n }\n\n this.colspanChange.emit(this.colspan || 1);\n }\n\n private onMenuButtonClick(ev: MouseEvent): void {\n ev.stopPropagation();\n this.popoverEl.open = !this.popoverEl.open;\n }\n\n componentWillLoad(): void {\n this.updateColspan();\n }\n\n render(): HTMLZTdElement {\n return (\n <Host\n role=\"cell\"\n menu-open={this.isMenuOpen}\n >\n <div class=\"cell--content\">\n <slot></slot>\n {this.showMenu && (\n <div class=\"cell--menu-container prevent-expand\">\n <z-button\n variant={ButtonVariant.TERTIARY}\n icon=\"contextual-menu\"\n size={ControlSize.X_SMALL}\n ref={(el) => (this.menuTrigger = el as HTMLZButtonElement)}\n onClick={this.onMenuButtonClick.bind(this)}\n />\n <z-popover\n class=\"cell-popover\"\n ref={(el) => (this.popoverEl = el as HTMLZPopoverElement)}\n bindTo={this.menuTrigger as HTMLElement}\n onOpenChange={(event) => (this.isMenuOpen = event.detail.open)}\n position={this.popoverPosition}\n >\n <slot name=\"contextual-menu\"></slot>\n </z-popover>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"index-2ccbb96f.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,2hCAA2hC,CAAC;AAC9iC,kBAAe,SAAS;;MCWX,GAAG;;;;;sBAaL,KAAK;wBAQkB,IAAI;+BAMA,eAAe,CAAC,IAAI;0BAM3C,KAAK;;IAgBR,aAAa;QACrB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;SACrD;aAAM;YACL,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;SAC/C;QAED,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;KAC5C;IAEO,iBAAiB,CAAC,EAAc;QACtC,EAAE,CAAC,eAAe,EAAE,CAAC;QACrB,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC5C;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,IAAI,EAAC,MAAM,eACA,IAAI,CAAC,UAAU,IAE1B,4DAAK,KAAK,EAAC,eAAe,IACxB,8DAAa,EACZ,IAAI,CAAC,QAAQ,KACZ,4DAAK,KAAK,EAAC,qCAAqC,IAC9C,iEACE,OAAO,EAAE,aAAa,CAAC,QAAQ,EAC/B,IAAI,EAAC,iBAAiB,EACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAwB,CAAC,EAC1D,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAC1C,EACF,kEACE,KAAK,EAAC,cAAc,EACpB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAyB,CAAC,EACzD,MAAM,EAAE,IAAI,CAAC,WAA0B,EACvC,YAAY,EAAE,CAAC,KAAK,MAAM,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe,IAE9B,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC1B,CACR,CACP,CACG,CACD,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/table/cells/z-td/styles.css?tag=z-td&encapsulation=shadow","src/components/table/cells/z-td/index.tsx"],"sourcesContent":["@import \"../z-table-cells.css\";\n","import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, PopoverPosition, VisibilityCondition} from \"../../../../beans\";\n\n/**\n * ZTd component.\n * @slot - ZTd content.\n */\n@Component({\n tag: \"z-td\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTd {\n @Element() host: HTMLZTdElement;\n\n /**\n * Number of columns that the cell should span.\n */\n @Prop()\n colspan: number;\n\n /**\n * Whether the cell should stick.\n */\n @Prop({reflect: true})\n sticky = false;\n\n /**\n * Enables the contextual menu.\n * Can be set to \"hover\" or \"always\" to show the button only on cell hover or always.\n * Set a nullish value to hide the menu button.\n */\n @Prop({reflect: true})\n showMenu: VisibilityCondition = null;\n\n /**\n * Set the popover position, the default is \"auto\".\n */\n @Prop()\n popoverPosition?: PopoverPosition = PopoverPosition.AUTO;\n\n /**\n * Store the open state of the menu.\n */\n @State()\n isMenuOpen = false;\n\n private menuTrigger: HTMLZButtonElement;\n\n private popoverEl: HTMLZPopoverElement;\n\n /**\n * Emitted when the value of the `colspan` changes.\n */\n @Event({\n bubbles: true,\n cancelable: false,\n })\n colspanChange: EventEmitter<number>;\n\n @Watch(\"colspan\")\n protected updateColspan(): void {\n if (this.colspan) {\n this.host.style.gridColumn = `span ${this.colspan}`;\n } else {\n this.host.style.removeProperty(\"grid-column\");\n }\n\n this.colspanChange.emit(this.colspan || 1);\n }\n\n private onMenuButtonClick(ev: MouseEvent): void {\n ev.stopPropagation();\n this.popoverEl.open = !this.popoverEl.open;\n }\n\n componentWillLoad(): void {\n this.updateColspan();\n }\n\n render(): HTMLZTdElement {\n return (\n <Host\n role=\"cell\"\n menu-open={this.isMenuOpen}\n >\n <div class=\"cell--content\">\n <slot></slot>\n {this.showMenu && (\n <div class=\"cell--menu-container prevent-expand\">\n <z-button\n variant={ButtonVariant.TERTIARY}\n icon=\"contextual-menu\"\n size={ControlSize.X_SMALL}\n ref={(el) => (this.menuTrigger = el as HTMLZButtonElement)}\n onClick={this.onMenuButtonClick.bind(this)}\n />\n <z-popover\n class=\"cell-popover\"\n ref={(el) => (this.popoverEl = el as HTMLZPopoverElement)}\n bindTo={this.menuTrigger as HTMLElement}\n onOpenChange={(event) => (this.isMenuOpen = event.detail.open)}\n position={this.popoverPosition}\n >\n <slot name=\"contextual-menu\"></slot>\n </z-popover>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -9,11 +9,11 @@ const ZTfoot = class {
9
9
  this.sticky = false;
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: '441a3e0656da274193c4a12681b9e9d641690982', role: "rowgroup" }, h("slot", { key: '5e80207cbf1238b2141fcd657cb10fc18be7bccb' })));
12
+ return (h(Host, { key: '68f9134c92fd8aa1db8236ca1cae82945b8dff40', role: "rowgroup" }, h("slot", { key: 'e76426e09634deb41395104af9c37f8f75415435' })));
13
13
  }
14
14
  };
15
15
  ZTfoot.style = ZTfootStyle0;
16
16
 
17
17
  export { ZTfoot as Z };
18
18
 
19
- //# sourceMappingURL=index-43637886.js.map
19
+ //# sourceMappingURL=index-571f913c.js.map
@@ -1 +1 @@
1
- {"file":"index-43637886.js","mappings":";;AAAA,MAAM,SAAS,GAAG,kOAAkO,CAAC;AACrP,qBAAe,SAAS;;MCUX,MAAM;;;sBAKR,KAAK;;IAEd,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU,IACnB,8DAAa,CACR,EACP;KACH;;;;;;","names":[],"sources":["src/components/table/z-tfoot/styles.css?tag=z-tfoot&encapsulation=shadow","src/components/table/z-tfoot/index.tsx"],"sourcesContent":[":host {\n display: block;\n box-sizing: border-box;\n border-top: 1px solid var(--color-surface03);\n border-bottom: 1px solid var(--color-surface03);\n}\n\n:host([sticky]) {\n position: sticky;\n z-index: 1;\n bottom: 0;\n background-color: var(--color-surface01);\n}\n","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"],"version":3}
1
+ {"file":"index-571f913c.js","mappings":";;AAAA,MAAM,SAAS,GAAG,kOAAkO,CAAC;AACrP,qBAAe,SAAS;;MCUX,MAAM;;;sBAKR,KAAK;;IAEd,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU,IACnB,8DAAa,CACR,EACP;KACH;;;;;;","names":[],"sources":["src/components/table/z-tfoot/styles.css?tag=z-tfoot&encapsulation=shadow","src/components/table/z-tfoot/index.tsx"],"sourcesContent":[":host {\n display: block;\n box-sizing: border-box;\n border-top: 1px solid var(--color-surface03);\n border-bottom: 1px solid var(--color-surface03);\n}\n\n:host([sticky]) {\n position: sticky;\n z-index: 1;\n bottom: 0;\n background-color: var(--color-surface01);\n}\n","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"],"version":3}
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c8ceadeb.js';
2
2
  import { r as randomId } from './utils-c7062cf7.js';
3
- import './index-2a83dc12.js';
4
- import './index-ea1d61dc.js';
3
+ import './index-2ccbb96f.js';
4
+ import './index-fc0913d1.js';
5
5
 
6
6
  const stylesCss = ":host{--columns:1;display:grid;box-sizing:border-box;grid-auto-flow:column;grid-template-columns:var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr))}*{box-sizing:border-box}.z-tr--expand-button-container,::slotted(*){border-bottom:var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03)}::slotted(*:not(:last-child)){border-right:var(--z-table--cell-left-border, none)}:host([expandable]){--show-expandable-button:visible;cursor:pointer}:host([expandable]) ::slotted(*){grid-row:1}:host([expandable]) ::slotted(:nth-last-child(2)){border-right:none}:host([expandable]) ::slotted(*:last-child){border-left:0;grid-column:1 / span calc(var(--columns) + 1);grid-row:2}:host([expandable]:not([expanded])) ::slotted(*:last-child){display:none}:host([expanded]){margin-bottom:4px;box-shadow:0 4px 4px -2px var(--shadow-color-base)}:host([expanded]) .z-tr--expand-button-container,:host([expanded]) ::slotted(*){background-color:var(--color-background)}.z-tr--expand-button-container{display:flex;align-items:center;justify-content:center;background-color:var(--z-table--cells-background, var(--color-surface01))}.z-tr--expand-button-container button{display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:auto;appearance:none;background:transparent;cursor:pointer;visibility:var(--show-expandable-button, hidden)}.z-tr--expand-button-container button:focus{box-shadow:var(--shadow-focus-primary);outline:none}.z-tr--expand-button-container button z-icon{--z-icon-width:16px;--z-icon-height:16px}";
7
7
  const ZTrStyle0 = stylesCss;
@@ -43,7 +43,7 @@ const ZTr = class {
43
43
  this.updateColumns();
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '5ce42271810a5e186701cef65ba6d0e4b7f044fe', role: "row", onClick: this.onRowClick.bind(this), expanded: this.expanded }, h("div", { key: 'e699c444b5d3f21e5468e895a1b4f39829077cc9', class: "z-tr--expand-button-container" }, this.expandable && (h("button", { key: '9f4dee6f1fd647c40fe3612ed52ccff4f8231778', "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, h("z-icon", { key: '572c95ff115f9c00c07a2e84130020e2f03031c5', name: this.expanded ? "minus-circled" : "plus-circled" })))), h("slot", { key: '97c0be024dde1cf6e218ddaaef53a2b4ca723d37', onSlotchange: this.updateColumns.bind(this) })));
46
+ return (h(Host, { key: 'c7aef75dce7ad486aa08145e3df1a9a4fbc0a086', role: "row", onClick: this.onRowClick.bind(this), expanded: this.expanded }, h("div", { key: '474efb8147efb3045b2d671081674330209674ae', class: "z-tr--expand-button-container" }, this.expandable && (h("button", { key: 'd4f77c52514979ee1e52483d1031d222f8b60dfd', "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, h("z-icon", { key: 'a488e44b2b9119f2b96aeb42c2880f16650685a6', name: this.expanded ? "minus-circled" : "plus-circled" })))), h("slot", { key: '03ec3ec33b29e7ec504282289fa0daf8990deef5', onSlotchange: this.updateColumns.bind(this) })));
47
47
  }
48
48
  get host() { return getElement(this); }
49
49
  static get watchers() { return {
@@ -54,4 +54,4 @@ ZTr.style = ZTrStyle0;
54
54
 
55
55
  export { ZTr as Z };
56
56
 
57
- //# sourceMappingURL=index-1294ef3d.js.map
57
+ //# sourceMappingURL=index-ceebee64.js.map
@@ -1 +1 @@
1
- {"file":"index-1294ef3d.js","mappings":";;;;;AAAA,MAAM,SAAS,GAAG,ojDAAojD,CAAC;AACvkD,kBAAe,SAAS;;MCeX,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,CAAC,UAAU,EAAE;YACnB,KAAK,CAAC,GAAG,EAAE,CAAC;SACb;QAED,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAClF,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;QAEvD,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,MAAM,iBAAiB,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;YACtC,iBAAiB,CAAC,EAAE,GAAG,iBAAiB,CAAC,EAAE,IAAI,2BAA2B,QAAQ,EAAE,EAAE,CAAC;YACvF,IAAI,CAAC,mBAAmB,GAAG,iBAAiB,CAAC,EAAE,CAAC;SACjD;KACF;;;;;IAMO,UAAU,CAAC,KAAiB;QAClC,MAAM,aAAa,GAAI,KAAK,CAAC,MAAsB,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QAC/E,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,aAAa,EAAE;YACrC,OAAO;SACR;QAED,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAC,CAAC,CAAC;KAC7C;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EACnC,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvB,4DAAK,KAAK,EAAC,+BAA+B,IACvC,IAAI,CAAC,UAAU,KACd,gFACiB,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO,gBACnC,IAAI,CAAC,QAAQ,GAAG,eAAe,GAAG,cAAc,mBAC7C,IAAI,CAAC,mBAAmB,EACvC,IAAI,EAAC,QAAQ,IAEb,+DAAQ,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAG,eAAe,GAAG,cAAc,GAAW,CAClE,CACV,CACG,EACN,6DAAM,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS,CACrD,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/table/z-tr/styles.css?tag=z-tr&encapsulation=shadow","src/components/table/z-tr/index.tsx"],"sourcesContent":[":host {\n /* number of columns of the row. will be set in component's ts code */\n --columns: 1;\n\n display: grid;\n box-sizing: border-box;\n grid-auto-flow: column;\n grid-template-columns: var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr));\n}\n\n* {\n box-sizing: border-box;\n}\n\n.z-tr--expand-button-container,\n::slotted(*) {\n border-bottom: var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03);\n}\n\n::slotted(*:not(:last-child)) {\n border-right: var(--z-table--cell-left-border, none);\n}\n\n:host([expandable]) {\n --show-expandable-button: visible;\n\n cursor: pointer;\n}\n\n:host([expandable]) ::slotted(*) {\n grid-row: 1;\n}\n\n:host([expandable]) ::slotted(:nth-last-child(2)) {\n border-right: none;\n}\n\n:host([expandable]) ::slotted(*:last-child) {\n border-left: 0;\n grid-column: 1 / span calc(var(--columns) + 1);\n grid-row: 2;\n}\n\n:host([expandable]:not([expanded])) ::slotted(*:last-child) {\n display: none;\n}\n\n:host([expanded]) {\n margin-bottom: 4px; /* prevents shadow to be cut by the next element */\n box-shadow: 0 4px 4px -2px var(--shadow-color-base);\n}\n\n:host([expanded]) .z-tr--expand-button-container,\n:host([expanded]) ::slotted(*) {\n background-color: var(--color-background);\n}\n\n.z-tr--expand-button-container {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--z-table--cells-background, var(--color-surface01));\n}\n\n.z-tr--expand-button-container button {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n margin: auto;\n appearance: none;\n background: transparent;\n cursor: pointer;\n visibility: var(--show-expandable-button, hidden);\n}\n\n.z-tr--expand-button-container button:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-tr--expand-button-container button z-icon {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n}\n","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"],"version":3}
1
+ {"file":"index-ceebee64.js","mappings":";;;;;AAAA,MAAM,SAAS,GAAG,ojDAAojD,CAAC;AACvkD,kBAAe,SAAS;;MCeX,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,CAAC,UAAU,EAAE;YACnB,KAAK,CAAC,GAAG,EAAE,CAAC;SACb;QAED,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAClF,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;QAEvD,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,MAAM,iBAAiB,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;YACtC,iBAAiB,CAAC,EAAE,GAAG,iBAAiB,CAAC,EAAE,IAAI,2BAA2B,QAAQ,EAAE,EAAE,CAAC;YACvF,IAAI,CAAC,mBAAmB,GAAG,iBAAiB,CAAC,EAAE,CAAC;SACjD;KACF;;;;;IAMO,UAAU,CAAC,KAAiB;QAClC,MAAM,aAAa,GAAI,KAAK,CAAC,MAAsB,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QAC/E,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,aAAa,EAAE;YACrC,OAAO;SACR;QAED,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAC,CAAC,CAAC;KAC7C;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EACnC,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvB,4DAAK,KAAK,EAAC,+BAA+B,IACvC,IAAI,CAAC,UAAU,KACd,gFACiB,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO,gBACnC,IAAI,CAAC,QAAQ,GAAG,eAAe,GAAG,cAAc,mBAC7C,IAAI,CAAC,mBAAmB,EACvC,IAAI,EAAC,QAAQ,IAEb,+DAAQ,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAG,eAAe,GAAG,cAAc,GAAW,CAClE,CACV,CACG,EACN,6DAAM,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS,CACrD,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/table/z-tr/styles.css?tag=z-tr&encapsulation=shadow","src/components/table/z-tr/index.tsx"],"sourcesContent":[":host {\n /* number of columns of the row. will be set in component's ts code */\n --columns: 1;\n\n display: grid;\n box-sizing: border-box;\n grid-auto-flow: column;\n grid-template-columns: var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr));\n}\n\n* {\n box-sizing: border-box;\n}\n\n.z-tr--expand-button-container,\n::slotted(*) {\n border-bottom: var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03);\n}\n\n::slotted(*:not(:last-child)) {\n border-right: var(--z-table--cell-left-border, none);\n}\n\n:host([expandable]) {\n --show-expandable-button: visible;\n\n cursor: pointer;\n}\n\n:host([expandable]) ::slotted(*) {\n grid-row: 1;\n}\n\n:host([expandable]) ::slotted(:nth-last-child(2)) {\n border-right: none;\n}\n\n:host([expandable]) ::slotted(*:last-child) {\n border-left: 0;\n grid-column: 1 / span calc(var(--columns) + 1);\n grid-row: 2;\n}\n\n:host([expandable]:not([expanded])) ::slotted(*:last-child) {\n display: none;\n}\n\n:host([expanded]) {\n margin-bottom: 4px; /* prevents shadow to be cut by the next element */\n box-shadow: 0 4px 4px -2px var(--shadow-color-base);\n}\n\n:host([expanded]) .z-tr--expand-button-container,\n:host([expanded]) ::slotted(*) {\n background-color: var(--color-background);\n}\n\n.z-tr--expand-button-container {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--z-table--cells-background, var(--color-surface01));\n}\n\n.z-tr--expand-button-container button {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n margin: auto;\n appearance: none;\n background: transparent;\n cursor: pointer;\n visibility: var(--show-expandable-button, hidden);\n}\n\n.z-tr--expand-button-container button:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-tr--expand-button-container button z-icon {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n}\n","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"],"version":3}
@@ -9,11 +9,11 @@ const ZThead = class {
9
9
  this.sticky = false;
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: '96a3a467d89c4de659693e31c46f8aee89497140', role: "rowgroup" }, h("slot", { key: 'd1af4ab3b7b484f5de8b16a9d4a74e93ae65ee60' })));
12
+ return (h(Host, { key: '8f4e7bb738d8d4cf6aaf83faf5b2ecd4ed58feac', role: "rowgroup" }, h("slot", { key: '2a7dfe21b40cb26c57c98b6cae40dc801b22e7e3' })));
13
13
  }
14
14
  };
15
15
  ZThead.style = ZTheadStyle0;
16
16
 
17
17
  export { ZThead as Z };
18
18
 
19
- //# sourceMappingURL=index-b2c92bbb.js.map
19
+ //# sourceMappingURL=index-eb53c87f.js.map
@@ -1 +1 @@
1
- {"file":"index-b2c92bbb.js","mappings":";;AAAA,MAAM,SAAS,GAAG,qRAAqR,CAAC;AACxS,qBAAe,SAAS;;MCUX,MAAM;;;sBAKR,KAAK;;IAEd,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU,IACnB,8DAAa,CACR,EACP;KACH;;;;;;","names":[],"sources":["src/components/table/z-thead/styles.css?tag=z-thead&encapsulation=shadow","src/components/table/z-thead/index.tsx"],"sourcesContent":[":host {\n --z-table--cells-bottom-border-size: var(\n --border-size-medium\n ); /* Needed to handle the border of the expand button cell */\n\n --z-table--cells-background: var(\n --color-background\n ); /* Needed to handle the background-color of the expand button cell */\n\n display: block;\n box-sizing: border-box;\n}\n\n:host([sticky]) {\n position: sticky;\n z-index: 2;\n top: 0;\n box-shadow: 0 2px 4px -2px var(--shadow-color-base);\n}\n","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"],"version":3}
1
+ {"file":"index-eb53c87f.js","mappings":";;AAAA,MAAM,SAAS,GAAG,qRAAqR,CAAC;AACxS,qBAAe,SAAS;;MCUX,MAAM;;;sBAKR,KAAK;;IAEd,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU,IACnB,8DAAa,CACR,EACP;KACH;;;;;;","names":[],"sources":["src/components/table/z-thead/styles.css?tag=z-thead&encapsulation=shadow","src/components/table/z-thead/index.tsx"],"sourcesContent":[":host {\n --z-table--cells-bottom-border-size: var(\n --border-size-medium\n ); /* Needed to handle the border of the expand button cell */\n\n --z-table--cells-background: var(\n --color-background\n ); /* Needed to handle the background-color of the expand button cell */\n\n display: block;\n box-sizing: border-box;\n}\n\n:host([sticky]) {\n position: sticky;\n z-index: 2;\n top: 0;\n box-shadow: 0 2px 4px -2px var(--shadow-color-base);\n}\n","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"],"version":3}
@@ -51,7 +51,7 @@ const ZTh = class {
51
51
  this.updateColspan();
52
52
  }
53
53
  render() {
54
- return (h(Host, { key: 'e8bf215c5bdf5c0486d0de3768919d54a94b8b46', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, h("div", { key: 'e7dfc68ddaeac9f1f763eb62e2717ea5e166df16', class: "cell--content" }, h("slot", { key: '96edba7522e8e43bcfecea9d305ffc9840548020' }), this.showSorting && (h("button", { key: '81cef37216c2c823b1027df224ddb905d3c9d412', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: 'b00db383bf202b9f774781551a6e59329fed10b2', name: this.sortDirection === SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: '2762feca4feeff61aa673d2a3535f91c9ee7db03', class: "cell--menu-container" }, h("z-button", { key: 'e91a00179db0075255b57d5f946e3c321883faf6', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), h("z-popover", { key: 'c632eb1071f2533aa86251e8e345eda845512693', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'bc3aa447b61972c3299352d49f27c9a060a2ce4d', name: "contextual-menu" })))))));
54
+ return (h(Host, { key: '80d84d10038bfd5171b1596db3175c4e915e3c81', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, h("div", { key: 'b98f5cbe6c9fa873e39f46ba701c76755a4f9da7', class: "cell--content" }, h("slot", { key: 'f7d2b12496eb334bf07fcfc80e42cacf95a2b6c7' }), this.showSorting && (h("button", { key: '000518536845b9b1383d2aa90a655000a2d0cc0b', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: '61cedbe8a54e51cac9d94f00e4d9d84dbcc1b48d', name: this.sortDirection === SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: '3c2ac483288672ac1c65dc3586fb9b346abe53e9', class: "cell--menu-container" }, h("z-button", { key: '6a495a201dc8343267ef8892bc97150c2d4ec4fc', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), h("z-popover", { key: 'b97a3477c4f63bccb2445304676ad2127a26d9df', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'd51ba2caa4e7929e3aedf3beec9b95f4c9b1cf24', name: "contextual-menu" })))))));
55
55
  }
56
56
  get host() { return getElement(this); }
57
57
  static get watchers() { return {
@@ -62,4 +62,4 @@ ZTh.style = ZThStyle0;
62
62
 
63
63
  export { ZTh as Z };
64
64
 
65
- //# sourceMappingURL=index-ea1d61dc.js.map
65
+ //# sourceMappingURL=index-fc0913d1.js.map
@@ -1 +1 @@
1
- {"file":"index-ea1d61dc.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,ktEAAktE,CAAC;AACruE,kBAAe,SAAS;;MCYX,GAAG;;;;;wBAekB,IAAI;2BAQD,IAAI;sBAM9B,KAAK;;sBAYW,KAAK;+BAMZ,eAAe,CAAC,IAAI;0BAMzB,KAAK;;;;;IAiBlB,IAAY,iBAAiB;QAC3B,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACvB,OAAO,IAAI,CAAC;SACb;QAED,OAAO,IAAI,CAAC,aAAa,KAAK,aAAa,CAAC,GAAG,GAAG,WAAW,GAAG,YAAY,CAAC;KAC9E;;;;;IAMO,UAAU;QAChB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACvB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;YAEpB,OAAO;SACR;QAED,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,KAAK,aAAa,CAAC,GAAG,GAAG,aAAa,CAAC,IAAI,GAAG,aAAa,CAAC,GAAG,CAAC;QACvG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QAEnB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAC,aAAa,EAAE,IAAI,CAAC,aAAa,EAAC,CAAC,CAAC;KACrD;IAGS,aAAa;QACrB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;SACrD;aAAM;YACL,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;SAC/C;KACF;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,IAAI,EAAC,cAAc,eACR,IAAI,CAAC,UAAU,eACf,IAAI,CAAC,iBAAiB,EACjC,QAAQ,EAAE,IAAI,CAAC,WAAW,IAE1B,4DAAK,KAAK,EAAC,eAAe,IACxB,8DAAa,EACZ,IAAI,CAAC,WAAW,KACf,+DACE,KAAK,EAAC,mBAAmB,EACzB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAEnC,+DACE,IAAI,EAAE,IAAI,CAAC,aAAa,KAAK,aAAa,CAAC,IAAI,GAAG,iBAAiB,GAAG,mBAAmB,EACzF,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACV,CACK,CACV,EACA,IAAI,CAAC,QAAQ,KACZ,4DAAK,KAAK,EAAC,sBAAsB,IAC/B,iEACE,OAAO,EAAE,aAAa,CAAC,QAAQ,EAC/B,IAAI,EAAC,iBAAiB,EACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAiB,CAAC,EACnD,OAAO,EAAE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAC3D,EACF,kEACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAyB,CAAC,EACzD,MAAM,EAAE,IAAI,CAAC,WAAW,EACxB,YAAY,EAAE,CAAC,KAAK,MAAM,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe,IAE9B,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC1B,CACR,CACP,CACG,CACD,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/table/cells/z-th/styles.css?tag=z-th&encapsulation=shadow","src/components/table/cells/z-th/index.tsx"],"sourcesContent":["@import \"../z-table-cells.css\";\n\n:host {\n z-index: 1;\n padding: 0;\n background-color: var(--color-background);\n font-weight: var(--font-sb);\n}\n\n.cell--content {\n padding: var(--z-table--cells-padding, calc(var(--space-unit) * 2));\n}\n\n:host([show-sorting]) .cell--content {\n column-gap: var(--space-unit);\n}\n\n.z-th--sort-button {\n padding: 0;\n border: none;\n background-color: transparent;\n cursor: pointer;\n outline: none;\n}\n\n@media (min-width: 768px) and (hover: hover) {\n :host([show-sorting=\"hover\"]) .z-th--sort-button {\n opacity: 0;\n pointer-events: none;\n }\n\n :host([show-sorting=\"hover\"]:hover) .z-th--sort-button,\n :host([show-sorting=\"hover\"]) .z-th--sort-button:focus:focus-visible,\n :host([show-sorting=\"always\"]) .z-th--sort-button,\n :host([sorted]) .z-th--sort-button {\n opacity: 1;\n pointer-events: all;\n }\n}\n\n:host([show-sorting=\"hover\"]:hover) .z-th--sort-button::after,\n:host([show-sorting=\"hover\"]) .z-th--sort-button:focus:focus-visible::after,\n:host([show-sorting=\"always\"]) .z-th--sort-button::after,\n:host([sorted]) .z-th--sort-button::after {\n position: absolute;\n top: 6px;\n left: 6px;\n width: calc(100% - 12px);\n height: calc(100% - 10px);\n background-color: transparent;\n content: \"\";\n}\n\n:host([sorted]) .z-th--sort-button::after,\n.z-th--sort-button:focus:focus-visible::after {\n box-shadow: var(--shadow-focus-primary);\n}\n","import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, PopoverPosition, SortDirection, VisibilityCondition} from \"../../../../beans\";\n\n/**\n * ZTh component.\n * @slot - ZTh content.\n * @slot contextual-menu - Contextual menu content. Only visible when `showMenu` is true.\n */\n@Component({\n tag: \"z-th\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTh {\n @Element() host: HTMLZThElement;\n\n /**\n * Number of columns that the cell should span.\n */\n @Prop()\n colspan: number;\n\n /**\n * Enables the contextual menu.\n * Can be set to \"hover\" or \"always\" to show the button only on cell hover or always.\n * Set a nullish value to hide the menu button.\n */\n @Prop({reflect: true})\n showMenu: VisibilityCondition = null;\n\n /**\n * Enables the sorting button.\n * Can be set to \"hover\" or \"always\" to show the button only on cell hover or always.\n * Set a nullish value to hide the sort button.\n */\n @Prop({reflect: true})\n showSorting: VisibilityCondition = null;\n\n /**\n * Whether the cell should stick.\n */\n @Prop({reflect: true})\n sticky = false;\n\n /**\n * Current sorting direction.\n */\n @Prop({mutable: true})\n sortDirection?: SortDirection;\n\n /**\n * Sorted state of the column.\n */\n @Prop({reflect: true, mutable: true})\n sorted: boolean | null = false;\n\n /**\n * Set popover position.\n */\n @Prop()\n popoverPosition = PopoverPosition.AUTO;\n\n /**\n * Store the open state of the menu.\n */\n @State()\n isMenuOpen = false;\n\n /**\n * Sort event fired when the user clicks on the sort button.\n * The sorting logic must be implemented by the app.\n * You can set an `id` on the `z-th` to easly identify the column in the event listener.\n */\n @Event()\n private sort: EventEmitter;\n\n private menuTrigger: HTMLElement;\n\n private popoverEl: HTMLZPopoverElement;\n\n /**\n * Get the value to set to the `aria-sort` attribute based on the current sort direction.\n */\n private get ariaSortDirection(): string {\n if (!this.sortDirection) {\n return null;\n }\n\n return this.sortDirection === SortDirection.ASC ? \"ascending\" : \"descending\";\n }\n\n /**\n * Handle the click on the sort button.\n * @fires sort\n */\n private handleSort(): void {\n if (!this.sortDirection) {\n this.sorted = false;\n\n return;\n }\n\n this.sortDirection = this.sortDirection === SortDirection.ASC ? SortDirection.DESC : SortDirection.ASC;\n this.sorted = true;\n\n this.sort.emit({sortDirection: this.sortDirection});\n }\n\n @Watch(\"colspan\")\n protected updateColspan(): void {\n if (this.colspan) {\n this.host.style.gridColumn = `span ${this.colspan}`;\n } else {\n this.host.style.removeProperty(\"grid-column\");\n }\n }\n\n componentWillLoad(): void {\n this.updateColspan();\n }\n\n render(): HTMLZThElement {\n return (\n <Host\n role=\"columnheader\"\n menu-open={this.isMenuOpen}\n aria-sort={this.ariaSortDirection}\n sortable={this.showSorting}\n >\n <div class=\"cell--content\">\n <slot></slot>\n {this.showSorting && (\n <button\n class=\"z-th--sort-button\"\n type=\"button\"\n onClick={this.handleSort.bind(this)}\n >\n <z-icon\n name={this.sortDirection === SortDirection.DESC ? \"arrow-simple-up\" : \"arrow-simple-down\"}\n width={14}\n height={14}\n />\n </button>\n )}\n {this.showMenu && (\n <div class=\"cell--menu-container\">\n <z-button\n variant={ButtonVariant.TERTIARY}\n icon=\"contextual-menu\"\n size={ControlSize.X_SMALL}\n ref={(el) => (this.menuTrigger = el as HTMLElement)}\n onClick={() => (this.popoverEl.open = !this.popoverEl.open)}\n />\n <z-popover\n ref={(el) => (this.popoverEl = el as HTMLZPopoverElement)}\n bindTo={this.menuTrigger}\n onOpenChange={(event) => (this.isMenuOpen = event.detail.open)}\n position={this.popoverPosition}\n >\n <slot name=\"contextual-menu\"></slot>\n </z-popover>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"index-fc0913d1.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,ktEAAktE,CAAC;AACruE,kBAAe,SAAS;;MCYX,GAAG;;;;;wBAekB,IAAI;2BAQD,IAAI;sBAM9B,KAAK;;sBAYW,KAAK;+BAMZ,eAAe,CAAC,IAAI;0BAMzB,KAAK;;;;;IAiBlB,IAAY,iBAAiB;QAC3B,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACvB,OAAO,IAAI,CAAC;SACb;QAED,OAAO,IAAI,CAAC,aAAa,KAAK,aAAa,CAAC,GAAG,GAAG,WAAW,GAAG,YAAY,CAAC;KAC9E;;;;;IAMO,UAAU;QAChB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACvB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;YAEpB,OAAO;SACR;QAED,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,KAAK,aAAa,CAAC,GAAG,GAAG,aAAa,CAAC,IAAI,GAAG,aAAa,CAAC,GAAG,CAAC;QACvG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QAEnB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAC,aAAa,EAAE,IAAI,CAAC,aAAa,EAAC,CAAC,CAAC;KACrD;IAGS,aAAa;QACrB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;SACrD;aAAM;YACL,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;SAC/C;KACF;IAED,iBAAiB;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,IAAI,EAAC,cAAc,eACR,IAAI,CAAC,UAAU,eACf,IAAI,CAAC,iBAAiB,EACjC,QAAQ,EAAE,IAAI,CAAC,WAAW,IAE1B,4DAAK,KAAK,EAAC,eAAe,IACxB,8DAAa,EACZ,IAAI,CAAC,WAAW,KACf,+DACE,KAAK,EAAC,mBAAmB,EACzB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAEnC,+DACE,IAAI,EAAE,IAAI,CAAC,aAAa,KAAK,aAAa,CAAC,IAAI,GAAG,iBAAiB,GAAG,mBAAmB,EACzF,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACV,CACK,CACV,EACA,IAAI,CAAC,QAAQ,KACZ,4DAAK,KAAK,EAAC,sBAAsB,IAC/B,iEACE,OAAO,EAAE,aAAa,CAAC,QAAQ,EAC/B,IAAI,EAAC,iBAAiB,EACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAiB,CAAC,EACnD,OAAO,EAAE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAC3D,EACF,kEACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAyB,CAAC,EACzD,MAAM,EAAE,IAAI,CAAC,WAAW,EACxB,YAAY,EAAE,CAAC,KAAK,MAAM,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe,IAE9B,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC1B,CACR,CACP,CACG,CACD,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/table/cells/z-th/styles.css?tag=z-th&encapsulation=shadow","src/components/table/cells/z-th/index.tsx"],"sourcesContent":["@import \"../z-table-cells.css\";\n\n:host {\n z-index: 1;\n padding: 0;\n background-color: var(--color-background);\n font-weight: var(--font-sb);\n}\n\n.cell--content {\n padding: var(--z-table--cells-padding, calc(var(--space-unit) * 2));\n}\n\n:host([show-sorting]) .cell--content {\n column-gap: var(--space-unit);\n}\n\n.z-th--sort-button {\n padding: 0;\n border: none;\n background-color: transparent;\n cursor: pointer;\n outline: none;\n}\n\n@media (min-width: 768px) and (hover: hover) {\n :host([show-sorting=\"hover\"]) .z-th--sort-button {\n opacity: 0;\n pointer-events: none;\n }\n\n :host([show-sorting=\"hover\"]:hover) .z-th--sort-button,\n :host([show-sorting=\"hover\"]) .z-th--sort-button:focus:focus-visible,\n :host([show-sorting=\"always\"]) .z-th--sort-button,\n :host([sorted]) .z-th--sort-button {\n opacity: 1;\n pointer-events: all;\n }\n}\n\n:host([show-sorting=\"hover\"]:hover) .z-th--sort-button::after,\n:host([show-sorting=\"hover\"]) .z-th--sort-button:focus:focus-visible::after,\n:host([show-sorting=\"always\"]) .z-th--sort-button::after,\n:host([sorted]) .z-th--sort-button::after {\n position: absolute;\n top: 6px;\n left: 6px;\n width: calc(100% - 12px);\n height: calc(100% - 10px);\n background-color: transparent;\n content: \"\";\n}\n\n:host([sorted]) .z-th--sort-button::after,\n.z-th--sort-button:focus:focus-visible::after {\n box-shadow: var(--shadow-focus-primary);\n}\n","import {Component, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, PopoverPosition, SortDirection, VisibilityCondition} from \"../../../../beans\";\n\n/**\n * ZTh component.\n * @slot - ZTh content.\n * @slot contextual-menu - Contextual menu content. Only visible when `showMenu` is true.\n */\n@Component({\n tag: \"z-th\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZTh {\n @Element() host: HTMLZThElement;\n\n /**\n * Number of columns that the cell should span.\n */\n @Prop()\n colspan: number;\n\n /**\n * Enables the contextual menu.\n * Can be set to \"hover\" or \"always\" to show the button only on cell hover or always.\n * Set a nullish value to hide the menu button.\n */\n @Prop({reflect: true})\n showMenu: VisibilityCondition = null;\n\n /**\n * Enables the sorting button.\n * Can be set to \"hover\" or \"always\" to show the button only on cell hover or always.\n * Set a nullish value to hide the sort button.\n */\n @Prop({reflect: true})\n showSorting: VisibilityCondition = null;\n\n /**\n * Whether the cell should stick.\n */\n @Prop({reflect: true})\n sticky = false;\n\n /**\n * Current sorting direction.\n */\n @Prop({mutable: true})\n sortDirection?: SortDirection;\n\n /**\n * Sorted state of the column.\n */\n @Prop({reflect: true, mutable: true})\n sorted: boolean | null = false;\n\n /**\n * Set popover position.\n */\n @Prop()\n popoverPosition = PopoverPosition.AUTO;\n\n /**\n * Store the open state of the menu.\n */\n @State()\n isMenuOpen = false;\n\n /**\n * Sort event fired when the user clicks on the sort button.\n * The sorting logic must be implemented by the app.\n * You can set an `id` on the `z-th` to easly identify the column in the event listener.\n */\n @Event()\n private sort: EventEmitter;\n\n private menuTrigger: HTMLElement;\n\n private popoverEl: HTMLZPopoverElement;\n\n /**\n * Get the value to set to the `aria-sort` attribute based on the current sort direction.\n */\n private get ariaSortDirection(): string {\n if (!this.sortDirection) {\n return null;\n }\n\n return this.sortDirection === SortDirection.ASC ? \"ascending\" : \"descending\";\n }\n\n /**\n * Handle the click on the sort button.\n * @fires sort\n */\n private handleSort(): void {\n if (!this.sortDirection) {\n this.sorted = false;\n\n return;\n }\n\n this.sortDirection = this.sortDirection === SortDirection.ASC ? SortDirection.DESC : SortDirection.ASC;\n this.sorted = true;\n\n this.sort.emit({sortDirection: this.sortDirection});\n }\n\n @Watch(\"colspan\")\n protected updateColspan(): void {\n if (this.colspan) {\n this.host.style.gridColumn = `span ${this.colspan}`;\n } else {\n this.host.style.removeProperty(\"grid-column\");\n }\n }\n\n componentWillLoad(): void {\n this.updateColspan();\n }\n\n render(): HTMLZThElement {\n return (\n <Host\n role=\"columnheader\"\n menu-open={this.isMenuOpen}\n aria-sort={this.ariaSortDirection}\n sortable={this.showSorting}\n >\n <div class=\"cell--content\">\n <slot></slot>\n {this.showSorting && (\n <button\n class=\"z-th--sort-button\"\n type=\"button\"\n onClick={this.handleSort.bind(this)}\n >\n <z-icon\n name={this.sortDirection === SortDirection.DESC ? \"arrow-simple-up\" : \"arrow-simple-down\"}\n width={14}\n height={14}\n />\n </button>\n )}\n {this.showMenu && (\n <div class=\"cell--menu-container\">\n <z-button\n variant={ButtonVariant.TERTIARY}\n icon=\"contextual-menu\"\n size={ControlSize.X_SMALL}\n ref={(el) => (this.menuTrigger = el as HTMLElement)}\n onClick={() => (this.popoverEl.open = !this.popoverEl.open)}\n />\n <z-popover\n ref={(el) => (this.popoverEl = el as HTMLZPopoverElement)}\n bindTo={this.menuTrigger}\n onOpenChange={(event) => (this.isMenuOpen = event.detail.open)}\n position={this.popoverPosition}\n >\n <slot name=\"contextual-menu\"></slot>\n </z-popover>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}