@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
|
@@ -93,17 +93,17 @@ import Ko from "../popover/index.esm.js";
|
|
|
93
93
|
function an(e, t) {
|
|
94
94
|
let n;
|
|
95
95
|
function o(c) {
|
|
96
|
-
const { properties: p, title: a, ignore: d } = c, v = d && Array.isArray(d), h = Object.keys(p).reduce((
|
|
97
|
-
if (a && (!v || !d.find((
|
|
98
|
-
const
|
|
99
|
-
h.id = `${
|
|
96
|
+
const { properties: p, title: a, ignore: d } = c, v = d && Array.isArray(d), h = Object.keys(p).reduce((F, I) => ((!v || !d.find((V) => V === I)) && (F[I] = p[I].type === "object" && p[I].properties ? o(p[I]) : ve(p[I].default)), F), {});
|
|
97
|
+
if (a && (!v || !d.find((F) => F === "id"))) {
|
|
98
|
+
const F = a.toLowerCase().replace(/-/g, "_");
|
|
99
|
+
h.id = `${F}_${Math.random().toString().slice(2, 6)}`;
|
|
100
100
|
}
|
|
101
101
|
return h;
|
|
102
102
|
}
|
|
103
103
|
function i(c) {
|
|
104
104
|
const { properties: p, title: a, required: d } = c;
|
|
105
105
|
if (d && Array.isArray(d)) {
|
|
106
|
-
const v = d.reduce((h,
|
|
106
|
+
const v = d.reduce((h, F) => (h[F] = p[F].type === "object" && p[F].properties ? o(p[F]) : ve(p[F].default), h), {});
|
|
107
107
|
if (a && d.find((h) => h === "id")) {
|
|
108
108
|
const h = a.toLowerCase().replace(/-/g, "_");
|
|
109
109
|
v.id = `${h}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -134,8 +134,8 @@ function an(e, t) {
|
|
|
134
134
|
if (typeof h == "string")
|
|
135
135
|
d[h] = c[v];
|
|
136
136
|
else {
|
|
137
|
-
const
|
|
138
|
-
Object.assign(d,
|
|
137
|
+
const F = h(v, c[v], c);
|
|
138
|
+
Object.assign(d, F);
|
|
139
139
|
}
|
|
140
140
|
} else
|
|
141
141
|
d[v] = c[v];
|
|
@@ -155,7 +155,7 @@ function an(e, t) {
|
|
|
155
155
|
return c;
|
|
156
156
|
const v = l(c, d), h = ((a = c.editor) == null ? void 0 : a.type) || "";
|
|
157
157
|
if (h) {
|
|
158
|
-
const
|
|
158
|
+
const F = e[h], I = l(c.editor, F);
|
|
159
159
|
v.editor = I;
|
|
160
160
|
}
|
|
161
161
|
return v;
|
|
@@ -217,8 +217,8 @@ function oi(e = {}) {
|
|
|
217
217
|
return r(u).reduce((a, d) => a && l(d, m), !0);
|
|
218
218
|
}
|
|
219
219
|
function s(u, m) {
|
|
220
|
-
const c = Object.keys(u), p = c.includes("allOf"), a = c.includes("anyOf"), d = p || a,
|
|
221
|
-
return p ? !
|
|
220
|
+
const c = Object.keys(u), p = c.includes("allOf"), a = c.includes("anyOf"), d = p || a, F = (d ? u[d ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((V) => f(V, m));
|
|
221
|
+
return p ? !F.includes(!1) : F.includes(!0);
|
|
222
222
|
}
|
|
223
223
|
return { parseValueSchema: s };
|
|
224
224
|
}
|
|
@@ -524,16 +524,16 @@ function cn(e, t, n) {
|
|
|
524
524
|
const h = d.$converter || v;
|
|
525
525
|
return typeof h == "string" && h && o.has(h) ? o.get(h) || null : h || null;
|
|
526
526
|
}
|
|
527
|
-
function m(d, v, h,
|
|
527
|
+
function m(d, v, h, F, I, V = "", k = "") {
|
|
528
528
|
return Object.keys(d).map((g) => {
|
|
529
|
-
const
|
|
529
|
+
const y = C(1), b = g, w = d[g], B = Object.keys(w), S = w.title, j = w.type, H = i.get(j) || { type: "input-group", enableClear: !1 }, R = w.editor ? Object.assign({}, H, w.editor) : Object.assign({}, H), W = f(B, w, v), z = s(B, w, v);
|
|
530
530
|
R.readonly = R.readonly === void 0 ? z() : R.readonly;
|
|
531
|
-
const Z = w.type === "cascade" ? m(w.properties, v, h,
|
|
531
|
+
const Z = w.type === "cascade" ? m(w.properties, v, h, F, I, V, k) : [], O = !0;
|
|
532
532
|
let N = u(w, k);
|
|
533
533
|
const G = E({
|
|
534
534
|
get() {
|
|
535
|
-
if (
|
|
536
|
-
if (["class", "style"].find((ce) => ce ===
|
|
535
|
+
if (y.value) {
|
|
536
|
+
if (["class", "style"].find((ce) => ce === b) && !N && (N = o.get("/converter/appearance.converter") || null), N && N.convertFrom)
|
|
537
537
|
return N.convertFrom(h, g, I, V);
|
|
538
538
|
const re = h[g];
|
|
539
539
|
return Object.prototype.hasOwnProperty.call(w, "defaultValue") && (re === void 0 || typeof re == "string" && re === "") ? w.type === "boolean" ? w.defaultValue : w.defaultValue || "" : re;
|
|
@@ -541,45 +541,45 @@ function cn(e, t, n) {
|
|
|
541
541
|
return null;
|
|
542
542
|
},
|
|
543
543
|
set(re) {
|
|
544
|
-
|
|
544
|
+
y.value += 1, N && N.convertTo ? (N.convertTo(F, g, re, I, V), N.convertTo(h, g, re, I, V)) : (F[g] = re, h[g] = re);
|
|
545
545
|
}
|
|
546
|
-
}), { refreshPanelAfterChanged: D, description: K, isExpand: oe, parentPropertyID: ye } = w, Q = { propertyID:
|
|
547
|
-
return v[
|
|
546
|
+
}), { refreshPanelAfterChanged: D, description: K, isExpand: oe, parentPropertyID: ye } = w, Q = { propertyID: b, propertyName: S, propertyType: j, propertyValue: G, editor: R, visible: W, readonly: z, cascadeConfig: Z, hideCascadeTitle: O, refreshPanelAfterChanged: D, description: K, isExpand: oe, parentPropertyID: ye };
|
|
547
|
+
return v[b] = Q, Q;
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
550
|
function c(d, v, h = {}) {
|
|
551
|
-
const
|
|
551
|
+
const F = {}, I = e[d];
|
|
552
552
|
return I && I.categories ? Object.keys(I.categories).map((k) => {
|
|
553
|
-
const T = I.categories[k], g = T == null ? void 0 : T.title,
|
|
554
|
-
return { categoryId: k, categoryName: g, properties:
|
|
553
|
+
const T = I.categories[k], g = T == null ? void 0 : T.title, y = m(T.properties || {}, F, {}, h, v);
|
|
554
|
+
return { categoryId: k, categoryName: g, properties: y };
|
|
555
555
|
}) : [];
|
|
556
556
|
}
|
|
557
|
-
function p(d, v, h,
|
|
558
|
-
const V = v.$ref.schema, k = v.$ref.converter, T = h[V], g = T.type,
|
|
557
|
+
function p(d, v, h, F, I = "") {
|
|
558
|
+
const V = v.$ref.schema, k = v.$ref.converter, T = h[V], g = T.type, y = n(T), b = {}, w = e[g];
|
|
559
559
|
if (w && w.categories) {
|
|
560
|
-
const B = w.categories[d],
|
|
560
|
+
const B = w.categories[d], S = B == null ? void 0 : B.title;
|
|
561
561
|
k && Object.keys(B.properties).forEach((R) => {
|
|
562
562
|
B.properties[R].$converter = k;
|
|
563
563
|
});
|
|
564
|
-
const j = (B == null ? void 0 : B.properties) || {}, H = m(j,
|
|
565
|
-
return { categoryId: d, categoryName:
|
|
564
|
+
const j = (B == null ? void 0 : B.properties) || {}, H = m(j, b, y, T, F, I);
|
|
565
|
+
return { categoryId: d, categoryName: S, properties: H };
|
|
566
566
|
}
|
|
567
567
|
return { categoryId: d, categoryName: "", properties: [] };
|
|
568
568
|
}
|
|
569
|
-
function a(d, v, h,
|
|
569
|
+
function a(d, v, h, F, I) {
|
|
570
570
|
const V = d.type, k = n(d), T = {};
|
|
571
571
|
let g = I || e[V];
|
|
572
|
-
if (g && Object.keys(g).length === 0 && h && h.getPropConfig && (g = h.getPropConfig(
|
|
573
|
-
const
|
|
574
|
-
return Object.keys(g.categories).map((
|
|
575
|
-
const w = g.categories[
|
|
572
|
+
if (g && Object.keys(g).length === 0 && h && h.getPropConfig && (g = h.getPropConfig(F)), g && g.categories) {
|
|
573
|
+
const y = [];
|
|
574
|
+
return Object.keys(g.categories).map((b) => {
|
|
575
|
+
const w = g.categories[b];
|
|
576
576
|
if (w.$ref) {
|
|
577
|
-
|
|
577
|
+
y.push(p(b, w, d, v, F));
|
|
578
578
|
return;
|
|
579
579
|
}
|
|
580
|
-
const B = w == null ? void 0 : w.title,
|
|
581
|
-
|
|
582
|
-
}),
|
|
580
|
+
const B = w == null ? void 0 : w.title, S = w == null ? void 0 : w.tabId, j = w == null ? void 0 : w.tabName, H = w == null ? void 0 : w.hide, R = w == null ? void 0 : w.hideTitle, W = m(w.properties || {}, T, k, d, v, F, w.$converter), { setPropertyRelates: z } = w, Z = w == null ? void 0 : w.parentPropertyID;
|
|
581
|
+
y.push({ categoryId: b, categoryName: B, tabId: S, tabName: j, hide: H, properties: W, hideTitle: R, setPropertyRelates: z, parentPropertyID: Z });
|
|
582
|
+
}), y;
|
|
583
583
|
}
|
|
584
584
|
return [];
|
|
585
585
|
}
|
|
@@ -632,7 +632,7 @@ function Ii(e, t) {
|
|
|
632
632
|
const v = m.commands.find((h) => h.handlerName === "Filter" && h.cmpId === i);
|
|
633
633
|
if (v) {
|
|
634
634
|
if (c = v, v.params && v.params.length) {
|
|
635
|
-
const h = v.params.find((
|
|
635
|
+
const h = v.params.find((F) => F.name === "filter");
|
|
636
636
|
h && (h.value = "");
|
|
637
637
|
}
|
|
638
638
|
} else
|
|
@@ -666,8 +666,8 @@ function Ii(e, t) {
|
|
|
666
666
|
if (d = v, v.params && v.params.length && c) {
|
|
667
667
|
const h = v.params.find((I) => I.name === "commandName");
|
|
668
668
|
h && (h.value = c.code);
|
|
669
|
-
const
|
|
670
|
-
|
|
669
|
+
const F = v.params.find((I) => I.name === "frameId");
|
|
670
|
+
F && (F.value = "#{root-component}");
|
|
671
671
|
}
|
|
672
672
|
} else
|
|
673
673
|
d = {
|
|
@@ -843,7 +843,7 @@ function yn(e, t) {
|
|
|
843
843
|
function h(k) {
|
|
844
844
|
k.value.clear(), n.value = n.value.filter((T) => T.fieldCode !== k.fieldCode), t.emit("clear", k.fieldCode);
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function F() {
|
|
847
847
|
i.value.forEach((k) => k.value.clear());
|
|
848
848
|
}
|
|
849
849
|
function I() {
|
|
@@ -854,14 +854,14 @@ function yn(e, t) {
|
|
|
854
854
|
d(e.fields, e.data);
|
|
855
855
|
function V() {
|
|
856
856
|
var g;
|
|
857
|
-
const k = (g = i.value) == null ? void 0 : g.filter((
|
|
858
|
-
var
|
|
859
|
-
return !((
|
|
857
|
+
const k = (g = i.value) == null ? void 0 : g.filter((y) => {
|
|
858
|
+
var b;
|
|
859
|
+
return !((b = y.value) != null && b.isEmpty());
|
|
860
860
|
});
|
|
861
861
|
return u(k, o.value);
|
|
862
862
|
}
|
|
863
863
|
return {
|
|
864
|
-
clearAll:
|
|
864
|
+
clearAll: F,
|
|
865
865
|
clearFilterItem: h,
|
|
866
866
|
currentFilterId: r,
|
|
867
867
|
filterFields: o,
|
|
@@ -938,7 +938,7 @@ function bn(e, t, n) {
|
|
|
938
938
|
function h(I) {
|
|
939
939
|
e.mode === "display-only" ? s() : u();
|
|
940
940
|
}
|
|
941
|
-
const
|
|
941
|
+
const F = ji(e, t, f, o, n);
|
|
942
942
|
return () => x("div", {
|
|
943
943
|
class: "f-filter-toolbars"
|
|
944
944
|
}, [a.value && x("button", {
|
|
@@ -947,7 +947,7 @@ function bn(e, t, n) {
|
|
|
947
947
|
}, [i.value]), d.value && x("button", {
|
|
948
948
|
class: "btn btn-link",
|
|
949
949
|
onClick: (I) => h()
|
|
950
|
-
}, [r.value]),
|
|
950
|
+
}, [r.value]), F()]);
|
|
951
951
|
}
|
|
952
952
|
const Ai = {
|
|
953
953
|
filterItem: { type: Object, default: null },
|
|
@@ -1055,9 +1055,9 @@ const Ai = {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
function p(v) {
|
|
1057
1057
|
var I;
|
|
1058
|
-
const h = (I = v.currentTarget) == null ? void 0 : I.getBoundingClientRect(),
|
|
1059
|
-
h.left > document.body.clientWidth -
|
|
1060
|
-
left: h.left + h.width -
|
|
1058
|
+
const h = (I = v.currentTarget) == null ? void 0 : I.getBoundingClientRect(), F = 380;
|
|
1059
|
+
h.left > document.body.clientWidth - F - 20 ? s.value = {
|
|
1060
|
+
left: h.left + h.width - F + "px",
|
|
1061
1061
|
top: h.top + h.height + "px",
|
|
1062
1062
|
arrowLeft: "auto",
|
|
1063
1063
|
arrowRight: "26px"
|
|
@@ -1118,8 +1118,8 @@ function Di(e, t, n) {
|
|
|
1118
1118
|
v.style.display = "block";
|
|
1119
1119
|
});
|
|
1120
1120
|
for (let v = 0; v < s.length; v++) {
|
|
1121
|
-
const h = s[v],
|
|
1122
|
-
c +
|
|
1121
|
+
const h = s[v], F = h.offsetWidth;
|
|
1122
|
+
c + F <= m - 30 - u ? (c += F, p++) : (h.style.display = "none", f = !0);
|
|
1123
1123
|
}
|
|
1124
1124
|
return n.value = f, p;
|
|
1125
1125
|
}
|
|
@@ -1167,9 +1167,9 @@ const rt = /* @__PURE__ */ Se({
|
|
|
1167
1167
|
}), De(() => {
|
|
1168
1168
|
c();
|
|
1169
1169
|
});
|
|
1170
|
-
const
|
|
1170
|
+
const F = E(() => o.value && n.value), I = E(() => ({
|
|
1171
1171
|
"f-filter-list": !0,
|
|
1172
|
-
"f-filter-list-extend":
|
|
1172
|
+
"f-filter-list-extend": F.value
|
|
1173
1173
|
// 'f-utils-overflow-hidden': true
|
|
1174
1174
|
})), V = E(() => ({
|
|
1175
1175
|
'"extend-btn-arrow': !0,
|
|
@@ -1184,7 +1184,7 @@ const rt = /* @__PURE__ */ Se({
|
|
|
1184
1184
|
const B = v();
|
|
1185
1185
|
t.emit("conditionChange", B);
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function y() {
|
|
1188
1188
|
return x("div", {
|
|
1189
1189
|
class: I.value,
|
|
1190
1190
|
ref: l
|
|
@@ -1194,7 +1194,7 @@ const rt = /* @__PURE__ */ Se({
|
|
|
1194
1194
|
onConfirm: g
|
|
1195
1195
|
}, null)), o.value && T()]);
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function b() {
|
|
1198
1198
|
o.value = !o.value, o.value ? m() : c();
|
|
1199
1199
|
}
|
|
1200
1200
|
return () => x("div", {
|
|
@@ -1207,11 +1207,11 @@ const rt = /* @__PURE__ */ Se({
|
|
|
1207
1207
|
ref: f
|
|
1208
1208
|
}, [x("div", {
|
|
1209
1209
|
class: "f-filter-list-wrapper d-flex w-100"
|
|
1210
|
-
}, [k.value &&
|
|
1210
|
+
}, [k.value && y()]), !o.value && T()]), r.value && x("div", {
|
|
1211
1211
|
class: "f-filter-extend-btn"
|
|
1212
1212
|
}, [x("button", {
|
|
1213
1213
|
class: "btn btn-link",
|
|
1214
|
-
onClick:
|
|
1214
|
+
onClick: b
|
|
1215
1215
|
}, [x("span", {
|
|
1216
1216
|
class: "extend-btn-text"
|
|
1217
1217
|
}, [o.value ? "收折" : "展开"]), x("span", {
|
|
@@ -1935,8 +1935,8 @@ function Xi(e) {
|
|
|
1935
1935
|
c.isSupportedClass = !1;
|
|
1936
1936
|
return;
|
|
1937
1937
|
}
|
|
1938
|
-
let d = a.find((I) => /^col-([1-9]|10|11|12)$/.test(I)), v = a.find((I) => /^col-md-([1-9]|10|11|12)$/.test(I)), h = a.find((I) => /^col-xl-([1-9]|10|11|12)$/.test(I)),
|
|
1939
|
-
d = d || "col-12", c.columnInSM = parseInt(d.replace("col-", ""), 10), c.displayWidthInSM = c.columnInSM / 12, c.displayWidthInSM !== 1 && (c.isSupportedClass = !1), v = v || "col-md-" + c.columnInSM, c.columnInMD = parseInt(v.replace("col-md-", ""), 10), c.displayWidthInMD = c.columnInMD / 6, [1, 2].includes(c.displayWidthInMD) || (c.isSupportedClass = !1), h = h || "col-xl-" + c.columnInMD, c.columnInLG = parseInt(h.replace("col-xl-", ""), 10), c.displayWidthInLG = c.columnInLG / 3, [1, 2, 3, 4].includes(c.displayWidthInLG) || (c.isSupportedClass = !1),
|
|
1938
|
+
let d = a.find((I) => /^col-([1-9]|10|11|12)$/.test(I)), v = a.find((I) => /^col-md-([1-9]|10|11|12)$/.test(I)), h = a.find((I) => /^col-xl-([1-9]|10|11|12)$/.test(I)), F = a.find((I) => /^col-el-([1-9]|10|11|12)$/.test(I));
|
|
1939
|
+
d = d || "col-12", c.columnInSM = parseInt(d.replace("col-", ""), 10), c.displayWidthInSM = c.columnInSM / 12, c.displayWidthInSM !== 1 && (c.isSupportedClass = !1), v = v || "col-md-" + c.columnInSM, c.columnInMD = parseInt(v.replace("col-md-", ""), 10), c.displayWidthInMD = c.columnInMD / 6, [1, 2].includes(c.displayWidthInMD) || (c.isSupportedClass = !1), h = h || "col-xl-" + c.columnInMD, c.columnInLG = parseInt(h.replace("col-xl-", ""), 10), c.displayWidthInLG = c.columnInLG / 3, [1, 2, 3, 4].includes(c.displayWidthInLG) || (c.isSupportedClass = !1), F = F || "col-el-" + c.columnInLG, c.columnInEL = parseInt(F.replace("col-el-", ""), 10), c.displayWidthInEL = c.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(c.displayWidthInEL) || (c.isSupportedClass = !1);
|
|
1940
1940
|
}
|
|
1941
1941
|
function l(m, c, p, a = !1) {
|
|
1942
1942
|
let d = !1;
|
|
@@ -1946,8 +1946,8 @@ function Xi(e) {
|
|
|
1946
1946
|
return;
|
|
1947
1947
|
}
|
|
1948
1948
|
d && (p += 1, d = !1);
|
|
1949
|
-
const h = v.appearance && v.appearance.class,
|
|
1950
|
-
h ? r(h,
|
|
1949
|
+
const h = v.appearance && v.appearance.class, F = new Gi();
|
|
1950
|
+
h ? r(h, F) : F.isSupportedClass = !1, F.label = v.label || v.id, F.id = v.id, F.group = p, a && (F.fieldSetId = m.id), n === v.id && (t = p), o.set(v.id, v), c.push(F);
|
|
1951
1951
|
});
|
|
1952
1952
|
}
|
|
1953
1953
|
function f(m) {
|
|
@@ -1982,9 +1982,9 @@ function Xi(e) {
|
|
|
1982
1982
|
const d = [];
|
|
1983
1983
|
return m.forEach((v) => {
|
|
1984
1984
|
var I;
|
|
1985
|
-
const h = o.get(v.id),
|
|
1986
|
-
if (
|
|
1987
|
-
const k =
|
|
1985
|
+
const h = o.get(v.id), F = h.appearance && h.appearance.class;
|
|
1986
|
+
if (F) {
|
|
1987
|
+
const k = F.split(" ").filter((B) => !B.startsWith("col-")), T = "col-" + v.columnInSM, g = "col-md-" + v.columnInMD, y = "col-xl-" + v.columnInLG, b = "col-el-" + v.columnInEL, w = [T, g, y, b].concat(k);
|
|
1988
1988
|
h.appearance.class = w.join(" ");
|
|
1989
1989
|
}
|
|
1990
1990
|
if (v.fieldSetId) {
|
|
@@ -2055,11 +2055,11 @@ var Yi = { exports: {} };
|
|
|
2055
2055
|
2: [function(n, o, i) {
|
|
2056
2056
|
(function(r) {
|
|
2057
2057
|
var l = n("contra/emitter"), f = n("crossvent"), s = n("./classes"), u = document, m = u.documentElement;
|
|
2058
|
-
function c(
|
|
2058
|
+
function c(S, j) {
|
|
2059
2059
|
var H = arguments.length;
|
|
2060
|
-
H === 1 && Array.isArray(
|
|
2060
|
+
H === 1 && Array.isArray(S) === !1 && (j = S, S = []);
|
|
2061
2061
|
var R, W, z, Z, O, N, G, D, K, oe = null, ye, Q, re = !1, ce = 0, ne, q = j || {};
|
|
2062
|
-
q.moves === void 0 && (q.moves = I), q.accepts === void 0 && (q.accepts = I), q.invalid === void 0 && (q.invalid = at), q.containers === void 0 && (q.containers =
|
|
2062
|
+
q.moves === void 0 && (q.moves = I), q.accepts === void 0 && (q.accepts = I), q.invalid === void 0 && (q.invalid = at), q.containers === void 0 && (q.containers = S || []), q.isContainer === void 0 && (q.isContainer = F), q.copy === void 0 && (q.copy = !1), q.copySortSource === void 0 && (q.copySortSource = !1), q.revertOnSpill === void 0 && (q.revertOnSpill = !1), q.removeOnSpill === void 0 && (q.removeOnSpill = !1), q.direction === void 0 && (q.direction = "vertical"), q.ignoreInputTextSelection === void 0 && (q.ignoreInputTextSelection = !0), q.mirrorContainer === void 0 && (q.mirrorContainer = u.body);
|
|
2063
2063
|
var ie = l({
|
|
2064
2064
|
containers: q.containers,
|
|
2065
2065
|
start: Ie,
|
|
@@ -2124,7 +2124,7 @@ var Yi = { exports: {} };
|
|
|
2124
2124
|
return;
|
|
2125
2125
|
var A = T(M);
|
|
2126
2126
|
if (A && !q.invalid(M, $)) {
|
|
2127
|
-
var _ = q.moves(M, A, $,
|
|
2127
|
+
var _ = q.moves(M, A, $, b(M));
|
|
2128
2128
|
if (_)
|
|
2129
2129
|
return {
|
|
2130
2130
|
item: M,
|
|
@@ -2141,7 +2141,7 @@ var Yi = { exports: {} };
|
|
|
2141
2141
|
$ && Le($);
|
|
2142
2142
|
}
|
|
2143
2143
|
function Le(M) {
|
|
2144
|
-
Ht(M.item, M.source) && (D = M.item.cloneNode(!0), ie.emit("cloned", D, M.item, "copy")), W = M.source, z = M.item, N = G =
|
|
2144
|
+
Ht(M.item, M.source) && (D = M.item.cloneNode(!0), ie.emit("cloned", D, M.item, "copy")), W = M.source, z = M.item, N = G = b(M.item), ie.dragging = !0, ie.emit("drag", z, W);
|
|
2145
2145
|
}
|
|
2146
2146
|
function at() {
|
|
2147
2147
|
return !1;
|
|
@@ -2183,7 +2183,7 @@ var Yi = { exports: {} };
|
|
|
2183
2183
|
}
|
|
2184
2184
|
function ue(M, $) {
|
|
2185
2185
|
var A;
|
|
2186
|
-
return $ !== void 0 ? A = $ : R ? A = G : A =
|
|
2186
|
+
return $ !== void 0 ? A = $ : R ? A = G : A = b(D || z), M === W && A === N;
|
|
2187
2187
|
}
|
|
2188
2188
|
function de(M, $, A) {
|
|
2189
2189
|
for (var _ = M; _ && !ee(); )
|
|
@@ -2231,7 +2231,7 @@ var Yi = { exports: {} };
|
|
|
2231
2231
|
}
|
|
2232
2232
|
}
|
|
2233
2233
|
function Bt(M, $, A) {
|
|
2234
|
-
(M === $ || M ===
|
|
2234
|
+
(M === $ || M === b($)) && (G = b($)), (M === null && A || M !== $ && M !== b($)) && (G = M);
|
|
2235
2235
|
}
|
|
2236
2236
|
function Et(M) {
|
|
2237
2237
|
s.rm(M, "gu-hide");
|
|
@@ -2350,14 +2350,14 @@ var Yi = { exports: {} };
|
|
|
2350
2350
|
return Me(ee ? A > fe.left + V(fe) / 2 : _ > fe.top + k(fe) / 2);
|
|
2351
2351
|
}
|
|
2352
2352
|
function Me(fe) {
|
|
2353
|
-
return fe ?
|
|
2353
|
+
return fe ? b($) : $;
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
2356
|
function Ht(M, $) {
|
|
2357
2357
|
return typeof q.copy == "boolean" ? q.copy : q.copy(M, $);
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
|
-
function p(
|
|
2360
|
+
function p(S) {
|
|
2361
2361
|
const j = Array.from(window.scrollContainerList);
|
|
2362
2362
|
if (j.length === 1) {
|
|
2363
2363
|
const R = Array.from(window.scrollContainerList)[0];
|
|
@@ -2365,18 +2365,18 @@ var Yi = { exports: {} };
|
|
|
2365
2365
|
}
|
|
2366
2366
|
const H = a(j);
|
|
2367
2367
|
for (const R of H)
|
|
2368
|
-
if (R.contains(
|
|
2368
|
+
if (R.contains(S))
|
|
2369
2369
|
return R;
|
|
2370
2370
|
return null;
|
|
2371
2371
|
}
|
|
2372
|
-
function a(
|
|
2372
|
+
function a(S) {
|
|
2373
2373
|
const j = [];
|
|
2374
|
-
return
|
|
2374
|
+
return S.forEach((H) => {
|
|
2375
2375
|
const R = document.getElementById(H);
|
|
2376
2376
|
R && j.push(R);
|
|
2377
2377
|
}), j.sort((H, R) => H.contains(R) ? 1 : R.contains(H) ? -1 : 0), j;
|
|
2378
2378
|
}
|
|
2379
|
-
function d(
|
|
2379
|
+
function d(S, j, H, R) {
|
|
2380
2380
|
var W = {
|
|
2381
2381
|
mouseup: "touchend",
|
|
2382
2382
|
mousedown: "touchstart",
|
|
@@ -2390,66 +2390,66 @@ var Yi = { exports: {} };
|
|
|
2390
2390
|
mousedown: "MSPointerDown",
|
|
2391
2391
|
mousemove: "MSPointerMove"
|
|
2392
2392
|
};
|
|
2393
|
-
r.navigator.pointerEnabled ? f[j](
|
|
2393
|
+
r.navigator.pointerEnabled ? f[j](S, z[H], R) : r.navigator.msPointerEnabled ? f[j](S, Z[H], R) : (f[j](S, W[H], R), f[j](S, H, R));
|
|
2394
2394
|
}
|
|
2395
|
-
function v(
|
|
2396
|
-
if (
|
|
2397
|
-
return
|
|
2398
|
-
if (
|
|
2399
|
-
return
|
|
2400
|
-
if (
|
|
2401
|
-
return
|
|
2402
|
-
var j =
|
|
2395
|
+
function v(S) {
|
|
2396
|
+
if (S.touches !== void 0)
|
|
2397
|
+
return S.touches.length;
|
|
2398
|
+
if (S.which !== void 0 && S.which !== 0)
|
|
2399
|
+
return S.which;
|
|
2400
|
+
if (S.buttons !== void 0)
|
|
2401
|
+
return S.buttons;
|
|
2402
|
+
var j = S.button;
|
|
2403
2403
|
if (j !== void 0)
|
|
2404
2404
|
return j & 1 ? 1 : j & 2 ? 3 : j & 4 ? 2 : 0;
|
|
2405
2405
|
}
|
|
2406
|
-
function h(
|
|
2407
|
-
|
|
2408
|
-
var R =
|
|
2409
|
-
return
|
|
2406
|
+
function h(S, j, H) {
|
|
2407
|
+
S = S || {};
|
|
2408
|
+
var R = S.className || "", W;
|
|
2409
|
+
return S.className += " gu-hide", W = u.elementFromPoint(j, H), S.className = R, W;
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function F() {
|
|
2412
2412
|
return !1;
|
|
2413
2413
|
}
|
|
2414
2414
|
function I() {
|
|
2415
2415
|
return !0;
|
|
2416
2416
|
}
|
|
2417
|
-
function V(
|
|
2418
|
-
return
|
|
2417
|
+
function V(S) {
|
|
2418
|
+
return S.width || S.right - S.left;
|
|
2419
2419
|
}
|
|
2420
|
-
function k(
|
|
2421
|
-
return
|
|
2420
|
+
function k(S) {
|
|
2421
|
+
return S.height || S.bottom - S.top;
|
|
2422
2422
|
}
|
|
2423
|
-
function T(
|
|
2424
|
-
return
|
|
2423
|
+
function T(S) {
|
|
2424
|
+
return S.parentNode === u ? null : S.parentNode;
|
|
2425
2425
|
}
|
|
2426
|
-
function g(
|
|
2427
|
-
return
|
|
2426
|
+
function g(S) {
|
|
2427
|
+
return S.tagName === "INPUT" || S.tagName === "TEXTAREA" || S.tagName === "SELECT" || y(S);
|
|
2428
2428
|
}
|
|
2429
|
-
function
|
|
2430
|
-
return !
|
|
2429
|
+
function y(S) {
|
|
2430
|
+
return !S || S.contentEditable === "false" ? !1 : S.contentEditable === "true" ? !0 : y(T(S));
|
|
2431
2431
|
}
|
|
2432
|
-
function
|
|
2433
|
-
return
|
|
2432
|
+
function b(S) {
|
|
2433
|
+
return S.nextElementSibling || j();
|
|
2434
2434
|
function j() {
|
|
2435
|
-
var H =
|
|
2435
|
+
var H = S;
|
|
2436
2436
|
do
|
|
2437
2437
|
H = H.nextSibling;
|
|
2438
2438
|
while (H && H.nodeType !== 1);
|
|
2439
2439
|
return H;
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
2442
|
-
function w(
|
|
2443
|
-
return
|
|
2442
|
+
function w(S) {
|
|
2443
|
+
return S.targetTouches && S.targetTouches.length ? S.targetTouches[0] : S.changedTouches && S.changedTouches.length ? S.changedTouches[0] : S;
|
|
2444
2444
|
}
|
|
2445
|
-
function B(
|
|
2445
|
+
function B(S, j) {
|
|
2446
2446
|
var H = w(j), R = {
|
|
2447
2447
|
pageX: "clientX",
|
|
2448
2448
|
// IE8
|
|
2449
2449
|
pageY: "clientY"
|
|
2450
2450
|
// IE8
|
|
2451
2451
|
};
|
|
2452
|
-
return
|
|
2452
|
+
return S in R && !(S in H) && R[S] in H && (S = R[S]), H[S];
|
|
2453
2453
|
}
|
|
2454
2454
|
o.exports = c;
|
|
2455
2455
|
}).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2497,8 +2497,8 @@ var Yi = { exports: {} };
|
|
|
2497
2497
|
var d = r(arguments), v = this || s;
|
|
2498
2498
|
if (p === "error" && m.throws !== !1 && !a.length)
|
|
2499
2499
|
throw d.length === 1 ? d[0] : d;
|
|
2500
|
-
return a.forEach(function(
|
|
2501
|
-
m.async ? l(
|
|
2500
|
+
return a.forEach(function(F) {
|
|
2501
|
+
m.async ? l(F, d, v) : F.apply(v, d), F._once && s.off(p, F);
|
|
2502
2502
|
}), s;
|
|
2503
2503
|
};
|
|
2504
2504
|
}, s;
|
|
@@ -2512,62 +2512,62 @@ var Yi = { exports: {} };
|
|
|
2512
2512
|
remove: m,
|
|
2513
2513
|
fabricate: h
|
|
2514
2514
|
};
|
|
2515
|
-
function p(T, g,
|
|
2516
|
-
return T.addEventListener(g,
|
|
2515
|
+
function p(T, g, y, b) {
|
|
2516
|
+
return T.addEventListener(g, y, b);
|
|
2517
2517
|
}
|
|
2518
|
-
function a(T, g,
|
|
2519
|
-
return T.attachEvent("on" + g, I(T, g,
|
|
2518
|
+
function a(T, g, y) {
|
|
2519
|
+
return T.attachEvent("on" + g, I(T, g, y));
|
|
2520
2520
|
}
|
|
2521
|
-
function d(T, g,
|
|
2522
|
-
return T.removeEventListener(g,
|
|
2521
|
+
function d(T, g, y, b) {
|
|
2522
|
+
return T.removeEventListener(g, y, b);
|
|
2523
2523
|
}
|
|
2524
|
-
function v(T, g,
|
|
2525
|
-
var
|
|
2526
|
-
if (
|
|
2527
|
-
return T.detachEvent("on" + g,
|
|
2524
|
+
function v(T, g, y) {
|
|
2525
|
+
var b = V(T, g, y);
|
|
2526
|
+
if (b)
|
|
2527
|
+
return T.detachEvent("on" + g, b);
|
|
2528
2528
|
}
|
|
2529
|
-
function h(T, g,
|
|
2530
|
-
var
|
|
2531
|
-
T.dispatchEvent ? T.dispatchEvent(
|
|
2529
|
+
function h(T, g, y) {
|
|
2530
|
+
var b = f.indexOf(g) === -1 ? B() : w();
|
|
2531
|
+
T.dispatchEvent ? T.dispatchEvent(b) : T.fireEvent("on" + g, b);
|
|
2532
2532
|
function w() {
|
|
2533
|
-
var
|
|
2534
|
-
return s.createEvent ? (
|
|
2533
|
+
var S;
|
|
2534
|
+
return s.createEvent ? (S = s.createEvent("Event"), S.initEvent(g, !0, !0)) : s.createEventObject && (S = s.createEventObject()), S;
|
|
2535
2535
|
}
|
|
2536
2536
|
function B() {
|
|
2537
|
-
return new l(g, { detail:
|
|
2537
|
+
return new l(g, { detail: y });
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function F(T, g, y) {
|
|
2541
2541
|
return function(w) {
|
|
2542
2542
|
var B = w || r.event;
|
|
2543
2543
|
B.target = B.target || B.srcElement, B.preventDefault = B.preventDefault || function() {
|
|
2544
2544
|
B.returnValue = !1;
|
|
2545
2545
|
}, B.stopPropagation = B.stopPropagation || function() {
|
|
2546
2546
|
B.cancelBubble = !0;
|
|
2547
|
-
}, B.which = B.which || B.keyCode,
|
|
2547
|
+
}, B.which = B.which || B.keyCode, y.call(T, B);
|
|
2548
2548
|
};
|
|
2549
2549
|
}
|
|
2550
|
-
function I(T, g,
|
|
2551
|
-
var
|
|
2550
|
+
function I(T, g, y) {
|
|
2551
|
+
var b = V(T, g, y) || F(T, g, y);
|
|
2552
2552
|
return c.push({
|
|
2553
|
-
wrapper:
|
|
2553
|
+
wrapper: b,
|
|
2554
2554
|
element: T,
|
|
2555
2555
|
type: g,
|
|
2556
|
-
fn:
|
|
2557
|
-
}),
|
|
2556
|
+
fn: y
|
|
2557
|
+
}), b;
|
|
2558
2558
|
}
|
|
2559
|
-
function V(T, g,
|
|
2560
|
-
var
|
|
2561
|
-
if (
|
|
2562
|
-
var w = c[
|
|
2563
|
-
return c.splice(
|
|
2559
|
+
function V(T, g, y) {
|
|
2560
|
+
var b = k(T, g, y);
|
|
2561
|
+
if (b) {
|
|
2562
|
+
var w = c[b].wrapper;
|
|
2563
|
+
return c.splice(b, 1), w;
|
|
2564
2564
|
}
|
|
2565
2565
|
}
|
|
2566
|
-
function k(T, g,
|
|
2567
|
-
var
|
|
2568
|
-
for (
|
|
2569
|
-
if (w = c[
|
|
2570
|
-
return
|
|
2566
|
+
function k(T, g, y) {
|
|
2567
|
+
var b, w;
|
|
2568
|
+
for (b = 0; b < c.length; b++)
|
|
2569
|
+
if (w = c[b], w.element === T && w.type === g && w.fn === y)
|
|
2570
|
+
return b;
|
|
2571
2571
|
}
|
|
2572
2572
|
}).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2573
2573
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -2657,9 +2657,9 @@ var Yi = { exports: {} };
|
|
|
2657
2657
|
}
|
|
2658
2658
|
var p = [], a = !1, d, v = -1;
|
|
2659
2659
|
function h() {
|
|
2660
|
-
!a || !d || (a = !1, d.length ? p = d.concat(p) : v = -1, p.length &&
|
|
2660
|
+
!a || !d || (a = !1, d.length ? p = d.concat(p) : v = -1, p.length && F());
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2662
|
+
function F() {
|
|
2663
2663
|
if (!a) {
|
|
2664
2664
|
var k = m(h);
|
|
2665
2665
|
a = !0;
|
|
@@ -2676,7 +2676,7 @@ var Yi = { exports: {} };
|
|
|
2676
2676
|
if (arguments.length > 1)
|
|
2677
2677
|
for (var g = 1; g < arguments.length; g++)
|
|
2678
2678
|
T[g - 1] = arguments[g];
|
|
2679
|
-
p.push(new I(k, T)), p.length === 1 && !a && m(
|
|
2679
|
+
p.push(new I(k, T)), p.length === 1 && !a && m(F);
|
|
2680
2680
|
};
|
|
2681
2681
|
function I(k, T) {
|
|
2682
2682
|
this.fun = k, this.array = T;
|
|
@@ -2780,10 +2780,10 @@ const Qi = {
|
|
|
2780
2780
|
};
|
|
2781
2781
|
return k[e.animate] = !1, k[r] = f.value, k["toasty-type-" + l.value.type] = !0, l.value.theme && (k[l.value.theme] = !0), k;
|
|
2782
2782
|
}), c = E(() => {
|
|
2783
|
-
const g = `f-icon-${l.value && l.value.type ? l.value.type.replace("toasty-type-", "") : "default"}`,
|
|
2783
|
+
const g = `f-icon-${l.value && l.value.type ? l.value.type.replace("toasty-type-", "") : "default"}`, y = {
|
|
2784
2784
|
"f-icon": !0
|
|
2785
2785
|
};
|
|
2786
|
-
return
|
|
2786
|
+
return y[g] = !0, y;
|
|
2787
2787
|
}), p = E(() => l.value.title || l.value.message), a = E(() => e.showCloseButton), d = E(() => !!l.value.buttons || !!t.slots.default), v = E(() => n.value === "en" ? {
|
|
2788
2788
|
wordBreak: "keep-all",
|
|
2789
2789
|
overflowWrap: "break-word"
|
|
@@ -2793,7 +2793,7 @@ const Qi = {
|
|
|
2793
2793
|
t.emit("close", l.value);
|
|
2794
2794
|
}, 200);
|
|
2795
2795
|
}
|
|
2796
|
-
function
|
|
2796
|
+
function F(k, T) {
|
|
2797
2797
|
}
|
|
2798
2798
|
function I(k) {
|
|
2799
2799
|
return `f-preten-link ${k.customClass ? k.customClass : ""}`;
|
|
@@ -3172,7 +3172,7 @@ const er = {
|
|
|
3172
3172
|
};
|
|
3173
3173
|
function tr(e, t, n, o, i, r, l, f, s, u, m, c, p, a, d, v, h) {
|
|
3174
3174
|
const {
|
|
3175
|
-
calculateCellPositionInRow:
|
|
3175
|
+
calculateCellPositionInRow: F
|
|
3176
3176
|
} = r, {
|
|
3177
3177
|
columnContext: I,
|
|
3178
3178
|
hasLeftFixedColumn: V,
|
|
@@ -3180,15 +3180,15 @@ function tr(e, t, n, o, i, r, l, f, s, u, m, c, p, a, d, v, h) {
|
|
|
3180
3180
|
} = l, {
|
|
3181
3181
|
gridDataStyle: T,
|
|
3182
3182
|
leftFixedGridDataStyle: g,
|
|
3183
|
-
rightFixedGridDataStyle:
|
|
3183
|
+
rightFixedGridDataStyle: y
|
|
3184
3184
|
} = a, {
|
|
3185
|
-
renderDataRow:
|
|
3186
|
-
} = so(e, t, I, h, f, s, u, m, c, p, a, d, v), w = [
|
|
3185
|
+
renderDataRow: b
|
|
3186
|
+
} = so(e, t, I, h, f, s, u, m, c, p, a, d, v), w = [b];
|
|
3187
3187
|
function B(W, z) {
|
|
3188
|
-
const Z =
|
|
3188
|
+
const Z = F(W);
|
|
3189
3189
|
return h.value.filter((O) => O.visible !== !1).map((O, N) => w[O.type](O, Z, z, N));
|
|
3190
3190
|
}
|
|
3191
|
-
function
|
|
3191
|
+
function S() {
|
|
3192
3192
|
return x("div", {
|
|
3193
3193
|
ref: o,
|
|
3194
3194
|
class: "fv-grid-content-left-fixed"
|
|
@@ -3212,12 +3212,12 @@ function tr(e, t, n, o, i, r, l, f, s, u, m, c, p, a, d, v, h) {
|
|
|
3212
3212
|
class: "fv-grid-content-right-fixed"
|
|
3213
3213
|
}, [x("div", {
|
|
3214
3214
|
class: "fv-grid-data",
|
|
3215
|
-
style:
|
|
3215
|
+
style: y.value
|
|
3216
3216
|
}, [B(I.value.rightColumns.filter((W) => W.visible), "right")])]);
|
|
3217
3217
|
}
|
|
3218
3218
|
function R() {
|
|
3219
3219
|
const W = [];
|
|
3220
|
-
return V.value && W.push(
|
|
3220
|
+
return V.value && W.push(S()), W.push(j()), k.value && W.push(H()), W;
|
|
3221
3221
|
}
|
|
3222
3222
|
return {
|
|
3223
3223
|
renderDataArea: R
|
|
@@ -3231,17 +3231,17 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3231
3231
|
var Qt, Jt;
|
|
3232
3232
|
const o = ((Qt = e.rowOption) == null ? void 0 : Qt.height) || 28, i = C(20), r = C(e.columns), l = uo(e), {
|
|
3233
3233
|
idField: f
|
|
3234
|
-
} = l, s = C(), u = C(), m = C(), c = C(), p = C(), a = C([]), d = C(!1), v = C(((Jt = e.rowOption) == null ? void 0 : Jt.wrapContent) || !1), h = co(e, l),
|
|
3234
|
+
} = l, s = C(), u = C(), m = C(), c = C(), p = C(), a = C([]), d = C(!1), v = C(((Jt = e.rowOption) == null ? void 0 : Jt.wrapContent) || !1), h = co(e, l), F = fo(e, t), I = po(e), {
|
|
3235
3235
|
collapseField: V
|
|
3236
3236
|
} = I, {
|
|
3237
3237
|
showLoading: k,
|
|
3238
3238
|
renderLoading: T
|
|
3239
|
-
} = mo(e, s), g = vo(e, /* @__PURE__ */ new Map(),
|
|
3240
|
-
dataView:
|
|
3241
|
-
} = g,
|
|
3239
|
+
} = mo(e, s), g = vo(e, /* @__PURE__ */ new Map(), F, I, l), {
|
|
3240
|
+
dataView: y
|
|
3241
|
+
} = g, b = go(e, g, l, a, t), {
|
|
3242
3242
|
showSelection: w,
|
|
3243
3243
|
selectedValues: B
|
|
3244
|
-
} =
|
|
3244
|
+
} = b, S = ho(e, a, g, l, b, t), j = E(() => e.disabled), H = E(() => e.virtualized ? Math.min(g.dataView.value.length, i.value) : g.dataView.value.length), R = yo(e, g), {
|
|
3245
3245
|
shouldRenderPagination: W
|
|
3246
3246
|
} = R, {
|
|
3247
3247
|
containerStyleObject: z
|
|
@@ -3260,9 +3260,9 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3260
3260
|
updateColumnRenderContext: Q
|
|
3261
3261
|
} = D;
|
|
3262
3262
|
oe(g, K);
|
|
3263
|
-
const re = Fo(e, ye), ce = To(e, t,
|
|
3263
|
+
const re = Fo(e, ye), ce = To(e, t, b, l), ne = ko(e, t, l, ce, a), q = Io(e), ie = Mo(e, ne, q), ze = Bo(e, g, ne, I, l, q, ie), Re = Eo(e, r, g, H, 0, ze), {
|
|
3264
3264
|
getVisualData: ke
|
|
3265
|
-
} = Re, et = Po(e, ye), qe = Oo(e,
|
|
3265
|
+
} = Re, et = Po(e, ye), qe = Oo(e, b), {
|
|
3266
3266
|
sidebarWidth: tt
|
|
3267
3267
|
} = qe, se = Vo(e, g, a, ye, Re, H, 0, tt), {
|
|
3268
3268
|
onWheel: lt,
|
|
@@ -3287,13 +3287,13 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3287
3287
|
"fv-grid-wrap-content": v.value
|
|
3288
3288
|
})), {
|
|
3289
3289
|
renderDataArea: ue
|
|
3290
|
-
} = tr(e, t, m, c, p, et, D, g, ne, I, ce,
|
|
3290
|
+
} = tr(e, t, m, c, p, et, D, g, ne, I, ce, b, S, se, Re, q, a), {
|
|
3291
3291
|
renderGridHeader: de,
|
|
3292
3292
|
renderGridColumnResizeOverlay: Oe,
|
|
3293
3293
|
shouldShowHeader: Bt
|
|
3294
|
-
} = jo(e, t, u, c, p, D, g, ot, nt,
|
|
3294
|
+
} = jo(e, t, u, c, p, D, g, ot, nt, F, je, We, re, b, qe, K, se, Ie, a), {
|
|
3295
3295
|
renderDataGridSidebar: Et
|
|
3296
|
-
} = Ao(e, ce,
|
|
3296
|
+
} = Ao(e, ce, b, qe, se), {
|
|
3297
3297
|
renderDisableMask: Pt
|
|
3298
3298
|
} = Ho(), {
|
|
3299
3299
|
renderHorizontalScrollbar: Ot
|
|
@@ -3322,7 +3322,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3322
3322
|
g.expandTo(U), g.reOrderVisibleIndex(), Le();
|
|
3323
3323
|
}
|
|
3324
3324
|
function st() {
|
|
3325
|
-
const U =
|
|
3325
|
+
const U = b.getSelectionRow();
|
|
3326
3326
|
return U ? U.dataIndex - 1 : -1;
|
|
3327
3327
|
}
|
|
3328
3328
|
function $t() {
|
|
@@ -3338,8 +3338,8 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3338
3338
|
g.insertNewChildDataItems(U, he);
|
|
3339
3339
|
}
|
|
3340
3340
|
function At() {
|
|
3341
|
-
const U = st(), Y =
|
|
3342
|
-
g.removeHierarchyDataItem(U), a.value = ke(0, H.value + 0 - 1), Y &&
|
|
3341
|
+
const U = st(), Y = S.getNextSelectableHierarchyItemId(U);
|
|
3342
|
+
g.removeHierarchyDataItem(U), a.value = ke(0, H.value + 0 - 1), Y && S.selectItemById(Y);
|
|
3343
3343
|
}
|
|
3344
3344
|
function vt(U) {
|
|
3345
3345
|
ne.onEditingRow(U);
|
|
@@ -3360,7 +3360,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3360
3360
|
U && (g.load(U), g.reOrderVisibleIndex(), Y != null && Y.keepScrollPosition ? se.scrollTo(se.offsetY.value) : Le());
|
|
3361
3361
|
}
|
|
3362
3362
|
function _(U) {
|
|
3363
|
-
|
|
3363
|
+
S.selectItemById(U);
|
|
3364
3364
|
}
|
|
3365
3365
|
function ee(U) {
|
|
3366
3366
|
const Y = a.value.find((pe) => pe.raw[l.idField.value] === U);
|
|
@@ -3370,28 +3370,28 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3370
3370
|
ce.activeRowById(U);
|
|
3371
3371
|
}
|
|
3372
3372
|
function Fe(U) {
|
|
3373
|
-
|
|
3373
|
+
S.selectItemByIds(U);
|
|
3374
3374
|
}
|
|
3375
3375
|
function be() {
|
|
3376
|
-
return
|
|
3376
|
+
return b.getSelectedItems();
|
|
3377
3377
|
}
|
|
3378
3378
|
function Ce() {
|
|
3379
|
-
|
|
3379
|
+
b.clearSelection();
|
|
3380
3380
|
}
|
|
3381
3381
|
const Me = E(() => !a.value || !a.value.length), {
|
|
3382
3382
|
renderEmpty: fe
|
|
3383
3383
|
} = zo(e, t);
|
|
3384
3384
|
function Be() {
|
|
3385
|
-
return
|
|
3385
|
+
return b.getSelectionRow();
|
|
3386
3386
|
}
|
|
3387
3387
|
function we(U) {
|
|
3388
|
-
|
|
3388
|
+
S.unSelectItemByIds(U);
|
|
3389
3389
|
}
|
|
3390
3390
|
function ge() {
|
|
3391
|
-
return
|
|
3391
|
+
return b.currentSelectedDataId.value;
|
|
3392
3392
|
}
|
|
3393
3393
|
function ut(U, Y, pe) {
|
|
3394
|
-
const he =
|
|
3394
|
+
const he = y.value.find((xe) => xe[f.value] === U);
|
|
3395
3395
|
if (he) {
|
|
3396
3396
|
if (Object.keys(he).forEach((me) => {
|
|
3397
3397
|
Object.prototype.hasOwnProperty.call(Y, me) && (he[me] = Y[me]);
|
|
@@ -3442,7 +3442,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3442
3442
|
pe && ce.changeRow(pe);
|
|
3443
3443
|
}
|
|
3444
3444
|
function Vn() {
|
|
3445
|
-
|
|
3445
|
+
b.keepSelectingOnPaging.value || Ce(), g.updateVisibleDataSummary(a.value);
|
|
3446
3446
|
}
|
|
3447
3447
|
t.expose({
|
|
3448
3448
|
activeRowById: te,
|
|
@@ -3480,7 +3480,7 @@ const nr = /* @__PURE__ */ Se({
|
|
|
3480
3480
|
...z.value,
|
|
3481
3481
|
borderRadius: "5px"
|
|
3482
3482
|
}));
|
|
3483
|
-
qo(e, t, g, se, R,
|
|
3483
|
+
qo(e, t, g, se, R, b);
|
|
3484
3484
|
const $n = E(() => ({
|
|
3485
3485
|
"d-flex": !0,
|
|
3486
3486
|
"justify-content-between": W.value && w.value,
|
|
@@ -4160,13 +4160,13 @@ function ll(e, t) {
|
|
|
4160
4160
|
if (a !== "" && a !== void 0 && a !== null) {
|
|
4161
4161
|
a = "" + a;
|
|
4162
4162
|
const v = a.length;
|
|
4163
|
-
let h = "",
|
|
4163
|
+
let h = "", F = 0;
|
|
4164
4164
|
for (let I = 0; I < v; I++) {
|
|
4165
4165
|
const V = a.charAt(I);
|
|
4166
|
-
if (
|
|
4166
|
+
if (F++, encodeURI(V).length > 4 && F++, h = h.concat(V), F >= d)
|
|
4167
4167
|
return h = h.concat("..."), h;
|
|
4168
4168
|
}
|
|
4169
|
-
if (
|
|
4169
|
+
if (F < d)
|
|
4170
4170
|
return a;
|
|
4171
4171
|
}
|
|
4172
4172
|
return "";
|
|
@@ -4264,7 +4264,7 @@ function cl(e, t, n, o, i) {
|
|
|
4264
4264
|
function h(I) {
|
|
4265
4265
|
r.value === "question" && t.emit("reject"), t.emit("close");
|
|
4266
4266
|
}
|
|
4267
|
-
function
|
|
4267
|
+
function F(I) {
|
|
4268
4268
|
r.value === "question" && t.emit("accept"), t.emit("close");
|
|
4269
4269
|
}
|
|
4270
4270
|
return () => x("div", {
|
|
@@ -4276,7 +4276,7 @@ function cl(e, t, n, o, i) {
|
|
|
4276
4276
|
}, [u.value]), d.value && c.value && x("button", {
|
|
4277
4277
|
type: "button",
|
|
4278
4278
|
class: "btn btn-primary btn-lg",
|
|
4279
|
-
onClick:
|
|
4279
|
+
onClick: F
|
|
4280
4280
|
}, [s.value]), p.value && l.value.length && l.value.map((I) => x("button", {
|
|
4281
4281
|
type: "button",
|
|
4282
4282
|
onClick: I.handle,
|
|
@@ -4317,17 +4317,17 @@ const wt = /* @__PURE__ */ Se({
|
|
|
4317
4317
|
emits: ["accept", "reject", "close"],
|
|
4318
4318
|
setup(e, t) {
|
|
4319
4319
|
const n = dl(e), o = C(e.type), i = C(e.title), r = C(e.detail), l = E(() => {
|
|
4320
|
-
const
|
|
4320
|
+
const F = {
|
|
4321
4321
|
"modal-tips": !0,
|
|
4322
4322
|
"d-flex": !0,
|
|
4323
4323
|
"flex-row": !0
|
|
4324
4324
|
}, I = `messager-type-${o.value}`;
|
|
4325
|
-
return
|
|
4325
|
+
return F[I] = !0, F;
|
|
4326
4326
|
}), f = E(() => {
|
|
4327
|
-
const
|
|
4327
|
+
const F = {
|
|
4328
4328
|
cursor: "default"
|
|
4329
4329
|
};
|
|
4330
|
-
return o.value === "prompt" ?
|
|
4330
|
+
return o.value === "prompt" ? F.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (F.padding = "0.5rem 1.5rem 1rem 1.5rem"), F;
|
|
4331
4331
|
}), s = tl(), u = ol(e, o, i, r), m = il(), {
|
|
4332
4332
|
feedbackStyle: c,
|
|
4333
4333
|
feedbackMessage: p
|
|
@@ -4661,7 +4661,7 @@ class Qe {
|
|
|
4661
4661
|
}
|
|
4662
4662
|
function kl(e, t) {
|
|
4663
4663
|
const n = C(), o = C(), i = C(), r = C(), l = C(), f = C(), s = C(), u = C(), m = C(), c = C(), p = C(), a = C(e.resizeable), d = C(), v = C(e.draggable), h = C(!1);
|
|
4664
|
-
function
|
|
4664
|
+
function F() {
|
|
4665
4665
|
const O = o.value || document.body, N = window.getComputedStyle(O);
|
|
4666
4666
|
if (!N || !n.value)
|
|
4667
4667
|
return;
|
|
@@ -4672,7 +4672,7 @@ function kl(e, t) {
|
|
|
4672
4672
|
}
|
|
4673
4673
|
function I(O) {
|
|
4674
4674
|
if (n.value) {
|
|
4675
|
-
r.value = Qe.getCurrent(n.value), l.value = ae.getCurrent(n.value), f.value = r.value ? Qe.copy(r.value) : null, s.value = l.value ? ae.copy(l.value) : null,
|
|
4675
|
+
r.value = Qe.getCurrent(n.value), l.value = ae.getCurrent(n.value), f.value = r.value ? Qe.copy(r.value) : null, s.value = l.value ? ae.copy(l.value) : null, F();
|
|
4676
4676
|
const N = O.target.getAttribute("type") || "";
|
|
4677
4677
|
u.value = {
|
|
4678
4678
|
n: !!N.match(/n/),
|
|
@@ -4709,13 +4709,13 @@ function kl(e, t) {
|
|
|
4709
4709
|
const N = O.x, G = O.y;
|
|
4710
4710
|
u.value.n ? (s.value.y = l.value.y + G, f.value.height = r.value.height - G) : u.value.s && (f.value.height = r.value.height + G), u.value.e ? f.value.width = r.value.width + N : u.value.w && (f.value.width = r.value.width - N, s.value.x = l.value.x + N), T(), k(), V();
|
|
4711
4711
|
}
|
|
4712
|
-
function
|
|
4712
|
+
function y(O) {
|
|
4713
4713
|
if (!m.value)
|
|
4714
4714
|
return;
|
|
4715
4715
|
const N = ae.fromEvent(O);
|
|
4716
4716
|
N && g(N);
|
|
4717
4717
|
}
|
|
4718
|
-
function
|
|
4718
|
+
function b() {
|
|
4719
4719
|
if (n.value) {
|
|
4720
4720
|
const {
|
|
4721
4721
|
width: O,
|
|
@@ -4738,56 +4738,56 @@ function kl(e, t) {
|
|
|
4738
4738
|
}
|
|
4739
4739
|
function w(O) {
|
|
4740
4740
|
if (n.value) {
|
|
4741
|
-
const N =
|
|
4741
|
+
const N = b();
|
|
4742
4742
|
p.value = N;
|
|
4743
4743
|
}
|
|
4744
|
-
i.value = void 0, r.value = null, l.value = null, f.value = null, s.value = null, u.value = null, m.value = null, document.removeEventListener("mousemove",
|
|
4744
|
+
i.value = void 0, r.value = null, l.value = null, f.value = null, s.value = null, u.value = null, m.value = null, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", w);
|
|
4745
4745
|
}
|
|
4746
4746
|
function B() {
|
|
4747
|
-
document.addEventListener("mousemove",
|
|
4747
|
+
document.addEventListener("mousemove", y), document.addEventListener("mouseup", w);
|
|
4748
4748
|
}
|
|
4749
|
-
function
|
|
4749
|
+
function S(O) {
|
|
4750
4750
|
O instanceof MouseEvent && O.button === 2 || v.value && (document.body.click(), O.stopPropagation(), O.preventDefault(), i.value = ae.fromEvent(O), m.value = O.target, I(O), B());
|
|
4751
4751
|
}
|
|
4752
4752
|
function j(O) {
|
|
4753
4753
|
return n.value = O, a.value && x(Ve, null, [x("div", {
|
|
4754
4754
|
class: "fv-resizable-handle fv-resizable-n",
|
|
4755
4755
|
type: "n",
|
|
4756
|
-
onMousedown: (N) =>
|
|
4756
|
+
onMousedown: (N) => S(N)
|
|
4757
4757
|
}, null), x("div", {
|
|
4758
4758
|
class: "fv-resizable-handle fv-resizable-e",
|
|
4759
4759
|
type: "e",
|
|
4760
|
-
onMousedown: (N) =>
|
|
4760
|
+
onMousedown: (N) => S(N)
|
|
4761
4761
|
}, null), x("div", {
|
|
4762
4762
|
class: "fv-resizable-handle fv-resizable-s",
|
|
4763
4763
|
type: "s",
|
|
4764
|
-
onMousedown: (N) =>
|
|
4764
|
+
onMousedown: (N) => S(N)
|
|
4765
4765
|
}, null), x("div", {
|
|
4766
4766
|
class: "fv-resizable-handle fv-resizable-w",
|
|
4767
4767
|
type: "w",
|
|
4768
|
-
onMousedown: (N) =>
|
|
4768
|
+
onMousedown: (N) => S(N)
|
|
4769
4769
|
}, null), x("div", {
|
|
4770
4770
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
4771
4771
|
type: "ne",
|
|
4772
|
-
onMousedown: (N) =>
|
|
4772
|
+
onMousedown: (N) => S(N)
|
|
4773
4773
|
}, null), x("div", {
|
|
4774
4774
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
4775
4775
|
type: "se",
|
|
4776
|
-
onMousedown: (N) =>
|
|
4776
|
+
onMousedown: (N) => S(N)
|
|
4777
4777
|
}, null), x("div", {
|
|
4778
4778
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
4779
4779
|
type: "sw",
|
|
4780
|
-
onMousedown: (N) =>
|
|
4780
|
+
onMousedown: (N) => S(N)
|
|
4781
4781
|
}, null), x("div", {
|
|
4782
4782
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
4783
4783
|
type: "nw",
|
|
4784
|
-
onMousedown: (N) =>
|
|
4784
|
+
onMousedown: (N) => S(N)
|
|
4785
4785
|
}, null)]);
|
|
4786
4786
|
}
|
|
4787
4787
|
function H(O = !0) {
|
|
4788
4788
|
document.body.click();
|
|
4789
4789
|
const N = o.value || document.body, G = Qe.getCurrent(N), D = n.value;
|
|
4790
|
-
O && D && (d.value =
|
|
4790
|
+
O && D && (d.value = b(), d.value.transform = D.style.transform), G && D && (f.value = G, f.value.height -= 14, f.value.width -= 14, D.style.height = f.value.height + "px", D.style.width = f.value.width + "px", D.style.left = "7px", D.style.top = "7px", D.style.transform = "", p.value = {
|
|
4791
4791
|
size: f.value,
|
|
4792
4792
|
position: {
|
|
4793
4793
|
x: 0,
|
|
@@ -4848,77 +4848,77 @@ function kl(e, t) {
|
|
|
4848
4848
|
}
|
|
4849
4849
|
function Il(e, t, n) {
|
|
4850
4850
|
const o = C(), i = C(e.draggable), r = C(e.lockAxis), l = C(), f = C(), s = C(!1), u = C(new ae(0, 0)), m = C(new ae(0, 0)), c = C(new ae(0, 0)), p = C(new ae(0, 0));
|
|
4851
|
-
le(() => n.value, (
|
|
4852
|
-
l.value.style.cursor =
|
|
4851
|
+
le(() => n.value, (y) => {
|
|
4852
|
+
l.value.style.cursor = y ? "move" : "default";
|
|
4853
4853
|
});
|
|
4854
|
-
function a(
|
|
4855
|
-
if (
|
|
4854
|
+
function a(y, b) {
|
|
4855
|
+
if (b.tagName === "BUTTON")
|
|
4856
4856
|
return !1;
|
|
4857
|
-
if (
|
|
4857
|
+
if (b === y)
|
|
4858
4858
|
return !0;
|
|
4859
|
-
for (const w in
|
|
4860
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4859
|
+
for (const w in b.children)
|
|
4860
|
+
if (Object.prototype.hasOwnProperty.call(b.children, w) && a(y, b.children[w]))
|
|
4861
4861
|
return !0;
|
|
4862
4862
|
return !1;
|
|
4863
4863
|
}
|
|
4864
4864
|
function d() {
|
|
4865
|
-
var B,
|
|
4866
|
-
let
|
|
4867
|
-
r.value === "x" ? (
|
|
4868
|
-
const w = `translate3d(${Math.round(
|
|
4869
|
-
o.value && (o.value.style.transform = w), p.value.x =
|
|
4865
|
+
var B, S;
|
|
4866
|
+
let y = c.value.x + m.value.x, b = c.value.y + m.value.y;
|
|
4867
|
+
r.value === "x" ? (y = ((B = u.value) == null ? void 0 : B.x) || 0, c.value.x = 0) : r.value === "y" && (b = ((S = u.value) == null ? void 0 : S.y) || 0, c.value.y = 0);
|
|
4868
|
+
const w = `translate3d(${Math.round(y)}px, ${Math.round(b)}px, 0px)`;
|
|
4869
|
+
o.value && (o.value.style.transform = w), p.value.x = y, p.value.y = b;
|
|
4870
4870
|
}
|
|
4871
4871
|
function v() {
|
|
4872
4872
|
if (!f.value || !o.value)
|
|
4873
4873
|
return null;
|
|
4874
|
-
const
|
|
4875
|
-
top:
|
|
4876
|
-
right:
|
|
4877
|
-
bottom:
|
|
4878
|
-
left:
|
|
4874
|
+
const y = f.value.getBoundingClientRect(), b = o.value.getBoundingClientRect(), w = {
|
|
4875
|
+
top: y.top < b.top,
|
|
4876
|
+
right: y.right > b.right,
|
|
4877
|
+
bottom: y.bottom > b.bottom,
|
|
4878
|
+
left: y.left < b.left
|
|
4879
4879
|
};
|
|
4880
|
-
return w.top || (c.value.y -=
|
|
4880
|
+
return w.top || (c.value.y -= b.top - y.top), w.bottom || (c.value.y -= b.bottom - y.bottom), w.right || (c.value.x -= b.right - y.right), w.left || (c.value.x -= b.left - y.left), d(), w;
|
|
4881
4881
|
}
|
|
4882
|
-
function h(
|
|
4883
|
-
|
|
4882
|
+
function h(y) {
|
|
4883
|
+
y && (u.value && y.subtract(u.value), c.value.set(y), d(), v());
|
|
4884
4884
|
}
|
|
4885
|
-
function
|
|
4886
|
-
s.value && i.value && (
|
|
4885
|
+
function F(y) {
|
|
4886
|
+
s.value && i.value && (y.stopPropagation(), y.preventDefault(), h(ae.fromEvent(y, l.value)));
|
|
4887
4887
|
}
|
|
4888
4888
|
function I() {
|
|
4889
|
-
var
|
|
4890
|
-
s.value && (s.value = !1, m.value.add(c.value), c.value.reset(), (
|
|
4889
|
+
var y;
|
|
4890
|
+
s.value && (s.value = !1, m.value.add(c.value), c.value.reset(), (y = o.value) == null || y.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", I));
|
|
4891
4891
|
}
|
|
4892
4892
|
function V() {
|
|
4893
|
-
!s.value && l.value && (s.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove",
|
|
4893
|
+
!s.value && l.value && (s.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", F), document.addEventListener("mouseup", I));
|
|
4894
4894
|
}
|
|
4895
4895
|
function k() {
|
|
4896
4896
|
if (o.value) {
|
|
4897
|
-
const
|
|
4898
|
-
m.value.set(
|
|
4897
|
+
const y = ae.getTransformInfo(o.value);
|
|
4898
|
+
m.value.set(y);
|
|
4899
4899
|
return;
|
|
4900
4900
|
}
|
|
4901
4901
|
m.value.reset();
|
|
4902
4902
|
}
|
|
4903
|
-
function T(
|
|
4904
|
-
if (!n.value ||
|
|
4903
|
+
function T(y) {
|
|
4904
|
+
if (!n.value || y instanceof MouseEvent && y.button === 2)
|
|
4905
4905
|
return;
|
|
4906
|
-
const
|
|
4907
|
-
l.value !== void 0 &&
|
|
4906
|
+
const b = y.target || y.srcElement;
|
|
4907
|
+
l.value !== void 0 && b && !a(b, l.value) || i.value !== !1 && (document.body.click(), y.stopPropagation(), y.preventDefault(), u.value = ae.fromEvent(y, o.value), k(), V());
|
|
4908
4908
|
}
|
|
4909
|
-
function g(
|
|
4910
|
-
if (i.value &&
|
|
4911
|
-
if (
|
|
4912
|
-
l.value =
|
|
4909
|
+
function g(y, b, w) {
|
|
4910
|
+
if (i.value && b) {
|
|
4911
|
+
if (y)
|
|
4912
|
+
l.value = y;
|
|
4913
4913
|
else if (e.dragHandle) {
|
|
4914
4914
|
if (e.dragHandle instanceof HTMLElement)
|
|
4915
4915
|
l.value = e.dragHandle;
|
|
4916
4916
|
else if (typeof e.dragHandle == "string") {
|
|
4917
|
-
const B =
|
|
4917
|
+
const B = b.querySelector(e.dragHandle);
|
|
4918
4918
|
B && (l.value = B);
|
|
4919
4919
|
}
|
|
4920
4920
|
}
|
|
4921
|
-
o.value =
|
|
4921
|
+
o.value = b, f.value = w, l.value ? (l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", T)) : i.value = !1;
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
4924
|
return {
|
|
@@ -4959,10 +4959,10 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
4959
4959
|
props: Sn,
|
|
4960
4960
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
4961
4961
|
setup(e, t) {
|
|
4962
|
-
const n = C(e.width || 300), o = C(e.height || 200), i = C(e.modelValue), r = C(""), l = C(e.class), f = C(e.fitContent), s = C(e.showHeader), u = C(""), m = C(e.showCloseButton), c = C(e.showMaxButton), p = C(!1), a = C(e.dialogType), d = C(e.src), v = C(""), h = C(e.showButtons),
|
|
4962
|
+
const n = C(e.width || 300), o = C(e.height || 200), i = C(e.modelValue), r = C(""), l = C(e.class), f = C(e.fitContent), s = C(e.showHeader), u = C(""), m = C(e.showCloseButton), c = C(e.showMaxButton), p = C(!1), a = C(e.dialogType), d = C(e.src), v = C(""), h = C(e.showButtons), F = C(e.title), I = C(e.containment || null), V = C(), {
|
|
4963
4963
|
t: k
|
|
4964
4964
|
} = Wt();
|
|
4965
|
-
|
|
4965
|
+
F.value === "错误提示" && (F.value = k("messageBox.errorTitle"));
|
|
4966
4966
|
const T = C(!1);
|
|
4967
4967
|
function g(P, J) {
|
|
4968
4968
|
const ue = J ? "accept" : "cancel";
|
|
@@ -4975,7 +4975,7 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
4975
4975
|
de && (i.value = !1, t.emit("update:modelValue", !1), J != null && t.emit(J ? "accept" : "cancel"), t.emit("closed", P));
|
|
4976
4976
|
});
|
|
4977
4977
|
}
|
|
4978
|
-
const
|
|
4978
|
+
const y = [{
|
|
4979
4979
|
name: "cancel",
|
|
4980
4980
|
text: k("messageBox.cancel") || "取消",
|
|
4981
4981
|
class: "btn btn-secondary",
|
|
@@ -4989,7 +4989,7 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
4989
4989
|
handle: (P) => {
|
|
4990
4990
|
g(P, !0);
|
|
4991
4991
|
}
|
|
4992
|
-
}],
|
|
4992
|
+
}], b = C(e.buttons && e.buttons.length ? e.buttons : y), w = E(() => !!u.value), B = E(() => !!h.value && !!b.value), S = C(), j = C(), H = C(!1), {
|
|
4993
4993
|
renderResizeBar: R,
|
|
4994
4994
|
maximize: W,
|
|
4995
4995
|
restore: z,
|
|
@@ -5009,10 +5009,10 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5009
5009
|
(!P || P - 1 <= 0) && document.body.classList.remove("modal-open"), V.value && V.value.classList.remove("show");
|
|
5010
5010
|
}
|
|
5011
5011
|
le(() => e.title, (P, J) => {
|
|
5012
|
-
P !== J && (
|
|
5012
|
+
P !== J && (F.value = P);
|
|
5013
5013
|
}), le(() => e.modelValue, (P, J) => {
|
|
5014
5014
|
P !== J && (i.value = P, i.value && e.draggable && Je(() => {
|
|
5015
|
-
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(
|
|
5015
|
+
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(S.value, j.value, Z.value), D());
|
|
5016
5016
|
}), P || (I.value && (I.value = null), ye())), i.value ? T.value = oe() : (H.value = !1, N.value = e.draggable);
|
|
5017
5017
|
}), le(() => e.showHeader, (P, J) => {
|
|
5018
5018
|
P !== J && (s.value = P);
|
|
@@ -5096,13 +5096,13 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5096
5096
|
P.handle && await P.handle(J, P) && t.emit("closed", J);
|
|
5097
5097
|
}
|
|
5098
5098
|
function Ne(P) {
|
|
5099
|
-
P.width && (n.value = P.width), P.height && (o.value = P.height), P.buttons && (
|
|
5099
|
+
P.width && (n.value = P.width), P.height && (o.value = P.height), P.buttons && (b.value = P.buttons), P.title && (F.value = P.title);
|
|
5100
5100
|
}
|
|
5101
5101
|
let $e = null, Ie = null;
|
|
5102
5102
|
Un(() => {
|
|
5103
5103
|
T.value = oe();
|
|
5104
5104
|
}), De(() => {
|
|
5105
|
-
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(
|
|
5105
|
+
j.value && !I.value && (I.value = j.value.parentElement, Z.value = I.value, K(S.value, j.value, Z.value)), Q.value && document.body.classList.add("modal-open"), $e = Ml(e, t), Ie = Bl(e, t);
|
|
5106
5106
|
}), ft(() => {
|
|
5107
5107
|
G && G(), $e && $e.remove(), Ie && Ie.remove();
|
|
5108
5108
|
}), t.expose({
|
|
@@ -5135,7 +5135,7 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5135
5135
|
return x("div", {
|
|
5136
5136
|
class: "modal-footer",
|
|
5137
5137
|
style: tt.value
|
|
5138
|
-
}, [
|
|
5138
|
+
}, [b.value && b.value.map((P) => {
|
|
5139
5139
|
const J = C(P.disabled);
|
|
5140
5140
|
return x("button", {
|
|
5141
5141
|
name: P.name,
|
|
@@ -5152,7 +5152,7 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5152
5152
|
}
|
|
5153
5153
|
function We() {
|
|
5154
5154
|
return x("div", {
|
|
5155
|
-
ref:
|
|
5155
|
+
ref: S,
|
|
5156
5156
|
class: "modal-header",
|
|
5157
5157
|
style: Re.value
|
|
5158
5158
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : x("div", {
|
|
@@ -5162,7 +5162,7 @@ const Ze = /* @__PURE__ */ Se({
|
|
|
5162
5162
|
style: "margin-right: 8px"
|
|
5163
5163
|
}, null), x("span", {
|
|
5164
5164
|
class: "modal-title-label"
|
|
5165
|
-
}, [
|
|
5165
|
+
}, [F.value])]), x("div", {
|
|
5166
5166
|
class: "actions"
|
|
5167
5167
|
}, [Le()])]);
|
|
5168
5168
|
}
|
|
@@ -5234,7 +5234,7 @@ function El(e) {
|
|
|
5234
5234
|
}), d = e.closedCallback || ((V) => {
|
|
5235
5235
|
}), v = e.resizeHandle || ((V) => {
|
|
5236
5236
|
}), h = e.stopMoveHandle || ((V) => {
|
|
5237
|
-
}),
|
|
5237
|
+
}), F = Tn(e), I = (V) => {
|
|
5238
5238
|
m.value = !1, n.unmount(), d(V);
|
|
5239
5239
|
};
|
|
5240
5240
|
return De(() => {
|
|
@@ -5260,7 +5260,7 @@ function El(e) {
|
|
|
5260
5260
|
onResize: v,
|
|
5261
5261
|
onStopMove: h
|
|
5262
5262
|
}, {
|
|
5263
|
-
default: () => [
|
|
5263
|
+
default: () => [F && F(n)]
|
|
5264
5264
|
});
|
|
5265
5265
|
}
|
|
5266
5266
|
});
|
|
@@ -5319,14 +5319,14 @@ class kn {
|
|
|
5319
5319
|
});
|
|
5320
5320
|
let m;
|
|
5321
5321
|
const c = Tn(o.value), p = (T) => {
|
|
5322
|
-
var
|
|
5322
|
+
var y;
|
|
5323
5323
|
i.value = !1;
|
|
5324
|
-
const g = (
|
|
5324
|
+
const g = (y = T == null ? void 0 : T.target) == null ? void 0 : y.classList.contains("modal_close");
|
|
5325
5325
|
f(T, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
|
|
5326
5326
|
}, a = (T) => {
|
|
5327
5327
|
p(T), m && Je(() => {
|
|
5328
5328
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Ut(null, n), m = null, this.modalRef.value = null, this.modalRefs) {
|
|
5329
|
-
const g = Object.keys(this.modalRefs).map((
|
|
5329
|
+
const g = Object.keys(this.modalRefs).map((y) => Number(y));
|
|
5330
5330
|
g.length > 0 ? this.activeModalIndex.value = Math.max(...g) : this.activeModalIndex.value = 0;
|
|
5331
5331
|
}
|
|
5332
5332
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -5337,8 +5337,8 @@ class kn {
|
|
|
5337
5337
|
}, {
|
|
5338
5338
|
width: v,
|
|
5339
5339
|
height: h
|
|
5340
|
-
} = o.value,
|
|
5341
|
-
Object.assign(o.value,
|
|
5340
|
+
} = o.value, F = this.adaptToWindow(v || 500, h || 320);
|
|
5341
|
+
Object.assign(o.value, F);
|
|
5342
5342
|
const I = () => x(Ze, It({
|
|
5343
5343
|
ref: this.modalRef,
|
|
5344
5344
|
modelValue: i.value,
|
|
@@ -6027,13 +6027,13 @@ function Vl(e, t) {
|
|
|
6027
6027
|
function l() {
|
|
6028
6028
|
var c, p, a, d, v, h;
|
|
6029
6029
|
if ((p = (c = e == null ? void 0 : e.parent) == null ? void 0 : c.parent) != null && p.schema) {
|
|
6030
|
-
const
|
|
6031
|
-
(d =
|
|
6030
|
+
const F = (a = e == null ? void 0 : e.parent) == null ? void 0 : a.parent.schema;
|
|
6031
|
+
(d = F.appearance) != null && d.class && ((v = F.appearance) != null && v.class.includes("f-page-has-scheme")) && (F.appearance.class = (h = F.appearance) == null ? void 0 : h.class.replace("f-page-has-scheme", "").replace(" ", ""));
|
|
6032
6032
|
}
|
|
6033
6033
|
const { formSchemaUtils: f } = t, s = e.componentInstance.value.belongedComponentId, u = f.getViewModelIdByComponentId(s), m = f.getViewModelById(u);
|
|
6034
6034
|
if (m && m.states) {
|
|
6035
|
-
const
|
|
6036
|
-
|
|
6035
|
+
const F = m.states.findIndex((I) => I.code === "originalFilterConditionList");
|
|
6036
|
+
F > -1 && m.states.splice(F, 1);
|
|
6037
6037
|
}
|
|
6038
6038
|
}
|
|
6039
6039
|
return {
|
|
@@ -6058,22 +6058,22 @@ const Rl = /* @__PURE__ */ Se({
|
|
|
6058
6058
|
}));
|
|
6059
6059
|
De(() => {
|
|
6060
6060
|
m.value.componentInstance = d;
|
|
6061
|
-
}), t.expose(d.value), le([() => e.data, () => e.fields], ([
|
|
6062
|
-
u(w,
|
|
6061
|
+
}), t.expose(d.value), le([() => e.data, () => e.fields], ([b, w]) => {
|
|
6062
|
+
u(w, b);
|
|
6063
6063
|
});
|
|
6064
|
-
const h = E(() => o.value && n.value),
|
|
6064
|
+
const h = E(() => o.value && n.value), F = E(() => ({
|
|
6065
6065
|
"f-filter-list": !0,
|
|
6066
6066
|
"f-filter-list-extend": h.value
|
|
6067
6067
|
})), I = E(() => s.value.length > 0);
|
|
6068
6068
|
function V() {
|
|
6069
6069
|
return x("div", {
|
|
6070
|
-
class:
|
|
6071
|
-
}, [s.value.map((
|
|
6072
|
-
filterItem:
|
|
6070
|
+
class: F.value
|
|
6071
|
+
}, [s.value.map((b, w) => x(Cn, {
|
|
6072
|
+
filterItem: b,
|
|
6073
6073
|
useFilterItemsComposition: l
|
|
6074
6074
|
}, null))]);
|
|
6075
6075
|
}
|
|
6076
|
-
const k = E(() => i.value && !o.value && r.value), T = Li(), g = E(() => !o.value),
|
|
6076
|
+
const k = E(() => i.value && !o.value && r.value), T = Li(), g = E(() => !o.value), y = bn(e, t, l);
|
|
6077
6077
|
return () => x("div", {
|
|
6078
6078
|
ref: m,
|
|
6079
6079
|
class: "f-filter-wrapper",
|
|
@@ -6084,7 +6084,7 @@ const Rl = /* @__PURE__ */ Se({
|
|
|
6084
6084
|
class: "f-filter-main f-utils-fill"
|
|
6085
6085
|
}, [x("div", {
|
|
6086
6086
|
class: "f-filter-list-wrapper"
|
|
6087
|
-
}, [I.value && V(), k.value && T(), g.value &&
|
|
6087
|
+
}, [I.value && V(), k.value && T(), g.value && y()])])])]);
|
|
6088
6088
|
}
|
|
6089
6089
|
}), Nl = "https://json-schema.org/draft/2020-12/schema", $l = "https://farris-design.gitee.io/query-solution-config.schema.json", Ll = "query-solution-config", jl = "A Farris Container Component", Al = {
|
|
6090
6090
|
fieldsConfig: {
|
|
@@ -6786,17 +6786,17 @@ function Yt(e) {
|
|
|
6786
6786
|
function u(p) {
|
|
6787
6787
|
if (!p || !p.id)
|
|
6788
6788
|
return null;
|
|
6789
|
-
const { id: a, code: d, labelCode: v, name: h, controlType:
|
|
6789
|
+
const { id: a, code: d, labelCode: v, name: h, controlType: F, labelName: I, $type: V, $typeInfo: k, ...T } = p, g = {
|
|
6790
6790
|
id: a,
|
|
6791
6791
|
code: d,
|
|
6792
6792
|
labelCode: v,
|
|
6793
6793
|
name: h,
|
|
6794
|
-
controlType:
|
|
6794
|
+
controlType: F,
|
|
6795
6795
|
$type: V,
|
|
6796
6796
|
$typeInfo: k,
|
|
6797
6797
|
editor: T
|
|
6798
6798
|
};
|
|
6799
|
-
return g.editor.type =
|
|
6799
|
+
return g.editor.type = F, g;
|
|
6800
6800
|
}
|
|
6801
6801
|
function m(p) {
|
|
6802
6802
|
let a = "";
|
|
@@ -6825,13 +6825,13 @@ function Yt(e) {
|
|
|
6825
6825
|
getRealControlType: m,
|
|
6826
6826
|
lookupDialogOptionsConverter: {
|
|
6827
6827
|
convertFrom: (p, a) => {
|
|
6828
|
-
var
|
|
6828
|
+
var F;
|
|
6829
6829
|
const d = p.dialog || {}, { openType: v } = p;
|
|
6830
6830
|
if (a === "title")
|
|
6831
6831
|
return d[a] || "";
|
|
6832
6832
|
if (!v || v === "Modal") {
|
|
6833
6833
|
if (a === "width")
|
|
6834
|
-
return (
|
|
6834
|
+
return (F = p.displayType) != null && F.toUpperCase().startsWith("NAV") ? d[a] || 960 : d[a] || 590;
|
|
6835
6835
|
if (a === "height")
|
|
6836
6836
|
return d[a] || 620;
|
|
6837
6837
|
if (a === "navigatorWidth")
|
|
@@ -6904,13 +6904,13 @@ function Gl(e, t) {
|
|
|
6904
6904
|
return g.$type !== "EntityType";
|
|
6905
6905
|
}
|
|
6906
6906
|
function s(g) {
|
|
6907
|
-
const { defaultConverter:
|
|
6907
|
+
const { defaultConverter: y, dataSourceEditor: b, idFieldEditor: w, textFieldEditor: B, mappingFieldsEditor: S, dataSourceConverter: j } = Xo(g, e), H = {
|
|
6908
6908
|
description: "帮助元数据",
|
|
6909
6909
|
title: "帮助元数据",
|
|
6910
6910
|
type: "string",
|
|
6911
6911
|
$converter: j,
|
|
6912
6912
|
editor: {
|
|
6913
|
-
...
|
|
6913
|
+
...b,
|
|
6914
6914
|
onSubmitModal: (G) => {
|
|
6915
6915
|
if (G) {
|
|
6916
6916
|
const D = e.formSchemaUtils.getFormMetadataBasicInfo();
|
|
@@ -6948,7 +6948,7 @@ function Gl(e, t) {
|
|
|
6948
6948
|
title: "字段映射",
|
|
6949
6949
|
type: "string",
|
|
6950
6950
|
// $converter: lookupDefaultConverter,
|
|
6951
|
-
editor:
|
|
6951
|
+
editor: S
|
|
6952
6952
|
}, Z = {
|
|
6953
6953
|
description: "",
|
|
6954
6954
|
title: "允许编辑",
|
|
@@ -6966,27 +6966,27 @@ function Gl(e, t) {
|
|
|
6966
6966
|
title: "是否多选",
|
|
6967
6967
|
type: "boolean",
|
|
6968
6968
|
defaultValue: !1,
|
|
6969
|
-
$converter:
|
|
6969
|
+
$converter: y,
|
|
6970
6970
|
visible: f(g)
|
|
6971
6971
|
};
|
|
6972
6972
|
return { helpId: H, textField: R, valueField: W, mappingFields: z, editable: Z, allowFreeInput: O, multiSelect: N };
|
|
6973
6973
|
}
|
|
6974
6974
|
function u(g) {
|
|
6975
|
-
const
|
|
6976
|
-
["showNavigation", "navigatorWidth"].map((w) => delete
|
|
6977
|
-
const
|
|
6978
|
-
return
|
|
6975
|
+
const y = Yo(g);
|
|
6976
|
+
["showNavigation", "navigatorWidth"].map((w) => delete y[w]);
|
|
6977
|
+
const b = Qo(g, !1);
|
|
6978
|
+
return b.setPropertyRelates = (w, B) => {
|
|
6979
6979
|
w && ["showLimits", "sizeLimits"].indexOf(w.propertyID) > -1 && r.value++;
|
|
6980
6980
|
}, {
|
|
6981
6981
|
dialog: {
|
|
6982
6982
|
description: "",
|
|
6983
6983
|
title: "弹窗窗口配置",
|
|
6984
|
-
properties:
|
|
6984
|
+
properties: y,
|
|
6985
6985
|
setPropertyRelates(w, B) {
|
|
6986
6986
|
w && w.propertyID === "openType" && r.value++;
|
|
6987
6987
|
}
|
|
6988
6988
|
},
|
|
6989
|
-
pager:
|
|
6989
|
+
pager: b
|
|
6990
6990
|
};
|
|
6991
6991
|
}
|
|
6992
6992
|
function m(g) {
|
|
@@ -7010,7 +7010,7 @@ function Gl(e, t) {
|
|
|
7010
7010
|
} };
|
|
7011
7011
|
}
|
|
7012
7012
|
function c(g) {
|
|
7013
|
-
const
|
|
7013
|
+
const y = {
|
|
7014
7014
|
description: "最大值",
|
|
7015
7015
|
title: "最大值",
|
|
7016
7016
|
type: "number",
|
|
@@ -7021,7 +7021,7 @@ function Gl(e, t) {
|
|
|
7021
7021
|
min: g.min,
|
|
7022
7022
|
needValid: !0
|
|
7023
7023
|
}
|
|
7024
|
-
},
|
|
7024
|
+
}, b = {
|
|
7025
7025
|
description: "最小值",
|
|
7026
7026
|
title: "最小值",
|
|
7027
7027
|
type: "number",
|
|
@@ -7033,29 +7033,29 @@ function Gl(e, t) {
|
|
|
7033
7033
|
needValid: !0
|
|
7034
7034
|
}
|
|
7035
7035
|
};
|
|
7036
|
-
return { max:
|
|
7036
|
+
return { max: y, min: b };
|
|
7037
7037
|
}
|
|
7038
|
-
function p(g,
|
|
7039
|
-
if (!
|
|
7038
|
+
function p(g, y) {
|
|
7039
|
+
if (!y)
|
|
7040
7040
|
return g;
|
|
7041
|
-
const
|
|
7042
|
-
return
|
|
7041
|
+
const b = y.includes("yyyy"), w = y.includes("MM"), B = y.includes("dd"), S = y.includes("HH"), j = y.includes("mm"), H = y.includes("ss");
|
|
7042
|
+
return b || (g = g.filter((R) => !R.id.includes("yyyy"))), w || (g = g.filter((R) => !R.id.includes("MM"))), B || (g = g.filter((R) => !R.id.includes("dd"))), S || (g = g.filter((R) => !R.id.includes("HH"))), j || (g = g.filter((R) => !R.id.includes("mm"))), H || (g = g.filter((R) => !R.id.includes("ss"))), g;
|
|
7043
7043
|
}
|
|
7044
7044
|
function a(g) {
|
|
7045
|
-
const { timeFormats:
|
|
7045
|
+
const { timeFormats: y, yMdFormats: b, yMFormats: w, mdFormats: B, yFormats: S } = Go(), j = [];
|
|
7046
7046
|
switch (g) {
|
|
7047
7047
|
case "date-picker":
|
|
7048
7048
|
case "date-range": {
|
|
7049
|
-
j.push(...
|
|
7049
|
+
j.push(...b, ...w, ...S, ...B);
|
|
7050
7050
|
break;
|
|
7051
7051
|
}
|
|
7052
7052
|
case "datetime-picker":
|
|
7053
7053
|
case "datetime-range": {
|
|
7054
|
-
j.push(...
|
|
7054
|
+
j.push(...y, ...b, ...w, ...S, ...B);
|
|
7055
7055
|
break;
|
|
7056
7056
|
}
|
|
7057
7057
|
case "year-picker": {
|
|
7058
|
-
j.push(...
|
|
7058
|
+
j.push(...S);
|
|
7059
7059
|
break;
|
|
7060
7060
|
}
|
|
7061
7061
|
case "month-picker":
|
|
@@ -7067,30 +7067,30 @@ function Gl(e, t) {
|
|
|
7067
7067
|
return j;
|
|
7068
7068
|
}
|
|
7069
7069
|
function d(g) {
|
|
7070
|
-
const { controlType:
|
|
7070
|
+
const { controlType: y } = g, b = a(y), w = {
|
|
7071
7071
|
description: "查询格式",
|
|
7072
7072
|
title: "查询格式",
|
|
7073
7073
|
type: "enum",
|
|
7074
7074
|
editor: {
|
|
7075
|
-
data:
|
|
7075
|
+
data: b
|
|
7076
7076
|
}
|
|
7077
|
-
},
|
|
7077
|
+
}, S = {
|
|
7078
7078
|
description: "显示格式",
|
|
7079
7079
|
title: "显示格式",
|
|
7080
7080
|
type: "enum",
|
|
7081
7081
|
editor: {
|
|
7082
|
-
data: p(
|
|
7082
|
+
data: p(b, g.valueFormat)
|
|
7083
7083
|
}
|
|
7084
7084
|
};
|
|
7085
|
-
return { valueFormat: w, displayFormat:
|
|
7085
|
+
return { valueFormat: w, displayFormat: S };
|
|
7086
7086
|
}
|
|
7087
7087
|
function v(g) {
|
|
7088
7088
|
return ["date-range", "date-picker", "datetime-range", "datetime-picker", "year-picker", "month-picker", "month-range"].indexOf(g) > -1;
|
|
7089
7089
|
}
|
|
7090
7090
|
function h(g) {
|
|
7091
7091
|
var B;
|
|
7092
|
-
const { controlType:
|
|
7093
|
-
["date-range", "datetime-range", "month-range", "number-range"].indexOf(
|
|
7092
|
+
const { controlType: y } = g, b = Object.assign({}, nn.common);
|
|
7093
|
+
["date-range", "datetime-range", "month-range", "number-range"].indexOf(y) > -1 ? (delete b.placeholder, delete b.multiLineLabel, Object.assign(b, {
|
|
7094
7094
|
beginPlaceholder: {
|
|
7095
7095
|
description: "当控件没有值时在输入框中显示的文本",
|
|
7096
7096
|
title: "开始提示文本",
|
|
@@ -7109,7 +7109,7 @@ function Gl(e, t) {
|
|
|
7109
7109
|
type: "boolean",
|
|
7110
7110
|
$converter: ht
|
|
7111
7111
|
}
|
|
7112
|
-
})) : (
|
|
7112
|
+
})) : (b.placeholder.$converter = ht, b.multiLineLabel.$converter = _l), v(y) && (["date-range"].indexOf(y) > -1 && Object.assign(b, {
|
|
7113
7113
|
weekSelect: {
|
|
7114
7114
|
description: "启用周选择",
|
|
7115
7115
|
title: "启用周选择",
|
|
@@ -7119,7 +7119,7 @@ function Gl(e, t) {
|
|
|
7119
7119
|
readonly: g.enableQuickSelect
|
|
7120
7120
|
}
|
|
7121
7121
|
}
|
|
7122
|
-
}), ["year-picker", "month-picker", "month-range"].indexOf(
|
|
7122
|
+
}), ["year-picker", "month-picker", "month-range"].indexOf(y) < 0 && Object.assign(b, {
|
|
7123
7123
|
firstDayOfTheWeek: {
|
|
7124
7124
|
description: "",
|
|
7125
7125
|
title: "每周起始日",
|
|
@@ -7153,27 +7153,27 @@ function Gl(e, t) {
|
|
|
7153
7153
|
}
|
|
7154
7154
|
}
|
|
7155
7155
|
}));
|
|
7156
|
-
const w = Object.assign({},
|
|
7157
|
-
return
|
|
7156
|
+
const w = Object.assign({}, b, nn[o(y)]);
|
|
7157
|
+
return y === "combo-list" && ((B = g.$typeInfo) == null ? void 0 : B.$type) === "BooleanType" && (w.multiSelect.visible = !1), w;
|
|
7158
7158
|
}
|
|
7159
|
-
function
|
|
7160
|
-
const { controlType:
|
|
7159
|
+
function F(g) {
|
|
7160
|
+
const { controlType: y } = g, b = {
|
|
7161
7161
|
description: "",
|
|
7162
7162
|
title: "控件",
|
|
7163
7163
|
properties: h(g)
|
|
7164
7164
|
};
|
|
7165
|
-
switch (
|
|
7165
|
+
switch (y) {
|
|
7166
7166
|
case "lookup":
|
|
7167
7167
|
case "combo-lookup": {
|
|
7168
|
-
const { helpId: w, textField: B, valueField:
|
|
7169
|
-
|
|
7168
|
+
const { helpId: w, textField: B, valueField: S, mappingFields: j, editable: H, allowFreeInput: R, multiSelect: W } = s(g);
|
|
7169
|
+
b.properties.helpId = w, b.properties.textField = B, b.properties.valueField = S, b.properties.mapFields = j, b.properties.editable = H, b.properties.allowFreeInput = R, b.properties.multiSelect = W;
|
|
7170
7170
|
break;
|
|
7171
7171
|
}
|
|
7172
7172
|
case "radio-group":
|
|
7173
7173
|
case "combo-list":
|
|
7174
7174
|
{
|
|
7175
7175
|
const { enumValues: w } = m();
|
|
7176
|
-
|
|
7176
|
+
b.properties.data = w;
|
|
7177
7177
|
}
|
|
7178
7178
|
break;
|
|
7179
7179
|
case "year-picker":
|
|
@@ -7183,27 +7183,27 @@ function Gl(e, t) {
|
|
|
7183
7183
|
case "date-picker":
|
|
7184
7184
|
case "datetime-range":
|
|
7185
7185
|
case "datetime-picker": {
|
|
7186
|
-
const { $typeInfo: w } = g, { valueFormat: B, displayFormat:
|
|
7187
|
-
w && w.name === "String" && (
|
|
7186
|
+
const { $typeInfo: w } = g, { valueFormat: B, displayFormat: S } = d(g);
|
|
7187
|
+
w && w.name === "String" && (b.properties.valueFormat = B), b.properties.displayFormat = S;
|
|
7188
7188
|
break;
|
|
7189
7189
|
}
|
|
7190
7190
|
case "number-spinner":
|
|
7191
7191
|
case "number-range": {
|
|
7192
7192
|
const { max: w, min: B } = c(g);
|
|
7193
|
-
|
|
7193
|
+
b.properties.max = w, b.properties.min = B;
|
|
7194
7194
|
break;
|
|
7195
7195
|
}
|
|
7196
7196
|
case "input-group": {
|
|
7197
|
-
g.$typeInfo && (
|
|
7197
|
+
g.$typeInfo && (b.properties.maxLength.editor.max = g.$typeInfo.length);
|
|
7198
7198
|
break;
|
|
7199
7199
|
}
|
|
7200
7200
|
}
|
|
7201
|
-
return
|
|
7202
|
-
w && (["lookup", "combo-lookup"].indexOf(
|
|
7203
|
-
},
|
|
7201
|
+
return b.setPropertyRelates = (w, B) => {
|
|
7202
|
+
w && (["lookup", "combo-lookup"].indexOf(y) > -1 && ["helpId", "editable", "multiSelect"].indexOf(w.propertyID) > -1 ? r.value++ : v(y) && ["weekSelect", "enableQuickSelect"].indexOf(w.propertyID) > -1 ? (w.propertyValue && w.propertyID === "weekSelect" && (g.enableQuickSelect = !1, g.firstDayOfTheWeek = "Mon"), w.propertyValue && w.propertyID === "enableQuickSelect" && (g.weekSelect = !1), r.value++) : ["number-spinner", "number-range"].indexOf(y) > -1 && ["max", "min"].indexOf(w.propertyID) > -1 && r.value++);
|
|
7203
|
+
}, b;
|
|
7204
7204
|
}
|
|
7205
7205
|
function I(g) {
|
|
7206
|
-
const
|
|
7206
|
+
const y = [
|
|
7207
7207
|
{
|
|
7208
7208
|
label: "valueChangedCmd",
|
|
7209
7209
|
name: "值变化事件"
|
|
@@ -7212,7 +7212,7 @@ function Gl(e, t) {
|
|
|
7212
7212
|
switch (g) {
|
|
7213
7213
|
case "combo-lookup":
|
|
7214
7214
|
case "lookup":
|
|
7215
|
-
|
|
7215
|
+
y.push({
|
|
7216
7216
|
label: "preEventCmd",
|
|
7217
7217
|
name: "帮助前事件"
|
|
7218
7218
|
}, {
|
|
@@ -7221,7 +7221,7 @@ function Gl(e, t) {
|
|
|
7221
7221
|
});
|
|
7222
7222
|
break;
|
|
7223
7223
|
case "combo-list":
|
|
7224
|
-
|
|
7224
|
+
y.push({
|
|
7225
7225
|
label: "beforeShow",
|
|
7226
7226
|
name: "面板展开前事件"
|
|
7227
7227
|
}, {
|
|
@@ -7230,14 +7230,14 @@ function Gl(e, t) {
|
|
|
7230
7230
|
});
|
|
7231
7231
|
break;
|
|
7232
7232
|
}
|
|
7233
|
-
return
|
|
7233
|
+
return y;
|
|
7234
7234
|
}
|
|
7235
7235
|
function V(g) {
|
|
7236
|
-
const
|
|
7236
|
+
const y = I(g.controlType), b = e.eventsEditorUtils.formProperties(g, e.viewModelId, y), w = {};
|
|
7237
7237
|
return w[e.viewModelId] = {
|
|
7238
7238
|
type: "events-editor",
|
|
7239
7239
|
editor: {
|
|
7240
|
-
initialData:
|
|
7240
|
+
initialData: b
|
|
7241
7241
|
}
|
|
7242
7242
|
}, {
|
|
7243
7243
|
title: "事件",
|
|
@@ -7247,23 +7247,23 @@ function Gl(e, t) {
|
|
|
7247
7247
|
refreshPanelAfterChanged: !0,
|
|
7248
7248
|
tabId: "commands",
|
|
7249
7249
|
tabName: "交互",
|
|
7250
|
-
setPropertyRelates(
|
|
7251
|
-
const H =
|
|
7250
|
+
setPropertyRelates(S, j) {
|
|
7251
|
+
const H = S.propertyValue;
|
|
7252
7252
|
delete g[e.viewModelId], H && (H.setPropertyRelates = this.setPropertyRelates, e.eventsEditorUtils.saveRelatedParameters(g, e.viewModelId, H.events, H)), g.remoteSort = !!g.columnSorted;
|
|
7253
7253
|
}
|
|
7254
7254
|
};
|
|
7255
7255
|
}
|
|
7256
7256
|
function k(g) {
|
|
7257
|
-
const { controlType:
|
|
7258
|
-
let
|
|
7259
|
-
switch (
|
|
7257
|
+
const { controlType: y } = g;
|
|
7258
|
+
let b = {};
|
|
7259
|
+
switch (y) {
|
|
7260
7260
|
case "lookup":
|
|
7261
|
-
|
|
7261
|
+
b = u(g);
|
|
7262
7262
|
}
|
|
7263
|
-
return
|
|
7263
|
+
return b;
|
|
7264
7264
|
}
|
|
7265
7265
|
function T(g) {
|
|
7266
|
-
const
|
|
7266
|
+
const y = l(g), b = F(g);
|
|
7267
7267
|
V(g);
|
|
7268
7268
|
const w = k(g);
|
|
7269
7269
|
return {
|
|
@@ -7271,8 +7271,8 @@ function Gl(e, t) {
|
|
|
7271
7271
|
description: "A Farris Component",
|
|
7272
7272
|
type: "object",
|
|
7273
7273
|
categories: {
|
|
7274
|
-
basic:
|
|
7275
|
-
control:
|
|
7274
|
+
basic: y,
|
|
7275
|
+
control: b,
|
|
7276
7276
|
...w
|
|
7277
7277
|
// eventsEditor
|
|
7278
7278
|
}
|
|
@@ -7293,10 +7293,10 @@ function Xl(e, t, n, o) {
|
|
|
7293
7293
|
le(() => {
|
|
7294
7294
|
var h;
|
|
7295
7295
|
return (h = n.value) == null ? void 0 : h.id;
|
|
7296
|
-
}, (h,
|
|
7296
|
+
}, (h, F) => {
|
|
7297
7297
|
if (!h)
|
|
7298
7298
|
s.value = null;
|
|
7299
|
-
else if (h !==
|
|
7299
|
+
else if (h !== F) {
|
|
7300
7300
|
const I = o.get(h);
|
|
7301
7301
|
s.value = I;
|
|
7302
7302
|
}
|
|
@@ -7313,33 +7313,33 @@ function Xl(e, t, n, o) {
|
|
|
7313
7313
|
};
|
|
7314
7314
|
}
|
|
7315
7315
|
function a(h = !0) {
|
|
7316
|
-
const
|
|
7317
|
-
i.value.updatePropertyConfig(
|
|
7316
|
+
const F = u(s.value);
|
|
7317
|
+
i.value.updatePropertyConfig(F, s.value, h);
|
|
7318
7318
|
}
|
|
7319
7319
|
le(() => {
|
|
7320
|
-
var h,
|
|
7321
|
-
return [(h = s.value) == null ? void 0 : h.id, (
|
|
7322
|
-
}, ([h,
|
|
7320
|
+
var h, F;
|
|
7321
|
+
return [(h = s.value) == null ? void 0 : h.id, (F = s.value) == null ? void 0 : F.controlType];
|
|
7322
|
+
}, ([h, F], [I, V]) => {
|
|
7323
7323
|
if (!h)
|
|
7324
7324
|
i.value.updatePropertyConfig({}, {}, !0);
|
|
7325
7325
|
else if (h !== I) {
|
|
7326
7326
|
const k = u(s.value);
|
|
7327
7327
|
i.value.updatePropertyConfig(k, s.value, !0);
|
|
7328
|
-
} else if (
|
|
7328
|
+
} else if (F !== V) {
|
|
7329
7329
|
const k = o.get(h), T = p(k);
|
|
7330
|
-
T.controlType =
|
|
7330
|
+
T.controlType = F;
|
|
7331
7331
|
const g = {
|
|
7332
7332
|
...T,
|
|
7333
|
-
...c(
|
|
7333
|
+
...c(F, k)
|
|
7334
7334
|
};
|
|
7335
|
-
(
|
|
7335
|
+
(F === "number-spinner" || F === "number-range") && (g.precision = k == null ? void 0 : k.$typeInfo.precision), o.set(h, g), s.value = o.get(h), a();
|
|
7336
7336
|
}
|
|
7337
7337
|
});
|
|
7338
7338
|
function d(h) {
|
|
7339
7339
|
const {
|
|
7340
|
-
propertyID:
|
|
7340
|
+
propertyID: F
|
|
7341
7341
|
} = h.changeObject;
|
|
7342
|
-
if ((
|
|
7342
|
+
if ((F === "precision" || F === "max" || F === "min") && a(!1), F === "valueFormat") {
|
|
7343
7343
|
const I = u(s.value), V = I.categories.control.properties.displayFormat.editor.data;
|
|
7344
7344
|
V.find((k) => s.value.displayFormat === k.id) || (s.value.displayFormat = V[0].id), i.value.updatePropertyConfig(I, s.value, !1);
|
|
7345
7345
|
}
|
|
@@ -7367,66 +7367,66 @@ function Yl(e, t, n, o) {
|
|
|
7367
7367
|
const i = /* @__PURE__ */ new Map(), r = C(!1), l = C(), f = C([]), s = C([]), u = C([]), {
|
|
7368
7368
|
getSolutionField: m
|
|
7369
7369
|
} = Yt(), c = {
|
|
7370
|
-
customRowStatus: (
|
|
7371
|
-
const
|
|
7372
|
-
|
|
7370
|
+
customRowStatus: (y) => {
|
|
7371
|
+
const b = y.raw;
|
|
7372
|
+
y.disabled = b.$type !== "SimpleField" || b.$typeInfo.name === "Text";
|
|
7373
7373
|
}
|
|
7374
7374
|
};
|
|
7375
7375
|
let p = [];
|
|
7376
|
-
function a(
|
|
7377
|
-
n.value =
|
|
7376
|
+
function a(y) {
|
|
7377
|
+
n.value = y.length ? y[0] : null;
|
|
7378
7378
|
}
|
|
7379
|
-
function d(
|
|
7379
|
+
function d(y) {
|
|
7380
7380
|
var w;
|
|
7381
7381
|
s.value.forEach((B) => {
|
|
7382
|
-
!
|
|
7383
|
-
}), s.value =
|
|
7384
|
-
const
|
|
7385
|
-
(!
|
|
7382
|
+
!y.find((j) => j.id === B.id) && o.set(B.id, ve(i.get(B.id)));
|
|
7383
|
+
}), s.value = y;
|
|
7384
|
+
const b = (w = n.value) == null ? void 0 : w.id;
|
|
7385
|
+
(!b || !s.value.find((B) => B.id === b)) && (n.value = null);
|
|
7386
7386
|
}
|
|
7387
|
-
function v(
|
|
7388
|
-
if (
|
|
7387
|
+
function v(y, b = !1) {
|
|
7388
|
+
if (y.forEach((w) => {
|
|
7389
7389
|
w.data = m(w.data), o.set(w.data.id, ve(w.data)), i.set(w.data.id, ve(w.data)), w.children && w.children.length && v(w.children);
|
|
7390
|
-
}),
|
|
7391
|
-
return
|
|
7390
|
+
}), b)
|
|
7391
|
+
return y;
|
|
7392
7392
|
}
|
|
7393
7393
|
function h() {
|
|
7394
|
-
const
|
|
7395
|
-
return v(
|
|
7394
|
+
const y = ve(e.fieldsConfig);
|
|
7395
|
+
return v(y, !0);
|
|
7396
7396
|
}
|
|
7397
|
-
function
|
|
7398
|
-
return
|
|
7399
|
-
|
|
7400
|
-
},
|
|
7397
|
+
function F(y, b) {
|
|
7398
|
+
return y.reduce((w, B) => {
|
|
7399
|
+
b.set(B.data.id, B.data), B.children && B.children.length && F(B.children, b);
|
|
7400
|
+
}, b);
|
|
7401
7401
|
}
|
|
7402
7402
|
function I() {
|
|
7403
7403
|
u.value = h();
|
|
7404
|
-
const
|
|
7405
|
-
|
|
7406
|
-
const
|
|
7404
|
+
const y = /* @__PURE__ */ new Map([]);
|
|
7405
|
+
F(e.fieldsConfig, y);
|
|
7406
|
+
const b = {}, w = ve(e.modelValue) || [];
|
|
7407
7407
|
s.value = [], w.forEach((B) => {
|
|
7408
|
-
const
|
|
7409
|
-
|
|
7408
|
+
const S = y.get(B.id);
|
|
7409
|
+
S && (b[B.id] = {
|
|
7410
7410
|
...B.editor,
|
|
7411
|
-
id:
|
|
7412
|
-
code:
|
|
7413
|
-
labelCode:
|
|
7414
|
-
labelName:
|
|
7411
|
+
id: S.id,
|
|
7412
|
+
code: S.code,
|
|
7413
|
+
labelCode: S.path,
|
|
7414
|
+
labelName: S.name,
|
|
7415
7415
|
name: B.name,
|
|
7416
|
-
$type:
|
|
7417
|
-
$typeInfo:
|
|
7416
|
+
$type: S.$type,
|
|
7417
|
+
$typeInfo: S.type,
|
|
7418
7418
|
controlType: B.controlType
|
|
7419
|
-
}, delete
|
|
7420
|
-
}), r.value = !0, l.value = ve(
|
|
7419
|
+
}, delete b[B.id].type, s.value.push(b[B.id]), o.set(B.id, ve(b[B.id])));
|
|
7420
|
+
}), r.value = !0, l.value = ve(b), f.value = ve(s.value), typeof e.presetFields == "function" ? p = e.presetFields() : p = e.presetFields;
|
|
7421
7421
|
}
|
|
7422
7422
|
function V() {
|
|
7423
|
-
const
|
|
7424
|
-
s.value.forEach((
|
|
7425
|
-
const w = o.get(
|
|
7423
|
+
const y = [];
|
|
7424
|
+
s.value.forEach((b) => {
|
|
7425
|
+
const w = o.get(b.id);
|
|
7426
7426
|
if (w) {
|
|
7427
7427
|
const {
|
|
7428
7428
|
id: B,
|
|
7429
|
-
code:
|
|
7429
|
+
code: S,
|
|
7430
7430
|
labelCode: j,
|
|
7431
7431
|
name: H,
|
|
7432
7432
|
controlType: R,
|
|
@@ -7436,7 +7436,7 @@ function Yl(e, t, n, o) {
|
|
|
7436
7436
|
...O
|
|
7437
7437
|
} = w, N = {
|
|
7438
7438
|
id: B,
|
|
7439
|
-
code:
|
|
7439
|
+
code: S,
|
|
7440
7440
|
labelCode: j,
|
|
7441
7441
|
name: H,
|
|
7442
7442
|
controlType: R,
|
|
@@ -7444,16 +7444,16 @@ function Yl(e, t, n, o) {
|
|
|
7444
7444
|
$typeInfo: Z,
|
|
7445
7445
|
editor: O
|
|
7446
7446
|
};
|
|
7447
|
-
N.editor.type = R,
|
|
7447
|
+
N.editor.type = R, y.push(N);
|
|
7448
7448
|
}
|
|
7449
|
-
}), t.emit("update:modelValue",
|
|
7449
|
+
}), t.emit("update:modelValue", y), e.onFieldsChanged && typeof e.onFieldsChanged == "function" && e.onFieldsChanged(y), r.value = !1, n.value = null;
|
|
7450
7450
|
}
|
|
7451
7451
|
function k() {
|
|
7452
7452
|
s.value = ve(f.value), r.value = !1, n.value = null;
|
|
7453
7453
|
}
|
|
7454
|
-
function T(
|
|
7455
|
-
let
|
|
7456
|
-
return p.find((w) => w ===
|
|
7454
|
+
function T(y) {
|
|
7455
|
+
let b = "draggable-item--text-truncate";
|
|
7456
|
+
return p.find((w) => w === y.raw.id) && (b += " query-solution-selected-fields"), b;
|
|
7457
7457
|
}
|
|
7458
7458
|
function g() {
|
|
7459
7459
|
return r.value ? x(Zo, {
|
|
@@ -7468,9 +7468,9 @@ function Yl(e, t, n, o) {
|
|
|
7468
7468
|
selectedItemClass: T,
|
|
7469
7469
|
style: "height:auto;"
|
|
7470
7470
|
}, {
|
|
7471
|
-
text: (
|
|
7471
|
+
text: (y) => x("div", {
|
|
7472
7472
|
style: "margin: 10px 0px 10px 14px;"
|
|
7473
|
-
}, [
|
|
7473
|
+
}, [y.data.name.data, x("div", {
|
|
7474
7474
|
class: "checked-tip",
|
|
7475
7475
|
style: "display:none;"
|
|
7476
7476
|
}, null), x("span", {
|
|
@@ -7722,8 +7722,8 @@ function na(e, t, n, o, i) {
|
|
|
7722
7722
|
if (await s() && u.value) {
|
|
7723
7723
|
const h = !!t.slots.default;
|
|
7724
7724
|
if (r.value === "Modal") {
|
|
7725
|
-
const
|
|
7726
|
-
...
|
|
7725
|
+
const F = e.modalOptions, I = m == null ? void 0 : m.open({
|
|
7726
|
+
...F,
|
|
7727
7727
|
render: () => t.slots.default && t.slots.default()
|
|
7728
7728
|
});
|
|
7729
7729
|
c.value = I == null ? void 0 : I.modalRef;
|
|
@@ -7797,44 +7797,44 @@ function ia(e, t, n, o, i) {
|
|
|
7797
7797
|
"f-state-focus": d.value,
|
|
7798
7798
|
"input-group--has-clear": e.enableClear && u.value
|
|
7799
7799
|
}));
|
|
7800
|
-
function S
|
|
7801
|
-
n.value =
|
|
7800
|
+
function F(S, j = !0) {
|
|
7801
|
+
n.value = S, j && (t.emit("change", S), t.emit("update:modelValue", S));
|
|
7802
7802
|
}
|
|
7803
|
-
function I(
|
|
7804
|
-
f.value = !1, S
|
|
7803
|
+
function I(S) {
|
|
7804
|
+
f.value = !1, F(S, !0);
|
|
7805
7805
|
}
|
|
7806
7806
|
le(
|
|
7807
7807
|
() => e.modelValue,
|
|
7808
|
-
(
|
|
7809
|
-
n.value =
|
|
7808
|
+
(S) => {
|
|
7809
|
+
n.value = S;
|
|
7810
7810
|
}
|
|
7811
7811
|
);
|
|
7812
|
-
function V(
|
|
7813
|
-
a.value = !1, t.emit("blur",
|
|
7812
|
+
function V(S) {
|
|
7813
|
+
a.value = !1, t.emit("blur", S), S.stopPropagation();
|
|
7814
7814
|
}
|
|
7815
|
-
function k(
|
|
7816
|
-
t.emit("click",
|
|
7815
|
+
function k(S) {
|
|
7816
|
+
t.emit("click", S), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && i.togglePopup();
|
|
7817
7817
|
}
|
|
7818
|
-
function T(
|
|
7819
|
-
!e.disable && !e.readonly && (a.value = !0, p.value || (t.emit("focus",
|
|
7818
|
+
function T(S) {
|
|
7819
|
+
!e.disable && !e.readonly && (a.value = !0, p.value || (t.emit("focus", S), l.value && !f.value && i.popup()));
|
|
7820
7820
|
}
|
|
7821
|
-
function g(
|
|
7822
|
-
t.emit("input",
|
|
7823
|
-
const j =
|
|
7824
|
-
o.value = j, n.value !== j &&
|
|
7821
|
+
function g(S) {
|
|
7822
|
+
t.emit("input", S);
|
|
7823
|
+
const j = S.target.value;
|
|
7824
|
+
o.value = j, n.value !== j && F(j, e.updateOn === "change"), r.value && !f.value && i.popup();
|
|
7825
7825
|
}
|
|
7826
|
-
function
|
|
7827
|
-
|
|
7826
|
+
function y(S) {
|
|
7827
|
+
S.target.tagName !== "INPUT" && S.preventDefault(), S.stopPropagation();
|
|
7828
7828
|
}
|
|
7829
|
-
function
|
|
7830
|
-
t.emit("keydown",
|
|
7829
|
+
function b(S) {
|
|
7830
|
+
t.emit("keydown", S);
|
|
7831
7831
|
}
|
|
7832
|
-
function w(
|
|
7833
|
-
|
|
7832
|
+
function w(S) {
|
|
7833
|
+
S.key === "Enter" && (r.value || l.value) && i.hidePopup(), t.emit("keyup", S);
|
|
7834
7834
|
}
|
|
7835
|
-
function B(
|
|
7836
|
-
const j =
|
|
7837
|
-
|
|
7835
|
+
function B(S) {
|
|
7836
|
+
const j = S.target.value;
|
|
7837
|
+
S.stopPropagation(), F(j);
|
|
7838
7838
|
}
|
|
7839
7839
|
return {
|
|
7840
7840
|
hasFocusedTextBox: d,
|
|
@@ -7844,15 +7844,15 @@ function ia(e, t, n, o, i) {
|
|
|
7844
7844
|
textBoxTitle: m,
|
|
7845
7845
|
inputGroupClass: h,
|
|
7846
7846
|
hasClearClass: u,
|
|
7847
|
-
changeTextBoxValue:
|
|
7847
|
+
changeTextBoxValue: F,
|
|
7848
7848
|
commitValue: I,
|
|
7849
7849
|
onBlurTextBox: V,
|
|
7850
7850
|
onClickTextBox: k,
|
|
7851
7851
|
onFocusTextBox: T,
|
|
7852
7852
|
onInput: g,
|
|
7853
|
-
onKeyDownTextBox:
|
|
7853
|
+
onKeyDownTextBox: b,
|
|
7854
7854
|
onKeyUpTextBox: w,
|
|
7855
|
-
onMouseDownTextBox:
|
|
7855
|
+
onMouseDownTextBox: y,
|
|
7856
7856
|
onTextBoxValueChange: B
|
|
7857
7857
|
};
|
|
7858
7858
|
}
|
|
@@ -7914,24 +7914,24 @@ function la(e, t, n) {
|
|
|
7914
7914
|
onMouseDownTextBox: d,
|
|
7915
7915
|
onTextBoxValueChange: v
|
|
7916
7916
|
} = n, h = C(e.id), {
|
|
7917
|
-
uuid:
|
|
7917
|
+
uuid: F
|
|
7918
7918
|
} = St(), I = E(() => ({
|
|
7919
7919
|
"border-top-right-radius": "6px",
|
|
7920
7920
|
"border-bottom-right-radius": "6px"
|
|
7921
7921
|
}));
|
|
7922
7922
|
De(() => {
|
|
7923
|
-
var
|
|
7924
|
-
e.selectOnCreated && ((
|
|
7923
|
+
var y, b;
|
|
7924
|
+
e.selectOnCreated && ((y = o.value) == null || y.select()), e.focusOnCreated && ((b = o.value) == null || b.focus({
|
|
7925
7925
|
preventScroll: !0
|
|
7926
|
-
})), h.value || (h.value = "button-edit_" +
|
|
7926
|
+
})), h.value || (h.value = "button-edit_" + F(8)), h.value = h.value + "-textbox";
|
|
7927
7927
|
});
|
|
7928
|
-
const V = C(!1), k = (
|
|
7929
|
-
|
|
7930
|
-
}, T = (
|
|
7931
|
-
|
|
7928
|
+
const V = C(!1), k = (y) => {
|
|
7929
|
+
y.preventDefault(), V.value = !0;
|
|
7930
|
+
}, T = (y) => {
|
|
7931
|
+
y.preventDefault(), V.value = !1, c(y);
|
|
7932
7932
|
};
|
|
7933
|
-
function g(
|
|
7934
|
-
V.value || c(
|
|
7933
|
+
function g(y) {
|
|
7934
|
+
V.value || c(y);
|
|
7935
7935
|
}
|
|
7936
7936
|
return () => x("input", {
|
|
7937
7937
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -7979,7 +7979,7 @@ function aa(e, t, n) {
|
|
|
7979
7979
|
o.value = d;
|
|
7980
7980
|
});
|
|
7981
7981
|
const p = C(!e.disable && !e.readonly);
|
|
7982
|
-
le([() => e.disable, () => e.readonly], ([d, v], [h,
|
|
7982
|
+
le([() => e.disable, () => e.readonly], ([d, v], [h, F]) => {
|
|
7983
7983
|
p.value = !d && !v;
|
|
7984
7984
|
});
|
|
7985
7985
|
function a(d) {
|
|
@@ -8085,7 +8085,7 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8085
8085
|
commitValue: d,
|
|
8086
8086
|
inputGroupClass: v
|
|
8087
8087
|
} = p, h = oa(e, t, i, a, c, p), {
|
|
8088
|
-
onMouseEnterTextBox:
|
|
8088
|
+
onMouseEnterTextBox: F,
|
|
8089
8089
|
onMouseLeaveTextBox: I
|
|
8090
8090
|
} = h, V = C(!1), k = E(() => {
|
|
8091
8091
|
const z = {
|
|
@@ -8100,31 +8100,31 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8100
8100
|
paddingLeft: "3px",
|
|
8101
8101
|
backgroundColor: "#fff"
|
|
8102
8102
|
}));
|
|
8103
|
-
function
|
|
8103
|
+
function y() {
|
|
8104
8104
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
8105
8105
|
return 0;
|
|
8106
8106
|
let z = 0;
|
|
8107
8107
|
const Z = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
8108
8108
|
return Z && Z.length && (z = Z.map((O) => O.offsetTop).filter((O) => O > 20).length), z;
|
|
8109
8109
|
}
|
|
8110
|
-
const
|
|
8110
|
+
const b = C(y());
|
|
8111
8111
|
Gn(() => {
|
|
8112
|
-
|
|
8112
|
+
b.value = y();
|
|
8113
8113
|
});
|
|
8114
8114
|
function w() {
|
|
8115
|
-
return e.multiSelect && e.inputType === "tag" ? () => x(Ve, null, [aa(e, i, p)(), !!
|
|
8115
|
+
return e.multiSelect && e.inputType === "tag" ? () => x(Ve, null, [aa(e, i, p)(), !!b.value && x("div", {
|
|
8116
8116
|
class: "d-flex flex-row mr-2 more-tags",
|
|
8117
8117
|
"more-tags": !0
|
|
8118
8118
|
}, [x("span", {
|
|
8119
8119
|
class: "multi--more-text"
|
|
8120
|
-
}, [Te("+"),
|
|
8120
|
+
}, [Te("+"), b.value])])]) : la(e, i, p);
|
|
8121
8121
|
}
|
|
8122
8122
|
let B = w();
|
|
8123
8123
|
le([() => e.multiSelect, () => e.inputType], () => {
|
|
8124
8124
|
B = w();
|
|
8125
8125
|
});
|
|
8126
8126
|
const {
|
|
8127
|
-
renderButtonGroup:
|
|
8127
|
+
renderButtonGroup: S,
|
|
8128
8128
|
buttonHandleElement: j
|
|
8129
8129
|
} = sa(e, t, m, h), H = ua(e, t, r), R = C(l.value), W = {
|
|
8130
8130
|
displayText: c,
|
|
@@ -8183,9 +8183,9 @@ const ca = /* @__PURE__ */ Se({
|
|
|
8183
8183
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
8184
8184
|
class: v.value,
|
|
8185
8185
|
style: g.value,
|
|
8186
|
-
onMouseenter:
|
|
8186
|
+
onMouseenter: F,
|
|
8187
8187
|
onMouseleave: I
|
|
8188
|
-
}, [(Z = (z = t.slots).precontent) == null ? void 0 : Z.call(z), B(),
|
|
8188
|
+
}, [(Z = (z = t.slots).precontent) == null ? void 0 : Z.call(z), B(), S()])]), R.value && H()]);
|
|
8189
8189
|
};
|
|
8190
8190
|
}
|
|
8191
8191
|
}), da = /* @__PURE__ */ Se({
|