@zanichelli/albe-web-components 3.2.1 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/cjs/{index-b1289f95.js → index-6b6a3299.js} +27 -29
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-33df2456.js → utils-8cc414c9.js} +28 -2
  6. package/dist/cjs/web-components-library.cjs.js +1 -1
  7. package/dist/cjs/z-app-switcher_12.cjs.entry.js +12 -14
  8. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/z-avatar.cjs.entry.js +1 -1
  10. package/dist/cjs/z-button-filter.cjs.entry.js +49 -0
  11. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  12. package/dist/cjs/z-combobox.cjs.entry.js +5 -5
  13. package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
  14. package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
  15. package/dist/cjs/z-date-picker.cjs.entry.js +2 -2
  16. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +0 -1
  17. package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
  18. package/dist/cjs/z-file.cjs.entry.js +1 -2
  19. package/dist/cjs/z-footer.cjs.entry.js +1 -1
  20. package/dist/cjs/z-input-deprecated.cjs.entry.js +271 -0
  21. package/dist/cjs/z-input-label_2.cjs.entry.js +272 -0
  22. package/dist/cjs/z-input_2.cjs.entry.js +228 -0
  23. package/dist/cjs/z-list-group.cjs.entry.js +54 -0
  24. package/dist/cjs/{z-list_3.cjs.entry.js → z-list_2.cjs.entry.js} +5 -52
  25. package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +4 -4
  26. package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
  27. package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
  28. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  29. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  30. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  31. package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
  32. package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
  33. package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
  34. package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
  35. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
  36. package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
  37. package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  38. package/dist/cjs/z-otp.cjs.entry.js +1 -1
  39. package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
  40. package/dist/cjs/z-pagination.cjs.entry.js +2 -2
  41. package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
  42. package/dist/cjs/z-popover.cjs.entry.js +2 -2
  43. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  44. package/dist/cjs/z-skip-to-content.cjs.entry.js +4 -4
  45. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  46. package/dist/cjs/z-status-tag.cjs.entry.js +1 -1
  47. package/dist/cjs/z-table-cell.cjs.entry.js +1 -1
  48. package/dist/cjs/z-table-header.cjs.entry.js +2 -2
  49. package/dist/cjs/z-table-row.cjs.entry.js +1 -1
  50. package/dist/cjs/z-table.cjs.entry.js +1 -1
  51. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  52. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  53. package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
  54. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  55. package/dist/collection/beans/index.js +27 -29
  56. package/dist/collection/collection-manifest.json +2 -1
  57. package/dist/collection/components/buttons/z-button/index.js +12 -15
  58. package/dist/collection/components/buttons/z-button/styles.css +27 -31
  59. package/dist/collection/components/buttons/z-toggle-switch/index.js +6 -6
  60. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +0 -1
  61. package/dist/collection/components/file-upload/z-file/index.js +0 -1
  62. package/dist/collection/components/inputs/z-combobox/index.js +4 -4
  63. package/dist/collection/components/inputs/z-input/index.js +58 -234
  64. package/dist/collection/components/inputs/z-input/styles.css +61 -34
  65. package/dist/collection/components/inputs/z-input-message/index.js +1 -1
  66. package/dist/collection/components/inputs/z-select/index.js +69 -134
  67. package/dist/collection/components/inputs/z-select/styles.css +16 -58
  68. package/dist/collection/components/modal/z-modal-login/index.js +1 -1
  69. package/dist/collection/components/navigation/z-menu-dropdown/index.js +4 -4
  70. package/dist/collection/components/z-date-picker/index.js +1 -1
  71. package/dist/collection/components/z-pagination/index.js +2 -2
  72. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  73. package/dist/collection/components/z-skip-to-content/styles.css +1 -1
  74. package/dist/collection/deprecated/z-input-deprecated/index.js +824 -0
  75. package/dist/collection/deprecated/z-input-deprecated/styles.css +296 -0
  76. package/dist/collection/{components/inputs → deprecated}/z-input-label/index.js +0 -0
  77. package/dist/collection/{components/inputs → deprecated}/z-input-label/styles.css +0 -0
  78. package/dist/collection/snowflakes/myz/z-otp/index.js +1 -1
  79. package/dist/collection/utils/utils.js +27 -2
  80. package/dist/esm/{index-7424c64c.js → index-46ca649a.js} +28 -30
  81. package/dist/esm/index.js +2 -2
  82. package/dist/esm/loader.js +1 -1
  83. package/dist/esm/{utils-93d2b922.js → utils-5d5963ef.js} +28 -3
  84. package/dist/esm/web-components-library.js +1 -1
  85. package/dist/esm/z-app-switcher_12.entry.js +12 -14
  86. package/dist/esm/z-aria-alert.entry.js +1 -1
  87. package/dist/esm/z-avatar.entry.js +1 -1
  88. package/dist/esm/z-button-filter.entry.js +45 -0
  89. package/dist/esm/z-chip.entry.js +2 -2
  90. package/dist/esm/z-combobox.entry.js +5 -5
  91. package/dist/esm/z-contextual-menu.entry.js +1 -1
  92. package/dist/esm/z-cookiebar.entry.js +1 -1
  93. package/dist/esm/z-date-picker.entry.js +2 -2
  94. package/dist/esm/z-dragdrop-area_2.entry.js +0 -1
  95. package/dist/esm/z-file-upload.entry.js +2 -2
  96. package/dist/esm/z-file.entry.js +1 -2
  97. package/dist/esm/z-footer.entry.js +1 -1
  98. package/dist/esm/z-input-deprecated.entry.js +267 -0
  99. package/dist/esm/z-input-label_2.entry.js +267 -0
  100. package/dist/esm/z-input_2.entry.js +223 -0
  101. package/dist/esm/z-list-group.entry.js +50 -0
  102. package/dist/esm/z-list_2.entry.js +174 -0
  103. package/dist/esm/z-menu-dropdown_2.entry.js +4 -4
  104. package/dist/esm/z-messages-pocket.entry.js +1 -1
  105. package/dist/esm/z-modal-login.entry.js +1 -1
  106. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  107. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  108. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  109. package/dist/esm/z-myz-card-info.entry.js +2 -2
  110. package/dist/esm/z-myz-card_4.entry.js +1 -1
  111. package/dist/esm/z-myz-list-item.entry.js +2 -2
  112. package/dist/esm/z-myz-topbar.entry.js +1 -1
  113. package/dist/esm/z-navigation-tab-link.entry.js +1 -1
  114. package/dist/esm/z-navigation-tab.entry.js +1 -1
  115. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  116. package/dist/esm/z-otp.entry.js +1 -1
  117. package/dist/esm/z-pagination-bar.entry.js +2 -2
  118. package/dist/esm/z-pagination.entry.js +2 -2
  119. package/dist/esm/z-pocket_3.entry.js +2 -2
  120. package/dist/esm/z-popover.entry.js +2 -2
  121. package/dist/esm/z-section-title.entry.js +1 -1
  122. package/dist/esm/z-skip-to-content.entry.js +4 -4
  123. package/dist/esm/z-slideshow.entry.js +2 -2
  124. package/dist/esm/z-status-tag.entry.js +1 -1
  125. package/dist/esm/z-table-cell.entry.js +1 -1
  126. package/dist/esm/z-table-header.entry.js +2 -2
  127. package/dist/esm/z-table-row.entry.js +1 -1
  128. package/dist/esm/z-table.entry.js +1 -1
  129. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  130. package/dist/esm/z-toast-notification.entry.js +1 -1
  131. package/dist/esm/z-toggle-switch.entry.js +3 -3
  132. package/dist/esm/z-tooltip.entry.js +1 -1
  133. package/dist/types/beans/index.d.ts +6 -7
  134. package/dist/types/components/buttons/z-button/index.d.ts +6 -4
  135. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +2 -2
  136. package/dist/types/components/inputs/z-input/index.d.ts +16 -29
  137. package/dist/types/components/inputs/z-select/index.d.ts +11 -17
  138. package/dist/types/components.d.ts +193 -32
  139. package/dist/types/deprecated/z-input-deprecated/index.d.ts +102 -0
  140. package/dist/types/{components/inputs → deprecated}/z-input-label/index.d.ts +0 -0
  141. package/dist/types/utils/utils.d.ts +5 -0
  142. package/dist/web-components-library/index.esm.js +1 -1
  143. package/{www/build/p-e9b90127.entry.js → dist/web-components-library/p-02ea7e49.entry.js} +1 -1
  144. package/{www/build/p-e4b4b2e4.entry.js → dist/web-components-library/p-0a0aee35.entry.js} +1 -1
  145. package/dist/web-components-library/{p-2e510e79.entry.js → p-0d29d851.entry.js} +1 -1
  146. package/dist/web-components-library/{p-b0ea8c0e.entry.js → p-0ef6c549.entry.js} +1 -1
  147. package/dist/web-components-library/{p-4c282f06.entry.js → p-0f17db30.entry.js} +1 -1
  148. package/dist/web-components-library/{p-a391566a.entry.js → p-12af8652.entry.js} +1 -1
  149. package/dist/web-components-library/{p-3184d969.entry.js → p-1727c1c8.entry.js} +1 -1
  150. package/dist/web-components-library/{p-e7aadd3d.entry.js → p-20d62443.entry.js} +1 -1
  151. package/dist/web-components-library/{p-cd2ca92b.entry.js → p-3252be36.entry.js} +1 -1
  152. package/dist/web-components-library/{p-1b973c72.entry.js → p-3c111c2a.entry.js} +1 -1
  153. package/dist/web-components-library/{p-9721e132.entry.js → p-43329b81.entry.js} +1 -1
  154. package/dist/web-components-library/{p-9935973a.entry.js → p-4af112a7.entry.js} +1 -1
  155. package/dist/web-components-library/{p-03de95f1.entry.js → p-51cdabeb.entry.js} +1 -1
  156. package/dist/web-components-library/p-562e2d52.entry.js +1 -0
  157. package/dist/web-components-library/{p-709ab23c.entry.js → p-57d1acdc.entry.js} +1 -1
  158. package/dist/web-components-library/{p-0398165f.entry.js → p-5be162d5.entry.js} +1 -1
  159. package/{www/build/p-7e71d9b0.entry.js → dist/web-components-library/p-5eacbfc7.entry.js} +1 -1
  160. package/dist/web-components-library/{p-223bec2f.entry.js → p-63ccb013.entry.js} +1 -1
  161. package/dist/web-components-library/p-69ef6ddc.entry.js +1 -0
  162. package/dist/web-components-library/p-71accd8e.entry.js +1 -0
  163. package/dist/web-components-library/{p-56437e20.entry.js → p-7c6d4440.entry.js} +1 -1
  164. package/dist/web-components-library/p-99d7ab2f.entry.js +1 -0
  165. package/dist/web-components-library/{p-2ff952a3.entry.js → p-9aa5d36c.entry.js} +1 -1
  166. package/dist/web-components-library/p-9f5d707a.js +1 -0
  167. package/dist/web-components-library/{p-2711bc32.entry.js → p-9f9e4266.entry.js} +1 -1
  168. package/dist/web-components-library/{p-cce20009.entry.js → p-a851af81.entry.js} +1 -1
  169. package/dist/web-components-library/{p-d9d9d834.entry.js → p-a8875b97.entry.js} +2 -2
  170. package/dist/web-components-library/{p-adad78fc.entry.js → p-ae60bbdf.entry.js} +1 -1
  171. package/dist/web-components-library/p-b15efba3.entry.js +1 -0
  172. package/dist/web-components-library/p-b574d5f6.entry.js +1 -0
  173. package/dist/web-components-library/p-b9da171f.js +1 -0
  174. package/dist/web-components-library/{p-aae632ef.entry.js → p-ba29bc12.entry.js} +1 -1
  175. package/dist/web-components-library/p-bd886dd5.entry.js +1 -0
  176. package/dist/web-components-library/{p-542b3702.entry.js → p-bfe5693d.entry.js} +1 -1
  177. package/dist/web-components-library/{p-2b8975b1.entry.js → p-c9cdf4ee.entry.js} +1 -1
  178. package/dist/web-components-library/{p-dfc18671.entry.js → p-ccdebe3f.entry.js} +1 -1
  179. package/dist/web-components-library/p-cd8950d2.entry.js +1 -0
  180. package/dist/web-components-library/{p-c787ea21.entry.js → p-d33fea26.entry.js} +1 -1
  181. package/dist/web-components-library/p-d8069dab.entry.js +1 -0
  182. package/dist/web-components-library/{p-f3080685.entry.js → p-d97a2db9.entry.js} +1 -1
  183. package/dist/web-components-library/{p-1eef76bb.entry.js → p-d995d9dc.entry.js} +1 -1
  184. package/dist/web-components-library/{p-895f636e.entry.js → p-de25c7f0.entry.js} +1 -1
  185. package/dist/web-components-library/{p-66fbe5b8.entry.js → p-df4e963b.entry.js} +1 -1
  186. package/dist/web-components-library/p-e2102da3.entry.js +1 -0
  187. package/dist/web-components-library/{p-459dab30.entry.js → p-e84d6807.entry.js} +1 -1
  188. package/dist/web-components-library/p-edb8d2ab.entry.js +1 -0
  189. package/dist/web-components-library/{p-0b590426.entry.js → p-f322c5f0.entry.js} +1 -1
  190. package/dist/web-components-library/{p-da7760a3.entry.js → p-f7c3e9c3.entry.js} +1 -1
  191. package/{www/build/p-dcf4d1b6.entry.js → dist/web-components-library/p-fa925198.entry.js} +1 -1
  192. package/dist/web-components-library/{p-2c823f4c.entry.js → p-fe927bf4.entry.js} +1 -1
  193. package/dist/web-components-library/web-components-library.esm.js +1 -1
  194. package/package.json +1 -1
  195. package/react/components.d.ts +1 -0
  196. package/react/components.js +4 -3
  197. package/react/components.js.map +1 -1
  198. package/www/build/index.esm.js +1 -1
  199. package/{dist/web-components-library/p-e9b90127.entry.js → www/build/p-02ea7e49.entry.js} +1 -1
  200. package/{dist/web-components-library/p-e4b4b2e4.entry.js → www/build/p-0a0aee35.entry.js} +1 -1
  201. package/www/build/{p-2e510e79.entry.js → p-0d29d851.entry.js} +1 -1
  202. package/www/build/{p-b0ea8c0e.entry.js → p-0ef6c549.entry.js} +1 -1
  203. package/www/build/{p-4c282f06.entry.js → p-0f17db30.entry.js} +1 -1
  204. package/www/build/{p-a391566a.entry.js → p-12af8652.entry.js} +1 -1
  205. package/www/build/{p-3184d969.entry.js → p-1727c1c8.entry.js} +1 -1
  206. package/www/build/{p-e7aadd3d.entry.js → p-20d62443.entry.js} +1 -1
  207. package/www/build/{p-cd2ca92b.entry.js → p-3252be36.entry.js} +1 -1
  208. package/www/build/{p-1b973c72.entry.js → p-3c111c2a.entry.js} +1 -1
  209. package/www/build/{p-9721e132.entry.js → p-43329b81.entry.js} +1 -1
  210. package/www/build/{p-9935973a.entry.js → p-4af112a7.entry.js} +1 -1
  211. package/www/build/{p-03de95f1.entry.js → p-51cdabeb.entry.js} +1 -1
  212. package/www/build/p-562e2d52.entry.js +1 -0
  213. package/www/build/{p-709ab23c.entry.js → p-57d1acdc.entry.js} +1 -1
  214. package/www/build/{p-0398165f.entry.js → p-5be162d5.entry.js} +1 -1
  215. package/{dist/web-components-library/p-7e71d9b0.entry.js → www/build/p-5eacbfc7.entry.js} +1 -1
  216. package/www/build/{p-223bec2f.entry.js → p-63ccb013.entry.js} +1 -1
  217. package/www/build/p-69ef6ddc.entry.js +1 -0
  218. package/www/build/p-71accd8e.entry.js +1 -0
  219. package/www/build/{p-56437e20.entry.js → p-7c6d4440.entry.js} +1 -1
  220. package/www/build/p-99d7ab2f.entry.js +1 -0
  221. package/www/build/{p-2ff952a3.entry.js → p-9aa5d36c.entry.js} +1 -1
  222. package/www/build/p-9f5d707a.js +1 -0
  223. package/www/build/{p-2711bc32.entry.js → p-9f9e4266.entry.js} +1 -1
  224. package/www/build/{p-cce20009.entry.js → p-a851af81.entry.js} +1 -1
  225. package/www/build/{p-d9d9d834.entry.js → p-a8875b97.entry.js} +2 -2
  226. package/www/build/{p-adad78fc.entry.js → p-ae60bbdf.entry.js} +1 -1
  227. package/www/build/p-b15efba3.entry.js +1 -0
  228. package/www/build/p-b574d5f6.entry.js +1 -0
  229. package/www/build/p-b6035e27.js +129 -0
  230. package/www/build/p-b9da171f.js +1 -0
  231. package/www/build/{p-aae632ef.entry.js → p-ba29bc12.entry.js} +1 -1
  232. package/www/build/p-bd886dd5.entry.js +1 -0
  233. package/www/build/{p-542b3702.entry.js → p-bfe5693d.entry.js} +1 -1
  234. package/www/build/{p-2b8975b1.entry.js → p-c9cdf4ee.entry.js} +1 -1
  235. package/www/build/{p-dfc18671.entry.js → p-ccdebe3f.entry.js} +1 -1
  236. package/www/build/p-cd8950d2.entry.js +1 -0
  237. package/www/build/{p-c787ea21.entry.js → p-d33fea26.entry.js} +1 -1
  238. package/www/build/p-d8069dab.entry.js +1 -0
  239. package/www/build/{p-f3080685.entry.js → p-d97a2db9.entry.js} +1 -1
  240. package/www/build/{p-1eef76bb.entry.js → p-d995d9dc.entry.js} +1 -1
  241. package/www/build/{p-895f636e.entry.js → p-de25c7f0.entry.js} +1 -1
  242. package/www/build/{p-66fbe5b8.entry.js → p-df4e963b.entry.js} +1 -1
  243. package/www/build/p-e2102da3.entry.js +1 -0
  244. package/www/build/{p-459dab30.entry.js → p-e84d6807.entry.js} +1 -1
  245. package/www/build/p-edb8d2ab.entry.js +1 -0
  246. package/www/build/{p-0b590426.entry.js → p-f322c5f0.entry.js} +1 -1
  247. package/www/build/{p-da7760a3.entry.js → p-f7c3e9c3.entry.js} +1 -1
  248. package/{dist/web-components-library/p-dcf4d1b6.entry.js → www/build/p-fa925198.entry.js} +1 -1
  249. package/www/build/{p-2c823f4c.entry.js → p-fe927bf4.entry.js} +1 -1
  250. package/www/build/web-components-library.esm.js +1 -1
  251. package/www/index.html +1 -1
  252. package/dist/cjs/z-button-filter_5.cjs.entry.js +0 -620
  253. package/dist/esm/z-button-filter_5.entry.js +0 -612
  254. package/dist/esm/z-list_3.entry.js +0 -220
  255. package/dist/web-components-library/p-14c9344f.entry.js +0 -1
  256. package/dist/web-components-library/p-21b9a94f.entry.js +0 -1
  257. package/dist/web-components-library/p-57270965.entry.js +0 -1
  258. package/dist/web-components-library/p-70be81b6.entry.js +0 -1
  259. package/dist/web-components-library/p-80369bb8.entry.js +0 -1
  260. package/dist/web-components-library/p-80a3e18a.js +0 -1
  261. package/dist/web-components-library/p-a785ff38.entry.js +0 -1
  262. package/dist/web-components-library/p-d3723aa7.entry.js +0 -1
  263. package/dist/web-components-library/p-fea5b98f.js +0 -1
  264. package/www/build/p-14c9344f.entry.js +0 -1
  265. package/www/build/p-21b9a94f.entry.js +0 -1
  266. package/www/build/p-57270965.entry.js +0 -1
  267. package/www/build/p-70be81b6.entry.js +0 -1
  268. package/www/build/p-80369bb8.entry.js +0 -1
  269. package/www/build/p-80a3e18a.js +0 -1
  270. package/www/build/p-a785ff38.entry.js +0 -1
  271. package/www/build/p-d3723aa7.entry.js +0 -1
  272. package/www/build/p-fa024b02.js +0 -129
  273. package/www/build/p-fea5b98f.js +0 -1
@@ -1,5 +1,4 @@
1
1
  import { Component, Prop, h, Element } from "@stencil/core";
2
- import classNames from "classnames";
3
2
  import { ButtonVariantEnum, ButtonTypeEnum, ButtonSizeEnum, } from "../../../beans";
4
3
  /**
5
4
  * @slot - button label
@@ -18,24 +17,22 @@ export class ZButton {
18
17
  getAttributes() {
19
18
  return {
20
19
  id: this.htmlid,
21
- class: classNames(this.variant, this.size),
22
20
  "aria-label": this.ariaLabel,
21
+ class: {
22
+ container: true,
23
+ [this.variant]: true,
24
+ [this.size]: true,
25
+ "has-text": !!this.hostElement.textContent
26
+ }
23
27
  };
24
28
  }
25
- componentDidLoad() {
26
- if (this.hostElement.innerText) {
27
- this.hostElement.classList.add("with-text");
28
- }
29
- }
30
- componentWillRender() {
31
- this.hostElement.style.pointerEvents = this.disabled ? "none" : "auto";
32
- }
33
29
  render() {
34
- if (this.href)
35
- return (h("a", Object.assign({ href: this.href, target: this.target }, this.getAttributes()),
30
+ if (this.href) {
31
+ return (h("a", Object.assign({}, this.getAttributes(), { href: this.href, target: this.target }),
36
32
  this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }),
37
33
  h("slot", null)));
38
- return (h("button", Object.assign({ name: this.name, type: this.type, disabled: this.disabled }, this.getAttributes()),
34
+ }
35
+ return (h("button", Object.assign({}, this.getAttributes(), { name: this.name, type: this.type, disabled: this.disabled }),
39
36
  this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }),
40
37
  h("slot", null)));
41
38
  }
@@ -77,7 +74,7 @@ export class ZButton {
77
74
  "optional": true,
78
75
  "docs": {
79
76
  "tags": [],
80
- "text": "HTML a href attribute. If it is set, it renders an HTML a tag."
77
+ "text": "HTML <a> href attribute. If it is set, it renders an HTML <a> tag."
81
78
  },
82
79
  "attribute": "href",
83
80
  "reflect": true
@@ -211,7 +208,7 @@ export class ZButton {
211
208
  "text": "`z-icon` name to use (optional)."
212
209
  },
213
210
  "attribute": "icon",
214
- "reflect": false
211
+ "reflect": true
215
212
  },
216
213
  "size": {
217
214
  "type": "string",
@@ -3,21 +3,20 @@
3
3
  --z-icon-width: 16px;
4
4
  --z-icon-height: 16px;
5
5
  --z-icon-right-margin: 0;
6
- --rgb-white: 240, 240, 240;
7
6
  }
8
7
 
9
- button:disabled,
10
- a:disabled {
8
+ :host([disabled]:not([disabled="false"])) {
11
9
  pointer-events: none;
12
10
  }
13
11
 
14
- button,
15
- a {
12
+ :host .container {
16
13
  box-sizing: border-box;
17
14
  display: inline-flex;
18
15
  align-items: center;
19
16
  justify-content: center;
20
- font-family: var(--dashboard-font);
17
+ width: 100%;
18
+ padding: 0;
19
+ font-family: var(--font-family-sans);
21
20
  font-weight: var(--font-sb);
22
21
  font-size: 14px;
23
22
  line-height: 1;
@@ -28,124 +27,121 @@ a {
28
27
  text-transform: uppercase;
29
28
  text-decoration: none;
30
29
  cursor: pointer;
31
- width: 100%;
32
30
  white-space: nowrap;
33
31
  outline: none;
34
32
  fill: currentColor;
35
33
  }
36
34
 
37
- :host.with-text z-icon {
38
- --z-icon-right-margin: var(--space-unit);
39
- }
40
-
41
- :host.with-text button,
42
- :host.with-text a {
35
+ :host .container.has-text {
43
36
  min-width: calc(var(--space-unit) * 8);
44
37
  padding: 0 calc(var(--space-unit) * 2);
45
38
  }
46
39
 
47
- .big {
40
+ :host .container.has-text z-icon {
41
+ --z-icon-right-margin: var(--space-unit);
42
+ }
43
+
44
+ :host .big {
48
45
  height: 44px;
49
46
  min-width: 44px;
50
47
  }
51
48
 
52
- .small {
49
+ :host .small {
53
50
  height: 36px;
54
51
  min-width: 36px;
55
52
  }
56
53
 
57
- .x-small {
54
+ :host .x-small {
58
55
  height: 32px;
59
56
  min-width: 32px;
60
57
  }
61
58
 
62
- .primary {
59
+ :host .primary {
63
60
  background-color: var(--color-primary01);
64
61
  border-color: var(--color-primary01);
65
62
  color: var(--color-text-inverse);
66
63
  }
67
64
 
68
65
  @media (hover: hover) {
69
- .primary:hover {
66
+ :host .primary:hover {
70
67
  background-color: var(--color-hover-primary);
71
68
  border-color: var(--color-hover-primary);
72
69
  color: var(--color-text-inverse);
73
70
  }
74
71
  }
75
72
 
76
- button:focus:focus-visible,
77
- a:focus:focus-visible {
73
+ :host .container:focus:focus-visible {
78
74
  box-shadow: var(--shadow-focus-primary);
79
75
  }
80
76
 
81
- .primary:active {
77
+ :host .primary:active {
82
78
  background-color: var(--color-pressed-primary);
83
79
  border-color: var(--color-pressed-primary);
84
80
  color: var(--color-text-inverse);
85
81
  box-shadow: var(--shadow-2);
86
82
  }
87
83
 
88
- .primary:disabled {
84
+ :host([disabled]:not([disabled="false"])) .primary {
89
85
  background-color: var(--color-disabled01);
90
86
  border-color: var(--color-disabled01);
91
87
  color: var(--color-disabled02);
92
88
  }
93
89
 
94
- .secondary {
90
+ :host .secondary {
95
91
  background-color: var(--color-surface01);
96
92
  border-color: var(--color-primary01);
97
93
  color: var(--color-primary01);
98
94
  }
99
95
 
100
96
  @media (hover: hover) {
101
- .secondary:hover {
97
+ :host .secondary:hover {
102
98
  background-color: var(--color-surface01);
103
99
  border-color: var(--color-hover-primary);
104
100
  color: var(--color-hover-primary);
105
101
  }
106
102
  }
107
103
 
108
- .secondary:active {
104
+ :host .secondary:active {
109
105
  background-color: var(--color-surface01);
110
106
  border-color: var(--color-pressed-primary);
111
107
  color: var(--color-pressed-primary);
112
108
  box-shadow: var(--shadow-2);
113
109
  }
114
110
 
115
- .secondary:disabled {
111
+ :host([disabled]:not([disabled="false"])) .secondary {
116
112
  background-color: var(--color-surface01);
117
113
  border-color: var(--color-disabled01);
118
114
  color: var(--color-disabled02);
119
115
  }
120
116
 
121
- .tertiary {
117
+ :host .tertiary {
122
118
  background-color: transparent;
123
119
  border-color: transparent;
124
120
  color: var(--color-primary01);
125
121
  }
126
122
 
127
123
  @media (hover: hover) {
128
- .tertiary:hover {
124
+ :host .tertiary:hover {
129
125
  background-color: var(--color-primary03);
130
126
  border-color: var(--color-primary03);
131
127
  color: var(--color-hover-primary);
132
128
  }
133
129
  }
134
130
 
135
- .tertiary:focus:focus-visible {
131
+ :host .tertiary:focus:focus-visible {
136
132
  background-color: var(--color-surface01);
137
133
  border-color: var(--color-surface01);
138
134
  color: var(--color-primary01);
139
135
  }
140
136
 
141
- .tertiary:active {
137
+ :host .tertiary:active {
142
138
  background-color: var(--color-surface01);
143
139
  border-color: var(--color-surface01);
144
140
  color: var(--color-primary01);
145
141
  box-shadow: var(--shadow-2);
146
142
  }
147
143
 
148
- .tertiary:disabled {
144
+ :host([disabled]:not([disabled="false"])) .tertiary {
149
145
  background-color: transparent;
150
146
  border-color: transparent;
151
147
  color: var(--color-disabled02);
@@ -1,10 +1,10 @@
1
1
  import { Component, Prop, h, Event } from "@stencil/core";
2
2
  import { randomId } from "../../../utils/utils";
3
- import { ZtoggleSwitchPositionEnum } from "../../../beans";
3
+ import { LabelPositions } from "../../../beans";
4
4
  export class ZToggleSwitch {
5
5
  constructor() {
6
6
  this.disabled = false;
7
- this.labelPosition = ZtoggleSwitchPositionEnum.left;
7
+ this.labelPosition = LabelPositions.left;
8
8
  this.checked = false;
9
9
  this.htmlid = `toggle-switch-id-${randomId()}`;
10
10
  }
@@ -68,10 +68,10 @@ export class ZToggleSwitch {
68
68
  "type": "string",
69
69
  "mutable": false,
70
70
  "complexType": {
71
- "original": "ZtoggleSwitchPositionEnum",
72
- "resolved": "ZtoggleSwitchPositionEnum.left | ZtoggleSwitchPositionEnum.right",
71
+ "original": "LabelPosition",
72
+ "resolved": "\"left\" | \"right\"",
73
73
  "references": {
74
- "ZtoggleSwitchPositionEnum": {
74
+ "LabelPosition": {
75
75
  "location": "import",
76
76
  "path": "../../../beans"
77
77
  }
@@ -85,7 +85,7 @@ export class ZToggleSwitch {
85
85
  },
86
86
  "attribute": "label-position",
87
87
  "reflect": true,
88
- "defaultValue": "ZtoggleSwitchPositionEnum.left"
88
+ "defaultValue": "LabelPositions.left"
89
89
  },
90
90
  "checked": {
91
91
  "type": "boolean",
@@ -10,7 +10,6 @@ export class ZDragdropArea {
10
10
  }
11
11
  render() {
12
12
  return (h("div", { tabIndex: 0, ref: (val) => (this.dragDropContainer = val), class: "dragdrop", onDragOver: (e) => {
13
- console.log(e);
14
13
  e.preventDefault();
15
14
  this.dragDropContainer.classList.add("dragover");
16
15
  }, onDragLeave: () => {
@@ -27,7 +27,6 @@ export class ZFile {
27
27
  (_b = (_a = this.icon) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
28
28
  }
29
29
  elementHasEllipsis() {
30
- console.log(this.ellipsis, this.ellipsis.offsetWidth, this.ellipsis.scrollWidth);
31
30
  return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
32
31
  }
33
32
  render() {
@@ -1,5 +1,5 @@
1
1
  import { Component, Prop, h, State, Listen, Watch, Event, } from "@stencil/core";
2
- import { InputTypeEnum, keybordKeyCodeEnum, } from "../../../beans";
2
+ import { InputTypeEnum, KeyboardKeyCodeEnum, } from "../../../beans";
3
3
  import { handleKeyboardSubmit } from "../../../utils/utils";
4
4
  export class ZCombobox {
5
5
  constructor() {
@@ -101,7 +101,7 @@ export class ZCombobox {
101
101
  }
102
102
  renderHeader() {
103
103
  return (h("div", { class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (ev) => {
104
- if (ev.keyCode === keybordKeyCodeEnum.SPACE)
104
+ if (ev.keyCode === KeyboardKeyCodeEnum.SPACE)
105
105
  ev.preventDefault();
106
106
  }, onKeyUp: (ev) => handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0 },
107
107
  h("z-body", { level: 3, component: "p" },
@@ -147,7 +147,7 @@ export class ZCombobox {
147
147
  renderSearchInput() {
148
148
  if (!this.isopen)
149
149
  return;
150
- return (h("z-input", { htmlid: `${this.inputid}_search`, label: this.searchlabel, placeholder: this.searchplaceholder, htmltitle: this.searchtitle, type: this.inputType, value: this.searchValue, hasmessage: false, onInputChange: (e) => {
150
+ return (h("z-input", { htmlid: `${this.inputid}_search`, label: this.searchlabel, placeholder: this.searchplaceholder, htmltitle: this.searchtitle, type: this.inputType, value: this.searchValue, message: false, onInputChange: (e) => {
151
151
  if (e.detail.keycode === 27)
152
152
  return this.closeFilterItems();
153
153
  this.filterItems(e.detail.value);
@@ -162,7 +162,7 @@ export class ZCombobox {
162
162
  this.maxcheckableitems < this.itemsList.length })));
163
163
  }
164
164
  render() {
165
- return (h("div", { "data-action": `combo-${this.inputid}`, class: `${this.isopen ? "open" : ""} ${this.isfixed ? "fixed" : ""}`, id: this.inputid },
165
+ return (h("div", { "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed }, id: this.inputid },
166
166
  this.renderHeader(),
167
167
  this.renderContent()));
168
168
  }