@oiz/stzh-components 2.2.0 → 2.3.0-alpha

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 (789) hide show
  1. package/dist/cjs/{app-globals-b6d82414.js → app-globals-13e786d3.js} +1 -1
  2. package/dist/cjs/{arrow-3c3b0ae5.js → arrow-cd521f34.js} +468 -478
  3. package/dist/cjs/axios-7ec96df7.js +3167 -0
  4. package/dist/cjs/{dom-9deb26c8.js → dom-be1edfde.js} +1 -1
  5. package/dist/cjs/{focus-trap.esm-1cb6bb2e.js → focus-trap.esm-34a1a0d0.js} +188 -278
  6. package/dist/cjs/{index-9fcb4305.js → index-83d427ee.js} +113 -3
  7. package/dist/cjs/loader.cjs.js +5 -4
  8. package/dist/cjs/{shadow-css-bf3843d2.js → shadow-css-54f5c2d9.js} +1 -1
  9. package/dist/cjs/stzh-accordion-item.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-accordion.cjs.entry.js +1 -1
  11. package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
  12. package/dist/cjs/stzh-actionset.cjs.entry.js +15 -5
  13. package/dist/cjs/stzh-anchornav.cjs.entry.js +2 -2
  14. package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
  16. package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -2
  18. package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-card_3.cjs.entry.js +20 -15
  20. package/dist/cjs/stzh-cell.cjs.entry.js +1 -1
  21. package/dist/cjs/stzh-chart.cjs.entry.js +1471 -404
  22. package/dist/cjs/stzh-checkbox.cjs.entry.js +2 -2
  23. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +2 -2
  24. package/dist/cjs/stzh-chip_2.cjs.entry.js +132 -0
  25. package/dist/cjs/stzh-components.cjs.js +27 -5
  26. package/dist/cjs/stzh-contact.cjs.entry.js +91 -0
  27. package/dist/cjs/stzh-container.cjs.entry.js +3 -2
  28. package/dist/cjs/stzh-cspace.cjs.entry.js +2 -2
  29. package/dist/cjs/stzh-datalist_2.cjs.entry.js +33 -13
  30. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
  31. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
  32. package/dist/cjs/stzh-datatable.cjs.entry.js +32 -31
  33. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +2 -2
  34. package/dist/cjs/stzh-details.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-dialog.cjs.entry.js +2 -2
  36. package/dist/cjs/stzh-dropdown.cjs.entry.js +1056 -425
  37. package/dist/cjs/stzh-fieldset.cjs.entry.js +2 -2
  38. package/dist/cjs/stzh-figure.cjs.entry.js +5 -3
  39. package/dist/cjs/stzh-flyingfocus.cjs.entry.js +1 -1
  40. package/dist/cjs/stzh-footer.cjs.entry.js +2 -2
  41. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +3 -3
  42. package/dist/cjs/stzh-header.cjs.entry.js +6 -5
  43. package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
  44. package/dist/cjs/stzh-hr.cjs.entry.js +1 -1
  45. package/dist/cjs/stzh-hspace.cjs.entry.js +4 -3
  46. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +1 -1
  47. package/dist/cjs/{stzh-input-description-4326b0d9.js → stzh-input-description-2edc5cac.js} +1 -1
  48. package/dist/cjs/stzh-input.cjs.entry.js +2 -2
  49. package/dist/cjs/stzh-invert.cjs.entry.js +23 -0
  50. package/dist/cjs/stzh-langnav.cjs.entry.js +1 -1
  51. package/dist/cjs/stzh-link.cjs.entry.js +1 -1
  52. package/dist/cjs/stzh-list-item.cjs.entry.js +1 -1
  53. package/dist/cjs/stzh-list.cjs.entry.js +1 -1
  54. package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
  55. package/dist/cjs/stzh-loadingbar.cjs.entry.js +1 -1
  56. package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
  57. package/dist/cjs/stzh-message.cjs.entry.js +1 -1
  58. package/dist/cjs/stzh-metanav.cjs.entry.js +1 -1
  59. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +3 -3
  60. package/dist/cjs/stzh-olmap.cjs.entry.js +1 -1
  61. package/dist/cjs/stzh-overlay.cjs.entry.js +2 -2
  62. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
  63. package/dist/cjs/stzh-pagebottom.cjs.entry.js +5 -2
  64. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +2 -2
  65. package/dist/cjs/stzh-pagetitle.cjs.entry.js +9 -1
  66. package/dist/cjs/stzh-popover.cjs.entry.js +5 -5
  67. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +2 -2
  68. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +6 -4
  69. package/dist/cjs/stzh-progressbar.cjs.entry.js +2 -2
  70. package/dist/cjs/stzh-ratio.cjs.entry.js +26 -0
  71. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  72. package/dist/cjs/stzh-row.cjs.entry.js +1 -1
  73. package/dist/cjs/stzh-saptcha.cjs.entry.js +1 -1
  74. package/dist/cjs/stzh-section.cjs.entry.js +1 -1
  75. package/dist/cjs/stzh-share.cjs.entry.js +1 -1
  76. package/dist/cjs/stzh-show.cjs.entry.js +41 -0
  77. package/dist/cjs/stzh-sitemap.cjs.entry.js +2 -2
  78. package/dist/cjs/stzh-skiplink.cjs.entry.js +1 -1
  79. package/dist/cjs/stzh-sortable.cjs.entry.js +10 -66
  80. package/dist/cjs/stzh-space.cjs.entry.js +34 -0
  81. package/dist/cjs/stzh-status.cjs.entry.js +1 -1
  82. package/dist/cjs/stzh-sticky.cjs.entry.js +5 -3
  83. package/dist/cjs/stzh-table.cjs.entry.js +3 -2
  84. package/dist/cjs/stzh-text.cjs.entry.js +2 -2
  85. package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
  86. package/dist/cjs/stzh-toggle.cjs.entry.js +2 -2
  87. package/dist/cjs/stzh-tooltip.cjs.entry.js +5 -5
  88. package/dist/cjs/stzh-upload.cjs.entry.js +5 -2
  89. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +782 -690
  90. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +7 -7
  91. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +3 -3
  92. package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +1 -1
  93. package/dist/cjs/stzh-vspace.cjs.entry.js +4 -3
  94. package/dist/collection/assets/i18n/de.json +1 -1
  95. package/dist/collection/assets/i18n/en.json +1 -1
  96. package/dist/collection/collection-manifest.json +7 -3
  97. package/dist/collection/components/stzh-actionset/stzh-actionset.css +11 -0
  98. package/dist/collection/components/stzh-actionset/stzh-actionset.js +18 -8
  99. package/dist/collection/components/stzh-actionset/stzh-actionset.stories.js +5 -5
  100. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +1 -3
  101. package/dist/collection/components/stzh-button/stzh-button.css +12 -4
  102. package/dist/collection/components/stzh-button/stzh-button.stories.js +10 -6
  103. package/dist/collection/components/stzh-card/stzh-card.css +0 -18
  104. package/dist/collection/components/stzh-card/stzh-card.stories.js +1 -1
  105. package/dist/collection/components/stzh-chart/stzh-chart.css +55 -37
  106. package/dist/collection/components/stzh-chip/stzh-chip.css +16 -2
  107. package/dist/collection/components/stzh-chip/stzh-chip.js +32 -3
  108. package/dist/collection/components/stzh-chip/stzh-chip.stories.js +7 -0
  109. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +6 -0
  110. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +21 -11
  111. package/dist/collection/components/stzh-clamp/stzh-clamp.css +5 -0
  112. package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.css → stzh-contact/stzh-contact.css} +22 -22
  113. package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.js → stzh-contact/stzh-contact.js} +25 -25
  114. package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.stories.js → stzh-contact/stzh-contact.stories.js} +10 -9
  115. package/dist/collection/components/stzh-container/stzh-container.css +11 -1
  116. package/dist/collection/components/stzh-container/stzh-container.js +26 -1
  117. package/dist/collection/components/stzh-container/stzh-container.stories.js +6 -1
  118. package/dist/collection/components/stzh-cspace/stzh-cspace.css +136 -43
  119. package/dist/collection/components/stzh-datalist/stzh-datalist.css +12 -0
  120. package/dist/collection/components/stzh-datalist/stzh-datalist.js +19 -0
  121. package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +2 -1
  122. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +28 -13
  123. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +35 -13
  124. package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -0
  125. package/dist/collection/components/stzh-datatable/stzh-datatable.js +20 -1
  126. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +9 -8
  127. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +1 -0
  128. package/dist/collection/components/stzh-figure/stzh-figure.css +8 -5
  129. package/dist/collection/components/stzh-figure/stzh-figure.js +21 -1
  130. package/dist/collection/components/stzh-footer/stzh-footer.css +1 -0
  131. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +12 -1
  132. package/dist/collection/components/stzh-header/stzh-header.css +5 -1
  133. package/dist/collection/components/stzh-header/stzh-header.js +4 -3
  134. package/dist/collection/components/stzh-header/stzh-header.stories.js +46 -38
  135. package/dist/collection/components/stzh-hspace/stzh-hspace.css +166 -138
  136. package/dist/collection/components/stzh-hspace/stzh-hspace.js +30 -6
  137. package/dist/collection/components/stzh-invert/stzh-invert.css +158 -0
  138. package/dist/collection/components/stzh-invert/stzh-invert.js +25 -0
  139. package/dist/collection/components/stzh-invert/stzh-invert.stories.js +55 -0
  140. package/dist/collection/components/stzh-link/stzh-link.stories.js +11 -19
  141. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js +4 -1
  142. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +8 -0
  143. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +6 -6
  144. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +14 -1
  145. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.stories.js +4 -6
  146. package/dist/collection/components/stzh-popover/stzh-popover.css +1 -1
  147. package/dist/collection/components/stzh-popover/stzh-popover.js +1 -1
  148. package/dist/collection/components/stzh-popover/stzh-popover.stories.js +5 -7
  149. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +34 -9
  150. package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +2 -2
  151. package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +2 -1
  152. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +40 -4
  153. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +22 -2
  154. package/dist/collection/components/stzh-ratio/stzh-ratio.css +172 -0
  155. package/dist/collection/components/stzh-ratio/stzh-ratio.js +88 -0
  156. package/dist/collection/components/stzh-ratio/stzh-ratio.stories.js +35 -0
  157. package/dist/collection/components/stzh-richtext/stzh-richtext.css +10 -5
  158. package/dist/collection/components/stzh-show/stzh-show.css +165 -0
  159. package/dist/collection/components/stzh-show/stzh-show.js +158 -0
  160. package/dist/collection/components/stzh-show/stzh-show.stories.js +52 -0
  161. package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +1 -1
  162. package/dist/collection/components/stzh-sortable/stzh-sortable.js +6 -3
  163. package/dist/collection/components/stzh-space/stzh-space.css +842 -0
  164. package/dist/collection/components/stzh-space/stzh-space.js +262 -0
  165. package/dist/collection/components/stzh-space/stzh-space.stories.js +76 -0
  166. package/dist/collection/components/stzh-sticky/stzh-sticky.css +9 -0
  167. package/dist/collection/components/stzh-sticky/stzh-sticky.js +21 -1
  168. package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +3 -1
  169. package/dist/collection/components/stzh-table/stzh-table.css +3 -0
  170. package/dist/collection/components/stzh-table/stzh-table.js +19 -0
  171. package/dist/collection/components/stzh-text/stzh-text.css +2 -2
  172. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +2 -2
  173. package/dist/collection/components/stzh-upload/stzh-upload.js +3 -0
  174. package/dist/collection/components/stzh-vspace/stzh-vspace.css +157 -129
  175. package/dist/collection/components/stzh-vspace/stzh-vspace.js +30 -6
  176. package/dist/collection/pages/egov.stories.js +190 -182
  177. package/dist/collection/pages/meinkonto.stories.js +367 -511
  178. package/dist/collection/pages/microsite.stories.js +235 -0
  179. package/dist/collection/pages/website.stories.js +139 -0
  180. package/dist/collection/patterns/appointments.stories.js +2 -2
  181. package/dist/collection/patterns/contact.stories.js +20 -20
  182. package/dist/collection/patterns/contactform.stories.js +2 -2
  183. package/dist/collection/patterns/jobdetails.stories.js +151 -0
  184. package/dist/collection/patterns/subpages.stories.js +1 -1
  185. package/dist/collection/patterns/twocolumns.stories.js +46 -0
  186. package/dist/components/arrow.js +468 -478
  187. package/dist/components/axios.js +3165 -0
  188. package/dist/components/date-utils.js +159 -0
  189. package/dist/components/focus-trap.esm.js +188 -278
  190. package/dist/components/index.d.ts +14 -1
  191. package/dist/components/index.js +7 -3
  192. package/dist/components/stzh-actionset2.js +16 -6
  193. package/dist/components/stzh-anchornav.js +1 -1
  194. package/dist/components/stzh-appointments.js +2 -1
  195. package/dist/components/stzh-button2.js +1 -1
  196. package/dist/components/stzh-calendar2.js +2 -159
  197. package/dist/components/stzh-card2.js +1 -1
  198. package/dist/components/stzh-chart.js +1470 -403
  199. package/dist/components/stzh-chip-select2.js +27 -15
  200. package/dist/components/stzh-chip2.js +23 -5
  201. package/dist/components/stzh-clamp2.js +1 -1
  202. package/dist/components/{stzh-contactaddress.d.ts → stzh-contact.d.ts} +4 -4
  203. package/dist/components/stzh-contact.js +157 -0
  204. package/dist/components/stzh-container.js +5 -2
  205. package/dist/components/stzh-cspace.js +1 -1
  206. package/dist/components/stzh-datalist-item2.js +30 -11
  207. package/dist/components/stzh-datalist2.js +3 -1
  208. package/dist/components/stzh-datatable.js +32 -30
  209. package/dist/components/stzh-datepicker2.js +2 -1
  210. package/dist/components/stzh-dropdown2.js +1054 -423
  211. package/dist/components/stzh-fieldset.js +1 -1
  212. package/dist/components/stzh-figure.js +6 -3
  213. package/dist/components/stzh-footer.js +1 -1
  214. package/dist/components/stzh-ghettobox2.js +1 -1
  215. package/dist/components/stzh-header.js +5 -4
  216. package/dist/components/stzh-hspace.js +8 -5
  217. package/dist/components/stzh-invert.d.ts +11 -0
  218. package/dist/components/stzh-invert.js +36 -0
  219. package/dist/components/stzh-microsite-teaserlist.js +1 -1
  220. package/dist/components/stzh-pagebottom.js +4 -1
  221. package/dist/components/stzh-pagetitle-hero.js +1 -1
  222. package/dist/components/stzh-pagetitle.js +8 -0
  223. package/dist/components/stzh-popover2.js +2 -2
  224. package/dist/components/stzh-portal-mitwirken.js +1 -1
  225. package/dist/components/stzh-progressbar-item2.js +6 -3
  226. package/dist/components/stzh-progressbar.js +1 -1
  227. package/dist/components/stzh-ratio.d.ts +11 -0
  228. package/dist/components/stzh-ratio.js +43 -0
  229. package/dist/components/stzh-richtext2.js +1 -1
  230. package/dist/components/stzh-show.d.ts +11 -0
  231. package/dist/components/stzh-show.js +62 -0
  232. package/dist/components/stzh-sitemap.js +1 -1
  233. package/dist/components/stzh-sortable2.js +9 -65
  234. package/dist/components/stzh-space.d.ts +11 -0
  235. package/dist/components/stzh-space.js +59 -0
  236. package/dist/components/stzh-sticky.js +5 -2
  237. package/dist/components/stzh-table.js +3 -1
  238. package/dist/components/stzh-text2.js +1 -1
  239. package/dist/components/stzh-tooltip2.js +2 -2
  240. package/dist/components/stzh-upload.js +3 -0
  241. package/dist/components/stzh-vbz-linechip2.js +772 -680
  242. package/dist/components/stzh-vbz-majorticker.js +1 -1
  243. package/dist/components/stzh-vbz-ticker.js +1 -1
  244. package/dist/components/stzh-vspace.js +8 -5
  245. package/dist/esm/{app-globals-ff581b69.js → app-globals-2e508622.js} +1 -1
  246. package/dist/esm/{arrow-86a679c7.js → arrow-480bc86f.js} +468 -478
  247. package/dist/esm/axios-e2b39666.js +3165 -0
  248. package/dist/esm/{dom-6be6f662.js → dom-c525f6e4.js} +1 -1
  249. package/dist/esm/{focus-trap.esm-074705a3.js → focus-trap.esm-82634dec.js} +188 -278
  250. package/dist/esm/{index-011c84fe.js → index-319b7c49.js} +112 -4
  251. package/dist/esm/loader.js +5 -4
  252. package/dist/esm/polyfills/css-shim.js +1 -1
  253. package/dist/esm/{shadow-css-ed4599f8.js → shadow-css-abbdeef8.js} +1 -1
  254. package/dist/esm/stzh-accordion-item.entry.js +1 -1
  255. package/dist/esm/stzh-accordion.entry.js +1 -1
  256. package/dist/esm/stzh-actions.entry.js +1 -1
  257. package/dist/esm/stzh-actionset.entry.js +16 -6
  258. package/dist/esm/stzh-anchornav.entry.js +2 -2
  259. package/dist/esm/stzh-appnav.entry.js +1 -1
  260. package/dist/esm/stzh-appointments.entry.js +1 -1
  261. package/dist/esm/stzh-audio.entry.js +1 -1
  262. package/dist/esm/stzh-badge_3.entry.js +2 -2
  263. package/dist/esm/stzh-calendar.entry.js +1 -1
  264. package/dist/esm/stzh-card_3.entry.js +20 -15
  265. package/dist/esm/stzh-cell.entry.js +1 -1
  266. package/dist/esm/stzh-chart.entry.js +1471 -404
  267. package/dist/esm/stzh-checkbox.entry.js +2 -2
  268. package/dist/esm/stzh-checkboxgroup.entry.js +2 -2
  269. package/dist/esm/stzh-chip_2.entry.js +127 -0
  270. package/dist/esm/stzh-components.js +24 -5
  271. package/dist/esm/stzh-contact.entry.js +87 -0
  272. package/dist/esm/stzh-container.entry.js +3 -2
  273. package/dist/esm/stzh-cspace.entry.js +2 -2
  274. package/dist/esm/stzh-datalist_2.entry.js +33 -13
  275. package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
  276. package/dist/esm/stzh-datamessagelist.entry.js +1 -1
  277. package/dist/esm/stzh-datatable.entry.js +32 -31
  278. package/dist/esm/stzh-datepicker_3.entry.js +2 -2
  279. package/dist/esm/stzh-details.entry.js +1 -1
  280. package/dist/esm/stzh-dialog.entry.js +2 -2
  281. package/dist/esm/stzh-dropdown.entry.js +1056 -425
  282. package/dist/esm/stzh-fieldset.entry.js +2 -2
  283. package/dist/esm/stzh-figure.entry.js +5 -3
  284. package/dist/esm/stzh-flyingfocus.entry.js +1 -1
  285. package/dist/esm/stzh-footer.entry.js +2 -2
  286. package/dist/esm/stzh-ghettobox_2.entry.js +3 -3
  287. package/dist/esm/stzh-header.entry.js +6 -5
  288. package/dist/esm/stzh-heading.entry.js +1 -1
  289. package/dist/esm/stzh-hr.entry.js +1 -1
  290. package/dist/esm/stzh-hspace.entry.js +4 -3
  291. package/dist/esm/stzh-icon-sprite.entry.js +1 -1
  292. package/dist/esm/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
  293. package/dist/esm/stzh-input.entry.js +2 -2
  294. package/dist/esm/stzh-invert.entry.js +19 -0
  295. package/dist/esm/stzh-langnav.entry.js +1 -1
  296. package/dist/esm/stzh-link.entry.js +1 -1
  297. package/dist/esm/stzh-list-item.entry.js +1 -1
  298. package/dist/esm/stzh-list.entry.js +1 -1
  299. package/dist/esm/stzh-loader.entry.js +1 -1
  300. package/dist/esm/stzh-loadingbar.entry.js +1 -1
  301. package/dist/esm/stzh-menu_2.entry.js +1 -1
  302. package/dist/esm/stzh-message.entry.js +1 -1
  303. package/dist/esm/stzh-metanav.entry.js +1 -1
  304. package/dist/esm/stzh-microsite-teaserlist.entry.js +2 -2
  305. package/dist/esm/stzh-olmap.entry.js +1 -1
  306. package/dist/esm/stzh-overlay.entry.js +2 -2
  307. package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
  308. package/dist/esm/stzh-pagebottom.entry.js +5 -2
  309. package/dist/esm/stzh-pagetitle-hero.entry.js +2 -2
  310. package/dist/esm/stzh-pagetitle.entry.js +9 -1
  311. package/dist/esm/stzh-popover.entry.js +5 -5
  312. package/dist/esm/stzh-portal-mitwirken.entry.js +2 -2
  313. package/dist/esm/stzh-progressbar-item.entry.js +6 -4
  314. package/dist/esm/stzh-progressbar.entry.js +2 -2
  315. package/dist/esm/stzh-ratio.entry.js +22 -0
  316. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  317. package/dist/esm/stzh-row.entry.js +1 -1
  318. package/dist/esm/stzh-saptcha.entry.js +1 -1
  319. package/dist/esm/stzh-section.entry.js +1 -1
  320. package/dist/esm/stzh-share.entry.js +1 -1
  321. package/dist/esm/stzh-show.entry.js +37 -0
  322. package/dist/esm/stzh-sitemap.entry.js +2 -2
  323. package/dist/esm/stzh-skiplink.entry.js +1 -1
  324. package/dist/esm/stzh-sortable.entry.js +10 -66
  325. package/dist/esm/stzh-space.entry.js +30 -0
  326. package/dist/esm/stzh-status.entry.js +1 -1
  327. package/dist/esm/stzh-sticky.entry.js +5 -3
  328. package/dist/esm/stzh-table.entry.js +3 -2
  329. package/dist/esm/stzh-text.entry.js +2 -2
  330. package/dist/esm/stzh-textandimage.entry.js +1 -1
  331. package/dist/esm/stzh-toggle.entry.js +2 -2
  332. package/dist/esm/stzh-tooltip.entry.js +5 -5
  333. package/dist/esm/stzh-upload.entry.js +5 -2
  334. package/dist/esm/stzh-vbz-linechip.entry.js +783 -691
  335. package/dist/esm/stzh-vbz-majorticker.entry.js +2 -2
  336. package/dist/esm/stzh-vbz-ticker.entry.js +2 -2
  337. package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
  338. package/dist/esm/stzh-vspace.entry.js +4 -3
  339. package/dist/esm-es5/app-globals-2e508622.js +1 -0
  340. package/dist/esm-es5/arrow-480bc86f.js +1 -0
  341. package/dist/esm-es5/axios-e2b39666.js +1 -0
  342. package/dist/esm-es5/{dom-6be6f662.js → dom-c525f6e4.js} +0 -0
  343. package/dist/esm-es5/focus-trap.esm-82634dec.js +9 -0
  344. package/dist/esm-es5/index-319b7c49.js +2 -0
  345. package/dist/esm-es5/loader.js +1 -1
  346. package/dist/esm-es5/{shadow-css-ed4599f8.js → shadow-css-abbdeef8.js} +0 -0
  347. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  348. package/dist/esm-es5/stzh-accordion.entry.js +1 -1
  349. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  350. package/dist/esm-es5/stzh-actionset.entry.js +1 -1
  351. package/dist/esm-es5/stzh-anchornav.entry.js +1 -1
  352. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  353. package/dist/esm-es5/stzh-appointments.entry.js +1 -1
  354. package/dist/esm-es5/stzh-audio.entry.js +1 -1
  355. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  356. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  357. package/dist/esm-es5/stzh-card_3.entry.js +1 -1
  358. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  359. package/dist/esm-es5/stzh-chart.entry.js +3 -3
  360. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  361. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  362. package/dist/esm-es5/stzh-chip_2.entry.js +1 -0
  363. package/dist/esm-es5/stzh-components.js +1 -1
  364. package/dist/esm-es5/stzh-contact.entry.js +1 -0
  365. package/dist/esm-es5/stzh-container.entry.js +1 -1
  366. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  367. package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
  368. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  369. package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
  370. package/dist/esm-es5/stzh-datatable.entry.js +4 -4
  371. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  372. package/dist/esm-es5/stzh-details.entry.js +1 -1
  373. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  374. package/dist/esm-es5/stzh-dropdown.entry.js +9 -1
  375. package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
  376. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  377. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  378. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  379. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  380. package/dist/esm-es5/stzh-header.entry.js +1 -1
  381. package/dist/esm-es5/stzh-heading.entry.js +1 -1
  382. package/dist/esm-es5/stzh-hr.entry.js +1 -1
  383. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  384. package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
  385. package/dist/esm-es5/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
  386. package/dist/esm-es5/stzh-input.entry.js +1 -1
  387. package/dist/esm-es5/stzh-invert.entry.js +1 -0
  388. package/dist/esm-es5/stzh-langnav.entry.js +1 -1
  389. package/dist/esm-es5/stzh-link.entry.js +1 -1
  390. package/dist/esm-es5/stzh-list-item.entry.js +1 -1
  391. package/dist/esm-es5/stzh-list.entry.js +1 -1
  392. package/dist/esm-es5/stzh-loader.entry.js +1 -1
  393. package/dist/esm-es5/stzh-loadingbar.entry.js +1 -1
  394. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  395. package/dist/esm-es5/stzh-message.entry.js +1 -1
  396. package/dist/esm-es5/stzh-metanav.entry.js +1 -1
  397. package/dist/esm-es5/stzh-microsite-teaserlist.entry.js +1 -1
  398. package/dist/esm-es5/stzh-olmap.entry.js +1 -1
  399. package/dist/esm-es5/stzh-overlay.entry.js +1 -1
  400. package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
  401. package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
  402. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  403. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  404. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  405. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  406. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  407. package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
  408. package/dist/esm-es5/stzh-ratio.entry.js +1 -0
  409. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  410. package/dist/esm-es5/stzh-row.entry.js +1 -1
  411. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  412. package/dist/esm-es5/stzh-section.entry.js +1 -1
  413. package/dist/esm-es5/stzh-share.entry.js +1 -1
  414. package/dist/esm-es5/stzh-show.entry.js +1 -0
  415. package/dist/esm-es5/stzh-sitemap.entry.js +1 -1
  416. package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
  417. package/dist/esm-es5/stzh-sortable.entry.js +2 -2
  418. package/dist/esm-es5/stzh-space.entry.js +1 -0
  419. package/dist/esm-es5/stzh-status.entry.js +1 -1
  420. package/dist/esm-es5/stzh-sticky.entry.js +1 -1
  421. package/dist/esm-es5/stzh-table.entry.js +1 -1
  422. package/dist/esm-es5/stzh-text.entry.js +1 -1
  423. package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
  424. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  425. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  426. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  427. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  428. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  429. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  430. package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
  431. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  432. package/dist/esm-es5/translation-utils-2623783f.js +1 -1
  433. package/dist/stzh-components/assets/i18n/de.json +1 -1
  434. package/dist/stzh-components/assets/i18n/en.json +1 -1
  435. package/dist/stzh-components/p-00c4c8c0.system.entry.js +1 -0
  436. package/dist/stzh-components/p-013d269a.system.entry.js +1 -0
  437. package/dist/stzh-components/p-0447b178.system.entry.js +1 -0
  438. package/dist/stzh-components/{p-2bec3c77.entry.js → p-04d390eb.entry.js} +1 -1
  439. package/dist/stzh-components/p-06f5abab.system.entry.js +1 -0
  440. package/dist/stzh-components/{p-9176246f.entry.js → p-0930004d.entry.js} +1 -1
  441. package/dist/stzh-components/p-09f582cd.entry.js +1 -0
  442. package/dist/stzh-components/p-0a2de4e8.entry.js +1 -0
  443. package/dist/stzh-components/p-0ada0b0a.system.entry.js +1 -0
  444. package/dist/stzh-components/p-0af8a184.system.entry.js +1 -0
  445. package/dist/stzh-components/p-0afba769.entry.js +1 -0
  446. package/dist/stzh-components/p-0ce8b383.system.js +1 -0
  447. package/dist/stzh-components/p-0f882e26.system.entry.js +1 -0
  448. package/dist/stzh-components/{p-fbf2f4ed.system.entry.js → p-101f9b11.system.entry.js} +1 -1
  449. package/dist/stzh-components/{p-cff8376e.entry.js → p-12564ee4.entry.js} +1 -1
  450. package/dist/stzh-components/p-125a8244.entry.js +1 -0
  451. package/dist/stzh-components/{p-bee6eef5.entry.js → p-126a0f14.entry.js} +1 -1
  452. package/dist/stzh-components/p-12e03b78.system.entry.js +1 -0
  453. package/dist/stzh-components/{p-30ae5c00.system.entry.js → p-16b3d4ee.system.entry.js} +1 -1
  454. package/dist/stzh-components/p-1783b15a.js +12 -0
  455. package/dist/stzh-components/p-1c2c9ca8.entry.js +1 -0
  456. package/dist/stzh-components/p-1f925e84.system.entry.js +1 -0
  457. package/dist/stzh-components/p-20bd79d0.entry.js +1 -0
  458. package/dist/stzh-components/p-246cd179.js +1 -0
  459. package/dist/stzh-components/p-26889a91.entry.js +9 -0
  460. package/dist/stzh-components/p-2ad73c0c.system.entry.js +1 -0
  461. package/dist/stzh-components/p-2b67b0b3.system.entry.js +9 -0
  462. package/dist/stzh-components/p-2ba88798.entry.js +1 -0
  463. package/dist/stzh-components/{p-60274e67.system.entry.js → p-2c490268.system.entry.js} +1 -1
  464. package/dist/stzh-components/{p-912706bb.entry.js → p-2e6ef670.entry.js} +1 -1
  465. package/dist/stzh-components/p-2f4448c9.system.entry.js +1 -0
  466. package/dist/stzh-components/{p-376946bc.entry.js → p-2f4c5e18.entry.js} +1 -1
  467. package/dist/stzh-components/p-3238b0bf.entry.js +1 -0
  468. package/dist/stzh-components/p-36e72c1d.system.js +2 -0
  469. package/dist/stzh-components/{p-fd265f3a.entry.js → p-38e7645a.entry.js} +1 -1
  470. package/dist/stzh-components/{p-ed6adb96.entry.js → p-3b00d8b8.entry.js} +1 -1
  471. package/dist/stzh-components/p-3e433996.entry.js +1 -0
  472. package/dist/stzh-components/p-3f676d99.system.entry.js +1 -0
  473. package/dist/stzh-components/{p-0c8427bc.entry.js → p-40798ed2.entry.js} +1 -1
  474. package/dist/stzh-components/p-418e04f7.system.entry.js +1 -0
  475. package/dist/stzh-components/{p-7704b10b.entry.js → p-41fa7e81.entry.js} +1 -1
  476. package/dist/stzh-components/p-4370efe7.entry.js +1 -0
  477. package/dist/stzh-components/p-444b2baf.entry.js +1 -0
  478. package/dist/stzh-components/p-44b03dbb.js +10 -0
  479. package/dist/stzh-components/{p-2577ca1e.system.entry.js → p-44d10402.system.entry.js} +1 -1
  480. package/dist/stzh-components/{p-ed0d51b6.entry.js → p-46d07ed7.entry.js} +1 -1
  481. package/dist/stzh-components/p-470182bb.system.entry.js +1 -0
  482. package/dist/stzh-components/{p-669896ec.entry.js → p-48dee587.entry.js} +1 -1
  483. package/dist/stzh-components/p-48e835cf.system.js +1 -0
  484. package/dist/stzh-components/{p-55b7cda7.system.entry.js → p-4a298117.system.entry.js} +1 -1
  485. package/dist/stzh-components/p-4a60b27f.entry.js +1 -0
  486. package/dist/stzh-components/p-4d8c81b2.system.entry.js +1 -0
  487. package/dist/stzh-components/{p-f027e569.system.entry.js → p-512c38b3.system.entry.js} +1 -1
  488. package/dist/stzh-components/p-51b3a560.system.entry.js +1 -0
  489. package/dist/stzh-components/p-537adcfe.system.entry.js +3 -0
  490. package/dist/stzh-components/{p-13051e1c.js → p-538882c8.js} +0 -0
  491. package/dist/stzh-components/p-55752bd5.system.entry.js +1 -0
  492. package/dist/stzh-components/p-563b1abc.system.entry.js +1 -0
  493. package/dist/stzh-components/p-59793ef8.system.entry.js +1 -0
  494. package/dist/stzh-components/{p-6a0a76b3.entry.js → p-5b162e4f.entry.js} +1 -1
  495. package/dist/stzh-components/{p-0409bf6b.system.entry.js → p-5c717080.system.entry.js} +1 -1
  496. package/dist/stzh-components/p-5cb1cd93.system.entry.js +1 -0
  497. package/dist/stzh-components/p-5f9b58fb.system.entry.js +1 -0
  498. package/dist/stzh-components/{p-e7cf6c45.system.entry.js → p-617ece76.system.entry.js} +1 -1
  499. package/dist/stzh-components/{p-104df3a8.system.entry.js → p-6414454e.system.entry.js} +1 -1
  500. package/dist/stzh-components/p-6496df0a.system.entry.js +9 -0
  501. package/dist/stzh-components/p-64cdef2f.entry.js +1 -0
  502. package/dist/stzh-components/p-64e27ac1.entry.js +1 -0
  503. package/dist/stzh-components/p-655e3c46.system.entry.js +1 -0
  504. package/dist/stzh-components/{p-b0d8866d.entry.js → p-65ea23f6.entry.js} +1 -1
  505. package/dist/stzh-components/p-668b4025.system.entry.js +1 -0
  506. package/dist/stzh-components/{p-f03ce92d.system.entry.js → p-6722e89a.system.entry.js} +1 -1
  507. package/dist/stzh-components/p-67ae4994.entry.js +1 -0
  508. package/dist/stzh-components/{p-f39f347c.system.js → p-6845b6ac.system.js} +0 -0
  509. package/dist/stzh-components/p-6adc5f0c.system.entry.js +1 -0
  510. package/dist/stzh-components/p-6c80b920.system.entry.js +1 -0
  511. package/dist/stzh-components/p-6dbf976b.entry.js +1 -0
  512. package/dist/stzh-components/{p-eade9f77.entry.js → p-6e3231ce.entry.js} +1 -1
  513. package/dist/stzh-components/{p-ef3da23b.entry.js → p-705aa56d.entry.js} +1 -1
  514. package/dist/stzh-components/{p-288ee536.system.entry.js → p-70f85be3.system.entry.js} +1 -1
  515. package/dist/stzh-components/{p-62a2684d.entry.js → p-7185f634.entry.js} +1 -1
  516. package/dist/stzh-components/{p-11d7b426.system.entry.js → p-74d6e349.system.entry.js} +1 -1
  517. package/dist/stzh-components/p-77d0a54b.system.entry.js +1 -0
  518. package/dist/stzh-components/p-7b0c04b3.system.entry.js +1 -0
  519. package/dist/stzh-components/{p-0cc8bbd7.system.entry.js → p-7e4261ce.system.entry.js} +1 -1
  520. package/dist/stzh-components/{p-fee6a938.entry.js → p-7e94b787.entry.js} +1 -1
  521. package/dist/stzh-components/{p-df5f49b4.js → p-7f0fb35c.js} +1 -1
  522. package/dist/stzh-components/{p-44e0b101.system.entry.js → p-7f1b7b44.system.entry.js} +1 -1
  523. package/dist/stzh-components/{p-97e16665.system.entry.js → p-80f497d8.system.entry.js} +1 -1
  524. package/dist/stzh-components/p-81b4b0e6.system.entry.js +1 -0
  525. package/dist/stzh-components/{p-8cc119d3.system.entry.js → p-8361c9d8.system.entry.js} +1 -1
  526. package/dist/stzh-components/{p-cc720d2d.entry.js → p-838b0542.entry.js} +1 -1
  527. package/dist/stzh-components/p-862e7723.system.entry.js +1 -0
  528. package/dist/stzh-components/{p-49b292df.entry.js → p-86336227.entry.js} +1 -1
  529. package/dist/stzh-components/{p-586a8b3f.entry.js → p-8715198b.entry.js} +1 -1
  530. package/dist/stzh-components/p-8972cf20.entry.js +1 -0
  531. package/dist/stzh-components/p-8c5a6832.system.entry.js +1 -0
  532. package/dist/stzh-components/p-8caafed2.system.entry.js +1 -0
  533. package/dist/stzh-components/p-8ccefd49.system.entry.js +1 -0
  534. package/dist/stzh-components/p-8ee705ed.entry.js +1 -0
  535. package/dist/stzh-components/p-906caf97.js +1 -0
  536. package/dist/stzh-components/{p-9e4e0cc9.entry.js → p-923dffc7.entry.js} +1 -1
  537. package/dist/stzh-components/p-9380fb85.entry.js +1 -0
  538. package/dist/stzh-components/p-97e4272b.system.entry.js +1 -0
  539. package/dist/stzh-components/p-990f395b.entry.js +1 -0
  540. package/dist/stzh-components/p-99a3742a.js +2 -0
  541. package/dist/stzh-components/p-99aacd74.entry.js +1 -0
  542. package/dist/stzh-components/p-99b82949.entry.js +1 -0
  543. package/dist/stzh-components/p-99e27f57.system.js +1 -0
  544. package/dist/stzh-components/{p-576e1345.entry.js → p-99e43fb0.entry.js} +1 -1
  545. package/dist/stzh-components/p-9be29697.entry.js +1 -0
  546. package/dist/stzh-components/{p-eb6d3e6c.entry.js → p-9c35c9cd.entry.js} +1 -1
  547. package/dist/stzh-components/{p-33f80cd2.system.entry.js → p-9d5c70ee.system.entry.js} +1 -1
  548. package/dist/stzh-components/p-9e30ee4a.system.js +10 -0
  549. package/dist/stzh-components/{p-94830f96.system.entry.js → p-a0a033bd.system.entry.js} +1 -1
  550. package/dist/stzh-components/{p-d5cb80ad.system.entry.js → p-a11ef2d6.system.entry.js} +1 -1
  551. package/dist/stzh-components/p-a2b2cfac.system.entry.js +1 -0
  552. package/dist/stzh-components/p-a3c7aa63.entry.js +9 -0
  553. package/dist/stzh-components/p-a408bfba.system.js +1 -1
  554. package/dist/stzh-components/{p-aae4655f.entry.js → p-a44527f8.entry.js} +1 -1
  555. package/dist/stzh-components/{p-8bbaed3a.entry.js → p-a4dd5ba3.entry.js} +1 -1
  556. package/dist/stzh-components/{p-c30600d0.system.entry.js → p-a51dd210.system.entry.js} +1 -1
  557. package/dist/stzh-components/{p-4b0f473e.entry.js → p-a693ab41.entry.js} +1 -1
  558. package/dist/stzh-components/p-a6be6aca.system.entry.js +1 -0
  559. package/dist/stzh-components/p-ac3e3b2a.system.entry.js +1 -0
  560. package/dist/stzh-components/{p-72389069.entry.js → p-ad816fd9.entry.js} +1 -1
  561. package/dist/stzh-components/p-af67ea5e.entry.js +7 -0
  562. package/dist/stzh-components/p-b050c1f4.entry.js +1 -0
  563. package/dist/stzh-components/{p-be79497f.system.entry.js → p-b1ffc2a9.system.entry.js} +1 -1
  564. package/dist/stzh-components/p-b395bed5.system.entry.js +1 -0
  565. package/dist/stzh-components/{p-30ba96a3.entry.js → p-b689b882.entry.js} +1 -1
  566. package/dist/stzh-components/{p-b3dc4913.entry.js → p-b6e6f847.entry.js} +1 -1
  567. package/dist/stzh-components/p-b92734db.entry.js +1 -0
  568. package/dist/stzh-components/{p-57a0f895.entry.js → p-b9427914.entry.js} +1 -1
  569. package/dist/stzh-components/p-bada7caa.system.entry.js +1 -0
  570. package/dist/stzh-components/p-bb82fa2d.system.entry.js +1 -0
  571. package/dist/stzh-components/{p-557f07b5.system.entry.js → p-bc36fda4.system.entry.js} +1 -1
  572. package/dist/stzh-components/{p-1d8272a5.entry.js → p-be68b323.entry.js} +1 -1
  573. package/dist/stzh-components/p-bf071e77.system.js +1 -0
  574. package/dist/stzh-components/{p-84965eac.entry.js → p-c0ec905d.entry.js} +1 -1
  575. package/dist/stzh-components/p-c2f909c1.system.entry.js +1 -0
  576. package/dist/stzh-components/{p-ea9ca52b.entry.js → p-c33b7d23.entry.js} +1 -1
  577. package/dist/stzh-components/p-c646c712.entry.js +1 -0
  578. package/dist/stzh-components/p-c8cc2563.system.entry.js +1 -0
  579. package/dist/stzh-components/p-c9c7d88a.entry.js +1 -0
  580. package/dist/stzh-components/p-cbe6d2ea.entry.js +1 -0
  581. package/dist/stzh-components/{p-2732d8c8.system.js → p-cbfae706.system.js} +0 -0
  582. package/dist/stzh-components/p-ccf023da.entry.js +3 -0
  583. package/dist/stzh-components/p-d04bbc19.js +1 -0
  584. package/dist/stzh-components/p-d32965be.system.entry.js +1 -0
  585. package/dist/stzh-components/p-d54ff4d4.system.entry.js +1 -0
  586. package/dist/stzh-components/p-d5644c25.entry.js +8 -0
  587. package/dist/stzh-components/p-d6a11daa.entry.js +1 -0
  588. package/dist/stzh-components/p-d943e02c.system.entry.js +1 -0
  589. package/dist/stzh-components/{p-a474826c.system.entry.js → p-da85cf73.system.entry.js} +1 -1
  590. package/dist/stzh-components/p-da98a8bb.system.entry.js +7 -0
  591. package/dist/stzh-components/p-db306e24.entry.js +1 -0
  592. package/dist/stzh-components/{p-d2f6fb1b.system.js → p-db339680.system.js} +1 -1
  593. package/dist/stzh-components/{p-f5fdc88c.entry.js → p-dbe5320f.entry.js} +3 -3
  594. package/dist/stzh-components/p-dd1bb919.entry.js +1 -0
  595. package/dist/stzh-components/p-dd5f29aa.entry.js +1 -0
  596. package/dist/stzh-components/p-de9edaf2.entry.js +1 -0
  597. package/dist/stzh-components/p-e3afc8f7.entry.js +1 -0
  598. package/dist/stzh-components/p-e54ef44f.system.entry.js +1 -0
  599. package/dist/stzh-components/p-e78fe899.system.entry.js +1 -0
  600. package/dist/stzh-components/{p-60d9bf98.system.entry.js → p-e7909de9.system.entry.js} +1 -1
  601. package/dist/stzh-components/{p-58af0855.system.entry.js → p-e7e9b295.system.entry.js} +1 -1
  602. package/dist/stzh-components/p-e8feb92e.system.entry.js +1 -0
  603. package/dist/stzh-components/p-eb7773f3.entry.js +1 -0
  604. package/dist/stzh-components/p-ed58b644.system.entry.js +1 -0
  605. package/dist/stzh-components/p-ee4b939a.entry.js +1 -0
  606. package/dist/stzh-components/{p-28d8aa31.entry.js → p-f0e2a32d.entry.js} +1 -1
  607. package/dist/stzh-components/{p-0cff4e01.entry.js → p-f2deda0a.entry.js} +1 -1
  608. package/dist/stzh-components/p-f3d69226.system.entry.js +1 -0
  609. package/dist/stzh-components/p-f433e62a.system.entry.js +1 -0
  610. package/dist/stzh-components/p-f5b2c12e.entry.js +1 -0
  611. package/dist/stzh-components/{p-4226dec6.system.entry.js → p-f7bb76d8.system.entry.js} +1 -1
  612. package/dist/stzh-components/{p-e0f063ac.entry.js → p-f8feb07b.entry.js} +1 -1
  613. package/dist/stzh-components/p-f9ab0433.entry.js +1 -0
  614. package/dist/stzh-components/p-fa615b51.system.entry.js +1 -0
  615. package/dist/stzh-components/{p-e016ceb9.entry.js → p-fd15cc86.entry.js} +1 -1
  616. package/dist/stzh-components/p-fd3acd16.system.entry.js +1 -0
  617. package/dist/stzh-components/p-fe5d5fc8.entry.js +1 -0
  618. package/dist/stzh-components/p-fe9acc68.system.entry.js +1 -0
  619. package/dist/stzh-components/stzh-components.css +1 -1
  620. package/dist/stzh-components/stzh-components.esm.js +1 -1
  621. package/dist/stzh-components/stzh-components.js +1 -1
  622. package/dist/types/components/stzh-actionset/stzh-actionset.localization.d.ts +1 -1
  623. package/dist/types/components/stzh-appointments/stzh-appointments.localization.d.ts +1 -1
  624. package/dist/types/components/stzh-audio/stzh-audio.localization.d.ts +1 -1
  625. package/dist/types/components/stzh-calendar/stzh-calendar-day.d.ts +1 -1
  626. package/dist/types/components/stzh-calendar/stzh-calendar-month.d.ts +1 -1
  627. package/dist/types/components/stzh-calendar/stzh-calendar.localization.d.ts +1 -1
  628. package/dist/types/components/stzh-card/stzh-card.localization.d.ts +1 -1
  629. package/dist/types/components/stzh-card-list/stzh-card-list.localization.d.ts +1 -1
  630. package/dist/types/components/stzh-container/stzh-container.d.ts +2 -0
  631. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +1 -1
  632. package/dist/types/components/stzh-datatable/stzh-datatable.localization.d.ts +1 -1
  633. package/dist/types/components/stzh-datepicker/stzh-datepicker.localization.d.ts +1 -1
  634. package/dist/types/components/stzh-dialog/stzh-dialog.localization.d.ts +1 -1
  635. package/dist/types/components/stzh-dropdown/stzh-dropdown.localization.d.ts +1 -1
  636. package/dist/types/components/stzh-footer/stzh-footer.localization.d.ts +1 -1
  637. package/dist/types/components/stzh-ghettobox/stzh-ghettobox.localization.d.ts +1 -1
  638. package/dist/types/components/stzh-hspace/stzh-hspace.d.ts +3 -1
  639. package/dist/types/components/stzh-input/stzh-input-description.d.ts +1 -1
  640. package/dist/types/components/stzh-message/stzh-message.localization.d.ts +1 -1
  641. package/dist/types/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.localization.d.ts +1 -1
  642. package/dist/types/components/stzh-olmap/stzh-olmap.localization.d.ts +1 -1
  643. package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +1 -1
  644. package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +1 -0
  645. package/dist/types/components/stzh-saptcha/stzh-saptcha.localization.d.ts +1 -1
  646. package/dist/types/components/stzh-share/stzh-share.localization.d.ts +1 -1
  647. package/dist/types/components/stzh-sortable/stzh-sortable.localization.d.ts +1 -1
  648. package/dist/types/components/stzh-space/stzh-space.d.ts +27 -0
  649. package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +1 -1
  650. package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +1 -1
  651. package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.d.ts +1 -1
  652. package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +1 -1
  653. package/dist/types/components/stzh-vspace/stzh-vspace.d.ts +3 -1
  654. package/dist/types/components.d.ts +390 -20
  655. package/dist/types/index.d.ts +135 -133
  656. package/dist/types/stencil-public-runtime.d.ts +59 -3
  657. package/dist/types/utils/date-adapter.d.ts +2 -2
  658. package/dist/types/utils/h.d.ts +3 -3
  659. package/dist/types/utils/test-utils.d.ts +2 -2
  660. package/dist/types/utils/translation-utils.d.ts +5 -5
  661. package/dist/vscode-data.json +563 -4
  662. package/loader/index.d.ts +9 -0
  663. package/package.json +11 -11
  664. package/dist/cjs/index-8bd1552a.js +0 -2019
  665. package/dist/cjs/stzh-chip.cjs.entry.js +0 -100
  666. package/dist/cjs/stzh-clamp.cjs.entry.js +0 -27
  667. package/dist/cjs/stzh-contactaddress.cjs.entry.js +0 -91
  668. package/dist/collection/pages/example.stories.js +0 -170
  669. package/dist/components/index3.js +0 -2017
  670. package/dist/components/stzh-contactaddress.js +0 -157
  671. package/dist/esm/index-545902f4.js +0 -2017
  672. package/dist/esm/stzh-chip.entry.js +0 -96
  673. package/dist/esm/stzh-clamp.entry.js +0 -23
  674. package/dist/esm/stzh-contactaddress.entry.js +0 -87
  675. package/dist/esm-es5/app-globals-ff581b69.js +0 -1
  676. package/dist/esm-es5/arrow-86a679c7.js +0 -1
  677. package/dist/esm-es5/focus-trap.esm-074705a3.js +0 -9
  678. package/dist/esm-es5/index-011c84fe.js +0 -2
  679. package/dist/esm-es5/index-545902f4.js +0 -1
  680. package/dist/esm-es5/stzh-chip.entry.js +0 -1
  681. package/dist/esm-es5/stzh-clamp.entry.js +0 -1
  682. package/dist/esm-es5/stzh-contactaddress.entry.js +0 -1
  683. package/dist/stzh-components/p-006751fc.system.entry.js +0 -1
  684. package/dist/stzh-components/p-025c9c5b.entry.js +0 -1
  685. package/dist/stzh-components/p-06d9b884.system.entry.js +0 -1
  686. package/dist/stzh-components/p-0743d7fa.entry.js +0 -1
  687. package/dist/stzh-components/p-0850a2e1.system.entry.js +0 -1
  688. package/dist/stzh-components/p-09da70d8.entry.js +0 -1
  689. package/dist/stzh-components/p-0a647396.entry.js +0 -1
  690. package/dist/stzh-components/p-10c046fc.system.entry.js +0 -1
  691. package/dist/stzh-components/p-12a2afe9.entry.js +0 -1
  692. package/dist/stzh-components/p-17645237.entry.js +0 -1
  693. package/dist/stzh-components/p-18cb06e2.entry.js +0 -1
  694. package/dist/stzh-components/p-19ab7e34.system.entry.js +0 -1
  695. package/dist/stzh-components/p-1ae4d600.system.entry.js +0 -1
  696. package/dist/stzh-components/p-1e4b4d71.system.js +0 -1
  697. package/dist/stzh-components/p-21cad060.system.entry.js +0 -1
  698. package/dist/stzh-components/p-22b06793.entry.js +0 -1
  699. package/dist/stzh-components/p-23829f75.system.entry.js +0 -1
  700. package/dist/stzh-components/p-2bdc71ae.system.entry.js +0 -1
  701. package/dist/stzh-components/p-2d340222.system.entry.js +0 -1
  702. package/dist/stzh-components/p-31c3469c.entry.js +0 -1
  703. package/dist/stzh-components/p-3200f52a.system.entry.js +0 -1
  704. package/dist/stzh-components/p-385dda6c.system.entry.js +0 -1
  705. package/dist/stzh-components/p-391e6b90.entry.js +0 -1
  706. package/dist/stzh-components/p-3a1ff759.entry.js +0 -1
  707. package/dist/stzh-components/p-3ad67331.entry.js +0 -1
  708. package/dist/stzh-components/p-3e850dce.entry.js +0 -1
  709. package/dist/stzh-components/p-40a19ce6.js +0 -10
  710. package/dist/stzh-components/p-441ea784.entry.js +0 -1
  711. package/dist/stzh-components/p-4704588f.system.entry.js +0 -1
  712. package/dist/stzh-components/p-49bb09a5.entry.js +0 -1
  713. package/dist/stzh-components/p-4b369bac.entry.js +0 -1
  714. package/dist/stzh-components/p-51be647d.entry.js +0 -1
  715. package/dist/stzh-components/p-53934cfd.js +0 -1
  716. package/dist/stzh-components/p-57237509.system.entry.js +0 -1
  717. package/dist/stzh-components/p-5790eb4f.system.entry.js +0 -1
  718. package/dist/stzh-components/p-57f8596f.system.entry.js +0 -1
  719. package/dist/stzh-components/p-5b1c1cf7.entry.js +0 -1
  720. package/dist/stzh-components/p-5ddf8258.system.entry.js +0 -1
  721. package/dist/stzh-components/p-5fd9ae99.system.entry.js +0 -1
  722. package/dist/stzh-components/p-60ec90b2.system.entry.js +0 -1
  723. package/dist/stzh-components/p-63d94a57.system.entry.js +0 -1
  724. package/dist/stzh-components/p-64422176.entry.js +0 -9
  725. package/dist/stzh-components/p-661831da.entry.js +0 -1
  726. package/dist/stzh-components/p-67c6f0f2.entry.js +0 -1
  727. package/dist/stzh-components/p-6d009f56.system.entry.js +0 -1
  728. package/dist/stzh-components/p-71c07419.system.entry.js +0 -1
  729. package/dist/stzh-components/p-75068cd7.system.entry.js +0 -1
  730. package/dist/stzh-components/p-76165227.entry.js +0 -1
  731. package/dist/stzh-components/p-7941cf38.js +0 -1
  732. package/dist/stzh-components/p-7adc28a4.system.entry.js +0 -7
  733. package/dist/stzh-components/p-7b86c022.entry.js +0 -1
  734. package/dist/stzh-components/p-7c26f80f.system.entry.js +0 -1
  735. package/dist/stzh-components/p-7ce59988.system.entry.js +0 -1
  736. package/dist/stzh-components/p-7e94dde2.entry.js +0 -1
  737. package/dist/stzh-components/p-812ea5e9.system.entry.js +0 -1
  738. package/dist/stzh-components/p-8364475f.js +0 -12
  739. package/dist/stzh-components/p-84b9f66f.system.entry.js +0 -1
  740. package/dist/stzh-components/p-853a1f92.entry.js +0 -1
  741. package/dist/stzh-components/p-88a31179.system.entry.js +0 -1
  742. package/dist/stzh-components/p-8991d3bc.entry.js +0 -1
  743. package/dist/stzh-components/p-8a1d00fe.entry.js +0 -3
  744. package/dist/stzh-components/p-8fa2fb95.system.entry.js +0 -1
  745. package/dist/stzh-components/p-9072a490.system.entry.js +0 -1
  746. package/dist/stzh-components/p-92afa8df.entry.js +0 -1
  747. package/dist/stzh-components/p-95b490ec.system.entry.js +0 -1
  748. package/dist/stzh-components/p-9743f558.system.entry.js +0 -1
  749. package/dist/stzh-components/p-996579d0.entry.js +0 -1
  750. package/dist/stzh-components/p-9a5ebb1f.js +0 -2
  751. package/dist/stzh-components/p-9dac46e2.system.entry.js +0 -1
  752. package/dist/stzh-components/p-9e38b823.system.entry.js +0 -1
  753. package/dist/stzh-components/p-a16dc363.entry.js +0 -1
  754. package/dist/stzh-components/p-a53c0a98.entry.js +0 -1
  755. package/dist/stzh-components/p-a8101552.entry.js +0 -8
  756. package/dist/stzh-components/p-a934dd4d.entry.js +0 -1
  757. package/dist/stzh-components/p-aacf685b.system.entry.js +0 -3
  758. package/dist/stzh-components/p-ac1a6085.system.entry.js +0 -1
  759. package/dist/stzh-components/p-ac3aa560.system.entry.js +0 -1
  760. package/dist/stzh-components/p-afedafa6.system.entry.js +0 -1
  761. package/dist/stzh-components/p-b2145753.system.entry.js +0 -1
  762. package/dist/stzh-components/p-b436a18d.system.entry.js +0 -1
  763. package/dist/stzh-components/p-b908d228.system.entry.js +0 -1
  764. package/dist/stzh-components/p-b937ae70.system.js +0 -1
  765. package/dist/stzh-components/p-ba0b93c4.system.entry.js +0 -9
  766. package/dist/stzh-components/p-bfcfbfbb.system.entry.js +0 -1
  767. package/dist/stzh-components/p-c0fef3d1.entry.js +0 -1
  768. package/dist/stzh-components/p-c3a543a6.entry.js +0 -1
  769. package/dist/stzh-components/p-c63aecaa.system.entry.js +0 -1
  770. package/dist/stzh-components/p-c87e12de.system.entry.js +0 -1
  771. package/dist/stzh-components/p-cf6003d6.js +0 -1
  772. package/dist/stzh-components/p-cfd22a5e.system.entry.js +0 -1
  773. package/dist/stzh-components/p-d240494d.entry.js +0 -1
  774. package/dist/stzh-components/p-d5c0801b.entry.js +0 -1
  775. package/dist/stzh-components/p-d6ec20c8.system.entry.js +0 -1
  776. package/dist/stzh-components/p-d9bf09b1.system.entry.js +0 -1
  777. package/dist/stzh-components/p-db1692fb.entry.js +0 -1
  778. package/dist/stzh-components/p-dbdc01c7.system.js +0 -2
  779. package/dist/stzh-components/p-ded16c0e.system.js +0 -1
  780. package/dist/stzh-components/p-e20369c8.system.js +0 -10
  781. package/dist/stzh-components/p-e32bc982.system.js +0 -1
  782. package/dist/stzh-components/p-e46d82b9.system.entry.js +0 -1
  783. package/dist/stzh-components/p-e76a3647.entry.js +0 -1
  784. package/dist/stzh-components/p-ec3a472a.system.entry.js +0 -1
  785. package/dist/stzh-components/p-ec7b6ce8.entry.js +0 -7
  786. package/dist/stzh-components/p-f133eba2.entry.js +0 -1
  787. package/dist/stzh-components/p-f3107fc7.system.entry.js +0 -1
  788. package/dist/stzh-components/p-fcec6003.system.entry.js +0 -1
  789. package/dist/stzh-components/p-fdb906b9.system.entry.js +0 -1
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9fcb4305.js');
5
+ const index = require('./index-83d427ee.js');
6
6
  const utils = require('./utils-ff153309.js');
7
7
  const translationUtils = require('./translation-utils-73073e44.js');
8
- const stzhInputDescription = require('./stzh-input-description-4326b0d9.js');
8
+ const stzhInputDescription = require('./stzh-input-description-2edc5cac.js');
9
9
  const _commonjsHelpers = require('./_commonjsHelpers-dcc4cf71.js');
10
10
 
11
11
  var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exports) {
12
12
  /**
13
- * Tom Select v2.1.0
13
+ * Tom Select v2.2.2
14
14
  * Licensed under the Apache License, Version 2.0 (the "License");
15
15
  */
16
16
 
@@ -45,9 +45,9 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
45
45
 
46
46
  on(events, fct) {
47
47
  forEvents(events, event => {
48
- this._events[event] = this._events[event] || [];
49
-
50
- this._events[event].push(fct);
48
+ const event_array = this._events[event] || [];
49
+ event_array.push(fct);
50
+ this._events[event] = event_array;
51
51
  });
52
52
  }
53
53
 
@@ -60,21 +60,26 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
60
60
  }
61
61
 
62
62
  forEvents(events, event => {
63
- if (n === 1) return delete this._events[event];
64
- if (event in this._events === false) return;
63
+ if (n === 1) {
64
+ delete this._events[event];
65
+ return;
66
+ }
65
67
 
66
- this._events[event].splice(this._events[event].indexOf(fct), 1);
68
+ const event_array = this._events[event];
69
+ if (event_array === undefined) return;
70
+ event_array.splice(event_array.indexOf(fct), 1);
71
+ this._events[event] = event_array;
67
72
  });
68
73
  }
69
74
 
70
75
  trigger(events, ...args) {
71
76
  var self = this;
72
77
  forEvents(events, event => {
73
- if (event in self._events === false) return;
74
-
75
- for (let fct of self._events[event]) {
78
+ const event_array = self._events[event];
79
+ if (event_array === undefined) return;
80
+ event_array.forEach(fct => {
76
81
  fct.apply(self, args);
77
- }
82
+ });
78
83
  });
79
84
  }
80
85
 
@@ -201,69 +206,124 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
201
206
  };
202
207
  }
203
208
 
204
- // @ts-ignore TS2691 "An import path cannot end with a '.ts' extension"
205
- // https://github.com/andrewrk/node-diacritics/blob/master/index.js
206
- var latin_pat;
207
- const accent_pat = '[\u0300-\u036F\u{b7}\u{2be}]'; // \u{2bc}
208
-
209
- const accent_reg = new RegExp(accent_pat, 'gu');
210
- var diacritic_patterns;
211
- const latin_convert = {
212
- 'æ': 'ae',
213
- 'ⱥ': 'a',
214
- 'ø': 'o'
209
+ /*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
210
+ /**
211
+ * Convert array of strings to a regular expression
212
+ * ex ['ab','a'] => (?:ab|a)
213
+ * ex ['a','b'] => [ab]
214
+ * @param {string[]} chars
215
+ * @return {string}
216
+ */
217
+ const arrayToPattern = chars => {
218
+ chars = chars.filter(Boolean);
219
+
220
+ if (chars.length < 2) {
221
+ return chars[0] || '';
222
+ }
223
+
224
+ return maxValueLength(chars) == 1 ? '[' + chars.join('') + ']' : '(?:' + chars.join('|') + ')';
215
225
  };
216
- const convert_pat = new RegExp(Object.keys(latin_convert).join('|'), 'gu');
217
- const code_points = [[0, 65535]];
218
226
  /**
219
- * Remove accents
220
- * via https://github.com/krisk/Fuse/issues/133#issuecomment-318692703
221
- *
227
+ * @param {string[]} array
228
+ * @return {string}
222
229
  */
223
230
 
224
- const asciifold = str => {
225
- return str.normalize('NFKD').replace(accent_reg, '').toLowerCase().replace(convert_pat, function (foreignletter) {
226
- return latin_convert[foreignletter];
231
+ const sequencePattern = array => {
232
+ if (!hasDuplicates(array)) {
233
+ return array.join('');
234
+ }
235
+
236
+ let pattern = '';
237
+ let prev_char_count = 0;
238
+
239
+ const prev_pattern = () => {
240
+ if (prev_char_count > 1) {
241
+ pattern += '{' + prev_char_count + '}';
242
+ }
243
+ };
244
+
245
+ array.forEach((char, i) => {
246
+ if (char === array[i - 1]) {
247
+ prev_char_count++;
248
+ return;
249
+ }
250
+
251
+ prev_pattern();
252
+ pattern += char;
253
+ prev_char_count = 1;
227
254
  });
255
+ prev_pattern();
256
+ return pattern;
228
257
  };
229
258
  /**
230
259
  * Convert array of strings to a regular expression
231
260
  * ex ['ab','a'] => (?:ab|a)
232
261
  * ex ['a','b'] => [ab]
233
- *
262
+ * @param {Set<string>} chars
263
+ * @return {string}
234
264
  */
235
265
 
236
- const arrayToPattern = (chars, glue = '|') => {
237
- if (chars.length == 1) {
238
- return chars[0];
239
- }
266
+ const setToPattern = chars => {
267
+ let array = toArray(chars);
268
+ return arrayToPattern(array);
269
+ };
270
+ /**
271
+ *
272
+ * https://stackoverflow.com/questions/7376598/in-javascript-how-do-i-check-if-an-array-has-duplicate-values
273
+ * @param {any[]} array
274
+ */
240
275
 
241
- var longest = 1;
242
- chars.forEach(a => {
243
- longest = Math.max(longest, a.length);
244
- });
276
+ const hasDuplicates = array => {
277
+ return new Set(array).size !== array.length;
278
+ };
279
+ /**
280
+ * https://stackoverflow.com/questions/63006601/why-does-u-throw-an-invalid-escape-error
281
+ * @param {string} str
282
+ * @return {string}
283
+ */
245
284
 
246
- if (longest == 1) {
247
- return '[' + chars.join('') + ']';
248
- }
285
+ const escape_regex = str => {
286
+ return (str + '').replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu, '\\$1');
287
+ };
288
+ /**
289
+ * Return the max length of array values
290
+ * @param {string[]} array
291
+ *
292
+ */
249
293
 
250
- return '(?:' + chars.join(glue) + ')';
294
+ const maxValueLength = array => {
295
+ return array.reduce((longest, value) => Math.max(longest, unicodeLength(value)), 0);
251
296
  };
252
- const escapeToPattern = chars => {
253
- const escaped = chars.map(diacritic => escape_regex(diacritic));
254
- return arrayToPattern(escaped);
297
+ /**
298
+ * @param {string} str
299
+ */
300
+
301
+ const unicodeLength = str => {
302
+ return toArray(str).length;
255
303
  };
304
+ /**
305
+ * @param {any} p
306
+ * @return {any[]}
307
+ */
308
+
309
+ const toArray = p => Array.from(p);
310
+
311
+ /*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
256
312
  /**
257
313
  * Get all possible combinations of substrings that add up to the given string
258
314
  * https://stackoverflow.com/questions/30169587/find-all-the-combination-of-substrings-that-add-up-to-the-given-string
259
- *
315
+ * @param {string} input
316
+ * @return {string[][]}
260
317
  */
261
-
262
318
  const allSubstrings = input => {
263
319
  if (input.length === 1) return [[input]];
264
- var result = [];
265
- allSubstrings(input.substring(1)).forEach(function (subresult) {
266
- var tmp = subresult.slice(0);
320
+ /** @type {string[][]} */
321
+
322
+ let result = [];
323
+ const start = input.substring(1);
324
+ const suba = allSubstrings(start);
325
+ suba.forEach(function (subresult) {
326
+ let tmp = subresult.slice(0);
267
327
  tmp[0] = input.charAt(0) + tmp[0];
268
328
  result.push(tmp);
269
329
  tmp = subresult.slice(0);
@@ -272,108 +332,539 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
272
332
  });
273
333
  return result;
274
334
  };
335
+
336
+ /*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
337
+
338
+ /**
339
+ * @typedef {{[key:string]:string}} TUnicodeMap
340
+ * @typedef {{[key:string]:Set<string>}} TUnicodeSets
341
+ * @typedef {[[number,number]]} TCodePoints
342
+ * @typedef {{folded:string,composed:string,code_point:number}} TCodePointObj
343
+ * @typedef {{start:number,end:number,length:number,substr:string}} TSequencePart
344
+ */
345
+ /** @type {TCodePoints} */
346
+
347
+ const code_points = [[0, 65535]];
348
+ const accent_pat = '[\u0300-\u036F\u{b7}\u{2be}\u{2bc}]';
349
+ /** @type {TUnicodeMap} */
350
+
351
+ let unicode_map;
352
+ /** @type {RegExp} */
353
+
354
+ let multi_char_reg;
355
+ const max_char_length = 3;
356
+ /** @type {TUnicodeMap} */
357
+
358
+ const latin_convert = {};
359
+ /** @type {TUnicodeMap} */
360
+
361
+ const latin_condensed = {
362
+ '/': '⁄∕',
363
+ '0': '߀',
364
+ "a": "ⱥɐɑ",
365
+ "aa": "ꜳ",
366
+ "ae": "æǽǣ",
367
+ "ao": "ꜵ",
368
+ "au": "ꜷ",
369
+ "av": "ꜹꜻ",
370
+ "ay": "ꜽ",
371
+ "b": "ƀɓƃ",
372
+ "c": "ꜿƈȼↄ",
373
+ "d": "đɗɖᴅƌꮷԁɦ",
374
+ "e": "ɛǝᴇɇ",
375
+ "f": "ꝼƒ",
376
+ "g": "ǥɠꞡᵹꝿɢ",
377
+ "h": "ħⱨⱶɥ",
378
+ "i": "ɨı",
379
+ "j": "ɉȷ",
380
+ "k": "ƙⱪꝁꝃꝅꞣ",
381
+ "l": "łƚɫⱡꝉꝇꞁɭ",
382
+ "m": "ɱɯϻ",
383
+ "n": "ꞥƞɲꞑᴎлԉ",
384
+ "o": "øǿɔɵꝋꝍᴑ",
385
+ "oe": "œ",
386
+ "oi": "ƣ",
387
+ "oo": "ꝏ",
388
+ "ou": "ȣ",
389
+ "p": "ƥᵽꝑꝓꝕρ",
390
+ "q": "ꝗꝙɋ",
391
+ "r": "ɍɽꝛꞧꞃ",
392
+ "s": "ßȿꞩꞅʂ",
393
+ "t": "ŧƭʈⱦꞇ",
394
+ "th": "þ",
395
+ "tz": "ꜩ",
396
+ "u": "ʉ",
397
+ "v": "ʋꝟʌ",
398
+ "vy": "ꝡ",
399
+ "w": "ⱳ",
400
+ "y": "ƴɏỿ",
401
+ "z": "ƶȥɀⱬꝣ",
402
+ "hv": "ƕ"
403
+ };
404
+
405
+ for (let latin in latin_condensed) {
406
+ let unicode = latin_condensed[latin] || '';
407
+
408
+ for (let i = 0; i < unicode.length; i++) {
409
+ let char = unicode.substring(i, i + 1);
410
+ latin_convert[char] = latin;
411
+ }
412
+ }
413
+
414
+ const convert_pat = new RegExp(Object.keys(latin_convert).join('|') + '|' + accent_pat, 'gu');
275
415
  /**
276
- * Generate a list of diacritics from the list of code points
416
+ * Initialize the unicode_map from the give code point ranges
277
417
  *
418
+ * @param {TCodePoints=} _code_points
419
+ */
420
+
421
+ const initialize = _code_points => {
422
+ if (unicode_map !== undefined) return;
423
+ unicode_map = generateMap(_code_points || code_points);
424
+ };
425
+ /**
426
+ * Helper method for normalize a string
427
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize
428
+ * @param {string} str
429
+ * @param {string} form
430
+ */
431
+
432
+ const normalize = (str, form = 'NFKD') => str.normalize(form);
433
+ /**
434
+ * Remove accents without reordering string
435
+ * calling str.normalize('NFKD') on \u{594}\u{595}\u{596} becomes \u{596}\u{594}\u{595}
436
+ * via https://github.com/krisk/Fuse/issues/133#issuecomment-318692703
437
+ * @param {string} str
438
+ * @return {string}
439
+ */
440
+
441
+ const asciifold = str => {
442
+ return toArray(str).reduce(
443
+ /**
444
+ * @param {string} result
445
+ * @param {string} char
446
+ */
447
+ (result, char) => {
448
+ return result + _asciifold(char);
449
+ }, '');
450
+ };
451
+ /**
452
+ * @param {string} str
453
+ * @return {string}
454
+ */
455
+
456
+ const _asciifold = str => {
457
+ str = normalize(str).toLowerCase().replace(convert_pat, (
458
+ /** @type {string} */
459
+ char) => {
460
+ return latin_convert[char] || '';
461
+ }); //return str;
462
+
463
+ return normalize(str, 'NFC');
464
+ };
465
+ /**
466
+ * Generate a list of unicode variants from the list of code points
467
+ * @param {TCodePoints} code_points
468
+ * @yield {TCodePointObj}
278
469
  */
279
470
 
280
- const generateDiacritics = code_points => {
281
- var diacritics = {};
282
- code_points.forEach(code_range => {
283
- for (let i = code_range[0]; i <= code_range[1]; i++) {
284
- let diacritic = String.fromCharCode(i);
285
- let latin = asciifold(diacritic);
471
+ function* generator(code_points) {
472
+ for (const [code_point_min, code_point_max] of code_points) {
473
+ for (let i = code_point_min; i <= code_point_max; i++) {
474
+ let composed = String.fromCharCode(i);
475
+ let folded = asciifold(composed);
286
476
 
287
- if (latin == diacritic.toLowerCase()) {
477
+ if (folded == composed.toLowerCase()) {
288
478
  continue;
289
- } // skip when latin is a string longer than 3 characters long
479
+ } // skip when folded is a string longer than 3 characters long
290
480
  // bc the resulting regex patterns will be long
291
481
  // eg:
292
- // latin صلى الله عليه وسلم length 18 code point 65018
293
- // latin جل جلاله length 8 code point 65019
482
+ // folded صلى الله عليه وسلم length 18 code point 65018
483
+ // folded جل جلاله length 8 code point 65019
294
484
 
295
485
 
296
- if (latin.length > 3) {
486
+ if (folded.length > max_char_length) {
297
487
  continue;
298
488
  }
299
489
 
300
- if (!(latin in diacritics)) {
301
- diacritics[latin] = [latin];
490
+ if (folded.length == 0) {
491
+ continue;
302
492
  }
303
493
 
304
- var patt = new RegExp(escapeToPattern(diacritics[latin]), 'iu');
494
+ yield {
495
+ folded: folded,
496
+ composed: composed,
497
+ code_point: i
498
+ };
499
+ }
500
+ }
501
+ }
502
+ /**
503
+ * Generate a unicode map from the list of code points
504
+ * @param {TCodePoints} code_points
505
+ * @return {TUnicodeSets}
506
+ */
507
+
508
+ const generateSets = code_points => {
509
+ /** @type {{[key:string]:Set<string>}} */
510
+ const unicode_sets = {};
511
+ /**
512
+ * @param {string} folded
513
+ * @param {string} to_add
514
+ */
305
515
 
306
- if (diacritic.match(patt)) {
307
- continue;
308
- }
516
+ const addMatching = (folded, to_add) => {
517
+ /** @type {Set<string>} */
518
+ const folded_set = unicode_sets[folded] || new Set();
519
+ const patt = new RegExp('^' + setToPattern(folded_set) + '$', 'iu');
309
520
 
310
- diacritics[latin].push(diacritic);
521
+ if (to_add.match(patt)) {
522
+ return;
311
523
  }
312
- }); // filter out if there's only one character in the list
313
524
 
314
- let latin_chars = Object.keys(diacritics);
525
+ folded_set.add(escape_regex(to_add));
526
+ unicode_sets[folded] = folded_set;
527
+ };
528
+
529
+ for (let value of generator(code_points)) {
530
+ addMatching(value.folded, value.folded);
531
+ addMatching(value.folded, value.composed);
532
+ }
533
+
534
+ return unicode_sets;
535
+ };
536
+ /**
537
+ * Generate a unicode map from the list of code points
538
+ * ae => (?:(?:ae|Æ|Ǽ|Ǣ)|(?:A|Ⓐ|A...)(?:E|ɛ|Ⓔ...))
539
+ *
540
+ * @param {TCodePoints} code_points
541
+ * @return {TUnicodeMap}
542
+ */
543
+
544
+ const generateMap = code_points => {
545
+ /** @type {TUnicodeSets} */
546
+ const unicode_sets = generateSets(code_points);
547
+ /** @type {TUnicodeMap} */
548
+
549
+ const unicode_map = {};
550
+ /** @type {string[]} */
315
551
 
316
- for (let i = 0; i < latin_chars.length; i++) {
317
- const latin = latin_chars[i];
552
+ let multi_char = [];
318
553
 
319
- if (diacritics[latin].length < 2) {
320
- delete diacritics[latin];
554
+ for (let folded in unicode_sets) {
555
+ let set = unicode_sets[folded];
556
+
557
+ if (set) {
558
+ unicode_map[folded] = setToPattern(set);
321
559
  }
322
- } // latin character pattern
323
- // match longer substrings first
324
560
 
561
+ if (folded.length > 1) {
562
+ multi_char.push(escape_regex(folded));
563
+ }
564
+ }
325
565
 
326
- latin_chars = Object.keys(diacritics).sort((a, b) => b.length - a.length);
327
- latin_pat = new RegExp('(' + escapeToPattern(latin_chars) + accent_pat + '*)', 'gu'); // build diacritic patterns
328
- // ae needs:
329
- // (?:(?:ae|Æ|Ǽ|Ǣ)|(?:A|Ⓐ|A...)(?:E|ɛ|Ⓔ...))
566
+ multi_char.sort((a, b) => b.length - a.length);
567
+ const multi_char_patt = arrayToPattern(multi_char);
568
+ multi_char_reg = new RegExp('^' + multi_char_patt, 'u');
569
+ return unicode_map;
570
+ };
571
+ /**
572
+ * Map each element of an array from it's folded value to all possible unicode matches
573
+ * @param {string[]} strings
574
+ * @param {number} min_replacement
575
+ * @return {string}
576
+ */
330
577
 
331
- var diacritic_patterns = {};
332
- latin_chars.sort((a, b) => a.length - b.length).forEach(latin => {
333
- var substrings = allSubstrings(latin);
334
- var pattern = substrings.map(sub_pat => {
335
- sub_pat = sub_pat.map(l => {
336
- if (diacritics.hasOwnProperty(l)) {
337
- return escapeToPattern(diacritics[l]);
338
- }
578
+ const mapSequence = (strings, min_replacement = 1) => {
579
+ let chars_replaced = 0;
580
+ strings = strings.map(str => {
581
+ if (unicode_map[str]) {
582
+ chars_replaced += str.length;
583
+ }
339
584
 
340
- return l;
341
- });
342
- return arrayToPattern(sub_pat, '');
343
- });
344
- diacritic_patterns[latin] = arrayToPattern(pattern);
585
+ return unicode_map[str] || str;
345
586
  });
346
- return diacritic_patterns;
587
+
588
+ if (chars_replaced >= min_replacement) {
589
+ return sequencePattern(strings);
590
+ }
591
+
592
+ return '';
347
593
  };
348
594
  /**
349
- * Expand a regular expression pattern to include diacritics
350
- * eg /a/ becomes /aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑAⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ/
595
+ * Convert a short string and split it into all possible patterns
596
+ * Keep a pattern only if min_replacement is met
597
+ *
598
+ * 'abc'
599
+ * => [['abc'],['ab','c'],['a','bc'],['a','b','c']]
600
+ * => ['abc-pattern','ab-c-pattern'...]
601
+ *
602
+ *
603
+ * @param {string} str
604
+ * @param {number} min_replacement
605
+ * @return {string}
606
+ */
607
+
608
+ const substringsToPattern = (str, min_replacement = 1) => {
609
+ min_replacement = Math.max(min_replacement, str.length - 1);
610
+ return arrayToPattern(allSubstrings(str).map(sub_pat => {
611
+ return mapSequence(sub_pat, min_replacement);
612
+ }));
613
+ };
614
+ /**
615
+ * Convert an array of sequences into a pattern
616
+ * [{start:0,end:3,length:3,substr:'iii'}...] => (?:iii...)
351
617
  *
618
+ * @param {Sequence[]} sequences
619
+ * @param {boolean} all
620
+ */
621
+
622
+ const sequencesToPattern = (sequences, all = true) => {
623
+ let min_replacement = sequences.length > 1 ? 1 : 0;
624
+ return arrayToPattern(sequences.map(sequence => {
625
+ let seq = [];
626
+ const len = all ? sequence.length() : sequence.length() - 1;
627
+
628
+ for (let j = 0; j < len; j++) {
629
+ seq.push(substringsToPattern(sequence.substrs[j] || '', min_replacement));
630
+ }
631
+
632
+ return sequencePattern(seq);
633
+ }));
634
+ };
635
+ /**
636
+ * Return true if the sequence is already in the sequences
637
+ * @param {Sequence} needle_seq
638
+ * @param {Sequence[]} sequences
352
639
  */
353
640
 
354
- const diacriticRegexPoints = regex => {
355
- if (diacritic_patterns === undefined) {
356
- diacritic_patterns = generateDiacritics(code_points);
641
+
642
+ const inSequences = (needle_seq, sequences) => {
643
+ for (const seq of sequences) {
644
+ if (seq.start != needle_seq.start || seq.end != needle_seq.end) {
645
+ continue;
646
+ }
647
+
648
+ if (seq.substrs.join('') !== needle_seq.substrs.join('')) {
649
+ continue;
650
+ }
651
+
652
+ let needle_parts = needle_seq.parts;
653
+ /**
654
+ * @param {TSequencePart} part
655
+ */
656
+
657
+ const filter = part => {
658
+ for (const needle_part of needle_parts) {
659
+ if (needle_part.start === part.start && needle_part.substr === part.substr) {
660
+ return false;
661
+ }
662
+
663
+ if (part.length == 1 || needle_part.length == 1) {
664
+ continue;
665
+ } // check for overlapping parts
666
+ // a = ['::=','==']
667
+ // b = ['::','===']
668
+ // a = ['r','sm']
669
+ // b = ['rs','m']
670
+
671
+
672
+ if (part.start < needle_part.start && part.end > needle_part.start) {
673
+ return true;
674
+ }
675
+
676
+ if (needle_part.start < part.start && needle_part.end > part.start) {
677
+ return true;
678
+ }
679
+ }
680
+
681
+ return false;
682
+ };
683
+
684
+ let filtered = seq.parts.filter(filter);
685
+
686
+ if (filtered.length > 0) {
687
+ continue;
688
+ }
689
+
690
+ return true;
357
691
  }
358
692
 
359
- const decomposed = regex.normalize('NFKD').toLowerCase();
360
- return decomposed.split(latin_pat).map(part => {
361
- // "ffl" or "ffl"
362
- const no_accent = asciifold(part);
693
+ return false;
694
+ };
695
+
696
+ class Sequence {
697
+ constructor() {
698
+ /** @type {TSequencePart[]} */
699
+ this.parts = [];
700
+ /** @type {string[]} */
363
701
 
364
- if (no_accent == '') {
365
- return '';
702
+ this.substrs = [];
703
+ this.start = 0;
704
+ this.end = 0;
705
+ }
706
+ /**
707
+ * @param {TSequencePart|undefined} part
708
+ */
709
+
710
+
711
+ add(part) {
712
+ if (part) {
713
+ this.parts.push(part);
714
+ this.substrs.push(part.substr);
715
+ this.start = Math.min(part.start, this.start);
716
+ this.end = Math.max(part.end, this.end);
366
717
  }
718
+ }
719
+
720
+ last() {
721
+ return this.parts[this.parts.length - 1];
722
+ }
723
+
724
+ length() {
725
+ return this.parts.length;
726
+ }
727
+ /**
728
+ * @param {number} position
729
+ * @param {TSequencePart} last_piece
730
+ */
731
+
732
+
733
+ clone(position, last_piece) {
734
+ let clone = new Sequence();
735
+ let parts = JSON.parse(JSON.stringify(this.parts));
736
+ let last_part = parts.pop();
367
737
 
368
- if (diacritic_patterns.hasOwnProperty(no_accent)) {
369
- return diacritic_patterns[no_accent];
738
+ for (const part of parts) {
739
+ clone.add(part);
370
740
  }
371
741
 
372
- return part;
373
- }).join('');
742
+ let last_substr = last_piece.substr.substring(0, position - last_part.start);
743
+ let clone_last_len = last_substr.length;
744
+ clone.add({
745
+ start: last_part.start,
746
+ end: last_part.start + clone_last_len,
747
+ length: clone_last_len,
748
+ substr: last_substr
749
+ });
750
+ return clone;
751
+ }
752
+
753
+ }
754
+ /**
755
+ * Expand a regular expression pattern to include unicode variants
756
+ * eg /a/ becomes /aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑAⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ/
757
+ *
758
+ * Issue:
759
+ * ﺊﺋ [ 'ﺊ = \\u{fe8a}', 'ﺋ = \\u{fe8b}' ]
760
+ * becomes: ئئ [ 'ي = \\u{64a}', 'ٔ = \\u{654}', 'ي = \\u{64a}', 'ٔ = \\u{654}' ]
761
+ *
762
+ * İIJ = IIJ = ⅡJ
763
+ *
764
+ * 1/2/4
765
+ *
766
+ * @param {string} str
767
+ * @return {string|undefined}
768
+ */
769
+
770
+
771
+ const getPattern = str => {
772
+ initialize();
773
+ str = asciifold(str);
774
+ let pattern = '';
775
+ let sequences = [new Sequence()];
776
+
777
+ for (let i = 0; i < str.length; i++) {
778
+ let substr = str.substring(i);
779
+ let match = substr.match(multi_char_reg);
780
+ const char = str.substring(i, i + 1);
781
+ const match_str = match ? match[0] : null; // loop through sequences
782
+ // add either the char or multi_match
783
+
784
+ let overlapping = [];
785
+ let added_types = new Set();
786
+
787
+ for (const sequence of sequences) {
788
+ const last_piece = sequence.last();
789
+
790
+ if (!last_piece || last_piece.length == 1 || last_piece.end <= i) {
791
+ // if we have a multi match
792
+ if (match_str) {
793
+ const len = match_str.length;
794
+ sequence.add({
795
+ start: i,
796
+ end: i + len,
797
+ length: len,
798
+ substr: match_str
799
+ });
800
+ added_types.add('1');
801
+ } else {
802
+ sequence.add({
803
+ start: i,
804
+ end: i + 1,
805
+ length: 1,
806
+ substr: char
807
+ });
808
+ added_types.add('2');
809
+ }
810
+ } else if (match_str) {
811
+ let clone = sequence.clone(i, last_piece);
812
+ const len = match_str.length;
813
+ clone.add({
814
+ start: i,
815
+ end: i + len,
816
+ length: len,
817
+ substr: match_str
818
+ });
819
+ overlapping.push(clone);
820
+ } else {
821
+ // don't add char
822
+ // adding would create invalid patterns: 234 => [2,34,4]
823
+ added_types.add('3');
824
+ }
825
+ } // if we have overlapping
826
+
827
+
828
+ if (overlapping.length > 0) {
829
+ // ['ii','iii'] before ['i','i','iii']
830
+ overlapping = overlapping.sort((a, b) => {
831
+ return a.length() - b.length();
832
+ });
833
+
834
+ for (let clone of overlapping) {
835
+ // don't add if we already have an equivalent sequence
836
+ if (inSequences(clone, sequences)) {
837
+ continue;
838
+ }
839
+
840
+ sequences.push(clone);
841
+ }
842
+
843
+ continue;
844
+ } // if we haven't done anything unique
845
+ // clean up the patterns
846
+ // helps keep patterns smaller
847
+ // if str = 'r₨㎧aarss', pattern will be 446 instead of 655
848
+
849
+
850
+ if (i > 0 && added_types.size == 1 && !added_types.has('3')) {
851
+ pattern += sequencesToPattern(sequences, false);
852
+ let new_seq = new Sequence();
853
+ const old_seq = sequences[0];
854
+
855
+ if (old_seq) {
856
+ new_seq.add(old_seq.last());
857
+ }
858
+
859
+ sequences = [new_seq];
860
+ }
861
+ }
862
+
863
+ pattern += sequencesToPattern(sequences, true);
864
+ return pattern;
374
865
  };
375
866
 
376
- // @ts-ignore TS2691 "An import path cannot end with a '.ts' extension"
867
+ /*! sifter.js | https://github.com/orchidjs/sifter.js | Apache License (v2) */
377
868
 
378
869
  /**
379
870
  * A property getter resolving dot-notation
@@ -411,20 +902,13 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
411
902
  var score, pos;
412
903
  if (!value) return 0;
413
904
  value = value + '';
905
+ if (token.regex == null) return 0;
414
906
  pos = value.search(token.regex);
415
907
  if (pos === -1) return 0;
416
908
  score = token.string.length / value.length;
417
909
  if (pos === 0) score += 0.5;
418
910
  return score * weight;
419
911
  };
420
- /**
421
- *
422
- * https://stackoverflow.com/questions/63006601/why-does-u-throw-an-invalid-escape-error
423
- */
424
-
425
- const escape_regex = str => {
426
- return (str + '').replace(/([\$\(-\+\.\?\[-\^\{-\}])/g, '\\$1');
427
- };
428
912
  /**
429
913
  * Cast object property to an array if it exists and has a value
430
914
  *
@@ -449,7 +933,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
449
933
  *
450
934
  */
451
935
 
452
- const iterate = (object, callback) => {
936
+ const iterate$1 = (object, callback) => {
453
937
  if (Array.isArray(object)) {
454
938
  object.forEach(callback);
455
939
  } else {
@@ -472,6 +956,8 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
472
956
  return 0;
473
957
  };
474
958
 
959
+ /*! sifter.js | https://github.com/orchidjs/sifter.js | Apache License (v2) */
960
+
475
961
  /**
476
962
  * sifter.js
477
963
  * Copyright (c) 2013–2020 Brian Reavis & contributors
@@ -533,12 +1019,12 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
533
1019
 
534
1020
  if (word.length > 0) {
535
1021
  if (this.settings.diacritics) {
536
- regex = diacriticRegexPoints(word);
1022
+ regex = getPattern(word) || null;
537
1023
  } else {
538
1024
  regex = escape_regex(word);
539
1025
  }
540
1026
 
541
- if (respect_word_boundaries) regex = "\\b" + regex;
1027
+ if (regex && respect_word_boundaries) regex = "\\b" + regex;
542
1028
  }
543
1029
 
544
1030
  tokens.push({
@@ -556,12 +1042,17 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
556
1042
  * Good matches will have a higher score than poor matches.
557
1043
  * If an item is not a match, 0 will be returned by the function.
558
1044
  *
559
- * @returns {function}
1045
+ * @returns {T.ScoreFn}
560
1046
  */
561
1047
  getScoreFunction(query, options) {
562
1048
  var search = this.prepareSearch(query, options);
563
1049
  return this._getScoreFunction(search);
564
1050
  }
1051
+ /**
1052
+ * @returns {T.ScoreFn}
1053
+ *
1054
+ */
1055
+
565
1056
 
566
1057
  _getScoreFunction(search) {
567
1058
  const tokens = search.tokens,
@@ -594,7 +1085,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
594
1085
  if (field_count === 1) {
595
1086
  return function (token, data) {
596
1087
  const field = fields[0].field;
597
- return scoreValue(getAttrFn(data, field), token, weights[field]);
1088
+ return scoreValue(getAttrFn(data, field), token, weights[field] || 1);
598
1089
  };
599
1090
  }
600
1091
 
@@ -610,7 +1101,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
610
1101
  sum += scoreValue(value, token, 1);
611
1102
  }
612
1103
  } else {
613
- iterate(weights, (weight, field) => {
1104
+ iterate$1(weights, (weight, field) => {
614
1105
  sum += scoreValue(getAttrFn(data, field), token, weight);
615
1106
  });
616
1107
  }
@@ -627,12 +1118,11 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
627
1118
 
628
1119
  if (search.options.conjunction === 'and') {
629
1120
  return function (data) {
630
- var i = 0,
631
- score,
1121
+ var score,
632
1122
  sum = 0;
633
1123
 
634
- for (; i < token_count; i++) {
635
- score = scoreObject(tokens[i], data);
1124
+ for (let token of tokens) {
1125
+ score = scoreObject(token, data);
636
1126
  if (score <= 0) return 0;
637
1127
  sum += score;
638
1128
  }
@@ -642,7 +1132,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
642
1132
  } else {
643
1133
  return function (data) {
644
1134
  var sum = 0;
645
- iterate(tokens, token => {
1135
+ iterate$1(tokens, token => {
646
1136
  sum += scoreObject(token, data);
647
1137
  });
648
1138
  return sum / token_count;
@@ -663,12 +1153,11 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
663
1153
  }
664
1154
 
665
1155
  _getSortFunction(search) {
666
- var i, n, implicit_score;
1156
+ var implicit_score,
1157
+ sort_flds = [];
667
1158
  const self = this,
668
1159
  options = search.options,
669
- sort = !search.query && options.sort_empty ? options.sort_empty : options.sort,
670
- sort_flds = [],
671
- multipliers = [];
1160
+ sort = !search.query && options.sort_empty ? options.sort_empty : options.sort;
672
1161
 
673
1162
  if (typeof sort == 'function') {
674
1163
  return sort.bind(this);
@@ -687,9 +1176,9 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
687
1176
 
688
1177
 
689
1178
  if (sort) {
690
- for (i = 0, n = sort.length; i < n; i++) {
691
- if (search.query || sort[i].field !== '$score') {
692
- sort_flds.push(sort[i]);
1179
+ for (let s of sort) {
1180
+ if (search.query || s.field !== '$score') {
1181
+ sort_flds.push(s);
693
1182
  }
694
1183
  }
695
1184
  } // the "$score" field is implied to be the primary
@@ -699,8 +1188,8 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
699
1188
  if (search.query) {
700
1189
  implicit_score = true;
701
1190
 
702
- for (i = 0, n = sort_flds.length; i < n; i++) {
703
- if (sort_flds[i].field === '$score') {
1191
+ for (let fld of sort_flds) {
1192
+ if (fld.field === '$score') {
704
1193
  implicit_score = false;
705
1194
  break;
706
1195
  }
@@ -711,18 +1200,10 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
711
1200
  field: '$score',
712
1201
  direction: 'desc'
713
1202
  });
714
- }
715
- } else {
716
- for (i = 0, n = sort_flds.length; i < n; i++) {
717
- if (sort_flds[i].field === '$score') {
718
- sort_flds.splice(i, 1);
719
- break;
720
- }
721
- }
722
- }
1203
+ } // without a search.query, all items will have the same score
723
1204
 
724
- for (i = 0, n = sort_flds.length; i < n; i++) {
725
- multipliers.push(sort_flds[i].direction === 'desc' ? -1 : 1);
1205
+ } else {
1206
+ sort_flds = sort_flds.filter(fld => fld.field !== '$score');
726
1207
  } // build function
727
1208
 
728
1209
 
@@ -730,25 +1211,20 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
730
1211
 
731
1212
  if (!sort_flds_count) {
732
1213
  return null;
733
- } else if (sort_flds_count === 1) {
734
- const sort_fld = sort_flds[0].field;
735
- const multiplier = multipliers[0];
736
- return function (a, b) {
737
- return multiplier * cmp(get_field(sort_fld, a), get_field(sort_fld, b));
738
- };
739
- } else {
740
- return function (a, b) {
741
- var i, result, field;
1214
+ }
742
1215
 
743
- for (i = 0; i < sort_flds_count; i++) {
744
- field = sort_flds[i].field;
745
- result = multipliers[i] * cmp(get_field(field, a), get_field(field, b));
746
- if (result) return result;
747
- }
1216
+ return function (a, b) {
1217
+ var result, field;
748
1218
 
749
- return 0;
750
- };
751
- }
1219
+ for (let sort_fld of sort_flds) {
1220
+ field = sort_fld.field;
1221
+ let multiplier = sort_fld.direction === 'desc' ? -1 : 1;
1222
+ result = multiplier * cmp(get_field(field, a), get_field(field, b));
1223
+ if (result) return result;
1224
+ }
1225
+
1226
+ return 0;
1227
+ };
752
1228
  }
753
1229
 
754
1230
  /**
@@ -807,7 +1283,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
807
1283
 
808
1284
 
809
1285
  if (query.length) {
810
- iterate(self.items, (item, id) => {
1286
+ iterate$1(self.items, (item, id) => {
811
1287
  score = fn_score(item);
812
1288
 
813
1289
  if (options.filter === false || score > 0) {
@@ -818,7 +1294,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
818
1294
  }
819
1295
  });
820
1296
  } else {
821
- iterate(self.items, (_, id) => {
1297
+ iterate$1(self.items, (_, id) => {
822
1298
  search.items.push({
823
1299
  'score': 1,
824
1300
  'id': id
@@ -841,6 +1317,29 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
841
1317
 
842
1318
  }
843
1319
 
1320
+ /**
1321
+ * Iterates over arrays and hashes.
1322
+ *
1323
+ * ```
1324
+ * iterate(this.items, function(item, id) {
1325
+ * // invoked for each item
1326
+ * });
1327
+ * ```
1328
+ *
1329
+ */
1330
+
1331
+ const iterate = (object, callback) => {
1332
+ if (Array.isArray(object)) {
1333
+ object.forEach(callback);
1334
+ } else {
1335
+ for (var key in object) {
1336
+ if (object.hasOwnProperty(key)) {
1337
+ callback(object[key], key);
1338
+ }
1339
+ }
1340
+ }
1341
+ };
1342
+
844
1343
  /**
845
1344
  * Return a dom element from either a dom query string, jQuery object, a dom element or html string
846
1345
  * https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in-dom-methods-or-pro/35385518#35385518
@@ -858,10 +1357,10 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
858
1357
  }
859
1358
 
860
1359
  if (isHtmlString(query)) {
861
- let div = document.createElement('div');
862
- div.innerHTML = query.trim(); // Never return a text node of whitespace as the result
1360
+ var tpl = document.createElement('template');
1361
+ tpl.innerHTML = query.trim(); // Never return a text node of whitespace as the result
863
1362
 
864
- return div.firstChild;
1363
+ return tpl.content.firstChild;
865
1364
  }
866
1365
 
867
1366
  return document.querySelector(query);
@@ -1072,9 +1571,9 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
1072
1571
 
1073
1572
  const highlightChildren = node => {
1074
1573
  if (node.nodeType === 1 && node.childNodes && !/(script|style)/i.test(node.tagName) && (node.className !== 'highlight' || node.tagName !== 'SPAN')) {
1075
- for (var i = 0; i < node.childNodes.length; ++i) {
1076
- i += highlightRecursive(node.childNodes[i]);
1077
- }
1574
+ Array.from(node.childNodes).forEach(element => {
1575
+ highlightRecursive(element);
1576
+ });
1078
1577
  }
1079
1578
  };
1080
1579
 
@@ -1312,7 +1811,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
1312
1811
  }
1313
1812
  };
1314
1813
  /**
1315
- * Prevent default
1814
+ * Add event helper
1316
1815
  *
1317
1816
  */
1318
1817
 
@@ -1647,7 +2146,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
1647
2146
  control_input = getDom(settings.controlInput); // set attributes
1648
2147
 
1649
2148
  var attrs = ['autocorrect', 'autocapitalize', 'autocomplete'];
1650
- iterate(attrs, attr => {
2149
+ iterate$1(attrs, attr => {
1651
2150
  if (input.getAttribute(attr)) {
1652
2151
  setAttr(control_input, {
1653
2152
  [attr]: input.getAttribute(attr)
@@ -1751,6 +2250,9 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
1751
2250
  }
1752
2251
 
1753
2252
  self.control_input.type = input.type;
2253
+ addEvent(dropdown, 'mousemove', () => {
2254
+ self.ignoreHover = false;
2255
+ });
1754
2256
  addEvent(dropdown, 'mouseenter', e => {
1755
2257
  var target_match = parentMatch(e.target, '[data-selectable]', dropdown);
1756
2258
  if (target_match) self.onOptionHover(e, target_match);
@@ -1787,7 +2289,6 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
1787
2289
 
1788
2290
  addEvent(control_input, 'keypress', e => self.onKeyPress(e));
1789
2291
  addEvent(control_input, 'input', e => self.onInput(e));
1790
- addEvent(focus_node, 'resize', () => self.positionDropdown(), passive_event);
1791
2292
  addEvent(focus_node, 'blur', e => self.onBlur(e));
1792
2293
  addEvent(focus_node, 'focus', e => self.onFocus(e));
1793
2294
  addEvent(control_input, 'paste', e => self.onPaste(e));
@@ -1823,18 +2324,12 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
1823
2324
  }
1824
2325
  };
1825
2326
 
1826
- const win_hover = () => {
1827
- self.ignoreHover = false;
1828
- };
1829
-
1830
2327
  addEvent(document, 'mousedown', doc_mousedown);
1831
2328
  addEvent(window, 'scroll', win_scroll, passive_event);
1832
2329
  addEvent(window, 'resize', win_scroll, passive_event);
1833
- addEvent(window, 'mousemove', win_hover, passive_event);
1834
2330
 
1835
2331
  this._destroy = () => {
1836
2332
  document.removeEventListener('mousedown', doc_mousedown);
1837
- window.removeEventListener('mousemove', win_hover);
1838
2333
  window.removeEventListener('scroll', win_scroll);
1839
2334
  window.removeEventListener('resize', win_scroll);
1840
2335
  if (label) label.removeEventListener('click', label_click);
@@ -1852,7 +2347,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
1852
2347
  settings.items = [];
1853
2348
  delete settings.optgroups;
1854
2349
  delete settings.options;
1855
- addEvent(input, 'invalid', e => {
2350
+ addEvent(input, 'invalid', () => {
1856
2351
  if (self.isValid) {
1857
2352
  self.isValid = false;
1858
2353
  self.isInvalid = true;
@@ -1889,7 +2384,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
1889
2384
  // build options table
1890
2385
  this.addOptions(options); // build optgroup table
1891
2386
 
1892
- iterate(optgroups, optgroup => {
2387
+ iterate$1(optgroups, optgroup => {
1893
2388
  this.registerOptionGroup(optgroup);
1894
2389
  });
1895
2390
  }
@@ -2053,13 +2548,15 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
2053
2548
  }
2054
2549
 
2055
2550
  var splitInput = pastedText.trim().split(self.settings.splitOn);
2056
- iterate(splitInput, piece => {
2057
- piece = hash_key(piece);
2551
+ iterate$1(splitInput, piece => {
2552
+ const hash = hash_key(piece);
2058
2553
 
2059
- if (this.options[piece]) {
2060
- self.addItem(piece);
2061
- } else {
2062
- self.createItem(piece);
2554
+ if (hash) {
2555
+ if (this.options[piece]) {
2556
+ self.addItem(piece);
2557
+ } else {
2558
+ self.createItem(piece);
2559
+ }
2063
2560
  }
2064
2561
  });
2065
2562
  }, 0);
@@ -2287,7 +2784,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
2287
2784
  };
2288
2785
 
2289
2786
  if (self.settings.create && self.settings.createOnBlur) {
2290
- self.createItem(null, false, deactivate);
2787
+ self.createItem(null, deactivate);
2291
2788
  } else {
2292
2789
  deactivate();
2293
2790
  }
@@ -2308,7 +2805,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
2308
2805
  }
2309
2806
 
2310
2807
  if (option.classList.contains('create')) {
2311
- self.createItem(null, true, () => {
2808
+ self.createItem(null, () => {
2312
2809
  if (self.settings.closeAfterSelect) {
2313
2810
  self.close();
2314
2811
  }
@@ -2677,7 +3174,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
2677
3174
  self.hideInput();
2678
3175
  self.close();
2679
3176
  self.activeItems = activeItems;
2680
- iterate(activeItems, item => {
3177
+ iterate$1(activeItems, item => {
2681
3178
  self.setActiveItemClass(item);
2682
3179
  });
2683
3180
  }
@@ -2813,7 +3310,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
2813
3310
 
2814
3311
 
2815
3312
  search(query) {
2816
- var i, result, calculateScore;
3313
+ var result, calculateScore;
2817
3314
  var self = this;
2818
3315
  var options = this.getSearchOptions(); // validate user-provided result scoring function
2819
3316
 
@@ -2838,13 +3335,10 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
2838
3335
 
2839
3336
 
2840
3337
  if (self.settings.hideSelected) {
2841
- for (i = result.items.length - 1; i >= 0; i--) {
2842
- let hashed = hash_key(result.items[i].id);
2843
-
2844
- if (hashed && self.items.indexOf(hashed) !== -1) {
2845
- result.items.splice(i, 1);
2846
- }
2847
- }
3338
+ result.items = result.items.filter(item => {
3339
+ let hashed = hash_key(item.id);
3340
+ return !(hashed && self.items.indexOf(hashed) !== -1);
3341
+ });
2848
3342
  }
2849
3343
 
2850
3344
  return result;
@@ -2857,21 +3351,24 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
2857
3351
 
2858
3352
 
2859
3353
  refreshOptions(triggerDropdown = true) {
2860
- var i, j, k, n, optgroup, optgroups, html, has_create_option, active_value, active_group;
3354
+ var i, j, k, n, optgroup, optgroups, html, has_create_option, active_group;
2861
3355
  var create;
2862
3356
  const groups = {};
2863
3357
  const groups_order = [];
2864
3358
  var self = this;
2865
3359
  var query = self.inputValue();
3360
+ const same_query = query === self.lastQuery || query == '' && self.lastQuery == null;
2866
3361
  var results = self.search(query);
2867
- var active_option = null; //self.activeOption;
2868
-
3362
+ var active_option = null;
2869
3363
  var show_dropdown = self.settings.shouldOpen || false;
2870
3364
  var dropdown_content = self.dropdown_content;
2871
3365
 
2872
- if (self.activeOption) {
2873
- active_value = self.activeOption.dataset.value;
2874
- active_group = self.activeOption.closest('[data-group]');
3366
+ if (same_query) {
3367
+ active_option = self.activeOption;
3368
+
3369
+ if (active_option) {
3370
+ active_group = active_option.closest('[data-group]');
3371
+ }
2875
3372
  } // build markup
2876
3373
 
2877
3374
 
@@ -2888,12 +3385,16 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
2888
3385
 
2889
3386
  for (i = 0; i < n; i++) {
2890
3387
  // get option dom element
2891
- let opt_value = results.items[i].id;
3388
+ let item = results.items[i];
3389
+ if (!item) continue;
3390
+ let opt_value = item.id;
2892
3391
  let option = self.options[opt_value];
2893
- let option_el = self.getOption(opt_value, true); // toggle 'selected' class
3392
+ if (option === undefined) continue;
3393
+ let opt_hash = get_hash(opt_value);
3394
+ let option_el = self.getOption(opt_hash, true); // toggle 'selected' class
2894
3395
 
2895
3396
  if (!self.settings.hideSelected) {
2896
- option_el.classList.toggle('selected', self.items.includes(opt_value));
3397
+ option_el.classList.toggle('selected', self.items.includes(opt_hash));
2897
3398
  }
2898
3399
 
2899
3400
  optgroup = option[self.settings.optgroupField] || '';
@@ -2906,8 +3407,10 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
2906
3407
  optgroup = '';
2907
3408
  }
2908
3409
 
2909
- if (!groups.hasOwnProperty(optgroup)) {
2910
- groups[optgroup] = document.createDocumentFragment();
3410
+ let group_fragment = groups[optgroup];
3411
+
3412
+ if (group_fragment === undefined) {
3413
+ group_fragment = document.createDocumentFragment();
2911
3414
  groups_order.push(optgroup);
2912
3415
  } // nodes can only have one parent, so if the option is in mutple groups, we need a clone
2913
3416
 
@@ -2919,48 +3422,50 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
2919
3422
  'aria-selected': null
2920
3423
  });
2921
3424
  option_el.classList.add('ts-cloned');
2922
- removeClasses(option_el, 'active');
2923
- } // make sure we keep the activeOption in the same group
2924
-
3425
+ removeClasses(option_el, 'active'); // make sure we keep the activeOption in the same group
2925
3426
 
2926
- if (!active_option && active_value == opt_value) {
2927
- if (active_group) {
2928
- if (active_group.dataset.group === optgroup) {
3427
+ if (self.activeOption && self.activeOption.dataset.value == opt_value) {
3428
+ if (active_group && active_group.dataset.group === optgroup.toString()) {
2929
3429
  active_option = option_el;
2930
3430
  }
2931
- } else {
2932
- active_option = option_el;
2933
3431
  }
2934
3432
  }
2935
3433
 
2936
- groups[optgroup].appendChild(option_el);
3434
+ group_fragment.appendChild(option_el);
3435
+ groups[optgroup] = group_fragment;
2937
3436
  }
2938
3437
  } // sort optgroups
2939
3438
 
2940
3439
 
2941
- if (this.settings.lockOptgroupOrder) {
3440
+ if (self.settings.lockOptgroupOrder) {
2942
3441
  groups_order.sort((a, b) => {
2943
- var a_order = self.optgroups[a] && self.optgroups[a].$order || 0;
2944
- var b_order = self.optgroups[b] && self.optgroups[b].$order || 0;
3442
+ const grp_a = self.optgroups[a];
3443
+ const grp_b = self.optgroups[b];
3444
+ const a_order = grp_a && grp_a.$order || 0;
3445
+ const b_order = grp_b && grp_b.$order || 0;
2945
3446
  return a_order - b_order;
2946
3447
  });
2947
3448
  } // render optgroup headers & join groups
2948
3449
 
2949
3450
 
2950
3451
  html = document.createDocumentFragment();
2951
- iterate(groups_order, optgroup => {
2952
- if (self.optgroups.hasOwnProperty(optgroup) && groups[optgroup].children.length) {
3452
+ iterate$1(groups_order, optgroup => {
3453
+ let group_fragment = groups[optgroup];
3454
+ if (!group_fragment || !group_fragment.children.length) return;
3455
+ let group_heading = self.optgroups[optgroup];
3456
+
3457
+ if (group_heading !== undefined) {
2953
3458
  let group_options = document.createDocumentFragment();
2954
- let header = self.render('optgroup_header', self.optgroups[optgroup]);
3459
+ let header = self.render('optgroup_header', group_heading);
2955
3460
  append(group_options, header);
2956
- append(group_options, groups[optgroup]);
3461
+ append(group_options, group_fragment);
2957
3462
  let group_html = self.render('optgroup', {
2958
- group: self.optgroups[optgroup],
3463
+ group: group_heading,
2959
3464
  options: group_options
2960
3465
  });
2961
3466
  append(html, group_html);
2962
3467
  } else {
2963
- append(html, groups[optgroup]);
3468
+ append(html, group_fragment);
2964
3469
  }
2965
3470
  });
2966
3471
  dropdown_content.innerHTML = '';
@@ -2970,7 +3475,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
2970
3475
  removeHighlight(dropdown_content);
2971
3476
 
2972
3477
  if (results.query.length && results.tokens.length) {
2973
- iterate(results.tokens, tok => {
3478
+ iterate$1(results.tokens, tok => {
2974
3479
  highlight(dropdown_content, tok.regex);
2975
3480
  });
2976
3481
  }
@@ -3011,7 +3516,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
3011
3516
 
3012
3517
  if (show_dropdown) {
3013
3518
  if (results.items.length > 0) {
3014
- if (!active_option && self.settings.mode === 'single' && self.items.length) {
3519
+ if (!active_option && self.settings.mode === 'single' && self.items[0] != undefined) {
3015
3520
  active_option = self.getOption(self.items[0]);
3016
3521
  }
3017
3522
 
@@ -3098,7 +3603,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
3098
3603
 
3099
3604
 
3100
3605
  addOptions(data, user_created = false) {
3101
- iterate(data, dat => {
3606
+ iterate$1(data, dat => {
3102
3607
  this.addOption(dat, user_created);
3103
3608
  });
3104
3609
  }
@@ -3178,11 +3683,12 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
3178
3683
  const value_new = hash_key(data[self.settings.valueField]); // sanity checks
3179
3684
 
3180
3685
  if (value_old === null) return;
3181
- if (!self.options.hasOwnProperty(value_old)) return;
3686
+ const data_old = self.options[value_old];
3687
+ if (data_old == undefined) return;
3182
3688
  if (typeof value_new !== 'string') throw new Error('Value must be set in option data');
3183
3689
  const option = self.getOption(value_old);
3184
3690
  const item = self.getItem(value_old);
3185
- data.$order = data.$order || self.options[value_old].$order;
3691
+ data.$order = data.$order || data_old.$order;
3186
3692
  delete self.options[value_old]; // invalidate render cache
3187
3693
  // don't remove existing node yet, we'll remove it after replacing it
3188
3694
 
@@ -3246,9 +3752,9 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
3246
3752
  this.userOptions = {};
3247
3753
  this.clearCache();
3248
3754
  const selected = {};
3249
- iterate(this.options, (option, key) => {
3755
+ iterate$1(this.options, (option, key) => {
3250
3756
  if (boundFilter(option, key)) {
3251
- selected[key] = this.options[key];
3757
+ selected[key] = option;
3252
3758
  }
3253
3759
  });
3254
3760
  this.options = this.sifter.items = selected;
@@ -3278,10 +3784,10 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
3278
3784
 
3279
3785
  getOption(value, create = false) {
3280
3786
  const hashed = hash_key(value);
3787
+ if (hashed === null) return null;
3788
+ const option = this.options[hashed];
3281
3789
 
3282
- if (hashed !== null && this.options.hasOwnProperty(hashed)) {
3283
- const option = this.options[hashed];
3284
-
3790
+ if (option != undefined) {
3285
3791
  if (option.$div) {
3286
3792
  return option.$div;
3287
3793
  }
@@ -3354,11 +3860,11 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
3354
3860
  var self = this;
3355
3861
  var items = Array.isArray(values) ? values : [values];
3356
3862
  items = items.filter(x => self.items.indexOf(x) === -1);
3357
-
3358
- for (let i = 0, n = items.length; i < n; i++) {
3359
- self.isPending = i < n - 1;
3360
- self.addItem(items[i], silent);
3361
- }
3863
+ const last_item = items[items.length - 1];
3864
+ items.forEach(item => {
3865
+ self.isPending = item !== last_item;
3866
+ self.addItem(item, silent);
3867
+ });
3362
3868
  }
3363
3869
  /**
3364
3870
  * "Selects" an item. Adds it to the list
@@ -3489,7 +3995,16 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
3489
3995
  */
3490
3996
 
3491
3997
 
3492
- createItem(input = null, triggerDropdown = true, callback = () => {}) {
3998
+ createItem(input = null, callback = () => {}) {
3999
+ // triggerDropdown parameter @deprecated 2.1.1
4000
+ if (arguments.length === 3) {
4001
+ callback = arguments[2];
4002
+ }
4003
+
4004
+ if (typeof callback != 'function') {
4005
+ callback = () => {};
4006
+ }
4007
+
3493
4008
  var self = this;
3494
4009
  var caret = self.caretPos;
3495
4010
  var output;
@@ -3765,7 +4280,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
3765
4280
  var self = this;
3766
4281
  if (!self.items.length) return;
3767
4282
  var items = self.controlChildren();
3768
- iterate(items, item => {
4283
+ iterate$1(items, item => {
3769
4284
  self.removeItem(item, true);
3770
4285
  });
3771
4286
  self.showInput();
@@ -3783,7 +4298,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
3783
4298
  const self = this;
3784
4299
  const caret = self.caretPos;
3785
4300
  const target = self.control;
3786
- target.insertBefore(el, target.children[caret]);
4301
+ target.insertBefore(el, target.children[caret] || null);
3787
4302
  self.setCaret(caret + 1);
3788
4303
  }
3789
4304
  /**
@@ -3808,14 +4323,19 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
3808
4323
  caret++;
3809
4324
  }
3810
4325
 
3811
- iterate(self.activeItems, item => rm_items.push(item));
4326
+ iterate$1(self.activeItems, item => rm_items.push(item));
3812
4327
  } else if ((self.isFocused || self.settings.mode === 'single') && self.items.length) {
3813
4328
  const items = self.controlChildren();
4329
+ let rm_item;
3814
4330
 
3815
4331
  if (direction < 0 && selection.start === 0 && selection.length === 0) {
3816
- rm_items.push(items[self.caretPos - 1]);
4332
+ rm_item = items[self.caretPos - 1];
3817
4333
  } else if (direction > 0 && selection.start === self.inputValue().length) {
3818
- rm_items.push(items[self.caretPos]);
4334
+ rm_item = items[self.caretPos];
4335
+ }
4336
+
4337
+ if (rm_item !== undefined) {
4338
+ rm_items.push(rm_item);
3819
4339
  }
3820
4340
  }
3821
4341
 
@@ -4017,33 +4537,18 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
4017
4537
 
4018
4538
 
4019
4539
  render(templateName, data) {
4020
- if (typeof this.settings.render[templateName] !== 'function') {
4021
- return null;
4022
- }
4023
-
4024
- return this._render(templateName, data);
4025
- }
4026
- /**
4027
- * _render() can be called directly when we know we don't want to hit the cache
4028
- * return type could be null for some templates, we need https://github.com/microsoft/TypeScript/issues/33014
4029
- */
4030
-
4031
-
4032
- _render(templateName, data) {
4033
- var value = '',
4034
- id,
4035
- html;
4540
+ var id, html;
4036
4541
  const self = this;
4037
4542
 
4038
- if (templateName === 'option' || templateName == 'item') {
4039
- value = get_hash(data[self.settings.valueField]);
4543
+ if (typeof this.settings.render[templateName] !== 'function') {
4544
+ return null;
4040
4545
  } // render markup
4041
4546
 
4042
4547
 
4043
4548
  html = self.settings.render[templateName].call(this, data, escape_html);
4044
4549
 
4045
- if (html == null) {
4046
- return html;
4550
+ if (!html) {
4551
+ return null;
4047
4552
  }
4048
4553
 
4049
4554
  html = getDom(html); // add mandatory attributes
@@ -4072,6 +4577,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
4072
4577
  }
4073
4578
 
4074
4579
  if (templateName === 'option' || templateName === 'item') {
4580
+ const value = get_hash(data[self.settings.valueField]);
4075
4581
  setAttr(html, {
4076
4582
  'data-value': value
4077
4583
  }); // make sure we have some classes if a template is overwritten
@@ -4088,12 +4594,28 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
4088
4594
  id: data.$id
4089
4595
  }); // update cache
4090
4596
 
4091
- self.options[value].$div = html;
4597
+ data.$div = html;
4598
+ self.options[value] = data;
4092
4599
  }
4093
4600
  }
4094
4601
 
4095
4602
  return html;
4096
4603
  }
4604
+ /**
4605
+ * Type guarded rendering
4606
+ *
4607
+ */
4608
+
4609
+
4610
+ _render(templateName, data) {
4611
+ const html = this.render(templateName, data);
4612
+
4613
+ if (html == null) {
4614
+ throw 'HTMLElement expected';
4615
+ }
4616
+
4617
+ return html;
4618
+ }
4097
4619
  /**
4098
4620
  * Clears the render cache for a template. If
4099
4621
  * no template is given, clears all render
@@ -4103,7 +4625,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
4103
4625
 
4104
4626
 
4105
4627
  clearCache() {
4106
- iterate(this.options, (option, value) => {
4628
+ iterate$1(this.options, option => {
4107
4629
  if (option.$div) {
4108
4630
  option.$div.remove();
4109
4631
  delete option.$div;
@@ -4174,153 +4696,207 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
4174
4696
 
4175
4697
  var remove_button = _commonjsHelpers.createCommonjsModule(function (module, exports) {
4176
4698
  /**
4177
- * Tom Select v2.1.0
4699
+ * Tom Select v2.2.2
4178
4700
  * Licensed under the Apache License, Version 2.0 (the "License");
4179
4701
  */
4180
4702
 
4181
4703
  (function (global, factory) {
4182
- module.exports = factory() ;
4704
+ module.exports = factory() ;
4183
4705
  })(_commonjsHelpers.commonjsGlobal, (function () {
4184
- // @ts-ignore TS2691 "An import path cannot end with a '.ts' extension"
4185
- const latin_convert = {
4186
- 'æ': 'ae',
4187
- 'ⱥ': 'a',
4188
- 'ø': 'o'
4189
- };
4190
- new RegExp(Object.keys(latin_convert).join('|'), 'gu');
4191
-
4192
- /**
4193
- * Return a dom element from either a dom query string, jQuery object, a dom element or html string
4194
- * https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in-dom-methods-or-pro/35385518#35385518
4195
- *
4196
- * param query should be {}
4197
- */
4198
-
4199
- const getDom = query => {
4200
- if (query.jquery) {
4201
- return query[0];
4202
- }
4706
+ /*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
4707
+ const accent_pat = '[\u0300-\u036F\u{b7}\u{2be}\u{2bc}]';
4708
+ /** @type {TUnicodeMap} */
4709
+
4710
+ const latin_convert = {};
4711
+ /** @type {TUnicodeMap} */
4712
+
4713
+ const latin_condensed = {
4714
+ '/': '⁄∕',
4715
+ '0': '߀',
4716
+ "a": "ⱥɐɑ",
4717
+ "aa": "ꜳ",
4718
+ "ae": "æǽǣ",
4719
+ "ao": "ꜵ",
4720
+ "au": "ꜷ",
4721
+ "av": "ꜹꜻ",
4722
+ "ay": "ꜽ",
4723
+ "b": "ƀɓƃ",
4724
+ "c": "ꜿƈȼↄ",
4725
+ "d": "đɗɖᴅƌꮷԁɦ",
4726
+ "e": "ɛǝᴇɇ",
4727
+ "f": "ꝼƒ",
4728
+ "g": "ǥɠꞡᵹꝿɢ",
4729
+ "h": "ħⱨⱶɥ",
4730
+ "i": "ɨı",
4731
+ "j": "ɉȷ",
4732
+ "k": "ƙⱪꝁꝃꝅꞣ",
4733
+ "l": "łƚɫⱡꝉꝇꞁɭ",
4734
+ "m": "ɱɯϻ",
4735
+ "n": "ꞥƞɲꞑᴎлԉ",
4736
+ "o": "øǿɔɵꝋꝍᴑ",
4737
+ "oe": "œ",
4738
+ "oi": "ƣ",
4739
+ "oo": "ꝏ",
4740
+ "ou": "ȣ",
4741
+ "p": "ƥᵽꝑꝓꝕρ",
4742
+ "q": "ꝗꝙɋ",
4743
+ "r": "ɍɽꝛꞧꞃ",
4744
+ "s": "ßȿꞩꞅʂ",
4745
+ "t": "ŧƭʈⱦꞇ",
4746
+ "th": "þ",
4747
+ "tz": "ꜩ",
4748
+ "u": "ʉ",
4749
+ "v": "ʋꝟʌ",
4750
+ "vy": "ꝡ",
4751
+ "w": "ⱳ",
4752
+ "y": "ƴɏỿ",
4753
+ "z": "ƶȥɀⱬꝣ",
4754
+ "hv": "ƕ"
4755
+ };
4756
+
4757
+ for (let latin in latin_condensed) {
4758
+ let unicode = latin_condensed[latin] || '';
4759
+
4760
+ for (let i = 0; i < unicode.length; i++) {
4761
+ let char = unicode.substring(i, i + 1);
4762
+ latin_convert[char] = latin;
4763
+ }
4764
+ }
4203
4765
 
4204
- if (query instanceof HTMLElement) {
4205
- return query;
4206
- }
4766
+ new RegExp(Object.keys(latin_convert).join('|') + '|' + accent_pat, 'gu');
4207
4767
 
4208
- if (isHtmlString(query)) {
4209
- let div = document.createElement('div');
4210
- div.innerHTML = query.trim(); // Never return a text node of whitespace as the result
4768
+ /**
4769
+ * Return a dom element from either a dom query string, jQuery object, a dom element or html string
4770
+ * https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in-dom-methods-or-pro/35385518#35385518
4771
+ *
4772
+ * param query should be {}
4773
+ */
4774
+
4775
+ const getDom = query => {
4776
+ if (query.jquery) {
4777
+ return query[0];
4778
+ }
4211
4779
 
4212
- return div.firstChild;
4213
- }
4780
+ if (query instanceof HTMLElement) {
4781
+ return query;
4782
+ }
4214
4783
 
4215
- return document.querySelector(query);
4216
- };
4217
- const isHtmlString = arg => {
4218
- if (typeof arg === 'string' && arg.indexOf('<') > -1) {
4219
- return true;
4220
- }
4784
+ if (isHtmlString(query)) {
4785
+ var tpl = document.createElement('template');
4786
+ tpl.innerHTML = query.trim(); // Never return a text node of whitespace as the result
4221
4787
 
4222
- return false;
4223
- };
4788
+ return tpl.content.firstChild;
4789
+ }
4224
4790
 
4225
- /**
4226
- * Converts a scalar to its best string representation
4227
- * for hash keys and HTML attribute values.
4228
- *
4229
- * Transformations:
4230
- * 'str' -> 'str'
4231
- * null -> ''
4232
- * undefined -> ''
4233
- * true -> '1'
4234
- * false -> '0'
4235
- * 0 -> '0'
4236
- * 1 -> '1'
4237
- *
4238
- */
4239
- /**
4240
- * Escapes a string for use within HTML.
4241
- *
4242
- */
4791
+ return document.querySelector(query);
4792
+ };
4793
+ const isHtmlString = arg => {
4794
+ if (typeof arg === 'string' && arg.indexOf('<') > -1) {
4795
+ return true;
4796
+ }
4243
4797
 
4244
- const escape_html = str => {
4245
- return (str + '').replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
4246
- };
4247
- /**
4248
- * Prevent default
4249
- *
4250
- */
4798
+ return false;
4799
+ };
4251
4800
 
4252
- const preventDefault = (evt, stop = false) => {
4253
- if (evt) {
4254
- evt.preventDefault();
4801
+ /**
4802
+ * Converts a scalar to its best string representation
4803
+ * for hash keys and HTML attribute values.
4804
+ *
4805
+ * Transformations:
4806
+ * 'str' -> 'str'
4807
+ * null -> ''
4808
+ * undefined -> ''
4809
+ * true -> '1'
4810
+ * false -> '0'
4811
+ * 0 -> '0'
4812
+ * 1 -> '1'
4813
+ *
4814
+ */
4815
+ /**
4816
+ * Escapes a string for use within HTML.
4817
+ *
4818
+ */
4255
4819
 
4256
- if (stop) {
4257
- evt.stopPropagation();
4258
- }
4259
- }
4260
- };
4261
- /**
4262
- * Prevent default
4263
- *
4264
- */
4820
+ const escape_html = str => {
4821
+ return (str + '').replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
4822
+ };
4823
+ /**
4824
+ * Prevent default
4825
+ *
4826
+ */
4265
4827
 
4266
- const addEvent = (target, type, callback, options) => {
4267
- target.addEventListener(type, callback, options);
4268
- };
4828
+ const preventDefault = (evt, stop = false) => {
4829
+ if (evt) {
4830
+ evt.preventDefault();
4269
4831
 
4270
- /**
4271
- * Plugin: "remove_button" (Tom Select)
4272
- * Copyright (c) contributors
4273
- *
4274
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
4275
- * file except in compliance with the License. You may obtain a copy of the License at:
4276
- * http://www.apache.org/licenses/LICENSE-2.0
4277
- *
4278
- * Unless required by applicable law or agreed to in writing, software distributed under
4279
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
4280
- * ANY KIND, either express or implied. See the License for the specific language
4281
- * governing permissions and limitations under the License.
4282
- *
4283
- */
4284
- function plugin (userOptions) {
4285
- const options = Object.assign({
4286
- label: '&times;',
4287
- title: 'Remove',
4288
- className: 'remove',
4289
- append: true
4290
- }, userOptions); //options.className = 'remove-single';
4832
+ if (stop) {
4833
+ evt.stopPropagation();
4834
+ }
4835
+ }
4836
+ };
4837
+ /**
4838
+ * Add event helper
4839
+ *
4840
+ */
4291
4841
 
4292
- var self = this; // override the render method to add remove button to each item
4842
+ const addEvent = (target, type, callback, options) => {
4843
+ target.addEventListener(type, callback, options);
4844
+ };
4293
4845
 
4294
- if (!options.append) {
4295
- return;
4296
- }
4846
+ /**
4847
+ * Plugin: "remove_button" (Tom Select)
4848
+ * Copyright (c) contributors
4849
+ *
4850
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
4851
+ * file except in compliance with the License. You may obtain a copy of the License at:
4852
+ * http://www.apache.org/licenses/LICENSE-2.0
4853
+ *
4854
+ * Unless required by applicable law or agreed to in writing, software distributed under
4855
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
4856
+ * ANY KIND, either express or implied. See the License for the specific language
4857
+ * governing permissions and limitations under the License.
4858
+ *
4859
+ */
4860
+ function plugin (userOptions) {
4861
+ const options = Object.assign({
4862
+ label: '&times;',
4863
+ title: 'Remove',
4864
+ className: 'remove',
4865
+ append: true
4866
+ }, userOptions); //options.className = 'remove-single';
4867
+
4868
+ var self = this; // override the render method to add remove button to each item
4869
+
4870
+ if (!options.append) {
4871
+ return;
4872
+ }
4297
4873
 
4298
- var html = '<a href="javascript:void(0)" class="' + options.className + '" tabindex="-1" title="' + escape_html(options.title) + '">' + options.label + '</a>';
4299
- self.hook('after', 'setupTemplates', () => {
4300
- var orig_render_item = self.settings.render.item;
4874
+ var html = '<a href="javascript:void(0)" class="' + options.className + '" tabindex="-1" title="' + escape_html(options.title) + '">' + options.label + '</a>';
4875
+ self.hook('after', 'setupTemplates', () => {
4876
+ var orig_render_item = self.settings.render.item;
4301
4877
 
4302
- self.settings.render.item = (data, escape) => {
4303
- var item = getDom(orig_render_item.call(self, data, escape));
4304
- var close_button = getDom(html);
4305
- item.appendChild(close_button);
4306
- addEvent(close_button, 'mousedown', evt => {
4307
- preventDefault(evt, true);
4308
- });
4309
- addEvent(close_button, 'click', evt => {
4310
- // propagating will trigger the dropdown to show for single mode
4311
- preventDefault(evt, true);
4312
- if (self.isLocked) return;
4313
- if (!self.shouldDelete([item], evt)) return;
4314
- self.removeItem(item);
4315
- self.refreshOptions(false);
4316
- self.inputState();
4317
- });
4318
- return item;
4319
- };
4320
- });
4321
- }
4878
+ self.settings.render.item = (data, escape) => {
4879
+ var item = getDom(orig_render_item.call(self, data, escape));
4880
+ var close_button = getDom(html);
4881
+ item.appendChild(close_button);
4882
+ addEvent(close_button, 'mousedown', evt => {
4883
+ preventDefault(evt, true);
4884
+ });
4885
+ addEvent(close_button, 'click', evt => {
4886
+ // propagating will trigger the dropdown to show for single mode
4887
+ preventDefault(evt, true);
4888
+ if (self.isLocked) return;
4889
+ if (!self.shouldDelete([item], evt)) return;
4890
+ self.removeItem(item);
4891
+ self.refreshOptions(false);
4892
+ self.inputState();
4893
+ });
4894
+ return item;
4895
+ };
4896
+ });
4897
+ }
4322
4898
 
4323
- return plugin;
4899
+ return plugin;
4324
4900
 
4325
4901
  }));
4326
4902
  //# sourceMappingURL=remove_button.js.map
@@ -4328,7 +4904,7 @@ var remove_button = _commonjsHelpers.createCommonjsModule(function (module, expo
4328
4904
 
4329
4905
  var checkbox_options = _commonjsHelpers.createCommonjsModule(function (module, exports) {
4330
4906
  /**
4331
- * Tom Select v2.1.0
4907
+ * Tom Select v2.2.2
4332
4908
  * Licensed under the Apache License, Version 2.0 (the "License");
4333
4909
  */
4334
4910
 
@@ -4372,13 +4948,67 @@ var checkbox_options = _commonjsHelpers.createCommonjsModule(function (module, e
4372
4948
  }
4373
4949
  };
4374
4950
 
4375
- // @ts-ignore TS2691 "An import path cannot end with a '.ts' extension"
4376
- const latin_convert = {
4377
- 'æ': 'ae',
4378
- 'ⱥ': 'a',
4379
- 'ø': 'o'
4951
+ /*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
4952
+ const accent_pat = '[\u0300-\u036F\u{b7}\u{2be}\u{2bc}]';
4953
+ /** @type {TUnicodeMap} */
4954
+
4955
+ const latin_convert = {};
4956
+ /** @type {TUnicodeMap} */
4957
+
4958
+ const latin_condensed = {
4959
+ '/': '⁄∕',
4960
+ '0': '߀',
4961
+ "a": "ⱥɐɑ",
4962
+ "aa": "ꜳ",
4963
+ "ae": "æǽǣ",
4964
+ "ao": "ꜵ",
4965
+ "au": "ꜷ",
4966
+ "av": "ꜹꜻ",
4967
+ "ay": "ꜽ",
4968
+ "b": "ƀɓƃ",
4969
+ "c": "ꜿƈȼↄ",
4970
+ "d": "đɗɖᴅƌꮷԁɦ",
4971
+ "e": "ɛǝᴇɇ",
4972
+ "f": "ꝼƒ",
4973
+ "g": "ǥɠꞡᵹꝿɢ",
4974
+ "h": "ħⱨⱶɥ",
4975
+ "i": "ɨı",
4976
+ "j": "ɉȷ",
4977
+ "k": "ƙⱪꝁꝃꝅꞣ",
4978
+ "l": "łƚɫⱡꝉꝇꞁɭ",
4979
+ "m": "ɱɯϻ",
4980
+ "n": "ꞥƞɲꞑᴎлԉ",
4981
+ "o": "øǿɔɵꝋꝍᴑ",
4982
+ "oe": "œ",
4983
+ "oi": "ƣ",
4984
+ "oo": "ꝏ",
4985
+ "ou": "ȣ",
4986
+ "p": "ƥᵽꝑꝓꝕρ",
4987
+ "q": "ꝗꝙɋ",
4988
+ "r": "ɍɽꝛꞧꞃ",
4989
+ "s": "ßȿꞩꞅʂ",
4990
+ "t": "ŧƭʈⱦꞇ",
4991
+ "th": "þ",
4992
+ "tz": "ꜩ",
4993
+ "u": "ʉ",
4994
+ "v": "ʋꝟʌ",
4995
+ "vy": "ꝡ",
4996
+ "w": "ⱳ",
4997
+ "y": "ƴɏỿ",
4998
+ "z": "ƶȥɀⱬꝣ",
4999
+ "hv": "ƕ"
4380
5000
  };
4381
- new RegExp(Object.keys(latin_convert).join('|'), 'gu');
5001
+
5002
+ for (let latin in latin_condensed) {
5003
+ let unicode = latin_condensed[latin] || '';
5004
+
5005
+ for (let i = 0; i < unicode.length; i++) {
5006
+ let char = unicode.substring(i, i + 1);
5007
+ latin_convert[char] = latin;
5008
+ }
5009
+ }
5010
+
5011
+ new RegExp(Object.keys(latin_convert).join('|') + '|' + accent_pat, 'gu');
4382
5012
 
4383
5013
  /**
4384
5014
  * Return a dom element from either a dom query string, jQuery object, a dom element or html string
@@ -4397,10 +5027,10 @@ var checkbox_options = _commonjsHelpers.createCommonjsModule(function (module, e
4397
5027
  }
4398
5028
 
4399
5029
  if (isHtmlString(query)) {
4400
- let div = document.createElement('div');
4401
- div.innerHTML = query.trim(); // Never return a text node of whitespace as the result
5030
+ var tpl = document.createElement('template');
5031
+ tpl.innerHTML = query.trim(); // Never return a text node of whitespace as the result
4402
5032
 
4403
- return div.firstChild;
5033
+ return tpl.content.firstChild;
4404
5034
  }
4405
5035
 
4406
5036
  return document.querySelector(query);
@@ -4510,7 +5140,7 @@ var checkbox_options = _commonjsHelpers.createCommonjsModule(function (module, e
4510
5140
 
4511
5141
  var input_autogrow = _commonjsHelpers.createCommonjsModule(function (module, exports) {
4512
5142
  /**
4513
- * Tom Select v2.1.0
5143
+ * Tom Select v2.2.2
4514
5144
  * Licensed under the Apache License, Version 2.0 (the "License");
4515
5145
  */
4516
5146
 
@@ -4532,7 +5162,7 @@ var input_autogrow = _commonjsHelpers.createCommonjsModule(function (module, exp
4532
5162
  *
4533
5163
  */
4534
5164
  /**
4535
- * Prevent default
5165
+ * Add event helper
4536
5166
  *
4537
5167
  */
4538
5168
 
@@ -4594,7 +5224,7 @@ var input_autogrow = _commonjsHelpers.createCommonjsModule(function (module, exp
4594
5224
 
4595
5225
  var no_backspace_delete = _commonjsHelpers.createCommonjsModule(function (module, exports) {
4596
5226
  /**
4597
- * Tom Select v2.1.0
5227
+ * Tom Select v2.2.2
4598
5228
  * Licensed under the Apache License, Version 2.0 (the "License");
4599
5229
  */
4600
5230
 
@@ -4634,12 +5264,13 @@ var no_backspace_delete = _commonjsHelpers.createCommonjsModule(function (module
4634
5264
 
4635
5265
  const stzhDropdownCss = ":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-dropdown{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--border-color:var(--stzh-color-grey61);--label-color:var(--stzh-color-grey61);--placeholder-color:var(--stzh-color-grey61);--background-color:var(--stzh-color-white);--label-background:var(--stzh-color-white);--icon-size:var(--stzh-icon-size-small);--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-border-color:var(--hover-color);--popover-width:100%;--popover-min-width:var(--stzh-popover-min-width);--popover-max-width:var(--stzh-popover-min-width);--popover-max-height:calc(6.5 * var(--stzh-menu-item-height));width:100%;border-radius:var(--stzh-form-input-border-radius);}stzh-dropdown[hidden]{display:none}stzh-dropdown *,stzh-dropdown *::before,stzh-dropdown *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-dropdown[variant=plain]{--background-color:transparent}stzh-dropdown[inline]:not([inline=false]){--popover-width:auto;width:auto}stzh-dropdown[invalid]:not([invalid=false]){--color:var(--stzh-color-error);--border-color:var(--stzh-color-error);--label-color:var(--stzh-color-error);--placeholder-color:var(--stzh-color-error);--hover-color:var(--stzh-color-error);--hover-border-color:var(--stzh-color-error)}stzh-dropdown[disabled]:not([disabled=false]){--color:var(--stzh-color-grey61);--border-color:transparent;--label-color:var(--stzh-color-grey61);--placeholder-color:var(--stzh-color-grey61);--background-color:var(--stzh-color-black8);--label-background:transparent;--hover-color:var(--stzh-color-grey61);--hover-border-color:transparent}stzh-dropdown[disabled]:not([disabled=false])[variant=plain]{--background-color:transparent}.stzh-dropdown__icon-wrapper stzh-icon,.stzh-dropdown__icon{--size:var(--icon-size)}.stzh-dropdown{}.stzh-dropdown__marker-symbol{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-dropdown__marker-text{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-dropdown__description-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-dropdown__error,.stzh-dropdown__description{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-dropdown__error{color:var(--stzh-color-error)}.stzh-dropdown__error-list{list-style:none;margin:0;padding:0}.stzh-dropdown__description{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-dropdown__description-long{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-dropdown__description-long-popover{--width:auto;--max-width:27.3125rem}.stzh-dropdown__description-long-popover[open]:not([open=false]) .stzh-dropdown__description-long-button{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__description-long-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-dropdown__description-long-button:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown stzh-icon.stzh-dropdown__description-long-icon{--size:var(--stzh-icon-size-xsmall)}.stzh-dropdown--has-error .stzh-dropdown__error,.stzh-dropdown--has-description .stzh-dropdown__description{margin-top:var(--stzh-space-xxsmall)}.stzh-dropdown .ts-hidden-accessible{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-dropdown .ts-dropdown-content{max-height:var(--popover-max-height);overflow-y:auto;overflow-x:hidden;overflow-scrolling:touch;scroll-behavior:smooth}.stzh-dropdown .ts-control{overflow:hidden;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;border-radius:var(--stzh-form-input-border-radius);background-color:var(--background-color);-webkit-transition-property:color, border-color;transition-property:color, border-color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-dropdown .ts-control:hover,.stzh-dropdown .ts-control:focus-within{border-color:var(--hover-border-color);outline:none}.stzh-dropdown .ts-control>*{vertical-align:baseline;display:inline-block}.stzh-dropdown .ts-control,.stzh-dropdown__sizer{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;width:100%;min-height:var(--stzh-form-input-height);border:0.0625rem solid var(--border-color)}.stzh-dropdown .ts-control>input{font-size:inherit;line-height:inherit;-ms-flex:1 1 auto;flex:1 1 auto;display:inline-block;padding:0;min-height:0;max-height:none;max-width:100%;margin:0;text-indent:0;border:0 none;background:none;-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}.stzh-dropdown .ts-control>input::-webkit-input-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input:-moz-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input::-moz-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input:-ms-input-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input::-ms-clear{display:none}.stzh-dropdown .ts-control>input:focus{outline:none}.stzh-dropdown .ts-control>input:-moz-placeholder-shown{text-overflow:ellipsis}.stzh-dropdown .ts-control>input:-ms-input-placeholder{text-overflow:ellipsis}.stzh-dropdown .ts-control>input:placeholder-shown{text-overflow:ellipsis}.stzh-dropdown__field-wrapper,.stzh-dropdown__select{position:relative}.stzh-dropdown__icon-wrapper{position:absolute}.stzh-dropdown__select .ts-control>input,.stzh-dropdown__select.single .stzh-dropdown__item,.stzh-dropdown__icon-wrapper,.stzh-dropdown__angle-icon{color:var(--color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed)}.stzh-dropdown__select.multi .stzh-dropdown__item{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__select:hover .ts-control>input,.stzh-dropdown__select:focus-within .ts-control>input,.stzh-dropdown__select.single:hover .stzh-dropdown__item,.stzh-dropdown__select.single:focus-within .stzh-dropdown__item,.stzh-dropdown__select:hover~.stzh-dropdown__icon-wrapper,.stzh-dropdown__select:focus-within~.stzh-dropdown__icon-wrapper,.stzh-dropdown__select:hover~.stzh-dropdown__angle-icon,.stzh-dropdown__select:focus-within~.stzh-dropdown__angle-icon,.stzh-dropdown__select:hover~.stzh-dropdown__label,.stzh-dropdown__select:focus-within~.stzh-dropdown__label{color:var(--hover-color)}.stzh-dropdown__sizer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-top:calc(var(--stzh-form-input-height) / -1);pointer-events:none;visibility:hidden}.stzh-dropdown__select.has-items~.stzh-dropdown__sizer{display:none}.stzh-dropdown__select.plugin-input_hide~.stzh-dropdown__sizer{visibility:visible}.stzh-dropdown__select.input-active .ts-control,.stzh-dropdown__select.input-active .ts-control>input{cursor:text}.stzh-dropdown__select.input-hidden .ts-control>input,.stzh-dropdown__select.plugin-input_hide .ts-control>input{opacity:0;position:absolute;left:-625rem}.stzh-dropdown__select.single .ts-control,.stzh-dropdown__select.multi .ts-control,.stzh-dropdown__sizer{padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-right:calc(var(--stzh-icon-size-medium) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown__icon-wrapper,.stzh-dropdown__angle-icon{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.stzh-dropdown__icon-wrapper{display:-ms-flexbox;display:flex;left:var(--stzh-space-medium)}.stzh-dropdown stzh-icon.stzh-dropdown__angle-icon{--size:var(--stzh-icon-size-medium)}.stzh-dropdown__angle-icon{right:var(--stzh-space-medium)}.stzh-dropdown__label{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--label-color);display:block;width:auto;position:absolute;top:calc(var(--stzh-form-input-height) / 2);left:calc(var(--stzh-space-medium) + 0.0625rem);max-width:calc(100% - var(--stzh-space-medium) * 2);-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);pointer-events:none}.stzh-dropdown__label:empty{display:none}.stzh-dropdown__label::before{content:\"\";display:none;background:var(--label-background);position:absolute;width:100%;z-index:-1;left:0;top:50%;height:0.125rem;margin-top:-0.03125rem}.stzh-dropdown__option,.stzh-dropdown__create{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;text-decoration:none;outline:none;border:none;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large);color:var(--stzh-color-grey70);height:var(--stzh-menu-item-height);line-height:var(--stzh-menu-item-height);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-dropdown__option:hover,.stzh-dropdown__option.active,.stzh-dropdown__create:hover,.stzh-dropdown__create.active{background-color:var(--stzh-color-grey5)}.stzh-dropdown__option.selected,.stzh-dropdown__create.selected{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__option.selected:hover,.stzh-dropdown__option.selected.active,.stzh-dropdown__create.selected:hover,.stzh-dropdown__create.selected.active{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown__option input,.stzh-dropdown__create input{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-dropdown__create{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:block}.stzh-dropdown__option-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stzh-dropdown__option[data-selectable] .highlight{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-dropdown__select .stzh-dropdown__option-check{display:none;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__option.selected:hover .stzh-dropdown__option-check,.stzh-dropdown__option.selected.active .stzh-dropdown__option-check{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-dropdown__no-results{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.stzh-dropdown__no-results,.stzh-dropdown__not-loading{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large)}.stzh-dropdown__optgroup-header{cursor:default}.stzh-dropdown__loader{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:2.375rem}.stzh-dropdown__dropdown{position:absolute;top:100%;left:0;width:var(--popover-width);margin-top:var(--stzh-space-xsmall);background-color:var(--stzh-color-white);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);z-index:var(--stzh-z-index-popover);border-radius:var(--stzh-popover-border-radius);overflow:hidden}@media screen and (min-width: 600px){.stzh-dropdown__dropdown{min-width:var(--popover-min-width);max-width:var(--popover-max-width)}}.stzh-dropdown__select.plugin-input_autogrow.has-items .ts-control>input{min-width:0}.stzh-dropdown__select.plugin-input_autogrow.has-items.focus .ts-control>input{-ms-flex:none;flex:none;min-width:0.25rem}.stzh-dropdown__select.has-items .ts-control>input{margin:0 0.25rem}.stzh-dropdown__select.has-items .ts-control>input::-webkit-input-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input:-moz-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input::-moz-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input:-ms-input-placeholder{color:transparent}.stzh-dropdown--is-multiple .stzh-dropdown__option-check{display:-ms-inline-flexbox;display:inline-flex;opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);margin-right:var(--stzh-space-xsmall)}.stzh-dropdown--is-multiple .stzh-dropdown__option{padding-left:var(--stzh-space-small)}.stzh-dropdown--is-multiple .stzh-dropdown__option.selected .stzh-dropdown__option-check{opacity:1}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi.has-items .ts-control{padding-top:calc(var(--stzh-space-xsmall) - 0.0625rem);padding-bottom:calc(var(--stzh-space-xsmall) - 0.0625rem)}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);position:relative;height:1.5rem;line-height:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border-radius:0.75rem;padding:0 var(--stzh-space-medium);-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:0.0625rem solid transparent;background-color:var(--stzh-color-grey5);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);margin:var(--stzh-space-xxsmall) var(--stzh-space-xxsmall) var(--stzh-space-xxsmall) 0;cursor:pointer}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item.active{color:var(--stzh-color-white);background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-right:calc(1.5rem + var(--stzh-space-xxsmall))}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove{position:absolute;top:50%;right:-0.0625rem;-webkit-transform:translateY(-50%);transform:translateY(-50%);text-decoration:none;width:1.5rem;height:1.5rem;border-radius:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-left:var(--stzh-space-xxsmall);color:var(--stzh-base-lead-color);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__remove-icon{--size:var(--stzh-icon-size-xxsmall)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item.active .stzh-dropdown__remove-icon{color:var(--stzh-color-white)}.stzh-dropdown--popover-placement-top .stzh-dropdown__dropdown{margin-top:0;top:auto;bottom:100%;margin-bottom:var(--stzh-space-xsmall)}.stzh-dropdown--popover-placement-top.stzh-dropdown--plain .stzh-dropdown__dropdown{margin-bottom:0}.stzh-dropdown--size-small .ts-control,.stzh-dropdown--size-small .stzh-dropdown__sizer{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-dropdown--size-small .ts-control{min-height:var(--stzh-form-input-small-height)}.stzh-dropdown--size-small .stzh-dropdown__sizer{min-height:initial;height:var(--stzh-form-input-small-height);margin-top:calc(var(--stzh-form-input-small-height) / -1)}.stzh-dropdown--size-small .stzh-dropdown__label{top:calc(var(--stzh-form-input-small-height) / 2)}.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control,.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--size-small .stzh-dropdown__sizer{padding:var(--stzh-space-xxsmall) var(--stzh-space-medium);padding-right:calc(var(--stzh-icon-size-small) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--size-small stzh-icon.stzh-dropdown__angle-icon{--size:var(--stzh-icon-size-small)}.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control,.stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--has-icon .stzh-dropdown__sizer{padding-left:calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--has-icon .stzh-dropdown__label{left:calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall) + 0.0625rem)}.stzh-dropdown--plain .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain .stzh-dropdown__sizer{border:none;padding-left:0;padding-right:calc(var(--stzh-icon-size-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--plain .stzh-dropdown__icon-wrapper{left:0}.stzh-dropdown--plain .stzh-dropdown__angle-icon{right:0}.stzh-dropdown--plain .stzh-dropdown__label{left:0;max-width:100%;padding:0}.stzh-dropdown--plain .stzh-dropdown__label::before{content:none}.stzh-dropdown--plain .stzh-dropdown__dropdown{margin-top:0}.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__sizer{padding-right:calc(var(--stzh-icon-size-small) + var(--stzh-space-xsmall))}.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__sizer{padding-left:calc(var(--icon-size) + var(--stzh-space-xsmall))}.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__label{left:calc(var(--icon-size) + var(--stzh-space-xsmall) + 0.0625rem)}.stzh-dropdown--has-fixed-label .stzh-dropdown__label,.stzh-dropdown--is-filled .stzh-dropdown__label,.stzh-dropdown--is-disabled .stzh-dropdown__label,.stzh-dropdown--is-invalid .stzh-dropdown__label,.stzh-dropdown--has-focus .stzh-dropdown__label{top:0;left:calc(var(--stzh-space-medium) - var(--stzh-space-xxsmall));height:1.25rem;line-height:1.25rem;padding:0 var(--stzh-space-xxsmall);max-width:calc(100% - (var(--stzh-space-medium) - var(--stzh-space-xxsmall)) * 2);pointer-events:all}.stzh-dropdown--has-fixed-label .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-filled .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-disabled .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-invalid .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--has-focus .stzh-dropdown__label:not(:empty)::before{display:block}.stzh-dropdown--plain.stzh-dropdown--has-fixed-label .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-filled .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-disabled .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-invalid .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--has-focus .stzh-dropdown__label{left:0;padding:0;max-width:100%}.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item,.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove{cursor:not-allowed}.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item,.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item:hover{color:var(--stzh-color-grey25);background-color:var(--stzh-color-white);border-color:var(--stzh-base-border-color)}.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove,.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove:hover{color:var(--stzh-color-grey13);background-color:transparent}";
4636
5266
 
4637
- const TomSelectInputHide = function (_plugin_options) {
4638
- // const self = this;
4639
- // self.on("initialize", () => {
4640
- // const input = self.control_input as HTMLInputElement;
4641
- // if (input) input.disabled = true;
4642
- // })
5267
+ const TomSelectInputReadonly = function (_plugin_options) {
5268
+ const self = this;
5269
+ self.on("initialize", () => {
5270
+ const input = self.control_input;
5271
+ if (input)
5272
+ input.readOnly = true;
5273
+ });
4643
5274
  };
4644
5275
  const CLASS_FILLED = "stzh-dropdown--is-filled";
4645
5276
  const CLASS_FOCUS = "stzh-dropdown--has-focus";
@@ -4647,7 +5278,7 @@ tomSelect_base.define("remove_button", remove_button);
4647
5278
  tomSelect_base.define("checkbox_options", checkbox_options);
4648
5279
  tomSelect_base.define("input_autogrow", input_autogrow);
4649
5280
  tomSelect_base.define("no_backspace_delete", no_backspace_delete);
4650
- tomSelect_base.define("input_hide", TomSelectInputHide);
5281
+ tomSelect_base.define("input_readonly", TomSelectInputReadonly);
4651
5282
  let dropdownCounter = 0;
4652
5283
  const StzhDropdown = class {
4653
5284
  constructor(hostRef) {
@@ -4814,7 +5445,7 @@ const StzhDropdown = class {
4814
5445
  }
4815
5446
  const plugins = {};
4816
5447
  if (this.noSearch) {
4817
- plugins["input_hide"] = {};
5448
+ plugins["input_readonly"] = {};
4818
5449
  }
4819
5450
  else {
4820
5451
  plugins["input_autogrow"] = {};