@zanichelli/albe-web-components 8.1.0-RC1 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (512) hide show
  1. package/dist/cjs/index-06609e4d.js +17 -0
  2. package/dist/cjs/index-1872a74b.js +34 -0
  3. package/dist/cjs/index-23d8692f.js +21 -0
  4. package/dist/cjs/index-27ba9f7c.js +79 -0
  5. package/dist/cjs/index-2b53b57b.js +22 -0
  6. package/dist/cjs/index-46406671.js +67 -0
  7. package/dist/cjs/{index-10e0d8b7.js → index-4e1850d7.js} +5 -15
  8. package/dist/cjs/index-8834c5a3.js +41 -0
  9. package/dist/cjs/index-92a9f89e.js +21 -0
  10. package/dist/cjs/index-9648272b.js +21 -0
  11. package/dist/cjs/index-977baebe.js +49 -0
  12. package/dist/cjs/index-a9764c98.js +17 -0
  13. package/dist/cjs/index-bbd48475.js +20 -0
  14. package/dist/cjs/index-d550acd3.js +70 -0
  15. package/dist/cjs/index-e3299e0a.js +32 -8
  16. package/dist/cjs/index-e5daa5a5.js +17 -0
  17. package/dist/cjs/index-ebbadaf8.js +21 -0
  18. package/dist/cjs/index-f43320ff.js +29 -0
  19. package/dist/cjs/index.cjs.js +8 -14
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/{utils-dd90aed2.js → utils-aa00c0cc.js} +1 -1
  22. package/dist/cjs/{utils-3b4947cd.js → utils-b0293a5e.js} +1 -1
  23. package/dist/cjs/web-components-library.cjs.js +1 -1
  24. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  25. package/dist/cjs/z-app-header_11.cjs.entry.js +6 -5
  26. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  27. package/dist/cjs/z-avatar.cjs.entry.js +1 -1
  28. package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
  29. package/dist/cjs/z-card.cjs.entry.js +1 -1
  30. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  31. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  32. package/dist/cjs/z-combobox.cjs.entry.js +2 -2
  33. package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
  34. package/dist/cjs/z-cover-hero.cjs.entry.js +1 -1
  35. package/dist/cjs/z-date-picker.cjs.entry.js +2 -2
  36. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1 -1
  37. package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
  38. package/dist/cjs/z-file.cjs.entry.js +1 -1
  39. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  40. package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
  41. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  42. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  43. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  44. package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
  45. package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
  46. package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
  47. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
  48. package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
  49. package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  50. package/dist/cjs/z-otp.cjs.entry.js +1 -1
  51. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  52. package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
  53. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  54. package/dist/cjs/z-range-picker.cjs.entry.js +2 -2
  55. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  56. package/dist/cjs/z-select.cjs.entry.js +2 -2
  57. package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
  58. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  59. package/dist/cjs/z-table-body.cjs.entry.js +3 -17
  60. package/dist/cjs/z-table-cell.cjs.entry.js +4 -29
  61. package/dist/cjs/z-table-deprecated.cjs.entry.js +91 -0
  62. package/dist/cjs/z-table-empty-box.cjs.entry.js +3 -24
  63. package/dist/cjs/z-table-expanded-row.cjs.entry.js +3 -12
  64. package/dist/cjs/z-table-footer.cjs.entry.js +3 -16
  65. package/dist/cjs/z-table-head.cjs.entry.js +3 -16
  66. package/dist/cjs/z-table-header-row.cjs.entry.js +3 -15
  67. package/dist/cjs/z-table-header.cjs.entry.js +5 -74
  68. package/dist/cjs/z-table-row.cjs.entry.js +4 -36
  69. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +3 -12
  70. package/dist/cjs/z-table.cjs.entry.js +43 -57
  71. package/dist/cjs/z-tbody.cjs.entry.js +10 -0
  72. package/dist/cjs/z-td.cjs.entry.js +11 -0
  73. package/dist/cjs/z-tfoot.cjs.entry.js +10 -0
  74. package/dist/cjs/z-th.cjs.entry.js +11 -0
  75. package/dist/cjs/z-thead.cjs.entry.js +10 -0
  76. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  77. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  78. package/dist/cjs/z-toggle-switch.cjs.entry.js +2 -2
  79. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  80. package/dist/cjs/z-tr.cjs.entry.js +15 -0
  81. package/dist/collection/beans/index.js +5 -15
  82. package/dist/collection/collection-manifest.json +18 -12
  83. package/dist/collection/components/inputs/z-input/index.js +3 -2
  84. package/dist/collection/components/inputs/z-input/styles.css +4 -0
  85. package/dist/collection/components/table/cells/z-td/index.js +143 -0
  86. package/dist/collection/components/table/cells/z-td/styles.css +59 -0
  87. package/dist/collection/components/table/cells/z-th/index.js +187 -0
  88. package/dist/collection/components/table/cells/z-th/styles.css +88 -0
  89. package/dist/collection/components/table/z-table/index.js +115 -0
  90. package/dist/collection/components/table/z-table/styles.css +22 -0
  91. package/dist/collection/components/table/z-tbody/index.js +22 -0
  92. package/dist/collection/components/table/z-tbody/styles.css +4 -0
  93. package/dist/collection/components/table/z-tfoot/index.js +50 -0
  94. package/dist/collection/components/table/z-tfoot/styles.css +13 -0
  95. package/dist/collection/components/table/z-thead/index.js +50 -0
  96. package/dist/collection/components/table/z-thead/styles.css +19 -0
  97. package/dist/collection/components/table/z-tr/index.js +133 -0
  98. package/dist/collection/components/table/z-tr/styles.css +87 -0
  99. package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-body/index.js +3 -0
  100. package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-cell/index.js +9 -11
  101. package/dist/collection/{components/z-table/z-table → deprecated/z-table-deprecated/z-table-deprecated}/index.js +13 -2
  102. package/dist/collection/{components/z-table/z-table → deprecated/z-table-deprecated/z-table-deprecated}/styles.css +14 -14
  103. package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-empty-box/index.js +3 -0
  104. package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-expanded-row/index.js +3 -0
  105. package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-footer/index.js +3 -0
  106. package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-head/index.js +3 -0
  107. package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-header/index.js +27 -39
  108. package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-header-row/index.js +3 -0
  109. package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-row/index.js +3 -0
  110. package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-sticky-footer/index.js +1 -0
  111. package/dist/esm/index-0e0fa88d.js +19 -0
  112. package/dist/esm/index-16d8ed5b.js +39 -0
  113. package/dist/esm/index-1ae1c122.js +15 -0
  114. package/dist/esm/index-272fc060.js +32 -0
  115. package/dist/esm/index-2c800f19.js +20 -0
  116. package/dist/esm/index-2cdac489.js +27 -0
  117. package/dist/esm/index-6d83248c.js +19 -0
  118. package/dist/esm/index-77b7d7ae.js +47 -0
  119. package/dist/esm/index-83736b34.js +15 -0
  120. package/dist/esm/index-8c7b48bc.js +19 -0
  121. package/dist/esm/{index-c53ca6bc.js → index-9c5d63ea.js} +6 -16
  122. package/dist/esm/index-a2ca4b97.js +32 -8
  123. package/dist/esm/index-a66b7e8a.js +65 -0
  124. package/dist/esm/index-db083023.js +77 -0
  125. package/dist/esm/index-e2c8b8b5.js +18 -0
  126. package/dist/esm/index-f171ca51.js +15 -0
  127. package/dist/esm/index-f98f4ad3.js +19 -0
  128. package/dist/esm/index-fff6ed17.js +68 -0
  129. package/dist/esm/index.js +2 -2
  130. package/dist/esm/loader.js +1 -1
  131. package/dist/esm/{utils-412ebe25.js → utils-cd86cb21.js} +1 -1
  132. package/dist/esm/{utils-4db4ed1f.js → utils-d7278f26.js} +1 -1
  133. package/dist/esm/web-components-library.js +1 -1
  134. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  135. package/dist/esm/z-app-header_11.entry.js +6 -5
  136. package/dist/esm/z-aria-alert.entry.js +1 -1
  137. package/dist/esm/z-avatar.entry.js +1 -1
  138. package/dist/esm/z-breadcrumb.entry.js +2 -2
  139. package/dist/esm/z-card.entry.js +1 -1
  140. package/dist/esm/z-carousel.entry.js +1 -1
  141. package/dist/esm/z-chip.entry.js +2 -2
  142. package/dist/esm/z-combobox.entry.js +2 -2
  143. package/dist/esm/z-contextual-menu.entry.js +1 -1
  144. package/dist/esm/z-cover-hero.entry.js +1 -1
  145. package/dist/esm/z-date-picker.entry.js +2 -2
  146. package/dist/esm/z-dragdrop-area_2.entry.js +1 -1
  147. package/dist/esm/z-file-upload.entry.js +2 -2
  148. package/dist/esm/z-file.entry.js +1 -1
  149. package/dist/esm/z-info-reveal.entry.js +1 -1
  150. package/dist/esm/z-messages-pocket.entry.js +1 -1
  151. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  152. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  153. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  154. package/dist/esm/z-myz-card-info.entry.js +2 -2
  155. package/dist/esm/z-myz-card_4.entry.js +1 -1
  156. package/dist/esm/z-myz-list-item.entry.js +2 -2
  157. package/dist/esm/z-navigation-tab-link.entry.js +1 -1
  158. package/dist/esm/z-navigation-tab.entry.js +1 -1
  159. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  160. package/dist/esm/z-otp.entry.js +1 -1
  161. package/dist/esm/z-pagination.entry.js +1 -1
  162. package/dist/esm/z-pocket_3.entry.js +2 -2
  163. package/dist/esm/z-popover.entry.js +1 -1
  164. package/dist/esm/z-range-picker.entry.js +2 -2
  165. package/dist/esm/z-section-title.entry.js +1 -1
  166. package/dist/esm/z-select.entry.js +2 -2
  167. package/dist/esm/z-skip-to-content.entry.js +2 -2
  168. package/dist/esm/z-slideshow.entry.js +2 -2
  169. package/dist/esm/z-table-body.entry.js +2 -20
  170. package/dist/esm/z-table-cell.entry.js +3 -32
  171. package/dist/esm/z-table-deprecated.entry.js +87 -0
  172. package/dist/esm/z-table-empty-box.entry.js +2 -27
  173. package/dist/esm/z-table-expanded-row.entry.js +2 -15
  174. package/dist/esm/z-table-footer.entry.js +2 -19
  175. package/dist/esm/z-table-head.entry.js +2 -19
  176. package/dist/esm/z-table-header-row.entry.js +2 -18
  177. package/dist/esm/z-table-header.entry.js +4 -77
  178. package/dist/esm/z-table-row.entry.js +3 -39
  179. package/dist/esm/z-table-sticky-footer.entry.js +2 -15
  180. package/dist/esm/z-table.entry.js +46 -60
  181. package/dist/esm/z-tbody.entry.js +2 -0
  182. package/dist/esm/z-td.entry.js +3 -0
  183. package/dist/esm/z-tfoot.entry.js +2 -0
  184. package/dist/esm/z-th.entry.js +3 -0
  185. package/dist/esm/z-thead.entry.js +2 -0
  186. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  187. package/dist/esm/z-toast-notification.entry.js +1 -1
  188. package/dist/esm/z-toggle-switch.entry.js +2 -2
  189. package/dist/esm/z-tooltip.entry.js +1 -1
  190. package/dist/esm/z-tr.entry.js +7 -0
  191. package/dist/types/beans/index.d.ts +4 -13
  192. package/dist/types/components/buttons/z-button/index.d.ts +0 -0
  193. package/dist/types/components/buttons/z-button-sort/index.d.ts +0 -0
  194. package/dist/types/components/buttons/z-chip/index.d.ts +0 -0
  195. package/dist/types/components/buttons/z-toggle-button/index.d.ts +0 -0
  196. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +0 -0
  197. package/dist/types/components/date-picker/utils.d.ts +0 -0
  198. package/dist/types/components/date-picker/z-date-picker/index.d.ts +0 -0
  199. package/dist/types/components/date-picker/z-range-picker/index.d.ts +0 -0
  200. package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -0
  201. package/dist/types/components/file-upload/z-file/index.d.ts +0 -0
  202. package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -0
  203. package/dist/types/components/icons/icons.d.ts +0 -0
  204. package/dist/types/components/icons/z-icon/index.d.ts +0 -0
  205. package/dist/types/components/index.d.ts +0 -0
  206. package/dist/types/components/indicators/z-stepper/index.d.ts +0 -0
  207. package/dist/types/components/indicators/z-stepper-item/index.d.ts +0 -0
  208. package/dist/types/components/inputs/z-combobox/index.d.ts +0 -0
  209. package/dist/types/components/inputs/z-input/index.d.ts +0 -0
  210. package/dist/types/components/inputs/z-input-message/index.d.ts +0 -0
  211. package/dist/types/components/inputs/z-searchbar/index.d.ts +0 -0
  212. package/dist/types/components/inputs/z-select/index.d.ts +0 -0
  213. package/dist/types/components/list/z-list/index.d.ts +0 -0
  214. package/dist/types/components/list/z-list-element/index.d.ts +0 -0
  215. package/dist/types/components/list/z-list-group/index.d.ts +0 -0
  216. package/dist/types/components/list/z-toast-notification-list/index.d.ts +0 -0
  217. package/dist/types/components/logo/z-logo/index.d.ts +0 -0
  218. package/dist/types/components/modal/z-modal/index.d.ts +0 -0
  219. package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +0 -0
  220. package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +0 -0
  221. package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +0 -0
  222. package/dist/types/components/navigation/z-app-header/index.d.ts +0 -0
  223. package/dist/types/components/navigation/z-link/index.d.ts +0 -0
  224. package/dist/types/components/navigation/z-menu/index.d.ts +0 -0
  225. package/dist/types/components/navigation/z-menu-section/index.d.ts +0 -0
  226. package/dist/types/components/notification/z-info-box/index.d.ts +0 -0
  227. package/dist/types/components/notification/z-notification/index.d.ts +0 -0
  228. package/dist/types/components/notification/z-toast-notification/index.d.ts +0 -0
  229. package/dist/types/components/notification/z-tooltip/index.d.ts +0 -0
  230. package/dist/types/components/panel/z-panel-elem/index.d.ts +0 -0
  231. package/dist/types/components/table/cells/z-td/index.d.ts +36 -0
  232. package/dist/types/components/table/cells/z-th/index.d.ts +52 -0
  233. package/dist/types/components/table/z-table/index.d.ts +37 -0
  234. package/dist/types/components/table/z-tbody/index.d.ts +7 -0
  235. package/dist/types/components/table/z-tfoot/index.d.ts +11 -0
  236. package/dist/types/components/table/z-thead/index.d.ts +11 -0
  237. package/dist/types/components/table/z-tr/index.d.ts +41 -0
  238. package/dist/types/components/z-anchor-navigation/index.d.ts +0 -0
  239. package/dist/types/components/z-aria-alert/index.d.ts +0 -0
  240. package/dist/types/components/z-avatar/index.d.ts +0 -0
  241. package/dist/types/components/z-card/index.d.ts +0 -0
  242. package/dist/types/components/z-carousel/index.d.ts +0 -0
  243. package/dist/types/components/z-contextual-menu/index.d.ts +0 -0
  244. package/dist/types/components/z-cover-hero/index.d.ts +0 -0
  245. package/dist/types/components/z-divider/index.d.ts +0 -0
  246. package/dist/types/components/z-ghost-loading/index.d.ts +0 -0
  247. package/dist/types/components/z-info-reveal/index.d.ts +0 -0
  248. package/dist/types/components/z-offcanvas/index.d.ts +0 -0
  249. package/dist/types/components/z-pagination/index.d.ts +0 -0
  250. package/dist/types/components/z-popover/index.d.ts +0 -0
  251. package/dist/types/components/z-section-title/index.d.ts +0 -0
  252. package/dist/types/components/z-skip-to-content/index.d.ts +0 -0
  253. package/dist/types/components/z-tag/index.d.ts +0 -0
  254. package/dist/types/components/z-visually-hidden/index.d.ts +0 -0
  255. package/dist/types/components.d.ts +244 -118
  256. package/dist/types/constants/breakpoints.d.ts +0 -0
  257. package/dist/types/constants/icons.d.ts +0 -0
  258. package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-body/index.d.ts +3 -0
  259. package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-cell/index.d.ts +4 -2
  260. package/dist/types/{components/z-table/z-table → deprecated/z-table-deprecated/z-table-deprecated}/index.d.ts +14 -3
  261. package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-empty-box/index.d.ts +3 -0
  262. package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-expanded-row/index.d.ts +3 -0
  263. package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-footer/index.d.ts +3 -0
  264. package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-head/index.d.ts +3 -0
  265. package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-header/index.d.ts +6 -4
  266. package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-header-row/index.d.ts +3 -0
  267. package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-row/index.d.ts +3 -0
  268. package/dist/types/{components/z-table → deprecated/z-table-deprecated}/z-table-sticky-footer/index.d.ts +1 -0
  269. package/dist/types/index.d.ts +0 -0
  270. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +0 -0
  271. package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +0 -0
  272. package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +0 -0
  273. package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +0 -0
  274. package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +0 -0
  275. package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +0 -0
  276. package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +0 -0
  277. package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +0 -0
  278. package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +0 -0
  279. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +0 -0
  280. package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +0 -0
  281. package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +0 -0
  282. package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +0 -0
  283. package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +0 -0
  284. package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +0 -0
  285. package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +0 -0
  286. package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +0 -0
  287. package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +0 -0
  288. package/dist/types/snowflakes/myz/z-alert/index.d.ts +0 -0
  289. package/dist/types/snowflakes/myz/z-otp/index.d.ts +0 -0
  290. package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +0 -0
  291. package/dist/types/stencil-public-runtime.d.ts +0 -0
  292. package/dist/types/utils/utils.d.ts +0 -0
  293. package/dist/web-components-library/index.esm.js +1 -1
  294. package/dist/web-components-library/{p-d4afc10f.entry.js → p-04b9260a.entry.js} +1 -1
  295. package/dist/web-components-library/p-051b9116.entry.js +1 -0
  296. package/dist/web-components-library/p-11976457.entry.js +1 -0
  297. package/{www/build/p-8ff9de86.entry.js → dist/web-components-library/p-145eace8.entry.js} +1 -1
  298. package/dist/web-components-library/p-152fc58b.entry.js +1 -0
  299. package/dist/web-components-library/{p-4367f978.entry.js → p-154596ad.js} +1 -1
  300. package/dist/web-components-library/{p-d96d4f30.entry.js → p-15738cb6.entry.js} +1 -1
  301. package/dist/web-components-library/{p-a0345d42.entry.js → p-15dca231.entry.js} +1 -1
  302. package/dist/web-components-library/p-1a98992a.entry.js +1 -0
  303. package/dist/web-components-library/{p-5aee5484.entry.js → p-1d7b6787.entry.js} +1 -1
  304. package/dist/web-components-library/p-220254b4.entry.js +1 -0
  305. package/dist/web-components-library/{p-661905c0.entry.js → p-2642bb12.entry.js} +1 -1
  306. package/dist/web-components-library/{p-3f55dce6.entry.js → p-2773516d.js} +1 -1
  307. package/dist/web-components-library/{p-bb0fe7bc.entry.js → p-2b3cf51a.js} +1 -1
  308. package/{www/build/p-e663af8b.entry.js → dist/web-components-library/p-2d609e87.entry.js} +1 -1
  309. package/dist/web-components-library/p-2fab41fb.entry.js +1 -0
  310. package/dist/web-components-library/p-30771d25.js +1 -0
  311. package/dist/web-components-library/{p-9b4b0fbb.entry.js → p-32c4383b.entry.js} +1 -1
  312. package/dist/web-components-library/{p-b0141c4d.entry.js → p-33d41e9f.entry.js} +1 -1
  313. package/{www/build/p-f3fce575.entry.js → dist/web-components-library/p-350dcf6d.entry.js} +1 -1
  314. package/dist/web-components-library/p-37ffe8b5.entry.js +1 -0
  315. package/dist/web-components-library/p-3fe7ffbe.entry.js +1 -0
  316. package/{www/build/p-bee6bf99.entry.js → dist/web-components-library/p-43235890.entry.js} +1 -1
  317. package/dist/web-components-library/p-43478f5b.entry.js +1 -0
  318. package/dist/web-components-library/p-4ae2fe27.js +1 -0
  319. package/dist/web-components-library/{p-482c478a.entry.js → p-4df0eb86.entry.js} +1 -1
  320. package/dist/web-components-library/{p-47c095c2.entry.js → p-5ab0be3f.entry.js} +1 -1
  321. package/dist/web-components-library/p-609186cd.entry.js +1 -0
  322. package/dist/web-components-library/p-62b89a37.js +1 -0
  323. package/dist/web-components-library/{p-0e92e0d9.entry.js → p-6409024c.js} +1 -1
  324. package/dist/web-components-library/p-64256f3d.entry.js +1 -0
  325. package/dist/web-components-library/p-64759e9f.js +1 -0
  326. package/dist/web-components-library/p-6477d18a.entry.js +1 -0
  327. package/{www/build/p-d8ea70ed.entry.js → dist/web-components-library/p-64acd74d.entry.js} +1 -1
  328. package/dist/web-components-library/p-64d902c6.entry.js +1 -0
  329. package/dist/web-components-library/p-6d723eea.entry.js +1 -0
  330. package/dist/web-components-library/p-74f343ce.js +1 -0
  331. package/dist/web-components-library/{p-37e050bd.entry.js → p-75b94adb.js} +1 -1
  332. package/{www/build/p-e4d78452.entry.js → dist/web-components-library/p-7d181b0a.entry.js} +1 -1
  333. package/dist/web-components-library/p-875dc6a3.js +1 -0
  334. package/dist/web-components-library/{p-0aa025fa.entry.js → p-88276662.entry.js} +1 -1
  335. package/dist/web-components-library/p-8878929e.js +1 -0
  336. package/dist/web-components-library/{p-374d6f57.entry.js → p-89ad35df.entry.js} +1 -1
  337. package/{www/build/p-c18b8fb3.js → dist/web-components-library/p-8c6b1f2c.js} +1 -1
  338. package/dist/web-components-library/p-8e334a37.entry.js +1 -0
  339. package/dist/web-components-library/{p-757c4b4d.entry.js → p-8e7891d0.entry.js} +1 -1
  340. package/dist/web-components-library/{p-e4e5a652.entry.js → p-91a29198.entry.js} +1 -1
  341. package/dist/web-components-library/{p-e41e28f7.entry.js → p-92828b84.entry.js} +1 -1
  342. package/dist/web-components-library/{p-89d048ff.entry.js → p-94550647.entry.js} +1 -1
  343. package/dist/web-components-library/p-97481f35.entry.js +1 -0
  344. package/dist/web-components-library/{p-81e6e4c8.entry.js → p-9eafcdd4.entry.js} +1 -1
  345. package/dist/web-components-library/p-a13b6a71.entry.js +1 -0
  346. package/dist/web-components-library/p-a4254712.entry.js +1 -0
  347. package/dist/web-components-library/p-a4711d6d.js +1 -0
  348. package/dist/web-components-library/p-ab4773c6.js +1 -0
  349. package/dist/web-components-library/p-ac9881cd.entry.js +1 -0
  350. package/dist/web-components-library/{p-ab1799fe.entry.js → p-b5e790d7.entry.js} +1 -1
  351. package/dist/web-components-library/p-b6f0020b.js +1 -0
  352. package/dist/web-components-library/{p-3ea868e0.entry.js → p-b7d13c6f.entry.js} +1 -1
  353. package/{www/build/p-c59c6c78.entry.js → dist/web-components-library/p-b851ced1.entry.js} +1 -1
  354. package/dist/web-components-library/{p-0f8f488c.entry.js → p-bc8d30ce.entry.js} +1 -1
  355. package/dist/web-components-library/{p-e7c7ac3d.entry.js → p-c35e1265.entry.js} +1 -1
  356. package/dist/web-components-library/p-c76e27b4.entry.js +1 -0
  357. package/dist/web-components-library/p-cd14f3f5.entry.js +1 -0
  358. package/dist/web-components-library/{p-aa228ddb.entry.js → p-d1e9a84b.entry.js} +1 -1
  359. package/dist/web-components-library/{p-d9c76001.entry.js → p-d2ed2111.entry.js} +1 -1
  360. package/dist/web-components-library/p-d60b4bc5.entry.js +1 -0
  361. package/dist/web-components-library/p-dc974567.entry.js +1 -0
  362. package/dist/web-components-library/{p-29426408.entry.js → p-dca95f65.entry.js} +1 -1
  363. package/{www/build/p-78c5f1a4.entry.js → dist/web-components-library/p-e6807d13.entry.js} +1 -1
  364. package/{www/build/p-856c6f33.entry.js → dist/web-components-library/p-f3da70cd.entry.js} +1 -1
  365. package/dist/web-components-library/p-f62ca674.js +1 -0
  366. package/dist/web-components-library/p-f6a7b40e.js +1 -0
  367. package/dist/web-components-library/p-fb5450a7.js +1 -0
  368. package/dist/web-components-library/{p-dd515f64.entry.js → p-fb9f2761.entry.js} +1 -1
  369. package/{www/build/p-a2d11471.entry.js → dist/web-components-library/p-ffbb02d3.entry.js} +1 -1
  370. package/dist/web-components-library/web-components-library.css +0 -0
  371. package/dist/web-components-library/web-components-library.esm.js +1 -1
  372. package/loader/cdn.js +0 -0
  373. package/loader/index.cjs.js +0 -0
  374. package/loader/index.d.ts +0 -0
  375. package/loader/index.es2017.js +0 -0
  376. package/loader/index.js +0 -0
  377. package/loader/package.json +0 -0
  378. package/package.json +1 -1
  379. package/react/components.d.ts +7 -1
  380. package/react/components.js +9 -3
  381. package/react/components.js.map +1 -1
  382. package/readme.md +2 -2
  383. package/www/build/index.esm.js +1 -1
  384. package/www/build/{p-d4afc10f.entry.js → p-04b9260a.entry.js} +1 -1
  385. package/www/build/p-051b9116.entry.js +1 -0
  386. package/www/build/p-11976457.entry.js +1 -0
  387. package/{dist/web-components-library/p-8ff9de86.entry.js → www/build/p-145eace8.entry.js} +1 -1
  388. package/www/build/p-152fc58b.entry.js +1 -0
  389. package/www/build/{p-4367f978.entry.js → p-154596ad.js} +1 -1
  390. package/www/build/{p-d96d4f30.entry.js → p-15738cb6.entry.js} +1 -1
  391. package/www/build/{p-a0345d42.entry.js → p-15dca231.entry.js} +1 -1
  392. package/www/build/p-1a98992a.entry.js +1 -0
  393. package/www/build/{p-5aee5484.entry.js → p-1d7b6787.entry.js} +1 -1
  394. package/www/build/p-220254b4.entry.js +1 -0
  395. package/www/build/{p-661905c0.entry.js → p-2642bb12.entry.js} +1 -1
  396. package/www/build/{p-3f55dce6.entry.js → p-2773516d.js} +1 -1
  397. package/www/build/{p-bb0fe7bc.entry.js → p-2b3cf51a.js} +1 -1
  398. package/{dist/web-components-library/p-e663af8b.entry.js → www/build/p-2d609e87.entry.js} +1 -1
  399. package/www/build/p-2fab41fb.entry.js +1 -0
  400. package/www/build/p-30771d25.js +1 -0
  401. package/www/build/{p-9b4b0fbb.entry.js → p-32c4383b.entry.js} +1 -1
  402. package/www/build/{p-b0141c4d.entry.js → p-33d41e9f.entry.js} +1 -1
  403. package/{dist/web-components-library/p-f3fce575.entry.js → www/build/p-350dcf6d.entry.js} +1 -1
  404. package/www/build/p-37ffe8b5.entry.js +1 -0
  405. package/www/build/p-3fe7ffbe.entry.js +1 -0
  406. package/{dist/web-components-library/p-bee6bf99.entry.js → www/build/p-43235890.entry.js} +1 -1
  407. package/www/build/p-43478f5b.entry.js +1 -0
  408. package/www/build/p-4ae2fe27.js +1 -0
  409. package/www/build/{p-482c478a.entry.js → p-4df0eb86.entry.js} +1 -1
  410. package/www/build/{p-47c095c2.entry.js → p-5ab0be3f.entry.js} +1 -1
  411. package/www/build/p-609186cd.entry.js +1 -0
  412. package/www/build/p-62b89a37.js +1 -0
  413. package/www/build/{p-0e92e0d9.entry.js → p-6409024c.js} +1 -1
  414. package/www/build/p-64256f3d.entry.js +1 -0
  415. package/www/build/p-64759e9f.js +1 -0
  416. package/www/build/p-6477d18a.entry.js +1 -0
  417. package/{dist/web-components-library/p-d8ea70ed.entry.js → www/build/p-64acd74d.entry.js} +1 -1
  418. package/www/build/p-64d902c6.entry.js +1 -0
  419. package/www/build/p-6d723eea.entry.js +1 -0
  420. package/www/build/p-74f343ce.js +1 -0
  421. package/www/build/{p-37e050bd.entry.js → p-75b94adb.js} +1 -1
  422. package/{dist/web-components-library/p-e4d78452.entry.js → www/build/p-7d181b0a.entry.js} +1 -1
  423. package/www/build/p-875dc6a3.js +1 -0
  424. package/www/build/{p-0aa025fa.entry.js → p-88276662.entry.js} +1 -1
  425. package/www/build/p-8878929e.js +1 -0
  426. package/www/build/{p-374d6f57.entry.js → p-89ad35df.entry.js} +1 -1
  427. package/{dist/web-components-library/p-c18b8fb3.js → www/build/p-8c6b1f2c.js} +1 -1
  428. package/www/build/p-8e334a37.entry.js +1 -0
  429. package/www/build/{p-757c4b4d.entry.js → p-8e7891d0.entry.js} +1 -1
  430. package/www/build/{p-e4e5a652.entry.js → p-91a29198.entry.js} +1 -1
  431. package/www/build/{p-e41e28f7.entry.js → p-92828b84.entry.js} +1 -1
  432. package/www/build/{p-89d048ff.entry.js → p-94550647.entry.js} +1 -1
  433. package/www/build/p-97481f35.entry.js +1 -0
  434. package/www/build/{p-81e6e4c8.entry.js → p-9eafcdd4.entry.js} +1 -1
  435. package/www/build/p-a13b6a71.entry.js +1 -0
  436. package/www/build/p-a4254712.entry.js +1 -0
  437. package/www/build/p-a4711d6d.js +1 -0
  438. package/www/build/p-ab4773c6.js +1 -0
  439. package/www/build/p-ac9881cd.entry.js +1 -0
  440. package/www/build/{p-ab1799fe.entry.js → p-b5e790d7.entry.js} +1 -1
  441. package/www/build/p-b6f0020b.js +1 -0
  442. package/www/build/{p-3ea868e0.entry.js → p-b7d13c6f.entry.js} +1 -1
  443. package/{dist/web-components-library/p-c59c6c78.entry.js → www/build/p-b851ced1.entry.js} +1 -1
  444. package/www/build/{p-0f8f488c.entry.js → p-bc8d30ce.entry.js} +1 -1
  445. package/www/build/{p-e7c7ac3d.entry.js → p-c35e1265.entry.js} +1 -1
  446. package/www/build/p-c76e27b4.entry.js +1 -0
  447. package/www/build/p-cd14f3f5.entry.js +1 -0
  448. package/www/build/{p-aa228ddb.entry.js → p-d1e9a84b.entry.js} +1 -1
  449. package/www/build/{p-d9c76001.entry.js → p-d2ed2111.entry.js} +1 -1
  450. package/www/build/p-d60b4bc5.entry.js +1 -0
  451. package/www/build/p-dc974567.entry.js +1 -0
  452. package/www/build/{p-29426408.entry.js → p-dca95f65.entry.js} +1 -1
  453. package/{dist/web-components-library/p-78c5f1a4.entry.js → www/build/p-e6807d13.entry.js} +1 -1
  454. package/{dist/web-components-library/p-856c6f33.entry.js → www/build/p-f3da70cd.entry.js} +1 -1
  455. package/www/build/p-f62ca674.js +1 -0
  456. package/www/build/p-f6a7b40e.js +1 -0
  457. package/www/build/p-fb5450a7.js +1 -0
  458. package/www/build/{p-dd515f64.entry.js → p-fb9f2761.entry.js} +1 -1
  459. package/www/build/p-fbcf172a.js +1 -0
  460. package/{dist/web-components-library/p-a2d11471.entry.js → www/build/p-ffbb02d3.entry.js} +1 -1
  461. package/www/build/web-components-library.css +0 -0
  462. package/www/build/web-components-library.esm.js +1 -1
  463. package/www/build/web-components-library.js +0 -0
  464. package/www/host.config.json +0 -0
  465. package/www/index.html +1 -1
  466. package/CHANGELOG.md +0 -2575
  467. package/dist/cjs/z-book-card.cjs.entry.js +0 -115
  468. package/dist/collection/components/z-book-card/index.js +0 -308
  469. package/dist/collection/components/z-book-card/styles.css +0 -363
  470. package/dist/esm/z-book-card.entry.js +0 -111
  471. package/dist/types/components/z-book-card/index.d.ts +0 -75
  472. package/dist/web-components-library/p-03ee7c14.entry.js +0 -1
  473. package/dist/web-components-library/p-095ce6ef.entry.js +0 -1
  474. package/dist/web-components-library/p-3be171d0.entry.js +0 -1
  475. package/dist/web-components-library/p-64fa04a0.entry.js +0 -1
  476. package/dist/web-components-library/p-6a459468.entry.js +0 -1
  477. package/dist/web-components-library/p-800ca36a.entry.js +0 -1
  478. package/dist/web-components-library/p-8c3eeb55.js +0 -1
  479. package/dist/web-components-library/p-9f1b9bbc.entry.js +0 -1
  480. package/dist/web-components-library/p-c4417a91.entry.js +0 -1
  481. package/dist/web-components-library/p-d00cf0ff.entry.js +0 -1
  482. package/dist/web-components-library/p-e936bf5f.entry.js +0 -1
  483. package/dist/web-components-library/p-eaa4eba8.entry.js +0 -1
  484. package/dist/web-components-library/p-f0cd78f2.js +0 -1
  485. package/dist/web-components-library/p-fed42db6.entry.js +0 -1
  486. package/src-react/index.ts +0 -1
  487. package/www/build/p-03ee7c14.entry.js +0 -1
  488. package/www/build/p-095ce6ef.entry.js +0 -1
  489. package/www/build/p-3be171d0.entry.js +0 -1
  490. package/www/build/p-64fa04a0.entry.js +0 -1
  491. package/www/build/p-6a459468.entry.js +0 -1
  492. package/www/build/p-800ca36a.entry.js +0 -1
  493. package/www/build/p-8c3eeb55.js +0 -1
  494. package/www/build/p-9f1b9bbc.entry.js +0 -1
  495. package/www/build/p-c4417a91.entry.js +0 -1
  496. package/www/build/p-d00cf0ff.entry.js +0 -1
  497. package/www/build/p-e936bf5f.entry.js +0 -1
  498. package/www/build/p-eaa4eba8.entry.js +0 -1
  499. package/www/build/p-f0cd78f2.js +0 -1
  500. package/www/build/p-f25c985e.js +0 -1
  501. package/www/build/p-fed42db6.entry.js +0 -1
  502. package/www/pages/book-cards.html +0 -269
  503. /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-body/styles.css +0 -0
  504. /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-cell/styles.css +0 -0
  505. /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-empty-box/styles.css +0 -0
  506. /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-expanded-row/styles.css +0 -0
  507. /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-footer/styles.css +0 -0
  508. /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-head/styles.css +0 -0
  509. /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-header/styles.css +0 -0
  510. /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-header-row/styles.css +0 -0
  511. /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-row/styles.css +0 -0
  512. /package/dist/collection/{components/z-table → deprecated/z-table-deprecated}/z-table-sticky-footer/styles.css +0 -0
@@ -1,14 +1,17 @@
1
1
  import { h, Host } from "@stencil/core";
2
- import { ButtonSize, ButtonVariant, PopoverPosition, Size, SortDirection } from "../../../beans";
2
+ import { ButtonSize, ButtonVariant, PopoverPosition } from "../../../beans";
3
3
  import { getElementTree } from "../../../utils/utils";
4
+ /**
5
+ * @deprecated
6
+ */
4
7
  export class ZTableHeader {
5
8
  constructor() {
6
9
  /** Set padding size of cell, if special 0px padding will be set */
7
- this.padding = Size.MEDIUM;
10
+ this.padding = "medium";
8
11
  /** [Optional] Default sort order */
9
- this.defaultSortDirection = SortDirection.ASC;
12
+ this.defaultSortDirection = "asc";
10
13
  /** Sort direction */
11
- this.sortDirection = SortDirection.NONE;
14
+ this.sortDirection = "none";
12
15
  this.emitOnSort = this.emitOnSort.bind(this);
13
16
  }
14
17
  emitOnSort() {
@@ -23,14 +26,14 @@ export class ZTableHeader {
23
26
  }
24
27
  this.sortDirection = (() => {
25
28
  switch (this.sortDirection) {
26
- case SortDirection.ASC:
27
- return SortDirection.DESC;
28
- case SortDirection.DESC:
29
- return SortDirection.ASC;
30
- case SortDirection.NONE:
29
+ case "asc":
30
+ return "desc";
31
+ case "desc":
32
+ return "asc";
33
+ case "none":
31
34
  return this.defaultSortDirection;
32
35
  default:
33
- return SortDirection.NONE;
36
+ return "none";
34
37
  }
35
38
  })();
36
39
  this.emitOnSort();
@@ -54,7 +57,7 @@ export class ZTableHeader {
54
57
  const parentColumnId = parent.attributes.getNamedItem("column-id").value;
55
58
  const isSortable = target.parentNode.sortable || target.sortable;
56
59
  if (parentColumnId !== this.columnId && isSortable) {
57
- this.sortDirection = SortDirection.NONE;
60
+ this.sortDirection = "none";
58
61
  }
59
62
  }
60
63
  componentWillRender() {
@@ -63,7 +66,7 @@ export class ZTableHeader {
63
66
  render() {
64
67
  return (h(Host, { class: {
65
68
  sortable: this.sortable,
66
- }, onClick: () => this.handleSort() }, h("div", { class: "container" }, h("slot", null), this.sortable && this.sortDirection !== SortDirection.NONE && (h("z-icon", { name: this.sortDirection === SortDirection.ASC ? "arrow-up" : "arrow-down", class: "arrow" }))), this.showButton && (h("div", { class: "popover-container" }, h("z-button", { ref: (el) => (this.triggerButton = el), class: "contextual-popover-button", icon: "contextual-menu", variant: ButtonVariant.TERTIARY, size: ButtonSize.X_SMALL, onClick: () => this.handleMenuClick() }), h("z-popover", { ref: (el) => (this.popover = el), position: PopoverPosition.BOTTOM, center: true, bindTo: this.triggerButton }, h("div", null, h("slot", { name: "contextual-menu" })))))));
69
+ }, onClick: () => this.handleSort() }, h("div", { class: "container" }, h("slot", null), this.sortable && this.sortDirection !== "none" && (h("z-icon", { name: this.sortDirection === "asc" ? "arrow-up" : "arrow-down", class: "arrow" }))), this.showButton && (h("div", { class: "popover-container" }, h("z-button", { ref: (el) => (this.triggerButton = el), class: "contextual-popover-button", icon: "contextual-menu", variant: ButtonVariant.TERTIARY, size: ButtonSize.X_SMALL, onClick: () => this.handleMenuClick() }), h("z-popover", { ref: (el) => (this.popover = el), position: PopoverPosition.BOTTOM, center: true, bindTo: this.triggerButton }, h("div", null, h("slot", { name: "contextual-menu" })))))));
67
70
  }
68
71
  static get is() { return "z-table-header"; }
69
72
  static get encapsulation() { return "shadow"; }
@@ -100,14 +103,9 @@ export class ZTableHeader {
100
103
  "type": "string",
101
104
  "mutable": false,
102
105
  "complexType": {
103
- "original": "Size",
104
- "resolved": "Size.LARGE | Size.MEDIUM | Size.SMALL | Size.SPECIAL | Size.X_SMALL",
105
- "references": {
106
- "Size": {
107
- "location": "import",
108
- "path": "../../../beans"
109
- }
110
- }
106
+ "original": "\"x-small\" | \"small\" | \"medium\" | \"large\" | \"special\"",
107
+ "resolved": "\"large\" | \"medium\" | \"small\" | \"special\" | \"x-small\"",
108
+ "references": {}
111
109
  },
112
110
  "required": false,
113
111
  "optional": false,
@@ -117,7 +115,7 @@ export class ZTableHeader {
117
115
  },
118
116
  "attribute": "padding",
119
117
  "reflect": true,
120
- "defaultValue": "Size.MEDIUM"
118
+ "defaultValue": "\"medium\""
121
119
  },
122
120
  "sortable": {
123
121
  "type": "boolean",
@@ -157,14 +155,9 @@ export class ZTableHeader {
157
155
  "type": "string",
158
156
  "mutable": false,
159
157
  "complexType": {
160
- "original": "SortDirection",
161
- "resolved": "SortDirection.ASC | SortDirection.DESC | SortDirection.NONE",
162
- "references": {
163
- "SortDirection": {
164
- "location": "import",
165
- "path": "../../../beans"
166
- }
167
- }
158
+ "original": "\"asc\" | \"desc\" | \"none\"",
159
+ "resolved": "\"asc\" | \"desc\" | \"none\"",
160
+ "references": {}
168
161
  },
169
162
  "required": false,
170
163
  "optional": true,
@@ -174,20 +167,15 @@ export class ZTableHeader {
174
167
  },
175
168
  "attribute": "default-sort-direction",
176
169
  "reflect": false,
177
- "defaultValue": "SortDirection.ASC"
170
+ "defaultValue": "\"asc\""
178
171
  },
179
172
  "sortDirection": {
180
173
  "type": "string",
181
174
  "mutable": true,
182
175
  "complexType": {
183
- "original": "SortDirection",
184
- "resolved": "SortDirection.ASC | SortDirection.DESC | SortDirection.NONE",
185
- "references": {
186
- "SortDirection": {
187
- "location": "import",
188
- "path": "../../../beans"
189
- }
190
- }
176
+ "original": "\"asc\" | \"desc\" | \"none\"",
177
+ "resolved": "\"asc\" | \"desc\" | \"none\"",
178
+ "references": {}
191
179
  },
192
180
  "required": false,
193
181
  "optional": false,
@@ -197,7 +185,7 @@ export class ZTableHeader {
197
185
  },
198
186
  "attribute": "sort-direction",
199
187
  "reflect": false,
200
- "defaultValue": "SortDirection.NONE"
188
+ "defaultValue": "\"none\""
201
189
  }
202
190
  };
203
191
  }
@@ -1,4 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
+ /**
3
+ * @deprecated
4
+ */
2
5
  export class ZTableHeaderRow {
3
6
  renderExpandHeader() {
4
7
  return h("z-table-header", null);
@@ -1,5 +1,8 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import { ZTableRowExpandedType } from "../../../beans";
3
+ /**
4
+ * @deprecated
5
+ */
3
6
  export class ZTableRow {
4
7
  constructor() {
5
8
  /** Table row expanded type */
@@ -1,5 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  /**
3
+ * @deprecated
3
4
  * @slot - table sticky footer content
4
5
  */
5
6
  export class ZTableStickyFooter {
@@ -0,0 +1,19 @@
1
+ import { r as registerInstance, h, g as getElement } from './index-a2ca4b97.js';
2
+
3
+ const stylesCss = ".sc-z-table-head-h{display:table-header-group;font-family:var(--dashboard-font);font-weight:var(--font-rg)}";
4
+
5
+ const ZTableHead = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ componentWillRender() {
10
+ this.host.setAttribute("role", "rowgroup");
11
+ }
12
+ render() {
13
+ return h("slot", null);
14
+ }
15
+ get host() { return getElement(this); }
16
+ };
17
+ ZTableHead.style = stylesCss;
18
+
19
+ export { ZTableHead as Z };
@@ -0,0 +1,39 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-a2ca4b97.js';
2
+ import { Z as ZTableRowExpandedType } from './index-9c5d63ea.js';
3
+
4
+ const stylesCss = "z-table-row{display:table-row;font-family:var(--font-family-sans)}z-table-row[expanded-type=\"expandable\"]:hover{cursor:pointer}z-table-row[expanded-type=\"expandable\"]>z-table-cell:first-child,z-table-row[expanded-type=\"padding\"]>z-table-cell:first-child{--z-icon-width:16px;--z-icon-height:16px;width:24px;box-sizing:border-box;padding-right:0;padding-left:16px;fill:var(--gray800);text-align:center;user-select:none}.z-icon-placeholder{width:24px;padding-right:0}z-table-row[expanded-type=\"expandable\"]>z-table-cell:nth-child(2),z-table-row[expanded-type=\"padding\"]>z-table-cell:nth-child(2){padding-left:8px}z-table-row[expanded-type]:hover>z-table-cell:first-child{fill:var(--myz-blue-dark)}z-table-row[expanded]>z-table-cell{border-bottom:none;background-color:var(--gray50)}z-table-row[expanded]+z-table-expanded-row{display:table-row}";
5
+
6
+ const ZTableRow = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.expand = createEvent(this, "expand", 7);
10
+ /** Table row expanded type */
11
+ this.expandedType = ZTableRowExpandedType.NONE;
12
+ this.expanded = false;
13
+ }
14
+ emitOnExpand() {
15
+ this.expand.emit({ expanded: this.expanded });
16
+ }
17
+ handleExpand() {
18
+ this.expanded = !this.expanded;
19
+ this.emitOnExpand();
20
+ }
21
+ renderExpandButton() {
22
+ if (this.expandedType == ZTableRowExpandedType.EXPANDABLE) {
23
+ return (h("z-table-cell", { style: { borderRight: "none" } }, h("z-icon", { name: this.expanded ? "minus-circled" : "plus-circled" })));
24
+ }
25
+ return (h("z-table-cell", { style: { borderRight: "none" } }, h("div", { class: "z-icon-placeholder" })));
26
+ }
27
+ render() {
28
+ return (h(Host, { role: "row", expanded: this.expanded, onClick: (event) => {
29
+ const preventExpand = event.target.classList.contains("prevent-expand");
30
+ const isExpandable = this.expandedType === ZTableRowExpandedType.EXPANDABLE;
31
+ if (isExpandable && !preventExpand) {
32
+ this.handleExpand();
33
+ }
34
+ } }, this.expandedType !== ZTableRowExpandedType.NONE && this.renderExpandButton(), h("slot", null)));
35
+ }
36
+ };
37
+ ZTableRow.style = stylesCss;
38
+
39
+ export { ZTableRow as Z };
@@ -0,0 +1,15 @@
1
+ import { r as registerInstance, h } from './index-a2ca4b97.js';
2
+
3
+ const stylesCss = ".sc-z-table-sticky-footer-h{position:sticky;left:0;display:block;padding:var(--basex2);border-width:var(--border-size-small) 0 var(--border-base);border-style:solid;border-color:var(--gray200);background-color:var(--bg-white);font-weight:var(--font-rg)}";
4
+
5
+ const ZTableStickyFooter = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ render() {
10
+ return h("slot", null);
11
+ }
12
+ };
13
+ ZTableStickyFooter.style = stylesCss;
14
+
15
+ export { ZTableStickyFooter as Z };
@@ -0,0 +1,32 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-a2ca4b97.js';
2
+ import { B as ButtonVariant, d as ButtonSize } from './index-9c5d63ea.js';
3
+
4
+ const stylesCss = ":host{display:table-cell;border-bottom:var(--border-size-small) solid var(--bg-grey-200);background-color:var(--color-white);font-family:var(--dashboard-font);font-weight:var(--font-rg)}:host>.button-container{display:none}:host:hover>.button-container{display:initial}.button-container{position:absolute;z-index:5;top:8px;right:8px}.button-content{position:relative}.contextual-menu-container{position:absolute;top:calc(100% - var(--space-unit));right:0;display:none}.button-container.visible,.contextual-menu-container.visible{display:initial}:host([padding=\"x-small\"]){padding:calc(var(--space-unit) * 0.5)}:host([padding=\"small\"]){padding:calc(var(--space-unit))}:host([padding=\"medium\"]){padding:calc(var(--space-unit) * 2)}:host([padding=\"large\"]){padding:calc(var(--space-unit) * 2.5)}:host([padding=\"special\"]){padding:0}";
5
+
6
+ const ZTableCell = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ /** Set padding size of cell, if special 0px padding will be set */
10
+ this.padding = "medium";
11
+ this.isMenuOpened = false;
12
+ }
13
+ handleMenu() {
14
+ this.isMenuOpened = !this.isMenuOpened;
15
+ }
16
+ componentWillRender() {
17
+ this.host.setAttribute("role", "cell");
18
+ }
19
+ render() {
20
+ return (h(Host, null, this.showButton && (h("div", { class: {
21
+ "button-container": true,
22
+ "visible": this.isMenuOpened,
23
+ } }, h("div", { class: "button-content" }, h("z-button", { icon: "contextual-menu", variant: ButtonVariant.TERTIARY, size: ButtonSize.X_SMALL, onClick: () => this.handleMenu() }), h("div", { class: {
24
+ "contextual-menu-container": true,
25
+ "visible": this.isMenuOpened,
26
+ } }, h("slot", { name: "contextual-menu" }))))), h("slot", null)));
27
+ }
28
+ get host() { return getElement(this); }
29
+ };
30
+ ZTableCell.style = stylesCss;
31
+
32
+ export { ZTableCell as Z };
@@ -0,0 +1,20 @@
1
+ import { r as registerInstance, h, g as getElement } from './index-a2ca4b97.js';
2
+
3
+ const stylesCss = ".sc-z-table-body-h{display:table-row-group;font-family:var(--dashboard-font);font-weight:var(--font-rg)}.sc-z-table-body-h>z-table-row[expanded].sc-z-table-body+z-table-expanded-row.sc-z-table-body{display:table-row}";
4
+
5
+ const ZTableBody = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ componentWillRender() {
10
+ this.host.setAttribute("role", "rowgroup");
11
+ Array.from(this.host.children).forEach((child, index) => child.setAttribute("aria-rowindex", `${index}`));
12
+ }
13
+ render() {
14
+ return h("slot", null);
15
+ }
16
+ get host() { return getElement(this); }
17
+ };
18
+ ZTableBody.style = stylesCss;
19
+
20
+ export { ZTableBody as Z };
@@ -0,0 +1,27 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-a2ca4b97.js';
2
+
3
+ const stylesCss = ".sc-z-table-empty-box-h{display:block;padding:calc(var(--space-unit)) calc(var(--space-unit) * 3) calc(var(--space-unit) * 3) calc(var(--space-unit) * 3);background-color:var(--bg-white)}.sc-z-table-empty-box-s>*{margin-top:var(--space-unit)}.cta.sc-z-table-empty-box{display:flex;flex-direction:row;margin-top:calc(var(--space-unit) / 2)}.cta.has-2-cta.sc-z-table-empty-box{flex-direction:column}@media only screen and (min-width: 768px){.sc-z-table-empty-box-h{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 7) calc(var(--space-unit) * 3)\n calc(var(--space-unit) * 7)}.sc-z-table-empty-box-s>*{margin-right:calc(var(--space-unit) * 2)}.cta.sc-z-table-empty-box{margin-top:var(--space-unit)}.cta.has-2-cta.sc-z-table-empty-box{flex-direction:row}}";
4
+
5
+ const ZTableEmptyBox = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /** Sets main title message*/
9
+ this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare.";
10
+ /** Sets message */
11
+ this.subtitle = "";
12
+ }
13
+ componentWillLoad() {
14
+ this.hasCta1Slot = !!this.hostElement.querySelector('[slot="cta1"]');
15
+ this.hasCta2Slot = !!this.hostElement.querySelector('[slot="cta2"]');
16
+ }
17
+ render() {
18
+ return (h(Host, null, h("span", { class: "body-3-sb" }, this.message), h("br", null), !!this.subtitle && h("span", { class: "body-4" }, this.subtitle), (!!this.hasCta1Slot || !!this.hasCta2Slot) && (h("div", { class: {
19
+ "cta": true,
20
+ "has-2-cta": !!this.hasCta1Slot && !!this.hasCta2Slot,
21
+ } }, h("slot", { name: "cta1" }), h("slot", { name: "cta2" })))));
22
+ }
23
+ get hostElement() { return getElement(this); }
24
+ };
25
+ ZTableEmptyBox.style = stylesCss;
26
+
27
+ export { ZTableEmptyBox as Z };
@@ -0,0 +1,19 @@
1
+ import { r as registerInstance, h, H as Host } from './index-a2ca4b97.js';
2
+
3
+ const stylesCss = ":host{--z-table--cells-bottom-border-size:var(\n --border-size-medium\n );--z-table--cells-background:var(\n --color-surface02\n );display:block;box-sizing:border-box}:host([sticky]){position:sticky;z-index:2;top:0;box-shadow:0 2px 4px -2px var(--shadow-color-base)}";
4
+
5
+ const ZThead = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /**
9
+ * If true, the header will be stuck to the top of the table.
10
+ */
11
+ this.sticky = false;
12
+ }
13
+ render() {
14
+ return (h(Host, { role: "rowgroup" }, h("slot", null)));
15
+ }
16
+ };
17
+ ZThead.style = stylesCss;
18
+
19
+ export { ZThead as Z };
@@ -0,0 +1,47 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a2ca4b97.js';
2
+ import { B as ButtonVariant, e as ControlSize } from './index-9c5d63ea.js';
3
+
4
+ const stylesCss = ":host{position:relative;display:flex;min-width:128px;box-sizing:border-box;align-items:center;padding:var(--z-table--cells-padding, calc(var(--space-unit) * 2));background-color:var(--color-surface01);gap:calc(var(--space-unit) * 2) var(--space-unit)}:host([sticky]){position:sticky;z-index:1;top:0;left:0;box-shadow:8px 0 16px -8px var(--shadow-color-base)}:host([show-menu])::after{display:inline-block;height:100%;margin-right:calc(var(--space-unit) * 4);background:transparent;content:\"\";user-select:none}.cell--menu-container{position:absolute;z-index:1;top:var(--space-unit);right:var(--space-unit)}:host(:not([show-menu])) .cell--menu-container{opacity:0;pointer-events:none}:host(:is([show-menu],[menu-open])) .cell--menu-container,:host([show-menu]) .cell--menu-container:focus-within{opacity:1;pointer-events:all}@media (min-width: 768px) and (hover: hover){:host([show-menu=\"hover\"]) .cell--menu-container{opacity:0;pointer-events:none}:host([show-menu=\"hover\"]:hover) .cell--menu-container{opacity:1;pointer-events:all}}";
5
+
6
+ const ZTd = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.colspanChange = createEvent(this, "colspanChange", 6);
10
+ /**
11
+ * Whether the cell should stick.
12
+ */
13
+ this.sticky = false;
14
+ /**
15
+ * Enables the contextual menu.
16
+ * Can be set to "hover" or "always" to show the button only on cell hover or always.
17
+ * Set a nullish value to hide the menu button.
18
+ */
19
+ this.showMenu = null;
20
+ /**
21
+ * Store the open state of the menu.
22
+ */
23
+ this.isMenuOpen = false;
24
+ }
25
+ updateColspan() {
26
+ if (this.colspan) {
27
+ this.host.style.gridColumn = `span ${this.colspan}`;
28
+ }
29
+ else {
30
+ this.host.style.removeProperty("grid-column");
31
+ }
32
+ this.colspanChange.emit(this.colspan || 1);
33
+ }
34
+ componentWillLoad() {
35
+ this.updateColspan();
36
+ }
37
+ render() {
38
+ return (h(Host, { role: "cell", "menu-open": this.isMenuOpen }, h("slot", null), this.showMenu && (h("div", { class: "cell--menu-container prevent-expand" }, h("z-button", { 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", { ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open) }, h("slot", { name: "contextual-menu" }))))));
39
+ }
40
+ get host() { return getElement(this); }
41
+ static get watchers() { return {
42
+ "colspan": ["updateColspan"]
43
+ }; }
44
+ };
45
+ ZTd.style = stylesCss;
46
+
47
+ export { ZTd as Z };
@@ -0,0 +1,15 @@
1
+ import { r as registerInstance, h } from './index-a2ca4b97.js';
2
+
3
+ const stylesCss = ":host{display:none;background-color:var(--gray50)}:host>td>div.content-container{margin-bottom:calc(var(--space-unit) / 2);box-shadow:var(--shadow-2)}";
4
+
5
+ const ZTableExpandedRow = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ render() {
10
+ return (h("td", { colSpan: this.colSpan }, h("div", { class: "content-container" }, h("slot", null))));
11
+ }
12
+ };
13
+ ZTableExpandedRow.style = stylesCss;
14
+
15
+ export { ZTableExpandedRow as Z };
@@ -0,0 +1,19 @@
1
+ import { r as registerInstance, h, H as Host } from './index-a2ca4b97.js';
2
+
3
+ const stylesCss = ":host{display:block;box-sizing:border-box;border-top:1px solid var(--color-surface03);border-bottom:1px solid var(--color-surface03)}:host([sticky]){position:sticky;z-index:1;bottom:0;background-color:var(--color-surface01)}";
4
+
5
+ const ZTfoot = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /**
9
+ * If true, the footer will be stuck to the bottom of the table.
10
+ */
11
+ this.sticky = false;
12
+ }
13
+ render() {
14
+ return (h(Host, { role: "rowgroup" }, h("slot", null)));
15
+ }
16
+ };
17
+ ZTfoot.style = stylesCss;
18
+
19
+ export { ZTfoot as Z };
@@ -134,7 +134,6 @@ var SortDirection;
134
134
  (function (SortDirection) {
135
135
  SortDirection["ASC"] = "asc";
136
136
  SortDirection["DESC"] = "desc";
137
- SortDirection["NONE"] = "none";
138
137
  })(SortDirection || (SortDirection = {}));
139
138
  var AvatarSize;
140
139
  (function (AvatarSize) {
@@ -149,14 +148,6 @@ var ListSize;
149
148
  ListSize["LARGE"] = "large";
150
149
  ListSize["X_LARGE"] = "x-large";
151
150
  })(ListSize || (ListSize = {}));
152
- var Size;
153
- (function (Size) {
154
- Size["X_SMALL"] = "x-small";
155
- Size["SMALL"] = "small";
156
- Size["MEDIUM"] = "medium";
157
- Size["LARGE"] = "large";
158
- Size["SPECIAL"] = "special";
159
- })(Size || (Size = {}));
160
151
  var ExpandableListStyle;
161
152
  (function (ExpandableListStyle) {
162
153
  ExpandableListStyle["ACCORDION"] = "accordion";
@@ -334,11 +325,10 @@ var BreadcrumbHomepageVariant;
334
325
  BreadcrumbHomepageVariant["TEXT"] = "text";
335
326
  BreadcrumbHomepageVariant["ICON"] = "icon";
336
327
  })(BreadcrumbHomepageVariant || (BreadcrumbHomepageVariant = {}));
337
- var BookCardVariant;
338
- (function (BookCardVariant) {
339
- BookCardVariant["EXPANDED"] = "expanded";
340
- BookCardVariant["COMPACT"] = "compact";
341
- BookCardVariant["SEARCH"] = "search";
342
- })(BookCardVariant || (BookCardVariant = {}));
328
+ var VisibilityCondition;
329
+ (function (VisibilityCondition) {
330
+ VisibilityCondition["HOVER"] = "hover";
331
+ VisibilityCondition["ALWAYS"] = "always";
332
+ })(VisibilityCondition || (VisibilityCondition = {}));
343
333
 
344
- export { AvatarSize as A, ButtonVariant as B, CardVariant as C, DividerSize as D, ExpandableListStyle as E, ZDatePickerMode as F, ZDatePickerModeValue as G, ZDatePickerPosition as H, InputType as I, ZRangePickerMode as J, KeyboardKeyCode as K, LicenseType as L, InfoRevealPosition as M, NavigationTabsOrientation as N, OffCanvasVariant as O, PopoverPosition as P, CoverHeroVariant as Q, CoverHeroContentPosition as R, SortDirection as S, ThemeVariant as T, CarouselArrowsPosition as U, CarouselProgressMode as V, BreadcrumbPathStyle as W, BreadcrumbHomepageVariant as X, BookCardVariant as Y, ZTableRowExpandedType as Z, NavigationTabsSize as a, NavigationTabsKeyboardEvents as b, ButtonType as c, ButtonSize as d, ControlSize as e, InputStatus as f, KeyboardCode as g, DividerOrientation as h, ListSize as i, Size as j, ExpandableListButtonAlign as k, LabelPosition as l, ListDividerType as m, ListType as n, NotificationType as o, AlertType as p, Device as q, PocketStatus as r, ToastNotification as s, ToastNotificationTransition as t, ToastNotificationPosition as u, ZAriaAlertMode as v, TransitionDirection as w, ZFileUploadType as x, ZChipType as y, ZSectionTitleDividerPosition as z };
334
+ export { AvatarSize as A, ButtonVariant as B, CardVariant as C, DividerSize as D, ExpandableListStyle as E, ZDatePickerModeValue as F, ZDatePickerPosition as G, ZRangePickerMode as H, InputType as I, InfoRevealPosition as J, KeyboardKeyCode as K, LicenseType as L, CoverHeroVariant as M, NavigationTabsOrientation as N, OffCanvasVariant as O, PopoverPosition as P, CoverHeroContentPosition as Q, CarouselArrowsPosition as R, SortDirection as S, ThemeVariant as T, CarouselProgressMode as U, BreadcrumbPathStyle as V, BreadcrumbHomepageVariant as W, VisibilityCondition as X, ZTableRowExpandedType as Z, NavigationTabsSize as a, NavigationTabsKeyboardEvents as b, ButtonType as c, ButtonSize as d, ControlSize as e, InputStatus as f, KeyboardCode as g, DividerOrientation as h, ListSize as i, ExpandableListButtonAlign as j, LabelPosition as k, ListDividerType as l, ListType as m, NotificationType as n, AlertType as o, Device as p, PocketStatus as q, ToastNotification as r, ToastNotificationTransition as s, ToastNotificationPosition as t, ZAriaAlertMode as u, TransitionDirection as v, ZFileUploadType as w, ZChipType as x, ZSectionTitleDividerPosition as y, ZDatePickerMode as z };
@@ -1912,10 +1912,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1912
1912
  return import(
1913
1913
  /* webpackMode: "lazy" */
1914
1914
  './z-body.entry.js').then(processMod, consoleError);
1915
- case 'z-book-card':
1916
- return import(
1917
- /* webpackMode: "lazy" */
1918
- './z-book-card.entry.js').then(processMod, consoleError);
1919
1915
  case 'z-breadcrumb':
1920
1916
  return import(
1921
1917
  /* webpackMode: "lazy" */
@@ -2084,6 +2080,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2084
2080
  return import(
2085
2081
  /* webpackMode: "lazy" */
2086
2082
  './z-table-body.entry.js').then(processMod, consoleError);
2083
+ case 'z-table-deprecated':
2084
+ return import(
2085
+ /* webpackMode: "lazy" */
2086
+ './z-table-deprecated.entry.js').then(processMod, consoleError);
2087
2087
  case 'z-table-expanded-row':
2088
2088
  return import(
2089
2089
  /* webpackMode: "lazy" */
@@ -2112,6 +2112,26 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2112
2112
  return import(
2113
2113
  /* webpackMode: "lazy" */
2114
2114
  './z-tag.entry.js').then(processMod, consoleError);
2115
+ case 'z-tbody':
2116
+ return import(
2117
+ /* webpackMode: "lazy" */
2118
+ './z-tbody.entry.js').then(processMod, consoleError);
2119
+ case 'z-td':
2120
+ return import(
2121
+ /* webpackMode: "lazy" */
2122
+ './z-td.entry.js').then(processMod, consoleError);
2123
+ case 'z-tfoot':
2124
+ return import(
2125
+ /* webpackMode: "lazy" */
2126
+ './z-tfoot.entry.js').then(processMod, consoleError);
2127
+ case 'z-th':
2128
+ return import(
2129
+ /* webpackMode: "lazy" */
2130
+ './z-th.entry.js').then(processMod, consoleError);
2131
+ case 'z-thead':
2132
+ return import(
2133
+ /* webpackMode: "lazy" */
2134
+ './z-thead.entry.js').then(processMod, consoleError);
2115
2135
  case 'z-toast-notification':
2116
2136
  return import(
2117
2137
  /* webpackMode: "lazy" */
@@ -2132,6 +2152,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2132
2152
  return import(
2133
2153
  /* webpackMode: "lazy" */
2134
2154
  './z-tooltip.entry.js').then(processMod, consoleError);
2155
+ case 'z-tr':
2156
+ return import(
2157
+ /* webpackMode: "lazy" */
2158
+ './z-tr.entry.js').then(processMod, consoleError);
2135
2159
  case 'z-visually-hidden':
2136
2160
  return import(
2137
2161
  /* webpackMode: "lazy" */
@@ -2172,6 +2196,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2172
2196
  return import(
2173
2197
  /* webpackMode: "lazy" */
2174
2198
  './z-table-header.entry.js').then(processMod, consoleError);
2199
+ case 'z-link':
2200
+ return import(
2201
+ /* webpackMode: "lazy" */
2202
+ './z-link.entry.js').then(processMod, consoleError);
2175
2203
  case 'z-myz-list-item':
2176
2204
  return import(
2177
2205
  /* webpackMode: "lazy" */
@@ -2180,10 +2208,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2180
2208
  return import(
2181
2209
  /* webpackMode: "lazy" */
2182
2210
  './z-typography.entry.js').then(processMod, consoleError);
2183
- case 'z-link':
2184
- return import(
2185
- /* webpackMode: "lazy" */
2186
- './z-link.entry.js').then(processMod, consoleError);
2187
2211
  case 'z-popover':
2188
2212
  return import(
2189
2213
  /* webpackMode: "lazy" */
@@ -0,0 +1,65 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a2ca4b97.js';
2
+ import { r as randomId } from './utils-d7278f26.js';
3
+ import './index-77b7d7ae.js';
4
+ import './index-fff6ed17.js';
5
+
6
+ const stylesCss = ":host{--columns:1;display:grid;min-width:max-content;box-sizing:border-box;grid-auto-flow:column;grid-template-columns:var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr))}*{box-sizing:border-box}.z-tr--expand-button-container,::slotted(*){border-bottom:var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03)}::slotted(*:not(:last-child)){border-right:var(--z-table--cell-left-border, none)}:host([expandable]){--show-expandable-button:visible;cursor:pointer}:host([expandable]) ::slotted(*){grid-row:1}:host([expandable]) ::slotted(:nth-last-child(2)){border-right:none}:host([expandable]) ::slotted(*:last-child){border-left:0;grid-column:1 / span calc(var(--columns) + 1);grid-row:2}:host([expandable]:not([expanded])) ::slotted(*:last-child){display:none}:host([expanded]){margin-bottom:4px;box-shadow:0 4px 4px -2px var(--shadow-color-base)}:host([expanded]) .z-tr--expand-button-container,:host([expanded]) ::slotted(*){background-color:var(--color-surface02)}.z-tr--expand-button-container{display:flex;align-items:center;justify-content:center;background-color:var(--z-table--cells-background, var(--color-surface01))}.z-tr--expand-button-container button{display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:auto;appearance:none;background:transparent;cursor:pointer;visibility:var(--show-expandable-button, hidden)}.z-tr--expand-button-container button:focus{box-shadow:var(--shadow-focus-primary);outline:none}.z-tr--expand-button-container button z-icon{--z-icon-width:16px;--z-icon-height:16px}";
7
+
8
+ const ZTr = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.expand = createEvent(this, "expand", 7);
12
+ /**
13
+ * Whether the row is expandable.
14
+ * Use a `z-td` as the last cell of the row for the additional content.
15
+ * It will show a button to expand/collapse the row.
16
+ * The last cell will be hidden until the button or row is clicked.
17
+ *
18
+ * If some element inside the expandable row contains the `prevent-expand` css class,
19
+ * the row will not expand by clicking that element.
20
+ */
21
+ this.expandable = false;
22
+ /**
23
+ * Whether the row is currently expanded.
24
+ */
25
+ this.expanded = false;
26
+ }
27
+ updateColumns() {
28
+ const cells = Array.from(this.host.querySelectorAll("z-td, z-th"));
29
+ if (this.expandable) {
30
+ cells.pop();
31
+ }
32
+ const columns = cells.map((cell) => cell.colspan || 1).reduce((a, b) => a + b, 0);
33
+ this.host.style.setProperty("--columns", `${columns}`);
34
+ if (this.expandable) {
35
+ const expandableContent = cells.pop();
36
+ expandableContent.id = expandableContent.id || `z-tr-expandable-content-${randomId()}`;
37
+ this.expandableContentId = expandableContent.id;
38
+ }
39
+ }
40
+ /**
41
+ * Handle click on row.
42
+ * Skip expansion if the click is on a element with `prevent-expand` css class.
43
+ */
44
+ onRowClick(event) {
45
+ const preventExpand = event.target.closest(".prevent-expand");
46
+ if (!this.expandable || preventExpand) {
47
+ return;
48
+ }
49
+ this.expanded = !this.expanded;
50
+ this.expand.emit({ expanded: this.expanded });
51
+ }
52
+ componentWillLoad() {
53
+ this.updateColumns();
54
+ }
55
+ render() {
56
+ return (h(Host, { role: "row", onClick: this.onRowClick.bind(this), expanded: this.expanded }, h("div", { class: "z-tr--expand-button-container" }, this.expandable && (h("button", { "aria-expanded": this.expanded ? "true" : "false", "aria-label": this.expanded ? "Comprimi riga" : "Espandi riga", "aria-controls": this.expandableContentId, type: "button" }, h("z-icon", { name: this.expanded ? "minus-circled" : "plus-circled" })))), h("slot", { onSlotchange: this.updateColumns.bind(this) })));
57
+ }
58
+ get host() { return getElement(this); }
59
+ static get watchers() { return {
60
+ "expandable": ["updateColumns"]
61
+ }; }
62
+ };
63
+ ZTr.style = stylesCss;
64
+
65
+ export { ZTr as Z };