@zanichelli/albe-web-components 20.0.0 → 20.0.2-RC

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 (508) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/web-components-library.cjs.js +1 -1
  4. package/dist/cjs/z-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  6. package/dist/cjs/z-app-header_12.cjs.entry.js +44 -19
  7. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  8. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/z-avatar.cjs.entry.js +2 -2
  10. package/dist/cjs/z-book-card-app.cjs.entry.js +1 -1
  11. package/dist/cjs/z-book-card.cjs.entry.js +10 -3
  12. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  13. package/dist/cjs/z-book-cover.cjs.entry.js +1 -1
  14. package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
  15. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  16. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  17. package/dist/cjs/z-color-picker.cjs.entry.js +1 -1
  18. package/dist/cjs/z-combobox.cjs.entry.js +6 -4
  19. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -1
  20. package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
  21. package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
  22. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +6 -6
  23. package/dist/cjs/z-file.cjs.entry.js +1 -1
  24. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  25. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  26. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  27. package/dist/cjs/z-input-range.cjs.entry.js +1 -1
  28. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  29. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  30. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
  31. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  32. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  33. package/dist/cjs/z-range-picker.cjs.entry.js +3 -3
  34. package/dist/cjs/z-select.cjs.entry.js +1 -1
  35. package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
  36. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  37. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  38. package/dist/cjs/z-table.cjs.entry.js +1 -1
  39. package/dist/cjs/z-table.cjs.entry.js.map +1 -1
  40. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  41. package/dist/cjs/z-tbody.cjs.entry.js.map +1 -1
  42. package/dist/cjs/z-td.cjs.entry.js +1 -1
  43. package/dist/cjs/z-td.cjs.entry.js.map +1 -1
  44. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  45. package/dist/cjs/z-tfoot.cjs.entry.js.map +1 -1
  46. package/dist/cjs/z-th.cjs.entry.js +1 -1
  47. package/dist/cjs/z-th.cjs.entry.js.map +1 -1
  48. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  49. package/dist/cjs/z-thead.cjs.entry.js.map +1 -1
  50. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  51. package/dist/cjs/z-toast-notification.cjs.entry.js +3 -3
  52. package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
  53. package/dist/cjs/z-tool.cjs.entry.js +2 -2
  54. package/dist/cjs/z-toolbar.cjs.entry.js +1 -1
  55. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  56. package/dist/cjs/z-tr.cjs.entry.js +1 -1
  57. package/dist/cjs/z-tr.cjs.entry.js.map +1 -1
  58. package/dist/cjs/z-tree-list.cjs.entry.js +1 -1
  59. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  60. package/dist/collection/collection-manifest.json +7 -7
  61. package/dist/collection/components/book-card/z-book-card/index.js +10 -3
  62. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -1
  63. package/dist/collection/components/book-card/z-book-card/styles.css +3 -7
  64. package/dist/collection/components/book-card/z-book-card-app/index.js +1 -1
  65. package/dist/collection/components/date-picker/z-date-picker/index.js +1 -1
  66. package/dist/collection/components/date-picker/z-range-picker/index.js +3 -3
  67. package/dist/collection/components/{table → deprecated/table}/cells/z-td/index.js +6 -6
  68. package/dist/collection/components/deprecated/table/cells/z-td/index.js.map +1 -0
  69. package/dist/collection/components/{table → deprecated/table}/cells/z-th/index.js +8 -8
  70. package/dist/collection/components/deprecated/table/cells/z-th/index.js.map +1 -0
  71. package/dist/collection/components/{table → deprecated/table}/z-table/index.js +3 -3
  72. package/dist/collection/components/deprecated/table/z-table/index.js.map +1 -0
  73. package/dist/collection/components/{table → deprecated/table}/z-tbody/index.js +3 -3
  74. package/dist/collection/components/deprecated/table/z-tbody/index.js.map +1 -0
  75. package/dist/collection/components/{table → deprecated/table}/z-tfoot/index.js +3 -3
  76. package/dist/collection/components/deprecated/table/z-tfoot/index.js.map +1 -0
  77. package/dist/collection/components/{table → deprecated/table}/z-thead/index.js +3 -3
  78. package/dist/collection/components/deprecated/table/z-thead/index.js.map +1 -0
  79. package/dist/collection/components/{table → deprecated/table}/z-tr/index.js +4 -4
  80. package/dist/collection/components/deprecated/table/z-tr/index.js.map +1 -0
  81. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
  82. package/dist/collection/components/file-upload/z-file/index.js +1 -1
  83. package/dist/collection/components/list/z-list/index.js +1 -1
  84. package/dist/collection/components/list/z-list-element/index.js +1 -1
  85. package/dist/collection/components/list/z-list-group/index.js +2 -2
  86. package/dist/collection/components/list/z-tree-list/index.js +1 -1
  87. package/dist/collection/components/z-accordion/index.js +1 -1
  88. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  89. package/dist/collection/components/z-app-header/index.js +1 -1
  90. package/dist/collection/components/z-aria-alert/index.js +1 -1
  91. package/dist/collection/components/z-avatar/index.js +2 -2
  92. package/dist/collection/components/z-book-cover/index.js +1 -1
  93. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  94. package/dist/collection/components/z-button-sort/index.js +1 -1
  95. package/dist/collection/components/z-chip/index.js +2 -2
  96. package/dist/collection/components/z-color-picker/index.js +1 -1
  97. package/dist/collection/components/z-combobox/index.js +5 -3
  98. package/dist/collection/components/z-combobox/index.js.map +1 -1
  99. package/dist/collection/components/z-combobox/styles.css +1 -1
  100. package/dist/collection/components/z-cover-hero/index.js +2 -2
  101. package/dist/collection/components/z-divider/index.js +1 -1
  102. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  103. package/dist/collection/components/z-icon/index.js +1 -1
  104. package/dist/collection/components/z-info-box/index.js +1 -1
  105. package/dist/collection/components/z-info-reveal/index.js +1 -1
  106. package/dist/collection/components/z-input/index.js +45 -2
  107. package/dist/collection/components/z-input/index.js.map +1 -1
  108. package/dist/collection/components/z-input/styles-checkbox-radio.css +2 -2
  109. package/dist/collection/components/z-input-message/index.js +1 -1
  110. package/dist/collection/components/z-input-range/index.js +1 -1
  111. package/dist/collection/components/z-logo/index.js +1 -1
  112. package/dist/collection/components/z-menu-section/index.js +1 -1
  113. package/dist/collection/components/z-modal/index.js +4 -4
  114. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  115. package/dist/collection/components/z-notification/index.js +1 -1
  116. package/dist/collection/components/z-offcanvas/index.js +2 -2
  117. package/dist/collection/components/z-popover/index.js +1 -1
  118. package/dist/collection/components/z-searchbar/index.js +7 -4
  119. package/dist/collection/components/z-searchbar/index.js.map +1 -1
  120. package/dist/collection/components/z-select/index.js +1 -1
  121. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  122. package/dist/collection/components/z-stepper/index.js +1 -1
  123. package/dist/collection/components/z-stepper-item/index.js +1 -1
  124. package/dist/collection/components/z-tag/index.js +2 -2
  125. package/dist/collection/components/z-toast-notification/index.js +3 -3
  126. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  127. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  128. package/dist/collection/components/z-tool/index.js +2 -2
  129. package/dist/collection/components/z-toolbar/index.js +1 -1
  130. package/dist/collection/components/z-tooltip/index.js +1 -1
  131. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  132. package/dist/components/index.d.ts +7 -7
  133. package/dist/components/index10.js +1 -1
  134. package/dist/components/index11.js +1 -1
  135. package/dist/components/index12.js +1 -1
  136. package/dist/components/index12.js.map +1 -1
  137. package/dist/components/index13.js +1 -1
  138. package/dist/components/index14.js +1 -1
  139. package/dist/components/index15.js +1 -1
  140. package/dist/components/index16.js +1 -1
  141. package/dist/components/index17.js +1 -1
  142. package/dist/components/index18.js +1 -1
  143. package/dist/components/index19.js +1 -1
  144. package/dist/components/index20.js +1 -1
  145. package/dist/components/index21.js +1 -1
  146. package/dist/components/index3.js +1 -1
  147. package/dist/components/index5.js +1 -1
  148. package/dist/components/index6.js +1 -1
  149. package/dist/components/index6.js.map +1 -1
  150. package/dist/components/index7.js +1 -1
  151. package/dist/components/index8.js +1 -1
  152. package/dist/components/index9.js +1 -1
  153. package/dist/components/z-accordion.js +1 -1
  154. package/dist/components/z-anchor-navigation.js +1 -1
  155. package/dist/components/z-app-header.js +1 -1
  156. package/dist/components/z-aria-alert.js +1 -1
  157. package/dist/components/z-avatar.js +1 -1
  158. package/dist/components/z-book-card-app.js +1 -1
  159. package/dist/components/z-book-card.js +1 -1
  160. package/dist/components/z-book-card.js.map +1 -1
  161. package/dist/components/z-breadcrumb.js +1 -1
  162. package/dist/components/z-button-sort.js +1 -1
  163. package/dist/components/z-color-picker.js +1 -1
  164. package/dist/components/z-combobox.js +1 -1
  165. package/dist/components/z-combobox.js.map +1 -1
  166. package/dist/components/z-cover-hero.js +1 -1
  167. package/dist/components/z-date-picker.js +1 -1
  168. package/dist/components/z-file.js +1 -1
  169. package/dist/components/z-info-box.js +1 -1
  170. package/dist/components/z-input-range.js +1 -1
  171. package/dist/components/z-logo.js +1 -1
  172. package/dist/components/z-menu-section.js +1 -1
  173. package/dist/components/z-navigation-tabs.js +1 -1
  174. package/dist/components/z-notification.js +1 -1
  175. package/dist/components/z-range-picker.js +1 -1
  176. package/dist/components/z-select.js +1 -1
  177. package/dist/components/z-skip-to-content.js +1 -1
  178. package/dist/components/z-stepper-item.js +1 -1
  179. package/dist/components/z-stepper.js +1 -1
  180. package/dist/components/z-table.js +1 -1
  181. package/dist/components/z-table.js.map +1 -1
  182. package/dist/components/z-tbody.js +1 -1
  183. package/dist/components/z-tbody.js.map +1 -1
  184. package/dist/components/z-td.js +1 -1
  185. package/dist/components/z-td.js.map +1 -1
  186. package/dist/components/z-tfoot.js +1 -1
  187. package/dist/components/z-tfoot.js.map +1 -1
  188. package/dist/components/z-th.js +1 -1
  189. package/dist/components/z-th.js.map +1 -1
  190. package/dist/components/z-thead.js +1 -1
  191. package/dist/components/z-thead.js.map +1 -1
  192. package/dist/components/z-toast-notification-list.js +1 -1
  193. package/dist/components/z-toast-notification.js +3 -3
  194. package/dist/components/z-toggle-switch.js +1 -1
  195. package/dist/components/z-tool.js +1 -1
  196. package/dist/components/z-toolbar.js +1 -1
  197. package/dist/components/z-tr.js +1 -1
  198. package/dist/components/z-tr.js.map +1 -1
  199. package/dist/components/z-tree-list.js +1 -1
  200. package/dist/components/z-visually-hidden.js +1 -1
  201. package/dist/esm/loader.js +1 -1
  202. package/dist/esm/web-components-library.js +1 -1
  203. package/dist/esm/z-accordion.entry.js +1 -1
  204. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  205. package/dist/esm/z-app-header_12.entry.js +44 -19
  206. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  207. package/dist/esm/z-aria-alert.entry.js +1 -1
  208. package/dist/esm/z-avatar.entry.js +2 -2
  209. package/dist/esm/z-book-card-app.entry.js +1 -1
  210. package/dist/esm/z-book-card.entry.js +10 -3
  211. package/dist/esm/z-book-card.entry.js.map +1 -1
  212. package/dist/esm/z-book-cover.entry.js +1 -1
  213. package/dist/esm/z-breadcrumb.entry.js +2 -2
  214. package/dist/esm/z-button-sort.entry.js +1 -1
  215. package/dist/esm/z-chip.entry.js +2 -2
  216. package/dist/esm/z-color-picker.entry.js +1 -1
  217. package/dist/esm/z-combobox.entry.js +6 -4
  218. package/dist/esm/z-combobox.entry.js.map +1 -1
  219. package/dist/esm/z-cover-hero.entry.js +2 -2
  220. package/dist/esm/z-date-picker.entry.js +1 -1
  221. package/dist/esm/z-dragdrop-area_2.entry.js +6 -6
  222. package/dist/esm/z-file.entry.js +1 -1
  223. package/dist/esm/z-ghost-loading.entry.js +1 -1
  224. package/dist/esm/z-info-box.entry.js +1 -1
  225. package/dist/esm/z-info-reveal.entry.js +1 -1
  226. package/dist/esm/z-input-range.entry.js +1 -1
  227. package/dist/esm/z-logo.entry.js +1 -1
  228. package/dist/esm/z-menu-section.entry.js +1 -1
  229. package/dist/esm/z-navigation-tabs.entry.js +2 -2
  230. package/dist/esm/z-notification.entry.js +1 -1
  231. package/dist/esm/z-popover.entry.js +1 -1
  232. package/dist/esm/z-range-picker.entry.js +3 -3
  233. package/dist/esm/z-select.entry.js +1 -1
  234. package/dist/esm/z-skip-to-content.entry.js +1 -1
  235. package/dist/esm/z-stepper-item.entry.js +1 -1
  236. package/dist/esm/z-stepper.entry.js +1 -1
  237. package/dist/esm/z-table.entry.js +1 -1
  238. package/dist/esm/z-table.entry.js.map +1 -1
  239. package/dist/esm/z-tbody.entry.js +1 -1
  240. package/dist/esm/z-tbody.entry.js.map +1 -1
  241. package/dist/esm/z-td.entry.js +1 -1
  242. package/dist/esm/z-td.entry.js.map +1 -1
  243. package/dist/esm/z-tfoot.entry.js +1 -1
  244. package/dist/esm/z-tfoot.entry.js.map +1 -1
  245. package/dist/esm/z-th.entry.js +1 -1
  246. package/dist/esm/z-th.entry.js.map +1 -1
  247. package/dist/esm/z-thead.entry.js +1 -1
  248. package/dist/esm/z-thead.entry.js.map +1 -1
  249. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  250. package/dist/esm/z-toast-notification.entry.js +3 -3
  251. package/dist/esm/z-toggle-switch.entry.js +3 -3
  252. package/dist/esm/z-tool.entry.js +2 -2
  253. package/dist/esm/z-toolbar.entry.js +1 -1
  254. package/dist/esm/z-tooltip.entry.js +1 -1
  255. package/dist/esm/z-tr.entry.js +1 -1
  256. package/dist/esm/z-tr.entry.js.map +1 -1
  257. package/dist/esm/z-tree-list.entry.js +1 -1
  258. package/dist/esm/z-visually-hidden.entry.js +1 -1
  259. package/dist/types/components/book-card/z-book-card/index.d.ts +5 -1
  260. package/dist/types/components/{table → deprecated/table}/cells/z-td/index.d.ts +2 -2
  261. package/dist/types/components/{table → deprecated/table}/cells/z-th/index.d.ts +2 -2
  262. package/dist/types/components/{table → deprecated/table}/z-table/index.d.ts +1 -1
  263. package/dist/types/components/{table → deprecated/table}/z-tbody/index.d.ts +1 -1
  264. package/dist/types/components/{table → deprecated/table}/z-tfoot/index.d.ts +1 -1
  265. package/dist/types/components/{table → deprecated/table}/z-thead/index.d.ts +1 -1
  266. package/dist/types/components/{table → deprecated/table}/z-tr/index.d.ts +1 -1
  267. package/dist/types/components/z-input/index.d.ts +4 -0
  268. package/dist/types/components.d.ts +13 -2
  269. package/dist/web-components-library/{p-32bc925a.entry.js → p-059963b6.entry.js} +2 -2
  270. package/{www/build/p-33d993fe.entry.js → dist/web-components-library/p-06a196fb.entry.js} +2 -2
  271. package/dist/web-components-library/{p-8c3a7bc1.entry.js → p-08384d53.entry.js} +2 -2
  272. package/dist/web-components-library/{p-3748979c.entry.js → p-0fb73edd.entry.js} +2 -2
  273. package/dist/web-components-library/p-0fb73edd.entry.js.map +1 -0
  274. package/dist/web-components-library/p-12305e05.entry.js +2 -0
  275. package/dist/web-components-library/p-12305e05.entry.js.map +1 -0
  276. package/dist/web-components-library/{p-dfb0e8d8.entry.js → p-1b562386.entry.js} +2 -2
  277. package/dist/web-components-library/p-1fad41b2.entry.js +2 -0
  278. package/dist/web-components-library/p-1fad41b2.entry.js.map +1 -0
  279. package/dist/web-components-library/{p-a52b3dd1.entry.js → p-2780f6d9.entry.js} +2 -2
  280. package/dist/web-components-library/p-2780f6d9.entry.js.map +1 -0
  281. package/{www/build/p-7dbd0e3e.entry.js → dist/web-components-library/p-2a74e691.entry.js} +2 -2
  282. package/dist/web-components-library/{p-1efed23b.entry.js → p-2e4db422.entry.js} +2 -2
  283. package/dist/web-components-library/{p-4f6c86ce.entry.js → p-2eaf4b9b.entry.js} +2 -2
  284. package/dist/web-components-library/{p-6ea349f6.entry.js → p-350ea24f.entry.js} +2 -2
  285. package/dist/web-components-library/{p-df5eeb75.entry.js → p-3574a17e.entry.js} +2 -2
  286. package/{www/build/p-efe489a5.entry.js → dist/web-components-library/p-41966ee6.entry.js} +2 -2
  287. package/{www/build/p-ccedd440.entry.js → dist/web-components-library/p-42cfc136.entry.js} +2 -2
  288. package/dist/web-components-library/p-42cfc136.entry.js.map +1 -0
  289. package/{www/build/p-89b30fce.entry.js → dist/web-components-library/p-47d4000c.entry.js} +2 -2
  290. package/dist/web-components-library/p-55693913.entry.js +2 -0
  291. package/dist/web-components-library/p-55693913.entry.js.map +1 -0
  292. package/dist/web-components-library/{p-317cbb00.entry.js → p-55c3310f.entry.js} +2 -2
  293. package/dist/web-components-library/{p-8fb3354e.entry.js → p-5ae84959.entry.js} +2 -2
  294. package/dist/web-components-library/{p-e1ab33fe.entry.js → p-633d18e9.entry.js} +2 -2
  295. package/dist/web-components-library/{p-b4e0cd5c.entry.js → p-668b9254.entry.js} +2 -2
  296. package/{www/build/p-bc9237eb.entry.js → dist/web-components-library/p-6af7c34f.entry.js} +2 -2
  297. package/{www/build/p-d6441232.entry.js → dist/web-components-library/p-781d96de.entry.js} +2 -2
  298. package/dist/web-components-library/{p-1e71577c.entry.js → p-81c949eb.entry.js} +2 -2
  299. package/dist/web-components-library/{p-b7620e80.entry.js → p-87be3ccc.entry.js} +2 -2
  300. package/dist/web-components-library/p-87be3ccc.entry.js.map +1 -0
  301. package/{www/build/p-a5187022.entry.js → dist/web-components-library/p-886382a7.entry.js} +2 -2
  302. package/{www/build/p-9ac57635.entry.js → dist/web-components-library/p-95af0156.entry.js} +2 -2
  303. package/{www/build/p-127a6dda.entry.js → dist/web-components-library/p-a4f5e7e9.entry.js} +2 -2
  304. package/dist/web-components-library/{p-121f224a.entry.js → p-baa35a6e.entry.js} +2 -2
  305. package/dist/web-components-library/{p-02fb0bf9.entry.js → p-bc8eec12.entry.js} +2 -2
  306. package/{www/build/p-7f37e2a2.entry.js → dist/web-components-library/p-bdd9c781.entry.js} +2 -2
  307. package/dist/web-components-library/{p-6de548e3.entry.js → p-c15267bc.entry.js} +2 -2
  308. package/dist/web-components-library/{p-303fe1d0.entry.js → p-c983da75.entry.js} +2 -2
  309. package/dist/web-components-library/p-ce98069e.entry.js +2 -0
  310. package/{www/build/p-33e973b3.entry.js.map → dist/web-components-library/p-ce98069e.entry.js.map} +1 -1
  311. package/dist/web-components-library/p-d4e212cc.entry.js +2 -0
  312. package/{www/build/p-657802ce.entry.js.map → dist/web-components-library/p-d4e212cc.entry.js.map} +1 -1
  313. package/{www/build/p-904c7fdd.entry.js → dist/web-components-library/p-d4eb997c.entry.js} +2 -2
  314. package/dist/web-components-library/p-d4eb997c.entry.js.map +1 -0
  315. package/dist/web-components-library/{p-2bd1326c.entry.js → p-deed5153.entry.js} +2 -2
  316. package/dist/web-components-library/p-e160889a.entry.js +2 -0
  317. package/dist/web-components-library/{p-8f4fcd01.entry.js → p-e1d1445c.entry.js} +2 -2
  318. package/{www/build/p-1ef66142.entry.js → dist/web-components-library/p-e2cdf19c.entry.js} +2 -2
  319. package/dist/web-components-library/p-e2cdf19c.entry.js.map +1 -0
  320. package/dist/web-components-library/p-e972b9c2.entry.js +2 -0
  321. package/{www/build/p-222898cd.entry.js → dist/web-components-library/p-ea96790b.entry.js} +3 -3
  322. package/dist/web-components-library/{p-2bebbd04.entry.js → p-ee5ff565.entry.js} +2 -2
  323. package/dist/web-components-library/{p-51ebf661.entry.js → p-eea18ea6.entry.js} +2 -2
  324. package/dist/web-components-library/p-eea18ea6.entry.js.map +1 -0
  325. package/dist/web-components-library/p-f7e11eab.entry.js +2 -0
  326. package/dist/web-components-library/{p-067411f0.entry.js → p-fdafba48.entry.js} +2 -2
  327. package/dist/web-components-library/web-components-library.esm.js +1 -1
  328. package/package.json +9 -8
  329. package/www/build/{p-32bc925a.entry.js → p-059963b6.entry.js} +2 -2
  330. package/{dist/web-components-library/p-33d993fe.entry.js → www/build/p-06a196fb.entry.js} +2 -2
  331. package/www/build/{p-8c3a7bc1.entry.js → p-08384d53.entry.js} +2 -2
  332. package/www/build/{p-3748979c.entry.js → p-0fb73edd.entry.js} +2 -2
  333. package/www/build/p-0fb73edd.entry.js.map +1 -0
  334. package/www/build/p-12305e05.entry.js +2 -0
  335. package/www/build/p-12305e05.entry.js.map +1 -0
  336. package/www/build/{p-dfb0e8d8.entry.js → p-1b562386.entry.js} +2 -2
  337. package/www/build/p-1fad41b2.entry.js +2 -0
  338. package/www/build/p-1fad41b2.entry.js.map +1 -0
  339. package/www/build/{p-a52b3dd1.entry.js → p-2780f6d9.entry.js} +2 -2
  340. package/www/build/p-2780f6d9.entry.js.map +1 -0
  341. package/{dist/web-components-library/p-7dbd0e3e.entry.js → www/build/p-2a74e691.entry.js} +2 -2
  342. package/www/build/{p-1efed23b.entry.js → p-2e4db422.entry.js} +2 -2
  343. package/www/build/{p-4f6c86ce.entry.js → p-2eaf4b9b.entry.js} +2 -2
  344. package/www/build/{p-6ea349f6.entry.js → p-350ea24f.entry.js} +2 -2
  345. package/www/build/{p-df5eeb75.entry.js → p-3574a17e.entry.js} +2 -2
  346. package/{dist/web-components-library/p-efe489a5.entry.js → www/build/p-41966ee6.entry.js} +2 -2
  347. package/{dist/web-components-library/p-ccedd440.entry.js → www/build/p-42cfc136.entry.js} +2 -2
  348. package/www/build/p-42cfc136.entry.js.map +1 -0
  349. package/{dist/web-components-library/p-89b30fce.entry.js → www/build/p-47d4000c.entry.js} +2 -2
  350. package/www/build/p-55693913.entry.js +2 -0
  351. package/www/build/p-55693913.entry.js.map +1 -0
  352. package/www/build/{p-317cbb00.entry.js → p-55c3310f.entry.js} +2 -2
  353. package/www/build/{p-8fb3354e.entry.js → p-5ae84959.entry.js} +2 -2
  354. package/www/build/{p-e1ab33fe.entry.js → p-633d18e9.entry.js} +2 -2
  355. package/www/build/{p-b4e0cd5c.entry.js → p-668b9254.entry.js} +2 -2
  356. package/{dist/web-components-library/p-bc9237eb.entry.js → www/build/p-6af7c34f.entry.js} +2 -2
  357. package/{dist/web-components-library/p-d6441232.entry.js → www/build/p-781d96de.entry.js} +2 -2
  358. package/www/build/{p-1e71577c.entry.js → p-81c949eb.entry.js} +2 -2
  359. package/www/build/{p-b7620e80.entry.js → p-87be3ccc.entry.js} +2 -2
  360. package/www/build/p-87be3ccc.entry.js.map +1 -0
  361. package/{dist/web-components-library/p-a5187022.entry.js → www/build/p-886382a7.entry.js} +2 -2
  362. package/{dist/web-components-library/p-9ac57635.entry.js → www/build/p-95af0156.entry.js} +2 -2
  363. package/www/build/p-9a93e186.js +2 -0
  364. package/{dist/web-components-library/p-127a6dda.entry.js → www/build/p-a4f5e7e9.entry.js} +2 -2
  365. package/www/build/{p-121f224a.entry.js → p-baa35a6e.entry.js} +2 -2
  366. package/www/build/{p-02fb0bf9.entry.js → p-bc8eec12.entry.js} +2 -2
  367. package/{dist/web-components-library/p-7f37e2a2.entry.js → www/build/p-bdd9c781.entry.js} +2 -2
  368. package/www/build/{p-6de548e3.entry.js → p-c15267bc.entry.js} +2 -2
  369. package/www/build/{p-303fe1d0.entry.js → p-c983da75.entry.js} +2 -2
  370. package/www/build/p-ce98069e.entry.js +2 -0
  371. package/{dist/web-components-library/p-33e973b3.entry.js.map → www/build/p-ce98069e.entry.js.map} +1 -1
  372. package/www/build/p-d4e212cc.entry.js +2 -0
  373. package/{dist/web-components-library/p-657802ce.entry.js.map → www/build/p-d4e212cc.entry.js.map} +1 -1
  374. package/{dist/web-components-library/p-904c7fdd.entry.js → www/build/p-d4eb997c.entry.js} +2 -2
  375. package/www/build/p-d4eb997c.entry.js.map +1 -0
  376. package/www/build/{p-2bd1326c.entry.js → p-deed5153.entry.js} +2 -2
  377. package/www/build/p-e160889a.entry.js +2 -0
  378. package/www/build/{p-8f4fcd01.entry.js → p-e1d1445c.entry.js} +2 -2
  379. package/{dist/web-components-library/p-1ef66142.entry.js → www/build/p-e2cdf19c.entry.js} +2 -2
  380. package/www/build/p-e2cdf19c.entry.js.map +1 -0
  381. package/www/build/p-e972b9c2.entry.js +2 -0
  382. package/{dist/web-components-library/p-222898cd.entry.js → www/build/p-ea96790b.entry.js} +3 -3
  383. package/www/build/{p-2bebbd04.entry.js → p-ee5ff565.entry.js} +2 -2
  384. package/www/build/{p-51ebf661.entry.js → p-eea18ea6.entry.js} +2 -2
  385. package/www/build/p-eea18ea6.entry.js.map +1 -0
  386. package/www/build/p-f7e11eab.entry.js +2 -0
  387. package/www/build/{p-067411f0.entry.js → p-fdafba48.entry.js} +2 -2
  388. package/www/build/web-components-library.esm.js +1 -1
  389. package/www/index.html +1 -1
  390. package/dist/collection/components/table/cells/z-td/index.js.map +0 -1
  391. package/dist/collection/components/table/cells/z-th/index.js.map +0 -1
  392. package/dist/collection/components/table/z-table/index.js.map +0 -1
  393. package/dist/collection/components/table/z-tbody/index.js.map +0 -1
  394. package/dist/collection/components/table/z-tfoot/index.js.map +0 -1
  395. package/dist/collection/components/table/z-thead/index.js.map +0 -1
  396. package/dist/collection/components/table/z-tr/index.js.map +0 -1
  397. package/dist/web-components-library/p-1ef66142.entry.js.map +0 -1
  398. package/dist/web-components-library/p-33e973b3.entry.js +0 -2
  399. package/dist/web-components-library/p-3748979c.entry.js.map +0 -1
  400. package/dist/web-components-library/p-51ebf661.entry.js.map +0 -1
  401. package/dist/web-components-library/p-53c51bf4.entry.js +0 -2
  402. package/dist/web-components-library/p-53c51bf4.entry.js.map +0 -1
  403. package/dist/web-components-library/p-5a43af47.entry.js +0 -2
  404. package/dist/web-components-library/p-5a43af47.entry.js.map +0 -1
  405. package/dist/web-components-library/p-657802ce.entry.js +0 -2
  406. package/dist/web-components-library/p-8b3257b4.entry.js +0 -2
  407. package/dist/web-components-library/p-8d2704ee.entry.js +0 -2
  408. package/dist/web-components-library/p-8d2704ee.entry.js.map +0 -1
  409. package/dist/web-components-library/p-904c7fdd.entry.js.map +0 -1
  410. package/dist/web-components-library/p-a52b3dd1.entry.js.map +0 -1
  411. package/dist/web-components-library/p-a8f43afd.entry.js +0 -2
  412. package/dist/web-components-library/p-b7620e80.entry.js.map +0 -1
  413. package/dist/web-components-library/p-c217c65c.entry.js +0 -2
  414. package/dist/web-components-library/p-ccedd440.entry.js.map +0 -1
  415. package/www/build/p-1ef66142.entry.js.map +0 -1
  416. package/www/build/p-33e973b3.entry.js +0 -2
  417. package/www/build/p-3748979c.entry.js.map +0 -1
  418. package/www/build/p-51ebf661.entry.js.map +0 -1
  419. package/www/build/p-53c51bf4.entry.js +0 -2
  420. package/www/build/p-53c51bf4.entry.js.map +0 -1
  421. package/www/build/p-5a1df5b1.js +0 -2
  422. package/www/build/p-5a43af47.entry.js +0 -2
  423. package/www/build/p-5a43af47.entry.js.map +0 -1
  424. package/www/build/p-657802ce.entry.js +0 -2
  425. package/www/build/p-8b3257b4.entry.js +0 -2
  426. package/www/build/p-8d2704ee.entry.js +0 -2
  427. package/www/build/p-8d2704ee.entry.js.map +0 -1
  428. package/www/build/p-904c7fdd.entry.js.map +0 -1
  429. package/www/build/p-a52b3dd1.entry.js.map +0 -1
  430. package/www/build/p-a8f43afd.entry.js +0 -2
  431. package/www/build/p-b7620e80.entry.js.map +0 -1
  432. package/www/build/p-c217c65c.entry.js +0 -2
  433. package/www/build/p-ccedd440.entry.js.map +0 -1
  434. /package/dist/collection/components/{table → deprecated/table}/cells/z-table-cells.css +0 -0
  435. /package/dist/collection/components/{table → deprecated/table}/cells/z-th/styles.css +0 -0
  436. /package/dist/collection/components/{table → deprecated/table}/z-table/styles.css +0 -0
  437. /package/dist/collection/components/{table → deprecated/table}/z-tbody/styles.css +0 -0
  438. /package/dist/collection/components/{table → deprecated/table}/z-tfoot/styles.css +0 -0
  439. /package/dist/collection/components/{table → deprecated/table}/z-thead/styles.css +0 -0
  440. /package/dist/collection/components/{table → deprecated/table}/z-tr/styles.css +0 -0
  441. /package/dist/web-components-library/{p-32bc925a.entry.js.map → p-059963b6.entry.js.map} +0 -0
  442. /package/dist/web-components-library/{p-33d993fe.entry.js.map → p-06a196fb.entry.js.map} +0 -0
  443. /package/dist/web-components-library/{p-8c3a7bc1.entry.js.map → p-08384d53.entry.js.map} +0 -0
  444. /package/dist/web-components-library/{p-dfb0e8d8.entry.js.map → p-1b562386.entry.js.map} +0 -0
  445. /package/dist/web-components-library/{p-7dbd0e3e.entry.js.map → p-2a74e691.entry.js.map} +0 -0
  446. /package/dist/web-components-library/{p-1efed23b.entry.js.map → p-2e4db422.entry.js.map} +0 -0
  447. /package/dist/web-components-library/{p-4f6c86ce.entry.js.map → p-2eaf4b9b.entry.js.map} +0 -0
  448. /package/dist/web-components-library/{p-6ea349f6.entry.js.map → p-350ea24f.entry.js.map} +0 -0
  449. /package/dist/web-components-library/{p-df5eeb75.entry.js.map → p-3574a17e.entry.js.map} +0 -0
  450. /package/dist/web-components-library/{p-efe489a5.entry.js.map → p-41966ee6.entry.js.map} +0 -0
  451. /package/dist/web-components-library/{p-89b30fce.entry.js.map → p-47d4000c.entry.js.map} +0 -0
  452. /package/dist/web-components-library/{p-317cbb00.entry.js.map → p-55c3310f.entry.js.map} +0 -0
  453. /package/dist/web-components-library/{p-8fb3354e.entry.js.map → p-5ae84959.entry.js.map} +0 -0
  454. /package/dist/web-components-library/{p-e1ab33fe.entry.js.map → p-633d18e9.entry.js.map} +0 -0
  455. /package/dist/web-components-library/{p-b4e0cd5c.entry.js.map → p-668b9254.entry.js.map} +0 -0
  456. /package/dist/web-components-library/{p-bc9237eb.entry.js.map → p-6af7c34f.entry.js.map} +0 -0
  457. /package/dist/web-components-library/{p-d6441232.entry.js.map → p-781d96de.entry.js.map} +0 -0
  458. /package/dist/web-components-library/{p-1e71577c.entry.js.map → p-81c949eb.entry.js.map} +0 -0
  459. /package/dist/web-components-library/{p-a5187022.entry.js.map → p-886382a7.entry.js.map} +0 -0
  460. /package/dist/web-components-library/{p-9ac57635.entry.js.map → p-95af0156.entry.js.map} +0 -0
  461. /package/dist/web-components-library/{p-127a6dda.entry.js.map → p-a4f5e7e9.entry.js.map} +0 -0
  462. /package/dist/web-components-library/{p-121f224a.entry.js.map → p-baa35a6e.entry.js.map} +0 -0
  463. /package/dist/web-components-library/{p-02fb0bf9.entry.js.map → p-bc8eec12.entry.js.map} +0 -0
  464. /package/dist/web-components-library/{p-7f37e2a2.entry.js.map → p-bdd9c781.entry.js.map} +0 -0
  465. /package/dist/web-components-library/{p-6de548e3.entry.js.map → p-c15267bc.entry.js.map} +0 -0
  466. /package/dist/web-components-library/{p-303fe1d0.entry.js.map → p-c983da75.entry.js.map} +0 -0
  467. /package/dist/web-components-library/{p-2bd1326c.entry.js.map → p-deed5153.entry.js.map} +0 -0
  468. /package/dist/web-components-library/{p-c217c65c.entry.js.map → p-e160889a.entry.js.map} +0 -0
  469. /package/dist/web-components-library/{p-8f4fcd01.entry.js.map → p-e1d1445c.entry.js.map} +0 -0
  470. /package/dist/web-components-library/{p-a8f43afd.entry.js.map → p-e972b9c2.entry.js.map} +0 -0
  471. /package/dist/web-components-library/{p-222898cd.entry.js.map → p-ea96790b.entry.js.map} +0 -0
  472. /package/dist/web-components-library/{p-2bebbd04.entry.js.map → p-ee5ff565.entry.js.map} +0 -0
  473. /package/dist/web-components-library/{p-8b3257b4.entry.js.map → p-f7e11eab.entry.js.map} +0 -0
  474. /package/dist/web-components-library/{p-067411f0.entry.js.map → p-fdafba48.entry.js.map} +0 -0
  475. /package/www/build/{p-32bc925a.entry.js.map → p-059963b6.entry.js.map} +0 -0
  476. /package/www/build/{p-33d993fe.entry.js.map → p-06a196fb.entry.js.map} +0 -0
  477. /package/www/build/{p-8c3a7bc1.entry.js.map → p-08384d53.entry.js.map} +0 -0
  478. /package/www/build/{p-dfb0e8d8.entry.js.map → p-1b562386.entry.js.map} +0 -0
  479. /package/www/build/{p-7dbd0e3e.entry.js.map → p-2a74e691.entry.js.map} +0 -0
  480. /package/www/build/{p-1efed23b.entry.js.map → p-2e4db422.entry.js.map} +0 -0
  481. /package/www/build/{p-4f6c86ce.entry.js.map → p-2eaf4b9b.entry.js.map} +0 -0
  482. /package/www/build/{p-6ea349f6.entry.js.map → p-350ea24f.entry.js.map} +0 -0
  483. /package/www/build/{p-df5eeb75.entry.js.map → p-3574a17e.entry.js.map} +0 -0
  484. /package/www/build/{p-efe489a5.entry.js.map → p-41966ee6.entry.js.map} +0 -0
  485. /package/www/build/{p-89b30fce.entry.js.map → p-47d4000c.entry.js.map} +0 -0
  486. /package/www/build/{p-317cbb00.entry.js.map → p-55c3310f.entry.js.map} +0 -0
  487. /package/www/build/{p-8fb3354e.entry.js.map → p-5ae84959.entry.js.map} +0 -0
  488. /package/www/build/{p-e1ab33fe.entry.js.map → p-633d18e9.entry.js.map} +0 -0
  489. /package/www/build/{p-b4e0cd5c.entry.js.map → p-668b9254.entry.js.map} +0 -0
  490. /package/www/build/{p-bc9237eb.entry.js.map → p-6af7c34f.entry.js.map} +0 -0
  491. /package/www/build/{p-d6441232.entry.js.map → p-781d96de.entry.js.map} +0 -0
  492. /package/www/build/{p-1e71577c.entry.js.map → p-81c949eb.entry.js.map} +0 -0
  493. /package/www/build/{p-a5187022.entry.js.map → p-886382a7.entry.js.map} +0 -0
  494. /package/www/build/{p-9ac57635.entry.js.map → p-95af0156.entry.js.map} +0 -0
  495. /package/www/build/{p-127a6dda.entry.js.map → p-a4f5e7e9.entry.js.map} +0 -0
  496. /package/www/build/{p-121f224a.entry.js.map → p-baa35a6e.entry.js.map} +0 -0
  497. /package/www/build/{p-02fb0bf9.entry.js.map → p-bc8eec12.entry.js.map} +0 -0
  498. /package/www/build/{p-7f37e2a2.entry.js.map → p-bdd9c781.entry.js.map} +0 -0
  499. /package/www/build/{p-6de548e3.entry.js.map → p-c15267bc.entry.js.map} +0 -0
  500. /package/www/build/{p-303fe1d0.entry.js.map → p-c983da75.entry.js.map} +0 -0
  501. /package/www/build/{p-2bd1326c.entry.js.map → p-deed5153.entry.js.map} +0 -0
  502. /package/www/build/{p-c217c65c.entry.js.map → p-e160889a.entry.js.map} +0 -0
  503. /package/www/build/{p-8f4fcd01.entry.js.map → p-e1d1445c.entry.js.map} +0 -0
  504. /package/www/build/{p-a8f43afd.entry.js.map → p-e972b9c2.entry.js.map} +0 -0
  505. /package/www/build/{p-222898cd.entry.js.map → p-ea96790b.entry.js.map} +0 -0
  506. /package/www/build/{p-2bebbd04.entry.js.map → p-ee5ff565.entry.js.map} +0 -0
  507. /package/www/build/{p-8b3257b4.entry.js.map → p-f7e11eab.entry.js.map} +0 -0
  508. /package/www/build/{p-067411f0.entry.js.map → p-fdafba48.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"z-td.entry.js","sources":["src/components/table/cells/z-table-cells.css?tag=z-td&encapsulation=shadow","src/components/css-components/z-table/styles.css?tag=z-td&encapsulation=shadow","src/components/table/cells/z-td/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","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, 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"],"names":[],"mappings":";;;AAAA,MAAM,cAAc,GAAG,MAAM,CAAC,k9BAAk9B,CAAC;;ACAj/B,MAAM,SAAS,GAAG,MAAM,CAAC,0sDAA0sD,CAAC;;MCYvtD,GAAG,GAAA,MAAA;AALhB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAcE;;AAEG;AAEH,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;AAEd;;;;AAIG;AAEH,QAAA,IAAA,CAAA,QAAQ,GAAwB,IAAI;AAEpC;;AAEG;AAEH,QAAA,IAAA,CAAA,eAAe,GAAqB,eAAe,CAAC,IAAI;AAExD;;AAEG;AAEH,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;AAmEnB;IAnDW,aAAa,GAAA;AACrB,QAAA,IAAI,IAAI,CAAC,OAAO,EAAE;AAChB,YAAA,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,CAAA,KAAA,EAAQ,IAAI,CAAC,OAAO,CAAA,CAAE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ACzD,MAAM,EAAE,IAAI,CAAC,WAA0B,EACvC,YAAY,EAAE,CAAC,KAAK,MAAM,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe,EAAA,EAE9B,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,iBAAiB,EAAA,CAAQ,CAC1B,CACR,CACP,CACG,CACD;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"z-td.entry.js","sources":["src/components/deprecated/table/cells/z-table-cells.css?tag=z-td&encapsulation=shadow","src/components/css-components/z-table/styles.css?tag=z-td&encapsulation=shadow","src/components/deprecated/table/cells/z-td/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","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, 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"],"names":[],"mappings":";;;AAAA,MAAM,cAAc,GAAG,MAAM,CAAC,k9BAAk9B,CAAC;;ACAj/B,MAAM,SAAS,GAAG,MAAM,CAAC,0sDAA0sD,CAAC;;MCYvtD,GAAG,GAAA,MAAA;AALhB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAcE;;AAEG;AAEH,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;AAEd;;;;AAIG;AAEH,QAAA,IAAA,CAAA,QAAQ,GAAwB,IAAI;AAEpC;;AAEG;AAEH,QAAA,IAAA,CAAA,eAAe,GAAqB,eAAe,CAAC,IAAI;AAExD;;AAEG;AAEH,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;AAmEnB;IAnDW,aAAa,GAAA;AACrB,QAAA,IAAI,IAAI,CAAC,OAAO,EAAE;AAChB,YAAA,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,CAAA,KAAA,EAAQ,IAAI,CAAC,OAAO,CAAA,CAAE;;aAC9C;YACL,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC;;QAG/C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;;AAGpC,IAAA,iBAAiB,CAAC,EAAc,EAAA;QACtC,EAAE,CAAC,eAAe,EAAE;QACpB,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI;;IAG5C,iBAAiB,GAAA;QACf,IAAI,CAAC,aAAa,EAAE;;IAGtB,MAAM,GAAA;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
15
  render() {
16
- return (h(Host, { key: '0fcde5bee7935573e01260c97561df41a7867e3e', role: "rowgroup", tabIndex: -1 }, h("slot", { key: '42d7a054d3ec73269cc57a44775a41a2d7584170' })));
16
+ return (h(Host, { key: 'a5e96868b6f2f28cd25fe134b8346f0f9d800de1', role: "rowgroup", tabIndex: -1 }, h("slot", { key: 'bbb1478d0fdd700bf4e9601eb7d008f54ff02cb3' })));
17
17
  }
18
18
  };
19
19
  ZTfoot.style = stylesCss$1() + stylesCss();
@@ -1 +1 @@
1
- {"version":3,"file":"z-tfoot.entry.js","sources":["src/components/table/z-tfoot/styles.css?tag=z-tfoot&encapsulation=shadow","src/components/css-components/z-table/styles.css?tag=z-tfoot&encapsulation=shadow","src/components/table/z-tfoot/index.tsx"],"sourcesContent":[":host {\n display: block;\n box-sizing: border-box;\n margin-top: -1px;\n}\n\n:host([sticky]) {\n position: sticky;\n z-index: 1;\n bottom: 0;\n background-color: var(--color-surface01);\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, Host, Prop, h} from \"@stencil/core\";\n\n/**\n * ZTFoot component.\n * @slot - ZTFoot content (`z-tr`).\n */\n@Component({\n tag: \"z-tfoot\",\n styleUrls: [\"styles.css\", \"../../css-components/z-table/styles.css\"],\n shadow: true,\n})\nexport class ZTfoot implements ComponentInterface {\n /**\n * If true, the footer will be stuck to the bottom of the table.\n */\n @Prop({reflect: true})\n sticky = false;\n\n render(): void {\n return (\n <Host\n role=\"rowgroup\"\n tabIndex={-1}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"names":["stylesCss"],"mappings":";;AAAA,MAAMA,WAAS,GAAG,MAAM,CAAC,qJAAqJ,CAAC;;ACA/K,MAAM,SAAS,GAAG,MAAM,CAAC,0sDAA0sD,CAAC;;MCWvtD,MAAM,GAAA,MAAA;AALnB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAME;;AAEG;AAEH,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;AAYf;IAVC,MAAM,GAAA;AACJ,QAAA,QACE,CAAA,CAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EACH,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,EAAE,EAAA,EAEZ,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACR;;;;;;;"}
1
+ {"version":3,"file":"z-tfoot.entry.js","sources":["src/components/deprecated/table/z-tfoot/styles.css?tag=z-tfoot&encapsulation=shadow","src/components/css-components/z-table/styles.css?tag=z-tfoot&encapsulation=shadow","src/components/deprecated/table/z-tfoot/index.tsx"],"sourcesContent":[":host {\n display: block;\n box-sizing: border-box;\n margin-top: -1px;\n}\n\n:host([sticky]) {\n position: sticky;\n z-index: 1;\n bottom: 0;\n background-color: var(--color-surface01);\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, Host, Prop, h} from \"@stencil/core\";\n\n/**\n * ZTFoot component.\n * @slot - ZTFoot content (`z-tr`).\n */\n@Component({\n tag: \"z-tfoot\",\n styleUrls: [\"styles.css\", \"../../../css-components/z-table/styles.css\"],\n shadow: true,\n})\nexport class ZTfoot implements ComponentInterface {\n /**\n * If true, the footer will be stuck to the bottom of the table.\n */\n @Prop({reflect: true})\n sticky = false;\n\n render(): void {\n return (\n <Host\n role=\"rowgroup\"\n tabIndex={-1}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"names":["stylesCss"],"mappings":";;AAAA,MAAMA,WAAS,GAAG,MAAM,CAAC,qJAAqJ,CAAC;;ACA/K,MAAM,SAAS,GAAG,MAAM,CAAC,0sDAA0sD,CAAC;;MCWvtD,MAAM,GAAA,MAAA;AALnB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAME;;AAEG;AAEH,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;AAYf;IAVC,MAAM,GAAA;AACJ,QAAA,QACE,CAAA,CAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EACH,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,EAAE,EAAA,EAEZ,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACR;;;;;;;"}
@@ -74,7 +74,7 @@ const ZTh = class {
74
74
  this.updateColspan();
75
75
  }
76
76
  render() {
77
- return (h(Host, { key: '8e83039c2100fa4df3e205d6a4819cdc32b4789e', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, h("div", { key: '18c67051c7eed356980c97b08bd4981b5d8c9b18', class: "cell--content" }, h("slot", { key: '05c6564192e37a01c6f79c81db4b7732dcc30451' }), this.showSorting && (h("button", { key: '45f0e2087f6050567bf7978f8421a146912e2cfd', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: 'e53ad878d055d82b518212c99385b4d394503bf9', name: this.sortDirection === SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: '660f2abf11cc879c3a5855149fbbfc7b57578b6a', class: "cell--menu-container" }, h("z-button", { key: '37905939b31eeb5051ce5824787309629a935f14', 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: '369c0918f021e0699c2178b2b023126fce518073', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: 'b3364b3d95e4cd92fefce41bfcbb995b2b5eef70', name: "contextual-menu" })))))));
77
+ return (h(Host, { key: 'd677564cf6d2351a9188098d58b98e4bf9ffbf9e', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, h("div", { key: '267fd4a41682a6a1475ba74739ff148957dc6626', class: "cell--content" }, h("slot", { key: 'a77588e6dd5645f6b384a7564a06cffae72bed4e' }), this.showSorting && (h("button", { key: '8a565667e7bdbd223d38efe7be5128c69947577c', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, h("z-icon", { key: 'a527e6e217f5cbabf1baac1c292111ab406aa792', name: this.sortDirection === SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (h("div", { key: '396eb46a6aa10d47419cd437412ce69d797f2047', class: "cell--menu-container" }, h("z-button", { key: '6e014d9922c15041950772ee0c377b9f31d4d743', 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: '11a7861d3151f616c9d9761709611bac37a02ec6', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, h("slot", { key: '99545a1fb846906941ce882d6f21676de1fa7fb2', name: "contextual-menu" })))))));
78
78
  }
79
79
  get host() { return getElement(this); }
80
80
  static get watchers() { return {
@@ -1 +1 @@
1
- {"version":3,"file":"z-th.entry.js","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"],"names":["stylesCss"],"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,CAAA,MAAM,GAAG,KAAK;AAQd;;AAEG;AAEH,QAAA,IAAA,CAAA,MAAM,GAAmB,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AI,CAAC,EAC9D,QAAQ,EAAE,IAAI,CAAC,eAAe,EAAA,EAE9B,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,iBAAiB,EAAA,CAAQ,CAC1B,CACR,CACP,CACG,CACD;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"z-th.entry.js","sources":["src/components/deprecated/table/cells/z-table-cells.css?tag=z-th&encapsulation=shadow","src/components/deprecated/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/deprecated/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"],"names":["stylesCss"],"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,CAAA,MAAM,GAAG,KAAK;AAQd;;AAEG;AAEH,QAAA,IAAA,CAAA,MAAM,GAAmB,KAAK;AAE9B;;AAEG;AAEH,QAAA,IAAA,CAAA,eAAe,GAAG,eAAe,CAAC,IAAI;AAEtC;;AAEG;AAEH,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;AAqGnB;AAvFC;;AAEG;AACH,IAAA,IAAY,iBAAiB,GAAA;AAC3B,QAAA,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;AACvB,YAAA,OAAO,IAAI;;AAGb,QAAA,OAAO,IAAI,CAAC,aA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f08c9ead7330d1b0d0893e197d56', role: "rowgroup", tabIndex: this.isFocusable ? 0 : -1 }, h("slot", { key: '57ced6d7b8cf3859959f80d1af3eb72b17d69eb0' })));
20
+ return (h(Host, { key: '7344ed54861bf06e14d98898db49edb576668e9b', role: "rowgroup", tabIndex: this.isFocusable ? 0 : -1 }, h("slot", { key: '72be057fd58c9da5280dee692324cb5192865dba' })));
21
21
  }
22
22
  get host() { return getElement(this); }
23
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"z-thead.entry.js","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"],"names":["stylesCss"],"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,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EACH,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,GAAG,EAAE,EAAA,EAEnC,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACR;;;;;;;;"}
1
+ {"version":3,"file":"z-thead.entry.js","sources":["src/components/deprecated/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/deprecated/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"],"names":["stylesCss"],"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,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EACH,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,GAAG,EAAE,EAAA,EAEnC,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACR;;;;;;;;"}
@@ -43,7 +43,7 @@ const ZToastNotificationList = class {
43
43
  }
44
44
  }
45
45
  render() {
46
- return h("slot", { key: '1b22ad1308d152ae0a89b6e0d711765fc400458b', name: "toasts" });
46
+ return h("slot", { key: '124469b727158c7221ff11aa3b0614bd28591a50', name: "toasts" });
47
47
  }
48
48
  get hostElement() { return getElement(this); }
49
49
  static get watchers() { return {
@@ -4198,19 +4198,19 @@ const ZToastNotification = class {
4198
4198
  }
4199
4199
  }
4200
4200
  render() {
4201
- return (h(Host, { key: '203e3a531f9a178cb4a87598b7916d9313faefe6', style: { "--percentuale": `${this.percentage}%` }, class: { [this.transition]: !!this.transition, [this.type]: !!this.type }, onAnimationEnd: (e) => {
4201
+ return (h(Host, { key: '129c4628c3809f638a02596bff82f4a5700ae566', style: { "--percentuale": `${this.percentage}%` }, class: { [this.transition]: !!this.transition, [this.type]: !!this.type }, onAnimationEnd: (e) => {
4202
4202
  if (this.autoclose && e.animationName.includes("slidein")) {
4203
4203
  this.startClosingTimeout(this.autoclose);
4204
4204
  }
4205
4205
  if (e.animationName.includes("slideout")) {
4206
4206
  this.hostElement.parentNode.removeChild(this.hostElement);
4207
4207
  }
4208
- } }, h("div", { key: 'f1aa2db8b0e25347d79f64bd99d3fa5ed0cdebbc', class: "toast-notification-container" }, h("div", { key: 'a9d16a63c9007b3dbe1f245d9063c3510f1518b8', class: "toast-notification-content" }, h("div", { key: '4ab0c13ca3f0bd80d95e0cb3199e3045e60c9a60', class: "toast-notification-text" }, this.heading && h("span", { key: 'b7dab9b4238d7e0f5d0db2184a2c9ca9bc0c8234', class: "title" }, this.heading), h("span", { key: '6afb9e5be183e6b040e6219940b00c48ea702fb1', class: "message" }, h("slot", { key: 'ee7feb8ab40d6e81dec9998a2ae13b4c03cf0327', name: "message" }, this.message && h("span", { key: '4adfbad2e2647b31a165e0a2d5164de7b283a3b7', innerHTML: purify.sanitize(this.message) })))), h("div", { key: 'ed3b21c702a6e4cadc10dd21b8a685c0b9c7a5cc', class: "button-container", hidden: !this.hasSlottedButton }, h("slot", { key: '0ece97a1a9773fc44347c64d5d413e35403212c9', name: "button", onSlotchange: () => this.checkSlottedButton() }))), this.closebutton && (h("button", { key: 'fd8e0a5fc8a6f59567f9938b53356ca545fd5eb0', class: "close-button", "aria-label": "Chiudi notifica", onClick: () => this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], true), onKeyDown: (e) => {
4208
+ } }, h("div", { key: '39360c2661ac44f4e3e8ae25aceccaea8179a03e', class: "toast-notification-container" }, h("div", { key: '6778d83e83590f5981ff9dfb5fbb8fbe92143404', class: "toast-notification-content" }, h("div", { key: '896d9bb0c412381f9ad81c799666dd54503a50b0', class: "toast-notification-text" }, this.heading && h("span", { key: 'a431608d859dede1cc17e840ebf2e01b872a1d48', class: "title" }, this.heading), h("span", { key: '23f29016f7eb04790a6adf136b0e064f5f2d87d9', class: "message" }, h("slot", { key: 'a793b4e4fee43ad139f0eef51ec1ed1a6cd5c31f', name: "message" }, this.message && h("span", { key: 'fc84e8b14208ff6d150dfea28924387f845cb371', innerHTML: purify.sanitize(this.message) })))), h("div", { key: '475e54939682a3b7bba6032a92bd04b8a21772b3', class: "button-container", hidden: !this.hasSlottedButton }, h("slot", { key: 'e9bd0b4e65504476b59a97dcf82b233b5259bc00', name: "button", onSlotchange: () => this.checkSlottedButton() }))), this.closebutton && (h("button", { key: '14b143ec8e4d8e02b039d01464532ba25bcc2bea', class: "close-button", "aria-label": "Chiudi notifica", onClick: () => this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], true), onKeyDown: (e) => {
4209
4209
  if (e.code == KeyboardCode.SPACE || e.code == KeyboardCode.ENTER) {
4210
4210
  e.preventDefault();
4211
4211
  this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], true);
4212
4212
  }
4213
- } }, h("z-icon", { key: '778c9689d5b1b6286c08c58c50ad93cc8fc35358', name: "multiply-circled" }))))));
4213
+ } }, h("z-icon", { key: '4870673eb2e49f6dbd06788a3b279daaa8236ab6', name: "multiply-circled" }))))));
4214
4214
  }
4215
4215
  get hostElement() { return getElement(this); }
4216
4216
  static get watchers() { return {
@@ -32,14 +32,14 @@ const ZToggleSwitch = class {
32
32
  this.emitToggleClick();
33
33
  }
34
34
  render() {
35
- return (h(Host, { key: '0370a36488a57e5ac92c296ce0fcc140cc8c56eb' }, h("input", { key: '3364210d02cebfd7d2ad14407a557c52aa82686a', id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }), h("label", { key: '07519e6cbe8f44d131909d1023b602e74b6cdf80', htmlFor: this.htmlid, class: {
35
+ return (h(Host, { key: 'c682159ebad808a9e448a1a200fcc9ce49e3a2ad' }, h("input", { key: '5a22ee912aeb8a212820d8d3f7b41a6029bfa530', id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }), h("label", { key: '6c36dd15bc8fa1fcd1443cb01fe442644de8d87d', htmlFor: this.htmlid, class: {
36
36
  [this.labelPosition]: true,
37
37
  disabled: this.disabled,
38
- } }, h("span", { key: '3d460ac03c1788fdf99f116e8792f2b0f95f1857' }, h("slot", { key: '0eb371292202e3eefd737ed79f3acefeda2fab91' })), h("span", { key: '5912b4da7abed8f994dd7224a09872d5c173160a', class: {
38
+ } }, h("span", { key: 'b9cbb73e0de30c219443c2430fb7cb09a03ffa32' }, h("slot", { key: '6b73da88f943d4c304ff3cd22c99145b2393541e' })), h("span", { key: 'd7ecff8d30e2f6a43c3f010c53a6fb5fd00f7a78', class: {
39
39
  container: true,
40
40
  disabled: this.disabled,
41
41
  checked: this.checked,
42
- } }, h("span", { key: '893ebce8124fdbcd00fbaf0976757a15b59a5b6e', class: "circle" }, this.checked && (h("z-icon", { key: 'f6d826da0f8c46f1e64fc0efa2a55fda64685f55', width: 12, height: 12, name: "checkmark" })))))));
42
+ } }, h("span", { key: '5d4c5aba273711d3f06b6622e119bd6e81137e3d', class: "circle" }, this.checked && (h("z-icon", { key: 'c6dfea8a74fc0ef446588ac7c36bf06e3549f814', width: 12, height: 12, name: "checkmark" })))))));
43
43
  }
44
44
  };
45
45
  ZToggleSwitch.style = stylesCss();
@@ -187,10 +187,10 @@ const ZTool = class {
187
187
  (_a = this.mql) === null || _a === void 0 ? void 0 : _a.removeEventListener("change", this.onMobileViewChange);
188
188
  }
189
189
  render() {
190
- return (h(Host, { key: '6d82ae454718b00d21e6193325bc223de3409f7a', class: { "z-tool-tooltip-open": this.tooltipOpen } }, h("button", { key: '79735e5831762281fef55e7033c6660a8b97de74', class: "z-tool", type: "button", ref: (el) => (this.buttonRef = el), "aria-pressed": this.hasSlottedContent ? undefined : this.active ? "true" : "false", "aria-expanded": this.hasSlottedContent ? (this.open ? "true" : "false") : undefined, "aria-haspopup": this.hasSlottedContent ? "true" : undefined, "aria-label": this.htmlAriaLabel || this.tooltip || undefined, disabled: this.disabled, onClick: this.handleClick, onMouseEnter: this.handleTooltipOpen, onMouseLeave: this.handleTooltipClose, onFocus: this.handleTooltipOpen, onBlur: this.handleTooltipClose }, h("z-icon", { key: '79be05619def07fd8a73812a8905f15f719fce83', ref: (el) => (this.iconRef = el), name: this.icon, indicatorColor: this.indicatorColor })), this.tooltip && (h("z-tooltip", { key: '9b5aa9d7f06b1ff6408f485c910a905c4c62d3e4', class: "z-tool-tooltip", ref: (el) => (this.tooltipRef = el), bindTo: this.iconRef, open: this.tooltipOpen && !this.open, position: this.isNested ? PopoverPosition.BOTTOM : this.tooltipPosition, dark: true, onMouseLeave: this.handleTooltipClose, onBlur: this.handleTooltipClose, onOpenChange: this.onTooltipOpenChange }, h("span", { key: '82c6f40fc3a4d4932ea9ef8e05f02c2c8d5eaddf', class: "body-4" }, this.tooltip))), this.hasSlottedContent && (h("z-popover", { key: '33dcbe345ca34c79720ed7a17eda2f5ab0561e90', class: "z-tool-submenu", open: this.open, bindTo: this.isMobile && this.mainToolbar ? this.mainToolbar : this.hostElement, center: true,
190
+ return (h(Host, { key: 'a48fb610a0a937e39e8c18d38bcb816796f5d6b4', class: { "z-tool-tooltip-open": this.tooltipOpen } }, h("button", { key: 'd5dbd5053a068c67ed97ddc5a7f63d093972b5cb', class: "z-tool", type: "button", ref: (el) => (this.buttonRef = el), "aria-pressed": this.hasSlottedContent ? undefined : this.active ? "true" : "false", "aria-expanded": this.hasSlottedContent ? (this.open ? "true" : "false") : undefined, "aria-haspopup": this.hasSlottedContent ? "true" : undefined, "aria-label": this.htmlAriaLabel || this.tooltip || undefined, disabled: this.disabled, onClick: this.handleClick, onMouseEnter: this.handleTooltipOpen, onMouseLeave: this.handleTooltipClose, onFocus: this.handleTooltipOpen, onBlur: this.handleTooltipClose }, h("z-icon", { key: '32fead7901041cc31e29ec21afdd4e23db4d3db8', ref: (el) => (this.iconRef = el), name: this.icon, indicatorColor: this.indicatorColor })), this.tooltip && (h("z-tooltip", { key: '5b50cd97749c97edd199be309bb0b5aadd59116b', class: "z-tool-tooltip", ref: (el) => (this.tooltipRef = el), bindTo: this.iconRef, open: this.tooltipOpen && !this.open, position: this.isNested ? PopoverPosition.BOTTOM : this.tooltipPosition, dark: true, onMouseLeave: this.handleTooltipClose, onBlur: this.handleTooltipClose, onOpenChange: this.onTooltipOpenChange }, h("span", { key: '768a80f59017ef7e459913f9c449673789b81c00', class: "body-4" }, this.tooltip))), this.hasSlottedContent && (h("z-popover", { key: 'f7a3ffa96e971fa793643944391e296ce7ce12b8', class: "z-tool-submenu", open: this.open, bindTo: this.isMobile && this.mainToolbar ? this.mainToolbar : this.hostElement, center: true,
191
191
  /* disable auto-close to prevent unwanted close behaviors on mobile,
192
192
  when the bound element is the main toolbar */
193
- closable: false, position: this.isMobile ? PopoverPosition.TOP : PopoverPosition.BOTTOM }, h("slot", { key: '1a42cca4cd67850cff48043819e144fc2b6ea47e' })))));
193
+ closable: false, position: this.isMobile ? PopoverPosition.TOP : PopoverPosition.BOTTOM }, h("slot", { key: 'e4b9dd50dd26e958241db7df82ccd8a14c6a4c86' })))));
194
194
  }
195
195
  get hostElement() { return getElement(this); }
196
196
  static get watchers() { return {
@@ -129,7 +129,7 @@ const ZToolbar = class {
129
129
  }
130
130
  }
131
131
  render() {
132
- return (h(Host, { key: 'c4ccefdf38a239462ed209be1f5982fc4d805493', role: "toolbar", "aria-label": this.htmlAriaLabel }, h("slot", { key: '97f941c2bb8862f5bcb78bbad6fba1f729d497a5', onSlotchange: () => {
132
+ return (h(Host, { key: 'f4a79655dc3f8e4423b20683c6b3860e5007f0ee', role: "toolbar", "aria-label": this.htmlAriaLabel }, h("slot", { key: 'd044d14607037c8e6c9977faf383c16ee6bddb8a', onSlotchange: () => {
133
133
  this.collectToolItems();
134
134
  this.updateTabIndexes();
135
135
  } })));
@@ -26,7 +26,7 @@ const ZTooltip = class {
26
26
  this.open = this.popoverEl.open;
27
27
  }
28
28
  render() {
29
- return (h("z-popover", { key: 'fc20f5c5d66fb5b9dabd41dfb986b28fbedfad9d', ref: (el) => (this.popoverEl = el), bindTo: this.bindTo, open: this.open, position: this.position, closable: this.closable, center: true, showArrow: true, onOpenChange: (event) => this.openChange.emit(event.detail) }, h("slot", { key: '5c5a2e8be7183824b50fa87d18b6f26e4bb2c0f7' })));
29
+ return (h("z-popover", { key: '09052c0c35b449590b0abfcd7e2816253814cc57', ref: (el) => (this.popoverEl = el), bindTo: this.bindTo, open: this.open, position: this.position, closable: this.closable, center: true, showArrow: true, onOpenChange: (event) => this.openChange.emit(event.detail) }, h("slot", { key: '1d4e6d0108724f8bc77bb6faf17b3938aa77d519' })));
30
30
  }
31
31
  };
32
32
  ZTooltip.style = stylesCss();
@@ -68,7 +68,7 @@ const ZTr = class {
68
68
  this.updateColumns();
69
69
  }
70
70
  render() {
71
- return (h(Host, { key: '75b2709b15c266ccbdef64b1b610775271d8578e', role: "row", tabIndex: this.expandable ? 0 : undefined, expanded: this.expanded, onClick: this.onRowClick.bind(this), onKeyDown: this.onKeyDown.bind(this) }, h("div", { key: '5952a68ab36814d24e490cb183ed36ef476f3174', class: "z-tr--focus-overlay", "aria-hidden": "true" }), h("div", { key: '80c7b7130eb34822abbb6804d1d613f87bf0dc35', class: "z-tr--expand-button-container" }, this.expandable && (h("button", { key: '037ae6901e951599464a876b8c6f5c779f5f070e', tabIndex: -1, "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, h("z-icon", { key: 'bc0e8dc8b429911c1e958005c4447bad6d25a504', name: this.expanded ? "minus-circled" : "plus-circled" })))), h("slot", { key: '2f9a60636fa6f29279a82eb99ba3ed8034708db4', onSlotchange: this.updateColumns.bind(this) })));
71
+ return (h(Host, { key: '158f25d1746e340981e4facebe0f7dfd2106222a', role: "row", tabIndex: this.expandable ? 0 : undefined, expanded: this.expanded, onClick: this.onRowClick.bind(this), onKeyDown: this.onKeyDown.bind(this) }, h("div", { key: '140ddc0aac009e9e254b5ee281e292dc19326527', class: "z-tr--focus-overlay", "aria-hidden": "true" }), h("div", { key: '8e5b3d3e72cfe09c1ee4f54ffab8805e0e83021c', class: "z-tr--expand-button-container" }, this.expandable && (h("button", { key: 'bd724740ff19d508d33527dbc657b932f73f4421', tabIndex: -1, "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, h("z-icon", { key: 'd88a988e00c240b85806e9d0ea8d090cb404fab4', name: this.expanded ? "minus-circled" : "plus-circled" })))), h("slot", { key: '83cada789cfd416d9c2062ede5c10b49ac56ae56', onSlotchange: this.updateColumns.bind(this) })));
72
72
  }
73
73
  get host() { return getElement(this); }
74
74
  static get watchers() { return {
@@ -1 +1 @@
1
- {"version":3,"file":"z-tr.entry.js","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"],"names":["stylesCss"],"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,EAA2B,QAAQ,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;;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AA,EAEpC,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAC,qBAAqB,EAAA,aAAA,EACf,MAAM,EAAA,CACb,EACP,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,+BAA+B,EAAA,EACvC,IAAI,CAAC,UAAU,KACd,CAAA,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,EAEb,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAG,eAAe,GAAG,cAAc,EAAA,CAAW,CAClE,CACV,CACG,EACN,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAA,CAAS,CACrD;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"z-tr.entry.js","sources":["src/components/deprecated/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/deprecated/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"],"names":["stylesCss"],"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,YAA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,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAA,CAAS,CACrD;;;;;;;;;;;;;"}
@@ -98,7 +98,7 @@ const ZTreeList = class {
98
98
  }
99
99
  render() {
100
100
  const hasClickableItems = this.parsedItems.some((item) => !!item.url);
101
- return (h(Host, { key: '266f20dbd53ba5e756e0fec544179e6bb319bd18', class: "tree-list", role: hasClickableItems ? "navigation" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-labelledby": this.htmlAriaLabelledby }, h("div", { key: '349d5a894c529036329f17c79b319e64e2c86731', tabIndex: -1, role: hasClickableItems ? "tree" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-label": this.htmlSectionTitle }, this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`)))));
101
+ return (h(Host, { key: 'd4f93f20f84ac193c4b291b0cc16d4a0e6838d49', class: "tree-list", role: hasClickableItems ? "navigation" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-labelledby": this.htmlAriaLabelledby }, h("div", { key: '4d0f11bb82855843beabb2eb0ddaa30ca39d8524', tabIndex: -1, role: hasClickableItems ? "tree" : "none", "aria-hidden": hasClickableItems ? undefined : "true", "aria-label": this.htmlSectionTitle }, this.parsedItems.map((item, key) => this.renderTreeList(item, `${key}`)))));
102
102
  }
103
103
  get host() { return getElement(this); }
104
104
  static get watchers() { return {
@@ -7,7 +7,7 @@ const ZVisuallyHidden = class {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
9
  render() {
10
- return h("slot", { key: '7223868f33657302203a2a24df8b3250d81c42cc' });
10
+ return h("slot", { key: '3378671bfdbab0bf278c0e8aeb3f8ea9bd555422' });
11
11
  }
12
12
  };
13
13
  ZVisuallyHidden.style = stylesCss();
@@ -32,7 +32,11 @@ export declare class ZBookCard implements ComponentInterface {
32
32
  linkTarget: string;
33
33
  /** [optional] Fallback cover URL. */
34
34
  fallbackCover?: string;
35
- /** Whether to show a stack of covers to represent multiple books (only for `portrait` variant). */
35
+ /**
36
+ * Whether to show a stack of covers to represent multiple books.
37
+ * Only takes effect when `variant` is `portrait`: in `landscape` it is silently ignored and no
38
+ * cover stack is rendered, regardless of its value.
39
+ */
36
40
  hasMultipleCovers: boolean;
37
41
  /** [optional] Set a specific heading level as html tag for the title. */
38
42
  titleHtmlTag?: string;
@@ -1,5 +1,5 @@
1
- import { ComponentInterface, EventEmitter } from "../../../../stencil-public-runtime";
2
- import { PopoverPosition, VisibilityCondition } from "../../../../beans";
1
+ import { ComponentInterface, EventEmitter } from "../../../../../stencil-public-runtime";
2
+ import { PopoverPosition, VisibilityCondition } from "../../../../../beans";
3
3
  /**
4
4
  * ZTd component.
5
5
  * @slot - ZTd content.
@@ -1,5 +1,5 @@
1
- import { ComponentInterface } from "../../../../stencil-public-runtime";
2
- import { PopoverPosition, SortDirection, VisibilityCondition } from "../../../../beans";
1
+ import { ComponentInterface } from "../../../../../stencil-public-runtime";
2
+ import { PopoverPosition, SortDirection, VisibilityCondition } from "../../../../../beans";
3
3
  /**
4
4
  * ZTh component.
5
5
  * @slot - ZTh content.
@@ -1,4 +1,4 @@
1
- import { ComponentInterface } from "../../../stencil-public-runtime";
1
+ import { ComponentInterface } from "../../../../stencil-public-runtime";
2
2
  import "../z-tbody/index";
3
3
  import "../z-tfoot/index";
4
4
  import "../z-thead/index";
@@ -1,4 +1,4 @@
1
- import { ComponentInterface } from "../../../stencil-public-runtime";
1
+ import { ComponentInterface } from "../../../../stencil-public-runtime";
2
2
  /**
3
3
  * ZTbody component.
4
4
  * @slot - ZTbody content (`z-tr`).
@@ -1,4 +1,4 @@
1
- import { ComponentInterface } from "../../../stencil-public-runtime";
1
+ import { ComponentInterface } from "../../../../stencil-public-runtime";
2
2
  /**
3
3
  * ZTFoot component.
4
4
  * @slot - ZTFoot content (`z-tr`).
@@ -1,4 +1,4 @@
1
- import { ComponentInterface } from "../../../stencil-public-runtime";
1
+ import { ComponentInterface } from "../../../../stencil-public-runtime";
2
2
  /**
3
3
  * ZThead component.
4
4
  * @slot - ZThead content (`z-tr`).
@@ -1,4 +1,4 @@
1
- import { ComponentInterface, EventEmitter } from "../../../stencil-public-runtime";
1
+ import { ComponentInterface, EventEmitter } from "../../../../stencil-public-runtime";
2
2
  import "../cells/z-td/index";
3
3
  import "../cells/z-th/index";
4
4
  /**
@@ -34,6 +34,8 @@ export declare class ZInput implements ComponentInterface {
34
34
  required?: boolean;
35
35
  /** checked: available for checkbox, radio */
36
36
  checked?: boolean;
37
+ /** indeterminate: available for checkbox */
38
+ indeterminate?: boolean;
37
39
  /** the input placeholder (optional) */
38
40
  placeholder?: string;
39
41
  /** the input html title (optional) */
@@ -72,6 +74,8 @@ export declare class ZInput implements ComponentInterface {
72
74
  private typingtimeout;
73
75
  private inputRef;
74
76
  inputCheckListener(e: CustomEvent): void;
77
+ watchIndeterminate(): void;
78
+ private syncCheckboxIndeterminate;
75
79
  /** get checked status */
76
80
  isChecked(): Promise<boolean>;
77
81
  /** Emitted on input value change, returns value, validity */
@@ -189,7 +189,7 @@ export namespace Components {
189
189
  */
190
190
  "fallbackCover"?: string;
191
191
  /**
192
- * Whether to show a stack of covers to represent multiple books (only for `portrait` variant).
192
+ * Whether to show a stack of covers to represent multiple books. Only takes effect when `variant` is `portrait`: in `landscape` it is silently ignored and no cover stack is rendered, regardless of its value.
193
193
  * @default false
194
194
  */
195
195
  "hasMultipleCovers": boolean;
@@ -934,6 +934,11 @@ export namespace Components {
934
934
  * render icon (optional): available for text
935
935
  */
936
936
  "icon"?: string;
937
+ /**
938
+ * indeterminate: available for checkbox
939
+ * @default false
940
+ */
941
+ "indeterminate"?: boolean;
937
942
  /**
938
943
  * get checked status
939
944
  */
@@ -3471,7 +3476,7 @@ declare namespace LocalJSX {
3471
3476
  */
3472
3477
  "fallbackCover"?: string;
3473
3478
  /**
3474
- * Whether to show a stack of covers to represent multiple books (only for `portrait` variant).
3479
+ * Whether to show a stack of covers to represent multiple books. Only takes effect when `variant` is `portrait`: in `landscape` it is silently ignored and no cover stack is rendered, regardless of its value.
3475
3480
  * @default false
3476
3481
  */
3477
3482
  "hasMultipleCovers"?: boolean;
@@ -4268,6 +4273,11 @@ declare namespace LocalJSX {
4268
4273
  * render icon (optional): available for text
4269
4274
  */
4270
4275
  "icon"?: string;
4276
+ /**
4277
+ * indeterminate: available for checkbox
4278
+ * @default false
4279
+ */
4280
+ "indeterminate"?: boolean;
4271
4281
  /**
4272
4282
  * the input label
4273
4283
  */
@@ -5821,6 +5831,7 @@ declare namespace LocalJSX {
5821
5831
  "readonly": boolean;
5822
5832
  "required": boolean;
5823
5833
  "checked": boolean;
5834
+ "indeterminate": boolean;
5824
5835
  "placeholder": string;
5825
5836
  "htmltitle": string;
5826
5837
  "status": InputStatus;
@@ -1,2 +1,2 @@
1
- import{r as e,c as t,h as s,H as c}from"./p-BcDWN4F1.js";import{k as i}from"./p-DdetsoIY.js";import{r as a}from"./p-DPrEzmhI.js";import"./p-Q-tWjk7P.js";const l=()=>`.sc-z-toggle-switch-h{position:relative;display:inline-flex;font-family:var(--font-family-sans);font-weight:var(--font-rg)}label.sc-z-toggle-switch{display:flex;flex-direction:row;align-items:center;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{color:var(--color-default-text);letter-spacing:0}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{position:relative;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 4);height:18px;align-items:center;background-color:var(--gray500);border-radius:var(--space-unit);color:var(--gray500);cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){box-shadow:var(--shadow-focus-primary);outline:none}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);align-items:center;justify-content:center;margin:0;background-color:var(--color-white);border-radius:7px;box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type="checkbox"].sc-z-toggle-switch{position:absolute;z-index:-1;opacity:0;pointer-events:none}`;const o=class{constructor(s){e(this,s);this.toggleClick=t(this,"toggleClick",7);this.disabled=false;this.labelPosition=i.LEFT;this.checked=false;this.htmlid=`toggle-switch-id-${a()}`}emitToggleClick(){this.toggleClick.emit({id:this.htmlid,checked:this.checked})}handleClick(e){if(this.disabled){return}this.checked=e.target.checked;this.emitToggleClick()}render(){return s(c,{key:"0370a36488a57e5ac92c296ce0fcc140cc8c56eb"},s("input",{key:"3364210d02cebfd7d2ad14407a557c52aa82686a",id:this.htmlid,type:"checkbox",checked:this.checked,disabled:this.disabled,onChange:this.handleClick.bind(this)}),s("label",{key:"07519e6cbe8f44d131909d1023b602e74b6cdf80",htmlFor:this.htmlid,class:{[this.labelPosition]:true,disabled:this.disabled}},s("span",{key:"3d460ac03c1788fdf99f116e8792f2b0f95f1857"},s("slot",{key:"0eb371292202e3eefd737ed79f3acefeda2fab91"})),s("span",{key:"5912b4da7abed8f994dd7224a09872d5c173160a",class:{container:true,disabled:this.disabled,checked:this.checked}},s("span",{key:"893ebce8124fdbcd00fbaf0976757a15b59a5b6e",class:"circle"},this.checked&&s("z-icon",{key:"f6d826da0f8c46f1e64fc0efa2a55fda64685f55",width:12,height:12,name:"checkmark"})))))}};o.style=l();export{o as z_toggle_switch};
2
- //# sourceMappingURL=p-32bc925a.entry.js.map
1
+ import{r as e,c as t,h as c,H as s}from"./p-BcDWN4F1.js";import{k as i}from"./p-DdetsoIY.js";import{r as a}from"./p-DPrEzmhI.js";import"./p-Q-tWjk7P.js";const l=()=>`.sc-z-toggle-switch-h{position:relative;display:inline-flex;font-family:var(--font-family-sans);font-weight:var(--font-rg)}label.sc-z-toggle-switch{display:flex;flex-direction:row;align-items:center;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{color:var(--color-default-text);letter-spacing:0}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{position:relative;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 4);height:18px;align-items:center;background-color:var(--gray500);border-radius:var(--space-unit);color:var(--gray500);cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){box-shadow:var(--shadow-focus-primary);outline:none}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);align-items:center;justify-content:center;margin:0;background-color:var(--color-white);border-radius:7px;box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type="checkbox"].sc-z-toggle-switch{position:absolute;z-index:-1;opacity:0;pointer-events:none}`;const o=class{constructor(c){e(this,c);this.toggleClick=t(this,"toggleClick",7);this.disabled=false;this.labelPosition=i.LEFT;this.checked=false;this.htmlid=`toggle-switch-id-${a()}`}emitToggleClick(){this.toggleClick.emit({id:this.htmlid,checked:this.checked})}handleClick(e){if(this.disabled){return}this.checked=e.target.checked;this.emitToggleClick()}render(){return c(s,{key:"c682159ebad808a9e448a1a200fcc9ce49e3a2ad"},c("input",{key:"5a22ee912aeb8a212820d8d3f7b41a6029bfa530",id:this.htmlid,type:"checkbox",checked:this.checked,disabled:this.disabled,onChange:this.handleClick.bind(this)}),c("label",{key:"6c36dd15bc8fa1fcd1443cb01fe442644de8d87d",htmlFor:this.htmlid,class:{[this.labelPosition]:true,disabled:this.disabled}},c("span",{key:"b9cbb73e0de30c219443c2430fb7cb09a03ffa32"},c("slot",{key:"6b73da88f943d4c304ff3cd22c99145b2393541e"})),c("span",{key:"d7ecff8d30e2f6a43c3f010c53a6fb5fd00f7a78",class:{container:true,disabled:this.disabled,checked:this.checked}},c("span",{key:"5d4c5aba273711d3f06b6622e119bd6e81137e3d",class:"circle"},this.checked&&c("z-icon",{key:"c6dfea8a74fc0ef446588ac7c36bf06e3549f814",width:12,height:12,name:"checkmark"})))))}};o.style=l();export{o as z_toggle_switch};
2
+ //# sourceMappingURL=p-059963b6.entry.js.map