@zanichelli/zanichelli-it-frontend-kit 0.0.1-rc.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 (1219) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/cjs/_commonjsHelpers-CFO10eej.js +10 -0
  4. package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
  5. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  6. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  7. package/dist/cjs/breakpoints-B7vFm-3T.js +12 -0
  8. package/dist/cjs/breakpoints-B7vFm-3T.js.map +1 -0
  9. package/dist/cjs/index-B_IQfJ7S.js +1967 -0
  10. package/dist/cjs/index-B_IQfJ7S.js.map +1 -0
  11. package/dist/cjs/index-GMHChntS.js +350 -0
  12. package/dist/cjs/index-GMHChntS.js.map +1 -0
  13. package/dist/cjs/index.cjs.js +12 -0
  14. package/dist/cjs/index.cjs.js.map +1 -0
  15. package/dist/cjs/loader.cjs.js +16 -0
  16. package/dist/cjs/loader.cjs.js.map +1 -0
  17. package/dist/cjs/utils-ByqSbvpv.js +2721 -0
  18. package/dist/cjs/utils-ByqSbvpv.js.map +1 -0
  19. package/dist/cjs/utils-KpWnWsPi.js +114 -0
  20. package/dist/cjs/utils-KpWnWsPi.js.map +1 -0
  21. package/dist/cjs/z-accordion.cjs.entry.js +52 -0
  22. package/dist/cjs/z-accordion.cjs.entry.js.map +1 -0
  23. package/dist/cjs/z-accordion.entry.cjs.js.map +1 -0
  24. package/dist/cjs/z-alert.cjs.entry.js +21 -0
  25. package/dist/cjs/z-alert.cjs.entry.js.map +1 -0
  26. package/dist/cjs/z-alert.entry.cjs.js.map +1 -0
  27. package/dist/cjs/z-anchor-navigation.cjs.entry.js +53 -0
  28. package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -0
  29. package/dist/cjs/z-anchor-navigation.entry.cjs.js.map +1 -0
  30. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +156 -0
  31. package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -0
  32. package/dist/cjs/z-app-header-deprecated.entry.cjs.js.map +1 -0
  33. package/dist/cjs/z-app-header.cjs.entry.js +268 -0
  34. package/dist/cjs/z-app-header.cjs.entry.js.map +1 -0
  35. package/dist/cjs/z-app-header.entry.cjs.js.map +1 -0
  36. package/dist/cjs/z-aria-alert.cjs.entry.js +19 -0
  37. package/dist/cjs/z-aria-alert.cjs.entry.js.map +1 -0
  38. package/dist/cjs/z-aria-alert.entry.cjs.js.map +1 -0
  39. package/dist/cjs/z-avatar.cjs.entry.js +44 -0
  40. package/dist/cjs/z-avatar.cjs.entry.js.map +1 -0
  41. package/dist/cjs/z-avatar.entry.cjs.js.map +1 -0
  42. package/dist/cjs/z-book-card-app.cjs.entry.js +41 -0
  43. package/dist/cjs/z-book-card-app.cjs.entry.js.map +1 -0
  44. package/dist/cjs/z-book-card-app.entry.cjs.js.map +1 -0
  45. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +136 -0
  46. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -0
  47. package/dist/cjs/z-book-card-deprecated.entry.cjs.js.map +1 -0
  48. package/dist/cjs/z-book-card.cjs.entry.js +82 -0
  49. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -0
  50. package/dist/cjs/z-book-card.entry.cjs.js.map +1 -0
  51. package/dist/cjs/z-breadcrumb.cjs.entry.js +226 -0
  52. package/dist/cjs/z-breadcrumb.cjs.entry.js.map +1 -0
  53. package/dist/cjs/z-breadcrumb.entry.cjs.js.map +1 -0
  54. package/dist/cjs/z-button-sort.cjs.entry.js +54 -0
  55. package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -0
  56. package/dist/cjs/z-button-sort.entry.cjs.js.map +1 -0
  57. package/dist/cjs/z-button.z-icon.z-logo.zanit-menubar.zanit-mobile-menubar.entry.cjs.js.map +1 -0
  58. package/dist/cjs/z-button_5.cjs.entry.js +1614 -0
  59. package/dist/cjs/z-button_5.cjs.entry.js.map +1 -0
  60. package/dist/cjs/z-card.cjs.entry.js +55 -0
  61. package/dist/cjs/z-card.cjs.entry.js.map +1 -0
  62. package/dist/cjs/z-card.entry.cjs.js.map +1 -0
  63. package/dist/cjs/z-carousel.cjs.entry.js +182 -0
  64. package/dist/cjs/z-carousel.cjs.entry.js.map +1 -0
  65. package/dist/cjs/z-carousel.entry.cjs.js.map +1 -0
  66. package/dist/cjs/z-chip.cjs.entry.js +32 -0
  67. package/dist/cjs/z-chip.cjs.entry.js.map +1 -0
  68. package/dist/cjs/z-chip.entry.cjs.js.map +1 -0
  69. package/dist/cjs/z-combobox.cjs.entry.js +276 -0
  70. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -0
  71. package/dist/cjs/z-combobox.entry.cjs.js.map +1 -0
  72. package/dist/cjs/z-cover-hero.cjs.entry.js +46 -0
  73. package/dist/cjs/z-cover-hero.cjs.entry.js.map +1 -0
  74. package/dist/cjs/z-cover-hero.entry.cjs.js.map +1 -0
  75. package/dist/cjs/z-date-picker.cjs.entry.js +494 -0
  76. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -0
  77. package/dist/cjs/z-date-picker.entry.cjs.js.map +1 -0
  78. package/dist/cjs/z-divider.z-list-element.entry.cjs.js.map +1 -0
  79. package/dist/cjs/z-divider_2.cjs.entry.js +151 -0
  80. package/dist/cjs/z-divider_2.cjs.entry.js.map +1 -0
  81. package/dist/cjs/z-dragdrop-area.z-modal.entry.cjs.js.map +1 -0
  82. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1038 -0
  83. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -0
  84. package/dist/cjs/z-file-upload.cjs.entry.js +190 -0
  85. package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -0
  86. package/dist/cjs/z-file-upload.entry.cjs.js.map +1 -0
  87. package/dist/cjs/z-file.cjs.entry.js +51 -0
  88. package/dist/cjs/z-file.cjs.entry.js.map +1 -0
  89. package/dist/cjs/z-file.entry.cjs.js.map +1 -0
  90. package/dist/cjs/z-ghost-loading.cjs.entry.js +20 -0
  91. package/dist/cjs/z-ghost-loading.cjs.entry.js.map +1 -0
  92. package/dist/cjs/z-ghost-loading.entry.cjs.js.map +1 -0
  93. package/dist/cjs/z-info-box.cjs.entry.js +26 -0
  94. package/dist/cjs/z-info-box.cjs.entry.js.map +1 -0
  95. package/dist/cjs/z-info-box.entry.cjs.js.map +1 -0
  96. package/dist/cjs/z-info-reveal.cjs.entry.js +63 -0
  97. package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -0
  98. package/dist/cjs/z-info-reveal.entry.cjs.js.map +1 -0
  99. package/dist/cjs/z-input.z-input-message.entry.cjs.js.map +1 -0
  100. package/dist/cjs/z-input_2.cjs.entry.js +315 -0
  101. package/dist/cjs/z-input_2.cjs.entry.js.map +1 -0
  102. package/dist/cjs/z-list.z-list-group.z-tag.entry.cjs.js.map +1 -0
  103. package/dist/cjs/z-list_3.cjs.entry.js +93 -0
  104. package/dist/cjs/z-list_3.cjs.entry.js.map +1 -0
  105. package/dist/cjs/z-menu-deprecated.cjs.entry.js +113 -0
  106. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -0
  107. package/dist/cjs/z-menu-deprecated.entry.cjs.js.map +1 -0
  108. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +58 -0
  109. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -0
  110. package/dist/cjs/z-menu-section-deprecated.entry.cjs.js.map +1 -0
  111. package/dist/cjs/z-menu-section.cjs.entry.js +193 -0
  112. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -0
  113. package/dist/cjs/z-menu-section.entry.cjs.js.map +1 -0
  114. package/dist/cjs/z-menu.cjs.entry.js +319 -0
  115. package/dist/cjs/z-menu.cjs.entry.js.map +1 -0
  116. package/dist/cjs/z-menu.entry.cjs.js.map +1 -0
  117. package/dist/cjs/z-myz-card-alert.cjs.entry.js +68 -0
  118. package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +1 -0
  119. package/dist/cjs/z-myz-card-alert.entry.cjs.js.map +1 -0
  120. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +35 -0
  121. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +1 -0
  122. package/dist/cjs/z-myz-card-dictionary.entry.cjs.js.map +1 -0
  123. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +20 -0
  124. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +1 -0
  125. package/dist/cjs/z-myz-card-footer-sections.entry.cjs.js.map +1 -0
  126. package/dist/cjs/z-myz-card-footer.cjs.entry.js +73 -0
  127. package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +1 -0
  128. package/dist/cjs/z-myz-card-footer.entry.cjs.js.map +1 -0
  129. package/dist/cjs/z-myz-card-icon.cjs.entry.js +23 -0
  130. package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +1 -0
  131. package/dist/cjs/z-myz-card-icon.entry.cjs.js.map +1 -0
  132. package/dist/cjs/z-myz-card-info.cjs.entry.js +130 -0
  133. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -0
  134. package/dist/cjs/z-myz-card-info.entry.cjs.js.map +1 -0
  135. package/dist/cjs/z-myz-card-list.cjs.entry.js +40 -0
  136. package/dist/cjs/z-myz-card-list.cjs.entry.js.map +1 -0
  137. package/dist/cjs/z-myz-card-list.entry.cjs.js.map +1 -0
  138. package/dist/cjs/z-myz-card.z-myz-card-body.z-myz-card-cover.z-myz-card-header.entry.cjs.js.map +1 -0
  139. package/dist/cjs/z-myz-card_4.cjs.entry.js +116 -0
  140. package/dist/cjs/z-myz-card_4.cjs.entry.js.map +1 -0
  141. package/dist/cjs/z-myz-list-item.cjs.entry.js +41 -0
  142. package/dist/cjs/z-myz-list-item.cjs.entry.js.map +1 -0
  143. package/dist/cjs/z-myz-list-item.entry.cjs.js.map +1 -0
  144. package/dist/cjs/z-myz-list.cjs.entry.js +38 -0
  145. package/dist/cjs/z-myz-list.cjs.entry.js.map +1 -0
  146. package/dist/cjs/z-myz-list.entry.cjs.js.map +1 -0
  147. package/dist/cjs/z-navigation-tabs.cjs.entry.js +227 -0
  148. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -0
  149. package/dist/cjs/z-navigation-tabs.entry.cjs.js.map +1 -0
  150. package/dist/cjs/z-notification.cjs.entry.js +39 -0
  151. package/dist/cjs/z-notification.cjs.entry.js.map +1 -0
  152. package/dist/cjs/z-notification.entry.cjs.js.map +1 -0
  153. package/dist/cjs/z-offcanvas.z-searchbar.entry.cjs.js.map +1 -0
  154. package/dist/cjs/z-offcanvas_2.cjs.entry.js +384 -0
  155. package/dist/cjs/z-offcanvas_2.cjs.entry.js.map +1 -0
  156. package/dist/cjs/z-otp.cjs.entry.js +43 -0
  157. package/dist/cjs/z-otp.cjs.entry.js.map +1 -0
  158. package/dist/cjs/z-otp.entry.cjs.js.map +1 -0
  159. package/dist/cjs/z-pagination.cjs.entry.js +223 -0
  160. package/dist/cjs/z-pagination.cjs.entry.js.map +1 -0
  161. package/dist/cjs/z-pagination.entry.cjs.js.map +1 -0
  162. package/dist/cjs/z-panel-elem.cjs.entry.js +35 -0
  163. package/dist/cjs/z-panel-elem.cjs.entry.js.map +1 -0
  164. package/dist/cjs/z-panel-elem.entry.cjs.js.map +1 -0
  165. package/dist/cjs/z-popover.cjs.entry.js +317 -0
  166. package/dist/cjs/z-popover.cjs.entry.js.map +1 -0
  167. package/dist/cjs/z-popover.entry.cjs.js.map +1 -0
  168. package/dist/cjs/z-range-picker.cjs.entry.js +361 -0
  169. package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -0
  170. package/dist/cjs/z-range-picker.entry.cjs.js.map +1 -0
  171. package/dist/cjs/z-section-title.cjs.entry.js +27 -0
  172. package/dist/cjs/z-section-title.cjs.entry.js.map +1 -0
  173. package/dist/cjs/z-section-title.entry.cjs.js.map +1 -0
  174. package/dist/cjs/z-select.cjs.entry.js +490 -0
  175. package/dist/cjs/z-select.cjs.entry.js.map +1 -0
  176. package/dist/cjs/z-select.entry.cjs.js.map +1 -0
  177. package/dist/cjs/z-skip-to-content.cjs.entry.js +74 -0
  178. package/dist/cjs/z-skip-to-content.cjs.entry.js.map +1 -0
  179. package/dist/cjs/z-skip-to-content.entry.cjs.js.map +1 -0
  180. package/dist/cjs/z-slideshow.cjs.entry.js +133 -0
  181. package/dist/cjs/z-slideshow.cjs.entry.js.map +1 -0
  182. package/dist/cjs/z-slideshow.entry.cjs.js.map +1 -0
  183. package/dist/cjs/z-stepper-item.cjs.entry.js +32 -0
  184. package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -0
  185. package/dist/cjs/z-stepper-item.entry.cjs.js.map +1 -0
  186. package/dist/cjs/z-stepper.cjs.entry.js +20 -0
  187. package/dist/cjs/z-stepper.cjs.entry.js.map +1 -0
  188. package/dist/cjs/z-stepper.entry.cjs.js.map +1 -0
  189. package/dist/cjs/z-table.cjs.entry.js +54 -0
  190. package/dist/cjs/z-table.cjs.entry.js.map +1 -0
  191. package/dist/cjs/z-table.entry.cjs.js.map +1 -0
  192. package/dist/cjs/z-tbody.cjs.entry.js +20 -0
  193. package/dist/cjs/z-tbody.cjs.entry.js.map +1 -0
  194. package/dist/cjs/z-tbody.entry.cjs.js.map +1 -0
  195. package/dist/cjs/z-td.cjs.entry.js +47 -0
  196. package/dist/cjs/z-td.cjs.entry.js.map +1 -0
  197. package/dist/cjs/z-td.entry.cjs.js.map +1 -0
  198. package/dist/cjs/z-tfoot.cjs.entry.js +21 -0
  199. package/dist/cjs/z-tfoot.cjs.entry.js.map +1 -0
  200. package/dist/cjs/z-tfoot.entry.cjs.js.map +1 -0
  201. package/dist/cjs/z-th.cjs.entry.js +67 -0
  202. package/dist/cjs/z-th.cjs.entry.js.map +1 -0
  203. package/dist/cjs/z-th.entry.cjs.js.map +1 -0
  204. package/dist/cjs/z-thead.cjs.entry.js +21 -0
  205. package/dist/cjs/z-thead.cjs.entry.js.map +1 -0
  206. package/dist/cjs/z-thead.entry.cjs.js.map +1 -0
  207. package/dist/cjs/z-toast-notification-list.cjs.entry.js +57 -0
  208. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -0
  209. package/dist/cjs/z-toast-notification-list.entry.cjs.js.map +1 -0
  210. package/dist/cjs/z-toast-notification.cjs.entry.js +2820 -0
  211. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -0
  212. package/dist/cjs/z-toast-notification.entry.cjs.js.map +1 -0
  213. package/dist/cjs/z-toggle-button.cjs.entry.js +36 -0
  214. package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -0
  215. package/dist/cjs/z-toggle-button.entry.cjs.js.map +1 -0
  216. package/dist/cjs/z-toggle-switch.cjs.entry.js +48 -0
  217. package/dist/cjs/z-toggle-switch.cjs.entry.js.map +1 -0
  218. package/dist/cjs/z-toggle-switch.entry.cjs.js.map +1 -0
  219. package/dist/cjs/z-tooltip.cjs.entry.js +29 -0
  220. package/dist/cjs/z-tooltip.cjs.entry.js.map +1 -0
  221. package/dist/cjs/z-tooltip.entry.cjs.js.map +1 -0
  222. package/dist/cjs/z-tr.cjs.entry.js +61 -0
  223. package/dist/cjs/z-tr.cjs.entry.js.map +1 -0
  224. package/dist/cjs/z-tr.entry.cjs.js.map +1 -0
  225. package/dist/cjs/z-tree-list.cjs.entry.js +116 -0
  226. package/dist/cjs/z-tree-list.cjs.entry.js.map +1 -0
  227. package/dist/cjs/z-tree-list.entry.cjs.js.map +1 -0
  228. package/dist/cjs/z-visually-hidden.cjs.entry.js +20 -0
  229. package/dist/cjs/z-visually-hidden.cjs.entry.js.map +1 -0
  230. package/dist/cjs/z-visually-hidden.entry.cjs.js.map +1 -0
  231. package/dist/cjs/zanichelli-it-frontend-kit.cjs.js +28 -0
  232. package/dist/cjs/zanichelli-it-frontend-kit.cjs.js.map +1 -0
  233. package/dist/collection/collection-manifest.json +100 -0
  234. package/dist/collection/components/menubar/menu/menu.css +87 -0
  235. package/dist/collection/components/menubar/menu/menu.js +34 -0
  236. package/dist/collection/components/menubar/menu/menu.js.map +1 -0
  237. package/dist/collection/components/menubar/menubar.css +187 -0
  238. package/dist/collection/components/menubar/menubar.js +508 -0
  239. package/dist/collection/components/menubar/menubar.js.map +1 -0
  240. package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.css +143 -0
  241. package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.js +292 -0
  242. package/dist/collection/components/menubar/mobile-menubar/mobile-menubar.js.map +1 -0
  243. package/dist/collection/index.js +11 -0
  244. package/dist/collection/index.js.map +1 -0
  245. package/dist/collection/utils/utils.js +17 -0
  246. package/dist/collection/utils/utils.js.map +1 -0
  247. package/dist/components/index.d.ts +33 -0
  248. package/dist/components/index.js +11 -0
  249. package/dist/components/index.js.map +1 -0
  250. package/dist/components/p--0ruQjLj.js +67 -0
  251. package/dist/components/p--0ruQjLj.js.map +1 -0
  252. package/dist/components/p--Z4AiqIE.js +54 -0
  253. package/dist/components/p--Z4AiqIE.js.map +1 -0
  254. package/dist/components/p-1DYWWUwe.js +1041 -0
  255. package/dist/components/p-1DYWWUwe.js.map +1 -0
  256. package/dist/components/p-B85MJLTf.js +8 -0
  257. package/dist/components/p-B85MJLTf.js.map +1 -0
  258. package/dist/components/p-BLSm2Iqv.js +110 -0
  259. package/dist/components/p-BLSm2Iqv.js.map +1 -0
  260. package/dist/components/p-BdZZ3nCA.js +34 -0
  261. package/dist/components/p-BdZZ3nCA.js.map +1 -0
  262. package/dist/components/p-Bla2iV_L.js +350 -0
  263. package/dist/components/p-Bla2iV_L.js.map +1 -0
  264. package/dist/components/p-BnlxWpkO.js +261 -0
  265. package/dist/components/p-BnlxWpkO.js.map +1 -0
  266. package/dist/components/p-BwaWGQgy.js +34 -0
  267. package/dist/components/p-BwaWGQgy.js.map +1 -0
  268. package/dist/components/p-C0jAXHRM.js +85 -0
  269. package/dist/components/p-C0jAXHRM.js.map +1 -0
  270. package/dist/components/p-C37VC5pL.js +93 -0
  271. package/dist/components/p-C37VC5pL.js.map +1 -0
  272. package/dist/components/p-C79F56iB.js +78 -0
  273. package/dist/components/p-C79F56iB.js.map +1 -0
  274. package/dist/components/p-CJkso_Ly.js +2715 -0
  275. package/dist/components/p-CJkso_Ly.js.map +1 -0
  276. package/dist/components/p-CVdIKwxq.js +37 -0
  277. package/dist/components/p-CVdIKwxq.js.map +1 -0
  278. package/dist/components/p-CjYpA4EJ.js +46 -0
  279. package/dist/components/p-CjYpA4EJ.js.map +1 -0
  280. package/dist/components/p-Cm3Hcr2i.js +57 -0
  281. package/dist/components/p-Cm3Hcr2i.js.map +1 -0
  282. package/dist/components/p-CoyJoo-Q.js +64 -0
  283. package/dist/components/p-CoyJoo-Q.js.map +1 -0
  284. package/dist/components/p-D6oPathC.js +104 -0
  285. package/dist/components/p-D6oPathC.js.map +1 -0
  286. package/dist/components/p-DFx72tO8.js +66 -0
  287. package/dist/components/p-DFx72tO8.js.map +1 -0
  288. package/dist/components/p-DTu9qk5c.js +34 -0
  289. package/dist/components/p-DTu9qk5c.js.map +1 -0
  290. package/dist/components/p-DX_drPpd.js +75 -0
  291. package/dist/components/p-DX_drPpd.js.map +1 -0
  292. package/dist/components/p-DexdQ2O9.js +988 -0
  293. package/dist/components/p-DexdQ2O9.js.map +1 -0
  294. package/dist/components/p-DnbQxkNk.js +63 -0
  295. package/dist/components/p-DnbQxkNk.js.map +1 -0
  296. package/dist/components/p-Dog_NtRb.js +67 -0
  297. package/dist/components/p-Dog_NtRb.js.map +1 -0
  298. package/dist/components/p-Du5IymMo.js +87 -0
  299. package/dist/components/p-Du5IymMo.js.map +1 -0
  300. package/dist/components/p-Dxu5saXC.js +1745 -0
  301. package/dist/components/p-Dxu5saXC.js.map +1 -0
  302. package/dist/components/p-KDKAI9M0.js +54 -0
  303. package/dist/components/p-KDKAI9M0.js.map +1 -0
  304. package/dist/components/p-M8sq6nYX.js +37 -0
  305. package/dist/components/p-M8sq6nYX.js.map +1 -0
  306. package/dist/components/p-Q-tWjk7P.js +12 -0
  307. package/dist/components/p-Q-tWjk7P.js.map +1 -0
  308. package/dist/components/p-ZsHngv6X.js +37 -0
  309. package/dist/components/p-ZsHngv6X.js.map +1 -0
  310. package/dist/components/p-fkdKSkwd.js +403 -0
  311. package/dist/components/p-fkdKSkwd.js.map +1 -0
  312. package/dist/components/p-k1oALiEe.js +104 -0
  313. package/dist/components/p-k1oALiEe.js.map +1 -0
  314. package/dist/components/p-nUV6IonK.js +46 -0
  315. package/dist/components/p-nUV6IonK.js.map +1 -0
  316. package/dist/components/p-uWp7Cs9b.js +341 -0
  317. package/dist/components/p-uWp7Cs9b.js.map +1 -0
  318. package/dist/components/p-vUB-94eM.js +41 -0
  319. package/dist/components/p-vUB-94eM.js.map +1 -0
  320. package/dist/components/p-vqNYJq21.js +179 -0
  321. package/dist/components/p-vqNYJq21.js.map +1 -0
  322. package/dist/components/p-wdrm-LLt.js +342 -0
  323. package/dist/components/p-wdrm-LLt.js.map +1 -0
  324. package/dist/components/z-accordion.js +86 -0
  325. package/dist/components/z-accordion.js.map +1 -0
  326. package/dist/components/z-alert.js +9 -0
  327. package/dist/components/z-alert.js.map +1 -0
  328. package/dist/components/z-anchor-navigation.js +86 -0
  329. package/dist/components/z-anchor-navigation.js.map +1 -0
  330. package/dist/components/z-app-header-deprecated.js +256 -0
  331. package/dist/components/z-app-header-deprecated.js.map +1 -0
  332. package/dist/components/z-app-header.js +368 -0
  333. package/dist/components/z-app-header.js.map +1 -0
  334. package/dist/components/z-aria-alert.js +37 -0
  335. package/dist/components/z-aria-alert.js.map +1 -0
  336. package/dist/components/z-avatar.js +67 -0
  337. package/dist/components/z-avatar.js.map +1 -0
  338. package/dist/components/z-book-card-app.js +76 -0
  339. package/dist/components/z-book-card-app.js.map +1 -0
  340. package/dist/components/z-book-card-deprecated.js +176 -0
  341. package/dist/components/z-book-card-deprecated.js.map +1 -0
  342. package/dist/components/z-book-card.js +123 -0
  343. package/dist/components/z-book-card.js.map +1 -0
  344. package/dist/components/z-breadcrumb.js +291 -0
  345. package/dist/components/z-breadcrumb.js.map +1 -0
  346. package/dist/components/z-button-sort.js +87 -0
  347. package/dist/components/z-button-sort.js.map +1 -0
  348. package/dist/components/z-button.js +9 -0
  349. package/dist/components/z-button.js.map +1 -0
  350. package/dist/components/z-card.js +84 -0
  351. package/dist/components/z-card.js.map +1 -0
  352. package/dist/components/z-carousel.js +235 -0
  353. package/dist/components/z-carousel.js.map +1 -0
  354. package/dist/components/z-chip.js +9 -0
  355. package/dist/components/z-chip.js.map +1 -0
  356. package/dist/components/z-combobox.js +356 -0
  357. package/dist/components/z-combobox.js.map +1 -0
  358. package/dist/components/z-cover-hero.js +67 -0
  359. package/dist/components/z-cover-hero.js.map +1 -0
  360. package/dist/components/z-date-picker.js +539 -0
  361. package/dist/components/z-date-picker.js.map +1 -0
  362. package/dist/components/z-divider.js +9 -0
  363. package/dist/components/z-divider.js.map +1 -0
  364. package/dist/components/z-dragdrop-area.js +9 -0
  365. package/dist/components/z-dragdrop-area.js.map +1 -0
  366. package/dist/components/z-file-upload.js +254 -0
  367. package/dist/components/z-file-upload.js.map +1 -0
  368. package/dist/components/z-file.js +90 -0
  369. package/dist/components/z-file.js.map +1 -0
  370. package/dist/components/z-ghost-loading.js +9 -0
  371. package/dist/components/z-ghost-loading.js.map +1 -0
  372. package/dist/components/z-icon.js +9 -0
  373. package/dist/components/z-icon.js.map +1 -0
  374. package/dist/components/z-info-box.js +52 -0
  375. package/dist/components/z-info-box.js.map +1 -0
  376. package/dist/components/z-info-reveal.js +9 -0
  377. package/dist/components/z-info-reveal.js.map +1 -0
  378. package/dist/components/z-input-message.js +9 -0
  379. package/dist/components/z-input-message.js.map +1 -0
  380. package/dist/components/z-input.js +9 -0
  381. package/dist/components/z-input.js.map +1 -0
  382. package/dist/components/z-list-element.js +9 -0
  383. package/dist/components/z-list-element.js.map +1 -0
  384. package/dist/components/z-list-group.js +9 -0
  385. package/dist/components/z-list-group.js.map +1 -0
  386. package/dist/components/z-list.js +9 -0
  387. package/dist/components/z-list.js.map +1 -0
  388. package/dist/components/z-logo.js +9 -0
  389. package/dist/components/z-logo.js.map +1 -0
  390. package/dist/components/z-menu-deprecated.js +145 -0
  391. package/dist/components/z-menu-deprecated.js.map +1 -0
  392. package/dist/components/z-menu-section-deprecated.js +85 -0
  393. package/dist/components/z-menu-section-deprecated.js.map +1 -0
  394. package/dist/components/z-menu-section.js +227 -0
  395. package/dist/components/z-menu-section.js.map +1 -0
  396. package/dist/components/z-menu.js +354 -0
  397. package/dist/components/z-menu.js.map +1 -0
  398. package/dist/components/z-modal.js +9 -0
  399. package/dist/components/z-modal.js.map +1 -0
  400. package/dist/components/z-myz-card-alert.js +102 -0
  401. package/dist/components/z-myz-card-alert.js.map +1 -0
  402. package/dist/components/z-myz-card-body.js +9 -0
  403. package/dist/components/z-myz-card-body.js.map +1 -0
  404. package/dist/components/z-myz-card-cover.js +9 -0
  405. package/dist/components/z-myz-card-cover.js.map +1 -0
  406. package/dist/components/z-myz-card-dictionary.js +95 -0
  407. package/dist/components/z-myz-card-dictionary.js.map +1 -0
  408. package/dist/components/z-myz-card-footer-sections.js +37 -0
  409. package/dist/components/z-myz-card-footer-sections.js.map +1 -0
  410. package/dist/components/z-myz-card-footer.js +100 -0
  411. package/dist/components/z-myz-card-footer.js.map +1 -0
  412. package/dist/components/z-myz-card-header.js +9 -0
  413. package/dist/components/z-myz-card-header.js.map +1 -0
  414. package/dist/components/z-myz-card-icon.js +50 -0
  415. package/dist/components/z-myz-card-icon.js.map +1 -0
  416. package/dist/components/z-myz-card-info.js +163 -0
  417. package/dist/components/z-myz-card-info.js.map +1 -0
  418. package/dist/components/z-myz-card-list.js +59 -0
  419. package/dist/components/z-myz-card-list.js.map +1 -0
  420. package/dist/components/z-myz-card.js +9 -0
  421. package/dist/components/z-myz-card.js.map +1 -0
  422. package/dist/components/z-myz-list-item.js +9 -0
  423. package/dist/components/z-myz-list-item.js.map +1 -0
  424. package/dist/components/z-myz-list.js +72 -0
  425. package/dist/components/z-myz-list.js.map +1 -0
  426. package/dist/components/z-navigation-tabs.js +260 -0
  427. package/dist/components/z-navigation-tabs.js.map +1 -0
  428. package/dist/components/z-notification.js +69 -0
  429. package/dist/components/z-notification.js.map +1 -0
  430. package/dist/components/z-offcanvas.js +9 -0
  431. package/dist/components/z-offcanvas.js.map +1 -0
  432. package/dist/components/z-otp.js +76 -0
  433. package/dist/components/z-otp.js.map +1 -0
  434. package/dist/components/z-pagination.js +281 -0
  435. package/dist/components/z-pagination.js.map +1 -0
  436. package/dist/components/z-panel-elem.js +67 -0
  437. package/dist/components/z-panel-elem.js.map +1 -0
  438. package/dist/components/z-popover.js +9 -0
  439. package/dist/components/z-popover.js.map +1 -0
  440. package/dist/components/z-range-picker.js +414 -0
  441. package/dist/components/z-range-picker.js.map +1 -0
  442. package/dist/components/z-searchbar.js +9 -0
  443. package/dist/components/z-searchbar.js.map +1 -0
  444. package/dist/components/z-section-title.js +53 -0
  445. package/dist/components/z-section-title.js.map +1 -0
  446. package/dist/components/z-select.js +582 -0
  447. package/dist/components/z-select.js.map +1 -0
  448. package/dist/components/z-skip-to-content.js +94 -0
  449. package/dist/components/z-skip-to-content.js.map +1 -0
  450. package/dist/components/z-slideshow.js +162 -0
  451. package/dist/components/z-slideshow.js.map +1 -0
  452. package/dist/components/z-stepper-item.js +61 -0
  453. package/dist/components/z-stepper-item.js.map +1 -0
  454. package/dist/components/z-stepper.js +37 -0
  455. package/dist/components/z-stepper.js.map +1 -0
  456. package/dist/components/z-table.js +69 -0
  457. package/dist/components/z-table.js.map +1 -0
  458. package/dist/components/z-tag.js +9 -0
  459. package/dist/components/z-tag.js.map +1 -0
  460. package/dist/components/z-tbody.js +9 -0
  461. package/dist/components/z-tbody.js.map +1 -0
  462. package/dist/components/z-td.js +9 -0
  463. package/dist/components/z-td.js.map +1 -0
  464. package/dist/components/z-tfoot.js +9 -0
  465. package/dist/components/z-tfoot.js.map +1 -0
  466. package/dist/components/z-th.js +9 -0
  467. package/dist/components/z-th.js.map +1 -0
  468. package/dist/components/z-thead.js +9 -0
  469. package/dist/components/z-thead.js.map +1 -0
  470. package/dist/components/z-toast-notification-list.js +79 -0
  471. package/dist/components/z-toast-notification-list.js.map +1 -0
  472. package/dist/components/z-toast-notification.js +2858 -0
  473. package/dist/components/z-toast-notification.js.map +1 -0
  474. package/dist/components/z-toggle-button.js +65 -0
  475. package/dist/components/z-toggle-button.js.map +1 -0
  476. package/dist/components/z-toggle-switch.js +74 -0
  477. package/dist/components/z-toggle-switch.js.map +1 -0
  478. package/dist/components/z-tooltip.js +58 -0
  479. package/dist/components/z-tooltip.js.map +1 -0
  480. package/dist/components/z-tr.js +9 -0
  481. package/dist/components/z-tr.js.map +1 -0
  482. package/dist/components/z-tree-list.js +163 -0
  483. package/dist/components/z-tree-list.js.map +1 -0
  484. package/dist/components/z-visually-hidden.js +37 -0
  485. package/dist/components/z-visually-hidden.js.map +1 -0
  486. package/dist/components/zanit-menubar.d.ts +11 -0
  487. package/dist/components/zanit-menubar.js +420 -0
  488. package/dist/components/zanit-menubar.js.map +1 -0
  489. package/dist/components/zanit-mobile-menubar.d.ts +11 -0
  490. package/dist/components/zanit-mobile-menubar.js +9 -0
  491. package/dist/components/zanit-mobile-menubar.js.map +1 -0
  492. package/dist/esm/_commonjsHelpers-B85MJLTf.js +8 -0
  493. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  494. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  495. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  496. package/dist/esm/breakpoints-Q-tWjk7P.js +12 -0
  497. package/dist/esm/breakpoints-Q-tWjk7P.js.map +1 -0
  498. package/dist/esm/index-B2-dCTD2.js +350 -0
  499. package/dist/esm/index-B2-dCTD2.js.map +1 -0
  500. package/dist/esm/index-Cam6wBSi.js +1957 -0
  501. package/dist/esm/index-Cam6wBSi.js.map +1 -0
  502. package/dist/esm/index.js +9 -0
  503. package/dist/esm/index.js.map +1 -0
  504. package/dist/esm/loader.js +14 -0
  505. package/dist/esm/loader.js.map +1 -0
  506. package/dist/esm/utils-CNUNJl55.js +2715 -0
  507. package/dist/esm/utils-CNUNJl55.js.map +1 -0
  508. package/dist/esm/utils-GdAsGfFX.js +104 -0
  509. package/dist/esm/utils-GdAsGfFX.js.map +1 -0
  510. package/dist/esm/z-accordion.entry.js +50 -0
  511. package/dist/esm/z-accordion.entry.js.map +1 -0
  512. package/dist/esm/z-alert.entry.js +19 -0
  513. package/dist/esm/z-alert.entry.js.map +1 -0
  514. package/dist/esm/z-anchor-navigation.entry.js +51 -0
  515. package/dist/esm/z-anchor-navigation.entry.js.map +1 -0
  516. package/dist/esm/z-app-header-deprecated.entry.js +154 -0
  517. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -0
  518. package/dist/esm/z-app-header.entry.js +266 -0
  519. package/dist/esm/z-app-header.entry.js.map +1 -0
  520. package/dist/esm/z-aria-alert.entry.js +17 -0
  521. package/dist/esm/z-aria-alert.entry.js.map +1 -0
  522. package/dist/esm/z-avatar.entry.js +42 -0
  523. package/dist/esm/z-avatar.entry.js.map +1 -0
  524. package/dist/esm/z-book-card-app.entry.js +39 -0
  525. package/dist/esm/z-book-card-app.entry.js.map +1 -0
  526. package/dist/esm/z-book-card-deprecated.entry.js +134 -0
  527. package/dist/esm/z-book-card-deprecated.entry.js.map +1 -0
  528. package/dist/esm/z-book-card.entry.js +80 -0
  529. package/dist/esm/z-book-card.entry.js.map +1 -0
  530. package/dist/esm/z-breadcrumb.entry.js +224 -0
  531. package/dist/esm/z-breadcrumb.entry.js.map +1 -0
  532. package/dist/esm/z-button-sort.entry.js +52 -0
  533. package/dist/esm/z-button-sort.entry.js.map +1 -0
  534. package/dist/esm/z-button.z-icon.z-logo.zanit-menubar.zanit-mobile-menubar.entry.js.map +1 -0
  535. package/dist/esm/z-button_5.entry.js +1608 -0
  536. package/dist/esm/z-button_5.entry.js.map +1 -0
  537. package/dist/esm/z-card.entry.js +53 -0
  538. package/dist/esm/z-card.entry.js.map +1 -0
  539. package/dist/esm/z-carousel.entry.js +180 -0
  540. package/dist/esm/z-carousel.entry.js.map +1 -0
  541. package/dist/esm/z-chip.entry.js +30 -0
  542. package/dist/esm/z-chip.entry.js.map +1 -0
  543. package/dist/esm/z-combobox.entry.js +274 -0
  544. package/dist/esm/z-combobox.entry.js.map +1 -0
  545. package/dist/esm/z-cover-hero.entry.js +44 -0
  546. package/dist/esm/z-cover-hero.entry.js.map +1 -0
  547. package/dist/esm/z-date-picker.entry.js +492 -0
  548. package/dist/esm/z-date-picker.entry.js.map +1 -0
  549. package/dist/esm/z-divider.z-list-element.entry.js.map +1 -0
  550. package/dist/esm/z-divider_2.entry.js +148 -0
  551. package/dist/esm/z-divider_2.entry.js.map +1 -0
  552. package/dist/esm/z-dragdrop-area.z-modal.entry.js.map +1 -0
  553. package/dist/esm/z-dragdrop-area_2.entry.js +1035 -0
  554. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -0
  555. package/dist/esm/z-file-upload.entry.js +188 -0
  556. package/dist/esm/z-file-upload.entry.js.map +1 -0
  557. package/dist/esm/z-file.entry.js +49 -0
  558. package/dist/esm/z-file.entry.js.map +1 -0
  559. package/dist/esm/z-ghost-loading.entry.js +18 -0
  560. package/dist/esm/z-ghost-loading.entry.js.map +1 -0
  561. package/dist/esm/z-info-box.entry.js +24 -0
  562. package/dist/esm/z-info-box.entry.js.map +1 -0
  563. package/dist/esm/z-info-reveal.entry.js +61 -0
  564. package/dist/esm/z-info-reveal.entry.js.map +1 -0
  565. package/dist/esm/z-input.z-input-message.entry.js.map +1 -0
  566. package/dist/esm/z-input_2.entry.js +312 -0
  567. package/dist/esm/z-input_2.entry.js.map +1 -0
  568. package/dist/esm/z-list.z-list-group.z-tag.entry.js.map +1 -0
  569. package/dist/esm/z-list_3.entry.js +89 -0
  570. package/dist/esm/z-list_3.entry.js.map +1 -0
  571. package/dist/esm/z-menu-deprecated.entry.js +111 -0
  572. package/dist/esm/z-menu-deprecated.entry.js.map +1 -0
  573. package/dist/esm/z-menu-section-deprecated.entry.js +56 -0
  574. package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -0
  575. package/dist/esm/z-menu-section.entry.js +191 -0
  576. package/dist/esm/z-menu-section.entry.js.map +1 -0
  577. package/dist/esm/z-menu.entry.js +317 -0
  578. package/dist/esm/z-menu.entry.js.map +1 -0
  579. package/dist/esm/z-myz-card-alert.entry.js +66 -0
  580. package/dist/esm/z-myz-card-alert.entry.js.map +1 -0
  581. package/dist/esm/z-myz-card-dictionary.entry.js +33 -0
  582. package/dist/esm/z-myz-card-dictionary.entry.js.map +1 -0
  583. package/dist/esm/z-myz-card-footer-sections.entry.js +18 -0
  584. package/dist/esm/z-myz-card-footer-sections.entry.js.map +1 -0
  585. package/dist/esm/z-myz-card-footer.entry.js +71 -0
  586. package/dist/esm/z-myz-card-footer.entry.js.map +1 -0
  587. package/dist/esm/z-myz-card-icon.entry.js +21 -0
  588. package/dist/esm/z-myz-card-icon.entry.js.map +1 -0
  589. package/dist/esm/z-myz-card-info.entry.js +128 -0
  590. package/dist/esm/z-myz-card-info.entry.js.map +1 -0
  591. package/dist/esm/z-myz-card-list.entry.js +38 -0
  592. package/dist/esm/z-myz-card-list.entry.js.map +1 -0
  593. package/dist/esm/z-myz-card.z-myz-card-body.z-myz-card-cover.z-myz-card-header.entry.js.map +1 -0
  594. package/dist/esm/z-myz-card_4.entry.js +111 -0
  595. package/dist/esm/z-myz-card_4.entry.js.map +1 -0
  596. package/dist/esm/z-myz-list-item.entry.js +39 -0
  597. package/dist/esm/z-myz-list-item.entry.js.map +1 -0
  598. package/dist/esm/z-myz-list.entry.js +36 -0
  599. package/dist/esm/z-myz-list.entry.js.map +1 -0
  600. package/dist/esm/z-navigation-tabs.entry.js +225 -0
  601. package/dist/esm/z-navigation-tabs.entry.js.map +1 -0
  602. package/dist/esm/z-notification.entry.js +37 -0
  603. package/dist/esm/z-notification.entry.js.map +1 -0
  604. package/dist/esm/z-offcanvas.z-searchbar.entry.js.map +1 -0
  605. package/dist/esm/z-offcanvas_2.entry.js +381 -0
  606. package/dist/esm/z-offcanvas_2.entry.js.map +1 -0
  607. package/dist/esm/z-otp.entry.js +41 -0
  608. package/dist/esm/z-otp.entry.js.map +1 -0
  609. package/dist/esm/z-pagination.entry.js +221 -0
  610. package/dist/esm/z-pagination.entry.js.map +1 -0
  611. package/dist/esm/z-panel-elem.entry.js +33 -0
  612. package/dist/esm/z-panel-elem.entry.js.map +1 -0
  613. package/dist/esm/z-popover.entry.js +315 -0
  614. package/dist/esm/z-popover.entry.js.map +1 -0
  615. package/dist/esm/z-range-picker.entry.js +359 -0
  616. package/dist/esm/z-range-picker.entry.js.map +1 -0
  617. package/dist/esm/z-section-title.entry.js +25 -0
  618. package/dist/esm/z-section-title.entry.js.map +1 -0
  619. package/dist/esm/z-select.entry.js +488 -0
  620. package/dist/esm/z-select.entry.js.map +1 -0
  621. package/dist/esm/z-skip-to-content.entry.js +72 -0
  622. package/dist/esm/z-skip-to-content.entry.js.map +1 -0
  623. package/dist/esm/z-slideshow.entry.js +131 -0
  624. package/dist/esm/z-slideshow.entry.js.map +1 -0
  625. package/dist/esm/z-stepper-item.entry.js +30 -0
  626. package/dist/esm/z-stepper-item.entry.js.map +1 -0
  627. package/dist/esm/z-stepper.entry.js +18 -0
  628. package/dist/esm/z-stepper.entry.js.map +1 -0
  629. package/dist/esm/z-table.entry.js +52 -0
  630. package/dist/esm/z-table.entry.js.map +1 -0
  631. package/dist/esm/z-tbody.entry.js +18 -0
  632. package/dist/esm/z-tbody.entry.js.map +1 -0
  633. package/dist/esm/z-td.entry.js +45 -0
  634. package/dist/esm/z-td.entry.js.map +1 -0
  635. package/dist/esm/z-tfoot.entry.js +19 -0
  636. package/dist/esm/z-tfoot.entry.js.map +1 -0
  637. package/dist/esm/z-th.entry.js +65 -0
  638. package/dist/esm/z-th.entry.js.map +1 -0
  639. package/dist/esm/z-thead.entry.js +19 -0
  640. package/dist/esm/z-thead.entry.js.map +1 -0
  641. package/dist/esm/z-toast-notification-list.entry.js +55 -0
  642. package/dist/esm/z-toast-notification-list.entry.js.map +1 -0
  643. package/dist/esm/z-toast-notification.entry.js +2818 -0
  644. package/dist/esm/z-toast-notification.entry.js.map +1 -0
  645. package/dist/esm/z-toggle-button.entry.js +34 -0
  646. package/dist/esm/z-toggle-button.entry.js.map +1 -0
  647. package/dist/esm/z-toggle-switch.entry.js +46 -0
  648. package/dist/esm/z-toggle-switch.entry.js.map +1 -0
  649. package/dist/esm/z-tooltip.entry.js +27 -0
  650. package/dist/esm/z-tooltip.entry.js.map +1 -0
  651. package/dist/esm/z-tr.entry.js +59 -0
  652. package/dist/esm/z-tr.entry.js.map +1 -0
  653. package/dist/esm/z-tree-list.entry.js +114 -0
  654. package/dist/esm/z-tree-list.entry.js.map +1 -0
  655. package/dist/esm/z-visually-hidden.entry.js +18 -0
  656. package/dist/esm/z-visually-hidden.entry.js.map +1 -0
  657. package/dist/esm/zanichelli-it-frontend-kit.js +24 -0
  658. package/dist/esm/zanichelli-it-frontend-kit.js.map +1 -0
  659. package/dist/index.cjs.js +1 -0
  660. package/dist/index.js +1 -0
  661. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/book-card/z-book-card/styles.css +202 -0
  662. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/book-card/z-book-card-app/styles.css +74 -0
  663. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/css-components/z-link/styles.css +168 -0
  664. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/date-picker/styles.css +565 -0
  665. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/deprecated/z-app-header-deprecated/styles.css +441 -0
  666. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/deprecated/z-book-card-deprecated/styles.css +486 -0
  667. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/deprecated/z-menu-deprecated/styles.css +217 -0
  668. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/deprecated/z-menu-section-deprecated/styles.css +123 -0
  669. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/deprecated/z-section-title/styles.css +45 -0
  670. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/file-upload/z-dragdrop-area/styles.css +82 -0
  671. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/file-upload/z-file/styles.css +23 -0
  672. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/file-upload/z-file-upload/styles.css +91 -0
  673. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/list/z-list/styles.css +6 -0
  674. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/list/z-list-element/styles.css +108 -0
  675. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/list/z-list-group/styles.css +26 -0
  676. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/list/z-tree-list/styles.css +142 -0
  677. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/table/cells/z-td/styles.css +71 -0
  678. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/table/cells/z-th/styles.css +127 -0
  679. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/table/z-table/styles.css +18 -0
  680. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/table/z-tbody/styles.css +4 -0
  681. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/table/z-tfoot/styles.css +13 -0
  682. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/table/z-thead/styles.css +19 -0
  683. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/table/z-tr/styles.css +86 -0
  684. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-accordion/styles.css +260 -0
  685. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-anchor-navigation/styles.css +122 -0
  686. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-app-header/styles.css +397 -0
  687. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-avatar/styles.css +32 -0
  688. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-breadcrumb/styles.css +151 -0
  689. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-button/styles.css +149 -0
  690. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-button-sort/styles.css +84 -0
  691. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-card/styles.css +230 -0
  692. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-carousel/styles.css +148 -0
  693. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-chip/styles.css +118 -0
  694. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-combobox/styles.css +220 -0
  695. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-cover-hero/styles.css +93 -0
  696. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-divider/styles.css +37 -0
  697. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-ghost-loading/styles.css +34 -0
  698. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-icon/styles.css +14 -0
  699. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-info-box/styles.css +23 -0
  700. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-info-reveal/styles.css +130 -0
  701. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-input/styles.css +416 -0
  702. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-input-message/styles.css +53 -0
  703. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-logo/styles.css +29 -0
  704. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-menu/styles.css +213 -0
  705. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-menu-section/styles.css +138 -0
  706. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-modal/styles.css +266 -0
  707. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-navigation-tabs/styles.css +212 -0
  708. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-notification/styles.css +119 -0
  709. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-offcanvas/styles.css +122 -0
  710. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-pagination/styles.css +199 -0
  711. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-panel-elem/styles.css +46 -0
  712. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-popover/styles.css +147 -0
  713. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-searchbar/styles.css +297 -0
  714. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-select/styles.css +321 -0
  715. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-skip-to-content/styles.css +81 -0
  716. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-stepper/styles.css +19 -0
  717. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-stepper-item/styles.css +150 -0
  718. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-tag/styles.css +47 -0
  719. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-toast-notification/styles.css +261 -0
  720. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-toast-notification-list/styles.css +100 -0
  721. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-toggle-button/styles.css +60 -0
  722. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-toggle-switch/styles.css +104 -0
  723. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-tooltip/styles.css +17 -0
  724. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/components/z-visually-hidden/styles.css +12 -0
  725. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +44 -0
  726. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +62 -0
  727. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +13 -0
  728. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +11 -0
  729. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +76 -0
  730. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +187 -0
  731. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +20 -0
  732. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +59 -0
  733. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +69 -0
  734. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +93 -0
  735. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +46 -0
  736. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +4 -0
  737. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +66 -0
  738. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/z-alert/styles.css +28 -0
  739. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/z-otp/styles.css +52 -0
  740. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/snowflakes/myz/z-slideshow/styles.css +134 -0
  741. package/dist/node_modules/.pnpm/@zanichelli+albe-web-components@18.3.2/node_modules/@zanichelli/albe-web-components/dist/collection/tokens/typography.css +769 -0
  742. package/dist/types/components/menubar/menu/menu.d.ts +19 -0
  743. package/dist/types/components/menubar/menubar.d.ts +82 -0
  744. package/dist/types/components/menubar/mobile-menubar/mobile-menubar.d.ts +46 -0
  745. package/dist/types/components.d.ts +172 -0
  746. package/dist/types/index.d.ts +11 -0
  747. package/dist/types/stencil-public-runtime.d.ts +1702 -0
  748. package/dist/types/utils/utils.d.ts +7 -0
  749. package/dist/zanichelli-it-frontend-kit/index.esm.js +3 -0
  750. package/dist/zanichelli-it-frontend-kit/index.esm.js.map +1 -0
  751. package/dist/zanichelli-it-frontend-kit/loader.esm.js.map +1 -0
  752. package/dist/zanichelli-it-frontend-kit/p-06a75db9.entry.js +2 -0
  753. package/dist/zanichelli-it-frontend-kit/p-06a75db9.entry.js.map +1 -0
  754. package/dist/zanichelli-it-frontend-kit/p-1301f408.entry.js +2 -0
  755. package/dist/zanichelli-it-frontend-kit/p-1301f408.entry.js.map +1 -0
  756. package/dist/zanichelli-it-frontend-kit/p-14695889.entry.js +2 -0
  757. package/dist/zanichelli-it-frontend-kit/p-14695889.entry.js.map +1 -0
  758. package/dist/zanichelli-it-frontend-kit/p-1a55b30b.entry.js +2 -0
  759. package/dist/zanichelli-it-frontend-kit/p-1a55b30b.entry.js.map +1 -0
  760. package/dist/zanichelli-it-frontend-kit/p-1d8f3be0.entry.js +2 -0
  761. package/dist/zanichelli-it-frontend-kit/p-1d8f3be0.entry.js.map +1 -0
  762. package/dist/zanichelli-it-frontend-kit/p-1edb773f.entry.js +2 -0
  763. package/dist/zanichelli-it-frontend-kit/p-1edb773f.entry.js.map +1 -0
  764. package/dist/zanichelli-it-frontend-kit/p-24c5e0cc.entry.js +2 -0
  765. package/dist/zanichelli-it-frontend-kit/p-24c5e0cc.entry.js.map +1 -0
  766. package/dist/zanichelli-it-frontend-kit/p-25b57525.entry.js +2 -0
  767. package/dist/zanichelli-it-frontend-kit/p-25b57525.entry.js.map +1 -0
  768. package/dist/zanichelli-it-frontend-kit/p-26c0bb2c.entry.js +2 -0
  769. package/dist/zanichelli-it-frontend-kit/p-26c0bb2c.entry.js.map +1 -0
  770. package/dist/zanichelli-it-frontend-kit/p-285d0e0f.entry.js +2 -0
  771. package/dist/zanichelli-it-frontend-kit/p-285d0e0f.entry.js.map +1 -0
  772. package/dist/zanichelli-it-frontend-kit/p-2e1826ab.entry.js +2 -0
  773. package/dist/zanichelli-it-frontend-kit/p-2e1826ab.entry.js.map +1 -0
  774. package/dist/zanichelli-it-frontend-kit/p-2fb38b5e.entry.js +2 -0
  775. package/dist/zanichelli-it-frontend-kit/p-2fb38b5e.entry.js.map +1 -0
  776. package/dist/zanichelli-it-frontend-kit/p-353dfd3a.entry.js +2 -0
  777. package/dist/zanichelli-it-frontend-kit/p-353dfd3a.entry.js.map +1 -0
  778. package/dist/zanichelli-it-frontend-kit/p-3b23bf6b.entry.js +2 -0
  779. package/dist/zanichelli-it-frontend-kit/p-3b23bf6b.entry.js.map +1 -0
  780. package/dist/zanichelli-it-frontend-kit/p-3c197169.entry.js +2 -0
  781. package/dist/zanichelli-it-frontend-kit/p-3c197169.entry.js.map +1 -0
  782. package/dist/zanichelli-it-frontend-kit/p-3f49652c.entry.js +2 -0
  783. package/dist/zanichelli-it-frontend-kit/p-3f49652c.entry.js.map +1 -0
  784. package/dist/zanichelli-it-frontend-kit/p-4035e4b7.entry.js +2 -0
  785. package/dist/zanichelli-it-frontend-kit/p-4035e4b7.entry.js.map +1 -0
  786. package/dist/zanichelli-it-frontend-kit/p-4ad3b8c3.entry.js +2 -0
  787. package/dist/zanichelli-it-frontend-kit/p-4ad3b8c3.entry.js.map +1 -0
  788. package/dist/zanichelli-it-frontend-kit/p-4b0f8b7c.entry.js +2 -0
  789. package/dist/zanichelli-it-frontend-kit/p-4b0f8b7c.entry.js.map +1 -0
  790. package/dist/zanichelli-it-frontend-kit/p-4e503a77.entry.js +2 -0
  791. package/dist/zanichelli-it-frontend-kit/p-4e503a77.entry.js.map +1 -0
  792. package/dist/zanichelli-it-frontend-kit/p-4fb10c24.entry.js +2 -0
  793. package/dist/zanichelli-it-frontend-kit/p-4fb10c24.entry.js.map +1 -0
  794. package/dist/zanichelli-it-frontend-kit/p-52d05436.entry.js +2 -0
  795. package/dist/zanichelli-it-frontend-kit/p-52d05436.entry.js.map +1 -0
  796. package/dist/zanichelli-it-frontend-kit/p-53c4cea5.entry.js +2 -0
  797. package/dist/zanichelli-it-frontend-kit/p-53c4cea5.entry.js.map +1 -0
  798. package/dist/zanichelli-it-frontend-kit/p-545cf652.entry.js +2 -0
  799. package/dist/zanichelli-it-frontend-kit/p-545cf652.entry.js.map +1 -0
  800. package/dist/zanichelli-it-frontend-kit/p-5edcf0ee.entry.js +2 -0
  801. package/dist/zanichelli-it-frontend-kit/p-5edcf0ee.entry.js.map +1 -0
  802. package/dist/zanichelli-it-frontend-kit/p-65f0a8cd.entry.js +2 -0
  803. package/dist/zanichelli-it-frontend-kit/p-65f0a8cd.entry.js.map +1 -0
  804. package/dist/zanichelli-it-frontend-kit/p-673af8ea.entry.js +2 -0
  805. package/dist/zanichelli-it-frontend-kit/p-673af8ea.entry.js.map +1 -0
  806. package/dist/zanichelli-it-frontend-kit/p-69c45802.entry.js +2 -0
  807. package/dist/zanichelli-it-frontend-kit/p-69c45802.entry.js.map +1 -0
  808. package/dist/zanichelli-it-frontend-kit/p-6aa64881.entry.js +2 -0
  809. package/dist/zanichelli-it-frontend-kit/p-6aa64881.entry.js.map +1 -0
  810. package/dist/zanichelli-it-frontend-kit/p-6d0758da.entry.js +2 -0
  811. package/dist/zanichelli-it-frontend-kit/p-6d0758da.entry.js.map +1 -0
  812. package/dist/zanichelli-it-frontend-kit/p-71c28d19.entry.js +2 -0
  813. package/dist/zanichelli-it-frontend-kit/p-71c28d19.entry.js.map +1 -0
  814. package/dist/zanichelli-it-frontend-kit/p-752d72d8.entry.js +2 -0
  815. package/dist/zanichelli-it-frontend-kit/p-752d72d8.entry.js.map +1 -0
  816. package/dist/zanichelli-it-frontend-kit/p-7534f34f.entry.js +2 -0
  817. package/dist/zanichelli-it-frontend-kit/p-7534f34f.entry.js.map +1 -0
  818. package/dist/zanichelli-it-frontend-kit/p-7551d826.entry.js +2 -0
  819. package/dist/zanichelli-it-frontend-kit/p-7551d826.entry.js.map +1 -0
  820. package/dist/zanichelli-it-frontend-kit/p-7d696560.entry.js +2 -0
  821. package/dist/zanichelli-it-frontend-kit/p-7d696560.entry.js.map +1 -0
  822. package/dist/zanichelli-it-frontend-kit/p-7f0a51da.entry.js +2 -0
  823. package/dist/zanichelli-it-frontend-kit/p-7f0a51da.entry.js.map +1 -0
  824. package/dist/zanichelli-it-frontend-kit/p-84a30acf.entry.js +17 -0
  825. package/dist/zanichelli-it-frontend-kit/p-84a30acf.entry.js.map +1 -0
  826. package/dist/zanichelli-it-frontend-kit/p-877d6f26.entry.js +2 -0
  827. package/dist/zanichelli-it-frontend-kit/p-877d6f26.entry.js.map +1 -0
  828. package/dist/zanichelli-it-frontend-kit/p-8bed1043.entry.js +2 -0
  829. package/dist/zanichelli-it-frontend-kit/p-8bed1043.entry.js.map +1 -0
  830. package/dist/zanichelli-it-frontend-kit/p-8c2538dc.entry.js +2 -0
  831. package/dist/zanichelli-it-frontend-kit/p-8c2538dc.entry.js.map +1 -0
  832. package/dist/zanichelli-it-frontend-kit/p-906081da.entry.js +2 -0
  833. package/dist/zanichelli-it-frontend-kit/p-906081da.entry.js.map +1 -0
  834. package/dist/zanichelli-it-frontend-kit/p-9126ad89.entry.js +2 -0
  835. package/dist/zanichelli-it-frontend-kit/p-9126ad89.entry.js.map +1 -0
  836. package/dist/zanichelli-it-frontend-kit/p-9260de4d.entry.js +2 -0
  837. package/dist/zanichelli-it-frontend-kit/p-9260de4d.entry.js.map +1 -0
  838. package/dist/zanichelli-it-frontend-kit/p-93176ede.entry.js +2 -0
  839. package/dist/zanichelli-it-frontend-kit/p-93176ede.entry.js.map +1 -0
  840. package/dist/zanichelli-it-frontend-kit/p-98b10414.entry.js +2 -0
  841. package/dist/zanichelli-it-frontend-kit/p-98b10414.entry.js.map +1 -0
  842. package/dist/zanichelli-it-frontend-kit/p-B2-dCTD2.js +2 -0
  843. package/dist/zanichelli-it-frontend-kit/p-B2-dCTD2.js.map +1 -0
  844. package/dist/zanichelli-it-frontend-kit/p-B85MJLTf.js +2 -0
  845. package/dist/zanichelli-it-frontend-kit/p-B85MJLTf.js.map +1 -0
  846. package/dist/zanichelli-it-frontend-kit/p-C46tSaXG.js +2 -0
  847. package/dist/zanichelli-it-frontend-kit/p-C46tSaXG.js.map +1 -0
  848. package/dist/zanichelli-it-frontend-kit/p-Cam6wBSi.js +3 -0
  849. package/dist/zanichelli-it-frontend-kit/p-Cam6wBSi.js.map +1 -0
  850. package/dist/zanichelli-it-frontend-kit/p-Cj7hOgFG.js +2 -0
  851. package/dist/zanichelli-it-frontend-kit/p-Cj7hOgFG.js.map +1 -0
  852. package/dist/zanichelli-it-frontend-kit/p-DQuL1Twl.js +2 -0
  853. package/dist/zanichelli-it-frontend-kit/p-DQuL1Twl.js.map +1 -0
  854. package/dist/zanichelli-it-frontend-kit/p-Q-tWjk7P.js +2 -0
  855. package/dist/zanichelli-it-frontend-kit/p-Q-tWjk7P.js.map +1 -0
  856. package/dist/zanichelli-it-frontend-kit/p-a7f0a630.entry.js +7 -0
  857. package/dist/zanichelli-it-frontend-kit/p-a7f0a630.entry.js.map +1 -0
  858. package/dist/zanichelli-it-frontend-kit/p-af8a7986.entry.js +2 -0
  859. package/dist/zanichelli-it-frontend-kit/p-af8a7986.entry.js.map +1 -0
  860. package/dist/zanichelli-it-frontend-kit/p-b8198b19.entry.js +2 -0
  861. package/dist/zanichelli-it-frontend-kit/p-b8198b19.entry.js.map +1 -0
  862. package/dist/zanichelli-it-frontend-kit/p-b9fba3a0.entry.js +2 -0
  863. package/dist/zanichelli-it-frontend-kit/p-b9fba3a0.entry.js.map +1 -0
  864. package/dist/zanichelli-it-frontend-kit/p-ba1d43ec.entry.js +2 -0
  865. package/dist/zanichelli-it-frontend-kit/p-ba1d43ec.entry.js.map +1 -0
  866. package/dist/zanichelli-it-frontend-kit/p-bdd53627.entry.js +2 -0
  867. package/dist/zanichelli-it-frontend-kit/p-bdd53627.entry.js.map +1 -0
  868. package/dist/zanichelli-it-frontend-kit/p-c363882e.entry.js +2 -0
  869. package/dist/zanichelli-it-frontend-kit/p-c363882e.entry.js.map +1 -0
  870. package/dist/zanichelli-it-frontend-kit/p-c55a5042.entry.js +2 -0
  871. package/dist/zanichelli-it-frontend-kit/p-c55a5042.entry.js.map +1 -0
  872. package/dist/zanichelli-it-frontend-kit/p-cc00d883.entry.js +2 -0
  873. package/dist/zanichelli-it-frontend-kit/p-cc00d883.entry.js.map +1 -0
  874. package/dist/zanichelli-it-frontend-kit/p-d23576e5.entry.js +2 -0
  875. package/dist/zanichelli-it-frontend-kit/p-d23576e5.entry.js.map +1 -0
  876. package/dist/zanichelli-it-frontend-kit/p-d3e18055.entry.js +2 -0
  877. package/dist/zanichelli-it-frontend-kit/p-d3e18055.entry.js.map +1 -0
  878. package/dist/zanichelli-it-frontend-kit/p-d404ce2d.entry.js +2 -0
  879. package/dist/zanichelli-it-frontend-kit/p-d404ce2d.entry.js.map +1 -0
  880. package/dist/zanichelli-it-frontend-kit/p-d767c93a.entry.js +2 -0
  881. package/dist/zanichelli-it-frontend-kit/p-d767c93a.entry.js.map +1 -0
  882. package/dist/zanichelli-it-frontend-kit/p-d854a0fb.entry.js +2 -0
  883. package/dist/zanichelli-it-frontend-kit/p-d854a0fb.entry.js.map +1 -0
  884. package/dist/zanichelli-it-frontend-kit/p-da27116e.entry.js +2 -0
  885. package/dist/zanichelli-it-frontend-kit/p-da27116e.entry.js.map +1 -0
  886. package/dist/zanichelli-it-frontend-kit/p-da73a0e0.entry.js +2 -0
  887. package/dist/zanichelli-it-frontend-kit/p-da73a0e0.entry.js.map +1 -0
  888. package/dist/zanichelli-it-frontend-kit/p-e3d9cd6c.entry.js +2 -0
  889. package/dist/zanichelli-it-frontend-kit/p-e3d9cd6c.entry.js.map +1 -0
  890. package/dist/zanichelli-it-frontend-kit/p-e46785e6.entry.js +2 -0
  891. package/dist/zanichelli-it-frontend-kit/p-e46785e6.entry.js.map +1 -0
  892. package/dist/zanichelli-it-frontend-kit/p-e60b79de.entry.js +2 -0
  893. package/dist/zanichelli-it-frontend-kit/p-e60b79de.entry.js.map +1 -0
  894. package/dist/zanichelli-it-frontend-kit/p-ea18b15f.entry.js +2 -0
  895. package/dist/zanichelli-it-frontend-kit/p-ea18b15f.entry.js.map +1 -0
  896. package/dist/zanichelli-it-frontend-kit/p-ea7db3b1.entry.js +2 -0
  897. package/dist/zanichelli-it-frontend-kit/p-ea7db3b1.entry.js.map +1 -0
  898. package/dist/zanichelli-it-frontend-kit/p-ec50e1b7.entry.js +2 -0
  899. package/dist/zanichelli-it-frontend-kit/p-ec50e1b7.entry.js.map +1 -0
  900. package/dist/zanichelli-it-frontend-kit/p-f0162a34.entry.js +2 -0
  901. package/dist/zanichelli-it-frontend-kit/p-f0162a34.entry.js.map +1 -0
  902. package/dist/zanichelli-it-frontend-kit/p-f70245a3.entry.js +2 -0
  903. package/dist/zanichelli-it-frontend-kit/p-f70245a3.entry.js.map +1 -0
  904. package/dist/zanichelli-it-frontend-kit/p-f765dd3e.entry.js +2 -0
  905. package/dist/zanichelli-it-frontend-kit/p-f765dd3e.entry.js.map +1 -0
  906. package/dist/zanichelli-it-frontend-kit/z-accordion.entry.esm.js.map +1 -0
  907. package/dist/zanichelli-it-frontend-kit/z-alert.entry.esm.js.map +1 -0
  908. package/dist/zanichelli-it-frontend-kit/z-anchor-navigation.entry.esm.js.map +1 -0
  909. package/dist/zanichelli-it-frontend-kit/z-app-header-deprecated.entry.esm.js.map +1 -0
  910. package/dist/zanichelli-it-frontend-kit/z-app-header.entry.esm.js.map +1 -0
  911. package/dist/zanichelli-it-frontend-kit/z-aria-alert.entry.esm.js.map +1 -0
  912. package/dist/zanichelli-it-frontend-kit/z-avatar.entry.esm.js.map +1 -0
  913. package/dist/zanichelli-it-frontend-kit/z-book-card-app.entry.esm.js.map +1 -0
  914. package/dist/zanichelli-it-frontend-kit/z-book-card-deprecated.entry.esm.js.map +1 -0
  915. package/dist/zanichelli-it-frontend-kit/z-book-card.entry.esm.js.map +1 -0
  916. package/dist/zanichelli-it-frontend-kit/z-breadcrumb.entry.esm.js.map +1 -0
  917. package/dist/zanichelli-it-frontend-kit/z-button-sort.entry.esm.js.map +1 -0
  918. package/dist/zanichelli-it-frontend-kit/z-button.z-icon.z-logo.zanit-menubar.zanit-mobile-menubar.entry.esm.js.map +1 -0
  919. package/dist/zanichelli-it-frontend-kit/z-card.entry.esm.js.map +1 -0
  920. package/dist/zanichelli-it-frontend-kit/z-carousel.entry.esm.js.map +1 -0
  921. package/dist/zanichelli-it-frontend-kit/z-chip.entry.esm.js.map +1 -0
  922. package/dist/zanichelli-it-frontend-kit/z-combobox.entry.esm.js.map +1 -0
  923. package/dist/zanichelli-it-frontend-kit/z-cover-hero.entry.esm.js.map +1 -0
  924. package/dist/zanichelli-it-frontend-kit/z-date-picker.entry.esm.js.map +1 -0
  925. package/dist/zanichelli-it-frontend-kit/z-divider.z-list-element.entry.esm.js.map +1 -0
  926. package/dist/zanichelli-it-frontend-kit/z-dragdrop-area.z-modal.entry.esm.js.map +1 -0
  927. package/dist/zanichelli-it-frontend-kit/z-file-upload.entry.esm.js.map +1 -0
  928. package/dist/zanichelli-it-frontend-kit/z-file.entry.esm.js.map +1 -0
  929. package/dist/zanichelli-it-frontend-kit/z-ghost-loading.entry.esm.js.map +1 -0
  930. package/dist/zanichelli-it-frontend-kit/z-info-box.entry.esm.js.map +1 -0
  931. package/dist/zanichelli-it-frontend-kit/z-info-reveal.entry.esm.js.map +1 -0
  932. package/dist/zanichelli-it-frontend-kit/z-input.z-input-message.entry.esm.js.map +1 -0
  933. package/dist/zanichelli-it-frontend-kit/z-list.z-list-group.z-tag.entry.esm.js.map +1 -0
  934. package/dist/zanichelli-it-frontend-kit/z-menu-deprecated.entry.esm.js.map +1 -0
  935. package/dist/zanichelli-it-frontend-kit/z-menu-section-deprecated.entry.esm.js.map +1 -0
  936. package/dist/zanichelli-it-frontend-kit/z-menu-section.entry.esm.js.map +1 -0
  937. package/dist/zanichelli-it-frontend-kit/z-menu.entry.esm.js.map +1 -0
  938. package/dist/zanichelli-it-frontend-kit/z-myz-card-alert.entry.esm.js.map +1 -0
  939. package/dist/zanichelli-it-frontend-kit/z-myz-card-dictionary.entry.esm.js.map +1 -0
  940. package/dist/zanichelli-it-frontend-kit/z-myz-card-footer-sections.entry.esm.js.map +1 -0
  941. package/dist/zanichelli-it-frontend-kit/z-myz-card-footer.entry.esm.js.map +1 -0
  942. package/dist/zanichelli-it-frontend-kit/z-myz-card-icon.entry.esm.js.map +1 -0
  943. package/dist/zanichelli-it-frontend-kit/z-myz-card-info.entry.esm.js.map +1 -0
  944. package/dist/zanichelli-it-frontend-kit/z-myz-card-list.entry.esm.js.map +1 -0
  945. package/dist/zanichelli-it-frontend-kit/z-myz-card.z-myz-card-body.z-myz-card-cover.z-myz-card-header.entry.esm.js.map +1 -0
  946. package/dist/zanichelli-it-frontend-kit/z-myz-list-item.entry.esm.js.map +1 -0
  947. package/dist/zanichelli-it-frontend-kit/z-myz-list.entry.esm.js.map +1 -0
  948. package/dist/zanichelli-it-frontend-kit/z-navigation-tabs.entry.esm.js.map +1 -0
  949. package/dist/zanichelli-it-frontend-kit/z-notification.entry.esm.js.map +1 -0
  950. package/dist/zanichelli-it-frontend-kit/z-offcanvas.z-searchbar.entry.esm.js.map +1 -0
  951. package/dist/zanichelli-it-frontend-kit/z-otp.entry.esm.js.map +1 -0
  952. package/dist/zanichelli-it-frontend-kit/z-pagination.entry.esm.js.map +1 -0
  953. package/dist/zanichelli-it-frontend-kit/z-panel-elem.entry.esm.js.map +1 -0
  954. package/dist/zanichelli-it-frontend-kit/z-popover.entry.esm.js.map +1 -0
  955. package/dist/zanichelli-it-frontend-kit/z-range-picker.entry.esm.js.map +1 -0
  956. package/dist/zanichelli-it-frontend-kit/z-section-title.entry.esm.js.map +1 -0
  957. package/dist/zanichelli-it-frontend-kit/z-select.entry.esm.js.map +1 -0
  958. package/dist/zanichelli-it-frontend-kit/z-skip-to-content.entry.esm.js.map +1 -0
  959. package/dist/zanichelli-it-frontend-kit/z-slideshow.entry.esm.js.map +1 -0
  960. package/dist/zanichelli-it-frontend-kit/z-stepper-item.entry.esm.js.map +1 -0
  961. package/dist/zanichelli-it-frontend-kit/z-stepper.entry.esm.js.map +1 -0
  962. package/dist/zanichelli-it-frontend-kit/z-table.entry.esm.js.map +1 -0
  963. package/dist/zanichelli-it-frontend-kit/z-tbody.entry.esm.js.map +1 -0
  964. package/dist/zanichelli-it-frontend-kit/z-td.entry.esm.js.map +1 -0
  965. package/dist/zanichelli-it-frontend-kit/z-tfoot.entry.esm.js.map +1 -0
  966. package/dist/zanichelli-it-frontend-kit/z-th.entry.esm.js.map +1 -0
  967. package/dist/zanichelli-it-frontend-kit/z-thead.entry.esm.js.map +1 -0
  968. package/dist/zanichelli-it-frontend-kit/z-toast-notification-list.entry.esm.js.map +1 -0
  969. package/dist/zanichelli-it-frontend-kit/z-toast-notification.entry.esm.js.map +1 -0
  970. package/dist/zanichelli-it-frontend-kit/z-toggle-button.entry.esm.js.map +1 -0
  971. package/dist/zanichelli-it-frontend-kit/z-toggle-switch.entry.esm.js.map +1 -0
  972. package/dist/zanichelli-it-frontend-kit/z-tooltip.entry.esm.js.map +1 -0
  973. package/dist/zanichelli-it-frontend-kit/z-tr.entry.esm.js.map +1 -0
  974. package/dist/zanichelli-it-frontend-kit/z-tree-list.entry.esm.js.map +1 -0
  975. package/dist/zanichelli-it-frontend-kit/z-visually-hidden.entry.esm.js.map +1 -0
  976. package/dist/zanichelli-it-frontend-kit/zanichelli-it-frontend-kit.css +3038 -0
  977. package/dist/zanichelli-it-frontend-kit/zanichelli-it-frontend-kit.esm.js +2 -0
  978. package/dist/zanichelli-it-frontend-kit/zanichelli-it-frontend-kit.esm.js.map +1 -0
  979. package/loader/cdn.js +1 -0
  980. package/loader/index.cjs.js +1 -0
  981. package/loader/index.d.ts +24 -0
  982. package/loader/index.es2017.js +1 -0
  983. package/loader/index.js +2 -0
  984. package/package.json +60 -0
  985. package/www/build/index.esm.js +3 -0
  986. package/www/build/index.esm.js.map +1 -0
  987. package/www/build/loader.esm.js.map +1 -0
  988. package/www/build/p-06a75db9.entry.js +2 -0
  989. package/www/build/p-06a75db9.entry.js.map +1 -0
  990. package/www/build/p-1301f408.entry.js +2 -0
  991. package/www/build/p-1301f408.entry.js.map +1 -0
  992. package/www/build/p-14695889.entry.js +2 -0
  993. package/www/build/p-14695889.entry.js.map +1 -0
  994. package/www/build/p-1a55b30b.entry.js +2 -0
  995. package/www/build/p-1a55b30b.entry.js.map +1 -0
  996. package/www/build/p-1d8f3be0.entry.js +2 -0
  997. package/www/build/p-1d8f3be0.entry.js.map +1 -0
  998. package/www/build/p-1edb773f.entry.js +2 -0
  999. package/www/build/p-1edb773f.entry.js.map +1 -0
  1000. package/www/build/p-24c5e0cc.entry.js +2 -0
  1001. package/www/build/p-24c5e0cc.entry.js.map +1 -0
  1002. package/www/build/p-25b57525.entry.js +2 -0
  1003. package/www/build/p-25b57525.entry.js.map +1 -0
  1004. package/www/build/p-26c0bb2c.entry.js +2 -0
  1005. package/www/build/p-26c0bb2c.entry.js.map +1 -0
  1006. package/www/build/p-285d0e0f.entry.js +2 -0
  1007. package/www/build/p-285d0e0f.entry.js.map +1 -0
  1008. package/www/build/p-2e1826ab.entry.js +2 -0
  1009. package/www/build/p-2e1826ab.entry.js.map +1 -0
  1010. package/www/build/p-2fb38b5e.entry.js +2 -0
  1011. package/www/build/p-2fb38b5e.entry.js.map +1 -0
  1012. package/www/build/p-353dfd3a.entry.js +2 -0
  1013. package/www/build/p-353dfd3a.entry.js.map +1 -0
  1014. package/www/build/p-3b23bf6b.entry.js +2 -0
  1015. package/www/build/p-3b23bf6b.entry.js.map +1 -0
  1016. package/www/build/p-3c197169.entry.js +2 -0
  1017. package/www/build/p-3c197169.entry.js.map +1 -0
  1018. package/www/build/p-3f49652c.entry.js +2 -0
  1019. package/www/build/p-3f49652c.entry.js.map +1 -0
  1020. package/www/build/p-4035e4b7.entry.js +2 -0
  1021. package/www/build/p-4035e4b7.entry.js.map +1 -0
  1022. package/www/build/p-4ad3b8c3.entry.js +2 -0
  1023. package/www/build/p-4ad3b8c3.entry.js.map +1 -0
  1024. package/www/build/p-4b0f8b7c.entry.js +2 -0
  1025. package/www/build/p-4b0f8b7c.entry.js.map +1 -0
  1026. package/www/build/p-4e503a77.entry.js +2 -0
  1027. package/www/build/p-4e503a77.entry.js.map +1 -0
  1028. package/www/build/p-4fb10c24.entry.js +2 -0
  1029. package/www/build/p-4fb10c24.entry.js.map +1 -0
  1030. package/www/build/p-52d05436.entry.js +2 -0
  1031. package/www/build/p-52d05436.entry.js.map +1 -0
  1032. package/www/build/p-53c4cea5.entry.js +2 -0
  1033. package/www/build/p-53c4cea5.entry.js.map +1 -0
  1034. package/www/build/p-545cf652.entry.js +2 -0
  1035. package/www/build/p-545cf652.entry.js.map +1 -0
  1036. package/www/build/p-5edcf0ee.entry.js +2 -0
  1037. package/www/build/p-5edcf0ee.entry.js.map +1 -0
  1038. package/www/build/p-65f0a8cd.entry.js +2 -0
  1039. package/www/build/p-65f0a8cd.entry.js.map +1 -0
  1040. package/www/build/p-673af8ea.entry.js +2 -0
  1041. package/www/build/p-673af8ea.entry.js.map +1 -0
  1042. package/www/build/p-69c45802.entry.js +2 -0
  1043. package/www/build/p-69c45802.entry.js.map +1 -0
  1044. package/www/build/p-6aa64881.entry.js +2 -0
  1045. package/www/build/p-6aa64881.entry.js.map +1 -0
  1046. package/www/build/p-6d0758da.entry.js +2 -0
  1047. package/www/build/p-6d0758da.entry.js.map +1 -0
  1048. package/www/build/p-71c28d19.entry.js +2 -0
  1049. package/www/build/p-71c28d19.entry.js.map +1 -0
  1050. package/www/build/p-752d72d8.entry.js +2 -0
  1051. package/www/build/p-752d72d8.entry.js.map +1 -0
  1052. package/www/build/p-7534f34f.entry.js +2 -0
  1053. package/www/build/p-7534f34f.entry.js.map +1 -0
  1054. package/www/build/p-7551d826.entry.js +2 -0
  1055. package/www/build/p-7551d826.entry.js.map +1 -0
  1056. package/www/build/p-7a88aaf5.css +3038 -0
  1057. package/www/build/p-7d696560.entry.js +2 -0
  1058. package/www/build/p-7d696560.entry.js.map +1 -0
  1059. package/www/build/p-7f0a51da.entry.js +2 -0
  1060. package/www/build/p-7f0a51da.entry.js.map +1 -0
  1061. package/www/build/p-84a30acf.entry.js +17 -0
  1062. package/www/build/p-84a30acf.entry.js.map +1 -0
  1063. package/www/build/p-877d6f26.entry.js +2 -0
  1064. package/www/build/p-877d6f26.entry.js.map +1 -0
  1065. package/www/build/p-8bed1043.entry.js +2 -0
  1066. package/www/build/p-8bed1043.entry.js.map +1 -0
  1067. package/www/build/p-8c2538dc.entry.js +2 -0
  1068. package/www/build/p-8c2538dc.entry.js.map +1 -0
  1069. package/www/build/p-906081da.entry.js +2 -0
  1070. package/www/build/p-906081da.entry.js.map +1 -0
  1071. package/www/build/p-9126ad89.entry.js +2 -0
  1072. package/www/build/p-9126ad89.entry.js.map +1 -0
  1073. package/www/build/p-9260de4d.entry.js +2 -0
  1074. package/www/build/p-9260de4d.entry.js.map +1 -0
  1075. package/www/build/p-93176ede.entry.js +2 -0
  1076. package/www/build/p-93176ede.entry.js.map +1 -0
  1077. package/www/build/p-98b10414.entry.js +2 -0
  1078. package/www/build/p-98b10414.entry.js.map +1 -0
  1079. package/www/build/p-B2-dCTD2.js +2 -0
  1080. package/www/build/p-B2-dCTD2.js.map +1 -0
  1081. package/www/build/p-B85MJLTf.js +2 -0
  1082. package/www/build/p-B85MJLTf.js.map +1 -0
  1083. package/www/build/p-C46tSaXG.js +2 -0
  1084. package/www/build/p-C46tSaXG.js.map +1 -0
  1085. package/www/build/p-Cam6wBSi.js +3 -0
  1086. package/www/build/p-Cam6wBSi.js.map +1 -0
  1087. package/www/build/p-Cj7hOgFG.js +2 -0
  1088. package/www/build/p-Cj7hOgFG.js.map +1 -0
  1089. package/www/build/p-DQuL1Twl.js +2 -0
  1090. package/www/build/p-DQuL1Twl.js.map +1 -0
  1091. package/www/build/p-Q-tWjk7P.js +2 -0
  1092. package/www/build/p-Q-tWjk7P.js.map +1 -0
  1093. package/www/build/p-a7f0a630.entry.js +7 -0
  1094. package/www/build/p-a7f0a630.entry.js.map +1 -0
  1095. package/www/build/p-af8a7986.entry.js +2 -0
  1096. package/www/build/p-af8a7986.entry.js.map +1 -0
  1097. package/www/build/p-b8198b19.entry.js +2 -0
  1098. package/www/build/p-b8198b19.entry.js.map +1 -0
  1099. package/www/build/p-b9fba3a0.entry.js +2 -0
  1100. package/www/build/p-b9fba3a0.entry.js.map +1 -0
  1101. package/www/build/p-ba1d43ec.entry.js +2 -0
  1102. package/www/build/p-ba1d43ec.entry.js.map +1 -0
  1103. package/www/build/p-bdd53627.entry.js +2 -0
  1104. package/www/build/p-bdd53627.entry.js.map +1 -0
  1105. package/www/build/p-c363882e.entry.js +2 -0
  1106. package/www/build/p-c363882e.entry.js.map +1 -0
  1107. package/www/build/p-c55a5042.entry.js +2 -0
  1108. package/www/build/p-c55a5042.entry.js.map +1 -0
  1109. package/www/build/p-cc00d883.entry.js +2 -0
  1110. package/www/build/p-cc00d883.entry.js.map +1 -0
  1111. package/www/build/p-ce3b9406.js +2 -0
  1112. package/www/build/p-d23576e5.entry.js +2 -0
  1113. package/www/build/p-d23576e5.entry.js.map +1 -0
  1114. package/www/build/p-d3e18055.entry.js +2 -0
  1115. package/www/build/p-d3e18055.entry.js.map +1 -0
  1116. package/www/build/p-d404ce2d.entry.js +2 -0
  1117. package/www/build/p-d404ce2d.entry.js.map +1 -0
  1118. package/www/build/p-d767c93a.entry.js +2 -0
  1119. package/www/build/p-d767c93a.entry.js.map +1 -0
  1120. package/www/build/p-d854a0fb.entry.js +2 -0
  1121. package/www/build/p-d854a0fb.entry.js.map +1 -0
  1122. package/www/build/p-da27116e.entry.js +2 -0
  1123. package/www/build/p-da27116e.entry.js.map +1 -0
  1124. package/www/build/p-da73a0e0.entry.js +2 -0
  1125. package/www/build/p-da73a0e0.entry.js.map +1 -0
  1126. package/www/build/p-e3d9cd6c.entry.js +2 -0
  1127. package/www/build/p-e3d9cd6c.entry.js.map +1 -0
  1128. package/www/build/p-e46785e6.entry.js +2 -0
  1129. package/www/build/p-e46785e6.entry.js.map +1 -0
  1130. package/www/build/p-e60b79de.entry.js +2 -0
  1131. package/www/build/p-e60b79de.entry.js.map +1 -0
  1132. package/www/build/p-ea18b15f.entry.js +2 -0
  1133. package/www/build/p-ea18b15f.entry.js.map +1 -0
  1134. package/www/build/p-ea7db3b1.entry.js +2 -0
  1135. package/www/build/p-ea7db3b1.entry.js.map +1 -0
  1136. package/www/build/p-ec50e1b7.entry.js +2 -0
  1137. package/www/build/p-ec50e1b7.entry.js.map +1 -0
  1138. package/www/build/p-f0162a34.entry.js +2 -0
  1139. package/www/build/p-f0162a34.entry.js.map +1 -0
  1140. package/www/build/p-f70245a3.entry.js +2 -0
  1141. package/www/build/p-f70245a3.entry.js.map +1 -0
  1142. package/www/build/p-f765dd3e.entry.js +2 -0
  1143. package/www/build/p-f765dd3e.entry.js.map +1 -0
  1144. package/www/build/z-accordion.entry.esm.js.map +1 -0
  1145. package/www/build/z-alert.entry.esm.js.map +1 -0
  1146. package/www/build/z-anchor-navigation.entry.esm.js.map +1 -0
  1147. package/www/build/z-app-header-deprecated.entry.esm.js.map +1 -0
  1148. package/www/build/z-app-header.entry.esm.js.map +1 -0
  1149. package/www/build/z-aria-alert.entry.esm.js.map +1 -0
  1150. package/www/build/z-avatar.entry.esm.js.map +1 -0
  1151. package/www/build/z-book-card-app.entry.esm.js.map +1 -0
  1152. package/www/build/z-book-card-deprecated.entry.esm.js.map +1 -0
  1153. package/www/build/z-book-card.entry.esm.js.map +1 -0
  1154. package/www/build/z-breadcrumb.entry.esm.js.map +1 -0
  1155. package/www/build/z-button-sort.entry.esm.js.map +1 -0
  1156. package/www/build/z-button.z-icon.z-logo.zanit-menubar.zanit-mobile-menubar.entry.esm.js.map +1 -0
  1157. package/www/build/z-card.entry.esm.js.map +1 -0
  1158. package/www/build/z-carousel.entry.esm.js.map +1 -0
  1159. package/www/build/z-chip.entry.esm.js.map +1 -0
  1160. package/www/build/z-combobox.entry.esm.js.map +1 -0
  1161. package/www/build/z-cover-hero.entry.esm.js.map +1 -0
  1162. package/www/build/z-date-picker.entry.esm.js.map +1 -0
  1163. package/www/build/z-divider.z-list-element.entry.esm.js.map +1 -0
  1164. package/www/build/z-dragdrop-area.z-modal.entry.esm.js.map +1 -0
  1165. package/www/build/z-file-upload.entry.esm.js.map +1 -0
  1166. package/www/build/z-file.entry.esm.js.map +1 -0
  1167. package/www/build/z-ghost-loading.entry.esm.js.map +1 -0
  1168. package/www/build/z-info-box.entry.esm.js.map +1 -0
  1169. package/www/build/z-info-reveal.entry.esm.js.map +1 -0
  1170. package/www/build/z-input.z-input-message.entry.esm.js.map +1 -0
  1171. package/www/build/z-list.z-list-group.z-tag.entry.esm.js.map +1 -0
  1172. package/www/build/z-menu-deprecated.entry.esm.js.map +1 -0
  1173. package/www/build/z-menu-section-deprecated.entry.esm.js.map +1 -0
  1174. package/www/build/z-menu-section.entry.esm.js.map +1 -0
  1175. package/www/build/z-menu.entry.esm.js.map +1 -0
  1176. package/www/build/z-myz-card-alert.entry.esm.js.map +1 -0
  1177. package/www/build/z-myz-card-dictionary.entry.esm.js.map +1 -0
  1178. package/www/build/z-myz-card-footer-sections.entry.esm.js.map +1 -0
  1179. package/www/build/z-myz-card-footer.entry.esm.js.map +1 -0
  1180. package/www/build/z-myz-card-icon.entry.esm.js.map +1 -0
  1181. package/www/build/z-myz-card-info.entry.esm.js.map +1 -0
  1182. package/www/build/z-myz-card-list.entry.esm.js.map +1 -0
  1183. package/www/build/z-myz-card.z-myz-card-body.z-myz-card-cover.z-myz-card-header.entry.esm.js.map +1 -0
  1184. package/www/build/z-myz-list-item.entry.esm.js.map +1 -0
  1185. package/www/build/z-myz-list.entry.esm.js.map +1 -0
  1186. package/www/build/z-navigation-tabs.entry.esm.js.map +1 -0
  1187. package/www/build/z-notification.entry.esm.js.map +1 -0
  1188. package/www/build/z-offcanvas.z-searchbar.entry.esm.js.map +1 -0
  1189. package/www/build/z-otp.entry.esm.js.map +1 -0
  1190. package/www/build/z-pagination.entry.esm.js.map +1 -0
  1191. package/www/build/z-panel-elem.entry.esm.js.map +1 -0
  1192. package/www/build/z-popover.entry.esm.js.map +1 -0
  1193. package/www/build/z-range-picker.entry.esm.js.map +1 -0
  1194. package/www/build/z-section-title.entry.esm.js.map +1 -0
  1195. package/www/build/z-select.entry.esm.js.map +1 -0
  1196. package/www/build/z-skip-to-content.entry.esm.js.map +1 -0
  1197. package/www/build/z-slideshow.entry.esm.js.map +1 -0
  1198. package/www/build/z-stepper-item.entry.esm.js.map +1 -0
  1199. package/www/build/z-stepper.entry.esm.js.map +1 -0
  1200. package/www/build/z-table.entry.esm.js.map +1 -0
  1201. package/www/build/z-tbody.entry.esm.js.map +1 -0
  1202. package/www/build/z-td.entry.esm.js.map +1 -0
  1203. package/www/build/z-tfoot.entry.esm.js.map +1 -0
  1204. package/www/build/z-th.entry.esm.js.map +1 -0
  1205. package/www/build/z-thead.entry.esm.js.map +1 -0
  1206. package/www/build/z-toast-notification-list.entry.esm.js.map +1 -0
  1207. package/www/build/z-toast-notification.entry.esm.js.map +1 -0
  1208. package/www/build/z-toggle-button.entry.esm.js.map +1 -0
  1209. package/www/build/z-toggle-switch.entry.esm.js.map +1 -0
  1210. package/www/build/z-tooltip.entry.esm.js.map +1 -0
  1211. package/www/build/z-tr.entry.esm.js.map +1 -0
  1212. package/www/build/z-tree-list.entry.esm.js.map +1 -0
  1213. package/www/build/z-visually-hidden.entry.esm.js.map +1 -0
  1214. package/www/build/zanichelli-it-frontend-kit.css +3038 -0
  1215. package/www/build/zanichelli-it-frontend-kit.esm.js +2 -0
  1216. package/www/build/zanichelli-it-frontend-kit.esm.js.map +1 -0
  1217. package/www/build/zanichelli-it-frontend-kit.js +33 -0
  1218. package/www/host.config.json +15 -0
  1219. package/www/index.html +163 -0
@@ -0,0 +1,2820 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-B_IQfJ7S.js');
4
+ var index$1 = require('./index-GMHChntS.js');
5
+ var _commonjsHelpers = require('./_commonjsHelpers-CFO10eej.js');
6
+
7
+ var hammer = {exports: {}};
8
+
9
+ /*! Hammer.JS - v2.0.7 - 2016-04-22
10
+ * http://hammerjs.github.io/
11
+ *
12
+ * Copyright (c) 2016 Jorik Tangelder;
13
+ * Licensed under the MIT license */
14
+
15
+ var hasRequiredHammer;
16
+
17
+ function requireHammer () {
18
+ if (hasRequiredHammer) return hammer.exports;
19
+ hasRequiredHammer = 1;
20
+ (function (module) {
21
+ (function(window, document, exportName, undefined$1) {
22
+
23
+ var VENDOR_PREFIXES = ['', 'webkit', 'Moz', 'MS', 'ms', 'o'];
24
+ var TEST_ELEMENT = document.createElement('div');
25
+
26
+ var TYPE_FUNCTION = 'function';
27
+
28
+ var round = Math.round;
29
+ var abs = Math.abs;
30
+ var now = Date.now;
31
+
32
+ /**
33
+ * set a timeout with a given scope
34
+ * @param {Function} fn
35
+ * @param {Number} timeout
36
+ * @param {Object} context
37
+ * @returns {number}
38
+ */
39
+ function setTimeoutContext(fn, timeout, context) {
40
+ return setTimeout(bindFn(fn, context), timeout);
41
+ }
42
+
43
+ /**
44
+ * if the argument is an array, we want to execute the fn on each entry
45
+ * if it aint an array we don't want to do a thing.
46
+ * this is used by all the methods that accept a single and array argument.
47
+ * @param {*|Array} arg
48
+ * @param {String} fn
49
+ * @param {Object} [context]
50
+ * @returns {Boolean}
51
+ */
52
+ function invokeArrayArg(arg, fn, context) {
53
+ if (Array.isArray(arg)) {
54
+ each(arg, context[fn], context);
55
+ return true;
56
+ }
57
+ return false;
58
+ }
59
+
60
+ /**
61
+ * walk objects and arrays
62
+ * @param {Object} obj
63
+ * @param {Function} iterator
64
+ * @param {Object} context
65
+ */
66
+ function each(obj, iterator, context) {
67
+ var i;
68
+
69
+ if (!obj) {
70
+ return;
71
+ }
72
+
73
+ if (obj.forEach) {
74
+ obj.forEach(iterator, context);
75
+ } else if (obj.length !== undefined$1) {
76
+ i = 0;
77
+ while (i < obj.length) {
78
+ iterator.call(context, obj[i], i, obj);
79
+ i++;
80
+ }
81
+ } else {
82
+ for (i in obj) {
83
+ obj.hasOwnProperty(i) && iterator.call(context, obj[i], i, obj);
84
+ }
85
+ }
86
+ }
87
+
88
+ /**
89
+ * wrap a method with a deprecation warning and stack trace
90
+ * @param {Function} method
91
+ * @param {String} name
92
+ * @param {String} message
93
+ * @returns {Function} A new function wrapping the supplied method.
94
+ */
95
+ function deprecate(method, name, message) {
96
+ var deprecationMessage = 'DEPRECATED METHOD: ' + name + '\n' + message + ' AT \n';
97
+ return function() {
98
+ var e = new Error('get-stack-trace');
99
+ var stack = e && e.stack ? e.stack.replace(/^[^\(]+?[\n$]/gm, '')
100
+ .replace(/^\s+at\s+/gm, '')
101
+ .replace(/^Object.<anonymous>\s*\(/gm, '{anonymous}()@') : 'Unknown Stack Trace';
102
+
103
+ var log = window.console && (window.console.warn || window.console.log);
104
+ if (log) {
105
+ log.call(window.console, deprecationMessage, stack);
106
+ }
107
+ return method.apply(this, arguments);
108
+ };
109
+ }
110
+
111
+ /**
112
+ * extend object.
113
+ * means that properties in dest will be overwritten by the ones in src.
114
+ * @param {Object} target
115
+ * @param {...Object} objects_to_assign
116
+ * @returns {Object} target
117
+ */
118
+ var assign;
119
+ if (typeof Object.assign !== 'function') {
120
+ assign = function assign(target) {
121
+ if (target === undefined$1 || target === null) {
122
+ throw new TypeError('Cannot convert undefined or null to object');
123
+ }
124
+
125
+ var output = Object(target);
126
+ for (var index = 1; index < arguments.length; index++) {
127
+ var source = arguments[index];
128
+ if (source !== undefined$1 && source !== null) {
129
+ for (var nextKey in source) {
130
+ if (source.hasOwnProperty(nextKey)) {
131
+ output[nextKey] = source[nextKey];
132
+ }
133
+ }
134
+ }
135
+ }
136
+ return output;
137
+ };
138
+ } else {
139
+ assign = Object.assign;
140
+ }
141
+
142
+ /**
143
+ * extend object.
144
+ * means that properties in dest will be overwritten by the ones in src.
145
+ * @param {Object} dest
146
+ * @param {Object} src
147
+ * @param {Boolean} [merge=false]
148
+ * @returns {Object} dest
149
+ */
150
+ var extend = deprecate(function extend(dest, src, merge) {
151
+ var keys = Object.keys(src);
152
+ var i = 0;
153
+ while (i < keys.length) {
154
+ if (!merge || (merge && dest[keys[i]] === undefined$1)) {
155
+ dest[keys[i]] = src[keys[i]];
156
+ }
157
+ i++;
158
+ }
159
+ return dest;
160
+ }, 'extend', 'Use `assign`.');
161
+
162
+ /**
163
+ * merge the values from src in the dest.
164
+ * means that properties that exist in dest will not be overwritten by src
165
+ * @param {Object} dest
166
+ * @param {Object} src
167
+ * @returns {Object} dest
168
+ */
169
+ var merge = deprecate(function merge(dest, src) {
170
+ return extend(dest, src, true);
171
+ }, 'merge', 'Use `assign`.');
172
+
173
+ /**
174
+ * simple class inheritance
175
+ * @param {Function} child
176
+ * @param {Function} base
177
+ * @param {Object} [properties]
178
+ */
179
+ function inherit(child, base, properties) {
180
+ var baseP = base.prototype,
181
+ childP;
182
+
183
+ childP = child.prototype = Object.create(baseP);
184
+ childP.constructor = child;
185
+ childP._super = baseP;
186
+
187
+ if (properties) {
188
+ assign(childP, properties);
189
+ }
190
+ }
191
+
192
+ /**
193
+ * simple function bind
194
+ * @param {Function} fn
195
+ * @param {Object} context
196
+ * @returns {Function}
197
+ */
198
+ function bindFn(fn, context) {
199
+ return function boundFn() {
200
+ return fn.apply(context, arguments);
201
+ };
202
+ }
203
+
204
+ /**
205
+ * let a boolean value also be a function that must return a boolean
206
+ * this first item in args will be used as the context
207
+ * @param {Boolean|Function} val
208
+ * @param {Array} [args]
209
+ * @returns {Boolean}
210
+ */
211
+ function boolOrFn(val, args) {
212
+ if (typeof val == TYPE_FUNCTION) {
213
+ return val.apply(args ? args[0] || undefined$1 : undefined$1, args);
214
+ }
215
+ return val;
216
+ }
217
+
218
+ /**
219
+ * use the val2 when val1 is undefined
220
+ * @param {*} val1
221
+ * @param {*} val2
222
+ * @returns {*}
223
+ */
224
+ function ifUndefined(val1, val2) {
225
+ return (val1 === undefined$1) ? val2 : val1;
226
+ }
227
+
228
+ /**
229
+ * addEventListener with multiple events at once
230
+ * @param {EventTarget} target
231
+ * @param {String} types
232
+ * @param {Function} handler
233
+ */
234
+ function addEventListeners(target, types, handler) {
235
+ each(splitStr(types), function(type) {
236
+ target.addEventListener(type, handler, false);
237
+ });
238
+ }
239
+
240
+ /**
241
+ * removeEventListener with multiple events at once
242
+ * @param {EventTarget} target
243
+ * @param {String} types
244
+ * @param {Function} handler
245
+ */
246
+ function removeEventListeners(target, types, handler) {
247
+ each(splitStr(types), function(type) {
248
+ target.removeEventListener(type, handler, false);
249
+ });
250
+ }
251
+
252
+ /**
253
+ * find if a node is in the given parent
254
+ * @method hasParent
255
+ * @param {HTMLElement} node
256
+ * @param {HTMLElement} parent
257
+ * @return {Boolean} found
258
+ */
259
+ function hasParent(node, parent) {
260
+ while (node) {
261
+ if (node == parent) {
262
+ return true;
263
+ }
264
+ node = node.parentNode;
265
+ }
266
+ return false;
267
+ }
268
+
269
+ /**
270
+ * small indexOf wrapper
271
+ * @param {String} str
272
+ * @param {String} find
273
+ * @returns {Boolean} found
274
+ */
275
+ function inStr(str, find) {
276
+ return str.indexOf(find) > -1;
277
+ }
278
+
279
+ /**
280
+ * split string on whitespace
281
+ * @param {String} str
282
+ * @returns {Array} words
283
+ */
284
+ function splitStr(str) {
285
+ return str.trim().split(/\s+/g);
286
+ }
287
+
288
+ /**
289
+ * find if a array contains the object using indexOf or a simple polyFill
290
+ * @param {Array} src
291
+ * @param {String} find
292
+ * @param {String} [findByKey]
293
+ * @return {Boolean|Number} false when not found, or the index
294
+ */
295
+ function inArray(src, find, findByKey) {
296
+ if (src.indexOf && !findByKey) {
297
+ return src.indexOf(find);
298
+ } else {
299
+ var i = 0;
300
+ while (i < src.length) {
301
+ if ((findByKey && src[i][findByKey] == find) || (!findByKey && src[i] === find)) {
302
+ return i;
303
+ }
304
+ i++;
305
+ }
306
+ return -1;
307
+ }
308
+ }
309
+
310
+ /**
311
+ * convert array-like objects to real arrays
312
+ * @param {Object} obj
313
+ * @returns {Array}
314
+ */
315
+ function toArray(obj) {
316
+ return Array.prototype.slice.call(obj, 0);
317
+ }
318
+
319
+ /**
320
+ * unique array with objects based on a key (like 'id') or just by the array's value
321
+ * @param {Array} src [{id:1},{id:2},{id:1}]
322
+ * @param {String} [key]
323
+ * @param {Boolean} [sort=False]
324
+ * @returns {Array} [{id:1},{id:2}]
325
+ */
326
+ function uniqueArray(src, key, sort) {
327
+ var results = [];
328
+ var values = [];
329
+ var i = 0;
330
+
331
+ while (i < src.length) {
332
+ var val = src[i][key] ;
333
+ if (inArray(values, val) < 0) {
334
+ results.push(src[i]);
335
+ }
336
+ values[i] = val;
337
+ i++;
338
+ }
339
+
340
+ {
341
+ {
342
+ results = results.sort(function sortUniqueArray(a, b) {
343
+ return a[key] > b[key];
344
+ });
345
+ }
346
+ }
347
+
348
+ return results;
349
+ }
350
+
351
+ /**
352
+ * get the prefixed property
353
+ * @param {Object} obj
354
+ * @param {String} property
355
+ * @returns {String|Undefined} prefixed
356
+ */
357
+ function prefixed(obj, property) {
358
+ var prefix, prop;
359
+ var camelProp = property[0].toUpperCase() + property.slice(1);
360
+
361
+ var i = 0;
362
+ while (i < VENDOR_PREFIXES.length) {
363
+ prefix = VENDOR_PREFIXES[i];
364
+ prop = (prefix) ? prefix + camelProp : property;
365
+
366
+ if (prop in obj) {
367
+ return prop;
368
+ }
369
+ i++;
370
+ }
371
+ return undefined$1;
372
+ }
373
+
374
+ /**
375
+ * get a unique id
376
+ * @returns {number} uniqueId
377
+ */
378
+ var _uniqueId = 1;
379
+ function uniqueId() {
380
+ return _uniqueId++;
381
+ }
382
+
383
+ /**
384
+ * get the window object of an element
385
+ * @param {HTMLElement} element
386
+ * @returns {DocumentView|Window}
387
+ */
388
+ function getWindowForElement(element) {
389
+ var doc = element.ownerDocument || element;
390
+ return (doc.defaultView || doc.parentWindow || window);
391
+ }
392
+
393
+ var MOBILE_REGEX = /mobile|tablet|ip(ad|hone|od)|android/i;
394
+
395
+ var SUPPORT_TOUCH = ('ontouchstart' in window);
396
+ var SUPPORT_POINTER_EVENTS = prefixed(window, 'PointerEvent') !== undefined$1;
397
+ var SUPPORT_ONLY_TOUCH = SUPPORT_TOUCH && MOBILE_REGEX.test(navigator.userAgent);
398
+
399
+ var INPUT_TYPE_TOUCH = 'touch';
400
+ var INPUT_TYPE_PEN = 'pen';
401
+ var INPUT_TYPE_MOUSE = 'mouse';
402
+ var INPUT_TYPE_KINECT = 'kinect';
403
+
404
+ var COMPUTE_INTERVAL = 25;
405
+
406
+ var INPUT_START = 1;
407
+ var INPUT_MOVE = 2;
408
+ var INPUT_END = 4;
409
+ var INPUT_CANCEL = 8;
410
+
411
+ var DIRECTION_NONE = 1;
412
+ var DIRECTION_LEFT = 2;
413
+ var DIRECTION_RIGHT = 4;
414
+ var DIRECTION_UP = 8;
415
+ var DIRECTION_DOWN = 16;
416
+
417
+ var DIRECTION_HORIZONTAL = DIRECTION_LEFT | DIRECTION_RIGHT;
418
+ var DIRECTION_VERTICAL = DIRECTION_UP | DIRECTION_DOWN;
419
+ var DIRECTION_ALL = DIRECTION_HORIZONTAL | DIRECTION_VERTICAL;
420
+
421
+ var PROPS_XY = ['x', 'y'];
422
+ var PROPS_CLIENT_XY = ['clientX', 'clientY'];
423
+
424
+ /**
425
+ * create new input type manager
426
+ * @param {Manager} manager
427
+ * @param {Function} callback
428
+ * @returns {Input}
429
+ * @constructor
430
+ */
431
+ function Input(manager, callback) {
432
+ var self = this;
433
+ this.manager = manager;
434
+ this.callback = callback;
435
+ this.element = manager.element;
436
+ this.target = manager.options.inputTarget;
437
+
438
+ // smaller wrapper around the handler, for the scope and the enabled state of the manager,
439
+ // so when disabled the input events are completely bypassed.
440
+ this.domHandler = function(ev) {
441
+ if (boolOrFn(manager.options.enable, [manager])) {
442
+ self.handler(ev);
443
+ }
444
+ };
445
+
446
+ this.init();
447
+
448
+ }
449
+
450
+ Input.prototype = {
451
+ /**
452
+ * should handle the inputEvent data and trigger the callback
453
+ * @virtual
454
+ */
455
+ handler: function() { },
456
+
457
+ /**
458
+ * bind the events
459
+ */
460
+ init: function() {
461
+ this.evEl && addEventListeners(this.element, this.evEl, this.domHandler);
462
+ this.evTarget && addEventListeners(this.target, this.evTarget, this.domHandler);
463
+ this.evWin && addEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);
464
+ },
465
+
466
+ /**
467
+ * unbind the events
468
+ */
469
+ destroy: function() {
470
+ this.evEl && removeEventListeners(this.element, this.evEl, this.domHandler);
471
+ this.evTarget && removeEventListeners(this.target, this.evTarget, this.domHandler);
472
+ this.evWin && removeEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);
473
+ }
474
+ };
475
+
476
+ /**
477
+ * create new input type manager
478
+ * called by the Manager constructor
479
+ * @param {Hammer} manager
480
+ * @returns {Input}
481
+ */
482
+ function createInputInstance(manager) {
483
+ var Type;
484
+ var inputClass = manager.options.inputClass;
485
+
486
+ if (inputClass) {
487
+ Type = inputClass;
488
+ } else if (SUPPORT_POINTER_EVENTS) {
489
+ Type = PointerEventInput;
490
+ } else if (SUPPORT_ONLY_TOUCH) {
491
+ Type = TouchInput;
492
+ } else if (!SUPPORT_TOUCH) {
493
+ Type = MouseInput;
494
+ } else {
495
+ Type = TouchMouseInput;
496
+ }
497
+ return new (Type)(manager, inputHandler);
498
+ }
499
+
500
+ /**
501
+ * handle input events
502
+ * @param {Manager} manager
503
+ * @param {String} eventType
504
+ * @param {Object} input
505
+ */
506
+ function inputHandler(manager, eventType, input) {
507
+ var pointersLen = input.pointers.length;
508
+ var changedPointersLen = input.changedPointers.length;
509
+ var isFirst = (eventType & INPUT_START && (pointersLen - changedPointersLen === 0));
510
+ var isFinal = (eventType & (INPUT_END | INPUT_CANCEL) && (pointersLen - changedPointersLen === 0));
511
+
512
+ input.isFirst = !!isFirst;
513
+ input.isFinal = !!isFinal;
514
+
515
+ if (isFirst) {
516
+ manager.session = {};
517
+ }
518
+
519
+ // source event is the normalized value of the domEvents
520
+ // like 'touchstart, mouseup, pointerdown'
521
+ input.eventType = eventType;
522
+
523
+ // compute scale, rotation etc
524
+ computeInputData(manager, input);
525
+
526
+ // emit secret event
527
+ manager.emit('hammer.input', input);
528
+
529
+ manager.recognize(input);
530
+ manager.session.prevInput = input;
531
+ }
532
+
533
+ /**
534
+ * extend the data with some usable properties like scale, rotate, velocity etc
535
+ * @param {Object} manager
536
+ * @param {Object} input
537
+ */
538
+ function computeInputData(manager, input) {
539
+ var session = manager.session;
540
+ var pointers = input.pointers;
541
+ var pointersLength = pointers.length;
542
+
543
+ // store the first input to calculate the distance and direction
544
+ if (!session.firstInput) {
545
+ session.firstInput = simpleCloneInputData(input);
546
+ }
547
+
548
+ // to compute scale and rotation we need to store the multiple touches
549
+ if (pointersLength > 1 && !session.firstMultiple) {
550
+ session.firstMultiple = simpleCloneInputData(input);
551
+ } else if (pointersLength === 1) {
552
+ session.firstMultiple = false;
553
+ }
554
+
555
+ var firstInput = session.firstInput;
556
+ var firstMultiple = session.firstMultiple;
557
+ var offsetCenter = firstMultiple ? firstMultiple.center : firstInput.center;
558
+
559
+ var center = input.center = getCenter(pointers);
560
+ input.timeStamp = now();
561
+ input.deltaTime = input.timeStamp - firstInput.timeStamp;
562
+
563
+ input.angle = getAngle(offsetCenter, center);
564
+ input.distance = getDistance(offsetCenter, center);
565
+
566
+ computeDeltaXY(session, input);
567
+ input.offsetDirection = getDirection(input.deltaX, input.deltaY);
568
+
569
+ var overallVelocity = getVelocity(input.deltaTime, input.deltaX, input.deltaY);
570
+ input.overallVelocityX = overallVelocity.x;
571
+ input.overallVelocityY = overallVelocity.y;
572
+ input.overallVelocity = (abs(overallVelocity.x) > abs(overallVelocity.y)) ? overallVelocity.x : overallVelocity.y;
573
+
574
+ input.scale = firstMultiple ? getScale(firstMultiple.pointers, pointers) : 1;
575
+ input.rotation = firstMultiple ? getRotation(firstMultiple.pointers, pointers) : 0;
576
+
577
+ input.maxPointers = !session.prevInput ? input.pointers.length : ((input.pointers.length >
578
+ session.prevInput.maxPointers) ? input.pointers.length : session.prevInput.maxPointers);
579
+
580
+ computeIntervalInputData(session, input);
581
+
582
+ // find the correct target
583
+ var target = manager.element;
584
+ if (hasParent(input.srcEvent.target, target)) {
585
+ target = input.srcEvent.target;
586
+ }
587
+ input.target = target;
588
+ }
589
+
590
+ function computeDeltaXY(session, input) {
591
+ var center = input.center;
592
+ var offset = session.offsetDelta || {};
593
+ var prevDelta = session.prevDelta || {};
594
+ var prevInput = session.prevInput || {};
595
+
596
+ if (input.eventType === INPUT_START || prevInput.eventType === INPUT_END) {
597
+ prevDelta = session.prevDelta = {
598
+ x: prevInput.deltaX || 0,
599
+ y: prevInput.deltaY || 0
600
+ };
601
+
602
+ offset = session.offsetDelta = {
603
+ x: center.x,
604
+ y: center.y
605
+ };
606
+ }
607
+
608
+ input.deltaX = prevDelta.x + (center.x - offset.x);
609
+ input.deltaY = prevDelta.y + (center.y - offset.y);
610
+ }
611
+
612
+ /**
613
+ * velocity is calculated every x ms
614
+ * @param {Object} session
615
+ * @param {Object} input
616
+ */
617
+ function computeIntervalInputData(session, input) {
618
+ var last = session.lastInterval || input,
619
+ deltaTime = input.timeStamp - last.timeStamp,
620
+ velocity, velocityX, velocityY, direction;
621
+
622
+ if (input.eventType != INPUT_CANCEL && (deltaTime > COMPUTE_INTERVAL || last.velocity === undefined$1)) {
623
+ var deltaX = input.deltaX - last.deltaX;
624
+ var deltaY = input.deltaY - last.deltaY;
625
+
626
+ var v = getVelocity(deltaTime, deltaX, deltaY);
627
+ velocityX = v.x;
628
+ velocityY = v.y;
629
+ velocity = (abs(v.x) > abs(v.y)) ? v.x : v.y;
630
+ direction = getDirection(deltaX, deltaY);
631
+
632
+ session.lastInterval = input;
633
+ } else {
634
+ // use latest velocity info if it doesn't overtake a minimum period
635
+ velocity = last.velocity;
636
+ velocityX = last.velocityX;
637
+ velocityY = last.velocityY;
638
+ direction = last.direction;
639
+ }
640
+
641
+ input.velocity = velocity;
642
+ input.velocityX = velocityX;
643
+ input.velocityY = velocityY;
644
+ input.direction = direction;
645
+ }
646
+
647
+ /**
648
+ * create a simple clone from the input used for storage of firstInput and firstMultiple
649
+ * @param {Object} input
650
+ * @returns {Object} clonedInputData
651
+ */
652
+ function simpleCloneInputData(input) {
653
+ // make a simple copy of the pointers because we will get a reference if we don't
654
+ // we only need clientXY for the calculations
655
+ var pointers = [];
656
+ var i = 0;
657
+ while (i < input.pointers.length) {
658
+ pointers[i] = {
659
+ clientX: round(input.pointers[i].clientX),
660
+ clientY: round(input.pointers[i].clientY)
661
+ };
662
+ i++;
663
+ }
664
+
665
+ return {
666
+ timeStamp: now(),
667
+ pointers: pointers,
668
+ center: getCenter(pointers),
669
+ deltaX: input.deltaX,
670
+ deltaY: input.deltaY
671
+ };
672
+ }
673
+
674
+ /**
675
+ * get the center of all the pointers
676
+ * @param {Array} pointers
677
+ * @return {Object} center contains `x` and `y` properties
678
+ */
679
+ function getCenter(pointers) {
680
+ var pointersLength = pointers.length;
681
+
682
+ // no need to loop when only one touch
683
+ if (pointersLength === 1) {
684
+ return {
685
+ x: round(pointers[0].clientX),
686
+ y: round(pointers[0].clientY)
687
+ };
688
+ }
689
+
690
+ var x = 0, y = 0, i = 0;
691
+ while (i < pointersLength) {
692
+ x += pointers[i].clientX;
693
+ y += pointers[i].clientY;
694
+ i++;
695
+ }
696
+
697
+ return {
698
+ x: round(x / pointersLength),
699
+ y: round(y / pointersLength)
700
+ };
701
+ }
702
+
703
+ /**
704
+ * calculate the velocity between two points. unit is in px per ms.
705
+ * @param {Number} deltaTime
706
+ * @param {Number} x
707
+ * @param {Number} y
708
+ * @return {Object} velocity `x` and `y`
709
+ */
710
+ function getVelocity(deltaTime, x, y) {
711
+ return {
712
+ x: x / deltaTime || 0,
713
+ y: y / deltaTime || 0
714
+ };
715
+ }
716
+
717
+ /**
718
+ * get the direction between two points
719
+ * @param {Number} x
720
+ * @param {Number} y
721
+ * @return {Number} direction
722
+ */
723
+ function getDirection(x, y) {
724
+ if (x === y) {
725
+ return DIRECTION_NONE;
726
+ }
727
+
728
+ if (abs(x) >= abs(y)) {
729
+ return x < 0 ? DIRECTION_LEFT : DIRECTION_RIGHT;
730
+ }
731
+ return y < 0 ? DIRECTION_UP : DIRECTION_DOWN;
732
+ }
733
+
734
+ /**
735
+ * calculate the absolute distance between two points
736
+ * @param {Object} p1 {x, y}
737
+ * @param {Object} p2 {x, y}
738
+ * @param {Array} [props] containing x and y keys
739
+ * @return {Number} distance
740
+ */
741
+ function getDistance(p1, p2, props) {
742
+ if (!props) {
743
+ props = PROPS_XY;
744
+ }
745
+ var x = p2[props[0]] - p1[props[0]],
746
+ y = p2[props[1]] - p1[props[1]];
747
+
748
+ return Math.sqrt((x * x) + (y * y));
749
+ }
750
+
751
+ /**
752
+ * calculate the angle between two coordinates
753
+ * @param {Object} p1
754
+ * @param {Object} p2
755
+ * @param {Array} [props] containing x and y keys
756
+ * @return {Number} angle
757
+ */
758
+ function getAngle(p1, p2, props) {
759
+ if (!props) {
760
+ props = PROPS_XY;
761
+ }
762
+ var x = p2[props[0]] - p1[props[0]],
763
+ y = p2[props[1]] - p1[props[1]];
764
+ return Math.atan2(y, x) * 180 / Math.PI;
765
+ }
766
+
767
+ /**
768
+ * calculate the rotation degrees between two pointersets
769
+ * @param {Array} start array of pointers
770
+ * @param {Array} end array of pointers
771
+ * @return {Number} rotation
772
+ */
773
+ function getRotation(start, end) {
774
+ return getAngle(end[1], end[0], PROPS_CLIENT_XY) + getAngle(start[1], start[0], PROPS_CLIENT_XY);
775
+ }
776
+
777
+ /**
778
+ * calculate the scale factor between two pointersets
779
+ * no scale is 1, and goes down to 0 when pinched together, and bigger when pinched out
780
+ * @param {Array} start array of pointers
781
+ * @param {Array} end array of pointers
782
+ * @return {Number} scale
783
+ */
784
+ function getScale(start, end) {
785
+ return getDistance(end[0], end[1], PROPS_CLIENT_XY) / getDistance(start[0], start[1], PROPS_CLIENT_XY);
786
+ }
787
+
788
+ var MOUSE_INPUT_MAP = {
789
+ mousedown: INPUT_START,
790
+ mousemove: INPUT_MOVE,
791
+ mouseup: INPUT_END
792
+ };
793
+
794
+ var MOUSE_ELEMENT_EVENTS = 'mousedown';
795
+ var MOUSE_WINDOW_EVENTS = 'mousemove mouseup';
796
+
797
+ /**
798
+ * Mouse events input
799
+ * @constructor
800
+ * @extends Input
801
+ */
802
+ function MouseInput() {
803
+ this.evEl = MOUSE_ELEMENT_EVENTS;
804
+ this.evWin = MOUSE_WINDOW_EVENTS;
805
+
806
+ this.pressed = false; // mousedown state
807
+
808
+ Input.apply(this, arguments);
809
+ }
810
+
811
+ inherit(MouseInput, Input, {
812
+ /**
813
+ * handle mouse events
814
+ * @param {Object} ev
815
+ */
816
+ handler: function MEhandler(ev) {
817
+ var eventType = MOUSE_INPUT_MAP[ev.type];
818
+
819
+ // on start we want to have the left mouse button down
820
+ if (eventType & INPUT_START && ev.button === 0) {
821
+ this.pressed = true;
822
+ }
823
+
824
+ if (eventType & INPUT_MOVE && ev.which !== 1) {
825
+ eventType = INPUT_END;
826
+ }
827
+
828
+ // mouse must be down
829
+ if (!this.pressed) {
830
+ return;
831
+ }
832
+
833
+ if (eventType & INPUT_END) {
834
+ this.pressed = false;
835
+ }
836
+
837
+ this.callback(this.manager, eventType, {
838
+ pointers: [ev],
839
+ changedPointers: [ev],
840
+ pointerType: INPUT_TYPE_MOUSE,
841
+ srcEvent: ev
842
+ });
843
+ }
844
+ });
845
+
846
+ var POINTER_INPUT_MAP = {
847
+ pointerdown: INPUT_START,
848
+ pointermove: INPUT_MOVE,
849
+ pointerup: INPUT_END,
850
+ pointercancel: INPUT_CANCEL,
851
+ pointerout: INPUT_CANCEL
852
+ };
853
+
854
+ // in IE10 the pointer types is defined as an enum
855
+ var IE10_POINTER_TYPE_ENUM = {
856
+ 2: INPUT_TYPE_TOUCH,
857
+ 3: INPUT_TYPE_PEN,
858
+ 4: INPUT_TYPE_MOUSE,
859
+ 5: INPUT_TYPE_KINECT // see https://twitter.com/jacobrossi/status/480596438489890816
860
+ };
861
+
862
+ var POINTER_ELEMENT_EVENTS = 'pointerdown';
863
+ var POINTER_WINDOW_EVENTS = 'pointermove pointerup pointercancel';
864
+
865
+ // IE10 has prefixed support, and case-sensitive
866
+ if (window.MSPointerEvent && !window.PointerEvent) {
867
+ POINTER_ELEMENT_EVENTS = 'MSPointerDown';
868
+ POINTER_WINDOW_EVENTS = 'MSPointerMove MSPointerUp MSPointerCancel';
869
+ }
870
+
871
+ /**
872
+ * Pointer events input
873
+ * @constructor
874
+ * @extends Input
875
+ */
876
+ function PointerEventInput() {
877
+ this.evEl = POINTER_ELEMENT_EVENTS;
878
+ this.evWin = POINTER_WINDOW_EVENTS;
879
+
880
+ Input.apply(this, arguments);
881
+
882
+ this.store = (this.manager.session.pointerEvents = []);
883
+ }
884
+
885
+ inherit(PointerEventInput, Input, {
886
+ /**
887
+ * handle mouse events
888
+ * @param {Object} ev
889
+ */
890
+ handler: function PEhandler(ev) {
891
+ var store = this.store;
892
+ var removePointer = false;
893
+
894
+ var eventTypeNormalized = ev.type.toLowerCase().replace('ms', '');
895
+ var eventType = POINTER_INPUT_MAP[eventTypeNormalized];
896
+ var pointerType = IE10_POINTER_TYPE_ENUM[ev.pointerType] || ev.pointerType;
897
+
898
+ var isTouch = (pointerType == INPUT_TYPE_TOUCH);
899
+
900
+ // get index of the event in the store
901
+ var storeIndex = inArray(store, ev.pointerId, 'pointerId');
902
+
903
+ // start and mouse must be down
904
+ if (eventType & INPUT_START && (ev.button === 0 || isTouch)) {
905
+ if (storeIndex < 0) {
906
+ store.push(ev);
907
+ storeIndex = store.length - 1;
908
+ }
909
+ } else if (eventType & (INPUT_END | INPUT_CANCEL)) {
910
+ removePointer = true;
911
+ }
912
+
913
+ // it not found, so the pointer hasn't been down (so it's probably a hover)
914
+ if (storeIndex < 0) {
915
+ return;
916
+ }
917
+
918
+ // update the event in the store
919
+ store[storeIndex] = ev;
920
+
921
+ this.callback(this.manager, eventType, {
922
+ pointers: store,
923
+ changedPointers: [ev],
924
+ pointerType: pointerType,
925
+ srcEvent: ev
926
+ });
927
+
928
+ if (removePointer) {
929
+ // remove from the store
930
+ store.splice(storeIndex, 1);
931
+ }
932
+ }
933
+ });
934
+
935
+ var SINGLE_TOUCH_INPUT_MAP = {
936
+ touchstart: INPUT_START,
937
+ touchmove: INPUT_MOVE,
938
+ touchend: INPUT_END,
939
+ touchcancel: INPUT_CANCEL
940
+ };
941
+
942
+ var SINGLE_TOUCH_TARGET_EVENTS = 'touchstart';
943
+ var SINGLE_TOUCH_WINDOW_EVENTS = 'touchstart touchmove touchend touchcancel';
944
+
945
+ /**
946
+ * Touch events input
947
+ * @constructor
948
+ * @extends Input
949
+ */
950
+ function SingleTouchInput() {
951
+ this.evTarget = SINGLE_TOUCH_TARGET_EVENTS;
952
+ this.evWin = SINGLE_TOUCH_WINDOW_EVENTS;
953
+ this.started = false;
954
+
955
+ Input.apply(this, arguments);
956
+ }
957
+
958
+ inherit(SingleTouchInput, Input, {
959
+ handler: function TEhandler(ev) {
960
+ var type = SINGLE_TOUCH_INPUT_MAP[ev.type];
961
+
962
+ // should we handle the touch events?
963
+ if (type === INPUT_START) {
964
+ this.started = true;
965
+ }
966
+
967
+ if (!this.started) {
968
+ return;
969
+ }
970
+
971
+ var touches = normalizeSingleTouches.call(this, ev, type);
972
+
973
+ // when done, reset the started state
974
+ if (type & (INPUT_END | INPUT_CANCEL) && touches[0].length - touches[1].length === 0) {
975
+ this.started = false;
976
+ }
977
+
978
+ this.callback(this.manager, type, {
979
+ pointers: touches[0],
980
+ changedPointers: touches[1],
981
+ pointerType: INPUT_TYPE_TOUCH,
982
+ srcEvent: ev
983
+ });
984
+ }
985
+ });
986
+
987
+ /**
988
+ * @this {TouchInput}
989
+ * @param {Object} ev
990
+ * @param {Number} type flag
991
+ * @returns {undefined|Array} [all, changed]
992
+ */
993
+ function normalizeSingleTouches(ev, type) {
994
+ var all = toArray(ev.touches);
995
+ var changed = toArray(ev.changedTouches);
996
+
997
+ if (type & (INPUT_END | INPUT_CANCEL)) {
998
+ all = uniqueArray(all.concat(changed), 'identifier');
999
+ }
1000
+
1001
+ return [all, changed];
1002
+ }
1003
+
1004
+ var TOUCH_INPUT_MAP = {
1005
+ touchstart: INPUT_START,
1006
+ touchmove: INPUT_MOVE,
1007
+ touchend: INPUT_END,
1008
+ touchcancel: INPUT_CANCEL
1009
+ };
1010
+
1011
+ var TOUCH_TARGET_EVENTS = 'touchstart touchmove touchend touchcancel';
1012
+
1013
+ /**
1014
+ * Multi-user touch events input
1015
+ * @constructor
1016
+ * @extends Input
1017
+ */
1018
+ function TouchInput() {
1019
+ this.evTarget = TOUCH_TARGET_EVENTS;
1020
+ this.targetIds = {};
1021
+
1022
+ Input.apply(this, arguments);
1023
+ }
1024
+
1025
+ inherit(TouchInput, Input, {
1026
+ handler: function MTEhandler(ev) {
1027
+ var type = TOUCH_INPUT_MAP[ev.type];
1028
+ var touches = getTouches.call(this, ev, type);
1029
+ if (!touches) {
1030
+ return;
1031
+ }
1032
+
1033
+ this.callback(this.manager, type, {
1034
+ pointers: touches[0],
1035
+ changedPointers: touches[1],
1036
+ pointerType: INPUT_TYPE_TOUCH,
1037
+ srcEvent: ev
1038
+ });
1039
+ }
1040
+ });
1041
+
1042
+ /**
1043
+ * @this {TouchInput}
1044
+ * @param {Object} ev
1045
+ * @param {Number} type flag
1046
+ * @returns {undefined|Array} [all, changed]
1047
+ */
1048
+ function getTouches(ev, type) {
1049
+ var allTouches = toArray(ev.touches);
1050
+ var targetIds = this.targetIds;
1051
+
1052
+ // when there is only one touch, the process can be simplified
1053
+ if (type & (INPUT_START | INPUT_MOVE) && allTouches.length === 1) {
1054
+ targetIds[allTouches[0].identifier] = true;
1055
+ return [allTouches, allTouches];
1056
+ }
1057
+
1058
+ var i,
1059
+ targetTouches,
1060
+ changedTouches = toArray(ev.changedTouches),
1061
+ changedTargetTouches = [],
1062
+ target = this.target;
1063
+
1064
+ // get target touches from touches
1065
+ targetTouches = allTouches.filter(function(touch) {
1066
+ return hasParent(touch.target, target);
1067
+ });
1068
+
1069
+ // collect touches
1070
+ if (type === INPUT_START) {
1071
+ i = 0;
1072
+ while (i < targetTouches.length) {
1073
+ targetIds[targetTouches[i].identifier] = true;
1074
+ i++;
1075
+ }
1076
+ }
1077
+
1078
+ // filter changed touches to only contain touches that exist in the collected target ids
1079
+ i = 0;
1080
+ while (i < changedTouches.length) {
1081
+ if (targetIds[changedTouches[i].identifier]) {
1082
+ changedTargetTouches.push(changedTouches[i]);
1083
+ }
1084
+
1085
+ // cleanup removed touches
1086
+ if (type & (INPUT_END | INPUT_CANCEL)) {
1087
+ delete targetIds[changedTouches[i].identifier];
1088
+ }
1089
+ i++;
1090
+ }
1091
+
1092
+ if (!changedTargetTouches.length) {
1093
+ return;
1094
+ }
1095
+
1096
+ return [
1097
+ // merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
1098
+ uniqueArray(targetTouches.concat(changedTargetTouches), 'identifier'),
1099
+ changedTargetTouches
1100
+ ];
1101
+ }
1102
+
1103
+ /**
1104
+ * Combined touch and mouse input
1105
+ *
1106
+ * Touch has a higher priority then mouse, and while touching no mouse events are allowed.
1107
+ * This because touch devices also emit mouse events while doing a touch.
1108
+ *
1109
+ * @constructor
1110
+ * @extends Input
1111
+ */
1112
+
1113
+ var DEDUP_TIMEOUT = 2500;
1114
+ var DEDUP_DISTANCE = 25;
1115
+
1116
+ function TouchMouseInput() {
1117
+ Input.apply(this, arguments);
1118
+
1119
+ var handler = bindFn(this.handler, this);
1120
+ this.touch = new TouchInput(this.manager, handler);
1121
+ this.mouse = new MouseInput(this.manager, handler);
1122
+
1123
+ this.primaryTouch = null;
1124
+ this.lastTouches = [];
1125
+ }
1126
+
1127
+ inherit(TouchMouseInput, Input, {
1128
+ /**
1129
+ * handle mouse and touch events
1130
+ * @param {Hammer} manager
1131
+ * @param {String} inputEvent
1132
+ * @param {Object} inputData
1133
+ */
1134
+ handler: function TMEhandler(manager, inputEvent, inputData) {
1135
+ var isTouch = (inputData.pointerType == INPUT_TYPE_TOUCH),
1136
+ isMouse = (inputData.pointerType == INPUT_TYPE_MOUSE);
1137
+
1138
+ if (isMouse && inputData.sourceCapabilities && inputData.sourceCapabilities.firesTouchEvents) {
1139
+ return;
1140
+ }
1141
+
1142
+ // when we're in a touch event, record touches to de-dupe synthetic mouse event
1143
+ if (isTouch) {
1144
+ recordTouches.call(this, inputEvent, inputData);
1145
+ } else if (isMouse && isSyntheticEvent.call(this, inputData)) {
1146
+ return;
1147
+ }
1148
+
1149
+ this.callback(manager, inputEvent, inputData);
1150
+ },
1151
+
1152
+ /**
1153
+ * remove the event listeners
1154
+ */
1155
+ destroy: function destroy() {
1156
+ this.touch.destroy();
1157
+ this.mouse.destroy();
1158
+ }
1159
+ });
1160
+
1161
+ function recordTouches(eventType, eventData) {
1162
+ if (eventType & INPUT_START) {
1163
+ this.primaryTouch = eventData.changedPointers[0].identifier;
1164
+ setLastTouch.call(this, eventData);
1165
+ } else if (eventType & (INPUT_END | INPUT_CANCEL)) {
1166
+ setLastTouch.call(this, eventData);
1167
+ }
1168
+ }
1169
+
1170
+ function setLastTouch(eventData) {
1171
+ var touch = eventData.changedPointers[0];
1172
+
1173
+ if (touch.identifier === this.primaryTouch) {
1174
+ var lastTouch = {x: touch.clientX, y: touch.clientY};
1175
+ this.lastTouches.push(lastTouch);
1176
+ var lts = this.lastTouches;
1177
+ var removeLastTouch = function() {
1178
+ var i = lts.indexOf(lastTouch);
1179
+ if (i > -1) {
1180
+ lts.splice(i, 1);
1181
+ }
1182
+ };
1183
+ setTimeout(removeLastTouch, DEDUP_TIMEOUT);
1184
+ }
1185
+ }
1186
+
1187
+ function isSyntheticEvent(eventData) {
1188
+ var x = eventData.srcEvent.clientX, y = eventData.srcEvent.clientY;
1189
+ for (var i = 0; i < this.lastTouches.length; i++) {
1190
+ var t = this.lastTouches[i];
1191
+ var dx = Math.abs(x - t.x), dy = Math.abs(y - t.y);
1192
+ if (dx <= DEDUP_DISTANCE && dy <= DEDUP_DISTANCE) {
1193
+ return true;
1194
+ }
1195
+ }
1196
+ return false;
1197
+ }
1198
+
1199
+ var PREFIXED_TOUCH_ACTION = prefixed(TEST_ELEMENT.style, 'touchAction');
1200
+ var NATIVE_TOUCH_ACTION = PREFIXED_TOUCH_ACTION !== undefined$1;
1201
+
1202
+ // magical touchAction value
1203
+ var TOUCH_ACTION_COMPUTE = 'compute';
1204
+ var TOUCH_ACTION_AUTO = 'auto';
1205
+ var TOUCH_ACTION_MANIPULATION = 'manipulation'; // not implemented
1206
+ var TOUCH_ACTION_NONE = 'none';
1207
+ var TOUCH_ACTION_PAN_X = 'pan-x';
1208
+ var TOUCH_ACTION_PAN_Y = 'pan-y';
1209
+ var TOUCH_ACTION_MAP = getTouchActionProps();
1210
+
1211
+ /**
1212
+ * Touch Action
1213
+ * sets the touchAction property or uses the js alternative
1214
+ * @param {Manager} manager
1215
+ * @param {String} value
1216
+ * @constructor
1217
+ */
1218
+ function TouchAction(manager, value) {
1219
+ this.manager = manager;
1220
+ this.set(value);
1221
+ }
1222
+
1223
+ TouchAction.prototype = {
1224
+ /**
1225
+ * set the touchAction value on the element or enable the polyfill
1226
+ * @param {String} value
1227
+ */
1228
+ set: function(value) {
1229
+ // find out the touch-action by the event handlers
1230
+ if (value == TOUCH_ACTION_COMPUTE) {
1231
+ value = this.compute();
1232
+ }
1233
+
1234
+ if (NATIVE_TOUCH_ACTION && this.manager.element.style && TOUCH_ACTION_MAP[value]) {
1235
+ this.manager.element.style[PREFIXED_TOUCH_ACTION] = value;
1236
+ }
1237
+ this.actions = value.toLowerCase().trim();
1238
+ },
1239
+
1240
+ /**
1241
+ * just re-set the touchAction value
1242
+ */
1243
+ update: function() {
1244
+ this.set(this.manager.options.touchAction);
1245
+ },
1246
+
1247
+ /**
1248
+ * compute the value for the touchAction property based on the recognizer's settings
1249
+ * @returns {String} value
1250
+ */
1251
+ compute: function() {
1252
+ var actions = [];
1253
+ each(this.manager.recognizers, function(recognizer) {
1254
+ if (boolOrFn(recognizer.options.enable, [recognizer])) {
1255
+ actions = actions.concat(recognizer.getTouchAction());
1256
+ }
1257
+ });
1258
+ return cleanTouchActions(actions.join(' '));
1259
+ },
1260
+
1261
+ /**
1262
+ * this method is called on each input cycle and provides the preventing of the browser behavior
1263
+ * @param {Object} input
1264
+ */
1265
+ preventDefaults: function(input) {
1266
+ var srcEvent = input.srcEvent;
1267
+ var direction = input.offsetDirection;
1268
+
1269
+ // if the touch action did prevented once this session
1270
+ if (this.manager.session.prevented) {
1271
+ srcEvent.preventDefault();
1272
+ return;
1273
+ }
1274
+
1275
+ var actions = this.actions;
1276
+ var hasNone = inStr(actions, TOUCH_ACTION_NONE) && !TOUCH_ACTION_MAP[TOUCH_ACTION_NONE];
1277
+ var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_Y];
1278
+ var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_X];
1279
+
1280
+ if (hasNone) {
1281
+ //do not prevent defaults if this is a tap gesture
1282
+
1283
+ var isTapPointer = input.pointers.length === 1;
1284
+ var isTapMovement = input.distance < 2;
1285
+ var isTapTouchTime = input.deltaTime < 250;
1286
+
1287
+ if (isTapPointer && isTapMovement && isTapTouchTime) {
1288
+ return;
1289
+ }
1290
+ }
1291
+
1292
+ if (hasPanX && hasPanY) {
1293
+ // `pan-x pan-y` means browser handles all scrolling/panning, do not prevent
1294
+ return;
1295
+ }
1296
+
1297
+ if (hasNone ||
1298
+ (hasPanY && direction & DIRECTION_HORIZONTAL) ||
1299
+ (hasPanX && direction & DIRECTION_VERTICAL)) {
1300
+ return this.preventSrc(srcEvent);
1301
+ }
1302
+ },
1303
+
1304
+ /**
1305
+ * call preventDefault to prevent the browser's default behavior (scrolling in most cases)
1306
+ * @param {Object} srcEvent
1307
+ */
1308
+ preventSrc: function(srcEvent) {
1309
+ this.manager.session.prevented = true;
1310
+ srcEvent.preventDefault();
1311
+ }
1312
+ };
1313
+
1314
+ /**
1315
+ * when the touchActions are collected they are not a valid value, so we need to clean things up. *
1316
+ * @param {String} actions
1317
+ * @returns {*}
1318
+ */
1319
+ function cleanTouchActions(actions) {
1320
+ // none
1321
+ if (inStr(actions, TOUCH_ACTION_NONE)) {
1322
+ return TOUCH_ACTION_NONE;
1323
+ }
1324
+
1325
+ var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X);
1326
+ var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y);
1327
+
1328
+ // if both pan-x and pan-y are set (different recognizers
1329
+ // for different directions, e.g. horizontal pan but vertical swipe?)
1330
+ // we need none (as otherwise with pan-x pan-y combined none of these
1331
+ // recognizers will work, since the browser would handle all panning
1332
+ if (hasPanX && hasPanY) {
1333
+ return TOUCH_ACTION_NONE;
1334
+ }
1335
+
1336
+ // pan-x OR pan-y
1337
+ if (hasPanX || hasPanY) {
1338
+ return hasPanX ? TOUCH_ACTION_PAN_X : TOUCH_ACTION_PAN_Y;
1339
+ }
1340
+
1341
+ // manipulation
1342
+ if (inStr(actions, TOUCH_ACTION_MANIPULATION)) {
1343
+ return TOUCH_ACTION_MANIPULATION;
1344
+ }
1345
+
1346
+ return TOUCH_ACTION_AUTO;
1347
+ }
1348
+
1349
+ function getTouchActionProps() {
1350
+ if (!NATIVE_TOUCH_ACTION) {
1351
+ return false;
1352
+ }
1353
+ var touchMap = {};
1354
+ var cssSupports = window.CSS && window.CSS.supports;
1355
+ ['auto', 'manipulation', 'pan-y', 'pan-x', 'pan-x pan-y', 'none'].forEach(function(val) {
1356
+
1357
+ // If css.supports is not supported but there is native touch-action assume it supports
1358
+ // all values. This is the case for IE 10 and 11.
1359
+ touchMap[val] = cssSupports ? window.CSS.supports('touch-action', val) : true;
1360
+ });
1361
+ return touchMap;
1362
+ }
1363
+
1364
+ /**
1365
+ * Recognizer flow explained; *
1366
+ * All recognizers have the initial state of POSSIBLE when a input session starts.
1367
+ * The definition of a input session is from the first input until the last input, with all it's movement in it. *
1368
+ * Example session for mouse-input: mousedown -> mousemove -> mouseup
1369
+ *
1370
+ * On each recognizing cycle (see Manager.recognize) the .recognize() method is executed
1371
+ * which determines with state it should be.
1372
+ *
1373
+ * If the recognizer has the state FAILED, CANCELLED or RECOGNIZED (equals ENDED), it is reset to
1374
+ * POSSIBLE to give it another change on the next cycle.
1375
+ *
1376
+ * Possible
1377
+ * |
1378
+ * +-----+---------------+
1379
+ * | |
1380
+ * +-----+-----+ |
1381
+ * | | |
1382
+ * Failed Cancelled |
1383
+ * +-------+------+
1384
+ * | |
1385
+ * Recognized Began
1386
+ * |
1387
+ * Changed
1388
+ * |
1389
+ * Ended/Recognized
1390
+ */
1391
+ var STATE_POSSIBLE = 1;
1392
+ var STATE_BEGAN = 2;
1393
+ var STATE_CHANGED = 4;
1394
+ var STATE_ENDED = 8;
1395
+ var STATE_RECOGNIZED = STATE_ENDED;
1396
+ var STATE_CANCELLED = 16;
1397
+ var STATE_FAILED = 32;
1398
+
1399
+ /**
1400
+ * Recognizer
1401
+ * Every recognizer needs to extend from this class.
1402
+ * @constructor
1403
+ * @param {Object} options
1404
+ */
1405
+ function Recognizer(options) {
1406
+ this.options = assign({}, this.defaults, options || {});
1407
+
1408
+ this.id = uniqueId();
1409
+
1410
+ this.manager = null;
1411
+
1412
+ // default is enable true
1413
+ this.options.enable = ifUndefined(this.options.enable, true);
1414
+
1415
+ this.state = STATE_POSSIBLE;
1416
+
1417
+ this.simultaneous = {};
1418
+ this.requireFail = [];
1419
+ }
1420
+
1421
+ Recognizer.prototype = {
1422
+ /**
1423
+ * @virtual
1424
+ * @type {Object}
1425
+ */
1426
+ defaults: {},
1427
+
1428
+ /**
1429
+ * set options
1430
+ * @param {Object} options
1431
+ * @return {Recognizer}
1432
+ */
1433
+ set: function(options) {
1434
+ assign(this.options, options);
1435
+
1436
+ // also update the touchAction, in case something changed about the directions/enabled state
1437
+ this.manager && this.manager.touchAction.update();
1438
+ return this;
1439
+ },
1440
+
1441
+ /**
1442
+ * recognize simultaneous with an other recognizer.
1443
+ * @param {Recognizer} otherRecognizer
1444
+ * @returns {Recognizer} this
1445
+ */
1446
+ recognizeWith: function(otherRecognizer) {
1447
+ if (invokeArrayArg(otherRecognizer, 'recognizeWith', this)) {
1448
+ return this;
1449
+ }
1450
+
1451
+ var simultaneous = this.simultaneous;
1452
+ otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);
1453
+ if (!simultaneous[otherRecognizer.id]) {
1454
+ simultaneous[otherRecognizer.id] = otherRecognizer;
1455
+ otherRecognizer.recognizeWith(this);
1456
+ }
1457
+ return this;
1458
+ },
1459
+
1460
+ /**
1461
+ * drop the simultaneous link. it doesnt remove the link on the other recognizer.
1462
+ * @param {Recognizer} otherRecognizer
1463
+ * @returns {Recognizer} this
1464
+ */
1465
+ dropRecognizeWith: function(otherRecognizer) {
1466
+ if (invokeArrayArg(otherRecognizer, 'dropRecognizeWith', this)) {
1467
+ return this;
1468
+ }
1469
+
1470
+ otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);
1471
+ delete this.simultaneous[otherRecognizer.id];
1472
+ return this;
1473
+ },
1474
+
1475
+ /**
1476
+ * recognizer can only run when an other is failing
1477
+ * @param {Recognizer} otherRecognizer
1478
+ * @returns {Recognizer} this
1479
+ */
1480
+ requireFailure: function(otherRecognizer) {
1481
+ if (invokeArrayArg(otherRecognizer, 'requireFailure', this)) {
1482
+ return this;
1483
+ }
1484
+
1485
+ var requireFail = this.requireFail;
1486
+ otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);
1487
+ if (inArray(requireFail, otherRecognizer) === -1) {
1488
+ requireFail.push(otherRecognizer);
1489
+ otherRecognizer.requireFailure(this);
1490
+ }
1491
+ return this;
1492
+ },
1493
+
1494
+ /**
1495
+ * drop the requireFailure link. it does not remove the link on the other recognizer.
1496
+ * @param {Recognizer} otherRecognizer
1497
+ * @returns {Recognizer} this
1498
+ */
1499
+ dropRequireFailure: function(otherRecognizer) {
1500
+ if (invokeArrayArg(otherRecognizer, 'dropRequireFailure', this)) {
1501
+ return this;
1502
+ }
1503
+
1504
+ otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);
1505
+ var index = inArray(this.requireFail, otherRecognizer);
1506
+ if (index > -1) {
1507
+ this.requireFail.splice(index, 1);
1508
+ }
1509
+ return this;
1510
+ },
1511
+
1512
+ /**
1513
+ * has require failures boolean
1514
+ * @returns {boolean}
1515
+ */
1516
+ hasRequireFailures: function() {
1517
+ return this.requireFail.length > 0;
1518
+ },
1519
+
1520
+ /**
1521
+ * if the recognizer can recognize simultaneous with an other recognizer
1522
+ * @param {Recognizer} otherRecognizer
1523
+ * @returns {Boolean}
1524
+ */
1525
+ canRecognizeWith: function(otherRecognizer) {
1526
+ return !!this.simultaneous[otherRecognizer.id];
1527
+ },
1528
+
1529
+ /**
1530
+ * You should use `tryEmit` instead of `emit` directly to check
1531
+ * that all the needed recognizers has failed before emitting.
1532
+ * @param {Object} input
1533
+ */
1534
+ emit: function(input) {
1535
+ var self = this;
1536
+ var state = this.state;
1537
+
1538
+ function emit(event) {
1539
+ self.manager.emit(event, input);
1540
+ }
1541
+
1542
+ // 'panstart' and 'panmove'
1543
+ if (state < STATE_ENDED) {
1544
+ emit(self.options.event + stateStr(state));
1545
+ }
1546
+
1547
+ emit(self.options.event); // simple 'eventName' events
1548
+
1549
+ if (input.additionalEvent) { // additional event(panleft, panright, pinchin, pinchout...)
1550
+ emit(input.additionalEvent);
1551
+ }
1552
+
1553
+ // panend and pancancel
1554
+ if (state >= STATE_ENDED) {
1555
+ emit(self.options.event + stateStr(state));
1556
+ }
1557
+ },
1558
+
1559
+ /**
1560
+ * Check that all the require failure recognizers has failed,
1561
+ * if true, it emits a gesture event,
1562
+ * otherwise, setup the state to FAILED.
1563
+ * @param {Object} input
1564
+ */
1565
+ tryEmit: function(input) {
1566
+ if (this.canEmit()) {
1567
+ return this.emit(input);
1568
+ }
1569
+ // it's failing anyway
1570
+ this.state = STATE_FAILED;
1571
+ },
1572
+
1573
+ /**
1574
+ * can we emit?
1575
+ * @returns {boolean}
1576
+ */
1577
+ canEmit: function() {
1578
+ var i = 0;
1579
+ while (i < this.requireFail.length) {
1580
+ if (!(this.requireFail[i].state & (STATE_FAILED | STATE_POSSIBLE))) {
1581
+ return false;
1582
+ }
1583
+ i++;
1584
+ }
1585
+ return true;
1586
+ },
1587
+
1588
+ /**
1589
+ * update the recognizer
1590
+ * @param {Object} inputData
1591
+ */
1592
+ recognize: function(inputData) {
1593
+ // make a new copy of the inputData
1594
+ // so we can change the inputData without messing up the other recognizers
1595
+ var inputDataClone = assign({}, inputData);
1596
+
1597
+ // is is enabled and allow recognizing?
1598
+ if (!boolOrFn(this.options.enable, [this, inputDataClone])) {
1599
+ this.reset();
1600
+ this.state = STATE_FAILED;
1601
+ return;
1602
+ }
1603
+
1604
+ // reset when we've reached the end
1605
+ if (this.state & (STATE_RECOGNIZED | STATE_CANCELLED | STATE_FAILED)) {
1606
+ this.state = STATE_POSSIBLE;
1607
+ }
1608
+
1609
+ this.state = this.process(inputDataClone);
1610
+
1611
+ // the recognizer has recognized a gesture
1612
+ // so trigger an event
1613
+ if (this.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED | STATE_CANCELLED)) {
1614
+ this.tryEmit(inputDataClone);
1615
+ }
1616
+ },
1617
+
1618
+ /**
1619
+ * return the state of the recognizer
1620
+ * the actual recognizing happens in this method
1621
+ * @virtual
1622
+ * @param {Object} inputData
1623
+ * @returns {Const} STATE
1624
+ */
1625
+ process: function(inputData) { }, // jshint ignore:line
1626
+
1627
+ /**
1628
+ * return the preferred touch-action
1629
+ * @virtual
1630
+ * @returns {Array}
1631
+ */
1632
+ getTouchAction: function() { },
1633
+
1634
+ /**
1635
+ * called when the gesture isn't allowed to recognize
1636
+ * like when another is being recognized or it is disabled
1637
+ * @virtual
1638
+ */
1639
+ reset: function() { }
1640
+ };
1641
+
1642
+ /**
1643
+ * get a usable string, used as event postfix
1644
+ * @param {Const} state
1645
+ * @returns {String} state
1646
+ */
1647
+ function stateStr(state) {
1648
+ if (state & STATE_CANCELLED) {
1649
+ return 'cancel';
1650
+ } else if (state & STATE_ENDED) {
1651
+ return 'end';
1652
+ } else if (state & STATE_CHANGED) {
1653
+ return 'move';
1654
+ } else if (state & STATE_BEGAN) {
1655
+ return 'start';
1656
+ }
1657
+ return '';
1658
+ }
1659
+
1660
+ /**
1661
+ * direction cons to string
1662
+ * @param {Const} direction
1663
+ * @returns {String}
1664
+ */
1665
+ function directionStr(direction) {
1666
+ if (direction == DIRECTION_DOWN) {
1667
+ return 'down';
1668
+ } else if (direction == DIRECTION_UP) {
1669
+ return 'up';
1670
+ } else if (direction == DIRECTION_LEFT) {
1671
+ return 'left';
1672
+ } else if (direction == DIRECTION_RIGHT) {
1673
+ return 'right';
1674
+ }
1675
+ return '';
1676
+ }
1677
+
1678
+ /**
1679
+ * get a recognizer by name if it is bound to a manager
1680
+ * @param {Recognizer|String} otherRecognizer
1681
+ * @param {Recognizer} recognizer
1682
+ * @returns {Recognizer}
1683
+ */
1684
+ function getRecognizerByNameIfManager(otherRecognizer, recognizer) {
1685
+ var manager = recognizer.manager;
1686
+ if (manager) {
1687
+ return manager.get(otherRecognizer);
1688
+ }
1689
+ return otherRecognizer;
1690
+ }
1691
+
1692
+ /**
1693
+ * This recognizer is just used as a base for the simple attribute recognizers.
1694
+ * @constructor
1695
+ * @extends Recognizer
1696
+ */
1697
+ function AttrRecognizer() {
1698
+ Recognizer.apply(this, arguments);
1699
+ }
1700
+
1701
+ inherit(AttrRecognizer, Recognizer, {
1702
+ /**
1703
+ * @namespace
1704
+ * @memberof AttrRecognizer
1705
+ */
1706
+ defaults: {
1707
+ /**
1708
+ * @type {Number}
1709
+ * @default 1
1710
+ */
1711
+ pointers: 1
1712
+ },
1713
+
1714
+ /**
1715
+ * Used to check if it the recognizer receives valid input, like input.distance > 10.
1716
+ * @memberof AttrRecognizer
1717
+ * @param {Object} input
1718
+ * @returns {Boolean} recognized
1719
+ */
1720
+ attrTest: function(input) {
1721
+ var optionPointers = this.options.pointers;
1722
+ return optionPointers === 0 || input.pointers.length === optionPointers;
1723
+ },
1724
+
1725
+ /**
1726
+ * Process the input and return the state for the recognizer
1727
+ * @memberof AttrRecognizer
1728
+ * @param {Object} input
1729
+ * @returns {*} State
1730
+ */
1731
+ process: function(input) {
1732
+ var state = this.state;
1733
+ var eventType = input.eventType;
1734
+
1735
+ var isRecognized = state & (STATE_BEGAN | STATE_CHANGED);
1736
+ var isValid = this.attrTest(input);
1737
+
1738
+ // on cancel input and we've recognized before, return STATE_CANCELLED
1739
+ if (isRecognized && (eventType & INPUT_CANCEL || !isValid)) {
1740
+ return state | STATE_CANCELLED;
1741
+ } else if (isRecognized || isValid) {
1742
+ if (eventType & INPUT_END) {
1743
+ return state | STATE_ENDED;
1744
+ } else if (!(state & STATE_BEGAN)) {
1745
+ return STATE_BEGAN;
1746
+ }
1747
+ return state | STATE_CHANGED;
1748
+ }
1749
+ return STATE_FAILED;
1750
+ }
1751
+ });
1752
+
1753
+ /**
1754
+ * Pan
1755
+ * Recognized when the pointer is down and moved in the allowed direction.
1756
+ * @constructor
1757
+ * @extends AttrRecognizer
1758
+ */
1759
+ function PanRecognizer() {
1760
+ AttrRecognizer.apply(this, arguments);
1761
+
1762
+ this.pX = null;
1763
+ this.pY = null;
1764
+ }
1765
+
1766
+ inherit(PanRecognizer, AttrRecognizer, {
1767
+ /**
1768
+ * @namespace
1769
+ * @memberof PanRecognizer
1770
+ */
1771
+ defaults: {
1772
+ event: 'pan',
1773
+ threshold: 10,
1774
+ pointers: 1,
1775
+ direction: DIRECTION_ALL
1776
+ },
1777
+
1778
+ getTouchAction: function() {
1779
+ var direction = this.options.direction;
1780
+ var actions = [];
1781
+ if (direction & DIRECTION_HORIZONTAL) {
1782
+ actions.push(TOUCH_ACTION_PAN_Y);
1783
+ }
1784
+ if (direction & DIRECTION_VERTICAL) {
1785
+ actions.push(TOUCH_ACTION_PAN_X);
1786
+ }
1787
+ return actions;
1788
+ },
1789
+
1790
+ directionTest: function(input) {
1791
+ var options = this.options;
1792
+ var hasMoved = true;
1793
+ var distance = input.distance;
1794
+ var direction = input.direction;
1795
+ var x = input.deltaX;
1796
+ var y = input.deltaY;
1797
+
1798
+ // lock to axis?
1799
+ if (!(direction & options.direction)) {
1800
+ if (options.direction & DIRECTION_HORIZONTAL) {
1801
+ direction = (x === 0) ? DIRECTION_NONE : (x < 0) ? DIRECTION_LEFT : DIRECTION_RIGHT;
1802
+ hasMoved = x != this.pX;
1803
+ distance = Math.abs(input.deltaX);
1804
+ } else {
1805
+ direction = (y === 0) ? DIRECTION_NONE : (y < 0) ? DIRECTION_UP : DIRECTION_DOWN;
1806
+ hasMoved = y != this.pY;
1807
+ distance = Math.abs(input.deltaY);
1808
+ }
1809
+ }
1810
+ input.direction = direction;
1811
+ return hasMoved && distance > options.threshold && direction & options.direction;
1812
+ },
1813
+
1814
+ attrTest: function(input) {
1815
+ return AttrRecognizer.prototype.attrTest.call(this, input) &&
1816
+ (this.state & STATE_BEGAN || (!(this.state & STATE_BEGAN) && this.directionTest(input)));
1817
+ },
1818
+
1819
+ emit: function(input) {
1820
+
1821
+ this.pX = input.deltaX;
1822
+ this.pY = input.deltaY;
1823
+
1824
+ var direction = directionStr(input.direction);
1825
+
1826
+ if (direction) {
1827
+ input.additionalEvent = this.options.event + direction;
1828
+ }
1829
+ this._super.emit.call(this, input);
1830
+ }
1831
+ });
1832
+
1833
+ /**
1834
+ * Pinch
1835
+ * Recognized when two or more pointers are moving toward (zoom-in) or away from each other (zoom-out).
1836
+ * @constructor
1837
+ * @extends AttrRecognizer
1838
+ */
1839
+ function PinchRecognizer() {
1840
+ AttrRecognizer.apply(this, arguments);
1841
+ }
1842
+
1843
+ inherit(PinchRecognizer, AttrRecognizer, {
1844
+ /**
1845
+ * @namespace
1846
+ * @memberof PinchRecognizer
1847
+ */
1848
+ defaults: {
1849
+ event: 'pinch',
1850
+ threshold: 0,
1851
+ pointers: 2
1852
+ },
1853
+
1854
+ getTouchAction: function() {
1855
+ return [TOUCH_ACTION_NONE];
1856
+ },
1857
+
1858
+ attrTest: function(input) {
1859
+ return this._super.attrTest.call(this, input) &&
1860
+ (Math.abs(input.scale - 1) > this.options.threshold || this.state & STATE_BEGAN);
1861
+ },
1862
+
1863
+ emit: function(input) {
1864
+ if (input.scale !== 1) {
1865
+ var inOut = input.scale < 1 ? 'in' : 'out';
1866
+ input.additionalEvent = this.options.event + inOut;
1867
+ }
1868
+ this._super.emit.call(this, input);
1869
+ }
1870
+ });
1871
+
1872
+ /**
1873
+ * Press
1874
+ * Recognized when the pointer is down for x ms without any movement.
1875
+ * @constructor
1876
+ * @extends Recognizer
1877
+ */
1878
+ function PressRecognizer() {
1879
+ Recognizer.apply(this, arguments);
1880
+
1881
+ this._timer = null;
1882
+ this._input = null;
1883
+ }
1884
+
1885
+ inherit(PressRecognizer, Recognizer, {
1886
+ /**
1887
+ * @namespace
1888
+ * @memberof PressRecognizer
1889
+ */
1890
+ defaults: {
1891
+ event: 'press',
1892
+ pointers: 1,
1893
+ time: 251, // minimal time of the pointer to be pressed
1894
+ threshold: 9 // a minimal movement is ok, but keep it low
1895
+ },
1896
+
1897
+ getTouchAction: function() {
1898
+ return [TOUCH_ACTION_AUTO];
1899
+ },
1900
+
1901
+ process: function(input) {
1902
+ var options = this.options;
1903
+ var validPointers = input.pointers.length === options.pointers;
1904
+ var validMovement = input.distance < options.threshold;
1905
+ var validTime = input.deltaTime > options.time;
1906
+
1907
+ this._input = input;
1908
+
1909
+ // we only allow little movement
1910
+ // and we've reached an end event, so a tap is possible
1911
+ if (!validMovement || !validPointers || (input.eventType & (INPUT_END | INPUT_CANCEL) && !validTime)) {
1912
+ this.reset();
1913
+ } else if (input.eventType & INPUT_START) {
1914
+ this.reset();
1915
+ this._timer = setTimeoutContext(function() {
1916
+ this.state = STATE_RECOGNIZED;
1917
+ this.tryEmit();
1918
+ }, options.time, this);
1919
+ } else if (input.eventType & INPUT_END) {
1920
+ return STATE_RECOGNIZED;
1921
+ }
1922
+ return STATE_FAILED;
1923
+ },
1924
+
1925
+ reset: function() {
1926
+ clearTimeout(this._timer);
1927
+ },
1928
+
1929
+ emit: function(input) {
1930
+ if (this.state !== STATE_RECOGNIZED) {
1931
+ return;
1932
+ }
1933
+
1934
+ if (input && (input.eventType & INPUT_END)) {
1935
+ this.manager.emit(this.options.event + 'up', input);
1936
+ } else {
1937
+ this._input.timeStamp = now();
1938
+ this.manager.emit(this.options.event, this._input);
1939
+ }
1940
+ }
1941
+ });
1942
+
1943
+ /**
1944
+ * Rotate
1945
+ * Recognized when two or more pointer are moving in a circular motion.
1946
+ * @constructor
1947
+ * @extends AttrRecognizer
1948
+ */
1949
+ function RotateRecognizer() {
1950
+ AttrRecognizer.apply(this, arguments);
1951
+ }
1952
+
1953
+ inherit(RotateRecognizer, AttrRecognizer, {
1954
+ /**
1955
+ * @namespace
1956
+ * @memberof RotateRecognizer
1957
+ */
1958
+ defaults: {
1959
+ event: 'rotate',
1960
+ threshold: 0,
1961
+ pointers: 2
1962
+ },
1963
+
1964
+ getTouchAction: function() {
1965
+ return [TOUCH_ACTION_NONE];
1966
+ },
1967
+
1968
+ attrTest: function(input) {
1969
+ return this._super.attrTest.call(this, input) &&
1970
+ (Math.abs(input.rotation) > this.options.threshold || this.state & STATE_BEGAN);
1971
+ }
1972
+ });
1973
+
1974
+ /**
1975
+ * Swipe
1976
+ * Recognized when the pointer is moving fast (velocity), with enough distance in the allowed direction.
1977
+ * @constructor
1978
+ * @extends AttrRecognizer
1979
+ */
1980
+ function SwipeRecognizer() {
1981
+ AttrRecognizer.apply(this, arguments);
1982
+ }
1983
+
1984
+ inherit(SwipeRecognizer, AttrRecognizer, {
1985
+ /**
1986
+ * @namespace
1987
+ * @memberof SwipeRecognizer
1988
+ */
1989
+ defaults: {
1990
+ event: 'swipe',
1991
+ threshold: 10,
1992
+ velocity: 0.3,
1993
+ direction: DIRECTION_HORIZONTAL | DIRECTION_VERTICAL,
1994
+ pointers: 1
1995
+ },
1996
+
1997
+ getTouchAction: function() {
1998
+ return PanRecognizer.prototype.getTouchAction.call(this);
1999
+ },
2000
+
2001
+ attrTest: function(input) {
2002
+ var direction = this.options.direction;
2003
+ var velocity;
2004
+
2005
+ if (direction & (DIRECTION_HORIZONTAL | DIRECTION_VERTICAL)) {
2006
+ velocity = input.overallVelocity;
2007
+ } else if (direction & DIRECTION_HORIZONTAL) {
2008
+ velocity = input.overallVelocityX;
2009
+ } else if (direction & DIRECTION_VERTICAL) {
2010
+ velocity = input.overallVelocityY;
2011
+ }
2012
+
2013
+ return this._super.attrTest.call(this, input) &&
2014
+ direction & input.offsetDirection &&
2015
+ input.distance > this.options.threshold &&
2016
+ input.maxPointers == this.options.pointers &&
2017
+ abs(velocity) > this.options.velocity && input.eventType & INPUT_END;
2018
+ },
2019
+
2020
+ emit: function(input) {
2021
+ var direction = directionStr(input.offsetDirection);
2022
+ if (direction) {
2023
+ this.manager.emit(this.options.event + direction, input);
2024
+ }
2025
+
2026
+ this.manager.emit(this.options.event, input);
2027
+ }
2028
+ });
2029
+
2030
+ /**
2031
+ * A tap is ecognized when the pointer is doing a small tap/click. Multiple taps are recognized if they occur
2032
+ * between the given interval and position. The delay option can be used to recognize multi-taps without firing
2033
+ * a single tap.
2034
+ *
2035
+ * The eventData from the emitted event contains the property `tapCount`, which contains the amount of
2036
+ * multi-taps being recognized.
2037
+ * @constructor
2038
+ * @extends Recognizer
2039
+ */
2040
+ function TapRecognizer() {
2041
+ Recognizer.apply(this, arguments);
2042
+
2043
+ // previous time and center,
2044
+ // used for tap counting
2045
+ this.pTime = false;
2046
+ this.pCenter = false;
2047
+
2048
+ this._timer = null;
2049
+ this._input = null;
2050
+ this.count = 0;
2051
+ }
2052
+
2053
+ inherit(TapRecognizer, Recognizer, {
2054
+ /**
2055
+ * @namespace
2056
+ * @memberof PinchRecognizer
2057
+ */
2058
+ defaults: {
2059
+ event: 'tap',
2060
+ pointers: 1,
2061
+ taps: 1,
2062
+ interval: 300, // max time between the multi-tap taps
2063
+ time: 250, // max time of the pointer to be down (like finger on the screen)
2064
+ threshold: 9, // a minimal movement is ok, but keep it low
2065
+ posThreshold: 10 // a multi-tap can be a bit off the initial position
2066
+ },
2067
+
2068
+ getTouchAction: function() {
2069
+ return [TOUCH_ACTION_MANIPULATION];
2070
+ },
2071
+
2072
+ process: function(input) {
2073
+ var options = this.options;
2074
+
2075
+ var validPointers = input.pointers.length === options.pointers;
2076
+ var validMovement = input.distance < options.threshold;
2077
+ var validTouchTime = input.deltaTime < options.time;
2078
+
2079
+ this.reset();
2080
+
2081
+ if ((input.eventType & INPUT_START) && (this.count === 0)) {
2082
+ return this.failTimeout();
2083
+ }
2084
+
2085
+ // we only allow little movement
2086
+ // and we've reached an end event, so a tap is possible
2087
+ if (validMovement && validTouchTime && validPointers) {
2088
+ if (input.eventType != INPUT_END) {
2089
+ return this.failTimeout();
2090
+ }
2091
+
2092
+ var validInterval = this.pTime ? (input.timeStamp - this.pTime < options.interval) : true;
2093
+ var validMultiTap = !this.pCenter || getDistance(this.pCenter, input.center) < options.posThreshold;
2094
+
2095
+ this.pTime = input.timeStamp;
2096
+ this.pCenter = input.center;
2097
+
2098
+ if (!validMultiTap || !validInterval) {
2099
+ this.count = 1;
2100
+ } else {
2101
+ this.count += 1;
2102
+ }
2103
+
2104
+ this._input = input;
2105
+
2106
+ // if tap count matches we have recognized it,
2107
+ // else it has began recognizing...
2108
+ var tapCount = this.count % options.taps;
2109
+ if (tapCount === 0) {
2110
+ // no failing requirements, immediately trigger the tap event
2111
+ // or wait as long as the multitap interval to trigger
2112
+ if (!this.hasRequireFailures()) {
2113
+ return STATE_RECOGNIZED;
2114
+ } else {
2115
+ this._timer = setTimeoutContext(function() {
2116
+ this.state = STATE_RECOGNIZED;
2117
+ this.tryEmit();
2118
+ }, options.interval, this);
2119
+ return STATE_BEGAN;
2120
+ }
2121
+ }
2122
+ }
2123
+ return STATE_FAILED;
2124
+ },
2125
+
2126
+ failTimeout: function() {
2127
+ this._timer = setTimeoutContext(function() {
2128
+ this.state = STATE_FAILED;
2129
+ }, this.options.interval, this);
2130
+ return STATE_FAILED;
2131
+ },
2132
+
2133
+ reset: function() {
2134
+ clearTimeout(this._timer);
2135
+ },
2136
+
2137
+ emit: function() {
2138
+ if (this.state == STATE_RECOGNIZED) {
2139
+ this._input.tapCount = this.count;
2140
+ this.manager.emit(this.options.event, this._input);
2141
+ }
2142
+ }
2143
+ });
2144
+
2145
+ /**
2146
+ * Simple way to create a manager with a default set of recognizers.
2147
+ * @param {HTMLElement} element
2148
+ * @param {Object} [options]
2149
+ * @constructor
2150
+ */
2151
+ function Hammer(element, options) {
2152
+ options = options || {};
2153
+ options.recognizers = ifUndefined(options.recognizers, Hammer.defaults.preset);
2154
+ return new Manager(element, options);
2155
+ }
2156
+
2157
+ /**
2158
+ * @const {string}
2159
+ */
2160
+ Hammer.VERSION = '2.0.7';
2161
+
2162
+ /**
2163
+ * default settings
2164
+ * @namespace
2165
+ */
2166
+ Hammer.defaults = {
2167
+ /**
2168
+ * set if DOM events are being triggered.
2169
+ * But this is slower and unused by simple implementations, so disabled by default.
2170
+ * @type {Boolean}
2171
+ * @default false
2172
+ */
2173
+ domEvents: false,
2174
+
2175
+ /**
2176
+ * The value for the touchAction property/fallback.
2177
+ * When set to `compute` it will magically set the correct value based on the added recognizers.
2178
+ * @type {String}
2179
+ * @default compute
2180
+ */
2181
+ touchAction: TOUCH_ACTION_COMPUTE,
2182
+
2183
+ /**
2184
+ * @type {Boolean}
2185
+ * @default true
2186
+ */
2187
+ enable: true,
2188
+
2189
+ /**
2190
+ * EXPERIMENTAL FEATURE -- can be removed/changed
2191
+ * Change the parent input target element.
2192
+ * If Null, then it is being set the to main element.
2193
+ * @type {Null|EventTarget}
2194
+ * @default null
2195
+ */
2196
+ inputTarget: null,
2197
+
2198
+ /**
2199
+ * force an input class
2200
+ * @type {Null|Function}
2201
+ * @default null
2202
+ */
2203
+ inputClass: null,
2204
+
2205
+ /**
2206
+ * Default recognizer setup when calling `Hammer()`
2207
+ * When creating a new Manager these will be skipped.
2208
+ * @type {Array}
2209
+ */
2210
+ preset: [
2211
+ // RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]
2212
+ [RotateRecognizer, {enable: false}],
2213
+ [PinchRecognizer, {enable: false}, ['rotate']],
2214
+ [SwipeRecognizer, {direction: DIRECTION_HORIZONTAL}],
2215
+ [PanRecognizer, {direction: DIRECTION_HORIZONTAL}, ['swipe']],
2216
+ [TapRecognizer],
2217
+ [TapRecognizer, {event: 'doubletap', taps: 2}, ['tap']],
2218
+ [PressRecognizer]
2219
+ ],
2220
+
2221
+ /**
2222
+ * Some CSS properties can be used to improve the working of Hammer.
2223
+ * Add them to this method and they will be set when creating a new Manager.
2224
+ * @namespace
2225
+ */
2226
+ cssProps: {
2227
+ /**
2228
+ * Disables text selection to improve the dragging gesture. Mainly for desktop browsers.
2229
+ * @type {String}
2230
+ * @default 'none'
2231
+ */
2232
+ userSelect: 'none',
2233
+
2234
+ /**
2235
+ * Disable the Windows Phone grippers when pressing an element.
2236
+ * @type {String}
2237
+ * @default 'none'
2238
+ */
2239
+ touchSelect: 'none',
2240
+
2241
+ /**
2242
+ * Disables the default callout shown when you touch and hold a touch target.
2243
+ * On iOS, when you touch and hold a touch target such as a link, Safari displays
2244
+ * a callout containing information about the link. This property allows you to disable that callout.
2245
+ * @type {String}
2246
+ * @default 'none'
2247
+ */
2248
+ touchCallout: 'none',
2249
+
2250
+ /**
2251
+ * Specifies whether zooming is enabled. Used by IE10>
2252
+ * @type {String}
2253
+ * @default 'none'
2254
+ */
2255
+ contentZooming: 'none',
2256
+
2257
+ /**
2258
+ * Specifies that an entire element should be draggable instead of its contents. Mainly for desktop browsers.
2259
+ * @type {String}
2260
+ * @default 'none'
2261
+ */
2262
+ userDrag: 'none',
2263
+
2264
+ /**
2265
+ * Overrides the highlight color shown when the user taps a link or a JavaScript
2266
+ * clickable element in iOS. This property obeys the alpha value, if specified.
2267
+ * @type {String}
2268
+ * @default 'rgba(0,0,0,0)'
2269
+ */
2270
+ tapHighlightColor: 'rgba(0,0,0,0)'
2271
+ }
2272
+ };
2273
+
2274
+ var STOP = 1;
2275
+ var FORCED_STOP = 2;
2276
+
2277
+ /**
2278
+ * Manager
2279
+ * @param {HTMLElement} element
2280
+ * @param {Object} [options]
2281
+ * @constructor
2282
+ */
2283
+ function Manager(element, options) {
2284
+ this.options = assign({}, Hammer.defaults, options || {});
2285
+
2286
+ this.options.inputTarget = this.options.inputTarget || element;
2287
+
2288
+ this.handlers = {};
2289
+ this.session = {};
2290
+ this.recognizers = [];
2291
+ this.oldCssProps = {};
2292
+
2293
+ this.element = element;
2294
+ this.input = createInputInstance(this);
2295
+ this.touchAction = new TouchAction(this, this.options.touchAction);
2296
+
2297
+ toggleCssProps(this, true);
2298
+
2299
+ each(this.options.recognizers, function(item) {
2300
+ var recognizer = this.add(new (item[0])(item[1]));
2301
+ item[2] && recognizer.recognizeWith(item[2]);
2302
+ item[3] && recognizer.requireFailure(item[3]);
2303
+ }, this);
2304
+ }
2305
+
2306
+ Manager.prototype = {
2307
+ /**
2308
+ * set options
2309
+ * @param {Object} options
2310
+ * @returns {Manager}
2311
+ */
2312
+ set: function(options) {
2313
+ assign(this.options, options);
2314
+
2315
+ // Options that need a little more setup
2316
+ if (options.touchAction) {
2317
+ this.touchAction.update();
2318
+ }
2319
+ if (options.inputTarget) {
2320
+ // Clean up existing event listeners and reinitialize
2321
+ this.input.destroy();
2322
+ this.input.target = options.inputTarget;
2323
+ this.input.init();
2324
+ }
2325
+ return this;
2326
+ },
2327
+
2328
+ /**
2329
+ * stop recognizing for this session.
2330
+ * This session will be discarded, when a new [input]start event is fired.
2331
+ * When forced, the recognizer cycle is stopped immediately.
2332
+ * @param {Boolean} [force]
2333
+ */
2334
+ stop: function(force) {
2335
+ this.session.stopped = force ? FORCED_STOP : STOP;
2336
+ },
2337
+
2338
+ /**
2339
+ * run the recognizers!
2340
+ * called by the inputHandler function on every movement of the pointers (touches)
2341
+ * it walks through all the recognizers and tries to detect the gesture that is being made
2342
+ * @param {Object} inputData
2343
+ */
2344
+ recognize: function(inputData) {
2345
+ var session = this.session;
2346
+ if (session.stopped) {
2347
+ return;
2348
+ }
2349
+
2350
+ // run the touch-action polyfill
2351
+ this.touchAction.preventDefaults(inputData);
2352
+
2353
+ var recognizer;
2354
+ var recognizers = this.recognizers;
2355
+
2356
+ // this holds the recognizer that is being recognized.
2357
+ // so the recognizer's state needs to be BEGAN, CHANGED, ENDED or RECOGNIZED
2358
+ // if no recognizer is detecting a thing, it is set to `null`
2359
+ var curRecognizer = session.curRecognizer;
2360
+
2361
+ // reset when the last recognizer is recognized
2362
+ // or when we're in a new session
2363
+ if (!curRecognizer || (curRecognizer && curRecognizer.state & STATE_RECOGNIZED)) {
2364
+ curRecognizer = session.curRecognizer = null;
2365
+ }
2366
+
2367
+ var i = 0;
2368
+ while (i < recognizers.length) {
2369
+ recognizer = recognizers[i];
2370
+
2371
+ // find out if we are allowed try to recognize the input for this one.
2372
+ // 1. allow if the session is NOT forced stopped (see the .stop() method)
2373
+ // 2. allow if we still haven't recognized a gesture in this session, or the this recognizer is the one
2374
+ // that is being recognized.
2375
+ // 3. allow if the recognizer is allowed to run simultaneous with the current recognized recognizer.
2376
+ // this can be setup with the `recognizeWith()` method on the recognizer.
2377
+ if (session.stopped !== FORCED_STOP && ( // 1
2378
+ !curRecognizer || recognizer == curRecognizer || // 2
2379
+ recognizer.canRecognizeWith(curRecognizer))) { // 3
2380
+ recognizer.recognize(inputData);
2381
+ } else {
2382
+ recognizer.reset();
2383
+ }
2384
+
2385
+ // if the recognizer has been recognizing the input as a valid gesture, we want to store this one as the
2386
+ // current active recognizer. but only if we don't already have an active recognizer
2387
+ if (!curRecognizer && recognizer.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED)) {
2388
+ curRecognizer = session.curRecognizer = recognizer;
2389
+ }
2390
+ i++;
2391
+ }
2392
+ },
2393
+
2394
+ /**
2395
+ * get a recognizer by its event name.
2396
+ * @param {Recognizer|String} recognizer
2397
+ * @returns {Recognizer|Null}
2398
+ */
2399
+ get: function(recognizer) {
2400
+ if (recognizer instanceof Recognizer) {
2401
+ return recognizer;
2402
+ }
2403
+
2404
+ var recognizers = this.recognizers;
2405
+ for (var i = 0; i < recognizers.length; i++) {
2406
+ if (recognizers[i].options.event == recognizer) {
2407
+ return recognizers[i];
2408
+ }
2409
+ }
2410
+ return null;
2411
+ },
2412
+
2413
+ /**
2414
+ * add a recognizer to the manager
2415
+ * existing recognizers with the same event name will be removed
2416
+ * @param {Recognizer} recognizer
2417
+ * @returns {Recognizer|Manager}
2418
+ */
2419
+ add: function(recognizer) {
2420
+ if (invokeArrayArg(recognizer, 'add', this)) {
2421
+ return this;
2422
+ }
2423
+
2424
+ // remove existing
2425
+ var existing = this.get(recognizer.options.event);
2426
+ if (existing) {
2427
+ this.remove(existing);
2428
+ }
2429
+
2430
+ this.recognizers.push(recognizer);
2431
+ recognizer.manager = this;
2432
+
2433
+ this.touchAction.update();
2434
+ return recognizer;
2435
+ },
2436
+
2437
+ /**
2438
+ * remove a recognizer by name or instance
2439
+ * @param {Recognizer|String} recognizer
2440
+ * @returns {Manager}
2441
+ */
2442
+ remove: function(recognizer) {
2443
+ if (invokeArrayArg(recognizer, 'remove', this)) {
2444
+ return this;
2445
+ }
2446
+
2447
+ recognizer = this.get(recognizer);
2448
+
2449
+ // let's make sure this recognizer exists
2450
+ if (recognizer) {
2451
+ var recognizers = this.recognizers;
2452
+ var index = inArray(recognizers, recognizer);
2453
+
2454
+ if (index !== -1) {
2455
+ recognizers.splice(index, 1);
2456
+ this.touchAction.update();
2457
+ }
2458
+ }
2459
+
2460
+ return this;
2461
+ },
2462
+
2463
+ /**
2464
+ * bind event
2465
+ * @param {String} events
2466
+ * @param {Function} handler
2467
+ * @returns {EventEmitter} this
2468
+ */
2469
+ on: function(events, handler) {
2470
+ if (events === undefined$1) {
2471
+ return;
2472
+ }
2473
+ if (handler === undefined$1) {
2474
+ return;
2475
+ }
2476
+
2477
+ var handlers = this.handlers;
2478
+ each(splitStr(events), function(event) {
2479
+ handlers[event] = handlers[event] || [];
2480
+ handlers[event].push(handler);
2481
+ });
2482
+ return this;
2483
+ },
2484
+
2485
+ /**
2486
+ * unbind event, leave emit blank to remove all handlers
2487
+ * @param {String} events
2488
+ * @param {Function} [handler]
2489
+ * @returns {EventEmitter} this
2490
+ */
2491
+ off: function(events, handler) {
2492
+ if (events === undefined$1) {
2493
+ return;
2494
+ }
2495
+
2496
+ var handlers = this.handlers;
2497
+ each(splitStr(events), function(event) {
2498
+ if (!handler) {
2499
+ delete handlers[event];
2500
+ } else {
2501
+ handlers[event] && handlers[event].splice(inArray(handlers[event], handler), 1);
2502
+ }
2503
+ });
2504
+ return this;
2505
+ },
2506
+
2507
+ /**
2508
+ * emit event to the listeners
2509
+ * @param {String} event
2510
+ * @param {Object} data
2511
+ */
2512
+ emit: function(event, data) {
2513
+ // we also want to trigger dom events
2514
+ if (this.options.domEvents) {
2515
+ triggerDomEvent(event, data);
2516
+ }
2517
+
2518
+ // no handlers, so skip it all
2519
+ var handlers = this.handlers[event] && this.handlers[event].slice();
2520
+ if (!handlers || !handlers.length) {
2521
+ return;
2522
+ }
2523
+
2524
+ data.type = event;
2525
+ data.preventDefault = function() {
2526
+ data.srcEvent.preventDefault();
2527
+ };
2528
+
2529
+ var i = 0;
2530
+ while (i < handlers.length) {
2531
+ handlers[i](data);
2532
+ i++;
2533
+ }
2534
+ },
2535
+
2536
+ /**
2537
+ * destroy the manager and unbinds all events
2538
+ * it doesn't unbind dom events, that is the user own responsibility
2539
+ */
2540
+ destroy: function() {
2541
+ this.element && toggleCssProps(this, false);
2542
+
2543
+ this.handlers = {};
2544
+ this.session = {};
2545
+ this.input.destroy();
2546
+ this.element = null;
2547
+ }
2548
+ };
2549
+
2550
+ /**
2551
+ * add/remove the css properties as defined in manager.options.cssProps
2552
+ * @param {Manager} manager
2553
+ * @param {Boolean} add
2554
+ */
2555
+ function toggleCssProps(manager, add) {
2556
+ var element = manager.element;
2557
+ if (!element.style) {
2558
+ return;
2559
+ }
2560
+ var prop;
2561
+ each(manager.options.cssProps, function(value, name) {
2562
+ prop = prefixed(element.style, name);
2563
+ if (add) {
2564
+ manager.oldCssProps[prop] = element.style[prop];
2565
+ element.style[prop] = value;
2566
+ } else {
2567
+ element.style[prop] = manager.oldCssProps[prop] || '';
2568
+ }
2569
+ });
2570
+ if (!add) {
2571
+ manager.oldCssProps = {};
2572
+ }
2573
+ }
2574
+
2575
+ /**
2576
+ * trigger dom event
2577
+ * @param {String} event
2578
+ * @param {Object} data
2579
+ */
2580
+ function triggerDomEvent(event, data) {
2581
+ var gestureEvent = document.createEvent('Event');
2582
+ gestureEvent.initEvent(event, true, true);
2583
+ gestureEvent.gesture = data;
2584
+ data.target.dispatchEvent(gestureEvent);
2585
+ }
2586
+
2587
+ assign(Hammer, {
2588
+ INPUT_START: INPUT_START,
2589
+ INPUT_MOVE: INPUT_MOVE,
2590
+ INPUT_END: INPUT_END,
2591
+ INPUT_CANCEL: INPUT_CANCEL,
2592
+
2593
+ STATE_POSSIBLE: STATE_POSSIBLE,
2594
+ STATE_BEGAN: STATE_BEGAN,
2595
+ STATE_CHANGED: STATE_CHANGED,
2596
+ STATE_ENDED: STATE_ENDED,
2597
+ STATE_RECOGNIZED: STATE_RECOGNIZED,
2598
+ STATE_CANCELLED: STATE_CANCELLED,
2599
+ STATE_FAILED: STATE_FAILED,
2600
+
2601
+ DIRECTION_NONE: DIRECTION_NONE,
2602
+ DIRECTION_LEFT: DIRECTION_LEFT,
2603
+ DIRECTION_RIGHT: DIRECTION_RIGHT,
2604
+ DIRECTION_UP: DIRECTION_UP,
2605
+ DIRECTION_DOWN: DIRECTION_DOWN,
2606
+ DIRECTION_HORIZONTAL: DIRECTION_HORIZONTAL,
2607
+ DIRECTION_VERTICAL: DIRECTION_VERTICAL,
2608
+ DIRECTION_ALL: DIRECTION_ALL,
2609
+
2610
+ Manager: Manager,
2611
+ Input: Input,
2612
+ TouchAction: TouchAction,
2613
+
2614
+ TouchInput: TouchInput,
2615
+ MouseInput: MouseInput,
2616
+ PointerEventInput: PointerEventInput,
2617
+ TouchMouseInput: TouchMouseInput,
2618
+ SingleTouchInput: SingleTouchInput,
2619
+
2620
+ Recognizer: Recognizer,
2621
+ AttrRecognizer: AttrRecognizer,
2622
+ Tap: TapRecognizer,
2623
+ Pan: PanRecognizer,
2624
+ Swipe: SwipeRecognizer,
2625
+ Pinch: PinchRecognizer,
2626
+ Rotate: RotateRecognizer,
2627
+ Press: PressRecognizer,
2628
+
2629
+ on: addEventListeners,
2630
+ off: removeEventListeners,
2631
+ each: each,
2632
+ merge: merge,
2633
+ extend: extend,
2634
+ assign: assign,
2635
+ inherit: inherit,
2636
+ bindFn: bindFn,
2637
+ prefixed: prefixed
2638
+ });
2639
+
2640
+ // this prevents errors when Hammer is loaded in the presence of an AMD
2641
+ // style loader but by script tag, not by the loader.
2642
+ var freeGlobal = (typeof window !== 'undefined' ? window : (typeof self !== 'undefined' ? self : {})); // jshint ignore:line
2643
+ freeGlobal.Hammer = Hammer;
2644
+
2645
+ if (module.exports) {
2646
+ module.exports = Hammer;
2647
+ } else {
2648
+ window[exportName] = Hammer;
2649
+ }
2650
+
2651
+ })(window, document, 'Hammer');
2652
+ } (hammer));
2653
+ return hammer.exports;
2654
+ }
2655
+
2656
+ var hammerExports = requireHammer();
2657
+ var Hammer = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(hammerExports);
2658
+
2659
+ const stylesCss = ":host{display:inline-block;width:100vw;min-width:200px;--percentuale:0}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideindown{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideoutleft{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(-100%)}}@keyframes slideoutright{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(100%)}}@keyframes slideoutup{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(-100%)}}@keyframes slideoutdown{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(100%)}}:host>#external-container{display:flex;min-height:calc(var(--space-unit) * 8.5);box-sizing:border-box;justify-content:space-between;padding:calc(var(--space-unit) * 2) 14px calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);border-radius:var(--border-size-large);box-shadow:var(--shadow-3);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px}:host>#external-container>#inner-container{display:flex;width:100%;flex-direction:column;justify-content:space-between}:host>#external-container #inner-container #text{padding:var(--space-unit) 0;color:var(--color-text-inverse);letter-spacing:0.16px;line-height:20px;text-align:start}:host>#external-container #inner-container #text>.title{margin-right:calc(var(--space-unit) / 2);font-weight:var(--font-sb)}:host>#external-container #inner-container ::slotted([slot=\"button\"]){margin-top:var(--space-unit)}:host>#external-container #icon{padding-top:var(--space-unit);margin:0 calc(var(--space-unit) / 4);cursor:pointer;fill:var(--color-inverse-icon)}:host>#external-container #icon:focus-within{margin:0}:host>#external-container #icon z-icon{margin:0 0 0 14px}:host>#external-container #icon z-icon:focus{display:inline-block;padding:calc(var(--space-unit) / 4);border-radius:50%;box-shadow:var(--shadow-focus-primary)}:host>#external-container.dark{background:var(--color-surface05)}:host>#external-container.light{background:var(--color-surface01)}:host>#external-container.light #icon{fill:var(--color-primary01-icon)}:host>#external-container.light #text,:host>#external-container.warning #text{color:var(--color-default-text)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-default-error)}:host>#external-container.success{background:var(--color-default-success)}:host>#external-container.warning{background:var(--color-default-warning)}:host>#external-container.warning #icon{fill:var(--color-default-icon)}@media (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container #inner-container{flex-direction:row}:host>#external-container #inner-container ::slotted([slot=\"button\"]){margin:0 0 0 calc(var(--space-unit) * 2)}}@media (min-width: 1366px){:host{max-width:33vw}}";
2660
+
2661
+ const ZToastNotification = class {
2662
+ constructor(hostRef) {
2663
+ index.registerInstance(this, hostRef);
2664
+ this.toastClose = index.createEvent(this, "toastClose", 7);
2665
+ this.isCloseEventCalled = false;
2666
+ this.heading = undefined;
2667
+ this.message = undefined;
2668
+ this.closebutton = undefined;
2669
+ this.autoclose = undefined;
2670
+ this.pauseonfocusloss = true;
2671
+ this.type = undefined;
2672
+ this.isdraggable = true;
2673
+ this.draggablepercentage = 80;
2674
+ this.transition = undefined;
2675
+ this.percentage = undefined;
2676
+ }
2677
+ watchPropIsdraggable(newValue) {
2678
+ if (newValue) {
2679
+ this.sliderManager.get("pan").set({ enable: true });
2680
+ }
2681
+ else {
2682
+ this.sliderManager.get("pan").set({ enable: false });
2683
+ }
2684
+ }
2685
+ watchPropAutoclose(newValue) {
2686
+ clearTimeout(this.timeoutHandle);
2687
+ this.startClosingTimeout(newValue);
2688
+ }
2689
+ watchPropPauseonfocusloss(newValue) {
2690
+ if (this.autoclose) {
2691
+ if (newValue) {
2692
+ document.addEventListener("visibilitychange", this.visibilityChangeEventHandler);
2693
+ }
2694
+ else {
2695
+ document.removeEventListener("visibilitychange", this.visibilityChangeEventHandler);
2696
+ }
2697
+ }
2698
+ }
2699
+ emitToastClose(cssClass) {
2700
+ this.timeoutHandle = null;
2701
+ this.elapsedTime = null;
2702
+ this.hostElement.classList.add(cssClass);
2703
+ this.toastClose.emit();
2704
+ }
2705
+ componentWillLoad() {
2706
+ this.validateAutoclose();
2707
+ this.percentage = 0;
2708
+ }
2709
+ componentDidLoad() {
2710
+ this.startTime = Date.now();
2711
+ if (this.autoclose && this.pauseonfocusloss) {
2712
+ document.addEventListener("visibilitychange", this.visibilityChangeEventHandler);
2713
+ }
2714
+ this.isdraggable && this.handleSlideOutDragAnimation();
2715
+ }
2716
+ visibilityChangeEventHandler() {
2717
+ if (document.visibilityState === "hidden") {
2718
+ this.timeoutHandle && this.onBlur();
2719
+ }
2720
+ else {
2721
+ this.elapsedTime && this.onFocus();
2722
+ }
2723
+ }
2724
+ validateAutoclose() {
2725
+ if (!this.autoclose && !this.closebutton) {
2726
+ console.error("At least one between autoclose and closebutton must be present");
2727
+ }
2728
+ }
2729
+ mapSlideOutClass() {
2730
+ switch (this.transition) {
2731
+ case index$1.ToastNotificationTransition.SLIDE_IN_DOWN:
2732
+ return index$1.ToastNotificationTransition.SLIDE_OUT_UP;
2733
+ case index$1.ToastNotificationTransition.SLIDE_IN_UP:
2734
+ return index$1.ToastNotificationTransition.SLIDE_OUT_DOWN;
2735
+ case index$1.ToastNotificationTransition.SLIDE_IN_LEFT:
2736
+ return index$1.ToastNotificationTransition.SLIDE_OUT_RIGHT;
2737
+ case index$1.ToastNotificationTransition.SLIDE_IN_RIGHT:
2738
+ return index$1.ToastNotificationTransition.SLIDE_OUT_LEFT;
2739
+ }
2740
+ }
2741
+ calculateDraggedPercentage(e) {
2742
+ const bounding = this.hostElement.getBoundingClientRect();
2743
+ return Math.round((100 * e.deltaX) / bounding.width);
2744
+ }
2745
+ handleSlideOutDragAnimation() {
2746
+ this.sliderManager = new Hammer(this.hostElement);
2747
+ this.sliderManager.get("pan").set({
2748
+ direction: Hammer.DIRECTION_HORIZONTAL,
2749
+ });
2750
+ this.sliderManager.on("pan", (e) => {
2751
+ this.percentage = this.calculateDraggedPercentage(e);
2752
+ this.hostElement.style.transition = "none";
2753
+ this.hostElement.classList.remove(this.transition);
2754
+ const translateObj = {
2755
+ translate: `translateX(${this.percentage}%)`,
2756
+ translateBack: "translateX(0)",
2757
+ };
2758
+ this.hostElement.style.opacity = `${100 - Math.abs(this.percentage)}%`;
2759
+ if (e.eventType === Hammer.DIRECTION_LEFT || e.eventType === Hammer.DIRECTION_RIGHT) {
2760
+ this.hostElement.style.transform = translateObj.translate;
2761
+ if (Math.abs(this.percentage) > this.draggablepercentage && !this.isCloseEventCalled) {
2762
+ this.isCloseEventCalled = true;
2763
+ this.emitToastClose(e.direction === Hammer.DIRECTION_LEFT ? "slide-out-left" : "slide-out-right");
2764
+ }
2765
+ }
2766
+ if (e.isFinal && Math.abs(this.percentage) < this.draggablepercentage) {
2767
+ this.hostElement.style.transform = translateObj.translateBack;
2768
+ this.hostElement.style.transition = "all 1s";
2769
+ this.hostElement.style.opacity = "100%";
2770
+ this.percentage = 0;
2771
+ }
2772
+ });
2773
+ }
2774
+ onFocus() {
2775
+ let time = this.autoclose;
2776
+ if (this.elapsedTime) {
2777
+ time = this.autoclose - this.elapsedTime;
2778
+ }
2779
+ if (time > 0) {
2780
+ this.startClosingTimeout(time);
2781
+ }
2782
+ }
2783
+ onBlur() {
2784
+ this.elapsedTime = Date.now() - this.startTime;
2785
+ clearTimeout(this.timeoutHandle);
2786
+ }
2787
+ startClosingTimeout(time) {
2788
+ this.timeoutHandle = window.setTimeout(() => this.emitToastClose(this.mapSlideOutClass()), time);
2789
+ }
2790
+ renderContent() {
2791
+ return (index.h("div", { id: "external-container", tabIndex: 0, class: { [this.type]: !!this.type } }, index.h("div", { id: "inner-container" }, index.h("div", { id: "text" }, this.heading && index.h("span", { class: "title" }, this.heading), index.h("span", { class: "message" }, this.message)), index.h("div", { id: "button" }, index.h("slot", { name: "button" }))), index.h("div", { id: "icon" }, this.closebutton && (index.h("z-icon", { tabIndex: 0, name: "multiply-circled", width: 15, height: 15, onClick: () => this.emitToastClose(this.mapSlideOutClass()), onKeyPress: (e) => {
2792
+ if (e.code == index$1.KeyboardCode.SPACE || e.code == index$1.KeyboardCode.ENTER) {
2793
+ e.preventDefault();
2794
+ this.emitToastClose(this.mapSlideOutClass());
2795
+ }
2796
+ } })))));
2797
+ }
2798
+ render() {
2799
+ return (index.h(index.Host, { key: 'f9b4a2fe7d3642b1cbbe6f2e433ddbbde49568fd', style: { "--percentuale": `${this.percentage}%` }, class: this.transition ? this.transition : index$1.ToastNotificationTransition.SLIDE_IN_DOWN, onAnimationEnd: (e) => {
2800
+ if (this.autoclose && e.animationName.includes("slidein")) {
2801
+ this.startClosingTimeout(this.autoclose);
2802
+ }
2803
+ if (e.animationName.includes("slideout")) {
2804
+ this.hostElement.parentNode.removeChild(this.hostElement);
2805
+ }
2806
+ } }, this.renderContent()));
2807
+ }
2808
+ get hostElement() { return index.getElement(this); }
2809
+ static get watchers() { return {
2810
+ "isdraggable": ["watchPropIsdraggable"],
2811
+ "autoclose": ["watchPropAutoclose"],
2812
+ "pauseonfocusloss": ["watchPropPauseonfocusloss"]
2813
+ }; }
2814
+ };
2815
+ ZToastNotification.style = stylesCss;
2816
+
2817
+ exports.z_toast_notification = ZToastNotification;
2818
+ //# sourceMappingURL=z-toast-notification.entry.cjs.js.map
2819
+
2820
+ //# sourceMappingURL=z-toast-notification.cjs.entry.js.map