@topvisor/ui 1.0.26 → 1.0.28-2

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 (108) hide show
  1. package/.chunks/{core-BmIJ2adg.amd.js → core-CAMGByIQ.amd.js} +2 -2
  2. package/.chunks/{core-BmIJ2adg.amd.js.map → core-CAMGByIQ.amd.js.map} +1 -1
  3. package/.chunks/{core-C0QEqD1d.es.js → core-asoGK-7D.es.js} +4 -4
  4. package/.chunks/{core-C0QEqD1d.es.js.map → core-asoGK-7D.es.js.map} +1 -1
  5. package/.chunks/{datepicker-CXhUvPw5.es.js → datepicker-BYBYKhbw.es.js} +2 -2
  6. package/.chunks/{datepicker-CXhUvPw5.es.js.map → datepicker-BYBYKhbw.es.js.map} +1 -1
  7. package/.chunks/{datepicker-bNYuHqTY.amd.js → datepicker-BvawRSTl.amd.js} +2 -2
  8. package/.chunks/{datepicker-bNYuHqTY.amd.js.map → datepicker-BvawRSTl.amd.js.map} +1 -1
  9. package/.chunks/dialog_selectorRegions-CpBiVjgI.es.js +186 -0
  10. package/.chunks/dialog_selectorRegions-CpBiVjgI.es.js.map +1 -0
  11. package/.chunks/dialog_selectorRegions-DVz3N6Dj.amd.js +2 -0
  12. package/.chunks/dialog_selectorRegions-DVz3N6Dj.amd.js.map +1 -0
  13. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-IEhQGR1d.es.js → dialogs.vue_vue_type_script_setup_true_lang--09NOqOd.es.js} +2 -2
  14. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-IEhQGR1d.es.js.map → dialogs.vue_vue_type_script_setup_true_lang--09NOqOd.es.js.map} +1 -1
  15. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-ChHXFPiF.amd.js → dialogs.vue_vue_type_script_setup_true_lang-BCvCrDYf.amd.js} +2 -2
  16. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-ChHXFPiF.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-BCvCrDYf.amd.js.map} +1 -1
  17. package/.chunks/{forms-CJ5N_pAq.amd.js → forms-CD0nOB5f.amd.js} +3 -3
  18. package/.chunks/{forms-CJ5N_pAq.amd.js.map → forms-CD0nOB5f.amd.js.map} +1 -1
  19. package/.chunks/{forms-Dg0Huskq.es.js → forms-qJ3k2PG6.es.js} +7 -7
  20. package/.chunks/{forms-Dg0Huskq.es.js.map → forms-qJ3k2PG6.es.js.map} +1 -1
  21. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Ccx-3_PR.amd.js → listItem.vue_vue_type_script_setup_true_lang-BAEJrRYd.amd.js} +2 -2
  22. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Ccx-3_PR.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-BAEJrRYd.amd.js.map} +1 -1
  23. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CN0_pb-f.es.js → listItem.vue_vue_type_script_setup_true_lang-BlC9NJdi.es.js} +2 -2
  24. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CN0_pb-f.es.js.map → listItem.vue_vue_type_script_setup_true_lang-BlC9NJdi.es.js.map} +1 -1
  25. package/.chunks/{menu.vue_vue_type_style_index_0_lang-B9HkLtVf.es.js → menu.vue_vue_type_style_index_0_lang-CDkyMyEi.es.js} +2 -2
  26. package/.chunks/{menu.vue_vue_type_style_index_0_lang-B9HkLtVf.es.js.map → menu.vue_vue_type_style_index_0_lang-CDkyMyEi.es.js.map} +1 -1
  27. package/.chunks/{menu.vue_vue_type_style_index_0_lang-Bn4GA1gj.amd.js → menu.vue_vue_type_style_index_0_lang-Oq5353Ax.amd.js} +2 -2
  28. package/.chunks/{menu.vue_vue_type_style_index_0_lang-Bn4GA1gj.amd.js.map → menu.vue_vue_type_style_index_0_lang-Oq5353Ax.amd.js.map} +1 -1
  29. package/.chunks/{notice-COAtZx4K.amd.js → notice-rP8nJxrF.amd.js} +2 -2
  30. package/.chunks/{notice-COAtZx4K.amd.js.map → notice-rP8nJxrF.amd.js.map} +1 -1
  31. package/.chunks/{notice-DfI-Ga6e.es.js → notice-somyoQTl.es.js} +2 -2
  32. package/.chunks/{notice-DfI-Ga6e.es.js.map → notice-somyoQTl.es.js.map} +1 -1
  33. package/.chunks/{page.vue_vue_type_script_setup_true_lang-CQbcjBRq.amd.js → page.vue_vue_type_script_setup_true_lang-D8EtPAsl.amd.js} +2 -2
  34. package/.chunks/{page.vue_vue_type_script_setup_true_lang-CQbcjBRq.amd.js.map → page.vue_vue_type_script_setup_true_lang-D8EtPAsl.amd.js.map} +1 -1
  35. package/.chunks/{page.vue_vue_type_script_setup_true_lang-DqkGsz8-.es.js → page.vue_vue_type_script_setup_true_lang-SJpF_87B.es.js} +4 -4
  36. package/.chunks/{page.vue_vue_type_script_setup_true_lang-DqkGsz8-.es.js.map → page.vue_vue_type_script_setup_true_lang-SJpF_87B.es.js.map} +1 -1
  37. package/.chunks/{popup-Cvlw738y.amd.js → popup-BpdlKk5T.amd.js} +2 -2
  38. package/.chunks/{popup-Cvlw738y.amd.js.map → popup-BpdlKk5T.amd.js.map} +1 -1
  39. package/.chunks/{popup-ScwGndLi.es.js → popup-NHfxJUAB.es.js} +2 -2
  40. package/.chunks/{popup-ScwGndLi.es.js.map → popup-NHfxJUAB.es.js.map} +1 -1
  41. package/.chunks/{utils-6pAQX17-.es.js → utils-B-1oTT6I.es.js} +2 -2
  42. package/.chunks/{utils-6pAQX17-.es.js.map → utils-B-1oTT6I.es.js.map} +1 -1
  43. package/.chunks/{utils-Kng8viAk.amd.js → utils-BPFSJAiy.amd.js} +2 -2
  44. package/.chunks/{utils-Kng8viAk.amd.js.map → utils-BPFSJAiy.amd.js.map} +1 -1
  45. package/.chunks/{utils-dA01j_vJ.amd.js → utils-CZwaa5j-.amd.js} +2 -2
  46. package/.chunks/{utils-dA01j_vJ.amd.js.map → utils-CZwaa5j-.amd.js.map} +1 -1
  47. package/.chunks/{utils-B8OQ-bo6.es.js → utils-DI9i3mGB.es.js} +3 -3
  48. package/.chunks/{utils-B8OQ-bo6.es.js.map → utils-DI9i3mGB.es.js.map} +1 -1
  49. package/assets/core.css +1 -1
  50. package/assets/forms.css +1 -1
  51. package/assets/formsExt.css +1 -1
  52. package/assets/project.css +1 -1
  53. package/charts/charts.amd.js +1 -1
  54. package/charts/charts.js +1 -1
  55. package/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +16 -0
  56. package/components/formsExt/checkboxGroup/types.d.ts +20 -0
  57. package/components/formsExt/formsExt.d.ts +2 -0
  58. package/core/app.amd.js +1 -1
  59. package/core/app.js +5 -5
  60. package/dialog/dialog.amd.js +1 -1
  61. package/dialog/dialog.js +2 -2
  62. package/forms/forms.amd.js +1 -1
  63. package/forms/forms.js +1 -1
  64. package/formsExt/formsExt.amd.js +1 -1
  65. package/formsExt/formsExt.amd.js.map +1 -1
  66. package/formsExt/formsExt.js +278 -226
  67. package/formsExt/formsExt.js.map +1 -1
  68. package/icomoon/Topvisor icons.json +226 -41
  69. package/icomoon/demo.html +364 -252
  70. package/icomoon/fonts/Topvisor-2.eot +0 -0
  71. package/icomoon/fonts/Topvisor-2.svg +9 -1
  72. package/icomoon/fonts/Topvisor-2.ttf +0 -0
  73. package/icomoon/fonts/Topvisor-2.woff +0 -0
  74. package/icomoon/selection.json +1 -1
  75. package/icomoon/style.css +29 -5
  76. package/layout/layout.amd.js +1 -1
  77. package/layout/layout.js +1 -1
  78. package/package.json +7 -7
  79. package/popup/popup.amd.js +1 -1
  80. package/popup/popup.js +2 -2
  81. package/popup/worker.amd.js +1 -1
  82. package/popup/worker.js +2 -2
  83. package/project/project.amd.js +1 -1
  84. package/project/project.amd.js.map +1 -1
  85. package/project/project.js +5 -5
  86. package/project/project.js.map +1 -1
  87. package/tabsView/tabsView.amd.js +1 -1
  88. package/tabsView/tabsView.js +1 -1
  89. package/utils/clipboard.amd.js +1 -1
  90. package/utils/clipboard.js +1 -1
  91. package/utils/date.amd.js +1 -1
  92. package/utils/date.js +1 -1
  93. package/utils/device.amd.js +1 -1
  94. package/utils/device.js +1 -1
  95. package/utils/lodash.amd.js +1 -1
  96. package/utils/lodash.js +1 -1
  97. package/utils/price.amd.js +1 -1
  98. package/utils/price.js +1 -1
  99. package/utils/searchers.amd.js +1 -1
  100. package/utils/searchers.js +3 -3
  101. package/utils/string.amd.js +1 -1
  102. package/utils/string.amd.js.map +1 -1
  103. package/utils/string.js +10 -10
  104. package/utils/string.js.map +1 -1
  105. package/.chunks/dialog_selectorRegions-B09GIvNe.amd.js +0 -2
  106. package/.chunks/dialog_selectorRegions-B09GIvNe.amd.js.map +0 -1
  107. package/.chunks/dialog_selectorRegions-BgrX75Zl.es.js +0 -181
  108. package/.chunks/dialog_selectorRegions-BgrX75Zl.es.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { Core as oe } from "../core/app.js";
2
- import { defineComponent as E, ref as b, computed as z, createElementBlock as h, openBlock as p, normalizeClass as C, createCommentVNode as A, createElementVNode as M, toDisplayString as $, createVNode as U, withKeys as B, withModifiers as T, createBlock as S, createSlots as G, withCtx as k, createTextVNode as L, watch as I, toRef as le, mergeProps as Y, mergeModels as D, useModel as Q, Fragment as N, renderList as H, withDirectives as Z, vModelRadio as ae, resolveDirective as se, unref as O, renderSlot as F } from "vue";
3
- import { w as ne, _ as R, f as re, d as ie, u as ue, C as de } from "../.chunks/forms-Dg0Huskq.es.js";
2
+ import { defineComponent as I, ref as g, computed as H, createElementBlock as v, openBlock as d, normalizeClass as C, createCommentVNode as k, createElementVNode as L, toDisplayString as $, createVNode as U, withKeys as E, withModifiers as S, createBlock as T, createSlots as D, withCtx as A, createTextVNode as B, watch as _, toRef as le, mergeProps as j, mergeModels as K, useModel as W, Fragment as M, renderList as N, withDirectives as Z, vModelRadio as ae, resolveDirective as se, unref as G, renderSlot as F } from "vue";
3
+ import { w as ne, _ as R, f as re, d as ie, u as ue, C as de } from "../.chunks/forms-qJ3k2PG6.es.js";
4
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-B9HkLtVf.es.js";
5
+ import { TopPopup as ce, TopPopupListItem as Q, TopPopupWidgetInput as me } from "../popup/popup.js";
6
+ import { _ as fe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-CDkyMyEi.es.js";
7
7
  const te = ["../assets/formsExt.css"].map((n) => import.meta.resolve(n));
8
8
  oe.insertCSSLinkToPage(te, !0);
9
- const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
9
+ const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ I({
10
10
  __name: "editArea",
11
11
  props: {
12
12
  defaultValue: { default: "" },
@@ -30,92 +30,92 @@ const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
30
30
  hint: {}
31
31
  },
32
32
  emits: ["submit", "close", "clickOnTitle"],
33
- setup(n, { emit: s }) {
34
- const e = n, t = s, m = b(e.defaultValue), g = b(e.isFocused), u = z(() => m.value !== e.defaultValue), f = (l) => {
35
- t("submit", l), m.value = e.defaultValue;
36
- }, d = () => {
37
- if (e.forceShowCloseBtn && !u.value) {
33
+ setup(n, { emit: l }) {
34
+ const e = n, t = l, p = g(e.defaultValue), i = g(e.isFocused), c = H(() => p.value !== e.defaultValue), y = (a) => {
35
+ t("submit", a), p.value = e.defaultValue;
36
+ }, m = () => {
37
+ if (e.forceShowCloseBtn && !c.value) {
38
38
  t("close");
39
39
  return;
40
40
  }
41
- m.value = e.defaultValue;
42
- }, v = () => {
41
+ p.value = e.defaultValue;
42
+ }, h = () => {
43
43
  e.attachToKeyboard && t("clickOnTitle");
44
44
  };
45
- return (l, y) => (p(), h("div", {
45
+ return (a, b) => (d(), v("div", {
46
46
  class: C({
47
47
  "top-editArea": !0,
48
- "top-editArea-attachedToKeyboard": l.attachToKeyboard
48
+ "top-editArea-attachedToKeyboard": a.attachToKeyboard
49
49
  })
50
50
  }, [
51
- l.title ? (p(), h("div", {
51
+ a.title ? (d(), v("div", {
52
52
  key: 0,
53
53
  class: "top-editArea_title",
54
- onClick: y[0] || (y[0] = (r) => v())
55
- }, $(l.title), 1)) : A("", !0),
56
- M("div", {
54
+ onClick: b[0] || (b[0] = (r) => h())
55
+ }, $(a.title), 1)) : k("", !0),
56
+ L("div", {
57
57
  class: C({
58
58
  "top-editArea_form": !0,
59
- "top-error": l.isError,
60
- "top-focus": g.value
59
+ "top-error": a.isError,
60
+ "top-focus": i.value
61
61
  })
62
62
  }, [
63
63
  U(ne, {
64
- modelValue: m.value,
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,
64
+ modelValue: p.value,
65
+ "onUpdate:modelValue": b[1] || (b[1] = (r) => p.value = r),
66
+ name: a.name,
67
+ placeholder: a.placeholder,
68
+ rows: a.rows,
69
+ minHeight: a.minHeight,
70
+ expandable: a.expandable,
71
+ disabled: a.disabled,
72
+ readonly: a.readonly,
73
+ isError: a.isError,
74
+ hint: a.hint,
75
75
  class: "top-editArea_element",
76
- onFocus: y[2] || (y[2] = () => g.value = !0),
77
- onBlur: y[3] || (y[3] = () => g.value = !1),
76
+ onFocus: b[2] || (b[2] = () => i.value = !0),
77
+ onBlur: b[3] || (b[3] = () => i.value = !1),
78
78
  onKeyup: [
79
- B(d, ["esc"]),
80
- y[4] || (y[4] = B(T((r) => f(m.value), ["ctrl"]), ["enter"]))
79
+ E(m, ["esc"]),
80
+ b[4] || (b[4] = E(S((r) => y(p.value), ["ctrl"]), ["enter"]))
81
81
  ]
82
82
  }, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
83
- M("div", ve, [
84
- u.value || l.forceShowCloseBtn ? (p(), S(R, {
83
+ L("div", ve, [
84
+ c.value || a.forceShowCloseBtn ? (d(), T(R, {
85
85
  key: 0,
86
- icon: l.$core.state.isMobile ? "" : "",
86
+ icon: a.$core.state.isMobile ? "" : "",
87
87
  class: "top-editArea_button",
88
88
  color: "theme",
89
89
  styling: "soft",
90
- onClick: d
91
- }, G({ _: 2 }, [
92
- l.$core.state.isMobile ? void 0 : {
90
+ onClick: m
91
+ }, D({ _: 2 }, [
92
+ a.$core.state.isMobile ? void 0 : {
93
93
  name: "default",
94
- fn: k(() => [
95
- L($(l.cancelText), 1)
94
+ fn: A(() => [
95
+ B($(a.cancelText), 1)
96
96
  ]),
97
97
  key: "0"
98
98
  }
99
- ]), 1032, ["icon"])) : A("", !0),
100
- u.value ? (p(), S(R, {
99
+ ]), 1032, ["icon"])) : k("", !0),
100
+ c.value ? (d(), T(R, {
101
101
  key: 1,
102
102
  class: "top-editArea_button",
103
- icon: l.$core.state.isMobile ? "" : "",
104
- onClick: y[5] || (y[5] = (r) => f(m.value))
105
- }, G({ _: 2 }, [
106
- l.$core.state.isMobile ? void 0 : {
103
+ icon: a.$core.state.isMobile ? "" : "",
104
+ onClick: b[5] || (b[5] = (r) => y(p.value))
105
+ }, D({ _: 2 }, [
106
+ a.$core.state.isMobile ? void 0 : {
107
107
  name: "default",
108
- fn: k(() => [
109
- L($(l.submitText), 1)
108
+ fn: A(() => [
109
+ B($(a.submitText), 1)
110
110
  ]),
111
111
  key: "0"
112
112
  }
113
- ]), 1032, ["icon"])) : A("", !0)
113
+ ]), 1032, ["icon"])) : k("", !0)
114
114
  ])
115
115
  ], 2)
116
116
  ], 2));
117
117
  }
118
- }), he = { class: "top-editInput" }, ge = /* @__PURE__ */ E({
118
+ }), he = { class: "top-editInput" }, be = /* @__PURE__ */ I({
119
119
  __name: "editInput",
120
120
  props: {
121
121
  modelValue: {},
@@ -123,34 +123,34 @@ const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
123
123
  button: {}
124
124
  },
125
125
  emits: ["update:modelValue"],
126
- setup(n, { emit: s }) {
127
- const e = n, t = b(e.modelValue);
128
- I(le(e.modelValue), () => {
126
+ setup(n, { emit: l }) {
127
+ const e = n, t = g(e.modelValue);
128
+ _(le(e.modelValue), () => {
129
129
  t.value = e.modelValue;
130
130
  });
131
- const m = s, g = () => {
132
- m("update:modelValue", t.value);
131
+ const p = l, i = () => {
132
+ p("update:modelValue", t.value);
133
133
  };
134
- return (u, f) => (p(), h("div", he, [
135
- U(re, Y(u.input, {
136
- onKeydownCapture: f[0] || (f[0] = B(T((d) => t.value = u.modelValue, ["stop"]), ["esc"])),
137
- onKeydown: B(T(g, ["stop"]), ["enter"]),
134
+ return (c, y) => (d(), v("div", he, [
135
+ U(re, j(c.input, {
136
+ onKeydownCapture: y[0] || (y[0] = E(S((m) => t.value = c.modelValue, ["stop"]), ["esc"])),
137
+ onKeydown: E(S(i, ["stop"]), ["enter"]),
138
138
  modelValue: t.value,
139
- "onUpdate:modelValue": f[1] || (f[1] = (d) => t.value = d)
139
+ "onUpdate:modelValue": y[1] || (y[1] = (m) => t.value = m)
140
140
  }), null, 16, ["onKeydown", "modelValue"]),
141
- t.value !== u.modelValue ? (p(), S(R, Y({
141
+ t.value !== c.modelValue ? (d(), T(R, j({
142
142
  key: 0,
143
143
  icon: "",
144
144
  styling: "soft"
145
- }, u.button, { onClick: g }), null, 16)) : A("", !0)
145
+ }, c.button, { onClick: i }), null, 16)) : k("", !0)
146
146
  ]));
147
147
  }
148
- }), be = ["data-top-icon", "onClick"], Ve = {
148
+ }), ge = ["data-top-icon", "onClick"], Ve = {
149
149
  key: 0,
150
150
  class: "top-radioGroup_circle"
151
- }, Ae = ["value", "disabled"], we = /* @__PURE__ */ E({
151
+ }, ke = ["value", "disabled"], Ce = /* @__PURE__ */ I({
152
152
  __name: "radioGroup",
153
- props: /* @__PURE__ */ D({
153
+ props: /* @__PURE__ */ K({
154
154
  modelValue: {},
155
155
  radiosProps: {},
156
156
  showIndicator: { type: Boolean },
@@ -162,91 +162,142 @@ const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
162
162
  },
163
163
  modelModifiers: {}
164
164
  }),
165
- emits: /* @__PURE__ */ D(["update:modelValue"], ["update:modelValue"]),
166
- setup(n, { emit: s }) {
167
- const e = Q(n, "modelValue"), t = n, m = b(null);
168
- I(e, () => {
169
- var u, f, d, v, l;
170
- (u = t.radiosProps) != null && u.some((y) => y.value === e.value) || (e.value = ((d = (f = t.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();
165
+ emits: /* @__PURE__ */ K(["update:modelValue"], ["update:modelValue"]),
166
+ setup(n, { emit: l }) {
167
+ const e = W(n, "modelValue"), t = n, p = g(null);
168
+ _(e, () => {
169
+ var c, y, m, h, a;
170
+ (c = t.radiosProps) != null && c.some((b) => b.value === e.value) || (e.value = ((m = (y = t.radiosProps) == null ? void 0 : y[0]) == null ? void 0 : m.value) ?? ""), (a = (h = p.value) == null ? void 0 : h.querySelector(".radioGroup_item-selected")) == null || a.scrollIntoView();
171
171
  }, { immediate: !0 });
172
- const g = "radioGroup-" + Math.random();
173
- return (u, f) => (p(), h("div", {
172
+ const i = "radioGroup-" + Math.random();
173
+ return (c, y) => (d(), v("div", {
174
174
  ref_key: "elRef",
175
- ref: m,
175
+ ref: p,
176
176
  class: C({
177
177
  "top-radioGroup": !0,
178
178
  "top-scrollBarXHidding": !0,
179
- ["top-size_" + u.size]: !!u.size,
180
- "top-error": u.isError
179
+ ["top-size_" + c.size]: !!c.size,
180
+ "top-error": c.isError
181
181
  })
182
182
  }, [
183
- (p(!0), h(N, null, H(u.radiosProps, (d) => (p(), h("label", {
183
+ (d(!0), v(M, null, N(c.radiosProps, (m) => (d(), v("label", {
184
184
  class: C({
185
- "top-radioGroup_item-selected": d.value === e.value,
185
+ "top-radioGroup_item-selected": m.value === e.value,
186
186
  "top-radioGroup_item": !0,
187
187
  "top-forms-focusable": !0,
188
- "top-disabled": d.disabled
188
+ "top-disabled": m.disabled
189
189
  }),
190
- "data-top-icon": d.icon,
191
- onClick: (v) => e.value = d.value
190
+ "data-top-icon": m.icon,
191
+ onClick: (h) => e.value = m.value
192
192
  }, [
193
- L($(d.title) + " ", 1),
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,
193
+ B($(m.title) + " ", 1),
194
+ c.showIndicator ? (d(), v("span", Ve)) : k("", !0),
195
+ Z(L("input", {
196
+ "onUpdate:modelValue": y[0] || (y[0] = (h) => e.value = h),
197
+ name: i,
198
198
  type: "radio",
199
199
  class: C({
200
200
  "top-unvisible": !0
201
201
  }),
202
- value: d.value,
203
- disabled: d.disabled
204
- }, null, 8, Ae), [
202
+ value: m.value,
203
+ disabled: m.disabled
204
+ }, null, 8, ke), [
205
205
  [ae, e.value]
206
206
  ])
207
- ], 10, be))), 256))
207
+ ], 10, ge))), 256))
208
208
  ], 2));
209
209
  }
210
- }), Ce = (n, s, e) => {
211
- const t = b([]), m = b(!1);
212
- let g = "", u;
210
+ }), $e = ["data-top-icon"], we = ["value", "checked", "disabled", "onChange"], Ae = /* @__PURE__ */ I({
211
+ __name: "checkboxGroup",
212
+ props: /* @__PURE__ */ K({
213
+ modelValue: {},
214
+ items: {},
215
+ size: { default: "s" },
216
+ styling: { default: "outline" },
217
+ isError: { type: Boolean }
218
+ }, {
219
+ modelValue: {
220
+ required: !0
221
+ },
222
+ modelModifiers: {}
223
+ }),
224
+ emits: ["update:modelValue"],
225
+ setup(n) {
226
+ const l = W(n, "modelValue"), e = (t) => {
227
+ const p = [...l.value], i = p.indexOf(t);
228
+ i === -1 ? p.push(t) : p.splice(i, 1), l.value = p;
229
+ };
230
+ return (t, p) => (d(), v("div", {
231
+ class: C({
232
+ "top-checkboxGroup": !0,
233
+ ["top-checkboxGroup-" + t.styling]: !0,
234
+ "top-scrollBarXHidding": !0,
235
+ ["top-size_" + t.size]: !!t.size,
236
+ "top-error": t.isError
237
+ })
238
+ }, [
239
+ (d(!0), v(M, null, N(t.items, (i) => (d(), v("label", {
240
+ key: i.id,
241
+ class: C({
242
+ "top-checkboxGroup_item": !0,
243
+ "top-checkboxGroup_item-selected": l.value.includes(i.id),
244
+ "top-forms-focusable": !0,
245
+ "top-disabled": i.disabled
246
+ }),
247
+ "data-top-icon": i.icon
248
+ }, [
249
+ L("input", {
250
+ type: "checkbox",
251
+ class: "top-unvisible",
252
+ value: i.id,
253
+ checked: l.value.includes(i.id),
254
+ disabled: i.disabled,
255
+ onChange: (c) => e(i.id)
256
+ }, null, 40, we),
257
+ B(" " + $(i.title), 1)
258
+ ], 10, $e))), 128))
259
+ ], 2));
260
+ }
261
+ }), Te = (n, l, e) => {
262
+ const t = g([]), p = g(!1);
263
+ let i = "", c;
213
264
  n && !n.params.limit && (n.params.limit = 100);
214
- const f = async () => {
265
+ const y = async () => {
215
266
  if (!n) return;
216
267
  let r, V;
217
268
  if (e && (n.cache ??= /* @__PURE__ */ new Map(), V = JSON.stringify(n.params), r = n.cache.get(V), r))
218
269
  return r;
219
- if (m.value = !0, r = await n.call(), m.value = !1, r.errors) return;
270
+ if (p.value = !0, r = await n.call(), p.value = !1, r.errors) return;
220
271
  if (!Array.isArray(r.result)) {
221
272
  console.warn("В result ожидался массив");
222
273
  return;
223
274
  }
224
- const _ = r.result.findIndex((P) => P.id === void 0 || P.name === void 0);
225
- if (_ !== -1) {
226
- console.warn(`В result[${_}] нет id или name`);
275
+ const P = r.result.findIndex((z) => z.id === void 0 || z.name === void 0);
276
+ if (P !== -1) {
277
+ console.warn(`В result[${P}] нет id или name`);
227
278
  return;
228
279
  }
229
280
  return e && n.cache.set(V, r), r;
230
- }, d = async () => {
281
+ }, m = async () => {
231
282
  if (!n) return;
232
- n.params.offset = 0, n.params.search = g;
233
- const r = await f();
234
- r && (u = r.nextOffset, t.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, t.value = t.value.concat(r.result));
240
- }, l = ie(() => d(), 200);
283
+ n.params.offset = 0, n.params.search = i;
284
+ const r = await y();
285
+ r && (c = r.nextOffset, t.value = r.result);
286
+ }, h = async () => {
287
+ if (!n || !c || p.value) return;
288
+ n.params.offset = c, n.params.search = i;
289
+ const r = await y();
290
+ r && (c = r.nextOffset, t.value = t.value.concat(r.result));
291
+ }, a = ie(() => m(), 200);
241
292
  return {
242
293
  items: t,
243
- isLoading: m,
244
- loadAppend: v,
294
+ isLoading: p,
295
+ loadAppend: h,
245
296
  setSearchTextAndLoad: (r, V = !0) => {
246
- n && (r.length < s || r === g && t.value.length || (g = r, V ? l() : d()));
297
+ n && (r.length < l || r === i && t.value.length || (i = r, V ? a() : m()));
247
298
  }
248
299
  };
249
- }, $e = { class: "top-selector2_itemMulti top-ellipsis" }, ke = /* @__PURE__ */ E({
300
+ }, Se = { class: "top-selector2_itemMulti top-ellipsis" }, Be = /* @__PURE__ */ I({
250
301
  __name: "itemMulti",
251
302
  props: {
252
303
  id: {},
@@ -254,26 +305,26 @@ const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
254
305
  },
255
306
  emits: ["delete"],
256
307
  setup(n) {
257
- return (s, e) => (p(), h("div", $e, [
258
- L($(s.name) + " ", 1),
259
- M("span", {
308
+ return (l, e) => (d(), v("div", Se, [
309
+ B($(l.name) + " ", 1),
310
+ L("span", {
260
311
  class: "top-selector2_itemMultiDelete",
261
312
  "data-top-icon": "",
262
- onClick: e[0] || (e[0] = (t) => s.$emit("delete", s.id)),
263
- onMousedown: e[1] || (e[1] = T(() => {
313
+ onClick: e[0] || (e[0] = (t) => l.$emit("delete", l.id)),
314
+ onMousedown: e[1] || (e[1] = S(() => {
264
315
  }, ["stop"]))
265
316
  }, null, 32)
266
317
  ]));
267
318
  }
268
- }), Se = {
319
+ }), Ie = {
269
320
  key: 0,
270
321
  class: "top-selector2_activeItems"
271
- }, Te = {
322
+ }, _e = {
272
323
  key: 1,
273
324
  class: "top-selector2_activeName top-ellipsis"
274
- }, Ie = /* @__PURE__ */ E({
325
+ }, Le = /* @__PURE__ */ I({
275
326
  __name: "selector2",
276
- props: /* @__PURE__ */ D({
327
+ props: /* @__PURE__ */ K({
277
328
  modelValue: {},
278
329
  items: { default: () => [] },
279
330
  multiselect: { type: Boolean },
@@ -295,88 +346,88 @@ const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
295
346
  }),
296
347
  emits: ["update:modelValue"],
297
348
  setup(n) {
298
- const s = n, e = Q(n, "modelValue"), t = b(""), m = () => {
299
- t.value = "", v.items.value = [];
300
- }, g = {
349
+ const l = n, e = W(n, "modelValue"), t = g(""), p = () => {
350
+ t.value = "", h.items.value = [];
351
+ }, i = {
301
352
  id: 0,
302
353
  name: ue().Common.All
303
- }, u = b(null), f = b(null), d = () => {
354
+ }, c = g(null), y = g(null), m = () => {
304
355
  var o;
305
- return (o = u.value) == null ? void 0 : o.popup;
356
+ return (o = c.value) == null ? void 0 : o.popup;
306
357
  };
307
- window.__STORYBOOK_PREVIEW__ && !s.modelValue && I(
308
- () => s.multiselect,
358
+ window.__STORYBOOK_PREVIEW__ && !l.modelValue && _(
359
+ () => l.multiselect,
309
360
  () => {
310
- e.value = s.multiselect ? [] : { id: null, name: "" };
361
+ e.value = l.multiselect ? [] : { id: null, name: "" };
311
362
  },
312
363
  { immediate: !0 }
313
364
  );
314
- const v = Ce(s.apiRequest, s.minLength, s.useCache), l = z(() => {
365
+ const h = Te(l.apiRequest, l.minLength, l.useCache), a = H(() => {
315
366
  const o = [];
316
- return !s.multiselect && s.appendAllValue && o.push(g), s.items.forEach((a) => o.push({ ...a })), o;
317
- }), y = (o, a = !0) => a && o.id === null ? Array.isArray(e.value) ? e.value.some((c) => c.id === o.id && c.name === o.name) : o.name === e.value.name : Array.isArray(e.value) ? e.value.some((c) => c.id === o.id) : o.id === e.value.id, r = z(() => {
318
- const o = t.value.toLowerCase(), a = pe(o);
319
- let c = [];
320
- return l.value.forEach((i) => {
321
- const w = i.name.toLowerCase();
322
- (i.id === Number(o) || w.includes(o) || w.includes(a)) && (w === o || w === a ? c.unshift(i) : c.push(i));
323
- }), c.push(...v.items.value), s.appendSearchToResult && t.value && (!c.length || c[0].name.toLowerCase() !== o) && c.push({
367
+ return !l.multiselect && l.appendAllValue && o.push(i), l.items.forEach((s) => o.push({ ...s })), o;
368
+ }), b = (o, s = !0) => s && o.id === null ? Array.isArray(e.value) ? e.value.some((f) => f.id === o.id && f.name === o.name) : o.name === e.value.name : Array.isArray(e.value) ? e.value.some((f) => f.id === o.id) : o.id === e.value.id, r = H(() => {
369
+ const o = t.value.toLowerCase(), s = pe(o);
370
+ let f = [];
371
+ return a.value.forEach((u) => {
372
+ const w = u.name.toLowerCase();
373
+ (u.id === Number(o) || w.includes(o) || w.includes(s)) && (w === o || w === s ? f.unshift(u) : f.push(u));
374
+ }), f.push(...h.items.value), l.appendSearchToResult && t.value && (!f.length || f[0].name.toLowerCase() !== o) && f.push({
324
375
  id: null,
325
376
  name: t.value
326
- }), s.multiselect && (c = c.filter((i) => !y(i))), c;
327
- }), V = b(v.isLoading.value);
328
- I(v.isLoading, () => {
329
- V.value = v.isLoading.value;
377
+ }), l.multiselect && (f = f.filter((u) => !b(u))), f;
378
+ }), V = g(h.isLoading.value);
379
+ _(h.isLoading, () => {
380
+ V.value = h.isLoading.value;
330
381
  });
331
- const _ = async (o) => {
332
- var a, c;
333
- if (s.multiselect) {
334
- if (!Array.isArray(e.value) || y(o))
382
+ const P = async (o) => {
383
+ var s, f;
384
+ if (l.multiselect) {
385
+ if (!Array.isArray(e.value) || b(o))
335
386
  return;
336
- s.apiRequest && t.value && (V.value = !0);
337
- const i = [...e.value];
338
- i.push({ ...o }), e.value = i, de.state.isMobile ? (a = d()) == null || a.close() : setTimeout(() => {
339
- var w, W, J, X;
340
- (w = d()) == null || w.recalcPosition(), (X = (J = (W = d()) == null ? void 0 : W.elPopupWidget) == null ? void 0 : J.querySelector("input")) == null || X.focus(), t.value && m();
387
+ l.apiRequest && t.value && (V.value = !0);
388
+ const u = [...e.value];
389
+ u.push({ ...o }), e.value = u, de.state.isMobile ? (s = m()) == null || s.close() : setTimeout(() => {
390
+ var w, J, X, Y;
391
+ (w = m()) == null || w.recalcPosition(), (Y = (X = (J = m()) == null ? void 0 : J.elPopupWidget) == null ? void 0 : X.querySelector("input")) == null || Y.focus(), t.value && p();
341
392
  });
342
393
  } else
343
- JSON.stringify(o) !== JSON.stringify(e.value) && (e.value = { ...o }), (c = d()) == null || c.close();
344
- }, P = () => {
394
+ JSON.stringify(o) !== JSON.stringify(e.value) && (e.value = { ...o }), (f = m()) == null || f.close();
395
+ }, z = () => {
345
396
  if (!Array.isArray(e.value)) {
346
- const a = (l.value.findIndex((c) => c.id === e.value.id) + 1) % l.value.length;
347
- e.value = { ...l.value[a] };
397
+ const s = (a.value.findIndex((f) => f.id === e.value.id) + 1) % a.value.length;
398
+ e.value = { ...a.value[s] };
348
399
  }
349
400
  }, q = async (o) => {
350
- Array.isArray(e.value) && (e.value = e.value.filter((a) => a.id !== o), setTimeout(() => {
351
- var a;
352
- (a = d()) == null || a.recalcPosition();
401
+ Array.isArray(e.value) && (e.value = e.value.filter((s) => s.id !== o), setTimeout(() => {
402
+ var s;
403
+ (s = m()) == null || s.recalcPosition();
353
404
  }));
354
- }, K = b(!1);
355
- s.apiRequest && (I(K, () => {
356
- K.value && v.setSearchTextAndLoad(t.value, !1);
357
- }), I(t, () => v.setSearchTextAndLoad(t.value)));
405
+ }, O = g(!1);
406
+ l.apiRequest && (_(O, () => {
407
+ O.value && h.setSearchTextAndLoad(t.value, !1);
408
+ }), _(t, () => h.setSearchTextAndLoad(t.value)));
358
409
  const x = (o) => {
359
- const a = o.target;
360
- a.scrollTop / (a.scrollHeight - a.offsetHeight) > 0.8 && v.loadAppend();
410
+ const s = o.target;
411
+ s.scrollTop / (s.scrollHeight - s.offsetHeight) > 0.8 && h.loadAppend();
361
412
  }, ee = () => {
362
413
  var o;
363
- K.value = !1, (o = f.value) == null || o.focus(), t.value && m();
414
+ O.value = !1, (o = y.value) == null || o.focus(), t.value && p();
364
415
  };
365
- return (o, a) => {
366
- const c = se("top-focus");
367
- return p(), S(O(ce), {
416
+ return (o, s) => {
417
+ const f = se("top-focus");
418
+ return d(), T(G(ce), {
368
419
  ref_key: "popupRef",
369
- ref: u,
370
- onOpen: a[3] || (a[3] = (i) => K.value = !0),
371
- onClose: a[4] || (a[4] = (i) => ee()),
372
- onScrollContentList: a[5] || (a[5] = (i) => o.apiRequest ? x(i) : void 0),
420
+ ref: c,
421
+ onOpen: s[3] || (s[3] = (u) => O.value = !0),
422
+ onClose: s[4] || (s[4] = (u) => ee()),
423
+ onScrollContentList: s[5] || (s[5] = (u) => o.apiRequest ? x(u) : void 0),
373
424
  notch: !1,
374
425
  transitionDuration: 0
375
- }, G({
376
- opener: k(() => [
377
- Z((p(), h("div", {
426
+ }, D({
427
+ opener: A(() => [
428
+ Z((d(), v("div", {
378
429
  ref_key: "elRef",
379
- ref: f,
430
+ ref: y,
380
431
  class: C({
381
432
  "top-selector2": !0,
382
433
  "top-selector2-multiselect": o.multiselect,
@@ -386,71 +437,71 @@ const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
386
437
  "top-error": o.isError
387
438
  }),
388
439
  onKeydown: [
389
- a[0] || (a[0] = B(T((i) => i.currentTarget.click(), ["stop", "prevent"]), ["up", "down", "enter", "space"])),
390
- a[1] || (a[1] = B((i) => e.value = [], ["delete"]))
440
+ s[0] || (s[0] = E(S((u) => u.currentTarget.click(), ["stop", "prevent"]), ["up", "down", "enter", "space"])),
441
+ s[1] || (s[1] = E((u) => e.value = [], ["delete"]))
391
442
  ],
392
443
  tabindex: "0"
393
444
  }, [
394
- o.multiselect ? (p(), h("div", Se, [
395
- (p(!0), h(N, null, H(e.value, (i) => (p(), S(ke, {
396
- id: i.id,
397
- name: i.name,
445
+ o.multiselect ? (d(), v("div", Ie, [
446
+ (d(!0), v(M, null, N(e.value, (u) => (d(), T(Be, {
447
+ id: u.id,
448
+ name: u.name,
398
449
  onDelete: q
399
450
  }, null, 8, ["id", "name"]))), 256))
400
- ])) : A("", !0),
401
- o.multiselect ? A("", !0) : (p(), h("span", Te, $(Array.isArray(e.value) ? "" : e.value.name), 1)),
402
- o.addChanger && !o.multiselect && l.value.length > 1 && !o.disabled ? (p(), h("span", {
451
+ ])) : k("", !0),
452
+ o.multiselect ? k("", !0) : (d(), v("span", _e, $(Array.isArray(e.value) ? "" : e.value.name), 1)),
453
+ o.addChanger && !o.multiselect && a.value.length > 1 && !o.disabled ? (d(), v("span", {
403
454
  key: 2,
404
455
  class: "top-changer top-changer-selector",
405
- onClick: T(P, ["stop"])
406
- })) : A("", !0)
456
+ onClick: S(z, ["stop"])
457
+ })) : k("", !0)
407
458
  ], 34)), [
408
459
  [
409
- c,
460
+ f,
410
461
  o.isError,
411
462
  void 0,
412
463
  { onupdate: !0 }
413
464
  ]
414
465
  ])
415
466
  ]),
416
- contentList: k(() => [
417
- (p(!0), h(N, null, H(r.value, (i) => (p(), S(O(j), {
467
+ contentList: A(() => [
468
+ (d(!0), v(M, null, N(r.value, (u) => (d(), T(G(Q), {
418
469
  class: C({
419
- "top-active": !Array.isArray(e.value) && !o.multiselect && e.value.name === i.name
470
+ "top-active": !Array.isArray(e.value) && !o.multiselect && e.value.name === u.name
420
471
  }),
421
- key: i.id ?? void 0,
422
- onClick: T((w) => _(i), ["stop"])
472
+ key: u.id ?? void 0,
473
+ onClick: S((w) => P(u), ["stop"])
423
474
  }, {
424
- default: k(() => [
475
+ default: A(() => [
425
476
  o.$slots.item ? F(o.$slots, "item", {
426
477
  key: 0,
427
- item: i
428
- }) : (p(), h(N, { key: 1 }, [
429
- L($(i.name), 1)
478
+ item: u
479
+ }) : (d(), v(M, { key: 1 }, [
480
+ B($(u.name), 1)
430
481
  ], 64))
431
482
  ]),
432
483
  _: 2
433
484
  }, 1032, ["class", "onClick"]))), 128)),
434
- !V.value && !r.value.length ? (p(), S(O(j), {
485
+ !V.value && !r.value.length ? (d(), T(G(Q), {
435
486
  key: 0,
436
487
  type: "regular"
437
488
  }, {
438
- default: k(() => [
439
- L($(o.$i18n.Common.No_results), 1)
489
+ default: A(() => [
490
+ B($(o.$i18n.Common.No_results), 1)
440
491
  ]),
441
492
  _: 1
442
- })) : A("", !0)
493
+ })) : k("", !0)
443
494
  ]),
444
495
  _: 2
445
496
  }, [
446
497
  o.showSearch ? {
447
498
  name: "widget",
448
- fn: k(() => [
449
- U(O(me), {
499
+ fn: A(() => [
500
+ U(G(me), {
450
501
  title: "Поиск",
451
502
  icon: "",
452
503
  modelValue: t.value,
453
- "onUpdate:modelValue": a[2] || (a[2] = (i) => t.value = i),
504
+ "onUpdate:modelValue": s[2] || (s[2] = (u) => t.value = u),
454
505
  isLoading: V.value,
455
506
  placeholder: !Array.isArray(e.value) && !o.multiselect && o.showSelectedInInput ? e.value.name : o.placeholder
456
507
  }, null, 8, ["modelValue", "isLoading", "placeholder"])
@@ -460,10 +511,10 @@ const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
460
511
  ]), 1536);
461
512
  };
462
513
  }
463
- }), Be = ["data-top-icon"], Le = { class: "top-info_text" }, Ee = {
514
+ }), Ee = ["data-top-icon"], Me = { class: "top-info_text" }, Pe = {
464
515
  key: 0,
465
516
  class: "top-info_value"
466
- }, Me = /* @__PURE__ */ E({
517
+ }, ze = /* @__PURE__ */ I({
467
518
  __name: "info",
468
519
  props: {
469
520
  icon: {},
@@ -471,29 +522,30 @@ const ve = { class: "top-editArea_footer" }, ye = /* @__PURE__ */ E({
471
522
  size: { default: "default" }
472
523
  },
473
524
  setup(n) {
474
- return (s, e) => (p(), h("div", {
525
+ return (l, e) => (d(), v("div", {
475
526
  class: C({
476
527
  "top-info": !0,
477
- ["top-size_" + s.size]: !0,
478
- ["top-info-styling_" + s.styling]: !0
528
+ ["top-size_" + l.size]: !0,
529
+ ["top-info-styling_" + l.styling]: !0
479
530
  }),
480
- "data-top-icon": s.icon
531
+ "data-top-icon": l.icon
481
532
  }, [
482
- M("div", Le, [
483
- F(s.$slots, "default")
533
+ L("div", Me, [
534
+ F(l.$slots, "default")
484
535
  ]),
485
- s.$slots.additional ? (p(), h("span", Ee, [
486
- F(s.$slots, "additional")
487
- ])) : A("", !0)
488
- ], 10, Be));
536
+ l.$slots.additional ? (d(), v("span", Pe, [
537
+ F(l.$slots, "additional")
538
+ ])) : k("", !0)
539
+ ], 10, Ee));
489
540
  }
490
- }), Ge = ye, De = ge, He = we, Fe = Ie, Re = fe, Ue = Me;
541
+ }), Fe = ye, Re = be, Ue = Ce, We = Ae, Je = Le, Xe = fe, Ye = ze;
491
542
  export {
492
- Ge as TopEditArea,
493
- De as TopEditInput,
494
- Ue as TopInfo,
495
- Re as TopMenu,
496
- He as TopRadioGroup,
497
- Fe as TopSelector2
543
+ We as TopCheckboxGroup,
544
+ Fe as TopEditArea,
545
+ Re as TopEditInput,
546
+ Ye as TopInfo,
547
+ Xe as TopMenu,
548
+ Ue as TopRadioGroup,
549
+ Je as TopSelector2
498
550
  };
499
551
  //# sourceMappingURL=formsExt.js.map