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