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