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