@topvisor/ui 1.0.28-2 → 1.0.29

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