@zanichelli/albe-web-components 19.3.0 → 19.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (546) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/{index-DY2I5wAY.js → index-CZz7uP-M.js} +7 -7
  3. package/dist/cjs/index-CZz7uP-M.js.map +1 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{reactive-controller-CxJYkamG.js → reactive-controller-BBJFF12W.js} +3 -3
  6. package/dist/cjs/{reactive-controller-CxJYkamG.js.map → reactive-controller-BBJFF12W.js.map} +1 -1
  7. package/dist/cjs/web-components-library.cjs.js +1 -1
  8. package/dist/cjs/z-accordion.cjs.entry.js +1 -1
  9. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  10. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  11. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +1 -1
  12. package/dist/cjs/z-app-header_12.cjs.entry.js +2 -2
  13. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  14. package/dist/cjs/z-avatar.cjs.entry.js +1 -1
  15. package/dist/cjs/z-book-card-app.cjs.entry.js +1 -1
  16. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +1 -1
  17. package/dist/cjs/z-book-card.cjs.entry.js +1 -1
  18. package/dist/cjs/z-book-cover.cjs.entry.js +1 -1
  19. package/dist/cjs/z-breadcrumb.cjs.entry.js +1 -1
  20. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  21. package/dist/cjs/z-card.cjs.entry.js +1 -1
  22. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  23. package/dist/cjs/z-chip.cjs.entry.js +1 -1
  24. package/dist/cjs/z-color-picker.cjs.entry.js +1 -1
  25. package/dist/cjs/z-combobox.cjs.entry.js +1 -1
  26. package/dist/cjs/z-cover-hero.cjs.entry.js +1 -1
  27. package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
  28. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +2 -2
  29. package/dist/cjs/z-file-upload.cjs.entry.js +1 -1
  30. package/dist/cjs/z-file.cjs.entry.js +1 -1
  31. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  32. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  33. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  34. package/dist/cjs/z-input-range.cjs.entry.js +1 -1
  35. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  36. package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
  37. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
  38. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  39. package/dist/cjs/z-menu.cjs.entry.js +1 -1
  40. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  41. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  42. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  43. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  44. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  45. package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
  46. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  47. package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
  48. package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
  49. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  50. package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  51. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  52. package/dist/cjs/z-otp.cjs.entry.js +1 -1
  53. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  54. package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
  55. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  56. package/dist/cjs/z-range-picker.cjs.entry.js +1 -1
  57. package/dist/cjs/z-result-card.cjs.entry.js +1 -1
  58. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  59. package/dist/cjs/z-select.cjs.entry.js +1 -1
  60. package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
  61. package/dist/cjs/z-slideshow.cjs.entry.js +1 -1
  62. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  63. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  64. package/dist/cjs/z-table.cjs.entry.js +6 -4
  65. package/dist/cjs/z-table.cjs.entry.js.map +1 -1
  66. package/dist/cjs/z-tbody.cjs.entry.js +6 -4
  67. package/dist/cjs/z-tbody.cjs.entry.js.map +1 -1
  68. package/dist/cjs/z-td.cjs.entry.js +6 -4
  69. package/dist/cjs/z-td.cjs.entry.js.map +1 -1
  70. package/dist/cjs/z-tfoot.cjs.entry.js +6 -4
  71. package/dist/cjs/z-tfoot.cjs.entry.js.map +1 -1
  72. package/dist/cjs/z-th.cjs.entry.js +7 -5
  73. package/dist/cjs/z-th.cjs.entry.js.map +1 -1
  74. package/dist/cjs/z-thead.cjs.entry.js +6 -4
  75. package/dist/cjs/z-thead.cjs.entry.js.map +1 -1
  76. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  77. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  78. package/dist/cjs/z-toggle-button.cjs.entry.js +1 -1
  79. package/dist/cjs/z-toggle-switch.cjs.entry.js +1 -1
  80. package/dist/cjs/z-tool.cjs.entry.js +1 -1
  81. package/dist/cjs/z-toolbar.cjs.entry.js +1 -1
  82. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  83. package/dist/cjs/z-tr.cjs.entry.js +8 -9
  84. package/dist/cjs/z-tr.cjs.entry.js.map +1 -1
  85. package/dist/cjs/z-tree-list.cjs.entry.js +1 -1
  86. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  87. package/dist/collection/components/css-components/z-table/styles.css +79 -0
  88. package/dist/collection/components/table/cells/z-table-cells.css +0 -1
  89. package/dist/collection/components/table/cells/z-td/index.js +3 -3
  90. package/dist/collection/components/table/cells/z-td/index.js.map +1 -1
  91. package/dist/collection/components/table/cells/z-th/index.js +3 -3
  92. package/dist/collection/components/table/cells/z-th/index.js.map +1 -1
  93. package/dist/collection/components/table/cells/z-th/styles.css +0 -4
  94. package/dist/collection/components/table/z-table/index.js +3 -3
  95. package/dist/collection/components/table/z-table/index.js.map +1 -1
  96. package/dist/collection/components/table/z-table/styles.css +0 -6
  97. package/dist/collection/components/table/z-tbody/index.js +3 -3
  98. package/dist/collection/components/table/z-tbody/index.js.map +1 -1
  99. package/dist/collection/components/table/z-tfoot/index.js +3 -3
  100. package/dist/collection/components/table/z-tfoot/index.js.map +1 -1
  101. package/dist/collection/components/table/z-tfoot/styles.css +1 -2
  102. package/dist/collection/components/table/z-thead/index.js +3 -3
  103. package/dist/collection/components/table/z-thead/index.js.map +1 -1
  104. package/dist/collection/components/table/z-thead/styles.css +0 -4
  105. package/dist/collection/components/table/z-tr/index.js +5 -8
  106. package/dist/collection/components/table/z-tr/index.js.map +1 -1
  107. package/dist/collection/components/table/z-tr/styles.css +13 -15
  108. package/dist/components/z-table.js +1 -1
  109. package/dist/components/z-table.js.map +1 -1
  110. package/dist/components/z-tbody.js +1 -1
  111. package/dist/components/z-tbody.js.map +1 -1
  112. package/dist/components/z-td.js +1 -1
  113. package/dist/components/z-td.js.map +1 -1
  114. package/dist/components/z-tfoot.js +1 -1
  115. package/dist/components/z-tfoot.js.map +1 -1
  116. package/dist/components/z-th.js +1 -1
  117. package/dist/components/z-th.js.map +1 -1
  118. package/dist/components/z-thead.js +1 -1
  119. package/dist/components/z-thead.js.map +1 -1
  120. package/dist/components/z-tr.js +1 -1
  121. package/dist/components/z-tr.js.map +1 -1
  122. package/dist/esm/{index-BEHxru6n.js → index-BcDWN4F1.js} +7 -7
  123. package/dist/esm/index-BcDWN4F1.js.map +1 -0
  124. package/dist/esm/loader.js +2 -2
  125. package/dist/esm/{reactive-controller-DXvzHFid.js → reactive-controller--oxj7x8w.js} +3 -3
  126. package/dist/esm/{reactive-controller-DXvzHFid.js.map → reactive-controller--oxj7x8w.js.map} +1 -1
  127. package/dist/esm/web-components-library.js +2 -2
  128. package/dist/esm/z-accordion.entry.js +1 -1
  129. package/dist/esm/z-alert.entry.js +1 -1
  130. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  131. package/dist/esm/z-app-header-deprecated.entry.js +1 -1
  132. package/dist/esm/z-app-header_12.entry.js +2 -2
  133. package/dist/esm/z-aria-alert.entry.js +1 -1
  134. package/dist/esm/z-avatar.entry.js +1 -1
  135. package/dist/esm/z-book-card-app.entry.js +1 -1
  136. package/dist/esm/z-book-card-deprecated.entry.js +1 -1
  137. package/dist/esm/z-book-card.entry.js +1 -1
  138. package/dist/esm/z-book-cover.entry.js +1 -1
  139. package/dist/esm/z-breadcrumb.entry.js +1 -1
  140. package/dist/esm/z-button-sort.entry.js +1 -1
  141. package/dist/esm/z-card.entry.js +1 -1
  142. package/dist/esm/z-carousel.entry.js +1 -1
  143. package/dist/esm/z-chip.entry.js +1 -1
  144. package/dist/esm/z-color-picker.entry.js +1 -1
  145. package/dist/esm/z-combobox.entry.js +1 -1
  146. package/dist/esm/z-cover-hero.entry.js +1 -1
  147. package/dist/esm/z-date-picker.entry.js +1 -1
  148. package/dist/esm/z-dragdrop-area_2.entry.js +2 -2
  149. package/dist/esm/z-file-upload.entry.js +1 -1
  150. package/dist/esm/z-file.entry.js +1 -1
  151. package/dist/esm/z-ghost-loading.entry.js +1 -1
  152. package/dist/esm/z-info-box.entry.js +1 -1
  153. package/dist/esm/z-info-reveal.entry.js +1 -1
  154. package/dist/esm/z-input-range.entry.js +1 -1
  155. package/dist/esm/z-logo.entry.js +1 -1
  156. package/dist/esm/z-menu-deprecated.entry.js +1 -1
  157. package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
  158. package/dist/esm/z-menu-section.entry.js +1 -1
  159. package/dist/esm/z-menu.entry.js +1 -1
  160. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  161. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  162. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  163. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  164. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  165. package/dist/esm/z-myz-card-info.entry.js +1 -1
  166. package/dist/esm/z-myz-card-list.entry.js +1 -1
  167. package/dist/esm/z-myz-card_4.entry.js +1 -1
  168. package/dist/esm/z-myz-list-item.entry.js +1 -1
  169. package/dist/esm/z-myz-list.entry.js +1 -1
  170. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  171. package/dist/esm/z-notification.entry.js +1 -1
  172. package/dist/esm/z-otp.entry.js +1 -1
  173. package/dist/esm/z-pagination.entry.js +1 -1
  174. package/dist/esm/z-panel-elem.entry.js +1 -1
  175. package/dist/esm/z-popover.entry.js +1 -1
  176. package/dist/esm/z-range-picker.entry.js +1 -1
  177. package/dist/esm/z-result-card.entry.js +1 -1
  178. package/dist/esm/z-section-title.entry.js +1 -1
  179. package/dist/esm/z-select.entry.js +1 -1
  180. package/dist/esm/z-skip-to-content.entry.js +1 -1
  181. package/dist/esm/z-slideshow.entry.js +1 -1
  182. package/dist/esm/z-stepper-item.entry.js +1 -1
  183. package/dist/esm/z-stepper.entry.js +1 -1
  184. package/dist/esm/z-table.entry.js +6 -4
  185. package/dist/esm/z-table.entry.js.map +1 -1
  186. package/dist/esm/z-tbody.entry.js +6 -4
  187. package/dist/esm/z-tbody.entry.js.map +1 -1
  188. package/dist/esm/z-td.entry.js +6 -4
  189. package/dist/esm/z-td.entry.js.map +1 -1
  190. package/dist/esm/z-tfoot.entry.js +6 -4
  191. package/dist/esm/z-tfoot.entry.js.map +1 -1
  192. package/dist/esm/z-th.entry.js +7 -5
  193. package/dist/esm/z-th.entry.js.map +1 -1
  194. package/dist/esm/z-thead.entry.js +6 -4
  195. package/dist/esm/z-thead.entry.js.map +1 -1
  196. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  197. package/dist/esm/z-toast-notification.entry.js +1 -1
  198. package/dist/esm/z-toggle-button.entry.js +1 -1
  199. package/dist/esm/z-toggle-switch.entry.js +1 -1
  200. package/dist/esm/z-tool.entry.js +1 -1
  201. package/dist/esm/z-toolbar.entry.js +1 -1
  202. package/dist/esm/z-tooltip.entry.js +1 -1
  203. package/dist/esm/z-tr.entry.js +8 -9
  204. package/dist/esm/z-tr.entry.js.map +1 -1
  205. package/dist/esm/z-tree-list.entry.js +1 -1
  206. package/dist/esm/z-visually-hidden.entry.js +1 -1
  207. package/dist/web-components-library/p-01d2d4e2.entry.js +2 -0
  208. package/dist/web-components-library/p-01d2d4e2.entry.js.map +1 -0
  209. package/dist/web-components-library/{p-654cbe9f.entry.js → p-02a5c216.entry.js} +2 -2
  210. package/{www/build/p-8ca86be7.entry.js → dist/web-components-library/p-0673b282.entry.js} +2 -2
  211. package/dist/web-components-library/{p-a8fe9ae0.entry.js → p-06aba4ff.entry.js} +2 -2
  212. package/dist/web-components-library/{p-779a7476.entry.js → p-076d802a.entry.js} +2 -2
  213. package/dist/web-components-library/{p-ad88d4a5.entry.js → p-10ad3d7c.entry.js} +2 -2
  214. package/dist/web-components-library/{p-8ce8d90d.entry.js → p-164b8342.entry.js} +2 -2
  215. package/dist/web-components-library/{p-2c63a798.entry.js → p-1ba5aa7a.entry.js} +2 -2
  216. package/{www/build/p-5a0424cd.entry.js → dist/web-components-library/p-1c1f699b.entry.js} +2 -2
  217. package/{www/build/p-3b7f5d80.entry.js → dist/web-components-library/p-1c63269a.entry.js} +2 -2
  218. package/{www/build/p-72356b43.entry.js → dist/web-components-library/p-1e25b55b.entry.js} +2 -2
  219. package/dist/web-components-library/{p-e9ed3594.entry.js → p-21b9ec81.entry.js} +2 -2
  220. package/dist/web-components-library/{p-927d9062.entry.js → p-257be457.entry.js} +2 -2
  221. package/dist/web-components-library/{p-0a10c7d7.entry.js → p-26788712.entry.js} +2 -2
  222. package/{www/build/p-d09060af.entry.js → dist/web-components-library/p-2adbfd30.entry.js} +2 -2
  223. package/dist/web-components-library/{p-7dfb5290.entry.js → p-2fcbc1a1.entry.js} +2 -2
  224. package/{www/build/p-e9722221.entry.js → dist/web-components-library/p-30579764.entry.js} +4 -4
  225. package/{www/build/p-38e4e01f.entry.js → dist/web-components-library/p-330486fc.entry.js} +2 -2
  226. package/{www/build/p-da213c6e.entry.js → dist/web-components-library/p-34d4ee45.entry.js} +2 -2
  227. package/dist/web-components-library/{p-ab64e360.entry.js → p-354abbd7.entry.js} +2 -2
  228. package/dist/web-components-library/{p-288c1f55.entry.js → p-372e83b1.entry.js} +2 -2
  229. package/dist/web-components-library/{p-931f2a16.entry.js → p-3b70a97c.entry.js} +2 -2
  230. package/dist/web-components-library/{p-a8e42a7c.entry.js → p-3f2658a0.entry.js} +2 -2
  231. package/dist/web-components-library/{p-3b3e1ffb.entry.js → p-3f6ea914.entry.js} +2 -2
  232. package/dist/web-components-library/{p-17a9c2b3.entry.js → p-418a7ee5.entry.js} +2 -2
  233. package/{www/build/p-a1db3939.entry.js → dist/web-components-library/p-4730e9a5.entry.js} +2 -2
  234. package/dist/web-components-library/{p-315ac39c.entry.js → p-474493cc.entry.js} +2 -2
  235. package/dist/web-components-library/{p-723c700f.entry.js → p-4954dd38.entry.js} +2 -2
  236. package/dist/web-components-library/{p-9f0e91f5.entry.js → p-4c1b6c40.entry.js} +2 -2
  237. package/dist/web-components-library/{p-0de3e2fa.entry.js → p-55468801.entry.js} +2 -2
  238. package/dist/web-components-library/{p-44410388.entry.js → p-55f6d3fe.entry.js} +2 -2
  239. package/dist/web-components-library/p-62485d56.entry.js +2 -0
  240. package/dist/web-components-library/p-62485d56.entry.js.map +1 -0
  241. package/{www/build/p-eb5e4333.entry.js → dist/web-components-library/p-6a952697.entry.js} +2 -2
  242. package/dist/web-components-library/p-6c5937db.entry.js +2 -0
  243. package/dist/web-components-library/{p-ee711acf.entry.js → p-6f58880c.entry.js} +2 -2
  244. package/dist/web-components-library/{p-50a09bf1.entry.js → p-7056f90f.entry.js} +2 -2
  245. package/dist/web-components-library/{p-ace68b04.entry.js → p-70fe7ed8.entry.js} +2 -2
  246. package/dist/web-components-library/{p-440e5b62.entry.js → p-71ddff9a.entry.js} +2 -2
  247. package/dist/web-components-library/{p-acba8f34.entry.js → p-86d3a3da.entry.js} +2 -2
  248. package/dist/web-components-library/p-8751b09d.entry.js +2 -0
  249. package/dist/web-components-library/p-8751b09d.entry.js.map +1 -0
  250. package/{www/build/p-8046cab0.entry.js → dist/web-components-library/p-88e3fb55.entry.js} +2 -2
  251. package/dist/web-components-library/{p-a6f29ff5.entry.js → p-89e96cde.entry.js} +2 -2
  252. package/{www/build/p-54f98f8e.entry.js → dist/web-components-library/p-8a545910.entry.js} +2 -2
  253. package/{www/build/p-7fff6cfd.entry.js → dist/web-components-library/p-927d50ea.entry.js} +2 -2
  254. package/dist/web-components-library/{p-bff500a3.entry.js → p-95c2e9b0.entry.js} +2 -2
  255. package/dist/web-components-library/p-98089231.entry.js +2 -0
  256. package/dist/web-components-library/p-98089231.entry.js.map +1 -0
  257. package/{www/build/p-7313202f.entry.js → dist/web-components-library/p-9b1deaa1.entry.js} +2 -2
  258. package/dist/web-components-library/{p-BEHxru6n.js → p-BcDWN4F1.js} +3 -3
  259. package/dist/web-components-library/p-BcDWN4F1.js.map +1 -0
  260. package/{www/build/p-CscBC1Z4.js → dist/web-components-library/p-BeiZJJuW.js} +3 -3
  261. package/{www/build/p-CscBC1Z4.js.map → dist/web-components-library/p-BeiZJJuW.js.map} +1 -1
  262. package/{www/build/p-82e04f79.entry.js → dist/web-components-library/p-a0a84d24.entry.js} +2 -2
  263. package/dist/web-components-library/{p-af8fec68.entry.js → p-a238a3d0.entry.js} +2 -2
  264. package/dist/web-components-library/p-ab364ca1.entry.js +2 -0
  265. package/dist/web-components-library/p-ab364ca1.entry.js.map +1 -0
  266. package/dist/web-components-library/{p-82c43c62.entry.js → p-b38cacf2.entry.js} +2 -2
  267. package/dist/web-components-library/{p-b4140668.entry.js → p-b565bff1.entry.js} +2 -2
  268. package/dist/web-components-library/{p-87a5a352.entry.js → p-c5b3368c.entry.js} +2 -2
  269. package/dist/web-components-library/{p-35653b5e.entry.js → p-c64a8fd8.entry.js} +2 -2
  270. package/{www/build/p-960cd1d9.entry.js → dist/web-components-library/p-c7046a20.entry.js} +2 -2
  271. package/dist/web-components-library/{p-ae8d5494.entry.js → p-c7d65071.entry.js} +2 -2
  272. package/dist/web-components-library/{p-8b1f745c.entry.js → p-ccdfec00.entry.js} +2 -2
  273. package/dist/web-components-library/{p-73ed9922.entry.js → p-d15e7b4f.entry.js} +2 -2
  274. package/dist/web-components-library/p-d639463e.entry.js +2 -0
  275. package/dist/web-components-library/p-d639463e.entry.js.map +1 -0
  276. package/dist/web-components-library/{p-e87e13b0.entry.js → p-d866a2e1.entry.js} +2 -2
  277. package/{www/build/p-8bd0e3e2.entry.js → dist/web-components-library/p-db1fa456.entry.js} +2 -2
  278. package/{www/build/p-e9212c7a.entry.js → dist/web-components-library/p-dc26eb78.entry.js} +2 -2
  279. package/dist/web-components-library/{p-0eb833b6.entry.js → p-e5736b1f.entry.js} +2 -2
  280. package/dist/web-components-library/{p-286690fd.entry.js → p-e8eb3bc5.entry.js} +2 -2
  281. package/dist/web-components-library/{p-fa4e8b1b.entry.js → p-edbedacb.entry.js} +2 -2
  282. package/dist/web-components-library/{p-643aaedc.entry.js → p-f0557dd9.entry.js} +2 -2
  283. package/dist/web-components-library/p-f31f04b9.entry.js +2 -0
  284. package/dist/web-components-library/p-f31f04b9.entry.js.map +1 -0
  285. package/dist/web-components-library/{p-5ba350d8.entry.js → p-f4b9e6f4.entry.js} +2 -2
  286. package/dist/web-components-library/p-f9c859dc.entry.js +2 -0
  287. package/dist/web-components-library/{p-fe279683.entry.js.map → p-f9c859dc.entry.js.map} +1 -1
  288. package/dist/web-components-library/{p-40694478.entry.js → p-f9e5a0aa.entry.js} +2 -2
  289. package/dist/web-components-library/{p-235a1c1d.entry.js → p-fb8a0bda.entry.js} +2 -2
  290. package/dist/web-components-library/{p-508eb530.entry.js → p-ff89690a.entry.js} +2 -2
  291. package/dist/web-components-library/web-components-library.css +80 -0
  292. package/dist/web-components-library/web-components-library.esm.js +1 -1
  293. package/package.json +1 -1
  294. package/www/build/p-01d2d4e2.entry.js +2 -0
  295. package/www/build/p-01d2d4e2.entry.js.map +1 -0
  296. package/www/build/{p-654cbe9f.entry.js → p-02a5c216.entry.js} +2 -2
  297. package/{dist/web-components-library/p-8ca86be7.entry.js → www/build/p-0673b282.entry.js} +2 -2
  298. package/www/build/{p-a8fe9ae0.entry.js → p-06aba4ff.entry.js} +2 -2
  299. package/www/build/{p-779a7476.entry.js → p-076d802a.entry.js} +2 -2
  300. package/www/build/{p-ad88d4a5.entry.js → p-10ad3d7c.entry.js} +2 -2
  301. package/www/build/{p-8ce8d90d.entry.js → p-164b8342.entry.js} +2 -2
  302. package/www/build/{p-c60c851a.css → p-188d1101.css} +80 -0
  303. package/www/build/{p-2c63a798.entry.js → p-1ba5aa7a.entry.js} +2 -2
  304. package/{dist/web-components-library/p-5a0424cd.entry.js → www/build/p-1c1f699b.entry.js} +2 -2
  305. package/{dist/web-components-library/p-3b7f5d80.entry.js → www/build/p-1c63269a.entry.js} +2 -2
  306. package/{dist/web-components-library/p-72356b43.entry.js → www/build/p-1e25b55b.entry.js} +2 -2
  307. package/www/build/{p-e9ed3594.entry.js → p-21b9ec81.entry.js} +2 -2
  308. package/www/build/{p-927d9062.entry.js → p-257be457.entry.js} +2 -2
  309. package/www/build/{p-0a10c7d7.entry.js → p-26788712.entry.js} +2 -2
  310. package/{dist/web-components-library/p-d09060af.entry.js → www/build/p-2adbfd30.entry.js} +2 -2
  311. package/www/build/{p-7dfb5290.entry.js → p-2fcbc1a1.entry.js} +2 -2
  312. package/{dist/web-components-library/p-e9722221.entry.js → www/build/p-30579764.entry.js} +4 -4
  313. package/{dist/web-components-library/p-38e4e01f.entry.js → www/build/p-330486fc.entry.js} +2 -2
  314. package/{dist/web-components-library/p-da213c6e.entry.js → www/build/p-34d4ee45.entry.js} +2 -2
  315. package/www/build/{p-ab64e360.entry.js → p-354abbd7.entry.js} +2 -2
  316. package/www/build/{p-288c1f55.entry.js → p-372e83b1.entry.js} +2 -2
  317. package/www/build/{p-931f2a16.entry.js → p-3b70a97c.entry.js} +2 -2
  318. package/www/build/{p-a8e42a7c.entry.js → p-3f2658a0.entry.js} +2 -2
  319. package/www/build/{p-3b3e1ffb.entry.js → p-3f6ea914.entry.js} +2 -2
  320. package/www/build/{p-17a9c2b3.entry.js → p-418a7ee5.entry.js} +2 -2
  321. package/{dist/web-components-library/p-a1db3939.entry.js → www/build/p-4730e9a5.entry.js} +2 -2
  322. package/www/build/{p-315ac39c.entry.js → p-474493cc.entry.js} +2 -2
  323. package/www/build/{p-723c700f.entry.js → p-4954dd38.entry.js} +2 -2
  324. package/www/build/{p-9f0e91f5.entry.js → p-4c1b6c40.entry.js} +2 -2
  325. package/www/build/{p-0de3e2fa.entry.js → p-55468801.entry.js} +2 -2
  326. package/www/build/{p-44410388.entry.js → p-55f6d3fe.entry.js} +2 -2
  327. package/www/build/p-62485d56.entry.js +2 -0
  328. package/www/build/p-62485d56.entry.js.map +1 -0
  329. package/{dist/web-components-library/p-eb5e4333.entry.js → www/build/p-6a952697.entry.js} +2 -2
  330. package/www/build/p-6c5937db.entry.js +2 -0
  331. package/www/build/{p-ee711acf.entry.js → p-6f58880c.entry.js} +2 -2
  332. package/www/build/{p-50a09bf1.entry.js → p-7056f90f.entry.js} +2 -2
  333. package/www/build/{p-ace68b04.entry.js → p-70fe7ed8.entry.js} +2 -2
  334. package/www/build/{p-440e5b62.entry.js → p-71ddff9a.entry.js} +2 -2
  335. package/www/build/{p-acba8f34.entry.js → p-86d3a3da.entry.js} +2 -2
  336. package/www/build/p-8751b09d.entry.js +2 -0
  337. package/www/build/p-8751b09d.entry.js.map +1 -0
  338. package/{dist/web-components-library/p-8046cab0.entry.js → www/build/p-88e3fb55.entry.js} +2 -2
  339. package/www/build/{p-a6f29ff5.entry.js → p-89e96cde.entry.js} +2 -2
  340. package/{dist/web-components-library/p-54f98f8e.entry.js → www/build/p-8a545910.entry.js} +2 -2
  341. package/{dist/web-components-library/p-7fff6cfd.entry.js → www/build/p-927d50ea.entry.js} +2 -2
  342. package/www/build/{p-bff500a3.entry.js → p-95c2e9b0.entry.js} +2 -2
  343. package/www/build/p-98089231.entry.js +2 -0
  344. package/www/build/p-98089231.entry.js.map +1 -0
  345. package/{dist/web-components-library/p-7313202f.entry.js → www/build/p-9b1deaa1.entry.js} +2 -2
  346. package/www/build/{p-BEHxru6n.js → p-BcDWN4F1.js} +3 -3
  347. package/www/build/p-BcDWN4F1.js.map +1 -0
  348. package/{dist/web-components-library/p-CscBC1Z4.js → www/build/p-BeiZJJuW.js} +3 -3
  349. package/{dist/web-components-library/p-CscBC1Z4.js.map → www/build/p-BeiZJJuW.js.map} +1 -1
  350. package/{dist/web-components-library/p-82e04f79.entry.js → www/build/p-a0a84d24.entry.js} +2 -2
  351. package/www/build/{p-af8fec68.entry.js → p-a238a3d0.entry.js} +2 -2
  352. package/www/build/p-ab364ca1.entry.js +2 -0
  353. package/www/build/p-ab364ca1.entry.js.map +1 -0
  354. package/www/build/{p-82c43c62.entry.js → p-b38cacf2.entry.js} +2 -2
  355. package/www/build/{p-b4140668.entry.js → p-b565bff1.entry.js} +2 -2
  356. package/www/build/{p-b289ae9e.js → p-bcc5602c.js} +1 -1
  357. package/www/build/{p-87a5a352.entry.js → p-c5b3368c.entry.js} +2 -2
  358. package/www/build/{p-35653b5e.entry.js → p-c64a8fd8.entry.js} +2 -2
  359. package/{dist/web-components-library/p-960cd1d9.entry.js → www/build/p-c7046a20.entry.js} +2 -2
  360. package/www/build/{p-ae8d5494.entry.js → p-c7d65071.entry.js} +2 -2
  361. package/www/build/{p-8b1f745c.entry.js → p-ccdfec00.entry.js} +2 -2
  362. package/www/build/{p-73ed9922.entry.js → p-d15e7b4f.entry.js} +2 -2
  363. package/www/build/p-d639463e.entry.js +2 -0
  364. package/www/build/p-d639463e.entry.js.map +1 -0
  365. package/www/build/{p-e87e13b0.entry.js → p-d866a2e1.entry.js} +2 -2
  366. package/{dist/web-components-library/p-8bd0e3e2.entry.js → www/build/p-db1fa456.entry.js} +2 -2
  367. package/{dist/web-components-library/p-e9212c7a.entry.js → www/build/p-dc26eb78.entry.js} +2 -2
  368. package/www/build/{p-0eb833b6.entry.js → p-e5736b1f.entry.js} +2 -2
  369. package/www/build/{p-286690fd.entry.js → p-e8eb3bc5.entry.js} +2 -2
  370. package/www/build/{p-fa4e8b1b.entry.js → p-edbedacb.entry.js} +2 -2
  371. package/www/build/{p-643aaedc.entry.js → p-f0557dd9.entry.js} +2 -2
  372. package/www/build/p-f31f04b9.entry.js +2 -0
  373. package/www/build/p-f31f04b9.entry.js.map +1 -0
  374. package/www/build/{p-5ba350d8.entry.js → p-f4b9e6f4.entry.js} +2 -2
  375. package/www/build/p-f9c859dc.entry.js +2 -0
  376. package/www/build/{p-fe279683.entry.js.map → p-f9c859dc.entry.js.map} +1 -1
  377. package/www/build/{p-40694478.entry.js → p-f9e5a0aa.entry.js} +2 -2
  378. package/www/build/{p-235a1c1d.entry.js → p-fb8a0bda.entry.js} +2 -2
  379. package/www/build/{p-508eb530.entry.js → p-ff89690a.entry.js} +2 -2
  380. package/www/build/web-components-library.css +80 -0
  381. package/www/build/web-components-library.esm.js +1 -1
  382. package/www/index.html +1 -1
  383. package/dist/cjs/index-DY2I5wAY.js.map +0 -1
  384. package/dist/esm/index-BEHxru6n.js.map +0 -1
  385. package/dist/web-components-library/p-2b05eaef.entry.js +0 -2
  386. package/dist/web-components-library/p-6fc4fd53.entry.js +0 -2
  387. package/dist/web-components-library/p-6fc4fd53.entry.js.map +0 -1
  388. package/dist/web-components-library/p-72da35ee.entry.js +0 -2
  389. package/dist/web-components-library/p-72da35ee.entry.js.map +0 -1
  390. package/dist/web-components-library/p-7a25961e.entry.js +0 -2
  391. package/dist/web-components-library/p-7a25961e.entry.js.map +0 -1
  392. package/dist/web-components-library/p-8041306f.entry.js +0 -2
  393. package/dist/web-components-library/p-8041306f.entry.js.map +0 -1
  394. package/dist/web-components-library/p-8b0c232c.entry.js +0 -2
  395. package/dist/web-components-library/p-8b0c232c.entry.js.map +0 -1
  396. package/dist/web-components-library/p-BEHxru6n.js.map +0 -1
  397. package/dist/web-components-library/p-e4622c5d.entry.js +0 -2
  398. package/dist/web-components-library/p-e4622c5d.entry.js.map +0 -1
  399. package/dist/web-components-library/p-e7e98d15.entry.js +0 -2
  400. package/dist/web-components-library/p-e7e98d15.entry.js.map +0 -1
  401. package/dist/web-components-library/p-fe279683.entry.js +0 -2
  402. package/www/build/p-2b05eaef.entry.js +0 -2
  403. package/www/build/p-6fc4fd53.entry.js +0 -2
  404. package/www/build/p-6fc4fd53.entry.js.map +0 -1
  405. package/www/build/p-72da35ee.entry.js +0 -2
  406. package/www/build/p-72da35ee.entry.js.map +0 -1
  407. package/www/build/p-7a25961e.entry.js +0 -2
  408. package/www/build/p-7a25961e.entry.js.map +0 -1
  409. package/www/build/p-8041306f.entry.js +0 -2
  410. package/www/build/p-8041306f.entry.js.map +0 -1
  411. package/www/build/p-8b0c232c.entry.js +0 -2
  412. package/www/build/p-8b0c232c.entry.js.map +0 -1
  413. package/www/build/p-BEHxru6n.js.map +0 -1
  414. package/www/build/p-e4622c5d.entry.js +0 -2
  415. package/www/build/p-e4622c5d.entry.js.map +0 -1
  416. package/www/build/p-e7e98d15.entry.js +0 -2
  417. package/www/build/p-e7e98d15.entry.js.map +0 -1
  418. package/www/build/p-fe279683.entry.js +0 -2
  419. /package/dist/web-components-library/{p-654cbe9f.entry.js.map → p-02a5c216.entry.js.map} +0 -0
  420. /package/dist/web-components-library/{p-8ca86be7.entry.js.map → p-0673b282.entry.js.map} +0 -0
  421. /package/dist/web-components-library/{p-a8fe9ae0.entry.js.map → p-06aba4ff.entry.js.map} +0 -0
  422. /package/dist/web-components-library/{p-779a7476.entry.js.map → p-076d802a.entry.js.map} +0 -0
  423. /package/dist/web-components-library/{p-ad88d4a5.entry.js.map → p-10ad3d7c.entry.js.map} +0 -0
  424. /package/dist/web-components-library/{p-8ce8d90d.entry.js.map → p-164b8342.entry.js.map} +0 -0
  425. /package/dist/web-components-library/{p-2c63a798.entry.js.map → p-1ba5aa7a.entry.js.map} +0 -0
  426. /package/dist/web-components-library/{p-5a0424cd.entry.js.map → p-1c1f699b.entry.js.map} +0 -0
  427. /package/dist/web-components-library/{p-3b7f5d80.entry.js.map → p-1c63269a.entry.js.map} +0 -0
  428. /package/dist/web-components-library/{p-72356b43.entry.js.map → p-1e25b55b.entry.js.map} +0 -0
  429. /package/dist/web-components-library/{p-e9ed3594.entry.js.map → p-21b9ec81.entry.js.map} +0 -0
  430. /package/dist/web-components-library/{p-927d9062.entry.js.map → p-257be457.entry.js.map} +0 -0
  431. /package/dist/web-components-library/{p-0a10c7d7.entry.js.map → p-26788712.entry.js.map} +0 -0
  432. /package/dist/web-components-library/{p-d09060af.entry.js.map → p-2adbfd30.entry.js.map} +0 -0
  433. /package/dist/web-components-library/{p-7dfb5290.entry.js.map → p-2fcbc1a1.entry.js.map} +0 -0
  434. /package/dist/web-components-library/{p-e9722221.entry.js.map → p-30579764.entry.js.map} +0 -0
  435. /package/dist/web-components-library/{p-38e4e01f.entry.js.map → p-330486fc.entry.js.map} +0 -0
  436. /package/dist/web-components-library/{p-da213c6e.entry.js.map → p-34d4ee45.entry.js.map} +0 -0
  437. /package/dist/web-components-library/{p-ab64e360.entry.js.map → p-354abbd7.entry.js.map} +0 -0
  438. /package/dist/web-components-library/{p-288c1f55.entry.js.map → p-372e83b1.entry.js.map} +0 -0
  439. /package/dist/web-components-library/{p-931f2a16.entry.js.map → p-3b70a97c.entry.js.map} +0 -0
  440. /package/dist/web-components-library/{p-a8e42a7c.entry.js.map → p-3f2658a0.entry.js.map} +0 -0
  441. /package/dist/web-components-library/{p-3b3e1ffb.entry.js.map → p-3f6ea914.entry.js.map} +0 -0
  442. /package/dist/web-components-library/{p-17a9c2b3.entry.js.map → p-418a7ee5.entry.js.map} +0 -0
  443. /package/dist/web-components-library/{p-a1db3939.entry.js.map → p-4730e9a5.entry.js.map} +0 -0
  444. /package/dist/web-components-library/{p-315ac39c.entry.js.map → p-474493cc.entry.js.map} +0 -0
  445. /package/dist/web-components-library/{p-723c700f.entry.js.map → p-4954dd38.entry.js.map} +0 -0
  446. /package/dist/web-components-library/{p-9f0e91f5.entry.js.map → p-4c1b6c40.entry.js.map} +0 -0
  447. /package/dist/web-components-library/{p-0de3e2fa.entry.js.map → p-55468801.entry.js.map} +0 -0
  448. /package/dist/web-components-library/{p-44410388.entry.js.map → p-55f6d3fe.entry.js.map} +0 -0
  449. /package/dist/web-components-library/{p-eb5e4333.entry.js.map → p-6a952697.entry.js.map} +0 -0
  450. /package/dist/web-components-library/{p-2b05eaef.entry.js.map → p-6c5937db.entry.js.map} +0 -0
  451. /package/dist/web-components-library/{p-ee711acf.entry.js.map → p-6f58880c.entry.js.map} +0 -0
  452. /package/dist/web-components-library/{p-50a09bf1.entry.js.map → p-7056f90f.entry.js.map} +0 -0
  453. /package/dist/web-components-library/{p-ace68b04.entry.js.map → p-70fe7ed8.entry.js.map} +0 -0
  454. /package/dist/web-components-library/{p-440e5b62.entry.js.map → p-71ddff9a.entry.js.map} +0 -0
  455. /package/dist/web-components-library/{p-acba8f34.entry.js.map → p-86d3a3da.entry.js.map} +0 -0
  456. /package/dist/web-components-library/{p-8046cab0.entry.js.map → p-88e3fb55.entry.js.map} +0 -0
  457. /package/dist/web-components-library/{p-a6f29ff5.entry.js.map → p-89e96cde.entry.js.map} +0 -0
  458. /package/dist/web-components-library/{p-54f98f8e.entry.js.map → p-8a545910.entry.js.map} +0 -0
  459. /package/dist/web-components-library/{p-7fff6cfd.entry.js.map → p-927d50ea.entry.js.map} +0 -0
  460. /package/dist/web-components-library/{p-bff500a3.entry.js.map → p-95c2e9b0.entry.js.map} +0 -0
  461. /package/dist/web-components-library/{p-7313202f.entry.js.map → p-9b1deaa1.entry.js.map} +0 -0
  462. /package/dist/web-components-library/{p-82e04f79.entry.js.map → p-a0a84d24.entry.js.map} +0 -0
  463. /package/dist/web-components-library/{p-af8fec68.entry.js.map → p-a238a3d0.entry.js.map} +0 -0
  464. /package/dist/web-components-library/{p-82c43c62.entry.js.map → p-b38cacf2.entry.js.map} +0 -0
  465. /package/dist/web-components-library/{p-b4140668.entry.js.map → p-b565bff1.entry.js.map} +0 -0
  466. /package/dist/web-components-library/{p-87a5a352.entry.js.map → p-c5b3368c.entry.js.map} +0 -0
  467. /package/dist/web-components-library/{p-35653b5e.entry.js.map → p-c64a8fd8.entry.js.map} +0 -0
  468. /package/dist/web-components-library/{p-960cd1d9.entry.js.map → p-c7046a20.entry.js.map} +0 -0
  469. /package/dist/web-components-library/{p-ae8d5494.entry.js.map → p-c7d65071.entry.js.map} +0 -0
  470. /package/dist/web-components-library/{p-8b1f745c.entry.js.map → p-ccdfec00.entry.js.map} +0 -0
  471. /package/dist/web-components-library/{p-73ed9922.entry.js.map → p-d15e7b4f.entry.js.map} +0 -0
  472. /package/dist/web-components-library/{p-e87e13b0.entry.js.map → p-d866a2e1.entry.js.map} +0 -0
  473. /package/dist/web-components-library/{p-8bd0e3e2.entry.js.map → p-db1fa456.entry.js.map} +0 -0
  474. /package/dist/web-components-library/{p-e9212c7a.entry.js.map → p-dc26eb78.entry.js.map} +0 -0
  475. /package/dist/web-components-library/{p-0eb833b6.entry.js.map → p-e5736b1f.entry.js.map} +0 -0
  476. /package/dist/web-components-library/{p-286690fd.entry.js.map → p-e8eb3bc5.entry.js.map} +0 -0
  477. /package/dist/web-components-library/{p-fa4e8b1b.entry.js.map → p-edbedacb.entry.js.map} +0 -0
  478. /package/dist/web-components-library/{p-643aaedc.entry.js.map → p-f0557dd9.entry.js.map} +0 -0
  479. /package/dist/web-components-library/{p-5ba350d8.entry.js.map → p-f4b9e6f4.entry.js.map} +0 -0
  480. /package/dist/web-components-library/{p-40694478.entry.js.map → p-f9e5a0aa.entry.js.map} +0 -0
  481. /package/dist/web-components-library/{p-235a1c1d.entry.js.map → p-fb8a0bda.entry.js.map} +0 -0
  482. /package/dist/web-components-library/{p-508eb530.entry.js.map → p-ff89690a.entry.js.map} +0 -0
  483. /package/www/build/{p-654cbe9f.entry.js.map → p-02a5c216.entry.js.map} +0 -0
  484. /package/www/build/{p-8ca86be7.entry.js.map → p-0673b282.entry.js.map} +0 -0
  485. /package/www/build/{p-a8fe9ae0.entry.js.map → p-06aba4ff.entry.js.map} +0 -0
  486. /package/www/build/{p-779a7476.entry.js.map → p-076d802a.entry.js.map} +0 -0
  487. /package/www/build/{p-ad88d4a5.entry.js.map → p-10ad3d7c.entry.js.map} +0 -0
  488. /package/www/build/{p-8ce8d90d.entry.js.map → p-164b8342.entry.js.map} +0 -0
  489. /package/www/build/{p-2c63a798.entry.js.map → p-1ba5aa7a.entry.js.map} +0 -0
  490. /package/www/build/{p-5a0424cd.entry.js.map → p-1c1f699b.entry.js.map} +0 -0
  491. /package/www/build/{p-3b7f5d80.entry.js.map → p-1c63269a.entry.js.map} +0 -0
  492. /package/www/build/{p-72356b43.entry.js.map → p-1e25b55b.entry.js.map} +0 -0
  493. /package/www/build/{p-e9ed3594.entry.js.map → p-21b9ec81.entry.js.map} +0 -0
  494. /package/www/build/{p-927d9062.entry.js.map → p-257be457.entry.js.map} +0 -0
  495. /package/www/build/{p-0a10c7d7.entry.js.map → p-26788712.entry.js.map} +0 -0
  496. /package/www/build/{p-d09060af.entry.js.map → p-2adbfd30.entry.js.map} +0 -0
  497. /package/www/build/{p-7dfb5290.entry.js.map → p-2fcbc1a1.entry.js.map} +0 -0
  498. /package/www/build/{p-e9722221.entry.js.map → p-30579764.entry.js.map} +0 -0
  499. /package/www/build/{p-38e4e01f.entry.js.map → p-330486fc.entry.js.map} +0 -0
  500. /package/www/build/{p-da213c6e.entry.js.map → p-34d4ee45.entry.js.map} +0 -0
  501. /package/www/build/{p-ab64e360.entry.js.map → p-354abbd7.entry.js.map} +0 -0
  502. /package/www/build/{p-288c1f55.entry.js.map → p-372e83b1.entry.js.map} +0 -0
  503. /package/www/build/{p-931f2a16.entry.js.map → p-3b70a97c.entry.js.map} +0 -0
  504. /package/www/build/{p-a8e42a7c.entry.js.map → p-3f2658a0.entry.js.map} +0 -0
  505. /package/www/build/{p-3b3e1ffb.entry.js.map → p-3f6ea914.entry.js.map} +0 -0
  506. /package/www/build/{p-17a9c2b3.entry.js.map → p-418a7ee5.entry.js.map} +0 -0
  507. /package/www/build/{p-a1db3939.entry.js.map → p-4730e9a5.entry.js.map} +0 -0
  508. /package/www/build/{p-315ac39c.entry.js.map → p-474493cc.entry.js.map} +0 -0
  509. /package/www/build/{p-723c700f.entry.js.map → p-4954dd38.entry.js.map} +0 -0
  510. /package/www/build/{p-9f0e91f5.entry.js.map → p-4c1b6c40.entry.js.map} +0 -0
  511. /package/www/build/{p-0de3e2fa.entry.js.map → p-55468801.entry.js.map} +0 -0
  512. /package/www/build/{p-44410388.entry.js.map → p-55f6d3fe.entry.js.map} +0 -0
  513. /package/www/build/{p-eb5e4333.entry.js.map → p-6a952697.entry.js.map} +0 -0
  514. /package/www/build/{p-2b05eaef.entry.js.map → p-6c5937db.entry.js.map} +0 -0
  515. /package/www/build/{p-ee711acf.entry.js.map → p-6f58880c.entry.js.map} +0 -0
  516. /package/www/build/{p-50a09bf1.entry.js.map → p-7056f90f.entry.js.map} +0 -0
  517. /package/www/build/{p-ace68b04.entry.js.map → p-70fe7ed8.entry.js.map} +0 -0
  518. /package/www/build/{p-440e5b62.entry.js.map → p-71ddff9a.entry.js.map} +0 -0
  519. /package/www/build/{p-acba8f34.entry.js.map → p-86d3a3da.entry.js.map} +0 -0
  520. /package/www/build/{p-8046cab0.entry.js.map → p-88e3fb55.entry.js.map} +0 -0
  521. /package/www/build/{p-a6f29ff5.entry.js.map → p-89e96cde.entry.js.map} +0 -0
  522. /package/www/build/{p-54f98f8e.entry.js.map → p-8a545910.entry.js.map} +0 -0
  523. /package/www/build/{p-7fff6cfd.entry.js.map → p-927d50ea.entry.js.map} +0 -0
  524. /package/www/build/{p-bff500a3.entry.js.map → p-95c2e9b0.entry.js.map} +0 -0
  525. /package/www/build/{p-7313202f.entry.js.map → p-9b1deaa1.entry.js.map} +0 -0
  526. /package/www/build/{p-82e04f79.entry.js.map → p-a0a84d24.entry.js.map} +0 -0
  527. /package/www/build/{p-af8fec68.entry.js.map → p-a238a3d0.entry.js.map} +0 -0
  528. /package/www/build/{p-82c43c62.entry.js.map → p-b38cacf2.entry.js.map} +0 -0
  529. /package/www/build/{p-b4140668.entry.js.map → p-b565bff1.entry.js.map} +0 -0
  530. /package/www/build/{p-87a5a352.entry.js.map → p-c5b3368c.entry.js.map} +0 -0
  531. /package/www/build/{p-35653b5e.entry.js.map → p-c64a8fd8.entry.js.map} +0 -0
  532. /package/www/build/{p-960cd1d9.entry.js.map → p-c7046a20.entry.js.map} +0 -0
  533. /package/www/build/{p-ae8d5494.entry.js.map → p-c7d65071.entry.js.map} +0 -0
  534. /package/www/build/{p-8b1f745c.entry.js.map → p-ccdfec00.entry.js.map} +0 -0
  535. /package/www/build/{p-73ed9922.entry.js.map → p-d15e7b4f.entry.js.map} +0 -0
  536. /package/www/build/{p-e87e13b0.entry.js.map → p-d866a2e1.entry.js.map} +0 -0
  537. /package/www/build/{p-8bd0e3e2.entry.js.map → p-db1fa456.entry.js.map} +0 -0
  538. /package/www/build/{p-e9212c7a.entry.js.map → p-dc26eb78.entry.js.map} +0 -0
  539. /package/www/build/{p-0eb833b6.entry.js.map → p-e5736b1f.entry.js.map} +0 -0
  540. /package/www/build/{p-286690fd.entry.js.map → p-e8eb3bc5.entry.js.map} +0 -0
  541. /package/www/build/{p-fa4e8b1b.entry.js.map → p-edbedacb.entry.js.map} +0 -0
  542. /package/www/build/{p-643aaedc.entry.js.map → p-f0557dd9.entry.js.map} +0 -0
  543. /package/www/build/{p-5ba350d8.entry.js.map → p-f4b9e6f4.entry.js.map} +0 -0
  544. /package/www/build/{p-40694478.entry.js.map → p-f9e5a0aa.entry.js.map} +0 -0
  545. /package/www/build/{p-235a1c1d.entry.js.map → p-fb8a0bda.entry.js.map} +0 -0
  546. /package/www/build/{p-508eb530.entry.js.map → p-ff89690a.entry.js.map} +0 -0
@@ -1,11 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DY2I5wAY.js');
3
+ var index = require('./index-CZz7uP-M.js');
4
4
  var index$1 = require('./index-Cn7FFDHr.js');
5
5
 
6
- const zTableCellsCss = () => `:host{position:relative;display:flex;max-width:100%;align-items:center;padding:calc(var(--z-table--cells-padding, calc(var(--space-unit) * 2)));background-color:var(--color-surface01);gap:calc(var(--space-unit) * 2) var(--space-unit)}:host,*{box-sizing:border-box}:host([sticky]){position:sticky;z-index:1;top:0;left:0;box-shadow:8px 0 16px -8px var(--shadow-color-base)}:host([menu-open]){z-index:2}.cell--content{display:flex;width:100%;height:100%;align-items:center}:host([show-menu]) .cell--content{column-gap:var(--space-unit)}.cell--menu-container{margin-left:auto}:host(:not([show-menu])) .cell--menu-container{opacity:0;pointer-events:none}:host(:is([show-menu],[menu-open])) .cell--menu-container,:host([show-menu]) .cell--menu-container:focus-within{z-index:1;opacity:1;pointer-events:all}:host .cell-popover{z-index:100}@media (min-width: 768px) and (hover: hover){:host([show-menu="hover"]) .cell--menu-container{opacity:0;pointer-events:none}:host([show-menu="hover"]:hover) .cell--menu-container{z-index:1;opacity:1;pointer-events:all}}`;
6
+ const zTableCellsCss = () => `:host{position:relative;display:flex;max-width:100%;align-items:center;background-color:var(--color-surface01);gap:calc(var(--space-unit) * 2) var(--space-unit)}:host,*{box-sizing:border-box}:host([sticky]){position:sticky;z-index:1;top:0;left:0;box-shadow:8px 0 16px -8px var(--shadow-color-base)}:host([menu-open]){z-index:2}.cell--content{display:flex;width:100%;height:100%;align-items:center}:host([show-menu]) .cell--content{column-gap:var(--space-unit)}.cell--menu-container{margin-left:auto}:host(:not([show-menu])) .cell--menu-container{opacity:0;pointer-events:none}:host(:is([show-menu],[menu-open])) .cell--menu-container,:host([show-menu]) .cell--menu-container:focus-within{z-index:1;opacity:1;pointer-events:all}:host .cell-popover{z-index:100}@media (min-width: 768px) and (hover: hover){:host([show-menu="hover"]) .cell--menu-container{opacity:0;pointer-events:none}:host([show-menu="hover"]:hover) .cell--menu-container{z-index:1;opacity:1;pointer-events:all}}`;
7
7
 
8
- const stylesCss = () => `:host{z-index:1;padding:0;background-color:var(--color-background);font-weight:var(--font-sb)}.cell--content{padding:var(--z-table--cells-padding, calc(var(--space-unit) * 2))}:host([show-sorting]) .cell--content{column-gap:var(--space-unit)}.z-th--sort-button{position:relative;padding:0;border:none;background-color:transparent;cursor:pointer;outline:none}.z-th--sort-button:focus,.z-th--sort-button:focus-visible{box-shadow:var(--shadow-focus-primary);opacity:1;outline:none;pointer-events:all}@media (min-width: 768px) and (hover: hover){:host([show-sorting="hover"]) .z-th--sort-button{opacity:0;pointer-events:none}:host([show-sorting="hover"]:hover) .z-th--sort-button,:host([show-sorting="hover"]) .z-th--sort-button:focus:focus-visible,:host([show-sorting="always"]) .z-th--sort-button,:host([sorted]) .z-th--sort-button{opacity:1;pointer-events:all}}:host([show-sorting="hover"]:hover) .z-th--sort-button::after,:host([show-sorting="hover"]) .z-th--sort-button:focus:focus-visible::after,:host([show-sorting="always"]) .z-th--sort-button::after,:host([sorted]) .z-th--sort-button::after{position:absolute;top:6px;left:6px;width:calc(100% - 12px);height:calc(100% - 10px);background-color:transparent;content:""}`;
8
+ const stylesCss$1 = () => `:host{z-index:1;padding:0;background-color:var(--color-background);font-weight:var(--font-sb)}:host([show-sorting]) .cell--content{column-gap:var(--space-unit)}.z-th--sort-button{position:relative;padding:0;border:none;background-color:transparent;cursor:pointer;outline:none}.z-th--sort-button:focus,.z-th--sort-button:focus-visible{box-shadow:var(--shadow-focus-primary);opacity:1;outline:none;pointer-events:all}@media (min-width: 768px) and (hover: hover){:host([show-sorting="hover"]) .z-th--sort-button{opacity:0;pointer-events:none}:host([show-sorting="hover"]:hover) .z-th--sort-button,:host([show-sorting="hover"]) .z-th--sort-button:focus:focus-visible,:host([show-sorting="always"]) .z-th--sort-button,:host([sorted]) .z-th--sort-button{opacity:1;pointer-events:all}}:host([show-sorting="hover"]:hover) .z-th--sort-button::after,:host([show-sorting="hover"]) .z-th--sort-button:focus:focus-visible::after,:host([show-sorting="always"]) .z-th--sort-button::after,:host([sorted]) .z-th--sort-button::after{position:absolute;top:6px;left:6px;width:calc(100% - 12px);height:calc(100% - 10px);background-color:transparent;content:""}`;
9
+
10
+ const stylesCss = () => `z-table,table.z-table{background-color:var(--color-surface01);--z-table--cells-padding:calc(var(--space-unit) * 2)}table.z-table{border-collapse:collapse}z-thead,table.z-table thead{background-color:var(--color-background);--z-table--cells-bottom-border-size:var(--border-size-medium)}z-tfoot,table.z-table tfoot{border-top:var(--border-size-medium) solid var(--color-surface03);border-bottom:var(--border-size-medium) solid var(--color-surface03)}z-tfoot z-tr,table.z-table tfoot tr{border-bottom:calc(var(--z-table--cells-bottom-border-size)) solid var(--color-surface03) !important}z-tr,table.z-table tr{border-bottom:var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03)}z-td,z-th,table.z-table td,table.z-table th{padding:var(--z-table--cells-padding, calc(var(--space-unit) * 2));text-align:left}z-th:not(:first-child),z-td:not(:first-child),table.z-table th:not(:first-child),table.z-table td:not(:first-child){border-left:var(--z-table--cell-left-border, none)}z-table[bordered],table.z-table.z-table-bordered{--z-table--cell-left-border:1px solid var(--color-surface03)}table.z-table-hover>tbody>tr:hover>td,table.z-table-hover>tfoot>tr:hover>td{position:relative;background-color:var(--color-surface02)}table.z-table-hover>tbody>tr:hover>td::after,table.z-table-hover>tfoot>tr:hover>td::after{position:absolute;z-index:1;top:0;right:0;bottom:0;left:-1px;box-shadow:inset 0 var(--border-size-small) 0 var(--color-surface04), inset 0 calc(var(--border-size-small) * -1) 0 var(--color-surface04);content:""}table.z-table-hover>tbody>tr:hover>td:first-child::after,table.z-table-hover>thead>tr:hover>th:first-child::after,table.z-table-hover>tfoot>tr:hover>td:first-child::after{left:0}`;
9
11
 
10
12
  const ZTh = class {
11
13
  constructor(hostRef) {
@@ -74,7 +76,7 @@ const ZTh = class {
74
76
  this.updateColspan();
75
77
  }
76
78
  render() {
77
- return (index.h(index.Host, { key: '029656c92d8e6abda98ecb1c1f8f37df5561993b', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, index.h("div", { key: 'a00a37619da7fba5ce5f0ff00644c321f6324d3d', class: "cell--content" }, index.h("slot", { key: '427c778843968776001f3a8486df91a32a51a620' }), this.showSorting && (index.h("button", { key: '77d2f3841e1398e9df475d91445a9ccd52133335', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, index.h("z-icon", { key: '3e29de562c699e7ea2b1acab0273d759f80f5b1f', name: this.sortDirection === index$1.SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (index.h("div", { key: 'a6fe1bc8e02e9f5238835c57f32a2a17b5f3e5a2', class: "cell--menu-container" }, index.h("z-button", { key: '7df03bf2a1411aa5357a9f31f2812572a9e564df', variant: index$1.ButtonVariant.TERTIARY, icon: "contextual-menu", size: index$1.ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), index.h("z-popover", { key: '73ecdad7bc49295072fa2163e6c94413e269755e', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, index.h("slot", { key: 'c5cb377cc2304e37f508589f818fb97037d9935d', name: "contextual-menu" })))))));
79
+ return (index.h(index.Host, { key: 'aef115e04b8a8c37c749a568bcb24250e062008b', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, index.h("div", { key: '5b78767c1d65440363c06d5e4b7137598e74d8b4', class: "cell--content" }, index.h("slot", { key: '340210db9182785b89ed01a26d6dc60558aa9f4f' }), this.showSorting && (index.h("button", { key: '2c6f42cbf3a2c1d37af04182731503accfe67362', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, index.h("z-icon", { key: 'ad73a2838da75772e84e431c36256e77bdf39157', name: this.sortDirection === index$1.SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (index.h("div", { key: 'd4c23d3a5b05ccea94a03efa6b10efc65e4a0cf4', class: "cell--menu-container" }, index.h("z-button", { key: 'fb0930c50cd3ac363e764ded3d7be227678a5d2d', variant: index$1.ButtonVariant.TERTIARY, icon: "contextual-menu", size: index$1.ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), index.h("z-popover", { key: 'b720485c31c2070d77e33bceacd5be582516ae38', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, index.h("slot", { key: '7372fa0d1ca9773ebbf8b6c8ec581133967aafdf', name: "contextual-menu" })))))));
78
80
  }
79
81
  get host() { return index.getElement(this); }
80
82
  static get watchers() { return {
@@ -83,7 +85,7 @@ const ZTh = class {
83
85
  }]
84
86
  }; }
85
87
  };
86
- ZTh.style = zTableCellsCss() + stylesCss();
88
+ ZTh.style = zTableCellsCss() + (stylesCss$1() + stylesCss());
87
89
 
88
90
  exports.z_th = ZTh;
89
91
  //# sourceMappingURL=z-th.entry.cjs.js.map
@@ -1 +1 @@
1
- {"file":"z-th.cjs.entry.js","mappings":";;;;;AAAA,MAAM,cAAc,GAAG,MAAM,CAAC,2hCAA2hC,CAAC;;ACA1jC,MAAM,SAAS,GAAG,MAAM,CAAC,qsCAAqsC,CAAC;;MCaltC,GAAG,GAAA,MAAA;AALhB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAc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,EACFH,OAAA,CAAA,WAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,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,EAAA,EAE9BA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,iBAAiB,EAAA,CAAQ,CAC1B,CACR,CACP,CACG,CACD;;;;;;;;;;;;;","names":["PopoverPosition","SortDirection","h","Host","ButtonVariant","ControlSize"],"sources":["src/components/table/cells/z-table-cells.css?tag=z-th&encapsulation=shadow","src/components/table/cells/z-th/styles.css?tag=z-th&encapsulation=shadow","src/components/table/cells/z-th/index.tsx"],"sourcesContent":[":host {\n position: relative;\n display: flex;\n max-width: 100%;\n align-items: center;\n padding: calc(var(--z-table--cells-padding, calc(var(--space-unit) * 2)));\n background-color: var(--color-surface01);\n gap: calc(var(--space-unit) * 2) var(--space-unit);\n}\n\n:host,\n* {\n box-sizing: border-box;\n}\n\n:host([sticky]) {\n position: sticky;\n z-index: 1;\n top: 0;\n left: 0;\n box-shadow: 8px 0 16px -8px var(--shadow-color-base);\n}\n\n:host([menu-open]) {\n z-index: 2;\n}\n\n.cell--content {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n}\n\n:host([show-menu]) .cell--content {\n column-gap: var(--space-unit);\n}\n\n.cell--menu-container {\n margin-left: auto;\n}\n\n:host(:not([show-menu])) .cell--menu-container {\n opacity: 0;\n pointer-events: none;\n}\n\n:host(:is([show-menu], [menu-open])) .cell--menu-container,\n:host([show-menu]) .cell--menu-container:focus-within {\n z-index: 1;\n opacity: 1;\n pointer-events: all;\n}\n\n:host .cell-popover {\n z-index: 100;\n}\n\n@media (min-width: 768px) and (hover: hover) {\n :host([show-menu=\"hover\"]) .cell--menu-container {\n opacity: 0;\n pointer-events: none;\n }\n\n :host([show-menu=\"hover\"]:hover) .cell--menu-container {\n z-index: 1;\n opacity: 1;\n pointer-events: all;\n }\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 position: relative;\n padding: 0;\n border: none;\n background-color: transparent;\n cursor: pointer;\n outline: none;\n}\n\n.z-th--sort-button:focus,\n.z-th--sort-button:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n opacity: 1;\n outline: none;\n pointer-events: all;\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","import {Component, ComponentInterface, 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 styleUrls: [\"../z-table-cells.css\", \"styles.css\"],\n shadow: true,\n})\nexport class ZTh implements ComponentInterface {\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":"z-th.cjs.entry.js","mappings":";;;;;AAAA,MAAM,cAAc,GAAG,MAAM,CAAC,k9BAAk9B,CAAC;;ACAj/B,MAAMA,WAAS,GAAG,MAAM,CAAC,mnCAAmnC,CAAC;;ACA7oC,MAAM,SAAS,GAAG,MAAM,CAAC,0sDAA0sD,CAAC;;MCavtD,GAAG,GAAA,MAAA;AALhB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAcE;;;;AAIG;AAEH,QAAA,IAAA,CAAA,QAAQ,GAAwB,IAAI;AAEpC;;;;AAIG;AAEH,QAAA,IAAA,CAAA,WAAW,GAAwB,IAAI;AAEvC;;AAEG;AAEH,QAAA,IAAA,CA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,CAAC,WAAW,EACxB,YAAY,EAAE,CAAC,KAAK,MAAM,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe,EAAA,EAE9BA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,iBAAiB,EAAA,CAAQ,CAC1B,CACR,CACP,CACG,CACD;;;;;;;;;;;;;","names":["stylesCss","PopoverPosition","SortDirection","h","Host","ButtonVariant","ControlSize"],"sources":["src/components/table/cells/z-table-cells.css?tag=z-th&encapsulation=shadow","src/components/table/cells/z-th/styles.css?tag=z-th&encapsulation=shadow","src/components/css-components/z-table/styles.css?tag=z-th&encapsulation=shadow","src/components/table/cells/z-th/index.tsx"],"sourcesContent":[":host {\n position: relative;\n display: flex;\n max-width: 100%;\n align-items: center;\n background-color: var(--color-surface01);\n gap: calc(var(--space-unit) * 2) var(--space-unit);\n}\n\n:host,\n* {\n box-sizing: border-box;\n}\n\n:host([sticky]) {\n position: sticky;\n z-index: 1;\n top: 0;\n left: 0;\n box-shadow: 8px 0 16px -8px var(--shadow-color-base);\n}\n\n:host([menu-open]) {\n z-index: 2;\n}\n\n.cell--content {\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n}\n\n:host([show-menu]) .cell--content {\n column-gap: var(--space-unit);\n}\n\n.cell--menu-container {\n margin-left: auto;\n}\n\n:host(:not([show-menu])) .cell--menu-container {\n opacity: 0;\n pointer-events: none;\n}\n\n:host(:is([show-menu], [menu-open])) .cell--menu-container,\n:host([show-menu]) .cell--menu-container:focus-within {\n z-index: 1;\n opacity: 1;\n pointer-events: all;\n}\n\n:host .cell-popover {\n z-index: 100;\n}\n\n@media (min-width: 768px) and (hover: hover) {\n :host([show-menu=\"hover\"]) .cell--menu-container {\n opacity: 0;\n pointer-events: none;\n }\n\n :host([show-menu=\"hover\"]:hover) .cell--menu-container {\n z-index: 1;\n opacity: 1;\n pointer-events: all;\n }\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:host([show-sorting]) .cell--content {\n column-gap: var(--space-unit);\n}\n\n.z-th--sort-button {\n position: relative;\n padding: 0;\n border: none;\n background-color: transparent;\n cursor: pointer;\n outline: none;\n}\n\n.z-th--sort-button:focus,\n.z-th--sort-button:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n opacity: 1;\n outline: none;\n pointer-events: all;\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","z-table,\ntable.z-table {\n background-color: var(--color-surface01);\n\n --z-table--cells-padding: calc(var(--space-unit) * 2);\n}\n\ntable.z-table {\n border-collapse: collapse;\n}\n\nz-thead,\ntable.z-table thead {\n background-color: var(--color-background);\n\n --z-table--cells-bottom-border-size: var(--border-size-medium);\n}\n\nz-tfoot,\ntable.z-table tfoot {\n border-top: var(--border-size-medium) solid var(--color-surface03);\n border-bottom: var(--border-size-medium) solid var(--color-surface03);\n}\n\nz-tfoot z-tr,\ntable.z-table tfoot tr {\n border-bottom: calc(var(--z-table--cells-bottom-border-size)) solid var(--color-surface03) !important;\n}\n\nz-tr,\ntable.z-table tr {\n border-bottom: var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03);\n}\n\nz-td,\nz-th,\ntable.z-table td,\ntable.z-table th {\n padding: var(--z-table--cells-padding, calc(var(--space-unit) * 2));\n text-align: left;\n}\n\nz-th:not(:first-child),\nz-td:not(:first-child),\ntable.z-table th:not(:first-child),\ntable.z-table td:not(:first-child) {\n border-left: var(--z-table--cell-left-border, none);\n}\n\nz-table[bordered],\ntable.z-table.z-table-bordered {\n --z-table--cell-left-border: 1px solid var(--color-surface03);\n}\n\ntable.z-table-hover > tbody > tr:hover > td,\ntable.z-table-hover > tfoot > tr:hover > td {\n position: relative;\n background-color: var(--color-surface02);\n}\n\ntable.z-table-hover > tbody > tr:hover > td::after,\ntable.z-table-hover > tfoot > tr:hover > td::after {\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n bottom: 0;\n left: -1px;\n box-shadow:\n inset 0 var(--border-size-small) 0 var(--color-surface04),\n inset 0 calc(var(--border-size-small) * -1) 0 var(--color-surface04);\n content: \"\";\n}\n\ntable.z-table-hover > tbody > tr:hover > td:first-child::after,\ntable.z-table-hover > thead > tr:hover > th:first-child::after,\ntable.z-table-hover > tfoot > tr:hover > td:first-child::after {\n left: 0;\n}\n","import {Component, ComponentInterface, 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 styleUrls: [\"../z-table-cells.css\", \"styles.css\", \"../../../css-components/z-table/styles.css\"],\n shadow: true,\n})\nexport class ZTh implements ComponentInterface {\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,8 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DY2I5wAY.js');
3
+ var index = require('./index-CZz7uP-M.js');
4
4
 
5
- const stylesCss = () => `:host{--z-table--cells-bottom-border-size:var( --border-size-medium );--z-table--cells-background:var( --color-background );display:block;box-sizing:border-box}:host([sticky]){position:sticky;z-index:2;top:0;box-shadow:0 2px 4px -2px var(--shadow-color-base)}:host(:focus-visible){box-shadow:none;outline:none}`;
5
+ const stylesCss$1 = () => `:host{--z-table--cells-background:var( --color-background );display:block;box-sizing:border-box}:host([sticky]){position:sticky;z-index:2;top:0;box-shadow:0 2px 4px -2px var(--shadow-color-base)}:host(:focus-visible){box-shadow:none;outline:none}`;
6
+
7
+ const stylesCss = () => `z-table,table.z-table{background-color:var(--color-surface01);--z-table--cells-padding:calc(var(--space-unit) * 2)}table.z-table{border-collapse:collapse}z-thead,table.z-table thead{background-color:var(--color-background);--z-table--cells-bottom-border-size:var(--border-size-medium)}z-tfoot,table.z-table tfoot{border-top:var(--border-size-medium) solid var(--color-surface03);border-bottom:var(--border-size-medium) solid var(--color-surface03)}z-tfoot z-tr,table.z-table tfoot tr{border-bottom:calc(var(--z-table--cells-bottom-border-size)) solid var(--color-surface03) !important}z-tr,table.z-table tr{border-bottom:var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03)}z-td,z-th,table.z-table td,table.z-table th{padding:var(--z-table--cells-padding, calc(var(--space-unit) * 2));text-align:left}z-th:not(:first-child),z-td:not(:first-child),table.z-table th:not(:first-child),table.z-table td:not(:first-child){border-left:var(--z-table--cell-left-border, none)}z-table[bordered],table.z-table.z-table-bordered{--z-table--cell-left-border:1px solid var(--color-surface03)}table.z-table-hover>tbody>tr:hover>td,table.z-table-hover>tfoot>tr:hover>td{position:relative;background-color:var(--color-surface02)}table.z-table-hover>tbody>tr:hover>td::after,table.z-table-hover>tfoot>tr:hover>td::after{position:absolute;z-index:1;top:0;right:0;bottom:0;left:-1px;box-shadow:inset 0 var(--border-size-small) 0 var(--color-surface04), inset 0 calc(var(--border-size-small) * -1) 0 var(--color-surface04);content:""}table.z-table-hover>tbody>tr:hover>td:first-child::after,table.z-table-hover>thead>tr:hover>th:first-child::after,table.z-table-hover>tfoot>tr:hover>td:first-child::after{left:0}`;
6
8
 
7
9
  const ZThead = class {
8
10
  constructor(hostRef) {
@@ -17,11 +19,11 @@ const ZThead = class {
17
19
  this.isFocusable = false;
18
20
  }
19
21
  render() {
20
- return (index.h(index.Host, { key: 'c32f2b2d2921e034d18d3b7121f59ee7b3b7b398', role: "rowgroup", tabIndex: this.isFocusable ? 0 : -1 }, index.h("slot", { key: 'f74ef0383c4111415134df8ae1492fda11da8568' })));
22
+ return (index.h(index.Host, { key: '0e43e10373817b9ee5e4f1574fb0d46b232c510d', role: "rowgroup", tabIndex: this.isFocusable ? 0 : -1 }, index.h("slot", { key: 'aefd2ed2698efb7deabd11284f3d6cae95800e50' })));
21
23
  }
22
24
  get host() { return index.getElement(this); }
23
25
  };
24
- ZThead.style = stylesCss();
26
+ ZThead.style = stylesCss$1() + stylesCss();
25
27
 
26
28
  exports.z_thead = ZThead;
27
29
  //# sourceMappingURL=z-thead.entry.cjs.js.map
@@ -1 +1 @@
1
- {"file":"z-thead.cjs.entry.js","mappings":";;;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,kUAAkU,CAAC;;MCW/U,MAAM,GAAA,MAAA;AALnB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAQE;;AAEG;AAEH,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;AAEd;;AAEG;AAEH,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;AAYpB;IAVC,MAAM,GAAA;AACJ,QAAA,QACEA,QAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EACH,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,GAAG,EAAE,EAAA,EAEnCD,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACR;;;;;;;;","names":["h","Host"],"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\n:host(:focus-visible) {\n box-shadow: none;\n outline: none;\n}\n","import {Component, ComponentInterface, Element, 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 implements ComponentInterface {\n @Element() host: HTMLZTheadElement;\n\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 /**\n * The element is focusable\n */\n @Prop({reflect: true})\n isFocusable = false;\n\n render(): HTMLZTheadElement {\n return (\n <Host\n role=\"rowgroup\"\n tabIndex={this.isFocusable ? 0 : -1}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"z-thead.cjs.entry.js","mappings":";;;;AAAA,MAAMA,WAAS,GAAG,MAAM,CAAC,4PAA4P,CAAC;;ACAtR,MAAM,SAAS,GAAG,MAAM,CAAC,0sDAA0sD,CAAC;;MCWvtD,MAAM,GAAA,MAAA;AALnB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAQE;;AAEG;AAEH,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;AAEd;;AAEG;AAEH,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;AAYpB;IAVC,MAAM,GAAA;AACJ,QAAA,QACEC,QAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EACH,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,GAAG,EAAE,EAAA,EAEnCD,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACR;;;;;;;;","names":["stylesCss","h","Host"],"sources":["src/components/table/z-thead/styles.css?tag=z-thead&encapsulation=shadow","src/components/css-components/z-table/styles.css?tag=z-thead&encapsulation=shadow","src/components/table/z-thead/index.tsx"],"sourcesContent":[":host {\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\n:host(:focus-visible) {\n box-shadow: none;\n outline: none;\n}\n","z-table,\ntable.z-table {\n background-color: var(--color-surface01);\n\n --z-table--cells-padding: calc(var(--space-unit) * 2);\n}\n\ntable.z-table {\n border-collapse: collapse;\n}\n\nz-thead,\ntable.z-table thead {\n background-color: var(--color-background);\n\n --z-table--cells-bottom-border-size: var(--border-size-medium);\n}\n\nz-tfoot,\ntable.z-table tfoot {\n border-top: var(--border-size-medium) solid var(--color-surface03);\n border-bottom: var(--border-size-medium) solid var(--color-surface03);\n}\n\nz-tfoot z-tr,\ntable.z-table tfoot tr {\n border-bottom: calc(var(--z-table--cells-bottom-border-size)) solid var(--color-surface03) !important;\n}\n\nz-tr,\ntable.z-table tr {\n border-bottom: var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03);\n}\n\nz-td,\nz-th,\ntable.z-table td,\ntable.z-table th {\n padding: var(--z-table--cells-padding, calc(var(--space-unit) * 2));\n text-align: left;\n}\n\nz-th:not(:first-child),\nz-td:not(:first-child),\ntable.z-table th:not(:first-child),\ntable.z-table td:not(:first-child) {\n border-left: var(--z-table--cell-left-border, none);\n}\n\nz-table[bordered],\ntable.z-table.z-table-bordered {\n --z-table--cell-left-border: 1px solid var(--color-surface03);\n}\n\ntable.z-table-hover > tbody > tr:hover > td,\ntable.z-table-hover > tfoot > tr:hover > td {\n position: relative;\n background-color: var(--color-surface02);\n}\n\ntable.z-table-hover > tbody > tr:hover > td::after,\ntable.z-table-hover > tfoot > tr:hover > td::after {\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n bottom: 0;\n left: -1px;\n box-shadow:\n inset 0 var(--border-size-small) 0 var(--color-surface04),\n inset 0 calc(var(--border-size-small) * -1) 0 var(--color-surface04);\n content: \"\";\n}\n\ntable.z-table-hover > tbody > tr:hover > td:first-child::after,\ntable.z-table-hover > thead > tr:hover > th:first-child::after,\ntable.z-table-hover > tfoot > tr:hover > td:first-child::after {\n left: 0;\n}\n","import {Component, ComponentInterface, Element, 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 styleUrls: [\"styles.css\", \"../../css-components/z-table/styles.css\"],\n shadow: true,\n})\nexport class ZThead implements ComponentInterface {\n @Element() host: HTMLZTheadElement;\n\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 /**\n * The element is focusable\n */\n @Prop({reflect: true})\n isFocusable = false;\n\n render(): HTMLZTheadElement {\n return (\n <Host\n role=\"rowgroup\"\n tabIndex={this.isFocusable ? 0 : -1}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DY2I5wAY.js');
3
+ var index = require('./index-CZz7uP-M.js');
4
4
  var index$1 = require('./index-Cn7FFDHr.js');
5
5
 
6
6
  const stylesCss = () => `:host{position:fixed;z-index:10000;display:flex;flex-flow:column nowrap;margin-top:calc(var(--space-unit) * 2);margin-bottom:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host([position="bottom-centre"]),:host([position="bottom-right"]),:host([position="bottom-left"]){bottom:0;align-items:flex-end;justify-content:flex-end}:host([position="top-left"]),:host([position="top-right"]),:host([position="top-centre"]){top:0;align-items:flex-start;justify-content:flex-start}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host([position="top-centre"]){top:0;left:50%;align-items:center;justify-content:flex-start;transform:translateX(-50%)}:host([position="top-left"]){top:0;left:0;align-items:flex-start;justify-content:flex-start}:host([position="top-right"]){top:0;right:0;align-items:flex-end;justify-content:flex-start}:host([position="bottom-centre"]){bottom:0;left:50%;align-items:center;justify-content:flex-end;transform:translateX(-50%)}:host([position="bottom-right"]){right:0;bottom:0;align-items:flex-end;justify-content:flex-end}:host([position="bottom-left"]){bottom:0;left:0;align-items:flex-start;justify-content:flex-end}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}`;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DY2I5wAY.js');
3
+ var index = require('./index-CZz7uP-M.js');
4
4
  var index$1 = require('./index-Cn7FFDHr.js');
5
5
  var _commonjsHelpers = require('./_commonjsHelpers-CFO10eej.js');
6
6
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DY2I5wAY.js');
3
+ var index = require('./index-CZz7uP-M.js');
4
4
 
5
5
  const stylesCss = () => `button{display:flex;height:36px;align-items:center;padding-right:calc(var(--space-unit) * 2);padding-left:0;border:var(--border-size-medium) solid;border-color:transparent;background-color:var(--color-surface01);border-radius:var(--border-radius);box-shadow:var(--shadow-2);color:var(--color-primary01);cursor:pointer;fill:var(--color-primary01);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);outline:none;text-transform:uppercase}button::-moz-focus-inner{border:0}button:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}button:focus{box-shadow:var(--shadow-focus-primary)}button:active{border-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-pressed-primary);fill:var(--color-pressed-primary)}button:disabled{color:var(--color-disabled03);fill:var(--color-disabled03)}z-icon{display:inline-block;margin:0 var(--space-unit) 0 calc(var(--space-unit) * 2);transform:rotate(360deg);transition:all 200ms linear}button.isopen{top:-20px}button.avoid-clicks{pointer-events:none}`;
6
6
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DY2I5wAY.js');
3
+ var index = require('./index-CZz7uP-M.js');
4
4
  var index$1 = require('./index-Cn7FFDHr.js');
5
5
  var utils = require('./utils-kQZHfpti.js');
6
6
  require('./breakpoints-B7vFm-3T.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DY2I5wAY.js');
3
+ var index = require('./index-CZz7uP-M.js');
4
4
  var index$1 = require('./index-Cn7FFDHr.js');
5
5
  var utils = require('./utils-kQZHfpti.js');
6
6
  require('./breakpoints-B7vFm-3T.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DY2I5wAY.js');
3
+ var index = require('./index-CZz7uP-M.js');
4
4
  var index$1 = require('./index-Cn7FFDHr.js');
5
5
 
6
6
  const stylesCss = () => `:host,*{box-sizing:border-box}:host{display:flex;width:fit-content;align-items:center;padding:0;border:var(--border-size-small) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:calc(var(--border-radius) + var(--border-size-small));box-shadow:var(--shadow-4);gap:calc(var(--space-unit) / 2)}::slotted(z-divider){height:calc(var(--space-unit) * 4.5) !important}@media (max-width: 767px){:host{--z-toolbar-columns:6;position:relative;display:grid;max-width:100%;background:repeating-linear-gradient( to bottom, transparent 0, transparent calc(var(--space-unit) * 5.5), var(--color-surface03) calc(var(--space-unit) * 5.5), var(--color-surface03) calc(var(--space-unit) * 5.5 + 1px) ) center / calc(100% - var(--space-unit)) 100% no-repeat var(--color-surface01);gap:var(--border-size-small) calc(var(--space-unit) / 2);grid-template-columns:repeat(var(--z-toolbar-columns, auto-fill), minmax(44px, auto))}::slotted(z-divider){display:none !important}}`;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DY2I5wAY.js');
3
+ var index = require('./index-CZz7uP-M.js');
4
4
  var index$1 = require('./index-Cn7FFDHr.js');
5
5
 
6
6
  const stylesCss = () => `:host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-default-text);--z-tooltip-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base));--z-tooltip-padding:var(--space-unit)}z-popover{--z-popover-theme--surface:var(--z-tooltip-theme--surface);--z-popover-theme--text:var(--z-tooltip-theme--text);--z-popover-padding:var(--z-tooltip-padding);--z-popover-shadow-filter:var(--z-tooltip-shadow-filter)}:host([dark]) z-popover{--z-popover-theme--surface:var(--color-surface05);--z-popover-theme--text:var(--color-text-inverse)}`;
@@ -1,13 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DY2I5wAY.js');
3
+ var index = require('./index-CZz7uP-M.js');
4
4
  var utils = require('./utils-kQZHfpti.js');
5
5
  require('./z-td.cjs.entry.js');
6
6
  require('./z-th.cjs.entry.js');
7
7
  require('./index-Cn7FFDHr.js');
8
8
  require('./breakpoints-B7vFm-3T.js');
9
9
 
10
- const stylesCss = () => `:host{position:relative;display:grid;width:100%;box-sizing:border-box;grid-auto-flow:column;grid-template-columns:var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr));--columns:1}*{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)}:host(:hover):has([tabIndex]) ::slotted(z-td),:host(:hover):has([tabIndex]) ::slotted(z-th){border-top:var(--border-size-small) solid var(--color-surface04);border-bottom:var(--border-size-small) solid var(--color-surface04);background-color:var(--color-surface02)}:host(:focus){position:relative;z-index:20;box-shadow:var(--shadow-focus-primary);outline:none}.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 z-icon{--z-icon-width:16px;--z-icon-height:16px}.z-tr--focus-overlay{position:absolute;z-index:30;right:0;left:0;width:100%;border-radius:4px;box-shadow:none;inset:0;outline:none;pointer-events:none;transition:box-shadow 0.2s}:host(:focus) .z-tr--focus-overlay{box-shadow:0 0 0 2px var(--shadow-focus-primary), var(--shadow-focus-primary);outline:none}:host(:focus) ::slotted(*){border-bottom:none}:host(:focus) .z-tr--expand-button-container{border-bottom:none}`;
10
+ const stylesCss$1 = () => `:host{position:relative;display:grid;width:100%;box-sizing:border-box;grid-auto-flow:column;grid-template-columns:var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr));--columns:1}*{box-sizing:border-box}: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-top:var(--border-size-small) solid var(--color-surface03);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(*){border-left:0 !important;background-color:var(--color-background)}:host([tabIndex]:hover) ::slotted(z-td),:host([tabIndex]:hover) ::slotted(z-th),:host([tabIndex]:hover) .z-tr--expand-button-container{background-color:var(--color-surface02)}:host([tabIndex]:hover) .z-tr--focus-overlay{border-top:var(--border-size-small) solid var(--color-surface04);border-bottom:var(--border-size-small) solid var(--color-surface04)}:host(:focus){position:relative;z-index:20;border:none !important;box-shadow:var(--shadow-focus-primary);outline:none}.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 z-icon{--z-icon-width:16px;--z-icon-height:16px}.z-tr--focus-overlay{position:absolute;z-index:30;top:calc(var(--border-size-small) * -1);bottom:0;left:0;width:100%;height:calc(100% + (var(--border-size-small) * 2));box-shadow:none;outline:none;pointer-events:none;transition:box-shadow 0.2s}:host(:focus) .z-tr--focus-overlay{box-shadow:0 0 0 2px var(--shadow-focus-primary), var(--shadow-focus-primary);outline:none}:host(:focus) ::slotted(*){border-bottom:none}:host(:focus) .z-tr--expand-button-container{border-bottom:none}`;
11
+
12
+ const stylesCss = () => `z-table,table.z-table{background-color:var(--color-surface01);--z-table--cells-padding:calc(var(--space-unit) * 2)}table.z-table{border-collapse:collapse}z-thead,table.z-table thead{background-color:var(--color-background);--z-table--cells-bottom-border-size:var(--border-size-medium)}z-tfoot,table.z-table tfoot{border-top:var(--border-size-medium) solid var(--color-surface03);border-bottom:var(--border-size-medium) solid var(--color-surface03)}z-tfoot z-tr,table.z-table tfoot tr{border-bottom:calc(var(--z-table--cells-bottom-border-size)) solid var(--color-surface03) !important}z-tr,table.z-table tr{border-bottom:var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03)}z-td,z-th,table.z-table td,table.z-table th{padding:var(--z-table--cells-padding, calc(var(--space-unit) * 2));text-align:left}z-th:not(:first-child),z-td:not(:first-child),table.z-table th:not(:first-child),table.z-table td:not(:first-child){border-left:var(--z-table--cell-left-border, none)}z-table[bordered],table.z-table.z-table-bordered{--z-table--cell-left-border:1px solid var(--color-surface03)}table.z-table-hover>tbody>tr:hover>td,table.z-table-hover>tfoot>tr:hover>td{position:relative;background-color:var(--color-surface02)}table.z-table-hover>tbody>tr:hover>td::after,table.z-table-hover>tfoot>tr:hover>td::after{position:absolute;z-index:1;top:0;right:0;bottom:0;left:-1px;box-shadow:inset 0 var(--border-size-small) 0 var(--color-surface04), inset 0 calc(var(--border-size-small) * -1) 0 var(--color-surface04);content:""}table.z-table-hover>tbody>tr:hover>td:first-child::after,table.z-table-hover>thead>tr:hover>th:first-child::after,table.z-table-hover>tfoot>tr:hover>td:first-child::after{left:0}`;
11
13
 
12
14
  const ZTr = class {
13
15
  constructor(hostRef) {
@@ -30,16 +32,13 @@ const ZTr = class {
30
32
  }
31
33
  updateColumns() {
32
34
  const cells = Array.from(this.host.querySelectorAll("z-td, z-th"));
33
- if (this.expandable) {
34
- cells.pop();
35
- }
36
- const columns = cells.map((cell) => cell.colspan || 1).reduce((a, b) => a + b, 0);
37
- this.host.style.setProperty("--columns", `${columns}`);
38
35
  if (this.expandable) {
39
36
  const expandableContent = cells.pop();
40
37
  expandableContent.id = expandableContent.id || `z-tr-expandable-content-${utils.randomId()}`;
41
38
  this.expandableContentId = expandableContent.id;
42
39
  }
40
+ const columns = cells.map((cell) => cell.colspan || 1).reduce((a, b) => a + b, 0);
41
+ this.host.style.setProperty("--columns", `${columns}`);
43
42
  }
44
43
  /**
45
44
  * Handle click on row.
@@ -71,7 +70,7 @@ const ZTr = class {
71
70
  this.updateColumns();
72
71
  }
73
72
  render() {
74
- return (index.h(index.Host, { key: '92be779ec3e863cc85336fcedb02f718fa3a19fa', role: "row", tabIndex: this.expandable ? 0 : undefined, expanded: this.expanded, onClick: this.onRowClick.bind(this), onKeyDown: this.onKeyDown.bind(this) }, index.h("div", { key: '720c8209c21104e78129cbd76c12a6cdf8806ca2', class: "z-tr--focus-overlay", "aria-hidden": "true" }), index.h("div", { key: '3bb4f4d2e5ae60da5c105d1c8a99d6ff0fa59302', class: "z-tr--expand-button-container" }, this.expandable && (index.h("button", { key: 'd27d18c1a4515ac055ce7db13ec3efdfc7d0314d', tabIndex: -1, "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, index.h("z-icon", { key: '9fd14fcab4ea512b42c63928c3e2dabb83fd1da3', name: this.expanded ? "minus-circled" : "plus-circled" })))), index.h("slot", { key: 'c5fcb7a2f92eb8401c4d27d28e5b68a5001616b7', onSlotchange: this.updateColumns.bind(this) })));
73
+ return (index.h(index.Host, { key: 'ffd8e071015ace61e51c603988d84dae42a047bb', role: "row", tabIndex: this.expandable ? 0 : undefined, expanded: this.expanded, onClick: this.onRowClick.bind(this), onKeyDown: this.onKeyDown.bind(this) }, index.h("div", { key: '49539d360bab6d865958910fd21f5c407fc0a16b', class: "z-tr--focus-overlay", "aria-hidden": "true" }), index.h("div", { key: '94c5f36a5f220a7403d0c6057faf41cf0509f68e', class: "z-tr--expand-button-container" }, this.expandable && (index.h("button", { key: 'ee46bd7dd59d27c6be18716fc3a46092cdac5eb6', tabIndex: -1, "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, index.h("z-icon", { key: 'ce6fc941625f48f13edc7df3a43da159cf6f064d', name: this.expanded ? "minus-circled" : "plus-circled" })))), index.h("slot", { key: 'c41ca74f6026dda7813605940e6910a56cd576fb', onSlotchange: this.updateColumns.bind(this) })));
75
74
  }
76
75
  get host() { return index.getElement(this); }
77
76
  static get watchers() { return {
@@ -80,7 +79,7 @@ const ZTr = class {
80
79
  }]
81
80
  }; }
82
81
  };
83
- ZTr.style = stylesCss();
82
+ ZTr.style = stylesCss$1() + stylesCss();
84
83
 
85
84
  exports.z_tr = ZTr;
86
85
  //# sourceMappingURL=z-tr.entry.cjs.js.map
@@ -1 +1 @@
1
- {"file":"z-tr.cjs.entry.js","mappings":";;;;;;;;;AAAA,MAAM,SAAS,GAAG,MAAM,CAAC,yvEAAyvE,CAAC;;MC4BtwE,GAAG,GAAA,MAAA;AALhB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAQE;;;;;;;;AAQG;AAEH,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;AAElB;;AAEG;AAEH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;AAgGjB;IAjFW,aAAa,GAAA;AACrB,QAAA,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAkC,YAAY,CAAC,CAAC;AACnG,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE;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W,CAClE,CACV,CACG,EACNA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAA,CAAS,CACrD;;;;;;;;;;;;;","names":["randomId","h","Host"],"sources":["src/components/table/z-tr/styles.css?tag=z-tr&encapsulation=shadow","src/components/table/z-tr/index.tsx"],"sourcesContent":[":host {\n position: relative;\n display: grid;\n width: 100%;\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 --columns: 1;\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:host(:hover):has([tabIndex]) ::slotted(z-td),\n:host(:hover):has([tabIndex]) ::slotted(z-th) {\n border-top: var(--border-size-small) solid var(--color-surface04);\n border-bottom: var(--border-size-small) solid var(--color-surface04);\n background-color: var(--color-surface02);\n}\n\n:host(:focus) {\n position: relative;\n z-index: 20;\n box-shadow: var(--shadow-focus-primary);\n outline: none;\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 z-icon {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n}\n\n.z-tr--focus-overlay {\n position: absolute;\n z-index: 30;\n right: 0;\n left: 0;\n width: 100%;\n border-radius: 4px;\n box-shadow: none;\n inset: 0;\n outline: none;\n pointer-events: none;\n transition: box-shadow 0.2s;\n}\n\n:host(:focus) .z-tr--focus-overlay {\n box-shadow:\n 0 0 0 2px var(--shadow-focus-primary),\n var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(:focus) ::slotted(*) {\n border-bottom: none;\n}\n\n:host(:focus) .z-tr--expand-button-container {\n border-bottom: none;\n}\n","import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n h,\n} 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 implements ComponentInterface {\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 private onKeyDown(event: KeyboardEvent): void {\n if (!this.expandable) {\n return;\n }\n\n const active = document.activeElement;\n if (active !== this.host) {\n return;\n }\n\n if (event.key === \"Enter\" || event.key === \" \") {\n event.preventDefault();\n this.expanded = !this.expanded;\n this.expand.emit({expanded: this.expanded});\n }\n }\n\n componentWillLoad(): void {\n this.updateColumns();\n }\n\n render(): HTMLZTrElement {\n return (\n <Host\n role=\"row\"\n tabIndex={this.expandable ? 0 : undefined}\n expanded={this.expanded}\n onClick={this.onRowClick.bind(this)}\n onKeyDown={this.onKeyDown.bind(this)}\n >\n <div\n class=\"z-tr--focus-overlay\"\n aria-hidden=\"true\"\n ></div>\n <div class=\"z-tr--expand-button-container\">\n {this.expandable && (\n <button\n tabIndex={-1}\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":"z-tr.cjs.entry.js","mappings":";;;;;;;;;AAAA,MAAMA,WAAS,GAAG,MAAM,CAAC,wxEAAwxE,CAAC;;ACAlzE,MAAM,SAAS,GAAG,MAAM,CAAC,0sDAA0sD,CAAC;;MC4BvtD,GAAG,GAAA,MAAA;AALhB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAQE;;;;;;;;AAQG;AAEH,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;AAElB;;AAEG;AAEH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;AA6FjB;IA9EW,aAAa,GAAA;AACrB,QAAA,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAkC,YAAY,CAAC,CAAC;AAEnG,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE;AACnB,YAAA,MAAM,iBAAiB,GAAG,KAAK,CAAC,GAAG,EAAE;YACrC,iBAAiB,CAAC,EAAE,GAAG,iBAAiB,CAAC,EAAE,IAAI,CAAA,wBAAA,EAA2BC,cAAQ,EAAE,CAAA,CAAE;AACtF,YAAA,IAAI,CAAC,mBAAmB,GAAG,iBAAiB,CAAC,EAAE;;AAGjD,QAAA,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;AACjF,QAAA,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE,CAAA,EAAG,OAAO,CAAA,CAAE,CAAC;;AAGxD;;;AAGG;AACK,IAAA,UAAU,CAA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,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAC,qBAAqB,EAAA,aAAA,EACf,MAAM,EAAA,CACb,EACPA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,+BAA+B,EAAA,EACvC,IAAI,CAAC,UAAU,KACdA,OAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,QAAQ,EAAE,EAAE,EAAA,eAAA,EACG,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO,EAAA,YAAA,EACnC,IAAI,CAAC,QAAQ,GAAG,eAAe,GAAG,cAAc,EAAA,eAAA,EAC7C,IAAI,CAAC,mBAAmB,EACvC,IAAI,EAAC,QAAQ,EAAA,EAEbA,OAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAG,eAAe,GAAG,cAAc,EAAA,CAAW,CAClE,CACV,CACG,EACNA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAA,CAAS,CACrD;;;;;;;;;;;;;","names":["stylesCss","randomId","h","Host"],"sources":["src/components/table/z-tr/styles.css?tag=z-tr&encapsulation=shadow","src/components/css-components/z-table/styles.css?tag=z-tr&encapsulation=shadow","src/components/table/z-tr/index.tsx"],"sourcesContent":[":host {\n position: relative;\n display: grid;\n width: 100%;\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 --columns: 1;\n}\n\n* {\n box-sizing: border-box;\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-top: var(--border-size-small) solid var(--color-surface03);\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 border-left: 0 !important;\n background-color: var(--color-background);\n}\n\n:host([tabIndex]:hover) ::slotted(z-td),\n:host([tabIndex]:hover) ::slotted(z-th),\n:host([tabIndex]:hover) .z-tr--expand-button-container {\n background-color: var(--color-surface02);\n}\n\n:host([tabIndex]:hover) .z-tr--focus-overlay {\n border-top: var(--border-size-small) solid var(--color-surface04);\n border-bottom: var(--border-size-small) solid var(--color-surface04);\n}\n\n:host(:focus) {\n position: relative;\n z-index: 20;\n border: none !important;\n box-shadow: var(--shadow-focus-primary);\n outline: none;\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 z-icon {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n}\n\n.z-tr--focus-overlay {\n position: absolute;\n z-index: 30;\n top: calc(var(--border-size-small) * -1);\n bottom: 0;\n left: 0;\n width: 100%;\n height: calc(100% + (var(--border-size-small) * 2));\n box-shadow: none;\n outline: none;\n pointer-events: none;\n transition: box-shadow 0.2s;\n}\n\n:host(:focus) .z-tr--focus-overlay {\n box-shadow:\n 0 0 0 2px var(--shadow-focus-primary),\n var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(:focus) ::slotted(*) {\n border-bottom: none;\n}\n\n:host(:focus) .z-tr--expand-button-container {\n border-bottom: none;\n}\n","z-table,\ntable.z-table {\n background-color: var(--color-surface01);\n\n --z-table--cells-padding: calc(var(--space-unit) * 2);\n}\n\ntable.z-table {\n border-collapse: collapse;\n}\n\nz-thead,\ntable.z-table thead {\n background-color: var(--color-background);\n\n --z-table--cells-bottom-border-size: var(--border-size-medium);\n}\n\nz-tfoot,\ntable.z-table tfoot {\n border-top: var(--border-size-medium) solid var(--color-surface03);\n border-bottom: var(--border-size-medium) solid var(--color-surface03);\n}\n\nz-tfoot z-tr,\ntable.z-table tfoot tr {\n border-bottom: calc(var(--z-table--cells-bottom-border-size)) solid var(--color-surface03) !important;\n}\n\nz-tr,\ntable.z-table tr {\n border-bottom: var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03);\n}\n\nz-td,\nz-th,\ntable.z-table td,\ntable.z-table th {\n padding: var(--z-table--cells-padding, calc(var(--space-unit) * 2));\n text-align: left;\n}\n\nz-th:not(:first-child),\nz-td:not(:first-child),\ntable.z-table th:not(:first-child),\ntable.z-table td:not(:first-child) {\n border-left: var(--z-table--cell-left-border, none);\n}\n\nz-table[bordered],\ntable.z-table.z-table-bordered {\n --z-table--cell-left-border: 1px solid var(--color-surface03);\n}\n\ntable.z-table-hover > tbody > tr:hover > td,\ntable.z-table-hover > tfoot > tr:hover > td {\n position: relative;\n background-color: var(--color-surface02);\n}\n\ntable.z-table-hover > tbody > tr:hover > td::after,\ntable.z-table-hover > tfoot > tr:hover > td::after {\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n bottom: 0;\n left: -1px;\n box-shadow:\n inset 0 var(--border-size-small) 0 var(--color-surface04),\n inset 0 calc(var(--border-size-small) * -1) 0 var(--color-surface04);\n content: \"\";\n}\n\ntable.z-table-hover > tbody > tr:hover > td:first-child::after,\ntable.z-table-hover > thead > tr:hover > th:first-child::after,\ntable.z-table-hover > tfoot > tr:hover > td:first-child::after {\n left: 0;\n}\n","import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n h,\n} 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 styleUrls: [\"styles.css\", \"../../css-components/z-table/styles.css\"],\n shadow: true,\n})\nexport class ZTr implements ComponentInterface {\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\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 const columns = cells.map((cell) => cell.colspan || 1).reduce((a, b) => a + b, 0);\n this.host.style.setProperty(\"--columns\", `${columns}`);\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 private onKeyDown(event: KeyboardEvent): void {\n if (!this.expandable) {\n return;\n }\n\n const active = document.activeElement;\n if (active !== this.host) {\n return;\n }\n\n if (event.key === \"Enter\" || event.key === \" \") {\n event.preventDefault();\n this.expanded = !this.expanded;\n this.expand.emit({expanded: this.expanded});\n }\n }\n\n componentWillLoad(): void {\n this.updateColumns();\n }\n\n render(): HTMLZTrElement {\n return (\n <Host\n role=\"row\"\n tabIndex={this.expandable ? 0 : undefined}\n expanded={this.expanded}\n onClick={this.onRowClick.bind(this)}\n onKeyDown={this.onKeyDown.bind(this)}\n >\n <div\n class=\"z-tr--focus-overlay\"\n aria-hidden=\"true\"\n ></div>\n <div class=\"z-tr--expand-button-container\">\n {this.expandable && (\n <button\n tabIndex={-1}\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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DY2I5wAY.js');
3
+ var index = require('./index-CZz7uP-M.js');
4
4
  var index$1 = require('./index-Cn7FFDHr.js');
5
5
 
6
6
  const stylesCss = () => `:host{font-family:var(--font-family-sans)}z-list-element{position:relative;display:block;padding-top:var(--space-unit)}z-list-element::before,z-list-element::after{position:absolute;z-index:100;top:0.125rem;left:-0.5rem;content:""}z-list z-list-element::before{width:var(--space-unit);height:calc(var(--space-unit) * 2);border-bottom:var(--border-size-small) solid var(--color-disabled01-icon);border-left:var(--border-size-small) solid var(--color-disabled01-icon)}z-list z-list-element::after{width:var(--space-unit);height:100%;border-left:var(--border-size-small) solid var(--color-disabled01-icon)}z-list z-list-element:last-child::after,z-list>z-list-element::before,z-list>z-list-element::after,z-list>z-list-group>z-list-element::before,z-list>z-list-group>z-list-element::after{display:none}z-list>div.children-node{padding-left:calc(var(--space-unit) * 2)}z-list-element>.list-element{z-index:100;display:flex;justify-content:space-between;padding:0;color:var(--color-default-text);font-size:var(--font-size-2);font-style:normal;font-weight:var(--font-rg);text-decoration:none}z-list-element>.list-element.link-clickable{color:var(--color-primary01)}z-list-element>.list-element.link-clickable:hover{text-decoration:underline}z-list-element>.list-element .item.ellipsis{overflow:hidden}z-list-element .list-element::after{position:absolute;top:0;right:-0.0625rem;display:block;width:100%;height:calc(var(--space-unit) * 5);content:"";transform:translateX(-100%)}.item-label{overflow:hidden;flex-grow:1;font-size:var(--font-size-2);font-style:normal;font-weight:var(--font-rg);letter-spacing:0.0032rem;line-height:1.25rem;text-overflow:ellipsis;white-space:nowrap}.item-label.bold-item{font-weight:var(--font-sb)}.item.ellipsis{display:flex;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.children-node>z-list-element{padding:0;padding-top:0.125;padding-left:calc(var(--space-unit) * 1.25)}.item-icon{margin-right:var(--space-unit)}.no-icon-label{padding-left:var(--space-unit)}.children-node>z-list-element.no-icon-elm{padding-left:0}z-list-element>.list-element:focus:focus-visible{position:relative;z-index:200;box-shadow:var(--shadow-focus-primary);outline:none}@media (max-width: 767px){z-list-element::before,z-list-element::after{top:0.1875rem}z-list z-list-element::before{height:calc(var(--space-unit) * 2.5)}.children-node>z-list-element{padding-top:var(--space-unit)}}`;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DY2I5wAY.js');
3
+ var index = require('./index-CZz7uP-M.js');
4
4
 
5
5
  const stylesCss = () => `:host{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:0 -1px -1px 0;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}`;
6
6
 
@@ -0,0 +1,79 @@
1
+ z-table,
2
+ table.z-table {
3
+ background-color: var(--color-surface01);
4
+
5
+ --z-table--cells-padding: calc(var(--space-unit) * 2);
6
+ }
7
+
8
+ table.z-table {
9
+ border-collapse: collapse;
10
+ }
11
+
12
+ z-thead,
13
+ table.z-table thead {
14
+ background-color: var(--color-background);
15
+
16
+ --z-table--cells-bottom-border-size: var(--border-size-medium);
17
+ }
18
+
19
+ z-tfoot,
20
+ table.z-table tfoot {
21
+ border-top: var(--border-size-medium) solid var(--color-surface03);
22
+ border-bottom: var(--border-size-medium) solid var(--color-surface03);
23
+ }
24
+
25
+ z-tfoot z-tr,
26
+ table.z-table tfoot tr {
27
+ border-bottom: calc(var(--z-table--cells-bottom-border-size)) solid var(--color-surface03) !important;
28
+ }
29
+
30
+ z-tr,
31
+ table.z-table tr {
32
+ border-bottom: var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03);
33
+ }
34
+
35
+ z-td,
36
+ z-th,
37
+ table.z-table td,
38
+ table.z-table th {
39
+ padding: var(--z-table--cells-padding, calc(var(--space-unit) * 2));
40
+ text-align: left;
41
+ }
42
+
43
+ z-th:not(:first-child),
44
+ z-td:not(:first-child),
45
+ table.z-table th:not(:first-child),
46
+ table.z-table td:not(:first-child) {
47
+ border-left: var(--z-table--cell-left-border, none);
48
+ }
49
+
50
+ z-table[bordered],
51
+ table.z-table.z-table-bordered {
52
+ --z-table--cell-left-border: 1px solid var(--color-surface03);
53
+ }
54
+
55
+ table.z-table-hover > tbody > tr:hover > td,
56
+ table.z-table-hover > tfoot > tr:hover > td {
57
+ position: relative;
58
+ background-color: var(--color-surface02);
59
+ }
60
+
61
+ table.z-table-hover > tbody > tr:hover > td::after,
62
+ table.z-table-hover > tfoot > tr:hover > td::after {
63
+ position: absolute;
64
+ z-index: 1;
65
+ top: 0;
66
+ right: 0;
67
+ bottom: 0;
68
+ left: -1px;
69
+ box-shadow:
70
+ inset 0 var(--border-size-small) 0 var(--color-surface04),
71
+ inset 0 calc(var(--border-size-small) * -1) 0 var(--color-surface04);
72
+ content: "";
73
+ }
74
+
75
+ table.z-table-hover > tbody > tr:hover > td:first-child::after,
76
+ table.z-table-hover > thead > tr:hover > th:first-child::after,
77
+ table.z-table-hover > tfoot > tr:hover > td:first-child::after {
78
+ left: 0;
79
+ }
@@ -3,7 +3,6 @@
3
3
  display: flex;
4
4
  max-width: 100%;
5
5
  align-items: center;
6
- padding: calc(var(--z-table--cells-padding, calc(var(--space-unit) * 2)));
7
6
  background-color: var(--color-surface01);
8
7
  gap: calc(var(--space-unit) * 2) var(--space-unit);
9
8
  }
@@ -42,18 +42,18 @@ export class ZTd {
42
42
  this.updateColspan();
43
43
  }
44
44
  render() {
45
- return (h(Host, { key: '1058d07bd54d368be4c3ac73bbcb44efd8a1705b', role: "cell", "menu-open": this.isMenuOpen }, h("div", { key: '3cd22ea20154c545d48ed73063feb9b1534df313', class: "cell--content" }, h("slot", { key: '6b14788ea5f25d84609bb9e5e60aa450507a44e6' }), this.showMenu && (h("div", { key: 'a35b449393363b0c36cb9baf93e930eb832eb7ec', class: "cell--menu-container prevent-expand" }, h("z-button", { key: 'ff31b6ad5a6c104f9c6e9ef565119d5f81d3f91a', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: this.onMenuButtonClick.bind(this) }), h("z-popover", { key: '919445e5e5d477795a6e21fa7d69c1974da6b05e', class: "cell-popover", ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: '637935f871e288248376025f899d2c2490dead9c', name: "contextual-menu" })))))));
45
+ return (h(Host, { key: '2c3552c5c30611595ac619e6ca3a1e93b3d37366', role: "cell", "menu-open": this.isMenuOpen }, h("div", { key: 'd13012a1f16aaa6ab44b4eea1dafa63cf1ebbd3a', class: "cell--content" }, h("slot", { key: 'b4571116c24bb99dc6ec76486fc948da89a5393b' }), this.showMenu && (h("div", { key: '6ebd3bfc1fcf8dce3afb91931309c4644efc2e49', class: "cell--menu-container prevent-expand" }, h("z-button", { key: '3d01c8956127276eb765c3a9f4aabb4ed710b404', variant: ButtonVariant.TERTIARY, icon: "contextual-menu", size: ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: this.onMenuButtonClick.bind(this) }), h("z-popover", { key: 'd04c06677e2e8efb5d80bfbfd7cc91c9cbff7231', class: "cell-popover", ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'c389c6fdf131aeef86eae687df9c2f7fb6fbc3be', name: "contextual-menu" })))))));
46
46
  }
47
47
  static get is() { return "z-td"; }
48
48
  static get encapsulation() { return "shadow"; }
49
49
  static get originalStyleUrls() {
50
50
  return {
51
- "$": ["../z-table-cells.css"]
51
+ "$": ["../z-table-cells.css", "../../../css-components/z-table/styles.css"]
52
52
  };
53
53
  }
54
54
  static get styleUrls() {
55
55
  return {
56
- "$": ["../z-table-cells.css"]
56
+ "$": ["../z-table-cells.css", "../../../css-components/z-table/styles.css"]
57
57
  };
58
58
  }
59
59
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/table/cells/z-td/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACvH,OAAO,EAAC,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAEnG;;;GAGG;AAMH,MAAM,OAAO,GAAG;IALhB;QAcE;;WAEG;QAEH,WAAM,GAAG,KAAK,CAAC;QAEf;;;;WAIG;QAEH,aAAQ,GAAwB,IAAI,CAAC;QAErC;;WAEG;QAEH,oBAAe,GAAqB,eAAe,CAAC,IAAI,CAAC;QAEzD;;WAEG;QAEH,eAAU,GAAG,KAA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AY,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe;wBAE9B,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC1B,CACR,CACP,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, 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: \"../z-table-cells.css\",\n shadow: true,\n})\nexport class ZTd implements ComponentInterface {\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"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/table/cells/z-td/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACvH,OAAO,EAAC,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAEnG;;;GAGG;AAMH,MAAM,OAAO,GAAG;IALhB;QAcE;;WAEG;QAEH,WAAM,GAAG,KAAK,CAAC;QAEf;;;;WAIG;QAEH,aAAQ,GAAwB,IAAI,CAAC;QAErC;;WAEG;QAEH,oBAAe,GAAqB,eAAe,CAAC,IAAI,CAAC;QAEzD;;WAEG;QAEH,eAAU,GAAG,KAAK,CA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AAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe;wBAE9B,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC1B,CACR,CACP,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, 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 styleUrls: [\"../z-table-cells.css\", \"../../../css-components/z-table/styles.css\"],\n shadow: true,\n})\nexport class ZTd implements ComponentInterface {\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"]}
@@ -70,18 +70,18 @@ export class ZTh {
70
70
  this.updateColspan();
71
71
  }
72
72
  render() {
73
- return (h(Host, { key: '029656c92d8e6abda98ecb1c1f8f37df5561993b', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, h("div", { key: 'a00a37619da7fba5ce5f0ff00644c321f6324d3d', class: "cell--content" }, h("slot", { key: '427c778843968776001f3a8486df91a32a51a620' }), this.showSorting && (h("button", { key: '77d2f3841e1398e9df475d91445a9ccd52133335', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: '3e29de562c699e7ea2b1acab0273d759f80f5b1f', name: this.sortDirection === SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: 'a6fe1bc8e02e9f5238835c57f32a2a17b5f3e5a2', class: "cell--menu-container" }, h("z-button", { key: '7df03bf2a1411aa5357a9f31f2812572a9e564df', 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: '73ecdad7bc49295072fa2163e6c94413e269755e', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'c5cb377cc2304e37f508589f818fb97037d9935d', name: "contextual-menu" })))))));
73
+ return (h(Host, { key: 'aef115e04b8a8c37c749a568bcb24250e062008b', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, h("div", { key: '5b78767c1d65440363c06d5e4b7137598e74d8b4', class: "cell--content" }, h("slot", { key: '340210db9182785b89ed01a26d6dc60558aa9f4f' }), this.showSorting && (h("button", { key: '2c6f42cbf3a2c1d37af04182731503accfe67362', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: 'ad73a2838da75772e84e431c36256e77bdf39157', name: this.sortDirection === SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: 'd4c23d3a5b05ccea94a03efa6b10efc65e4a0cf4', class: "cell--menu-container" }, h("z-button", { key: 'fb0930c50cd3ac363e764ded3d7be227678a5d2d', 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: 'b720485c31c2070d77e33bceacd5be582516ae38', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: '7372fa0d1ca9773ebbf8b6c8ec581133967aafdf', name: "contextual-menu" })))))));
74
74
  }
75
75
  static get is() { return "z-th"; }
76
76
  static get encapsulation() { return "shadow"; }
77
77
  static get originalStyleUrls() {
78
78
  return {
79
- "$": ["../z-table-cells.css", "styles.css"]
79
+ "$": ["../z-table-cells.css", "styles.css", "../../../css-components/z-table/styles.css"]
80
80
  };
81
81
  }
82
82
  static get styleUrls() {
83
83
  return {
84
- "$": ["../z-table-cells.css", "styles.css"]
84
+ "$": ["../z-table-cells.css", "styles.css", "../../../css-components/z-table/styles.css"]
85
85
  };
86
86
  }
87
87
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/table/cells/z-th/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACvH,OAAO,EAAC,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAElH;;;;GAIG;AAMH,MAAM,OAAO,GAAG;IALhB;QAcE;;;;WAIG;QAEH,aAAQ,GAAwB,IAAI,CAAC;QAErC;;;;WAIG;QAEH,gBAAW,GAAwB,IAAI,CAAC;QAExC;;WAEG;QAEH,WAAM,GAAG,KAAK,CAAC;QAQf;;WAEG;QAEH,WAAM,GAAmB,KAAK,CAAC;QAE/B;;WAEG;QAEH,oBAAe,GAAG,eAAe,CAAC,IAAI,CAAC;QAEvC;;WAEG;QAEH,eAAU,GAAG,KAAK,CAAC;KAqGpB;IAvFC;;OAEG;IACH,IAAY,iBAAiB;QAC3B,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,aAAa,KAAK,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC;IAC/E,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mBAAmB,EACzF,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACV,CACK,CACV;gBACA,IAAI,CAAC,QAAQ,IAAI,CAChB,4DAAK,KAAK,EAAC,sBAAsB;oBAC/B,iEACE,OAAO,EAAE,aAAa,CAAC,QAAQ,EAC/B,IAAI,EAAC,iBAAiB,EACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,EAAiB,CAAC,EACnD,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAC3D;oBACF,kEACE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,EAAyB,CAAC,EACzD,MAAM,EAAE,IAAI,CAAC,WAAW,EACxB,YAAY,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe;wBAE9B,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC1B,CACR,CACP,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, 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 styleUrls: [\"../z-table-cells.css\", \"styles.css\"],\n shadow: true,\n})\nexport class ZTh implements ComponentInterface {\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"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/table/cells/z-th/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACvH,OAAO,EAAC,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAElH;;;;GAIG;AAMH,MAAM,OAAO,GAAG;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IAAI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe;wBAE9B,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC1B,CACR,CACP,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, 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 styleUrls: [\"../z-table-cells.css\", \"styles.css\", \"../../../css-components/z-table/styles.css\"],\n shadow: true,\n})\nexport class ZTh implements ComponentInterface {\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"]}
@@ -5,10 +5,6 @@
5
5
  font-weight: var(--font-sb);
6
6
  }
7
7
 
8
- .cell--content {
9
- padding: var(--z-table--cells-padding, calc(var(--space-unit) * 2));
10
- }
11
-
12
8
  :host([show-sorting]) .cell--content {
13
9
  column-gap: var(--space-unit);
14
10
  }