@oiz/stzh-components 2.12.0-beta1 → 2.12.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 (322) hide show
  1. package/dist/cjs/{app-globals-749422d7.js → app-globals-5c0c2c46.js} +2 -2
  2. package/dist/cjs/{app-globals-749422d7.js.map → app-globals-5c0c2c46.js.map} +1 -1
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/stzh-actionset_4.cjs.entry.js +4 -2
  5. package/dist/cjs/stzh-actionset_4.cjs.entry.js.map +1 -1
  6. package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -1
  7. package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
  8. package/dist/cjs/stzh-chip_2.cjs.entry.js +2 -1
  9. package/dist/cjs/stzh-chip_2.cjs.entry.js.map +1 -1
  10. package/dist/cjs/stzh-components.cjs.js +2 -2
  11. package/dist/cjs/stzh-dropdown.cjs.entry.js +25 -1
  12. package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
  13. package/dist/cjs/stzh-link.cjs.entry.js +2 -1
  14. package/dist/cjs/stzh-link.cjs.entry.js.map +1 -1
  15. package/dist/cjs/stzh-menu_2.cjs.entry.js +2 -1
  16. package/dist/cjs/stzh-menu_2.cjs.entry.js.map +1 -1
  17. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +2 -1
  18. package/dist/cjs/stzh-progressbar-item.cjs.entry.js.map +1 -1
  19. package/dist/cjs/stzh-skiplink.cjs.entry.js +2 -1
  20. package/dist/cjs/stzh-skiplink.cjs.entry.js.map +1 -1
  21. package/dist/cjs/stzh-upload.cjs.entry.js +8 -2
  22. package/dist/cjs/stzh-upload.cjs.entry.js.map +1 -1
  23. package/dist/collection/components/stzh-actionset/stzh-actionset.js.map +1 -1
  24. package/dist/collection/components/stzh-button/stzh-button.js +2 -1
  25. package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
  26. package/dist/collection/components/stzh-card/stzh-card.css +3 -3
  27. package/dist/collection/components/stzh-card/stzh-card.js +3 -1
  28. package/dist/collection/components/stzh-card/stzh-card.js.map +1 -1
  29. package/dist/collection/components/stzh-chip/stzh-chip.js +2 -1
  30. package/dist/collection/components/stzh-chip/stzh-chip.js.map +1 -1
  31. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +45 -1
  32. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
  33. package/dist/collection/components/stzh-link/stzh-link.js +2 -1
  34. package/dist/collection/components/stzh-link/stzh-link.js.map +1 -1
  35. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +2 -1
  36. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js.map +1 -1
  37. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +2 -1
  38. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js.map +1 -1
  39. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +2 -4
  40. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js.map +1 -1
  41. package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +2 -1
  42. package/dist/collection/components/stzh-skiplink/stzh-skiplink.js.map +1 -1
  43. package/dist/collection/components/stzh-upload/stzh-upload.css +1 -1
  44. package/dist/collection/components/stzh-upload/stzh-upload.js +3 -3
  45. package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
  46. package/dist/collection/libraries/dropzone/dropzone-amd-module.js +7 -1
  47. package/dist/collection/libraries/dropzone/dropzone.js +7 -1
  48. package/dist/collection/libraries/dropzone/min/dropzone-amd-module.min.js +1 -1
  49. package/dist/collection/libraries/dropzone/min/dropzone.min.js +1 -1
  50. package/dist/collection/libraries/tom-select/cjs/tom-select.complete.js +4 -1
  51. package/dist/collection/libraries/tom-select/cjs/tom-select.js +4 -1
  52. package/dist/collection/libraries/tom-select/cjs/tom-select.popular.js +4 -1
  53. package/dist/collection/libraries/tom-select/esm/tom-select.complete.js +4 -1
  54. package/dist/collection/libraries/tom-select/esm/tom-select.js +4 -1
  55. package/dist/collection/libraries/tom-select/esm/tom-select.popular.js +4 -1
  56. package/dist/collection/libraries/tom-select/js/tom-select.base.js +4 -1
  57. package/dist/collection/libraries/tom-select/js/tom-select.base.min.js +30 -30
  58. package/dist/collection/libraries/tom-select/js/tom-select.complete.js +4 -1
  59. package/dist/collection/libraries/tom-select/js/tom-select.complete.min.js +17 -17
  60. package/dist/collection/libraries/tom-select/js/tom-select.popular.js +4 -1
  61. package/dist/collection/libraries/tom-select/js/tom-select.popular.min.js +2 -2
  62. package/dist/components/index.js +1 -1
  63. package/dist/components/stzh-actionset2.js.map +1 -1
  64. package/dist/components/stzh-button2.js +2 -1
  65. package/dist/components/stzh-button2.js.map +1 -1
  66. package/dist/components/stzh-card2.js +4 -2
  67. package/dist/components/stzh-card2.js.map +1 -1
  68. package/dist/components/stzh-chip2.js +2 -1
  69. package/dist/components/stzh-chip2.js.map +1 -1
  70. package/dist/components/stzh-dropdown2.js +27 -2
  71. package/dist/components/stzh-dropdown2.js.map +1 -1
  72. package/dist/components/stzh-link2.js +2 -1
  73. package/dist/components/stzh-link2.js.map +1 -1
  74. package/dist/components/stzh-menu-item2.js +2 -1
  75. package/dist/components/stzh-menu-item2.js.map +1 -1
  76. package/dist/components/stzh-progressbar-item2.js +2 -1
  77. package/dist/components/stzh-progressbar-item2.js.map +1 -1
  78. package/dist/components/stzh-radiogroup2.js +1 -1
  79. package/dist/components/stzh-skiplink.js +2 -1
  80. package/dist/components/stzh-skiplink.js.map +1 -1
  81. package/dist/components/stzh-upload.js +8 -2
  82. package/dist/components/stzh-upload.js.map +1 -1
  83. package/dist/esm/{app-globals-5f5be02f.js → app-globals-bfc779f0.js} +2 -2
  84. package/dist/esm/{app-globals-5f5be02f.js.map → app-globals-bfc779f0.js.map} +1 -1
  85. package/dist/esm/loader.js +2 -2
  86. package/dist/esm/stzh-actionset_4.entry.js +4 -2
  87. package/dist/esm/stzh-actionset_4.entry.js.map +1 -1
  88. package/dist/esm/stzh-badge_3.entry.js +2 -1
  89. package/dist/esm/stzh-badge_3.entry.js.map +1 -1
  90. package/dist/esm/stzh-chip_2.entry.js +2 -1
  91. package/dist/esm/stzh-chip_2.entry.js.map +1 -1
  92. package/dist/esm/stzh-components.js +2 -2
  93. package/dist/esm/stzh-dropdown.entry.js +25 -1
  94. package/dist/esm/stzh-dropdown.entry.js.map +1 -1
  95. package/dist/esm/stzh-link.entry.js +2 -1
  96. package/dist/esm/stzh-link.entry.js.map +1 -1
  97. package/dist/esm/stzh-menu_2.entry.js +2 -1
  98. package/dist/esm/stzh-menu_2.entry.js.map +1 -1
  99. package/dist/esm/stzh-progressbar-item.entry.js +2 -1
  100. package/dist/esm/stzh-progressbar-item.entry.js.map +1 -1
  101. package/dist/esm/stzh-skiplink.entry.js +2 -1
  102. package/dist/esm/stzh-skiplink.entry.js.map +1 -1
  103. package/dist/esm/stzh-upload.entry.js +8 -2
  104. package/dist/esm/stzh-upload.entry.js.map +1 -1
  105. package/dist/esm-es5/{app-globals-5f5be02f.js → app-globals-bfc779f0.js} +2 -2
  106. package/dist/esm-es5/{app-globals-5f5be02f.js.map → app-globals-bfc779f0.js.map} +1 -1
  107. package/dist/esm-es5/loader.js +1 -1
  108. package/dist/esm-es5/loader.js.map +1 -1
  109. package/dist/esm-es5/stzh-actionset_4.entry.js +1 -1
  110. package/dist/esm-es5/stzh-actionset_4.entry.js.map +1 -1
  111. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  112. package/dist/esm-es5/stzh-badge_3.entry.js.map +1 -1
  113. package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
  114. package/dist/esm-es5/stzh-chip_2.entry.js.map +1 -1
  115. package/dist/esm-es5/stzh-components.js +1 -1
  116. package/dist/esm-es5/stzh-components.js.map +1 -1
  117. package/dist/esm-es5/stzh-dropdown.entry.js +3 -3
  118. package/dist/esm-es5/stzh-dropdown.entry.js.map +1 -1
  119. package/dist/esm-es5/stzh-link.entry.js +1 -1
  120. package/dist/esm-es5/stzh-link.entry.js.map +1 -1
  121. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  122. package/dist/esm-es5/stzh-menu_2.entry.js.map +1 -1
  123. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  124. package/dist/esm-es5/stzh-progressbar-item.entry.js.map +1 -1
  125. package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
  126. package/dist/esm-es5/stzh-skiplink.entry.js.map +1 -1
  127. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  128. package/dist/esm-es5/stzh-upload.entry.js.map +1 -1
  129. package/dist/stzh-components/{p-7873a639.entry.js → p-01e9b3b5.entry.js} +2 -2
  130. package/dist/stzh-components/p-01e9b3b5.entry.js.map +1 -0
  131. package/dist/stzh-components/{p-0db27707.entry.js → p-03fc4d3d.entry.js} +2 -2
  132. package/dist/stzh-components/p-03fc4d3d.entry.js.map +1 -0
  133. package/dist/stzh-components/{p-f91187c8.entry.js → p-11a57dcd.entry.js} +3 -3
  134. package/dist/stzh-components/p-11a57dcd.entry.js.map +1 -0
  135. package/dist/stzh-components/{p-3ab3a5a7.system.entry.js → p-1a420f1c.system.entry.js} +2 -2
  136. package/dist/stzh-components/p-1a420f1c.system.entry.js.map +1 -0
  137. package/dist/stzh-components/{p-42e25ae1.system.entry.js → p-3048d3ea.system.entry.js} +2 -2
  138. package/dist/stzh-components/p-3048d3ea.system.entry.js.map +1 -0
  139. package/dist/stzh-components/p-4206f3e1.system.entry.js +9 -0
  140. package/dist/stzh-components/p-4206f3e1.system.entry.js.map +1 -0
  141. package/dist/stzh-components/{p-af33b013.entry.js → p-4488789b.entry.js} +2 -2
  142. package/dist/stzh-components/p-4488789b.entry.js.map +1 -0
  143. package/dist/stzh-components/{p-9d0fedfe.system.entry.js → p-710d15c1.system.entry.js} +2 -2
  144. package/dist/stzh-components/p-710d15c1.system.entry.js.map +1 -0
  145. package/dist/stzh-components/{p-ebb38041.system.js → p-9035fa3b.system.js} +2 -2
  146. package/dist/stzh-components/{p-ebb38041.system.js.map → p-9035fa3b.system.js.map} +1 -1
  147. package/dist/stzh-components/{p-68feffea.entry.js → p-919e700b.entry.js} +2 -2
  148. package/dist/stzh-components/p-919e700b.entry.js.map +1 -0
  149. package/dist/stzh-components/{p-d5ee8b1a.entry.js → p-a0d3ec11.entry.js} +2 -2
  150. package/dist/stzh-components/p-a0d3ec11.entry.js.map +1 -0
  151. package/dist/stzh-components/{p-188dd49d.system.entry.js → p-aa0660d8.system.entry.js} +2 -2
  152. package/dist/stzh-components/p-aa0660d8.system.entry.js.map +1 -0
  153. package/dist/stzh-components/{p-54a1fdcc.system.entry.js → p-b19c3193.system.entry.js} +2 -2
  154. package/dist/stzh-components/p-b19c3193.system.entry.js.map +1 -0
  155. package/dist/stzh-components/{p-f73af272.entry.js → p-c70b4f1b.entry.js} +2 -2
  156. package/dist/stzh-components/p-c70b4f1b.entry.js.map +1 -0
  157. package/dist/stzh-components/{p-135d2e40.system.entry.js → p-d80b87dd.system.entry.js} +2 -2
  158. package/dist/stzh-components/p-d80b87dd.system.entry.js.map +1 -0
  159. package/dist/stzh-components/{p-b3d76f2a.system.entry.js → p-df045b3b.system.entry.js} +2 -2
  160. package/dist/stzh-components/p-df045b3b.system.entry.js.map +1 -0
  161. package/dist/stzh-components/{p-7c2aa5e8.entry.js → p-dfa8f780.entry.js} +2 -2
  162. package/dist/stzh-components/p-dfa8f780.entry.js.map +1 -0
  163. package/dist/stzh-components/{p-5e014c0e.js → p-ea2fd8f8.js} +2 -2
  164. package/dist/stzh-components/{p-5e014c0e.js.map → p-ea2fd8f8.js.map} +1 -1
  165. package/dist/stzh-components/{p-509f90d0.system.entry.js → p-ee4f0a17.system.entry.js} +2 -2
  166. package/dist/stzh-components/p-ee4f0a17.system.entry.js.map +1 -0
  167. package/dist/stzh-components/{p-bf7316ab.system.js → p-eed26372.system.js} +2 -2
  168. package/dist/stzh-components/{p-bf7316ab.system.js.map → p-eed26372.system.js.map} +1 -1
  169. package/dist/stzh-components/{p-0164f9d1.entry.js → p-f63cc727.entry.js} +2 -2
  170. package/dist/stzh-components/p-f63cc727.entry.js.map +1 -0
  171. package/dist/stzh-components/stzh-components.esm.js +1 -1
  172. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  173. package/dist/stzh-components/stzh-components.js +1 -1
  174. package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +15 -0
  175. package/dist/types/components/stzh-accordion-item/stzh-accordion-item.d.ts +73 -0
  176. package/dist/types/components/stzh-actions/stzh-actions.d.ts +16 -0
  177. package/dist/types/components/stzh-actionset/stzh-actionset.d.ts +45 -0
  178. package/dist/types/components/stzh-amount/stzh-amount.d.ts +73 -0
  179. package/dist/types/components/stzh-appnav/stzh-appnav.d.ts +23 -0
  180. package/dist/types/components/stzh-appointments/stzh-appointments.d.ts +74 -0
  181. package/dist/types/components/stzh-audio/stzh-audio.d.ts +58 -0
  182. package/dist/types/components/stzh-button/stzh-button.d.ts +105 -0
  183. package/dist/types/components/stzh-buttongroup/stzh-buttongroup.d.ts +7 -0
  184. package/dist/types/components/stzh-calendar/stzh-calendar.d.ts +88 -0
  185. package/dist/types/components/stzh-card/stzh-card.d.ts +127 -0
  186. package/dist/types/components/stzh-card-list/stzh-card-list.d.ts +31 -0
  187. package/dist/types/components/stzh-carousel/stzh-carousel.d.ts +175 -0
  188. package/dist/types/components/stzh-chart/stzh-chart.d.ts +15 -0
  189. package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +57 -0
  190. package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +64 -0
  191. package/dist/types/components/stzh-chip/stzh-chip.d.ts +74 -0
  192. package/dist/types/components/stzh-chip-select/stzh-chip-select.d.ts +46 -0
  193. package/dist/types/components/stzh-clamp/stzh-clamp.d.ts +49 -0
  194. package/dist/types/components/stzh-contact/stzh-contact.d.ts +54 -0
  195. package/dist/types/components/stzh-datalist/stzh-datalist.d.ts +51 -0
  196. package/dist/types/components/stzh-datalist-item/stzh-datalist-item.d.ts +62 -0
  197. package/dist/types/components/stzh-datamessagelist/stzh-datamessagelist.d.ts +6 -0
  198. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.d.ts +57 -0
  199. package/dist/types/components/stzh-datatable/stzh-datatable.d.ts +103 -0
  200. package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +101 -0
  201. package/dist/types/components/stzh-details/stzh-details.d.ts +35 -0
  202. package/dist/types/components/stzh-dialog/stzh-dialog.d.ts +64 -0
  203. package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +177 -0
  204. package/dist/types/components/stzh-figure/stzh-figure.d.ts +21 -0
  205. package/dist/types/components/stzh-flyingfocus/stzh-flyingfocus.d.ts +35 -0
  206. package/dist/types/components/stzh-footer/stzh-footer.d.ts +27 -0
  207. package/dist/types/components/stzh-gallery/stzh-gallery.d.ts +54 -0
  208. package/dist/types/components/stzh-ghettobox/stzh-ghettobox.d.ts +50 -0
  209. package/dist/types/components/stzh-header/stzh-header.d.ts +68 -0
  210. package/dist/types/components/stzh-hr/stzh-hr.d.ts +7 -0
  211. package/dist/types/components/stzh-iframe/stzh-iframe.d.ts +60 -0
  212. package/dist/types/components/stzh-imagecomparison/stzh-imagecomparison.d.ts +29 -0
  213. package/dist/types/components/stzh-input/stzh-input.d.ts +104 -0
  214. package/dist/types/components/stzh-invert/stzh-invert.d.ts +7 -0
  215. package/dist/types/components/stzh-langnav/stzh-langnav.d.ts +19 -0
  216. package/dist/types/components/stzh-link/stzh-link.d.ts +88 -0
  217. package/dist/types/components/stzh-list/stzh-list.d.ts +9 -0
  218. package/dist/types/components/stzh-list-item/stzh-list-item.d.ts +7 -0
  219. package/dist/types/components/stzh-loader/stzh-loader.d.ts +13 -0
  220. package/dist/types/components/stzh-loadingbar/stzh-loadingbar.d.ts +12 -0
  221. package/dist/types/components/stzh-logo/stzh-logo.d.ts +9 -0
  222. package/dist/types/components/stzh-menu-item/stzh-menu-item.d.ts +50 -0
  223. package/dist/types/components/stzh-message/stzh-message.d.ts +37 -0
  224. package/dist/types/components/stzh-metanav/stzh-metanav.d.ts +11 -0
  225. package/dist/types/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.d.ts +33 -0
  226. package/dist/types/components/stzh-monthyearpicker/stzh-monthyearpicker.d.ts +98 -0
  227. package/dist/types/components/stzh-olmap/stzh-olmap.d.ts +124 -0
  228. package/dist/types/components/stzh-overlay/stzh-overlay.d.ts +34 -0
  229. package/dist/types/components/stzh-page-skiplinks/stzh-page-skiplinks.d.ts +11 -0
  230. package/dist/types/components/stzh-pagebottom/stzh-pagebottom.d.ts +29 -0
  231. package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +15 -0
  232. package/dist/types/components/stzh-pagetitle-hero/stzh-pagetitle-hero.d.ts +25 -0
  233. package/dist/types/components/stzh-pagination/stzh-pagination.d.ts +52 -0
  234. package/dist/types/components/stzh-panorama/stzh-panorama.d.ts +74 -0
  235. package/dist/types/components/stzh-popover/stzh-popover.d.ts +73 -0
  236. package/dist/types/components/stzh-print/stzh-print.d.ts +12 -0
  237. package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +59 -0
  238. package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +34 -0
  239. package/dist/types/components/stzh-radio/stzh-radio.d.ts +57 -0
  240. package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +66 -0
  241. package/dist/types/components/stzh-ratio/stzh-ratio.d.ts +22 -0
  242. package/dist/types/components/stzh-readspeaker/stzh-readspeaker.d.ts +18 -0
  243. package/dist/types/components/stzh-richtext/stzh-richtext.d.ts +22 -0
  244. package/dist/types/components/stzh-saptcha/stzh-saptcha.d.ts +28 -0
  245. package/dist/types/components/stzh-scrollup/stzh-scrollup.d.ts +12 -0
  246. package/dist/types/components/stzh-share/stzh-share.d.ts +21 -0
  247. package/dist/types/components/stzh-show/stzh-show.d.ts +22 -0
  248. package/dist/types/components/stzh-sitemap/stzh-sitemap.d.ts +14 -0
  249. package/dist/types/components/stzh-skiplink/stzh-skiplink.d.ts +38 -0
  250. package/dist/types/components/stzh-sortable/stzh-sortable.d.ts +59 -0
  251. package/dist/types/components/stzh-status/stzh-status.d.ts +14 -0
  252. package/dist/types/components/stzh-sticky/stzh-sticky.d.ts +58 -0
  253. package/dist/types/components/stzh-table/stzh-table.d.ts +43 -0
  254. package/dist/types/components/stzh-textandimage/stzh-textandimage.d.ts +14 -0
  255. package/dist/types/components/stzh-timeline/stzh-timeline.d.ts +23 -0
  256. package/dist/types/components/stzh-timeline-item/stzh-timeline-item.d.ts +78 -0
  257. package/dist/types/components/stzh-timepicker/stzh-timepicker.d.ts +62 -0
  258. package/dist/types/components/stzh-toast/stzh-toast.d.ts +39 -0
  259. package/dist/types/components/stzh-toastbar/stzh-toastbar.d.ts +41 -0
  260. package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +59 -0
  261. package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +80 -0
  262. package/dist/types/components/stzh-upload/stzh-upload.d.ts +240 -0
  263. package/dist/types/components/stzh-vbz-carousel/stzh-vbz-carousel.d.ts +14 -0
  264. package/dist/types/components/stzh-vbz-linechip/stzh-vbz-linechip.d.ts +37 -0
  265. package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.d.ts +42 -0
  266. package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +35 -0
  267. package/dist/types/components/stzh-youtube/stzh-youtube.d.ts +30 -0
  268. package/dist/types/components.d.ts +16 -4
  269. package/dist/types/index.d.ts +900 -0
  270. package/dist/types/libraries/tom-select/types/constants.d.ts +12 -0
  271. package/dist/types/libraries/tom-select/types/contrib/highlight.d.ts +13 -0
  272. package/dist/types/libraries/tom-select/types/contrib/microevent.d.ts +20 -0
  273. package/dist/types/libraries/tom-select/types/contrib/microplugin.d.ts +71 -0
  274. package/dist/types/libraries/tom-select/types/defaults.d.ts +52 -0
  275. package/dist/types/libraries/tom-select/types/getSettings.d.ts +3 -0
  276. package/dist/types/libraries/tom-select/types/plugins/caret_position/plugin.d.ts +16 -0
  277. package/dist/types/libraries/tom-select/types/plugins/change_listener/plugin.d.ts +16 -0
  278. package/dist/types/libraries/tom-select/types/plugins/checkbox_options/plugin.d.ts +16 -0
  279. package/dist/types/libraries/tom-select/types/plugins/clear_button/plugin.d.ts +17 -0
  280. package/dist/types/libraries/tom-select/types/plugins/clear_button/types.d.ts +5 -0
  281. package/dist/types/libraries/tom-select/types/plugins/drag_drop/plugin.d.ts +16 -0
  282. package/dist/types/libraries/tom-select/types/plugins/dropdown_header/plugin.d.ts +17 -0
  283. package/dist/types/libraries/tom-select/types/plugins/dropdown_header/types.d.ts +8 -0
  284. package/dist/types/libraries/tom-select/types/plugins/dropdown_input/plugin.d.ts +16 -0
  285. package/dist/types/libraries/tom-select/types/plugins/input_autogrow/plugin.d.ts +15 -0
  286. package/dist/types/libraries/tom-select/types/plugins/no_active_items/plugin.d.ts +15 -0
  287. package/dist/types/libraries/tom-select/types/plugins/no_backspace_delete/plugin.d.ts +15 -0
  288. package/dist/types/libraries/tom-select/types/plugins/optgroup_columns/plugin.d.ts +16 -0
  289. package/dist/types/libraries/tom-select/types/plugins/remove_button/plugin.d.ts +17 -0
  290. package/dist/types/libraries/tom-select/types/plugins/remove_button/types.d.ts +6 -0
  291. package/dist/types/libraries/tom-select/types/plugins/restore_on_backspace/plugin.d.ts +21 -0
  292. package/dist/types/libraries/tom-select/types/plugins/virtual_scroll/plugin.d.ts +16 -0
  293. package/dist/types/libraries/tom-select/types/tom-select.complete.d.ts +2 -0
  294. package/dist/types/libraries/tom-select/types/tom-select.d.ts +596 -0
  295. package/dist/types/libraries/tom-select/types/tom-select.popular.d.ts +2 -0
  296. package/dist/types/libraries/tom-select/types/types/core.d.ts +48 -0
  297. package/dist/types/libraries/tom-select/types/types/index.d.ts +2 -0
  298. package/dist/types/libraries/tom-select/types/types/settings.d.ts +79 -0
  299. package/dist/types/libraries/tom-select/types/utils.d.ts +76 -0
  300. package/dist/types/libraries/tom-select/types/vanilla.d.ts +76 -0
  301. package/dist/types/types/svg.d.ts +4 -0
  302. package/package.json +1 -1
  303. package/dist/stzh-components/p-0164f9d1.entry.js.map +0 -1
  304. package/dist/stzh-components/p-0db27707.entry.js.map +0 -1
  305. package/dist/stzh-components/p-135d2e40.system.entry.js.map +0 -1
  306. package/dist/stzh-components/p-188dd49d.system.entry.js.map +0 -1
  307. package/dist/stzh-components/p-3ab3a5a7.system.entry.js.map +0 -1
  308. package/dist/stzh-components/p-42e25ae1.system.entry.js.map +0 -1
  309. package/dist/stzh-components/p-509f90d0.system.entry.js.map +0 -1
  310. package/dist/stzh-components/p-54a1fdcc.system.entry.js.map +0 -1
  311. package/dist/stzh-components/p-68feffea.entry.js.map +0 -1
  312. package/dist/stzh-components/p-7873a639.entry.js.map +0 -1
  313. package/dist/stzh-components/p-7c2aa5e8.entry.js.map +0 -1
  314. package/dist/stzh-components/p-97704eb0.system.entry.js +0 -9
  315. package/dist/stzh-components/p-97704eb0.system.entry.js.map +0 -1
  316. package/dist/stzh-components/p-9d0fedfe.system.entry.js.map +0 -1
  317. package/dist/stzh-components/p-af33b013.entry.js.map +0 -1
  318. package/dist/stzh-components/p-b3d76f2a.system.entry.js.map +0 -1
  319. package/dist/stzh-components/p-d5ee8b1a.entry.js.map +0 -1
  320. package/dist/stzh-components/p-f73af272.entry.js.map +0 -1
  321. package/dist/stzh-components/p-f91187c8.entry.js.map +0 -1
  322. package/dist/vscode-data.json +0 -7523
@@ -1 +1 @@
1
- {"file":"stzh-chip2.js","mappings":";;;;;;AAAA,MAAM,WAAW,GAAG,iiTAAiiT;;MC4BxiT,QAAQ;;;;;;;;IAqFX,mBAAc,GAAY,KAAK,CAAC;IAyChC,gBAAW,GAAG;MACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;QACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;OACjB;MAED,IAAI,CAAC,cAAc,GAAG,KAAK,CA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CAAC,eAAe,IAAI,IAAI,EAC9C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,EAAE,CACd;;QAEP,EAAC,IAAI,IACH,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,IAAI,GAAG,EAAuB,CAAC,EAClD,KAAK,EAAE;YACL,mBAAmB,EAAE,IAAI;YACzB,WAAW,EAAE,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,IAAI;YAC/C,SAAS,EAAE,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI;WAC/C,EACD,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,YAAY,gBACf,IAAI,CAAC,SAAS,IAAI,IAAI,sBAChB,IAAI,CAAC,eAAe,IAAI,IAAI,EAC9C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,EAAE,CACd,CAEL,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-chip/stzh-chip.scss?tag=stzh-chip&encapsulation=scoped","src/components/stzh-chip/stzh-chip.tsx"],"sourcesContent":[":host {\n --color: #{$colorPrimary};\n --height: 32px;\n --padding: 0 #{space('medium')};\n --border-color: #{$baseBorderColor};\n --border-radius: 16px;\n --remove-color: #{$baseLeadColor};\n --remove-border-radius: 24px;\n --background-color: #{$colorWhite};\n --icon-size: #{iconSize('small')};\n --icon-color: #{$colorPrimary};\n --icon-gap: #{space('xsmall')};\n --counter-color: #{$colorPrimary60op};\n --counter-gap: #{space('xsmall')};\n\n --hover-color: #{$colorPrimaryHover};\n --hover-border-color: var(--border-color);\n --hover-background-color: #{$colorPrimary8};\n --hover-remove-color: var(--hover-color);\n --hover-remove-background-color: var(--hover-background-color);\n --hover-icon-color: #{$colorPrimaryHover};\n --hover-counter-color: #{$colorPrimaryHover};\n\n display: inline-flex;\n\n @include highContrast() {\n --hover-color: Highlight;\n --hover-border-color: Highlight;\n --hover-background-color: Canvas;\n --hover-remove-color: Highlight;\n --hover-remove-background-color: Canvas;\n --hover-icon-color: Highlight;\n --hover-counter-color: Highlight;\n }\n\n &[size=\"large\"] {\n --height: 40px;\n --border-radius: 20px;\n --padding: 0 #{space('xlarge')};\n }\n\n &[size=\"small\"] {\n --height: 24px;\n --icon-size: #{iconSize('xsmall')};\n --counter-gap: #{space('xxsmall')};\n }\n\n &[variant=\"input\"] {\n --border-color: transparent;\n --background-color: #{$colorGrey5};\n\n --hover-border-color: transparent;\n }\n\n &[variant=\"tag\"] {\n --color: #{$baseColor};\n --icon-color: #{$baseColor};\n --counter-color: #{$baseColor};\n --border-color: transparent;\n --background-color: #{$colorBlack8};\n\n --hover-color: #{$baseColor};\n --hover-border-color: transparent;\n --hover-background-color: #{$colorBlack8};\n --hover-icon-color: #{$baseColor};\n --hover-counter-color: #{$baseColor};\n }\n\n &[variant=\"input\"][size=\"small\"] {\n --padding: 0 #{space('small')};\n --icon-gap: #{space('xxsmall')};\n }\n\n &[variant=\"tag\"][size=\"small\"] {\n --padding: 0 #{space('xsmall')};\n --icon-gap: #{space('xxsmall')};\n }\n\n &[type=\"secondary\"] {\n --color: #{$baseLeadColor};\n --counter-color: #{$colorGrey40};\n }\n\n &[type=\"important\"] {\n --color: #{$colorError};\n --icon-color: #{$colorError};\n --counter-color: #{$colorError};\n\n --hover-color: #{$colorError};\n --hover-icon-color: #{$colorError};\n --hover-counter-color: #{$colorError};\n\n @include highContrast() {\n --hover-color: Highlight;\n --hover-icon-color: Highlight;\n --hover-counter-color: Highlight;\n }\n }\n\n &[active]:not([active=\"false\"]) {\n --color: #{$colorWhite};\n --border-color: transparent;\n --remove-color: #{$colorWhite};\n --background-color: #{$colorPrimary};\n --icon-color: #{$colorWhite};\n --counter-color: #{$colorWhite56};\n\n --hover-color: #{$colorWhite};\n --hover-border-color: transparent;\n --hover-background-color: #{$colorPrimaryHover};\n --hover-remove-color: #{$colorWhite};\n --hover-remove-background-color: #{$colorPrimaryHover};\n --hover-icon-color: #{$colorWhite};\n --hover-counter-color: #{$colorWhite56};\n\n @include highContrast() {\n --color: SelectedItem;\n --border-color: SelectedItem;\n --remove-color: SelectedItem;\n --background-color: Canvas;\n --icon-color: SelectedItem;\n --counter-color: SelectedItem;\n\n --hover-color: Highlight;\n --hover-border-color: Highlight;\n --hover-background-color: Canvas;\n --hover-remove-color: Highlight;\n --hover-remove-background-color: Canvas;\n --hover-icon-color: Highlight;\n --hover-counter-color: Highlight;\n }\n }\n\n &[non-interactive]:not([non-interactive=\"false\"]) {\n --hover-color: var(--color);\n --hover-border-color: var(--border-color);\n --hover-background-color: var(--background-color);\n --hover-icon-color: var(--icon-color);\n --hover-counter-color: var(--counter-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$colorGrey25};\n --border-color: #{$baseBorderColor};\n --remove-color: #{$colorGrey13};\n --background-color: #{$colorWhite};\n --icon-color: #{$colorGrey25};\n --counter-color: #{$colorGrey25};\n\n --hover-color: #{$colorGrey25};\n --hover-border-color: #{$baseBorderColor};\n --hover-background-color: #{$colorWhite};\n --hover-remove-color: #{$colorGrey13};\n --hover-remove-background-color: transparent;\n --hover-icon-color: #{$colorGrey25};\n --hover-counter-color: #{$colorGrey25};\n }\n}\n\n:host ::slotted(stzh-icon),\n.stzh-chip__icon {\n --size: var(--icon-size);\n}\n\n.stzh-chip {\n position: relative;\n\n &__vhidden {\n @include visuallyhidden;\n }\n\n &__button {\n @include fontSize('micro');\n font-family: inherit;\n height: var(--height);\n display: flex;\n flex-direction: row;\n align-items: center;\n border-radius: var(--border-radius);\n padding: var(--padding);\n color: var(--color);\n appearance: none;\n border-width: 1px;\n border-style: solid;\n border-color: var(--border-color);\n background-color: var(--background-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n text-decoration-line: none;\n\n &.is-button,\n &.is-link {\n cursor: pointer;\n }\n }\n\n &__label {\n text-align: left;\n }\n\n &__icon-wrapper {\n display: flex;\n color: var(--icon-color);\n transition: color $baseTransitionAnimationSpeed;\n flex-shrink: 0;\n\n &:not(:empty) {\n margin-right: var(--icon-gap);\n }\n }\n\n &__counter {\n display: flex;\n font-variant-numeric: tabular-nums;\n margin-left: var(--counter-gap);\n color: var(--counter-color);\n transition: color $baseTransitionAnimationSpeed;\n }\n\n &__remove {\n position: absolute;\n top: 0;\n right: 0;\n appearance: none;\n font-family: inherit;\n border: none;\n background: none;\n padding: 0;\n width: var(--height);\n height: var(--height);\n border-radius: var(--remove-border-radius);\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: space('xxsmall');\n color: var(--remove-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n cursor: pointer;\n\n &:hover {\n color: var(--hover-remove-color);\n background-color: var(--hover-remove-background-color);\n }\n }\n\n &__remove-icon {\n --size: #{iconSize('xxsmall')};\n }\n\n &__button:hover,\n &__remove:hover + &__button {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n border-color: var(--hover-border-color);\n }\n\n &__button:hover &__counter,\n &__remove:hover + &__button &__counter {\n color: var(--hover-counter-color);\n }\n\n &__button:hover &__icon-wrapper,\n &__remove:hover + &__button &__icon-wrapper {\n color: var(--hover-icon-color);\n }\n\n /* Size */\n\n &--size-small &__button {\n @include fontSize('nano');\n }\n\n /* Removeable */\n\n &--is-removable &__button {\n padding-right: calc(var(--height) + #{space('xxsmall')});\n }\n\n /* Disabled */\n\n &--is-disabled &__button,\n &--is-disabled &__remove {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element,\n Method,\n Fragment\n} from \"@stencil/core\";\n\nimport {\n StzhChipClickEvent,\n StzhChipRemoveEvent,\n StzhChipFocusEvent,\n StzhChipBlurEvent\n} from \"../../index\";\n\n/**\n * @slot - Slot for label\n * @slot icon - Slot for icon\n */\n@Component({\n tag: \"stzh-chip\",\n styleUrl: \"stzh-chip.scss\",\n scoped: true\n})\nexport class StzhChip {\n /** Label */\n @Prop() label: string = \"\";\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string = \"\";\n\n /** `href` if the chip should be used as link */\n @Prop() href: string = \"\";\n\n /** Target if the button is used as link (if `href` used) */\n @Prop() target: string = \"\";\n\n /** Whether chip is not interactive */\n @Prop({ reflect: true }) nonInteractive: boolean = false;\n\n /** Whether remove button should be shown */\n @Prop({ reflect: true }) removable: boolean = false;\n\n /** Variant */\n @Prop({ reflect: true }) variant: \"tag\" | \"filter\" | \"input\" = \"tag\";\n\n /** Size */\n @Prop({ reflect: true }) size: \"default\" | \"small\" | \"large\" = \"default\";\n\n /** Type */\n @Prop({ reflect: true }) type: \"default\" | \"secondary\" | \"important\" = \"default\";\n\n /** Counter */\n @Prop() counter: string = \"\";\n\n /** Label of remove button for screenreaders */\n @Prop() removeLabel: string = \"\";\n\n /** Active */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Tabindex of link/button */\n @Prop({ attribute: \"a11y-tabindex\" }) a11yTabindex: string;\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /** Id for element which describes the link/button */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the remove button element.\n * Default value will be taken from `removeLabel` prop.\n */\n @Prop() removeAnalyticsId: string;\n\n @Element() element: HTMLStzhChipElement;\n\n /** Focus menu item */\n @Method()\n async setFocus() {\n this.chip.focus();\n }\n\n /** Chip click event */\n @Event() stzhClick: EventEmitter<StzhChipClickEvent>;\n\n /** Chip remove event */\n @Event() stzhRemove: EventEmitter<StzhChipRemoveEvent>;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhChipFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhChipBlurEvent>;\n\n private chip: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLElement;\n private focusedByInput: boolean = false;\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.chip.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n private renderInner(): DocumentFragment {\n return (\n <Fragment>\n <div class=\"stzh-chip__icon-wrapper\">\n {this.icon ?\n <stzh-icon class=\"stzh-chip__icon\" name={this.icon}></stzh-icon>\n :\n <slot name=\"icon\"></slot>\n }\n </div>\n\n <stzh-clamp\n lines={1}\n class=\"stzh-chip__label\"\n ref={(el) => (this.text = el as HTMLElement)}\n >\n {this.label ? this.label : <slot></slot>}\n {this.counter &&\n <span class=\"stzh-chip__vhidden\">\n &nbsp;({this.counter})\n </span>\n }\n </stzh-clamp>\n\n {this.counter &&\n <div class=\"stzh-chip__counter\" aria-hidden=\"true\">\n {this.counter}\n </div>\n }\n </Fragment>\n );\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.setFocus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-chip\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-chip\",\n originalEvent: event\n });\n }\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-chip\",\n originalEvent: event\n });\n }\n\n private onRemoveClick = (event: MouseEvent) => {\n this.stzhRemove.emit({\n component: \"stzh-chip\",\n originalEvent: event\n });\n }\n\n render() {\n const classes = {\n \"stzh-chip\": true,\n \"stzh-chip--is-active\": this.active,\n \"stzh-chip--is-disabled\": this.disabled,\n \"stzh-chip--is-removable\": this.removable,\n \"stzh-chip--has-counter\": !!this.counter,\n [`stzh-chip--type-${this.type}`]: !!this.type,\n [`stzh-chip--size-${this.size}`]: !!this.size,\n [`stzh-chip--${this.variant}`]: !!this.variant\n };\n\n const Chip = this.nonInteractive ? \"div\" :\n this.href ? \"a\" : \"button\";\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {this.removable &&\n <button\n class=\"stzh-chip__remove\"\n onClick={this.onRemoveClick}\n disabled={this.disabled}\n aria-label={this.removeLabel}\n type=\"button\"\n s-object-id={this.removeAnalyticsId || this.removeLabel}\n >\n <stzh-icon class=\"stzh-chip__remove-icon\" name=\"close\"></stzh-icon>\n </button>\n }\n\n {this.href ?\n <Chip\n ref={(el) => (this.chip = el as HTMLAnchorElement)}\n class={{\n \"stzh-chip__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href\n }}\n href={this.disabled ? null : this.href}\n target={this.target}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Chip>\n :\n <Chip\n ref={(el) => (this.chip = el as HTMLButtonElement)}\n class={{\n \"stzh-chip__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href\n }}\n disabled={this.disabled}\n type=\"button\"\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Chip>\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"stzh-chip2.js","mappings":";;;;;;AAAA,MAAM,WAAW,GAAG,iiTAAiiT;;MC4BxiT,QAAQ;;;;;;;;IAqFX,mBAAc,GAAY,KAAK,CAAC;IAyChC,gBAAW,GAAG;MACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;QACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;OACjB;MAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;KAC7B,CAAA;IAEO,YAAO,GAAG,CAAC,KAAiB;MAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;MAE3B,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,OAAO,EAAE;QACzC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK;QACd,UAAU,EAAE,KAAK;OAClB,CAAC,CAAC;MAEH,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;MACvC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;QAClB,SAAS,EAAE,WAAW;QACtB,aAAa,EAAE,KAAK;OACrB,CAAC,CAAC;KACJ,CAAA;IAEO,WAAM,GAAG,CAAC,KAAiB;MACjC,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,MAAM,EAAE;QACvC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK;QACd,UAAU,EAAE,KAAK;OAClB,CAAC,CAAC;MAEH,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;MACtC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QACjB,SAAS,EAAE,WAAW;QACtB,aAAa,EAAE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IAAI,CAAC,MAAM,IAElB,IAAI,CAAC,WAAW,EAAE,CACd,CAEL,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/stzh-chip/stzh-chip.scss?tag=stzh-chip&encapsulation=scoped","src/components/stzh-chip/stzh-chip.tsx"],"sourcesContent":[":host {\n --color: #{$colorPrimary};\n --height: 32px;\n --padding: 0 #{space('medium')};\n --border-color: #{$baseBorderColor};\n --border-radius: 16px;\n --remove-color: #{$baseLeadColor};\n --remove-border-radius: 24px;\n --background-color: #{$colorWhite};\n --icon-size: #{iconSize('small')};\n --icon-color: #{$colorPrimary};\n --icon-gap: #{space('xsmall')};\n --counter-color: #{$colorPrimary60op};\n --counter-gap: #{space('xsmall')};\n\n --hover-color: #{$colorPrimaryHover};\n --hover-border-color: var(--border-color);\n --hover-background-color: #{$colorPrimary8};\n --hover-remove-color: var(--hover-color);\n --hover-remove-background-color: var(--hover-background-color);\n --hover-icon-color: #{$colorPrimaryHover};\n --hover-counter-color: #{$colorPrimaryHover};\n\n display: inline-flex;\n\n @include highContrast() {\n --hover-color: Highlight;\n --hover-border-color: Highlight;\n --hover-background-color: Canvas;\n --hover-remove-color: Highlight;\n --hover-remove-background-color: Canvas;\n --hover-icon-color: Highlight;\n --hover-counter-color: Highlight;\n }\n\n &[size=\"large\"] {\n --height: 40px;\n --border-radius: 20px;\n --padding: 0 #{space('xlarge')};\n }\n\n &[size=\"small\"] {\n --height: 24px;\n --icon-size: #{iconSize('xsmall')};\n --counter-gap: #{space('xxsmall')};\n }\n\n &[variant=\"input\"] {\n --border-color: transparent;\n --background-color: #{$colorGrey5};\n\n --hover-border-color: transparent;\n }\n\n &[variant=\"tag\"] {\n --color: #{$baseColor};\n --icon-color: #{$baseColor};\n --counter-color: #{$baseColor};\n --border-color: transparent;\n --background-color: #{$colorBlack8};\n\n --hover-color: #{$baseColor};\n --hover-border-color: transparent;\n --hover-background-color: #{$colorBlack8};\n --hover-icon-color: #{$baseColor};\n --hover-counter-color: #{$baseColor};\n }\n\n &[variant=\"input\"][size=\"small\"] {\n --padding: 0 #{space('small')};\n --icon-gap: #{space('xxsmall')};\n }\n\n &[variant=\"tag\"][size=\"small\"] {\n --padding: 0 #{space('xsmall')};\n --icon-gap: #{space('xxsmall')};\n }\n\n &[type=\"secondary\"] {\n --color: #{$baseLeadColor};\n --counter-color: #{$colorGrey40};\n }\n\n &[type=\"important\"] {\n --color: #{$colorError};\n --icon-color: #{$colorError};\n --counter-color: #{$colorError};\n\n --hover-color: #{$colorError};\n --hover-icon-color: #{$colorError};\n --hover-counter-color: #{$colorError};\n\n @include highContrast() {\n --hover-color: Highlight;\n --hover-icon-color: Highlight;\n --hover-counter-color: Highlight;\n }\n }\n\n &[active]:not([active=\"false\"]) {\n --color: #{$colorWhite};\n --border-color: transparent;\n --remove-color: #{$colorWhite};\n --background-color: #{$colorPrimary};\n --icon-color: #{$colorWhite};\n --counter-color: #{$colorWhite56};\n\n --hover-color: #{$colorWhite};\n --hover-border-color: transparent;\n --hover-background-color: #{$colorPrimaryHover};\n --hover-remove-color: #{$colorWhite};\n --hover-remove-background-color: #{$colorPrimaryHover};\n --hover-icon-color: #{$colorWhite};\n --hover-counter-color: #{$colorWhite56};\n\n @include highContrast() {\n --color: SelectedItem;\n --border-color: SelectedItem;\n --remove-color: SelectedItem;\n --background-color: Canvas;\n --icon-color: SelectedItem;\n --counter-color: SelectedItem;\n\n --hover-color: Highlight;\n --hover-border-color: Highlight;\n --hover-background-color: Canvas;\n --hover-remove-color: Highlight;\n --hover-remove-background-color: Canvas;\n --hover-icon-color: Highlight;\n --hover-counter-color: Highlight;\n }\n }\n\n &[non-interactive]:not([non-interactive=\"false\"]) {\n --hover-color: var(--color);\n --hover-border-color: var(--border-color);\n --hover-background-color: var(--background-color);\n --hover-icon-color: var(--icon-color);\n --hover-counter-color: var(--counter-color);\n }\n\n &[disabled]:not([disabled=\"false\"]) {\n --color: #{$colorGrey25};\n --border-color: #{$baseBorderColor};\n --remove-color: #{$colorGrey13};\n --background-color: #{$colorWhite};\n --icon-color: #{$colorGrey25};\n --counter-color: #{$colorGrey25};\n\n --hover-color: #{$colorGrey25};\n --hover-border-color: #{$baseBorderColor};\n --hover-background-color: #{$colorWhite};\n --hover-remove-color: #{$colorGrey13};\n --hover-remove-background-color: transparent;\n --hover-icon-color: #{$colorGrey25};\n --hover-counter-color: #{$colorGrey25};\n }\n}\n\n:host ::slotted(stzh-icon),\n.stzh-chip__icon {\n --size: var(--icon-size);\n}\n\n.stzh-chip {\n position: relative;\n\n &__vhidden {\n @include visuallyhidden;\n }\n\n &__button {\n @include fontSize('micro');\n font-family: inherit;\n height: var(--height);\n display: flex;\n flex-direction: row;\n align-items: center;\n border-radius: var(--border-radius);\n padding: var(--padding);\n color: var(--color);\n appearance: none;\n border-width: 1px;\n border-style: solid;\n border-color: var(--border-color);\n background-color: var(--background-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n text-decoration-line: none;\n\n &.is-button,\n &.is-link {\n cursor: pointer;\n }\n }\n\n &__label {\n text-align: left;\n }\n\n &__icon-wrapper {\n display: flex;\n color: var(--icon-color);\n transition: color $baseTransitionAnimationSpeed;\n flex-shrink: 0;\n\n &:not(:empty) {\n margin-right: var(--icon-gap);\n }\n }\n\n &__counter {\n display: flex;\n font-variant-numeric: tabular-nums;\n margin-left: var(--counter-gap);\n color: var(--counter-color);\n transition: color $baseTransitionAnimationSpeed;\n }\n\n &__remove {\n position: absolute;\n top: 0;\n right: 0;\n appearance: none;\n font-family: inherit;\n border: none;\n background: none;\n padding: 0;\n width: var(--height);\n height: var(--height);\n border-radius: var(--remove-border-radius);\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: space('xxsmall');\n color: var(--remove-color);\n transition-duration: $baseTransitionAnimationSpeed;\n transition-property: color, background-color, border-color;\n cursor: pointer;\n\n &:hover {\n color: var(--hover-remove-color);\n background-color: var(--hover-remove-background-color);\n }\n }\n\n &__remove-icon {\n --size: #{iconSize('xxsmall')};\n }\n\n &__button:hover,\n &__remove:hover + &__button {\n color: var(--hover-color);\n background-color: var(--hover-background-color);\n border-color: var(--hover-border-color);\n }\n\n &__button:hover &__counter,\n &__remove:hover + &__button &__counter {\n color: var(--hover-counter-color);\n }\n\n &__button:hover &__icon-wrapper,\n &__remove:hover + &__button &__icon-wrapper {\n color: var(--hover-icon-color);\n }\n\n /* Size */\n\n &--size-small &__button {\n @include fontSize('nano');\n }\n\n /* Removeable */\n\n &--is-removable &__button {\n padding-right: calc(var(--height) + #{space('xxsmall')});\n }\n\n /* Disabled */\n\n &--is-disabled &__button,\n &--is-disabled &__remove {\n cursor: not-allowed;\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element,\n Method,\n Fragment\n} from \"@stencil/core\";\n\nimport {\n StzhChipClickEvent,\n StzhChipRemoveEvent,\n StzhChipFocusEvent,\n StzhChipBlurEvent\n} from \"../../index\";\n\n/**\n * @slot - Slot for label\n * @slot icon - Slot for icon\n */\n@Component({\n tag: \"stzh-chip\",\n styleUrl: \"stzh-chip.scss\",\n scoped: true\n})\nexport class StzhChip {\n /** Label */\n @Prop() label: string = \"\";\n\n /** Icon (use instead of icon slot) */\n @Prop() icon: string = \"\";\n\n /** `href` if the chip should be used as link */\n @Prop() href: string = \"\";\n\n /** Target if the button is used as link (if `href` used) */\n @Prop() target: string = \"\";\n\n /** Whether chip is not interactive */\n @Prop({ reflect: true }) nonInteractive: boolean = false;\n\n /** Whether remove button should be shown */\n @Prop({ reflect: true }) removable: boolean = false;\n\n /** Variant */\n @Prop({ reflect: true }) variant: \"tag\" | \"filter\" | \"input\" = \"tag\";\n\n /** Size */\n @Prop({ reflect: true }) size: \"default\" | \"small\" | \"large\" = \"default\";\n\n /** Type */\n @Prop({ reflect: true }) type: \"default\" | \"secondary\" | \"important\" = \"default\";\n\n /** Counter */\n @Prop() counter: string = \"\";\n\n /** Label of remove button for screenreaders */\n @Prop() removeLabel: string = \"\";\n\n /** Active */\n @Prop({ reflect: true }) active: boolean = false;\n\n /** Disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Tabindex of link/button */\n @Prop({ attribute: \"a11y-tabindex\" }) a11yTabindex: string;\n\n /** Accessible label for screen readers to replace visible text */\n @Prop({ attribute: \"a11y-label\" }) a11yLabel: string;\n\n /** Id for element which describes the link/button */\n @Prop({ attribute: \"a11y-describedby\" }) a11yDescribedby: string = \"\";\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the link/button element.\n * Default value will be taken from `label` prop or default slot.\n */\n @Prop() analyticsId: string;\n\n /**\n * For Adobe Analytics.\n * Will be rendered as value of `s-object-id` attribute to the remove button element.\n * Default value will be taken from `removeLabel` prop.\n */\n @Prop() removeAnalyticsId: string;\n\n @Element() element: HTMLStzhChipElement;\n\n /** Focus menu item */\n @Method()\n async setFocus() {\n this.chip.focus();\n }\n\n /** Chip click event */\n @Event() stzhClick: EventEmitter<StzhChipClickEvent>;\n\n /** Chip remove event */\n @Event() stzhRemove: EventEmitter<StzhChipRemoveEvent>;\n\n /** Focus event */\n @Event() stzhFocus: EventEmitter<StzhChipFocusEvent>;\n\n /** Input blur event */\n @Event() stzhBlur: EventEmitter<StzhChipBlurEvent>;\n\n private chip: HTMLButtonElement | HTMLAnchorElement;\n private text: HTMLElement;\n private focusedByInput: boolean = false;\n\n componentDidRender() {\n requestAnimationFrame(() => {\n this.chip?.setAttribute(\"s-object-id\", this.analyticsId || this.text.innerText);\n });\n }\n\n private renderInner(): DocumentFragment {\n return (\n <Fragment>\n <div class=\"stzh-chip__icon-wrapper\">\n {this.icon ?\n <stzh-icon class=\"stzh-chip__icon\" name={this.icon}></stzh-icon>\n :\n <slot name=\"icon\"></slot>\n }\n </div>\n\n <stzh-clamp\n lines={1}\n class=\"stzh-chip__label\"\n ref={(el) => (this.text = el as HTMLElement)}\n >\n {this.label ? this.label : <slot></slot>}\n {this.counter &&\n <span class=\"stzh-chip__vhidden\">\n &nbsp;({this.counter})\n </span>\n }\n </stzh-clamp>\n\n {this.counter &&\n <div class=\"stzh-chip__counter\" aria-hidden=\"true\">\n {this.counter}\n </div>\n }\n </Fragment>\n );\n }\n\n private onRootFocus = () => {\n if (!this.focusedByInput) {\n this.setFocus();\n }\n\n this.focusedByInput = false;\n }\n\n private onFocus = (event: FocusEvent) => {\n this.focusedByInput = true;\n\n const focusEvent = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(focusEvent);\n this.stzhFocus.emit({\n component: \"stzh-chip\",\n originalEvent: event\n });\n }\n\n private onBlur = (event: FocusEvent) => {\n const blurEvent = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n\n this.element.dispatchEvent(blurEvent);\n this.stzhBlur.emit({\n component: \"stzh-chip\",\n originalEvent: event\n });\n }\n\n private onClick = (event: MouseEvent) => {\n this.stzhClick.emit({\n component: \"stzh-chip\",\n originalEvent: event\n });\n }\n\n private onRemoveClick = (event: MouseEvent) => {\n this.stzhRemove.emit({\n component: \"stzh-chip\",\n originalEvent: event\n });\n }\n\n render() {\n const classes = {\n \"stzh-chip\": true,\n \"stzh-chip--is-active\": this.active,\n \"stzh-chip--is-disabled\": this.disabled,\n \"stzh-chip--is-removable\": this.removable,\n \"stzh-chip--has-counter\": !!this.counter,\n [`stzh-chip--type-${this.type}`]: !!this.type,\n [`stzh-chip--size-${this.size}`]: !!this.size,\n [`stzh-chip--${this.variant}`]: !!this.variant\n };\n\n const Chip = this.nonInteractive ? \"div\" :\n this.href ? \"a\" : \"button\";\n\n return (\n <Host tabindex={this.disabled ? null : \"-1\"} onFocus={this.onRootFocus}>\n <div class={classes}>\n {this.removable &&\n <button\n class=\"stzh-chip__remove\"\n onClick={this.onRemoveClick}\n disabled={this.disabled}\n aria-label={this.removeLabel}\n type=\"button\"\n s-object-id={this.removeAnalyticsId || this.removeLabel}\n >\n <stzh-icon class=\"stzh-chip__remove-icon\" name=\"close\"></stzh-icon>\n </button>\n }\n\n {this.href ?\n <Chip\n ref={(el) => (this.chip = el as HTMLAnchorElement)}\n class={{\n \"stzh-chip__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href\n }}\n href={this.disabled ? null : this.href}\n target={this.target}\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Chip>\n :\n <Chip\n ref={(el) => (this.chip = el as HTMLButtonElement)}\n class={{\n \"stzh-chip__button\": true,\n \"is-button\": !this.nonInteractive && !this.href,\n \"is-link\": !this.nonInteractive && !!this.href\n }}\n disabled={this.disabled}\n type=\"button\"\n tabindex={this.a11yTabindex}\n aria-label={this.a11yLabel || null}\n aria-describedby={this.a11yDescribedby || null}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n >\n {this.renderInner()}\n </Chip>\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1621,6 +1621,9 @@ var defaults = {
1621
1621
  copyClassesToDropdown: false,
1622
1622
  placeholder: null,
1623
1623
  hidePlaceholder: null,
1624
+ transformLoadQuery: function (inputValue) {
1625
+ return inputValue.trim();
1626
+ },
1624
1627
  shouldLoad: function (query) {
1625
1628
  return query.length > 0;
1626
1629
  },
@@ -2614,7 +2617,7 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2614
2617
  if (self.isLocked) {
2615
2618
  return;
2616
2619
  }
2617
- var value = self.inputValue();
2620
+ var value = this.settings.transformLoadQuery(this.control_input.value);
2618
2621
  if (self.lastValue !== value) {
2619
2622
  self.lastValue = value;
2620
2623
  if (self.settings.shouldLoad.call(self, value)) {
@@ -4932,6 +4935,9 @@ const StzhDropdown = /*@__PURE__*/ proxyCustomElement(class StzhDropdown extends
4932
4935
  this.stzhBlur = createEvent(this, "stzhBlur", 7);
4933
4936
  this.stzhInit = createEvent(this, "stzhInit", 7);
4934
4937
  this.focusedByInput = false;
4938
+ this.reset = () => {
4939
+ this.items = [];
4940
+ };
4935
4941
  this.onRootFocus = () => {
4936
4942
  if (!this.focusedByInput) {
4937
4943
  this.setFocus();
@@ -4946,6 +4952,7 @@ const StzhDropdown = /*@__PURE__*/ proxyCustomElement(class StzhDropdown extends
4946
4952
  this.inline = false;
4947
4953
  this.maxOptions = null;
4948
4954
  this.searchConjunction = "and";
4955
+ this.transformLoadQuery = "trim";
4949
4956
  this.allowEmptyOption = false;
4950
4957
  this.openOnFocus = true;
4951
4958
  this.closeAfterSelect = null;
@@ -5143,6 +5150,17 @@ const StzhDropdown = /*@__PURE__*/ proxyCustomElement(class StzhDropdown extends
5143
5150
  optgroupValueField: this.optgroupValueField,
5144
5151
  lockOptgroupOrder: this.lockOptgroupOrder,
5145
5152
  load: this.load,
5153
+ transformLoadQuery: (inputValue) => {
5154
+ if (typeof this.transformLoadQuery === "function") {
5155
+ return this.transformLoadQuery(inputValue);
5156
+ }
5157
+ else if (this.transformLoadQuery === "trim-to-single-ws") {
5158
+ return inputValue.replace(/\s\s+/g, ' ');
5159
+ }
5160
+ else {
5161
+ return inputValue.trim();
5162
+ }
5163
+ },
5146
5164
  shouldLoad: (query) => {
5147
5165
  return query.length >= this.minCharacters;
5148
5166
  },
@@ -5342,11 +5360,17 @@ const StzhDropdown = /*@__PURE__*/ proxyCustomElement(class StzhDropdown extends
5342
5360
  this.show();
5343
5361
  }
5344
5362
  }
5363
+ connectedCallback() {
5364
+ var _a, _b;
5365
+ (_b = (_a = this.element) === null || _a === void 0 ? void 0 : _a.closest('form')) === null || _b === void 0 ? void 0 : _b.addEventListener('reset', this.reset);
5366
+ }
5345
5367
  disconnectedCallback() {
5368
+ var _a, _b;
5346
5369
  if (this.tomSelect) {
5347
5370
  this.tomSelect.destroy();
5348
5371
  this.tomSelect = null;
5349
5372
  }
5373
+ (_b = (_a = this.element) === null || _a === void 0 ? void 0 : _a.closest('form')) === null || _b === void 0 ? void 0 : _b.removeEventListener('reset', this.reset);
5350
5374
  }
5351
5375
  render() {
5352
5376
  var _a;
@@ -5400,12 +5424,13 @@ const StzhDropdown = /*@__PURE__*/ proxyCustomElement(class StzhDropdown extends
5400
5424
  }, [4, "stzh-dropdown", {
5401
5425
  "options": [1],
5402
5426
  "optgroups": [1],
5403
- "items": [1],
5427
+ "items": [1025],
5404
5428
  "searchField": [1, "search-field"],
5405
5429
  "multiple": [516],
5406
5430
  "inline": [516],
5407
5431
  "maxOptions": [2, "max-options"],
5408
5432
  "searchConjunction": [1, "search-conjunction"],
5433
+ "transformLoadQuery": [1, "transform-load-query"],
5409
5434
  "allowEmptyOption": [4, "allow-empty-option"],
5410
5435
  "openOnFocus": [4, "open-on-focus"],
5411
5436
  "closeAfterSelect": [4, "close-after-select"],