@topvisor/ui 1.0.34 → 1.0.36

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 (210) hide show
  1. package/.chunks/{core-CUNwUlL6.es.js → core-CO5q-OhH.es.js} +13 -12
  2. package/.chunks/core-CO5q-OhH.es.js.map +1 -0
  3. package/.chunks/core-D-ONEIDC.amd.js +2 -0
  4. package/.chunks/{core-CUNwUlL6.es.js.map → core-D-ONEIDC.amd.js.map} +1 -1
  5. package/.chunks/{datepicker-C0a_eKze.amd.js → datepicker-BKWD8N4r.amd.js} +2 -2
  6. package/.chunks/{datepicker-C0a_eKze.amd.js.map → datepicker-BKWD8N4r.amd.js.map} +1 -1
  7. package/.chunks/{datepicker-CW2Ql1NG.es.js → datepicker-BfPUBUE1.es.js} +2 -2
  8. package/.chunks/{datepicker-CW2Ql1NG.es.js.map → datepicker-BfPUBUE1.es.js.map} +1 -1
  9. package/.chunks/{dialog_selectorRegions-Bkw1LXvI.es.js → dialog_selectorRegions-D3CnPt4V.es.js} +4 -4
  10. package/.chunks/{dialog_selectorRegions-Bkw1LXvI.es.js.map → dialog_selectorRegions-D3CnPt4V.es.js.map} +1 -1
  11. package/.chunks/{dialog_selectorRegions-Bhblg2Ks.amd.js → dialog_selectorRegions-DYPTw--e.amd.js} +2 -2
  12. package/.chunks/{dialog_selectorRegions-Bhblg2Ks.amd.js.map → dialog_selectorRegions-DYPTw--e.amd.js.map} +1 -1
  13. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-CXtBj2Ah.amd.js → dialogs.vue_vue_type_script_setup_true_lang-C5vfO9ia.amd.js} +2 -2
  14. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-CXtBj2Ah.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-C5vfO9ia.amd.js.map} +1 -1
  15. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-JyillkBh.es.js → dialogs.vue_vue_type_script_setup_true_lang-CEkc3TYu.es.js} +2 -2
  16. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-JyillkBh.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-CEkc3TYu.es.js.map} +1 -1
  17. package/.chunks/{forms-CKYHAaPQ.amd.js → forms-DPIu5wcK.amd.js} +3 -3
  18. package/.chunks/{forms-CKYHAaPQ.amd.js.map → forms-DPIu5wcK.amd.js.map} +1 -1
  19. package/.chunks/{forms-zDpk9gMK.es.js → forms-YZl4XC4S.es.js} +300 -280
  20. package/.chunks/{forms-zDpk9gMK.es.js.map → forms-YZl4XC4S.es.js.map} +1 -1
  21. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Di1h6iID.es.js → listItem.vue_vue_type_script_setup_true_lang-CDrG3onO.es.js} +23 -23
  22. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CDrG3onO.es.js.map +1 -0
  23. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CTbTjIda.amd.js +2 -0
  24. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-C_ZN2Nia.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-CTbTjIda.amd.js.map} +1 -1
  25. package/.chunks/{menu.vue_vue_type_style_index_0_lang-B5fkWPo5.es.js → menu.vue_vue_type_style_index_0_lang-2vtQvU8o.es.js} +2 -2
  26. package/.chunks/{menu.vue_vue_type_style_index_0_lang-vyCH9NUZ.amd.js.map → menu.vue_vue_type_style_index_0_lang-2vtQvU8o.es.js.map} +1 -1
  27. package/.chunks/{menu.vue_vue_type_style_index_0_lang-vyCH9NUZ.amd.js → menu.vue_vue_type_style_index_0_lang-QsJS5sEm.amd.js} +2 -2
  28. package/.chunks/menu.vue_vue_type_style_index_0_lang-QsJS5sEm.amd.js.map +1 -0
  29. package/.chunks/{notice-CyeaHgdt.amd.js → notice-CwPCnQ9k.amd.js} +2 -2
  30. package/.chunks/{notice-CyeaHgdt.amd.js.map → notice-CwPCnQ9k.amd.js.map} +1 -1
  31. package/.chunks/{notice-B8hUtbou.es.js → notice-CysocnDZ.es.js} +2 -2
  32. package/.chunks/{notice-B8hUtbou.es.js.map → notice-CysocnDZ.es.js.map} +1 -1
  33. package/.chunks/{page.vue_vue_type_script_setup_true_lang-C8oRGxFZ.es.js → page.vue_vue_type_script_setup_true_lang-DOTfcVUC.es.js} +4 -4
  34. package/.chunks/{page.vue_vue_type_script_setup_true_lang-C8oRGxFZ.es.js.map → page.vue_vue_type_script_setup_true_lang-DOTfcVUC.es.js.map} +1 -1
  35. package/.chunks/{page.vue_vue_type_script_setup_true_lang-DmbqzLa6.amd.js → page.vue_vue_type_script_setup_true_lang-vzWb9Ehr.amd.js} +2 -2
  36. package/.chunks/{page.vue_vue_type_script_setup_true_lang-DmbqzLa6.amd.js.map → page.vue_vue_type_script_setup_true_lang-vzWb9Ehr.amd.js.map} +1 -1
  37. package/.chunks/{popup-BaFsC2VD.es.js → popup-Cbr1ckCd.es.js} +2 -2
  38. package/.chunks/{popup-BaFsC2VD.es.js.map → popup-Cbr1ckCd.es.js.map} +1 -1
  39. package/.chunks/{popup-DR6JnpNV.amd.js → popup-DdvupIju.amd.js} +2 -2
  40. package/.chunks/{popup-DR6JnpNV.amd.js.map → popup-DdvupIju.amd.js.map} +1 -1
  41. package/.chunks/utils-ASIXzycS.es.js +227 -0
  42. package/.chunks/{utils-CKggUvLI.es.js.map → utils-ASIXzycS.es.js.map} +1 -1
  43. package/.chunks/{utils-BPcGxQ0s.es.js → utils-Bjl0RkKM.es.js} +2 -2
  44. package/.chunks/{utils-BPcGxQ0s.es.js.map → utils-Bjl0RkKM.es.js.map} +1 -1
  45. package/.chunks/utils-CkpzFGzD.amd.js +2 -0
  46. package/.chunks/{utils-BO3j538g.amd.js.map → utils-CkpzFGzD.amd.js.map} +1 -1
  47. package/.chunks/{utils-BPyrKdwc.amd.js → utils-D_OVY7zV.amd.js} +2 -2
  48. package/.chunks/{utils-BPyrKdwc.amd.js.map → utils-D_OVY7zV.amd.js.map} +1 -1
  49. package/assets/core.css +1 -1
  50. package/assets/forms.css +1 -1
  51. package/assets/layout.css +1 -1
  52. package/charts/charts.amd.js +1 -1
  53. package/charts/charts.amd.js.map +1 -1
  54. package/charts/charts.js +1 -1
  55. package/charts/charts.js.map +1 -1
  56. package/components/charts/miniChart/miniChart.vue.d.ts +1 -1
  57. package/components/charts/miniCharts/miniCharts.d.ts +1 -1
  58. package/components/charts/miniCharts/miniCharts.vue.d.ts +1 -1
  59. package/components/charts/miniCharts/stories/dummy.d.ts +1 -1
  60. package/components/core/notice/item/types.d.ts +2 -0
  61. package/components/forms/avatar/avatar.vue.d.ts +1 -1
  62. package/components/forms/caption/caption.vue.d.ts +17 -0
  63. package/components/forms/caption/types.d.ts +9 -0
  64. package/components/forms/checkbox/checkbox.vue.d.ts +1 -1
  65. package/components/forms/controlLabel/controlLabel.vue.d.ts +1 -1
  66. package/components/forms/forms.d.ts +2 -0
  67. package/components/forms/hint/hint.vue.d.ts +1 -1
  68. package/components/forms/input/input.vue.d.ts +1 -1
  69. package/components/forms/inputDate/inputDate.vue.d.ts +1 -1
  70. package/components/forms/inputDate/types.d.ts +1 -0
  71. package/components/forms/radio/radio.vue.d.ts +1 -1
  72. package/components/forms/select/select.vue.d.ts +1 -1
  73. package/components/forms/select/stories/exampleOptions.d.ts +1 -1
  74. package/components/forms/switcher/switcher.vue.d.ts +1 -1
  75. package/components/forms/textarea/textarea.vue.d.ts +1 -1
  76. package/components/forms/textarea/{textarea.d.ts → types.d.ts} +4 -0
  77. package/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +1 -1
  78. package/components/formsExt/editArea/editArea.vue.d.ts +1 -1
  79. package/components/formsExt/editArea/{editArea.d.ts → types.d.ts} +1 -1
  80. package/components/formsExt/editInput/editInput.vue.d.ts +1 -1
  81. package/components/formsExt/editInput/{editInput.d.ts → types.d.ts} +1 -1
  82. package/components/formsExt/menu/menu.vue.d.ts +1 -1
  83. package/components/formsExt/menu/stories/items.d.ts +1 -1
  84. package/components/formsExt/radioGroup/radioGroup.vue.d.ts +1 -1
  85. package/components/formsExt/selector2/{api.d.ts → composables/useAPI.d.ts} +15 -1
  86. package/components/formsExt/selector2/composables/useMenu.d.ts +12 -0
  87. package/components/formsExt/selector2/itemMulti.vue.d.ts +1 -1
  88. package/components/formsExt/selector2/selector2.vue.d.ts +3 -3
  89. package/components/formsExt/selector2/utils.d.ts +6 -0
  90. package/components/popup/alert/alert.vue.d.ts +2 -2
  91. package/components/popup/alert/{alert.d.ts → types.d.ts} +1 -1
  92. package/components/popup/confirm/confirm.vue.d.ts +2 -2
  93. package/components/popup/confirm/{confirm.d.ts → types.d.ts} +1 -1
  94. package/components/popup/lib/worker.d.ts +2 -2
  95. package/components/popup/popup/listItem.vue.d.ts +1 -1
  96. package/components/popup/popup/opener.vue.d.ts +1 -1
  97. package/components/popup/popup/popup.vue.d.ts +1 -1
  98. package/components/popup/popup/widgetInput.vue.d.ts +1 -1
  99. package/components/popup/prompt/prompt.vue.d.ts +2 -2
  100. package/components/popup/prompt/{prompt.d.ts → types.d.ts} +1 -1
  101. package/components/project/selectorCompetitors/composables.d.ts +1 -2
  102. package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +1 -1
  103. package/components/project/selectorCompetitors/stories/items.d.ts +1 -1
  104. package/components/project/selectorCompetitors/{selectorCompetitors.d.ts → types.d.ts} +7 -0
  105. package/components/project/selectorRegion/composables/compare.d.ts +1 -1
  106. package/components/project/selectorRegion/composables/selectRegion.d.ts +2 -2
  107. package/components/project/selectorRegion/composables/selectSearcher.d.ts +2 -2
  108. package/components/project/selectorRegion/composables/selectorRegion.d.ts +2 -2
  109. package/components/project/selectorRegion/dialog_selectorRegions/types.d.ts +1 -1
  110. package/components/project/selectorRegion/selectorRegion.vue.d.ts +1 -1
  111. package/components/project/selectorRegion/stories/searchers.d.ts +1 -1
  112. package/components/project/selectorRegion/utils/consts.d.ts +1 -1
  113. package/components/project/selectorRegion/utils/utils.d.ts +1 -1
  114. package/components/project/tagSelector/popupOpener/types.d.ts +2 -0
  115. package/components/project/tagSelector/types.d.ts +2 -0
  116. package/components/project/tagSelector/utils/el.d.ts +1 -1
  117. package/components/tabs/tabs/content.vue.d.ts +1 -1
  118. package/components/tabs/tabs/tab.vue.d.ts +1 -1
  119. package/components/tabs/tabs/tabs.vue.d.ts +1 -1
  120. package/components/tabsView/tabsView/menu.vue.d.ts +1 -1
  121. package/components/tabsView/tabsView/menuItem.vue.d.ts +1 -1
  122. package/components/tabsView/tabsView/menuTitle.vue.d.ts +1 -1
  123. package/components/tabsView/tabsView/store.d.ts +5 -185
  124. package/components/tabsView/tabsView/tabsView.vue.d.ts +1 -1
  125. package/core/app.amd.js +1 -1
  126. package/core/app.js +5 -5
  127. package/core/utils/store.d.ts +1 -1
  128. package/dialog/dialog.amd.js +1 -1
  129. package/dialog/dialog.js +2 -2
  130. package/extra/extra.amd.js +1 -1
  131. package/extra/extra.amd.js.map +1 -1
  132. package/extra/extra.js +1 -0
  133. package/extra/extra.js.map +1 -1
  134. package/forms/forms.amd.js +1 -1
  135. package/forms/forms.js +8 -7
  136. package/formsExt/formsExt.amd.js +1 -1
  137. package/formsExt/formsExt.amd.js.map +1 -1
  138. package/formsExt/formsExt.js +310 -309
  139. package/formsExt/formsExt.js.map +1 -1
  140. package/icomoon/Topvisor icons.json +82 -36
  141. package/icomoon/demo.html +29 -1
  142. package/icomoon/fonts/Topvisor-2.eot +0 -0
  143. package/icomoon/fonts/Topvisor-2.svg +2 -0
  144. package/icomoon/fonts/Topvisor-2.ttf +0 -0
  145. package/icomoon/fonts/Topvisor-2.woff +0 -0
  146. package/icomoon/selection.json +1 -1
  147. package/icomoon/style.css +11 -5
  148. package/layout/layout.amd.js +1 -1
  149. package/layout/layout.amd.js.map +1 -1
  150. package/layout/layout.js +1 -1
  151. package/layout/layout.js.map +1 -1
  152. package/package.json +4 -1
  153. package/popup/popup.amd.js +1 -1
  154. package/popup/popup.amd.js.map +1 -1
  155. package/popup/popup.js +2 -2
  156. package/popup/popup.js.map +1 -1
  157. package/popup/worker.amd.js +1 -1
  158. package/popup/worker.amd.js.map +1 -1
  159. package/popup/worker.js +3 -3
  160. package/popup/worker.js.map +1 -1
  161. package/project/project.amd.js +1 -1
  162. package/project/project.amd.js.map +1 -1
  163. package/project/project.js +244 -241
  164. package/project/project.js.map +1 -1
  165. package/tabsView/tabsView.amd.js +1 -1
  166. package/tabsView/tabsView.amd.js.map +1 -1
  167. package/tabsView/tabsView.js +1 -1
  168. package/tabsView/tabsView.js.map +1 -1
  169. package/utils/clipboard.amd.js +1 -1
  170. package/utils/clipboard.js +1 -1
  171. package/utils/date.amd.js +1 -1
  172. package/utils/date.js +1 -1
  173. package/utils/device.amd.js +1 -1
  174. package/utils/device.js +1 -1
  175. package/utils/lodash.amd.js +1 -1
  176. package/utils/lodash.js +1 -1
  177. package/utils/price.amd.js +1 -1
  178. package/utils/price.js +1 -1
  179. package/utils/searchers.amd.js +1 -1
  180. package/utils/searchers.js +3 -3
  181. package/utils/string.amd.js +1 -1
  182. package/utils/string.amd.js.map +1 -1
  183. package/utils/string.js +5 -5
  184. package/utils/string.js.map +1 -1
  185. package/.chunks/core-BHvOvH4M.amd.js +0 -2
  186. package/.chunks/core-BHvOvH4M.amd.js.map +0 -1
  187. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C_ZN2Nia.amd.js +0 -2
  188. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Di1h6iID.es.js.map +0 -1
  189. package/.chunks/menu.vue_vue_type_style_index_0_lang-B5fkWPo5.es.js.map +0 -1
  190. package/.chunks/utils-BO3j538g.amd.js +0 -2
  191. package/.chunks/utils-CKggUvLI.es.js +0 -227
  192. package/components/forms/inputDate/inputDate.d.ts +0 -3
  193. package/components/project/selectorCompetitors/types/competitor.d.ts +0 -7
  194. /package/components/charts/miniChart/{miniChart.d.ts → types.d.ts} +0 -0
  195. /package/components/forms/avatar/{avatar.d.ts → types.d.ts} +0 -0
  196. /package/components/forms/checkbox/{checkbox.d.ts → types.d.ts} +0 -0
  197. /package/components/forms/controlLabel/{controlLabel.d.ts → types.d.ts} +0 -0
  198. /package/components/forms/hint/{hint.d.ts → types.d.ts} +0 -0
  199. /package/components/forms/input/{input.d.ts → types.d.ts} +0 -0
  200. /package/components/forms/inputRange/{inputRange.d.ts → types.d.ts} +0 -0
  201. /package/components/forms/radio/{radio.d.ts → types.d.ts} +0 -0
  202. /package/components/forms/select/{select.d.ts → types.d.ts} +0 -0
  203. /package/components/forms/switcher/{switcher.d.ts → types.d.ts} +0 -0
  204. /package/components/formsExt/menu/{menu.d.ts → types.d.ts} +0 -0
  205. /package/components/formsExt/radioGroup/{radioGroup.d.ts → types.d.ts} +0 -0
  206. /package/components/formsExt/selector2/{selector2.d.ts → types.d.ts} +0 -0
  207. /package/components/popup/popup/{popup.d.ts → types.d.ts} +0 -0
  208. /package/components/project/selectorRegion/{selectorRegion.d.ts → types.d.ts} +0 -0
  209. /package/components/tabs/tabs/{tabs.d.ts → types.d.ts} +0 -0
  210. /package/components/tabsView/tabsView/{tabsView.d.ts → types.d.ts} +0 -0
@@ -1,12 +1,12 @@
1
- import { Core as x } from "../core/app.js";
2
- import { defineComponent as I, ref as C, computed as F, createElementBlock as v, openBlock as u, normalizeClass as $, createCommentVNode as k, createElementVNode as E, toDisplayString as w, createVNode as K, withKeys as L, withModifiers as M, createBlock as T, createSlots as R, withCtx as A, createTextVNode as B, watch as _, toRef as oe, mergeProps as Y, mergeModels as J, useModel as X, Fragment as P, renderList as N, withDirectives as Q, vModelRadio as te, resolveDirective as le, unref as V, renderSlot as U } from "vue";
3
- import { w as se, _ as W, f as ae, d as ne, u as re, C as j, x as ie } from "../.chunks/forms-zDpk9gMK.es.js";
4
- import { invertKeyboardLayout as ue } from "../utils/keyboard.js";
5
- import { TopPopup as de, TopPopupListItem as D, TopPopupWidgetInput as pe } from "../popup/popup.js";
6
- import { _ as ce } from "../.chunks/menu.vue_vue_type_style_index_0_lang-B5fkWPo5.es.js";
7
- const ee = ["../assets/formsExt.css"].map((n) => import.meta.resolve(n));
8
- x.insertCSSLinkToPage(ee, !0);
9
- const me = { class: "top-editArea_footer" }, fe = /* @__PURE__ */ I({
1
+ import { Core as Y } from "../core/app.js";
2
+ import { defineComponent as B, ref as w, computed as F, createElementBlock as f, openBlock as p, normalizeClass as C, createCommentVNode as k, createElementVNode as I, toDisplayString as $, createVNode as P, withKeys as L, withModifiers as M, createBlock as A, createSlots as N, withCtx as V, createTextVNode as S, watch as E, toRef as z, mergeProps as W, mergeModels as R, useModel as U, Fragment as _, renderList as G, withDirectives as X, vModelRadio as Q, resolveDirective as Z, unref as b, renderSlot as D } from "vue";
3
+ import { w as q, _ as H, f as x, d as ee, u as oe, C as te, x as le } from "../.chunks/forms-YZl4XC4S.es.js";
4
+ import { TopPopup as se, TopPopupListItem as O, TopPopupWidgetInput as ae } from "../popup/popup.js";
5
+ import { invertKeyboardLayout as re } from "../utils/keyboard.js";
6
+ import { _ as ne } from "../.chunks/menu.vue_vue_type_style_index_0_lang-2vtQvU8o.es.js";
7
+ const j = ["../assets/formsExt.css"].map((s) => import.meta.resolve(s));
8
+ Y.insertCSSLinkToPage(j, !0);
9
+ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
10
10
  __name: "editArea",
11
11
  props: {
12
12
  defaultValue: { default: "" },
@@ -27,86 +27,87 @@ const me = { class: "top-editArea_footer" }, fe = /* @__PURE__ */ I({
27
27
  disabled: { type: Boolean },
28
28
  readonly: { type: Boolean },
29
29
  isError: { type: Boolean },
30
- hint: {}
30
+ hint: {},
31
+ maxLength: {}
31
32
  },
32
33
  emits: ["submit", "close", "clickOnTitle"],
33
- setup(n, { emit: t }) {
34
- const o = n, l = t, d = C(o.defaultValue), s = C(o.isFocused), m = F(() => d.value !== o.defaultValue), c = (r) => {
35
- l("submit", r), d.value = o.defaultValue;
34
+ setup(s, { emit: o }) {
35
+ const e = s, a = o, n = w(e.defaultValue), t = w(e.isFocused), d = F(() => n.value !== e.defaultValue), c = (i) => {
36
+ a("submit", i), n.value = e.defaultValue;
36
37
  }, y = () => {
37
- if (o.forceShowCloseBtn && !m.value) {
38
- l("close");
38
+ if (e.forceShowCloseBtn && !d.value) {
39
+ a("close");
39
40
  return;
40
41
  }
41
- d.value = o.defaultValue;
42
+ n.value = e.defaultValue;
42
43
  }, g = () => {
43
- o.attachToKeyboard && l("clickOnTitle");
44
+ e.attachToKeyboard && a("clickOnTitle");
44
45
  };
45
- return (r, h) => (u(), v("div", {
46
- class: $({
46
+ return (i, m) => (p(), f("div", {
47
+ class: C({
47
48
  "top-editArea": !0,
48
- "top-editArea-attachedToKeyboard": r.attachToKeyboard
49
+ "top-editArea-attachedToKeyboard": i.attachToKeyboard
49
50
  })
50
51
  }, [
51
- r.title ? (u(), v("div", {
52
+ i.title ? (p(), f("div", {
52
53
  key: 0,
53
54
  class: "top-editArea_title",
54
- onClick: h[0] || (h[0] = (i) => g())
55
- }, w(r.title), 1)) : k("", !0),
56
- E("div", {
57
- class: $({
55
+ onClick: m[0] || (m[0] = (r) => g())
56
+ }, $(i.title), 1)) : k("", !0),
57
+ I("div", {
58
+ class: C({
58
59
  "top-editArea_form": !0,
59
- "top-error": r.isError,
60
- "top-focus": s.value
60
+ "top-error": i.isError,
61
+ "top-focus": t.value
61
62
  })
62
63
  }, [
63
- K(se, {
64
- modelValue: d.value,
65
- "onUpdate:modelValue": h[1] || (h[1] = (i) => d.value = i),
66
- name: r.name,
67
- placeholder: r.placeholder,
68
- rows: r.rows,
69
- minHeight: r.minHeight,
70
- expandable: r.expandable,
71
- disabled: r.disabled,
72
- readonly: r.readonly,
73
- isError: r.isError,
74
- hint: r.hint,
64
+ P(q, {
65
+ modelValue: n.value,
66
+ "onUpdate:modelValue": m[1] || (m[1] = (r) => n.value = r),
67
+ name: i.name,
68
+ placeholder: i.placeholder,
69
+ rows: i.rows,
70
+ minHeight: i.minHeight,
71
+ expandable: i.expandable,
72
+ disabled: i.disabled,
73
+ readonly: i.readonly,
74
+ isError: i.isError,
75
+ hint: i.hint,
75
76
  class: "top-editArea_element",
76
- onFocus: h[2] || (h[2] = () => s.value = !0),
77
- onBlur: h[3] || (h[3] = () => s.value = !1),
77
+ onFocus: m[2] || (m[2] = () => t.value = !0),
78
+ onBlur: m[3] || (m[3] = () => t.value = !1),
78
79
  onKeyup: [
79
80
  L(y, ["esc"]),
80
- h[4] || (h[4] = L(M((i) => c(d.value), ["ctrl"]), ["enter"]))
81
+ m[4] || (m[4] = L(M((r) => c(n.value), ["ctrl"]), ["enter"]))
81
82
  ]
82
83
  }, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
83
- E("div", me, [
84
- m.value || r.forceShowCloseBtn ? (u(), T(W, {
84
+ I("div", ie, [
85
+ d.value || i.forceShowCloseBtn ? (p(), A(H, {
85
86
  key: 0,
86
- icon: r.$core.state.isMobile ? "" : "",
87
+ icon: i.$core.state.isMobile ? "" : "",
87
88
  class: "top-editArea_button",
88
89
  color: "theme",
89
90
  styling: "soft",
90
91
  onClick: y
91
- }, R({ _: 2 }, [
92
- r.$core.state.isMobile ? void 0 : {
92
+ }, N({ _: 2 }, [
93
+ i.$core.state.isMobile ? void 0 : {
93
94
  name: "default",
94
- fn: A(() => [
95
- B(w(r.cancelText), 1)
95
+ fn: V(() => [
96
+ S($(i.cancelText), 1)
96
97
  ]),
97
98
  key: "0"
98
99
  }
99
100
  ]), 1032, ["icon"])) : k("", !0),
100
- m.value ? (u(), T(W, {
101
+ d.value ? (p(), A(H, {
101
102
  key: 1,
102
103
  class: "top-editArea_button",
103
- icon: r.$core.state.isMobile ? "" : "",
104
- onClick: h[5] || (h[5] = (i) => c(d.value))
105
- }, R({ _: 2 }, [
106
- r.$core.state.isMobile ? void 0 : {
104
+ icon: i.$core.state.isMobile ? "" : "",
105
+ onClick: m[5] || (m[5] = (r) => c(n.value))
106
+ }, N({ _: 2 }, [
107
+ i.$core.state.isMobile ? void 0 : {
107
108
  name: "default",
108
- fn: A(() => [
109
- B(w(r.submitText), 1)
109
+ fn: V(() => [
110
+ S($(i.submitText), 1)
110
111
  ]),
111
112
  key: "0"
112
113
  }
@@ -115,7 +116,7 @@ const me = { class: "top-editArea_footer" }, fe = /* @__PURE__ */ I({
115
116
  ], 2)
116
117
  ], 2));
117
118
  }
118
- }), ve = { class: "top-editInput" }, ye = /* @__PURE__ */ I({
119
+ }), de = { class: "top-editInput" }, pe = /* @__PURE__ */ B({
119
120
  __name: "editInput",
120
121
  props: {
121
122
  modelValue: {},
@@ -123,34 +124,34 @@ const me = { class: "top-editArea_footer" }, fe = /* @__PURE__ */ I({
123
124
  button: {}
124
125
  },
125
126
  emits: ["update:modelValue"],
126
- setup(n, { emit: t }) {
127
- const o = n, l = C(o.modelValue);
128
- _(oe(o.modelValue), () => {
129
- l.value = o.modelValue;
127
+ setup(s, { emit: o }) {
128
+ const e = s, a = w(e.modelValue);
129
+ E(z(e.modelValue), () => {
130
+ a.value = e.modelValue;
130
131
  });
131
- const d = t, s = () => {
132
- d("update:modelValue", l.value);
132
+ const n = o, t = () => {
133
+ n("update:modelValue", a.value);
133
134
  };
134
- return (m, c) => (u(), v("div", ve, [
135
- K(ae, Y(m.input, {
136
- onKeydownCapture: c[0] || (c[0] = L(M((y) => l.value = m.modelValue, ["stop"]), ["esc"])),
137
- onKeydown: L(M(s, ["stop"]), ["enter"]),
138
- modelValue: l.value,
139
- "onUpdate:modelValue": c[1] || (c[1] = (y) => l.value = y)
135
+ return (d, c) => (p(), f("div", de, [
136
+ P(x, W(d.input, {
137
+ onKeydownCapture: c[0] || (c[0] = L(M((y) => a.value = d.modelValue, ["stop"]), ["esc"])),
138
+ onKeydown: L(M(t, ["stop"]), ["enter"]),
139
+ modelValue: a.value,
140
+ "onUpdate:modelValue": c[1] || (c[1] = (y) => a.value = y)
140
141
  }), null, 16, ["onKeydown", "modelValue"]),
141
- l.value !== m.modelValue ? (u(), T(W, Y({
142
+ a.value !== d.modelValue ? (p(), A(H, W({
142
143
  key: 0,
143
144
  icon: "",
144
145
  styling: "soft"
145
- }, m.button, { onClick: s }), null, 16)) : k("", !0)
146
+ }, d.button, { onClick: t }), null, 16)) : k("", !0)
146
147
  ]));
147
148
  }
148
- }), he = ["data-top-icon", "onClick"], be = {
149
+ }), ce = ["data-top-icon", "onClick"], me = {
149
150
  key: 0,
150
151
  class: "top-radioGroup_circle"
151
- }, ge = ["value", "disabled"], ke = /* @__PURE__ */ I({
152
+ }, fe = ["value", "disabled"], ve = /* @__PURE__ */ B({
152
153
  __name: "radioGroup",
153
- props: /* @__PURE__ */ J({
154
+ props: /* @__PURE__ */ R({
154
155
  modelValue: {},
155
156
  radiosProps: {},
156
157
  showIndicator: { type: Boolean },
@@ -163,53 +164,53 @@ const me = { class: "top-editArea_footer" }, fe = /* @__PURE__ */ I({
163
164
  modelModifiers: {}
164
165
  }),
165
166
  emits: ["update:modelValue"],
166
- setup(n) {
167
- const t = X(n, "modelValue"), o = n, l = C(null);
168
- _(t, () => {
169
- var s, m, c, y, g;
170
- (s = o.radiosProps) != null && s.some((r) => r.value === t.value) || (t.value = ((c = (m = o.radiosProps) == null ? void 0 : m[0]) == null ? void 0 : c.value) ?? ""), (g = (y = l.value) == null ? void 0 : y.querySelector(".radioGroup_item-selected")) == null || g.scrollIntoView();
167
+ setup(s) {
168
+ const o = U(s, "modelValue"), e = s, a = w(null);
169
+ E(o, () => {
170
+ var t, d, c, y, g;
171
+ (t = e.radiosProps) != null && t.some((i) => i.value === o.value) || (o.value = ((c = (d = e.radiosProps) == null ? void 0 : d[0]) == null ? void 0 : c.value) ?? ""), (g = (y = a.value) == null ? void 0 : y.querySelector(".radioGroup_item-selected")) == null || g.scrollIntoView();
171
172
  }, { immediate: !0 });
172
- const d = "radioGroup-" + Math.random();
173
- return (s, m) => (u(), v("div", {
173
+ const n = "radioGroup-" + Math.random();
174
+ return (t, d) => (p(), f("div", {
174
175
  ref_key: "elRef",
175
- ref: l,
176
- class: $({
176
+ ref: a,
177
+ class: C({
177
178
  "top-radioGroup": !0,
178
179
  "top-scrollBarXHidding": !0,
179
- ["top-size_" + s.size]: !!s.size,
180
- "top-error": s.isError
180
+ ["top-size_" + t.size]: !!t.size,
181
+ "top-error": t.isError
181
182
  })
182
183
  }, [
183
- (u(!0), v(P, null, N(s.radiosProps, (c) => (u(), v("label", {
184
- class: $({
185
- "top-radioGroup_item-selected": c.value === t.value,
184
+ (p(!0), f(_, null, G(t.radiosProps, (c) => (p(), f("label", {
185
+ class: C({
186
+ "top-radioGroup_item-selected": c.value === o.value,
186
187
  "top-radioGroup_item": !0,
187
188
  "top-forms-focusable": !0,
188
189
  "top-disabled": c.disabled
189
190
  }),
190
191
  "data-top-icon": c.icon,
191
- onClick: (y) => t.value = c.value
192
+ onClick: (y) => o.value = c.value
192
193
  }, [
193
- B(w(c.title) + " ", 1),
194
- s.showIndicator ? (u(), v("span", be)) : k("", !0),
195
- Q(E("input", {
196
- "onUpdate:modelValue": m[0] || (m[0] = (y) => t.value = y),
197
- name: d,
194
+ S($(c.title) + " ", 1),
195
+ t.showIndicator ? (p(), f("span", me)) : k("", !0),
196
+ X(I("input", {
197
+ "onUpdate:modelValue": d[0] || (d[0] = (y) => o.value = y),
198
+ name: n,
198
199
  type: "radio",
199
- class: $({
200
+ class: C({
200
201
  "top-unvisible": !0
201
202
  }),
202
203
  value: c.value,
203
204
  disabled: c.disabled
204
- }, null, 8, ge), [
205
- [te, t.value]
205
+ }, null, 8, fe), [
206
+ [Q, o.value]
206
207
  ])
207
- ], 10, he))), 256))
208
+ ], 10, ce))), 256))
208
209
  ], 2));
209
210
  }
210
- }), Ve = ["data-top-icon"], Ce = ["value", "checked", "disabled", "onChange"], $e = /* @__PURE__ */ I({
211
+ }), ye = ["data-top-icon"], he = ["value", "checked", "disabled", "onChange"], be = /* @__PURE__ */ B({
211
212
  __name: "checkboxGroup",
212
- props: /* @__PURE__ */ J({
213
+ props: /* @__PURE__ */ R({
213
214
  modelValue: {},
214
215
  items: {},
215
216
  size: { default: "s" },
@@ -222,109 +223,137 @@ const me = { class: "top-editArea_footer" }, fe = /* @__PURE__ */ I({
222
223
  modelModifiers: {}
223
224
  }),
224
225
  emits: ["update:modelValue"],
225
- setup(n) {
226
- const t = X(n, "modelValue"), o = (l) => {
227
- const d = [...t.value], s = d.indexOf(l);
228
- s === -1 ? d.push(l) : d.splice(s, 1), t.value = d;
226
+ setup(s) {
227
+ const o = U(s, "modelValue"), e = (a) => {
228
+ const n = [...o.value], t = n.indexOf(a);
229
+ t === -1 ? n.push(a) : n.splice(t, 1), o.value = n;
229
230
  };
230
- return (l, d) => (u(), v("div", {
231
- class: $({
231
+ return (a, n) => (p(), f("div", {
232
+ class: C({
232
233
  "top-checkboxGroup": !0,
233
- ["top-checkboxGroup-" + l.styling]: !0,
234
+ ["top-checkboxGroup-" + a.styling]: !0,
234
235
  "top-scrollBarXHidding": !0,
235
- ["top-size_" + l.size]: !!l.size,
236
- "top-error": l.isError
236
+ ["top-size_" + a.size]: !!a.size,
237
+ "top-error": a.isError
237
238
  })
238
239
  }, [
239
- (u(!0), v(P, null, N(l.items, (s) => (u(), v("label", {
240
- key: s.id,
241
- class: $({
240
+ (p(!0), f(_, null, G(a.items, (t) => (p(), f("label", {
241
+ key: t.id,
242
+ class: C({
242
243
  "top-checkboxGroup_item": !0,
243
- "top-checkboxGroup_item-selected": t.value.includes(s.id),
244
+ "top-checkboxGroup_item-selected": o.value.includes(t.id),
244
245
  "top-forms-focusable": !0,
245
- "top-disabled": s.disabled
246
+ "top-disabled": t.disabled
246
247
  }),
247
- "data-top-icon": s.icon
248
+ "data-top-icon": t.icon
248
249
  }, [
249
- E("input", {
250
+ I("input", {
250
251
  type: "checkbox",
251
252
  class: "top-unvisible",
252
- value: s.id,
253
- checked: t.value.includes(s.id),
254
- disabled: s.disabled,
255
- onChange: (m) => o(s.id)
256
- }, null, 40, Ce),
257
- B(" " + w(s.title), 1)
258
- ], 10, Ve))), 128))
253
+ value: t.id,
254
+ checked: o.value.includes(t.id),
255
+ disabled: t.disabled,
256
+ onChange: (d) => e(t.id)
257
+ }, null, 40, he),
258
+ S(" " + $(t.title), 1)
259
+ ], 10, ye))), 128))
259
260
  ], 2));
260
261
  }
261
- }), we = (n, t, o) => {
262
- const l = C([]), d = C(!1);
263
- let s = "", m;
264
- n && !n.params.limit && (n.params.limit = 100);
265
- const c = async () => {
266
- if (!n) return;
267
- let i, S;
268
- if (o && (n.cache ??= /* @__PURE__ */ new Map(), S = JSON.stringify(n.params), i = n.cache.get(S), i))
269
- return i;
270
- if (d.value = !0, i = await n.call(), d.value = !1, i.errors) return;
271
- if (!Array.isArray(i.result)) {
272
- console.warn("В result ожидался массив");
273
- return;
274
- }
275
- const z = i.result.findIndex((O) => O.id === void 0 || O.name === void 0);
276
- if (z !== -1) {
277
- console.warn(`В result[${z}] нет id или name`);
278
- return;
279
- }
280
- return o && n.cache.set(S, i), i;
281
- }, y = async () => {
282
- if (!n) return;
283
- n.params.offset = 0, n.params.search = s;
284
- const i = await c();
285
- i && (m = i.nextOffset, l.value = i.result);
286
- }, g = async () => {
287
- if (!n || !m || d.value) return;
288
- n.params.offset = m, n.params.search = s;
289
- const i = await c();
290
- i && (m = i.nextOffset, l.value = l.value.concat(i.result));
291
- }, r = ne(() => y(), 200);
292
- return {
293
- items: l,
294
- isLoading: d,
295
- loadAppend: g,
296
- setSearchTextAndLoad: (i, S = !0) => {
297
- n && (i.length < t || i === s && l.value.length || (s = i, S ? r() : y()));
298
- }
299
- };
300
- }, Ae = { class: "top-selector2_itemMulti top-ellipsis" }, Te = /* @__PURE__ */ I({
262
+ }), ge = { class: "top-selector2_itemMulti top-ellipsis" }, ke = /* @__PURE__ */ B({
301
263
  __name: "itemMulti",
302
264
  props: {
303
265
  id: {},
304
266
  name: {}
305
267
  },
306
268
  emits: ["delete"],
307
- setup(n) {
308
- return (t, o) => (u(), v("div", Ae, [
309
- B(w(t.name) + " ", 1),
310
- E("span", {
269
+ setup(s) {
270
+ return (o, e) => (p(), f("div", ge, [
271
+ S($(o.name) + " ", 1),
272
+ I("span", {
311
273
  class: "top-selector2_itemMultiDelete",
312
274
  "data-top-icon": "",
313
- onClick: o[0] || (o[0] = (l) => t.$emit("delete", t.id)),
314
- onMousedown: o[1] || (o[1] = M(() => {
275
+ onClick: e[0] || (e[0] = (a) => o.$emit("delete", o.id)),
276
+ onMousedown: e[1] || (e[1] = M(() => {
315
277
  }, ["stop"]))
316
278
  }, null, 32)
317
279
  ]));
318
280
  }
319
- }), Se = {
281
+ }), we = (s, o, e) => {
282
+ const a = w([]), n = w(!1);
283
+ let t = "", d;
284
+ s && !s.params.limit && (s.params.limit = 100);
285
+ const c = async () => {
286
+ if (!s) return;
287
+ let r, v;
288
+ if (e && (s.cache ??= /* @__PURE__ */ new Map(), v = JSON.stringify(s.params), r = s.cache.get(v), r))
289
+ return r;
290
+ if (n.value = !0, r = await s.call(), n.value = !1, r.errors) return;
291
+ if (!Array.isArray(r.result)) {
292
+ console.warn("В result ожидался массив");
293
+ return;
294
+ }
295
+ const l = r.result.findIndex((u) => u.id === void 0 || u.name === void 0);
296
+ if (l !== -1) {
297
+ console.warn(`В result[${l}] нет id или name`);
298
+ return;
299
+ }
300
+ return e && s.cache.set(v, r), r;
301
+ }, y = async () => {
302
+ if (!s) return;
303
+ s.params.offset = 0, s.params.search = t;
304
+ const r = await c();
305
+ r && (d = r.nextOffset, a.value = r.result);
306
+ }, g = async () => {
307
+ if (!s || !d || n.value) return;
308
+ s.params.offset = d, s.params.search = t;
309
+ const r = await c();
310
+ r && (d = r.nextOffset, a.value = a.value.concat(r.result));
311
+ }, i = ee(() => y(), 200);
312
+ return {
313
+ apiRequest: s,
314
+ items: a,
315
+ isLoading: n,
316
+ loadAppend: g,
317
+ setSearchTextAndLoad: (r, v = !0) => {
318
+ s && (r.length < o || r === t && a.value.length || (t = r, v ? i() : y()));
319
+ }
320
+ };
321
+ }, Ce = 0, J = (s, o, e = !0) => e && o.id === null ? Array.isArray(s) ? s.some((a) => a.id === o.id && a.name === o.name) : o.name === s.name : Array.isArray(s) ? s.some((a) => a.id === o.id) : o.id === s.id, $e = (s, o, e, a, n, t) => {
322
+ const d = w(""), c = {
323
+ id: Ce,
324
+ name: oe().Common.All
325
+ }, y = () => {
326
+ d.value = "", t.items.value = [];
327
+ }, g = F(() => {
328
+ var r;
329
+ const m = [];
330
+ return !e && a.value && m.push(c), (r = o.value) == null || r.forEach((v) => m.push({ ...v })), m;
331
+ }), i = F(() => {
332
+ const m = d.value.toLowerCase(), r = re(m);
333
+ let v = [];
334
+ return g.value.forEach((l) => {
335
+ const u = l.name.toLowerCase();
336
+ (l.id === Number(m) || u.includes(m) || u.includes(r)) && (u === m || u === r ? v.unshift(l) : v.push(l));
337
+ }), v.push(...t.items.value), n.value && d.value && (!v.length || v[0].name.toLowerCase() !== m) && v.push({
338
+ id: null,
339
+ name: d.value
340
+ }), e && (v = v.filter((l) => !J(s.value, l))), v;
341
+ });
342
+ return {
343
+ searchText: d,
344
+ resetSearch: y,
345
+ items: g,
346
+ itemsForShow: i
347
+ };
348
+ }, Te = {
320
349
  key: 0,
321
350
  class: "top-selector2_activeItems"
322
- }, Be = {
351
+ }, Ve = {
323
352
  key: 1,
324
353
  class: "top-selector2_activeName top-ellipsis"
325
- }, Ie = /* @__PURE__ */ I({
354
+ }, Ae = /* @__PURE__ */ B({
326
355
  __name: "selector2",
327
- props: /* @__PURE__ */ J({
356
+ props: /* @__PURE__ */ R({
328
357
  modelValue: {},
329
358
  items: { default: () => [] },
330
359
  multiselect: { type: Boolean },
@@ -341,159 +370,131 @@ const me = { class: "top-editArea_footer" }, fe = /* @__PURE__ */ I({
341
370
  showSelectedInInput: { type: Boolean, default: !0 },
342
371
  showSearch: { type: Boolean, default: !0 }
343
372
  }, {
344
- modelValue: {},
373
+ modelValue: { required: !0 },
345
374
  modelModifiers: {}
346
375
  }),
347
376
  emits: ["update:modelValue"],
348
- setup(n) {
349
- const t = n, o = X(n, "modelValue"), l = C(""), d = () => {
350
- l.value = "", g.items.value = [];
351
- }, s = {
352
- id: 0,
353
- name: re().Common.All
354
- }, m = C(null), c = C(null), y = () => {
355
- var e;
356
- return (e = m.value) == null ? void 0 : e.popup;
377
+ setup(s) {
378
+ const o = s, e = U(s, "modelValue"), a = w(null), n = we(o.apiRequest, o.minLength || 0, o.useCache), t = $e(e, z(o, "items"), o.multiselect, z(o, "appendAllValue"), z(o, "appendSearchToResult"), n), d = w(null), c = () => {
379
+ var l;
380
+ return (l = d.value) == null ? void 0 : l.popup;
381
+ }, y = () => {
382
+ if (!Array.isArray(e.value)) {
383
+ const u = (t.itemsForShow.value.findIndex((K) => K.id === e.value.id) + 1) % t.itemsForShow.value.length;
384
+ e.value = { ...t.itemsForShow.value[u] };
385
+ }
386
+ }, g = async (l) => {
387
+ Array.isArray(e.value) && (e.value = e.value.filter((u) => u.id !== l), setTimeout(() => {
388
+ var u;
389
+ (u = c()) == null || u.recalcPosition();
390
+ }));
391
+ }, i = w(!1);
392
+ n.apiRequest && (E(i, () => {
393
+ i.value && n.setSearchTextAndLoad(t.searchText.value, !1);
394
+ }), E(t.searchText, () => n.setSearchTextAndLoad(t.searchText.value)));
395
+ const m = (l) => {
396
+ o.multiselect && Array.isArray(e.value) ? J(e.value, l) || (e.value = [...e.value, l]) : e.value = l;
397
+ }, r = () => {
398
+ var l;
399
+ i.value = !1, (l = a.value) == null || l.focus(), t.searchText.value && t.resetSearch();
400
+ }, v = (l) => {
401
+ const u = l.target;
402
+ u.scrollTop / (u.scrollHeight - u.offsetHeight) > 0.8 && n.loadAppend();
357
403
  };
358
- window.__STORYBOOK_PREVIEW__ && !t.modelValue && _(
359
- () => t.multiselect,
404
+ return window.__STORYBOOK_PREVIEW__ && !o.modelValue && E(
405
+ () => o.multiselect,
360
406
  () => {
361
- o.value = t.multiselect ? [] : { id: null, name: "" };
407
+ e.value = o.multiselect ? [] : { id: null, name: "" };
362
408
  },
363
409
  { immediate: !0 }
364
- );
365
- const g = we(t.apiRequest, t.minLength, t.useCache), r = F(() => {
366
- const e = [];
367
- return !t.multiselect && t.appendAllValue && e.push(s), t.items.forEach((a) => e.push({ ...a })), e;
368
- }), h = (e, a = !0) => a && e.id === null ? Array.isArray(o.value) ? o.value.some((f) => f.id === e.id && f.name === e.name) : e.name === o.value.name : Array.isArray(o.value) ? o.value.some((f) => f.id === e.id) : e.id === o.value.id, i = F(() => {
369
- const e = l.value.toLowerCase(), a = ue(e);
370
- let f = [];
371
- return r.value.forEach((p) => {
372
- const b = p.name.toLowerCase();
373
- (p.id === Number(e) || b.includes(e) || b.includes(a)) && (b === e || b === a ? f.unshift(p) : f.push(p));
374
- }), f.push(...g.items.value), t.appendSearchToResult && l.value && (!f.length || f[0].name.toLowerCase() !== e) && f.push({
375
- id: null,
376
- name: l.value
377
- }), t.multiselect && (f = f.filter((p) => !h(p))), f;
378
- }), S = async (e) => {
379
- if (t.multiselect) {
380
- if (!Array.isArray(o.value) || h(e))
381
- return;
382
- const a = [...o.value];
383
- a.push({ ...e }), o.value = a, j.state.isMobile || setTimeout(() => {
384
- var f, p, b, H;
385
- (f = y()) == null || f.recalcPosition(), (H = (b = (p = y()) == null ? void 0 : p.elPopupWidget) == null ? void 0 : b.querySelector("input")) == null || H.focus(), l.value && d();
386
- });
387
- } else
388
- JSON.stringify(e) !== JSON.stringify(o.value) && (o.value = { ...e });
389
- }, z = () => {
390
- if (!Array.isArray(o.value)) {
391
- const a = (r.value.findIndex((f) => f.id === o.value.id) + 1) % r.value.length;
392
- o.value = { ...r.value[a] };
393
- }
394
- }, O = async (e) => {
395
- Array.isArray(o.value) && (o.value = o.value.filter((a) => a.id !== e), setTimeout(() => {
396
- var a;
397
- (a = y()) == null || a.recalcPosition();
398
- }));
399
- }, G = C(!1);
400
- t.apiRequest && (_(G, () => {
401
- G.value && g.setSearchTextAndLoad(l.value, !1);
402
- }), _(l, () => g.setSearchTextAndLoad(l.value)));
403
- const Z = (e) => {
404
- const a = e.target;
405
- a.scrollTop / (a.scrollHeight - a.offsetHeight) > 0.8 && g.loadAppend();
406
- }, q = () => {
407
- var e;
408
- G.value = !1, (e = c.value) == null || e.focus(), l.value && d();
409
- };
410
- return (e, a) => {
411
- const f = le("top-focus");
412
- return u(), T(V(de), {
410
+ ), (l, u) => {
411
+ const K = Z("top-focus");
412
+ return p(), A(b(se), {
413
413
  ref_key: "popupRef",
414
- ref: m,
415
- onOpen: a[3] || (a[3] = (p) => G.value = !0),
416
- onClose: a[4] || (a[4] = (p) => q()),
417
- onScrollContentList: a[5] || (a[5] = (p) => e.apiRequest ? Z(p) : void 0),
414
+ ref: d,
415
+ onOpen: u[3] || (u[3] = (h) => i.value = !0),
416
+ onClose: u[4] || (u[4] = (h) => r()),
417
+ onScrollContentList: u[5] || (u[5] = (h) => l.apiRequest ? v(h) : void 0),
418
418
  notch: !1,
419
419
  transitionDuration: 0
420
- }, R({
421
- opener: A(() => [
422
- Q((u(), v("div", {
420
+ }, N({
421
+ opener: V(() => [
422
+ X((p(), f("div", {
423
423
  ref_key: "elRef",
424
- ref: c,
425
- class: $({
424
+ ref: a,
425
+ class: C({
426
426
  "top-selector2": !0,
427
- "top-selector2-multiselect": e.multiselect,
428
- ["top-size_" + e.size]: !0,
429
- "top-disabled": e.disabled,
430
- "top-forms-focusable": !e.disabled,
431
- "top-error": e.isError
427
+ "top-selector2-multiselect": l.multiselect,
428
+ ["top-size_" + l.size]: !0,
429
+ "top-disabled": l.disabled,
430
+ "top-forms-focusable": !l.disabled,
431
+ "top-error": l.isError
432
432
  }),
433
433
  onKeydown: [
434
- a[0] || (a[0] = L(M((p) => p.currentTarget.click(), ["stop", "prevent"]), ["up", "down", "enter", "space"])),
435
- a[1] || (a[1] = L((p) => o.value = [], ["delete"]))
434
+ u[0] || (u[0] = L(M((h) => h.currentTarget.click(), ["stop", "prevent"]), ["up", "down", "enter", "space"])),
435
+ u[1] || (u[1] = L((h) => e.value = [], ["delete"]))
436
436
  ],
437
437
  tabindex: "0"
438
438
  }, [
439
- e.multiselect ? (u(), v("div", Se, [
440
- (u(!0), v(P, null, N(o.value, (p) => (u(), T(Te, {
441
- id: p.id,
442
- name: p.name,
443
- onDelete: O
439
+ l.multiselect ? (p(), f("div", Te, [
440
+ (p(!0), f(_, null, G(e.value, (h) => (p(), A(ke, {
441
+ id: h.id,
442
+ name: h.name,
443
+ onDelete: g
444
444
  }, null, 8, ["id", "name"]))), 256))
445
445
  ])) : k("", !0),
446
- e.multiselect ? k("", !0) : (u(), v("span", Be, w(Array.isArray(o.value) ? "" : o.value.name), 1)),
447
- e.addChanger && !e.multiselect && r.value.length > 1 && !e.disabled ? (u(), v("span", {
446
+ l.multiselect ? k("", !0) : (p(), f("span", Ve, $(Array.isArray(e.value) ? "" : e.value.name), 1)),
447
+ l.addChanger && !l.multiselect && b(t).items.value.length > 1 && !l.disabled ? (p(), f("span", {
448
448
  key: 2,
449
449
  class: "top-changer top-changer-selector",
450
- onClick: M(z, ["stop"])
450
+ "data-top-popup-disabled": "true",
451
+ onClick: y
451
452
  })) : k("", !0)
452
453
  ], 34)), [
453
454
  [
454
- f,
455
- e.isError,
455
+ K,
456
+ l.isError,
456
457
  void 0,
457
458
  { onupdate: !0 }
458
459
  ]
459
460
  ])
460
461
  ]),
461
- contentList: A(() => {
462
- var p;
462
+ contentList: V(() => {
463
+ var h;
463
464
  return [
464
- (u(!0), v(P, null, N(i.value, (b) => (u(), T(V(D), {
465
- class: $({
466
- "top-active": !Array.isArray(o.value) && !e.multiselect && o.value.id === b.id && o.value.name === b.name
465
+ (p(!0), f(_, null, G(b(t).itemsForShow.value, (T) => (p(), A(b(O), {
466
+ class: C({
467
+ "top-active": !Array.isArray(e.value) && !l.multiselect && e.value.id === T.id && e.value.name === T.name
467
468
  }),
468
- key: b.id ?? void 0,
469
- closeByClick: !e.multiselect || V(j).state.isMobile,
470
- onClick: (H) => S(b)
469
+ key: T.id ?? void 0,
470
+ closeByClick: !l.multiselect || b(te).state.isMobile,
471
+ onClick: (Ee) => m(T)
471
472
  }, {
472
- default: A(() => [
473
- e.$slots.item ? U(e.$slots, "item", {
473
+ default: V(() => [
474
+ l.$slots.item ? D(l.$slots, "item", {
474
475
  key: 0,
475
- item: b
476
- }) : (u(), v(P, { key: 1 }, [
477
- B(w(b.name), 1)
476
+ item: T
477
+ }) : (p(), f(_, { key: 1 }, [
478
+ S($(T.name), 1)
478
479
  ], 64))
479
480
  ]),
480
481
  _: 2
481
482
  }, 1032, ["class", "closeByClick", "onClick"]))), 128)),
482
- !V(g).isLoading.value && !i.value.length ? (u(), T(V(D), {
483
+ !b(n).isLoading.value && !b(t).itemsForShow.value.length ? (p(), A(b(O), {
483
484
  key: 0,
484
485
  type: "regular"
485
486
  }, {
486
- default: A(() => [
487
- B(w(e.$i18n.Common.No_results), 1)
487
+ default: V(() => [
488
+ S($(l.$i18n.Common.No_results), 1)
488
489
  ]),
489
490
  _: 1
490
491
  })) : k("", !0),
491
- V(g).isLoading.value && (!e.showSearch || (p = e.apiRequest) != null && p.params.offset) ? (u(), T(V(D), {
492
+ b(n).isLoading.value && (!l.showSearch || (h = l.apiRequest) != null && h.params.offset) ? (p(), A(b(O), {
492
493
  key: 1,
493
494
  type: "regular"
494
495
  }, {
495
- default: A(() => [
496
- K(V(ie), { type: "circles" })
496
+ default: V(() => [
497
+ P(b(le), { type: "circles" })
497
498
  ]),
498
499
  _: 1
499
500
  })) : k("", !0)
@@ -501,18 +502,18 @@ const me = { class: "top-editArea_footer" }, fe = /* @__PURE__ */ I({
501
502
  }),
502
503
  _: 2
503
504
  }, [
504
- e.showSearch ? {
505
+ l.showSearch ? {
505
506
  name: "widget",
506
- fn: A(() => {
507
- var p;
507
+ fn: V(() => {
508
+ var h;
508
509
  return [
509
- K(V(pe), {
510
+ P(b(ae), {
510
511
  title: "Поиск",
511
512
  icon: "",
512
- modelValue: l.value,
513
- "onUpdate:modelValue": a[2] || (a[2] = (b) => l.value = b),
514
- isLoading: V(g).isLoading.value && !((p = e.apiRequest) != null && p.params.offset),
515
- placeholder: !Array.isArray(o.value) && !e.multiselect && e.showSelectedInInput ? o.value.name : e.placeholder
513
+ modelValue: b(t).searchText.value,
514
+ "onUpdate:modelValue": u[2] || (u[2] = (T) => b(t).searchText.value = T),
515
+ isLoading: b(n).isLoading.value && !((h = l.apiRequest) != null && h.params.offset),
516
+ placeholder: !Array.isArray(e.value) && !l.multiselect && l.showSelectedInInput ? e.value.name : l.placeholder
516
517
  }, null, 8, ["modelValue", "isLoading", "placeholder"])
517
518
  ];
518
519
  }),
@@ -521,41 +522,41 @@ const me = { class: "top-editArea_footer" }, fe = /* @__PURE__ */ I({
521
522
  ]), 1536);
522
523
  };
523
524
  }
524
- }), Ee = ["data-top-icon"], Le = { class: "top-info_text" }, Me = {
525
+ }), Se = ["data-top-icon"], Be = { class: "top-info_text" }, Ie = {
525
526
  key: 0,
526
527
  class: "top-info_value"
527
- }, _e = /* @__PURE__ */ I({
528
+ }, Le = /* @__PURE__ */ B({
528
529
  __name: "info",
529
530
  props: {
530
531
  icon: {},
531
532
  styling: { default: "default" },
532
533
  size: { default: "default" }
533
534
  },
534
- setup(n) {
535
- return (t, o) => (u(), v("div", {
536
- class: $({
535
+ setup(s) {
536
+ return (o, e) => (p(), f("div", {
537
+ class: C({
537
538
  "top-info": !0,
538
- ["top-size_" + t.size]: !0,
539
- ["top-info-styling_" + t.styling]: !0
539
+ ["top-size_" + o.size]: !0,
540
+ ["top-info-styling_" + o.styling]: !0
540
541
  }),
541
- "data-top-icon": t.icon
542
+ "data-top-icon": o.icon
542
543
  }, [
543
- E("div", Le, [
544
- U(t.$slots, "default")
544
+ I("div", Be, [
545
+ D(o.$slots, "default")
545
546
  ]),
546
- t.$slots.additional ? (u(), v("span", Me, [
547
- U(t.$slots, "additional")
547
+ o.$slots.additional ? (p(), f("span", Ie, [
548
+ D(o.$slots, "additional")
548
549
  ])) : k("", !0)
549
- ], 10, Ee));
550
+ ], 10, Se));
550
551
  }
551
- }), He = fe, De = ye, Fe = ke, Re = $e, Ue = Ie, We = ce, Je = _e;
552
+ }), Oe = ue, Fe = pe, Ne = ve, De = be, He = Ae, Re = ne, Ue = Le;
552
553
  export {
553
- Re as TopCheckboxGroup,
554
- He as TopEditArea,
555
- De as TopEditInput,
556
- Je as TopInfo,
557
- We as TopMenu,
558
- Fe as TopRadioGroup,
559
- Ue as TopSelector2
554
+ De as TopCheckboxGroup,
555
+ Oe as TopEditArea,
556
+ Fe as TopEditInput,
557
+ Ue as TopInfo,
558
+ Re as TopMenu,
559
+ Ne as TopRadioGroup,
560
+ He as TopSelector2
560
561
  };
561
562
  //# sourceMappingURL=formsExt.js.map