@topvisor/ui 1.0.17 → 1.0.18-autofocus-3

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