@topvisor/ui 1.3.1-utils.1 → 1.3.1
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.
- package/assets/formsExt.css +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +383 -362
- package/formsExt/formsExt.js.map +1 -1
- package/package.json +1 -1
- package/src/components/forms/checkbox/checkbox.vue.d.ts +2 -2
- package/src/components/forms/checkbox/types.d.ts +4 -3
- package/src/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +18 -7
- package/src/components/formsExt/checkboxGroup/types.d.ts +4 -18
- package/src/components/formsExt/libs/optionGroup/optionGroup.vue.d.ts +16 -0
- package/src/components/formsExt/libs/optionGroup/types.d.ts +18 -0
- package/src/components/formsExt/radioGroup/radioGroup.vue.d.ts +18 -7
- package/src/components/formsExt/radioGroup/types.d.ts +4 -20
package/formsExt/formsExt.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Core as x } from "../core/app.js";
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { q as se, c as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
2
|
+
import { defineComponent as E, ref as B, computed as z, createElementBlock as b, openBlock as d, normalizeClass as L, createCommentVNode as I, createElementVNode as K, toDisplayString as C, createVNode as D, withKeys as O, withModifiers as q, createBlock as w, createSlots as J, withCtx as k, createTextVNode as S, watch as M, toRef as N, mergeProps as X, mergeModels as U, useModel as W, Fragment as P, renderList as F, renderSlot as G, resolveDirective as te, unref as m, withDirectives as oe, resolveDynamicComponent as le } from "vue";
|
|
3
|
+
import { q as se, c as H, _ as ae, j as re, n as ne, d as ie, u as ue, C as Y, r as de } from "../.chunks/forms-BWoAyEVH.es.js";
|
|
4
|
+
import { _ as pe, b as j } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-Dljef_xa.es.js";
|
|
5
|
+
import { _ as ce } from "../.chunks/widgetInput.vue_vue_type_script_setup_true_lang-Cr_jgOW4.es.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { invertKeyboardLayout as
|
|
7
|
+
import { invertKeyboardLayout as me } from "../utils/keyboard.js";
|
|
8
8
|
import { _ as je } from "../.chunks/menu.vue_vue_type_style_index_0_lang-HDPVVgzy.es.js";
|
|
9
|
-
const ee = ["../assets/formsExt.css"].map((
|
|
9
|
+
const ee = ["../assets/formsExt.css"].map((l) => import.meta.resolve(l));
|
|
10
10
|
x.insertCSSLinkToPage(ee, !0);
|
|
11
|
-
const
|
|
11
|
+
const fe = { class: "top-editArea_footer" }, De = /* @__PURE__ */ E({
|
|
12
12
|
__name: "editArea",
|
|
13
13
|
props: {
|
|
14
14
|
defaultValue: { default: "" },
|
|
@@ -33,94 +33,94 @@ const ce = { class: "top-editArea_footer" }, Ne = /* @__PURE__ */ M({
|
|
|
33
33
|
maxLength: {}
|
|
34
34
|
},
|
|
35
35
|
emits: ["submit", "close", "clickOnTitle"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
38
|
-
|
|
36
|
+
setup(l, { emit: e }) {
|
|
37
|
+
const o = l, s = e, p = B(o.defaultValue), r = B(o.isFocused), a = z(() => p.value !== o.defaultValue), i = (u) => {
|
|
38
|
+
s("submit", u), p.value = o.defaultValue;
|
|
39
39
|
}, c = () => {
|
|
40
|
-
if (
|
|
41
|
-
|
|
40
|
+
if (o.forceShowCloseBtn && !a.value) {
|
|
41
|
+
s("close");
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
|
|
44
|
+
p.value = o.defaultValue;
|
|
45
|
+
}, T = () => {
|
|
46
|
+
o.attachToKeyboard && s("clickOnTitle");
|
|
47
47
|
};
|
|
48
|
-
return (
|
|
49
|
-
class:
|
|
48
|
+
return (u, v) => (d(), b("div", {
|
|
49
|
+
class: L({
|
|
50
50
|
"top-editArea": !0,
|
|
51
|
-
"top-editArea-attachedToKeyboard":
|
|
51
|
+
"top-editArea-attachedToKeyboard": u.attachToKeyboard
|
|
52
52
|
})
|
|
53
53
|
}, [
|
|
54
|
-
|
|
54
|
+
u.title ? (d(), b("div", {
|
|
55
55
|
key: 0,
|
|
56
56
|
class: "top-editArea_title",
|
|
57
|
-
onClick:
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
class:
|
|
57
|
+
onClick: v[0] || (v[0] = (V) => T())
|
|
58
|
+
}, C(u.title), 1)) : I("", !0),
|
|
59
|
+
K("div", {
|
|
60
|
+
class: L({
|
|
61
61
|
"top-editArea_form": !0,
|
|
62
62
|
"top-forms-focusable": !0,
|
|
63
63
|
"top-as-input": !0,
|
|
64
|
-
"top-error":
|
|
65
|
-
"top-focus":
|
|
64
|
+
"top-error": u.isError,
|
|
65
|
+
"top-focus": r.value
|
|
66
66
|
})
|
|
67
67
|
}, [
|
|
68
68
|
D(se, {
|
|
69
|
-
modelValue:
|
|
70
|
-
"onUpdate:modelValue":
|
|
71
|
-
name:
|
|
72
|
-
placeholder:
|
|
73
|
-
rows:
|
|
74
|
-
minHeight:
|
|
75
|
-
expandable:
|
|
76
|
-
disabled:
|
|
77
|
-
readonly:
|
|
78
|
-
isError:
|
|
79
|
-
hint:
|
|
69
|
+
modelValue: p.value,
|
|
70
|
+
"onUpdate:modelValue": v[1] || (v[1] = (V) => p.value = V),
|
|
71
|
+
name: u.name,
|
|
72
|
+
placeholder: u.placeholder,
|
|
73
|
+
rows: u.rows,
|
|
74
|
+
minHeight: u.minHeight,
|
|
75
|
+
expandable: u.expandable,
|
|
76
|
+
disabled: u.disabled,
|
|
77
|
+
readonly: u.readonly,
|
|
78
|
+
isError: u.isError,
|
|
79
|
+
hint: u.hint,
|
|
80
80
|
class: "top-editArea_element",
|
|
81
|
-
onFocus:
|
|
82
|
-
onBlur:
|
|
81
|
+
onFocus: v[2] || (v[2] = () => r.value = !0),
|
|
82
|
+
onBlur: v[3] || (v[3] = () => r.value = !1),
|
|
83
83
|
onKeyup: [
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
O(c, ["esc"]),
|
|
85
|
+
v[4] || (v[4] = O(q((V) => i(p.value), ["ctrl"]), ["enter"]))
|
|
86
86
|
]
|
|
87
87
|
}, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
K("div", fe, [
|
|
89
|
+
a.value || u.forceShowCloseBtn ? (d(), w(H, {
|
|
90
90
|
key: 0,
|
|
91
|
-
icon:
|
|
91
|
+
icon: u.$core.state.isMobile ? "" : "",
|
|
92
92
|
class: "top-editArea_button",
|
|
93
93
|
color: "theme",
|
|
94
94
|
styling: "soft",
|
|
95
95
|
onClick: c
|
|
96
|
-
},
|
|
97
|
-
|
|
96
|
+
}, J({ _: 2 }, [
|
|
97
|
+
u.$core.state.isMobile ? void 0 : {
|
|
98
98
|
name: "default",
|
|
99
|
-
fn:
|
|
100
|
-
|
|
99
|
+
fn: k(() => [
|
|
100
|
+
S(C(u.cancelText), 1)
|
|
101
101
|
]),
|
|
102
102
|
key: "0"
|
|
103
103
|
}
|
|
104
|
-
]), 1032, ["icon"])) :
|
|
105
|
-
|
|
104
|
+
]), 1032, ["icon"])) : I("", !0),
|
|
105
|
+
a.value ? (d(), w(H, {
|
|
106
106
|
key: 1,
|
|
107
107
|
class: "top-editArea_button",
|
|
108
|
-
icon:
|
|
109
|
-
onClick:
|
|
110
|
-
},
|
|
111
|
-
|
|
108
|
+
icon: u.$core.state.isMobile ? "" : "",
|
|
109
|
+
onClick: v[5] || (v[5] = (V) => i(p.value))
|
|
110
|
+
}, J({ _: 2 }, [
|
|
111
|
+
u.$core.state.isMobile ? void 0 : {
|
|
112
112
|
name: "default",
|
|
113
|
-
fn:
|
|
114
|
-
|
|
113
|
+
fn: k(() => [
|
|
114
|
+
S(C(u.submitText), 1)
|
|
115
115
|
]),
|
|
116
116
|
key: "0"
|
|
117
117
|
}
|
|
118
|
-
]), 1032, ["icon"])) :
|
|
118
|
+
]), 1032, ["icon"])) : I("", !0)
|
|
119
119
|
])
|
|
120
120
|
], 2)
|
|
121
121
|
], 2));
|
|
122
122
|
}
|
|
123
|
-
}),
|
|
123
|
+
}), ve = { class: "top-editInput" }, Ge = /* @__PURE__ */ E({
|
|
124
124
|
__name: "editInput",
|
|
125
125
|
props: {
|
|
126
126
|
modelValue: {},
|
|
@@ -128,38 +128,35 @@ const ce = { class: "top-editArea_footer" }, Ne = /* @__PURE__ */ M({
|
|
|
128
128
|
button: {}
|
|
129
129
|
},
|
|
130
130
|
emits: ["update:modelValue"],
|
|
131
|
-
setup(
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
setup(l, { emit: e }) {
|
|
132
|
+
const o = l, s = B(o.modelValue);
|
|
133
|
+
M(N(o.modelValue), () => {
|
|
134
|
+
s.value = o.modelValue;
|
|
135
135
|
});
|
|
136
|
-
const
|
|
137
|
-
|
|
136
|
+
const p = e, r = () => {
|
|
137
|
+
p("update:modelValue", s.value);
|
|
138
138
|
};
|
|
139
|
-
return (
|
|
140
|
-
D(ae,
|
|
141
|
-
onKeydownCapture:
|
|
142
|
-
onKeydown:
|
|
143
|
-
modelValue:
|
|
144
|
-
"onUpdate:modelValue":
|
|
139
|
+
return (a, i) => (d(), b("div", ve, [
|
|
140
|
+
D(ae, X(a.input, {
|
|
141
|
+
onKeydownCapture: i[0] || (i[0] = O(q((c) => s.value = a.modelValue, ["stop"]), ["esc"])),
|
|
142
|
+
onKeydown: O(q(r, ["stop"]), ["enter"]),
|
|
143
|
+
modelValue: s.value,
|
|
144
|
+
"onUpdate:modelValue": i[1] || (i[1] = (c) => s.value = c)
|
|
145
145
|
}), null, 16, ["onKeydown", "modelValue"]),
|
|
146
|
-
|
|
146
|
+
s.value !== a.modelValue ? (d(), w(H, X({
|
|
147
147
|
key: 0,
|
|
148
148
|
icon: "",
|
|
149
149
|
styling: "soft"
|
|
150
|
-
},
|
|
150
|
+
}, a.button, { onClick: r }), null, 16)) : I("", !0)
|
|
151
151
|
]));
|
|
152
152
|
}
|
|
153
|
-
}),
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}, ye = ["value", "disabled"], Fe = /* @__PURE__ */ M({
|
|
157
|
-
__name: "radioGroup",
|
|
158
|
-
props: /* @__PURE__ */ J({
|
|
153
|
+
}), Z = /* @__PURE__ */ E({
|
|
154
|
+
__name: "optionGroup",
|
|
155
|
+
props: /* @__PURE__ */ U({
|
|
159
156
|
modelValue: {},
|
|
160
|
-
|
|
161
|
-
showIndicator: { type: Boolean },
|
|
157
|
+
items: {},
|
|
162
158
|
size: { default: "s" },
|
|
159
|
+
showIndicator: { type: Boolean },
|
|
163
160
|
isError: { type: Boolean }
|
|
164
161
|
}, {
|
|
165
162
|
modelValue: {
|
|
@@ -168,57 +165,100 @@ const ce = { class: "top-editArea_footer" }, Ne = /* @__PURE__ */ M({
|
|
|
168
165
|
modelModifiers: {}
|
|
169
166
|
}),
|
|
170
167
|
emits: ["update:modelValue"],
|
|
171
|
-
setup(
|
|
172
|
-
const e =
|
|
173
|
-
|
|
174
|
-
var
|
|
175
|
-
|
|
168
|
+
setup(l) {
|
|
169
|
+
const e = W(l, "modelValue"), o = l, s = B(null);
|
|
170
|
+
M(e, () => {
|
|
171
|
+
var a, i;
|
|
172
|
+
const r = o.items.map((c) => c.value);
|
|
173
|
+
Array.isArray(e.value) ? e.value.find((T) => !r.includes(T)) && (e.value = e.value.filter((T) => r.includes(T))) : r.includes(e.value) || (e.value = r[0] ?? ""), (i = (a = s.value) == null ? void 0 : a.querySelector(".radioGroup_item-selected")) == null || i.scrollIntoView();
|
|
176
174
|
}, { immediate: !0 });
|
|
177
|
-
const
|
|
178
|
-
return (
|
|
175
|
+
const p = "optionGroup-" + Math.random();
|
|
176
|
+
return (r, a) => (d(), b("div", {
|
|
179
177
|
ref_key: "elRef",
|
|
180
|
-
ref:
|
|
181
|
-
class:
|
|
182
|
-
"top-
|
|
178
|
+
ref: s,
|
|
179
|
+
class: L({
|
|
180
|
+
"top-optionGroup": !0,
|
|
181
|
+
["top-optionGroup-showIndicator_" + Number(r.showIndicator)]: !0,
|
|
183
182
|
"top-scrollBarXHidding": !0,
|
|
184
|
-
["top-size_" +
|
|
185
|
-
"top-error":
|
|
183
|
+
["top-size_" + r.size]: !!r.size,
|
|
184
|
+
"top-error": r.isError
|
|
186
185
|
})
|
|
187
186
|
}, [
|
|
188
|
-
(d(!0),
|
|
189
|
-
class:
|
|
190
|
-
"top-
|
|
191
|
-
"top-
|
|
192
|
-
"top-forms-focusable": !0,
|
|
193
|
-
"top-disabled": p.disabled
|
|
187
|
+
Array.isArray(e.value) ? (d(!0), b(P, { key: 0 }, F(r.items, (i) => (d(), w(re, {
|
|
188
|
+
class: L({
|
|
189
|
+
"top-optionGroup_item-selected": e.value.includes(i.value),
|
|
190
|
+
"top-optionGroup_item": !0
|
|
194
191
|
}),
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
192
|
+
modelValue: e.value,
|
|
193
|
+
"onUpdate:modelValue": a[0] || (a[0] = (c) => e.value = c),
|
|
194
|
+
value: i.value,
|
|
195
|
+
disabled: i.disabled,
|
|
196
|
+
isError: r.isError,
|
|
197
|
+
"data-top-icon": i.icon
|
|
198
|
+
}, {
|
|
199
|
+
default: k(() => [
|
|
200
|
+
S(C(i.title), 1)
|
|
201
|
+
]),
|
|
202
|
+
_: 2
|
|
203
|
+
}, 1032, ["class", "modelValue", "value", "disabled", "isError", "data-top-icon"]))), 256)) : (d(!0), b(P, { key: 1 }, F(r.items, (i) => (d(), w(ne, {
|
|
204
|
+
class: L({
|
|
205
|
+
"top-optionGroup_item-selected": i.value === e.value,
|
|
206
|
+
"top-optionGroup_item": !0
|
|
207
|
+
}),
|
|
208
|
+
modelValue: e.value,
|
|
209
|
+
"onUpdate:modelValue": a[1] || (a[1] = (c) => e.value = c),
|
|
210
|
+
name: p,
|
|
211
|
+
value: i.value,
|
|
212
|
+
disabled: i.disabled,
|
|
213
|
+
isError: r.isError,
|
|
214
|
+
"data-top-icon": i.icon
|
|
215
|
+
}, {
|
|
216
|
+
default: k(() => [
|
|
217
|
+
S(C(i.title), 1)
|
|
218
|
+
]),
|
|
219
|
+
_: 2
|
|
220
|
+
}, 1032, ["class", "modelValue", "value", "disabled", "isError", "data-top-icon"]))), 256))
|
|
213
221
|
], 2));
|
|
214
222
|
}
|
|
215
|
-
}),
|
|
223
|
+
}), Ne = /* @__PURE__ */ E({
|
|
224
|
+
__name: "radioGroup",
|
|
225
|
+
props: /* @__PURE__ */ U({
|
|
226
|
+
modelValue: {},
|
|
227
|
+
items: {},
|
|
228
|
+
size: {},
|
|
229
|
+
showIndicator: { type: Boolean },
|
|
230
|
+
isError: { type: Boolean }
|
|
231
|
+
}, {
|
|
232
|
+
modelValue: {
|
|
233
|
+
required: !0
|
|
234
|
+
},
|
|
235
|
+
modelModifiers: {}
|
|
236
|
+
}),
|
|
237
|
+
emits: ["update:modelValue"],
|
|
238
|
+
setup(l) {
|
|
239
|
+
const e = W(l, "modelValue");
|
|
240
|
+
return (o, s) => (d(), w(Z, {
|
|
241
|
+
class: "top-radioGroup",
|
|
242
|
+
modelValue: e.value,
|
|
243
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => e.value = p),
|
|
244
|
+
items: o.$props.items,
|
|
245
|
+
size: o.$props.size,
|
|
246
|
+
showIndicator: o.$props.showIndicator,
|
|
247
|
+
isError: o.$props.isError
|
|
248
|
+
}, {
|
|
249
|
+
default: k(() => [
|
|
250
|
+
G(o.$slots, "default")
|
|
251
|
+
]),
|
|
252
|
+
_: 3
|
|
253
|
+
}, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
|
|
254
|
+
}
|
|
255
|
+
}), Oe = /* @__PURE__ */ E({
|
|
216
256
|
__name: "checkboxGroup",
|
|
217
|
-
props: /* @__PURE__ */
|
|
257
|
+
props: /* @__PURE__ */ U({
|
|
218
258
|
modelValue: {},
|
|
219
259
|
items: {},
|
|
220
|
-
size: {
|
|
221
|
-
|
|
260
|
+
size: {},
|
|
261
|
+
showIndicator: { type: Boolean },
|
|
222
262
|
isError: { type: Boolean }
|
|
223
263
|
}, {
|
|
224
264
|
modelValue: {
|
|
@@ -227,159 +267,140 @@ const ce = { class: "top-editArea_footer" }, Ne = /* @__PURE__ */ M({
|
|
|
227
267
|
modelModifiers: {}
|
|
228
268
|
}),
|
|
229
269
|
emits: ["update:modelValue"],
|
|
230
|
-
setup(
|
|
231
|
-
const e =
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
class: I({
|
|
247
|
-
"top-checkboxGroup_item": !0,
|
|
248
|
-
"top-checkboxGroup_item-selected": e.value.includes(s.id),
|
|
249
|
-
"top-forms-focusable": !0,
|
|
250
|
-
"top-disabled": s.disabled
|
|
251
|
-
}),
|
|
252
|
-
"data-top-icon": s.icon
|
|
253
|
-
}, [
|
|
254
|
-
L("input", {
|
|
255
|
-
type: "checkbox",
|
|
256
|
-
class: "top-unvisible",
|
|
257
|
-
value: s.id,
|
|
258
|
-
checked: e.value.includes(s.id),
|
|
259
|
-
disabled: s.disabled,
|
|
260
|
-
onChange: (r) => l(s.id)
|
|
261
|
-
}, null, 40, be),
|
|
262
|
-
E(" " + _(s.title), 1)
|
|
263
|
-
], 10, he))), 128))
|
|
264
|
-
], 2));
|
|
270
|
+
setup(l) {
|
|
271
|
+
const e = W(l, "modelValue");
|
|
272
|
+
return (o, s) => (d(), w(Z, {
|
|
273
|
+
class: "top-checkboxGroup",
|
|
274
|
+
modelValue: e.value,
|
|
275
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => e.value = p),
|
|
276
|
+
items: o.$props.items,
|
|
277
|
+
size: o.$props.size,
|
|
278
|
+
showIndicator: o.$props.showIndicator,
|
|
279
|
+
isError: o.$props.isError
|
|
280
|
+
}, {
|
|
281
|
+
default: k(() => [
|
|
282
|
+
G(o.$slots, "default")
|
|
283
|
+
]),
|
|
284
|
+
_: 3
|
|
285
|
+
}, 8, ["modelValue", "items", "size", "showIndicator", "isError"]));
|
|
265
286
|
}
|
|
266
|
-
}),
|
|
287
|
+
}), ye = { class: "top-selector2_itemMulti top-ellipsis" }, he = /* @__PURE__ */ E({
|
|
267
288
|
__name: "itemMulti",
|
|
268
289
|
props: {
|
|
269
290
|
id: {},
|
|
270
291
|
name: {}
|
|
271
292
|
},
|
|
272
293
|
emits: ["delete"],
|
|
273
|
-
setup(
|
|
274
|
-
return (e,
|
|
275
|
-
|
|
276
|
-
|
|
294
|
+
setup(l) {
|
|
295
|
+
return (e, o) => (d(), b("div", ye, [
|
|
296
|
+
S(C(e.name) + " ", 1),
|
|
297
|
+
K("span", {
|
|
277
298
|
class: "top-selector2_itemMultiDelete",
|
|
278
299
|
"data-top-icon": "",
|
|
279
|
-
onClick:
|
|
280
|
-
onMousedown:
|
|
300
|
+
onClick: o[0] || (o[0] = (s) => e.$emit("delete", e.id)),
|
|
301
|
+
onMousedown: o[1] || (o[1] = q(() => {
|
|
281
302
|
}, ["stop"]))
|
|
282
303
|
}, null, 32)
|
|
283
304
|
]));
|
|
284
305
|
}
|
|
285
|
-
}),
|
|
286
|
-
const
|
|
287
|
-
let
|
|
288
|
-
|
|
289
|
-
const
|
|
290
|
-
if (!
|
|
291
|
-
let
|
|
292
|
-
if (
|
|
293
|
-
|
|
294
|
-
const
|
|
295
|
-
if (
|
|
296
|
-
return
|
|
306
|
+
}), be = (l, e, o, s) => {
|
|
307
|
+
const p = B([]), r = /* @__PURE__ */ new Map(), a = B(!1);
|
|
308
|
+
let i = "", c;
|
|
309
|
+
l && !l.params.limit && (l.params.limit = 100);
|
|
310
|
+
const T = async () => {
|
|
311
|
+
if (!l) return;
|
|
312
|
+
let y;
|
|
313
|
+
if (s) {
|
|
314
|
+
y = JSON.stringify(l.params);
|
|
315
|
+
const _ = r.get(y);
|
|
316
|
+
if (_)
|
|
317
|
+
return _;
|
|
297
318
|
}
|
|
298
|
-
|
|
299
|
-
const g = await
|
|
300
|
-
if (
|
|
319
|
+
a.value = !0;
|
|
320
|
+
const g = await l.call();
|
|
321
|
+
if (a.value = !1, g.errors) return;
|
|
301
322
|
if (!Array.isArray(g.result)) {
|
|
302
323
|
console.warn("Array expected in `res.result`");
|
|
303
324
|
return;
|
|
304
325
|
}
|
|
305
|
-
const
|
|
306
|
-
if (
|
|
307
|
-
console.warn(`В result[${
|
|
326
|
+
const R = g.result.findIndex((_) => _.id === void 0 || _.name === void 0);
|
|
327
|
+
if (R !== -1) {
|
|
328
|
+
console.warn(`В result[${R}] нет id или name`);
|
|
308
329
|
return;
|
|
309
330
|
}
|
|
310
|
-
return
|
|
311
|
-
},
|
|
312
|
-
if (!
|
|
313
|
-
if (
|
|
314
|
-
if (!c ||
|
|
315
|
-
|
|
331
|
+
return y && r.set(y, g), g;
|
|
332
|
+
}, u = async (y) => {
|
|
333
|
+
if (!l) return;
|
|
334
|
+
if (y) {
|
|
335
|
+
if (!c || a.value) return;
|
|
336
|
+
l.params.offset = c;
|
|
316
337
|
} else
|
|
317
|
-
|
|
318
|
-
e == null || e(
|
|
319
|
-
const g = await
|
|
320
|
-
g && (c = g.nextOffset,
|
|
321
|
-
},
|
|
338
|
+
l.params.offset = 0;
|
|
339
|
+
e == null || e(i);
|
|
340
|
+
const g = await T();
|
|
341
|
+
g && (c = g.nextOffset, y ? p.value = p.value.concat(g.result) : p.value = g.result);
|
|
342
|
+
}, v = ie(() => u(!1), 200);
|
|
322
343
|
return {
|
|
323
|
-
apiRequest:
|
|
324
|
-
items:
|
|
325
|
-
isLoading:
|
|
326
|
-
load:
|
|
327
|
-
setSearchTextAndLoad: (
|
|
328
|
-
|
|
344
|
+
apiRequest: l,
|
|
345
|
+
items: p,
|
|
346
|
+
isLoading: a,
|
|
347
|
+
load: u,
|
|
348
|
+
setSearchTextAndLoad: (y, g = !0) => {
|
|
349
|
+
l && (y.length < o || y === i && p.value.length || (i = y, g ? v() : u(!1)));
|
|
329
350
|
}
|
|
330
351
|
};
|
|
331
|
-
},
|
|
332
|
-
const c = B(""),
|
|
333
|
-
id:
|
|
334
|
-
name:
|
|
335
|
-
},
|
|
336
|
-
c.value = "",
|
|
337
|
-
},
|
|
352
|
+
}, ge = 0, Q = (l, e, o = !0) => o && e.id === null ? Array.isArray(l) ? l.some((s) => s.id === e.id && s.name === e.name) : e.name === l.name : Array.isArray(l) ? l.some((s) => s.id === e.id) : e.id === l.id, Te = (l, e, o, s, p, r, a, i) => {
|
|
353
|
+
const c = B(""), T = {
|
|
354
|
+
id: ge,
|
|
355
|
+
name: ue().Common.All
|
|
356
|
+
}, u = () => {
|
|
357
|
+
c.value = "", i.items.value = [];
|
|
358
|
+
}, v = () => !(!i.apiRequest || r.value !== "inline" || c.value.length >= a), V = z(() => {
|
|
338
359
|
var t;
|
|
339
|
-
const
|
|
340
|
-
return !
|
|
341
|
-
}),
|
|
342
|
-
const
|
|
360
|
+
const h = [];
|
|
361
|
+
return !o && s.value && h.push(T), (t = e.value) == null || t.forEach((n) => h.push({ ...n })), h;
|
|
362
|
+
}), y = z(() => {
|
|
363
|
+
const h = c.value.toLowerCase(), t = me(h);
|
|
343
364
|
let n = [];
|
|
344
|
-
return
|
|
345
|
-
const
|
|
346
|
-
(
|
|
347
|
-
}), n.push(...
|
|
365
|
+
return V.value.forEach((A) => {
|
|
366
|
+
const f = A.name.toLowerCase();
|
|
367
|
+
(A.id === Number(h) || f.includes(h) || f.includes(t)) && (f === h || f === t ? n.unshift(A) : n.push(A));
|
|
368
|
+
}), n.push(...i.items.value), p.value && c.value && (!n.length || n[0].name.toLowerCase() !== h) && n.push({
|
|
348
369
|
id: null,
|
|
349
370
|
name: c.value
|
|
350
|
-
}),
|
|
371
|
+
}), o && (n = n.filter((A) => !Q(l.value, A))), n;
|
|
351
372
|
});
|
|
352
373
|
return {
|
|
353
374
|
searchText: c,
|
|
354
|
-
resetSearch:
|
|
355
|
-
genIsShort:
|
|
356
|
-
items:
|
|
357
|
-
itemsForShow:
|
|
358
|
-
selectItem: (
|
|
359
|
-
|
|
375
|
+
resetSearch: u,
|
|
376
|
+
genIsShort: v,
|
|
377
|
+
items: V,
|
|
378
|
+
itemsForShow: y,
|
|
379
|
+
selectItem: (h) => {
|
|
380
|
+
o && Array.isArray(l.value) ? Q(l.value, h) || (l.value = [...l.value, h]) : l.value = h;
|
|
360
381
|
},
|
|
361
382
|
selectNextItem: () => {
|
|
362
|
-
if (!Array.isArray(
|
|
363
|
-
const t = (
|
|
364
|
-
|
|
383
|
+
if (!Array.isArray(l.value)) {
|
|
384
|
+
const t = (y.value.findIndex((n) => n.id === l.value.id) + 1) % y.value.length;
|
|
385
|
+
l.value = { ...y.value[t] };
|
|
365
386
|
}
|
|
366
387
|
},
|
|
367
|
-
deleteItemById: async (
|
|
368
|
-
Array.isArray(
|
|
388
|
+
deleteItemById: async (h) => {
|
|
389
|
+
Array.isArray(l.value) && (l.value = l.value.filter((t) => t.id !== h));
|
|
369
390
|
}
|
|
370
391
|
};
|
|
371
|
-
},
|
|
392
|
+
}, Ve = {
|
|
372
393
|
key: 0,
|
|
373
394
|
class: "top-selector2_activeItems"
|
|
374
|
-
},
|
|
395
|
+
}, Ae = {
|
|
375
396
|
key: 1,
|
|
376
397
|
class: "top-selector2_activeName top-ellipsis"
|
|
377
|
-
},
|
|
398
|
+
}, $e = {
|
|
378
399
|
key: 2,
|
|
379
400
|
class: "top-selector2_placeholder top-ellipsis"
|
|
380
|
-
},
|
|
401
|
+
}, qe = /* @__PURE__ */ E({
|
|
381
402
|
__name: "selector2",
|
|
382
|
-
props: /* @__PURE__ */
|
|
403
|
+
props: /* @__PURE__ */ U({
|
|
383
404
|
modelValue: {},
|
|
384
405
|
items: { default: () => [] },
|
|
385
406
|
title: {},
|
|
@@ -404,39 +425,39 @@ const ce = { class: "top-editArea_footer" }, Ne = /* @__PURE__ */ M({
|
|
|
404
425
|
modelModifiers: {}
|
|
405
426
|
}),
|
|
406
427
|
emits: ["update:modelValue"],
|
|
407
|
-
setup(
|
|
408
|
-
const e =
|
|
409
|
-
let
|
|
410
|
-
|
|
411
|
-
const
|
|
412
|
-
l,
|
|
413
|
-
O(e, "items"),
|
|
414
|
-
e.multiselect,
|
|
415
|
-
O(e, "appendAllValue"),
|
|
416
|
-
O(e, "appendSearchToResult"),
|
|
428
|
+
setup(l) {
|
|
429
|
+
const e = l, o = W(l, "modelValue"), s = z(() => e.searchType === "inline" && e.multiselect || e.searchType === "inline" && Y.state.isMobile ? "popup" : e.searchType);
|
|
430
|
+
let p = 0;
|
|
431
|
+
s.value === "inline" && e.minLength && (p = e.minLength);
|
|
432
|
+
const r = be(e.api, e.apiSetSearchParams, p, e.useCache), a = Te(
|
|
417
433
|
o,
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
434
|
+
N(e, "items"),
|
|
435
|
+
e.multiselect,
|
|
436
|
+
N(e, "appendAllValue"),
|
|
437
|
+
N(e, "appendSearchToResult"),
|
|
438
|
+
s,
|
|
439
|
+
p,
|
|
440
|
+
r
|
|
441
|
+
), i = z(() => e.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), c = B(null), T = () => {
|
|
421
442
|
var t;
|
|
422
443
|
return (t = c.value) == null ? void 0 : t.popup;
|
|
423
444
|
};
|
|
424
|
-
|
|
445
|
+
r.apiRequest && M(a.searchText, () => {
|
|
425
446
|
var t;
|
|
426
|
-
|
|
427
|
-
}),
|
|
428
|
-
|
|
447
|
+
r.setSearchTextAndLoad(a.searchText.value), s.value === "inline" && a.genIsShort() && ((t = T()) == null || t.close());
|
|
448
|
+
}), M(o, () => {
|
|
449
|
+
s.value === "inline" && a.resetSearch();
|
|
429
450
|
});
|
|
430
|
-
const
|
|
451
|
+
const u = z(() => {
|
|
431
452
|
var t;
|
|
432
|
-
return Array.isArray(
|
|
433
|
-
}),
|
|
434
|
-
var
|
|
453
|
+
return Array.isArray(o.value) || e.multiselect || !e.selectedAsPlaceholder && s.value !== "inline" ? e.placeholder : ((t = o.value) == null ? void 0 : t.name) || e.placeholder;
|
|
454
|
+
}), v = (t) => {
|
|
455
|
+
var f, $;
|
|
435
456
|
let n = !1;
|
|
436
457
|
switch (t.key) {
|
|
437
458
|
case "Delete":
|
|
438
459
|
case "Backspace":
|
|
439
|
-
Array.isArray(
|
|
460
|
+
Array.isArray(o.value) && (t.preventDefault(), t.stopPropagation(), o.value.pop());
|
|
440
461
|
break;
|
|
441
462
|
case "ArrowUp":
|
|
442
463
|
case "ArrowRight":
|
|
@@ -447,51 +468,51 @@ const ce = { class: "top-editArea_footer" }, Ne = /* @__PURE__ */ M({
|
|
|
447
468
|
n = !0;
|
|
448
469
|
break;
|
|
449
470
|
case "Escape":
|
|
450
|
-
|
|
471
|
+
s.value === "inline" && a.resetSearch();
|
|
451
472
|
break;
|
|
452
473
|
}
|
|
453
|
-
const
|
|
454
|
-
(
|
|
474
|
+
const A = t.key.length === 1 && !t.ctrlKey && !t.metaKey;
|
|
475
|
+
(s.value === "popup" || s.value === "inline") && A && (n = !0), (f = T()) != null && f.elPopup && (n = !1), n && (s.value === "popup" && (t.preventDefault(), t.stopPropagation(), A && (a.searchText.value || (a.searchText.value = t.key))), ($ = t.currentTarget) == null || $.click());
|
|
455
476
|
};
|
|
456
|
-
let
|
|
457
|
-
const
|
|
477
|
+
let V = !1;
|
|
478
|
+
const y = (t) => {
|
|
458
479
|
var n;
|
|
459
|
-
|
|
480
|
+
V || s.value === "inline" && ((n = t.currentTarget) == null || n.click());
|
|
460
481
|
}, g = (t) => {
|
|
461
|
-
var n,
|
|
462
|
-
t.preventDefault(),
|
|
463
|
-
},
|
|
482
|
+
var n, A;
|
|
483
|
+
t.preventDefault(), V = !0, (A = (n = t.currentTarget) == null ? void 0 : n.parentElement) == null || A.focus(), V = !1, a.selectNextItem();
|
|
484
|
+
}, R = () => {
|
|
464
485
|
var t;
|
|
465
|
-
if (
|
|
466
|
-
if (
|
|
467
|
-
(t =
|
|
486
|
+
if (V = !0, r.apiRequest) {
|
|
487
|
+
if (a.genIsShort()) {
|
|
488
|
+
(t = T()) == null || t.close();
|
|
468
489
|
return;
|
|
469
490
|
}
|
|
470
|
-
|
|
491
|
+
r.setSearchTextAndLoad(a.searchText.value, !1);
|
|
471
492
|
}
|
|
472
|
-
},
|
|
493
|
+
}, _ = () => {
|
|
473
494
|
setTimeout(() => {
|
|
474
|
-
|
|
475
|
-
}, 100),
|
|
476
|
-
},
|
|
495
|
+
V = !1;
|
|
496
|
+
}, 100), s.value === "popup" && a.searchText.value && a.resetSearch();
|
|
497
|
+
}, h = (t) => {
|
|
477
498
|
const n = t.target;
|
|
478
|
-
n.scrollTop / (n.scrollHeight - n.offsetHeight) > 0.8 &&
|
|
499
|
+
n.scrollTop / (n.scrollHeight - n.offsetHeight) > 0.8 && r.load(!0);
|
|
479
500
|
};
|
|
480
|
-
return window.__STORYBOOK_PREVIEW__ && (
|
|
501
|
+
return window.__STORYBOOK_PREVIEW__ && (M(
|
|
481
502
|
() => e.multiselect,
|
|
482
503
|
() => {
|
|
483
|
-
e.multiselect ? Array.isArray(
|
|
504
|
+
e.multiselect ? Array.isArray(o.value) || (o.value = [
|
|
484
505
|
{
|
|
485
506
|
id: 1,
|
|
486
507
|
name: "Выбери меня"
|
|
487
508
|
}
|
|
488
|
-
]) : Array.isArray(
|
|
509
|
+
]) : Array.isArray(o.value) && (o.value = {
|
|
489
510
|
id: null,
|
|
490
511
|
name: ""
|
|
491
512
|
});
|
|
492
513
|
},
|
|
493
514
|
{ immediate: !0 }
|
|
494
|
-
),
|
|
515
|
+
), M(
|
|
495
516
|
() => e.searchType,
|
|
496
517
|
() => {
|
|
497
518
|
setTimeout(() => {
|
|
@@ -499,18 +520,18 @@ const ce = { class: "top-editArea_footer" }, Ne = /* @__PURE__ */ M({
|
|
|
499
520
|
}, 500);
|
|
500
521
|
}
|
|
501
522
|
)), (t, n) => {
|
|
502
|
-
const
|
|
503
|
-
return d(), w(
|
|
523
|
+
const A = te("top-focus");
|
|
524
|
+
return d(), w(m(pe), {
|
|
504
525
|
ref_key: "popupRef",
|
|
505
526
|
ref: c,
|
|
506
|
-
onOpen: n[3] || (n[3] = (
|
|
507
|
-
onClose: n[4] || (n[4] = (
|
|
508
|
-
onScrollContentList: n[5] || (n[5] = (
|
|
509
|
-
notch:
|
|
527
|
+
onOpen: n[3] || (n[3] = (f) => R()),
|
|
528
|
+
onClose: n[4] || (n[4] = (f) => _()),
|
|
529
|
+
onScrollContentList: n[5] || (n[5] = (f) => m(r) ? h(f) : void 0),
|
|
530
|
+
notch: s.value !== "inline",
|
|
510
531
|
transitionDuration: 0
|
|
511
|
-
},
|
|
512
|
-
opener:
|
|
513
|
-
|
|
532
|
+
}, J({
|
|
533
|
+
opener: k(() => [
|
|
534
|
+
oe((d(), w(le(i.value), X(t.buttonProps, {
|
|
514
535
|
ref: "subcomponentSelector",
|
|
515
536
|
class: {
|
|
516
537
|
"top-selector2": !0,
|
|
@@ -524,98 +545,98 @@ const ce = { class: "top-editArea_footer" }, Ne = /* @__PURE__ */ M({
|
|
|
524
545
|
"top-error": t.isError
|
|
525
546
|
},
|
|
526
547
|
tabindex: "0",
|
|
527
|
-
onKeydown:
|
|
528
|
-
placeholder:
|
|
529
|
-
modelValue:
|
|
530
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
531
|
-
onFocus:
|
|
532
|
-
onBlur: n[1] || (n[1] = (
|
|
533
|
-
var
|
|
534
|
-
return (
|
|
548
|
+
onKeydown: v,
|
|
549
|
+
placeholder: u.value,
|
|
550
|
+
modelValue: m(a).searchText.value,
|
|
551
|
+
"onUpdate:modelValue": n[0] || (n[0] = (f) => m(a).searchText.value = f),
|
|
552
|
+
onFocus: y,
|
|
553
|
+
onBlur: n[1] || (n[1] = (f) => {
|
|
554
|
+
var $;
|
|
555
|
+
return ($ = T()) != null && $.isClosed ? m(a).resetSearch() : "";
|
|
535
556
|
})
|
|
536
557
|
}), {
|
|
537
|
-
default:
|
|
538
|
-
t.multiselect ? (d(),
|
|
539
|
-
(d(!0),
|
|
540
|
-
id:
|
|
541
|
-
name:
|
|
542
|
-
onDelete:
|
|
558
|
+
default: k(() => [
|
|
559
|
+
t.multiselect ? (d(), b("div", Ve, [
|
|
560
|
+
(d(!0), b(P, null, F(o.value, (f) => (d(), w(he, {
|
|
561
|
+
id: f.id,
|
|
562
|
+
name: f.name,
|
|
563
|
+
onDelete: m(a).deleteItemById
|
|
543
564
|
}, null, 8, ["id", "name", "onDelete"]))), 256))
|
|
544
|
-
])) :
|
|
545
|
-
|
|
546
|
-
t.multiselect && !
|
|
547
|
-
t.addChanger && !t.buttonProps && !t.multiselect &&
|
|
565
|
+
])) : I("", !0),
|
|
566
|
+
s.value !== "inline" && !t.multiselect ? (d(), b("span", Ae, C(Array.isArray(o.value) ? "" : o.value.name), 1)) : I("", !0),
|
|
567
|
+
t.multiselect && !o.value.length ? (d(), b("span", $e, C(u.value), 1)) : I("", !0),
|
|
568
|
+
t.addChanger && !t.buttonProps && !t.multiselect && m(a).items.value.length > 1 && !t.disabled ? (d(), b("span", {
|
|
548
569
|
key: 3,
|
|
549
570
|
class: "top-changer top-changer-selector top-popup_widget",
|
|
550
571
|
"data-top-popup-disabled": "true",
|
|
551
572
|
onClick: g
|
|
552
|
-
})) :
|
|
573
|
+
})) : I("", !0)
|
|
553
574
|
]),
|
|
554
575
|
_: 1
|
|
555
576
|
}, 16, ["class", "placeholder", "modelValue"])), [
|
|
556
577
|
[
|
|
557
|
-
|
|
578
|
+
A,
|
|
558
579
|
t.isError,
|
|
559
580
|
void 0,
|
|
560
581
|
{ onupdate: !0 }
|
|
561
582
|
]
|
|
562
583
|
])
|
|
563
584
|
]),
|
|
564
|
-
contentList:
|
|
565
|
-
var
|
|
585
|
+
contentList: k(() => {
|
|
586
|
+
var f;
|
|
566
587
|
return [
|
|
567
|
-
(d(!0),
|
|
568
|
-
class:
|
|
569
|
-
"top-active": !Array.isArray(
|
|
588
|
+
(d(!0), b(P, null, F(m(a).itemsForShow.value, ($) => (d(), w(m(j), {
|
|
589
|
+
class: L({
|
|
590
|
+
"top-active": !Array.isArray(o.value) && !t.multiselect && o.value.id === $.id && o.value.name === $.name
|
|
570
591
|
}),
|
|
571
|
-
key:
|
|
572
|
-
closeByClick: !t.multiselect ||
|
|
573
|
-
onClick: (
|
|
592
|
+
key: $.id ?? void 0,
|
|
593
|
+
closeByClick: !t.multiselect || m(Y).state.isMobile,
|
|
594
|
+
onClick: (_e) => m(a).selectItem($)
|
|
574
595
|
}, {
|
|
575
|
-
default:
|
|
576
|
-
t.$slots.item ?
|
|
596
|
+
default: k(() => [
|
|
597
|
+
t.$slots.item ? G(t.$slots, "item", {
|
|
577
598
|
key: 0,
|
|
578
|
-
item:
|
|
579
|
-
}) : (d(),
|
|
580
|
-
|
|
599
|
+
item: $
|
|
600
|
+
}) : (d(), b(P, { key: 1 }, [
|
|
601
|
+
S(C($.name), 1)
|
|
581
602
|
], 64))
|
|
582
603
|
]),
|
|
583
604
|
_: 2
|
|
584
605
|
}, 1032, ["class", "closeByClick", "onClick"]))), 128)),
|
|
585
|
-
!
|
|
606
|
+
!m(r).isLoading.value && !m(a).itemsForShow.value.length ? (d(), w(m(j), {
|
|
586
607
|
key: 0,
|
|
587
608
|
type: "regular"
|
|
588
609
|
}, {
|
|
589
|
-
default:
|
|
590
|
-
|
|
610
|
+
default: k(() => [
|
|
611
|
+
S(C(t.$i18n.Common.No_results), 1)
|
|
591
612
|
]),
|
|
592
613
|
_: 1
|
|
593
|
-
})) :
|
|
594
|
-
|
|
614
|
+
})) : I("", !0),
|
|
615
|
+
m(r).isLoading.value && (t.searchType !== "popup" || (f = m(r).apiRequest) != null && f.params.offset) ? (d(), w(m(j), {
|
|
595
616
|
key: 1,
|
|
596
617
|
type: "regular"
|
|
597
618
|
}, {
|
|
598
|
-
default:
|
|
599
|
-
D(
|
|
619
|
+
default: k(() => [
|
|
620
|
+
D(m(de), { type: "circles" })
|
|
600
621
|
]),
|
|
601
622
|
_: 1
|
|
602
|
-
})) :
|
|
623
|
+
})) : I("", !0)
|
|
603
624
|
];
|
|
604
625
|
}),
|
|
605
626
|
_: 2
|
|
606
627
|
}, [
|
|
607
|
-
|
|
628
|
+
s.value === "popup" ? {
|
|
608
629
|
name: "widget",
|
|
609
|
-
fn:
|
|
610
|
-
var
|
|
630
|
+
fn: k(() => {
|
|
631
|
+
var f;
|
|
611
632
|
return [
|
|
612
|
-
D(
|
|
633
|
+
D(m(ce), {
|
|
613
634
|
title: "Поиск",
|
|
614
635
|
icon: "",
|
|
615
|
-
modelValue:
|
|
616
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
617
|
-
isLoading:
|
|
618
|
-
placeholder:
|
|
636
|
+
modelValue: m(a).searchText.value,
|
|
637
|
+
"onUpdate:modelValue": n[2] || (n[2] = ($) => m(a).searchText.value = $),
|
|
638
|
+
isLoading: m(r).isLoading.value && !((f = m(r).apiRequest) != null && f.params.offset),
|
|
639
|
+
placeholder: u.value
|
|
619
640
|
}, null, 8, ["modelValue", "isLoading", "placeholder"])
|
|
620
641
|
];
|
|
621
642
|
}),
|
|
@@ -624,37 +645,37 @@ const ce = { class: "top-editArea_footer" }, Ne = /* @__PURE__ */ M({
|
|
|
624
645
|
]), 1032, ["notch"]);
|
|
625
646
|
};
|
|
626
647
|
}
|
|
627
|
-
}),
|
|
648
|
+
}), ke = ["data-top-icon"], we = { class: "top-info_text" }, Ie = {
|
|
628
649
|
key: 0,
|
|
629
650
|
class: "top-info_value"
|
|
630
|
-
},
|
|
651
|
+
}, Fe = /* @__PURE__ */ E({
|
|
631
652
|
__name: "info",
|
|
632
653
|
props: {
|
|
633
654
|
icon: {},
|
|
634
655
|
styling: { default: "default" },
|
|
635
656
|
size: { default: "default" }
|
|
636
657
|
},
|
|
637
|
-
setup(
|
|
638
|
-
return (e,
|
|
639
|
-
class:
|
|
658
|
+
setup(l) {
|
|
659
|
+
return (e, o) => (d(), b("div", {
|
|
660
|
+
class: L({
|
|
640
661
|
"top-info": !0,
|
|
641
662
|
["top-size_" + e.size]: !0,
|
|
642
663
|
["top-info-styling_" + e.styling]: !0
|
|
643
664
|
}),
|
|
644
665
|
"data-top-icon": e.icon
|
|
645
666
|
}, [
|
|
646
|
-
|
|
647
|
-
|
|
667
|
+
K("div", we, [
|
|
668
|
+
G(e.$slots, "default")
|
|
648
669
|
]),
|
|
649
|
-
e.$slots.additional ? (d(),
|
|
650
|
-
|
|
651
|
-
])) :
|
|
652
|
-
], 10,
|
|
670
|
+
e.$slots.additional ? (d(), b("span", Ie, [
|
|
671
|
+
G(e.$slots, "additional")
|
|
672
|
+
])) : I("", !0)
|
|
673
|
+
], 10, ke));
|
|
653
674
|
}
|
|
654
|
-
}),
|
|
675
|
+
}), Ce = {
|
|
655
676
|
key: 0,
|
|
656
677
|
class: "top-policy"
|
|
657
|
-
},
|
|
678
|
+
}, Be = { class: "top-policy_title" }, Ee = ["innerHTML"], He = /* @__PURE__ */ E({
|
|
658
679
|
__name: "policy",
|
|
659
680
|
props: {
|
|
660
681
|
title: {},
|
|
@@ -662,36 +683,36 @@ const ce = { class: "top-editArea_footer" }, Ne = /* @__PURE__ */ M({
|
|
|
662
683
|
acceptText: {}
|
|
663
684
|
},
|
|
664
685
|
emits: ["accept"],
|
|
665
|
-
setup(
|
|
666
|
-
const
|
|
667
|
-
|
|
686
|
+
setup(l, { emit: e }) {
|
|
687
|
+
const o = e, s = B(!0), p = () => {
|
|
688
|
+
s.value = !1, o("accept");
|
|
668
689
|
};
|
|
669
|
-
return (
|
|
670
|
-
|
|
671
|
-
|
|
690
|
+
return (r, a) => s.value ? (d(), b("div", Ce, [
|
|
691
|
+
K("div", Be, C(r.title), 1),
|
|
692
|
+
K("div", {
|
|
672
693
|
class: "top-policy_description",
|
|
673
|
-
innerHTML:
|
|
694
|
+
innerHTML: r.description
|
|
674
695
|
}, null, 8, Ee),
|
|
675
|
-
D(
|
|
696
|
+
D(m(H), {
|
|
676
697
|
size: "m",
|
|
677
|
-
onClick:
|
|
698
|
+
onClick: p
|
|
678
699
|
}, {
|
|
679
|
-
default:
|
|
680
|
-
|
|
700
|
+
default: k(() => [
|
|
701
|
+
S(C(r.acceptText), 1)
|
|
681
702
|
]),
|
|
682
703
|
_: 1
|
|
683
704
|
})
|
|
684
|
-
])) :
|
|
705
|
+
])) : I("", !0);
|
|
685
706
|
}
|
|
686
707
|
});
|
|
687
708
|
export {
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
709
|
+
Oe as TopCheckboxGroup,
|
|
710
|
+
De as TopEditArea,
|
|
711
|
+
Ge as TopEditInput,
|
|
712
|
+
Fe as TopInfo,
|
|
692
713
|
je as TopMenu,
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
714
|
+
He as TopPolicy,
|
|
715
|
+
Ne as TopRadioGroup,
|
|
716
|
+
qe as TopSelector2
|
|
696
717
|
};
|
|
697
718
|
//# sourceMappingURL=formsExt.js.map
|