@topvisor/ui 1.0.18-autofocus-3 → 1.0.18-dialog-footer-6

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 (152) hide show
  1. package/.chunks/{datepicker-CUB0U_lQ.es.js → datepicker-C-QFv8Wm.es.js} +2 -2
  2. package/.chunks/datepicker-C-QFv8Wm.es.js.map +1 -0
  3. package/.chunks/{datepicker-2XyFBnpB.amd.js → datepicker-QG5NqyHa.amd.js} +2 -2
  4. package/.chunks/datepicker-QG5NqyHa.amd.js.map +1 -0
  5. package/.chunks/{forms-cAFIQajo.es.js → forms-BeCSWhdZ.es.js} +5 -5
  6. package/.chunks/forms-BeCSWhdZ.es.js.map +1 -0
  7. package/.chunks/{forms-CgS7En_e.amd.js → forms-DYuU936i.amd.js} +3 -3
  8. package/.chunks/forms-DYuU936i.amd.js.map +1 -0
  9. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DwVG6MzF.amd.js → listItem.vue_vue_type_script_setup_true_lang-BC88J71B.amd.js} +2 -2
  10. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BC88J71B.amd.js.map +1 -0
  11. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DxPx80QT.es.js → listItem.vue_vue_type_script_setup_true_lang-DN-pHrhc.es.js} +2 -2
  12. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DN-pHrhc.es.js.map +1 -0
  13. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BoLzlJHY.es.js → menu.vue_vue_type_style_index_0_lang-BNzX8C8v.es.js} +2 -2
  14. package/.chunks/menu.vue_vue_type_style_index_0_lang-BNzX8C8v.es.js.map +1 -0
  15. package/.chunks/{menu.vue_vue_type_style_index_0_lang-Dpm2Wnt9.amd.js → menu.vue_vue_type_style_index_0_lang-RE6Dl4Gd.amd.js} +2 -2
  16. package/.chunks/menu.vue_vue_type_style_index_0_lang-RE6Dl4Gd.amd.js.map +1 -0
  17. package/.chunks/{notice-EerveAd9.amd.js → notice-D41sY-7B.amd.js} +2 -2
  18. package/.chunks/notice-D41sY-7B.amd.js.map +1 -0
  19. package/.chunks/{notice-DRCVp0mf.es.js → notice-zqNsNusv.es.js} +2 -2
  20. package/.chunks/notice-zqNsNusv.es.js.map +1 -0
  21. package/.chunks/{popup-DZDWzqMA.es.js → popup-CYjUUTBV.es.js} +2 -2
  22. package/.chunks/popup-CYjUUTBV.es.js.map +1 -0
  23. package/.chunks/{popup-D6-5Xu_J.amd.js → popup-CnEewIWQ.amd.js} +2 -2
  24. package/.chunks/popup-CnEewIWQ.amd.js.map +1 -0
  25. package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
  26. package/.chunks/store-esTid5oI.amd.js.map +1 -1
  27. package/.chunks/{utils-DTkdtW9l.es.js → utils-DgEUEjsV.es.js} +2 -2
  28. package/.chunks/utils-DgEUEjsV.es.js.map +1 -0
  29. package/.chunks/utils-DtGkkvY6.es.js +225 -0
  30. package/.chunks/utils-DtGkkvY6.es.js.map +1 -0
  31. package/.chunks/{utils-CQcFLRGs.amd.js → utils-YZ-Ix6pw.amd.js} +2 -2
  32. package/.chunks/utils-YZ-Ix6pw.amd.js.map +1 -0
  33. package/.chunks/utils-mu5qRCJN.amd.js +2 -0
  34. package/.chunks/utils-mu5qRCJN.amd.js.map +1 -0
  35. package/README.md +82 -82
  36. package/assets/core.css +1 -1
  37. package/assets/forms.css +1 -1
  38. package/assets/formsExt.css +1 -1
  39. package/assets/layout.css +1 -1
  40. package/charts/charts.amd.js +1 -1
  41. package/charts/charts.amd.js.map +1 -1
  42. package/charts/charts.js +1 -1
  43. package/charts/charts.js.map +1 -1
  44. package/components/dialog/dialog/page/types.d.ts +6 -0
  45. package/components/formsExt/info/info.vue.d.ts +2 -4
  46. package/components/formsExt/info/types.d.ts +8 -2
  47. package/components/formsExt/selector2/selector2.vue.d.ts +2 -0
  48. package/core/app.amd.js +1 -1
  49. package/core/app.amd.js.map +1 -1
  50. package/core/app.js +5 -5
  51. package/core/app.js.map +1 -1
  52. package/dialog/dialog.amd.js +1 -1
  53. package/dialog/dialog.amd.js.map +1 -1
  54. package/dialog/dialog.js +45 -41
  55. package/dialog/dialog.js.map +1 -1
  56. package/forms/forms.amd.js +1 -1
  57. package/forms/forms.js +1 -1
  58. package/forms/helpers.amd.js.map +1 -1
  59. package/forms/helpers.js.map +1 -1
  60. package/formsExt/formsExt.amd.js +1 -1
  61. package/formsExt/formsExt.amd.js.map +1 -1
  62. package/formsExt/formsExt.js +198 -191
  63. package/formsExt/formsExt.js.map +1 -1
  64. package/icomoon/Read Me.txt +7 -7
  65. package/icomoon/Topvisor icons.json +6144 -6144
  66. package/icomoon/demo-files/demo.css +158 -158
  67. package/icomoon/demo-files/demo.js +30 -30
  68. package/icomoon/demo.html +3488 -3488
  69. package/icomoon/fonts/Topvisor-2.svg +271 -271
  70. package/icomoon/style.css +765 -765
  71. package/jquery-ui.min.css +5 -5
  72. package/layout/layout.amd.js +1 -1
  73. package/layout/layout.amd.js.map +1 -1
  74. package/layout/layout.js +1 -1
  75. package/layout/layout.js.map +1 -1
  76. package/package.json +33 -33
  77. package/popup/popup.amd.js +1 -1
  78. package/popup/popup.amd.js.map +1 -1
  79. package/popup/popup.js +2 -2
  80. package/popup/popup.js.map +1 -1
  81. package/popup/worker.amd.js +1 -1
  82. package/popup/worker.amd.js.map +1 -1
  83. package/popup/worker.js +2 -2
  84. package/popup/worker.js.map +1 -1
  85. package/project/project.amd.js +1 -1
  86. package/project/project.amd.js.map +1 -1
  87. package/project/project.js +3 -3
  88. package/project/project.js.map +1 -1
  89. package/require/css.amd.js +12 -12
  90. package/tabs/tabs.amd.js.map +1 -1
  91. package/tabs/tabs.js.map +1 -1
  92. package/tabsView/tabsView.amd.js +1 -1
  93. package/tabsView/tabsView.amd.js.map +1 -1
  94. package/tabsView/tabsView.js +1 -1
  95. package/tabsView/tabsView.js.map +1 -1
  96. package/utils/check.amd.js.map +1 -1
  97. package/utils/check.js.map +1 -1
  98. package/utils/clipboard.amd.js +1 -1
  99. package/utils/clipboard.amd.js.map +1 -1
  100. package/utils/clipboard.js +1 -1
  101. package/utils/clipboard.js.map +1 -1
  102. package/utils/date.amd.js +1 -1
  103. package/utils/date.js +1 -1
  104. package/utils/device.amd.js +1 -1
  105. package/utils/device.js +1 -1
  106. package/utils/dom.amd.js.map +1 -1
  107. package/utils/dom.js.map +1 -1
  108. package/utils/image.amd.js.map +1 -1
  109. package/utils/image.js.map +1 -1
  110. package/utils/keyboard.amd.js.map +1 -1
  111. package/utils/keyboard.js.map +1 -1
  112. package/utils/lodash.amd.js +1 -1
  113. package/utils/lodash.js +1 -1
  114. package/utils/number.amd.js.map +1 -1
  115. package/utils/number.js.map +1 -1
  116. package/utils/price.amd.js +1 -1
  117. package/utils/price.amd.js.map +1 -1
  118. package/utils/price.js +1 -1
  119. package/utils/price.js.map +1 -1
  120. package/utils/route.amd.js.map +1 -1
  121. package/utils/route.js.map +1 -1
  122. package/utils/scroll.amd.js.map +1 -1
  123. package/utils/scroll.js.map +1 -1
  124. package/utils/searchers.amd.js.map +1 -1
  125. package/utils/searchers.js.map +1 -1
  126. package/utils/string.amd.js +1 -1
  127. package/utils/string.amd.js.map +1 -1
  128. package/utils/string.js +1 -1
  129. package/utils/string.js.map +1 -1
  130. package/utils/system.amd.js.map +1 -1
  131. package/utils/system.js.map +1 -1
  132. package/utils/url.amd.js.map +1 -1
  133. package/utils/url.js.map +1 -1
  134. package/web-types.json +130 -130
  135. package/.chunks/datepicker-2XyFBnpB.amd.js.map +0 -1
  136. package/.chunks/datepicker-CUB0U_lQ.es.js.map +0 -1
  137. package/.chunks/forms-CgS7En_e.amd.js.map +0 -1
  138. package/.chunks/forms-cAFIQajo.es.js.map +0 -1
  139. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DwVG6MzF.amd.js.map +0 -1
  140. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DxPx80QT.es.js.map +0 -1
  141. package/.chunks/menu.vue_vue_type_style_index_0_lang-BoLzlJHY.es.js.map +0 -1
  142. package/.chunks/menu.vue_vue_type_style_index_0_lang-Dpm2Wnt9.amd.js.map +0 -1
  143. package/.chunks/notice-DRCVp0mf.es.js.map +0 -1
  144. package/.chunks/notice-EerveAd9.amd.js.map +0 -1
  145. package/.chunks/popup-D6-5Xu_J.amd.js.map +0 -1
  146. package/.chunks/popup-DZDWzqMA.es.js.map +0 -1
  147. package/.chunks/utils-CQcFLRGs.amd.js.map +0 -1
  148. package/.chunks/utils-DP2t2MXK.es.js +0 -223
  149. package/.chunks/utils-DP2t2MXK.es.js.map +0 -1
  150. package/.chunks/utils-DTkdtW9l.es.js.map +0 -1
  151. package/.chunks/utils-kDi9Zfjp.amd.js +0 -2
  152. package/.chunks/utils-kDi9Zfjp.amd.js.map +0 -1
@@ -1,12 +1,12 @@
1
- import { Core as Z } from "../core/app.js";
2
- import { defineComponent as E, ref as V, computed as N, openBlock as c, createElementBlock as v, normalizeClass as w, toDisplayString as T, createCommentVNode as A, createElementVNode as _, createVNode as H, withKeys as K, withModifiers as L, createBlock as S, withCtx as $, createTextVNode as I, watch as B, toRef as x, mergeProps as J, mergeModels as z, useModel as X, Fragment as O, renderList as G, withDirectives as Y, vModelRadio as ee, resolveDirective as te, unref as M, renderSlot as j } from "vue";
3
- import { x as oe, _ as D, c as le, s as ae, a as se, C as ne } from "../.chunks/forms-cAFIQajo.es.js";
4
- import { invertKeyboardLayout as re } from "../utils/keyboard.js";
5
- import { TopPopup as ie, TopPopupWidgetInput as ue, TopPopupListItem as R } from "../popup/popup.js";
6
- import { _ as de } from "../.chunks/menu.vue_vue_type_style_index_0_lang-BoLzlJHY.es.js";
7
- const q = ["../assets/formsExt.css"].map((n) => import.meta.resolve(n));
8
- Z.insertCSSLinkToPage(q, !0);
9
- const pe = { class: "top-editArea_footer" }, ce = /* @__PURE__ */ E({
1
+ import { Core as q } from "../core/app.js";
2
+ import { defineComponent as _, ref as V, computed as z, openBlock as p, createElementBlock as v, normalizeClass as C, toDisplayString as w, createCommentVNode as A, createElementVNode as E, createVNode as R, withKeys as B, withModifiers as S, createBlock as k, withCtx as $, createTextVNode as L, watch as I, toRef as ee, mergeProps as X, mergeModels as G, useModel as j, Fragment as N, renderList as D, withDirectives as Q, vModelRadio as te, resolveDirective as oe, unref as O, renderSlot as H } from "vue";
3
+ import { x as le, _ as F, c as ae, s as se, a as ne, C as re } from "../.chunks/forms-BeCSWhdZ.es.js";
4
+ import { invertKeyboardLayout as ie } from "../utils/keyboard.js";
5
+ import { TopPopup as ue, TopPopupWidgetInput as de, TopPopupListItem as Y } from "../popup/popup.js";
6
+ import { _ as pe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-BNzX8C8v.es.js";
7
+ const x = ["../assets/formsExt.css"].map((n) => import.meta.resolve(n));
8
+ q.insertCSSLinkToPage(x, !0);
9
+ const ce = { class: "top-editArea_footer" }, me = /* @__PURE__ */ _({
10
10
  __name: "editArea",
11
11
  props: {
12
12
  defaultValue: { default: "" },
@@ -30,38 +30,38 @@ const pe = { class: "top-editArea_footer" }, ce = /* @__PURE__ */ E({
30
30
  },
31
31
  emits: ["submit", "close", "clickOnTitle"],
32
32
  setup(n, { emit: a }) {
33
- const e = n, o = a, f = V(e.defaultValue), y = V(e.isFocused), r = N(() => f.value !== e.defaultValue), u = N(() => e.attachToKeyboard ? "" : e.forceShowCloseBtn && !r.value ? e.closeText : e.cancelText), p = (i) => {
34
- o("submit", i), f.value = e.defaultValue;
33
+ const e = n, l = a, f = V(e.defaultValue), y = V(e.isFocused), d = z(() => f.value !== e.defaultValue), c = z(() => e.attachToKeyboard ? "" : e.forceShowCloseBtn && !d.value ? e.closeText : e.cancelText), r = (i) => {
34
+ l("submit", i), f.value = e.defaultValue;
35
35
  }, h = () => {
36
- if (e.forceShowCloseBtn && !r.value) {
37
- o("close");
36
+ if (e.forceShowCloseBtn && !d.value) {
37
+ l("close");
38
38
  return;
39
39
  }
40
40
  f.value = e.defaultValue;
41
- }, b = () => {
42
- e.attachToKeyboard && o("clickOnTitle");
41
+ }, T = () => {
42
+ e.attachToKeyboard && l("clickOnTitle");
43
43
  };
44
- return (i, l) => (c(), v("div", {
45
- class: w({
44
+ return (i, o) => (p(), v("div", {
45
+ class: C({
46
46
  "top-editArea": !0,
47
47
  "top-editArea-attachedToKeyboard": i.attachToKeyboard
48
48
  })
49
49
  }, [
50
- i.title ? (c(), v("div", {
50
+ i.title ? (p(), v("div", {
51
51
  key: 0,
52
52
  class: "top-editArea_title",
53
- onClick: l[0] || (l[0] = (g) => b())
54
- }, T(i.title), 1)) : A("", !0),
55
- _("div", {
56
- class: w({
53
+ onClick: o[0] || (o[0] = (g) => T())
54
+ }, w(i.title), 1)) : A("", !0),
55
+ E("div", {
56
+ class: C({
57
57
  "top-editArea_form": !0,
58
58
  "top-error": i.isError,
59
59
  "top-focus": y.value
60
60
  })
61
61
  }, [
62
- H(oe, {
62
+ R(le, {
63
63
  modelValue: f.value,
64
- "onUpdate:modelValue": l[1] || (l[1] = (g) => f.value = g),
64
+ "onUpdate:modelValue": o[1] || (o[1] = (g) => f.value = g),
65
65
  name: i.name,
66
66
  placeholder: i.placeholder,
67
67
  rows: i.rows,
@@ -72,15 +72,15 @@ const pe = { class: "top-editArea_footer" }, ce = /* @__PURE__ */ E({
72
72
  isError: i.isError,
73
73
  hint: i.hint,
74
74
  class: "top-editArea_element",
75
- onFocus: l[2] || (l[2] = () => y.value = !0),
76
- onBlur: l[3] || (l[3] = () => y.value = !1),
75
+ onFocus: o[2] || (o[2] = () => y.value = !0),
76
+ onBlur: o[3] || (o[3] = () => y.value = !1),
77
77
  onKeyup: [
78
- K(h, ["esc"]),
79
- l[4] || (l[4] = K(L((g) => p(f.value), ["ctrl"]), ["enter"]))
78
+ B(h, ["esc"]),
79
+ o[4] || (o[4] = B(S((g) => r(f.value), ["ctrl"]), ["enter"]))
80
80
  ]
81
81
  }, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
82
- _("div", pe, [
83
- !i.attachToKeyboard && (r.value || i.forceShowCloseBtn) ? (c(), S(D, {
82
+ E("div", ce, [
83
+ !i.attachToKeyboard && (d.value || i.forceShowCloseBtn) ? (p(), k(F, {
84
84
  key: 0,
85
85
  class: "top-editArea_button",
86
86
  color: "theme",
@@ -88,18 +88,18 @@ const pe = { class: "top-editArea_footer" }, ce = /* @__PURE__ */ E({
88
88
  onClick: h
89
89
  }, {
90
90
  default: $(() => [
91
- I(T(u.value), 1)
91
+ L(w(c.value), 1)
92
92
  ]),
93
93
  _: 1
94
94
  })) : A("", !0),
95
- r.value ? (c(), S(D, {
95
+ d.value ? (p(), k(F, {
96
96
  key: 1,
97
97
  class: "top-editArea_button",
98
98
  icon: i.attachToKeyboard ? "" : "",
99
- onClick: l[5] || (l[5] = (g) => p(f.value))
99
+ onClick: o[5] || (o[5] = (g) => r(f.value))
100
100
  }, {
101
101
  default: $(() => [
102
- I(T(i.attachToKeyboard ? "" : i.submitText), 1)
102
+ L(w(i.attachToKeyboard ? "" : i.submitText), 1)
103
103
  ]),
104
104
  _: 1
105
105
  }, 8, ["icon"])) : A("", !0)
@@ -107,7 +107,7 @@ const pe = { class: "top-editArea_footer" }, ce = /* @__PURE__ */ E({
107
107
  ], 2)
108
108
  ], 2));
109
109
  }
110
- }), me = { class: "top-editInput" }, fe = /* @__PURE__ */ E({
110
+ }), fe = { class: "top-editInput" }, ve = /* @__PURE__ */ _({
111
111
  __name: "editInput",
112
112
  props: {
113
113
  modelValue: {},
@@ -116,33 +116,33 @@ const pe = { class: "top-editArea_footer" }, ce = /* @__PURE__ */ E({
116
116
  },
117
117
  emits: ["update:modelValue"],
118
118
  setup(n, { emit: a }) {
119
- const e = n, o = V(e.modelValue);
120
- B(x(e.modelValue), () => {
121
- o.value = e.modelValue;
119
+ const e = n, l = V(e.modelValue);
120
+ I(ee(e.modelValue), () => {
121
+ l.value = e.modelValue;
122
122
  });
123
123
  const f = a, y = () => {
124
- f("update:modelValue", o.value);
124
+ f("update:modelValue", l.value);
125
125
  };
126
- return (r, u) => (c(), v("div", me, [
127
- H(le, J(r.input, {
128
- onKeydownCapture: u[0] || (u[0] = K(L((p) => o.value = r.modelValue, ["stop"]), ["esc"])),
129
- onKeydown: K(L(y, ["stop"]), ["enter"]),
130
- modelValue: o.value,
131
- "onUpdate:modelValue": u[1] || (u[1] = (p) => o.value = p)
126
+ return (d, c) => (p(), v("div", fe, [
127
+ R(ae, X(d.input, {
128
+ onKeydownCapture: c[0] || (c[0] = B(S((r) => l.value = d.modelValue, ["stop"]), ["esc"])),
129
+ onKeydown: B(S(y, ["stop"]), ["enter"]),
130
+ modelValue: l.value,
131
+ "onUpdate:modelValue": c[1] || (c[1] = (r) => l.value = r)
132
132
  }), null, 16, ["onKeydown", "modelValue"]),
133
- o.value !== r.modelValue ? (c(), S(D, J({
133
+ l.value !== d.modelValue ? (p(), k(F, X({
134
134
  key: 0,
135
135
  icon: "",
136
136
  styling: "soft"
137
- }, r.button, { onClick: y }), null, 16)) : A("", !0)
137
+ }, d.button, { onClick: y }), null, 16)) : A("", !0)
138
138
  ]));
139
139
  }
140
- }), ve = ["data-top-icon", "onClick"], ye = {
140
+ }), ye = ["data-top-icon", "onClick"], he = {
141
141
  key: 0,
142
142
  class: "top-radioGroup_circle"
143
- }, he = ["value", "disabled"], ge = /* @__PURE__ */ E({
143
+ }, ge = ["value", "disabled"], be = /* @__PURE__ */ _({
144
144
  __name: "radioGroup",
145
- props: /* @__PURE__ */ z({
145
+ props: /* @__PURE__ */ G({
146
146
  modelValue: {},
147
147
  radiosProps: {},
148
148
  showIndicator: { type: Boolean },
@@ -154,91 +154,91 @@ const pe = { class: "top-editArea_footer" }, ce = /* @__PURE__ */ E({
154
154
  },
155
155
  modelModifiers: {}
156
156
  }),
157
- emits: /* @__PURE__ */ z(["update:modelValue"], ["update:modelValue"]),
157
+ emits: /* @__PURE__ */ G(["update:modelValue"], ["update:modelValue"]),
158
158
  setup(n, { emit: a }) {
159
- const e = X(n, "modelValue"), o = n, f = V(null);
160
- B(e, () => {
161
- var r, u, p, h, b;
162
- (r = o.radiosProps) != null && r.some((i) => i.value === e.value) || (e.value = ((p = (u = o.radiosProps) == null ? void 0 : u[0]) == null ? void 0 : p.value) ?? ""), (b = (h = f.value) == null ? void 0 : h.querySelector(".radioGroup_item-selected")) == null || b.scrollIntoView();
159
+ const e = j(n, "modelValue"), l = n, f = V(null);
160
+ I(e, () => {
161
+ var d, c, r, h, T;
162
+ (d = l.radiosProps) != null && d.some((i) => i.value === e.value) || (e.value = ((r = (c = l.radiosProps) == null ? void 0 : c[0]) == null ? void 0 : r.value) ?? ""), (T = (h = f.value) == null ? void 0 : h.querySelector(".radioGroup_item-selected")) == null || T.scrollIntoView();
163
163
  }, { immediate: !0 });
164
164
  const y = "radioGroup-" + Math.random();
165
- return (r, u) => (c(), v("div", {
165
+ return (d, c) => (p(), v("div", {
166
166
  ref_key: "elRef",
167
167
  ref: f,
168
- class: w({
168
+ class: C({
169
169
  "top-radioGroup": !0,
170
170
  "top-scrollBarXHidding": !0,
171
- ["top-size_" + r.size]: !!r.size,
172
- "top-error": r.isError
171
+ ["top-size_" + d.size]: !!d.size,
172
+ "top-error": d.isError
173
173
  })
174
174
  }, [
175
- (c(!0), v(O, null, G(r.radiosProps, (p) => (c(), v("label", {
176
- class: w({
177
- "top-radioGroup_item-selected": p.value === e.value,
175
+ (p(!0), v(N, null, D(d.radiosProps, (r) => (p(), v("label", {
176
+ class: C({
177
+ "top-radioGroup_item-selected": r.value === e.value,
178
178
  "top-radioGroup_item": !0,
179
179
  "top-forms-focusable": !0,
180
- "top-disabled": p.disabled
180
+ "top-disabled": r.disabled
181
181
  }),
182
- "data-top-icon": p.icon,
183
- onClick: (h) => e.value = p.value
182
+ "data-top-icon": r.icon,
183
+ onClick: (h) => e.value = r.value
184
184
  }, [
185
- I(T(p.title) + " ", 1),
186
- r.showIndicator ? (c(), v("span", ye)) : A("", !0),
187
- Y(_("input", {
188
- "onUpdate:modelValue": u[0] || (u[0] = (h) => e.value = h),
185
+ L(w(r.title) + " ", 1),
186
+ d.showIndicator ? (p(), v("span", he)) : A("", !0),
187
+ Q(E("input", {
188
+ "onUpdate:modelValue": c[0] || (c[0] = (h) => e.value = h),
189
189
  name: y,
190
190
  type: "radio",
191
- class: w({
191
+ class: C({
192
192
  "top-unvisible": !0
193
193
  }),
194
- value: p.value,
195
- disabled: p.disabled
196
- }, null, 8, he), [
197
- [ee, e.value]
194
+ value: r.value,
195
+ disabled: r.disabled
196
+ }, null, 8, ge), [
197
+ [te, e.value]
198
198
  ])
199
- ], 10, ve))), 256))
199
+ ], 10, ye))), 256))
200
200
  ], 2));
201
201
  }
202
- }), be = (n, a, e) => {
203
- const o = V([]), f = V(!1);
204
- let y = "", r;
202
+ }), Ve = (n, a, e) => {
203
+ const l = V([]), f = V(!1);
204
+ let y = "", d;
205
205
  n && !n.params.limit && (n.params.limit = 100);
206
- const u = async () => {
206
+ const c = async () => {
207
207
  if (!n) return;
208
- let l, g;
209
- if (e && (n.cache ??= /* @__PURE__ */ new Map(), g = JSON.stringify(n.params), l = n.cache.get(g), l))
210
- return l;
211
- if (f.value = !0, l = await n.call(), f.value = !1, l.errors) return;
212
- if (!Array.isArray(l.result)) {
208
+ let o, g;
209
+ if (e && (n.cache ??= /* @__PURE__ */ new Map(), g = JSON.stringify(n.params), o = n.cache.get(g), o))
210
+ return o;
211
+ if (f.value = !0, o = await n.call(), f.value = !1, o.errors) return;
212
+ if (!Array.isArray(o.result)) {
213
213
  console.warn("В result ожидался массив");
214
214
  return;
215
215
  }
216
- const P = l.result.findIndex((k) => k.id === void 0 || k.name === void 0);
217
- if (P !== -1) {
218
- console.warn(`В result[${P}] нет id или name`);
216
+ const K = o.result.findIndex((P) => P.id === void 0 || P.name === void 0);
217
+ if (K !== -1) {
218
+ console.warn(`В result[${K}] нет id или name`);
219
219
  return;
220
220
  }
221
- return e && n.cache.set(g, l), l;
222
- }, p = async () => {
221
+ return e && n.cache.set(g, o), o;
222
+ }, r = async () => {
223
223
  if (!n) return;
224
224
  n.params.offset = 0, n.params.search = y;
225
- const l = await u();
226
- l && (r = l.nextOffset, o.value = l.result);
225
+ const o = await c();
226
+ o && (d = o.nextOffset, l.value = o.result);
227
227
  }, h = async () => {
228
- if (!n || !r || f.value) return;
229
- n.params.offset = r, n.params.search = y;
230
- const l = await u();
231
- l && (r = l.nextOffset, o.value = o.value.concat(l.result));
232
- }, b = ae(() => p(), 200);
228
+ if (!n || !d || f.value) return;
229
+ n.params.offset = d, n.params.search = y;
230
+ const o = await c();
231
+ o && (d = o.nextOffset, l.value = l.value.concat(o.result));
232
+ }, T = se(() => r(), 200);
233
233
  return {
234
- items: o,
234
+ items: l,
235
235
  isLoading: f,
236
236
  loadAppend: h,
237
- setSearchTextAndLoad: (l, g = !0) => {
238
- n && (l.length < a || l === y && o.value.length || (y = l, g ? b() : p()));
237
+ setSearchTextAndLoad: (o, g = !0) => {
238
+ n && (o.length < a || o === y && l.value.length || (y = o, g ? T() : r()));
239
239
  }
240
240
  };
241
- }, Ve = { class: "top-selector2_itemMulti top-ellipsis" }, Ae = /* @__PURE__ */ E({
241
+ }, Ae = { class: "top-selector2_itemMulti top-ellipsis" }, Te = /* @__PURE__ */ _({
242
242
  __name: "itemMulti",
243
243
  props: {
244
244
  id: {},
@@ -246,26 +246,26 @@ const pe = { class: "top-editArea_footer" }, ce = /* @__PURE__ */ E({
246
246
  },
247
247
  emits: ["delete"],
248
248
  setup(n) {
249
- return (a, e) => (c(), v("div", Ve, [
250
- I(T(a.name) + " ", 1),
251
- _("span", {
249
+ return (a, e) => (p(), v("div", Ae, [
250
+ L(w(a.name) + " ", 1),
251
+ E("span", {
252
252
  class: "top-selector2_itemMultiDelete",
253
253
  "data-top-icon": "",
254
- onClick: e[0] || (e[0] = (o) => a.$emit("delete", a.id)),
255
- onMousedown: e[1] || (e[1] = L(() => {
254
+ onClick: e[0] || (e[0] = (l) => a.$emit("delete", a.id)),
255
+ onMousedown: e[1] || (e[1] = S(() => {
256
256
  }, ["stop"]))
257
257
  }, null, 32)
258
258
  ]));
259
259
  }
260
- }), Te = {
260
+ }), Ce = {
261
261
  key: 0,
262
262
  class: "top-selector2_activeItems"
263
- }, Ce = {
263
+ }, we = {
264
264
  key: 1,
265
265
  class: "top-selector2_activeName top-ellipsis"
266
- }, we = /* @__PURE__ */ E({
266
+ }, $e = /* @__PURE__ */ _({
267
267
  __name: "selector2",
268
- props: /* @__PURE__ */ z({
268
+ props: /* @__PURE__ */ G({
269
269
  modelValue: {},
270
270
  items: { default: () => [] },
271
271
  multiselect: { type: Boolean },
@@ -286,82 +286,87 @@ const pe = { class: "top-editArea_footer" }, ce = /* @__PURE__ */ E({
286
286
  }),
287
287
  emits: ["update:modelValue"],
288
288
  setup(n) {
289
- const a = n, e = X(n, "modelValue"), o = V(""), f = {
289
+ const a = n, e = j(n, "modelValue"), l = V(""), f = {
290
290
  id: 0,
291
- name: se().Common.All
292
- }, y = V(null), r = () => {
291
+ name: ne().Common.All
292
+ }, y = V(null), d = V(null), c = () => {
293
293
  var t;
294
294
  return (t = y.value) == null ? void 0 : t.popup;
295
295
  };
296
- window.__STORYBOOK_PREVIEW__ && !a.modelValue && B(
296
+ window.__STORYBOOK_PREVIEW__ && !a.modelValue && I(
297
297
  () => a.multiselect,
298
298
  () => {
299
299
  e.value = a.multiselect ? [] : { id: null, name: "" };
300
300
  },
301
301
  { immediate: !0 }
302
302
  );
303
- const u = be(a.apiRequest, a.minLength, a.useCache), p = N(() => {
303
+ const r = Ve(a.apiRequest, a.minLength, a.useCache), h = z(() => {
304
304
  const t = [];
305
305
  return !a.multiselect && a.appendAllValue && t.push(f), a.items.forEach((s) => t.push({ ...s })), t;
306
- }), h = (t, s = !0) => s && t.id === null ? Array.isArray(e.value) ? e.value.some((m) => m.id === t.id && m.name === t.name) : t.name === e.value.name : Array.isArray(e.value) ? e.value.some((m) => m.id === t.id) : t.id === e.value.id, b = N(() => {
307
- const t = o.value.toLowerCase(), s = re(t);
306
+ }), T = (t, s = !0) => s && t.id === null ? Array.isArray(e.value) ? e.value.some((m) => m.id === t.id && m.name === t.name) : t.name === e.value.name : Array.isArray(e.value) ? e.value.some((m) => m.id === t.id) : t.id === e.value.id, i = z(() => {
307
+ const t = l.value.toLowerCase(), s = ie(t);
308
308
  let m = [];
309
- return p.value.forEach((d) => {
310
- const C = d.name.toLowerCase();
311
- (d.id === Number(t) || C.includes(t) || C.includes(s)) && (C === t || C === s ? m.unshift(d) : m.push(d));
312
- }), m.push(...u.items.value), a.appendSearchToResult && o.value && (!m.length || m[0].name.toLowerCase() !== t) && m.push({
309
+ return h.value.forEach((u) => {
310
+ const b = u.name.toLowerCase();
311
+ (u.id === Number(t) || b.includes(t) || b.includes(s)) && (b === t || b === s ? m.unshift(u) : m.push(u));
312
+ }), m.push(...r.items.value), a.appendSearchToResult && l.value && (!m.length || m[0].name.toLowerCase() !== t) && m.push({
313
313
  id: null,
314
- name: o.value
315
- }), a.multiselect && (m = m.filter((d) => !h(d))), m;
316
- }), i = V(u.isLoading.value);
317
- B(u.isLoading, () => {
318
- i.value = u.isLoading.value;
314
+ name: l.value
315
+ }), a.multiselect && (m = m.filter((u) => !T(u))), m;
316
+ }), o = V(r.isLoading.value);
317
+ I(r.isLoading, () => {
318
+ o.value = r.isLoading.value;
319
319
  });
320
- const l = async (t) => {
320
+ const g = async (t) => {
321
321
  var s, m;
322
322
  if (a.multiselect) {
323
- if (!Array.isArray(e.value) || h(t))
323
+ if (!Array.isArray(e.value) || T(t))
324
324
  return;
325
- a.apiRequest && o.value && (i.value = !0);
326
- const d = [...e.value];
327
- d.push({ ...t }), e.value = d, ne.state.isMobile ? ((s = r()) == null || s.close(), o.value && (o.value = "", u.items.value = [])) : setTimeout(() => {
328
- var C, F, U, W;
329
- (C = r()) == null || C.recalcPosition(), (W = (U = (F = r()) == null ? void 0 : F.elPopupWidget) == null ? void 0 : U.querySelector("input")) == null || W.focus(), o.value && (b.value.length ? a.apiRequest && (i.value = !1) : (o.value = "", u.items.value = []));
325
+ a.apiRequest && l.value && (o.value = !0);
326
+ const u = [...e.value];
327
+ u.push({ ...t }), e.value = u, re.state.isMobile ? ((s = c()) == null || s.close(), l.value && (l.value = "", r.items.value = [])) : setTimeout(() => {
328
+ var b, U, W, J;
329
+ (b = c()) == null || b.recalcPosition(), (J = (W = (U = c()) == null ? void 0 : U.elPopupWidget) == null ? void 0 : W.querySelector("input")) == null || J.focus(), l.value && (i.value.length ? a.apiRequest && (o.value = !1) : (l.value = "", r.items.value = []));
330
330
  });
331
331
  } else
332
- o.value && (o.value = "", u.items.value = []), JSON.stringify(t) !== JSON.stringify(e.value) && (e.value = { ...t }), (m = r()) == null || m.close();
333
- }, g = () => {
332
+ l.value && (l.value = "", r.items.value = []), JSON.stringify(t) !== JSON.stringify(e.value) && (e.value = { ...t }), (m = c()) == null || m.close();
333
+ }, K = () => {
334
334
  if (!Array.isArray(e.value)) {
335
- const s = (p.value.findIndex((m) => m.id === e.value.id) + 1) % p.value.length;
336
- e.value = { ...p.value[s] };
335
+ const s = (h.value.findIndex((m) => m.id === e.value.id) + 1) % h.value.length;
336
+ e.value = { ...h.value[s] };
337
337
  }
338
338
  }, P = async (t) => {
339
339
  Array.isArray(e.value) && (e.value = e.value.filter((s) => s.id !== t), setTimeout(() => {
340
340
  var s;
341
- (s = r()) == null || s.recalcPosition();
341
+ (s = c()) == null || s.recalcPosition();
342
342
  }));
343
- }, k = V(!1);
344
- a.apiRequest && (B(k, () => {
345
- k.value && u.setSearchTextAndLoad(o.value, !1);
346
- }), B(o, () => u.setSearchTextAndLoad(o.value)));
347
- const Q = (t) => {
343
+ }, M = V(!1);
344
+ a.apiRequest && (I(M, () => {
345
+ M.value && r.setSearchTextAndLoad(l.value, !1);
346
+ }), I(l, () => r.setSearchTextAndLoad(l.value)));
347
+ const Z = (t) => {
348
348
  const s = t.target;
349
- s.scrollTop / (s.scrollHeight - s.offsetHeight) > 0.8 && u.loadAppend();
349
+ s.scrollTop / (s.scrollHeight - s.offsetHeight) > 0.8 && r.loadAppend();
350
350
  };
351
351
  return (t, s) => {
352
- const m = te("top-focus");
353
- return c(), S(M(ie), {
352
+ const m = oe("top-focus");
353
+ return p(), k(O(ue), {
354
354
  ref_key: "popupRef",
355
355
  ref: y,
356
- onOpen: s[2] || (s[2] = (d) => k.value = !0),
357
- onClose: s[3] || (s[3] = (d) => k.value = !1),
358
- onScrollContentList: s[4] || (s[4] = (d) => t.apiRequest ? Q(d) : void 0),
356
+ onOpen: s[3] || (s[3] = (u) => M.value = !0),
357
+ onClose: s[4] || (s[4] = (u) => {
358
+ var b;
359
+ return M.value = !1, (b = d.value) == null ? void 0 : b.focus();
360
+ }),
361
+ onScrollContentList: s[5] || (s[5] = (u) => t.apiRequest ? Z(u) : void 0),
359
362
  notch: !1,
360
363
  transitionDuration: 0
361
364
  }, {
362
365
  opener: $(() => [
363
- Y((c(), v("div", {
364
- class: w({
366
+ Q((p(), v("div", {
367
+ ref_key: "elRef",
368
+ ref: d,
369
+ class: C({
365
370
  "top-selector2": !0,
366
371
  "top-selector2-multiselect": t.multiselect,
367
372
  ["top-size_" + t.size]: !0,
@@ -369,21 +374,24 @@ const pe = { class: "top-editArea_footer" }, ce = /* @__PURE__ */ E({
369
374
  "top-forms-focusable": !t.disabled,
370
375
  "top-error": t.isError
371
376
  }),
372
- onKeydown: s[0] || (s[0] = K((d) => d.currentTarget.click(), ["enter", "space"])),
377
+ onKeydown: [
378
+ s[0] || (s[0] = B(S((u) => u.currentTarget.click(), ["stop", "prevent"]), ["up", "down", "enter", "space"])),
379
+ s[1] || (s[1] = B((u) => e.value = [], ["delete"]))
380
+ ],
373
381
  tabindex: "0"
374
382
  }, [
375
- t.multiselect ? (c(), v("div", Te, [
376
- (c(!0), v(O, null, G(e.value, (d) => (c(), S(Ae, {
377
- id: d.id,
378
- name: d.name,
383
+ t.multiselect ? (p(), v("div", Ce, [
384
+ (p(!0), v(N, null, D(e.value, (u) => (p(), k(Te, {
385
+ id: u.id,
386
+ name: u.name,
379
387
  onDelete: P
380
388
  }, null, 8, ["id", "name"]))), 256))
381
389
  ])) : A("", !0),
382
- t.multiselect ? A("", !0) : (c(), v("span", Ce, T(Array.isArray(e.value) ? "" : e.value.name), 1)),
383
- t.addChanger && !t.multiselect && p.value.length > 1 && !t.disabled ? (c(), v("span", {
390
+ t.multiselect ? A("", !0) : (p(), v("span", we, w(Array.isArray(e.value) ? "" : e.value.name), 1)),
391
+ t.addChanger && !t.multiselect && h.value.length > 1 && !t.disabled ? (p(), v("span", {
384
392
  key: 2,
385
393
  class: "top-changer top-changer-selector",
386
- onClick: L(g, ["stop"])
394
+ onClick: S(K, ["stop"])
387
395
  })) : A("", !0)
388
396
  ], 34)), [
389
397
  [
@@ -395,39 +403,39 @@ const pe = { class: "top-editArea_footer" }, ce = /* @__PURE__ */ E({
395
403
  ])
396
404
  ]),
397
405
  widget: $(() => [
398
- H(M(ue), {
406
+ R(O(de), {
399
407
  title: "Поиск",
400
408
  icon: "",
401
- modelValue: o.value,
402
- "onUpdate:modelValue": s[1] || (s[1] = (d) => o.value = d),
403
- isLoading: i.value,
409
+ modelValue: l.value,
410
+ "onUpdate:modelValue": s[2] || (s[2] = (u) => l.value = u),
411
+ isLoading: o.value,
404
412
  placeholder: !Array.isArray(e.value) && !t.multiselect && t.showSelectedInInput ? e.value.name : t.placeholder
405
413
  }, null, 8, ["modelValue", "isLoading", "placeholder"])
406
414
  ]),
407
415
  contentList: $(() => [
408
- (c(!0), v(O, null, G(b.value, (d) => (c(), S(M(R), {
409
- class: w({
410
- "top-active": !Array.isArray(e.value) && !t.multiselect && e.value.name === d.name
416
+ (p(!0), v(N, null, D(i.value, (u) => (p(), k(O(Y), {
417
+ class: C({
418
+ "top-active": !Array.isArray(e.value) && !t.multiselect && e.value.name === u.name
411
419
  }),
412
- key: d.id ?? void 0,
413
- onClick: L((C) => l(d), ["stop"])
420
+ key: u.id ?? void 0,
421
+ onClick: S((b) => g(u), ["stop"])
414
422
  }, {
415
423
  default: $(() => [
416
- t.$slots.item ? j(t.$slots, "item", {
424
+ t.$slots.item ? H(t.$slots, "item", {
417
425
  key: 0,
418
- item: d
419
- }) : (c(), v(O, { key: 1 }, [
420
- I(T(d.name), 1)
426
+ item: u
427
+ }) : (p(), v(N, { key: 1 }, [
428
+ L(w(u.name), 1)
421
429
  ], 64))
422
430
  ]),
423
431
  _: 2
424
432
  }, 1032, ["class", "onClick"]))), 128)),
425
- !i.value && !b.value.length ? (c(), S(M(R), {
433
+ !o.value && !i.value.length ? (p(), k(O(Y), {
426
434
  key: 0,
427
435
  type: "regular"
428
436
  }, {
429
437
  default: $(() => [
430
- I(T(t.$i18n.Common.No_results), 1)
438
+ L(w(t.$i18n.Common.No_results), 1)
431
439
  ]),
432
440
  _: 1
433
441
  })) : A("", !0)
@@ -436,41 +444,40 @@ const pe = { class: "top-editArea_footer" }, ce = /* @__PURE__ */ E({
436
444
  }, 512);
437
445
  };
438
446
  }
439
- }), ke = ["data-top-icon"], $e = { class: "top-info_text" }, Se = {
447
+ }), ke = ["data-top-icon"], Se = { class: "top-info_text" }, Ie = {
440
448
  key: 0,
441
449
  class: "top-info_value"
442
- }, Ie = /* @__PURE__ */ E({
450
+ }, Be = /* @__PURE__ */ _({
443
451
  __name: "info",
444
452
  props: {
445
453
  icon: {},
446
454
  styling: { default: "default" },
447
- size: { default: "default" },
448
- value: {}
455
+ size: { default: "default" }
449
456
  },
450
457
  setup(n) {
451
- return (a, e) => (c(), v("div", {
452
- class: w({
458
+ return (a, e) => (p(), v("div", {
459
+ class: C({
453
460
  "top-info": !0,
454
461
  ["top-size_" + a.size]: !0,
455
462
  ["top-info-styling_" + a.styling]: !0
456
463
  }),
457
464
  "data-top-icon": a.icon
458
465
  }, [
459
- _("div", $e, [
460
- j(a.$slots, "default", {}, () => [
461
- e[0] || (e[0] = I("Очень важная информация"))
462
- ])
466
+ E("div", Se, [
467
+ H(a.$slots, "default")
463
468
  ]),
464
- a.value ? (c(), v("span", Se, T(a.value), 1)) : A("", !0)
469
+ a.$slots.additional ? (p(), v("span", Ie, [
470
+ H(a.$slots, "additional")
471
+ ])) : A("", !0)
465
472
  ], 10, ke));
466
473
  }
467
- }), Me = ce, Oe = fe, Ne = ge, ze = we, Ge = de, De = Ie;
474
+ }), Oe = me, Ne = ve, ze = be, Ge = $e, De = pe, He = Be;
468
475
  export {
469
- Me as TopEditArea,
470
- Oe as TopEditInput,
471
- De as TopInfo,
472
- Ge as TopMenu,
473
- Ne as TopRadioGroup,
474
- ze as TopSelector2
476
+ Oe as TopEditArea,
477
+ Ne as TopEditInput,
478
+ He as TopInfo,
479
+ De as TopMenu,
480
+ ze as TopRadioGroup,
481
+ Ge as TopSelector2
475
482
  };
476
483
  //# sourceMappingURL=formsExt.js.map