@topvisor/ui 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (536) hide show
  1. package/.chunks/core-CXqQSo9c.amd.js +2 -0
  2. package/.chunks/core-CXqQSo9c.amd.js.map +1 -0
  3. package/.chunks/{core-Dsl28h7N.es.js → core-CY6RkZz2.es.js} +47 -46
  4. package/.chunks/core-CY6RkZz2.es.js.map +1 -0
  5. package/.chunks/{datepicker-BTiE5Grw.es.js → datepicker-BiaXdEIn.es.js} +2 -2
  6. package/.chunks/datepicker-BiaXdEIn.es.js.map +1 -0
  7. package/.chunks/datepicker-DUoArkDy.amd.js +2 -0
  8. package/.chunks/datepicker-DUoArkDy.amd.js.map +1 -0
  9. package/.chunks/dialog_selectorRegions-CPRVbPAk.amd.js +2 -0
  10. package/.chunks/dialog_selectorRegions-CPRVbPAk.amd.js.map +1 -0
  11. package/.chunks/dialog_selectorRegions-Zlm6K2mk.es.js +188 -0
  12. package/.chunks/dialog_selectorRegions-Zlm6K2mk.es.js.map +1 -0
  13. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js +322 -0
  14. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js.map +1 -0
  15. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-D8NggYHD.amd.js +2 -0
  16. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-D8NggYHD.amd.js.map +1 -0
  17. package/.chunks/field-Cvv0SRcJ.amd.js +2 -0
  18. package/.chunks/field-Cvv0SRcJ.amd.js.map +1 -0
  19. package/.chunks/field-CyyFzM-Y.es.js +16 -0
  20. package/.chunks/field-CyyFzM-Y.es.js.map +1 -0
  21. package/.chunks/forms-CgtkdwgA.amd.js +3 -0
  22. package/.chunks/forms-CgtkdwgA.amd.js.map +1 -0
  23. package/.chunks/forms-DarRVke_.es.js +2045 -0
  24. package/.chunks/forms-DarRVke_.es.js.map +1 -0
  25. package/.chunks/index-BEI7XZmU.amd.js +2 -0
  26. package/.chunks/index-BEI7XZmU.amd.js.map +1 -0
  27. package/.chunks/index-igPkes8X.es.js +48 -0
  28. package/.chunks/index-igPkes8X.es.js.map +1 -0
  29. package/.chunks/lazy-40pjr8cZ.es.js +71 -0
  30. package/.chunks/lazy-40pjr8cZ.es.js.map +1 -0
  31. package/.chunks/lazy-DSFLxvj4.amd.js +2 -0
  32. package/.chunks/lazy-DSFLxvj4.amd.js.map +1 -0
  33. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CT-EXxJj.amd.js +2 -0
  34. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CT-EXxJj.amd.js.map +1 -0
  35. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js +184 -0
  36. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js.map +1 -0
  37. package/.chunks/menu.vue_vue_type_style_index_0_lang-BLMYjYLV.amd.js +2 -0
  38. package/.chunks/menu.vue_vue_type_style_index_0_lang-BLMYjYLV.amd.js.map +1 -0
  39. package/.chunks/{menu.vue_vue_type_style_index_0_lang-DmY5w4yr.es.js → menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js} +35 -34
  40. package/.chunks/menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js.map +1 -0
  41. package/.chunks/{notice-CJdCc72d.amd.js → notice-CPtAnc7p.amd.js} +3 -3
  42. package/.chunks/notice-CPtAnc7p.amd.js.map +1 -0
  43. package/.chunks/{notice-Cqs1dKt8.es.js → notice-fno9saBY.es.js} +2 -2
  44. package/.chunks/notice-fno9saBY.es.js.map +1 -0
  45. package/.chunks/{page.vue_vue_type_script_setup_true_lang-BCfksgg3.es.js → page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js} +4 -4
  46. package/.chunks/page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js.map +1 -0
  47. package/.chunks/page.vue_vue_type_script_setup_true_lang-DLebrPmi.amd.js +2 -0
  48. package/.chunks/page.vue_vue_type_script_setup_true_lang-DLebrPmi.amd.js.map +1 -0
  49. package/.chunks/popup-AG94kehM.es.js +459 -0
  50. package/.chunks/popup-AG94kehM.es.js.map +1 -0
  51. package/.chunks/popup-CtvJLWn3.amd.js +2 -0
  52. package/.chunks/popup-CtvJLWn3.amd.js.map +1 -0
  53. package/.chunks/punycode.es6-CNOnFR2-.amd.js +2 -0
  54. package/.chunks/{punycode.es6-C2yitnNb.amd.js.map → punycode.es6-CNOnFR2-.amd.js.map} +1 -1
  55. package/.chunks/punycode.es6-CgGegfA_.es.js +134 -0
  56. package/.chunks/{punycode.es6-CNI-zL6U.es.js.map → punycode.es6-CgGegfA_.es.js.map} +1 -1
  57. package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
  58. package/.chunks/store-YRW59xEF.amd.js +2 -0
  59. package/.chunks/store-YRW59xEF.amd.js.map +1 -0
  60. package/.chunks/{utils-B1H3EGkg.es.js → utils-3M9LC_L_.es.js} +2 -2
  61. package/.chunks/utils-3M9LC_L_.es.js.map +1 -0
  62. package/.chunks/utils-BitKP31L.es.js +302 -0
  63. package/.chunks/utils-BitKP31L.es.js.map +1 -0
  64. package/.chunks/utils-D9D3zzjc.amd.js +2 -0
  65. package/.chunks/utils-D9D3zzjc.amd.js.map +1 -0
  66. package/.chunks/utils-DcP4RFmH.amd.js +2 -0
  67. package/.chunks/utils-DcP4RFmH.amd.js.map +1 -0
  68. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-BK-pTu3V.amd.js +2 -0
  69. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-BK-pTu3V.amd.js.map +1 -0
  70. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-xwjgBq1L.es.js +39 -0
  71. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-xwjgBq1L.es.js.map +1 -0
  72. package/.chunks/widgetInput.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js +2 -0
  73. package/.chunks/widgetInput.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js.map +1 -0
  74. package/README.md +82 -82
  75. package/api/additional.amd.js +2 -0
  76. package/api/additional.amd.js.map +1 -0
  77. package/api/additional.d.ts +2 -0
  78. package/api/additional.js +66 -0
  79. package/api/additional.js.map +1 -0
  80. package/api/index.amd.js +2 -0
  81. package/api/index.amd.js.map +1 -0
  82. package/api/index.d.ts +2 -0
  83. package/api/index.js +280 -0
  84. package/api/index.js.map +1 -0
  85. package/assets/core.css +1 -1
  86. package/assets/extra.css +1 -0
  87. package/assets/forms.css +1 -1
  88. package/assets/formsExt.css +1 -1
  89. package/assets/layout.css +1 -1
  90. package/assets/notice.css +1 -1
  91. package/assets/project.css +1 -1
  92. package/assets/themes/dark-th.css +1 -1
  93. package/assets/themes/dark.css +1 -1
  94. package/assets/themes/light.css +1 -1
  95. package/charts/charts.amd.js +1 -1
  96. package/charts/charts.amd.js.map +1 -1
  97. package/charts/charts.d.ts +1 -1
  98. package/charts/charts.js +11 -11
  99. package/charts/charts.js.map +1 -1
  100. package/core/app.amd.js +1 -1
  101. package/core/app.amd.js.map +1 -1
  102. package/core/app.d.ts +2 -8
  103. package/core/app.js +36 -34
  104. package/core/app.js.map +1 -1
  105. package/dialog/dialog.amd.js +1 -1
  106. package/dialog/dialog.amd.js.map +1 -1
  107. package/dialog/dialog.d.ts +1 -1
  108. package/dialog/dialog.js +2 -2
  109. package/dialog/dialog.js.map +1 -1
  110. package/extra/extra.amd.js +2 -0
  111. package/extra/extra.amd.js.map +1 -0
  112. package/extra/extra.d.ts +2 -0
  113. package/extra/extra.js +72 -0
  114. package/extra/extra.js.map +1 -0
  115. package/forms/forms.amd.js +1 -1
  116. package/forms/forms.d.ts +1 -1
  117. package/forms/forms.js +11 -9
  118. package/forms/helpers.amd.js +1 -1
  119. package/forms/helpers.amd.js.map +1 -1
  120. package/forms/helpers.d.ts +0 -1
  121. package/forms/helpers.js +1 -9
  122. package/forms/helpers.js.map +1 -1
  123. package/formsExt/formsExt.amd.js +1 -1
  124. package/formsExt/formsExt.amd.js.map +1 -1
  125. package/formsExt/formsExt.d.ts +1 -1
  126. package/formsExt/formsExt.js +524 -320
  127. package/formsExt/formsExt.js.map +1 -1
  128. package/icomoon/Read Me.txt +7 -7
  129. package/icomoon/demo-files/demo.css +158 -158
  130. package/icomoon/demo-files/demo.js +30 -30
  131. package/icomoon/demo.css +158 -0
  132. package/icomoon/demo.html +3782 -3558
  133. package/icomoon/demo.js +30 -0
  134. package/icomoon/fonts/Topvisor-2.eot +0 -0
  135. package/icomoon/fonts/Topvisor-2.svg +292 -276
  136. package/icomoon/fonts/Topvisor-2.ttf +0 -0
  137. package/icomoon/fonts/Topvisor-2.woff +0 -0
  138. package/icomoon/selection.json +1 -1
  139. package/icomoon/style.css +828 -780
  140. package/jquery-ui.min.css +5 -5
  141. package/layout/layout.amd.js +1 -1
  142. package/layout/layout.amd.js.map +1 -1
  143. package/layout/layout.d.ts +1 -1
  144. package/layout/layout.js +29 -29
  145. package/layout/layout.js.map +1 -1
  146. package/package.json +36 -33
  147. package/popup/popup.amd.js +1 -1
  148. package/popup/popup.amd.js.map +1 -1
  149. package/popup/popup.d.ts +1 -1
  150. package/popup/popup.js +120 -136
  151. package/popup/popup.js.map +1 -1
  152. package/popup/worker.amd.js +1 -1
  153. package/popup/worker.amd.js.map +1 -1
  154. package/popup/worker.d.ts +1 -1
  155. package/popup/worker.js +31 -22
  156. package/popup/worker.js.map +1 -1
  157. package/project/project.amd.js +1 -1
  158. package/project/project.amd.js.map +1 -1
  159. package/project/project.d.ts +1 -1
  160. package/project/project.js +396 -386
  161. package/project/project.js.map +1 -1
  162. package/require/css.amd.js +12 -12
  163. package/src/api/api/additional.d.ts +1 -0
  164. package/src/api/api/client/client.d.ts +55 -0
  165. package/src/api/api/client/request-options.d.ts +1 -0
  166. package/src/api/api/client/request.d.ts +2 -0
  167. package/src/api/api/index.d.ts +12 -0
  168. package/src/api/api/mocker/index.d.ts +9 -0
  169. package/src/api/api/tests/types.test-d.d.ts +1 -0
  170. package/src/api/api/types/api.d.ts +144 -0
  171. package/src/api/api/types/client/client.d.ts +8 -0
  172. package/src/api/api/types/client/middleware.d.ts +65 -0
  173. package/src/api/api/types/client/options.d.ts +60 -0
  174. package/src/api/api/types/client/request-context.d.ts +35 -0
  175. package/src/api/api/types/client/request-options.d.ts +73 -0
  176. package/src/api/api/types/client/request.d.ts +91 -0
  177. package/src/api/api/types/ext.d.ts +51 -0
  178. package/src/api/api/types/field.d.ts +33 -0
  179. package/src/api/api/types/index.d.ts +13 -0
  180. package/src/api/api/types/mocker.d.ts +106 -0
  181. package/src/api/api/types/schema.d.ts +50 -0
  182. package/src/api/api/types/tv.d.ts +59 -0
  183. package/src/api/api/types/utils.d.ts +51 -0
  184. package/src/api/api/utils/common.d.ts +16 -0
  185. package/src/api/api/utils/field.d.ts +8 -0
  186. package/src/api/api/utils/filters.d.ts +48 -0
  187. package/src/api/api/utils/lazy.d.ts +26 -0
  188. package/src/components/charts/charts.d.ts +2 -0
  189. package/{components → src/components}/charts/miniChart/miniChart.vue.d.ts +1 -1
  190. package/{components → src/components}/charts/miniCharts/miniCharts.d.ts +1 -1
  191. package/{components → src/components}/charts/miniCharts/miniCharts.vue.d.ts +1 -1
  192. package/{components → src/components}/core/notice/item/types.d.ts +2 -0
  193. package/{components → src/components}/dialog/dialog/dialogs/dialogs.vue.d.ts +3 -0
  194. package/{components → src/components}/dialog/dialog/page/types.d.ts +2 -2
  195. package/{components → src/components}/dialog/lib/types.d.ts +23 -0
  196. package/src/components/dialog/lib/utils.d.ts +14 -0
  197. package/{components → src/components}/dialog/lib/utils.globalEvents.d.ts +2 -2
  198. package/{components → src/components}/dialog/lib/worker.d.ts +27 -11
  199. package/src/components/extra/extra.d.ts +1 -0
  200. package/src/components/extra/rive/rive.vue.d.ts +11 -0
  201. package/src/components/extra/rive/types.d.ts +7 -0
  202. package/{components → src/components}/forms/avatar/avatar.vue.d.ts +2 -2
  203. package/{components/forms/avatar/avatar.d.ts → src/components/forms/avatar/types.d.ts} +4 -10
  204. package/{components → src/components}/forms/button/button.vue.d.ts +3 -7
  205. package/{components → src/components}/forms/button/types.d.ts +15 -19
  206. package/src/components/forms/caption/caption.vue.d.ts +17 -0
  207. package/src/components/forms/caption/types.d.ts +9 -0
  208. package/{components → src/components}/forms/checkbox/checkbox.vue.d.ts +3 -3
  209. package/{components → src/components}/forms/controlLabel/controlLabel.vue.d.ts +1 -1
  210. package/src/components/forms/forms.d.ts +15 -0
  211. package/src/components/forms/helpers.d.ts +1 -0
  212. package/{components → src/components}/forms/hint/hint.vue.d.ts +1 -1
  213. package/{components → src/components}/forms/input/input.vue.d.ts +2 -3
  214. package/src/components/forms/input/types.d.ts +23 -0
  215. package/{components → src/components}/forms/inputDate/inputDate.vue.d.ts +1 -1
  216. package/src/components/forms/inputDate/types.d.ts +1 -0
  217. package/src/components/forms/preloader/types.d.ts +3 -0
  218. package/{components → src/components}/forms/radio/radio.vue.d.ts +1 -1
  219. package/src/components/forms/select/select.vue.d.ts +17 -0
  220. package/{components/forms/select/select.d.ts → src/components/forms/select/types.d.ts} +3 -3
  221. package/{components → src/components}/forms/switcher/switcher.vue.d.ts +1 -1
  222. package/{components → src/components}/forms/textarea/textarea.vue.d.ts +1 -1
  223. package/{components/forms/textarea/textarea.d.ts → src/components/forms/textarea/types.d.ts} +4 -0
  224. package/{components/formsExt/radioGroup/radioGroup.vue.d.ts → src/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts} +7 -10
  225. package/src/components/formsExt/checkboxGroup/types.d.ts +19 -0
  226. package/{components → src/components}/formsExt/editArea/editArea.vue.d.ts +1 -1
  227. package/{components/formsExt/editArea/editArea.d.ts → src/components/formsExt/editArea/types.d.ts} +1 -1
  228. package/{components → src/components}/formsExt/editInput/editInput.vue.d.ts +1 -1
  229. package/{components/formsExt/editInput/editInput.d.ts → src/components/formsExt/editInput/types.d.ts} +1 -1
  230. package/src/components/formsExt/formsExt.d.ts +8 -0
  231. package/{components → src/components}/formsExt/info/types.d.ts +1 -1
  232. package/{components → src/components}/formsExt/menu/menu.vue.d.ts +1 -1
  233. package/src/components/formsExt/policy/policy.vue.d.ts +8 -0
  234. package/src/components/formsExt/policy/types.d.ts +20 -0
  235. package/{components/forms/select/select.vue.d.ts → src/components/formsExt/radioGroup/radioGroup.vue.d.ts} +4 -6
  236. package/{components/formsExt/radioGroup/radioGroup.d.ts → src/components/formsExt/radioGroup/types.d.ts} +3 -3
  237. package/src/components/formsExt/selector2/composables/useAPI.d.ts +18 -0
  238. package/src/components/formsExt/selector2/composables/useMenu.d.ts +16 -0
  239. package/{components → src/components}/formsExt/selector2/itemMulti.vue.d.ts +1 -1
  240. package/src/components/formsExt/selector2/selector2.vue.d.ts +43 -0
  241. package/{components/formsExt/selector2/selector2.d.ts → src/components/formsExt/selector2/types.d.ts} +66 -34
  242. package/src/components/formsExt/selector2/utils.d.ts +6 -0
  243. package/{components → src/components}/layout/islandRows/types.d.ts +1 -1
  244. package/src/components/layout/layout.d.ts +4 -0
  245. package/src/components/popup/alert/alert.vue.d.ts +25 -0
  246. package/src/components/popup/alert/types.d.ts +8 -0
  247. package/src/components/popup/confirm/confirm.vue.d.ts +26 -0
  248. package/{components/popup/confirm/confirm.d.ts → src/components/popup/confirm/types.d.ts} +3 -3
  249. package/{components → src/components}/popup/lib/popup.d.ts +6 -2
  250. package/{components → src/components}/popup/lib/popup.globalEvents.d.ts +6 -0
  251. package/{components → src/components}/popup/lib/worker.d.ts +8 -6
  252. package/{components → src/components}/popup/popup/listItem.vue.d.ts +1 -1
  253. package/src/components/popup/popup/opener.vue.d.ts +17 -0
  254. package/src/components/popup/popup/popup.vue.d.ts +38 -0
  255. package/{components/popup/popup/popup.d.ts → src/components/popup/popup/types.d.ts} +20 -11
  256. package/{components → src/components}/popup/popup/widgetInput.vue.d.ts +1 -1
  257. package/src/components/popup/popup.d.ts +7 -0
  258. package/src/components/popup/prompt/prompt.vue.d.ts +26 -0
  259. package/{components/popup/prompt/prompt.d.ts → src/components/popup/prompt/types.d.ts} +3 -3
  260. package/src/components/project/project.d.ts +9 -0
  261. package/{components → src/components}/project/selectorCompetitors/composables.d.ts +1 -2
  262. package/{components → src/components}/project/selectorCompetitors/selectorCompetitors.vue.d.ts +1 -1
  263. package/{components/project/selectorCompetitors/selectorCompetitors.d.ts → src/components/project/selectorCompetitors/types.d.ts} +7 -0
  264. package/{components → src/components}/project/selectorRegion/composables/compare.d.ts +1 -1
  265. package/{components → src/components}/project/selectorRegion/composables/selectRegion.d.ts +2 -3
  266. package/{components → src/components}/project/selectorRegion/composables/selectSearcher.d.ts +2 -2
  267. package/{components → src/components}/project/selectorRegion/composables/selectorRegion.d.ts +2 -2
  268. package/{components → src/components}/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +3 -1
  269. package/{components → src/components}/project/selectorRegion/dialog_selectorRegions/types.d.ts +1 -1
  270. package/{components → src/components}/project/selectorRegion/selectorRegion.vue.d.ts +1 -1
  271. package/{components/project/selectorRegion/selectorRegion.d.ts → src/components/project/selectorRegion/types.d.ts} +2 -0
  272. package/src/components/project/selectorRegion/utils/consts.d.ts +31 -0
  273. package/{components → src/components}/project/selectorRegion/utils/utils.d.ts +4 -2
  274. package/{components → src/components}/project/tagSelector/popupOpener/types.d.ts +2 -0
  275. package/src/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +4 -0
  276. package/{components → src/components}/project/tagSelector/types.d.ts +2 -0
  277. package/{components → src/components}/project/tagSelector/utils/el.d.ts +1 -1
  278. package/{components → src/components}/tabs/tabs/content.vue.d.ts +1 -1
  279. package/{components → src/components}/tabs/tabs/tab.vue.d.ts +1 -1
  280. package/{components → src/components}/tabs/tabs/tabs.vue.d.ts +1 -1
  281. package/src/components/tabs/tabs.d.ts +3 -0
  282. package/{components → src/components}/tabsView/tabsView/menu.vue.d.ts +1 -1
  283. package/{components → src/components}/tabsView/tabsView/menuItem.vue.d.ts +1 -1
  284. package/{components → src/components}/tabsView/tabsView/menuTitle.vue.d.ts +1 -1
  285. package/src/components/tabsView/tabsView/store.d.ts +12 -0
  286. package/{components → src/components}/tabsView/tabsView/tabsView.vue.d.ts +1 -1
  287. package/{components/tabsView/tabsView/tabsView.d.ts → src/components/tabsView/tabsView/types.d.ts} +2 -2
  288. package/src/components/tabsView/tabsView.d.ts +3 -0
  289. package/src/core/app.d.ts +8 -0
  290. package/{core → src/core}/core/core.d.ts +1 -1
  291. package/{core → src/core}/core/options.d.ts +7 -6
  292. package/{core → src/core}/core/state.d.ts +1 -1
  293. package/src/core/directives/preloader.d.ts +8 -0
  294. package/{core → src/core}/plugins/core.d.ts +2 -2
  295. package/{core → src/core}/plugins/i18n.d.ts +4 -4
  296. package/{core → src/core}/utils/date.d.ts +30 -12
  297. package/{core → src/core}/utils/dom.d.ts +11 -1
  298. package/{core → src/core}/utils/route.d.ts +1 -1
  299. package/{core → src/core}/utils/searchers.d.ts +1 -1
  300. package/{core → src/core}/utils/store.d.ts +1 -1
  301. package/{core → src/core}/utils/string.d.ts +13 -1
  302. package/tabs/tabs.amd.js +1 -1
  303. package/tabs/tabs.amd.js.map +1 -1
  304. package/tabs/tabs.d.ts +1 -1
  305. package/tabs/tabs.js +14 -14
  306. package/tabs/tabs.js.map +1 -1
  307. package/tabsView/tabsView.amd.js +1 -1
  308. package/tabsView/tabsView.amd.js.map +1 -1
  309. package/tabsView/tabsView.d.ts +1 -1
  310. package/tabsView/tabsView.js +49 -48
  311. package/tabsView/tabsView.js.map +1 -1
  312. package/utils/check.amd.js +1 -1
  313. package/utils/check.amd.js.map +1 -1
  314. package/utils/check.d.ts +1 -1
  315. package/utils/check.js.map +1 -1
  316. package/utils/clipboard.amd.js +2 -2
  317. package/utils/clipboard.amd.js.map +1 -1
  318. package/utils/clipboard.d.ts +1 -1
  319. package/utils/clipboard.js +1 -1
  320. package/utils/clipboard.js.map +1 -1
  321. package/utils/date.amd.js +1 -1
  322. package/utils/date.d.ts +1 -1
  323. package/utils/date.js +4 -3
  324. package/utils/device.amd.js +1 -1
  325. package/utils/device.d.ts +1 -1
  326. package/utils/device.js +4 -4
  327. package/utils/dom.amd.js +1 -1
  328. package/utils/dom.amd.js.map +1 -1
  329. package/utils/dom.d.ts +3 -3
  330. package/utils/dom.js +27 -22
  331. package/utils/dom.js.map +1 -1
  332. package/utils/image.amd.js +2 -2
  333. package/utils/image.amd.js.map +1 -1
  334. package/utils/image.d.ts +1 -1
  335. package/utils/image.js +1 -1
  336. package/utils/image.js.map +1 -1
  337. package/utils/keyboard.amd.js +1 -1
  338. package/utils/keyboard.amd.js.map +1 -1
  339. package/utils/keyboard.d.ts +1 -1
  340. package/utils/keyboard.js.map +1 -1
  341. package/utils/lodash.amd.js +1 -1
  342. package/utils/lodash.d.ts +1 -1
  343. package/utils/lodash.js +1 -1
  344. package/utils/number.amd.js +1 -1
  345. package/utils/number.amd.js.map +1 -1
  346. package/utils/number.d.ts +1 -1
  347. package/utils/number.js.map +1 -1
  348. package/utils/price.amd.js +1 -1
  349. package/utils/price.amd.js.map +1 -1
  350. package/utils/price.d.ts +1 -1
  351. package/utils/price.js +1 -1
  352. package/utils/price.js.map +1 -1
  353. package/utils/route.amd.js +1 -1
  354. package/utils/route.amd.js.map +1 -1
  355. package/utils/route.d.ts +1 -1
  356. package/utils/route.js +26 -19
  357. package/utils/route.js.map +1 -1
  358. package/utils/scroll.amd.js +1 -1
  359. package/utils/scroll.amd.js.map +1 -1
  360. package/utils/scroll.d.ts +1 -1
  361. package/utils/scroll.js.map +1 -1
  362. package/utils/searchers.amd.js +1 -1
  363. package/utils/searchers.amd.js.map +1 -1
  364. package/utils/searchers.d.ts +1 -1
  365. package/utils/searchers.js +3 -3
  366. package/utils/searchers.js.map +1 -1
  367. package/utils/store.amd.js +1 -1
  368. package/utils/store.d.ts +1 -1
  369. package/utils/string.amd.js +1 -1
  370. package/utils/string.amd.js.map +1 -1
  371. package/utils/string.d.ts +1 -1
  372. package/utils/string.js +41 -28
  373. package/utils/string.js.map +1 -1
  374. package/utils/system.amd.js +1 -1
  375. package/utils/system.amd.js.map +1 -1
  376. package/utils/system.d.ts +1 -1
  377. package/utils/system.js.map +1 -1
  378. package/utils/url.amd.js +2 -2
  379. package/utils/url.amd.js.map +1 -1
  380. package/utils/url.d.ts +1 -1
  381. package/utils/url.js +1 -1
  382. package/utils/url.js.map +1 -1
  383. package/web-types.json +130 -130
  384. package/.chunks/core-CcWs0qYw.amd.js +0 -2
  385. package/.chunks/core-CcWs0qYw.amd.js.map +0 -1
  386. package/.chunks/core-Dsl28h7N.es.js.map +0 -1
  387. package/.chunks/datepicker-B6kIyIcw.amd.js +0 -2
  388. package/.chunks/datepicker-B6kIyIcw.amd.js.map +0 -1
  389. package/.chunks/datepicker-BTiE5Grw.es.js.map +0 -1
  390. package/.chunks/dialog_selectorRegions-BZcnnvJM.es.js +0 -140
  391. package/.chunks/dialog_selectorRegions-BZcnnvJM.es.js.map +0 -1
  392. package/.chunks/dialog_selectorRegions-CePGUsCo.amd.js +0 -2
  393. package/.chunks/dialog_selectorRegions-CePGUsCo.amd.js.map +0 -1
  394. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B5hK613K.es.js +0 -266
  395. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B5hK613K.es.js.map +0 -1
  396. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-izSFcRLb.amd.js +0 -2
  397. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-izSFcRLb.amd.js.map +0 -1
  398. package/.chunks/forms-BsuCen2-.es.js +0 -1999
  399. package/.chunks/forms-BsuCen2-.es.js.map +0 -1
  400. package/.chunks/forms-BwGakScF.amd.js +0 -3
  401. package/.chunks/forms-BwGakScF.amd.js.map +0 -1
  402. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CfM8kOV1.amd.js +0 -2
  403. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CfM8kOV1.amd.js.map +0 -1
  404. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CszHDnB0.es.js +0 -181
  405. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CszHDnB0.es.js.map +0 -1
  406. package/.chunks/menu.vue_vue_type_style_index_0_lang-DQTVNJGq.amd.js +0 -2
  407. package/.chunks/menu.vue_vue_type_style_index_0_lang-DQTVNJGq.amd.js.map +0 -1
  408. package/.chunks/menu.vue_vue_type_style_index_0_lang-DmY5w4yr.es.js.map +0 -1
  409. package/.chunks/notice-CJdCc72d.amd.js.map +0 -1
  410. package/.chunks/notice-Cqs1dKt8.es.js.map +0 -1
  411. package/.chunks/page.vue_vue_type_script_setup_true_lang-1JWduCTr.amd.js +0 -2
  412. package/.chunks/page.vue_vue_type_script_setup_true_lang-1JWduCTr.amd.js.map +0 -1
  413. package/.chunks/page.vue_vue_type_script_setup_true_lang-BCfksgg3.es.js.map +0 -1
  414. package/.chunks/popup-CLhWWJDe.amd.js +0 -2
  415. package/.chunks/popup-CLhWWJDe.amd.js.map +0 -1
  416. package/.chunks/popup-N10MDafw.es.js +0 -416
  417. package/.chunks/popup-N10MDafw.es.js.map +0 -1
  418. package/.chunks/punycode.es6-C2yitnNb.amd.js +0 -2
  419. package/.chunks/punycode.es6-CNI-zL6U.es.js +0 -134
  420. package/.chunks/store-esTid5oI.amd.js +0 -2
  421. package/.chunks/store-esTid5oI.amd.js.map +0 -1
  422. package/.chunks/utils-B1H3EGkg.es.js.map +0 -1
  423. package/.chunks/utils-B7GVqGBH.amd.js +0 -2
  424. package/.chunks/utils-B7GVqGBH.amd.js.map +0 -1
  425. package/.chunks/utils-DIy2mbYd.amd.js +0 -2
  426. package/.chunks/utils-DIy2mbYd.amd.js.map +0 -1
  427. package/.chunks/utils-bjr7c5my.es.js +0 -225
  428. package/.chunks/utils-bjr7c5my.es.js.map +0 -1
  429. package/CHANGELOG.md +0 -14
  430. package/components/charts/charts.d.ts +0 -5
  431. package/components/charts/miniChart/stories/dummy.d.ts +0 -13
  432. package/components/charts/miniCharts/stories/dummy.d.ts +0 -6
  433. package/components/dialog/dialog/stories/autoload.d.ts +0 -2
  434. package/components/dialog/lib/utils.d.ts +0 -14
  435. package/components/forms/forms.d.ts +0 -27
  436. package/components/forms/helpers.d.ts +0 -10
  437. package/components/forms/input/input.d.ts +0 -34
  438. package/components/forms/inputDate/inputDate.d.ts +0 -3
  439. package/components/forms/select/stories/exampleOptions.d.ts +0 -5
  440. package/components/formsExt/formsExt.d.ts +0 -13
  441. package/components/formsExt/menu/stories/items.d.ts +0 -3
  442. package/components/formsExt/navigationMenu/navigationMenu.d.ts +0 -24
  443. package/components/formsExt/navigationMenu/stories/items.d.ts +0 -3
  444. package/components/formsExt/selector2/api.d.ts +0 -8
  445. package/components/formsExt/selector2/selector2.vue.d.ts +0 -210
  446. package/components/formsExt/selector2/stories/dummyAPIRequest.d.ts +0 -10
  447. package/components/layout/layout.d.ts +0 -9
  448. package/components/popup/alert/alert.d.ts +0 -8
  449. package/components/popup/alert/alert.vue.d.ts +0 -31
  450. package/components/popup/confirm/confirm.vue.d.ts +0 -33
  451. package/components/popup/popup/opener.vue.d.ts +0 -23
  452. package/components/popup/popup/popup.vue.d.ts +0 -40
  453. package/components/popup/popup.d.ts +0 -15
  454. package/components/popup/prompt/prompt.vue.d.ts +0 -33
  455. package/components/project/project.d.ts +0 -15
  456. package/components/project/selectorCompetitors/stories/items.d.ts +0 -3
  457. package/components/project/selectorCompetitors/types/competitor.d.ts +0 -7
  458. package/components/project/selectorRegion/stories/searchers.d.ts +0 -3
  459. package/components/project/selectorRegion/utils/consts.d.ts +0 -18
  460. package/components/tabs/tabs.d.ts +0 -7
  461. package/components/tabsView/tabsView/store.d.ts +0 -192
  462. package/components/tabsView/tabsView.d.ts +0 -7
  463. package/icomoon/Topvisor icons.json +0 -6260
  464. /package/assets/{popup.css → widgetInput.css} +0 -0
  465. /package/{components/charts/miniChart/miniChart.d.ts → src/components/charts/miniChart/types.d.ts} +0 -0
  466. /package/{components → src/components}/charts/miniChart/utils/consts.d.ts +0 -0
  467. /package/{components → src/components}/core/notice/item/item.vue.d.ts +0 -0
  468. /package/{components → src/components}/core/notice/notice.vue.d.ts +0 -0
  469. /package/{components → src/components}/core/notice/types.d.ts +0 -0
  470. /package/{components → src/components}/core/notice/utils.d.ts +0 -0
  471. /package/{components → src/components}/dialog/dialog/composables/asyncDialogHandle.d.ts +0 -0
  472. /package/{components → src/components}/dialog/dialog/composables/dialogHandle.d.ts +0 -0
  473. /package/{components → src/components}/dialog/dialog/composables/types.d.ts +0 -0
  474. /package/{components → src/components}/dialog/dialog/composables/utils.d.ts +0 -0
  475. /package/{components → src/components}/dialog/dialog/dialog.vue.d.ts +0 -0
  476. /package/{components → src/components}/dialog/dialog/page/page.vue.d.ts +0 -0
  477. /package/{components → src/components}/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -0
  478. /package/{components → src/components}/dialog/dialog/pageComponent/types.d.ts +0 -0
  479. /package/{components → src/components}/dialog/dialog/stories/dialog_example/pages/utils.d.ts +0 -0
  480. /package/{components → src/components}/dialog/dialog/types.d.ts +0 -0
  481. /package/{components → src/components}/dialog/dialog.d.ts +0 -0
  482. /package/{components/forms/checkbox/checkbox.d.ts → src/components/forms/checkbox/types.d.ts} +0 -0
  483. /package/{components/forms/controlLabel/controlLabel.d.ts → src/components/forms/controlLabel/types.d.ts} +0 -0
  484. /package/{components/forms/hint/hint.d.ts → src/components/forms/hint/types.d.ts} +0 -0
  485. /package/{components → src/components}/forms/inputDate/datepicker.d.ts +0 -0
  486. /package/{components → src/components}/forms/inputRange/inputRange.vue.d.ts +0 -0
  487. /package/{components/layout/islandRows/islandRowsRow → src/components/forms/inputRange}/types.d.ts +0 -0
  488. /package/{components → src/components}/forms/loadbar/loadbar.vue.d.ts +0 -0
  489. /package/{components/project/tagSelector/tagIcon/tagIcon.vue.d.ts → src/components/forms/preloader/preloader.vue.d.ts} +0 -0
  490. /package/{components/forms/radio/radio.d.ts → src/components/forms/radio/types.d.ts} +0 -0
  491. /package/{components/forms/switcher/switcher.d.ts → src/components/forms/switcher/types.d.ts} +0 -0
  492. /package/{components → src/components}/formsExt/info/info.vue.d.ts +0 -0
  493. /package/{components/formsExt/menu/menu.d.ts → src/components/formsExt/menu/types.d.ts} +0 -0
  494. /package/{components → src/components}/layout/islandRows/islandRows.vue.d.ts +0 -0
  495. /package/{components → src/components}/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -0
  496. /package/{components/forms/inputRange/inputRange.d.ts → src/components/layout/islandRows/islandRowsRow/types.d.ts} +0 -0
  497. /package/{components → src/components}/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -0
  498. /package/{components → src/components}/layout/rows/rows.vue.d.ts +0 -0
  499. /package/{components → src/components}/layout/rows/types.d.ts +0 -0
  500. /package/{components → src/components}/popup/lib/worker.globalEvents.d.ts +0 -0
  501. /package/{components → src/components}/popup/worker.d.ts +0 -0
  502. /package/{components → src/components}/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -0
  503. /package/{components → src/components}/project/tagSelector/popupListItem/types.d.ts +0 -0
  504. /package/{components → src/components}/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -0
  505. /package/{components → src/components}/project/tagSelector/tagIcon/types.d.ts +0 -0
  506. /package/{components → src/components}/project/tagSelector/tagSelector.vue.d.ts +0 -0
  507. /package/{components → src/components}/project/tagSelector/tagsDefaults.d.ts +0 -0
  508. /package/{components → src/components}/project/tagSelector/utils/utils.d.ts +0 -0
  509. /package/{components/tabs/tabs/tabs.d.ts → src/components/tabs/tabs/types.d.ts} +0 -0
  510. /package/{components → src/components}/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -0
  511. /package/{components → src/components}/tabsView/tabsView/utils.d.ts +0 -0
  512. /package/{core → src/core}/core/events/resize.d.ts +0 -0
  513. /package/{core → src/core}/core/events.d.ts +0 -0
  514. /package/{core → src/core}/core/preloaders.d.ts +0 -0
  515. /package/{core → src/core}/directives/data.d.ts +0 -0
  516. /package/{core → src/core}/directives/focus.d.ts +0 -0
  517. /package/{core → src/core}/directives/scrollIntoView.d.ts +0 -0
  518. /package/{core → src/core}/directives/scrollShadow.d.ts +0 -0
  519. /package/{core → src/core}/directives/sticky.d.ts +0 -0
  520. /package/{core → src/core}/directives/swimUp.d.ts +0 -0
  521. /package/{core → src/core}/directives/tooltip.d.ts +0 -0
  522. /package/{core → src/core}/plugins/piniaTPA.d.ts +0 -0
  523. /package/{core → src/core}/utils/check.d.ts +0 -0
  524. /package/{core → src/core}/utils/clipboard.d.ts +0 -0
  525. /package/{core → src/core}/utils/device.d.ts +0 -0
  526. /package/{core → src/core}/utils/image.d.ts +0 -0
  527. /package/{core → src/core}/utils/keyboard.d.ts +0 -0
  528. /package/{core → src/core}/utils/lodash.d.ts +0 -0
  529. /package/{core → src/core}/utils/number.d.ts +0 -0
  530. /package/{core → src/core}/utils/price.d.ts +0 -0
  531. /package/{core → src/core}/utils/scroll.d.ts +0 -0
  532. /package/{core → src/core}/utils/store/localStorage.d.ts +0 -0
  533. /package/{core → src/core}/utils/store/plugin.d.ts +0 -0
  534. /package/{core → src/core}/utils/store/store.d.ts +0 -0
  535. /package/{core → src/core}/utils/system.d.ts +0 -0
  536. /package/{core → src/core}/utils/url.d.ts +0 -0
@@ -1,12 +1,14 @@
1
- import { Core as te } from "../core/app.js";
2
- import { defineComponent as E, ref as b, computed as z, createElementBlock as h, openBlock as p, normalizeClass as $, createCommentVNode as A, createElementVNode as M, toDisplayString as w, createVNode as R, withKeys as B, withModifiers as S, createBlock as T, createSlots as X, withCtx as k, createTextVNode as L, watch as I, toRef as le, mergeProps as Y, mergeModels as G, useModel as Q, Fragment as N, renderList as D, withDirectives as Z, vModelRadio as ae, resolveDirective as se, unref as O, renderSlot as H } from "vue";
3
- import { w as ne, _ as F, f as re, d as ie, u as ue, C as de } from "../.chunks/forms-BsuCen2-.es.js";
1
+ import { Core as x } from "../core/app.js";
2
+ import { defineComponent as M, ref as B, computed as R, createElementBlock as v, openBlock as d, normalizeClass as I, createCommentVNode as $, createElementVNode as L, toDisplayString as _, createVNode as D, withKeys as G, withModifiers as N, createBlock as w, createSlots as U, withCtx as V, createTextVNode as E, watch as P, toRef as O, mergeProps as W, mergeModels as J, useModel as Y, Fragment as z, renderList as q, withDirectives as Z, vModelRadio as te, resolveDirective as oe, unref as f, renderSlot as X, resolveDynamicComponent as le } from "vue";
3
+ import { q as se, c as F, _ as ae, d as re, u as ne, C as j, r as ie } from "../.chunks/forms-DarRVke_.es.js";
4
+ import { _ as ue, b as H } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js";
5
+ import { _ as de } from "../.chunks/widgetInput.vue_vue_type_script_setup_true_lang-xwjgBq1L.es.js";
6
+ /* empty css */
4
7
  import { invertKeyboardLayout as pe } from "../utils/keyboard.js";
5
- import { TopPopup as ce, TopPopupListItem as j, TopPopupWidgetInput as me } from "../popup/popup.js";
6
- import { _ as fe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-DmY5w4yr.es.js";
7
- const oe = ["../assets/formsExt.css"].map((n) => import.meta.resolve(n));
8
- te.insertCSSLinkToPage(oe, !0);
9
- const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
8
+ import { _ as je } from "../.chunks/menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js";
9
+ const ee = ["../assets/formsExt.css"].map((a) => import.meta.resolve(a));
10
+ x.insertCSSLinkToPage(ee, !0);
11
+ const ce = { class: "top-editArea_footer" }, Ne = /* @__PURE__ */ M({
10
12
  __name: "editArea",
11
13
  props: {
12
14
  defaultValue: { default: "" },
@@ -27,95 +29,98 @@ const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
27
29
  disabled: { type: Boolean },
28
30
  readonly: { type: Boolean },
29
31
  isError: { type: Boolean },
30
- hint: {}
32
+ hint: {},
33
+ maxLength: {}
31
34
  },
32
35
  emits: ["submit", "close", "clickOnTitle"],
33
- setup(n, { emit: s }) {
34
- const e = n, o = s, m = b(e.defaultValue), g = b(e.isFocused), u = z(() => m.value !== e.defaultValue), f = (l) => {
35
- o("submit", l), m.value = e.defaultValue;
36
- }, d = () => {
37
- if (e.forceShowCloseBtn && !u.value) {
36
+ setup(a, { emit: e }) {
37
+ const l = a, o = e, u = B(l.defaultValue), s = B(l.isFocused), r = R(() => u.value !== l.defaultValue), p = (i) => {
38
+ o("submit", i), u.value = l.defaultValue;
39
+ }, c = () => {
40
+ if (l.forceShowCloseBtn && !r.value) {
38
41
  o("close");
39
42
  return;
40
43
  }
41
- m.value = e.defaultValue;
42
- }, v = () => {
43
- e.attachToKeyboard && o("clickOnTitle");
44
+ u.value = l.defaultValue;
45
+ }, C = () => {
46
+ l.attachToKeyboard && o("clickOnTitle");
44
47
  };
45
- return (l, y) => (p(), h("div", {
46
- class: $({
48
+ return (i, y) => (d(), v("div", {
49
+ class: I({
47
50
  "top-editArea": !0,
48
- "top-editArea-attachedToKeyboard": l.attachToKeyboard
51
+ "top-editArea-attachedToKeyboard": i.attachToKeyboard
49
52
  })
50
53
  }, [
51
- l.title ? (p(), h("div", {
54
+ i.title ? (d(), v("div", {
52
55
  key: 0,
53
56
  class: "top-editArea_title",
54
- onClick: y[0] || (y[0] = (r) => v())
55
- }, w(l.title), 1)) : A("", !0),
56
- M("div", {
57
- class: $({
57
+ onClick: y[0] || (y[0] = (k) => C())
58
+ }, _(i.title), 1)) : $("", !0),
59
+ L("div", {
60
+ class: I({
58
61
  "top-editArea_form": !0,
59
- "top-error": l.isError,
60
- "top-focus": g.value
62
+ "top-forms-focusable": !0,
63
+ "top-as-input": !0,
64
+ "top-error": i.isError,
65
+ "top-focus": s.value
61
66
  })
62
67
  }, [
63
- R(ne, {
64
- modelValue: m.value,
65
- "onUpdate:modelValue": y[1] || (y[1] = (r) => m.value = r),
66
- name: l.name,
67
- placeholder: l.placeholder,
68
- rows: l.rows,
69
- minHeight: l.minHeight,
70
- expandable: l.expandable,
71
- disabled: l.disabled,
72
- readonly: l.readonly,
73
- isError: l.isError,
74
- hint: l.hint,
68
+ D(se, {
69
+ modelValue: u.value,
70
+ "onUpdate:modelValue": y[1] || (y[1] = (k) => u.value = k),
71
+ name: i.name,
72
+ placeholder: i.placeholder,
73
+ rows: i.rows,
74
+ minHeight: i.minHeight,
75
+ expandable: i.expandable,
76
+ disabled: i.disabled,
77
+ readonly: i.readonly,
78
+ isError: i.isError,
79
+ hint: i.hint,
75
80
  class: "top-editArea_element",
76
- onFocus: y[2] || (y[2] = () => g.value = !0),
77
- onBlur: y[3] || (y[3] = () => g.value = !1),
81
+ onFocus: y[2] || (y[2] = () => s.value = !0),
82
+ onBlur: y[3] || (y[3] = () => s.value = !1),
78
83
  onKeyup: [
79
- B(d, ["esc"]),
80
- y[4] || (y[4] = B(S((r) => f(m.value), ["ctrl"]), ["enter"]))
84
+ G(c, ["esc"]),
85
+ y[4] || (y[4] = G(N((k) => p(u.value), ["ctrl"]), ["enter"]))
81
86
  ]
82
87
  }, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
83
- M("div", ve, [
84
- u.value || l.forceShowCloseBtn ? (p(), T(F, {
88
+ L("div", ce, [
89
+ r.value || i.forceShowCloseBtn ? (d(), w(F, {
85
90
  key: 0,
86
- icon: l.$core.state.isMobile ? "" : "",
91
+ icon: i.$core.state.isMobile ? "" : "",
87
92
  class: "top-editArea_button",
88
93
  color: "theme",
89
94
  styling: "soft",
90
- onClick: d
91
- }, X({ _: 2 }, [
92
- l.$core.state.isMobile ? void 0 : {
95
+ onClick: c
96
+ }, U({ _: 2 }, [
97
+ i.$core.state.isMobile ? void 0 : {
93
98
  name: "default",
94
- fn: k(() => [
95
- L(w(l.cancelText), 1)
99
+ fn: V(() => [
100
+ E(_(i.cancelText), 1)
96
101
  ]),
97
102
  key: "0"
98
103
  }
99
- ]), 1032, ["icon"])) : A("", !0),
100
- u.value ? (p(), T(F, {
104
+ ]), 1032, ["icon"])) : $("", !0),
105
+ r.value ? (d(), w(F, {
101
106
  key: 1,
102
107
  class: "top-editArea_button",
103
- icon: l.$core.state.isMobile ? "" : "",
104
- onClick: y[5] || (y[5] = (r) => f(m.value))
105
- }, X({ _: 2 }, [
106
- l.$core.state.isMobile ? void 0 : {
108
+ icon: i.$core.state.isMobile ? "" : "",
109
+ onClick: y[5] || (y[5] = (k) => p(u.value))
110
+ }, U({ _: 2 }, [
111
+ i.$core.state.isMobile ? void 0 : {
107
112
  name: "default",
108
- fn: k(() => [
109
- L(w(l.submitText), 1)
113
+ fn: V(() => [
114
+ E(_(i.submitText), 1)
110
115
  ]),
111
116
  key: "0"
112
117
  }
113
- ]), 1032, ["icon"])) : A("", !0)
118
+ ]), 1032, ["icon"])) : $("", !0)
114
119
  ])
115
120
  ], 2)
116
121
  ], 2));
117
122
  }
118
- }), he = { class: "top-editInput" }, ge = /* @__PURE__ */ E({
123
+ }), fe = { class: "top-editInput" }, qe = /* @__PURE__ */ M({
119
124
  __name: "editInput",
120
125
  props: {
121
126
  modelValue: {},
@@ -123,34 +128,34 @@ const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
123
128
  button: {}
124
129
  },
125
130
  emits: ["update:modelValue"],
126
- setup(n, { emit: s }) {
127
- const e = n, o = b(e.modelValue);
128
- I(le(e.modelValue), () => {
129
- o.value = e.modelValue;
131
+ setup(a, { emit: e }) {
132
+ const l = a, o = B(l.modelValue);
133
+ P(O(l.modelValue), () => {
134
+ o.value = l.modelValue;
130
135
  });
131
- const m = s, g = () => {
132
- m("update:modelValue", o.value);
136
+ const u = e, s = () => {
137
+ u("update:modelValue", o.value);
133
138
  };
134
- return (u, f) => (p(), h("div", he, [
135
- R(re, Y(u.input, {
136
- onKeydownCapture: f[0] || (f[0] = B(S((d) => o.value = u.modelValue, ["stop"]), ["esc"])),
137
- onKeydown: B(S(g, ["stop"]), ["enter"]),
139
+ return (r, p) => (d(), v("div", fe, [
140
+ D(ae, W(r.input, {
141
+ onKeydownCapture: p[0] || (p[0] = G(N((c) => o.value = r.modelValue, ["stop"]), ["esc"])),
142
+ onKeydown: G(N(s, ["stop"]), ["enter"]),
138
143
  modelValue: o.value,
139
- "onUpdate:modelValue": f[1] || (f[1] = (d) => o.value = d)
144
+ "onUpdate:modelValue": p[1] || (p[1] = (c) => o.value = c)
140
145
  }), null, 16, ["onKeydown", "modelValue"]),
141
- o.value !== u.modelValue ? (p(), T(F, Y({
146
+ o.value !== r.modelValue ? (d(), w(F, W({
142
147
  key: 0,
143
148
  icon: "",
144
149
  styling: "soft"
145
- }, u.button, { onClick: g }), null, 16)) : A("", !0)
150
+ }, r.button, { onClick: s }), null, 16)) : $("", !0)
146
151
  ]));
147
152
  }
148
- }), be = ["data-top-icon", "onClick"], Ve = {
153
+ }), me = ["data-top-icon", "onClick"], ve = {
149
154
  key: 0,
150
155
  class: "top-radioGroup_circle"
151
- }, Ae = ["value", "disabled"], Ce = /* @__PURE__ */ E({
156
+ }, ye = ["value", "disabled"], Fe = /* @__PURE__ */ M({
152
157
  __name: "radioGroup",
153
- props: /* @__PURE__ */ G({
158
+ props: /* @__PURE__ */ J({
154
159
  modelValue: {},
155
160
  radiosProps: {},
156
161
  showIndicator: { type: Boolean },
@@ -162,332 +167,531 @@ const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
162
167
  },
163
168
  modelModifiers: {}
164
169
  }),
165
- emits: /* @__PURE__ */ G(["update:modelValue"], ["update:modelValue"]),
166
- setup(n, { emit: s }) {
167
- const e = Q(n, "modelValue"), o = n, m = b(null);
168
- I(e, () => {
169
- var u, f, d, v, l;
170
- (u = o.radiosProps) != null && u.some((y) => y.value === e.value) || (e.value = ((d = (f = o.radiosProps) == null ? void 0 : f[0]) == null ? void 0 : d.value) ?? ""), (l = (v = m.value) == null ? void 0 : v.querySelector(".radioGroup_item-selected")) == null || l.scrollIntoView();
170
+ emits: ["update:modelValue"],
171
+ setup(a) {
172
+ const e = Y(a, "modelValue"), l = a, o = B(null);
173
+ P(e, () => {
174
+ var s, r, p, c, C;
175
+ (s = l.radiosProps) != null && s.some((i) => i.value === e.value) || (e.value = ((p = (r = l.radiosProps) == null ? void 0 : r[0]) == null ? void 0 : p.value) ?? ""), (C = (c = o.value) == null ? void 0 : c.querySelector(".radioGroup_item-selected")) == null || C.scrollIntoView();
171
176
  }, { immediate: !0 });
172
- const g = "radioGroup-" + Math.random();
173
- return (u, f) => (p(), h("div", {
177
+ const u = "radioGroup-" + Math.random();
178
+ return (s, r) => (d(), v("div", {
174
179
  ref_key: "elRef",
175
- ref: m,
176
- class: $({
180
+ ref: o,
181
+ class: I({
177
182
  "top-radioGroup": !0,
178
183
  "top-scrollBarXHidding": !0,
179
- ["top-size_" + u.size]: !!u.size,
180
- "top-error": u.isError
184
+ ["top-size_" + s.size]: !!s.size,
185
+ "top-error": s.isError
181
186
  })
182
187
  }, [
183
- (p(!0), h(N, null, D(u.radiosProps, (d) => (p(), h("label", {
184
- class: $({
185
- "top-radioGroup_item-selected": d.value === e.value,
188
+ (d(!0), v(z, null, q(s.radiosProps, (p) => (d(), v("label", {
189
+ class: I({
190
+ "top-radioGroup_item-selected": p.value === e.value,
186
191
  "top-radioGroup_item": !0,
187
192
  "top-forms-focusable": !0,
188
- "top-disabled": d.disabled
193
+ "top-disabled": p.disabled
189
194
  }),
190
- "data-top-icon": d.icon,
191
- onClick: (v) => e.value = d.value
195
+ "data-top-icon": p.icon,
196
+ onClick: (c) => e.value = p.value
192
197
  }, [
193
- L(w(d.title) + " ", 1),
194
- u.showIndicator ? (p(), h("span", Ve)) : A("", !0),
195
- Z(M("input", {
196
- "onUpdate:modelValue": f[0] || (f[0] = (v) => e.value = v),
197
- name: g,
198
+ E(_(p.title) + " ", 1),
199
+ s.showIndicator ? (d(), v("span", ve)) : $("", !0),
200
+ Z(L("input", {
201
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => e.value = c),
202
+ name: u,
198
203
  type: "radio",
199
- class: $({
204
+ class: I({
200
205
  "top-unvisible": !0
201
206
  }),
202
- value: d.value,
203
- disabled: d.disabled
204
- }, null, 8, Ae), [
205
- [ae, e.value]
207
+ value: p.value,
208
+ disabled: p.disabled
209
+ }, null, 8, ye), [
210
+ [te, e.value]
206
211
  ])
207
- ], 10, be))), 256))
212
+ ], 10, me))), 256))
208
213
  ], 2));
209
214
  }
210
- }), $e = (n, s, e) => {
211
- const o = b([]), m = b(!1);
212
- let g = "", u;
213
- n && !n.params.limit && (n.params.limit = 100);
214
- const f = async () => {
215
- if (!n) return;
216
- let r, V;
217
- if (e && (n.cache ??= /* @__PURE__ */ new Map(), V = JSON.stringify(n.params), r = n.cache.get(V), r))
218
- return r;
219
- if (m.value = !0, r = await n.call(), m.value = !1, r.errors) return;
220
- if (!Array.isArray(r.result)) {
221
- console.warn("В result ожидался массив");
222
- return;
223
- }
224
- const _ = r.result.findIndex((P) => P.id === void 0 || P.name === void 0);
225
- if (_ !== -1) {
226
- console.warn( result[${_}] нет id или name`);
227
- return;
228
- }
229
- return e && n.cache.set(V, r), r;
230
- }, d = async () => {
231
- if (!n) return;
232
- n.params.offset = 0, n.params.search = g;
233
- const r = await f();
234
- r && (u = r.nextOffset, o.value = r.result);
235
- }, v = async () => {
236
- if (!n || !u || m.value) return;
237
- n.params.offset = u, n.params.search = g;
238
- const r = await f();
239
- r && (u = r.nextOffset, o.value = o.value.concat(r.result));
240
- }, l = ie(() => d(), 200);
241
- return {
242
- items: o,
243
- isLoading: m,
244
- loadAppend: v,
245
- setSearchTextAndLoad: (r, V = !0) => {
246
- n && (r.length < s || r === g && o.value.length || (g = r, V ? l() : d()));
247
- }
248
- };
249
- }, we = { class: "top-selector2_itemMulti top-ellipsis" }, ke = /* @__PURE__ */ E({
215
+ }), he = ["data-top-icon"], be = ["value", "checked", "disabled", "onChange"], He = /* @__PURE__ */ M({
216
+ __name: "checkboxGroup",
217
+ props: /* @__PURE__ */ J({
218
+ modelValue: {},
219
+ items: {},
220
+ size: { default: "s" },
221
+ styling: { default: "outline" },
222
+ isError: { type: Boolean }
223
+ }, {
224
+ modelValue: {
225
+ required: !0
226
+ },
227
+ modelModifiers: {}
228
+ }),
229
+ emits: ["update:modelValue"],
230
+ setup(a) {
231
+ const e = Y(a, "modelValue"), l = (o) => {
232
+ const u = [...e.value], s = u.indexOf(o);
233
+ s === -1 ? u.push(o) : u.splice(s, 1), e.value = u;
234
+ };
235
+ return (o, u) => (d(), v("div", {
236
+ class: I({
237
+ "top-checkboxGroup": !0,
238
+ ["top-checkboxGroup-" + o.styling]: !0,
239
+ "top-scrollBarXHidding": !0,
240
+ ["top-size_" + o.size]: !!o.size,
241
+ "top-error": o.isError
242
+ })
243
+ }, [
244
+ (d(!0), v(z, null, q(o.items, (s) => (d(), v("label", {
245
+ key: s.id,
246
+ class: I({
247
+ "top-checkboxGroup_item": !0,
248
+ "top-checkboxGroup_item-selected": e.value.includes(s.id),
249
+ "top-forms-focusable": !0,
250
+ "top-disabled": s.disabled
251
+ }),
252
+ "data-top-icon": s.icon
253
+ }, [
254
+ L("input", {
255
+ type: "checkbox",
256
+ class: "top-unvisible",
257
+ value: s.id,
258
+ checked: e.value.includes(s.id),
259
+ disabled: s.disabled,
260
+ onChange: (r) => l(s.id)
261
+ }, null, 40, be),
262
+ E(" " + _(s.title), 1)
263
+ ], 10, he))), 128))
264
+ ], 2));
265
+ }
266
+ }), ge = { class: "top-selector2_itemMulti top-ellipsis" }, ke = /* @__PURE__ */ M({
250
267
  __name: "itemMulti",
251
268
  props: {
252
269
  id: {},
253
270
  name: {}
254
271
  },
255
272
  emits: ["delete"],
256
- setup(n) {
257
- return (s, e) => (p(), h("div", we, [
258
- L(w(s.name) + " ", 1),
259
- M("span", {
273
+ setup(a) {
274
+ return (e, l) => (d(), v("div", ge, [
275
+ E(_(e.name) + " ", 1),
276
+ L("span", {
260
277
  class: "top-selector2_itemMultiDelete",
261
278
  "data-top-icon": "",
262
- onClick: e[0] || (e[0] = (o) => s.$emit("delete", s.id)),
263
- onMousedown: e[1] || (e[1] = S(() => {
279
+ onClick: l[0] || (l[0] = (o) => e.$emit("delete", e.id)),
280
+ onMousedown: l[1] || (l[1] = N(() => {
264
281
  }, ["stop"]))
265
282
  }, null, 32)
266
283
  ]));
267
284
  }
268
- }), Te = {
285
+ }), Te = (a, e, l, o) => {
286
+ const u = B([]), s = /* @__PURE__ */ new Map(), r = B(!1);
287
+ let p = "", c;
288
+ a && !a.params.limit && (a.params.limit = 100);
289
+ const C = async () => {
290
+ if (!a) return;
291
+ let h;
292
+ if (o) {
293
+ h = JSON.stringify(a.params);
294
+ const S = s.get(h);
295
+ if (S)
296
+ return S;
297
+ }
298
+ r.value = !0;
299
+ const g = await a.call();
300
+ if (r.value = !1, g.errors) return;
301
+ if (!Array.isArray(g.result)) {
302
+ console.warn("Array expected in `res.result`");
303
+ return;
304
+ }
305
+ const K = g.result.findIndex((S) => S.id === void 0 || S.name === void 0);
306
+ if (K !== -1) {
307
+ console.warn(`В result[${K}] нет id или name`);
308
+ return;
309
+ }
310
+ return h && s.set(h, g), g;
311
+ }, i = async (h) => {
312
+ if (!a) return;
313
+ if (h) {
314
+ if (!c || r.value) return;
315
+ a.params.offset = c;
316
+ } else
317
+ a.params.offset = 0;
318
+ e == null || e(p);
319
+ const g = await C();
320
+ g && (c = g.nextOffset, h ? u.value = u.value.concat(g.result) : u.value = g.result);
321
+ }, y = re(() => i(!1), 200);
322
+ return {
323
+ apiRequest: a,
324
+ items: u,
325
+ isLoading: r,
326
+ load: i,
327
+ setSearchTextAndLoad: (h, g = !0) => {
328
+ a && (h.length < l || h === p && u.value.length || (p = h, g ? y() : i(!1)));
329
+ }
330
+ };
331
+ }, Ae = 0, Q = (a, e, l = !0) => l && e.id === null ? Array.isArray(a) ? a.some((o) => o.id === e.id && o.name === e.name) : e.name === a.name : Array.isArray(a) ? a.some((o) => o.id === e.id) : e.id === a.id, Ce = (a, e, l, o, u, s, r, p) => {
332
+ const c = B(""), C = {
333
+ id: Ae,
334
+ name: ne().Common.All
335
+ }, i = () => {
336
+ c.value = "", p.items.value = [];
337
+ }, y = () => !(!p.apiRequest || s.value !== "inline" || c.value.length >= r), k = R(() => {
338
+ var t;
339
+ const b = [];
340
+ return !l && o.value && b.push(C), (t = e.value) == null || t.forEach((n) => b.push({ ...n })), b;
341
+ }), h = R(() => {
342
+ const b = c.value.toLowerCase(), t = pe(b);
343
+ let n = [];
344
+ return k.value.forEach((T) => {
345
+ const m = T.name.toLowerCase();
346
+ (T.id === Number(b) || m.includes(b) || m.includes(t)) && (m === b || m === t ? n.unshift(T) : n.push(T));
347
+ }), n.push(...p.items.value), u.value && c.value && (!n.length || n[0].name.toLowerCase() !== b) && n.push({
348
+ id: null,
349
+ name: c.value
350
+ }), l && (n = n.filter((T) => !Q(a.value, T))), n;
351
+ });
352
+ return {
353
+ searchText: c,
354
+ resetSearch: i,
355
+ genIsShort: y,
356
+ items: k,
357
+ itemsForShow: h,
358
+ selectItem: (b) => {
359
+ l && Array.isArray(a.value) ? Q(a.value, b) || (a.value = [...a.value, b]) : a.value = b;
360
+ },
361
+ selectNextItem: () => {
362
+ if (!Array.isArray(a.value)) {
363
+ const t = (h.value.findIndex((n) => n.id === a.value.id) + 1) % h.value.length;
364
+ a.value = { ...h.value[t] };
365
+ }
366
+ },
367
+ deleteItemById: async (b) => {
368
+ Array.isArray(a.value) && (a.value = a.value.filter((t) => t.id !== b));
369
+ }
370
+ };
371
+ }, $e = {
269
372
  key: 0,
270
373
  class: "top-selector2_activeItems"
271
- }, Se = {
374
+ }, _e = {
272
375
  key: 1,
273
376
  class: "top-selector2_activeName top-ellipsis"
274
- }, Ie = /* @__PURE__ */ E({
377
+ }, Ve = {
378
+ key: 2,
379
+ class: "top-selector2_placeholder top-ellipsis"
380
+ }, Ue = /* @__PURE__ */ M({
275
381
  __name: "selector2",
276
- props: /* @__PURE__ */ G({
382
+ props: /* @__PURE__ */ J({
277
383
  modelValue: {},
278
384
  items: { default: () => [] },
279
- multiselect: { type: Boolean },
385
+ title: {},
280
386
  disabled: { type: Boolean },
387
+ modificator: {},
281
388
  size: { default: "s" },
282
389
  isError: { type: Boolean },
283
- apiRequest: {},
390
+ searchType: { default: "popup" },
391
+ placeholder: {},
392
+ api: {},
393
+ apiSetSearchParams: {},
284
394
  minLength: { default: 0 },
285
395
  useCache: { type: Boolean },
286
396
  appendSearchToResult: { type: Boolean },
397
+ multiselect: { type: Boolean },
287
398
  appendAllValue: { type: Boolean },
288
399
  addChanger: { type: Boolean },
289
- placeholder: {},
290
- showSelectedInInput: { type: Boolean, default: !0 }
400
+ buttonProps: {},
401
+ selectedAsPlaceholder: { type: Boolean }
291
402
  }, {
292
- modelValue: {},
403
+ modelValue: { required: !0 },
293
404
  modelModifiers: {}
294
405
  }),
295
406
  emits: ["update:modelValue"],
296
- setup(n) {
297
- const s = n, e = Q(n, "modelValue"), o = b(""), m = () => {
298
- o.value = "", v.items.value = [];
299
- }, g = {
300
- id: 0,
301
- name: ue().Common.All
302
- }, u = b(null), f = b(null), d = () => {
407
+ setup(a) {
408
+ const e = a, l = Y(a, "modelValue"), o = R(() => e.searchType === "inline" && e.multiselect || e.searchType === "inline" && j.state.isMobile ? "popup" : e.searchType);
409
+ let u = 0;
410
+ o.value === "inline" && e.minLength && (u = e.minLength);
411
+ const s = Te(e.api, e.apiSetSearchParams, u, e.useCache), r = Ce(
412
+ l,
413
+ O(e, "items"),
414
+ e.multiselect,
415
+ O(e, "appendAllValue"),
416
+ O(e, "appendSearchToResult"),
417
+ o,
418
+ u,
419
+ s
420
+ ), p = R(() => e.buttonProps ? "TopButton" : o.value === "inline" ? "TopInput" : "div"), c = B(null), C = () => {
303
421
  var t;
304
- return (t = u.value) == null ? void 0 : t.popup;
422
+ return (t = c.value) == null ? void 0 : t.popup;
305
423
  };
306
- window.__STORYBOOK_PREVIEW__ && !s.modelValue && I(
307
- () => s.multiselect,
308
- () => {
309
- e.value = s.multiselect ? [] : { id: null, name: "" };
310
- },
311
- { immediate: !0 }
312
- );
313
- const v = $e(s.apiRequest, s.minLength, s.useCache), l = z(() => {
314
- const t = [];
315
- return !s.multiselect && s.appendAllValue && t.push(g), s.items.forEach((a) => t.push({ ...a })), t;
316
- }), y = (t, a = !0) => a && t.id === null ? Array.isArray(e.value) ? e.value.some((c) => c.id === t.id && c.name === t.name) : t.name === e.value.name : Array.isArray(e.value) ? e.value.some((c) => c.id === t.id) : t.id === e.value.id, r = z(() => {
317
- const t = o.value.toLowerCase(), a = pe(t);
318
- let c = [];
319
- return l.value.forEach((i) => {
320
- const C = i.name.toLowerCase();
321
- (i.id === Number(t) || C.includes(t) || C.includes(a)) && (C === t || C === a ? c.unshift(i) : c.push(i));
322
- }), c.push(...v.items.value), s.appendSearchToResult && o.value && (!c.length || c[0].name.toLowerCase() !== t) && c.push({
323
- id: null,
324
- name: o.value
325
- }), s.multiselect && (c = c.filter((i) => !y(i))), c;
326
- }), V = b(v.isLoading.value);
327
- I(v.isLoading, () => {
328
- V.value = v.isLoading.value;
424
+ s.apiRequest && P(r.searchText, () => {
425
+ var t;
426
+ s.setSearchTextAndLoad(r.searchText.value), o.value === "inline" && r.genIsShort() && ((t = C()) == null || t.close());
427
+ }), P(l, () => {
428
+ o.value === "inline" && r.resetSearch();
329
429
  });
330
- const _ = async (t) => {
331
- var a, c;
332
- if (s.multiselect) {
333
- if (!Array.isArray(e.value) || y(t))
334
- return;
335
- s.apiRequest && o.value && (V.value = !0);
336
- const i = [...e.value];
337
- i.push({ ...t }), e.value = i, de.state.isMobile ? (a = d()) == null || a.close() : setTimeout(() => {
338
- var C, U, W, J;
339
- (C = d()) == null || C.recalcPosition(), (J = (W = (U = d()) == null ? void 0 : U.elPopupWidget) == null ? void 0 : W.querySelector("input")) == null || J.focus(), o.value && m();
340
- });
341
- } else
342
- JSON.stringify(t) !== JSON.stringify(e.value) && (e.value = { ...t }), (c = d()) == null || c.close();
343
- }, P = () => {
344
- if (!Array.isArray(e.value)) {
345
- const a = (l.value.findIndex((c) => c.id === e.value.id) + 1) % l.value.length;
346
- e.value = { ...l.value[a] };
430
+ const i = R(() => {
431
+ var t;
432
+ return Array.isArray(l.value) || e.multiselect || !e.selectedAsPlaceholder && o.value !== "inline" ? e.placeholder : ((t = l.value) == null ? void 0 : t.name) || e.placeholder;
433
+ }), y = (t) => {
434
+ var m, A;
435
+ let n = !1;
436
+ switch (t.key) {
437
+ case "Delete":
438
+ case "Backspace":
439
+ Array.isArray(l.value) && (t.preventDefault(), t.stopPropagation(), l.value.pop());
440
+ break;
441
+ case "ArrowUp":
442
+ case "ArrowRight":
443
+ case "ArrowDown":
444
+ case "ArrowLeft":
445
+ case "Enter":
446
+ case " ":
447
+ n = !0;
448
+ break;
449
+ case "Escape":
450
+ o.value === "inline" && r.resetSearch();
451
+ break;
347
452
  }
348
- }, q = async (t) => {
349
- Array.isArray(e.value) && (e.value = e.value.filter((a) => a.id !== t), setTimeout(() => {
350
- var a;
351
- (a = d()) == null || a.recalcPosition();
352
- }));
353
- }, K = b(!1);
354
- s.apiRequest && (I(K, () => {
355
- K.value && v.setSearchTextAndLoad(o.value, !1);
356
- }), I(o, () => v.setSearchTextAndLoad(o.value)));
357
- const x = (t) => {
358
- const a = t.target;
359
- a.scrollTop / (a.scrollHeight - a.offsetHeight) > 0.8 && v.loadAppend();
360
- }, ee = () => {
453
+ const T = t.key.length === 1 && !t.ctrlKey && !t.metaKey;
454
+ (o.value === "popup" || o.value === "inline") && T && (n = !0), (m = C()) != null && m.elPopup && (n = !1), n && (o.value === "popup" && (t.preventDefault(), t.stopPropagation(), T && (r.searchText.value || (r.searchText.value = t.key))), (A = t.currentTarget) == null || A.click());
455
+ };
456
+ let k = !1;
457
+ const h = (t) => {
458
+ var n;
459
+ k || o.value === "inline" && ((n = t.currentTarget) == null || n.click());
460
+ }, g = (t) => {
461
+ var n, T;
462
+ t.preventDefault(), k = !0, (T = (n = t.currentTarget) == null ? void 0 : n.parentElement) == null || T.focus(), k = !1, r.selectNextItem();
463
+ }, K = () => {
361
464
  var t;
362
- K.value = !1, (t = f.value) == null || t.focus(), o.value && m();
465
+ if (k = !0, s.apiRequest) {
466
+ if (r.genIsShort()) {
467
+ (t = C()) == null || t.close();
468
+ return;
469
+ }
470
+ s.setSearchTextAndLoad(r.searchText.value, !1);
471
+ }
472
+ }, S = () => {
473
+ setTimeout(() => {
474
+ k = !1;
475
+ }, 100), o.value === "popup" && r.searchText.value && r.resetSearch();
476
+ }, b = (t) => {
477
+ const n = t.target;
478
+ n.scrollTop / (n.scrollHeight - n.offsetHeight) > 0.8 && s.load(!0);
363
479
  };
364
- return (t, a) => {
365
- const c = se("top-focus");
366
- return p(), T(O(ce), {
480
+ return window.__STORYBOOK_PREVIEW__ && (P(
481
+ () => e.multiselect,
482
+ () => {
483
+ e.multiselect ? Array.isArray(l.value) || (l.value = [
484
+ {
485
+ id: 1,
486
+ name: "Выбери меня"
487
+ }
488
+ ]) : Array.isArray(l.value) && (l.value = {
489
+ id: null,
490
+ name: ""
491
+ });
492
+ },
493
+ { immediate: !0 }
494
+ ), P(
495
+ () => e.searchType,
496
+ () => {
497
+ setTimeout(() => {
498
+ location.reload();
499
+ }, 500);
500
+ }
501
+ )), (t, n) => {
502
+ const T = oe("top-focus");
503
+ return d(), w(f(ue), {
367
504
  ref_key: "popupRef",
368
- ref: u,
369
- onOpen: a[3] || (a[3] = (i) => K.value = !0),
370
- onClose: a[4] || (a[4] = (i) => ee()),
371
- onScrollContentList: a[5] || (a[5] = (i) => t.apiRequest ? x(i) : void 0),
372
- notch: !1,
505
+ ref: c,
506
+ onOpen: n[3] || (n[3] = (m) => K()),
507
+ onClose: n[4] || (n[4] = (m) => S()),
508
+ onScrollContentList: n[5] || (n[5] = (m) => f(s) ? b(m) : void 0),
509
+ notch: o.value !== "inline",
373
510
  transitionDuration: 0
374
- }, {
375
- opener: k(() => [
376
- Z((p(), h("div", {
377
- ref_key: "elRef",
378
- ref: f,
379
- class: $({
511
+ }, U({
512
+ opener: V(() => [
513
+ Z((d(), w(le(p.value), W(t.buttonProps, {
514
+ ref: "subcomponentSelector",
515
+ class: {
380
516
  "top-selector2": !0,
381
517
  "top-selector2-multiselect": t.multiselect,
518
+ ["top-selector2-" + t.modificator]: !!t.modificator,
519
+ "top-as-input": !t.buttonProps,
520
+ "top-as-selector": !0,
382
521
  ["top-size_" + t.size]: !0,
383
522
  "top-disabled": t.disabled,
384
523
  "top-forms-focusable": !t.disabled,
385
524
  "top-error": t.isError
386
- }),
387
- onKeydown: [
388
- a[0] || (a[0] = B(S((i) => i.currentTarget.click(), ["stop", "prevent"]), ["up", "down", "enter", "space"])),
389
- a[1] || (a[1] = B((i) => e.value = [], ["delete"]))
390
- ],
391
- tabindex: "0"
392
- }, [
393
- t.multiselect ? (p(), h("div", Te, [
394
- (p(!0), h(N, null, D(e.value, (i) => (p(), T(ke, {
395
- id: i.id,
396
- name: i.name,
397
- onDelete: q
398
- }, null, 8, ["id", "name"]))), 256))
399
- ])) : A("", !0),
400
- t.multiselect ? A("", !0) : (p(), h("span", Se, w(Array.isArray(e.value) ? "" : e.value.name), 1)),
401
- t.addChanger && !t.multiselect && l.value.length > 1 && !t.disabled ? (p(), h("span", {
402
- key: 2,
403
- class: "top-changer top-changer-selector",
404
- onClick: S(P, ["stop"])
405
- })) : A("", !0)
406
- ], 34)), [
525
+ },
526
+ tabindex: "0",
527
+ onKeydown: y,
528
+ placeholder: i.value,
529
+ modelValue: f(r).searchText.value,
530
+ "onUpdate:modelValue": n[0] || (n[0] = (m) => f(r).searchText.value = m),
531
+ onFocus: h,
532
+ onBlur: n[1] || (n[1] = (m) => {
533
+ var A;
534
+ return (A = C()) != null && A.isClosed ? f(r).resetSearch() : "";
535
+ })
536
+ }), {
537
+ default: V(() => [
538
+ t.multiselect ? (d(), v("div", $e, [
539
+ (d(!0), v(z, null, q(l.value, (m) => (d(), w(ke, {
540
+ id: m.id,
541
+ name: m.name,
542
+ onDelete: f(r).deleteItemById
543
+ }, null, 8, ["id", "name", "onDelete"]))), 256))
544
+ ])) : $("", !0),
545
+ o.value !== "inline" && !t.multiselect ? (d(), v("span", _e, _(Array.isArray(l.value) ? "" : l.value.name), 1)) : $("", !0),
546
+ t.multiselect && !l.value.length ? (d(), v("span", Ve, _(i.value), 1)) : $("", !0),
547
+ t.addChanger && !t.buttonProps && !t.multiselect && f(r).items.value.length > 1 && !t.disabled ? (d(), v("span", {
548
+ key: 3,
549
+ class: "top-changer top-changer-selector top-popup_widget",
550
+ "data-top-popup-disabled": "true",
551
+ onClick: g
552
+ })) : $("", !0)
553
+ ]),
554
+ _: 1
555
+ }, 16, ["class", "placeholder", "modelValue"])), [
407
556
  [
408
- c,
557
+ T,
409
558
  t.isError,
410
559
  void 0,
411
560
  { onupdate: !0 }
412
561
  ]
413
562
  ])
414
563
  ]),
415
- widget: k(() => [
416
- R(O(me), {
417
- title: "Поиск",
418
- icon: "",
419
- modelValue: o.value,
420
- "onUpdate:modelValue": a[2] || (a[2] = (i) => o.value = i),
421
- isLoading: V.value,
422
- placeholder: !Array.isArray(e.value) && !t.multiselect && t.showSelectedInInput ? e.value.name : t.placeholder
423
- }, null, 8, ["modelValue", "isLoading", "placeholder"])
424
- ]),
425
- contentList: k(() => [
426
- (p(!0), h(N, null, D(r.value, (i) => (p(), T(O(j), {
427
- class: $({
428
- "top-active": !Array.isArray(e.value) && !t.multiselect && e.value.name === i.name
429
- }),
430
- key: i.id ?? void 0,
431
- onClick: S((C) => _(i), ["stop"])
432
- }, {
433
- default: k(() => [
434
- t.$slots.item ? H(t.$slots, "item", {
435
- key: 0,
436
- item: i
437
- }) : (p(), h(N, { key: 1 }, [
438
- L(w(i.name), 1)
439
- ], 64))
440
- ]),
441
- _: 2
442
- }, 1032, ["class", "onClick"]))), 128)),
443
- !V.value && !r.value.length ? (p(), T(O(j), {
444
- key: 0,
445
- type: "regular"
446
- }, {
447
- default: k(() => [
448
- L(w(t.$i18n.Common.No_results), 1)
449
- ]),
450
- _: 1
451
- })) : A("", !0)
452
- ]),
453
- _: 3
454
- }, 512);
564
+ contentList: V(() => {
565
+ var m;
566
+ return [
567
+ (d(!0), v(z, null, q(f(r).itemsForShow.value, (A) => (d(), w(f(H), {
568
+ class: I({
569
+ "top-active": !Array.isArray(l.value) && !t.multiselect && l.value.id === A.id && l.value.name === A.name
570
+ }),
571
+ key: A.id ?? void 0,
572
+ closeByClick: !t.multiselect || f(j).state.isMobile,
573
+ onClick: (Me) => f(r).selectItem(A)
574
+ }, {
575
+ default: V(() => [
576
+ t.$slots.item ? X(t.$slots, "item", {
577
+ key: 0,
578
+ item: A
579
+ }) : (d(), v(z, { key: 1 }, [
580
+ E(_(A.name), 1)
581
+ ], 64))
582
+ ]),
583
+ _: 2
584
+ }, 1032, ["class", "closeByClick", "onClick"]))), 128)),
585
+ !f(s).isLoading.value && !f(r).itemsForShow.value.length ? (d(), w(f(H), {
586
+ key: 0,
587
+ type: "regular"
588
+ }, {
589
+ default: V(() => [
590
+ E(_(t.$i18n.Common.No_results), 1)
591
+ ]),
592
+ _: 1
593
+ })) : $("", !0),
594
+ f(s).isLoading.value && (t.searchType !== "popup" || (m = f(s).apiRequest) != null && m.params.offset) ? (d(), w(f(H), {
595
+ key: 1,
596
+ type: "regular"
597
+ }, {
598
+ default: V(() => [
599
+ D(f(ie), { type: "circles" })
600
+ ]),
601
+ _: 1
602
+ })) : $("", !0)
603
+ ];
604
+ }),
605
+ _: 2
606
+ }, [
607
+ o.value === "popup" ? {
608
+ name: "widget",
609
+ fn: V(() => {
610
+ var m;
611
+ return [
612
+ D(f(de), {
613
+ title: "Поиск",
614
+ icon: "",
615
+ modelValue: f(r).searchText.value,
616
+ "onUpdate:modelValue": n[2] || (n[2] = (A) => f(r).searchText.value = A),
617
+ isLoading: f(s).isLoading.value && !((m = f(s).apiRequest) != null && m.params.offset),
618
+ placeholder: i.value
619
+ }, null, 8, ["modelValue", "isLoading", "placeholder"])
620
+ ];
621
+ }),
622
+ key: "0"
623
+ } : void 0
624
+ ]), 1032, ["notch"]);
455
625
  };
456
626
  }
457
- }), Be = ["data-top-icon"], Le = { class: "top-info_text" }, Ee = {
627
+ }), we = ["data-top-icon"], Ie = { class: "top-info_text" }, Be = {
458
628
  key: 0,
459
629
  class: "top-info_value"
460
- }, Me = /* @__PURE__ */ E({
630
+ }, We = /* @__PURE__ */ M({
461
631
  __name: "info",
462
632
  props: {
463
633
  icon: {},
464
634
  styling: { default: "default" },
465
635
  size: { default: "default" }
466
636
  },
467
- setup(n) {
468
- return (s, e) => (p(), h("div", {
469
- class: $({
637
+ setup(a) {
638
+ return (e, l) => (d(), v("div", {
639
+ class: I({
470
640
  "top-info": !0,
471
- ["top-size_" + s.size]: !0,
472
- ["top-info-styling_" + s.styling]: !0
641
+ ["top-size_" + e.size]: !0,
642
+ ["top-info-styling_" + e.styling]: !0
473
643
  }),
474
- "data-top-icon": s.icon
644
+ "data-top-icon": e.icon
475
645
  }, [
476
- M("div", Le, [
477
- H(s.$slots, "default")
646
+ L("div", Ie, [
647
+ X(e.$slots, "default")
478
648
  ]),
479
- s.$slots.additional ? (p(), h("span", Ee, [
480
- H(s.$slots, "additional")
481
- ])) : A("", !0)
482
- ], 10, Be));
649
+ e.$slots.additional ? (d(), v("span", Be, [
650
+ X(e.$slots, "additional")
651
+ ])) : $("", !0)
652
+ ], 10, we));
653
+ }
654
+ }), Se = {
655
+ key: 0,
656
+ class: "top-policy"
657
+ }, Le = { class: "top-policy_title" }, Ee = ["innerHTML"], Xe = /* @__PURE__ */ M({
658
+ __name: "policy",
659
+ props: {
660
+ title: {},
661
+ description: {},
662
+ acceptText: {}
663
+ },
664
+ emits: ["accept"],
665
+ setup(a, { emit: e }) {
666
+ const l = e, o = B(!0), u = () => {
667
+ o.value = !1, l("accept");
668
+ };
669
+ return (s, r) => o.value ? (d(), v("div", Se, [
670
+ L("div", Le, _(s.title), 1),
671
+ L("div", {
672
+ class: "top-policy_description",
673
+ innerHTML: s.description
674
+ }, null, 8, Ee),
675
+ D(f(F), {
676
+ size: "m",
677
+ onClick: u
678
+ }, {
679
+ default: V(() => [
680
+ E(_(s.acceptText), 1)
681
+ ]),
682
+ _: 1
683
+ })
684
+ ])) : $("", !0);
483
685
  }
484
- }), Ge = ye, De = ge, He = Ce, Fe = Ie, Re = fe, Ue = Me;
686
+ });
485
687
  export {
486
- Ge as TopEditArea,
487
- De as TopEditInput,
488
- Ue as TopInfo,
489
- Re as TopMenu,
490
- He as TopRadioGroup,
491
- Fe as TopSelector2
688
+ He as TopCheckboxGroup,
689
+ Ne as TopEditArea,
690
+ qe as TopEditInput,
691
+ We as TopInfo,
692
+ je as TopMenu,
693
+ Xe as TopPolicy,
694
+ Fe as TopRadioGroup,
695
+ Ue as TopSelector2
492
696
  };
493
697
  //# sourceMappingURL=formsExt.js.map