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