@farris/ui-vue 1.6.5-beta.8 → 1.6.5
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/components/avatar/index.esm.js +334 -334
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +4 -4
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +136 -133
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/component/index.esm.js +300 -300
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +4 -4
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +295 -295
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3416 -3350
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +4 -4
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +170 -170
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +637 -637
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +699 -696
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +446 -446
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +377 -374
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +204 -204
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +42 -40
- package/components/list-view/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +427 -427
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +212 -212
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +276 -276
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +160 -160
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +314 -314
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +468 -463
- package/components/order/index.umd.cjs +2 -2
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +215 -215
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4 -4
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +282 -282
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +944 -941
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +498 -492
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/search-box/index.esm.js +76 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +211 -211
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +377 -374
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/switch/index.esm.js +78 -77
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +579 -579
- package/components/tabs/index.umd.cjs +2 -2
- package/components/textarea/index.esm.js +362 -362
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +9799 -0
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/time-picker/package.json +8 -0
- package/components/time-picker/style.js +6 -0
- package/components/transfer/index.esm.js +81 -79
- package/components/transfer/index.umd.cjs +2 -2
- package/components/tree-grid/index.esm.js +100 -100
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2361 -2279
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +219 -219
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +4856 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +254 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +382 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +15439 -0
- package/designer/data-grid/index.umd.cjs +23 -0
- package/designer/data-view/index.esm.js +854 -0
- package/designer/data-view/index.umd.cjs +38 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +525 -0
- package/designer/drawer/index.umd.cjs +1 -0
- package/designer/farris-designer.all.esm.js +22330 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1098 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/list-view/index.css +1 -0
- package/designer/list-view/index.esm.js +4689 -0
- package/designer/list-view/index.umd.cjs +40 -0
- package/designer/radio-group/index.css +1 -0
- package/designer/radio-group/index.esm.js +6985 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +1099 -0
- package/designer/tree-grid/index.umd.cjs +1 -0
- package/farris.all.esm.js +9619 -9535
- package/farris.all.umd.cjs +24 -24
- package/locales/data-grid/ui/en.json +2 -2
- package/locales/designer/en.json +7 -6
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +7 -6
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
|
@@ -87,7 +87,7 @@ import "../modal/index.esm.js";
|
|
|
87
87
|
import "../external-container/index.esm.js";
|
|
88
88
|
import "../language-textbox/index.esm.js";
|
|
89
89
|
import { useResizeObserver as Ra } from "@vueuse/core";
|
|
90
|
-
import { getHierarchyRow as La, useIdentify as $a, useGroupData as za, useFilter as Aa, useHierarchy as Ha, useLoading as Va, useDataView as Wa, useSelection as qa, useSelectHierarchyItem as Ga, usePagination as _a, useDataViewContainerStyle as
|
|
90
|
+
import { getHierarchyRow as La, useIdentify as $a, useGroupData as za, useFilter as Aa, useHierarchy as Ha, useLoading as Va, useDataView as Wa, useSelection as qa, useSelectHierarchyItem as Ga, usePagination as _a, useDataViewContainerStyle as Ya, useCommandColumn as Ua, useSettingColumn as Xa, useColumn as Ja, useSort as Qa, useGroupColumn as Za, useRow as Ka, useEdit as eo, useVisualDataBound as to, useVisualDataCell as no, useVisualDataRow as ao, useVisualData as oo, useCellPosition as io, useSidebar as ro, useVirtualScroll as lo, useFitColumn as so, useFilterHistory as uo, useColumnFilter as co, useDragColumn as fo, getColumnHeader as po, getSidebar as mo, getDisableMask as yo, getHorizontalScrollbar as vo, getVerticalScrollbar as ho, getEmpty as go, getPagination as bo, getSummary as Co } from "../data-view/index.esm.js";
|
|
91
91
|
import "../notify/index.esm.js";
|
|
92
92
|
import wo from "../popover/index.esm.js";
|
|
93
93
|
const ko = {
|
|
@@ -177,7 +177,7 @@ function Mn(e, t) {
|
|
|
177
177
|
const f = a(c);
|
|
178
178
|
return Object.keys(f).reduce((m, g) => (Object.prototype.hasOwnProperty.call(d, g) && (m[g] && sn(m[g]) && sn(d[g] || !d[g]) ? Object.assign(m[g], d[g] || {}) : m[g] = d[g]), m), f), f;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function s(d, c) {
|
|
181
181
|
return Object.keys(d).filter((m) => d[m] != null).reduce((m, g) => {
|
|
182
182
|
if (c.has(g)) {
|
|
183
183
|
const y = c.get(g);
|
|
@@ -192,9 +192,9 @@ function Mn(e, t) {
|
|
|
192
192
|
return m;
|
|
193
193
|
}, {});
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function l(d, c, f = /* @__PURE__ */ new Map()) {
|
|
196
196
|
const m = r(d, c);
|
|
197
|
-
return
|
|
197
|
+
return s(m, f);
|
|
198
198
|
}
|
|
199
199
|
function u(d) {
|
|
200
200
|
var f;
|
|
@@ -215,7 +215,7 @@ function Mn(e, t) {
|
|
|
215
215
|
function p(d) {
|
|
216
216
|
n = d;
|
|
217
217
|
}
|
|
218
|
-
return { getSchemaByType: i, resolveSchemaWithDefaultValue: u, resolveSchemaToProps:
|
|
218
|
+
return { getSchemaByType: i, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: l, mappingSchemaToProps: s, setDesignerContext: p };
|
|
219
219
|
}
|
|
220
220
|
const On = {}, Dn = {}, { getSchemaByType: Ic, resolveSchemaWithDefaultValue: So, resolveSchemaToProps: xo, mappingSchemaToProps: Fo, setDesignerContext: Rc } = Mn(On, Dn);
|
|
221
221
|
function To(e = {}) {
|
|
@@ -263,14 +263,14 @@ function To(e = {}) {
|
|
|
263
263
|
}
|
|
264
264
|
return !1;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function s(u, p) {
|
|
267
267
|
return i(u).reduce((f, m) => f && r(m, p), !0);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
const d = Object.keys(u), c = d.includes("allOf"), f = d.includes("anyOf"), m = c || f, C = (m ? u[m ? c ? "allOf" : "anyOf" : "allOf"] : [u]).map((D) =>
|
|
269
|
+
function l(u, p) {
|
|
270
|
+
const d = Object.keys(u), c = d.includes("allOf"), f = d.includes("anyOf"), m = c || f, C = (m ? u[m ? c ? "allOf" : "anyOf" : "allOf"] : [u]).map((D) => s(D, p));
|
|
271
271
|
return c ? !C.includes(!1) : C.includes(!0);
|
|
272
272
|
}
|
|
273
|
-
return { parseValueSchema:
|
|
273
|
+
return { parseValueSchema: l };
|
|
274
274
|
}
|
|
275
275
|
const Bo = {
|
|
276
276
|
convertTo: (e, t, n, a) => {
|
|
@@ -497,7 +497,7 @@ const Bo = {
|
|
|
497
497
|
if (t === "mode")
|
|
498
498
|
return ((a = e.filter) == null ? void 0 : a.mode) || "client";
|
|
499
499
|
}
|
|
500
|
-
},
|
|
500
|
+
}, Yo = {
|
|
501
501
|
convertTo: (e, t, n, a) => {
|
|
502
502
|
e.rowOption ? e.rowOption[t] = n : e.rowOption = {
|
|
503
503
|
[t]: n
|
|
@@ -535,7 +535,7 @@ function En(e, t, n) {
|
|
|
535
535
|
["/converter/change-formatter-enum.converter", qo],
|
|
536
536
|
["/converter/grid-sort.converter", Go],
|
|
537
537
|
["/converter/grid-filter.converter", _o],
|
|
538
|
-
["/converter/row-option.converter",
|
|
538
|
+
["/converter/row-option.converter", Yo]
|
|
539
539
|
]), o = /* @__PURE__ */ new Map([
|
|
540
540
|
["string", { type: "input-group", enableClear: !1 }],
|
|
541
541
|
["boolean", {
|
|
@@ -564,10 +564,10 @@ function En(e, t, n) {
|
|
|
564
564
|
function r(m, g) {
|
|
565
565
|
return () => i.parseValueSchema(m, g);
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function s(m, g, y) {
|
|
568
568
|
return m.includes("visible") && g.visible !== void 0 ? typeof g.visible == "boolean" ? () => !!g.visible : g.visible === void 0 ? !0 : r(g.visible, y) : () => !0;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function l(m, g, y) {
|
|
571
571
|
return m.includes("readonly") && g.readonly !== void 0 ? typeof g.readonly == "boolean" ? () => !!g.readonly : r(g.readonly, y) : () => !1;
|
|
572
572
|
}
|
|
573
573
|
function u(m, g) {
|
|
@@ -576,13 +576,13 @@ function En(e, t, n) {
|
|
|
576
576
|
}
|
|
577
577
|
function p(m, g, y, C, S, D = "", M = "") {
|
|
578
578
|
return Object.keys(m).map((h) => {
|
|
579
|
-
const
|
|
579
|
+
const T = b(1), B = h, N = m[h], L = Object.keys(N), F = N.title, O = N.type, w = o.get(O) || { type: "input-group", enableClear: !1 }, x = N.editor ? Object.assign({}, w, N.editor) : Object.assign({}, w), P = s(L, N, g), $ = l(L, N, g);
|
|
580
580
|
x.readonly = x.readonly === void 0 ? $() : x.readonly;
|
|
581
|
-
const
|
|
581
|
+
const Y = N.type === "cascade" ? p(N.properties, g, y, C, S, D, M) : [], I = !0;
|
|
582
582
|
let A = u(N, M);
|
|
583
|
-
const
|
|
583
|
+
const U = j({
|
|
584
584
|
get() {
|
|
585
|
-
if (
|
|
585
|
+
if (T.value) {
|
|
586
586
|
if (["class", "style"].find((ue) => ue === B) && !A && (A = a.get("/converter/appearance.converter") || null), A && A.convertFrom)
|
|
587
587
|
return A.convertFrom(y, h, S, D);
|
|
588
588
|
const oe = y[h];
|
|
@@ -591,28 +591,28 @@ function En(e, t, n) {
|
|
|
591
591
|
return null;
|
|
592
592
|
},
|
|
593
593
|
set(oe) {
|
|
594
|
-
|
|
594
|
+
T.value += 1, A && A.convertTo ? (A.convertTo(C, h, oe, S, D), A.convertTo(y, h, oe, S, D)) : (C[h] = oe, y[h] = oe);
|
|
595
595
|
}
|
|
596
|
-
}), { refreshPanelAfterChanged: W, description: te, isExpand: ve, parentPropertyID: ge } = N, J = { propertyID: B, propertyName:
|
|
596
|
+
}), { refreshPanelAfterChanged: W, description: te, isExpand: ve, parentPropertyID: ge } = N, J = { propertyID: B, propertyName: F, propertyType: O, propertyValue: U, editor: x, visible: P, readonly: $, cascadeConfig: Y, hideCascadeTitle: I, refreshPanelAfterChanged: W, description: te, isExpand: ve, parentPropertyID: ge };
|
|
597
597
|
return g[B] = J, J;
|
|
598
598
|
});
|
|
599
599
|
}
|
|
600
600
|
function d(m, g, y = {}) {
|
|
601
601
|
const C = {}, S = e[m];
|
|
602
602
|
return S && S.categories ? Object.keys(S.categories).map((M) => {
|
|
603
|
-
const v = S.categories[M], h = v == null ? void 0 : v.title,
|
|
604
|
-
return { categoryId: M, categoryName: h, properties:
|
|
603
|
+
const v = S.categories[M], h = v == null ? void 0 : v.title, T = p(v.properties || {}, C, {}, y, g);
|
|
604
|
+
return { categoryId: M, categoryName: h, properties: T };
|
|
605
605
|
}) : [];
|
|
606
606
|
}
|
|
607
607
|
function c(m, g, y, C, S = "") {
|
|
608
|
-
const D = g.$ref.schema, M = g.$ref.converter, v = y[D], h = v.type,
|
|
608
|
+
const D = g.$ref.schema, M = g.$ref.converter, v = y[D], h = v.type, T = n(v), B = {}, N = e[h];
|
|
609
609
|
if (N && N.categories) {
|
|
610
|
-
const L = N.categories[m],
|
|
610
|
+
const L = N.categories[m], F = L == null ? void 0 : L.title;
|
|
611
611
|
M && Object.keys(L.properties).forEach((x) => {
|
|
612
612
|
L.properties[x].$converter = M;
|
|
613
613
|
});
|
|
614
|
-
const O = (L == null ? void 0 : L.properties) || {}, w = p(O, B,
|
|
615
|
-
return { categoryId: m, categoryName:
|
|
614
|
+
const O = (L == null ? void 0 : L.properties) || {}, w = p(O, B, T, v, C, S);
|
|
615
|
+
return { categoryId: m, categoryName: F, properties: w };
|
|
616
616
|
}
|
|
617
617
|
return { categoryId: m, categoryName: "", properties: [] };
|
|
618
618
|
}
|
|
@@ -620,16 +620,16 @@ function En(e, t, n) {
|
|
|
620
620
|
const D = m.type, M = n(m), v = {};
|
|
621
621
|
let h = S || e[D];
|
|
622
622
|
if (h && Object.keys(h).length === 0 && y && y.getPropConfig && (h = y.getPropConfig(C)), h && h.categories) {
|
|
623
|
-
const
|
|
623
|
+
const T = [];
|
|
624
624
|
return Object.keys(h.categories).map((B) => {
|
|
625
625
|
const N = h.categories[B];
|
|
626
626
|
if (N.$ref) {
|
|
627
|
-
|
|
627
|
+
T.push(c(B, N, m, g, C));
|
|
628
628
|
return;
|
|
629
629
|
}
|
|
630
|
-
const L = N == null ? void 0 : N.title,
|
|
631
|
-
|
|
632
|
-
}),
|
|
630
|
+
const L = N == null ? void 0 : N.title, F = N == null ? void 0 : N.tabId, O = N == null ? void 0 : N.tabName, w = N == null ? void 0 : N.hide, x = N == null ? void 0 : N.hideTitle, P = p(N.properties || {}, v, M, m, g, C, N.$converter), { setPropertyRelates: $ } = N, Y = N == null ? void 0 : N.parentPropertyID;
|
|
631
|
+
T.push({ categoryId: B, categoryName: L, tabId: F, tabName: O, hide: w, properties: P, hideTitle: x, setPropertyRelates: $, parentPropertyID: Y });
|
|
632
|
+
}), T;
|
|
633
633
|
}
|
|
634
634
|
return [];
|
|
635
635
|
}
|
|
@@ -641,14 +641,14 @@ function En(e, t, n) {
|
|
|
641
641
|
}
|
|
642
642
|
const Pn = {}, Nn = {};
|
|
643
643
|
En(Pn, Nn, So);
|
|
644
|
-
const jn = {}, In = {}, { getSchemaByType: Lc, resolveSchemaWithDefaultValue:
|
|
645
|
-
En(Rn, Ln,
|
|
646
|
-
function tt(e, t, n = /* @__PURE__ */ new Map(), a = (r,
|
|
647
|
-
return On[t.title] = t, Dn[t.title] = a, Pn[t.title] = o, Nn[t.title] = i, jn[t.title] = t, In[t.title] = a, Rn[t.title] = o, Ln[t.title] = i, (r = {},
|
|
648
|
-
if (!
|
|
644
|
+
const jn = {}, In = {}, { getSchemaByType: Lc, resolveSchemaWithDefaultValue: Uo, resolveSchemaToProps: $c, mappingSchemaToProps: zc, setDesignerContext: Ac } = Mn(jn, In), Rn = {}, Ln = {};
|
|
645
|
+
En(Rn, Ln, Uo);
|
|
646
|
+
function tt(e, t, n = /* @__PURE__ */ new Map(), a = (r, s, l, u) => s, o = {}, i = (r) => r) {
|
|
647
|
+
return On[t.title] = t, Dn[t.title] = a, Pn[t.title] = o, Nn[t.title] = i, jn[t.title] = t, In[t.title] = a, Rn[t.title] = o, Ln[t.title] = i, (r = {}, s = !0) => {
|
|
648
|
+
if (!s)
|
|
649
649
|
return Fo(r, n);
|
|
650
|
-
const
|
|
651
|
-
return Object.assign(u,
|
|
650
|
+
const l = xo(r, t, n), u = Object.keys(e).reduce((p, d) => (p[d] = e[d].default, p), {});
|
|
651
|
+
return Object.assign(u, l);
|
|
652
652
|
};
|
|
653
653
|
}
|
|
654
654
|
function Zt(e, t) {
|
|
@@ -760,11 +760,11 @@ const Xo = "https://json-schema.org/draft/2020-12/schema", Jo = "https://farris-
|
|
|
760
760
|
customClass: { type: String, defaut: "" }
|
|
761
761
|
}, An = tt(Kt, ni, $n, zn, li);
|
|
762
762
|
function Hn(e) {
|
|
763
|
-
const t = b(-1), n = b(-1), a = b(0), o = b(0), i = b(!1), r = b(!1),
|
|
763
|
+
const t = b(-1), n = b(-1), a = b(0), o = b(0), i = b(!1), r = b(!1), s = j(() => ({
|
|
764
764
|
display: i.value ? "block" : "none",
|
|
765
765
|
left: `${a.value}px`,
|
|
766
766
|
cursor: "e-resize"
|
|
767
|
-
})),
|
|
767
|
+
})), l = j(() => ({
|
|
768
768
|
display: r.value ? "block" : "none",
|
|
769
769
|
top: `${o.value}px`,
|
|
770
770
|
cursor: "n-resize"
|
|
@@ -777,17 +777,17 @@ function Hn(e) {
|
|
|
777
777
|
function p(y, C, S, D) {
|
|
778
778
|
const M = e.value;
|
|
779
779
|
if (M) {
|
|
780
|
-
const { left: v, right: h, width:
|
|
780
|
+
const { left: v, right: h, width: T } = M.getBoundingClientRect();
|
|
781
781
|
let B = y.clientX - v;
|
|
782
|
-
D === "right" && (B = h - y.clientX), B > C && (B = C), B < S && (B = S), D === "right" && (B =
|
|
782
|
+
D === "right" && (B = h - y.clientX), B > C && (B = C), B < S && (B = S), D === "right" && (B = T - B), a.value = B;
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
785
|
function d(y, C, S, D) {
|
|
786
786
|
const M = e.value;
|
|
787
787
|
if (M) {
|
|
788
|
-
const { top: v, bottom: h, height:
|
|
788
|
+
const { top: v, bottom: h, height: T } = M.getBoundingClientRect();
|
|
789
789
|
let B = y.clientY - v;
|
|
790
|
-
D === "bottom" && (B = h - y.clientY), B > C && (B = C), B < S && (B = S), D === "bottom" && (B =
|
|
790
|
+
D === "bottom" && (B = h - y.clientY), B > C && (B = C), B < S && (B = S), D === "bottom" && (B = T - B), o.value = B;
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
function c() {
|
|
@@ -826,8 +826,8 @@ function Hn(e) {
|
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
return {
|
|
829
|
-
horizontalResizeHandleStyle:
|
|
830
|
-
verticalResizeHandleStyle:
|
|
829
|
+
horizontalResizeHandleStyle: s,
|
|
830
|
+
verticalResizeHandleStyle: l,
|
|
831
831
|
resizeOverlayStyle: u,
|
|
832
832
|
showHorizontalResizeHandle: i,
|
|
833
833
|
showVerticalResizeHandle: r,
|
|
@@ -854,12 +854,12 @@ const We = /* @__PURE__ */ ie({
|
|
|
854
854
|
bn("layout", {
|
|
855
855
|
useResizeHandleComposition: a
|
|
856
856
|
});
|
|
857
|
-
const
|
|
857
|
+
const s = j(() => xn({
|
|
858
858
|
"f-layout": !0
|
|
859
|
-
}, e == null ? void 0 : e.customClass)),
|
|
859
|
+
}, e == null ? void 0 : e.customClass)), l = j(() => xa({}, e == null ? void 0 : e.customStyle));
|
|
860
860
|
return () => k("div", {
|
|
861
|
-
class:
|
|
862
|
-
style:
|
|
861
|
+
class: s.value,
|
|
862
|
+
style: l.value,
|
|
863
863
|
ref: n
|
|
864
864
|
}, [t.slots.default && t.slots.default(), k("div", {
|
|
865
865
|
class: "f-layout-resize-overlay",
|
|
@@ -1071,8 +1071,8 @@ function Wn(e, t, n, a, o) {
|
|
|
1071
1071
|
const {
|
|
1072
1072
|
horizontalResizeBarPosition: i,
|
|
1073
1073
|
horizontalResizeHandleOffset: r,
|
|
1074
|
-
showHorizontalResizeHandle:
|
|
1075
|
-
showVerticalResizeHandle:
|
|
1074
|
+
showHorizontalResizeHandle: s,
|
|
1075
|
+
showVerticalResizeHandle: l,
|
|
1076
1076
|
verticalResizeBarPosition: u,
|
|
1077
1077
|
verticalResizeHandleOffset: p,
|
|
1078
1078
|
draggingHorizontalResizeHandle: d,
|
|
@@ -1083,35 +1083,35 @@ function Wn(e, t, n, a, o) {
|
|
|
1083
1083
|
let g = "", y, C, S;
|
|
1084
1084
|
function D(h) {
|
|
1085
1085
|
if ((g === "left" || g === "right") && C) {
|
|
1086
|
-
const { left:
|
|
1086
|
+
const { left: T } = C.getBoundingClientRect(), { width: B } = y.getBoundingClientRect(), N = h.clientX - T;
|
|
1087
1087
|
let L = g === "left" ? (B || 0) + (N - i.value) : (B || 0) - (N - i.value);
|
|
1088
1088
|
L = n.value > 0 ? Math.max(n.value, L) : L;
|
|
1089
|
-
const
|
|
1090
|
-
|
|
1089
|
+
const F = m(g, n.value);
|
|
1090
|
+
F != null && (L = F > L ? L : F), e.value = L;
|
|
1091
1091
|
}
|
|
1092
1092
|
if ((g === "top" || g === "bottom") && C) {
|
|
1093
|
-
const { top:
|
|
1093
|
+
const { top: T } = C.getBoundingClientRect(), { height: B } = y.getBoundingClientRect(), N = h.clientY - T;
|
|
1094
1094
|
let L = g === "top" ? (B || 0) + (N - u.value) : (B || 0) - (N - u.value);
|
|
1095
1095
|
L = a.value > 0 ? Math.max(a.value, L) : L;
|
|
1096
|
-
const
|
|
1097
|
-
|
|
1096
|
+
const F = f(g, a.value);
|
|
1097
|
+
F != null && (L = F > L ? L : F), t.value = L;
|
|
1098
1098
|
}
|
|
1099
|
-
r.value = 0, p.value = 0, i.value = -1, u.value = -1,
|
|
1099
|
+
r.value = 0, p.value = 0, i.value = -1, u.value = -1, s.value = !1, l.value = !1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", D), document.body.style.userSelect = "", g = "", y = null, C = null;
|
|
1100
1100
|
}
|
|
1101
|
-
function M(h,
|
|
1102
|
-
if (g =
|
|
1103
|
-
const { left: L } = C.getBoundingClientRect(),
|
|
1104
|
-
r.value =
|
|
1101
|
+
function M(h, T, B) {
|
|
1102
|
+
if (g = T, y = B, s.value = !0, C = h.composedPath().find((L) => (L.className || "").split(" ")[0] === "f-layout"), C) {
|
|
1103
|
+
const { left: L } = C.getBoundingClientRect(), F = h.clientX - L;
|
|
1104
|
+
r.value = F, i.value = F;
|
|
1105
1105
|
const O = m(g, n.value) || 0;
|
|
1106
1106
|
S = (w) => d(w, O, n.value, g), document.addEventListener("mousemove", S), document.addEventListener("mouseup", D), document.body.style.userSelect = "none";
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
|
-
function v(h,
|
|
1110
|
-
if (g =
|
|
1109
|
+
function v(h, T, B) {
|
|
1110
|
+
if (g = T, y = B, l.value = !0, C = h.composedPath().find((L) => (L.className || "").split(" ")[0] === "f-layout"), C) {
|
|
1111
1111
|
const { top: L } = C.getBoundingClientRect();
|
|
1112
1112
|
p.value = h.clientY - L, u.value = h.clientY - L;
|
|
1113
|
-
const
|
|
1114
|
-
S = (O) => c(O,
|
|
1113
|
+
const F = f(g, a.value) || 0;
|
|
1114
|
+
S = (O) => c(O, F, a.value, g), document.addEventListener("mousemove", S), document.addEventListener("mouseup", D), document.body.style.userSelect = "none";
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
1117
|
return { onClickHorizontalResizeBar: M, onClickVerticalResizeBar: v };
|
|
@@ -1121,13 +1121,13 @@ const je = /* @__PURE__ */ ie({
|
|
|
1121
1121
|
props: en,
|
|
1122
1122
|
emits: [],
|
|
1123
1123
|
setup(e, t) {
|
|
1124
|
-
const n = b(e.minHeight <= 0 ? 100 : e.minHeight), a = b(e.minWidth <= 0 ? 100 : e.minWidth), o = b(e.width <= 0 ? 100 : e.width), i = b(e.height <= 0 ? 100 : e.height), r = b(Math.max(n.value, i.value)),
|
|
1124
|
+
const n = b(e.minHeight <= 0 ? 100 : e.minHeight), a = b(e.minWidth <= 0 ? 100 : e.minWidth), o = b(e.width <= 0 ? 100 : e.width), i = b(e.height <= 0 ? 100 : e.height), r = b(Math.max(n.value, i.value)), s = b(Math.max(a.value, o.value)), l = b(), u = b(e.position), p = b(e.resizable);
|
|
1125
1125
|
ee(() => e.resizable, (v) => {
|
|
1126
1126
|
p.value = v;
|
|
1127
1127
|
});
|
|
1128
1128
|
const d = De("layout"), {
|
|
1129
1129
|
useResizeHandleComposition: c
|
|
1130
|
-
} = d, f = Wn(
|
|
1130
|
+
} = d, f = Wn(s, r, a, n, c), {
|
|
1131
1131
|
onClickHorizontalResizeBar: m,
|
|
1132
1132
|
onClickVerticalResizeBar: g
|
|
1133
1133
|
} = f, y = j(() => ({
|
|
@@ -1138,7 +1138,7 @@ const je = /* @__PURE__ */ ie({
|
|
|
1138
1138
|
"f-layout-resize-bar-w": u.value === "right"
|
|
1139
1139
|
})), C = j(() => u.value !== "center" && p.value);
|
|
1140
1140
|
function S(v, h) {
|
|
1141
|
-
(h === "left" || h === "right") && m(v, h,
|
|
1141
|
+
(h === "left" || h === "right") && m(v, h, l.value), (h === "top" || h === "bottom") && g(v, h, l.value);
|
|
1142
1142
|
}
|
|
1143
1143
|
const D = j(() => {
|
|
1144
1144
|
const v = {
|
|
@@ -1146,13 +1146,13 @@ const je = /* @__PURE__ */ ie({
|
|
|
1146
1146
|
"f-page-content-nav": u.value === "left" || u.value === "right",
|
|
1147
1147
|
"f-page-content-main": u.value === "center"
|
|
1148
1148
|
};
|
|
1149
|
-
return e.customClass && String(e.customClass).split(" ").reduce((h,
|
|
1149
|
+
return e.customClass && String(e.customClass).split(" ").reduce((h, T) => (h[T] = !0, h), v), v;
|
|
1150
1150
|
}), M = j(() => {
|
|
1151
1151
|
const v = {};
|
|
1152
|
-
return (
|
|
1152
|
+
return (s.value && u.value === "left" || u.value === "right") && (v.width = `${s.value}px`), (r.value && u.value === "bottom" || u.value === "top") && (v.height = `${r.value}px`), e.visible || (v.display = "none"), v;
|
|
1153
1153
|
});
|
|
1154
1154
|
return () => k("div", {
|
|
1155
|
-
ref:
|
|
1155
|
+
ref: l,
|
|
1156
1156
|
class: D.value,
|
|
1157
1157
|
style: M.value,
|
|
1158
1158
|
"data-position": u.value
|
|
@@ -1169,13 +1169,13 @@ function wi(e, t) {
|
|
|
1169
1169
|
return { canAccepts: n };
|
|
1170
1170
|
}
|
|
1171
1171
|
function qn(e, t, n) {
|
|
1172
|
-
var
|
|
1172
|
+
var F;
|
|
1173
1173
|
const a = n && n.getStyles && n.getStyles() || "", o = n && n.getDesignerClass && n.getDesignerClass() || "", i = b();
|
|
1174
1174
|
let r;
|
|
1175
|
-
function
|
|
1175
|
+
function s() {
|
|
1176
1176
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function l() {
|
|
1179
1179
|
return !1;
|
|
1180
1180
|
}
|
|
1181
1181
|
function u() {
|
|
@@ -1249,12 +1249,12 @@ function qn(e, t, n) {
|
|
|
1249
1249
|
w.type === "component-ref" && (x = w.component);
|
|
1250
1250
|
const P = e.value.querySelectorAll(`#${x}-design-item`);
|
|
1251
1251
|
P != null && P.length && Array.from(P).map(($) => {
|
|
1252
|
-
var
|
|
1253
|
-
(
|
|
1252
|
+
var Y;
|
|
1253
|
+
(Y = $ == null ? void 0 : $.componentInstance) != null && Y.value.onRemoveComponent && $.componentInstance.value.onRemoveComponent(O);
|
|
1254
1254
|
});
|
|
1255
1255
|
});
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function T() {
|
|
1258
1258
|
if (n && n.getCustomButtons)
|
|
1259
1259
|
return n.getCustomButtons();
|
|
1260
1260
|
}
|
|
@@ -1270,8 +1270,8 @@ function qn(e, t, n) {
|
|
|
1270
1270
|
if (n != null && n.getComponentTitle)
|
|
1271
1271
|
w = n.getComponentTitle();
|
|
1272
1272
|
else {
|
|
1273
|
-
const { text: $, title:
|
|
1274
|
-
w = $ ||
|
|
1273
|
+
const { text: $, title: Y, label: I, mainTitle: A, name: U, type: W } = t.schema;
|
|
1274
|
+
w = $ || Y || I || A || U || ((P = z[W]) == null ? void 0 : P.name);
|
|
1275
1275
|
}
|
|
1276
1276
|
w && r.getControlBasicInfoMap().set(t.schema.id, {
|
|
1277
1277
|
componentTitle: w,
|
|
@@ -1282,13 +1282,13 @@ function qn(e, t, n) {
|
|
|
1282
1282
|
var $;
|
|
1283
1283
|
const { changeObject: w } = O, { propertyID: x, propertyValue: P } = w;
|
|
1284
1284
|
if (["text", "title", "label", "name", "mainTitle"].includes(($ = O == null ? void 0 : O.changeObject) == null ? void 0 : $.propertyID) && x && P && (B(), r)) {
|
|
1285
|
-
const
|
|
1286
|
-
var
|
|
1287
|
-
return ((
|
|
1285
|
+
const Y = r.getControlBasicInfoMap(), I = Y.keys().toArray().filter((A) => {
|
|
1286
|
+
var U, W;
|
|
1287
|
+
return ((U = Y.get(A)) == null ? void 0 : U.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
|
|
1288
1288
|
});
|
|
1289
1289
|
I != null && I.length && I.forEach((A) => {
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1290
|
+
const U = Y.get(A).parentPathName.split(" > ");
|
|
1291
|
+
U[0] = P, Y.get(A).parentPathName = U.join(" > ");
|
|
1292
1292
|
});
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
@@ -1297,13 +1297,13 @@ function qn(e, t, n) {
|
|
|
1297
1297
|
return n.onPropertyChanged(O);
|
|
1298
1298
|
}
|
|
1299
1299
|
return i.value = {
|
|
1300
|
-
canMove:
|
|
1301
|
-
canSelectParent:
|
|
1300
|
+
canMove: s(),
|
|
1301
|
+
canSelectParent: l(),
|
|
1302
1302
|
canDelete: u(),
|
|
1303
1303
|
canNested: !p(),
|
|
1304
1304
|
contents: t == null ? void 0 : t.schema.contents,
|
|
1305
1305
|
elementRef: e,
|
|
1306
|
-
parent: (
|
|
1306
|
+
parent: (F = t == null ? void 0 : t.parent) == null ? void 0 : F.componentInstance,
|
|
1307
1307
|
schema: t == null ? void 0 : t.schema,
|
|
1308
1308
|
styles: a,
|
|
1309
1309
|
designerClass: o,
|
|
@@ -1319,7 +1319,7 @@ function qn(e, t, n) {
|
|
|
1319
1319
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || b(!1),
|
|
1320
1320
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || b(!1),
|
|
1321
1321
|
onRemoveComponent: h,
|
|
1322
|
-
getCustomButtons:
|
|
1322
|
+
getCustomButtons: T,
|
|
1323
1323
|
onPropertyChanged: L,
|
|
1324
1324
|
setComponentBasicInfoMap: B,
|
|
1325
1325
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
@@ -1334,8 +1334,8 @@ const ki = /* @__PURE__ */ ie({
|
|
|
1334
1334
|
const n = b(), a = De("design-item-context"), o = wi(a.schema, (p = a.parent) == null ? void 0 : p.schema), i = qn(n, a, o);
|
|
1335
1335
|
i.value.canNested = !1;
|
|
1336
1336
|
const r = Hn(n), {
|
|
1337
|
-
horizontalResizeHandleStyle:
|
|
1338
|
-
verticalResizeHandleStyle:
|
|
1337
|
+
horizontalResizeHandleStyle: s,
|
|
1338
|
+
verticalResizeHandleStyle: l,
|
|
1339
1339
|
resizeOverlayStyle: u
|
|
1340
1340
|
} = r;
|
|
1341
1341
|
return bn("layout", {
|
|
@@ -1350,10 +1350,10 @@ const ki = /* @__PURE__ */ ie({
|
|
|
1350
1350
|
style: u.value
|
|
1351
1351
|
}, null), k("div", {
|
|
1352
1352
|
class: "f-layout-horizontal-resize-proxy",
|
|
1353
|
-
style:
|
|
1353
|
+
style: s.value
|
|
1354
1354
|
}, null), k("div", {
|
|
1355
1355
|
class: "f-layout-vertical-resize-proxy",
|
|
1356
|
-
style:
|
|
1356
|
+
style: l.value
|
|
1357
1357
|
}, null)]);
|
|
1358
1358
|
}
|
|
1359
1359
|
});
|
|
@@ -1394,9 +1394,9 @@ const Fi = /* @__PURE__ */ ie({
|
|
|
1394
1394
|
r.value.canNested = !1, r.value.canMove = !1, r.value.canDelete = !1, he(() => {
|
|
1395
1395
|
a.value.componentInstance = r;
|
|
1396
1396
|
}), t.expose(r.value);
|
|
1397
|
-
const
|
|
1397
|
+
const s = b(Math.max(e.minHeight, e.height)), l = b(Math.max(e.minWidth, e.width)), u = b(e.minHeight), p = b(e.minWidth), d = b(e.position), c = De("layout"), {
|
|
1398
1398
|
useResizeHandleComposition: f
|
|
1399
|
-
} = c, m = Wn(
|
|
1399
|
+
} = c, m = Wn(l, s, p, u, f), {
|
|
1400
1400
|
onClickHorizontalResizeBar: g,
|
|
1401
1401
|
onClickVerticalResizeBar: y
|
|
1402
1402
|
} = m, C = j(() => ({
|
|
@@ -1415,12 +1415,12 @@ const Fi = /* @__PURE__ */ ie({
|
|
|
1415
1415
|
"f-page-content-nav": d.value === "left" || d.value === "right",
|
|
1416
1416
|
"f-page-content-main": d.value === "center"
|
|
1417
1417
|
};
|
|
1418
|
-
return e.customClass && String(e.customClass).split(" ").reduce((h,
|
|
1418
|
+
return e.customClass && String(e.customClass).split(" ").reduce((h, T) => (h[T] = !0, h), v), v;
|
|
1419
1419
|
}), M = j(() => {
|
|
1420
1420
|
const v = {
|
|
1421
1421
|
flex: "1"
|
|
1422
1422
|
};
|
|
1423
|
-
return (
|
|
1423
|
+
return (l.value && d.value === "left" || d.value === "right") && (v.width = `${l.value}px`), (s.value && d.value === "bottom" || d.value === "top") && (v.height = `${s.value}px`), v;
|
|
1424
1424
|
});
|
|
1425
1425
|
return () => k("div", {
|
|
1426
1426
|
ref: n,
|
|
@@ -1627,9 +1627,9 @@ const Ti = /* @__PURE__ */ new Map([
|
|
|
1627
1627
|
type: "boolean",
|
|
1628
1628
|
default: !1
|
|
1629
1629
|
},
|
|
1630
|
-
|
|
1630
|
+
onChange: {
|
|
1631
1631
|
description: "",
|
|
1632
|
-
type: "
|
|
1632
|
+
type: "string"
|
|
1633
1633
|
}
|
|
1634
1634
|
}, Ni = [
|
|
1635
1635
|
"type"
|
|
@@ -1847,7 +1847,7 @@ const tn = {
|
|
|
1847
1847
|
props: $i,
|
|
1848
1848
|
emits: ["selectionChange"],
|
|
1849
1849
|
setup(e, t) {
|
|
1850
|
-
const n = b(), a = b(e.dataSource), o = b([]), i = b(e.separator), r = b(e.width),
|
|
1850
|
+
const n = b(), a = b(e.dataSource), o = b([]), i = b(e.separator), r = b(e.width), s = b(e.maxHeight), l = b(String(e.selectedValues).split(i.value)), u = j(() => e.multiSelect), p = j(() => ({
|
|
1851
1851
|
enableSelectRow: !0,
|
|
1852
1852
|
multiSelect: e.multiSelect,
|
|
1853
1853
|
multiSelectMode: "OnCheckAndClick",
|
|
@@ -1860,13 +1860,13 @@ const tn = {
|
|
|
1860
1860
|
}), j(() => e.enableSearch ? "SearchBar" : "ContentHeader");
|
|
1861
1861
|
const d = j(() => {
|
|
1862
1862
|
const y = {};
|
|
1863
|
-
return r.value !== void 0 && (y.width = `${r.value}px`),
|
|
1863
|
+
return r.value !== void 0 && (y.width = `${r.value}px`), s.value !== void 0 && s.value > 0 && (y.maxHeight = `${s.value}px`), y;
|
|
1864
1864
|
});
|
|
1865
1865
|
function c(y) {
|
|
1866
1866
|
n.value.search(y);
|
|
1867
1867
|
}
|
|
1868
1868
|
function f(y) {
|
|
1869
|
-
o.value = y.map((C) => Object.assign({}, C)),
|
|
1869
|
+
o.value = y.map((C) => Object.assign({}, C)), l.value = y.map((C) => C[e.idField]), t.emit("selectionChange", o.value);
|
|
1870
1870
|
}
|
|
1871
1871
|
function m(y) {
|
|
1872
1872
|
if (e.enableHighlightSearch)
|
|
@@ -1878,7 +1878,7 @@ const tn = {
|
|
|
1878
1878
|
typeof S == "function" ? C = a.value.filter((D) => S(y, D)) : C = a.value.filter((D) => D[e.valueField].indexOf(y) > -1 || D[e.textField].indexOf(y) > -1), n.value.updateDataSource(C);
|
|
1879
1879
|
}
|
|
1880
1880
|
ee([() => e.selectedValues], ([y]) => {
|
|
1881
|
-
e.multiSelect ?
|
|
1881
|
+
e.multiSelect ? l.value = y.split(i.value) : l.value = [y];
|
|
1882
1882
|
});
|
|
1883
1883
|
function g(y) {
|
|
1884
1884
|
n.value.activeRowById(y);
|
|
@@ -1886,7 +1886,7 @@ const tn = {
|
|
|
1886
1886
|
return he(() => {
|
|
1887
1887
|
var y, C;
|
|
1888
1888
|
if (!e.multiSelect) {
|
|
1889
|
-
const S = (y =
|
|
1889
|
+
const S = (y = l.value) == null ? void 0 : y[0];
|
|
1890
1890
|
let D = S;
|
|
1891
1891
|
if (!Ne(S)) {
|
|
1892
1892
|
const M = typeof S, v = typeof ((C = a.value[0]) == null ? void 0 : C[e.valueField || e.idField]);
|
|
@@ -1913,7 +1913,7 @@ const tn = {
|
|
|
1913
1913
|
multiSelect: e.multiSelect,
|
|
1914
1914
|
selection: p.value,
|
|
1915
1915
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
1916
|
-
selectionValues:
|
|
1916
|
+
selectionValues: l.value,
|
|
1917
1917
|
onSelectionUpdate: f,
|
|
1918
1918
|
onAfterSearch: m
|
|
1919
1919
|
}, null)]);
|
|
@@ -1928,11 +1928,11 @@ function Ai(e) {
|
|
|
1928
1928
|
return D - M;
|
|
1929
1929
|
});
|
|
1930
1930
|
}
|
|
1931
|
-
function
|
|
1931
|
+
function s(c) {
|
|
1932
1932
|
const f = r(c).map((m) => m[e.textField]).join(e.separator);
|
|
1933
1933
|
n.value = i.value ? f || c : f;
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function l(c) {
|
|
1936
1936
|
if (e.multiSelect) {
|
|
1937
1937
|
const f = c.split(e.separator).map((g) => [g, !0]), m = new Map(f);
|
|
1938
1938
|
return o.value.filter((g) => m.has(g[e.textField]));
|
|
@@ -1944,7 +1944,7 @@ function Ai(e) {
|
|
|
1944
1944
|
return f[e.idField] = c, f[e.textField] = c, [f];
|
|
1945
1945
|
}
|
|
1946
1946
|
function p(c) {
|
|
1947
|
-
let f =
|
|
1947
|
+
let f = l(c);
|
|
1948
1948
|
const m = f && f.length > 0;
|
|
1949
1949
|
return i.value && !m && (f = u(c)), f;
|
|
1950
1950
|
}
|
|
@@ -1970,8 +1970,8 @@ function Ai(e) {
|
|
|
1970
1970
|
f && (n.value = f[e.textField]);
|
|
1971
1971
|
}
|
|
1972
1972
|
}), ee(() => e.modelValue, (c) => {
|
|
1973
|
-
a.value = c,
|
|
1974
|
-
}),
|
|
1973
|
+
a.value = c, s(c);
|
|
1974
|
+
}), s(e.modelValue), { dataSource: o, displayText: n, editable: i, modelValue: a, getItemsByDisplayText: l, getItemsByValue: r, getSelectedItemsByDisplayText: p };
|
|
1975
1975
|
}
|
|
1976
1976
|
const vt = /* @__PURE__ */ ie({
|
|
1977
1977
|
name: "FComboList",
|
|
@@ -1980,7 +1980,7 @@ const vt = /* @__PURE__ */ ie({
|
|
|
1980
1980
|
setup(e, t) {
|
|
1981
1981
|
const {
|
|
1982
1982
|
t: n
|
|
1983
|
-
} = bt(), a = b(), o = b(), i = b(e.disabled || e.readonly), r = b(e.enableClear),
|
|
1983
|
+
} = bt(), a = b(), o = b(), i = b(e.disabled || e.readonly), r = b(e.enableClear), s = b(e.enableSearch), l = b(e.readonly), {
|
|
1984
1984
|
dataSource: u,
|
|
1985
1985
|
displayText: p,
|
|
1986
1986
|
editable: d,
|
|
@@ -2004,9 +2004,9 @@ const vt = /* @__PURE__ */ ie({
|
|
|
2004
2004
|
M(w);
|
|
2005
2005
|
}
|
|
2006
2006
|
function h() {
|
|
2007
|
-
|
|
2007
|
+
l.value || p.value;
|
|
2008
2008
|
}
|
|
2009
|
-
function
|
|
2009
|
+
function T(w) {
|
|
2010
2010
|
var x;
|
|
2011
2011
|
c.value = "", (x = a.value) == null || x.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
|
|
2012
2012
|
}
|
|
@@ -2016,14 +2016,16 @@ const vt = /* @__PURE__ */ ie({
|
|
|
2016
2016
|
}
|
|
2017
2017
|
function N(w) {
|
|
2018
2018
|
if (e.multiSelect) {
|
|
2019
|
-
const x =
|
|
2019
|
+
const x = m(w);
|
|
2020
|
+
e.viewType;
|
|
2021
|
+
const $ = x.map((Y) => Y[e.idField || e.valueField]).join(e.separator);
|
|
2020
2022
|
c.value !== $ && (c.value = $, t.emit("update:modelValue", c.value), t.emit("change", x, c.value));
|
|
2021
2023
|
}
|
|
2022
2024
|
}
|
|
2023
2025
|
function L() {
|
|
2024
2026
|
return p.value;
|
|
2025
2027
|
}
|
|
2026
|
-
function
|
|
2028
|
+
function F(w) {
|
|
2027
2029
|
const {
|
|
2028
2030
|
value: x
|
|
2029
2031
|
} = w.target;
|
|
@@ -2035,13 +2037,13 @@ const vt = /* @__PURE__ */ ie({
|
|
|
2035
2037
|
return t.expose({
|
|
2036
2038
|
getDisplayText: L,
|
|
2037
2039
|
hidePopup: O
|
|
2038
|
-
}), ee([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([w, x, P, $,
|
|
2039
|
-
i.value = w, d.value = x, r.value = P,
|
|
2040
|
+
}), ee([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([w, x, P, $, Y]) => {
|
|
2041
|
+
i.value = w, d.value = x, r.value = P, s.value = $, l.value = Y;
|
|
2040
2042
|
}), () => k(Oa, {
|
|
2041
2043
|
ref: o,
|
|
2042
2044
|
id: e.id,
|
|
2043
2045
|
disable: i.value,
|
|
2044
|
-
readonly:
|
|
2046
|
+
readonly: l.value,
|
|
2045
2047
|
forcePlaceholder: e.forcePlaceholder,
|
|
2046
2048
|
editable: d.value,
|
|
2047
2049
|
buttonContent: y.value,
|
|
@@ -2056,11 +2058,11 @@ const vt = /* @__PURE__ */ ie({
|
|
|
2056
2058
|
"onUpdate:modelValue": (w) => p.value = w,
|
|
2057
2059
|
focusOnCreated: e.focusOnCreated,
|
|
2058
2060
|
selectOnCreated: e.selectOnCreated,
|
|
2059
|
-
onClear:
|
|
2061
|
+
onClear: T,
|
|
2060
2062
|
onClick: h,
|
|
2061
2063
|
onChange: N,
|
|
2062
2064
|
onBlur: v,
|
|
2063
|
-
onInput:
|
|
2065
|
+
onInput: F,
|
|
2064
2066
|
beforeOpen: e.beforeOpen,
|
|
2065
2067
|
placement: e.placement,
|
|
2066
2068
|
popupMinWidth: e.minPanelWidth,
|
|
@@ -2078,7 +2080,7 @@ const vt = /* @__PURE__ */ ie({
|
|
|
2078
2080
|
selectedValues: c.value,
|
|
2079
2081
|
separator: e.separator,
|
|
2080
2082
|
multiSelect: e.multiSelect,
|
|
2081
|
-
enableSearch:
|
|
2083
|
+
enableSearch: s.value,
|
|
2082
2084
|
maxHeight: e.maxHeight,
|
|
2083
2085
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
2084
2086
|
width: e.fitEditor ? S.value : void 0,
|
|
@@ -2099,7 +2101,7 @@ class Hi extends Na {
|
|
|
2099
2101
|
super(t, n);
|
|
2100
2102
|
}
|
|
2101
2103
|
getCommonEditorProperties(t) {
|
|
2102
|
-
var n, a, o
|
|
2104
|
+
var n, a, o;
|
|
2103
2105
|
return {
|
|
2104
2106
|
viewType: {
|
|
2105
2107
|
visible: !!((n = t.editor) != null && n.multiSelect),
|
|
@@ -2133,14 +2135,15 @@ class Hi extends Na {
|
|
|
2133
2135
|
title: "允许编辑",
|
|
2134
2136
|
type: "boolean",
|
|
2135
2137
|
refreshPanelAfterChanged: !0,
|
|
2136
|
-
readonly:
|
|
2137
|
-
|
|
2138
|
-
enableHighlightSearch: {
|
|
2139
|
-
visible: !!((l = t.editor) != null && l.editable),
|
|
2140
|
-
description: "编辑状态下启用高亮搜索",
|
|
2141
|
-
title: "启用高亮搜索",
|
|
2142
|
-
type: "boolean"
|
|
2138
|
+
readonly: !0
|
|
2139
|
+
// readonly: !!propertyData.editor?.multiSelect && (propertyData.editor?.viewType === 'tag' || !propertyData.editor!.viewType)
|
|
2143
2140
|
}
|
|
2141
|
+
// enableHighlightSearch: {
|
|
2142
|
+
// visible: !!propertyData.editor?.editable,
|
|
2143
|
+
// description: "编辑状态下启用高亮搜索",
|
|
2144
|
+
// title: "启用高亮搜索",
|
|
2145
|
+
// type: "boolean"
|
|
2146
|
+
// },
|
|
2144
2147
|
};
|
|
2145
2148
|
}
|
|
2146
2149
|
getEditorProperties(t) {
|
|
@@ -2148,8 +2151,8 @@ class Hi extends Na {
|
|
|
2148
2151
|
const n = this;
|
|
2149
2152
|
let a = "";
|
|
2150
2153
|
if (((i = t == null ? void 0 : t.binding) == null ? void 0 : i.type) === "Form") {
|
|
2151
|
-
const
|
|
2152
|
-
(r =
|
|
2154
|
+
const s = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
|
|
2155
|
+
(r = s == null ? void 0 : s.schemaField) != null && r.type && (a = s.schemaField.type.$type);
|
|
2153
2156
|
}
|
|
2154
2157
|
return n.getComponentConfig(t, { type: "combo-list" }, {
|
|
2155
2158
|
// enableSearch: {
|
|
@@ -2243,31 +2246,31 @@ class Hi extends Na {
|
|
|
2243
2246
|
}
|
|
2244
2247
|
},
|
|
2245
2248
|
...this.getCommonEditorProperties(t)
|
|
2246
|
-
}, (
|
|
2247
|
-
if (!
|
|
2249
|
+
}, (s, l) => {
|
|
2250
|
+
if (!s || !l.editor)
|
|
2248
2251
|
return;
|
|
2249
2252
|
const u = this;
|
|
2250
|
-
switch (
|
|
2253
|
+
switch (s.propertyID) {
|
|
2251
2254
|
case "dataSourceType": {
|
|
2252
|
-
|
|
2255
|
+
s.propertyValue === "static" ? (l.editor.valueField = "value", l.editor.textField = "name", l.editor.remote = null) : s.propertyValue === "dynamic" && (l.editor.remote = { method: "GET" }, l.editor.valueField = "value", l.editor.textField = "name");
|
|
2253
2256
|
break;
|
|
2254
2257
|
}
|
|
2255
2258
|
case "data": {
|
|
2256
|
-
!u.checkEnumDataReadonly(
|
|
2259
|
+
!u.checkEnumDataReadonly(l) && l.formatter && (l.formatter.data = [...s.propertyValue]);
|
|
2257
2260
|
break;
|
|
2258
2261
|
}
|
|
2259
2262
|
case "viewType":
|
|
2260
|
-
|
|
2263
|
+
s.propertyValue === "tag" && (l.editor.editable = !1);
|
|
2261
2264
|
}
|
|
2262
2265
|
});
|
|
2263
2266
|
}
|
|
2264
2267
|
getGridFieldEdtiorProperties(t, n) {
|
|
2265
|
-
var r,
|
|
2268
|
+
var r, s, l, u;
|
|
2266
2269
|
const a = this;
|
|
2267
2270
|
let o = "";
|
|
2268
2271
|
if (((r = t == null ? void 0 : t.binding) == null ? void 0 : r.type) === "Form") {
|
|
2269
2272
|
const p = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
|
|
2270
|
-
(
|
|
2273
|
+
(s = p == null ? void 0 : p.schemaField) != null && s.type && (o = p.schemaField.type.$type);
|
|
2271
2274
|
}
|
|
2272
2275
|
return a.getComponentConfig(t, { type: "combo-list" }, {
|
|
2273
2276
|
// editable: {
|
|
@@ -2286,7 +2289,7 @@ class Hi extends Na {
|
|
|
2286
2289
|
title: "数据",
|
|
2287
2290
|
type: "array",
|
|
2288
2291
|
visible: !0,
|
|
2289
|
-
...a.getItemCollectionEditor(t, (
|
|
2292
|
+
...a.getItemCollectionEditor(t, (l = t.editor) == null ? void 0 : l.valueField, (u = t.editor) == null ? void 0 : u.textField),
|
|
2290
2293
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
2291
2294
|
refreshPanelAfterChanged: !0
|
|
2292
2295
|
},
|
|
@@ -3862,7 +3865,7 @@ const qi = [
|
|
|
3862
3865
|
keyFront: "DefaultFunction",
|
|
3863
3866
|
className: ""
|
|
3864
3867
|
}
|
|
3865
|
-
],
|
|
3868
|
+
], Yi = [
|
|
3866
3869
|
{
|
|
3867
3870
|
key: "NumberThousandSeparator",
|
|
3868
3871
|
name: "数字千位分隔",
|
|
@@ -4012,7 +4015,7 @@ const qi = [
|
|
|
4012
4015
|
keyFront: "DefaultFunction",
|
|
4013
4016
|
className: ""
|
|
4014
4017
|
}
|
|
4015
|
-
],
|
|
4018
|
+
], Ui = [
|
|
4016
4019
|
{
|
|
4017
4020
|
key: "SubString",
|
|
4018
4021
|
name: "取子字符串",
|
|
@@ -4508,8 +4511,8 @@ const qi = [
|
|
|
4508
4511
|
], Ji = {
|
|
4509
4512
|
analytical: { name: "数据", items: Gi },
|
|
4510
4513
|
datetime: { name: "时间", items: _i },
|
|
4511
|
-
string: { name: "字符", items:
|
|
4512
|
-
math: { name: "数字", items:
|
|
4514
|
+
string: { name: "字符", items: Ui },
|
|
4515
|
+
math: { name: "数字", items: Yi },
|
|
4513
4516
|
translate: { name: "转换", items: Xi },
|
|
4514
4517
|
advanced: { name: "高级", items: qi }
|
|
4515
4518
|
};
|
|
@@ -4569,10 +4572,10 @@ function nr(e, t) {
|
|
|
4569
4572
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
|
|
4570
4573
|
var n = [], a = !0, o = !1, i = void 0;
|
|
4571
4574
|
try {
|
|
4572
|
-
for (var r = e[Symbol.iterator](),
|
|
4575
|
+
for (var r = e[Symbol.iterator](), s; !(a = (s = r.next()).done) && (n.push(s.value), !(t && n.length === t)); a = !0)
|
|
4573
4576
|
;
|
|
4574
|
-
} catch (
|
|
4575
|
-
o = !0, i =
|
|
4577
|
+
} catch (l) {
|
|
4578
|
+
o = !0, i = l;
|
|
4576
4579
|
} finally {
|
|
4577
4580
|
try {
|
|
4578
4581
|
!a && r.return != null && r.return();
|
|
@@ -4643,9 +4646,9 @@ function mt(e) {
|
|
|
4643
4646
|
for (var n = this, a = arguments.length, o = new Array(a), i = 0; i < a; i++)
|
|
4644
4647
|
o[i] = arguments[i];
|
|
4645
4648
|
return o.length >= e.length ? e.apply(this, o) : function() {
|
|
4646
|
-
for (var r = arguments.length,
|
|
4647
|
-
l
|
|
4648
|
-
return t.apply(n, [].concat(o,
|
|
4649
|
+
for (var r = arguments.length, s = new Array(r), l = 0; l < r; l++)
|
|
4650
|
+
s[l] = arguments[l];
|
|
4651
|
+
return t.apply(n, [].concat(o, s));
|
|
4649
4652
|
};
|
|
4650
4653
|
};
|
|
4651
4654
|
}
|
|
@@ -4702,16 +4705,16 @@ function yr(e) {
|
|
|
4702
4705
|
var n = {
|
|
4703
4706
|
current: e
|
|
4704
4707
|
}, a = mt(gr)(n, t), o = mt(hr)(n), i = mt(St.changes)(e), r = mt(vr)(n);
|
|
4705
|
-
function
|
|
4708
|
+
function s() {
|
|
4706
4709
|
var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(p) {
|
|
4707
4710
|
return p;
|
|
4708
4711
|
};
|
|
4709
4712
|
return St.selector(u), u(n.current);
|
|
4710
4713
|
}
|
|
4711
|
-
function
|
|
4714
|
+
function l(u) {
|
|
4712
4715
|
rr(a, o, i, r)(u);
|
|
4713
4716
|
}
|
|
4714
|
-
return [
|
|
4717
|
+
return [s, l];
|
|
4715
4718
|
}
|
|
4716
4719
|
function vr(e, t) {
|
|
4717
4720
|
return ht(t) ? t(e.current) : t;
|
|
@@ -4737,9 +4740,9 @@ function wr(e) {
|
|
|
4737
4740
|
for (var n = this, a = arguments.length, o = new Array(a), i = 0; i < a; i++)
|
|
4738
4741
|
o[i] = arguments[i];
|
|
4739
4742
|
return o.length >= e.length ? e.apply(this, o) : function() {
|
|
4740
|
-
for (var r = arguments.length,
|
|
4741
|
-
l
|
|
4742
|
-
return t.apply(n, [].concat(o,
|
|
4743
|
+
for (var r = arguments.length, s = new Array(r), l = 0; l < r; l++)
|
|
4744
|
+
s[l] = arguments[l];
|
|
4745
|
+
return t.apply(n, [].concat(o, s));
|
|
4743
4746
|
};
|
|
4744
4747
|
};
|
|
4745
4748
|
}
|
|
@@ -4784,9 +4787,9 @@ var _n = {
|
|
|
4784
4787
|
}, o);
|
|
4785
4788
|
};
|
|
4786
4789
|
};
|
|
4787
|
-
function
|
|
4790
|
+
function Yn(e, t) {
|
|
4788
4791
|
return Object.keys(t).forEach(function(n) {
|
|
4789
|
-
t[n] instanceof Object && e[n] && Object.assign(t[n],
|
|
4792
|
+
t[n] instanceof Object && e[n] && Object.assign(t[n], Yn(e[n], t[n]));
|
|
4790
4793
|
}), pn(pn({}, e), t);
|
|
4791
4794
|
}
|
|
4792
4795
|
var Mr = {
|
|
@@ -4809,12 +4812,12 @@ var Or = br.create({
|
|
|
4809
4812
|
resolve: null,
|
|
4810
4813
|
reject: null,
|
|
4811
4814
|
monaco: null
|
|
4812
|
-
}),
|
|
4815
|
+
}), Un = er(Or, 2), Ct = Un[0], Et = Un[1];
|
|
4813
4816
|
function Dr(e) {
|
|
4814
4817
|
var t = Tr.config(e), n = t.monaco, a = Ki(t, ["monaco"]);
|
|
4815
4818
|
Et(function(o) {
|
|
4816
4819
|
return {
|
|
4817
|
-
config:
|
|
4820
|
+
config: Yn(o.config, a),
|
|
4818
4821
|
monaco: n
|
|
4819
4822
|
};
|
|
4820
4823
|
});
|
|
@@ -4889,7 +4892,7 @@ var _t = new Promise(function(e, t) {
|
|
|
4889
4892
|
resolve: e,
|
|
4890
4893
|
reject: t
|
|
4891
4894
|
});
|
|
4892
|
-
}),
|
|
4895
|
+
}), Yt = {
|
|
4893
4896
|
config: Dr,
|
|
4894
4897
|
init: Er,
|
|
4895
4898
|
__getMonacoInstance: Rr
|
|
@@ -4926,22 +4929,22 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
4926
4929
|
async function r() {
|
|
4927
4930
|
return fetch(e.configPath).then((m) => m.json());
|
|
4928
4931
|
}
|
|
4929
|
-
async function
|
|
4932
|
+
async function s() {
|
|
4930
4933
|
if (n.value && !o) {
|
|
4931
4934
|
const m = await r(), {
|
|
4932
4935
|
vsPath: g
|
|
4933
4936
|
} = m;
|
|
4934
|
-
|
|
4937
|
+
Yt.config({
|
|
4935
4938
|
paths: {
|
|
4936
4939
|
vs: window.location.origin + g
|
|
4937
4940
|
}
|
|
4938
|
-
}),
|
|
4941
|
+
}), Yt.config({
|
|
4939
4942
|
"vs/nls": {
|
|
4940
4943
|
availableLanguages: {
|
|
4941
4944
|
"*": "zh-cn"
|
|
4942
4945
|
}
|
|
4943
4946
|
}
|
|
4944
|
-
}),
|
|
4947
|
+
}), Yt.init().then((y) => {
|
|
4945
4948
|
a.value = y, o = y.editor.create(n.value, {
|
|
4946
4949
|
value: i.value,
|
|
4947
4950
|
automaticLayout: !0,
|
|
@@ -4971,13 +4974,13 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
4971
4974
|
ee(() => e.modelValue, (m) => {
|
|
4972
4975
|
i.value = m, o == null || o.setValue(m);
|
|
4973
4976
|
});
|
|
4974
|
-
const
|
|
4977
|
+
const l = b(), u = new ResizeObserver((m) => {
|
|
4975
4978
|
o == null || o.layout();
|
|
4976
4979
|
const {
|
|
4977
4980
|
width: g,
|
|
4978
4981
|
height: y
|
|
4979
4982
|
} = m[0].contentRect;
|
|
4980
|
-
|
|
4983
|
+
l.value = {
|
|
4981
4984
|
width: `${g - 1}px`,
|
|
4982
4985
|
height: `${y}px`
|
|
4983
4986
|
};
|
|
@@ -4995,7 +4998,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
4995
4998
|
}]);
|
|
4996
4999
|
}
|
|
4997
5000
|
he(() => {
|
|
4998
|
-
|
|
5001
|
+
s(), n.value && u.observe(n.value.parentElement);
|
|
4999
5002
|
}), Cn(() => {
|
|
5000
5003
|
o && o.dispose(), u && n.value && (u.unobserve(n.value), u.disconnect());
|
|
5001
5004
|
});
|
|
@@ -5012,7 +5015,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5012
5015
|
setContent: c
|
|
5013
5016
|
}), () => k("div", {
|
|
5014
5017
|
class: "expression-code-editor",
|
|
5015
|
-
style:
|
|
5018
|
+
style: l.value,
|
|
5016
5019
|
ref: n
|
|
5017
5020
|
}, null);
|
|
5018
5021
|
}
|
|
@@ -5047,13 +5050,13 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5047
5050
|
});
|
|
5048
5051
|
const r = {
|
|
5049
5052
|
customRowStatus: e.customRowStatus
|
|
5050
|
-
},
|
|
5053
|
+
}, s = j(() => [{
|
|
5051
5054
|
field: e.textField,
|
|
5052
5055
|
title: "",
|
|
5053
5056
|
dataType: "string",
|
|
5054
5057
|
formatter: e.formatter
|
|
5055
5058
|
}]);
|
|
5056
|
-
function
|
|
5059
|
+
function l({
|
|
5057
5060
|
$event: d,
|
|
5058
5061
|
node: c
|
|
5059
5062
|
}) {
|
|
@@ -5087,13 +5090,13 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5087
5090
|
},
|
|
5088
5091
|
data: n.value,
|
|
5089
5092
|
idField: e.idField,
|
|
5090
|
-
columns:
|
|
5093
|
+
columns: s.value,
|
|
5091
5094
|
rowOption: r,
|
|
5092
5095
|
columnOption: {
|
|
5093
5096
|
fitColumns: !0,
|
|
5094
5097
|
fitMode: "percentage"
|
|
5095
5098
|
},
|
|
5096
|
-
onDblclickNode:
|
|
5099
|
+
onDblclickNode: l,
|
|
5097
5100
|
style: o.value,
|
|
5098
5101
|
autoHeight: !0,
|
|
5099
5102
|
onExpandNode: p
|
|
@@ -5107,7 +5110,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5107
5110
|
const n = b("dataEntity"), a = b(e.dataSource), {
|
|
5108
5111
|
entities: o,
|
|
5109
5112
|
variables: i
|
|
5110
|
-
} = a.value, r = b(""),
|
|
5113
|
+
} = a.value, r = b(""), s = b((o == null ? void 0 : o.fields) || []), l = (w, x) => {
|
|
5111
5114
|
w.stopPropagation(), t.emit("fieldClick", {
|
|
5112
5115
|
$event: w,
|
|
5113
5116
|
item: x.raw
|
|
@@ -5124,7 +5127,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5124
5127
|
title: "插入属性名称",
|
|
5125
5128
|
class: "btn btn-link d-none",
|
|
5126
5129
|
style: "width:24px;height:24px",
|
|
5127
|
-
onClick: ($) =>
|
|
5130
|
+
onClick: ($) => l($, x),
|
|
5128
5131
|
onDblclick: ($) => $.stopPropagation()
|
|
5129
5132
|
}, [k("span", {
|
|
5130
5133
|
class: "f-icon f-icon-new-edit",
|
|
@@ -5177,7 +5180,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5177
5180
|
}
|
|
5178
5181
|
function v() {
|
|
5179
5182
|
return k(Ar, {
|
|
5180
|
-
data:
|
|
5183
|
+
data: s.value,
|
|
5181
5184
|
formatter: u,
|
|
5182
5185
|
onDblclickNode: M
|
|
5183
5186
|
}, null);
|
|
@@ -5204,7 +5207,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5204
5207
|
onDblclick: (P) => D(P, x)
|
|
5205
5208
|
}, [x.name]))])]))]);
|
|
5206
5209
|
}
|
|
5207
|
-
function
|
|
5210
|
+
function T(w, x) {
|
|
5208
5211
|
if (w.stopPropagation(), n.value === x) {
|
|
5209
5212
|
n.value = "";
|
|
5210
5213
|
return;
|
|
@@ -5218,7 +5221,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5218
5221
|
}
|
|
5219
5222
|
});
|
|
5220
5223
|
function B(w, x) {
|
|
5221
|
-
const P = w.children.map((
|
|
5224
|
+
const P = w.children.map((Y) => B(Y, x)).filter((Y) => Y !== null);
|
|
5222
5225
|
return w.data.name.toLowerCase().includes(x.toLowerCase()) || w.data.bindingPath.toLowerCase().includes(x.toLowerCase()) ? {
|
|
5223
5226
|
data: {
|
|
5224
5227
|
...w.data
|
|
@@ -5237,10 +5240,10 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5237
5240
|
}
|
|
5238
5241
|
function L() {
|
|
5239
5242
|
const w = N((o == null ? void 0 : o.fields) || [], r.value);
|
|
5240
|
-
|
|
5243
|
+
s.value = w;
|
|
5241
5244
|
}
|
|
5242
|
-
function
|
|
5243
|
-
|
|
5245
|
+
function F() {
|
|
5246
|
+
s.value = (o == null ? void 0 : o.fields) || [];
|
|
5244
5247
|
}
|
|
5245
5248
|
function O(w) {
|
|
5246
5249
|
w.key === "Enter" && L();
|
|
@@ -5253,7 +5256,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5253
5256
|
class: c.value("dataEntity")
|
|
5254
5257
|
}, [k("div", {
|
|
5255
5258
|
class: "title px-2 d-flex align-items-center",
|
|
5256
|
-
onClick: (w) =>
|
|
5259
|
+
onClick: (w) => T(w, "dataEntity")
|
|
5257
5260
|
}, [yt("数据实体"), k("span", {
|
|
5258
5261
|
class: f.value("dataEntity")
|
|
5259
5262
|
}, null)]), k("div", {
|
|
@@ -5269,13 +5272,13 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5269
5272
|
modelValue: r.value,
|
|
5270
5273
|
"onUpdate:modelValue": (w) => r.value = w,
|
|
5271
5274
|
onClickButton: L,
|
|
5272
|
-
onClear:
|
|
5275
|
+
onClear: F,
|
|
5273
5276
|
onKeyup: O
|
|
5274
5277
|
}, null)]), v()])]), k("li", {
|
|
5275
5278
|
class: c.value("variables")
|
|
5276
5279
|
}, [k("div", {
|
|
5277
5280
|
class: "title px-2 d-flex align-items-center",
|
|
5278
|
-
onClick: (w) =>
|
|
5281
|
+
onClick: (w) => T(w, "variables")
|
|
5279
5282
|
}, [yt("变量"), k("span", {
|
|
5280
5283
|
class: f.value("variables")
|
|
5281
5284
|
}, null)]), k("div", {
|
|
@@ -5296,7 +5299,7 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5296
5299
|
props: Vr,
|
|
5297
5300
|
emits: ["insertFunction", "search"],
|
|
5298
5301
|
setup(e, t) {
|
|
5299
|
-
const n = b(), a = b(""), o = b(), i = b({}), r = b(""),
|
|
5302
|
+
const n = b(), a = b(""), o = b(), i = b({}), r = b(""), s = "没有与搜索条件匹配的项", l = b(e.functionItems), u = j(() => (v) => e.singleExpand ? {
|
|
5300
5303
|
"functions-type d-flex flex-column": !0,
|
|
5301
5304
|
open: a.value === v,
|
|
5302
5305
|
closed: a.value !== v
|
|
@@ -5316,9 +5319,9 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5316
5319
|
"functions-item pl-2": !0,
|
|
5317
5320
|
selected: ((h = o.value) == null ? void 0 : h.key) === v.key
|
|
5318
5321
|
};
|
|
5319
|
-
}), c = b(Object.keys(
|
|
5322
|
+
}), c = b(Object.keys(l.value));
|
|
5320
5323
|
ee(() => e.functionItems, (v) => {
|
|
5321
|
-
|
|
5324
|
+
l.value = v, c.value = Object.keys(l.value), r.value && (i.value = c.value.reduce((h, T) => (h[T] = !0, h), {}));
|
|
5322
5325
|
});
|
|
5323
5326
|
function f(v) {
|
|
5324
5327
|
v || (v = a.value);
|
|
@@ -5347,12 +5350,12 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5347
5350
|
item: h
|
|
5348
5351
|
});
|
|
5349
5352
|
}
|
|
5350
|
-
ee(() => a.value, (v, h,
|
|
5353
|
+
ee(() => a.value, (v, h, T) => {
|
|
5351
5354
|
if (v) {
|
|
5352
5355
|
const B = setTimeout(() => {
|
|
5353
5356
|
f(v);
|
|
5354
5357
|
}, 200);
|
|
5355
|
-
|
|
5358
|
+
T(() => clearTimeout(B));
|
|
5356
5359
|
}
|
|
5357
5360
|
});
|
|
5358
5361
|
function C() {
|
|
@@ -5375,18 +5378,18 @@ const Lr = /* @__PURE__ */ ie({
|
|
|
5375
5378
|
}
|
|
5376
5379
|
}, [k("span", {
|
|
5377
5380
|
class: p.value(v)
|
|
5378
|
-
}, null),
|
|
5381
|
+
}, null), l.value[v].name]), k("ul", {
|
|
5379
5382
|
class: "pl-3 mr-2"
|
|
5380
|
-
}, [
|
|
5383
|
+
}, [l.value[v].items.map((h) => {
|
|
5381
5384
|
if (h.visible !== !1)
|
|
5382
5385
|
return k("li", {
|
|
5383
5386
|
class: d.value(h),
|
|
5384
|
-
onClick: (
|
|
5385
|
-
onDblclick: (
|
|
5387
|
+
onClick: (T) => g(T, h),
|
|
5388
|
+
onDblclick: (T) => y(T, h)
|
|
5386
5389
|
}, [v === "advanced" ? h.key : h.name]);
|
|
5387
5390
|
})])])) : k("li", {
|
|
5388
5391
|
class: "empty-message"
|
|
5389
|
-
}, [
|
|
5392
|
+
}, [s]);
|
|
5390
5393
|
}
|
|
5391
5394
|
return he(() => {
|
|
5392
5395
|
a.value = c.value[0], i.value = c.value.reduce((v, h) => (v[h] = a.value === h, v), {});
|
|
@@ -5446,39 +5449,39 @@ function qr(e) {
|
|
|
5446
5449
|
}
|
|
5447
5450
|
async function n() {
|
|
5448
5451
|
if (window.esprima == null) {
|
|
5449
|
-
const r = await t(), { path:
|
|
5450
|
-
return new Promise((
|
|
5452
|
+
const r = await t(), { path: s } = r;
|
|
5453
|
+
return new Promise((l, u) => {
|
|
5451
5454
|
const p = document.createElement("script");
|
|
5452
|
-
p.type = "text/javascript", p.src =
|
|
5455
|
+
p.type = "text/javascript", p.src = s + "?v=" + Date.now(), p.onload = l, p.onerror = u, document.head.appendChild(p);
|
|
5453
5456
|
});
|
|
5454
5457
|
}
|
|
5455
5458
|
}
|
|
5456
5459
|
function a(r) {
|
|
5457
|
-
const
|
|
5458
|
-
for (let c = 0; c <
|
|
5459
|
-
|
|
5460
|
+
const s = [], l = window.esprima.tokenize(r);
|
|
5461
|
+
for (let c = 0; c < l.length; c++)
|
|
5462
|
+
s.push(l[c].value);
|
|
5460
5463
|
const u = [];
|
|
5461
|
-
for (let c = 0; c <
|
|
5462
|
-
const f = r.indexOf(
|
|
5463
|
-
f !== -1 ? u.push(r.substring(0, f)) : u.push(""), r = r.slice(f +
|
|
5464
|
+
for (let c = 0; c < s.length; c++) {
|
|
5465
|
+
const f = r.indexOf(s[c]);
|
|
5466
|
+
f !== -1 ? u.push(r.substring(0, f)) : u.push(""), r = r.slice(f + s[c].length), c === s.length - 1 && u.push(r);
|
|
5464
5467
|
}
|
|
5465
|
-
const p = [], d =
|
|
5468
|
+
const p = [], d = s.length;
|
|
5466
5469
|
for (let c = 0; c < d; c++)
|
|
5467
|
-
u[c] !== "" && p.push(u[c]),
|
|
5470
|
+
u[c] !== "" && p.push(u[c]), s[c] !== "" && p.push(s[c]), c === d - 1 && u[c + 1] !== "" && p.push(u[c + 1]);
|
|
5468
5471
|
return p;
|
|
5469
5472
|
}
|
|
5470
|
-
function o(r,
|
|
5471
|
-
const
|
|
5473
|
+
function o(r, s = "key2name") {
|
|
5474
|
+
const l = /* @__PURE__ */ new Map();
|
|
5472
5475
|
if (!r)
|
|
5473
|
-
return
|
|
5476
|
+
return l;
|
|
5474
5477
|
let p = Object.values(r).map((d) => d.items).flat();
|
|
5475
5478
|
for (; p.length > 0; ) {
|
|
5476
5479
|
const d = p.filter((c) => c.name === p[0].name);
|
|
5477
5480
|
d.length > 1 ? p.filter((c) => c.name === p[0].name).forEach((c) => {
|
|
5478
|
-
|
|
5479
|
-
}) :
|
|
5481
|
+
s === "key2name" ? l.set(c.key, c.key + "_" + c.name) : s === "name2key" && l.set(c.key + "_" + c.name, c.key);
|
|
5482
|
+
}) : s === "key2name" ? l.set(d[0].key, d[0].name) : s === "name2key" && l.set(d[0].name, d[0].key), p = p.filter((c) => c.name !== p[0].name);
|
|
5480
5483
|
}
|
|
5481
|
-
return
|
|
5484
|
+
return l;
|
|
5482
5485
|
}
|
|
5483
5486
|
n();
|
|
5484
5487
|
async function i(r) {
|
|
@@ -5493,7 +5496,7 @@ function qr(e) {
|
|
|
5493
5496
|
}
|
|
5494
5497
|
function Gr(e, t, n) {
|
|
5495
5498
|
const a = b(e.disabledFunctions), { getTokens: o, getVariableMaps: i, runWithEsprima: r } = qr(e);
|
|
5496
|
-
function
|
|
5499
|
+
function s() {
|
|
5497
5500
|
const y = lt(t);
|
|
5498
5501
|
if (a.value) {
|
|
5499
5502
|
let C = Object.keys(y);
|
|
@@ -5506,7 +5509,7 @@ function Gr(e, t, n) {
|
|
|
5506
5509
|
}
|
|
5507
5510
|
return y;
|
|
5508
5511
|
}
|
|
5509
|
-
function
|
|
5512
|
+
function l(y) {
|
|
5510
5513
|
const C = t.analytical.items.find((S) => S.key === "GetContextParameter");
|
|
5511
5514
|
if (C)
|
|
5512
5515
|
return C.name + '("' + y.name + '")';
|
|
@@ -5542,15 +5545,15 @@ function Gr(e, t, n) {
|
|
|
5542
5545
|
if (v === 0 && S && C[M].length > 2 && C[M][0] === '"' && C[M][C[M].length - 1] === '"') {
|
|
5543
5546
|
const h = C[M].substring(1, C[M].length - 1);
|
|
5544
5547
|
if (S.has(h) && C[M - 1] === "(" && C[M + 1] === ")") {
|
|
5545
|
-
const
|
|
5546
|
-
|
|
5548
|
+
const T = S.get(h);
|
|
5549
|
+
T !== void 0 && (C[M] = `"${T}"`, v = 1);
|
|
5547
5550
|
}
|
|
5548
5551
|
}
|
|
5549
5552
|
if (v === 0) {
|
|
5550
|
-
const h = Object.values(t).map((
|
|
5551
|
-
for (let
|
|
5552
|
-
if (C[M] === h[
|
|
5553
|
-
C[M] = h[
|
|
5553
|
+
const h = Object.values(t).map((T) => T.items).flat();
|
|
5554
|
+
for (let T = 0; T < h.length; T++)
|
|
5555
|
+
if (C[M] === h[T].name) {
|
|
5556
|
+
C[M] = h[T].keyFront + "." + h[T].key, v = 1;
|
|
5554
5557
|
break;
|
|
5555
5558
|
}
|
|
5556
5559
|
}
|
|
@@ -5572,22 +5575,22 @@ function Gr(e, t, n) {
|
|
|
5572
5575
|
h = h + 1;
|
|
5573
5576
|
continue;
|
|
5574
5577
|
} else {
|
|
5575
|
-
let
|
|
5576
|
-
if (
|
|
5578
|
+
let T = 0;
|
|
5579
|
+
if (T === 0 && y[h].length > 2 && y[h][0] === '"' && y[h][y[h].length - 1] === '"') {
|
|
5577
5580
|
const B = y[h].substring(1, y[h].length - 1);
|
|
5578
5581
|
if (S.has(B) && y[h - 1] === "(" && y[h + 1] === ")") {
|
|
5579
5582
|
const N = S.get(B);
|
|
5580
|
-
N !== void 0 && (M = M + `"${N}"`,
|
|
5583
|
+
N !== void 0 && (M = M + `"${N}"`, T = 1);
|
|
5581
5584
|
}
|
|
5582
5585
|
}
|
|
5583
|
-
if (
|
|
5586
|
+
if (T === 0) {
|
|
5584
5587
|
for (let B = 0; B < C.length; B++)
|
|
5585
5588
|
if (y[h] === C[B].key && C[B].type.toLowerCase() !== "advanced") {
|
|
5586
|
-
M = M + C[B].name,
|
|
5589
|
+
M = M + C[B].name, T = 1;
|
|
5587
5590
|
break;
|
|
5588
5591
|
}
|
|
5589
5592
|
}
|
|
5590
|
-
|
|
5593
|
+
T === 0 && (M = M + y[h]);
|
|
5591
5594
|
}
|
|
5592
5595
|
}
|
|
5593
5596
|
return M;
|
|
@@ -5602,30 +5605,30 @@ function Gr(e, t, n) {
|
|
|
5602
5605
|
return await r(() => m(y));
|
|
5603
5606
|
}
|
|
5604
5607
|
return {
|
|
5605
|
-
resetFunctionItems:
|
|
5608
|
+
resetFunctionItems: s,
|
|
5606
5609
|
getFieldExpression: d,
|
|
5607
5610
|
getFunctionExpression: p,
|
|
5608
|
-
getContextVariableExpression:
|
|
5611
|
+
getContextVariableExpression: l,
|
|
5609
5612
|
getExpressionCodeValue: c,
|
|
5610
5613
|
getExpressionTextValue: g
|
|
5611
5614
|
};
|
|
5612
5615
|
}
|
|
5613
5616
|
function _r(e, t) {
|
|
5614
|
-
const n = b([]), a = lt(t.value), o = Object.values(a).map((
|
|
5615
|
-
function i(
|
|
5616
|
-
const
|
|
5617
|
-
return Object.keys(
|
|
5618
|
-
const p =
|
|
5619
|
-
p.length > 0 ?
|
|
5620
|
-
}),
|
|
5621
|
-
}
|
|
5622
|
-
function r(
|
|
5623
|
-
if (!
|
|
5617
|
+
const n = b([]), a = lt(t.value), o = Object.values(a).map((s) => s.items).flat();
|
|
5618
|
+
function i(s) {
|
|
5619
|
+
const l = lt(a);
|
|
5620
|
+
return Object.keys(l).forEach((u) => {
|
|
5621
|
+
const p = l[u].items.filter((d) => s.includes(d.key));
|
|
5622
|
+
p.length > 0 ? l[u].items = p : delete l[u];
|
|
5623
|
+
}), l;
|
|
5624
|
+
}
|
|
5625
|
+
function r(s) {
|
|
5626
|
+
if (!s) {
|
|
5624
5627
|
t.value = a;
|
|
5625
5628
|
return;
|
|
5626
5629
|
}
|
|
5627
|
-
const
|
|
5628
|
-
t.value = i(
|
|
5630
|
+
const l = o.filter((u) => u.name.toLowerCase().includes(s.toLowerCase())).map((u) => u.key);
|
|
5631
|
+
t.value = i(l);
|
|
5629
5632
|
}
|
|
5630
5633
|
return {
|
|
5631
5634
|
searchResultList: n,
|
|
@@ -5633,13 +5636,13 @@ function _r(e, t) {
|
|
|
5633
5636
|
onFunctionSearch: r
|
|
5634
5637
|
};
|
|
5635
5638
|
}
|
|
5636
|
-
const
|
|
5639
|
+
const Yr = /* @__PURE__ */ ie({
|
|
5637
5640
|
name: "FExpressionEditor",
|
|
5638
5641
|
props: ko,
|
|
5639
5642
|
emits: [],
|
|
5640
5643
|
setup(e, t) {
|
|
5641
|
-
var
|
|
5642
|
-
const n = b(), a = b(e.validateMessage), o = b(e.messageType), i = b(e.modelValue), r = b(),
|
|
5644
|
+
var F;
|
|
5645
|
+
const n = b(), a = b(e.validateMessage), o = b(e.messageType), i = b(e.modelValue), r = b(), s = [{
|
|
5643
5646
|
label: "提示",
|
|
5644
5647
|
value: "info"
|
|
5645
5648
|
}, {
|
|
@@ -5649,7 +5652,7 @@ const Ur = /* @__PURE__ */ ie({
|
|
|
5649
5652
|
label: "错误",
|
|
5650
5653
|
value: "error"
|
|
5651
5654
|
}], {
|
|
5652
|
-
getFunctionExpression:
|
|
5655
|
+
getFunctionExpression: l,
|
|
5653
5656
|
getContextVariableExpression: u,
|
|
5654
5657
|
resetFunctionItems: p,
|
|
5655
5658
|
getFieldExpression: d,
|
|
@@ -5663,7 +5666,7 @@ const Ur = /* @__PURE__ */ ie({
|
|
|
5663
5666
|
item: w
|
|
5664
5667
|
}) {
|
|
5665
5668
|
var P;
|
|
5666
|
-
const x =
|
|
5669
|
+
const x = l(w);
|
|
5667
5670
|
(P = r.value) == null || P.insertText(x);
|
|
5668
5671
|
}
|
|
5669
5672
|
function C({
|
|
@@ -5680,7 +5683,7 @@ const Ur = /* @__PURE__ */ ie({
|
|
|
5680
5683
|
return w.push(x.data), (P = x.children) != null && P.length && w.push(...S(x.children)), w;
|
|
5681
5684
|
}, []);
|
|
5682
5685
|
}
|
|
5683
|
-
const D = S(((
|
|
5686
|
+
const D = S(((F = e == null ? void 0 : e.entities) == null ? void 0 : F.fields) || []);
|
|
5684
5687
|
function M(O) {
|
|
5685
5688
|
return O.map((w) => {
|
|
5686
5689
|
const x = D.find((P) => P.bindingPath === w);
|
|
@@ -5696,8 +5699,8 @@ const Ur = /* @__PURE__ */ ie({
|
|
|
5696
5699
|
var I;
|
|
5697
5700
|
const $ = d(w);
|
|
5698
5701
|
x = e.isServerSide ? M(w.parents) : x;
|
|
5699
|
-
let
|
|
5700
|
-
P === $ && (
|
|
5702
|
+
let Y = `${x}.${$}`;
|
|
5703
|
+
P === $ && (Y = $), (I = r.value) == null || I.insertText(`${Y}`);
|
|
5701
5704
|
}
|
|
5702
5705
|
function h({
|
|
5703
5706
|
$event: O,
|
|
@@ -5707,7 +5710,7 @@ const Ur = /* @__PURE__ */ ie({
|
|
|
5707
5710
|
const x = d(w);
|
|
5708
5711
|
(P = r.value) == null || P.insertText(`${x}`);
|
|
5709
5712
|
}
|
|
5710
|
-
function
|
|
5713
|
+
function T() {
|
|
5711
5714
|
var O;
|
|
5712
5715
|
return (O = r.value) == null ? void 0 : O.getContent();
|
|
5713
5716
|
}
|
|
@@ -5733,7 +5736,7 @@ const Ur = /* @__PURE__ */ ie({
|
|
|
5733
5736
|
w && (N.value = await f(w) || "");
|
|
5734
5737
|
}
|
|
5735
5738
|
}), t.expose({
|
|
5736
|
-
getExpressionContext:
|
|
5739
|
+
getExpressionContext: T,
|
|
5737
5740
|
getExpressionValue: B,
|
|
5738
5741
|
resetExpression: L
|
|
5739
5742
|
}), () => k("div", {
|
|
@@ -5769,7 +5772,7 @@ const Ur = /* @__PURE__ */ ie({
|
|
|
5769
5772
|
class: "d-flex align-items-center py-1"
|
|
5770
5773
|
}, [k("b", null, [yt("提示信息:")]), e.showMessageType && k(vt, {
|
|
5771
5774
|
style: "width: 75px",
|
|
5772
|
-
data:
|
|
5775
|
+
data: s,
|
|
5773
5776
|
modelValue: o.value,
|
|
5774
5777
|
"onUpdate:modelValue": (O) => o.value = O,
|
|
5775
5778
|
textField: "label",
|
|
@@ -5800,7 +5803,7 @@ const Ur = /* @__PURE__ */ ie({
|
|
|
5800
5803
|
})]
|
|
5801
5804
|
})]);
|
|
5802
5805
|
}
|
|
5803
|
-
}),
|
|
5806
|
+
}), Ur = {
|
|
5804
5807
|
/**
|
|
5805
5808
|
* 组件标识
|
|
5806
5809
|
*/
|
|
@@ -5937,17 +5940,17 @@ const Ur = /* @__PURE__ */ ie({
|
|
|
5937
5940
|
backgroundColor: e.backgroundColor || "",
|
|
5938
5941
|
pointerEvents: "auto"
|
|
5939
5942
|
}));
|
|
5940
|
-
function i(
|
|
5941
|
-
t.emit("click"),
|
|
5943
|
+
function i(s) {
|
|
5944
|
+
t.emit("click"), s.preventDefault(), s.stopPropagation();
|
|
5942
5945
|
}
|
|
5943
5946
|
j(() => {
|
|
5944
|
-
const
|
|
5945
|
-
if (
|
|
5946
|
-
const
|
|
5947
|
+
const s = a.value;
|
|
5948
|
+
if (s) {
|
|
5949
|
+
const l = s.getBoundingClientRect(), {
|
|
5947
5950
|
left: u,
|
|
5948
5951
|
top: p,
|
|
5949
5952
|
height: d
|
|
5950
|
-
} =
|
|
5953
|
+
} = l;
|
|
5951
5954
|
return {
|
|
5952
5955
|
left: u,
|
|
5953
5956
|
top: p + d
|
|
@@ -5964,14 +5967,14 @@ const Ur = /* @__PURE__ */ ie({
|
|
|
5964
5967
|
to: "body"
|
|
5965
5968
|
}, {
|
|
5966
5969
|
default: () => {
|
|
5967
|
-
var
|
|
5970
|
+
var s, l;
|
|
5968
5971
|
return [k("div", {
|
|
5969
5972
|
class: "overlay-container",
|
|
5970
5973
|
onClick: (u) => i(u),
|
|
5971
5974
|
style: o.value
|
|
5972
5975
|
}, [k("div", {
|
|
5973
5976
|
style: r.value
|
|
5974
|
-
}, [(
|
|
5977
|
+
}, [(l = (s = t.slots).default) == null ? void 0 : l.call(s)])])];
|
|
5975
5978
|
}
|
|
5976
5979
|
});
|
|
5977
5980
|
}
|
|
@@ -6315,19 +6318,19 @@ class Ze {
|
|
|
6315
6318
|
}
|
|
6316
6319
|
}
|
|
6317
6320
|
function ml(e, t) {
|
|
6318
|
-
const n = b(), a = b(), o = b(), i = b(), r = b(),
|
|
6321
|
+
const n = b(), a = b(), o = b(), i = b(), r = b(), s = b(), l = b(), u = b(), p = b(), d = b(), c = b(), f = b(e.resizeable), m = b(), g = b(e.draggable), y = b(!1);
|
|
6319
6322
|
function C() {
|
|
6320
6323
|
const I = a.value || document.body, A = window.getComputedStyle(I);
|
|
6321
6324
|
if (!A || !n.value)
|
|
6322
6325
|
return;
|
|
6323
|
-
const
|
|
6324
|
-
|
|
6326
|
+
const U = re.getTransformInfo(n.value), W = {};
|
|
6327
|
+
l.value && (W.deltaL = n.value.offsetLeft - l.value.x, W.deltaT = n.value.offsetTop - l.value.y);
|
|
6325
6328
|
const te = A.getPropertyValue("position");
|
|
6326
|
-
W.width = I.clientWidth, W.height = I.clientHeight, W.pr = parseInt(A.getPropertyValue("padding-right"), 10), W.pb = parseInt(A.getPropertyValue("padding-bottom"), 10), W.position = A.getPropertyValue("position"), te === "static" && (I.style.position = "relative"), W.translateX =
|
|
6329
|
+
W.width = I.clientWidth, W.height = I.clientHeight, W.pr = parseInt(A.getPropertyValue("padding-right"), 10), W.pb = parseInt(A.getPropertyValue("padding-bottom"), 10), W.position = A.getPropertyValue("position"), te === "static" && (I.style.position = "relative"), W.translateX = U.x, W.translateY = U.y, d.value = W;
|
|
6327
6330
|
}
|
|
6328
6331
|
function S(I) {
|
|
6329
6332
|
if (n.value) {
|
|
6330
|
-
i.value = Ze.getCurrent(n.value), r.value = re.getCurrent(n.value),
|
|
6333
|
+
i.value = Ze.getCurrent(n.value), r.value = re.getCurrent(n.value), s.value = i.value ? Ze.copy(i.value) : null, l.value = r.value ? re.copy(r.value) : null, C();
|
|
6331
6334
|
const A = I.target.getAttribute("type") || "";
|
|
6332
6335
|
u.value = {
|
|
6333
6336
|
n: !!A.match(/n/),
|
|
@@ -6338,22 +6341,22 @@ function ml(e, t) {
|
|
|
6338
6341
|
}
|
|
6339
6342
|
}
|
|
6340
6343
|
function D() {
|
|
6341
|
-
var I, A,
|
|
6344
|
+
var I, A, U, W;
|
|
6342
6345
|
if (n.value) {
|
|
6343
6346
|
const te = n.value;
|
|
6344
|
-
u.value && ((u.value.n || u.value.s) && ((I =
|
|
6347
|
+
u.value && ((u.value.n || u.value.s) && ((I = s.value) != null && I.height) && (te.style.height = s.value.height + "px"), (u.value.w || u.value.e) && ((A = s.value) != null && A.width) && (te.style.width = s.value.width + "px"), l.value && ((U = l.value) != null && U.x && (te.style.left = l.value.x + "px"), (W = l.value) != null && W.y && (te.style.top = l.value.y + "px")));
|
|
6345
6348
|
}
|
|
6346
6349
|
}
|
|
6347
6350
|
function M() {
|
|
6348
6351
|
const I = e.minHeight ? e.minHeight : 1, A = e.minWidth ? e.minWidth : 1;
|
|
6349
|
-
|
|
6352
|
+
s.value && l.value && u.value && i.value && (s.value.height < I && (s.value.height = I, u.value.n && r.value && (l.value.y = r.value.y + (i.value.height - I))), s.value.width < A && (s.value.width = A, u.value.w && r.value && (l.value.x = r.value.x + (i.value.width - A))), e.maxHeight && s.value.height > e.maxHeight && (s.value.height = e.maxHeight, r.value && u.value.n && (l.value.y = r.value.y + (i.value.height - e.maxHeight))), e.maxWidth && s.value.width > e.maxWidth && (s.value.width = e.maxWidth, u.value.w && r.value && (l.value.x = r.value.x + (i.value.width - e.maxWidth))));
|
|
6350
6353
|
}
|
|
6351
6354
|
function v() {
|
|
6352
6355
|
if (a.value) {
|
|
6353
6356
|
const I = d.value;
|
|
6354
|
-
if (
|
|
6355
|
-
const A = I.width - I.pr - I.deltaL - I.translateX -
|
|
6356
|
-
u.value.n &&
|
|
6357
|
+
if (l.value && s.value && u.value && i.value) {
|
|
6358
|
+
const A = I.width - I.pr - I.deltaL - I.translateX - l.value.x, U = I.height - I.pb - I.deltaT - I.translateY - l.value.y;
|
|
6359
|
+
u.value.n && l.value.y + I.translateY < 0 && r.value && (l.value.y = -I.translateY, s.value.height = i.value.height + r.value.y + I.translateY), u.value.w && l.value.x + I.translateX < 0 && r.value && (l.value.x = -I.translateX, s.value.width = i.value.width + r.value.x + I.translateX), s.value.width > A && (s.value.width = A), s.value.height > U && (s.value.height = U);
|
|
6357
6360
|
}
|
|
6358
6361
|
}
|
|
6359
6362
|
}
|
|
@@ -6361,10 +6364,10 @@ function ml(e, t) {
|
|
|
6361
6364
|
if (!o.value || !i.value || !r.value || !u.value)
|
|
6362
6365
|
return;
|
|
6363
6366
|
I.subtract(o.value);
|
|
6364
|
-
const A = I.x,
|
|
6365
|
-
u.value.n ? (
|
|
6367
|
+
const A = I.x, U = I.y;
|
|
6368
|
+
u.value.n ? (l.value.y = r.value.y + U, s.value.height = i.value.height - U) : u.value.s && (s.value.height = i.value.height + U), u.value.e ? s.value.width = i.value.width + A : u.value.w && (s.value.width = i.value.width - A, l.value.x = r.value.x + A), v(), M(), D();
|
|
6366
6369
|
}
|
|
6367
|
-
function
|
|
6370
|
+
function T(I) {
|
|
6368
6371
|
if (!p.value)
|
|
6369
6372
|
return;
|
|
6370
6373
|
const A = re.fromEvent(I);
|
|
@@ -6375,7 +6378,7 @@ function ml(e, t) {
|
|
|
6375
6378
|
const {
|
|
6376
6379
|
width: I,
|
|
6377
6380
|
height: A,
|
|
6378
|
-
x:
|
|
6381
|
+
x: U,
|
|
6379
6382
|
y: W
|
|
6380
6383
|
} = n.value.getBoundingClientRect(), te = re.getTransformInfo(n.value);
|
|
6381
6384
|
return {
|
|
@@ -6384,7 +6387,7 @@ function ml(e, t) {
|
|
|
6384
6387
|
height: A
|
|
6385
6388
|
},
|
|
6386
6389
|
position: {
|
|
6387
|
-
x:
|
|
6390
|
+
x: U - te.x,
|
|
6388
6391
|
y: W - te.y
|
|
6389
6392
|
}
|
|
6390
6393
|
};
|
|
@@ -6396,54 +6399,54 @@ function ml(e, t) {
|
|
|
6396
6399
|
const A = B();
|
|
6397
6400
|
c.value = A;
|
|
6398
6401
|
}
|
|
6399
|
-
o.value = void 0, i.value = null, r.value = null,
|
|
6402
|
+
o.value = void 0, i.value = null, r.value = null, s.value = null, l.value = null, u.value = null, p.value = null, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", N);
|
|
6400
6403
|
}
|
|
6401
6404
|
function L() {
|
|
6402
|
-
document.addEventListener("mousemove",
|
|
6405
|
+
document.addEventListener("mousemove", T), document.addEventListener("mouseup", N);
|
|
6403
6406
|
}
|
|
6404
|
-
function
|
|
6407
|
+
function F(I) {
|
|
6405
6408
|
I instanceof MouseEvent && I.button === 2 || g.value && (document.body.click(), I.stopPropagation(), I.preventDefault(), o.value = re.fromEvent(I), p.value = I.target, S(I), L());
|
|
6406
6409
|
}
|
|
6407
6410
|
function O(I) {
|
|
6408
6411
|
return n.value = I, f.value && k(et, null, [k("div", {
|
|
6409
6412
|
class: "fv-resizable-handle fv-resizable-n",
|
|
6410
6413
|
type: "n",
|
|
6411
|
-
onMousedown: (A) =>
|
|
6414
|
+
onMousedown: (A) => F(A)
|
|
6412
6415
|
}, null), k("div", {
|
|
6413
6416
|
class: "fv-resizable-handle fv-resizable-e",
|
|
6414
6417
|
type: "e",
|
|
6415
|
-
onMousedown: (A) =>
|
|
6418
|
+
onMousedown: (A) => F(A)
|
|
6416
6419
|
}, null), k("div", {
|
|
6417
6420
|
class: "fv-resizable-handle fv-resizable-s",
|
|
6418
6421
|
type: "s",
|
|
6419
|
-
onMousedown: (A) =>
|
|
6422
|
+
onMousedown: (A) => F(A)
|
|
6420
6423
|
}, null), k("div", {
|
|
6421
6424
|
class: "fv-resizable-handle fv-resizable-w",
|
|
6422
6425
|
type: "w",
|
|
6423
|
-
onMousedown: (A) =>
|
|
6426
|
+
onMousedown: (A) => F(A)
|
|
6424
6427
|
}, null), k("div", {
|
|
6425
6428
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
6426
6429
|
type: "ne",
|
|
6427
|
-
onMousedown: (A) =>
|
|
6430
|
+
onMousedown: (A) => F(A)
|
|
6428
6431
|
}, null), k("div", {
|
|
6429
6432
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
6430
6433
|
type: "se",
|
|
6431
|
-
onMousedown: (A) =>
|
|
6434
|
+
onMousedown: (A) => F(A)
|
|
6432
6435
|
}, null), k("div", {
|
|
6433
6436
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
6434
6437
|
type: "sw",
|
|
6435
|
-
onMousedown: (A) =>
|
|
6438
|
+
onMousedown: (A) => F(A)
|
|
6436
6439
|
}, null), k("div", {
|
|
6437
6440
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
6438
6441
|
type: "nw",
|
|
6439
|
-
onMousedown: (A) =>
|
|
6442
|
+
onMousedown: (A) => F(A)
|
|
6440
6443
|
}, null)]);
|
|
6441
6444
|
}
|
|
6442
6445
|
function w(I = !0) {
|
|
6443
6446
|
document.body.click();
|
|
6444
|
-
const A = a.value || document.body,
|
|
6445
|
-
I && W && (m.value = B(), m.value.transform = W.style.transform),
|
|
6446
|
-
size:
|
|
6447
|
+
const A = a.value || document.body, U = Ze.getCurrent(A), W = n.value;
|
|
6448
|
+
I && W && (m.value = B(), m.value.transform = W.style.transform), U && W && (s.value = U, s.value.height -= 14, s.value.width -= 14, W.style.height = s.value.height + "px", W.style.width = s.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", c.value = {
|
|
6449
|
+
size: s.value,
|
|
6447
6450
|
position: {
|
|
6448
6451
|
x: 0,
|
|
6449
6452
|
y: 0
|
|
@@ -6453,17 +6456,17 @@ function ml(e, t) {
|
|
|
6453
6456
|
function x() {
|
|
6454
6457
|
var I, A;
|
|
6455
6458
|
if (document.body.click(), m.value) {
|
|
6456
|
-
const
|
|
6459
|
+
const U = {
|
|
6457
6460
|
width: m.value.size.width || 0,
|
|
6458
6461
|
height: m.value.size.height || 0
|
|
6459
6462
|
}, W = {
|
|
6460
|
-
x: (window.innerWidth -
|
|
6461
|
-
y: (window.innerHeight -
|
|
6463
|
+
x: (window.innerWidth - U.width) / 2,
|
|
6464
|
+
y: (window.innerHeight - U.height) / 2
|
|
6462
6465
|
};
|
|
6463
|
-
(I =
|
|
6466
|
+
(I = s.value) == null || I.set(U), (A = l.value) == null || A.set(W);
|
|
6464
6467
|
const te = n.value;
|
|
6465
|
-
te.style.height =
|
|
6466
|
-
size:
|
|
6468
|
+
te.style.height = U.height + "px", te.style.width = U.width + "px", te.style.left = `${W.x}px`, te.style.top = `${W.y}px`, te.style.transform = "", c.value = {
|
|
6469
|
+
size: U,
|
|
6467
6470
|
position: W
|
|
6468
6471
|
}, g.value = e.draggable, y.value = !1;
|
|
6469
6472
|
}
|
|
@@ -6474,9 +6477,9 @@ function ml(e, t) {
|
|
|
6474
6477
|
if (I) {
|
|
6475
6478
|
const {
|
|
6476
6479
|
width: A,
|
|
6477
|
-
height:
|
|
6480
|
+
height: U
|
|
6478
6481
|
} = I;
|
|
6479
|
-
n.value.style.left = `${(window.innerWidth - A) / 2}px`, n.value.style.top = `${(window.innerHeight -
|
|
6482
|
+
n.value.style.left = `${(window.innerWidth - A) / 2}px`, n.value.style.top = `${(window.innerHeight - U) / 2}px`, n.value.style.transform = "";
|
|
6480
6483
|
}
|
|
6481
6484
|
}
|
|
6482
6485
|
}
|
|
@@ -6488,7 +6491,7 @@ function ml(e, t) {
|
|
|
6488
6491
|
window.removeEventListener("resize", I);
|
|
6489
6492
|
};
|
|
6490
6493
|
}
|
|
6491
|
-
const
|
|
6494
|
+
const Y = $();
|
|
6492
6495
|
return {
|
|
6493
6496
|
renderResizeBar: O,
|
|
6494
6497
|
boundingElement: a,
|
|
@@ -6497,74 +6500,74 @@ function ml(e, t) {
|
|
|
6497
6500
|
restore: x,
|
|
6498
6501
|
allowDrag: g,
|
|
6499
6502
|
isMaximized: y,
|
|
6500
|
-
unWindowResizeHandle:
|
|
6503
|
+
unWindowResizeHandle: Y,
|
|
6501
6504
|
moveToCenter: P
|
|
6502
6505
|
};
|
|
6503
6506
|
}
|
|
6504
6507
|
function yl(e, t, n) {
|
|
6505
|
-
const a = b(), o = b(e.draggable), i = b(e.lockAxis), r = b(),
|
|
6506
|
-
ee(() => n.value, (
|
|
6507
|
-
r.value.style.cursor =
|
|
6508
|
+
const a = b(), o = b(e.draggable), i = b(e.lockAxis), r = b(), s = b(), l = b(!1), u = b(new re(0, 0)), p = b(new re(0, 0)), d = b(new re(0, 0)), c = b(new re(0, 0));
|
|
6509
|
+
ee(() => n.value, (T) => {
|
|
6510
|
+
r.value.style.cursor = T ? "move" : "default";
|
|
6508
6511
|
});
|
|
6509
|
-
function f(
|
|
6512
|
+
function f(T, B) {
|
|
6510
6513
|
if (B.tagName === "BUTTON")
|
|
6511
6514
|
return !1;
|
|
6512
|
-
if (B ===
|
|
6515
|
+
if (B === T)
|
|
6513
6516
|
return !0;
|
|
6514
6517
|
for (const N in B.children)
|
|
6515
|
-
if (Object.prototype.hasOwnProperty.call(B.children, N) && f(
|
|
6518
|
+
if (Object.prototype.hasOwnProperty.call(B.children, N) && f(T, B.children[N]))
|
|
6516
6519
|
return !0;
|
|
6517
6520
|
return !1;
|
|
6518
6521
|
}
|
|
6519
6522
|
function m() {
|
|
6520
|
-
var L,
|
|
6521
|
-
let
|
|
6522
|
-
i.value === "x" ? (
|
|
6523
|
-
const N = `translate3d(${Math.round(
|
|
6524
|
-
a.value && (a.value.style.transform = N), c.value.x =
|
|
6523
|
+
var L, F;
|
|
6524
|
+
let T = d.value.x + p.value.x, B = d.value.y + p.value.y;
|
|
6525
|
+
i.value === "x" ? (T = ((L = u.value) == null ? void 0 : L.x) || 0, d.value.x = 0) : i.value === "y" && (B = ((F = u.value) == null ? void 0 : F.y) || 0, d.value.y = 0);
|
|
6526
|
+
const N = `translate3d(${Math.round(T)}px, ${Math.round(B)}px, 0px)`;
|
|
6527
|
+
a.value && (a.value.style.transform = N), c.value.x = T, c.value.y = B;
|
|
6525
6528
|
}
|
|
6526
6529
|
function g() {
|
|
6527
|
-
if (!
|
|
6530
|
+
if (!s.value || !a.value)
|
|
6528
6531
|
return null;
|
|
6529
|
-
const
|
|
6530
|
-
top:
|
|
6531
|
-
right:
|
|
6532
|
-
bottom:
|
|
6533
|
-
left:
|
|
6532
|
+
const T = s.value.getBoundingClientRect(), B = a.value.getBoundingClientRect(), N = {
|
|
6533
|
+
top: T.top < B.top,
|
|
6534
|
+
right: T.right > B.right,
|
|
6535
|
+
bottom: T.bottom > B.bottom,
|
|
6536
|
+
left: T.left < B.left
|
|
6534
6537
|
};
|
|
6535
|
-
return N.top || (d.value.y -= B.top -
|
|
6538
|
+
return N.top || (d.value.y -= B.top - T.top), N.bottom || (d.value.y -= B.bottom - T.bottom), N.right || (d.value.x -= B.right - T.right), N.left || (d.value.x -= B.left - T.left), m(), N;
|
|
6536
6539
|
}
|
|
6537
|
-
function y(
|
|
6538
|
-
|
|
6540
|
+
function y(T) {
|
|
6541
|
+
T && (u.value && T.subtract(u.value), d.value.set(T), m(), g());
|
|
6539
6542
|
}
|
|
6540
|
-
function C(
|
|
6541
|
-
|
|
6543
|
+
function C(T) {
|
|
6544
|
+
l.value && o.value && (T.stopPropagation(), T.preventDefault(), y(re.fromEvent(T, r.value)));
|
|
6542
6545
|
}
|
|
6543
6546
|
function S() {
|
|
6544
|
-
var
|
|
6545
|
-
|
|
6547
|
+
var T;
|
|
6548
|
+
l.value && (l.value = !1, p.value.add(d.value), d.value.reset(), (T = a.value) == null || T.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", S));
|
|
6546
6549
|
}
|
|
6547
6550
|
function D() {
|
|
6548
|
-
!
|
|
6551
|
+
!l.value && r.value && (l.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", C), document.addEventListener("mouseup", S));
|
|
6549
6552
|
}
|
|
6550
6553
|
function M() {
|
|
6551
6554
|
if (a.value) {
|
|
6552
|
-
const
|
|
6553
|
-
p.value.set(
|
|
6555
|
+
const T = re.getTransformInfo(a.value);
|
|
6556
|
+
p.value.set(T);
|
|
6554
6557
|
return;
|
|
6555
6558
|
}
|
|
6556
6559
|
p.value.reset();
|
|
6557
6560
|
}
|
|
6558
|
-
function v(
|
|
6559
|
-
if (!n.value ||
|
|
6561
|
+
function v(T) {
|
|
6562
|
+
if (!n.value || T instanceof MouseEvent && T.button === 2)
|
|
6560
6563
|
return;
|
|
6561
|
-
const B =
|
|
6562
|
-
r.value !== void 0 && B && !f(B, r.value) || o.value !== !1 && (document.body.click(),
|
|
6564
|
+
const B = T.target || T.srcElement;
|
|
6565
|
+
r.value !== void 0 && B && !f(B, r.value) || o.value !== !1 && (document.body.click(), T.stopPropagation(), T.preventDefault(), u.value = re.fromEvent(T, a.value), M(), D());
|
|
6563
6566
|
}
|
|
6564
|
-
function h(
|
|
6567
|
+
function h(T, B, N) {
|
|
6565
6568
|
if (o.value && B) {
|
|
6566
|
-
if (
|
|
6567
|
-
r.value =
|
|
6569
|
+
if (T)
|
|
6570
|
+
r.value = T;
|
|
6568
6571
|
else if (e.dragHandle) {
|
|
6569
6572
|
if (e.dragHandle instanceof HTMLElement)
|
|
6570
6573
|
r.value = e.dragHandle;
|
|
@@ -6573,7 +6576,7 @@ function yl(e, t, n) {
|
|
|
6573
6576
|
L && (r.value = L);
|
|
6574
6577
|
}
|
|
6575
6578
|
}
|
|
6576
|
-
a.value = B,
|
|
6579
|
+
a.value = B, s.value = N, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", v)) : o.value = !1;
|
|
6577
6580
|
}
|
|
6578
6581
|
}
|
|
6579
6582
|
return {
|
|
@@ -6614,7 +6617,7 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6614
6617
|
props: Jn,
|
|
6615
6618
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
6616
6619
|
setup(e, t) {
|
|
6617
|
-
const n = b(e.width || 300), a = b(e.height || 200), o = b(e.modelValue), i = b(""), r = b(e.class),
|
|
6620
|
+
const n = b(e.width || 300), a = b(e.height || 200), o = b(e.modelValue), i = b(""), r = b(e.class), s = b(e.fitContent), l = b(e.showHeader), u = b(""), p = b(e.showCloseButton), d = b(e.showMaxButton), c = b(!1), f = b(e.dialogType), m = b(e.src), g = b(""), y = b(e.showButtons), C = b(e.title), S = b(e.containment || null), D = b(), {
|
|
6618
6621
|
t: M
|
|
6619
6622
|
} = bt();
|
|
6620
6623
|
C.value === "错误提示" && (C.value = M("messageBox.errorTitle"));
|
|
@@ -6630,7 +6633,7 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6630
6633
|
ce && (o.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", R));
|
|
6631
6634
|
});
|
|
6632
6635
|
}
|
|
6633
|
-
const
|
|
6636
|
+
const T = [{
|
|
6634
6637
|
name: "cancel",
|
|
6635
6638
|
text: M("messageBox.cancel") || "取消",
|
|
6636
6639
|
class: "btn btn-secondary",
|
|
@@ -6644,14 +6647,14 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6644
6647
|
handle: (R) => {
|
|
6645
6648
|
h(R, !0);
|
|
6646
6649
|
}
|
|
6647
|
-
}], B = b(e.buttons && e.buttons.length ? e.buttons :
|
|
6650
|
+
}], B = b(e.buttons && e.buttons.length ? e.buttons : T), N = j(() => !!u.value), L = j(() => !!y.value && !!B.value), F = b(), O = b(), w = b(!1), {
|
|
6648
6651
|
renderResizeBar: x,
|
|
6649
6652
|
maximize: P,
|
|
6650
6653
|
restore: $,
|
|
6651
|
-
boundingElement:
|
|
6654
|
+
boundingElement: Y,
|
|
6652
6655
|
resizedEventParam: I,
|
|
6653
6656
|
allowDrag: A,
|
|
6654
|
-
unWindowResizeHandle:
|
|
6657
|
+
unWindowResizeHandle: U,
|
|
6655
6658
|
moveToCenter: W
|
|
6656
6659
|
} = ml(e), {
|
|
6657
6660
|
registerDraggle: te
|
|
@@ -6667,10 +6670,10 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6667
6670
|
R !== Q && (C.value = R);
|
|
6668
6671
|
}), ee(() => e.modelValue, (R, Q) => {
|
|
6669
6672
|
R !== Q && (o.value = R, o.value && e.draggable && Ve(() => {
|
|
6670
|
-
O.value && !S.value && (S.value = O.value.parentElement,
|
|
6673
|
+
O.value && !S.value && (S.value = O.value.parentElement, Y.value = S.value, te(F.value, O.value, Y.value), W());
|
|
6671
6674
|
}), R || (S.value && (S.value = null), ge())), o.value ? v.value = ve() : (w.value = !1, A.value = e.draggable);
|
|
6672
6675
|
}), ee(() => e.showHeader, (R, Q) => {
|
|
6673
|
-
R !== Q && (
|
|
6676
|
+
R !== Q && (l.value = R);
|
|
6674
6677
|
}), ee(() => e.showButtons, (R, Q) => {
|
|
6675
6678
|
R !== Q && (y.value = R);
|
|
6676
6679
|
}), ee(() => I.value, (R, Q) => {
|
|
@@ -6688,7 +6691,7 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6688
6691
|
"farris-modal": !0,
|
|
6689
6692
|
fade: !0
|
|
6690
6693
|
};
|
|
6691
|
-
R["f-modal-fitContent"] = !!
|
|
6694
|
+
R["f-modal-fitContent"] = !!s.value, R.show = !!J.value;
|
|
6692
6695
|
const Q = (se = e.maskClass) == null ? void 0 : se.split(" ");
|
|
6693
6696
|
return Q == null || Q.reduce((ce, Pe) => (ce[Pe] = !0, ce), R), R;
|
|
6694
6697
|
}), ue = j(() => {
|
|
@@ -6703,7 +6706,7 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6703
6706
|
top: `${(window.innerHeight - a.value) / 2}px`,
|
|
6704
6707
|
left: `${(window.innerWidth - n.value) / 2}px`,
|
|
6705
6708
|
width: `${n.value}px`,
|
|
6706
|
-
height:
|
|
6709
|
+
height: s.value ? "auto" : `${a.value}px`
|
|
6707
6710
|
};
|
|
6708
6711
|
return e.mask || (R.pointerEvents = "auto"), R;
|
|
6709
6712
|
}), G = () => Ta() || 1040, ae = j(() => {
|
|
@@ -6714,10 +6717,10 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6714
6717
|
return e.mask || (R.pointerEvents = "none", R.backgroundColor = "transparent"), v.value && (R.backgroundColor = "transparent"), R;
|
|
6715
6718
|
}), Ge = j(() => ({
|
|
6716
6719
|
"modal-content": !0,
|
|
6717
|
-
"modal-content-has-header":
|
|
6720
|
+
"modal-content-has-header": l.value
|
|
6718
6721
|
})), Ie = j(() => {
|
|
6719
6722
|
const R = {
|
|
6720
|
-
display:
|
|
6723
|
+
display: l.value ? "" : "none"
|
|
6721
6724
|
};
|
|
6722
6725
|
return R["pointer-events"] = A.value ? "auto" : "none", R;
|
|
6723
6726
|
}), Fe = j(() => ({
|
|
@@ -6757,9 +6760,9 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6757
6760
|
ha(() => {
|
|
6758
6761
|
v.value = ve();
|
|
6759
6762
|
}), he(() => {
|
|
6760
|
-
O.value && !S.value && (S.value = O.value.parentElement,
|
|
6763
|
+
O.value && !S.value && (S.value = O.value.parentElement, Y.value = S.value, te(F.value, O.value, Y.value)), J.value && document.body.classList.add("modal-open"), Le = vl(e, t), Te = hl(e, t);
|
|
6761
6764
|
}), gt(() => {
|
|
6762
|
-
|
|
6765
|
+
U && U(), Le && Le.remove(), Te && Te.remove();
|
|
6763
6766
|
}), t.expose({
|
|
6764
6767
|
modalElementRef: O,
|
|
6765
6768
|
updateModalOptions: Re,
|
|
@@ -6805,9 +6808,9 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6805
6808
|
}, null), R.text]);
|
|
6806
6809
|
})]);
|
|
6807
6810
|
}
|
|
6808
|
-
function
|
|
6811
|
+
function Ye() {
|
|
6809
6812
|
return k("div", {
|
|
6810
|
-
ref:
|
|
6813
|
+
ref: F,
|
|
6811
6814
|
class: "modal-header",
|
|
6812
6815
|
style: Ie.value
|
|
6813
6816
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : k("div", {
|
|
@@ -6840,7 +6843,7 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6840
6843
|
ref: O
|
|
6841
6844
|
}, [k("div", {
|
|
6842
6845
|
class: Ge.value
|
|
6843
|
-
}, [
|
|
6846
|
+
}, [l.value && Ye(), k("div", {
|
|
6844
6847
|
class: nt.value
|
|
6845
6848
|
}, [(Q = (R = t.slots).default) == null ? void 0 : Q.call(R), f.value === "iframe" && k("iframe", {
|
|
6846
6849
|
title: i.value,
|
|
@@ -6848,7 +6851,7 @@ const Ke = /* @__PURE__ */ ie({
|
|
|
6848
6851
|
width: "100%",
|
|
6849
6852
|
frameborder: "0",
|
|
6850
6853
|
src: m.value
|
|
6851
|
-
}, null)]), Ee()]), !
|
|
6854
|
+
}, null)]), Ee()]), !s.value && O.value && !w.value && x(O.value)]);
|
|
6852
6855
|
}
|
|
6853
6856
|
function it(R) {
|
|
6854
6857
|
return R || "body";
|
|
@@ -6884,7 +6887,7 @@ function gl(e) {
|
|
|
6884
6887
|
gt(() => {
|
|
6885
6888
|
document.body.removeChild(t);
|
|
6886
6889
|
});
|
|
6887
|
-
const i = b(), r = b(e.class || ""),
|
|
6890
|
+
const i = b(), r = b(e.class || ""), s = b(!!e.showButtons), l = b(!!e.showHeader), u = b(e.showCloseButton == null ? !0 : e.showCloseButton), p = b(!0), d = b(e.title || ""), c = e.acceptCallback || (() => {
|
|
6888
6891
|
}), f = e.rejectCallback || (() => {
|
|
6889
6892
|
}), m = e.closedCallback || ((D) => {
|
|
6890
6893
|
}), g = e.resizeHandle || ((D) => {
|
|
@@ -6904,8 +6907,8 @@ function gl(e) {
|
|
|
6904
6907
|
width: e.width,
|
|
6905
6908
|
height: e.height,
|
|
6906
6909
|
buttons: e.buttons,
|
|
6907
|
-
"show-header":
|
|
6908
|
-
"show-buttons":
|
|
6910
|
+
"show-header": l.value,
|
|
6911
|
+
"show-buttons": s.value,
|
|
6909
6912
|
"show-close-button": u.value,
|
|
6910
6913
|
"show-max-button": !1,
|
|
6911
6914
|
onAccept: c,
|
|
@@ -6968,20 +6971,20 @@ class Kn {
|
|
|
6968
6971
|
showHeader: !0
|
|
6969
6972
|
}, t)), o = b(!0), i = a.value.acceptCallback || (() => {
|
|
6970
6973
|
}), r = a.value.rejectCallback || (() => {
|
|
6971
|
-
}),
|
|
6972
|
-
}),
|
|
6974
|
+
}), s = a.value.closedCallback || ((v, h) => {
|
|
6975
|
+
}), l = a.value.resizeHandle || ((v) => {
|
|
6973
6976
|
}), u = t.stopMoveHandle || ((v) => {
|
|
6974
6977
|
});
|
|
6975
6978
|
let p;
|
|
6976
6979
|
const d = Zn(a.value), c = (v) => {
|
|
6977
|
-
var
|
|
6980
|
+
var T;
|
|
6978
6981
|
o.value = !1;
|
|
6979
|
-
const h = (
|
|
6980
|
-
|
|
6982
|
+
const h = (T = v == null ? void 0 : v.target) == null ? void 0 : T.classList.contains("modal_close");
|
|
6983
|
+
s(v, this.isUseEscCloseModal.value ? "esc" : h ? "icon" : "button");
|
|
6981
6984
|
}, f = (v) => {
|
|
6982
6985
|
c(v), p && Ve(() => {
|
|
6983
6986
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], qt(null, n), p = null, this.modalRef.value = null, this.modalRefs) {
|
|
6984
|
-
const h = Object.keys(this.modalRefs).map((
|
|
6987
|
+
const h = Object.keys(this.modalRefs).map((T) => Number(T));
|
|
6985
6988
|
h.length > 0 ? this.activeModalIndex.value = Math.max(...h) : this.activeModalIndex.value = 0;
|
|
6986
6989
|
}
|
|
6987
6990
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -7002,7 +7005,7 @@ class Kn {
|
|
|
7002
7005
|
onAccept: i,
|
|
7003
7006
|
onCancel: r,
|
|
7004
7007
|
onClosed: f,
|
|
7005
|
-
onResize:
|
|
7008
|
+
onResize: l,
|
|
7006
7009
|
onEsc: m,
|
|
7007
7010
|
onStopMove: u
|
|
7008
7011
|
}), {
|
|
@@ -7250,7 +7253,7 @@ var Ml = { exports: {} };
|
|
|
7250
7253
|
if (!a[u]) {
|
|
7251
7254
|
var d = typeof xt == "function" && xt;
|
|
7252
7255
|
if (!p && d) return d(u, !0);
|
|
7253
|
-
if (
|
|
7256
|
+
if (s) return s(u, !0);
|
|
7254
7257
|
var c = new Error("Cannot find module '" + u + "'");
|
|
7255
7258
|
throw c.code = "MODULE_NOT_FOUND", c;
|
|
7256
7259
|
}
|
|
@@ -7262,23 +7265,23 @@ var Ml = { exports: {} };
|
|
|
7262
7265
|
}
|
|
7263
7266
|
return o[u].exports;
|
|
7264
7267
|
}
|
|
7265
|
-
for (var
|
|
7268
|
+
for (var s = typeof xt == "function" && xt, l = 0; l < i.length; l++) r(i[l]);
|
|
7266
7269
|
return r;
|
|
7267
7270
|
}
|
|
7268
7271
|
return n;
|
|
7269
7272
|
}())({
|
|
7270
7273
|
1: [function(n, a, o) {
|
|
7271
|
-
var i = {}, r = "(?:^|\\s)",
|
|
7272
|
-
function
|
|
7274
|
+
var i = {}, r = "(?:^|\\s)", s = "(?:\\s|$)";
|
|
7275
|
+
function l(d) {
|
|
7273
7276
|
var c = i[d];
|
|
7274
|
-
return c ? c.lastIndex = 0 : i[d] = c = new RegExp(r + d +
|
|
7277
|
+
return c ? c.lastIndex = 0 : i[d] = c = new RegExp(r + d + s, "g"), c;
|
|
7275
7278
|
}
|
|
7276
7279
|
function u(d, c) {
|
|
7277
7280
|
var f = d.className;
|
|
7278
|
-
f.length ?
|
|
7281
|
+
f.length ? l(c).test(f) || (d.className += " " + c) : d.className = c;
|
|
7279
7282
|
}
|
|
7280
7283
|
function p(d, c) {
|
|
7281
|
-
d.className = d.className.replace(
|
|
7284
|
+
d.className = d.className.replace(l(c), " ").trim();
|
|
7282
7285
|
}
|
|
7283
7286
|
a.exports = {
|
|
7284
7287
|
add: u,
|
|
@@ -7287,16 +7290,16 @@ var Ml = { exports: {} };
|
|
|
7287
7290
|
}, {}],
|
|
7288
7291
|
2: [function(n, a, o) {
|
|
7289
7292
|
(function(i) {
|
|
7290
|
-
var r = n("contra/emitter"),
|
|
7291
|
-
function d(
|
|
7293
|
+
var r = n("contra/emitter"), s = n("crossvent"), l = n("./classes"), u = document, p = u.documentElement;
|
|
7294
|
+
function d(F, O) {
|
|
7292
7295
|
var w = arguments.length;
|
|
7293
|
-
w === 1 && Array.isArray(
|
|
7294
|
-
var x, P, $,
|
|
7295
|
-
G.moves === void 0 && (G.moves = S), G.accepts === void 0 && (G.accepts = S), G.invalid === void 0 && (G.invalid = ut), G.containers === void 0 && (G.containers =
|
|
7296
|
+
w === 1 && Array.isArray(F) === !1 && (O = F, F = []);
|
|
7297
|
+
var x, P, $, Y, I, A, U, W, te, ve = null, ge, J, oe = !1, ue = 0, ne, G = O || {};
|
|
7298
|
+
G.moves === void 0 && (G.moves = S), G.accepts === void 0 && (G.accepts = S), G.invalid === void 0 && (G.invalid = ut), G.containers === void 0 && (G.containers = F || []), G.isContainer === void 0 && (G.isContainer = C), G.copy === void 0 && (G.copy = !1), G.copySortSource === void 0 && (G.copySortSource = !1), G.revertOnSpill === void 0 && (G.revertOnSpill = !1), G.removeOnSpill === void 0 && (G.removeOnSpill = !1), G.direction === void 0 && (G.direction = "vertical"), G.ignoreInputTextSelection === void 0 && (G.ignoreInputTextSelection = !0), G.mirrorContainer === void 0 && (G.mirrorContainer = u.body);
|
|
7296
7299
|
var ae = r({
|
|
7297
7300
|
containers: G.containers,
|
|
7298
7301
|
start: Te,
|
|
7299
|
-
end:
|
|
7302
|
+
end: Ye,
|
|
7300
7303
|
cancel: R,
|
|
7301
7304
|
remove: it,
|
|
7302
7305
|
destroy: _e,
|
|
@@ -7317,7 +7320,7 @@ var Ml = { exports: {} };
|
|
|
7317
7320
|
}
|
|
7318
7321
|
function nt(E) {
|
|
7319
7322
|
var H = E ? "remove" : "add";
|
|
7320
|
-
|
|
7323
|
+
s[H](p, "selectstart", at), s[H](p, "click", at);
|
|
7321
7324
|
}
|
|
7322
7325
|
function _e() {
|
|
7323
7326
|
Ie(!0), ze({});
|
|
@@ -7326,7 +7329,7 @@ var Ml = { exports: {} };
|
|
|
7326
7329
|
ge && E.preventDefault();
|
|
7327
7330
|
}
|
|
7328
7331
|
function le(E) {
|
|
7329
|
-
|
|
7332
|
+
Y = E.clientX, I = E.clientY;
|
|
7330
7333
|
var H = g(E) !== 1 || E.metaKey || E.ctrlKey;
|
|
7331
7334
|
if (!H) {
|
|
7332
7335
|
var V = E.target, _ = Re(V);
|
|
@@ -7339,14 +7342,14 @@ var Ml = { exports: {} };
|
|
|
7339
7342
|
ze({});
|
|
7340
7343
|
return;
|
|
7341
7344
|
}
|
|
7342
|
-
if (!(E.clientX !== void 0 && Math.abs(E.clientX -
|
|
7345
|
+
if (!(E.clientX !== void 0 && Math.abs(E.clientX - Y) <= (G.slideFactorX || 0) && E.clientY !== void 0 && Math.abs(E.clientY - I) <= (G.slideFactorY || 0))) {
|
|
7343
7346
|
if (G.ignoreInputTextSelection) {
|
|
7344
7347
|
var H = L("clientX", E) || 0, V = L("clientY", E) || 0, _ = u.elementFromPoint(H, V);
|
|
7345
7348
|
if (h(_))
|
|
7346
7349
|
return;
|
|
7347
7350
|
}
|
|
7348
7351
|
var Z = ge;
|
|
7349
|
-
Fe(!0), nt(),
|
|
7352
|
+
Fe(!0), nt(), Ye(), $e(Z), l.add(W || $, "gu-transit"), Rt(), It(), ue = 0, Pe(E);
|
|
7350
7353
|
}
|
|
7351
7354
|
}
|
|
7352
7355
|
}
|
|
@@ -7374,12 +7377,12 @@ var Ml = { exports: {} };
|
|
|
7374
7377
|
H && $e(H);
|
|
7375
7378
|
}
|
|
7376
7379
|
function $e(E) {
|
|
7377
|
-
Wt(E.item, E.source) && (W = E.item.cloneNode(!0), ae.emit("cloned", W, E.item, "copy")), P = E.source, $ = E.item, A =
|
|
7380
|
+
Wt(E.item, E.source) && (W = E.item.cloneNode(!0), ae.emit("cloned", W, E.item, "copy")), P = E.source, $ = E.item, A = U = B(E.item), ae.dragging = !0, ae.emit("drag", $, P);
|
|
7378
7381
|
}
|
|
7379
7382
|
function ut() {
|
|
7380
7383
|
return !1;
|
|
7381
7384
|
}
|
|
7382
|
-
function
|
|
7385
|
+
function Ye() {
|
|
7383
7386
|
if (ae.dragging) {
|
|
7384
7387
|
var E = W || $;
|
|
7385
7388
|
ot(E, v(E));
|
|
@@ -7396,7 +7399,7 @@ var Ml = { exports: {} };
|
|
|
7396
7399
|
}
|
|
7397
7400
|
function ot(E, H) {
|
|
7398
7401
|
var V = v(E);
|
|
7399
|
-
W && G.copySortSource && H === P && V.removeChild($), se(H) ? ae.emit("cancel", E, P) : ae.emit("drop", E, H, P,
|
|
7402
|
+
W && G.copySortSource && H === P && V.removeChild($), se(H) ? ae.emit("cancel", E, P) : ae.emit("drop", E, H, P, U), Q();
|
|
7400
7403
|
}
|
|
7401
7404
|
function it() {
|
|
7402
7405
|
if (ae.dragging) {
|
|
@@ -7407,16 +7410,16 @@ var Ml = { exports: {} };
|
|
|
7407
7410
|
function R(E) {
|
|
7408
7411
|
if (ae.dragging) {
|
|
7409
7412
|
var H = arguments.length > 0 ? E : G.revertOnSpill, V = W || $, _ = v(V), Z = se(_);
|
|
7410
|
-
Z === !1 && H && (W ? _ && _.removeChild(W) : P.insertBefore(V, A)), Z || H ? ae.emit("cancel", V, P, P) : ae.emit("drop", V, _, P,
|
|
7413
|
+
Z === !1 && H && (W ? _ && _.removeChild(W) : P.insertBefore(V, A)), Z || H ? ae.emit("cancel", V, P, P) : ae.emit("drop", V, _, P, U), Q();
|
|
7411
7414
|
}
|
|
7412
7415
|
}
|
|
7413
7416
|
function Q() {
|
|
7414
7417
|
var E = W || $;
|
|
7415
|
-
Ee(), Lt(), $t(), E &&
|
|
7418
|
+
Ee(), Lt(), $t(), E && l.rm(E, "gu-transit"), te && clearTimeout(te), ae.dragging = !1, ve && ae.emit("out", E, ve, P), ae.emit("dragend", E, ue), P = $ = W = A = U = te = ve = null;
|
|
7416
7419
|
}
|
|
7417
7420
|
function se(E, H) {
|
|
7418
7421
|
var V;
|
|
7419
|
-
return H !== void 0 ? V = H : x ? V =
|
|
7422
|
+
return H !== void 0 ? V = H : x ? V = U : V = B(W || $), E === P && V === A;
|
|
7420
7423
|
}
|
|
7421
7424
|
function ce(E, H, V) {
|
|
7422
7425
|
for (var _ = E; _ && !Z(); )
|
|
@@ -7464,26 +7467,26 @@ var Ml = { exports: {} };
|
|
|
7464
7467
|
}
|
|
7465
7468
|
}
|
|
7466
7469
|
function Pt(E, H, V) {
|
|
7467
|
-
(E === H || E === B(H)) && (
|
|
7470
|
+
(E === H || E === B(H)) && (U = B(H)), (E === null && V || E !== H && E !== B(H)) && (U = E);
|
|
7468
7471
|
}
|
|
7469
7472
|
function Nt(E) {
|
|
7470
|
-
|
|
7473
|
+
l.rm(E, "gu-hide");
|
|
7471
7474
|
}
|
|
7472
7475
|
function jt(E) {
|
|
7473
|
-
ae.dragging &&
|
|
7476
|
+
ae.dragging && l.add(E, "gu-hide");
|
|
7474
7477
|
}
|
|
7475
7478
|
function It() {
|
|
7476
|
-
x || (x = document.createElement("div"), x.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", x.innerHTML = G.getMirrorText && G.getMirrorText($) || "控件",
|
|
7479
|
+
x || (x = document.createElement("div"), x.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", x.innerHTML = G.getMirrorText && G.getMirrorText($) || "控件", l.add(x, "gu-mirror"), G.mirrorContainer.appendChild(x), m(p, "add", "mousemove", Pe), l.add(G.mirrorContainer, "gu-unselectable"), ae.emit("cloned", x, $, "mirror"));
|
|
7477
7480
|
}
|
|
7478
7481
|
function Rt() {
|
|
7479
|
-
if (J = document.createElement("div"),
|
|
7482
|
+
if (J = document.createElement("div"), l.add(J, "gu-insertion"), $) {
|
|
7480
7483
|
var E = $.getBoundingClientRect();
|
|
7481
7484
|
J.style.left = E.left + "px", J.style.top = E.top + "px";
|
|
7482
7485
|
}
|
|
7483
7486
|
oe = !1, G.mirrorContainer.appendChild(J);
|
|
7484
7487
|
}
|
|
7485
7488
|
function Lt() {
|
|
7486
|
-
x && (
|
|
7489
|
+
x && (l.rm(G.mirrorContainer, "gu-unselectable"), m(p, "remove", "mousemove", Pe), v(x).removeChild(x), x = null);
|
|
7487
7490
|
}
|
|
7488
7491
|
function $t() {
|
|
7489
7492
|
J && (v(J).removeChild(J), J = null);
|
|
@@ -7542,7 +7545,7 @@ var Ml = { exports: {} };
|
|
|
7542
7545
|
H === $ && $ && (J.style.display = "none");
|
|
7543
7546
|
}
|
|
7544
7547
|
function Ht(E) {
|
|
7545
|
-
|
|
7548
|
+
U = null;
|
|
7546
7549
|
var H = E.lastElementChild;
|
|
7547
7550
|
if (H) {
|
|
7548
7551
|
var V = H.getBoundingClientRect();
|
|
@@ -7590,7 +7593,7 @@ var Ml = { exports: {} };
|
|
|
7590
7593
|
return typeof G.copy == "boolean" ? G.copy : G.copy(E, H);
|
|
7591
7594
|
}
|
|
7592
7595
|
}
|
|
7593
|
-
function c(
|
|
7596
|
+
function c(F) {
|
|
7594
7597
|
const O = Array.from(window.scrollContainerList);
|
|
7595
7598
|
if (O.length === 1) {
|
|
7596
7599
|
const x = Array.from(window.scrollContainerList)[0];
|
|
@@ -7598,18 +7601,18 @@ var Ml = { exports: {} };
|
|
|
7598
7601
|
}
|
|
7599
7602
|
const w = f(O);
|
|
7600
7603
|
for (const x of w)
|
|
7601
|
-
if (x.contains(
|
|
7604
|
+
if (x.contains(F))
|
|
7602
7605
|
return x;
|
|
7603
7606
|
return null;
|
|
7604
7607
|
}
|
|
7605
|
-
function f(
|
|
7608
|
+
function f(F) {
|
|
7606
7609
|
const O = [];
|
|
7607
|
-
return
|
|
7610
|
+
return F.forEach((w) => {
|
|
7608
7611
|
const x = document.getElementById(w);
|
|
7609
7612
|
x && O.push(x);
|
|
7610
7613
|
}), O.sort((w, x) => w.contains(x) ? 1 : x.contains(w) ? -1 : 0), O;
|
|
7611
7614
|
}
|
|
7612
|
-
function m(
|
|
7615
|
+
function m(F, O, w, x) {
|
|
7613
7616
|
var P = {
|
|
7614
7617
|
mouseup: "touchend",
|
|
7615
7618
|
mousedown: "touchstart",
|
|
@@ -7618,28 +7621,28 @@ var Ml = { exports: {} };
|
|
|
7618
7621
|
mouseup: "pointerup",
|
|
7619
7622
|
mousedown: "pointerdown",
|
|
7620
7623
|
mousemove: "pointermove"
|
|
7621
|
-
},
|
|
7624
|
+
}, Y = {
|
|
7622
7625
|
mouseup: "MSPointerUp",
|
|
7623
7626
|
mousedown: "MSPointerDown",
|
|
7624
7627
|
mousemove: "MSPointerMove"
|
|
7625
7628
|
};
|
|
7626
|
-
i.navigator.pointerEnabled ?
|
|
7629
|
+
i.navigator.pointerEnabled ? s[O](F, $[w], x) : i.navigator.msPointerEnabled ? s[O](F, Y[w], x) : (s[O](F, P[w], x), s[O](F, w, x));
|
|
7627
7630
|
}
|
|
7628
|
-
function g(
|
|
7629
|
-
if (
|
|
7630
|
-
return
|
|
7631
|
-
if (
|
|
7632
|
-
return
|
|
7633
|
-
if (
|
|
7634
|
-
return
|
|
7635
|
-
var O =
|
|
7631
|
+
function g(F) {
|
|
7632
|
+
if (F.touches !== void 0)
|
|
7633
|
+
return F.touches.length;
|
|
7634
|
+
if (F.which !== void 0 && F.which !== 0)
|
|
7635
|
+
return F.which;
|
|
7636
|
+
if (F.buttons !== void 0)
|
|
7637
|
+
return F.buttons;
|
|
7638
|
+
var O = F.button;
|
|
7636
7639
|
if (O !== void 0)
|
|
7637
7640
|
return O & 1 ? 1 : O & 2 ? 3 : O & 4 ? 2 : 0;
|
|
7638
7641
|
}
|
|
7639
|
-
function y(
|
|
7640
|
-
|
|
7641
|
-
var x =
|
|
7642
|
-
return
|
|
7642
|
+
function y(F, O, w) {
|
|
7643
|
+
F = F || {};
|
|
7644
|
+
var x = F.className || "", P;
|
|
7645
|
+
return F.className += " gu-hide", P = u.elementFromPoint(O, w), F.className = x, P;
|
|
7643
7646
|
}
|
|
7644
7647
|
function C() {
|
|
7645
7648
|
return !1;
|
|
@@ -7647,68 +7650,68 @@ var Ml = { exports: {} };
|
|
|
7647
7650
|
function S() {
|
|
7648
7651
|
return !0;
|
|
7649
7652
|
}
|
|
7650
|
-
function D(
|
|
7651
|
-
return
|
|
7653
|
+
function D(F) {
|
|
7654
|
+
return F.width || F.right - F.left;
|
|
7652
7655
|
}
|
|
7653
|
-
function M(
|
|
7654
|
-
return
|
|
7656
|
+
function M(F) {
|
|
7657
|
+
return F.height || F.bottom - F.top;
|
|
7655
7658
|
}
|
|
7656
|
-
function v(
|
|
7657
|
-
return
|
|
7659
|
+
function v(F) {
|
|
7660
|
+
return F.parentNode === u ? null : F.parentNode;
|
|
7658
7661
|
}
|
|
7659
|
-
function h(
|
|
7660
|
-
return
|
|
7662
|
+
function h(F) {
|
|
7663
|
+
return F.tagName === "INPUT" || F.tagName === "TEXTAREA" || F.tagName === "SELECT" || T(F);
|
|
7661
7664
|
}
|
|
7662
|
-
function F
|
|
7663
|
-
return !
|
|
7665
|
+
function T(F) {
|
|
7666
|
+
return !F || F.contentEditable === "false" ? !1 : F.contentEditable === "true" ? !0 : T(v(F));
|
|
7664
7667
|
}
|
|
7665
|
-
function B(
|
|
7666
|
-
return
|
|
7668
|
+
function B(F) {
|
|
7669
|
+
return F.nextElementSibling || O();
|
|
7667
7670
|
function O() {
|
|
7668
|
-
var w =
|
|
7671
|
+
var w = F;
|
|
7669
7672
|
do
|
|
7670
7673
|
w = w.nextSibling;
|
|
7671
7674
|
while (w && w.nodeType !== 1);
|
|
7672
7675
|
return w;
|
|
7673
7676
|
}
|
|
7674
7677
|
}
|
|
7675
|
-
function N(
|
|
7676
|
-
return
|
|
7678
|
+
function N(F) {
|
|
7679
|
+
return F.targetTouches && F.targetTouches.length ? F.targetTouches[0] : F.changedTouches && F.changedTouches.length ? F.changedTouches[0] : F;
|
|
7677
7680
|
}
|
|
7678
|
-
function L(
|
|
7681
|
+
function L(F, O) {
|
|
7679
7682
|
var w = N(O), x = {
|
|
7680
7683
|
pageX: "clientX",
|
|
7681
7684
|
// IE8
|
|
7682
7685
|
pageY: "clientY"
|
|
7683
7686
|
// IE8
|
|
7684
7687
|
};
|
|
7685
|
-
return
|
|
7688
|
+
return F in x && !(F in w) && x[F] in w && (F = x[F]), w[F];
|
|
7686
7689
|
}
|
|
7687
7690
|
a.exports = d;
|
|
7688
7691
|
}).call(this, typeof Ae < "u" ? Ae : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
7689
7692
|
}, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
|
|
7690
7693
|
3: [function(n, a, o) {
|
|
7691
|
-
a.exports = function(r,
|
|
7692
|
-
return Array.prototype.slice.call(r,
|
|
7694
|
+
a.exports = function(r, s) {
|
|
7695
|
+
return Array.prototype.slice.call(r, s);
|
|
7693
7696
|
};
|
|
7694
7697
|
}, {}],
|
|
7695
7698
|
4: [function(n, a, o) {
|
|
7696
7699
|
var i = n("ticky");
|
|
7697
|
-
a.exports = function(
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
+
a.exports = function(s, l, u) {
|
|
7701
|
+
s && i(function() {
|
|
7702
|
+
s.apply(u || null, l || []);
|
|
7700
7703
|
});
|
|
7701
7704
|
};
|
|
7702
7705
|
}, { ticky: 10 }],
|
|
7703
7706
|
5: [function(n, a, o) {
|
|
7704
7707
|
var i = n("atoa"), r = n("./debounce");
|
|
7705
|
-
a.exports = function(
|
|
7708
|
+
a.exports = function(l, u) {
|
|
7706
7709
|
var p = u || {}, d = {};
|
|
7707
|
-
return
|
|
7708
|
-
return d[c] ? d[c].push(f) : d[c] = [f],
|
|
7709
|
-
},
|
|
7710
|
-
return f._once = !0,
|
|
7711
|
-
},
|
|
7710
|
+
return l === void 0 && (l = {}), l.on = function(c, f) {
|
|
7711
|
+
return d[c] ? d[c].push(f) : d[c] = [f], l;
|
|
7712
|
+
}, l.once = function(c, f) {
|
|
7713
|
+
return f._once = !0, l.on(c, f), l;
|
|
7714
|
+
}, l.off = function(c, f) {
|
|
7712
7715
|
var m = arguments.length;
|
|
7713
7716
|
if (m === 1)
|
|
7714
7717
|
delete d[c];
|
|
@@ -7717,113 +7720,113 @@ var Ml = { exports: {} };
|
|
|
7717
7720
|
else {
|
|
7718
7721
|
var g = d[c];
|
|
7719
7722
|
if (!g)
|
|
7720
|
-
return
|
|
7723
|
+
return l;
|
|
7721
7724
|
g.splice(g.indexOf(f), 1);
|
|
7722
7725
|
}
|
|
7723
|
-
return
|
|
7724
|
-
},
|
|
7726
|
+
return l;
|
|
7727
|
+
}, l.emit = function() {
|
|
7725
7728
|
var c = i(arguments);
|
|
7726
|
-
return
|
|
7727
|
-
},
|
|
7729
|
+
return l.emitterSnapshot(c.shift()).apply(this, c);
|
|
7730
|
+
}, l.emitterSnapshot = function(c) {
|
|
7728
7731
|
var f = (d[c] || []).slice(0);
|
|
7729
7732
|
return function() {
|
|
7730
|
-
var m = i(arguments), g = this ||
|
|
7733
|
+
var m = i(arguments), g = this || l;
|
|
7731
7734
|
if (c === "error" && p.throws !== !1 && !f.length)
|
|
7732
7735
|
throw m.length === 1 ? m[0] : m;
|
|
7733
7736
|
return f.forEach(function(C) {
|
|
7734
|
-
p.async ? r(C, m, g) : C.apply(g, m), C._once &&
|
|
7735
|
-
}),
|
|
7737
|
+
p.async ? r(C, m, g) : C.apply(g, m), C._once && l.off(c, C);
|
|
7738
|
+
}), l;
|
|
7736
7739
|
};
|
|
7737
|
-
},
|
|
7740
|
+
}, l;
|
|
7738
7741
|
};
|
|
7739
7742
|
}, { "./debounce": 4, atoa: 3 }],
|
|
7740
7743
|
6: [function(n, a, o) {
|
|
7741
7744
|
(function(i) {
|
|
7742
|
-
var r = n("custom-event"),
|
|
7745
|
+
var r = n("custom-event"), s = n("./eventmap"), l = i.document, u = c, p = m, d = [];
|
|
7743
7746
|
i.addEventListener || (u = f, p = g), a.exports = {
|
|
7744
7747
|
add: u,
|
|
7745
7748
|
remove: p,
|
|
7746
7749
|
fabricate: y
|
|
7747
7750
|
};
|
|
7748
|
-
function c(v, h,
|
|
7749
|
-
return v.addEventListener(h,
|
|
7751
|
+
function c(v, h, T, B) {
|
|
7752
|
+
return v.addEventListener(h, T, B);
|
|
7750
7753
|
}
|
|
7751
|
-
function f(v, h,
|
|
7752
|
-
return v.attachEvent("on" + h, S(v, h,
|
|
7754
|
+
function f(v, h, T) {
|
|
7755
|
+
return v.attachEvent("on" + h, S(v, h, T));
|
|
7753
7756
|
}
|
|
7754
|
-
function m(v, h,
|
|
7755
|
-
return v.removeEventListener(h,
|
|
7757
|
+
function m(v, h, T, B) {
|
|
7758
|
+
return v.removeEventListener(h, T, B);
|
|
7756
7759
|
}
|
|
7757
|
-
function g(v, h,
|
|
7758
|
-
var B = D(v, h,
|
|
7760
|
+
function g(v, h, T) {
|
|
7761
|
+
var B = D(v, h, T);
|
|
7759
7762
|
if (B)
|
|
7760
7763
|
return v.detachEvent("on" + h, B);
|
|
7761
7764
|
}
|
|
7762
|
-
function y(v, h,
|
|
7763
|
-
var B =
|
|
7765
|
+
function y(v, h, T) {
|
|
7766
|
+
var B = s.indexOf(h) === -1 ? L() : N();
|
|
7764
7767
|
v.dispatchEvent ? v.dispatchEvent(B) : v.fireEvent("on" + h, B);
|
|
7765
7768
|
function N() {
|
|
7766
|
-
var
|
|
7767
|
-
return
|
|
7769
|
+
var F;
|
|
7770
|
+
return l.createEvent ? (F = l.createEvent("Event"), F.initEvent(h, !0, !0)) : l.createEventObject && (F = l.createEventObject()), F;
|
|
7768
7771
|
}
|
|
7769
7772
|
function L() {
|
|
7770
|
-
return new r(h, { detail:
|
|
7773
|
+
return new r(h, { detail: T });
|
|
7771
7774
|
}
|
|
7772
7775
|
}
|
|
7773
|
-
function C(v, h,
|
|
7776
|
+
function C(v, h, T) {
|
|
7774
7777
|
return function(N) {
|
|
7775
7778
|
var L = N || i.event;
|
|
7776
7779
|
L.target = L.target || L.srcElement, L.preventDefault = L.preventDefault || function() {
|
|
7777
7780
|
L.returnValue = !1;
|
|
7778
7781
|
}, L.stopPropagation = L.stopPropagation || function() {
|
|
7779
7782
|
L.cancelBubble = !0;
|
|
7780
|
-
}, L.which = L.which || L.keyCode,
|
|
7783
|
+
}, L.which = L.which || L.keyCode, T.call(v, L);
|
|
7781
7784
|
};
|
|
7782
7785
|
}
|
|
7783
|
-
function S(v, h,
|
|
7784
|
-
var B = D(v, h,
|
|
7786
|
+
function S(v, h, T) {
|
|
7787
|
+
var B = D(v, h, T) || C(v, h, T);
|
|
7785
7788
|
return d.push({
|
|
7786
7789
|
wrapper: B,
|
|
7787
7790
|
element: v,
|
|
7788
7791
|
type: h,
|
|
7789
|
-
fn:
|
|
7792
|
+
fn: T
|
|
7790
7793
|
}), B;
|
|
7791
7794
|
}
|
|
7792
|
-
function D(v, h,
|
|
7793
|
-
var B = M(v, h,
|
|
7795
|
+
function D(v, h, T) {
|
|
7796
|
+
var B = M(v, h, T);
|
|
7794
7797
|
if (B) {
|
|
7795
7798
|
var N = d[B].wrapper;
|
|
7796
7799
|
return d.splice(B, 1), N;
|
|
7797
7800
|
}
|
|
7798
7801
|
}
|
|
7799
|
-
function M(v, h,
|
|
7802
|
+
function M(v, h, T) {
|
|
7800
7803
|
var B, N;
|
|
7801
7804
|
for (B = 0; B < d.length; B++)
|
|
7802
|
-
if (N = d[B], N.element === v && N.type === h && N.fn ===
|
|
7805
|
+
if (N = d[B], N.element === v && N.type === h && N.fn === T)
|
|
7803
7806
|
return B;
|
|
7804
7807
|
}
|
|
7805
7808
|
}).call(this, typeof Ae < "u" ? Ae : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
7806
7809
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
7807
7810
|
7: [function(n, a, o) {
|
|
7808
7811
|
(function(i) {
|
|
7809
|
-
var r = [],
|
|
7810
|
-
for (
|
|
7811
|
-
|
|
7812
|
+
var r = [], s = "", l = /^on/;
|
|
7813
|
+
for (s in i)
|
|
7814
|
+
l.test(s) && r.push(s.slice(2));
|
|
7812
7815
|
a.exports = r;
|
|
7813
7816
|
}).call(this, typeof Ae < "u" ? Ae : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
7814
7817
|
}, {}],
|
|
7815
7818
|
8: [function(n, a, o) {
|
|
7816
7819
|
(function(i) {
|
|
7817
7820
|
var r = i.CustomEvent;
|
|
7818
|
-
function
|
|
7821
|
+
function s() {
|
|
7819
7822
|
try {
|
|
7820
|
-
var
|
|
7821
|
-
return
|
|
7823
|
+
var l = new r("cat", { detail: { foo: "bar" } });
|
|
7824
|
+
return l.type === "cat" && l.detail.foo === "bar";
|
|
7822
7825
|
} catch {
|
|
7823
7826
|
}
|
|
7824
7827
|
return !1;
|
|
7825
7828
|
}
|
|
7826
|
-
a.exports =
|
|
7829
|
+
a.exports = s() ? r : (
|
|
7827
7830
|
// IE >= 9
|
|
7828
7831
|
typeof document < "u" && typeof document.createEvent == "function" ? function(u, p) {
|
|
7829
7832
|
var d = document.createEvent("CustomEvent");
|
|
@@ -7839,8 +7842,8 @@ var Ml = { exports: {} };
|
|
|
7839
7842
|
}).call(this, typeof Ae < "u" ? Ae : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
7840
7843
|
}, {}],
|
|
7841
7844
|
9: [function(n, a, o) {
|
|
7842
|
-
var i = a.exports = {}, r,
|
|
7843
|
-
function
|
|
7845
|
+
var i = a.exports = {}, r, s;
|
|
7846
|
+
function l() {
|
|
7844
7847
|
throw new Error("setTimeout has not been defined");
|
|
7845
7848
|
}
|
|
7846
7849
|
function u() {
|
|
@@ -7848,20 +7851,20 @@ var Ml = { exports: {} };
|
|
|
7848
7851
|
}
|
|
7849
7852
|
(function() {
|
|
7850
7853
|
try {
|
|
7851
|
-
typeof setTimeout == "function" ? r = setTimeout : r =
|
|
7854
|
+
typeof setTimeout == "function" ? r = setTimeout : r = l;
|
|
7852
7855
|
} catch {
|
|
7853
|
-
r =
|
|
7856
|
+
r = l;
|
|
7854
7857
|
}
|
|
7855
7858
|
try {
|
|
7856
|
-
typeof clearTimeout == "function" ?
|
|
7859
|
+
typeof clearTimeout == "function" ? s = clearTimeout : s = u;
|
|
7857
7860
|
} catch {
|
|
7858
|
-
|
|
7861
|
+
s = u;
|
|
7859
7862
|
}
|
|
7860
7863
|
})();
|
|
7861
7864
|
function p(M) {
|
|
7862
7865
|
if (r === setTimeout)
|
|
7863
7866
|
return setTimeout(M, 0);
|
|
7864
|
-
if ((r ===
|
|
7867
|
+
if ((r === l || !r) && setTimeout)
|
|
7865
7868
|
return r = setTimeout, setTimeout(M, 0);
|
|
7866
7869
|
try {
|
|
7867
7870
|
return r(M, 0);
|
|
@@ -7874,17 +7877,17 @@ var Ml = { exports: {} };
|
|
|
7874
7877
|
}
|
|
7875
7878
|
}
|
|
7876
7879
|
function d(M) {
|
|
7877
|
-
if (
|
|
7880
|
+
if (s === clearTimeout)
|
|
7878
7881
|
return clearTimeout(M);
|
|
7879
|
-
if ((
|
|
7880
|
-
return
|
|
7882
|
+
if ((s === u || !s) && clearTimeout)
|
|
7883
|
+
return s = clearTimeout, clearTimeout(M);
|
|
7881
7884
|
try {
|
|
7882
|
-
return
|
|
7885
|
+
return s(M);
|
|
7883
7886
|
} catch {
|
|
7884
7887
|
try {
|
|
7885
|
-
return
|
|
7888
|
+
return s.call(null, M);
|
|
7886
7889
|
} catch {
|
|
7887
|
-
return
|
|
7890
|
+
return s.call(this, M);
|
|
7888
7891
|
}
|
|
7889
7892
|
}
|
|
7890
7893
|
}
|
|
@@ -7933,21 +7936,21 @@ var Ml = { exports: {} };
|
|
|
7933
7936
|
}, {}],
|
|
7934
7937
|
10: [function(n, a, o) {
|
|
7935
7938
|
(function(i) {
|
|
7936
|
-
var r = typeof i == "function",
|
|
7937
|
-
r ?
|
|
7938
|
-
i(
|
|
7939
|
-
} :
|
|
7940
|
-
setTimeout(
|
|
7941
|
-
}, a.exports =
|
|
7939
|
+
var r = typeof i == "function", s;
|
|
7940
|
+
r ? s = function(l) {
|
|
7941
|
+
i(l);
|
|
7942
|
+
} : s = function(l) {
|
|
7943
|
+
setTimeout(l, 0);
|
|
7944
|
+
}, a.exports = s;
|
|
7942
7945
|
}).call(this, n("timers").setImmediate);
|
|
7943
7946
|
}, { timers: 11 }],
|
|
7944
7947
|
11: [function(n, a, o) {
|
|
7945
7948
|
(function(i, r) {
|
|
7946
|
-
var
|
|
7949
|
+
var s = n("process/browser.js").nextTick, l = Function.prototype.apply, u = Array.prototype.slice, p = {}, d = 0;
|
|
7947
7950
|
o.setTimeout = function() {
|
|
7948
|
-
return new c(
|
|
7951
|
+
return new c(l.call(setTimeout, window, arguments), clearTimeout);
|
|
7949
7952
|
}, o.setInterval = function() {
|
|
7950
|
-
return new c(
|
|
7953
|
+
return new c(l.call(setInterval, window, arguments), clearInterval);
|
|
7951
7954
|
}, o.clearTimeout = o.clearInterval = function(f) {
|
|
7952
7955
|
f.close();
|
|
7953
7956
|
};
|
|
@@ -7969,7 +7972,7 @@ var Ml = { exports: {} };
|
|
|
7969
7972
|
}, m));
|
|
7970
7973
|
}, o.setImmediate = typeof i == "function" ? i : function(f) {
|
|
7971
7974
|
var m = d++, g = arguments.length < 2 ? !1 : u.call(arguments, 1);
|
|
7972
|
-
return p[m] = !0,
|
|
7975
|
+
return p[m] = !0, s(function() {
|
|
7973
7976
|
p[m] && (g ? f.apply(null, g) : f.call(null), o.clearImmediate(m));
|
|
7974
7977
|
}), m;
|
|
7975
7978
|
}, o.clearImmediate = typeof r == "function" ? r : function(f) {
|
|
@@ -8005,24 +8008,24 @@ const Ol = {
|
|
|
8005
8008
|
const {
|
|
8006
8009
|
locale: n,
|
|
8007
8010
|
t: a
|
|
8008
|
-
} = bt(), o = b(e.animate), i = "fadeOut", r = j(() => e.options),
|
|
8011
|
+
} = bt(), o = b(e.animate), i = "fadeOut", r = j(() => e.options), s = b(!1), l = j(() => r.value.title && r.value.message), u = j(() => !r.value.title && r.value.message), p = j(() => {
|
|
8009
8012
|
const M = {
|
|
8010
|
-
animated:
|
|
8013
|
+
animated: s.value,
|
|
8011
8014
|
toast: !0,
|
|
8012
|
-
"toast--only-content": !
|
|
8015
|
+
"toast--only-content": !l.value
|
|
8013
8016
|
};
|
|
8014
|
-
return M[e.animate] = !1, M[i] =
|
|
8017
|
+
return M[e.animate] = !1, M[i] = s.value, M["toasty-type-" + r.value.type] = !0, r.value.theme && (M[r.value.theme] = !0), M;
|
|
8015
8018
|
}), d = j(() => {
|
|
8016
|
-
const h = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`,
|
|
8019
|
+
const h = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, T = {
|
|
8017
8020
|
"f-icon": !0
|
|
8018
8021
|
};
|
|
8019
|
-
return
|
|
8022
|
+
return T[h] = !0, T;
|
|
8020
8023
|
}), c = j(() => r.value.title || r.value.message), f = j(() => e.showCloseButton), m = j(() => !!r.value.buttons || !!t.slots.default), g = j(() => n.value === "en" ? {
|
|
8021
8024
|
wordBreak: "keep-all",
|
|
8022
8025
|
overflowWrap: "break-word"
|
|
8023
8026
|
} : {});
|
|
8024
8027
|
function y(M) {
|
|
8025
|
-
M.stopPropagation(), M.preventDefault(),
|
|
8028
|
+
M.stopPropagation(), M.preventDefault(), s.value = !1, setTimeout(() => {
|
|
8026
8029
|
t.emit("close", r.value);
|
|
8027
8030
|
}, 200);
|
|
8028
8031
|
}
|
|
@@ -8054,13 +8057,13 @@ const Ol = {
|
|
|
8054
8057
|
class: "f-icon modal_close"
|
|
8055
8058
|
}, null)]), c.value && k("section", {
|
|
8056
8059
|
class: "modal-tips"
|
|
8057
|
-
}, [!
|
|
8060
|
+
}, [!l.value && k("div", {
|
|
8058
8061
|
class: "float-left modal-tips-iconwrap"
|
|
8059
8062
|
}, [k("span", {
|
|
8060
8063
|
class: d.value
|
|
8061
8064
|
}, null)]), k("div", {
|
|
8062
8065
|
class: "modal-tips-content"
|
|
8063
|
-
}, [
|
|
8066
|
+
}, [l.value && k(et, null, [k("h5", {
|
|
8064
8067
|
class: "toast-title modal-tips-title",
|
|
8065
8068
|
innerHTML: r.value.title
|
|
8066
8069
|
}, null), k("p", {
|
|
@@ -8093,25 +8096,25 @@ const Ol = {
|
|
|
8093
8096
|
right: 12,
|
|
8094
8097
|
top: 20,
|
|
8095
8098
|
bottom: 12
|
|
8096
|
-
}, o = b(), i = b(e.options), r = b(e.showCloseButton),
|
|
8099
|
+
}, o = b(), i = b(e.options), r = b(e.showCloseButton), s = j(() => e.position || "bottom-right"), l = j(() => e.timeout != null ? e.timeout : 3e3), u = j(() => {
|
|
8097
8100
|
const c = e.bottom ? e.bottom : a.bottom, f = e.top ? e.top : a.top, m = {
|
|
8098
8101
|
transition: "all 0.2s ease",
|
|
8099
|
-
left:
|
|
8100
|
-
right:
|
|
8101
|
-
top:
|
|
8102
|
-
bottom:
|
|
8102
|
+
left: s.value.indexOf("left") > -1 ? `${e.left ? e.left : a.left}px` : "",
|
|
8103
|
+
right: s.value.indexOf("right") > -1 ? `${e.right ? e.right : a.right}px` : "",
|
|
8104
|
+
top: s.value.indexOf("top") > -1 ? `${f}px` : "",
|
|
8105
|
+
bottom: s.value.indexOf("bottom") > -1 ? `${c}px` : ""
|
|
8103
8106
|
};
|
|
8104
|
-
return
|
|
8107
|
+
return s.value.indexOf("center") > -1 && (m.left = "50%", m.marginLeft = "calc(-24rem / 2)", s.value === "center-center" && (m.top = "50%", m.transform = "translate(-50%, -50%)")), m;
|
|
8105
8108
|
});
|
|
8106
8109
|
function p(c) {
|
|
8107
8110
|
t.emit("close");
|
|
8108
8111
|
}
|
|
8109
|
-
|
|
8112
|
+
l.value && setTimeout(() => {
|
|
8110
8113
|
p();
|
|
8111
|
-
},
|
|
8114
|
+
}, l.value), t.expose({
|
|
8112
8115
|
closeToast: p,
|
|
8113
8116
|
container: o,
|
|
8114
|
-
notifyPosition:
|
|
8117
|
+
notifyPosition: s
|
|
8115
8118
|
});
|
|
8116
8119
|
function d(c, f) {
|
|
8117
8120
|
p();
|
|
@@ -8152,10 +8155,10 @@ class El {
|
|
|
8152
8155
|
const r = Jt({
|
|
8153
8156
|
setup() {
|
|
8154
8157
|
var u;
|
|
8155
|
-
const
|
|
8156
|
-
function
|
|
8157
|
-
|
|
8158
|
-
n.updateNotifyPositionForClose(o,
|
|
8158
|
+
const s = b();
|
|
8159
|
+
function l() {
|
|
8160
|
+
s.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
8161
|
+
n.updateNotifyPositionForClose(o, s), r.unmount();
|
|
8159
8162
|
}, 220);
|
|
8160
8163
|
}
|
|
8161
8164
|
if (o.position.indexOf("top") > -1) {
|
|
@@ -8168,16 +8171,16 @@ class El {
|
|
|
8168
8171
|
return o.safeHtml && ((u = o.options) != null && u.message) && (o.options.message = n.escapeAllHtml(o.options.message)), gt(() => {
|
|
8169
8172
|
document.body.removeChild(i);
|
|
8170
8173
|
}), he(() => {
|
|
8171
|
-
n.updateNotifyPositionForCreate(o,
|
|
8174
|
+
n.updateNotifyPositionForCreate(o, s);
|
|
8172
8175
|
}), () => k(Sn, {
|
|
8173
8176
|
mode: "out-in",
|
|
8174
8177
|
name: "fade",
|
|
8175
8178
|
appear: !0
|
|
8176
8179
|
}, {
|
|
8177
8180
|
default: () => [k(Ft, Ot({
|
|
8178
|
-
ref:
|
|
8181
|
+
ref: s
|
|
8179
8182
|
}, o, {
|
|
8180
|
-
onClose:
|
|
8183
|
+
onClose: l
|
|
8181
8184
|
}), null)]
|
|
8182
8185
|
});
|
|
8183
8186
|
}
|
|
@@ -8211,8 +8214,8 @@ class El {
|
|
|
8211
8214
|
return this.createNotifyInstance(t);
|
|
8212
8215
|
}
|
|
8213
8216
|
buildNotifyProps(t, n) {
|
|
8214
|
-
let a = "", o = "", i, r,
|
|
8215
|
-
typeof n == "string" ? a = n : n && (a = n.message || "", o = n.title || "", r = n.position || null,
|
|
8217
|
+
let a = "", o = "", i, r, s;
|
|
8218
|
+
typeof n == "string" ? a = n : n && (a = n.message || "", o = n.title || "", r = n.position || null, s = n.showCloseButton != null ? n.showCloseButton : null, i = n.timeout != null ? n.timeout : null);
|
|
8216
8219
|
const u = {
|
|
8217
8220
|
options: {
|
|
8218
8221
|
type: t,
|
|
@@ -8220,7 +8223,7 @@ class El {
|
|
|
8220
8223
|
title: o
|
|
8221
8224
|
}
|
|
8222
8225
|
};
|
|
8223
|
-
return r != null && (u.position = r),
|
|
8226
|
+
return r != null && (u.position = r), s != null && (u.showCloseButton = s), i != null && (u.timeout = i), u;
|
|
8224
8227
|
}
|
|
8225
8228
|
info(t) {
|
|
8226
8229
|
const n = this.buildNotifyProps("info", t);
|
|
@@ -8403,7 +8406,7 @@ const Pl = {
|
|
|
8403
8406
|
}
|
|
8404
8407
|
}
|
|
8405
8408
|
};
|
|
8406
|
-
function Nl(e, t, n, a, o, i, r,
|
|
8409
|
+
function Nl(e, t, n, a, o, i, r, s, l, u, p, d, c, f, m, g, y) {
|
|
8407
8410
|
const {
|
|
8408
8411
|
calculateCellPositionInRow: C
|
|
8409
8412
|
} = i, {
|
|
@@ -8413,15 +8416,15 @@ function Nl(e, t, n, a, o, i, r, l, s, u, p, d, c, f, m, g, y) {
|
|
|
8413
8416
|
} = r, {
|
|
8414
8417
|
gridDataStyle: v,
|
|
8415
8418
|
leftFixedGridDataStyle: h,
|
|
8416
|
-
rightFixedGridDataStyle:
|
|
8419
|
+
rightFixedGridDataStyle: T
|
|
8417
8420
|
} = f, {
|
|
8418
8421
|
renderDataRow: B
|
|
8419
|
-
} = La(e, t, S, y,
|
|
8422
|
+
} = La(e, t, S, y, s, l, u, p, d, c, f, m, g), N = [B];
|
|
8420
8423
|
function L(P, $) {
|
|
8421
|
-
const
|
|
8422
|
-
return y.value.filter((I) => I.visible !== !1).map((I, A) => N[I.type](I,
|
|
8424
|
+
const Y = C(P);
|
|
8425
|
+
return y.value.filter((I) => I.visible !== !1).map((I, A) => N[I.type](I, Y, $, A));
|
|
8423
8426
|
}
|
|
8424
|
-
function
|
|
8427
|
+
function F() {
|
|
8425
8428
|
return k("div", {
|
|
8426
8429
|
ref: a,
|
|
8427
8430
|
class: "fv-grid-content-left-fixed"
|
|
@@ -8445,12 +8448,12 @@ function Nl(e, t, n, a, o, i, r, l, s, u, p, d, c, f, m, g, y) {
|
|
|
8445
8448
|
class: "fv-grid-content-right-fixed"
|
|
8446
8449
|
}, [k("div", {
|
|
8447
8450
|
class: "fv-grid-data",
|
|
8448
|
-
style:
|
|
8451
|
+
style: T.value
|
|
8449
8452
|
}, [L(S.value.rightColumns.filter((P) => P.visible), "right")])]);
|
|
8450
8453
|
}
|
|
8451
8454
|
function x() {
|
|
8452
8455
|
const P = [];
|
|
8453
|
-
return D.value && P.push(
|
|
8456
|
+
return D.value && P.push(F()), P.push(O()), M.value && P.push(w()), P;
|
|
8454
8457
|
}
|
|
8455
8458
|
return {
|
|
8456
8459
|
renderDataArea: x
|
|
@@ -8463,28 +8466,28 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8463
8466
|
setup(e, t) {
|
|
8464
8467
|
var on, rn;
|
|
8465
8468
|
const a = ((on = e.rowOption) == null ? void 0 : on.height) || 28, o = b(20), i = b(e.columns), r = $a(e), {
|
|
8466
|
-
idField:
|
|
8467
|
-
} = r,
|
|
8469
|
+
idField: s
|
|
8470
|
+
} = r, l = b(), u = b(), p = b(), d = b(), c = b(), f = b([]), m = b(!1), g = b(((rn = e.rowOption) == null ? void 0 : rn.wrapContent) || !1), y = za(e, r), C = Aa(e, t), S = Ha(e), {
|
|
8468
8471
|
collapseField: D
|
|
8469
8472
|
} = S, {
|
|
8470
8473
|
showLoading: M,
|
|
8471
8474
|
renderLoading: v
|
|
8472
|
-
} = Va(e,
|
|
8473
|
-
dataView:
|
|
8475
|
+
} = Va(e, l), h = Wa(e, /* @__PURE__ */ new Map(), C, S, r), {
|
|
8476
|
+
dataView: T
|
|
8474
8477
|
} = h, B = qa(e, h, r, f, t), {
|
|
8475
8478
|
showSelection: N,
|
|
8476
8479
|
selectedValues: L
|
|
8477
|
-
} = B,
|
|
8480
|
+
} = B, F = Ga(e, f, h, r, B, t), O = j(() => e.disabled), w = j(() => e.virtualized ? Math.min(h.dataView.value.length, o.value) : h.dataView.value.length), x = _a(e, h), {
|
|
8478
8481
|
shouldRenderPagination: P
|
|
8479
8482
|
} = x, {
|
|
8480
8483
|
containerStyleObject: $
|
|
8481
|
-
} =
|
|
8484
|
+
} = Ya(e), Y = Ua(e), {
|
|
8482
8485
|
applyCommands: I
|
|
8483
|
-
} =
|
|
8486
|
+
} = Y;
|
|
8484
8487
|
I(i);
|
|
8485
8488
|
const {
|
|
8486
8489
|
applyColumnSetting: A,
|
|
8487
|
-
removeColumnSetting:
|
|
8490
|
+
removeColumnSetting: U
|
|
8488
8491
|
} = Xa(e);
|
|
8489
8492
|
e.showSetting && A(i);
|
|
8490
8493
|
const W = Ja(e, t), te = Qa(e), {
|
|
@@ -8504,9 +8507,9 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8504
8507
|
viewPortWidth: Te,
|
|
8505
8508
|
resetScroll: $e,
|
|
8506
8509
|
updateVisibleRowsOnLatestVisibleScope: ut
|
|
8507
|
-
} = le,
|
|
8510
|
+
} = le, Ye = so(e, ge, u, Te, oe), {
|
|
8508
8511
|
calculateColumnsSize: Ee
|
|
8509
|
-
} =
|
|
8512
|
+
} = Ye, ze = uo(), ot = co(u, c, h, ze, le), it = fo(e, t, W, h, oe, y, le), R = j(() => {
|
|
8510
8513
|
const q = {
|
|
8511
8514
|
"fv-grid": !0,
|
|
8512
8515
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -8520,11 +8523,11 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8520
8523
|
"fv-grid-wrap-content": g.value
|
|
8521
8524
|
})), {
|
|
8522
8525
|
renderDataArea: se
|
|
8523
|
-
} = Nl(e, t, p, d, c, nt, W, h, ne, S, ue, B,
|
|
8526
|
+
} = Nl(e, t, p, d, c, nt, W, h, ne, S, ue, B, F, le, Ie, G, f), {
|
|
8524
8527
|
renderGridHeader: ce,
|
|
8525
8528
|
renderGridColumnResizeOverlay: Pe,
|
|
8526
8529
|
shouldShowHeader: Pt
|
|
8527
|
-
} = po(e, t, u, d, c, W, h, it, ot, C, ze,
|
|
8530
|
+
} = po(e, t, u, d, c, W, h, it, ot, C, ze, Ye, oe, B, _e, te, le, Te, f), {
|
|
8528
8531
|
renderDataGridSidebar: Nt
|
|
8529
8532
|
} = mo(e, ue, B, _e, le), {
|
|
8530
8533
|
renderDisableMask: jt
|
|
@@ -8567,12 +8570,12 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8567
8570
|
h.insertNewChildDataItem(q), f.value = Fe(0, w.value + 0 - 1);
|
|
8568
8571
|
}
|
|
8569
8572
|
function Ht(q, X) {
|
|
8570
|
-
const fe = f.value.find((Se) => Se.raw[
|
|
8573
|
+
const fe = f.value.find((Se) => Se.raw[s.value] === X), ye = fe ? fe.dataIndex - 1 : -1;
|
|
8571
8574
|
h.insertNewChildDataItems(q, ye);
|
|
8572
8575
|
}
|
|
8573
8576
|
function Vt() {
|
|
8574
|
-
const q = ct(), X =
|
|
8575
|
-
h.removeHierarchyDataItem(q), f.value = Fe(0, w.value + 0 - 1), X &&
|
|
8577
|
+
const q = ct(), X = F.getNextSelectableHierarchyItemId(q);
|
|
8578
|
+
h.removeHierarchyDataItem(q), f.value = Fe(0, w.value + 0 - 1), X && F.selectItemById(X);
|
|
8576
8579
|
}
|
|
8577
8580
|
function kt(q) {
|
|
8578
8581
|
ne.onEditingRow(q);
|
|
@@ -8593,7 +8596,7 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8593
8596
|
q && (h.load(q), h.reOrderVisibleIndex(), X != null && X.keepScrollPosition ? le.scrollTo(le.offsetY.value) : $e());
|
|
8594
8597
|
}
|
|
8595
8598
|
function _(q) {
|
|
8596
|
-
|
|
8599
|
+
F.selectItemById(q);
|
|
8597
8600
|
}
|
|
8598
8601
|
function Z(q) {
|
|
8599
8602
|
const X = f.value.find((fe) => fe.raw[r.idField.value] === q);
|
|
@@ -8603,7 +8606,7 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8603
8606
|
ue.activeRowById(q);
|
|
8604
8607
|
}
|
|
8605
8608
|
function xe(q) {
|
|
8606
|
-
|
|
8609
|
+
F.selectItemByIds(q);
|
|
8607
8610
|
}
|
|
8608
8611
|
function be() {
|
|
8609
8612
|
return B.getSelectedItems();
|
|
@@ -8618,37 +8621,37 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8618
8621
|
return B.getSelectionRow();
|
|
8619
8622
|
}
|
|
8620
8623
|
function ke(q) {
|
|
8621
|
-
|
|
8624
|
+
F.unSelectItemByIds(q);
|
|
8622
8625
|
}
|
|
8623
8626
|
function me() {
|
|
8624
8627
|
return B.currentSelectedDataId.value;
|
|
8625
8628
|
}
|
|
8626
8629
|
function dt(q, X, fe) {
|
|
8627
|
-
const ye =
|
|
8630
|
+
const ye = T.value.find((Se) => Se[s.value] === q);
|
|
8628
8631
|
if (ye) {
|
|
8629
8632
|
if (Object.keys(ye).forEach((pe) => {
|
|
8630
8633
|
Object.prototype.hasOwnProperty.call(X, pe) && (ye[pe] = X[pe]);
|
|
8631
8634
|
}), fe) {
|
|
8632
8635
|
const {
|
|
8633
8636
|
collapseField: pe,
|
|
8634
|
-
disabledField:
|
|
8637
|
+
disabledField: Ue,
|
|
8635
8638
|
checkedField: Xe,
|
|
8636
8639
|
visibleField: Je
|
|
8637
8640
|
} = fe;
|
|
8638
|
-
pe && !Ne(X[pe]) && (ye.__fv_collapse__ = X[pe]), Xe && !Ne(X[Xe]) && (ye.__fv_checked__ = X[Xe]),
|
|
8641
|
+
pe && !Ne(X[pe]) && (ye.__fv_collapse__ = X[pe]), Xe && !Ne(X[Xe]) && (ye.__fv_checked__ = X[Xe]), Ue && !Ne(X[Ue]) && (ye.__fv_disabled__ = X[Ue]), Je && !Ne(X[Je]) && (ye.__fv_visible__ = X[Je]);
|
|
8639
8642
|
}
|
|
8640
|
-
const Se = f.value.find((pe) => pe.raw[
|
|
8643
|
+
const Se = f.value.find((pe) => pe.raw[s.value] === q), ln = f.value.findIndex((pe) => pe.raw[s.value] === q);
|
|
8641
8644
|
if (Se) {
|
|
8642
8645
|
if (Se.raw = ye, Object.keys(Se.data).forEach((pe) => {
|
|
8643
8646
|
Se.data[pe].updateData(ye);
|
|
8644
8647
|
}), fe) {
|
|
8645
8648
|
const {
|
|
8646
8649
|
collapseField: pe,
|
|
8647
|
-
disabledField:
|
|
8650
|
+
disabledField: Ue,
|
|
8648
8651
|
checkedField: Xe,
|
|
8649
8652
|
visibleField: Je
|
|
8650
8653
|
} = fe;
|
|
8651
|
-
pe && !Ne(X[pe]) && (Se.collapse = X[pe]), Xe && !Ne(X[Xe]) && (Se.checked = X[Xe]),
|
|
8654
|
+
pe && !Ne(X[pe]) && (Se.collapse = X[pe]), Xe && !Ne(X[Xe]) && (Se.checked = X[Xe]), Ue && !Ne(X[Ue]) && (Se.disabled = X[Ue]), Je && !Ne(X[Je]) && (Se.visible = X[Je]);
|
|
8652
8655
|
}
|
|
8653
8656
|
f.value = [...f.value.slice(0, ln), Se, ...f.value.slice(ln + 1)], h.updateSummary();
|
|
8654
8657
|
}
|
|
@@ -8658,14 +8661,14 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8658
8661
|
return Object.prototype.hasOwnProperty.call(q, "raw") ? h.hasRealChildren(q.raw) : h.hasRealChildren(q);
|
|
8659
8662
|
}
|
|
8660
8663
|
function pt(q) {
|
|
8661
|
-
const X = h.dataView.value.find((fe) => fe[
|
|
8664
|
+
const X = h.dataView.value.find((fe) => fe[s.value] === q);
|
|
8662
8665
|
return X ? X[D.value] : "";
|
|
8663
8666
|
}
|
|
8664
8667
|
function ia() {
|
|
8665
8668
|
return D.value;
|
|
8666
8669
|
}
|
|
8667
8670
|
ee(() => e.showSetting, (q, X) => {
|
|
8668
|
-
q !== X && (q ? A(i) :
|
|
8671
|
+
q !== X && (q ? A(i) : U(i), H(i.value));
|
|
8669
8672
|
});
|
|
8670
8673
|
function ra(q) {
|
|
8671
8674
|
return f.value.filter((X) => q.includes(X.raw[e.idField]));
|
|
@@ -8726,7 +8729,7 @@ const jl = /* @__PURE__ */ ie({
|
|
|
8726
8729
|
renderDataGridSummary: pa
|
|
8727
8730
|
} = Co(e, h, W);
|
|
8728
8731
|
return () => k("div", {
|
|
8729
|
-
ref:
|
|
8732
|
+
ref: l,
|
|
8730
8733
|
class: R.value,
|
|
8731
8734
|
style: ca.value,
|
|
8732
8735
|
onWheel: st
|
|
@@ -8823,7 +8826,7 @@ const Ll = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-
|
|
|
8823
8826
|
type: Hl,
|
|
8824
8827
|
properties: Vl,
|
|
8825
8828
|
required: Wl
|
|
8826
|
-
}, Gl = "step", _l = "A Farris Component",
|
|
8829
|
+
}, Gl = "step", _l = "A Farris Component", Yl = "object", Ul = {
|
|
8827
8830
|
basic: {
|
|
8828
8831
|
description: "Basic Infomation",
|
|
8829
8832
|
title: "基本信息",
|
|
@@ -8848,8 +8851,8 @@ const Ll = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-
|
|
|
8848
8851
|
}, Xl = {
|
|
8849
8852
|
title: Gl,
|
|
8850
8853
|
description: _l,
|
|
8851
|
-
type:
|
|
8852
|
-
categories:
|
|
8854
|
+
type: Yl,
|
|
8855
|
+
categories: Ul
|
|
8853
8856
|
}, Jl = {
|
|
8854
8857
|
/** 步骤条方向 */
|
|
8855
8858
|
direction: { type: String, default: "horizontal" },
|
|
@@ -8939,9 +8942,9 @@ class Zl {
|
|
|
8939
8942
|
contents: o
|
|
8940
8943
|
}), n.contents = [a];
|
|
8941
8944
|
const { selectedFields: i } = t;
|
|
8942
|
-
i == null || i.forEach((
|
|
8943
|
-
if (
|
|
8944
|
-
const
|
|
8945
|
+
i == null || i.forEach((s) => {
|
|
8946
|
+
if (s.$type === un.SimpleField) {
|
|
8947
|
+
const l = lt(s), u = this.resolveControlClassByFormColumns(t), p = this.controlCreatorUtils.setFormFieldProperty(l, "", u);
|
|
8945
8948
|
p && o.push(p);
|
|
8946
8949
|
}
|
|
8947
8950
|
});
|
|
@@ -9009,12 +9012,12 @@ class Zl {
|
|
|
9009
9012
|
}
|
|
9010
9013
|
}
|
|
9011
9014
|
function Kl(e, t, n, a) {
|
|
9012
|
-
var i, r,
|
|
9015
|
+
var i, r, s, l, u, p;
|
|
9013
9016
|
const o = n.parentComponentInstance;
|
|
9014
9017
|
if (o && a) {
|
|
9015
9018
|
const d = (i = o.schema) == null ? void 0 : i.type, f = {
|
|
9016
9019
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
9017
|
-
componentName: ((r = n.bindingSourceContext) == null ? void 0 : r.entityTitle) || ((
|
|
9020
|
+
componentName: ((r = n.bindingSourceContext) == null ? void 0 : r.entityTitle) || ((l = (s = n.bindingSourceContext) == null ? void 0 : s.bindingEntity) == null ? void 0 : l.name) || "标题",
|
|
9018
9021
|
componentType: "form",
|
|
9019
9022
|
formColumns: d === "splitter-pane" ? 1 : 4,
|
|
9020
9023
|
parentContainerId: o.schema.id,
|
|
@@ -9203,14 +9206,14 @@ function xs() {
|
|
|
9203
9206
|
return { onCopy: e };
|
|
9204
9207
|
}
|
|
9205
9208
|
function Fs(e, t, n, a) {
|
|
9206
|
-
const o = b(14), i = b(140), r = b(""),
|
|
9209
|
+
const o = b(14), i = b(140), r = b(""), s = b(a.value.length), l = j(() => a.value), u = j(() => ({
|
|
9207
9210
|
"font-size": `${o.value}px`,
|
|
9208
9211
|
height: "100%"
|
|
9209
9212
|
}));
|
|
9210
9213
|
function p(d) {
|
|
9211
9214
|
if (d.currentTarget) {
|
|
9212
9215
|
const c = d.currentTarget.value || "";
|
|
9213
|
-
|
|
9216
|
+
s.value = c.length;
|
|
9214
9217
|
}
|
|
9215
9218
|
}
|
|
9216
9219
|
return () => k(et, null, [k("textarea", {
|
|
@@ -9221,16 +9224,16 @@ function Fs(e, t, n, a) {
|
|
|
9221
9224
|
rows: "4",
|
|
9222
9225
|
maxlength: i.value,
|
|
9223
9226
|
onInput: (d) => p(d)
|
|
9224
|
-
}, [
|
|
9227
|
+
}, [l.value]), k("span", {
|
|
9225
9228
|
class: "textarea-wordcount",
|
|
9226
9229
|
title: r.value,
|
|
9227
9230
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
9228
|
-
}, [
|
|
9231
|
+
}, [s.value + " / " + i.value])]);
|
|
9229
9232
|
}
|
|
9230
9233
|
function Ts(e, t, n, a) {
|
|
9231
9234
|
const o = Fs(e, t, n, a), i = /* @__PURE__ */ new Map([["text-area", o]]);
|
|
9232
|
-
function r(
|
|
9233
|
-
return i.get(
|
|
9235
|
+
function r(s) {
|
|
9236
|
+
return i.get(s) || null;
|
|
9234
9237
|
}
|
|
9235
9238
|
return { getEditorRender: r };
|
|
9236
9239
|
}
|
|
@@ -9294,18 +9297,18 @@ function Os(e, t) {
|
|
|
9294
9297
|
const o = j(() => !!e.value && !!e.value.date), i = j(() => {
|
|
9295
9298
|
const f = e.value && e.value.date || "";
|
|
9296
9299
|
return `${t.exception.happend} : ${f}`;
|
|
9297
|
-
}), r = j(() => !!e.value && !!e.value.detail),
|
|
9300
|
+
}), r = j(() => !!e.value && !!e.value.detail), s = j(() => e.value ? n(e.value.detail) > 160 : !1), l = b(!1), u = j(() => l.value ? t.exception.collapse : t.exception.expand), p = j(() => {
|
|
9298
9301
|
const f = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
9299
|
-
return
|
|
9302
|
+
return l.value ? f : a(f, 160);
|
|
9300
9303
|
}), d = j(() => ({
|
|
9301
9304
|
position: "absolute",
|
|
9302
9305
|
right: 0,
|
|
9303
|
-
bottom:
|
|
9306
|
+
bottom: l.value ? 0 : "2px",
|
|
9304
9307
|
color: "#2A87FF",
|
|
9305
9308
|
cursor: "pointer"
|
|
9306
9309
|
}));
|
|
9307
9310
|
function c() {
|
|
9308
|
-
|
|
9311
|
+
l.value = !l.value;
|
|
9309
9312
|
}
|
|
9310
9313
|
return () => k("div", {
|
|
9311
9314
|
class: "toast-msg-detail"
|
|
@@ -9315,7 +9318,7 @@ function Os(e, t) {
|
|
|
9315
9318
|
class: "exception_error_msg"
|
|
9316
9319
|
}, [k("div", {
|
|
9317
9320
|
innerHTML: p.value
|
|
9318
|
-
}, null),
|
|
9321
|
+
}, null), s.value && k("span", {
|
|
9319
9322
|
style: d.value,
|
|
9320
9323
|
onClick: c
|
|
9321
9324
|
}, [u.value])])])]);
|
|
@@ -9332,9 +9335,9 @@ function Es(e, t, n, a, o) {
|
|
|
9332
9335
|
"f-icon": !0
|
|
9333
9336
|
}, y = `f-icon-${m}`;
|
|
9334
9337
|
return g[y] = !0, g;
|
|
9335
|
-
}),
|
|
9338
|
+
}), s = j(() => n.value || i.value && i.value.message), l = j(() => a.value), u = j(() => !!a.value), p = j(() => !!i.value);
|
|
9336
9339
|
function d() {
|
|
9337
|
-
return p.value ? Os(i, o) : u.value ? Ds(
|
|
9340
|
+
return p.value ? Os(i, o) : u.value ? Ds(l) : () => null;
|
|
9338
9341
|
}
|
|
9339
9342
|
const c = d(), f = j(() => o.locale === "en" ? {
|
|
9340
9343
|
wordBreak: "keep-all",
|
|
@@ -9348,7 +9351,7 @@ function Es(e, t, n, a, o) {
|
|
|
9348
9351
|
class: "modal-tips-content"
|
|
9349
9352
|
}, [k("p", {
|
|
9350
9353
|
class: "toast-msg-title",
|
|
9351
|
-
innerHTML:
|
|
9354
|
+
innerHTML: s.value,
|
|
9352
9355
|
style: f.value
|
|
9353
9356
|
}, null), c()])]);
|
|
9354
9357
|
}
|
|
@@ -9357,11 +9360,11 @@ function Ps(e, t, n, a) {
|
|
|
9357
9360
|
onCopy: o
|
|
9358
9361
|
} = t, {
|
|
9359
9362
|
toShowFeedback: i
|
|
9360
|
-
} = n, r = b(a.exception.copySuccess || "复制成功"),
|
|
9363
|
+
} = n, r = b(a.exception.copySuccess || "复制成功"), s = b(a.exception.copy || "复制详细信息"), l = b(e.exceptionInfo || {
|
|
9361
9364
|
date: "",
|
|
9362
9365
|
message: "",
|
|
9363
9366
|
detail: ""
|
|
9364
|
-
}), u = j(() =>
|
|
9367
|
+
}), u = j(() => l.value && l.value.detail || "");
|
|
9365
9368
|
function p(d) {
|
|
9366
9369
|
o(u.value).catch((c) => {
|
|
9367
9370
|
r.value = a.exception.copyFailed || "复制失败";
|
|
@@ -9376,11 +9379,11 @@ function Ps(e, t, n, a) {
|
|
|
9376
9379
|
}, [k("span", {
|
|
9377
9380
|
onClick: p,
|
|
9378
9381
|
style: "cursor: pointer;"
|
|
9379
|
-
}, [
|
|
9382
|
+
}, [s.value])]);
|
|
9380
9383
|
}
|
|
9381
9384
|
function Ns(e, t, n, a, o) {
|
|
9382
|
-
const i = b(e.type), r = b(e.buttons),
|
|
9383
|
-
|
|
9385
|
+
const i = b(e.type), r = b(e.buttons), s = b(e.exceptionInfo), l = b(o.ok || e.okButtonText), u = b(o.cancel || e.cancelButtonText), p = b(e.showCancelButton), d = b(e.showOkButton), c = j(() => !!(r.value && r.value.length)), f = j(() => s.value && s.value.message && s.value.detail), m = j(() => !(r.value && r.value.length) && (d.value || p.value)), g = Ps(e, n, a, o);
|
|
9386
|
+
l.value === "关闭" ? l.value = o.close : l.value === "知道了" && (l.value = o.exception.roger);
|
|
9384
9387
|
function y(S) {
|
|
9385
9388
|
i.value === "question" && t.emit("reject"), t.emit("close");
|
|
9386
9389
|
}
|
|
@@ -9397,7 +9400,7 @@ function Ns(e, t, n, a, o) {
|
|
|
9397
9400
|
type: "button",
|
|
9398
9401
|
class: "btn btn-primary btn-lg",
|
|
9399
9402
|
onClick: C
|
|
9400
|
-
}, [
|
|
9403
|
+
}, [l.value]), c.value && r.value.length && r.value.map((S) => k("button", {
|
|
9401
9404
|
type: "button",
|
|
9402
9405
|
onClick: S.handle,
|
|
9403
9406
|
class: S.class
|
|
@@ -9443,12 +9446,12 @@ const Tt = /* @__PURE__ */ ie({
|
|
|
9443
9446
|
"flex-row": !0
|
|
9444
9447
|
}, S = `messager-type-${a.value}`;
|
|
9445
9448
|
return C[S] = !0, C;
|
|
9446
|
-
}),
|
|
9449
|
+
}), s = j(() => {
|
|
9447
9450
|
const C = {
|
|
9448
9451
|
cursor: "default"
|
|
9449
9452
|
};
|
|
9450
9453
|
return a.value === "prompt" ? C.padding = "0.5rem 0.5rem 1rem 1.5rem" : a.value === "error" && (C.padding = "0.5rem 1.5rem 1rem 1.5rem"), C;
|
|
9451
|
-
}),
|
|
9454
|
+
}), l = xs(), u = Ts(e, a, o, i), p = Bs(), {
|
|
9452
9455
|
feedbackStyle: d,
|
|
9453
9456
|
feedbackMessage: c
|
|
9454
9457
|
} = p;
|
|
@@ -9466,7 +9469,7 @@ const Tt = /* @__PURE__ */ ie({
|
|
|
9466
9469
|
return Es(e, a, o, i, n);
|
|
9467
9470
|
}
|
|
9468
9471
|
}
|
|
9469
|
-
const g = m(), y = Ns(e, t,
|
|
9472
|
+
const g = m(), y = Ns(e, t, l, p, n);
|
|
9470
9473
|
return () => k("div", {
|
|
9471
9474
|
class: "farris-messager"
|
|
9472
9475
|
}, [!e.exceptionInfo && k("div", {
|
|
@@ -9474,7 +9477,7 @@ const Tt = /* @__PURE__ */ ie({
|
|
|
9474
9477
|
class: "messager-draggable"
|
|
9475
9478
|
}, null), k("section", {
|
|
9476
9479
|
class: r.value,
|
|
9477
|
-
style:
|
|
9480
|
+
style: s.value
|
|
9478
9481
|
}, [g()]), y(), f()]);
|
|
9479
9482
|
}
|
|
9480
9483
|
}), Oe = class Oe {
|
|
@@ -9482,13 +9485,13 @@ const Tt = /* @__PURE__ */ ie({
|
|
|
9482
9485
|
const n = He({
|
|
9483
9486
|
...t
|
|
9484
9487
|
}), a = !1, o = n.type === "error" || n.type === "prompt", i = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", r = n.acceptCallback || (() => {
|
|
9485
|
-
}),
|
|
9488
|
+
}), s = n.rejectCallback || (() => {
|
|
9486
9489
|
});
|
|
9487
|
-
let
|
|
9490
|
+
let l = null, u = new Kn(Oe.app);
|
|
9488
9491
|
const p = () => {
|
|
9489
|
-
|
|
9492
|
+
l && (l == null || l.destroy(), u = null);
|
|
9490
9493
|
};
|
|
9491
|
-
return
|
|
9494
|
+
return l = u == null ? void 0 : u.open({
|
|
9492
9495
|
class: "modal-message modal-message-type-info",
|
|
9493
9496
|
title: i,
|
|
9494
9497
|
showButtons: a,
|
|
@@ -9500,7 +9503,7 @@ const Tt = /* @__PURE__ */ ie({
|
|
|
9500
9503
|
dragHandle: ".messager-draggable",
|
|
9501
9504
|
render: () => k(Tt, Ot(n, {
|
|
9502
9505
|
onAccept: r,
|
|
9503
|
-
onReject:
|
|
9506
|
+
onReject: s,
|
|
9504
9507
|
onClose: p
|
|
9505
9508
|
}), null)
|
|
9506
9509
|
}), u == null ? void 0 : u.getCurrentModal();
|
|
@@ -9601,12 +9604,12 @@ function aa(e, t) {
|
|
|
9601
9604
|
return { judgeCanOpen: n };
|
|
9602
9605
|
}
|
|
9603
9606
|
function Is(e, t, n, a, o) {
|
|
9604
|
-
const i = b(e.buttonBehavior), r = b(e.popupOnInput),
|
|
9607
|
+
const i = b(e.buttonBehavior), r = b(e.popupOnInput), s = j(() => ({
|
|
9605
9608
|
"input-group-append": !0,
|
|
9606
9609
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
9607
|
-
})), { judgeCanOpen:
|
|
9610
|
+
})), { judgeCanOpen: l } = aa(e, o), u = j(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), p = De(na, null), d = b();
|
|
9608
9611
|
async function c(g) {
|
|
9609
|
-
if (await
|
|
9612
|
+
if (await l() && u.value) {
|
|
9610
9613
|
const y = !!t.slots.default;
|
|
9611
9614
|
if (i.value === "Modal") {
|
|
9612
9615
|
const C = e.modalOptions, S = p == null ? void 0 : p.open({
|
|
@@ -9630,7 +9633,7 @@ function Is(e, t, n, a, o) {
|
|
|
9630
9633
|
t.emit("mouseLeaveIcon", g);
|
|
9631
9634
|
}
|
|
9632
9635
|
return {
|
|
9633
|
-
buttonGroupClass:
|
|
9636
|
+
buttonGroupClass: s,
|
|
9634
9637
|
onClickButton: c,
|
|
9635
9638
|
onMouseEnterButton: f,
|
|
9636
9639
|
onMouseLeaveButton: m,
|
|
@@ -9638,7 +9641,7 @@ function Is(e, t, n, a, o) {
|
|
|
9638
9641
|
};
|
|
9639
9642
|
}
|
|
9640
9643
|
function Rs(e, t, n, a, o, i) {
|
|
9641
|
-
const r = b(!1),
|
|
9644
|
+
const r = b(!1), s = j(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: l, hasClearClass: u } = i;
|
|
9642
9645
|
function p(m) {
|
|
9643
9646
|
r.value = m, u.value = m;
|
|
9644
9647
|
}
|
|
@@ -9647,10 +9650,10 @@ function Rs(e, t, n, a, o, i) {
|
|
|
9647
9650
|
});
|
|
9648
9651
|
function d(m) {
|
|
9649
9652
|
const g = !e.readonly && !e.disable && e.editable, y = !e.editable;
|
|
9650
|
-
m.stopPropagation(), (g || y) && (
|
|
9653
|
+
m.stopPropagation(), (g || y) && (l(""), o.value = "", p(!r.value), t.emit("clear"));
|
|
9651
9654
|
}
|
|
9652
9655
|
function c(m) {
|
|
9653
|
-
if (
|
|
9656
|
+
if (s.value) {
|
|
9654
9657
|
if (!n.value) {
|
|
9655
9658
|
p(!1);
|
|
9656
9659
|
return;
|
|
@@ -9659,10 +9662,10 @@ function Rs(e, t, n, a, o, i) {
|
|
|
9659
9662
|
}
|
|
9660
9663
|
}
|
|
9661
9664
|
function f(m) {
|
|
9662
|
-
|
|
9665
|
+
s.value && p(!1);
|
|
9663
9666
|
}
|
|
9664
9667
|
return {
|
|
9665
|
-
enableClearButton:
|
|
9668
|
+
enableClearButton: s,
|
|
9666
9669
|
showClearButton: r,
|
|
9667
9670
|
onClearValue: d,
|
|
9668
9671
|
onMouseEnterTextBox: c,
|
|
@@ -9670,7 +9673,7 @@ function Rs(e, t, n, a, o, i) {
|
|
|
9670
9673
|
};
|
|
9671
9674
|
}
|
|
9672
9675
|
function Ls(e, t, n, a, o) {
|
|
9673
|
-
const i = j(() => e.popupOnInput), r = j(() => e.popupOnFocus), { shouldPopupContent:
|
|
9676
|
+
const i = j(() => e.popupOnInput), r = j(() => e.popupOnFocus), { shouldPopupContent: s, closeAllPopover: l } = o, u = b(!1), p = j(() => e.enableTitle ? n.value : ""), d = j(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), c = j(() => e.readonly || !e.editable), f = b(!1), m = j(() => !e.disable && f.value), g = j(() => ({
|
|
9674
9677
|
"text-left": e.textAlign === "left",
|
|
9675
9678
|
"text-center": e.textAlign === "center",
|
|
9676
9679
|
"text-right": e.textAlign === "right",
|
|
@@ -9684,44 +9687,44 @@ function Ls(e, t, n, a, o) {
|
|
|
9684
9687
|
"f-state-focus": m.value,
|
|
9685
9688
|
"input-group--has-clear": e.enableClear && u.value
|
|
9686
9689
|
}));
|
|
9687
|
-
function C(
|
|
9688
|
-
n.value =
|
|
9690
|
+
function C(F, O = !0) {
|
|
9691
|
+
n.value = F, O && (t.emit("change", F), t.emit("update:modelValue", F));
|
|
9689
9692
|
}
|
|
9690
|
-
function S(
|
|
9691
|
-
|
|
9693
|
+
function S(F) {
|
|
9694
|
+
s.value = !1, C(F, !0);
|
|
9692
9695
|
}
|
|
9693
9696
|
ee(
|
|
9694
9697
|
() => e.modelValue,
|
|
9695
|
-
(
|
|
9696
|
-
n.value =
|
|
9698
|
+
(F) => {
|
|
9699
|
+
n.value = F;
|
|
9697
9700
|
}
|
|
9698
9701
|
);
|
|
9699
|
-
function D(
|
|
9700
|
-
f.value = !1, t.emit("blur",
|
|
9702
|
+
function D(F) {
|
|
9703
|
+
f.value = !1, t.emit("blur", F), F.stopPropagation();
|
|
9701
9704
|
}
|
|
9702
|
-
function M(
|
|
9703
|
-
t.emit("click",
|
|
9705
|
+
function M(F) {
|
|
9706
|
+
t.emit("click", F), l(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
|
|
9704
9707
|
}
|
|
9705
|
-
function v(
|
|
9706
|
-
!e.disable && !e.readonly && (f.value = !0, c.value || (t.emit("focus",
|
|
9708
|
+
function v(F) {
|
|
9709
|
+
!e.disable && !e.readonly && (f.value = !0, c.value || (t.emit("focus", F), r.value && !s.value && o.popup()));
|
|
9707
9710
|
}
|
|
9708
|
-
function h(
|
|
9709
|
-
t.emit("input",
|
|
9710
|
-
const O =
|
|
9711
|
-
a.value = O, n.value !== O && C(O, e.updateOn === "change"), i.value && !
|
|
9711
|
+
function h(F) {
|
|
9712
|
+
t.emit("input", F);
|
|
9713
|
+
const O = F.target.value;
|
|
9714
|
+
a.value = O, n.value !== O && C(O, e.updateOn === "change"), i.value && !s.value && o.popup();
|
|
9712
9715
|
}
|
|
9713
|
-
function F
|
|
9714
|
-
|
|
9716
|
+
function T(F) {
|
|
9717
|
+
F.target.tagName !== "INPUT" && F.preventDefault(), F.stopPropagation();
|
|
9715
9718
|
}
|
|
9716
|
-
function B(
|
|
9717
|
-
t.emit("keydown",
|
|
9719
|
+
function B(F) {
|
|
9720
|
+
t.emit("keydown", F);
|
|
9718
9721
|
}
|
|
9719
|
-
function N(
|
|
9720
|
-
|
|
9722
|
+
function N(F) {
|
|
9723
|
+
F.key === "Enter" && (i.value || r.value) && o.hidePopup(), t.emit("keyup", F);
|
|
9721
9724
|
}
|
|
9722
|
-
function L(
|
|
9723
|
-
const O =
|
|
9724
|
-
|
|
9725
|
+
function L(F) {
|
|
9726
|
+
const O = F.target.value;
|
|
9727
|
+
F.stopPropagation(), C(O);
|
|
9725
9728
|
}
|
|
9726
9729
|
return {
|
|
9727
9730
|
hasFocusedTextBox: m,
|
|
@@ -9739,7 +9742,7 @@ function Ls(e, t, n, a, o) {
|
|
|
9739
9742
|
onInput: h,
|
|
9740
9743
|
onKeyDownTextBox: B,
|
|
9741
9744
|
onKeyUpTextBox: N,
|
|
9742
|
-
onMouseDownTextBox:
|
|
9745
|
+
onMouseDownTextBox: T,
|
|
9743
9746
|
onTextBoxValueChange: L
|
|
9744
9747
|
};
|
|
9745
9748
|
}
|
|
@@ -9749,7 +9752,7 @@ function $s(e, t, n, a) {
|
|
|
9749
9752
|
ee(() => o.value, (f, m) => {
|
|
9750
9753
|
window[Qe] = window[Qe] || /* @__PURE__ */ new WeakMap(), f ? window[Qe].set(n.value, f) : window[Qe].delete(n.value);
|
|
9751
9754
|
});
|
|
9752
|
-
function
|
|
9755
|
+
function s() {
|
|
9753
9756
|
if (window[Qe]) {
|
|
9754
9757
|
const f = window[Qe];
|
|
9755
9758
|
document.querySelectorAll(".f-button-edit,.v-popover").forEach((m) => {
|
|
@@ -9758,7 +9761,7 @@ function $s(e, t, n, a) {
|
|
|
9758
9761
|
});
|
|
9759
9762
|
}
|
|
9760
9763
|
}
|
|
9761
|
-
function
|
|
9764
|
+
function l() {
|
|
9762
9765
|
const f = o.value;
|
|
9763
9766
|
f && f.show(n.value);
|
|
9764
9767
|
}
|
|
@@ -9766,14 +9769,14 @@ function $s(e, t, n, a) {
|
|
|
9766
9769
|
if (!!t.slots.default) {
|
|
9767
9770
|
if (!f && !i.value && !await r())
|
|
9768
9771
|
return;
|
|
9769
|
-
i.value = !i.value, await Ve(),
|
|
9772
|
+
i.value = !i.value, await Ve(), l();
|
|
9770
9773
|
}
|
|
9771
9774
|
}
|
|
9772
9775
|
async function p(f = !1) {
|
|
9773
9776
|
if (!!t.slots.default) {
|
|
9774
9777
|
if (!f && !await r())
|
|
9775
9778
|
return;
|
|
9776
|
-
i.value = !0, await Ve(),
|
|
9779
|
+
i.value = !0, await Ve(), l();
|
|
9777
9780
|
}
|
|
9778
9781
|
}
|
|
9779
9782
|
function d() {
|
|
@@ -9781,18 +9784,18 @@ function $s(e, t, n, a) {
|
|
|
9781
9784
|
}
|
|
9782
9785
|
function c() {
|
|
9783
9786
|
i.value = !0, Ve(() => {
|
|
9784
|
-
|
|
9787
|
+
l();
|
|
9785
9788
|
});
|
|
9786
9789
|
}
|
|
9787
|
-
return { hidePopup: d, showPopup: c, popup: p, shouldPopupContent: i, togglePopup: u, popoverRef: o, closeAllPopover:
|
|
9790
|
+
return { hidePopup: d, showPopup: c, popup: p, shouldPopupContent: i, togglePopup: u, popoverRef: o, closeAllPopover: s };
|
|
9788
9791
|
}
|
|
9789
9792
|
function zs(e, t, n) {
|
|
9790
9793
|
const a = b(), {
|
|
9791
9794
|
isTextBoxReadonly: o,
|
|
9792
9795
|
textBoxClass: i,
|
|
9793
9796
|
textBoxPlaceholder: r,
|
|
9794
|
-
textBoxTitle:
|
|
9795
|
-
onBlurTextBox:
|
|
9797
|
+
textBoxTitle: s,
|
|
9798
|
+
onBlurTextBox: l,
|
|
9796
9799
|
onClickTextBox: u,
|
|
9797
9800
|
onFocusTextBox: p,
|
|
9798
9801
|
onInput: d,
|
|
@@ -9807,18 +9810,18 @@ function zs(e, t, n) {
|
|
|
9807
9810
|
"border-bottom-right-radius": "6px"
|
|
9808
9811
|
}));
|
|
9809
9812
|
he(() => {
|
|
9810
|
-
var
|
|
9811
|
-
e.selectOnCreated && ((
|
|
9813
|
+
var T, B;
|
|
9814
|
+
e.selectOnCreated && ((T = a.value) == null || T.select()), e.focusOnCreated && ((B = a.value) == null || B.focus({
|
|
9812
9815
|
preventScroll: !0
|
|
9813
9816
|
})), y.value || (y.value = "button-edit_" + C(8)), y.value = y.value + "-textbox";
|
|
9814
9817
|
});
|
|
9815
|
-
const D = b(!1), M = (
|
|
9816
|
-
|
|
9817
|
-
}, v = (
|
|
9818
|
-
|
|
9818
|
+
const D = b(!1), M = (T) => {
|
|
9819
|
+
T.preventDefault(), D.value = !0;
|
|
9820
|
+
}, v = (T) => {
|
|
9821
|
+
T.preventDefault(), D.value = !1, d(T);
|
|
9819
9822
|
};
|
|
9820
|
-
function h(
|
|
9821
|
-
D.value || d(
|
|
9823
|
+
function h(T) {
|
|
9824
|
+
D.value || d(T);
|
|
9822
9825
|
}
|
|
9823
9826
|
return () => k("input", {
|
|
9824
9827
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -9833,10 +9836,10 @@ function zs(e, t, n) {
|
|
|
9833
9836
|
placeholder: r.value,
|
|
9834
9837
|
readonly: o.value,
|
|
9835
9838
|
tabindex: e.tabIndex,
|
|
9836
|
-
title:
|
|
9839
|
+
title: s.value,
|
|
9837
9840
|
type: e.inputType,
|
|
9838
9841
|
value: t.value,
|
|
9839
|
-
onBlur:
|
|
9842
|
+
onBlur: l,
|
|
9840
9843
|
onChange: g,
|
|
9841
9844
|
onClick: u,
|
|
9842
9845
|
onFocus: p,
|
|
@@ -9852,8 +9855,8 @@ function As(e, t, n) {
|
|
|
9852
9855
|
const a = b(e.separator), o = j(() => e.readonly || e.disable), {
|
|
9853
9856
|
changeTextBoxValue: i,
|
|
9854
9857
|
onFocusTextBox: r,
|
|
9855
|
-
onBlurTextBox:
|
|
9856
|
-
onClickTextBox:
|
|
9858
|
+
onBlurTextBox: s,
|
|
9859
|
+
onClickTextBox: l,
|
|
9857
9860
|
textBoxPlaceholder: u
|
|
9858
9861
|
} = n, p = j(() => t.value ? t.value.split(a.value).map((m) => ({
|
|
9859
9862
|
name: m,
|
|
@@ -9870,12 +9873,12 @@ function As(e, t, n) {
|
|
|
9870
9873
|
c.value = !m && !g;
|
|
9871
9874
|
});
|
|
9872
9875
|
function f(m) {
|
|
9873
|
-
|
|
9876
|
+
l(m);
|
|
9874
9877
|
}
|
|
9875
9878
|
return () => k(Ia, {
|
|
9876
9879
|
tabindex: e.tabIndex,
|
|
9877
9880
|
onFocus: r,
|
|
9878
|
-
onBlur:
|
|
9881
|
+
onBlur: s,
|
|
9879
9882
|
id: `${e.id}-tag-editor`,
|
|
9880
9883
|
class: "form-control",
|
|
9881
9884
|
placeholder: u.value,
|
|
@@ -9892,9 +9895,9 @@ function Hs(e, t, n, a) {
|
|
|
9892
9895
|
buttonGroupClass: o,
|
|
9893
9896
|
onClickButton: i,
|
|
9894
9897
|
onMouseEnterButton: r,
|
|
9895
|
-
onMouseLeaveButton:
|
|
9898
|
+
onMouseLeaveButton: s
|
|
9896
9899
|
} = n, {
|
|
9897
|
-
enableClearButton:
|
|
9900
|
+
enableClearButton: l,
|
|
9898
9901
|
showClearButton: u,
|
|
9899
9902
|
onClearValue: p
|
|
9900
9903
|
} = a, d = b(), c = Sa((m) => {
|
|
@@ -9906,7 +9909,7 @@ function Hs(e, t, n, a) {
|
|
|
9906
9909
|
renderButtonGroup: () => k("div", {
|
|
9907
9910
|
id: e.id ? `${e.id}-button-group` : void 0,
|
|
9908
9911
|
class: o.value
|
|
9909
|
-
}, [
|
|
9912
|
+
}, [l.value && wn(k("span", {
|
|
9910
9913
|
class: "input-group-text input-group-clear",
|
|
9911
9914
|
onClick: p,
|
|
9912
9915
|
onMousedown: f
|
|
@@ -9916,14 +9919,14 @@ function Hs(e, t, n, a) {
|
|
|
9916
9919
|
class: "input-group-text input-group-append-button",
|
|
9917
9920
|
onClick: c,
|
|
9918
9921
|
onMouseenter: r,
|
|
9919
|
-
onMouseleave:
|
|
9922
|
+
onMouseleave: s
|
|
9920
9923
|
}, [t.slots.buttonContent()]) : e.buttonContent ? k("span", {
|
|
9921
9924
|
class: "input-group-text input-group-append-button",
|
|
9922
9925
|
innerHTML: e.buttonContent,
|
|
9923
9926
|
ref: d,
|
|
9924
9927
|
onClick: (m) => c(m),
|
|
9925
9928
|
onMouseenter: r,
|
|
9926
|
-
onMouseleave:
|
|
9929
|
+
onMouseleave: s
|
|
9927
9930
|
}, null) : null]),
|
|
9928
9931
|
buttonHandleElement: d
|
|
9929
9932
|
};
|
|
@@ -9952,20 +9955,20 @@ function Vs(e, t, n) {
|
|
|
9952
9955
|
limitContentBySpace: e.limitContentBySpace
|
|
9953
9956
|
}, {
|
|
9954
9957
|
default: () => {
|
|
9955
|
-
var
|
|
9956
|
-
return [(
|
|
9958
|
+
var s, l;
|
|
9959
|
+
return [(l = (s = t.slots).default) == null ? void 0 : l.call(s)];
|
|
9957
9960
|
}
|
|
9958
9961
|
});
|
|
9959
9962
|
}
|
|
9960
9963
|
const Ws = /* @__PURE__ */ ie({
|
|
9961
9964
|
name: "FButtonEdit",
|
|
9962
|
-
props:
|
|
9965
|
+
props: Ur,
|
|
9963
9966
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue"],
|
|
9964
9967
|
setup(e, t) {
|
|
9965
9968
|
const n = b(), a = b(e.customClass), o = b(e.modelValue), i = $s(e, t, n, o), {
|
|
9966
9969
|
shouldPopupContent: r,
|
|
9967
|
-
hidePopup:
|
|
9968
|
-
showPopup:
|
|
9970
|
+
hidePopup: s,
|
|
9971
|
+
showPopup: l,
|
|
9969
9972
|
togglePopup: u
|
|
9970
9973
|
} = i, p = Is(e, t, n, i, o), d = b(""), c = Ls(e, t, o, d, i), {
|
|
9971
9974
|
hasFocusedTextBox: f,
|
|
@@ -9980,23 +9983,23 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
9980
9983
|
"f-cmp-inputgroup": !0,
|
|
9981
9984
|
"f-button-edit-nowrap": !e.wrapText
|
|
9982
9985
|
};
|
|
9983
|
-
return a.value && a.value.split(" ").reduce((
|
|
9986
|
+
return a.value && a.value.split(" ").reduce((Y, I) => (Y[I] = !0, Y), $), $;
|
|
9984
9987
|
}), v = j(() => ({
|
|
9985
9988
|
overflow: e.wrapText ? "hidden" : ""
|
|
9986
9989
|
})), h = j(() => ({
|
|
9987
9990
|
paddingLeft: "3px",
|
|
9988
9991
|
backgroundColor: "#fff"
|
|
9989
9992
|
}));
|
|
9990
|
-
function
|
|
9993
|
+
function T() {
|
|
9991
9994
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
9992
9995
|
return 0;
|
|
9993
9996
|
let $ = 0;
|
|
9994
|
-
const
|
|
9995
|
-
return
|
|
9997
|
+
const Y = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
9998
|
+
return Y && Y.length && ($ = Y.map((I) => I.offsetTop).filter((I) => I > 20).length), $;
|
|
9996
9999
|
}
|
|
9997
|
-
const B = b(
|
|
10000
|
+
const B = b(T());
|
|
9998
10001
|
ka(() => {
|
|
9999
|
-
B.value =
|
|
10002
|
+
B.value = T();
|
|
10000
10003
|
});
|
|
10001
10004
|
function N() {
|
|
10002
10005
|
return e.multiSelect && e.inputType === "tag" ? () => k(et, null, [As(e, o, c)(), !!B.value && k("div", {
|
|
@@ -10011,14 +10014,14 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10011
10014
|
L = N();
|
|
10012
10015
|
});
|
|
10013
10016
|
const {
|
|
10014
|
-
renderButtonGroup:
|
|
10017
|
+
renderButtonGroup: F,
|
|
10015
10018
|
buttonHandleElement: O
|
|
10016
10019
|
} = Hs(e, t, p, y), w = Vs(e, t, i), x = b(r.value), P = {
|
|
10017
10020
|
displayText: d,
|
|
10018
10021
|
commitValue: m,
|
|
10019
10022
|
elementRef: n,
|
|
10020
|
-
hidePopup:
|
|
10021
|
-
showPopup:
|
|
10023
|
+
hidePopup: s,
|
|
10024
|
+
showPopup: l,
|
|
10022
10025
|
popoverRef: i.popoverRef,
|
|
10023
10026
|
shouldPopupContent: r,
|
|
10024
10027
|
togglePopup: u,
|
|
@@ -10044,7 +10047,7 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10044
10047
|
}), Cn(() => {
|
|
10045
10048
|
var $;
|
|
10046
10049
|
window.onresize = null, ($ = window[Qe]) == null || $.delete(n.value);
|
|
10047
|
-
}), t.expose(P), ee(() => r.value, async ($,
|
|
10050
|
+
}), t.expose(P), ee(() => r.value, async ($, Y) => {
|
|
10048
10051
|
if (D.value) {
|
|
10049
10052
|
x.value = $, D.value = !1;
|
|
10050
10053
|
return;
|
|
@@ -10054,13 +10057,13 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10054
10057
|
const I = await e.beforeClosePopup();
|
|
10055
10058
|
x.value = !I, (!I || e.readonly) && (r.value = !0);
|
|
10056
10059
|
} catch (I) {
|
|
10057
|
-
console.error("Error in beforeClosePopup:", I), x.value =
|
|
10060
|
+
console.error("Error in beforeClosePopup:", I), x.value = Y, r.value = Y;
|
|
10058
10061
|
}
|
|
10059
10062
|
return;
|
|
10060
10063
|
}
|
|
10061
10064
|
x.value = $;
|
|
10062
10065
|
}), () => {
|
|
10063
|
-
var $,
|
|
10066
|
+
var $, Y;
|
|
10064
10067
|
return k(et, null, [k("div", Ot(t.attrs, {
|
|
10065
10068
|
ref: n,
|
|
10066
10069
|
class: M.value,
|
|
@@ -10072,10 +10075,10 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10072
10075
|
style: h.value,
|
|
10073
10076
|
onMouseenter: C,
|
|
10074
10077
|
onMouseleave: S
|
|
10075
|
-
}, [(
|
|
10078
|
+
}, [(Y = ($ = t.slots).precontent) == null ? void 0 : Y.call($), L(), F()])]), x.value && w()]);
|
|
10076
10079
|
};
|
|
10077
10080
|
}
|
|
10078
|
-
}), qs = "https://json-schema.org/draft/2020-12/schema", Gs = "https://farris-design.gitee.io/expression-editor.schema.json", _s = "expression-editor",
|
|
10081
|
+
}), qs = "https://json-schema.org/draft/2020-12/schema", Gs = "https://farris-design.gitee.io/expression-editor.schema.json", _s = "expression-editor", Ys = "A Farris Expression Editor Component", Us = "object", Xs = {
|
|
10079
10082
|
id: {
|
|
10080
10083
|
description: "The unique identifier for a Expression Editor",
|
|
10081
10084
|
type: "string"
|
|
@@ -10179,8 +10182,8 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10179
10182
|
$schema: qs,
|
|
10180
10183
|
$id: Gs,
|
|
10181
10184
|
title: _s,
|
|
10182
|
-
description:
|
|
10183
|
-
type:
|
|
10185
|
+
description: Ys,
|
|
10186
|
+
type: Us,
|
|
10184
10187
|
properties: Xs,
|
|
10185
10188
|
required: Js
|
|
10186
10189
|
}, oa = {
|
|
@@ -10280,17 +10283,17 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10280
10283
|
type: Boolean,
|
|
10281
10284
|
default: !1
|
|
10282
10285
|
}
|
|
10283
|
-
}, Zs = tt(oa, Qs),
|
|
10286
|
+
}, Zs = tt(oa, Qs), Ut = /* @__PURE__ */ ie({
|
|
10284
10287
|
name: "f-expression-textbox",
|
|
10285
10288
|
props: oa,
|
|
10286
10289
|
setup(e, t) {
|
|
10287
|
-
const n = De(ta), a = De("FLoadingService"), o = '<i class="f-icon f-icon-lookup"></i>', i = b(e.modelValue), r = b(e.entities),
|
|
10290
|
+
const n = De(ta), a = De("FLoadingService"), o = '<i class="f-icon f-icon-lookup"></i>', i = b(e.modelValue), r = b(e.entities), s = b(e.variables), l = b(), u = b(e.validateMessage || ""), p = b("info");
|
|
10288
10291
|
async function d() {
|
|
10289
10292
|
const {
|
|
10290
10293
|
value: g,
|
|
10291
10294
|
message: y,
|
|
10292
10295
|
messageType: C
|
|
10293
|
-
} =
|
|
10296
|
+
} = l.value.getExpressionValue();
|
|
10294
10297
|
if (u.value = y, p.value = C, e.beforeSubmit && typeof e.beforeSubmit == "function") {
|
|
10295
10298
|
const S = await e.beforeSubmit({
|
|
10296
10299
|
notifyService: n,
|
|
@@ -10337,7 +10340,7 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10337
10340
|
class: "btn btn-secondary mr-2",
|
|
10338
10341
|
handle: (g) => {
|
|
10339
10342
|
var y;
|
|
10340
|
-
return (y =
|
|
10343
|
+
return (y = l.value) == null || y.resetExpression(), !1;
|
|
10341
10344
|
}
|
|
10342
10345
|
}, {
|
|
10343
10346
|
name: "cancel",
|
|
@@ -10359,7 +10362,7 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10359
10362
|
notifyService: n
|
|
10360
10363
|
});
|
|
10361
10364
|
if (g)
|
|
10362
|
-
return r.value = g.entities || {},
|
|
10365
|
+
return r.value = g.entities || {}, s.value = g.variables || {}, u.value = g.message || "", p.value = g.messageType || "info", a == null || a.clearAll(), !0;
|
|
10363
10366
|
} catch {
|
|
10364
10367
|
return n == null || n.error({
|
|
10365
10368
|
message: "获取数据失败!"
|
|
@@ -10397,8 +10400,8 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10397
10400
|
}, {
|
|
10398
10401
|
default: () => [k("div", {
|
|
10399
10402
|
class: "h-100 d-flex flex-column"
|
|
10400
|
-
}, [k(
|
|
10401
|
-
ref:
|
|
10403
|
+
}, [k(Yr, {
|
|
10404
|
+
ref: l,
|
|
10402
10405
|
validateMessage: u.value,
|
|
10403
10406
|
showMessageType: e.showMessageType,
|
|
10404
10407
|
messageType: p.value,
|
|
@@ -10407,7 +10410,7 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10407
10410
|
esprimaPath: e.esprimaPath,
|
|
10408
10411
|
showMessage: e.showMessage,
|
|
10409
10412
|
entities: r.value,
|
|
10410
|
-
variables:
|
|
10413
|
+
variables: s.value,
|
|
10411
10414
|
disabledFunctions: e.disabledFunctions,
|
|
10412
10415
|
showDataPanel: e.showDataPanel,
|
|
10413
10416
|
singleExpand: e.singleExpand,
|
|
@@ -10417,15 +10420,15 @@ const Ws = /* @__PURE__ */ ie({
|
|
|
10417
10420
|
}
|
|
10418
10421
|
}), Hc = {
|
|
10419
10422
|
install(e) {
|
|
10420
|
-
e.component(
|
|
10423
|
+
e.component(Ut.name, Ut);
|
|
10421
10424
|
},
|
|
10422
10425
|
register(e, t, n, a) {
|
|
10423
|
-
e["expression-editor"] =
|
|
10426
|
+
e["expression-editor"] = Ut, t["expression-editor"] = Zs;
|
|
10424
10427
|
}
|
|
10425
10428
|
};
|
|
10426
10429
|
export {
|
|
10427
|
-
|
|
10428
|
-
|
|
10430
|
+
Yr as ExpressionEditor,
|
|
10431
|
+
Ut as FExpressionTextbox,
|
|
10429
10432
|
Hc as default,
|
|
10430
10433
|
ko as expressionEditorProps
|
|
10431
10434
|
};
|