@topvisor/ui 1.3.5-5.0 → 1.3.5-popupFromInput.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 (103) hide show
  1. package/.chunks/{core-DmO1i1Ua.amd.js → core-DcLw0dEO.amd.js} +2 -2
  2. package/.chunks/{core-DmO1i1Ua.amd.js.map → core-DcLw0dEO.amd.js.map} +1 -1
  3. package/.chunks/{core-CaWxDXrZ.es.js → core-DpTLGhiK.es.js} +4 -4
  4. package/.chunks/{core-CaWxDXrZ.es.js.map → core-DpTLGhiK.es.js.map} +1 -1
  5. package/.chunks/{datepicker-CPrHVH4x.amd.js → datepicker-Bq_z2paN.amd.js} +2 -2
  6. package/.chunks/{datepicker-CPrHVH4x.amd.js.map → datepicker-Bq_z2paN.amd.js.map} +1 -1
  7. package/.chunks/{datepicker-J8Zg9mKt.es.js → datepicker-CGGp0VnN.es.js} +2 -2
  8. package/.chunks/{datepicker-J8Zg9mKt.es.js.map → datepicker-CGGp0VnN.es.js.map} +1 -1
  9. package/.chunks/{dialog_selectorRegions-DoEjgXtb.es.js → dialog_selectorRegions-BtAADQHf.es.js} +4 -4
  10. package/.chunks/{dialog_selectorRegions-DoEjgXtb.es.js.map → dialog_selectorRegions-BtAADQHf.es.js.map} +1 -1
  11. package/.chunks/{dialog_selectorRegions-DzufTzj9.amd.js → dialog_selectorRegions-DCrHvHDs.amd.js} +2 -2
  12. package/.chunks/{dialog_selectorRegions-DzufTzj9.amd.js.map → dialog_selectorRegions-DCrHvHDs.amd.js.map} +1 -1
  13. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd.js → dialogs.vue_vue_type_script_setup_true_lang-Bf0wXalT.amd.js} +2 -2
  14. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-Bf0wXalT.amd.js.map} +1 -1
  15. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js → dialogs.vue_vue_type_script_setup_true_lang-DCVIoEeY.es.js} +2 -2
  16. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-DCVIoEeY.es.js.map} +1 -1
  17. package/.chunks/{forms-COXAfg9G.es.js → forms-BhbgRJ5I.es.js} +51 -53
  18. package/.chunks/{forms-COXAfg9G.es.js.map → forms-BhbgRJ5I.es.js.map} +1 -1
  19. package/.chunks/{forms-DXX5M4DO.amd.js → forms-CNcrvkYD.amd.js} +3 -3
  20. package/.chunks/{forms-DXX5M4DO.amd.js.map → forms-CNcrvkYD.amd.js.map} +1 -1
  21. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-QvP1d9jN.amd.js +2 -0
  22. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-QvP1d9jN.amd.js.map +1 -0
  23. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js → listItem.vue_vue_type_script_setup_true_lang-xvzbyqai.es.js} +36 -39
  24. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-xvzbyqai.es.js.map} +1 -1
  25. package/.chunks/{menu.vue_vue_type_style_index_0_lang-D3OAqOqX.amd.js → menu.vue_vue_type_style_index_0_lang-C3Rr6ZyL.amd.js} +2 -2
  26. package/.chunks/{menu.vue_vue_type_style_index_0_lang-D3OAqOqX.amd.js.map → menu.vue_vue_type_style_index_0_lang-C3Rr6ZyL.amd.js.map} +1 -1
  27. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js → menu.vue_vue_type_style_index_0_lang-dOeZ7an1.es.js} +2 -2
  28. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js.map → menu.vue_vue_type_style_index_0_lang-dOeZ7an1.es.js.map} +1 -1
  29. package/.chunks/{notice-CSGn_jTM.amd.js → notice-BpLsm6Zh.amd.js} +2 -2
  30. package/.chunks/{notice-CSGn_jTM.amd.js.map → notice-BpLsm6Zh.amd.js.map} +1 -1
  31. package/.chunks/{notice-P7CXfEuX.es.js → notice-CpPhDTUb.es.js} +2 -2
  32. package/.chunks/{notice-P7CXfEuX.es.js.map → notice-CpPhDTUb.es.js.map} +1 -1
  33. package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js.map +1 -1
  34. package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js.map +1 -1
  35. package/.chunks/{page.vue_vue_type_script_setup_true_lang-D9m45rLs.es.js → page.vue_vue_type_script_setup_true_lang-9abPBMpd.es.js} +4 -4
  36. package/.chunks/{page.vue_vue_type_script_setup_true_lang-D9m45rLs.es.js.map → page.vue_vue_type_script_setup_true_lang-9abPBMpd.es.js.map} +1 -1
  37. package/.chunks/{page.vue_vue_type_script_setup_true_lang-DHPOnLj5.amd.js → page.vue_vue_type_script_setup_true_lang-B-1LEQAz.amd.js} +2 -2
  38. package/.chunks/{page.vue_vue_type_script_setup_true_lang-DHPOnLj5.amd.js.map → page.vue_vue_type_script_setup_true_lang-B-1LEQAz.amd.js.map} +1 -1
  39. package/.chunks/{popup-G7FYKscC.es.js → popup-BJj9BJP5.es.js} +2 -2
  40. package/.chunks/{popup-G7FYKscC.es.js.map → popup-BJj9BJP5.es.js.map} +1 -1
  41. package/.chunks/{popup-CF4k7j3U.amd.js → popup-CfXISjhC.amd.js} +2 -2
  42. package/.chunks/{popup-CF4k7j3U.amd.js.map → popup-CfXISjhC.amd.js.map} +1 -1
  43. package/.chunks/{utils-D505nRsu.amd.js → utils-5uxIj2CI.amd.js} +2 -2
  44. package/.chunks/{utils-D505nRsu.amd.js.map → utils-5uxIj2CI.amd.js.map} +1 -1
  45. package/.chunks/{utils-DmxcQpWA.amd.js → utils-Bg_su8b-.amd.js} +2 -2
  46. package/.chunks/{utils-DmxcQpWA.amd.js.map → utils-Bg_su8b-.amd.js.map} +1 -1
  47. package/.chunks/{utils-CWm0zAtM.es.js → utils-D58EUoHa.es.js} +3 -3
  48. package/.chunks/{utils-CWm0zAtM.es.js.map → utils-D58EUoHa.es.js.map} +1 -1
  49. package/.chunks/{utils-Rbz9mxy6.es.js → utils-UBgfsQ8v.es.js} +2 -2
  50. package/.chunks/{utils-Rbz9mxy6.es.js.map → utils-UBgfsQ8v.es.js.map} +1 -1
  51. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js → widgetInput.vue_vue_type_script_setup_true_lang-CSD2uMSW.es.js} +2 -2
  52. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-CSD2uMSW.es.js.map} +1 -1
  53. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-BU-FdL6d.amd.js → widgetInput.vue_vue_type_script_setup_true_lang-D6SVtg2Q.amd.js} +2 -2
  54. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-BU-FdL6d.amd.js.map → widgetInput.vue_vue_type_script_setup_true_lang-D6SVtg2Q.amd.js.map} +1 -1
  55. package/assets/forms.css +1 -1
  56. package/charts/charts.amd.js +1 -1
  57. package/charts/charts.js +1 -1
  58. package/core/app.amd.js +1 -1
  59. package/core/app.js +5 -5
  60. package/dialog/dialog.amd.js +1 -1
  61. package/dialog/dialog.js +2 -2
  62. package/forms/forms.amd.js +1 -1
  63. package/forms/forms.js +1 -1
  64. package/formsExt/formsExt.amd.js +1 -1
  65. package/formsExt/formsExt.amd.js.map +1 -1
  66. package/formsExt/formsExt.js +362 -374
  67. package/formsExt/formsExt.js.map +1 -1
  68. package/layout/layout.amd.js +1 -1
  69. package/layout/layout.js +1 -1
  70. package/package.json +1 -1
  71. package/popup/popup.amd.js +1 -1
  72. package/popup/popup.js +4 -4
  73. package/popup/worker.amd.js +1 -1
  74. package/popup/worker.js +2 -2
  75. package/project/project.amd.js +1 -1
  76. package/project/project.js +5 -5
  77. package/src/api/api/types/ext.d.ts +2 -2
  78. package/src/components/forms/button/types.d.ts +0 -6
  79. package/src/components/formsExt/libs/optionGroup/types.d.ts +1 -1
  80. package/src/components/formsExt/selector2/composables/useAPI.d.ts +2 -3
  81. package/src/components/formsExt/selector2/composables/useMenu.d.ts +1 -1
  82. package/src/components/formsExt/selector2/selector2.vue.d.ts +0 -2
  83. package/src/components/formsExt/selector2/types.d.ts +1 -18
  84. package/src/components/formsExt/selector2/utils.d.ts +0 -1
  85. package/src/components/popup/popup/opener.vue.d.ts +0 -1
  86. package/tabsView/tabsView.amd.js +1 -1
  87. package/tabsView/tabsView.js +2 -2
  88. package/utils/clipboard.amd.js +1 -1
  89. package/utils/clipboard.js +1 -1
  90. package/utils/date.amd.js +1 -1
  91. package/utils/date.js +1 -1
  92. package/utils/device.amd.js +1 -1
  93. package/utils/device.js +1 -1
  94. package/utils/lodash.amd.js +1 -1
  95. package/utils/lodash.js +1 -1
  96. package/utils/price.amd.js +1 -1
  97. package/utils/price.js +1 -1
  98. package/utils/searchers.amd.js +1 -1
  99. package/utils/searchers.js +3 -3
  100. package/utils/string.amd.js +1 -1
  101. package/utils/string.js +1 -1
  102. package/.chunks/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js.map +0 -1
  103. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd.js +0 -2
@@ -3,14 +3,14 @@
3
3
  const fileNames = ['../assets/formsExt.css', '../assets/popupHint.css'].map(fileName => import.meta.resolve(fileName));
4
4
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
5
5
 
6
- import { defineComponent as C, ref as B, computed as M, createElementBlock as b, openBlock as u, normalizeClass as L, createCommentVNode as k, createElementVNode as z, toDisplayString as I, createVNode as D, withKeys as q, withModifiers as F, createBlock as $, createSlots as G, withCtx as T, createTextVNode as E, watch as S, toRef as O, mergeProps as J, mergeModels as N, useModel as W, Fragment as R, renderList as H, renderSlot as P, resolveDirective as ee, unref as f, withDirectives as te, resolveDynamicComponent as oe } from "vue";
7
- import { q as le, c as U, _ as se, j as ae, n as re, d as ne, u as ie, C as Q, r as ue } from "../.chunks/forms-COXAfg9G.es.js";
8
- import { _ as de, a as j } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js";
9
- import { _ as pe } from "../.chunks/widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js";
6
+ import { defineComponent as B, ref as C, computed as S, createElementBlock as b, openBlock as p, normalizeClass as E, createCommentVNode as k, createElementVNode as M, toDisplayString as w, createVNode as D, withKeys as N, withModifiers as O, createBlock as T, createSlots as j, withCtx as A, createTextVNode as _, watch as L, toRef as P, mergeProps as J, mergeModels as H, useModel as U, Fragment as R, renderList as q, renderSlot as G, resolveDirective as Z, unref as f, withDirectives as x, resolveDynamicComponent as ee } from "vue";
7
+ import { q as te, c as F, _ as oe, j as le, n as se, d as ae, u as re, C as X, r as ne } from "../.chunks/forms-BhbgRJ5I.es.js";
8
+ import { _ as ie, a as W } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-xvzbyqai.es.js";
9
+ import { _ as ue } from "../.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CSD2uMSW.es.js";
10
10
  /* empty css */
11
- import { invertKeyboardLayout as ce } from "../utils/keyboard.js";
12
- import { _ as Ue } from "../.chunks/menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js";
13
- const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
11
+ import { invertKeyboardLayout as de } from "../utils/keyboard.js";
12
+ import { _ as qe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-dOeZ7an1.es.js";
13
+ const pe = { class: "top-editArea_footer" }, Me = /* @__PURE__ */ B({
14
14
  __name: "editArea",
15
15
  props: {
16
16
  defaultValue: { default: "" },
@@ -35,85 +35,85 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
35
35
  maxLength: {}
36
36
  },
37
37
  emits: ["submit", "close", "clickOnTitle"],
38
- setup(s, { emit: o }) {
39
- const t = s, l = o, m = B(t.defaultValue), a = B(t.isFocused), c = M(() => m.value !== t.defaultValue), r = (i) => {
40
- l("submit", i), m.value = t.defaultValue;
41
- }, n = () => {
42
- if (t.forceShowCloseBtn && !c.value) {
43
- l("close");
38
+ setup(l, { emit: e }) {
39
+ const t = l, s = e, c = C(t.defaultValue), r = C(t.isFocused), a = S(() => c.value !== t.defaultValue), i = (u) => {
40
+ s("submit", u), c.value = t.defaultValue;
41
+ }, m = () => {
42
+ if (t.forceShowCloseBtn && !a.value) {
43
+ s("close");
44
44
  return;
45
45
  }
46
- m.value = t.defaultValue;
47
- }, g = () => {
48
- t.attachToKeyboard && l("clickOnTitle");
46
+ c.value = t.defaultValue;
47
+ }, $ = () => {
48
+ t.attachToKeyboard && s("clickOnTitle");
49
49
  };
50
- return (i, v) => (u(), b("div", {
51
- class: L({
50
+ return (u, v) => (p(), b("div", {
51
+ class: E({
52
52
  "top-editArea": !0,
53
- "top-editArea-attachedToKeyboard": i.attachToKeyboard
53
+ "top-editArea-attachedToKeyboard": u.attachToKeyboard
54
54
  })
55
55
  }, [
56
- i.title ? (u(), b("div", {
56
+ u.title ? (p(), b("div", {
57
57
  key: 0,
58
58
  class: "top-editArea_title",
59
- onClick: v[0] || (v[0] = (w) => g())
60
- }, I(i.title), 1)) : k("", !0),
61
- z("div", {
62
- class: L({
59
+ onClick: v[0] || (v[0] = (I) => $())
60
+ }, w(u.title), 1)) : k("", !0),
61
+ M("div", {
62
+ class: E({
63
63
  "top-editArea_form": !0,
64
64
  "top-forms-focusable": !0,
65
65
  "top-as-input": !0,
66
- "top-error": i.isError,
67
- "top-focus": a.value
66
+ "top-error": u.isError,
67
+ "top-focus": r.value
68
68
  })
69
69
  }, [
70
- D(le, {
71
- modelValue: m.value,
72
- "onUpdate:modelValue": v[1] || (v[1] = (w) => m.value = w),
73
- name: i.name,
74
- placeholder: i.placeholder,
75
- rows: i.rows,
76
- minHeight: i.minHeight,
77
- expandable: i.expandable,
78
- disabled: i.disabled,
79
- readonly: i.readonly,
80
- isError: i.isError,
81
- hint: i.hint,
70
+ D(te, {
71
+ modelValue: c.value,
72
+ "onUpdate:modelValue": v[1] || (v[1] = (I) => c.value = I),
73
+ name: u.name,
74
+ placeholder: u.placeholder,
75
+ rows: u.rows,
76
+ minHeight: u.minHeight,
77
+ expandable: u.expandable,
78
+ disabled: u.disabled,
79
+ readonly: u.readonly,
80
+ isError: u.isError,
81
+ hint: u.hint,
82
82
  class: "top-editArea_element",
83
- onFocus: v[2] || (v[2] = () => a.value = !0),
84
- onBlur: v[3] || (v[3] = () => a.value = !1),
83
+ onFocus: v[2] || (v[2] = () => r.value = !0),
84
+ onBlur: v[3] || (v[3] = () => r.value = !1),
85
85
  onKeyup: [
86
- q(n, ["esc"]),
87
- v[4] || (v[4] = q(F((w) => r(m.value), ["ctrl"]), ["enter"]))
86
+ N(m, ["esc"]),
87
+ v[4] || (v[4] = N(O((I) => i(c.value), ["ctrl"]), ["enter"]))
88
88
  ]
89
89
  }, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
90
- z("div", me, [
91
- c.value || i.forceShowCloseBtn ? (u(), $(U, {
90
+ M("div", pe, [
91
+ a.value || u.forceShowCloseBtn ? (p(), T(F, {
92
92
  key: 0,
93
- icon: i.$core.state.isMobile ? "" : "",
93
+ icon: u.$core.state.isMobile ? "" : "",
94
94
  class: "top-editArea_button",
95
95
  color: "theme",
96
96
  styling: "soft",
97
- onClick: n
98
- }, G({ _: 2 }, [
99
- i.$core.state.isMobile ? void 0 : {
97
+ onClick: m
98
+ }, j({ _: 2 }, [
99
+ u.$core.state.isMobile ? void 0 : {
100
100
  name: "default",
101
- fn: T(() => [
102
- E(I(i.cancelText), 1)
101
+ fn: A(() => [
102
+ _(w(u.cancelText), 1)
103
103
  ]),
104
104
  key: "0"
105
105
  }
106
106
  ]), 1032, ["icon"])) : k("", !0),
107
- c.value ? (u(), $(U, {
107
+ a.value ? (p(), T(F, {
108
108
  key: 1,
109
109
  class: "top-editArea_button",
110
- icon: i.$core.state.isMobile ? "" : "",
111
- onClick: v[5] || (v[5] = (w) => r(m.value))
112
- }, G({ _: 2 }, [
113
- i.$core.state.isMobile ? void 0 : {
110
+ icon: u.$core.state.isMobile ? "" : "",
111
+ onClick: v[5] || (v[5] = (I) => i(c.value))
112
+ }, j({ _: 2 }, [
113
+ u.$core.state.isMobile ? void 0 : {
114
114
  name: "default",
115
- fn: T(() => [
116
- E(I(i.submitText), 1)
115
+ fn: A(() => [
116
+ _(w(u.submitText), 1)
117
117
  ]),
118
118
  key: "0"
119
119
  }
@@ -122,7 +122,7 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
122
122
  ], 2)
123
123
  ], 2));
124
124
  }
125
- }), fe = { class: "top-editInput" }, De = /* @__PURE__ */ C({
125
+ }), ce = { class: "top-editInput" }, ze = /* @__PURE__ */ B({
126
126
  __name: "editInput",
127
127
  props: {
128
128
  modelValue: {},
@@ -130,31 +130,31 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
130
130
  button: {}
131
131
  },
132
132
  emits: ["update:modelValue"],
133
- setup(s, { emit: o }) {
134
- const t = s, l = B(t.modelValue);
135
- S(O(t.modelValue), () => {
136
- l.value = t.modelValue;
133
+ setup(l, { emit: e }) {
134
+ const t = l, s = C(t.modelValue);
135
+ L(P(t.modelValue), () => {
136
+ s.value = t.modelValue;
137
137
  });
138
- const m = o, a = () => {
139
- m("update:modelValue", l.value);
138
+ const c = e, r = () => {
139
+ c("update:modelValue", s.value);
140
140
  };
141
- return (c, r) => (u(), b("div", fe, [
142
- D(se, J(c.input, {
143
- onKeydownCapture: r[0] || (r[0] = q(F((n) => l.value = c.modelValue, ["stop"]), ["esc"])),
144
- onKeydown: q(F(a, ["stop"]), ["enter"]),
145
- modelValue: l.value,
146
- "onUpdate:modelValue": r[1] || (r[1] = (n) => l.value = n)
141
+ return (a, i) => (p(), b("div", ce, [
142
+ D(oe, J(a.input, {
143
+ onKeydownCapture: i[0] || (i[0] = N(O((m) => s.value = a.modelValue, ["stop"]), ["esc"])),
144
+ onKeydown: N(O(r, ["stop"]), ["enter"]),
145
+ modelValue: s.value,
146
+ "onUpdate:modelValue": i[1] || (i[1] = (m) => s.value = m)
147
147
  }), null, 16, ["onKeydown", "modelValue"]),
148
- l.value !== c.modelValue ? (u(), $(U, J({
148
+ s.value !== a.modelValue ? (p(), T(F, J({
149
149
  key: 0,
150
150
  icon: "",
151
151
  styling: "soft"
152
- }, c.button, { onClick: a }), null, 16)) : k("", !0)
152
+ }, a.button, { onClick: r }), null, 16)) : k("", !0)
153
153
  ]));
154
154
  }
155
- }), x = /* @__PURE__ */ C({
155
+ }), Q = /* @__PURE__ */ B({
156
156
  __name: "optionGroup",
157
- props: /* @__PURE__ */ N({
157
+ props: /* @__PURE__ */ H({
158
158
  modelValue: {},
159
159
  items: {},
160
160
  size: { default: "s" },
@@ -167,72 +167,66 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
167
167
  modelModifiers: {}
168
168
  }),
169
169
  emits: ["update:modelValue"],
170
- setup(s) {
171
- const o = W(s, "modelValue"), t = s, l = B(null);
172
- S(o, () => {
173
- var c, r;
174
- const a = t.items.map((n) => n.value);
175
- Array.isArray(o.value) ? o.value.find((g) => !a.includes(g)) && (o.value = o.value.filter((g) => a.includes(g))) : a.includes(o.value) || (o.value = a[0] ?? ""), (r = (c = l.value) == null ? void 0 : c.querySelector(".radioGroup_item-selected")) == null || r.scrollIntoView();
170
+ setup(l) {
171
+ const e = U(l, "modelValue"), t = l, s = C(null);
172
+ L(e, () => {
173
+ var a, i;
174
+ const r = t.items.map((m) => m.value);
175
+ Array.isArray(e.value) ? e.value.find(($) => !r.includes($)) && (e.value = e.value.filter(($) => r.includes($))) : r.includes(e.value) || (e.value = r[0] ?? ""), (i = (a = s.value) == null ? void 0 : a.querySelector(".radioGroup_item-selected")) == null || i.scrollIntoView();
176
176
  }, { immediate: !0 });
177
- const m = "optionGroup-" + Math.random();
178
- return (a, c) => (u(), b("div", {
177
+ const c = "optionGroup-" + Math.random();
178
+ return (r, a) => (p(), b("div", {
179
179
  ref_key: "elRef",
180
- ref: l,
181
- class: L({
180
+ ref: s,
181
+ class: E({
182
182
  "top-optionGroup": !0,
183
- ["top-optionGroup-showIndicator_" + Number(a.showIndicator)]: !0,
183
+ ["top-optionGroup-showIndicator_" + Number(r.showIndicator)]: !0,
184
184
  "top-scrollBarXHidding": !0,
185
- ["top-size_" + a.size]: !!a.size,
186
- "top-error": a.isError
185
+ ["top-size_" + r.size]: !!r.size,
186
+ "top-error": r.isError
187
187
  })
188
188
  }, [
189
- Array.isArray(o.value) ? (u(!0), b(R, { key: 0 }, H(a.items, (r) => (u(), $(ae, {
190
- class: L({
191
- "top-optionGroup_item-selected": o.value.includes(r.value),
189
+ Array.isArray(e.value) ? (p(!0), b(R, { key: 0 }, q(r.items, (i) => (p(), T(le, {
190
+ class: E({
191
+ "top-optionGroup_item-selected": e.value.includes(i.value),
192
192
  "top-optionGroup_item": !0
193
193
  }),
194
- modelValue: o.value,
195
- "onUpdate:modelValue": c[0] || (c[0] = (n) => o.value = n),
196
- value: r.value,
197
- title: r.title,
198
- disabled: r.disabled,
199
- isError: a.isError,
200
- "data-top-icon": r.icon
201
- }, G({ _: 2 }, [
202
- r.label ? {
203
- name: "default",
204
- fn: T(() => [
205
- E(I(r.label), 1)
206
- ]),
207
- key: "0"
208
- } : void 0
209
- ]), 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256)) : (u(!0), b(R, { key: 1 }, H(a.items, (r) => (u(), $(re, {
210
- class: L({
211
- "top-optionGroup_item-selected": r.value === o.value,
194
+ modelValue: e.value,
195
+ "onUpdate:modelValue": a[0] || (a[0] = (m) => e.value = m),
196
+ value: i.value,
197
+ title: i.title,
198
+ disabled: i.disabled,
199
+ isError: r.isError,
200
+ "data-top-icon": i.icon
201
+ }, {
202
+ default: A(() => [
203
+ _(w(i.label), 1)
204
+ ]),
205
+ _: 2
206
+ }, 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256)) : (p(!0), b(R, { key: 1 }, q(r.items, (i) => (p(), T(se, {
207
+ class: E({
208
+ "top-optionGroup_item-selected": i.value === e.value,
212
209
  "top-optionGroup_item": !0
213
210
  }),
214
- modelValue: o.value,
215
- "onUpdate:modelValue": c[1] || (c[1] = (n) => o.value = n),
216
- name: m,
217
- value: r.value,
218
- title: r.title,
219
- disabled: r.disabled,
220
- isError: a.isError,
221
- "data-top-icon": r.icon
222
- }, G({ _: 2 }, [
223
- r.label ? {
224
- name: "default",
225
- fn: T(() => [
226
- E(I(r.label), 1)
227
- ]),
228
- key: "0"
229
- } : void 0
230
- ]), 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256))
211
+ modelValue: e.value,
212
+ "onUpdate:modelValue": a[1] || (a[1] = (m) => e.value = m),
213
+ name: c,
214
+ value: i.value,
215
+ title: i.title,
216
+ disabled: i.disabled,
217
+ isError: r.isError,
218
+ "data-top-icon": i.icon
219
+ }, {
220
+ default: A(() => [
221
+ _(w(i.label), 1)
222
+ ]),
223
+ _: 2
224
+ }, 1032, ["class", "modelValue", "value", "title", "disabled", "isError", "data-top-icon"]))), 256))
231
225
  ], 2));
232
226
  }
233
- }), Ge = /* @__PURE__ */ C({
227
+ }), Ke = /* @__PURE__ */ B({
234
228
  __name: "radioGroup",
235
- props: /* @__PURE__ */ N({
229
+ props: /* @__PURE__ */ H({
236
230
  modelValue: {},
237
231
  items: {},
238
232
  size: {},
@@ -245,26 +239,26 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
245
239
  modelModifiers: {}
246
240
  }),
247
241
  emits: ["update:modelValue"],
248
- setup(s) {
249
- const o = W(s, "modelValue");
250
- return (t, l) => (u(), $(x, {
242
+ setup(l) {
243
+ const e = U(l, "modelValue");
244
+ return (t, s) => (p(), T(Q, {
251
245
  class: "top-radioGroup",
252
- modelValue: o.value,
253
- "onUpdate:modelValue": l[0] || (l[0] = (m) => o.value = m),
246
+ modelValue: e.value,
247
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value = c),
254
248
  items: t.$props.items,
255
249
  size: t.$props.size,
256
250
  showIndicator: t.$props.showIndicator,
257
251
  isError: t.$props.isError
258
252
  }, {
259
- default: T(() => [
260
- P(t.$slots, "default")
253
+ default: A(() => [
254
+ G(t.$slots, "default")
261
255
  ]),
262
256
  _: 3
263
257
  }, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
264
258
  }
265
- }), Ne = /* @__PURE__ */ C({
259
+ }), Re = /* @__PURE__ */ B({
266
260
  __name: "checkboxGroup",
267
- props: /* @__PURE__ */ N({
261
+ props: /* @__PURE__ */ H({
268
262
  modelValue: {},
269
263
  items: {},
270
264
  size: {},
@@ -277,144 +271,140 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
277
271
  modelModifiers: {}
278
272
  }),
279
273
  emits: ["update:modelValue"],
280
- setup(s) {
281
- const o = W(s, "modelValue");
282
- return (t, l) => (u(), $(x, {
274
+ setup(l) {
275
+ const e = U(l, "modelValue");
276
+ return (t, s) => (p(), T(Q, {
283
277
  class: "top-checkboxGroup",
284
- modelValue: o.value,
285
- "onUpdate:modelValue": l[0] || (l[0] = (m) => o.value = m),
278
+ modelValue: e.value,
279
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value = c),
286
280
  items: t.$props.items,
287
281
  size: t.$props.size,
288
282
  showIndicator: t.$props.showIndicator,
289
283
  isError: t.$props.isError
290
284
  }, {
291
- default: T(() => [
292
- P(t.$slots, "default")
285
+ default: A(() => [
286
+ G(t.$slots, "default")
293
287
  ]),
294
288
  _: 3
295
289
  }, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
296
290
  }
297
- }), ve = { class: "top-selector2_itemMulti top-ellipsis" }, ye = /* @__PURE__ */ C({
291
+ }), me = { class: "top-selector2_itemMulti top-ellipsis" }, fe = /* @__PURE__ */ B({
298
292
  __name: "itemMulti",
299
293
  props: {
300
294
  id: {},
301
295
  name: {}
302
296
  },
303
297
  emits: ["delete"],
304
- setup(s) {
305
- return (o, t) => (u(), b("div", ve, [
306
- E(I(o.name) + " ", 1),
307
- z("span", {
298
+ setup(l) {
299
+ return (e, t) => (p(), b("div", me, [
300
+ _(w(e.name) + " ", 1),
301
+ M("span", {
308
302
  class: "top-selector2_itemMultiDelete",
309
303
  "data-top-icon": "",
310
- onClick: t[0] || (t[0] = (l) => o.$emit("delete", o.id)),
311
- onMousedown: t[1] || (t[1] = F(() => {
304
+ onClick: t[0] || (t[0] = (s) => e.$emit("delete", e.id)),
305
+ onMousedown: t[1] || (t[1] = O(() => {
312
306
  }, ["stop"]))
313
307
  }, null, 32)
314
308
  ]));
315
309
  }
316
- }), he = (s, o, t, l) => {
317
- const m = B([]), a = /* @__PURE__ */ new Map(), c = B(!1);
318
- let r = "", n;
319
- s && !s.params.limit && (s.params.limit = 100);
320
- const g = async () => {
321
- if (!s) return;
322
- let V;
323
- if (l) {
324
- V = JSON.stringify(s.params);
325
- const _ = a.get(V);
326
- if (_)
327
- return _;
310
+ }), ve = (l, e, t, s) => {
311
+ const c = C([]), r = /* @__PURE__ */ new Map(), a = C(!1);
312
+ let i = "", m;
313
+ l && !l.params.limit && (l.params.limit = 100);
314
+ const $ = async () => {
315
+ if (!l) return;
316
+ let y;
317
+ if (s) {
318
+ y = JSON.stringify(l.params);
319
+ const o = r.get(y);
320
+ if (o)
321
+ return o;
328
322
  }
329
- c.value = !0;
330
- const y = await s.call();
331
- if (c.value = !1, y.errors) return;
332
- if (!Array.isArray(y.result)) {
323
+ a.value = !0;
324
+ const g = await l.call();
325
+ if (a.value = !1, g.errors) return;
326
+ if (!Array.isArray(g.result)) {
333
327
  console.warn("Array expected in `res.result`");
334
328
  return;
335
329
  }
336
- const K = y.result.findIndex((_) => _.id === void 0 || _.name === void 0);
337
- if (K !== -1) {
338
- console.warn(`В result[${K}] нет id или name`);
330
+ const z = g.result.findIndex((o) => o.id === void 0 || o.name === void 0);
331
+ if (z !== -1) {
332
+ console.warn(`В result[${z}] нет id или name`);
339
333
  return;
340
334
  }
341
- return V && a.set(V, y), y;
342
- }, i = async (V) => {
343
- if (!s) return;
344
- if (V) {
345
- if (!n || c.value) return;
346
- s.params.offset = n;
335
+ return y && r.set(y, g), g;
336
+ }, u = async (y) => {
337
+ if (!l) return;
338
+ if (y) {
339
+ if (!m || a.value) return;
340
+ l.params.offset = m;
347
341
  } else
348
- s.params.offset = 0;
349
- o == null || o(r);
350
- const y = await g();
351
- y && (n = y.nextOffset, V ? m.value = m.value.concat(y.result) : m.value = y.result);
352
- }, v = ne(() => i(!1), 200);
342
+ l.params.offset = 0;
343
+ e == null || e(i);
344
+ const g = await $();
345
+ g && (m = g.nextOffset, y ? c.value = c.value.concat(g.result) : c.value = g.result);
346
+ }, v = ae(() => u(!1), 200);
353
347
  return {
354
- apiRequest: s,
355
- items: m,
356
- isLoading: c,
357
- load: i,
358
- setSearchTextAndLoad: (V, y = !0) => {
359
- s && (V.length < t || V === r && m.value.length || (r = V, y ? v() : i(!1)));
348
+ apiRequest: l,
349
+ items: c,
350
+ isLoading: a,
351
+ load: u,
352
+ setSearchTextAndLoad: (y, g = !0) => {
353
+ l && (y.length < t || y === i && c.value.length || (i = y, g ? v() : u(!1)));
360
354
  }
361
355
  };
362
- }, be = 0, X = null, Z = (s, o, t = !0) => t && o.id === X ? Array.isArray(s) ? s.some((l) => l.id === o.id && l.name === o.name) : o.name === s.name : Array.isArray(s) ? s.some((l) => l.id === o.id) : o.id === s.id, ge = (s, o, t, l, m, a, c, r, n) => {
363
- const g = B(""), i = {
364
- id: be,
365
- name: ie().Common.All
366
- }, v = () => {
367
- g.value = "", n.items.value = [];
368
- }, w = () => !(!n.apiRequest || c.value !== "inline" || g.value.length >= r), V = M(() => {
369
- var d;
370
- const e = [];
371
- return !l && m.value && e.push(i), (d = t.value) == null || d.forEach((h) => e.push({ ...h })), e;
372
- }), y = M(() => {
373
- const e = g.value.toLowerCase(), d = ce(e);
374
- let h = [];
375
- if (V.value.forEach((p) => {
376
- const A = p.name.toLowerCase();
377
- (p.id === Number(e) || A.includes(e) || A.includes(d)) && (A === e || A === d ? h.unshift(p) : h.push(p));
378
- }), h.push(...n.items.value), a.value && g.value && !h.find((p) => p.name.toLowerCase() === e)) {
379
- const p = {
380
- id: X,
381
- name: g.value
382
- };
383
- n.items.value.length ? h.push(p) : h.unshift(p);
384
- }
385
- return l && (h = h.filter((p) => !Z(s.value, p))), h;
356
+ }, ye = 0, Y = (l, e, t = !0) => t && e.id === null ? Array.isArray(l) ? l.some((s) => s.id === e.id && s.name === e.name) : e.name === l.name : Array.isArray(l) ? l.some((s) => s.id === e.id) : e.id === l.id, he = (l, e, t, s, c, r, a, i) => {
357
+ const m = C(""), $ = {
358
+ id: ye,
359
+ name: re().Common.All
360
+ }, u = () => {
361
+ m.value = "", i.items.value = [];
362
+ }, v = () => !(!i.apiRequest || r.value !== "inline" || m.value.length >= a), I = S(() => {
363
+ var V;
364
+ const n = [];
365
+ return !t && s.value && n.push($), (V = e.value) == null || V.forEach((d) => n.push({ ...d })), n;
366
+ }), y = S(() => {
367
+ const n = m.value.toLowerCase(), V = de(n);
368
+ let d = [];
369
+ return I.value.forEach((h) => {
370
+ const K = h.name.toLowerCase();
371
+ (h.id === Number(n) || K.includes(n) || K.includes(V)) && (K === n || K === V ? d.unshift(h) : d.push(h));
372
+ }), d.push(...i.items.value), c.value && m.value && (!d.length || d[0].name.toLowerCase() !== n) && d.push({
373
+ id: null,
374
+ name: m.value
375
+ }), t && (d = d.filter((h) => !Y(l.value, h))), d;
386
376
  });
387
377
  return {
388
- searchText: g,
389
- resetSearch: v,
390
- genIsShort: w,
391
- items: V,
378
+ searchText: m,
379
+ resetSearch: u,
380
+ genIsShort: v,
381
+ items: I,
392
382
  itemsForShow: y,
393
- selectItem: (e) => {
394
- l && Array.isArray(s.value) ? Z(s.value, e) || (s.value = [...s.value, e]) : s.value = e, e.id === X && o("appendItem", e);
383
+ selectItem: (n) => {
384
+ t && Array.isArray(l.value) ? Y(l.value, n) || (l.value = [...l.value, n]) : l.value = n;
395
385
  },
396
386
  selectNextItem: () => {
397
- if (!Array.isArray(s.value)) {
398
- const d = (y.value.findIndex((h) => h.id === s.value.id) + 1) % y.value.length;
399
- s.value = { ...y.value[d] };
387
+ if (!Array.isArray(l.value)) {
388
+ const V = (y.value.findIndex((d) => d.id === l.value.id) + 1) % y.value.length;
389
+ l.value = { ...y.value[V] };
400
390
  }
401
391
  },
402
- deleteItemById: async (e) => {
403
- Array.isArray(s.value) && (s.value = s.value.filter((d) => d.id !== e));
392
+ deleteItemById: async (n) => {
393
+ Array.isArray(l.value) && (l.value = l.value.filter((V) => V.id !== n));
404
394
  }
405
395
  };
406
- }, Ve = {
396
+ }, be = {
407
397
  key: 0,
408
398
  class: "top-selector2_activeItems"
409
- }, Ae = {
399
+ }, ge = {
410
400
  key: 1,
411
401
  class: "top-selector2_activeName top-ellipsis"
412
- }, Te = {
402
+ }, Ve = {
413
403
  key: 2,
414
404
  class: "top-selector2_placeholder top-ellipsis"
415
- }, Pe = /* @__PURE__ */ C({
405
+ }, De = /* @__PURE__ */ B({
416
406
  __name: "selector2",
417
- props: /* @__PURE__ */ N({
407
+ props: /* @__PURE__ */ H({
418
408
  modelValue: {},
419
409
  items: { default: () => [] },
420
410
  title: {},
@@ -422,7 +412,6 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
422
412
  modificator: {},
423
413
  size: { default: "s" },
424
414
  isError: { type: Boolean },
425
- openByFocus: { type: Boolean },
426
415
  searchType: { default: "popup" },
427
416
  placeholder: {},
428
417
  api: {},
@@ -439,41 +428,40 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
439
428
  modelValue: { required: !0 },
440
429
  modelModifiers: {}
441
430
  }),
442
- emits: /* @__PURE__ */ N(["appendItem"], ["update:modelValue"]),
443
- setup(s, { emit: o }) {
444
- const t = s, l = W(s, "modelValue"), m = o, a = M(() => t.searchType === "inline" && t.multiselect || t.searchType === "inline" && Q.state.isMobile ? "popup" : t.searchType);
431
+ emits: ["update:modelValue"],
432
+ setup(l) {
433
+ const e = l, t = U(l, "modelValue"), s = S(() => e.searchType === "inline" && e.multiselect || e.searchType === "inline" && X.state.isMobile ? "popup" : e.searchType);
445
434
  let c = 0;
446
- a.value === "inline" && t.minLength && (c = t.minLength);
447
- const r = he(t.api, t.apiSetSearchParams, c, t.useCache), n = ge(
448
- l,
449
- m,
450
- O(t, "items"),
451
- t.multiselect,
452
- O(t, "appendAllValue"),
453
- O(t, "appendSearchToResult"),
454
- a,
435
+ s.value === "inline" && e.minLength && (c = e.minLength);
436
+ const r = ve(e.api, e.apiSetSearchParams, c, e.useCache), a = he(
437
+ t,
438
+ P(e, "items"),
439
+ e.multiselect,
440
+ P(e, "appendAllValue"),
441
+ P(e, "appendSearchToResult"),
442
+ s,
455
443
  c,
456
444
  r
457
- ), g = M(() => t.buttonProps ? "TopButton" : a.value === "inline" ? "TopInput" : "div"), i = B(null), v = () => {
458
- var e;
459
- return (e = i.value) == null ? void 0 : e.popup;
445
+ ), i = S(() => e.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), m = C(null), $ = () => {
446
+ var o;
447
+ return (o = m.value) == null ? void 0 : o.popup;
460
448
  };
461
- r.apiRequest && S(n.searchText, () => {
462
- var e;
463
- r.setSearchTextAndLoad(n.searchText.value), a.value === "inline" && n.genIsShort() && ((e = v()) == null || e.close());
464
- }), S(l, () => {
465
- a.value === "inline" && n.resetSearch();
449
+ r.apiRequest && L(a.searchText, () => {
450
+ var o;
451
+ r.setSearchTextAndLoad(a.searchText.value), s.value === "inline" && a.genIsShort() && ((o = $()) == null || o.close());
452
+ }), L(t, () => {
453
+ s.value === "inline" && a.resetSearch();
466
454
  });
467
- const w = M(() => {
468
- var e;
469
- return Array.isArray(l.value) || t.multiselect || !t.selectedAsPlaceholder && a.value !== "inline" ? t.placeholder : ((e = l.value) == null ? void 0 : e.name) || t.placeholder;
470
- }), V = (e) => {
471
- var p, A;
472
- let d = !1;
473
- switch (e.key) {
455
+ const u = S(() => {
456
+ var o;
457
+ return Array.isArray(t.value) || e.multiselect || !e.selectedAsPlaceholder && s.value !== "inline" ? e.placeholder : ((o = t.value) == null ? void 0 : o.name) || e.placeholder;
458
+ }), v = (o) => {
459
+ var d, h;
460
+ let n = !1;
461
+ switch (o.key) {
474
462
  case "Delete":
475
463
  case "Backspace":
476
- Array.isArray(l.value) && (e.preventDefault(), e.stopPropagation(), l.value.pop());
464
+ Array.isArray(t.value) && (o.preventDefault(), o.stopPropagation(), t.value.pop());
477
465
  break;
478
466
  case "ArrowUp":
479
467
  case "ArrowRight":
@@ -481,146 +469,146 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
481
469
  case "ArrowLeft":
482
470
  case "Enter":
483
471
  case " ":
484
- d = !0;
472
+ n = !0;
485
473
  break;
486
474
  case "Escape":
487
- a.value === "inline" && n.resetSearch();
475
+ s.value === "inline" && a.resetSearch();
488
476
  break;
489
477
  }
490
- const h = e.key.length === 1 && !e.ctrlKey && !e.metaKey;
491
- (a.value === "popup" || a.value === "inline") && h && (d = !0), (p = v()) != null && p.elPopup && (d = !1), d && (a.value === "popup" && (e.preventDefault(), e.stopPropagation(), h && (n.searchText.value || (n.searchText.value = e.key))), (A = e.currentTarget) == null || A.click());
492
- }, y = (e) => {
493
- e.preventDefault(), n.selectNextItem();
494
- }, K = () => {
495
- var e;
478
+ const V = o.key.length === 1 && !o.ctrlKey && !o.metaKey;
479
+ (s.value === "popup" || s.value === "inline") && V && (n = !0), (d = $()) != null && d.elPopup && (n = !1), n && (s.value === "popup" && (o.preventDefault(), o.stopPropagation(), V && (a.searchText.value || (a.searchText.value = o.key))), (h = o.currentTarget) == null || h.click());
480
+ }, I = (o) => {
481
+ o.preventDefault(), a.selectNextItem();
482
+ }, y = () => {
483
+ var o;
496
484
  if (r.apiRequest) {
497
- if (n.genIsShort()) {
498
- (e = v()) == null || e.close();
485
+ if (a.genIsShort()) {
486
+ (o = $()) == null || o.close();
499
487
  return;
500
488
  }
501
- r.setSearchTextAndLoad(n.searchText.value, !1);
489
+ r.setSearchTextAndLoad(a.searchText.value, !1);
502
490
  }
503
- }, _ = () => {
504
- a.value && n.searchText.value && n.resetSearch();
505
- }, Y = (e) => {
506
- const d = e.target;
507
- d.scrollTop / (d.scrollHeight - d.offsetHeight) > 0.8 && r.load(!0);
491
+ }, g = () => {
492
+ s.value && a.searchText.value && a.resetSearch();
493
+ }, z = (o) => {
494
+ const n = o.target;
495
+ n.scrollTop / (n.scrollHeight - n.offsetHeight) > 0.8 && r.load(!0);
508
496
  };
509
- return window.__STORYBOOK_PREVIEW__ && (S(
510
- () => t.multiselect,
497
+ return window.__STORYBOOK_PREVIEW__ && (L(
498
+ () => e.multiselect,
511
499
  () => {
512
- t.multiselect ? Array.isArray(l.value) || (l.value = [
500
+ e.multiselect ? Array.isArray(t.value) || (t.value = [
513
501
  {
514
502
  id: 1,
515
503
  name: "Выбери меня"
516
504
  }
517
- ]) : Array.isArray(l.value) && (l.value = {
505
+ ]) : Array.isArray(t.value) && (t.value = {
518
506
  id: null,
519
507
  name: ""
520
508
  });
521
509
  },
522
510
  { immediate: !0 }
523
- ), S(
524
- () => t.searchType,
511
+ ), L(
512
+ () => e.searchType,
525
513
  () => {
526
514
  setTimeout(() => {
527
515
  location.reload();
528
516
  }, 500);
529
517
  }
530
- )), (e, d) => {
531
- const h = ee("top-focus");
532
- return u(), $(f(de), {
518
+ )), (o, n) => {
519
+ const V = Z("top-focus");
520
+ return p(), T(f(ie), {
533
521
  ref_key: "popupRef",
534
- ref: i,
535
- onOpen: d[2] || (d[2] = (p) => K()),
536
- onClose: d[3] || (d[3] = (p) => _()),
537
- onScrollContentList: d[4] || (d[4] = (p) => f(r) ? Y(p) : void 0),
538
- notch: a.value !== "inline",
522
+ ref: m,
523
+ onOpen: n[2] || (n[2] = (d) => y()),
524
+ onClose: n[3] || (n[3] = (d) => g()),
525
+ onScrollContentList: n[4] || (n[4] = (d) => f(r) ? z(d) : void 0),
526
+ notch: s.value !== "inline",
539
527
  transitionDuration: 0,
540
- openByFocus: a.value === "inline"
541
- }, G({
542
- opener: T(() => [
543
- te((u(), $(oe(g.value), J(e.buttonProps, {
528
+ openByFocus: s.value === "inline"
529
+ }, j({
530
+ opener: A(() => [
531
+ x((p(), T(ee(i.value), J(o.buttonProps, {
544
532
  ref: "subcomponentSelector",
545
533
  class: {
546
534
  "top-selector2": !0,
547
- "top-selector2-multiselect": e.multiselect,
548
- ["top-selector2-" + e.modificator]: !!e.modificator,
549
- "top-as-input": !e.buttonProps,
535
+ "top-selector2-multiselect": o.multiselect,
536
+ ["top-selector2-" + o.modificator]: !!o.modificator,
537
+ "top-as-input": !o.buttonProps,
550
538
  "top-as-selector": !0,
551
- ["top-size_" + e.size]: !0,
552
- "top-disabled": e.disabled,
553
- "top-forms-focusable": !e.disabled,
554
- "top-error": e.isError
539
+ ["top-size_" + o.size]: !0,
540
+ "top-disabled": o.disabled,
541
+ "top-forms-focusable": !o.disabled,
542
+ "top-error": o.isError
555
543
  },
556
544
  tabindex: "0",
557
- onKeydown: V,
558
- placeholder: w.value,
559
- modelValue: f(n).searchText.value,
560
- "onUpdate:modelValue": d[0] || (d[0] = (p) => f(n).searchText.value = p)
545
+ onKeydown: v,
546
+ placeholder: u.value,
547
+ modelValue: f(a).searchText.value,
548
+ "onUpdate:modelValue": n[0] || (n[0] = (d) => f(a).searchText.value = d)
561
549
  }), {
562
- default: T(() => [
563
- e.multiselect ? (u(), b("div", Ve, [
564
- (u(!0), b(R, null, H(l.value, (p) => (u(), $(ye, {
565
- id: p.id,
566
- name: p.name,
567
- onDelete: f(n).deleteItemById
550
+ default: A(() => [
551
+ o.multiselect ? (p(), b("div", be, [
552
+ (p(!0), b(R, null, q(t.value, (d) => (p(), T(fe, {
553
+ id: d.id,
554
+ name: d.name,
555
+ onDelete: f(a).deleteItemById
568
556
  }, null, 8, ["id", "name", "onDelete"]))), 256))
569
557
  ])) : k("", !0),
570
- a.value !== "inline" && !e.multiselect ? (u(), b("span", Ae, I(Array.isArray(l.value) ? "" : l.value.name), 1)) : k("", !0),
571
- e.multiselect && !l.value.length ? (u(), b("span", Te, I(w.value), 1)) : k("", !0),
572
- e.addChanger && !e.buttonProps && !e.multiselect && f(n).items.value.length > 1 && !e.disabled ? (u(), b("span", {
558
+ s.value !== "inline" && !o.multiselect ? (p(), b("span", ge, w(Array.isArray(t.value) ? "" : t.value.name), 1)) : k("", !0),
559
+ o.multiselect && !t.value.length ? (p(), b("span", Ve, w(u.value), 1)) : k("", !0),
560
+ o.addChanger && !o.buttonProps && !o.multiselect && f(a).items.value.length > 1 && !o.disabled ? (p(), b("span", {
573
561
  key: 3,
574
562
  class: "top-changer top-changer-selector top-popup_widget",
575
- onClick: y
563
+ onClick: I
576
564
  })) : k("", !0)
577
565
  ]),
578
566
  _: 1
579
567
  }, 16, ["class", "placeholder", "modelValue"])), [
580
568
  [
581
- h,
582
- e.isError,
569
+ V,
570
+ o.isError,
583
571
  void 0,
584
572
  { onupdate: !0 }
585
573
  ]
586
574
  ])
587
575
  ]),
588
- contentList: T(() => {
589
- var p;
576
+ contentList: A(() => {
577
+ var d;
590
578
  return [
591
- (u(!0), b(R, null, H(f(n).itemsForShow.value, (A) => (u(), $(f(j), {
592
- class: L({
593
- "top-active": !Array.isArray(l.value) && !e.multiselect && l.value.id === A.id && l.value.name === A.name
579
+ (p(!0), b(R, null, q(f(a).itemsForShow.value, (h) => (p(), T(f(W), {
580
+ class: E({
581
+ "top-active": !Array.isArray(t.value) && !o.multiselect && t.value.id === h.id && t.value.name === h.name
594
582
  }),
595
- key: A.id ?? void 0,
596
- closeByClick: !e.multiselect || f(Q).state.isMobile,
597
- onClick: (_e) => f(n).selectItem(A)
583
+ key: h.id ?? void 0,
584
+ closeByClick: !o.multiselect || f(X).state.isMobile,
585
+ onClick: (K) => f(a).selectItem(h)
598
586
  }, {
599
- default: T(() => [
600
- e.$slots.item ? P(e.$slots, "item", {
587
+ default: A(() => [
588
+ o.$slots.item ? G(o.$slots, "item", {
601
589
  key: 0,
602
- item: A
603
- }) : (u(), b(R, { key: 1 }, [
604
- E(I(A.name), 1)
590
+ item: h
591
+ }) : (p(), b(R, { key: 1 }, [
592
+ _(w(h.name), 1)
605
593
  ], 64))
606
594
  ]),
607
595
  _: 2
608
596
  }, 1032, ["class", "closeByClick", "onClick"]))), 128)),
609
- !f(r).isLoading.value && !f(n).itemsForShow.value.length ? (u(), $(f(j), {
597
+ !f(r).isLoading.value && !f(a).itemsForShow.value.length ? (p(), T(f(W), {
610
598
  key: 0,
611
599
  type: "regular"
612
600
  }, {
613
- default: T(() => [
614
- E(I(e.$i18n.Common.No_results), 1)
601
+ default: A(() => [
602
+ _(w(o.$i18n.Common.No_results), 1)
615
603
  ]),
616
604
  _: 1
617
605
  })) : k("", !0),
618
- f(r).isLoading.value && (e.searchType !== "popup" || (p = f(r).apiRequest) != null && p.params.offset) ? (u(), $(f(j), {
606
+ f(r).isLoading.value && (o.searchType !== "popup" || (d = f(r).apiRequest) != null && d.params.offset) ? (p(), T(f(W), {
619
607
  key: 1,
620
608
  type: "regular"
621
609
  }, {
622
- default: T(() => [
623
- D(f(ue), { type: "circles" })
610
+ default: A(() => [
611
+ D(f(ne), { type: "circles" })
624
612
  ]),
625
613
  _: 1
626
614
  })) : k("", !0)
@@ -628,18 +616,18 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
628
616
  }),
629
617
  _: 2
630
618
  }, [
631
- a.value === "popup" ? {
619
+ s.value === "popup" ? {
632
620
  name: "widget",
633
- fn: T(() => {
634
- var p;
621
+ fn: A(() => {
622
+ var d;
635
623
  return [
636
- D(f(pe), {
624
+ D(f(ue), {
637
625
  title: "Поиск",
638
626
  icon: "",
639
- modelValue: f(n).searchText.value,
640
- "onUpdate:modelValue": d[1] || (d[1] = (A) => f(n).searchText.value = A),
641
- isLoading: f(r).isLoading.value && !((p = f(r).apiRequest) != null && p.params.offset),
642
- placeholder: w.value
627
+ modelValue: f(a).searchText.value,
628
+ "onUpdate:modelValue": n[1] || (n[1] = (h) => f(a).searchText.value = h),
629
+ isLoading: f(r).isLoading.value && !((d = f(r).apiRequest) != null && d.params.offset),
630
+ placeholder: u.value
643
631
  }, null, 8, ["modelValue", "isLoading", "placeholder"])
644
632
  ];
645
633
  }),
@@ -648,37 +636,37 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
648
636
  ]), 1032, ["notch", "openByFocus"]);
649
637
  };
650
638
  }
651
- }), $e = ["data-top-icon"], ke = { class: "top-info_text" }, Ie = {
639
+ }), Ae = ["data-top-icon"], $e = { class: "top-info_text" }, Te = {
652
640
  key: 0,
653
641
  class: "top-info_value"
654
- }, Oe = /* @__PURE__ */ C({
642
+ }, Ge = /* @__PURE__ */ B({
655
643
  __name: "info",
656
644
  props: {
657
645
  icon: {},
658
646
  styling: { default: "default" },
659
647
  size: { default: "default" }
660
648
  },
661
- setup(s) {
662
- return (o, t) => (u(), b("div", {
663
- class: L({
649
+ setup(l) {
650
+ return (e, t) => (p(), b("div", {
651
+ class: E({
664
652
  "top-info": !0,
665
- ["top-size_" + o.size]: !0,
666
- ["top-info-styling_" + o.styling]: !0
653
+ ["top-size_" + e.size]: !0,
654
+ ["top-info-styling_" + e.styling]: !0
667
655
  }),
668
- "data-top-icon": o.icon
656
+ "data-top-icon": e.icon
669
657
  }, [
670
- z("div", ke, [
671
- P(o.$slots, "default")
658
+ M("div", $e, [
659
+ G(e.$slots, "default")
672
660
  ]),
673
- o.$slots.additional ? (u(), b("span", Ie, [
674
- P(o.$slots, "additional")
661
+ e.$slots.additional ? (p(), b("span", Te, [
662
+ G(e.$slots, "additional")
675
663
  ])) : k("", !0)
676
- ], 10, $e));
664
+ ], 10, Ae));
677
665
  }
678
- }), we = {
666
+ }), ke = {
679
667
  key: 0,
680
668
  class: "top-policy"
681
- }, Be = { class: "top-policy_title" }, Ce = ["innerHTML"], qe = /* @__PURE__ */ C({
669
+ }, we = { class: "top-policy_title" }, Ie = ["innerHTML"], Pe = /* @__PURE__ */ B({
682
670
  __name: "policy",
683
671
  props: {
684
672
  title: {},
@@ -686,22 +674,22 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
686
674
  acceptText: {}
687
675
  },
688
676
  emits: ["accept"],
689
- setup(s, { emit: o }) {
690
- const t = o, l = B(!0), m = () => {
691
- l.value = !1, t("accept");
677
+ setup(l, { emit: e }) {
678
+ const t = e, s = C(!0), c = () => {
679
+ s.value = !1, t("accept");
692
680
  };
693
- return (a, c) => l.value ? (u(), b("div", we, [
694
- z("div", Be, I(a.title), 1),
695
- z("div", {
681
+ return (r, a) => s.value ? (p(), b("div", ke, [
682
+ M("div", we, w(r.title), 1),
683
+ M("div", {
696
684
  class: "top-policy_description",
697
- innerHTML: a.description
698
- }, null, 8, Ce),
699
- D(f(U), {
685
+ innerHTML: r.description
686
+ }, null, 8, Ie),
687
+ D(f(F), {
700
688
  size: "m",
701
- onClick: m
689
+ onClick: c
702
690
  }, {
703
- default: T(() => [
704
- E(I(a.acceptText), 1)
691
+ default: A(() => [
692
+ _(w(r.acceptText), 1)
705
693
  ]),
706
694
  _: 1
707
695
  })
@@ -709,13 +697,13 @@ const me = { class: "top-editArea_footer" }, Re = /* @__PURE__ */ C({
709
697
  }
710
698
  });
711
699
  export {
712
- Ne as TopCheckboxGroup,
713
- Re as TopEditArea,
714
- De as TopEditInput,
715
- Oe as TopInfo,
716
- Ue as TopMenu,
717
- qe as TopPolicy,
718
- Ge as TopRadioGroup,
719
- Pe as TopSelector2
700
+ Re as TopCheckboxGroup,
701
+ Me as TopEditArea,
702
+ ze as TopEditInput,
703
+ Ge as TopInfo,
704
+ qe as TopMenu,
705
+ Pe as TopPolicy,
706
+ Ke as TopRadioGroup,
707
+ De as TopSelector2
720
708
  };
721
709
  //# sourceMappingURL=formsExt.js.map