@zanichelli/albe-web-components 6.10.0-RC1 → 6.10.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 (218) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/cjs/index-e3299e0a.js +14 -6
  3. package/dist/cjs/index.cjs.js +6 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/web-components-library.cjs.js +1 -1
  6. package/dist/cjs/{z-app-header_3.cjs.entry.js → z-app-header_2.cjs.entry.js} +4 -80
  7. package/dist/cjs/z-body.cjs.entry.js +18 -0
  8. package/dist/cjs/z-combobox.cjs.entry.js +9 -7
  9. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +77 -8
  10. package/dist/cjs/z-file-upload.cjs.entry.js +11 -11
  11. package/dist/cjs/z-heading.cjs.entry.js +18 -0
  12. package/dist/cjs/z-input_2.cjs.entry.js +19 -12
  13. package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
  14. package/dist/cjs/z-select.cjs.entry.js +16 -8
  15. package/dist/cjs/z-table-empty-box.cjs.entry.js +1 -1
  16. package/dist/cjs/z-table.cjs.entry.js +1 -1
  17. package/dist/cjs/{z-body_2.cjs.entry.js → z-typography.cjs.entry.js} +0 -12
  18. package/dist/collection/beans/index.js +1 -0
  19. package/dist/collection/collection-manifest.json +3 -3
  20. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +1 -1
  21. package/dist/collection/components/file-upload/z-file-upload/index.js +10 -10
  22. package/dist/collection/components/file-upload/z-file-upload/styles.css +2 -2
  23. package/dist/collection/components/inputs/z-combobox/index.js +32 -7
  24. package/dist/collection/components/inputs/z-combobox/styles.css +31 -3
  25. package/dist/collection/components/inputs/z-input/index.js +42 -11
  26. package/dist/collection/components/inputs/z-input/styles.css +59 -0
  27. package/dist/collection/components/inputs/z-input-message/styles.css +15 -0
  28. package/dist/collection/components/inputs/z-select/index.js +39 -8
  29. package/dist/collection/components/inputs/z-select/styles.css +9 -0
  30. package/dist/collection/components/modal/z-modal/index.js +50 -36
  31. package/dist/collection/components/modal/z-modal/styles.css +5 -1
  32. package/dist/collection/components/z-table/z-table/index.js +1 -1
  33. package/dist/collection/components/z-table/z-table-empty-box/index.js +1 -1
  34. package/dist/collection/{components → deprecated}/typography/z-body/index.js +0 -0
  35. package/dist/collection/{components → deprecated}/typography/z-heading/index.js +0 -0
  36. package/dist/collection/{components → deprecated}/typography/z-typography/index.js +0 -0
  37. package/dist/collection/{components → deprecated}/typography/z-typography/styles.css +0 -0
  38. package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +19 -0
  39. package/dist/esm/index-a2ca4b97.js +14 -6
  40. package/dist/esm/index.js +1 -1
  41. package/dist/esm/loader.js +1 -1
  42. package/dist/esm/polyfills/css-shim.js +0 -0
  43. package/dist/esm/web-components-library.js +1 -1
  44. package/dist/esm/{z-app-header_3.entry.js → z-app-header_2.entry.js} +5 -80
  45. package/dist/esm/z-body.entry.js +14 -0
  46. package/dist/esm/z-combobox.entry.js +10 -8
  47. package/dist/esm/z-dragdrop-area_2.entry.js +78 -9
  48. package/dist/esm/z-file-upload.entry.js +11 -11
  49. package/dist/esm/z-heading.entry.js +14 -0
  50. package/dist/esm/z-input_2.entry.js +20 -13
  51. package/dist/esm/z-myz-list-item.entry.js +1 -1
  52. package/dist/esm/z-select.entry.js +17 -9
  53. package/dist/esm/z-table-empty-box.entry.js +1 -1
  54. package/dist/esm/z-table.entry.js +1 -1
  55. package/dist/esm/{z-body_2.entry.js → z-typography.entry.js} +1 -12
  56. package/dist/types/beans/index.d.ts +1 -0
  57. package/dist/types/components/buttons/z-button/index.d.ts +0 -0
  58. package/dist/types/components/buttons/z-button-sort/index.d.ts +0 -0
  59. package/dist/types/components/buttons/z-chip/index.d.ts +0 -0
  60. package/dist/types/components/buttons/z-toggle-button/index.d.ts +0 -0
  61. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +0 -0
  62. package/dist/types/components/date-picker/utils.d.ts +0 -0
  63. package/dist/types/components/date-picker/z-date-picker/index.d.ts +0 -0
  64. package/dist/types/components/date-picker/z-range-picker/index.d.ts +0 -0
  65. package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -0
  66. package/dist/types/components/file-upload/z-file/index.d.ts +0 -0
  67. package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -0
  68. package/dist/types/components/icons/icons.d.ts +0 -0
  69. package/dist/types/components/icons/z-icon/index.d.ts +0 -0
  70. package/dist/types/components/index.d.ts +0 -0
  71. package/dist/types/components/indicators/z-stepper/index.d.ts +0 -0
  72. package/dist/types/components/indicators/z-stepper-item/index.d.ts +0 -0
  73. package/dist/types/components/inputs/z-combobox/index.d.ts +3 -1
  74. package/dist/types/components/inputs/z-input/index.d.ts +3 -1
  75. package/dist/types/components/inputs/z-input-message/index.d.ts +0 -0
  76. package/dist/types/components/inputs/z-searchbar/index.d.ts +0 -0
  77. package/dist/types/components/inputs/z-select/index.d.ts +4 -1
  78. package/dist/types/components/list/z-list/index.d.ts +0 -0
  79. package/dist/types/components/list/z-list-element/index.d.ts +0 -0
  80. package/dist/types/components/list/z-list-group/index.d.ts +0 -0
  81. package/dist/types/components/list/z-toast-notification-list/index.d.ts +0 -0
  82. package/dist/types/components/logo/z-logo/index.d.ts +0 -0
  83. package/dist/types/components/modal/z-modal/index.d.ts +15 -12
  84. package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +0 -0
  85. package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +0 -0
  86. package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +0 -0
  87. package/dist/types/components/navigation/z-app-header/index.d.ts +0 -0
  88. package/dist/types/components/navigation/z-app-switcher/index.d.ts +0 -0
  89. package/dist/types/components/navigation/z-link/index.d.ts +0 -0
  90. package/dist/types/components/navigation/z-menu/index.d.ts +0 -0
  91. package/dist/types/components/navigation/z-menu-section/index.d.ts +0 -0
  92. package/dist/types/components/notification/z-info-box/index.d.ts +0 -0
  93. package/dist/types/components/notification/z-notification/index.d.ts +0 -0
  94. package/dist/types/components/notification/z-toast-notification/index.d.ts +0 -0
  95. package/dist/types/components/notification/z-tooltip/index.d.ts +0 -0
  96. package/dist/types/components/panel/z-panel-elem/index.d.ts +0 -0
  97. package/dist/types/components/z-anchor-navigation/index.d.ts +0 -0
  98. package/dist/types/components/z-aria-alert/index.d.ts +0 -0
  99. package/dist/types/components/z-avatar/index.d.ts +0 -0
  100. package/dist/types/components/z-card/index.d.ts +0 -0
  101. package/dist/types/components/z-carousel/index.d.ts +0 -0
  102. package/dist/types/components/z-contextual-menu/index.d.ts +0 -0
  103. package/dist/types/components/z-cover-hero/index.d.ts +0 -0
  104. package/dist/types/components/z-divider/index.d.ts +0 -0
  105. package/dist/types/components/z-ghost-loading/index.d.ts +0 -0
  106. package/dist/types/components/z-info-reveal/index.d.ts +0 -0
  107. package/dist/types/components/z-offcanvas/index.d.ts +0 -0
  108. package/dist/types/components/z-pagination/index.d.ts +0 -0
  109. package/dist/types/components/z-popover/index.d.ts +0 -0
  110. package/dist/types/components/z-section-title/index.d.ts +0 -0
  111. package/dist/types/components/z-skip-to-content/index.d.ts +0 -0
  112. package/dist/types/components/z-table/z-table/index.d.ts +0 -0
  113. package/dist/types/components/z-table/z-table-body/index.d.ts +0 -0
  114. package/dist/types/components/z-table/z-table-cell/index.d.ts +0 -0
  115. package/dist/types/components/z-table/z-table-empty-box/index.d.ts +0 -0
  116. package/dist/types/components/z-table/z-table-expanded-row/index.d.ts +0 -0
  117. package/dist/types/components/z-table/z-table-footer/index.d.ts +0 -0
  118. package/dist/types/components/z-table/z-table-head/index.d.ts +0 -0
  119. package/dist/types/components/z-table/z-table-header/index.d.ts +0 -0
  120. package/dist/types/components/z-table/z-table-header-row/index.d.ts +0 -0
  121. package/dist/types/components/z-table/z-table-row/index.d.ts +0 -0
  122. package/dist/types/components/z-table/z-table-sticky-footer/index.d.ts +0 -0
  123. package/dist/types/components/z-tag/index.d.ts +0 -0
  124. package/dist/types/components/z-visually-hidden/index.d.ts +0 -0
  125. package/dist/types/components.d.ts +31 -7
  126. package/dist/types/constants/breakpoints.d.ts +0 -0
  127. package/dist/types/constants/icons.d.ts +0 -0
  128. package/dist/types/{components → deprecated}/typography/z-body/index.d.ts +0 -0
  129. package/dist/types/{components → deprecated}/typography/z-heading/index.d.ts +0 -0
  130. package/dist/types/{components → deprecated}/typography/z-typography/index.d.ts +0 -0
  131. package/dist/types/index.d.ts +0 -0
  132. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +0 -0
  133. package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +0 -0
  134. package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +0 -0
  135. package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +0 -0
  136. package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +0 -0
  137. package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +0 -0
  138. package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +0 -0
  139. package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +0 -0
  140. package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +0 -0
  141. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +0 -0
  142. package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +0 -0
  143. package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +0 -0
  144. package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +0 -0
  145. package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +0 -0
  146. package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +0 -0
  147. package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +0 -0
  148. package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +0 -0
  149. package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +0 -0
  150. package/dist/types/snowflakes/myz/z-alert/index.d.ts +0 -0
  151. package/dist/types/snowflakes/myz/z-otp/index.d.ts +0 -0
  152. package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +0 -0
  153. package/dist/types/stencil-public-runtime.d.ts +0 -0
  154. package/dist/types/utils/utils.d.ts +0 -0
  155. package/dist/web-components-library/index.esm.js +1 -1
  156. package/dist/web-components-library/p-3860061a.entry.js +1 -0
  157. package/dist/web-components-library/p-4367f978.entry.js +1 -0
  158. package/dist/web-components-library/p-46fd0ec3.entry.js +1 -0
  159. package/dist/web-components-library/p-488d2818.entry.js +1 -0
  160. package/dist/web-components-library/p-52b084fb.entry.js +1 -0
  161. package/dist/web-components-library/p-5ac6109d.entry.js +1 -0
  162. package/dist/web-components-library/p-6ea7428a.entry.js +1 -0
  163. package/dist/web-components-library/p-a7670317.entry.js +1 -0
  164. package/dist/web-components-library/p-b3c4c5f7.entry.js +1 -0
  165. package/dist/web-components-library/p-d9a6a204.entry.js +1 -0
  166. package/dist/web-components-library/p-e78ce8ec.entry.js +1 -0
  167. package/dist/web-components-library/p-edd53386.entry.js +1 -0
  168. package/dist/web-components-library/web-components-library.css +0 -0
  169. package/dist/web-components-library/web-components-library.esm.js +1 -1
  170. package/loader/cdn.js +0 -0
  171. package/loader/index.cjs.js +0 -0
  172. package/loader/index.d.ts +0 -0
  173. package/loader/index.es2017.js +0 -0
  174. package/loader/index.js +0 -0
  175. package/loader/package.json +0 -0
  176. package/package.json +1 -1
  177. package/www/build/index.esm.js +1 -1
  178. package/www/build/p-32511690.css +1636 -0
  179. package/www/build/p-3860061a.entry.js +1 -0
  180. package/www/build/p-4367f978.entry.js +1 -0
  181. package/www/build/p-46fd0ec3.entry.js +1 -0
  182. package/www/build/p-488d2818.entry.js +1 -0
  183. package/www/build/p-50050d26.js +129 -0
  184. package/www/build/p-52b084fb.entry.js +1 -0
  185. package/www/build/p-5ac6109d.entry.js +1 -0
  186. package/www/build/p-6ea7428a.entry.js +1 -0
  187. package/www/build/p-a7670317.entry.js +1 -0
  188. package/www/build/p-b3c4c5f7.entry.js +1 -0
  189. package/www/build/p-d9a6a204.entry.js +1 -0
  190. package/www/build/p-e78ce8ec.entry.js +1 -0
  191. package/www/build/p-edd53386.entry.js +1 -0
  192. package/www/build/web-components-library.css +0 -0
  193. package/www/build/web-components-library.esm.js +1 -1
  194. package/www/build/web-components-library.js +0 -0
  195. package/www/host.config.json +0 -0
  196. package/www/index.html +1 -24
  197. package/dist/web-components-library/p-2e5f7ff1.entry.js +0 -1
  198. package/dist/web-components-library/p-5c62387a.entry.js +0 -1
  199. package/dist/web-components-library/p-6acb48e3.entry.js +0 -1
  200. package/dist/web-components-library/p-735bdfa3.entry.js +0 -1
  201. package/dist/web-components-library/p-7b3b99ee.entry.js +0 -1
  202. package/dist/web-components-library/p-95b8f109.entry.js +0 -1
  203. package/dist/web-components-library/p-a79d1412.entry.js +0 -1
  204. package/dist/web-components-library/p-b17981a4.entry.js +0 -1
  205. package/dist/web-components-library/p-bb92c90f.entry.js +0 -1
  206. package/dist/web-components-library/p-ff27c534.entry.js +0 -1
  207. package/www/build/p-0d36d640.js +0 -1
  208. package/www/build/p-275801c6.css +0 -1
  209. package/www/build/p-2e5f7ff1.entry.js +0 -1
  210. package/www/build/p-5c62387a.entry.js +0 -1
  211. package/www/build/p-6acb48e3.entry.js +0 -1
  212. package/www/build/p-735bdfa3.entry.js +0 -1
  213. package/www/build/p-7b3b99ee.entry.js +0 -1
  214. package/www/build/p-95b8f109.entry.js +0 -1
  215. package/www/build/p-a79d1412.entry.js +0 -1
  216. package/www/build/p-b17981a4.entry.js +0 -1
  217. package/www/build/p-bb92c90f.entry.js +0 -1
  218. package/www/build/p-ff27c534.entry.js +0 -1
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a2ca4b97.js';
2
- import { e as KeyboardCode, k as ListDividerType } from './index-968a240f.js';
2
+ import { c as ButtonSize, e as KeyboardCode, k as ListDividerType, g as ListSize } from './index-968a240f.js';
3
3
  import { r as randomId, b as boolean, a as getElementTree, h as handleKeyboardSubmit, d as getClickedElement } from './utils-6cf7efe2.js';
4
4
  import './breakpoints-c386984e.js';
5
5
 
6
- const stylesCss = ".sc-z-select-h{display:inline-block;width:inherit;color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg)}.select-wrapper.sc-z-select>z-input.sc-z-select{width:100%}.select-wrapper.sc-z-select>div.sc-z-select{position:relative}.select-wrapper.sc-z-select>div.closed.sc-z-select{overflow:hidden;height:0}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select{position:absolute;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 0.5) var(--space-unit);border:var(--border-size-small) solid var(--gray200);border-top:none;background:var(--color-surface01);outline:none}.select-wrapper.sc-z-select .closed.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:10}.select-wrapper.sc-z-select .open.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:20}.select-wrapper.sc-z-select .ul-scroll-wrapper.fixed.sc-z-select{position:static}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select{position:relative;overflow:auto;max-height:240px;padding:calc(var(--space-unit) * 0.5);outline:none;scrollbar-color:var(--color-primary01) transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-track{background-color:transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-content.sc-z-select{display:block;padding:0 calc(var(--space-unit) * 1.5)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-content.selected.sc-z-select{font-weight:bold}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select .no-results.sc-z-select z-icon.sc-z-select{margin-right:var(--space-unit)}.z-list-group-title.sc-z-select{color:var(--gray800)}.reset-item.sc-z-select{color:var(--color-primary01);fill:var(--color-primary01)}.reset-item-content.sc-z-select{display:flex;align-items:center}.reset-item.reset-item-margin.sc-z-select .reset-item-content.sc-z-select{margin-left:calc(var(--space-unit))}.reset-item.sc-z-select .reset-item-content.sc-z-select>z-icon.sc-z-select{margin-right:var(--space-unit)}.reset-item.hide.sc-z-select{display:none}";
6
+ const stylesCss = ".sc-z-select-h{display:inline-block;width:inherit;color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg)}[size=\"small\"].sc-z-select-h,[size=\"x-small\"].sc-z-select-h{font-size:var(--font-size-2)}.select-wrapper.sc-z-select>z-input.sc-z-select{width:100%}.select-wrapper.sc-z-select>div.sc-z-select{position:relative}.select-wrapper.sc-z-select>div.closed.sc-z-select{overflow:hidden;height:0}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select{position:absolute;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 0.5) var(--space-unit);border:var(--border-size-small) solid var(--gray200);border-top:none;background:var(--color-surface01);outline:none}.select-wrapper.sc-z-select .closed.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:10}.select-wrapper.sc-z-select .open.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:20}.select-wrapper.sc-z-select .ul-scroll-wrapper.fixed.sc-z-select{position:static}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select{position:relative;overflow:auto;max-height:240px;padding:calc(var(--space-unit) * 0.5);outline:none;scrollbar-color:var(--color-primary01) transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-track{background-color:transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-content.sc-z-select{display:block;padding:calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 1.5)}[size=\"x-small\"].sc-z-select-h .select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-content.sc-z-select{padding:0 calc(var(--space-unit) * 1.5)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-content.selected.sc-z-select{font-weight:bold}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select .no-results.sc-z-select z-icon.sc-z-select{margin-right:var(--space-unit)}.z-list-group-title.sc-z-select{color:var(--gray800)}.reset-item.sc-z-select{color:var(--color-primary01);fill:var(--color-primary01)}.reset-item-content.sc-z-select{display:flex;align-items:center}.reset-item.reset-item-margin.sc-z-select .reset-item-content.sc-z-select{margin-left:calc(var(--space-unit))}.reset-item.sc-z-select .reset-item-content.sc-z-select>z-icon.sc-z-select{margin-right:var(--space-unit)}.reset-item.hide.sc-z-select{display:none}";
7
7
 
8
8
  const ZSelect = class {
9
9
  constructor(hostRef) {
@@ -26,6 +26,8 @@ const ZSelect = class {
26
26
  this.noresultslabel = "Nessun risultato";
27
27
  /** When fixed, it occupies space and pushes down next elements. */
28
28
  this.isfixed = false;
29
+ /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
30
+ this.size = ButtonSize.BIG;
29
31
  this.isOpen = false;
30
32
  this.selectedItem = null;
31
33
  this.itemsList = [];
@@ -224,7 +226,7 @@ const ZSelect = class {
224
226
  return (h("z-input", { class: {
225
227
  "active-select": this.isOpen,
226
228
  "cursor-select": !this.autocomplete,
227
- }, id: `${this.htmlid}_input`, htmlid: `${this.htmlid}_input`, placeholder: this.placeholder, value: !this.isOpen && this.selectedItem ? this.selectedItem.name.replace(/<[^>]+>/g, "") : null, label: this.label, "aria-label": this.ariaLabel, icon: this.isOpen ? "caret-up" : "caret-down", hasclearicon: this.hasAutocomplete(), message: false, disabled: this.disabled, readonly: this.readonly || (!this.hasAutocomplete() && this.isOpen), status: this.isOpen ? undefined : this.status, autocomplete: "off", onClick: (e) => {
229
+ }, id: `${this.htmlid}_input`, htmlid: `${this.htmlid}_input`, placeholder: this.placeholder, value: !this.isOpen && this.selectedItem ? this.selectedItem.name.replace(/<[^>]+>/g, "") : null, label: this.label, "aria-label": this.ariaLabel, icon: this.isOpen ? "caret-up" : "caret-down", hasclearicon: this.hasAutocomplete(), message: false, disabled: this.disabled, readonly: this.readonly || (!this.hasAutocomplete() && this.isOpen), status: this.isOpen ? undefined : this.status, autocomplete: "off", size: this.size, onClick: (e) => {
228
230
  this.handleInputClick(e);
229
231
  }, onKeyUp: (e) => {
230
232
  if (e.keyCode !== 13) {
@@ -247,7 +249,7 @@ const ZSelect = class {
247
249
  return (h("div", { class: this.isOpen ? "open" : "closed", tabindex: "-1" }, h("div", { class: {
248
250
  "ul-scroll-wrapper": true,
249
251
  "fixed": this.isfixed,
250
- }, tabindex: "-1" }, h("z-list", { role: "listbox", tabindex: this.disabled || this.readonly || !this.isOpen ? -1 : 0, id: this.htmlid, "aria-activedescendant": (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.id, "aria-multiselectable": false, class: {
252
+ }, tabindex: "-1" }, h("z-list", { role: "listbox", tabindex: this.disabled || this.readonly || !this.isOpen ? -1 : 0, id: this.htmlid, "aria-activedescendant": (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.id, "aria-multiselectable": false, size: this.listSizeType(), class: {
251
253
  disabled: this.disabled,
252
254
  readonly: this.readonly,
253
255
  filled: !!this.selectedItem,
@@ -259,18 +261,24 @@ const ZSelect = class {
259
261
  "hide": !this.selectedItem || !this.resetItem,
260
262
  "reset-item": true,
261
263
  "reset-item-margin": !this.hasGroupItems,
262
- }, clickable: true, disabled: false, dividerType: ListDividerType.ELEMENT, role: "option", tabindex: "0", "aria-selected": "false", id: `${this.htmlid}_${this.resetItem ? "0" : "none"}`, onClickItem: () => {
264
+ }, clickable: true, disabled: false, dividerType: ListDividerType.ELEMENT, role: "option", tabindex: "0", "aria-selected": "false", id: `${this.htmlid}_${this.resetItem ? "0" : "none"}`, size: this.listSizeType(), onClickItem: () => {
263
265
  this.selectedItem = null;
264
266
  this.searchString = null;
265
267
  this.emitResetSelect();
266
268
  }, onKeyDown: (e) => this.arrowsSelectNav(e, 0) }, h("div", { class: "reset-item-content" }, h("z-icon", { name: "multiply-circled" }), h("span", null, this.resetItem))));
267
269
  }
268
270
  renderItem(item, key, lastItem) {
269
- return (h("z-list-element", { clickable: !item.disabled, disabled: item.disabled, dividerType: lastItem ? ListDividerType.HEADER : ListDividerType.ELEMENT, role: "option", tabindex: item.disabled || !this.isOpen ? -1 : 0, "aria-selected": !!item.selected, id: `${this.htmlid}_${key}`, onClickItem: () => this.selectItem(item, true), onKeyDown: (e) => this.arrowsSelectNav(e, key) }, h("span", { class: {
271
+ return (h("z-list-element", { clickable: !item.disabled, disabled: item.disabled, dividerType: lastItem ? ListDividerType.HEADER : ListDividerType.ELEMENT, role: "option", tabindex: item.disabled || !this.isOpen ? -1 : 0, "aria-selected": !!item.selected, id: `${this.htmlid}_${key}`, size: this.listSizeType(), onClickItem: () => this.selectItem(item, true), onKeyDown: (e) => this.arrowsSelectNav(e, key) }, h("span", { class: {
270
272
  "selected": !!item.selected,
271
273
  "list-element-content": true,
272
274
  }, innerHTML: item.name })));
273
275
  }
276
+ listSizeType() {
277
+ if (this.size === ButtonSize.SMALL || this.size === ButtonSize.X_SMALL) {
278
+ return ListSize.SMALL;
279
+ }
280
+ return ListSize.MEDIUM;
281
+ }
274
282
  renderSelectUlItems() {
275
283
  if (!this.itemsList.length) {
276
284
  return this.renderNoSearchResults();
@@ -296,17 +304,17 @@ const ZSelect = class {
296
304
  return group;
297
305
  }, {});
298
306
  return Object.entries(newData).map(([key, value]) => {
299
- return (h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, h("z-body", { class: "z-list-group-title", level: 3, slot: "header-title", variant: "semibold" }, key), value.map((item) => item)));
307
+ return (h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, h("span", { class: "body-3-sb z-list-group-title", slot: "header-title" }, key), value.map((item) => item)));
300
308
  });
301
309
  }
302
310
  renderNoSearchResults() {
303
- return (h("z-list-element", { color: "blue500", class: "no-results" }, h("z-icon", { name: "multiply-circle", fill: "blue500" }), this.noresultslabel));
311
+ return (h("z-list-element", { color: "blue500", class: "no-results", size: this.listSizeType() }, h("z-icon", { name: "multiply-circle", fill: "blue500" }), this.noresultslabel));
304
312
  }
305
313
  renderMessage() {
306
314
  if (boolean(this.message) === false) {
307
315
  return;
308
316
  }
309
- return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status }));
317
+ return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
310
318
  }
311
319
  render() {
312
320
  return (h("div", { class: "select-wrapper" }, this.renderInput(), this.renderSelectUl(), this.renderMessage()));
@@ -15,7 +15,7 @@ const ZTableEmptyBox = class {
15
15
  this.hasCta2Slot = !!this.hostElement.querySelector('[slot="cta2"]');
16
16
  }
17
17
  render() {
18
- return (h(Host, null, h("z-body", { level: 3, variant: "semibold" }, this.message), h("br", null), !!this.subtitle && (h("z-body", { level: 4, variant: "regular" }, this.subtitle)), (!!this.hasCta1Slot || !!this.hasCta2Slot) && (h("div", { class: {
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
19
  "cta": true,
20
20
  "has-2-cta": !!this.hasCta1Slot && !!this.hasCta2Slot,
21
21
  } }, h("slot", { name: "cta1" }), h("slot", { name: "cta2" })))));
@@ -46,7 +46,7 @@ const ZTable = class {
46
46
  }
47
47
  renderError(tableClass) {
48
48
  const minHeight = this.lines ? `calc(40px * ${this.lines})` : "auto";
49
- return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-error", null, h("div", { class: "error-content", style: { minHeight } }, h("slot", { name: "error-image" }), h("div", { class: "text" }, h("z-body", { class: "error-message", level: 3, variant: "semibold" }, this.errorMessage), h("slot", { name: "error-action" }))))));
49
+ return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-error", null, h("div", { class: "error-content", style: { minHeight } }, h("slot", { name: "error-image" }), h("div", { class: "text" }, h("span", { class: "body-3-sb error-message" }, this.errorMessage), h("slot", { name: "error-action" }))))));
50
50
  }
51
51
  renderEmpty(tableClass) {
52
52
  const buttonSize = this.isMobile ? ButtonSize.SMALL : ButtonSize.BIG;
@@ -1,16 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement, H as Host } from './index-a2ca4b97.js';
2
2
 
3
- const ZBody = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- /** Font weight variant */
7
- this.variant = "regular";
8
- }
9
- render() {
10
- return (h("z-typography", { tabIndex: 0, component: this.component || "span", level: `b${this.level}`, variant: this.variant }, h("slot", null)));
11
- }
12
- };
13
-
14
3
  const stylesCss = ":host>*{margin:0;font-family:var(--dashboard-font)}:host(.regular)>*{font-weight:var(--font-rg)}:host(.semibold)>*{font-weight:600}:host(.light)>*{font-weight:300}:host(.h1)>*{font-size:32px;line-height:40px}:host(.h2)>*{font-size:28px;line-height:36px}:host(.h3)>*{font-size:24px;line-height:32px}:host(.h4)>*{font-size:20px;line-height:28px}:host(.b1)>*{font-size:20px;line-height:28px}:host(.b2)>*{font-size:18px;line-height:28px}:host(.b3)>*{font-size:16px;line-height:24px}:host(.b4)>*{font-size:14px;line-height:20px}:host(.b5)>*{font-size:12px;line-height:16px}:host(:focus-visible){outline:none}";
15
4
 
16
5
  const ZTypography = class {
@@ -34,4 +23,4 @@ const ZTypography = class {
34
23
  };
35
24
  ZTypography.style = stylesCss;
36
25
 
37
- export { ZBody as z_body, ZTypography as z_typography };
26
+ export { ZTypography as z_typography };
@@ -97,6 +97,7 @@ export declare enum ButtonSize {
97
97
  SMALL = "small",
98
98
  X_SMALL = "x-small"
99
99
  }
100
+ export { ButtonSize as ControlSize };
100
101
  export declare enum InputType {
101
102
  TEXT = "text",
102
103
  PASSWORD = "password",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from "../../../stencil-public-runtime";
2
- import { ComboItem } from "../../../beans";
2
+ import { ComboItem, ControlSize } from "../../../beans";
3
3
  export declare class ZCombobox {
4
4
  /** input unique id */
5
5
  inputid: string;
@@ -35,6 +35,8 @@ export declare class ZCombobox {
35
35
  maxcheckableitems: number;
36
36
  /** group items by category */
37
37
  hasgroupitems?: boolean;
38
+ /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
39
+ size?: ControlSize;
38
40
  searchValue: string;
39
41
  selectedCounter: number;
40
42
  renderItemsList: ComboItem[];
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from "../../../stencil-public-runtime";
2
- import { InputType, LabelPosition, InputStatus } from "../../../beans";
2
+ import { InputType, LabelPosition, InputStatus, ControlSize } from "../../../beans";
3
3
  export declare class ZInput {
4
4
  hostElement: HTMLZInputElement;
5
5
  /** the id of the input element */
@@ -46,6 +46,8 @@ export declare class ZInput {
46
46
  step?: number;
47
47
  /** pattern value (optional): available for tel, text, search, url, email, password*/
48
48
  pattern?: string;
49
+ /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
50
+ size?: ControlSize;
49
51
  isTyping: boolean;
50
52
  passwordHidden: boolean;
51
53
  private timer;
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from "../../../stencil-public-runtime";
2
- import { SelectItem, InputStatus } from "../../../beans";
2
+ import { SelectItem, InputStatus, ControlSize } from "../../../beans";
3
3
  export declare class ZSelect {
4
4
  element: HTMLZSelectElement;
5
5
  /** the id of the input element */
@@ -34,6 +34,8 @@ export declare class ZSelect {
34
34
  isfixed?: boolean;
35
35
  /** */
36
36
  resetItem?: string;
37
+ /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
38
+ size?: ControlSize;
37
39
  isOpen: boolean;
38
40
  selectedItem: null | SelectItem;
39
41
  searchString: null | string;
@@ -71,6 +73,7 @@ export declare class ZSelect {
71
73
  private renderSelectUl;
72
74
  private renderResetItem;
73
75
  private renderItem;
76
+ private listSizeType;
74
77
  private renderSelectUlItems;
75
78
  private renderSelectGroupItems;
76
79
  private renderNoSearchResults;
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from "../../../stencil-public-runtime";
2
2
  /**
3
- * @slot modalContent - set the content of the modal
4
3
  * @slot modalCloseButton - accept custom close button
4
+ * @slot modalContent - set the content of the modal
5
5
  */
6
6
  export declare class ZModal {
7
7
  /** unique id */
@@ -11,13 +11,11 @@ export declare class ZModal {
11
11
  /** subtitle (optional) */
12
12
  modalsubtitle?: string;
13
13
  /** aria-label for close button (optional) */
14
- closeButtonLabel?: string;
14
+ closeButtonLabel: string;
15
15
  /** add role "alertdialog" to dialog (optional, default is false) */
16
16
  alertdialog?: boolean;
17
17
  private dialog;
18
- private modalEnd;
19
- private closeButton;
20
- private shift;
18
+ host: HTMLZModalElement;
21
19
  /** emitted on close button click, returns modalid */
22
20
  modalClose: EventEmitter;
23
21
  private emitModalClose;
@@ -27,14 +25,19 @@ export declare class ZModal {
27
25
  /** emitted on background click, returns modalid */
28
26
  modalBackgroundClick: EventEmitter;
29
27
  private emitBackgroundClick;
28
+ componentDidLoad(): void;
30
29
  /** open modal */
31
- openModal(): Promise<void>;
30
+ open(): Promise<void>;
32
31
  /** close modal */
33
- closeModal(): Promise<void>;
34
- componentDidLoad(): void;
35
- private open;
36
- private close;
37
- private handleForwardNav;
38
- private handleBackwardsNav;
32
+ close(): Promise<void>;
33
+ /**
34
+ * Get a list of focusable elements in the dialog.
35
+ * Remove elements with `display: none` from the list, because they're not focusable.
36
+ *
37
+ * N.B. The list is built on the assumption that elements inside shadow root are placed ALL before the `modalContent` slot.
38
+ * Adding focusable elements after the `modalContent` slot would break the order of elements in the list.
39
+ */
40
+ private get focusableElements();
41
+ handleKeyDown(e: KeyboardEvent): void;
39
42
  render(): HTMLZModalElement;
40
43
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -6,9 +6,9 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { AlertType, LicenseType } from "./beans/index";
9
- import { AvatarSize, ButtonSize, ButtonType, ButtonVariant, CardVariant, CarouselArrowsPosition, CarouselProgressMode, ComboItem, CoverHeroContentPosition, CoverHeroVariant, DictionaryData, DividerOrientation, DividerSize, ExpandableListButtonAlign, ExpandableListStyle, InfoRevealPosition, InputStatus, InputType, LabelPosition, ListDividerType, ListSize, ListType, NavigationTabsOrientation, NavigationTabsSize, NotificationType, OffCanvasVariant, PocketStatus, PopoverPosition, SearchbarItem, SelectItem, Size, SkipToContentLink, SortDirection, ThemeVariant, ToastNotification, ToastNotificationPosition, ToastNotificationTransition, TransitionDirection, ZAriaAlertMode, ZChipType, ZDatePickerMode, ZFileUploadType, ZRangePickerMode, ZSectionTitleDividerPosition, ZTableRowExpandedType } from "./beans";
9
+ import { AvatarSize, ButtonSize, ButtonType, ButtonVariant, CardVariant, CarouselArrowsPosition, CarouselProgressMode, ComboItem, ControlSize, CoverHeroContentPosition, CoverHeroVariant, DictionaryData, DividerOrientation, DividerSize, ExpandableListButtonAlign, ExpandableListStyle, InfoRevealPosition, InputStatus, InputType, LabelPosition, ListDividerType, ListSize, ListType, NavigationTabsOrientation, NavigationTabsSize, NotificationType, OffCanvasVariant, PocketStatus, PopoverPosition, SearchbarItem, SelectItem, Size, SkipToContentLink, SortDirection, ThemeVariant, ToastNotification, ToastNotificationPosition, ToastNotificationTransition, TransitionDirection, ZAriaAlertMode, ZChipType, ZDatePickerMode, ZFileUploadType, ZRangePickerMode, ZSectionTitleDividerPosition, ZTableRowExpandedType } from "./beans";
10
10
  import { ListItem } from "./beans/index.js";
11
- import { ZTypographyLevels } from "./components/typography/z-typography/index";
11
+ import { ZTypographyLevels } from "./deprecated/typography/z-typography/index";
12
12
  export namespace Components {
13
13
  interface ZAlert {
14
14
  /**
@@ -295,6 +295,10 @@ export namespace Components {
295
295
  * search input title text (optional)
296
296
  */
297
297
  "searchtitle"?: string;
298
+ /**
299
+ * Available sizes: `big`, `small` and `x-small`. Defaults to `big`.
300
+ */
301
+ "size"?: ControlSize;
298
302
  /**
299
303
  * uncheck all label (optional)
300
304
  */
@@ -537,6 +541,10 @@ export namespace Components {
537
541
  * the input is required (optional): available for text, password, number, email, textarea, checkbox
538
542
  */
539
543
  "required"?: boolean;
544
+ /**
545
+ * Available sizes: `big`, `small` and `x-small`. Defaults to `big`.
546
+ */
547
+ "size"?: ControlSize;
540
548
  /**
541
549
  * the input status (optional): available for text, password, number, email, textarea
542
550
  */
@@ -772,13 +780,13 @@ export namespace Components {
772
780
  */
773
781
  "alertdialog"?: boolean;
774
782
  /**
775
- * aria-label for close button (optional)
783
+ * close modal
776
784
  */
777
- "closeButtonLabel"?: string;
785
+ "close": () => Promise<void>;
778
786
  /**
779
- * close modal
787
+ * aria-label for close button (optional)
780
788
  */
781
- "closeModal": () => Promise<void>;
789
+ "closeButtonLabel": string;
782
790
  /**
783
791
  * unique id
784
792
  */
@@ -794,7 +802,7 @@ export namespace Components {
794
802
  /**
795
803
  * open modal
796
804
  */
797
- "openModal": () => Promise<void>;
805
+ "open": () => Promise<void>;
798
806
  }
799
807
  interface ZMyzCard {
800
808
  /**
@@ -1414,6 +1422,10 @@ export namespace Components {
1414
1422
  * set the input value
1415
1423
  */
1416
1424
  "setValue": (value: string | string[]) => Promise<void>;
1425
+ /**
1426
+ * Available sizes: `big`, `small` and `x-small`. Defaults to `big`.
1427
+ */
1428
+ "size"?: ControlSize;
1417
1429
  /**
1418
1430
  * the input status (optional)
1419
1431
  */
@@ -2815,6 +2827,10 @@ declare namespace LocalJSX {
2815
2827
  * search input title text (optional)
2816
2828
  */
2817
2829
  "searchtitle"?: string;
2830
+ /**
2831
+ * Available sizes: `big`, `small` and `x-small`. Defaults to `big`.
2832
+ */
2833
+ "size"?: ControlSize;
2818
2834
  /**
2819
2835
  * uncheck all label (optional)
2820
2836
  */
@@ -3089,6 +3105,10 @@ declare namespace LocalJSX {
3089
3105
  * the input is required (optional): available for text, password, number, email, textarea, checkbox
3090
3106
  */
3091
3107
  "required"?: boolean;
3108
+ /**
3109
+ * Available sizes: `big`, `small` and `x-small`. Defaults to `big`.
3110
+ */
3111
+ "size"?: ControlSize;
3092
3112
  /**
3093
3113
  * the input status (optional): available for text, password, number, email, textarea
3094
3114
  */
@@ -4070,6 +4090,10 @@ declare namespace LocalJSX {
4070
4090
  */
4071
4091
  "readonly"?: boolean;
4072
4092
  "resetItem"?: string;
4093
+ /**
4094
+ * Available sizes: `big`, `small` and `x-small`. Defaults to `big`.
4095
+ */
4096
+ "size"?: ControlSize;
4073
4097
  /**
4074
4098
  * the input status (optional)
4075
4099
  */
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes