@topvisor/ui 1.5.6-topSelectorReactive.0 → 1.5.6-topSelectorReactive.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/api-DZQlrC2R.amd.js +2 -0
- package/.chunks/api-DZQlrC2R.amd.js.map +1 -0
- package/.chunks/{api-D5wIZnrK.esm.js → api-DZQlrC2R.esm.js} +21 -18
- package/.chunks/api-DZQlrC2R.esm.js.map +1 -0
- package/.chunks/{app-CQnQGya1.amd.js → app-DinkodXi.amd.js} +2 -2
- package/.chunks/{app-CQnQGya1.amd.js.map → app-DinkodXi.amd.js.map} +1 -1
- package/.chunks/{app-CQnQGya1.esm.js → app-DinkodXi.esm.js} +11 -11
- package/.chunks/app-DinkodXi.esm.js.map +1 -0
- package/.chunks/{datepicker-CYAhR3K9.amd.js → datepicker-bozIEbDA.amd.js} +2 -2
- package/.chunks/{datepicker-CYAhR3K9.amd.js.map → datepicker-bozIEbDA.amd.js.map} +1 -1
- package/.chunks/{datepicker-CYAhR3K9.esm.js → datepicker-bozIEbDA.esm.js} +2 -2
- package/.chunks/{datepicker-CYAhR3K9.esm.js.map → datepicker-bozIEbDA.esm.js.map} +1 -1
- package/.chunks/{dialog-B7DkbSQZ.amd.js → dialog-BCDVMWG1.amd.js} +2 -2
- package/.chunks/{dialog-B7DkbSQZ.amd.js.map → dialog-BCDVMWG1.amd.js.map} +1 -1
- package/.chunks/{dialog-B7DkbSQZ.esm.js → dialog-BCDVMWG1.esm.js} +3 -3
- package/.chunks/{dialog-B7DkbSQZ.esm.js.map → dialog-BCDVMWG1.esm.js.map} +1 -1
- package/.chunks/{dialog_regionSelectorRegions-DnDFRV42.amd.js → dialog_regionSelectorRegions-0M1fMu1a.amd.js} +2 -2
- package/.chunks/dialog_regionSelectorRegions-0M1fMu1a.amd.js.map +1 -0
- package/.chunks/{dialog_regionSelectorRegions-DnDFRV42.esm.js → dialog_regionSelectorRegions-0M1fMu1a.esm.js} +6 -6
- package/.chunks/dialog_regionSelectorRegions-0M1fMu1a.esm.js.map +1 -0
- package/.chunks/forms-CY5MOh7a.amd.js +2 -0
- package/.chunks/forms-CY5MOh7a.amd.js.map +1 -0
- package/.chunks/{forms-BiKUURH4.esm.js → forms-CY5MOh7a.esm.js} +16 -14
- package/.chunks/forms-CY5MOh7a.esm.js.map +1 -0
- package/.chunks/formsExt-C9r4Gz9y.amd.js +2 -0
- package/.chunks/formsExt-C9r4Gz9y.amd.js.map +1 -0
- package/.chunks/{formsExt-kZL0--bf.esm.js → formsExt-C9r4Gz9y.esm.js} +162 -162
- package/.chunks/formsExt-C9r4Gz9y.esm.js.map +1 -0
- package/.chunks/{mocker-C3O-c0Np.amd.js → mocker-Bl1SzAJY.amd.js} +2 -2
- package/.chunks/mocker-Bl1SzAJY.amd.js.map +1 -0
- package/.chunks/{mocker-C3O-c0Np.esm.js → mocker-Bl1SzAJY.esm.js} +6 -2
- package/.chunks/mocker-Bl1SzAJY.esm.js.map +1 -0
- package/.chunks/notice-bro62vCA.amd.js +4 -0
- package/.chunks/notice-bro62vCA.amd.js.map +1 -0
- package/.chunks/{notice-LFdPfo-5.esm.js → notice-bro62vCA.esm.js} +3 -3
- package/.chunks/notice-bro62vCA.esm.js.map +1 -0
- package/.chunks/popup-3cwJ8Hev.amd.js +2 -0
- package/.chunks/popup-3cwJ8Hev.amd.js.map +1 -0
- package/.chunks/{popup-KKfSSrM6.esm.js → popup-3cwJ8Hev.esm.js} +5 -3
- package/.chunks/popup-3cwJ8Hev.esm.js.map +1 -0
- package/.chunks/popup-CzhBQhVH.amd.js +2 -0
- package/.chunks/popup-CzhBQhVH.amd.js.map +1 -0
- package/.chunks/{popup-DB5g_8kB.esm.js → popup-CzhBQhVH.esm.js} +5 -5
- package/.chunks/popup-CzhBQhVH.esm.js.map +1 -0
- package/.chunks/punycode.es6-CMafsPEb.amd.js +2 -0
- package/.chunks/punycode.es6-CMafsPEb.amd.js.map +1 -0
- package/.chunks/punycode.es6-CMafsPEb.esm.js +105 -0
- package/.chunks/{punycode.es6-BZRFIj88.esm.js.map → punycode.es6-CMafsPEb.esm.js.map} +1 -1
- package/.chunks/store-DjQAOnrn.esm.js.map +1 -1
- package/.chunks/{utils-D4nhUVHm.amd.js → utils-Be-ScFyj.amd.js} +2 -2
- package/.chunks/{utils-D4nhUVHm.amd.js.map → utils-Be-ScFyj.amd.js.map} +1 -1
- package/.chunks/{utils-D4nhUVHm.esm.js → utils-Be-ScFyj.esm.js} +3 -3
- package/.chunks/{utils-D4nhUVHm.esm.js.map → utils-Be-ScFyj.esm.js.map} +1 -1
- package/.chunks/{utils-DKbnf1Th.amd.js → utils-ds_g-L_r.amd.js} +2 -2
- package/.chunks/{utils-DKbnf1Th.amd.js.map → utils-ds_g-L_r.amd.js.map} +1 -1
- package/.chunks/{utils-DKbnf1Th.esm.js → utils-ds_g-L_r.esm.js} +4 -4
- package/.chunks/{utils-DKbnf1Th.esm.js.map → utils-ds_g-L_r.esm.js.map} +1 -1
- package/.chunks/{worker-BufdAd-a.amd.js → worker-Bv_yPPMv.amd.js} +2 -2
- package/.chunks/{worker-BufdAd-a.amd.js.map → worker-Bv_yPPMv.amd.js.map} +1 -1
- package/.chunks/{worker-BufdAd-a.esm.js → worker-Bv_yPPMv.esm.js} +3 -3
- package/.chunks/{worker-BufdAd-a.esm.js.map → worker-Bv_yPPMv.esm.js.map} +1 -1
- package/api/additional.js.map +1 -1
- package/api/index.amd.js +1 -1
- package/api/index.amd.js.map +1 -1
- package/api/index.js +1 -1
- package/assets/formsExt.css +1 -1
- package/assets/project.css +1 -1
- package/autoload-css-manifest.amd.json +4 -4
- package/autoload-css-manifest.json +4 -4
- package/charts/charts.amd.js +1 -1
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.js +1 -1
- package/charts/charts.js.map +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.amd.js.map +1 -1
- package/core/app.js +3 -3
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.amd.js.map +1 -1
- package/dialog/dialog.js +2 -2
- package/forms/forms.amd.js +1 -1
- package/forms/forms.amd.js.map +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 +1 -1
- package/layout/layout.amd.js +1 -1
- package/layout/layout.amd.js.map +1 -1
- package/layout/layout.js +1 -1
- package/package.json +2 -2
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +458 -459
- package/project/project.js.map +1 -1
- package/schedule/schedule.amd.js +1 -1
- package/schedule/schedule.amd.js.map +1 -1
- package/schedule/schedule.js +8 -6
- package/schedule/schedule.js.map +1 -1
- package/src/api/api/mocker/index.d.ts +1 -6
- package/src/api/api/types/api.d.ts +1 -1
- package/src/components/formsExt/selector2/composables/useAPI.d.ts +406 -0
- package/src/components/formsExt/selector2/composables/useMenu.d.ts +412 -0
- package/src/components/formsExt/selector2/types.d.ts +17 -11
- package/src/components/popup/popup/types.d.ts +6 -1
- package/src/components/project/project.d.ts +1 -1
- package/src/components/project/projectSelector/cache.d.ts +14 -12
- package/src/components/project/projectSelector/submenu/types.d.ts +7 -14
- package/src/components/project/projectSelector/types.d.ts +22 -9
- package/src/components/project/projectSelector/utils.d.ts +8 -4
- package/src/core/core/core.d.ts +2 -3
- package/src/core/core/options.d.ts +26 -19
- package/src/core/core/state.d.ts +3 -4
- package/src/core/plugins/core.d.ts +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +2 -2
- package/tabsView/tabsView.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.amd.js.map +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.amd.js.map +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/image.amd.js +1 -1
- package/utils/image.amd.js.map +1 -1
- package/utils/image.js +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.amd.js.map +1 -1
- package/utils/lodash.js +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.js.map +1 -1
- 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 +1 -1
- 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 +2 -2
- package/utils/string.js.map +1 -1
- package/utils/url.amd.js +1 -1
- package/utils/url.amd.js.map +1 -1
- package/utils/url.js +1 -1
- package/utils/url.js.map +1 -1
- package/.chunks/api-D5wIZnrK.amd.js +0 -2
- package/.chunks/api-D5wIZnrK.amd.js.map +0 -1
- package/.chunks/api-D5wIZnrK.esm.js.map +0 -1
- package/.chunks/app-CQnQGya1.esm.js.map +0 -1
- package/.chunks/dialog_regionSelectorRegions-DnDFRV42.amd.js.map +0 -1
- package/.chunks/dialog_regionSelectorRegions-DnDFRV42.esm.js.map +0 -1
- package/.chunks/forms-BiKUURH4.amd.js +0 -2
- package/.chunks/forms-BiKUURH4.amd.js.map +0 -1
- package/.chunks/forms-BiKUURH4.esm.js.map +0 -1
- package/.chunks/formsExt-kZL0--bf.amd.js +0 -2
- package/.chunks/formsExt-kZL0--bf.amd.js.map +0 -1
- package/.chunks/formsExt-kZL0--bf.esm.js.map +0 -1
- package/.chunks/mocker-C3O-c0Np.amd.js.map +0 -1
- package/.chunks/mocker-C3O-c0Np.esm.js.map +0 -1
- package/.chunks/notice-LFdPfo-5.amd.js +0 -4
- package/.chunks/notice-LFdPfo-5.amd.js.map +0 -1
- package/.chunks/notice-LFdPfo-5.esm.js.map +0 -1
- package/.chunks/popup-DB5g_8kB.amd.js +0 -2
- package/.chunks/popup-DB5g_8kB.amd.js.map +0 -1
- package/.chunks/popup-DB5g_8kB.esm.js.map +0 -1
- package/.chunks/popup-KKfSSrM6.amd.js +0 -2
- package/.chunks/popup-KKfSSrM6.amd.js.map +0 -1
- package/.chunks/popup-KKfSSrM6.esm.js.map +0 -1
- package/.chunks/punycode.es6-BZRFIj88.amd.js +0 -2
- package/.chunks/punycode.es6-BZRFIj88.amd.js.map +0 -1
- package/.chunks/punycode.es6-BZRFIj88.esm.js +0 -105
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
_autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
|
|
6
6
|
/* end import css */
|
|
7
7
|
|
|
8
|
-
import "./api-
|
|
9
|
-
import { E as e, G as t, O as n, P as r, a as i, c as a, f as o, h as s, r as c, t as l } from "./forms-
|
|
8
|
+
import "./api-DZQlrC2R.esm.js";
|
|
9
|
+
import { E as e, G as t, O as n, P as r, a as i, c as a, f as o, h as s, r as c, t as l } from "./forms-CY5MOh7a.esm.js";
|
|
10
10
|
import { t as u } from "./field-DEusYVqS.esm.js";
|
|
11
11
|
import { invertKeyboardLayout as d } from "../utils/keyboard.js";
|
|
12
|
-
import { a as f, o as p, s as m } from "./popup-
|
|
13
|
-
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, mergeModels as T, mergeProps as E, normalizeClass as D, onMounted as O, onUnmounted as k, onUpdated as
|
|
12
|
+
import { a as f, o as p, s as m } from "./popup-3cwJ8Hev.esm.js";
|
|
13
|
+
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, mergeModels as T, mergeProps as E, normalizeClass as D, onMounted as O, onUnmounted as k, onUpdated as A, openBlock as j, ref as M, renderList as N, renderSlot as P, resolveComponent as F, resolveDirective as I, resolveDynamicComponent as ee, toDisplayString as L, triggerRef as R, unref as z, useModel as B, watch as V, withCtx as H, withDirectives as U, withKeys as W, withModifiers as G } from "vue";
|
|
14
14
|
//#region src/components/formsExt/menu/menu.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var
|
|
15
|
+
var te = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "top-menu_selectAll"
|
|
18
|
-
},
|
|
18
|
+
}, ne = /* @__PURE__ */ w({
|
|
19
19
|
__name: "menu",
|
|
20
20
|
props: /*@__PURE__*/ T({
|
|
21
21
|
modelValue: {},
|
|
@@ -30,7 +30,7 @@ var ne = {
|
|
|
30
30
|
}),
|
|
31
31
|
emits: ["update:modelValue"],
|
|
32
32
|
setup(e) {
|
|
33
|
-
let r = e, i = B(e, "modelValue"), a =
|
|
33
|
+
let r = e, i = B(e, "modelValue"), a = M();
|
|
34
34
|
!r.isMultiple && typeof i.value != "string" && typeof i.value != "number" && console.warn("Type check failed for prop \"modelValue\". Expected String: " + typeof i.value), r.isMultiple && !Array.isArray(i.value) && console.warn("Type check failed for prop \"modelValue\". Expected Array: " + typeof i.value), r.isMultiple && !r.canBeEmptyMultiple && Array.isArray(i.value) && !i.value.length && r.items[0] && (i.value = [r.items[0]?.href ?? r.items[0]?.value]);
|
|
35
35
|
let o = (e) => Array.isArray(i.value) ? i.value.includes(e.value) : e.value === i.value, c = (e, t = !1) => {
|
|
36
36
|
if (Array.isArray(i.value)) {
|
|
@@ -66,7 +66,7 @@ var ne = {
|
|
|
66
66
|
i.value = r.items.map((e) => e.href ?? e.value);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
return O(() => u(!1)),
|
|
69
|
+
return O(() => u(!1)), A(() => u(!0)), (t, n) => (j(), y("div", {
|
|
70
70
|
ref_key: "el",
|
|
71
71
|
ref: a,
|
|
72
72
|
class: D({
|
|
@@ -74,16 +74,16 @@ var ne = {
|
|
|
74
74
|
["top-style_" + e.styling]: !0
|
|
75
75
|
}),
|
|
76
76
|
onWheel: l
|
|
77
|
-
}, [(
|
|
77
|
+
}, [(j(!0), y(h, null, N(e.items, (e) => (j(), _(s, E({ ref_for: !0 }, e, {
|
|
78
78
|
class: "top-menu_item",
|
|
79
79
|
color: "theme",
|
|
80
80
|
onClick: (t) => c(e, t.ctrlKey || t.metaKey),
|
|
81
81
|
isActive: o(e)
|
|
82
82
|
}), x({ _: 2 }, [e.content ? {
|
|
83
83
|
name: "default",
|
|
84
|
-
fn: H(() => [S(
|
|
84
|
+
fn: H(() => [S(L(e.content), 1)]),
|
|
85
85
|
key: "0"
|
|
86
|
-
} : void 0]), 1040, ["onClick", "isActive"]))), 256)), Array.isArray(i.value) && e.selectAllItem ? (
|
|
86
|
+
} : void 0]), 1040, ["onClick", "isActive"]))), 256)), Array.isArray(i.value) && e.selectAllItem ? (j(), y("div", te, [C(s, E(e.selectAllItem, {
|
|
87
87
|
class: "top-menu_item",
|
|
88
88
|
color: "theme",
|
|
89
89
|
styling: "",
|
|
@@ -91,11 +91,11 @@ var ne = {
|
|
|
91
91
|
isActive: i.value.length === e.items.length
|
|
92
92
|
}), x({ _: 2 }, [e.selectAllItem.content ? {
|
|
93
93
|
name: "default",
|
|
94
|
-
fn: H(() => [S(
|
|
94
|
+
fn: H(() => [S(L(e.selectAllItem.content), 1)]),
|
|
95
95
|
key: "0"
|
|
96
96
|
} : void 0]), 1040, ["isActive"])])) : v("", !0)], 34));
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
98
|
+
}), re = { class: "top-selector2_itemMulti top-ellipsis" }, ie = /* @__PURE__ */ w({
|
|
99
99
|
__name: "itemMulti",
|
|
100
100
|
props: {
|
|
101
101
|
id: {},
|
|
@@ -103,7 +103,7 @@ var ne = {
|
|
|
103
103
|
},
|
|
104
104
|
emits: ["delete"],
|
|
105
105
|
setup(e) {
|
|
106
|
-
return (t, n) => (
|
|
106
|
+
return (t, n) => (j(), y("div", re, [S(L(e.name) + " ", 1), b("span", {
|
|
107
107
|
class: "top-selector2_itemMultiDelete",
|
|
108
108
|
"data-top-icon": "",
|
|
109
109
|
onClick: n[0] ||= (n) => t.$emit("delete", {
|
|
@@ -113,16 +113,16 @@ var ne = {
|
|
|
113
113
|
onMousedown: n[1] ||= G(() => {}, ["stop"])
|
|
114
114
|
}, null, 32)]));
|
|
115
115
|
}
|
|
116
|
-
}), K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), Y = (e) => (J.has(e) || J.set(e,
|
|
116
|
+
}), K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), Y = (e) => (J.has(e) || J.set(e, M(0)), J.get(e)), X = (e) => {
|
|
117
117
|
Y(e).value++;
|
|
118
|
-
},
|
|
118
|
+
}, Z = (e) => {
|
|
119
119
|
K.get(e)?.clear(), X(e);
|
|
120
|
-
},
|
|
120
|
+
}, Q = (e, t) => {
|
|
121
121
|
K.get(e)?.forEach((e) => t(e));
|
|
122
|
-
},
|
|
122
|
+
}, ae = (e, t) => {
|
|
123
123
|
q.get(e)?.forEach((e) => t(e));
|
|
124
|
-
},
|
|
125
|
-
|
|
124
|
+
}, $ = (e, t, n) => {
|
|
125
|
+
ae(e, (e) => {
|
|
126
126
|
let r = !1;
|
|
127
127
|
if (Array.isArray(e.value)) e.value.filter((e) => e.id === t).forEach((e) => {
|
|
128
128
|
Object.assign(e, n), r = !0;
|
|
@@ -133,33 +133,33 @@ var ne = {
|
|
|
133
133
|
}
|
|
134
134
|
r && R(e);
|
|
135
135
|
});
|
|
136
|
-
},
|
|
136
|
+
}, oe = (e) => {
|
|
137
137
|
let t = window.mo?.user?.id;
|
|
138
138
|
return JSON.stringify(e.params) + ":" + e.url + ":" + t;
|
|
139
|
-
},
|
|
139
|
+
}, se = (e, t) => {
|
|
140
140
|
let n = K.get(t)?.get(e);
|
|
141
141
|
if (n) return n.result = n.result.map((e) => ({ ...e })), n;
|
|
142
|
-
},
|
|
142
|
+
}, ce = (e, t, n) => {
|
|
143
143
|
K.has(t) || K.set(t, /* @__PURE__ */ new Map()), K.get(t)?.set(e, n);
|
|
144
|
-
},
|
|
144
|
+
}, le = (e, t) => {
|
|
145
145
|
q.has(e) || q.set(e, /* @__PURE__ */ new Set()), q.get(e)?.add(t), k(() => q.get(e)?.delete(t));
|
|
146
|
-
},
|
|
147
|
-
|
|
146
|
+
}, ue = (e, t, n) => {
|
|
147
|
+
Q(e, (e) => {
|
|
148
148
|
let r = e.result.find((e) => e.id === t);
|
|
149
149
|
r && Object.assign(r, n);
|
|
150
|
-
}),
|
|
151
|
-
},
|
|
152
|
-
|
|
150
|
+
}), $(e, t, n), X(e);
|
|
151
|
+
}, de = (e, t) => {
|
|
152
|
+
Q(e, (e) => {
|
|
153
153
|
let n = e.result.findIndex((e) => e.id === t);
|
|
154
154
|
n !== -1 && (e.result.splice(n, 1), e.nextOffset && e.nextOffset--);
|
|
155
|
-
}),
|
|
156
|
-
},
|
|
157
|
-
let o =
|
|
158
|
-
e && !e.params.limit && (e.params.limit = 100), e &&
|
|
155
|
+
}), $(e, t, { name: "--" }), X(e);
|
|
156
|
+
}, fe = (e, t, n, i, a) => {
|
|
157
|
+
let o = M([]), s = M(!1), c = M(0), l = "", u;
|
|
158
|
+
e && !e.params.limit && (e.params.limit = 100), e && le(e.path, a);
|
|
159
159
|
let d = () => {
|
|
160
160
|
if (!e) return;
|
|
161
161
|
e.params.offset = 0;
|
|
162
|
-
let t =
|
|
162
|
+
let t = se(oe(e), e.path);
|
|
163
163
|
if (!t) {
|
|
164
164
|
o.value = [], u = void 0;
|
|
165
165
|
return;
|
|
@@ -171,9 +171,9 @@ var ne = {
|
|
|
171
171
|
});
|
|
172
172
|
let f = async () => {
|
|
173
173
|
if (!e) return;
|
|
174
|
-
let t = i ?
|
|
174
|
+
let t = i ? oe(e) : void 0;
|
|
175
175
|
if (t) {
|
|
176
|
-
let n =
|
|
176
|
+
let n = se(t, e.path);
|
|
177
177
|
if (n) return e.abortByFingerprint(), n;
|
|
178
178
|
}
|
|
179
179
|
let n = await e.call();
|
|
@@ -187,7 +187,7 @@ var ne = {
|
|
|
187
187
|
console.warn(`В result[${r}] нет id или name`);
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
|
-
return t &&
|
|
190
|
+
return t && ce(t, e.path, n), n;
|
|
191
191
|
}, p = async (n) => {
|
|
192
192
|
if (!e) return;
|
|
193
193
|
if (n) {
|
|
@@ -214,100 +214,101 @@ var ne = {
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
|
-
},
|
|
217
|
+
}, pe = 0, me = null, he = (e, t, n = !0) => n && t.id === null ? Array.isArray(e) ? e.some((e) => e.id === t.id && e.name === t.name) : t.name === e.name : Array.isArray(e) ? e.some((e) => e.id === t.id) : t.id === e.id, ge = (e, t, n) => {
|
|
218
218
|
let r = e.params.filters ?? [];
|
|
219
219
|
r = r.filter((e) => e.name !== n), t && r.push(u(n, "CONTAINS", [t])), e.changeParams({ filters: r });
|
|
220
|
-
},
|
|
221
|
-
let
|
|
220
|
+
}, _e = (t, n, r, i) => {
|
|
221
|
+
let a = M(""), o = {
|
|
222
222
|
id: 0,
|
|
223
223
|
name: e().Common.All
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
},
|
|
224
|
+
}, s = () => {
|
|
225
|
+
a.value = "";
|
|
226
|
+
}, c = () => !(!i.apiRequest || a.value.length >= n.minLength), l = g(() => {
|
|
227
227
|
let e = [];
|
|
228
|
-
return !
|
|
229
|
-
}),
|
|
230
|
-
|
|
231
|
-
},
|
|
232
|
-
let e =
|
|
233
|
-
|
|
234
|
-
},
|
|
235
|
-
let
|
|
236
|
-
(
|
|
228
|
+
return !n.multiselect && n.useAllItem && (typeof n.useAllItem == "string" && (o.name = n.useAllItem), e.push(o)), n.items?.forEach((t) => e.push(t)), e;
|
|
229
|
+
}), u = M([]), f = () => {
|
|
230
|
+
u.value = p();
|
|
231
|
+
}, p = () => {
|
|
232
|
+
let e = a.value.toLowerCase(), r = d(e), o = [], s, c = [], u = () => {
|
|
233
|
+
c.at(-1)?.listItemProps?.type === "delimiter" && c.pop(), c.length &&= (s && o.push(s), o.push(...c), 0);
|
|
234
|
+
}, f = (t) => {
|
|
235
|
+
let i = n.searchFields?.includes("id"), a = t.name.toLowerCase(), o = n.searchFields?.filter((e) => e !== "id").map((e) => typeof t[e] == "string" || typeof t[e] == "number" ? t[e] : "").join("☼").toLowerCase();
|
|
236
|
+
(i && t.id === Number(e) || o?.includes(e) || o?.includes(r)) && (a === e || a === r ? c.unshift(t) : c.push(t));
|
|
237
237
|
};
|
|
238
|
-
for (let e of
|
|
238
|
+
for (let e of l.value) switch (e.listItemProps?.type) {
|
|
239
239
|
case "title":
|
|
240
|
-
|
|
240
|
+
u(), s = e;
|
|
241
241
|
break;
|
|
242
242
|
case "delimiter":
|
|
243
|
-
if (
|
|
244
|
-
let t =
|
|
245
|
-
|
|
243
|
+
if (c.length) {
|
|
244
|
+
let t = c.length;
|
|
245
|
+
c.at(-1)?.listItemProps?.type === "delimiter" && t--, c[t] = e;
|
|
246
246
|
}
|
|
247
247
|
break;
|
|
248
|
-
default:
|
|
248
|
+
default: f(e);
|
|
249
249
|
}
|
|
250
|
-
if (
|
|
250
|
+
if (u(), o.push(...i.items.value), n.appendSearchToResult && a.value && (!n.appendSearchToResultCond || n.appendSearchToResultCond(e)) && (n.appendSearchAllowDuplicate || !o.find((t) => t.name.toLowerCase() === e))) {
|
|
251
251
|
let e = {
|
|
252
252
|
id: null,
|
|
253
|
-
name:
|
|
253
|
+
name: a.value
|
|
254
254
|
};
|
|
255
|
-
|
|
255
|
+
n.appendWithoutSelect && (e.listItemProps = { closeByClick: !1 }), o.push(e);
|
|
256
256
|
}
|
|
257
|
-
return
|
|
258
|
-
},
|
|
259
|
-
e.listItemProps?.type === "title" || e.listItemProps?.type === "delimiter" || e.id === null && (
|
|
260
|
-
|
|
257
|
+
return n.multiselect && (o = o.filter((e) => !he(t.value, e))), n.prepareItemsBeforeRender && (o = n.prepareItemsBeforeRender(o)), o;
|
|
258
|
+
}, m = (e) => {
|
|
259
|
+
e.listItemProps?.type === "title" || e.listItemProps?.type === "delimiter" || e.id === null && (r("appendItem", e), n.appendWithoutSelect) || (n.multiselect && Array.isArray(t.value) ? he(t.value, e) || (t.value = [...t.value, e]) : t.value = e, setTimeout(() => {
|
|
260
|
+
s();
|
|
261
261
|
}));
|
|
262
262
|
};
|
|
263
|
-
if (
|
|
264
|
-
let e = [
|
|
265
|
-
|
|
266
|
-
|
|
263
|
+
if (i.apiRequest) {
|
|
264
|
+
let e = [() => n.items, i.items];
|
|
265
|
+
n.multiselect && e.push(t), V(e, () => {
|
|
266
|
+
f();
|
|
267
267
|
}, { deep: 2 });
|
|
268
268
|
} else V([
|
|
269
269
|
t,
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
() => n.items,
|
|
271
|
+
a
|
|
272
272
|
], () => {
|
|
273
|
-
|
|
273
|
+
f();
|
|
274
274
|
}, {
|
|
275
275
|
immediate: !0,
|
|
276
276
|
deep: 2
|
|
277
|
-
}), V([() =>
|
|
278
|
-
(e[0] <
|
|
279
|
-
e.id !==
|
|
277
|
+
}), V([() => n.items?.length ?? 0, () => n.items], (e, r) => {
|
|
278
|
+
(e[0] < r[0] || e[1] !== r[1]) && (Array.isArray(t.value) ? t.value : [t.value]).forEach((e) => {
|
|
279
|
+
e.id !== o.id && (n.items?.find((t) => t.id === e.id) || (e.name = "--"));
|
|
280
280
|
});
|
|
281
281
|
});
|
|
282
282
|
return {
|
|
283
|
-
searchText:
|
|
284
|
-
resetSearch:
|
|
285
|
-
genIsShort:
|
|
286
|
-
itemsForShow:
|
|
287
|
-
selectItem:
|
|
283
|
+
searchText: a,
|
|
284
|
+
resetSearch: s,
|
|
285
|
+
genIsShort: c,
|
|
286
|
+
itemsForShow: u,
|
|
287
|
+
selectItem: m,
|
|
288
288
|
selectNextItem: () => {
|
|
289
289
|
if (Array.isArray(t.value)) return;
|
|
290
|
-
let e =
|
|
290
|
+
let e = u.value.filter((e) => !["title", "delimiter"].includes(e.listItemProps?.type ?? ""));
|
|
291
291
|
t.value = { ...e[(e.findIndex((e) => e.id === t.value.id) + 1) % e.length] };
|
|
292
292
|
},
|
|
293
293
|
deleteItemByItem: async (e) => {
|
|
294
294
|
Array.isArray(t.value) && (t.value = t.value.filter((t) => t.id !== e.id || t.name !== e.name));
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
|
-
},
|
|
297
|
+
}, ve = {
|
|
298
298
|
key: 0,
|
|
299
299
|
class: "top-selector2_activeItems"
|
|
300
|
-
},
|
|
300
|
+
}, ye = {
|
|
301
301
|
key: 1,
|
|
302
302
|
class: "top-selector2_activeName top-ellipsis"
|
|
303
|
-
},
|
|
303
|
+
}, be = {
|
|
304
304
|
key: 2,
|
|
305
305
|
class: "top-selector2_placeholder top-ellipsis"
|
|
306
|
-
},
|
|
306
|
+
}, xe = { class: "top-selector2_searchWidget" }, Se = /* @__PURE__ */ w({
|
|
307
307
|
__name: "selector2",
|
|
308
308
|
props: /*@__PURE__*/ T({
|
|
309
309
|
modelValue: {},
|
|
310
310
|
items: { default: () => [] },
|
|
311
|
+
itemsIsLoading: { type: Boolean },
|
|
311
312
|
title: {},
|
|
312
313
|
disabled: { type: Boolean },
|
|
313
314
|
icon: {},
|
|
@@ -343,21 +344,7 @@ var ne = {
|
|
|
343
344
|
}),
|
|
344
345
|
emits: /*@__PURE__*/ T(["appendItem", "open"], ["update:modelValue"]),
|
|
345
346
|
setup(e, { expose: t, emit: r }) {
|
|
346
|
-
let i = e, a = B(e, "modelValue"), o = r;
|
|
347
|
-
t({
|
|
348
|
-
resetCache: (e = !1) => {
|
|
349
|
-
c.apiRequest && (e && oe(c.apiRequest.path), c.items.value = [], c.countLoading.value = 0, c.apiRequest.params.offset = 0, requestAnimationFrame(() => {
|
|
350
|
-
u.itemsForShow.value = [];
|
|
351
|
-
}), T()?.elPopup && c.setSearchTextAndLoad(u.searchText.value));
|
|
352
|
-
},
|
|
353
|
-
updateCacheItemById: (e, t) => {
|
|
354
|
-
c.apiRequest && de(c.apiRequest.path, e, t);
|
|
355
|
-
},
|
|
356
|
-
deleteCacheItemById: (e) => {
|
|
357
|
-
c.apiRequest && fe(c.apiRequest.path, e);
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
let s = g(() => i.searchType === "inline" && i.multiselect || i.searchType === "inline" && n.state.isMobile ? "popup" : i.searchType), c = pe(i.api, i.apiSetSearchParams, i.minLength, i.useCache, a), u = ve(a, o, L(i, "items"), i.prepareItemsBeforeRender, i.multiselect, L(i, "useAllItem"), L(i, "appendSearchToResult"), L(i, "appendSearchAllowDuplicate"), L(i, "appendSearchToResultCond"), L(i, "appendWithoutSelect"), L(i, "searchFields"), s, i.minLength, c), d = g(() => i.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), w = j(null), T = () => w.value?.popup;
|
|
347
|
+
let i = e, a = B(e, "modelValue"), o = r, s = g(() => i.searchType === "inline" && i.multiselect || i.searchType === "inline" && n.state.isMobile ? "popup" : i.searchType), c = fe(i.api, i.apiSetSearchParams, i.minLength, i.useCache, a), u = _e(a, i, o, c), d = g(() => i.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), w = M(null), T = () => w.value?.popup;
|
|
361
348
|
c.apiRequest && V(u.searchText, () => {
|
|
362
349
|
c.setSearchTextAndLoad(u.searchText.value);
|
|
363
350
|
});
|
|
@@ -384,7 +371,7 @@ var ne = {
|
|
|
384
371
|
(s.value === "popup" || s.value === "inline") && n && (t = !0), T()?.elPopup && (t = !1), t && (s.value === "popup" && (e.preventDefault(), e.stopPropagation(), n && (u.searchText.value || (u.searchText.value = e.key))), e.currentTarget?.click());
|
|
385
372
|
}, k = (e) => {
|
|
386
373
|
e.preventDefault(), u.selectNextItem();
|
|
387
|
-
},
|
|
374
|
+
}, A = () => {
|
|
388
375
|
c.apiRequest && c.setSearchTextAndLoad(u.searchText.value, !1), o("open");
|
|
389
376
|
}, R = () => {
|
|
390
377
|
s.value === "popup" && u.searchText.value && u.resetSearch();
|
|
@@ -392,12 +379,25 @@ var ne = {
|
|
|
392
379
|
let t = e.target;
|
|
393
380
|
t.scrollTop / (t.scrollHeight - t.offsetHeight) > .8 && c.load(!0);
|
|
394
381
|
};
|
|
395
|
-
return (
|
|
396
|
-
|
|
397
|
-
|
|
382
|
+
return t({
|
|
383
|
+
getPopup: T,
|
|
384
|
+
resetCache: (e = !1) => {
|
|
385
|
+
c.apiRequest && (e && Z(c.apiRequest.path), c.items.value = [], c.countLoading.value = 0, c.apiRequest.params.offset = 0, requestAnimationFrame(() => {
|
|
386
|
+
u.itemsForShow.value = [];
|
|
387
|
+
}), T()?.elPopup && c.setSearchTextAndLoad(u.searchText.value));
|
|
388
|
+
},
|
|
389
|
+
updateCacheItemById: (e, t) => {
|
|
390
|
+
c.apiRequest && ue(c.apiRequest.path, e, t);
|
|
391
|
+
},
|
|
392
|
+
deleteCacheItemById: (e) => {
|
|
393
|
+
c.apiRequest && de(c.apiRequest.path, e);
|
|
394
|
+
}
|
|
395
|
+
}), (t, r) => {
|
|
396
|
+
let i = F("TopButton"), o = F("TopLoadbar"), g = I("top-focus"), T = I("top-shortcut");
|
|
397
|
+
return j(), _(z(m), {
|
|
398
398
|
ref_key: "popupRef",
|
|
399
399
|
ref: w,
|
|
400
|
-
onOpen: r[3] ||= (e) =>
|
|
400
|
+
onOpen: r[3] ||= (e) => A(),
|
|
401
401
|
onClose: r[4] ||= (e) => R(),
|
|
402
402
|
onScrollContentList: r[5] ||= (e) => z(c) ? W(e) : void 0,
|
|
403
403
|
notch: !1,
|
|
@@ -405,7 +405,7 @@ var ne = {
|
|
|
405
405
|
openByFocusInput: s.value === "inline" && (e.openByFocusInput ?? !0),
|
|
406
406
|
disabled: s.value === "inline" && z(u).genIsShort()
|
|
407
407
|
}, x({
|
|
408
|
-
opener: H(() => [U((
|
|
408
|
+
opener: H(() => [U((j(), _(ee(d.value), E(e.buttonProps, {
|
|
409
409
|
class: {
|
|
410
410
|
"top-selector2": !0,
|
|
411
411
|
"top-selector2-multiselect": e.multiselect,
|
|
@@ -428,7 +428,7 @@ var ne = {
|
|
|
428
428
|
"onUpdate:modelValue": r[1] ||= (e) => z(u).searchText.value = e
|
|
429
429
|
}), {
|
|
430
430
|
default: H(() => [
|
|
431
|
-
e.multiselect ? (
|
|
431
|
+
e.multiselect ? (j(), y("div", ve, [(j(!0), y(h, null, N(a.value, (e) => (j(), _(ie, {
|
|
432
432
|
key: e.id ?? void 0,
|
|
433
433
|
id: e.id,
|
|
434
434
|
name: e.name,
|
|
@@ -438,9 +438,9 @@ var ne = {
|
|
|
438
438
|
"name",
|
|
439
439
|
"onDelete"
|
|
440
440
|
]))), 128))])) : v("", !0),
|
|
441
|
-
s.value !== "inline" && !e.multiselect ? (
|
|
442
|
-
e.multiselect && !a.value.length ? (
|
|
443
|
-
e.addChanger && !e.buttonProps && !e.multiselect && z(u).itemsForShow.value.length > 1 && !e.disabled ? (
|
|
441
|
+
s.value !== "inline" && !e.multiselect ? (j(), y("span", ye, L(Array.isArray(a.value) ? "" : a.value.name), 1)) : v("", !0),
|
|
442
|
+
e.multiselect && !a.value.length ? (j(), y("span", be, L(D.value), 1)) : v("", !0),
|
|
443
|
+
e.addChanger && !e.buttonProps && !e.multiselect && z(u).itemsForShow.value.length > 1 && !e.disabled ? (j(), y("span", {
|
|
444
444
|
key: 3,
|
|
445
445
|
class: "top-changer top-changer-selector",
|
|
446
446
|
"data-top-popup-disabled": "true",
|
|
@@ -462,7 +462,7 @@ var ne = {
|
|
|
462
462
|
{ onupdate: !0 }
|
|
463
463
|
], [T, e.openerShortcut]])]),
|
|
464
464
|
contentList: H(() => [
|
|
465
|
-
(
|
|
465
|
+
(j(!0), y(h, null, N(z(u).itemsForShow.value, (r) => (j(), _(z(p), E({
|
|
466
466
|
key: r.id ?? void 0,
|
|
467
467
|
class: {
|
|
468
468
|
"top-active": !Array.isArray(a.value) && !e.multiselect && a.value.id === r.id && a.value.name === r.name,
|
|
@@ -471,36 +471,36 @@ var ne = {
|
|
|
471
471
|
},
|
|
472
472
|
closeByClick: !e.multiselect || z(n).state.isMobile
|
|
473
473
|
}, { ref_for: !0 }, r.listItemProps, { onClick: (e) => z(u).selectItem(r) }), x({
|
|
474
|
-
default: H(() => [t.$slots.item ?
|
|
474
|
+
default: H(() => [t.$slots.item ? P(t.$slots, "item", {
|
|
475
475
|
key: 0,
|
|
476
476
|
item: r
|
|
477
|
-
}) : (
|
|
477
|
+
}) : (j(), y(h, { key: 1 }, [S(L(r.name), 1)], 64))]),
|
|
478
478
|
_: 2
|
|
479
479
|
}, [t.$slots.actions ? {
|
|
480
480
|
name: "actions",
|
|
481
|
-
fn: H(() => [
|
|
481
|
+
fn: H(() => [P(t.$slots, "actions", { item: r })]),
|
|
482
482
|
key: "0"
|
|
483
483
|
} : void 0]), 1040, [
|
|
484
484
|
"class",
|
|
485
485
|
"closeByClick",
|
|
486
486
|
"onClick"
|
|
487
487
|
]))), 128)),
|
|
488
|
-
!z(u).itemsForShow.value.length && !z(u).genIsShort() ? (
|
|
488
|
+
!z(u).itemsForShow.value.length && !z(u).genIsShort() ? (j(), _(z(p), {
|
|
489
489
|
key: 0,
|
|
490
490
|
type: "regular"
|
|
491
491
|
}, {
|
|
492
|
-
default: H(() => [
|
|
493
|
-
key:
|
|
492
|
+
default: H(() => [z(c).isLoading.value && !z(c).countLoading.value || e.itemsIsLoading ? (j(), _(z(l), {
|
|
493
|
+
key: 0,
|
|
494
494
|
type: "circles"
|
|
495
|
-
}))]),
|
|
495
|
+
})) : (j(), y(h, { key: 1 }, [S(L(t.$i18n.Common.No_results), 1)], 64))]),
|
|
496
496
|
_: 1
|
|
497
497
|
})) : v("", !0),
|
|
498
|
-
z(c).countLoading.value && z(c).isLoading.value && s.value === "inline" ? (
|
|
498
|
+
z(c).countLoading.value && z(c).isLoading.value && s.value === "inline" ? (j(), _(o, { key: 1 })) : v("", !0)
|
|
499
499
|
]),
|
|
500
500
|
_: 2
|
|
501
501
|
}, [s.value === "popup" ? {
|
|
502
502
|
name: "widget",
|
|
503
|
-
fn: H(() => [b("div",
|
|
503
|
+
fn: H(() => [b("div", xe, [U(C(z(f), {
|
|
504
504
|
title: "Поиск",
|
|
505
505
|
icon: "",
|
|
506
506
|
modelValue: z(u).searchText.value,
|
|
@@ -516,19 +516,19 @@ var ne = {
|
|
|
516
516
|
a.value,
|
|
517
517
|
void 0,
|
|
518
518
|
{ onupdate: !0 }
|
|
519
|
-
]]), e.hasCloserBtn && !t.$core.state.isMobile ? (
|
|
519
|
+
]]), e.hasCloserBtn && !t.$core.state.isMobile ? (j(), _(i, {
|
|
520
520
|
key: 0,
|
|
521
521
|
class: "closer",
|
|
522
522
|
color: "theme"
|
|
523
523
|
}, {
|
|
524
|
-
default: H(() => [S(
|
|
524
|
+
default: H(() => [S(L(t.$i18n.Common.Cancel), 1)]),
|
|
525
525
|
_: 1
|
|
526
526
|
})) : v("", !0)])]),
|
|
527
527
|
key: "0"
|
|
528
528
|
} : void 0]), 1032, ["openByFocusInput", "disabled"]);
|
|
529
529
|
};
|
|
530
530
|
}
|
|
531
|
-
}),
|
|
531
|
+
}), Ce = { class: "top-editArea_footer" }, we = /* @__PURE__ */ w({
|
|
532
532
|
__name: "editArea",
|
|
533
533
|
props: {
|
|
534
534
|
defaultValue: { default: "" },
|
|
@@ -561,7 +561,7 @@ var ne = {
|
|
|
561
561
|
"clickOnTitle"
|
|
562
562
|
],
|
|
563
563
|
setup(e, { emit: t }) {
|
|
564
|
-
let n = e, r = t, i =
|
|
564
|
+
let n = e, r = t, i = M(n.defaultValue), a = M(n.isFocused), o = g(() => i.value !== n.defaultValue), l = (e) => {
|
|
565
565
|
r("submit", e), i.value = n.defaultValue;
|
|
566
566
|
}, u = () => {
|
|
567
567
|
if (n.forceShowCloseBtn && !o.value) {
|
|
@@ -572,14 +572,14 @@ var ne = {
|
|
|
572
572
|
}, d = () => {
|
|
573
573
|
n.attachToKeyboard && r("clickOnTitle");
|
|
574
574
|
};
|
|
575
|
-
return (t, n) => (
|
|
575
|
+
return (t, n) => (j(), y("div", { class: D({
|
|
576
576
|
"top-editArea": !0,
|
|
577
577
|
"top-editArea-attachedToKeyboard": e.attachToKeyboard
|
|
578
|
-
}) }, [e.title || t.$slots.caption ? (
|
|
578
|
+
}) }, [e.title || t.$slots.caption ? (j(), y("div", {
|
|
579
579
|
key: 0,
|
|
580
580
|
class: "top-editArea_caption",
|
|
581
581
|
onClick: n[0] ||= (e) => d()
|
|
582
|
-
}, [
|
|
582
|
+
}, [P(t.$slots, "caption", {}, () => [S(L(e.title), 1)])])) : v("", !0), b("div", { class: D({
|
|
583
583
|
"top-editArea_form": !0,
|
|
584
584
|
"top-forms-focusable": !0,
|
|
585
585
|
"top-as-input": !0,
|
|
@@ -612,7 +612,7 @@ var ne = {
|
|
|
612
612
|
"readonly",
|
|
613
613
|
"isError",
|
|
614
614
|
"hint"
|
|
615
|
-
]), b("div",
|
|
615
|
+
]), b("div", Ce, [o.value || e.forceShowCloseBtn ? (j(), _(s, {
|
|
616
616
|
key: 0,
|
|
617
617
|
icon: t.$core.state.isMobile ? "" : "",
|
|
618
618
|
class: "top-editArea_button",
|
|
@@ -621,20 +621,20 @@ var ne = {
|
|
|
621
621
|
onClick: u
|
|
622
622
|
}, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
|
|
623
623
|
name: "default",
|
|
624
|
-
fn: H(() => [S(
|
|
624
|
+
fn: H(() => [S(L(e.cancelText), 1)]),
|
|
625
625
|
key: "0"
|
|
626
|
-
}]), 1032, ["icon"])) : v("", !0), o.value ? (
|
|
626
|
+
}]), 1032, ["icon"])) : v("", !0), o.value ? (j(), _(s, {
|
|
627
627
|
key: 1,
|
|
628
628
|
class: "top-editArea_button",
|
|
629
629
|
icon: t.$core.state.isMobile ? "" : "",
|
|
630
630
|
onClick: n[5] ||= (e) => l(i.value)
|
|
631
631
|
}, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
|
|
632
632
|
name: "default",
|
|
633
|
-
fn: H(() => [S(
|
|
633
|
+
fn: H(() => [S(L(e.submitText), 1)]),
|
|
634
634
|
key: "0"
|
|
635
635
|
}]), 1032, ["icon"])) : v("", !0)])], 2)], 2));
|
|
636
636
|
}
|
|
637
|
-
}),
|
|
637
|
+
}), Te = { class: "top-editInput" }, Ee = /* @__PURE__ */ w({
|
|
638
638
|
__name: "editInput",
|
|
639
639
|
props: {
|
|
640
640
|
modelValue: {},
|
|
@@ -644,29 +644,29 @@ var ne = {
|
|
|
644
644
|
},
|
|
645
645
|
emits: ["update:modelValue"],
|
|
646
646
|
setup(e, { emit: t }) {
|
|
647
|
-
let n = e, r =
|
|
647
|
+
let n = e, r = M(n.modelValue);
|
|
648
648
|
V(() => n.modelValue, () => {
|
|
649
649
|
r.value = n.modelValue;
|
|
650
650
|
});
|
|
651
651
|
let i = t, o = () => {
|
|
652
652
|
i("update:modelValue", r.value);
|
|
653
653
|
};
|
|
654
|
-
return (t, n) => (
|
|
654
|
+
return (t, n) => (j(), y("div", Te, [C(a, E(e.input, {
|
|
655
655
|
onKeydownCapture: n[0] ||= W(G((t) => r.value = e.modelValue, ["stop"]), ["esc"]),
|
|
656
656
|
onKeydown: W(G(o, ["stop"]), ["enter"]),
|
|
657
657
|
modelValue: r.value,
|
|
658
658
|
"onUpdate:modelValue": n[1] ||= (e) => r.value = e
|
|
659
659
|
}), x({ _: 2 }, [t.$slots.caption ? {
|
|
660
660
|
name: "caption",
|
|
661
|
-
fn: H(() => [
|
|
661
|
+
fn: H(() => [P(t.$slots, "caption")]),
|
|
662
662
|
key: "0"
|
|
663
|
-
} : void 0]), 1040, ["onKeydown", "modelValue"]), r.value !== e.modelValue || e.alwaysShowSubmitBtn ? (
|
|
663
|
+
} : void 0]), 1040, ["onKeydown", "modelValue"]), r.value !== e.modelValue || e.alwaysShowSubmitBtn ? (j(), _(s, E({
|
|
664
664
|
key: 0,
|
|
665
665
|
icon: "",
|
|
666
666
|
styling: "soft"
|
|
667
667
|
}, e.button, { onClick: o }), null, 16)) : v("", !0)]));
|
|
668
668
|
}
|
|
669
|
-
}),
|
|
669
|
+
}), De = /* @__PURE__ */ w({
|
|
670
670
|
__name: "optionGroup",
|
|
671
671
|
props: /*@__PURE__*/ T({
|
|
672
672
|
modelValue: {},
|
|
@@ -680,13 +680,13 @@ var ne = {
|
|
|
680
680
|
}),
|
|
681
681
|
emits: ["update:modelValue"],
|
|
682
682
|
setup(e) {
|
|
683
|
-
let t = B(e, "modelValue"), n = e, r =
|
|
683
|
+
let t = B(e, "modelValue"), n = e, r = M(null);
|
|
684
684
|
V(t, () => {
|
|
685
685
|
let e = n.items.map((e) => e.value);
|
|
686
686
|
Array.isArray(t.value) ? t.value.find((t) => !e.includes(t)) && (t.value = t.value.filter((t) => e.includes(t))) : e.includes(t.value) || (t.value = e[0] ?? ""), r.value?.querySelector(".radioGroup_item-selected")?.scrollIntoView();
|
|
687
687
|
}, { immediate: !0 });
|
|
688
688
|
let a = "optionGroup-" + Math.random();
|
|
689
|
-
return (n, s) => (
|
|
689
|
+
return (n, s) => (j(), y("div", {
|
|
690
690
|
ref_key: "elRef",
|
|
691
691
|
ref: r,
|
|
692
692
|
class: D({
|
|
@@ -696,7 +696,7 @@ var ne = {
|
|
|
696
696
|
["top-size_" + e.size]: !!e.size,
|
|
697
697
|
"top-error": e.isError
|
|
698
698
|
})
|
|
699
|
-
}, [Array.isArray(t.value) ? (
|
|
699
|
+
}, [Array.isArray(t.value) ? (j(!0), y(h, { key: 0 }, N(e.items, (n) => (j(), _(o, {
|
|
700
700
|
class: D({
|
|
701
701
|
"top-optionGroup_item-selected": t.value.includes(n.value),
|
|
702
702
|
"top-optionGroup_item": !0
|
|
@@ -710,7 +710,7 @@ var ne = {
|
|
|
710
710
|
"data-top-icon": n.icon
|
|
711
711
|
}, x({ _: 2 }, [n.label ? {
|
|
712
712
|
name: "default",
|
|
713
|
-
fn: H(() => [S(
|
|
713
|
+
fn: H(() => [S(L(n.label), 1)]),
|
|
714
714
|
key: "0"
|
|
715
715
|
} : void 0]), 1032, [
|
|
716
716
|
"class",
|
|
@@ -720,7 +720,7 @@ var ne = {
|
|
|
720
720
|
"disabled",
|
|
721
721
|
"isError",
|
|
722
722
|
"data-top-icon"
|
|
723
|
-
]))), 256)) : (
|
|
723
|
+
]))), 256)) : (j(!0), y(h, { key: 1 }, N(e.items, (n) => (j(), _(i, {
|
|
724
724
|
class: D({
|
|
725
725
|
"top-optionGroup_item-selected": n.value === t.value,
|
|
726
726
|
"top-optionGroup_item": !0
|
|
@@ -735,7 +735,7 @@ var ne = {
|
|
|
735
735
|
"data-top-icon": n.icon
|
|
736
736
|
}, x({ _: 2 }, [n.label ? {
|
|
737
737
|
name: "default",
|
|
738
|
-
fn: H(() => [S(
|
|
738
|
+
fn: H(() => [S(L(n.label), 1)]),
|
|
739
739
|
key: "0"
|
|
740
740
|
} : void 0]), 1032, [
|
|
741
741
|
"class",
|
|
@@ -747,7 +747,7 @@ var ne = {
|
|
|
747
747
|
"data-top-icon"
|
|
748
748
|
]))), 256))], 2));
|
|
749
749
|
}
|
|
750
|
-
}),
|
|
750
|
+
}), Oe = /* @__PURE__ */ w({
|
|
751
751
|
__name: "radioGroup",
|
|
752
752
|
props: /*@__PURE__*/ T({
|
|
753
753
|
modelValue: {},
|
|
@@ -762,7 +762,7 @@ var ne = {
|
|
|
762
762
|
emits: ["update:modelValue"],
|
|
763
763
|
setup(e) {
|
|
764
764
|
let t = B(e, "modelValue");
|
|
765
|
-
return (e, n) => (
|
|
765
|
+
return (e, n) => (j(), _(De, {
|
|
766
766
|
class: "top-radioGroup",
|
|
767
767
|
modelValue: t.value,
|
|
768
768
|
"onUpdate:modelValue": n[0] ||= (e) => t.value = e,
|
|
@@ -771,7 +771,7 @@ var ne = {
|
|
|
771
771
|
showIndicator: e.$props.showIndicator,
|
|
772
772
|
isError: e.$props.isError
|
|
773
773
|
}, {
|
|
774
|
-
default: H(() => [
|
|
774
|
+
default: H(() => [P(e.$slots, "default")]),
|
|
775
775
|
_: 3
|
|
776
776
|
}, 8, [
|
|
777
777
|
"modelValue",
|
|
@@ -781,7 +781,7 @@ var ne = {
|
|
|
781
781
|
"isError"
|
|
782
782
|
]));
|
|
783
783
|
}
|
|
784
|
-
}),
|
|
784
|
+
}), ke = /* @__PURE__ */ w({
|
|
785
785
|
__name: "checkboxGroup",
|
|
786
786
|
props: /*@__PURE__*/ T({
|
|
787
787
|
modelValue: {},
|
|
@@ -796,7 +796,7 @@ var ne = {
|
|
|
796
796
|
emits: ["update:modelValue"],
|
|
797
797
|
setup(e) {
|
|
798
798
|
let t = B(e, "modelValue");
|
|
799
|
-
return (e, n) => (
|
|
799
|
+
return (e, n) => (j(), _(De, {
|
|
800
800
|
class: "top-checkboxGroup",
|
|
801
801
|
modelValue: t.value,
|
|
802
802
|
"onUpdate:modelValue": n[0] ||= (e) => t.value = e,
|
|
@@ -805,7 +805,7 @@ var ne = {
|
|
|
805
805
|
showIndicator: e.$props.showIndicator,
|
|
806
806
|
isError: e.$props.isError
|
|
807
807
|
}, {
|
|
808
|
-
default: H(() => [
|
|
808
|
+
default: H(() => [P(e.$slots, "default")]),
|
|
809
809
|
_: 3
|
|
810
810
|
}, 8, [
|
|
811
811
|
"modelValue",
|
|
@@ -815,10 +815,10 @@ var ne = {
|
|
|
815
815
|
"isError"
|
|
816
816
|
]));
|
|
817
817
|
}
|
|
818
|
-
}),
|
|
818
|
+
}), Ae = ["data-top-icon"], je = { class: "top-info_text" }, Me = {
|
|
819
819
|
key: 0,
|
|
820
820
|
class: "top-info_value"
|
|
821
|
-
},
|
|
821
|
+
}, Ne = /* @__PURE__ */ w({
|
|
822
822
|
__name: "info",
|
|
823
823
|
props: {
|
|
824
824
|
icon: {},
|
|
@@ -826,19 +826,19 @@ var ne = {
|
|
|
826
826
|
size: { default: "default" }
|
|
827
827
|
},
|
|
828
828
|
setup(e) {
|
|
829
|
-
return (t, n) => (
|
|
829
|
+
return (t, n) => (j(), y("div", {
|
|
830
830
|
class: D({
|
|
831
831
|
"top-info": !0,
|
|
832
832
|
["top-size_" + e.size]: !0,
|
|
833
833
|
["top-info-styling_" + e.styling]: !0
|
|
834
834
|
}),
|
|
835
835
|
"data-top-icon": e.icon
|
|
836
|
-
}, [b("div",
|
|
836
|
+
}, [b("div", je, [P(t.$slots, "default")]), t.$slots.additional ? (j(), y("span", Me, [P(t.$slots, "additional")])) : v("", !0)], 10, Ae));
|
|
837
837
|
}
|
|
838
|
-
}),
|
|
838
|
+
}), Pe = {
|
|
839
839
|
key: 0,
|
|
840
840
|
class: "top-policy"
|
|
841
|
-
},
|
|
841
|
+
}, Fe = { class: "top-policy_title" }, Ie = ["innerHTML"], Le = /* @__PURE__ */ w({
|
|
842
842
|
__name: "policy",
|
|
843
843
|
props: {
|
|
844
844
|
title: {},
|
|
@@ -847,26 +847,26 @@ var ne = {
|
|
|
847
847
|
},
|
|
848
848
|
emits: ["accept"],
|
|
849
849
|
setup(e, { emit: t }) {
|
|
850
|
-
let n = t, r =
|
|
850
|
+
let n = t, r = M(!0), i = () => {
|
|
851
851
|
r.value = !1, n("accept");
|
|
852
852
|
};
|
|
853
|
-
return (t, n) => r.value ? (
|
|
854
|
-
b("div",
|
|
853
|
+
return (t, n) => r.value ? (j(), y("div", Pe, [
|
|
854
|
+
b("div", Fe, L(e.title), 1),
|
|
855
855
|
b("div", {
|
|
856
856
|
class: "top-policy_description",
|
|
857
857
|
innerHTML: e.description
|
|
858
|
-
}, null, 8,
|
|
858
|
+
}, null, 8, Ie),
|
|
859
859
|
C(z(s), {
|
|
860
860
|
size: "m",
|
|
861
861
|
onClick: i
|
|
862
862
|
}, {
|
|
863
|
-
default: H(() => [S(
|
|
863
|
+
default: H(() => [S(L(e.acceptText), 1)]),
|
|
864
864
|
_: 1
|
|
865
865
|
})
|
|
866
866
|
])) : v("", !0);
|
|
867
867
|
}
|
|
868
868
|
});
|
|
869
869
|
//#endregion
|
|
870
|
-
export {
|
|
870
|
+
export { Ee as a, pe as c, Z as d, ne as f, Oe as i, me as l, Ne as n, we as o, ke as r, Se as s, Le as t, ge as u };
|
|
871
871
|
|
|
872
|
-
//# sourceMappingURL=formsExt-
|
|
872
|
+
//# sourceMappingURL=formsExt-C9r4Gz9y.esm.js.map
|