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