@oiz/stzh-components 2.6.0-beta → 2.7.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/dist/cjs/{app-globals-b9f31c77.js → app-globals-5dfa53d1.js} +2 -2
  2. package/dist/cjs/{app-globals-b9f31c77.js.map → app-globals-5dfa53d1.js.map} +1 -1
  3. package/dist/cjs/index.cjs.js.map +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/stzh-actions.cjs.entry.js +1 -5
  6. package/dist/cjs/stzh-actions.cjs.entry.js.map +1 -1
  7. package/dist/cjs/stzh-actionset.cjs.entry.js +2 -2
  8. package/dist/cjs/stzh-actionset.cjs.entry.js.map +1 -1
  9. package/dist/cjs/stzh-amount.cjs.entry.js +50 -69
  10. package/dist/cjs/stzh-amount.cjs.entry.js.map +1 -1
  11. package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -2
  12. package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
  13. package/dist/cjs/stzh-checkbox.cjs.entry.js.map +1 -1
  14. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js.map +1 -1
  15. package/dist/cjs/stzh-components.cjs.js +2 -2
  16. package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
  17. package/dist/cjs/stzh-dropdown.cjs.entry.js +60 -25
  18. package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
  19. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +1 -1
  20. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js.map +1 -1
  21. package/dist/cjs/stzh-input.cjs.entry.js.map +1 -1
  22. package/dist/cjs/stzh-invert.cjs.entry.js +1 -1
  23. package/dist/cjs/stzh-invert.cjs.entry.js.map +1 -1
  24. package/dist/cjs/stzh-monthyearpicker.cjs.entry.js +191 -0
  25. package/dist/cjs/stzh-monthyearpicker.cjs.entry.js.map +1 -0
  26. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
  27. package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
  28. package/dist/cjs/stzh-timepicker.cjs.entry.js +82 -0
  29. package/dist/cjs/stzh-timepicker.cjs.entry.js.map +1 -0
  30. package/dist/cjs/stzh-toggle.cjs.entry.js.map +1 -1
  31. package/dist/cjs/stzh-upload.cjs.entry.js +19 -7
  32. package/dist/cjs/stzh-upload.cjs.entry.js.map +1 -1
  33. package/dist/cjs/translation-utils-73073e44.js.map +1 -1
  34. package/dist/collection/assets/i18n/de.json +10 -7
  35. package/dist/collection/assets/i18n/en.json +8 -5
  36. package/dist/collection/collection-manifest.json +2 -0
  37. package/dist/collection/components/stzh-actions/stzh-actions.js +1 -5
  38. package/dist/collection/components/stzh-actions/stzh-actions.js.map +1 -1
  39. package/dist/collection/components/stzh-actionset/stzh-actionset.js +2 -2
  40. package/dist/collection/components/stzh-actionset/stzh-actionset.js.map +1 -1
  41. package/dist/collection/components/stzh-amount/stzh-amount.css +1 -0
  42. package/dist/collection/components/stzh-amount/stzh-amount.js +84 -85
  43. package/dist/collection/components/stzh-amount/stzh-amount.js.map +1 -1
  44. package/dist/collection/components/stzh-amount/stzh-amount.localization.js.map +1 -1
  45. package/dist/collection/components/stzh-amount/stzh-amount.stories.js +14 -0
  46. package/dist/collection/components/stzh-button/stzh-button.css +2 -2
  47. package/dist/collection/components/stzh-button/stzh-button.js +1 -1
  48. package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
  49. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +1 -1
  50. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js.map +1 -1
  51. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +1 -1
  52. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js.map +1 -1
  53. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +2 -2
  54. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js.map +1 -1
  55. package/dist/collection/components/stzh-datepicker/stzh-datepicker.stories.js +3 -0
  56. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +32 -20
  57. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +40 -9
  58. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
  59. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +4 -4
  60. package/dist/collection/components/stzh-input/stzh-input.js +1 -1
  61. package/dist/collection/components/stzh-input/stzh-input.js.map +1 -1
  62. package/dist/collection/components/stzh-invert/stzh-invert.css +2 -2
  63. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.css +123 -0
  64. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js +724 -0
  65. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.js.map +1 -0
  66. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.localization.js +2 -0
  67. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.localization.js.map +1 -0
  68. package/dist/collection/components/stzh-monthyearpicker/stzh-monthyearpicker.stories.js +61 -0
  69. package/dist/collection/components/stzh-radio/stzh-radio.js +1 -1
  70. package/dist/collection/components/stzh-radio/stzh-radio.js.map +1 -1
  71. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +1 -1
  72. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js.map +1 -1
  73. package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +1 -1
  74. package/dist/collection/components/stzh-timepicker/stzh-timepicker.css +109 -0
  75. package/dist/collection/components/stzh-timepicker/stzh-timepicker.js +438 -0
  76. package/dist/collection/components/stzh-timepicker/stzh-timepicker.js.map +1 -0
  77. package/dist/collection/components/stzh-timepicker/stzh-timepicker.localization.js +2 -0
  78. package/dist/collection/components/stzh-timepicker/stzh-timepicker.localization.js.map +1 -0
  79. package/dist/collection/components/stzh-timepicker/stzh-timepicker.stories.js +45 -0
  80. package/dist/collection/components/stzh-toggle/stzh-toggle.js +1 -1
  81. package/dist/collection/components/stzh-toggle/stzh-toggle.js.map +1 -1
  82. package/dist/collection/components/stzh-upload/stzh-upload.js +53 -3
  83. package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
  84. package/dist/collection/index.js.map +1 -1
  85. package/dist/collection/libraries/dropzone/dropzone-amd-module.js +11 -5
  86. package/dist/collection/libraries/dropzone/dropzone.js +11 -5
  87. package/dist/collection/libraries/dropzone/min/dropzone-amd-module.min.js +1 -1
  88. package/dist/collection/libraries/dropzone/min/dropzone.min.js +1 -1
  89. package/dist/collection/libraries/tom-select/cjs/tom-select.complete.js +47 -18
  90. package/dist/collection/libraries/tom-select/cjs/tom-select.js +47 -18
  91. package/dist/collection/libraries/tom-select/cjs/tom-select.popular.js +47 -18
  92. package/dist/collection/libraries/tom-select/esm/tom-select.complete.js +47 -18
  93. package/dist/collection/libraries/tom-select/esm/tom-select.js +47 -18
  94. package/dist/collection/libraries/tom-select/esm/tom-select.popular.js +47 -18
  95. package/dist/collection/libraries/tom-select/js/tom-select.base.js +47 -18
  96. package/dist/collection/libraries/tom-select/js/tom-select.base.min.js +16 -17
  97. package/dist/collection/libraries/tom-select/js/tom-select.complete.js +47 -18
  98. package/dist/collection/libraries/tom-select/js/tom-select.complete.min.js +12 -13
  99. package/dist/collection/libraries/tom-select/js/tom-select.popular.js +47 -18
  100. package/dist/collection/libraries/tom-select/js/tom-select.popular.min.js +21 -22
  101. package/dist/collection/utils/translation-utils.js.map +1 -1
  102. package/dist/components/index.js +1 -1
  103. package/dist/components/index2.js.map +1 -1
  104. package/dist/components/stzh-actions.js +1 -5
  105. package/dist/components/stzh-actions.js.map +1 -1
  106. package/dist/components/stzh-actionset2.js +2 -2
  107. package/dist/components/stzh-actionset2.js.map +1 -1
  108. package/dist/components/stzh-amount.js +69 -82
  109. package/dist/components/stzh-amount.js.map +1 -1
  110. package/dist/components/stzh-button2.js +2 -2
  111. package/dist/components/stzh-button2.js.map +1 -1
  112. package/dist/components/stzh-buttongroup.js +1 -31
  113. package/dist/components/stzh-buttongroup.js.map +1 -1
  114. package/dist/components/stzh-buttongroup2.js +35 -0
  115. package/dist/components/stzh-buttongroup2.js.map +1 -0
  116. package/dist/components/stzh-checkbox.js.map +1 -1
  117. package/dist/components/stzh-checkboxgroup.js.map +1 -1
  118. package/dist/components/stzh-datepicker2.js.map +1 -1
  119. package/dist/components/stzh-dropdown2.js +61 -25
  120. package/dist/components/stzh-dropdown2.js.map +1 -1
  121. package/dist/components/stzh-ghettobox2.js +1 -1
  122. package/dist/components/stzh-ghettobox2.js.map +1 -1
  123. package/dist/components/stzh-input2.js.map +1 -1
  124. package/dist/components/stzh-invert.js +1 -1
  125. package/dist/components/stzh-invert.js.map +1 -1
  126. package/dist/components/stzh-monthyearpicker.d.ts +11 -0
  127. package/dist/components/stzh-monthyearpicker.js +251 -0
  128. package/dist/components/stzh-monthyearpicker.js.map +1 -0
  129. package/dist/components/stzh-radio2.js.map +1 -1
  130. package/dist/components/stzh-radiogroup2.js.map +1 -1
  131. package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
  132. package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
  133. package/dist/components/stzh-timepicker.d.ts +11 -0
  134. package/dist/components/stzh-timepicker.js +132 -0
  135. package/dist/components/stzh-timepicker.js.map +1 -0
  136. package/dist/components/stzh-toggle.js.map +1 -1
  137. package/dist/components/stzh-upload.js +22 -8
  138. package/dist/components/stzh-upload.js.map +1 -1
  139. package/dist/components/translation-utils.js.map +1 -1
  140. package/dist/esm/{app-globals-0c7feedc.js → app-globals-862dc6d0.js} +2 -2
  141. package/dist/esm/{app-globals-0c7feedc.js.map → app-globals-862dc6d0.js.map} +1 -1
  142. package/dist/esm/index.js.map +1 -1
  143. package/dist/esm/loader.js +2 -2
  144. package/dist/esm/stzh-actions.entry.js +1 -5
  145. package/dist/esm/stzh-actions.entry.js.map +1 -1
  146. package/dist/esm/stzh-actionset.entry.js +2 -2
  147. package/dist/esm/stzh-actionset.entry.js.map +1 -1
  148. package/dist/esm/stzh-amount.entry.js +51 -70
  149. package/dist/esm/stzh-amount.entry.js.map +1 -1
  150. package/dist/esm/stzh-badge_3.entry.js +2 -2
  151. package/dist/esm/stzh-badge_3.entry.js.map +1 -1
  152. package/dist/esm/stzh-checkbox.entry.js.map +1 -1
  153. package/dist/esm/stzh-checkboxgroup.entry.js.map +1 -1
  154. package/dist/esm/stzh-components.js +2 -2
  155. package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
  156. package/dist/esm/stzh-dropdown.entry.js +60 -25
  157. package/dist/esm/stzh-dropdown.entry.js.map +1 -1
  158. package/dist/esm/stzh-ghettobox_2.entry.js +1 -1
  159. package/dist/esm/stzh-ghettobox_2.entry.js.map +1 -1
  160. package/dist/esm/stzh-input.entry.js.map +1 -1
  161. package/dist/esm/stzh-invert.entry.js +1 -1
  162. package/dist/esm/stzh-invert.entry.js.map +1 -1
  163. package/dist/esm/stzh-monthyearpicker.entry.js +187 -0
  164. package/dist/esm/stzh-monthyearpicker.entry.js.map +1 -0
  165. package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
  166. package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
  167. package/dist/esm/stzh-timepicker.entry.js +78 -0
  168. package/dist/esm/stzh-timepicker.entry.js.map +1 -0
  169. package/dist/esm/stzh-toggle.entry.js.map +1 -1
  170. package/dist/esm/stzh-upload.entry.js +19 -7
  171. package/dist/esm/stzh-upload.entry.js.map +1 -1
  172. package/dist/esm/translation-utils-2623783f.js.map +1 -1
  173. package/dist/esm-es5/{app-globals-0c7feedc.js → app-globals-862dc6d0.js} +2 -2
  174. package/dist/esm-es5/{app-globals-0c7feedc.js.map → app-globals-862dc6d0.js.map} +1 -1
  175. package/dist/esm-es5/index.js.map +1 -1
  176. package/dist/esm-es5/loader.js +1 -1
  177. package/dist/esm-es5/loader.js.map +1 -1
  178. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  179. package/dist/esm-es5/stzh-actions.entry.js.map +1 -1
  180. package/dist/esm-es5/stzh-actionset.entry.js +1 -1
  181. package/dist/esm-es5/stzh-actionset.entry.js.map +1 -1
  182. package/dist/esm-es5/stzh-amount.entry.js +1 -1
  183. package/dist/esm-es5/stzh-amount.entry.js.map +1 -1
  184. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  185. package/dist/esm-es5/stzh-badge_3.entry.js.map +1 -1
  186. package/dist/esm-es5/stzh-checkbox.entry.js.map +1 -1
  187. package/dist/esm-es5/stzh-checkboxgroup.entry.js.map +1 -1
  188. package/dist/esm-es5/stzh-components.js +1 -1
  189. package/dist/esm-es5/stzh-components.js.map +1 -1
  190. package/dist/esm-es5/stzh-datepicker_3.entry.js.map +1 -1
  191. package/dist/esm-es5/stzh-dropdown.entry.js +2 -2
  192. package/dist/esm-es5/stzh-dropdown.entry.js.map +1 -1
  193. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  194. package/dist/esm-es5/stzh-ghettobox_2.entry.js.map +1 -1
  195. package/dist/esm-es5/stzh-input.entry.js.map +1 -1
  196. package/dist/esm-es5/stzh-invert.entry.js +1 -1
  197. package/dist/esm-es5/stzh-invert.entry.js.map +1 -1
  198. package/dist/esm-es5/stzh-monthyearpicker.entry.js +2 -0
  199. package/dist/esm-es5/stzh-monthyearpicker.entry.js.map +1 -0
  200. package/dist/esm-es5/stzh-skin-portal-mitwirken.entry.js +1 -1
  201. package/dist/esm-es5/stzh-skin-portal-mitwirken.entry.js.map +1 -1
  202. package/dist/esm-es5/stzh-timepicker.entry.js +2 -0
  203. package/dist/esm-es5/stzh-timepicker.entry.js.map +1 -0
  204. package/dist/esm-es5/stzh-toggle.entry.js.map +1 -1
  205. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  206. package/dist/esm-es5/stzh-upload.entry.js.map +1 -1
  207. package/dist/esm-es5/translation-utils-2623783f.js.map +1 -1
  208. package/dist/stzh-components/assets/i18n/de.json +10 -7
  209. package/dist/stzh-components/assets/i18n/en.json +8 -5
  210. package/dist/stzh-components/index.esm.js.map +1 -1
  211. package/dist/stzh-components/{p-8228cd4c.system.entry.js → p-09191103.system.entry.js} +2 -2
  212. package/dist/stzh-components/{p-8228cd4c.system.entry.js.map → p-09191103.system.entry.js.map} +1 -1
  213. package/dist/stzh-components/p-0f328a2d.system.entry.js +2 -0
  214. package/dist/stzh-components/{p-12964da2.system.entry.js.map → p-0f328a2d.system.entry.js.map} +1 -1
  215. package/dist/stzh-components/p-14e782cb.entry.js +2 -0
  216. package/dist/stzh-components/{p-85504842.entry.js.map → p-14e782cb.entry.js.map} +1 -1
  217. package/dist/stzh-components/p-1678e09c.system.js +2 -0
  218. package/dist/stzh-components/{p-8ebb6058.system.js.map → p-1678e09c.system.js.map} +1 -1
  219. package/dist/stzh-components/p-25a09313.js.map +1 -1
  220. package/dist/stzh-components/p-2615433f.system.entry.js +2 -0
  221. package/dist/stzh-components/p-2615433f.system.entry.js.map +1 -0
  222. package/dist/stzh-components/p-2907f1b5.entry.js +2 -0
  223. package/dist/stzh-components/{p-72da8eba.entry.js.map → p-2907f1b5.entry.js.map} +1 -1
  224. package/dist/stzh-components/{p-728cc738.entry.js → p-2d25bcc8.entry.js} +2 -2
  225. package/dist/stzh-components/p-2d25bcc8.entry.js.map +1 -0
  226. package/dist/stzh-components/p-2f3add2f.system.entry.js +2 -0
  227. package/dist/stzh-components/{p-0fa1dc9b.system.entry.js.map → p-2f3add2f.system.entry.js.map} +1 -1
  228. package/dist/stzh-components/p-39a4904e.system.entry.js.map +1 -1
  229. package/dist/stzh-components/p-3aa5623c.entry.js.map +1 -1
  230. package/dist/stzh-components/{p-37cfb2b2.system.js → p-3b4833a0.system.js} +2 -2
  231. package/dist/stzh-components/{p-37cfb2b2.system.js.map → p-3b4833a0.system.js.map} +1 -1
  232. package/dist/stzh-components/p-3cb43903.entry.js.map +1 -1
  233. package/dist/stzh-components/p-49a0420a.entry.js +2 -0
  234. package/dist/stzh-components/{p-8bbb27f2.entry.js.map → p-49a0420a.entry.js.map} +1 -1
  235. package/dist/stzh-components/p-51f1714c.system.entry.js +2 -0
  236. package/dist/stzh-components/p-51f1714c.system.entry.js.map +1 -0
  237. package/dist/stzh-components/p-5aa96b49.system.entry.js +2 -0
  238. package/dist/stzh-components/p-5aa96b49.system.entry.js.map +1 -0
  239. package/dist/stzh-components/p-5d8ad1f4.system.entry.js.map +1 -1
  240. package/dist/stzh-components/{p-6ee544b4.entry.js → p-62188444.entry.js} +2 -2
  241. package/dist/stzh-components/{p-6ee544b4.entry.js.map → p-62188444.entry.js.map} +1 -1
  242. package/dist/stzh-components/{p-e683abe3.system.entry.js → p-6d097e82.system.entry.js} +2 -2
  243. package/dist/stzh-components/p-6d097e82.system.entry.js.map +1 -0
  244. package/dist/stzh-components/p-82e886d4.entry.js.map +1 -1
  245. package/dist/stzh-components/{p-d69b11ec.system.entry.js → p-94a5e295.system.entry.js} +2 -2
  246. package/dist/stzh-components/p-94a5e295.system.entry.js.map +1 -0
  247. package/dist/stzh-components/p-9b7d4e8d.entry.js.map +1 -1
  248. package/dist/stzh-components/p-9d46101e.entry.js +2 -0
  249. package/dist/stzh-components/p-9d46101e.entry.js.map +1 -0
  250. package/dist/stzh-components/p-9f31cf7d.entry.js +2 -0
  251. package/dist/stzh-components/p-9f31cf7d.entry.js.map +1 -0
  252. package/dist/stzh-components/p-9fe69be8.system.entry.js +2 -0
  253. package/dist/stzh-components/{p-479a02fb.system.entry.js.map → p-9fe69be8.system.entry.js.map} +1 -1
  254. package/dist/stzh-components/p-a408bfba.system.js.map +1 -1
  255. package/dist/stzh-components/p-ad33db31.entry.js +2 -0
  256. package/dist/stzh-components/p-ad33db31.entry.js.map +1 -0
  257. package/dist/stzh-components/p-b05c240b.system.entry.js.map +1 -1
  258. package/dist/stzh-components/p-b5cda655.entry.js +2 -0
  259. package/dist/stzh-components/p-b5cda655.entry.js.map +1 -0
  260. package/dist/stzh-components/p-b8ad5f47.system.entry.js.map +1 -1
  261. package/dist/stzh-components/{p-a226d634.js → p-bc82ed48.js} +2 -2
  262. package/dist/stzh-components/{p-a226d634.js.map → p-bc82ed48.js.map} +1 -1
  263. package/dist/stzh-components/{p-5e09547b.entry.js → p-bcd5b20e.entry.js} +2 -2
  264. package/dist/stzh-components/p-bcd5b20e.entry.js.map +1 -0
  265. package/dist/stzh-components/p-c0f971f2.entry.js +9 -0
  266. package/dist/stzh-components/p-c0f971f2.entry.js.map +1 -0
  267. package/dist/stzh-components/p-c901fe72.system.entry.js +9 -0
  268. package/dist/stzh-components/p-c901fe72.system.entry.js.map +1 -0
  269. package/dist/stzh-components/p-cc35e963.entry.js.map +1 -1
  270. package/dist/stzh-components/p-e8545386.system.entry.js +2 -0
  271. package/dist/stzh-components/p-e8545386.system.entry.js.map +1 -0
  272. package/dist/stzh-components/p-eaa65f52.system.js.map +1 -1
  273. package/dist/stzh-components/p-f2d74491.system.entry.js.map +1 -1
  274. package/dist/stzh-components/stzh-components.css +1 -1
  275. package/dist/stzh-components/stzh-components.esm.js +1 -1
  276. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  277. package/dist/stzh-components/stzh-components.js +1 -1
  278. package/dist/types/components/stzh-amount/stzh-amount.localization.d.ts +0 -2
  279. package/dist/types/components/stzh-monthyearpicker/stzh-monthyearpicker.localization.d.ts +5 -0
  280. package/dist/types/components/stzh-timepicker/stzh-timepicker.localization.d.ts +2 -0
  281. package/dist/types/components.d.ts +454 -22
  282. package/dist/types/index.d.ts +19 -0
  283. package/dist/types/utils/translation-utils.d.ts +1 -0
  284. package/dist/vscode-data.json +282 -8
  285. package/package.json +1 -1
  286. package/dist/stzh-components/p-09a8bcde.system.entry.js +0 -9
  287. package/dist/stzh-components/p-09a8bcde.system.entry.js.map +0 -1
  288. package/dist/stzh-components/p-0fa1dc9b.system.entry.js +0 -2
  289. package/dist/stzh-components/p-12964da2.system.entry.js +0 -2
  290. package/dist/stzh-components/p-2ee0d173.system.entry.js +0 -2
  291. package/dist/stzh-components/p-2ee0d173.system.entry.js.map +0 -1
  292. package/dist/stzh-components/p-30e04d53.entry.js +0 -2
  293. package/dist/stzh-components/p-30e04d53.entry.js.map +0 -1
  294. package/dist/stzh-components/p-427461c5.system.entry.js +0 -2
  295. package/dist/stzh-components/p-427461c5.system.entry.js.map +0 -1
  296. package/dist/stzh-components/p-479a02fb.system.entry.js +0 -2
  297. package/dist/stzh-components/p-5e09547b.entry.js.map +0 -1
  298. package/dist/stzh-components/p-66c1942a.entry.js +0 -2
  299. package/dist/stzh-components/p-66c1942a.entry.js.map +0 -1
  300. package/dist/stzh-components/p-728cc738.entry.js.map +0 -1
  301. package/dist/stzh-components/p-72da8eba.entry.js +0 -2
  302. package/dist/stzh-components/p-85504842.entry.js +0 -2
  303. package/dist/stzh-components/p-8bbb27f2.entry.js +0 -2
  304. package/dist/stzh-components/p-8ebb6058.system.js +0 -2
  305. package/dist/stzh-components/p-c4503250.entry.js +0 -9
  306. package/dist/stzh-components/p-c4503250.entry.js.map +0 -1
  307. package/dist/stzh-components/p-d69b11ec.system.entry.js.map +0 -1
  308. package/dist/stzh-components/p-e683abe3.system.entry.js.map +0 -1
@@ -2128,17 +2128,24 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2128
2128
  const query = "label[for='" + escapeQuery(self.inputId) + "']";
2129
2129
  const label = document.querySelector(query);
2130
2130
  const label_click = self.focus.bind(self);
2131
+ const labelled_by = input.getAttribute('aria-labelledby');
2131
2132
  if (label) {
2132
2133
  addEvent(label, 'click', label_click);
2133
2134
  setAttr(label, {
2134
2135
  for: control_id
2135
2136
  });
2136
- const label_id = getId(label, self.inputId + '-ts-label');
2137
+
2138
+ // const label_id = getId(label,self.inputId+'-ts-label');
2139
+ // setAttr(focus_node,{'aria-labelledby':label_id});
2140
+ // setAttr(dropdown_content,{'aria-labelledby':label_id});
2141
+ }
2142
+
2143
+ if (labelled_by) {
2137
2144
  setAttr(focus_node, {
2138
- 'aria-labelledby': label_id
2145
+ 'aria-labelledby': labelled_by
2139
2146
  });
2140
2147
  setAttr(dropdown_content, {
2141
- 'aria-labelledby': label_id
2148
+ 'aria-labelledby': labelled_by
2142
2149
  });
2143
2150
  }
2144
2151
  wrapper.style.width = input.style.width;
@@ -2146,10 +2153,15 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2146
2153
  const classes_plugins = 'plugin-' + self.plugins.names.join(' plugin-');
2147
2154
  addClasses([wrapper, dropdown], classes_plugins);
2148
2155
  }
2149
- if ((settings.maxItems === null || settings.maxItems > 1) && self.is_select_tag) {
2150
- setAttr(input, {
2151
- multiple: 'multiple'
2156
+ if (settings.mode === 'multi') {
2157
+ setAttr(dropdown_content, {
2158
+ 'aria-multiselectable': 'true'
2152
2159
  });
2160
+ if (self.is_select_tag) {
2161
+ setAttr(input, {
2162
+ multiple: 'multiple'
2163
+ });
2164
+ }
2153
2165
  }
2154
2166
  if (settings.placeholder) {
2155
2167
  setAttr(control_input, {
@@ -2805,7 +2817,7 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2805
2817
  *
2806
2818
  */
2807
2819
  getValue() {
2808
- if (this.is_select_tag && this.input.hasAttribute('multiple')) {
2820
+ if (this.settings.mode === 'multi' && this.is_select_tag) {
2809
2821
  return this.items;
2810
2822
  }
2811
2823
  return this.items.join(this.settings.delimiter);
@@ -2938,9 +2950,11 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2938
2950
  setAttr(this.focus_node, {
2939
2951
  'aria-activedescendant': option.getAttribute('id')
2940
2952
  });
2941
- setAttr(option, {
2942
- 'aria-selected': 'true'
2943
- });
2953
+ if (this.settings.mode === 'single' || this.settings.hideSelected) {
2954
+ setAttr(option, {
2955
+ 'aria-selected': 'true'
2956
+ });
2957
+ }
2944
2958
  addClasses(option, 'active');
2945
2959
  if (scroll) this.scrollToOption(option);
2946
2960
  }
@@ -2983,9 +2997,11 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2983
2997
  clearActiveOption() {
2984
2998
  if (this.activeOption) {
2985
2999
  removeClasses(this.activeOption, 'active');
2986
- setAttr(this.activeOption, {
2987
- 'aria-selected': null
2988
- });
3000
+ if (this.settings.mode === 'single' || this.settings.hideSelected) {
3001
+ setAttr(this.activeOption, {
3002
+ 'aria-selected': null
3003
+ });
3004
+ }
2989
3005
  }
2990
3006
  this.activeOption = null;
2991
3007
  setAttr(this.focus_node, {
@@ -3200,10 +3216,16 @@ class TomSelect extends MicroPlugin(MicroEvent) {
3200
3216
  if (option === undefined) continue;
3201
3217
  let opt_hash = get_hash(opt_value);
3202
3218
  let option_el = self.getOption(opt_hash, true);
3219
+ const option_selected = self.items.includes(opt_hash);
3203
3220
 
3204
3221
  // toggle 'selected' class
3205
3222
  if (!self.settings.hideSelected) {
3206
- option_el.classList.toggle('selected', self.items.includes(opt_hash));
3223
+ option_el.classList.toggle('selected', option_selected);
3224
+ if (this.settings.mode === 'multi') {
3225
+ setAttr(option_el, {
3226
+ 'aria-selected': option_selected ? 'true' : 'false'
3227
+ });
3228
+ }
3207
3229
  }
3208
3230
  optgroup = option[self.settings.optgroupField] || '';
3209
3231
  optgroups = Array.isArray(optgroup) ? optgroup : [optgroup];
@@ -3221,10 +3243,17 @@ class TomSelect extends MicroPlugin(MicroEvent) {
3221
3243
  // nodes can only have one parent, so if the option is in mutple groups, we need a clone
3222
3244
  if (j > 0) {
3223
3245
  option_el = option_el.cloneNode(true);
3224
- setAttr(option_el, {
3225
- id: option.$id + '-clone-' + j,
3226
- 'aria-selected': null
3227
- });
3246
+ if (this.settings.mode === 'multi' && !self.settings.hideSelected) {
3247
+ setAttr(option_el, {
3248
+ id: option.$id + '-clone-' + j,
3249
+ 'aria-selected': option_selected ? 'true' : 'false'
3250
+ });
3251
+ } else {
3252
+ setAttr(option_el, {
3253
+ id: option.$id + '-clone-' + j,
3254
+ 'aria-selected': null
3255
+ });
3256
+ }
3228
3257
  option_el.classList.add('ts-cloned');
3229
3258
  removeClasses(option_el, 'active');
3230
3259
 
@@ -2128,17 +2128,24 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2128
2128
  const query = "label[for='" + escapeQuery(self.inputId) + "']";
2129
2129
  const label = document.querySelector(query);
2130
2130
  const label_click = self.focus.bind(self);
2131
+ const labelled_by = input.getAttribute('aria-labelledby');
2131
2132
  if (label) {
2132
2133
  addEvent(label, 'click', label_click);
2133
2134
  setAttr(label, {
2134
2135
  for: control_id
2135
2136
  });
2136
- const label_id = getId(label, self.inputId + '-ts-label');
2137
+
2138
+ // const label_id = getId(label,self.inputId+'-ts-label');
2139
+ // setAttr(focus_node,{'aria-labelledby':label_id});
2140
+ // setAttr(dropdown_content,{'aria-labelledby':label_id});
2141
+ }
2142
+
2143
+ if (labelled_by) {
2137
2144
  setAttr(focus_node, {
2138
- 'aria-labelledby': label_id
2145
+ 'aria-labelledby': labelled_by
2139
2146
  });
2140
2147
  setAttr(dropdown_content, {
2141
- 'aria-labelledby': label_id
2148
+ 'aria-labelledby': labelled_by
2142
2149
  });
2143
2150
  }
2144
2151
  wrapper.style.width = input.style.width;
@@ -2146,10 +2153,15 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2146
2153
  const classes_plugins = 'plugin-' + self.plugins.names.join(' plugin-');
2147
2154
  addClasses([wrapper, dropdown], classes_plugins);
2148
2155
  }
2149
- if ((settings.maxItems === null || settings.maxItems > 1) && self.is_select_tag) {
2150
- setAttr(input, {
2151
- multiple: 'multiple'
2156
+ if (settings.mode === 'multi') {
2157
+ setAttr(dropdown_content, {
2158
+ 'aria-multiselectable': 'true'
2152
2159
  });
2160
+ if (self.is_select_tag) {
2161
+ setAttr(input, {
2162
+ multiple: 'multiple'
2163
+ });
2164
+ }
2153
2165
  }
2154
2166
  if (settings.placeholder) {
2155
2167
  setAttr(control_input, {
@@ -2805,7 +2817,7 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2805
2817
  *
2806
2818
  */
2807
2819
  getValue() {
2808
- if (this.is_select_tag && this.input.hasAttribute('multiple')) {
2820
+ if (this.settings.mode === 'multi' && this.is_select_tag) {
2809
2821
  return this.items;
2810
2822
  }
2811
2823
  return this.items.join(this.settings.delimiter);
@@ -2938,9 +2950,11 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2938
2950
  setAttr(this.focus_node, {
2939
2951
  'aria-activedescendant': option.getAttribute('id')
2940
2952
  });
2941
- setAttr(option, {
2942
- 'aria-selected': 'true'
2943
- });
2953
+ if (this.settings.mode === 'single' || this.settings.hideSelected) {
2954
+ setAttr(option, {
2955
+ 'aria-selected': 'true'
2956
+ });
2957
+ }
2944
2958
  addClasses(option, 'active');
2945
2959
  if (scroll) this.scrollToOption(option);
2946
2960
  }
@@ -2983,9 +2997,11 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2983
2997
  clearActiveOption() {
2984
2998
  if (this.activeOption) {
2985
2999
  removeClasses(this.activeOption, 'active');
2986
- setAttr(this.activeOption, {
2987
- 'aria-selected': null
2988
- });
3000
+ if (this.settings.mode === 'single' || this.settings.hideSelected) {
3001
+ setAttr(this.activeOption, {
3002
+ 'aria-selected': null
3003
+ });
3004
+ }
2989
3005
  }
2990
3006
  this.activeOption = null;
2991
3007
  setAttr(this.focus_node, {
@@ -3200,10 +3216,16 @@ class TomSelect extends MicroPlugin(MicroEvent) {
3200
3216
  if (option === undefined) continue;
3201
3217
  let opt_hash = get_hash(opt_value);
3202
3218
  let option_el = self.getOption(opt_hash, true);
3219
+ const option_selected = self.items.includes(opt_hash);
3203
3220
 
3204
3221
  // toggle 'selected' class
3205
3222
  if (!self.settings.hideSelected) {
3206
- option_el.classList.toggle('selected', self.items.includes(opt_hash));
3223
+ option_el.classList.toggle('selected', option_selected);
3224
+ if (this.settings.mode === 'multi') {
3225
+ setAttr(option_el, {
3226
+ 'aria-selected': option_selected ? 'true' : 'false'
3227
+ });
3228
+ }
3207
3229
  }
3208
3230
  optgroup = option[self.settings.optgroupField] || '';
3209
3231
  optgroups = Array.isArray(optgroup) ? optgroup : [optgroup];
@@ -3221,10 +3243,17 @@ class TomSelect extends MicroPlugin(MicroEvent) {
3221
3243
  // nodes can only have one parent, so if the option is in mutple groups, we need a clone
3222
3244
  if (j > 0) {
3223
3245
  option_el = option_el.cloneNode(true);
3224
- setAttr(option_el, {
3225
- id: option.$id + '-clone-' + j,
3226
- 'aria-selected': null
3227
- });
3246
+ if (this.settings.mode === 'multi' && !self.settings.hideSelected) {
3247
+ setAttr(option_el, {
3248
+ id: option.$id + '-clone-' + j,
3249
+ 'aria-selected': option_selected ? 'true' : 'false'
3250
+ });
3251
+ } else {
3252
+ setAttr(option_el, {
3253
+ id: option.$id + '-clone-' + j,
3254
+ 'aria-selected': null
3255
+ });
3256
+ }
3228
3257
  option_el.classList.add('ts-cloned');
3229
3258
  removeClasses(option_el, 'active');
3230
3259
 
@@ -2128,17 +2128,24 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2128
2128
  const query = "label[for='" + escapeQuery(self.inputId) + "']";
2129
2129
  const label = document.querySelector(query);
2130
2130
  const label_click = self.focus.bind(self);
2131
+ const labelled_by = input.getAttribute('aria-labelledby');
2131
2132
  if (label) {
2132
2133
  addEvent(label, 'click', label_click);
2133
2134
  setAttr(label, {
2134
2135
  for: control_id
2135
2136
  });
2136
- const label_id = getId(label, self.inputId + '-ts-label');
2137
+
2138
+ // const label_id = getId(label,self.inputId+'-ts-label');
2139
+ // setAttr(focus_node,{'aria-labelledby':label_id});
2140
+ // setAttr(dropdown_content,{'aria-labelledby':label_id});
2141
+ }
2142
+
2143
+ if (labelled_by) {
2137
2144
  setAttr(focus_node, {
2138
- 'aria-labelledby': label_id
2145
+ 'aria-labelledby': labelled_by
2139
2146
  });
2140
2147
  setAttr(dropdown_content, {
2141
- 'aria-labelledby': label_id
2148
+ 'aria-labelledby': labelled_by
2142
2149
  });
2143
2150
  }
2144
2151
  wrapper.style.width = input.style.width;
@@ -2146,10 +2153,15 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2146
2153
  const classes_plugins = 'plugin-' + self.plugins.names.join(' plugin-');
2147
2154
  addClasses([wrapper, dropdown], classes_plugins);
2148
2155
  }
2149
- if ((settings.maxItems === null || settings.maxItems > 1) && self.is_select_tag) {
2150
- setAttr(input, {
2151
- multiple: 'multiple'
2156
+ if (settings.mode === 'multi') {
2157
+ setAttr(dropdown_content, {
2158
+ 'aria-multiselectable': 'true'
2152
2159
  });
2160
+ if (self.is_select_tag) {
2161
+ setAttr(input, {
2162
+ multiple: 'multiple'
2163
+ });
2164
+ }
2153
2165
  }
2154
2166
  if (settings.placeholder) {
2155
2167
  setAttr(control_input, {
@@ -2805,7 +2817,7 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2805
2817
  *
2806
2818
  */
2807
2819
  getValue() {
2808
- if (this.is_select_tag && this.input.hasAttribute('multiple')) {
2820
+ if (this.settings.mode === 'multi' && this.is_select_tag) {
2809
2821
  return this.items;
2810
2822
  }
2811
2823
  return this.items.join(this.settings.delimiter);
@@ -2938,9 +2950,11 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2938
2950
  setAttr(this.focus_node, {
2939
2951
  'aria-activedescendant': option.getAttribute('id')
2940
2952
  });
2941
- setAttr(option, {
2942
- 'aria-selected': 'true'
2943
- });
2953
+ if (this.settings.mode === 'single' || this.settings.hideSelected) {
2954
+ setAttr(option, {
2955
+ 'aria-selected': 'true'
2956
+ });
2957
+ }
2944
2958
  addClasses(option, 'active');
2945
2959
  if (scroll) this.scrollToOption(option);
2946
2960
  }
@@ -2983,9 +2997,11 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2983
2997
  clearActiveOption() {
2984
2998
  if (this.activeOption) {
2985
2999
  removeClasses(this.activeOption, 'active');
2986
- setAttr(this.activeOption, {
2987
- 'aria-selected': null
2988
- });
3000
+ if (this.settings.mode === 'single' || this.settings.hideSelected) {
3001
+ setAttr(this.activeOption, {
3002
+ 'aria-selected': null
3003
+ });
3004
+ }
2989
3005
  }
2990
3006
  this.activeOption = null;
2991
3007
  setAttr(this.focus_node, {
@@ -3200,10 +3216,16 @@ class TomSelect extends MicroPlugin(MicroEvent) {
3200
3216
  if (option === undefined) continue;
3201
3217
  let opt_hash = get_hash(opt_value);
3202
3218
  let option_el = self.getOption(opt_hash, true);
3219
+ const option_selected = self.items.includes(opt_hash);
3203
3220
 
3204
3221
  // toggle 'selected' class
3205
3222
  if (!self.settings.hideSelected) {
3206
- option_el.classList.toggle('selected', self.items.includes(opt_hash));
3223
+ option_el.classList.toggle('selected', option_selected);
3224
+ if (this.settings.mode === 'multi') {
3225
+ setAttr(option_el, {
3226
+ 'aria-selected': option_selected ? 'true' : 'false'
3227
+ });
3228
+ }
3207
3229
  }
3208
3230
  optgroup = option[self.settings.optgroupField] || '';
3209
3231
  optgroups = Array.isArray(optgroup) ? optgroup : [optgroup];
@@ -3221,10 +3243,17 @@ class TomSelect extends MicroPlugin(MicroEvent) {
3221
3243
  // nodes can only have one parent, so if the option is in mutple groups, we need a clone
3222
3244
  if (j > 0) {
3223
3245
  option_el = option_el.cloneNode(true);
3224
- setAttr(option_el, {
3225
- id: option.$id + '-clone-' + j,
3226
- 'aria-selected': null
3227
- });
3246
+ if (this.settings.mode === 'multi' && !self.settings.hideSelected) {
3247
+ setAttr(option_el, {
3248
+ id: option.$id + '-clone-' + j,
3249
+ 'aria-selected': option_selected ? 'true' : 'false'
3250
+ });
3251
+ } else {
3252
+ setAttr(option_el, {
3253
+ id: option.$id + '-clone-' + j,
3254
+ 'aria-selected': null
3255
+ });
3256
+ }
3228
3257
  option_el.classList.add('ts-cloned');
3229
3258
  removeClasses(option_el, 'active');
3230
3259
 
@@ -2126,17 +2126,24 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2126
2126
  const query = "label[for='" + escapeQuery(self.inputId) + "']";
2127
2127
  const label = document.querySelector(query);
2128
2128
  const label_click = self.focus.bind(self);
2129
+ const labelled_by = input.getAttribute('aria-labelledby');
2129
2130
  if (label) {
2130
2131
  addEvent(label, 'click', label_click);
2131
2132
  setAttr(label, {
2132
2133
  for: control_id
2133
2134
  });
2134
- const label_id = getId(label, self.inputId + '-ts-label');
2135
+
2136
+ // const label_id = getId(label,self.inputId+'-ts-label');
2137
+ // setAttr(focus_node,{'aria-labelledby':label_id});
2138
+ // setAttr(dropdown_content,{'aria-labelledby':label_id});
2139
+ }
2140
+
2141
+ if (labelled_by) {
2135
2142
  setAttr(focus_node, {
2136
- 'aria-labelledby': label_id
2143
+ 'aria-labelledby': labelled_by
2137
2144
  });
2138
2145
  setAttr(dropdown_content, {
2139
- 'aria-labelledby': label_id
2146
+ 'aria-labelledby': labelled_by
2140
2147
  });
2141
2148
  }
2142
2149
  wrapper.style.width = input.style.width;
@@ -2144,10 +2151,15 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2144
2151
  const classes_plugins = 'plugin-' + self.plugins.names.join(' plugin-');
2145
2152
  addClasses([wrapper, dropdown], classes_plugins);
2146
2153
  }
2147
- if ((settings.maxItems === null || settings.maxItems > 1) && self.is_select_tag) {
2148
- setAttr(input, {
2149
- multiple: 'multiple'
2154
+ if (settings.mode === 'multi') {
2155
+ setAttr(dropdown_content, {
2156
+ 'aria-multiselectable': 'true'
2150
2157
  });
2158
+ if (self.is_select_tag) {
2159
+ setAttr(input, {
2160
+ multiple: 'multiple'
2161
+ });
2162
+ }
2151
2163
  }
2152
2164
  if (settings.placeholder) {
2153
2165
  setAttr(control_input, {
@@ -2803,7 +2815,7 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2803
2815
  *
2804
2816
  */
2805
2817
  getValue() {
2806
- if (this.is_select_tag && this.input.hasAttribute('multiple')) {
2818
+ if (this.settings.mode === 'multi' && this.is_select_tag) {
2807
2819
  return this.items;
2808
2820
  }
2809
2821
  return this.items.join(this.settings.delimiter);
@@ -2936,9 +2948,11 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2936
2948
  setAttr(this.focus_node, {
2937
2949
  'aria-activedescendant': option.getAttribute('id')
2938
2950
  });
2939
- setAttr(option, {
2940
- 'aria-selected': 'true'
2941
- });
2951
+ if (this.settings.mode === 'single' || this.settings.hideSelected) {
2952
+ setAttr(option, {
2953
+ 'aria-selected': 'true'
2954
+ });
2955
+ }
2942
2956
  addClasses(option, 'active');
2943
2957
  if (scroll) this.scrollToOption(option);
2944
2958
  }
@@ -2981,9 +2995,11 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2981
2995
  clearActiveOption() {
2982
2996
  if (this.activeOption) {
2983
2997
  removeClasses(this.activeOption, 'active');
2984
- setAttr(this.activeOption, {
2985
- 'aria-selected': null
2986
- });
2998
+ if (this.settings.mode === 'single' || this.settings.hideSelected) {
2999
+ setAttr(this.activeOption, {
3000
+ 'aria-selected': null
3001
+ });
3002
+ }
2987
3003
  }
2988
3004
  this.activeOption = null;
2989
3005
  setAttr(this.focus_node, {
@@ -3198,10 +3214,16 @@ class TomSelect extends MicroPlugin(MicroEvent) {
3198
3214
  if (option === undefined) continue;
3199
3215
  let opt_hash = get_hash(opt_value);
3200
3216
  let option_el = self.getOption(opt_hash, true);
3217
+ const option_selected = self.items.includes(opt_hash);
3201
3218
 
3202
3219
  // toggle 'selected' class
3203
3220
  if (!self.settings.hideSelected) {
3204
- option_el.classList.toggle('selected', self.items.includes(opt_hash));
3221
+ option_el.classList.toggle('selected', option_selected);
3222
+ if (this.settings.mode === 'multi') {
3223
+ setAttr(option_el, {
3224
+ 'aria-selected': option_selected ? 'true' : 'false'
3225
+ });
3226
+ }
3205
3227
  }
3206
3228
  optgroup = option[self.settings.optgroupField] || '';
3207
3229
  optgroups = Array.isArray(optgroup) ? optgroup : [optgroup];
@@ -3219,10 +3241,17 @@ class TomSelect extends MicroPlugin(MicroEvent) {
3219
3241
  // nodes can only have one parent, so if the option is in mutple groups, we need a clone
3220
3242
  if (j > 0) {
3221
3243
  option_el = option_el.cloneNode(true);
3222
- setAttr(option_el, {
3223
- id: option.$id + '-clone-' + j,
3224
- 'aria-selected': null
3225
- });
3244
+ if (this.settings.mode === 'multi' && !self.settings.hideSelected) {
3245
+ setAttr(option_el, {
3246
+ id: option.$id + '-clone-' + j,
3247
+ 'aria-selected': option_selected ? 'true' : 'false'
3248
+ });
3249
+ } else {
3250
+ setAttr(option_el, {
3251
+ id: option.$id + '-clone-' + j,
3252
+ 'aria-selected': null
3253
+ });
3254
+ }
3226
3255
  option_el.classList.add('ts-cloned');
3227
3256
  removeClasses(option_el, 'active');
3228
3257
 
@@ -2126,17 +2126,24 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2126
2126
  const query = "label[for='" + escapeQuery(self.inputId) + "']";
2127
2127
  const label = document.querySelector(query);
2128
2128
  const label_click = self.focus.bind(self);
2129
+ const labelled_by = input.getAttribute('aria-labelledby');
2129
2130
  if (label) {
2130
2131
  addEvent(label, 'click', label_click);
2131
2132
  setAttr(label, {
2132
2133
  for: control_id
2133
2134
  });
2134
- const label_id = getId(label, self.inputId + '-ts-label');
2135
+
2136
+ // const label_id = getId(label,self.inputId+'-ts-label');
2137
+ // setAttr(focus_node,{'aria-labelledby':label_id});
2138
+ // setAttr(dropdown_content,{'aria-labelledby':label_id});
2139
+ }
2140
+
2141
+ if (labelled_by) {
2135
2142
  setAttr(focus_node, {
2136
- 'aria-labelledby': label_id
2143
+ 'aria-labelledby': labelled_by
2137
2144
  });
2138
2145
  setAttr(dropdown_content, {
2139
- 'aria-labelledby': label_id
2146
+ 'aria-labelledby': labelled_by
2140
2147
  });
2141
2148
  }
2142
2149
  wrapper.style.width = input.style.width;
@@ -2144,10 +2151,15 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2144
2151
  const classes_plugins = 'plugin-' + self.plugins.names.join(' plugin-');
2145
2152
  addClasses([wrapper, dropdown], classes_plugins);
2146
2153
  }
2147
- if ((settings.maxItems === null || settings.maxItems > 1) && self.is_select_tag) {
2148
- setAttr(input, {
2149
- multiple: 'multiple'
2154
+ if (settings.mode === 'multi') {
2155
+ setAttr(dropdown_content, {
2156
+ 'aria-multiselectable': 'true'
2150
2157
  });
2158
+ if (self.is_select_tag) {
2159
+ setAttr(input, {
2160
+ multiple: 'multiple'
2161
+ });
2162
+ }
2151
2163
  }
2152
2164
  if (settings.placeholder) {
2153
2165
  setAttr(control_input, {
@@ -2803,7 +2815,7 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2803
2815
  *
2804
2816
  */
2805
2817
  getValue() {
2806
- if (this.is_select_tag && this.input.hasAttribute('multiple')) {
2818
+ if (this.settings.mode === 'multi' && this.is_select_tag) {
2807
2819
  return this.items;
2808
2820
  }
2809
2821
  return this.items.join(this.settings.delimiter);
@@ -2936,9 +2948,11 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2936
2948
  setAttr(this.focus_node, {
2937
2949
  'aria-activedescendant': option.getAttribute('id')
2938
2950
  });
2939
- setAttr(option, {
2940
- 'aria-selected': 'true'
2941
- });
2951
+ if (this.settings.mode === 'single' || this.settings.hideSelected) {
2952
+ setAttr(option, {
2953
+ 'aria-selected': 'true'
2954
+ });
2955
+ }
2942
2956
  addClasses(option, 'active');
2943
2957
  if (scroll) this.scrollToOption(option);
2944
2958
  }
@@ -2981,9 +2995,11 @@ class TomSelect extends MicroPlugin(MicroEvent) {
2981
2995
  clearActiveOption() {
2982
2996
  if (this.activeOption) {
2983
2997
  removeClasses(this.activeOption, 'active');
2984
- setAttr(this.activeOption, {
2985
- 'aria-selected': null
2986
- });
2998
+ if (this.settings.mode === 'single' || this.settings.hideSelected) {
2999
+ setAttr(this.activeOption, {
3000
+ 'aria-selected': null
3001
+ });
3002
+ }
2987
3003
  }
2988
3004
  this.activeOption = null;
2989
3005
  setAttr(this.focus_node, {
@@ -3198,10 +3214,16 @@ class TomSelect extends MicroPlugin(MicroEvent) {
3198
3214
  if (option === undefined) continue;
3199
3215
  let opt_hash = get_hash(opt_value);
3200
3216
  let option_el = self.getOption(opt_hash, true);
3217
+ const option_selected = self.items.includes(opt_hash);
3201
3218
 
3202
3219
  // toggle 'selected' class
3203
3220
  if (!self.settings.hideSelected) {
3204
- option_el.classList.toggle('selected', self.items.includes(opt_hash));
3221
+ option_el.classList.toggle('selected', option_selected);
3222
+ if (this.settings.mode === 'multi') {
3223
+ setAttr(option_el, {
3224
+ 'aria-selected': option_selected ? 'true' : 'false'
3225
+ });
3226
+ }
3205
3227
  }
3206
3228
  optgroup = option[self.settings.optgroupField] || '';
3207
3229
  optgroups = Array.isArray(optgroup) ? optgroup : [optgroup];
@@ -3219,10 +3241,17 @@ class TomSelect extends MicroPlugin(MicroEvent) {
3219
3241
  // nodes can only have one parent, so if the option is in mutple groups, we need a clone
3220
3242
  if (j > 0) {
3221
3243
  option_el = option_el.cloneNode(true);
3222
- setAttr(option_el, {
3223
- id: option.$id + '-clone-' + j,
3224
- 'aria-selected': null
3225
- });
3244
+ if (this.settings.mode === 'multi' && !self.settings.hideSelected) {
3245
+ setAttr(option_el, {
3246
+ id: option.$id + '-clone-' + j,
3247
+ 'aria-selected': option_selected ? 'true' : 'false'
3248
+ });
3249
+ } else {
3250
+ setAttr(option_el, {
3251
+ id: option.$id + '-clone-' + j,
3252
+ 'aria-selected': null
3253
+ });
3254
+ }
3226
3255
  option_el.classList.add('ts-cloned');
3227
3256
  removeClasses(option_el, 'active');
3228
3257