@oiz/stzh-components 2.2.0 → 2.3.0-alpha2

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