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