@farris/ui-vue 1.6.5-beta.8 → 1.6.6
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 +335 -335
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +6 -6
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +139 -134
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/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 +7 -6
- 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 +3407 -3338
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +5 -5
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +173 -172
- 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 +737 -732
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +728 -706
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +670 -665
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +205 -205
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/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/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +482 -483
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +424 -424
- 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 +161 -161
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +322 -316
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +541 -534
- package/components/order/index.umd.cjs +2 -2
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +216 -216
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +489 -467
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/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 +875 -873
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +504 -496
- 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 +212 -212
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +382 -377
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/tabs/index.esm.js +584 -582
- 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 +220 -220
- 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 +381 -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 +15445 -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 +22331 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1099 -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 +4685 -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 +6989 -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 +13299 -13177
- package/farris.all.umd.cjs +25 -25
- package/locales/data-grid/ui/en.json +4 -3
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +9 -7
- package/locales/designer/zh-CHS.json +4 -2
- package/locales/designer/zh-CHT.json +4 -2
- package/locales/ui/en.json +9 -7
- package/locales/ui/zh-CHS.json +4 -2
- package/locales/ui/zh-CHT.json +4 -2
- 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
|
@@ -91,20 +91,20 @@ import { getHierarchyRow as xa, useIdentify as Fa, useGroupData as Ea, useFilter
|
|
|
91
91
|
function hn(e, t) {
|
|
92
92
|
let n;
|
|
93
93
|
function o(i) {
|
|
94
|
-
const { properties: c, title: r, ignore: f } = i, y = f && Array.isArray(f),
|
|
94
|
+
const { properties: c, title: r, ignore: f } = i, y = f && Array.isArray(f), w = Object.keys(c).reduce((x, E) => ((!y || !f.find((L) => L === E)) && (x[E] = c[E].type === "object" && c[E].properties ? o(c[E]) : se(c[E].default)), x), {});
|
|
95
95
|
if (r && (!y || !f.find((x) => x === "id"))) {
|
|
96
96
|
const x = r.toLowerCase().replace(/-/g, "_");
|
|
97
|
-
|
|
97
|
+
w.id = `${x}_${Math.random().toString().slice(2, 6)}`;
|
|
98
98
|
}
|
|
99
|
-
return
|
|
99
|
+
return w;
|
|
100
100
|
}
|
|
101
101
|
function a(i) {
|
|
102
102
|
const { properties: c, title: r, required: f } = i;
|
|
103
103
|
if (f && Array.isArray(f)) {
|
|
104
|
-
const y = f.reduce((
|
|
105
|
-
if (r && f.find((
|
|
106
|
-
const
|
|
107
|
-
y.id = `${
|
|
104
|
+
const y = f.reduce((w, x) => (w[x] = c[x].type === "object" && c[x].properties ? o(c[x]) : se(c[x].default), w), {});
|
|
105
|
+
if (r && f.find((w) => w === "id")) {
|
|
106
|
+
const w = r.toLowerCase().replace(/-/g, "_");
|
|
107
|
+
y.id = `${w}_${Math.random().toString().slice(2, 6)}`;
|
|
108
108
|
}
|
|
109
109
|
return y;
|
|
110
110
|
}
|
|
@@ -116,23 +116,23 @@ function hn(e, t) {
|
|
|
116
116
|
const f = e[i];
|
|
117
117
|
if (f) {
|
|
118
118
|
let y = a(f);
|
|
119
|
-
const
|
|
120
|
-
return y =
|
|
119
|
+
const w = t[i];
|
|
120
|
+
return y = w ? w({ getSchemaByType: l }, y, c, r) : y, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(y), y;
|
|
121
121
|
}
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function d(i, c) {
|
|
125
125
|
const r = o(c);
|
|
126
126
|
return Object.keys(r).reduce((f, y) => (Object.prototype.hasOwnProperty.call(i, y) && (f[y] && nn(f[y]) && nn(i[y] || !i[y]) ? Object.assign(f[y], i[y] || {}) : f[y] = i[y]), f), r), r;
|
|
127
127
|
}
|
|
128
128
|
function m(i, c) {
|
|
129
129
|
return Object.keys(i).filter((f) => i[f] != null).reduce((f, y) => {
|
|
130
130
|
if (c.has(y)) {
|
|
131
|
-
const
|
|
132
|
-
if (typeof
|
|
133
|
-
f[
|
|
131
|
+
const w = c.get(y);
|
|
132
|
+
if (typeof w == "string")
|
|
133
|
+
f[w] = i[y];
|
|
134
134
|
else {
|
|
135
|
-
const x =
|
|
135
|
+
const x = w(y, i[y], i);
|
|
136
136
|
Object.assign(f, x);
|
|
137
137
|
}
|
|
138
138
|
} else
|
|
@@ -141,7 +141,7 @@ function hn(e, t) {
|
|
|
141
141
|
}, {});
|
|
142
142
|
}
|
|
143
143
|
function p(i, c, r = /* @__PURE__ */ new Map()) {
|
|
144
|
-
const f =
|
|
144
|
+
const f = d(i, c);
|
|
145
145
|
return m(f, r);
|
|
146
146
|
}
|
|
147
147
|
function h(i) {
|
|
@@ -151,9 +151,9 @@ function hn(e, t) {
|
|
|
151
151
|
const f = e[c];
|
|
152
152
|
if (!f)
|
|
153
153
|
return i;
|
|
154
|
-
const y =
|
|
155
|
-
if (
|
|
156
|
-
const x = e[
|
|
154
|
+
const y = d(i, f), w = ((r = i.editor) == null ? void 0 : r.type) || "";
|
|
155
|
+
if (w) {
|
|
156
|
+
const x = e[w], E = d(i.editor, x);
|
|
157
157
|
y.editor = E;
|
|
158
158
|
}
|
|
159
159
|
return y;
|
|
@@ -204,7 +204,7 @@ function cr(e = {}) {
|
|
|
204
204
|
return i.push(...r), i;
|
|
205
205
|
}, []);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function d(h, v) {
|
|
208
208
|
if (o.has(h.operator)) {
|
|
209
209
|
const i = o.get(h.operator);
|
|
210
210
|
return i && i(h.target, h.param, h.value, v) || !1;
|
|
@@ -212,7 +212,7 @@ function cr(e = {}) {
|
|
|
212
212
|
return !1;
|
|
213
213
|
}
|
|
214
214
|
function m(h, v) {
|
|
215
|
-
return l(h).reduce((r, f) => r &&
|
|
215
|
+
return l(h).reduce((r, f) => r && d(f, v), !0);
|
|
216
216
|
}
|
|
217
217
|
function p(h, v) {
|
|
218
218
|
const i = Object.keys(h), c = i.includes("allOf"), r = i.includes("anyOf"), f = c || r, x = (f ? h[f ? c ? "allOf" : "anyOf" : "allOf"] : [h]).map((L) => m(L, v));
|
|
@@ -509,74 +509,74 @@ function bn(e, t, n) {
|
|
|
509
509
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
510
510
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
511
511
|
]), l = cr();
|
|
512
|
-
function
|
|
512
|
+
function d(f, y) {
|
|
513
513
|
return () => l.parseValueSchema(f, y);
|
|
514
514
|
}
|
|
515
|
-
function m(f, y,
|
|
516
|
-
return f.includes("visible") && y.visible !== void 0 ? typeof y.visible == "boolean" ? () => !!y.visible : y.visible === void 0 ? !0 :
|
|
515
|
+
function m(f, y, w) {
|
|
516
|
+
return f.includes("visible") && y.visible !== void 0 ? typeof y.visible == "boolean" ? () => !!y.visible : y.visible === void 0 ? !0 : d(y.visible, w) : () => !0;
|
|
517
517
|
}
|
|
518
|
-
function p(f, y,
|
|
519
|
-
return f.includes("readonly") && y.readonly !== void 0 ? typeof y.readonly == "boolean" ? () => !!y.readonly :
|
|
518
|
+
function p(f, y, w) {
|
|
519
|
+
return f.includes("readonly") && y.readonly !== void 0 ? typeof y.readonly == "boolean" ? () => !!y.readonly : d(y.readonly, w) : () => !1;
|
|
520
520
|
}
|
|
521
521
|
function h(f, y) {
|
|
522
|
-
const
|
|
523
|
-
return typeof
|
|
522
|
+
const w = f.$converter || y;
|
|
523
|
+
return typeof w == "string" && w && o.has(w) ? o.get(w) || null : w || null;
|
|
524
524
|
}
|
|
525
|
-
function v(f, y,
|
|
525
|
+
function v(f, y, w, x, E, L = "", g = "") {
|
|
526
526
|
return Object.keys(f).map((M) => {
|
|
527
|
-
const B = C(1),
|
|
527
|
+
const B = C(1), S = M, T = f[M], b = Object.keys(T), u = T.title, F = T.type, k = a.get(F) || { type: "input-group", enableClear: !1 }, O = T.editor ? Object.assign({}, k, T.editor) : Object.assign({}, k), j = m(b, T, y), P = p(b, T, y);
|
|
528
528
|
O.readonly = O.readonly === void 0 ? P() : O.readonly;
|
|
529
|
-
const A = T.type === "cascade" ? v(T.properties, y,
|
|
529
|
+
const A = T.type === "cascade" ? v(T.properties, y, w, x, E, L, g) : [], I = !0;
|
|
530
530
|
let V = h(T, g);
|
|
531
531
|
const J = H({
|
|
532
532
|
get() {
|
|
533
533
|
if (B.value) {
|
|
534
|
-
if (["class", "style"].find((xe) => xe ===
|
|
535
|
-
return V.convertFrom(
|
|
536
|
-
const he =
|
|
534
|
+
if (["class", "style"].find((xe) => xe === S) && !V && (V = o.get("/converter/appearance.converter") || null), V && V.convertFrom)
|
|
535
|
+
return V.convertFrom(w, M, E, L);
|
|
536
|
+
const he = w[M];
|
|
537
537
|
return Object.prototype.hasOwnProperty.call(T, "defaultValue") && (he === void 0 || typeof he == "string" && he === "") ? T.type === "boolean" ? T.defaultValue : T.defaultValue || "" : he;
|
|
538
538
|
}
|
|
539
539
|
return null;
|
|
540
540
|
},
|
|
541
541
|
set(he) {
|
|
542
|
-
B.value += 1, V && V.convertTo ? (V.convertTo(x, M, he, E, L), V.convertTo(
|
|
542
|
+
B.value += 1, V && V.convertTo ? (V.convertTo(x, M, he, E, L), V.convertTo(w, M, he, E, L)) : (x[M] = he, w[M] = he);
|
|
543
543
|
}
|
|
544
|
-
}), { refreshPanelAfterChanged: q, description: $, isExpand: ie, parentPropertyID: ce } = T, ne = { propertyID:
|
|
545
|
-
return y[
|
|
544
|
+
}), { refreshPanelAfterChanged: q, description: $, isExpand: ie, parentPropertyID: ce } = T, ne = { propertyID: S, propertyName: u, propertyType: F, propertyValue: J, editor: O, visible: j, readonly: P, cascadeConfig: A, hideCascadeTitle: I, refreshPanelAfterChanged: q, description: $, isExpand: ie, parentPropertyID: ce };
|
|
545
|
+
return y[S] = ne, ne;
|
|
546
546
|
});
|
|
547
547
|
}
|
|
548
|
-
function i(f, y,
|
|
548
|
+
function i(f, y, w = {}) {
|
|
549
549
|
const x = {}, E = e[f];
|
|
550
550
|
return E && E.categories ? Object.keys(E.categories).map((g) => {
|
|
551
|
-
const N = E.categories[g], M = N == null ? void 0 : N.title, B = v(N.properties || {}, x, {},
|
|
551
|
+
const N = E.categories[g], M = N == null ? void 0 : N.title, B = v(N.properties || {}, x, {}, w, y);
|
|
552
552
|
return { categoryId: g, categoryName: M, properties: B };
|
|
553
553
|
}) : [];
|
|
554
554
|
}
|
|
555
|
-
function c(f, y,
|
|
556
|
-
const L = y.$ref.schema, g = y.$ref.converter, N =
|
|
555
|
+
function c(f, y, w, x, E = "") {
|
|
556
|
+
const L = y.$ref.schema, g = y.$ref.converter, N = w[L], M = N.type, B = n(N), S = {}, T = e[M];
|
|
557
557
|
if (T && T.categories) {
|
|
558
|
-
const b = T.categories[f],
|
|
558
|
+
const b = T.categories[f], u = b == null ? void 0 : b.title;
|
|
559
559
|
g && Object.keys(b.properties).forEach((O) => {
|
|
560
560
|
b.properties[O].$converter = g;
|
|
561
561
|
});
|
|
562
|
-
const F = (b == null ? void 0 : b.properties) || {}, k = v(F,
|
|
563
|
-
return { categoryId: f, categoryName:
|
|
562
|
+
const F = (b == null ? void 0 : b.properties) || {}, k = v(F, S, B, N, x, E);
|
|
563
|
+
return { categoryId: f, categoryName: u, properties: k };
|
|
564
564
|
}
|
|
565
565
|
return { categoryId: f, categoryName: "", properties: [] };
|
|
566
566
|
}
|
|
567
|
-
function r(f, y,
|
|
567
|
+
function r(f, y, w, x, E) {
|
|
568
568
|
const L = f.type, g = n(f), N = {};
|
|
569
569
|
let M = E || e[L];
|
|
570
|
-
if (M && Object.keys(M).length === 0 &&
|
|
570
|
+
if (M && Object.keys(M).length === 0 && w && w.getPropConfig && (M = w.getPropConfig(x)), M && M.categories) {
|
|
571
571
|
const B = [];
|
|
572
|
-
return Object.keys(M.categories).map((
|
|
573
|
-
const T = M.categories[
|
|
572
|
+
return Object.keys(M.categories).map((S) => {
|
|
573
|
+
const T = M.categories[S];
|
|
574
574
|
if (T.$ref) {
|
|
575
|
-
B.push(c(
|
|
575
|
+
B.push(c(S, T, f, y, x));
|
|
576
576
|
return;
|
|
577
577
|
}
|
|
578
|
-
const b = T == null ? void 0 : T.title,
|
|
579
|
-
B.push({ categoryId:
|
|
578
|
+
const b = T == null ? void 0 : T.title, u = T == null ? void 0 : T.tabId, F = T == null ? void 0 : T.tabName, k = T == null ? void 0 : T.hide, O = T == null ? void 0 : T.hideTitle, j = v(T.properties || {}, N, g, f, y, x, T.$converter), { setPropertyRelates: P } = T, A = T == null ? void 0 : T.parentPropertyID;
|
|
579
|
+
B.push({ categoryId: S, categoryName: b, tabId: u, tabName: F, hide: k, properties: j, hideTitle: O, setPropertyRelates: P, parentPropertyID: A });
|
|
580
580
|
}), B;
|
|
581
581
|
}
|
|
582
582
|
return [];
|
|
@@ -591,11 +591,11 @@ const Cn = {}, wn = {};
|
|
|
591
591
|
bn(Cn, wn, ir);
|
|
592
592
|
const Sn = {}, xn = {}, { getSchemaByType: qc, resolveSchemaWithDefaultValue: Nr, resolveSchemaToProps: Uc, mappingSchemaToProps: Gc, setDesignerContext: Wc } = hn(Sn, xn), Fn = {}, En = {};
|
|
593
593
|
bn(Fn, En, Nr);
|
|
594
|
-
function Ft(e, t, n = /* @__PURE__ */ new Map(), o = (
|
|
595
|
-
return gn[t.title] = t, yn[t.title] = o, Cn[t.title] = a, wn[t.title] = l, Sn[t.title] = t, xn[t.title] = o, Fn[t.title] = a, En[t.title] = l, (
|
|
594
|
+
function Ft(e, t, n = /* @__PURE__ */ new Map(), o = (d, m, p, h) => m, a = {}, l = (d) => d) {
|
|
595
|
+
return gn[t.title] = t, yn[t.title] = o, Cn[t.title] = a, wn[t.title] = l, Sn[t.title] = t, xn[t.title] = o, Fn[t.title] = a, En[t.title] = l, (d = {}, m = !0) => {
|
|
596
596
|
if (!m)
|
|
597
|
-
return sr(
|
|
598
|
-
const p = lr(
|
|
597
|
+
return sr(d, n);
|
|
598
|
+
const p = lr(d, t, n), h = Object.keys(e).reduce((v, i) => (v[i] = e[i].default, v), {});
|
|
599
599
|
return Object.assign(h, p);
|
|
600
600
|
};
|
|
601
601
|
}
|
|
@@ -1035,8 +1035,8 @@ function Mn() {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
];
|
|
1037
1037
|
let l = -1;
|
|
1038
|
-
const
|
|
1039
|
-
return
|
|
1038
|
+
const d = a.findIndex((m) => n === m.controllerId);
|
|
1039
|
+
return d !== -1 && (l = a[d].commands.findIndex((m) => o === m.handlerName)), l !== -1;
|
|
1040
1040
|
}
|
|
1041
1041
|
function t(n, o, a) {
|
|
1042
1042
|
const l = e(n.controllerName.id, o.handlerName);
|
|
@@ -1067,12 +1067,12 @@ function Xr(e, t) {
|
|
|
1067
1067
|
let r = i.id;
|
|
1068
1068
|
const f = c == null ? void 0 : c.contents;
|
|
1069
1069
|
if ((c == null ? void 0 : c.type) === "splitter" && f && f.length === 2) {
|
|
1070
|
-
const
|
|
1071
|
-
i.id === ((y = f[0]) == null ? void 0 : y.id) ? r =
|
|
1070
|
+
const w = c.direction !== "column";
|
|
1071
|
+
i.id === ((y = f[0]) == null ? void 0 : y.id) ? r = w ? "左侧区域" : "上方区域" : r = w ? "右侧区域" : "下方区域";
|
|
1072
1072
|
}
|
|
1073
1073
|
return r;
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function d(i) {
|
|
1076
1076
|
if (i.isLikeCardContainer)
|
|
1077
1077
|
return "区块";
|
|
1078
1078
|
const c = i.appearance && i.appearance.class || "", r = c.split(" ");
|
|
@@ -1101,7 +1101,7 @@ function Xr(e, t) {
|
|
|
1101
1101
|
return r.trim();
|
|
1102
1102
|
switch (i.type) {
|
|
1103
1103
|
case "content-container":
|
|
1104
|
-
return
|
|
1104
|
+
return d(i);
|
|
1105
1105
|
case "splitter-pane":
|
|
1106
1106
|
return l(i, c);
|
|
1107
1107
|
case "component":
|
|
@@ -1129,8 +1129,8 @@ function Xr(e, t) {
|
|
|
1129
1129
|
function Jr(e, t) {
|
|
1130
1130
|
const { getIcon: n, getTitle: o } = t;
|
|
1131
1131
|
function a(v, i, c, r, f) {
|
|
1132
|
-
var
|
|
1133
|
-
const y = (
|
|
1132
|
+
var w;
|
|
1133
|
+
const y = (w = e.data.module) == null ? void 0 : w.components.find((x) => x.id === v.component);
|
|
1134
1134
|
y && l([y], i, c, r, f);
|
|
1135
1135
|
}
|
|
1136
1136
|
function l(v, i, c, r, f) {
|
|
@@ -1139,7 +1139,7 @@ function Jr(e, t) {
|
|
|
1139
1139
|
a(y, i, c, r, f);
|
|
1140
1140
|
return;
|
|
1141
1141
|
}
|
|
1142
|
-
const
|
|
1142
|
+
const w = {
|
|
1143
1143
|
originalId: y.id,
|
|
1144
1144
|
layer: c,
|
|
1145
1145
|
originalParent: r == null ? void 0 : r.id,
|
|
@@ -1149,16 +1149,16 @@ function Jr(e, t) {
|
|
|
1149
1149
|
controlIcon: n(y),
|
|
1150
1150
|
rawSchema: y
|
|
1151
1151
|
};
|
|
1152
|
-
i.push(se(
|
|
1152
|
+
i.push(se(w)), (y.contents || y.buttons) && l(y.contents || y.buttons, i, c + 1, y, f);
|
|
1153
1153
|
}), i;
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1156
|
-
const i = [], c = v.find((
|
|
1157
|
-
v = v.filter((
|
|
1155
|
+
function d(v) {
|
|
1156
|
+
const i = [], c = v.find((w) => w.layer === 0);
|
|
1157
|
+
v = v.filter((w) => w.layer !== 0), i.push(c);
|
|
1158
1158
|
let r = c.originalId, f = 0, y = 1e3;
|
|
1159
1159
|
for (; v.length !== 0 || y === 0; ) {
|
|
1160
|
-
const
|
|
1161
|
-
|
|
1160
|
+
const w = v.find((x) => x.originalParent === r);
|
|
1161
|
+
w ? (i.push(w), r = w.originalId, v = v.filter((x) => x.originalId !== r), f = 0) : (f -= 1, r = i.slice(f)[0].originalId), y -= 1;
|
|
1162
1162
|
}
|
|
1163
1163
|
return i;
|
|
1164
1164
|
}
|
|
@@ -1193,28 +1193,28 @@ function Jr(e, t) {
|
|
|
1193
1193
|
const i = [];
|
|
1194
1194
|
v.value.forEach((y) => {
|
|
1195
1195
|
if (y) {
|
|
1196
|
-
const
|
|
1197
|
-
|
|
1198
|
-
const L = l(
|
|
1196
|
+
const w = [];
|
|
1197
|
+
w.push(y);
|
|
1198
|
+
const L = l(w, [], 1, null, y.id);
|
|
1199
1199
|
i.push(L);
|
|
1200
1200
|
}
|
|
1201
1201
|
});
|
|
1202
|
-
const c = p(i), r =
|
|
1202
|
+
const c = p(i), r = d(c);
|
|
1203
1203
|
return m(r);
|
|
1204
1204
|
}
|
|
1205
1205
|
return { getData: h };
|
|
1206
1206
|
}
|
|
1207
1207
|
function Et(e) {
|
|
1208
1208
|
const t = we("sourceOutlineData") || [], n = C(), o = C(!1), a = C([]), l = C();
|
|
1209
|
-
function
|
|
1209
|
+
function d(w, x, E, L) {
|
|
1210
1210
|
var g, N, M, B;
|
|
1211
1211
|
return {
|
|
1212
1212
|
id: Ut().guid(),
|
|
1213
1213
|
source: L || {
|
|
1214
|
-
formId: (g =
|
|
1215
|
-
formCode: (N =
|
|
1216
|
-
componentId: (M =
|
|
1217
|
-
externalContainerId: (B =
|
|
1214
|
+
formId: (g = w.sourceCommunication) == null ? void 0 : g.formId,
|
|
1215
|
+
formCode: (N = w.sourceCommunication) == null ? void 0 : N.formCode,
|
|
1216
|
+
componentId: (M = w.sourceCommunication) == null ? void 0 : M.componentId,
|
|
1217
|
+
externalContainerId: (B = w.sourceCommunication) == null ? void 0 : B.externalContainerId,
|
|
1218
1218
|
event: x || "onCommunication"
|
|
1219
1219
|
},
|
|
1220
1220
|
target: {
|
|
@@ -1227,9 +1227,9 @@ function Et(e) {
|
|
|
1227
1227
|
paramMappings: []
|
|
1228
1228
|
};
|
|
1229
1229
|
}
|
|
1230
|
-
function m(
|
|
1230
|
+
function m(w) {
|
|
1231
1231
|
var x, E;
|
|
1232
|
-
(x =
|
|
1232
|
+
(x = w == null ? void 0 : w.communication) != null && x.length && ((E = w == null ? void 0 : w.communication) == null || E.map((L) => {
|
|
1233
1233
|
var g, N;
|
|
1234
1234
|
if (L != null && L.id && !((g = L == null ? void 0 : L.source) != null && g.componentId)) {
|
|
1235
1235
|
const M = (N = e.getFormSchema().module.communications) == null ? void 0 : N.find((B) => B.id === (L == null ? void 0 : L.id));
|
|
@@ -1237,44 +1237,44 @@ function Et(e) {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
}));
|
|
1239
1239
|
}
|
|
1240
|
-
function p(
|
|
1240
|
+
function p(w) {
|
|
1241
1241
|
const x = e.getFormSchema(), { communications: E } = x.module;
|
|
1242
1242
|
E || (x.module.communications = []);
|
|
1243
|
-
const L = x.module.communications.findIndex((g) => g.id ===
|
|
1244
|
-
L === -1 ? x.module.communications.push(
|
|
1243
|
+
const L = x.module.communications.findIndex((g) => g.id === w.id);
|
|
1244
|
+
L === -1 ? x.module.communications.push(w) : Object.assign(x.module.communications[L], w);
|
|
1245
1245
|
}
|
|
1246
|
-
function h(
|
|
1246
|
+
function h(w) {
|
|
1247
1247
|
var x;
|
|
1248
|
-
if ((x =
|
|
1248
|
+
if ((x = w == null ? void 0 : w.communication) != null && x.length) {
|
|
1249
1249
|
const E = e.getFormSchema();
|
|
1250
|
-
|
|
1250
|
+
w.communication.map((L) => {
|
|
1251
1251
|
E.module.communications && L && (E.module.communications = E.module.communications.filter((g) => g.id !== L.id));
|
|
1252
|
-
}),
|
|
1252
|
+
}), w.communication = [];
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
|
-
function v(
|
|
1255
|
+
function v(w) {
|
|
1256
1256
|
var E;
|
|
1257
1257
|
const x = e.getFormSchema();
|
|
1258
|
-
|
|
1258
|
+
w && ((E = x.module.communications) != null && E.length) && (x.module.communications = x.module.communications.filter((L) => L.id !== w));
|
|
1259
1259
|
}
|
|
1260
|
-
function i(
|
|
1261
|
-
const L = Xr(
|
|
1260
|
+
function i(w, x, E) {
|
|
1261
|
+
const L = Xr(w, x), g = e.externalFormSchema.get(E);
|
|
1262
1262
|
if (g != null && g.content) {
|
|
1263
1263
|
const N = { data: g.content }, { getData: M } = Jr(N, L);
|
|
1264
1264
|
return M();
|
|
1265
1265
|
}
|
|
1266
1266
|
return [];
|
|
1267
1267
|
}
|
|
1268
|
-
function c(
|
|
1268
|
+
function c(w) {
|
|
1269
1269
|
var E;
|
|
1270
|
-
if (!((E =
|
|
1270
|
+
if (!((E = w == null ? void 0 : w.source) != null && E.componentId)) {
|
|
1271
1271
|
o.value = !1;
|
|
1272
1272
|
return;
|
|
1273
1273
|
}
|
|
1274
|
-
const x = t.find((L) => L.originalId ===
|
|
1275
|
-
x ? (o.value = !1, n.value = x) : (o.value = !0, n.value = { id:
|
|
1274
|
+
const x = t.find((L) => L.originalId === w.source.componentId);
|
|
1275
|
+
x ? (o.value = !1, n.value = x) : (o.value = !0, n.value = { id: w.source.componentId });
|
|
1276
1276
|
}
|
|
1277
|
-
function r(
|
|
1277
|
+
function r(w) {
|
|
1278
1278
|
var g, N, M, B;
|
|
1279
1279
|
a.value = [];
|
|
1280
1280
|
const x = (g = n.value) == null ? void 0 : g.rawSchema;
|
|
@@ -1283,31 +1283,31 @@ function Et(e) {
|
|
|
1283
1283
|
return;
|
|
1284
1284
|
}
|
|
1285
1285
|
const E = x.type === "form-group" && x.editor ? x.editor.type : x.type, L = (N = fn[E]) == null ? void 0 : N.events;
|
|
1286
|
-
L && Object.keys(L).forEach((
|
|
1287
|
-
a.value.push({ eventCode:
|
|
1288
|
-
}), (M =
|
|
1286
|
+
L && Object.keys(L).forEach((S) => {
|
|
1287
|
+
a.value.push({ eventCode: S, eventName: L[S] });
|
|
1288
|
+
}), (M = w.source) != null && M.event && ((B = a.value) != null && B.length) && (l.value = a.value.find((S) => {
|
|
1289
1289
|
var T;
|
|
1290
|
-
return
|
|
1290
|
+
return S.eventCode === ((T = w.source) == null ? void 0 : T.event);
|
|
1291
1291
|
}));
|
|
1292
1292
|
}
|
|
1293
|
-
function f(
|
|
1294
|
-
var L, g, N, M, B,
|
|
1295
|
-
if (!(
|
|
1293
|
+
function f(w) {
|
|
1294
|
+
var L, g, N, M, B, S, T, b;
|
|
1295
|
+
if (!(w != null && w.length))
|
|
1296
1296
|
return;
|
|
1297
|
-
c(
|
|
1297
|
+
c(w[0]), r(w[0]);
|
|
1298
1298
|
let x = "", E = "";
|
|
1299
|
-
return o.value ? x = `${((L =
|
|
1299
|
+
return o.value ? x = `${((L = w[0].source) == null ? void 0 : L.componentId) || ""}-${((g = w[0].source) == null ? void 0 : g.event) || ""}` : (x = (N = n.value) == null ? void 0 : N.name, x && ((M = l.value) != null && M.eventName) && (x += `-${(B = l.value) == null ? void 0 : B.eventName}`), E = `${(S = n.value) == null ? void 0 : S.name} (${(T = n.value) == null ? void 0 : T.originalId})`, E = `${E}
|
|
1300
1300
|
${(b = l.value) == null ? void 0 : b.eventName} (${l.value.eventCode})`), { title: x, titleTip: E, isControlInvalid: o.value };
|
|
1301
1301
|
}
|
|
1302
|
-
function y(
|
|
1302
|
+
function y(w) {
|
|
1303
1303
|
var x;
|
|
1304
|
-
if ((x =
|
|
1305
|
-
const E =
|
|
1304
|
+
if ((x = w == null ? void 0 : w.communication) != null && x.length) {
|
|
1305
|
+
const E = w == null ? void 0 : w.communication[0];
|
|
1306
1306
|
return E == null ? void 0 : E.source;
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
1309
|
return {
|
|
1310
|
-
createNewCommunication:
|
|
1310
|
+
createNewCommunication: d,
|
|
1311
1311
|
resolveCommunication: m,
|
|
1312
1312
|
clearAllCommunication: h,
|
|
1313
1313
|
clearCommunicationById: v,
|
|
@@ -1319,7 +1319,7 @@ ${(b = l.value) == null ? void 0 : b.eventName} (${l.value.eventCode})`), { titl
|
|
|
1319
1319
|
}
|
|
1320
1320
|
function Qr(e, t, n) {
|
|
1321
1321
|
const o = C([]), { boundEvents: a, unBoundEvent: l } = t;
|
|
1322
|
-
function
|
|
1322
|
+
function d(c) {
|
|
1323
1323
|
var f, y;
|
|
1324
1324
|
return {
|
|
1325
1325
|
/** 当前事件名称及label */
|
|
@@ -1349,10 +1349,10 @@ function Qr(e, t, n) {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
function m() {
|
|
1351
1351
|
var c;
|
|
1352
|
-
o.value = (c = a.value) == null ? void 0 : c.map((r) =>
|
|
1352
|
+
o.value = (c = a.value) == null ? void 0 : c.map((r) => d(r));
|
|
1353
1353
|
}
|
|
1354
1354
|
function p(c, r) {
|
|
1355
|
-
const y =
|
|
1355
|
+
const y = d({
|
|
1356
1356
|
boundEvents: c,
|
|
1357
1357
|
command: null,
|
|
1358
1358
|
controller: { id: "", name: "", label: "" },
|
|
@@ -1431,7 +1431,7 @@ function Zr(e) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
});
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function d() {
|
|
1435
1435
|
const c = n.value.reduce(
|
|
1436
1436
|
(f, y) => (f.set(y.boundEvents.label, !0), f),
|
|
1437
1437
|
/* @__PURE__ */ new Map()
|
|
@@ -1441,7 +1441,7 @@ function Zr(e) {
|
|
|
1441
1441
|
function m() {
|
|
1442
1442
|
var r;
|
|
1443
1443
|
const c = ((r = n.value) == null ? void 0 : r.length) > 0;
|
|
1444
|
-
o.value = c ?
|
|
1444
|
+
o.value = c ? d() : t.value;
|
|
1445
1445
|
}
|
|
1446
1446
|
function p() {
|
|
1447
1447
|
l(), t.value = e.value.events, n.value = e.value.boundEventsList, m();
|
|
@@ -1456,7 +1456,7 @@ function Zr(e) {
|
|
|
1456
1456
|
var f;
|
|
1457
1457
|
const c = (f = e.value) == null ? void 0 : f.getEventList(), { events: r } = c;
|
|
1458
1458
|
c && (e.value.events = se(r), e.value.boundEventsList = c.boundEventsList), e.value.boundEventsList && (e.value.boundEventsList = e.value.boundEventsList.filter(function(y) {
|
|
1459
|
-
return r.find((
|
|
1459
|
+
return r.find((w) => w.label === y.boundEvents.label);
|
|
1460
1460
|
}));
|
|
1461
1461
|
}
|
|
1462
1462
|
return {
|
|
@@ -1514,36 +1514,36 @@ const Kr = {
|
|
|
1514
1514
|
field: "name",
|
|
1515
1515
|
title: "",
|
|
1516
1516
|
dataType: "string"
|
|
1517
|
-
}]),
|
|
1517
|
+
}]), d = C([]), m = C(), p = C(), h = C(!0), v = C(!1), i = C([]), c = C(), r = C(!0), f = C(!1);
|
|
1518
1518
|
function y() {
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1519
|
+
const S = we("sourceOutlineData");
|
|
1520
|
+
d.value = S || [], p.value.updateDataSource(d.value);
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1523
|
-
var T, b,
|
|
1522
|
+
function w() {
|
|
1523
|
+
var T, b, u;
|
|
1524
1524
|
if (!((b = (T = a.value) == null ? void 0 : T.source) != null && b.componentId)) {
|
|
1525
1525
|
f.value = !1;
|
|
1526
1526
|
return;
|
|
1527
1527
|
}
|
|
1528
|
-
const
|
|
1529
|
-
|
|
1528
|
+
const S = (u = d.value) == null ? void 0 : u.find((F) => F.originalId === a.value.source.componentId);
|
|
1529
|
+
S ? (p.value.selectItemById(S.id), f.value = !1) : (f.value = !0, m.value = {
|
|
1530
1530
|
id: a.value.source.componentId
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
1533
|
function x() {
|
|
1534
|
-
var
|
|
1535
|
-
(T = (
|
|
1534
|
+
var S, T, b;
|
|
1535
|
+
(T = (S = a.value) == null ? void 0 : S.source) != null && T.event && ((b = i.value) != null && b.length) && (c.value = i.value.find((u) => {
|
|
1536
1536
|
var F, k;
|
|
1537
|
-
return
|
|
1537
|
+
return u.eventCode === ((k = (F = a.value) == null ? void 0 : F.source) == null ? void 0 : k.event);
|
|
1538
1538
|
}));
|
|
1539
1539
|
}
|
|
1540
1540
|
ot(() => {
|
|
1541
|
-
y(),
|
|
1541
|
+
y(), w(), x(), r.value = !1;
|
|
1542
1542
|
});
|
|
1543
1543
|
function E() {
|
|
1544
|
-
var
|
|
1544
|
+
var u;
|
|
1545
1545
|
i.value = [];
|
|
1546
|
-
const
|
|
1546
|
+
const S = m.value.rawSchema, T = S.type === "form-group" && S.editor ? S.editor.type : S.type, b = (u = fn[T]) == null ? void 0 : u.events;
|
|
1547
1547
|
b && Object.keys(b).forEach((F) => {
|
|
1548
1548
|
i.value.push({
|
|
1549
1549
|
eventCode: F,
|
|
@@ -1551,24 +1551,24 @@ const Kr = {
|
|
|
1551
1551
|
});
|
|
1552
1552
|
});
|
|
1553
1553
|
}
|
|
1554
|
-
function L(
|
|
1554
|
+
function L(S) {
|
|
1555
1555
|
h.value = !1, f.value = !1;
|
|
1556
|
-
const T = m.value !==
|
|
1557
|
-
T && (m.value =
|
|
1556
|
+
const T = m.value !== S[0];
|
|
1557
|
+
T && (m.value = S[0], E()), r.value || (v.value = !0), !r.value && T && (c.value = null);
|
|
1558
1558
|
}
|
|
1559
1559
|
const g = H(() => ({
|
|
1560
1560
|
"item-list": !0,
|
|
1561
1561
|
"d-none": !h.value
|
|
1562
|
-
})), N = H(() => (
|
|
1562
|
+
})), N = H(() => (S) => {
|
|
1563
1563
|
var T;
|
|
1564
1564
|
return {
|
|
1565
1565
|
item: !0,
|
|
1566
|
-
selected: ((T = c.value) == null ? void 0 : T.eventCode) ===
|
|
1566
|
+
selected: ((T = c.value) == null ? void 0 : T.eventCode) === S
|
|
1567
1567
|
};
|
|
1568
1568
|
});
|
|
1569
|
-
function M(
|
|
1569
|
+
function M(S) {
|
|
1570
1570
|
var T;
|
|
1571
|
-
h.value = !1, v.value = !1, c.value =
|
|
1571
|
+
h.value = !1, v.value = !1, c.value = S, a.value.source.componentId = m.value.rawSchema.id, a.value.source.event = (T = c.value) == null ? void 0 : T.eventCode, t.emit("selectSourceEvent", a.value);
|
|
1572
1572
|
}
|
|
1573
1573
|
const B = H(() => ({
|
|
1574
1574
|
"form-container": !0,
|
|
@@ -1584,7 +1584,7 @@ const Kr = {
|
|
|
1584
1584
|
class: "tip"
|
|
1585
1585
|
}, [ge("请选择源控件")]), s(to, {
|
|
1586
1586
|
ref: p,
|
|
1587
|
-
data:
|
|
1587
|
+
data: d.value,
|
|
1588
1588
|
columns: l.value,
|
|
1589
1589
|
columnOption: {
|
|
1590
1590
|
fitColumns: !0,
|
|
@@ -1598,10 +1598,10 @@ const Kr = {
|
|
|
1598
1598
|
class: "item-list"
|
|
1599
1599
|
}, [s("span", {
|
|
1600
1600
|
class: "tip"
|
|
1601
|
-
}, [ge("请选择事件")]), i.value.map((
|
|
1602
|
-
class: N.value(
|
|
1603
|
-
onClick: () => M(
|
|
1604
|
-
}, [
|
|
1601
|
+
}, [ge("请选择事件")]), i.value.map((S) => s("span", {
|
|
1602
|
+
class: N.value(S.eventCode),
|
|
1603
|
+
onClick: () => M(S)
|
|
1604
|
+
}, [S.eventName]))])])]);
|
|
1605
1605
|
}
|
|
1606
1606
|
}), oi = /* @__PURE__ */ Fe({
|
|
1607
1607
|
name: "FInteractionButton",
|
|
@@ -1611,7 +1611,7 @@ const Kr = {
|
|
|
1611
1611
|
const n = new ht(), o = we("useEventsComposition"), a = we("useInteractionCompostion"), {
|
|
1612
1612
|
candidateEvents: l
|
|
1613
1613
|
} = o, {
|
|
1614
|
-
collapseInteractions:
|
|
1614
|
+
collapseInteractions: d
|
|
1615
1615
|
} = a, m = C(!1), p = C(!1);
|
|
1616
1616
|
function h(f) {
|
|
1617
1617
|
l.value = l.value.filter((y) => y.label !== f.label);
|
|
@@ -1632,7 +1632,7 @@ const Kr = {
|
|
|
1632
1632
|
});
|
|
1633
1633
|
return;
|
|
1634
1634
|
}
|
|
1635
|
-
|
|
1635
|
+
d(), v();
|
|
1636
1636
|
}
|
|
1637
1637
|
function r(f) {
|
|
1638
1638
|
p.value = !1, t.emit("selectSourceControl", f);
|
|
@@ -1712,12 +1712,12 @@ const Kr = {
|
|
|
1712
1712
|
title: p.label
|
|
1713
1713
|
}, [p.name])]));
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function d(m) {
|
|
1716
1716
|
return s("div", null, [o(m), l(m)]);
|
|
1717
1717
|
}
|
|
1718
1718
|
return () => s("div", {
|
|
1719
1719
|
class: "f-page-internals"
|
|
1720
|
-
}, [e.controllers.map((m) =>
|
|
1720
|
+
}, [e.controllers.map((m) => d(m))]);
|
|
1721
1721
|
}
|
|
1722
1722
|
}), si = {
|
|
1723
1723
|
getEventPath: { type: Function, default: null },
|
|
@@ -1733,7 +1733,7 @@ const Kr = {
|
|
|
1733
1733
|
emits: ["cancel", "submit"],
|
|
1734
1734
|
setup(e, t) {
|
|
1735
1735
|
var O, j;
|
|
1736
|
-
const n = C(), o = C([]), a = C('<i class="f-icon f-icon-search"></i>'), l = e.useFormSchema.getFormMetadataBasicInfo(),
|
|
1736
|
+
const n = C(), o = C([]), a = C('<i class="f-icon f-icon-search"></i>'), l = e.useFormSchema.getFormMetadataBasicInfo(), d = C(""), m = C(), p = ((O = e.sourceCommunication) == null ? void 0 : O.unSupportedEventCodes) || [], h = C(!p.includes(e.event.label) && ((j = e.useFormSchema.externalFormSchema) == null ? void 0 : j.size) > 0), v = C(), i = C([]);
|
|
1737
1737
|
_t(() => {
|
|
1738
1738
|
if (e.getEventPath) {
|
|
1739
1739
|
const P = e.getEventPath();
|
|
@@ -1776,8 +1776,8 @@ const Kr = {
|
|
|
1776
1776
|
}, [s(io, {
|
|
1777
1777
|
updateOn: "change",
|
|
1778
1778
|
groupText: a.value,
|
|
1779
|
-
modelValue:
|
|
1780
|
-
"onUpdate:modelValue": (A) =>
|
|
1779
|
+
modelValue: d.value,
|
|
1780
|
+
"onUpdate:modelValue": (A) => d.value = A,
|
|
1781
1781
|
onChange: f,
|
|
1782
1782
|
placeholder: "请输入名称/编号/路径搜索"
|
|
1783
1783
|
}, null)])]);
|
|
@@ -1793,7 +1793,7 @@ const Kr = {
|
|
|
1793
1793
|
class: "f-vm-search"
|
|
1794
1794
|
}, [P])])]) : P;
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1796
|
+
function w(P) {
|
|
1797
1797
|
return {
|
|
1798
1798
|
"f-vm-item": !0,
|
|
1799
1799
|
"f-vm-item-focus": P.active
|
|
@@ -1820,7 +1820,7 @@ const Kr = {
|
|
|
1820
1820
|
return P.sourceComponent.map.filter((A) => !A.hide).map((A) => {
|
|
1821
1821
|
if (!A.command.isInvalid)
|
|
1822
1822
|
return s("div", {
|
|
1823
|
-
class:
|
|
1823
|
+
class: w(A),
|
|
1824
1824
|
onClick: () => x(A, P)
|
|
1825
1825
|
}, [s("div", {
|
|
1826
1826
|
class: "f-event-commandItem"
|
|
@@ -1881,7 +1881,7 @@ const Kr = {
|
|
|
1881
1881
|
});
|
|
1882
1882
|
}), A;
|
|
1883
1883
|
}
|
|
1884
|
-
const
|
|
1884
|
+
const S = H(() => ({
|
|
1885
1885
|
"f-vm-all": !0,
|
|
1886
1886
|
" h-100": !0,
|
|
1887
1887
|
"has-page-list": h.value
|
|
@@ -1917,7 +1917,7 @@ const Kr = {
|
|
|
1917
1917
|
function b(P) {
|
|
1918
1918
|
var A, I, V;
|
|
1919
1919
|
if (!(P.id === v.value.id && P.containerId === v.value.containerId))
|
|
1920
|
-
if (v.value = P,
|
|
1920
|
+
if (v.value = P, d.value = "", m.value = null, v.value.id !== l.id) {
|
|
1921
1921
|
const J = (I = e.useFormSchema.externalFormSchema) == null ? void 0 : I.get((A = v.value) == null ? void 0 : A.containerId);
|
|
1922
1922
|
(V = J == null ? void 0 : J.content) != null && V.module && T(J.content);
|
|
1923
1923
|
} else
|
|
@@ -1927,7 +1927,7 @@ const Kr = {
|
|
|
1927
1927
|
});
|
|
1928
1928
|
});
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1930
|
+
function u() {
|
|
1931
1931
|
const P = B();
|
|
1932
1932
|
v.value || (v.value = P[0]);
|
|
1933
1933
|
const A = H(() => (I) => {
|
|
@@ -1968,7 +1968,7 @@ const Kr = {
|
|
|
1968
1968
|
}, [i.value.filter((P) => !P.hide).map((P) => {
|
|
1969
1969
|
if (P.isCommandNode)
|
|
1970
1970
|
return s("div", {
|
|
1971
|
-
class:
|
|
1971
|
+
class: w(P),
|
|
1972
1972
|
onClick: () => F(P)
|
|
1973
1973
|
}, [s("div", {
|
|
1974
1974
|
class: "f-event-commandItem"
|
|
@@ -1985,10 +1985,10 @@ const Kr = {
|
|
|
1985
1985
|
})]);
|
|
1986
1986
|
}
|
|
1987
1987
|
return () => s("div", {
|
|
1988
|
-
class:
|
|
1988
|
+
class: S.value
|
|
1989
1989
|
}, [s("div", {
|
|
1990
1990
|
class: "d-flex f-utils-fill-flex-row splitter"
|
|
1991
|
-
}, [h.value ?
|
|
1991
|
+
}, [h.value ? u() : "", s("div", {
|
|
1992
1992
|
class: "f-utils-fill-flex-column"
|
|
1993
1993
|
}, [y(), !v.value || v.value.id === l.id ? g() : k()])]), s("div", {
|
|
1994
1994
|
class: "modal-footer"
|
|
@@ -2009,7 +2009,7 @@ const Kr = {
|
|
|
2009
2009
|
setup(e, t) {
|
|
2010
2010
|
const n = we("useMethodsComposition"), o = we("useFormCommand"), a = new ht(), {
|
|
2011
2011
|
checkIfNewControllerExists: l,
|
|
2012
|
-
addNewController:
|
|
2012
|
+
addNewController: d
|
|
2013
2013
|
} = n, m = C(e.controllers), p = we("useFormSchema"), h = we(ro);
|
|
2014
2014
|
let v, i;
|
|
2015
2015
|
const c = C(!1);
|
|
@@ -2017,7 +2017,7 @@ const Kr = {
|
|
|
2017
2017
|
c.value = p.externalFormSchema.size > 0;
|
|
2018
2018
|
});
|
|
2019
2019
|
function r(F, k, O) {
|
|
2020
|
-
if (
|
|
2020
|
+
if (d(F), F.Commands) {
|
|
2021
2021
|
const j = o.getInternalControllerFromControllerMetadata(F, k, O);
|
|
2022
2022
|
l(j) && a.info({
|
|
2023
2023
|
position: "top-center",
|
|
@@ -2035,7 +2035,7 @@ const Kr = {
|
|
|
2035
2035
|
function y(F) {
|
|
2036
2036
|
v && v.destroy && v.destroy();
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2038
|
+
function w() {
|
|
2039
2039
|
const F = {
|
|
2040
2040
|
formBasicInfo: p == null ? void 0 : p.getFormMetadataBasicInfo()
|
|
2041
2041
|
};
|
|
@@ -2052,7 +2052,7 @@ const Kr = {
|
|
|
2052
2052
|
v = h.open({
|
|
2053
2053
|
title: "选择控制器",
|
|
2054
2054
|
width: 950,
|
|
2055
|
-
render:
|
|
2055
|
+
render: w,
|
|
2056
2056
|
showButtons: !1
|
|
2057
2057
|
});
|
|
2058
2058
|
}
|
|
@@ -2098,7 +2098,7 @@ const Kr = {
|
|
|
2098
2098
|
function B() {
|
|
2099
2099
|
t.emit("close", null);
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2101
|
+
function S() {
|
|
2102
2102
|
return s("div", {
|
|
2103
2103
|
class: "f-command-breakline"
|
|
2104
2104
|
}, [ge("------------------------------------------------------------")]);
|
|
@@ -2132,7 +2132,7 @@ const Kr = {
|
|
|
2132
2132
|
function b(F) {
|
|
2133
2133
|
t.emit("selectMethod", F);
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2135
|
+
function u() {
|
|
2136
2136
|
return s("div", {
|
|
2137
2137
|
class: "f-page-command-source-choice"
|
|
2138
2138
|
}, [s(li, {
|
|
@@ -2142,7 +2142,7 @@ const Kr = {
|
|
|
2142
2142
|
}
|
|
2143
2143
|
return () => s("div", {
|
|
2144
2144
|
class: "f-page-events-editor-command-source"
|
|
2145
|
-
}, [
|
|
2145
|
+
}, [u(), S(), T(), S(), s("div", null, [s("div", {
|
|
2146
2146
|
class: "f-page-internals-close",
|
|
2147
2147
|
onClick: B
|
|
2148
2148
|
}, [ge("取消")])])]);
|
|
@@ -2158,11 +2158,11 @@ const Kr = {
|
|
|
2158
2158
|
props: di,
|
|
2159
2159
|
emits: ["confirm", "change", "targetChange", "viewSource", "deleteCommand"],
|
|
2160
2160
|
setup(e, t) {
|
|
2161
|
-
const n = new ht(), o = we("FMessageBoxService"), a = C(se(e.command)), l = C(e.controller),
|
|
2161
|
+
const n = new ht(), o = we("FMessageBoxService"), a = C(se(e.command)), l = C(e.controller), d = C(0), m = H(() => a.value.id === "abandoned"), p = H(() => a.value.id === "deleted"), h = H(() => e.showDeleteIcon), v = H(() => a.value !== null), i = we("useMethodsComposition"), c = C(e.showParameter), r = we("useFormSchema"), f = H(() => a.value.componentLists && a.value.hasPath), y = H(() => {
|
|
2162
2162
|
const $ = a.value.id !== "abandoned" && a.value.id !== "deleted", ie = f.value, ce = a.value.property && a.value.property.length > 0;
|
|
2163
2163
|
return $ && (ie || ce);
|
|
2164
2164
|
});
|
|
2165
|
-
function
|
|
2165
|
+
function w() {
|
|
2166
2166
|
const {
|
|
2167
2167
|
targetComponent: $
|
|
2168
2168
|
} = a.value;
|
|
@@ -2174,7 +2174,7 @@ const Kr = {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
}), ie;
|
|
2176
2176
|
}
|
|
2177
|
-
const x = C(
|
|
2177
|
+
const x = C(w()), E = H(() => a.value.targetComponent || "");
|
|
2178
2178
|
function L() {
|
|
2179
2179
|
n.info({
|
|
2180
2180
|
position: "top-center",
|
|
@@ -2206,11 +2206,11 @@ const Kr = {
|
|
|
2206
2206
|
function B($) {
|
|
2207
2207
|
c.value = !c.value;
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2209
|
+
function S() {
|
|
2210
2210
|
return s("div", {
|
|
2211
2211
|
class: "f-icon f-icon-edit-button",
|
|
2212
2212
|
style: "font-size: 13px;margin-right:10px;",
|
|
2213
|
-
onClick: () => B(
|
|
2213
|
+
onClick: () => B(d.value)
|
|
2214
2214
|
}, null);
|
|
2215
2215
|
}
|
|
2216
2216
|
function T($, ie) {
|
|
@@ -2243,7 +2243,7 @@ const Kr = {
|
|
|
2243
2243
|
onChange: T
|
|
2244
2244
|
}, null)])])]);
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2246
|
+
function u($, ie) {
|
|
2247
2247
|
ie.value = $;
|
|
2248
2248
|
}
|
|
2249
2249
|
function F() {
|
|
@@ -2267,7 +2267,7 @@ const Kr = {
|
|
|
2267
2267
|
} = $.context.generalData, {
|
|
2268
2268
|
designerMode: Le
|
|
2269
2269
|
} = r, Qe = (pe) => {
|
|
2270
|
-
|
|
2270
|
+
u(pe, $), F();
|
|
2271
2271
|
}, We = (pe) => {
|
|
2272
2272
|
var Ae, at, Ke, rt;
|
|
2273
2273
|
return ((rt = (Ke = (at = (Ae = $ == null ? void 0 : $.origin) == null ? void 0 : Ae.controlSource) == null ? void 0 : at.context) == null ? void 0 : Ke.data) == null ? void 0 : rt.value) === ":Entity" || pe.raw.children && pe.raw.children.length && (pe.disabled = !0), pe;
|
|
@@ -2289,7 +2289,7 @@ const Kr = {
|
|
|
2289
2289
|
textField: ((Se = (Ce = (re = (D = $ == null ? void 0 : $.origin) == null ? void 0 : D.controlSource) == null ? void 0 : re.context) == null ? void 0 : Ce.textField) == null ? void 0 : Se.value) || "label",
|
|
2290
2290
|
editable: (st = (lt = (Ue = (Ve = $ == null ? void 0 : $.origin) == null ? void 0 : Ve.controlSource) == null ? void 0 : Ue.context) == null ? void 0 : lt.editable) == null ? void 0 : st.value,
|
|
2291
2291
|
onConfirm: (pe) => {
|
|
2292
|
-
|
|
2292
|
+
u(pe, $), F();
|
|
2293
2293
|
},
|
|
2294
2294
|
onValueChange: (pe) => {
|
|
2295
2295
|
var Ae, at;
|
|
@@ -2297,7 +2297,7 @@ const Kr = {
|
|
|
2297
2297
|
const Ke = (at = a.value.property) == null ? void 0 : at.find((rt) => rt.name === "mappingFields");
|
|
2298
2298
|
Ke && Ke.value && (Ke.value = "");
|
|
2299
2299
|
}
|
|
2300
|
-
|
|
2300
|
+
u(pe, $), F();
|
|
2301
2301
|
}
|
|
2302
2302
|
}, null);
|
|
2303
2303
|
}
|
|
@@ -2362,7 +2362,7 @@ const Kr = {
|
|
|
2362
2362
|
onDblclick: A
|
|
2363
2363
|
}, [a.value.name]), s("div", {
|
|
2364
2364
|
class: "f-page-parameter-editor-first-row-icon"
|
|
2365
|
-
}, [m.value && g(), p.value && M(), y.value &&
|
|
2365
|
+
}, [m.value && g(), p.value && M(), y.value && S(), h.value && V()])]), c.value && P()]);
|
|
2366
2366
|
}
|
|
2367
2367
|
return () => s("div", {
|
|
2368
2368
|
class: "f-page-parameter-editor"
|
|
@@ -2433,8 +2433,8 @@ class pi {
|
|
|
2433
2433
|
v && a.push(v);
|
|
2434
2434
|
}
|
|
2435
2435
|
});
|
|
2436
|
-
const { templateId:
|
|
2437
|
-
return
|
|
2436
|
+
const { templateId: d } = this.formSchemaUtils.getFormSchema().module;
|
|
2437
|
+
return d === "double-list-in-tab-template" && (n.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", n.fill = !0), [n];
|
|
2438
2438
|
}
|
|
2439
2439
|
resolveControlClassByFormColumns(t) {
|
|
2440
2440
|
let n = "";
|
|
@@ -2482,8 +2482,8 @@ class pi {
|
|
|
2482
2482
|
return o == null || o.forEach((a) => {
|
|
2483
2483
|
if (a.$type === on.SimpleField) {
|
|
2484
2484
|
let l = "blur";
|
|
2485
|
-
const
|
|
2486
|
-
(
|
|
2485
|
+
const d = a.type.name;
|
|
2486
|
+
(d === an.Enum || d === an.Boolean) && (l = "change"), n.push({
|
|
2487
2487
|
type: "Form",
|
|
2488
2488
|
id: a.id,
|
|
2489
2489
|
fieldName: a.bindingField,
|
|
@@ -2497,12 +2497,12 @@ class pi {
|
|
|
2497
2497
|
}
|
|
2498
2498
|
}
|
|
2499
2499
|
function hi(e, t, n, o) {
|
|
2500
|
-
var l,
|
|
2500
|
+
var l, d, m, p, h, v;
|
|
2501
2501
|
const a = n.parentComponentInstance;
|
|
2502
2502
|
if (a && o) {
|
|
2503
2503
|
const i = (l = a.schema) == null ? void 0 : l.type, r = {
|
|
2504
2504
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
2505
|
-
componentName: ((
|
|
2505
|
+
componentName: ((d = n.bindingSourceContext) == null ? void 0 : d.entityTitle) || ((p = (m = n.bindingSourceContext) == null ? void 0 : m.bindingEntity) == null ? void 0 : p.name) || "标题",
|
|
2506
2506
|
componentType: "form",
|
|
2507
2507
|
formColumns: i === "splitter-pane" ? 1 : 4,
|
|
2508
2508
|
parentContainerId: a.schema.id,
|
|
@@ -2718,14 +2718,14 @@ const Li = {
|
|
|
2718
2718
|
}), Me([() => e.valid, () => e.inValidTip], ([v, i]) => {
|
|
2719
2719
|
a.value = v, l.value = i;
|
|
2720
2720
|
});
|
|
2721
|
-
const
|
|
2721
|
+
const d = H(() => a.value ? o.value : l.value), m = H(() => a.value ? "" : "color:red"), p = H(() => ({
|
|
2722
2722
|
"col-form-label": !0,
|
|
2723
2723
|
// 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
|
|
2724
2724
|
"f-width-auto": n.value && (e.showType === "none" || !o.value)
|
|
2725
2725
|
})), h = H(() => e.showType === "reserve-space" || n.value || o.value && e.showType !== "none");
|
|
2726
2726
|
return () => h.value && s("label", {
|
|
2727
2727
|
class: p.value,
|
|
2728
|
-
title:
|
|
2728
|
+
title: d.value,
|
|
2729
2729
|
style: m.value
|
|
2730
2730
|
}, [!a.value && s("span", {
|
|
2731
2731
|
class: "f-icon f-icon-warning mr-1",
|
|
@@ -2744,18 +2744,18 @@ function Vi() {
|
|
|
2744
2744
|
}
|
|
2745
2745
|
function $i() {
|
|
2746
2746
|
Vi();
|
|
2747
|
-
function e(
|
|
2748
|
-
const m = G[
|
|
2747
|
+
function e(d) {
|
|
2748
|
+
const m = G[d];
|
|
2749
2749
|
if (!m)
|
|
2750
|
-
throw new Error(`Could not find the editor of type '${
|
|
2750
|
+
throw new Error(`Could not find the editor of type '${d}'`);
|
|
2751
2751
|
return m;
|
|
2752
2752
|
}
|
|
2753
|
-
function t(
|
|
2754
|
-
const p = W[
|
|
2753
|
+
function t(d, m) {
|
|
2754
|
+
const p = W[d];
|
|
2755
2755
|
return p ? p(m) : {};
|
|
2756
2756
|
}
|
|
2757
|
-
function n(
|
|
2758
|
-
switch (
|
|
2757
|
+
function n(d) {
|
|
2758
|
+
switch (d) {
|
|
2759
2759
|
case "check-box":
|
|
2760
2760
|
return "onChangeValue";
|
|
2761
2761
|
case "switch":
|
|
@@ -2826,23 +2826,23 @@ function $i() {
|
|
|
2826
2826
|
return "onUpdate:modelValue";
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
2829
|
-
function o(
|
|
2830
|
-
switch (
|
|
2829
|
+
function o(d) {
|
|
2830
|
+
switch (d) {
|
|
2831
2831
|
case "combo-list":
|
|
2832
2832
|
case "input-group":
|
|
2833
2833
|
case "textarea":
|
|
2834
2834
|
return "onClear";
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
2837
|
-
function a(
|
|
2838
|
-
switch (
|
|
2837
|
+
function a(d) {
|
|
2838
|
+
switch (d) {
|
|
2839
2839
|
case "input-group":
|
|
2840
2840
|
case "textarea":
|
|
2841
2841
|
return "onMousedownEvent";
|
|
2842
2842
|
}
|
|
2843
2843
|
}
|
|
2844
|
-
function l(
|
|
2845
|
-
switch (
|
|
2844
|
+
function l(d) {
|
|
2845
|
+
switch (d) {
|
|
2846
2846
|
case "input-group":
|
|
2847
2847
|
case "textarea":
|
|
2848
2848
|
return "onMouseupEvent";
|
|
@@ -2869,9 +2869,9 @@ const Di = {
|
|
|
2869
2869
|
});
|
|
2870
2870
|
const o = C(!0), a = H(() => {
|
|
2871
2871
|
if (n.value) {
|
|
2872
|
-
const l = Object.keys(n.value).map((
|
|
2872
|
+
const l = Object.keys(n.value).map((d) => {
|
|
2873
2873
|
var m;
|
|
2874
|
-
return (m = n.value[
|
|
2874
|
+
return (m = n.value[d]) == null ? void 0 : m.name;
|
|
2875
2875
|
});
|
|
2876
2876
|
return l.length ? l.join(" ") : "";
|
|
2877
2877
|
}
|
|
@@ -2892,12 +2892,12 @@ const Di = {
|
|
|
2892
2892
|
emits: ["change", "update:modelValue"],
|
|
2893
2893
|
setup(e, t) {
|
|
2894
2894
|
var B;
|
|
2895
|
-
const n = C(e.id), o = C(e.customClass), a = C(e.editor), l = C(e.label),
|
|
2895
|
+
const n = C(e.id), o = C(e.customClass), a = C(e.editor), l = C(e.label), d = C(e.modelValue), m = C(e.readonly), p = C(((B = e.editor) == null ? void 0 : B.required) || e.required), h = C(e.showLabel), v = C(e.visible);
|
|
2896
2896
|
C(e.type);
|
|
2897
2897
|
const i = C(), c = C(e.errors), r = H(() => h.value ? e.showLabelType : "none"), {
|
|
2898
2898
|
resolveEditorProps: f,
|
|
2899
2899
|
resolveEditorType: y,
|
|
2900
|
-
getChangeFunctionName:
|
|
2900
|
+
getChangeFunctionName: w,
|
|
2901
2901
|
getClearFunctionName: x
|
|
2902
2902
|
} = $i(), E = H(() => ({
|
|
2903
2903
|
"form-group": !0,
|
|
@@ -2905,9 +2905,9 @@ const Di = {
|
|
|
2905
2905
|
"common-group": !0,
|
|
2906
2906
|
"q-state-readonly": m.value
|
|
2907
2907
|
}));
|
|
2908
|
-
function L(
|
|
2909
|
-
|
|
2910
|
-
newValue:
|
|
2908
|
+
function L(S, T, b) {
|
|
2909
|
+
d.value = T !== void 0 ? T : S, t.emit("update:modelValue", d.value), t.emit("change", d.value, {
|
|
2910
|
+
newValue: S,
|
|
2911
2911
|
newModelValue: T,
|
|
2912
2912
|
parameters: b
|
|
2913
2913
|
});
|
|
@@ -2916,12 +2916,12 @@ const Di = {
|
|
|
2916
2916
|
t.emit("update:modelValue", "");
|
|
2917
2917
|
}
|
|
2918
2918
|
const N = H(() => {
|
|
2919
|
-
const
|
|
2920
|
-
return F && (b[F] = g), b[
|
|
2919
|
+
const S = a.value.type || "input-group", T = y(S), b = f(S, a.value), u = w(S), F = x(a.value.type);
|
|
2920
|
+
return F && (b[F] = g), b[u] = L, (b.id == null || b.id === "") && (b.id = n.value), S === "number-range" && a.value.onBeginValueChange && typeof a.value.onBeginValueChange == "function" ? (a.value.onBeginValueChange && typeof a.value.onBeginValueChange == "function" && (b.onBeginValueChange = a.value.onBeginValueChange), a.value.onEndValueChange && typeof a.value.onEndValueChange == "function" && (b.onEndValueChange = a.value.onEndValueChange)) : S === "lookup" && a.value["onUpdate:idValue"] && typeof a.value["onUpdate:idValue"] == "function" ? (b["onUpdate:idValue"] = a.value["onUpdate:idValue"], b.id = n.value) : S === "collection-property-editor" && a.value.onSelectionChange && typeof a.value.onSelectionChange == "function" ? b.onSelectionChange = a.value.onSelectionChange : S === "property-editor" && (b.onBeforeOpenVariables = a.value.onBeforeOpenVariables), () => s(T, Ot({
|
|
2921
2921
|
ref: i
|
|
2922
2922
|
}, b, {
|
|
2923
|
-
modelValue:
|
|
2924
|
-
"onUpdate:modelValue": (k) =>
|
|
2923
|
+
modelValue: d.value,
|
|
2924
|
+
"onUpdate:modelValue": (k) => d.value = k
|
|
2925
2925
|
}), t.slots);
|
|
2926
2926
|
});
|
|
2927
2927
|
function M() {
|
|
@@ -2930,9 +2930,9 @@ const Di = {
|
|
|
2930
2930
|
errors: c.value
|
|
2931
2931
|
}, null);
|
|
2932
2932
|
}
|
|
2933
|
-
return Me([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([
|
|
2933
|
+
return Me([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([S, T, b, u, F, k, O, j, P, A]) => {
|
|
2934
2934
|
var I;
|
|
2935
|
-
n.value =
|
|
2935
|
+
n.value = S, o.value = T, a.value = b, l.value = u, d.value = F, m.value = k, p.value = ((I = a.value) == null ? void 0 : I.required) || O, h.value = j, v.value = P, c.value = A;
|
|
2936
2936
|
}), t.expose({
|
|
2937
2937
|
editorRef: i
|
|
2938
2938
|
}), () => v.value && s("div", {
|
|
@@ -2963,7 +2963,7 @@ const Di = {
|
|
|
2963
2963
|
let a = yt.fieldControlTypeMapping[t];
|
|
2964
2964
|
if (o === "data-grid-column" && (a != null && a.length)) {
|
|
2965
2965
|
const l = [_["check-group"].type, _["radio-group"].type];
|
|
2966
|
-
a = a.filter((
|
|
2966
|
+
a = a.filter((d) => !l.includes(d.key));
|
|
2967
2967
|
}
|
|
2968
2968
|
return a;
|
|
2969
2969
|
}
|
|
@@ -3054,7 +3054,7 @@ var Hi = { exports: {} };
|
|
|
3054
3054
|
})(function() {
|
|
3055
3055
|
return (/* @__PURE__ */ function() {
|
|
3056
3056
|
function n(o, a, l) {
|
|
3057
|
-
function
|
|
3057
|
+
function d(h, v) {
|
|
3058
3058
|
if (!a[h]) {
|
|
3059
3059
|
if (!o[h]) {
|
|
3060
3060
|
var i = typeof kt == "function" && kt;
|
|
@@ -3066,21 +3066,21 @@ var Hi = { exports: {} };
|
|
|
3066
3066
|
var r = a[h] = { exports: {} };
|
|
3067
3067
|
o[h][0].call(r.exports, function(f) {
|
|
3068
3068
|
var y = o[h][1][f];
|
|
3069
|
-
return
|
|
3069
|
+
return d(y || f);
|
|
3070
3070
|
}, r, r.exports, n, o, a, l);
|
|
3071
3071
|
}
|
|
3072
3072
|
return a[h].exports;
|
|
3073
3073
|
}
|
|
3074
|
-
for (var m = typeof kt == "function" && kt, p = 0; p < l.length; p++)
|
|
3075
|
-
return
|
|
3074
|
+
for (var m = typeof kt == "function" && kt, p = 0; p < l.length; p++) d(l[p]);
|
|
3075
|
+
return d;
|
|
3076
3076
|
}
|
|
3077
3077
|
return n;
|
|
3078
3078
|
}())({
|
|
3079
3079
|
1: [function(n, o, a) {
|
|
3080
|
-
var l = {},
|
|
3080
|
+
var l = {}, d = "(?:^|\\s)", m = "(?:\\s|$)";
|
|
3081
3081
|
function p(i) {
|
|
3082
3082
|
var c = l[i];
|
|
3083
|
-
return c ? c.lastIndex = 0 : l[i] = c = new RegExp(
|
|
3083
|
+
return c ? c.lastIndex = 0 : l[i] = c = new RegExp(d + i + m, "g"), c;
|
|
3084
3084
|
}
|
|
3085
3085
|
function h(i, c) {
|
|
3086
3086
|
var r = i.className;
|
|
@@ -3096,13 +3096,13 @@ var Hi = { exports: {} };
|
|
|
3096
3096
|
}, {}],
|
|
3097
3097
|
2: [function(n, o, a) {
|
|
3098
3098
|
(function(l) {
|
|
3099
|
-
var
|
|
3100
|
-
function i(
|
|
3099
|
+
var d = n("contra/emitter"), m = n("crossvent"), p = n("./classes"), h = document, v = h.documentElement;
|
|
3100
|
+
function i(u, F) {
|
|
3101
3101
|
var k = arguments.length;
|
|
3102
|
-
k === 1 && Array.isArray(
|
|
3102
|
+
k === 1 && Array.isArray(u) === !1 && (F = u, u = []);
|
|
3103
3103
|
var O, j, P, A, I, V, J, q, $, ie = null, ce, ne, he = !1, xe = 0, ue, K = F || {};
|
|
3104
|
-
K.moves === void 0 && (K.moves = E), K.accepts === void 0 && (K.accepts = E), K.invalid === void 0 && (K.invalid = ee), K.containers === void 0 && (K.containers =
|
|
3105
|
-
var fe =
|
|
3104
|
+
K.moves === void 0 && (K.moves = E), K.accepts === void 0 && (K.accepts = E), K.invalid === void 0 && (K.invalid = ee), K.containers === void 0 && (K.containers = u || []), K.isContainer === void 0 && (K.isContainer = x), K.copy === void 0 && (K.copy = !1), K.copySortSource === void 0 && (K.copySortSource = !1), K.revertOnSpill === void 0 && (K.revertOnSpill = !1), K.removeOnSpill === void 0 && (K.removeOnSpill = !1), K.direction === void 0 && (K.direction = "vertical"), K.ignoreInputTextSelection === void 0 && (K.ignoreInputTextSelection = !0), K.mirrorContainer === void 0 && (K.mirrorContainer = h.body);
|
|
3105
|
+
var fe = d({
|
|
3106
3106
|
containers: K.containers,
|
|
3107
3107
|
start: Ne,
|
|
3108
3108
|
end: oe,
|
|
@@ -3166,7 +3166,7 @@ var Hi = { exports: {} };
|
|
|
3166
3166
|
return;
|
|
3167
3167
|
var Q = N(R);
|
|
3168
3168
|
if (Q && !K.invalid(R, U)) {
|
|
3169
|
-
var te = K.moves(R, Q, U,
|
|
3169
|
+
var te = K.moves(R, Q, U, S(R));
|
|
3170
3170
|
if (te)
|
|
3171
3171
|
return {
|
|
3172
3172
|
item: R,
|
|
@@ -3183,7 +3183,7 @@ var Hi = { exports: {} };
|
|
|
3183
3183
|
U && z(U);
|
|
3184
3184
|
}
|
|
3185
3185
|
function z(R) {
|
|
3186
|
-
jt(R.item, R.source) && (q = R.item.cloneNode(!0), fe.emit("cloned", q, R.item, "copy")), j = R.source, P = R.item, V = J =
|
|
3186
|
+
jt(R.item, R.source) && (q = R.item.cloneNode(!0), fe.emit("cloned", q, R.item, "copy")), j = R.source, P = R.item, V = J = S(R.item), fe.dragging = !0, fe.emit("drag", P, j);
|
|
3187
3187
|
}
|
|
3188
3188
|
function ee() {
|
|
3189
3189
|
return !1;
|
|
@@ -3199,7 +3199,7 @@ var Hi = { exports: {} };
|
|
|
3199
3199
|
}
|
|
3200
3200
|
function de(R) {
|
|
3201
3201
|
if (ae(), !!fe.dragging) {
|
|
3202
|
-
var U = q || P, Q = b("clientX", R) || 0, te = b("clientY", R) || 0, me =
|
|
3202
|
+
var U = q || P, Q = b("clientX", R) || 0, te = b("clientY", R) || 0, me = w(O, Q, te), ve = Se(me, Q, te);
|
|
3203
3203
|
ve && (q && K.copySortSource || !q || ve !== j) ? be(U, ve) : K.removeOnSpill ? Ee() : D();
|
|
3204
3204
|
}
|
|
3205
3205
|
}
|
|
@@ -3225,7 +3225,7 @@ var Hi = { exports: {} };
|
|
|
3225
3225
|
}
|
|
3226
3226
|
function Ce(R, U) {
|
|
3227
3227
|
var Q;
|
|
3228
|
-
return U !== void 0 ? Q = U : O ? Q = J : Q =
|
|
3228
|
+
return U !== void 0 ? Q = U : O ? Q = J : Q = S(q || P), R === j && Q === V;
|
|
3229
3229
|
}
|
|
3230
3230
|
function Se(R, U, Q) {
|
|
3231
3231
|
for (var te = R; te && !me(); )
|
|
@@ -3245,7 +3245,7 @@ var Hi = { exports: {} };
|
|
|
3245
3245
|
R.preventDefault();
|
|
3246
3246
|
var U = b("clientX", R) || 0, Q = b("clientY", R) || 0;
|
|
3247
3247
|
O.style.left = U - 2 + "px", O.style.top = Q - 2 + "px";
|
|
3248
|
-
var te = q || P, me =
|
|
3248
|
+
var te = q || P, me = w(O, U, Q), ve = Se(me, U, Q), Xe = ve !== null && ve !== ie;
|
|
3249
3249
|
(Xe || ve === null) && (ze(), ie = ve, tt()), Dt(me, Q);
|
|
3250
3250
|
var $e = N(te);
|
|
3251
3251
|
if (ve === j && q && !K.copySortSource) {
|
|
@@ -3273,7 +3273,7 @@ var Hi = { exports: {} };
|
|
|
3273
3273
|
}
|
|
3274
3274
|
}
|
|
3275
3275
|
function Ue(R, U, Q) {
|
|
3276
|
-
(R === U || R ===
|
|
3276
|
+
(R === U || R === S(U)) && (J = S(U)), (R === null && Q || R !== U && R !== S(U)) && (J = R);
|
|
3277
3277
|
}
|
|
3278
3278
|
function lt(R) {
|
|
3279
3279
|
p.rm(R, "gu-hide");
|
|
@@ -3392,14 +3392,14 @@ var Hi = { exports: {} };
|
|
|
3392
3392
|
return et(me ? Q > Be.left + L(Be) / 2 : te > Be.top + g(Be) / 2);
|
|
3393
3393
|
}
|
|
3394
3394
|
function et(Be) {
|
|
3395
|
-
return Be ?
|
|
3395
|
+
return Be ? S(U) : U;
|
|
3396
3396
|
}
|
|
3397
3397
|
}
|
|
3398
3398
|
function jt(R, U) {
|
|
3399
3399
|
return typeof K.copy == "boolean" ? K.copy : K.copy(R, U);
|
|
3400
3400
|
}
|
|
3401
3401
|
}
|
|
3402
|
-
function c(
|
|
3402
|
+
function c(u) {
|
|
3403
3403
|
const F = Array.from(window.scrollContainerList);
|
|
3404
3404
|
if (F.length === 1) {
|
|
3405
3405
|
const O = Array.from(window.scrollContainerList)[0];
|
|
@@ -3407,18 +3407,18 @@ var Hi = { exports: {} };
|
|
|
3407
3407
|
}
|
|
3408
3408
|
const k = r(F);
|
|
3409
3409
|
for (const O of k)
|
|
3410
|
-
if (O.contains(
|
|
3410
|
+
if (O.contains(u))
|
|
3411
3411
|
return O;
|
|
3412
3412
|
return null;
|
|
3413
3413
|
}
|
|
3414
|
-
function r(
|
|
3414
|
+
function r(u) {
|
|
3415
3415
|
const F = [];
|
|
3416
|
-
return
|
|
3416
|
+
return u.forEach((k) => {
|
|
3417
3417
|
const O = document.getElementById(k);
|
|
3418
3418
|
O && F.push(O);
|
|
3419
3419
|
}), F.sort((k, O) => k.contains(O) ? 1 : O.contains(k) ? -1 : 0), F;
|
|
3420
3420
|
}
|
|
3421
|
-
function f(
|
|
3421
|
+
function f(u, F, k, O) {
|
|
3422
3422
|
var j = {
|
|
3423
3423
|
mouseup: "touchend",
|
|
3424
3424
|
mousedown: "touchstart",
|
|
@@ -3432,23 +3432,23 @@ var Hi = { exports: {} };
|
|
|
3432
3432
|
mousedown: "MSPointerDown",
|
|
3433
3433
|
mousemove: "MSPointerMove"
|
|
3434
3434
|
};
|
|
3435
|
-
l.navigator.pointerEnabled ? m[F](
|
|
3435
|
+
l.navigator.pointerEnabled ? m[F](u, P[k], O) : l.navigator.msPointerEnabled ? m[F](u, A[k], O) : (m[F](u, j[k], O), m[F](u, k, O));
|
|
3436
3436
|
}
|
|
3437
|
-
function y(
|
|
3438
|
-
if (
|
|
3439
|
-
return
|
|
3440
|
-
if (
|
|
3441
|
-
return
|
|
3442
|
-
if (
|
|
3443
|
-
return
|
|
3444
|
-
var F =
|
|
3437
|
+
function y(u) {
|
|
3438
|
+
if (u.touches !== void 0)
|
|
3439
|
+
return u.touches.length;
|
|
3440
|
+
if (u.which !== void 0 && u.which !== 0)
|
|
3441
|
+
return u.which;
|
|
3442
|
+
if (u.buttons !== void 0)
|
|
3443
|
+
return u.buttons;
|
|
3444
|
+
var F = u.button;
|
|
3445
3445
|
if (F !== void 0)
|
|
3446
3446
|
return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
|
|
3447
3447
|
}
|
|
3448
|
-
function
|
|
3449
|
-
|
|
3450
|
-
var O =
|
|
3451
|
-
return
|
|
3448
|
+
function w(u, F, k) {
|
|
3449
|
+
u = u || {};
|
|
3450
|
+
var O = u.className || "", j;
|
|
3451
|
+
return u.className += " gu-hide", j = h.elementFromPoint(F, k), u.className = O, j;
|
|
3452
3452
|
}
|
|
3453
3453
|
function x() {
|
|
3454
3454
|
return !1;
|
|
@@ -3456,49 +3456,49 @@ var Hi = { exports: {} };
|
|
|
3456
3456
|
function E() {
|
|
3457
3457
|
return !0;
|
|
3458
3458
|
}
|
|
3459
|
-
function L(
|
|
3460
|
-
return
|
|
3459
|
+
function L(u) {
|
|
3460
|
+
return u.width || u.right - u.left;
|
|
3461
3461
|
}
|
|
3462
|
-
function g(
|
|
3463
|
-
return
|
|
3462
|
+
function g(u) {
|
|
3463
|
+
return u.height || u.bottom - u.top;
|
|
3464
3464
|
}
|
|
3465
|
-
function N(
|
|
3466
|
-
return
|
|
3465
|
+
function N(u) {
|
|
3466
|
+
return u.parentNode === h ? null : u.parentNode;
|
|
3467
3467
|
}
|
|
3468
|
-
function M(
|
|
3469
|
-
return
|
|
3468
|
+
function M(u) {
|
|
3469
|
+
return u.tagName === "INPUT" || u.tagName === "TEXTAREA" || u.tagName === "SELECT" || B(u);
|
|
3470
3470
|
}
|
|
3471
|
-
function B(
|
|
3472
|
-
return !
|
|
3471
|
+
function B(u) {
|
|
3472
|
+
return !u || u.contentEditable === "false" ? !1 : u.contentEditable === "true" ? !0 : B(N(u));
|
|
3473
3473
|
}
|
|
3474
|
-
function
|
|
3475
|
-
return
|
|
3474
|
+
function S(u) {
|
|
3475
|
+
return u.nextElementSibling || F();
|
|
3476
3476
|
function F() {
|
|
3477
|
-
var k =
|
|
3477
|
+
var k = u;
|
|
3478
3478
|
do
|
|
3479
3479
|
k = k.nextSibling;
|
|
3480
3480
|
while (k && k.nodeType !== 1);
|
|
3481
3481
|
return k;
|
|
3482
3482
|
}
|
|
3483
3483
|
}
|
|
3484
|
-
function T(
|
|
3485
|
-
return
|
|
3484
|
+
function T(u) {
|
|
3485
|
+
return u.targetTouches && u.targetTouches.length ? u.targetTouches[0] : u.changedTouches && u.changedTouches.length ? u.changedTouches[0] : u;
|
|
3486
3486
|
}
|
|
3487
|
-
function b(
|
|
3487
|
+
function b(u, F) {
|
|
3488
3488
|
var k = T(F), O = {
|
|
3489
3489
|
pageX: "clientX",
|
|
3490
3490
|
// IE8
|
|
3491
3491
|
pageY: "clientY"
|
|
3492
3492
|
// IE8
|
|
3493
3493
|
};
|
|
3494
|
-
return
|
|
3494
|
+
return u in O && !(u in k) && O[u] in k && (u = O[u]), k[u];
|
|
3495
3495
|
}
|
|
3496
3496
|
o.exports = i;
|
|
3497
3497
|
}).call(this, typeof ut < "u" ? ut : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
3498
3498
|
}, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
|
|
3499
3499
|
3: [function(n, o, a) {
|
|
3500
|
-
o.exports = function(
|
|
3501
|
-
return Array.prototype.slice.call(
|
|
3500
|
+
o.exports = function(d, m) {
|
|
3501
|
+
return Array.prototype.slice.call(d, m);
|
|
3502
3502
|
};
|
|
3503
3503
|
}, {}],
|
|
3504
3504
|
4: [function(n, o, a) {
|
|
@@ -3510,7 +3510,7 @@ var Hi = { exports: {} };
|
|
|
3510
3510
|
};
|
|
3511
3511
|
}, { ticky: 10 }],
|
|
3512
3512
|
5: [function(n, o, a) {
|
|
3513
|
-
var l = n("atoa"),
|
|
3513
|
+
var l = n("atoa"), d = n("./debounce");
|
|
3514
3514
|
o.exports = function(p, h) {
|
|
3515
3515
|
var v = h || {}, i = {};
|
|
3516
3516
|
return p === void 0 && (p = {}), p.on = function(c, r) {
|
|
@@ -3540,7 +3540,7 @@ var Hi = { exports: {} };
|
|
|
3540
3540
|
if (c === "error" && v.throws !== !1 && !r.length)
|
|
3541
3541
|
throw f.length === 1 ? f[0] : f;
|
|
3542
3542
|
return r.forEach(function(x) {
|
|
3543
|
-
v.async ?
|
|
3543
|
+
v.async ? d(x, f, y) : x.apply(y, f), x._once && p.off(c, x);
|
|
3544
3544
|
}), p;
|
|
3545
3545
|
};
|
|
3546
3546
|
}, p;
|
|
@@ -3548,35 +3548,35 @@ var Hi = { exports: {} };
|
|
|
3548
3548
|
}, { "./debounce": 4, atoa: 3 }],
|
|
3549
3549
|
6: [function(n, o, a) {
|
|
3550
3550
|
(function(l) {
|
|
3551
|
-
var
|
|
3551
|
+
var d = n("custom-event"), m = n("./eventmap"), p = l.document, h = c, v = f, i = [];
|
|
3552
3552
|
l.addEventListener || (h = r, v = y), o.exports = {
|
|
3553
3553
|
add: h,
|
|
3554
3554
|
remove: v,
|
|
3555
|
-
fabricate:
|
|
3555
|
+
fabricate: w
|
|
3556
3556
|
};
|
|
3557
|
-
function c(N, M, B,
|
|
3558
|
-
return N.addEventListener(M, B,
|
|
3557
|
+
function c(N, M, B, S) {
|
|
3558
|
+
return N.addEventListener(M, B, S);
|
|
3559
3559
|
}
|
|
3560
3560
|
function r(N, M, B) {
|
|
3561
3561
|
return N.attachEvent("on" + M, E(N, M, B));
|
|
3562
3562
|
}
|
|
3563
|
-
function f(N, M, B,
|
|
3564
|
-
return N.removeEventListener(M, B,
|
|
3563
|
+
function f(N, M, B, S) {
|
|
3564
|
+
return N.removeEventListener(M, B, S);
|
|
3565
3565
|
}
|
|
3566
3566
|
function y(N, M, B) {
|
|
3567
|
-
var
|
|
3568
|
-
if (
|
|
3569
|
-
return N.detachEvent("on" + M,
|
|
3567
|
+
var S = L(N, M, B);
|
|
3568
|
+
if (S)
|
|
3569
|
+
return N.detachEvent("on" + M, S);
|
|
3570
3570
|
}
|
|
3571
|
-
function
|
|
3572
|
-
var
|
|
3573
|
-
N.dispatchEvent ? N.dispatchEvent(
|
|
3571
|
+
function w(N, M, B) {
|
|
3572
|
+
var S = m.indexOf(M) === -1 ? b() : T();
|
|
3573
|
+
N.dispatchEvent ? N.dispatchEvent(S) : N.fireEvent("on" + M, S);
|
|
3574
3574
|
function T() {
|
|
3575
|
-
var
|
|
3576
|
-
return p.createEvent ? (
|
|
3575
|
+
var u;
|
|
3576
|
+
return p.createEvent ? (u = p.createEvent("Event"), u.initEvent(M, !0, !0)) : p.createEventObject && (u = p.createEventObject()), u;
|
|
3577
3577
|
}
|
|
3578
3578
|
function b() {
|
|
3579
|
-
return new
|
|
3579
|
+
return new d(M, { detail: B });
|
|
3580
3580
|
}
|
|
3581
3581
|
}
|
|
3582
3582
|
function x(N, M, B) {
|
|
@@ -3590,49 +3590,49 @@ var Hi = { exports: {} };
|
|
|
3590
3590
|
};
|
|
3591
3591
|
}
|
|
3592
3592
|
function E(N, M, B) {
|
|
3593
|
-
var
|
|
3593
|
+
var S = L(N, M, B) || x(N, M, B);
|
|
3594
3594
|
return i.push({
|
|
3595
|
-
wrapper:
|
|
3595
|
+
wrapper: S,
|
|
3596
3596
|
element: N,
|
|
3597
3597
|
type: M,
|
|
3598
3598
|
fn: B
|
|
3599
|
-
}),
|
|
3599
|
+
}), S;
|
|
3600
3600
|
}
|
|
3601
3601
|
function L(N, M, B) {
|
|
3602
|
-
var
|
|
3603
|
-
if (
|
|
3604
|
-
var T = i[
|
|
3605
|
-
return i.splice(
|
|
3602
|
+
var S = g(N, M, B);
|
|
3603
|
+
if (S) {
|
|
3604
|
+
var T = i[S].wrapper;
|
|
3605
|
+
return i.splice(S, 1), T;
|
|
3606
3606
|
}
|
|
3607
3607
|
}
|
|
3608
3608
|
function g(N, M, B) {
|
|
3609
|
-
var
|
|
3610
|
-
for (
|
|
3611
|
-
if (T = i[
|
|
3612
|
-
return
|
|
3609
|
+
var S, T;
|
|
3610
|
+
for (S = 0; S < i.length; S++)
|
|
3611
|
+
if (T = i[S], T.element === N && T.type === M && T.fn === B)
|
|
3612
|
+
return S;
|
|
3613
3613
|
}
|
|
3614
3614
|
}).call(this, typeof ut < "u" ? ut : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
3615
3615
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
3616
3616
|
7: [function(n, o, a) {
|
|
3617
3617
|
(function(l) {
|
|
3618
|
-
var
|
|
3618
|
+
var d = [], m = "", p = /^on/;
|
|
3619
3619
|
for (m in l)
|
|
3620
|
-
p.test(m) &&
|
|
3621
|
-
o.exports =
|
|
3620
|
+
p.test(m) && d.push(m.slice(2));
|
|
3621
|
+
o.exports = d;
|
|
3622
3622
|
}).call(this, typeof ut < "u" ? ut : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
3623
3623
|
}, {}],
|
|
3624
3624
|
8: [function(n, o, a) {
|
|
3625
3625
|
(function(l) {
|
|
3626
|
-
var
|
|
3626
|
+
var d = l.CustomEvent;
|
|
3627
3627
|
function m() {
|
|
3628
3628
|
try {
|
|
3629
|
-
var p = new
|
|
3629
|
+
var p = new d("cat", { detail: { foo: "bar" } });
|
|
3630
3630
|
return p.type === "cat" && p.detail.foo === "bar";
|
|
3631
3631
|
} catch {
|
|
3632
3632
|
}
|
|
3633
3633
|
return !1;
|
|
3634
3634
|
}
|
|
3635
|
-
o.exports = m() ?
|
|
3635
|
+
o.exports = m() ? d : (
|
|
3636
3636
|
// IE >= 9
|
|
3637
3637
|
typeof document < "u" && typeof document.createEvent == "function" ? function(h, v) {
|
|
3638
3638
|
var i = document.createEvent("CustomEvent");
|
|
@@ -3648,7 +3648,7 @@ var Hi = { exports: {} };
|
|
|
3648
3648
|
}).call(this, typeof ut < "u" ? ut : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
3649
3649
|
}, {}],
|
|
3650
3650
|
9: [function(n, o, a) {
|
|
3651
|
-
var l = o.exports = {},
|
|
3651
|
+
var l = o.exports = {}, d, m;
|
|
3652
3652
|
function p() {
|
|
3653
3653
|
throw new Error("setTimeout has not been defined");
|
|
3654
3654
|
}
|
|
@@ -3657,9 +3657,9 @@ var Hi = { exports: {} };
|
|
|
3657
3657
|
}
|
|
3658
3658
|
(function() {
|
|
3659
3659
|
try {
|
|
3660
|
-
typeof setTimeout == "function" ?
|
|
3660
|
+
typeof setTimeout == "function" ? d = setTimeout : d = p;
|
|
3661
3661
|
} catch {
|
|
3662
|
-
|
|
3662
|
+
d = p;
|
|
3663
3663
|
}
|
|
3664
3664
|
try {
|
|
3665
3665
|
typeof clearTimeout == "function" ? m = clearTimeout : m = h;
|
|
@@ -3668,17 +3668,17 @@ var Hi = { exports: {} };
|
|
|
3668
3668
|
}
|
|
3669
3669
|
})();
|
|
3670
3670
|
function v(g) {
|
|
3671
|
-
if (
|
|
3671
|
+
if (d === setTimeout)
|
|
3672
3672
|
return setTimeout(g, 0);
|
|
3673
|
-
if ((
|
|
3674
|
-
return
|
|
3673
|
+
if ((d === p || !d) && setTimeout)
|
|
3674
|
+
return d = setTimeout, setTimeout(g, 0);
|
|
3675
3675
|
try {
|
|
3676
|
-
return
|
|
3676
|
+
return d(g, 0);
|
|
3677
3677
|
} catch {
|
|
3678
3678
|
try {
|
|
3679
|
-
return
|
|
3679
|
+
return d.call(null, g, 0);
|
|
3680
3680
|
} catch {
|
|
3681
|
-
return
|
|
3681
|
+
return d.call(this, g, 0);
|
|
3682
3682
|
}
|
|
3683
3683
|
}
|
|
3684
3684
|
}
|
|
@@ -3698,12 +3698,12 @@ var Hi = { exports: {} };
|
|
|
3698
3698
|
}
|
|
3699
3699
|
}
|
|
3700
3700
|
var c = [], r = !1, f, y = -1;
|
|
3701
|
-
function
|
|
3701
|
+
function w() {
|
|
3702
3702
|
!r || !f || (r = !1, f.length ? c = f.concat(c) : y = -1, c.length && x());
|
|
3703
3703
|
}
|
|
3704
3704
|
function x() {
|
|
3705
3705
|
if (!r) {
|
|
3706
|
-
var g = v(
|
|
3706
|
+
var g = v(w);
|
|
3707
3707
|
r = !0;
|
|
3708
3708
|
for (var N = c.length; N; ) {
|
|
3709
3709
|
for (f = c, c = []; ++y < N; )
|
|
@@ -3742,8 +3742,8 @@ var Hi = { exports: {} };
|
|
|
3742
3742
|
}, {}],
|
|
3743
3743
|
10: [function(n, o, a) {
|
|
3744
3744
|
(function(l) {
|
|
3745
|
-
var
|
|
3746
|
-
|
|
3745
|
+
var d = typeof l == "function", m;
|
|
3746
|
+
d ? m = function(p) {
|
|
3747
3747
|
l(p);
|
|
3748
3748
|
} : m = function(p) {
|
|
3749
3749
|
setTimeout(p, 0);
|
|
@@ -3751,7 +3751,7 @@ var Hi = { exports: {} };
|
|
|
3751
3751
|
}).call(this, n("timers").setImmediate);
|
|
3752
3752
|
}, { timers: 11 }],
|
|
3753
3753
|
11: [function(n, o, a) {
|
|
3754
|
-
(function(l,
|
|
3754
|
+
(function(l, d) {
|
|
3755
3755
|
var m = n("process/browser.js").nextTick, p = Function.prototype.apply, h = Array.prototype.slice, v = {}, i = 0;
|
|
3756
3756
|
a.setTimeout = function() {
|
|
3757
3757
|
return new c(p.call(setTimeout, window, arguments), clearTimeout);
|
|
@@ -3781,7 +3781,7 @@ var Hi = { exports: {} };
|
|
|
3781
3781
|
return v[f] = !0, m(function() {
|
|
3782
3782
|
v[f] && (y ? r.apply(null, y) : r.call(null), a.clearImmediate(f));
|
|
3783
3783
|
}), f;
|
|
3784
|
-
}, a.clearImmediate = typeof
|
|
3784
|
+
}, a.clearImmediate = typeof d == "function" ? d : function(r) {
|
|
3785
3785
|
delete v[r];
|
|
3786
3786
|
};
|
|
3787
3787
|
}).call(this, n("timers").setImmediate, n("timers").clearImmediate);
|
|
@@ -3814,25 +3814,25 @@ const zi = {
|
|
|
3814
3814
|
const {
|
|
3815
3815
|
locale: n,
|
|
3816
3816
|
t: o
|
|
3817
|
-
} = Wt(), a = C(e.animate), l = "fadeOut",
|
|
3817
|
+
} = Wt(), a = C(e.animate), l = "fadeOut", d = H(() => e.options), m = C(!1), p = H(() => d.value.title && d.value.message), h = H(() => !d.value.title && d.value.message), v = H(() => {
|
|
3818
3818
|
const g = {
|
|
3819
3819
|
animated: m.value,
|
|
3820
3820
|
toast: !0,
|
|
3821
3821
|
"toast--only-content": !p.value
|
|
3822
3822
|
};
|
|
3823
|
-
return g[e.animate] = !1, g[l] = m.value, g["toasty-type-" +
|
|
3823
|
+
return g[e.animate] = !1, g[l] = m.value, g["toasty-type-" + d.value.type] = !0, d.value.theme && (g[d.value.theme] = !0), g;
|
|
3824
3824
|
}), i = H(() => {
|
|
3825
|
-
const M = `f-icon-${
|
|
3825
|
+
const M = `f-icon-${d.value && d.value.type ? d.value.type.replace("toasty-type-", "") : "default"}`, B = {
|
|
3826
3826
|
"f-icon": !0
|
|
3827
3827
|
};
|
|
3828
3828
|
return B[M] = !0, B;
|
|
3829
|
-
}), c = H(() =>
|
|
3829
|
+
}), c = H(() => d.value.title || d.value.message), r = H(() => e.showCloseButton), f = H(() => !!d.value.buttons || !!t.slots.default), y = H(() => n.value === "en" ? {
|
|
3830
3830
|
wordBreak: "keep-all",
|
|
3831
3831
|
overflowWrap: "break-word"
|
|
3832
3832
|
} : {});
|
|
3833
|
-
function
|
|
3833
|
+
function w(g) {
|
|
3834
3834
|
g.stopPropagation(), g.preventDefault(), m.value = !1, setTimeout(() => {
|
|
3835
|
-
t.emit("close",
|
|
3835
|
+
t.emit("close", d.value);
|
|
3836
3836
|
}, 200);
|
|
3837
3837
|
}
|
|
3838
3838
|
function x(g, N) {
|
|
@@ -3847,7 +3847,7 @@ const zi = {
|
|
|
3847
3847
|
var g;
|
|
3848
3848
|
return s(it, null, [s("div", {
|
|
3849
3849
|
class: "after-toast-msg text-right"
|
|
3850
|
-
}, [!t.slots.default && ((g =
|
|
3850
|
+
}, [!t.slots.default && ((g = d.value.buttons) == null ? void 0 : g.map((N) => s("span", {
|
|
3851
3851
|
class: E(N),
|
|
3852
3852
|
onClick: (M) => void 0
|
|
3853
3853
|
}, [N.text]))), t.slots.default && t.slots.default()])]);
|
|
@@ -3858,7 +3858,7 @@ const zi = {
|
|
|
3858
3858
|
}, [r.value && s("button", {
|
|
3859
3859
|
title: o("messageBox.close"),
|
|
3860
3860
|
class: "toast-close f-btn-icon f-bare",
|
|
3861
|
-
onClick:
|
|
3861
|
+
onClick: w
|
|
3862
3862
|
}, [s("span", {
|
|
3863
3863
|
class: "f-icon modal_close"
|
|
3864
3864
|
}, null)]), c.value && s("section", {
|
|
@@ -3871,23 +3871,23 @@ const zi = {
|
|
|
3871
3871
|
class: "modal-tips-content"
|
|
3872
3872
|
}, [p.value && s(it, null, [s("h5", {
|
|
3873
3873
|
class: "toast-title modal-tips-title",
|
|
3874
|
-
innerHTML:
|
|
3874
|
+
innerHTML: d.value.title
|
|
3875
3875
|
}, null), s("p", {
|
|
3876
3876
|
class: "toast-msg",
|
|
3877
|
-
innerHTML:
|
|
3877
|
+
innerHTML: d.value.message,
|
|
3878
3878
|
style: y.value
|
|
3879
|
-
}, null), f.value && L()]), h.value && (
|
|
3879
|
+
}, null), f.value && L()]), h.value && (d.value.buttons ? s("div", {
|
|
3880
3880
|
class: "toast-title-btns-wrapper d-flex"
|
|
3881
3881
|
}, [s("h5", {
|
|
3882
3882
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
3883
3883
|
style: y.value,
|
|
3884
|
-
innerHTML:
|
|
3884
|
+
innerHTML: d.value.message
|
|
3885
3885
|
}, null), s("div", {
|
|
3886
3886
|
class: "after-toast-title text-right ml-auto"
|
|
3887
3887
|
}, [L()])]) : s("h5", {
|
|
3888
3888
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
3889
3889
|
style: y.value,
|
|
3890
|
-
innerHTML:
|
|
3890
|
+
innerHTML: d.value.message
|
|
3891
3891
|
}, null))])])]);
|
|
3892
3892
|
}
|
|
3893
3893
|
}), It = /* @__PURE__ */ Fe({
|
|
@@ -3902,7 +3902,7 @@ const zi = {
|
|
|
3902
3902
|
right: 12,
|
|
3903
3903
|
top: 20,
|
|
3904
3904
|
bottom: 12
|
|
3905
|
-
}, a = C(), l = C(e.options),
|
|
3905
|
+
}, a = C(), l = C(e.options), d = C(e.showCloseButton), m = H(() => e.position || "bottom-right"), p = H(() => e.timeout != null ? e.timeout : 3e3), h = H(() => {
|
|
3906
3906
|
const c = e.bottom ? e.bottom : o.bottom, r = e.top ? e.top : o.top, f = {
|
|
3907
3907
|
transition: "all 0.2s ease",
|
|
3908
3908
|
left: m.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
@@ -3931,7 +3931,7 @@ const zi = {
|
|
|
3931
3931
|
ref: a
|
|
3932
3932
|
}, [s(zt, {
|
|
3933
3933
|
options: l.value,
|
|
3934
|
-
showCloseButton:
|
|
3934
|
+
showCloseButton: d.value,
|
|
3935
3935
|
animate: e.animate,
|
|
3936
3936
|
onClose: (c) => i(c, l.value)
|
|
3937
3937
|
}, null)]);
|
|
@@ -3958,13 +3958,13 @@ class qi {
|
|
|
3958
3958
|
...t
|
|
3959
3959
|
}), l = document.createElement("div");
|
|
3960
3960
|
l.style.display = "contents";
|
|
3961
|
-
const
|
|
3961
|
+
const d = dn({
|
|
3962
3962
|
setup() {
|
|
3963
3963
|
var h;
|
|
3964
3964
|
const m = C();
|
|
3965
3965
|
function p() {
|
|
3966
3966
|
m.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
3967
|
-
n.updateNotifyPositionForClose(a, m),
|
|
3967
|
+
n.updateNotifyPositionForClose(a, m), d.unmount();
|
|
3968
3968
|
}, 220);
|
|
3969
3969
|
}
|
|
3970
3970
|
if (a.position.indexOf("top") > -1) {
|
|
@@ -3991,7 +3991,7 @@ class qi {
|
|
|
3991
3991
|
});
|
|
3992
3992
|
}
|
|
3993
3993
|
});
|
|
3994
|
-
return
|
|
3994
|
+
return d.provide("NotifyService", this), document.body.appendChild(l), d.use(Lt.i18n), d.mount(l), d;
|
|
3995
3995
|
}
|
|
3996
3996
|
getNotifyInstances(t) {
|
|
3997
3997
|
return this.notifyRefs.filter((n) => n.value.notifyPosition === t);
|
|
@@ -4010,8 +4010,8 @@ class qi {
|
|
|
4010
4010
|
const o = this.notifyRefs.indexOf(n);
|
|
4011
4011
|
if (t.position.indexOf("top") > -1) {
|
|
4012
4012
|
const a = this.getNotifyInstances(t.position), l = a.indexOf(n);
|
|
4013
|
-
a.slice(l + 1).forEach((
|
|
4014
|
-
|
|
4013
|
+
a.slice(l + 1).forEach((d) => {
|
|
4014
|
+
d.value.container.style.top = d.value.container.offsetTop - d.value.container.offsetHeight + "px";
|
|
4015
4015
|
});
|
|
4016
4016
|
}
|
|
4017
4017
|
o > -1 && this.notifyRefs.splice(o, 1);
|
|
@@ -4020,8 +4020,8 @@ class qi {
|
|
|
4020
4020
|
return this.createNotifyInstance(t);
|
|
4021
4021
|
}
|
|
4022
4022
|
buildNotifyProps(t, n) {
|
|
4023
|
-
let o = "", a = "", l,
|
|
4024
|
-
typeof n == "string" ? o = n : n && (o = n.message || "", a = n.title || "",
|
|
4023
|
+
let o = "", a = "", l, d, m;
|
|
4024
|
+
typeof n == "string" ? o = n : n && (o = n.message || "", a = n.title || "", d = n.position || null, m = n.showCloseButton != null ? n.showCloseButton : null, l = n.timeout != null ? n.timeout : null);
|
|
4025
4025
|
const h = {
|
|
4026
4026
|
options: {
|
|
4027
4027
|
type: t,
|
|
@@ -4029,7 +4029,7 @@ class qi {
|
|
|
4029
4029
|
title: a
|
|
4030
4030
|
}
|
|
4031
4031
|
};
|
|
4032
|
-
return
|
|
4032
|
+
return d != null && (h.position = d), m != null && (h.showCloseButton = m), l != null && (h.timeout = l), h;
|
|
4033
4033
|
}
|
|
4034
4034
|
info(t) {
|
|
4035
4035
|
const n = this.buildNotifyProps("info", t);
|
|
@@ -4212,25 +4212,25 @@ const Gi = {
|
|
|
4212
4212
|
}
|
|
4213
4213
|
}
|
|
4214
4214
|
};
|
|
4215
|
-
function Wi(e, t, n, o, a, l,
|
|
4215
|
+
function Wi(e, t, n, o, a, l, d, m, p, h, v, i, c, r, f, y, w) {
|
|
4216
4216
|
const {
|
|
4217
4217
|
calculateCellPositionInRow: x
|
|
4218
4218
|
} = l, {
|
|
4219
4219
|
columnContext: E,
|
|
4220
4220
|
hasLeftFixedColumn: L,
|
|
4221
4221
|
hasRightFixedColumn: g
|
|
4222
|
-
} =
|
|
4222
|
+
} = d, {
|
|
4223
4223
|
gridDataStyle: N,
|
|
4224
4224
|
leftFixedGridDataStyle: M,
|
|
4225
4225
|
rightFixedGridDataStyle: B
|
|
4226
4226
|
} = r, {
|
|
4227
|
-
renderDataRow:
|
|
4228
|
-
} = xa(e, t, E,
|
|
4227
|
+
renderDataRow: S
|
|
4228
|
+
} = xa(e, t, E, w, m, p, h, v, i, c, r, f, y), T = [S];
|
|
4229
4229
|
function b(j, P) {
|
|
4230
4230
|
const A = x(j);
|
|
4231
|
-
return
|
|
4231
|
+
return w.value.filter((I) => I.visible !== !1).map((I, V) => T[I.type](I, A, P, V));
|
|
4232
4232
|
}
|
|
4233
|
-
function
|
|
4233
|
+
function u() {
|
|
4234
4234
|
return s("div", {
|
|
4235
4235
|
ref: o,
|
|
4236
4236
|
class: "fv-grid-content-left-fixed"
|
|
@@ -4259,7 +4259,7 @@ function Wi(e, t, n, o, a, l, u, m, p, h, v, i, c, r, f, y, S) {
|
|
|
4259
4259
|
}
|
|
4260
4260
|
function O() {
|
|
4261
4261
|
const j = [];
|
|
4262
|
-
return L.value && j.push(
|
|
4262
|
+
return L.value && j.push(u()), j.push(F()), g.value && j.push(k()), j;
|
|
4263
4263
|
}
|
|
4264
4264
|
return {
|
|
4265
4265
|
renderDataArea: O
|
|
@@ -4271,19 +4271,19 @@ const Yi = /* @__PURE__ */ Fe({
|
|
|
4271
4271
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged", "selectionUpdate"],
|
|
4272
4272
|
setup(e, t) {
|
|
4273
4273
|
var Qt, Zt;
|
|
4274
|
-
const o = ((Qt = e.rowOption) == null ? void 0 : Qt.height) || 28, a = C(20), l = C(e.columns),
|
|
4274
|
+
const o = ((Qt = e.rowOption) == null ? void 0 : Qt.height) || 28, a = C(20), l = C(e.columns), d = Fa(e), {
|
|
4275
4275
|
idField: m
|
|
4276
|
-
} =
|
|
4276
|
+
} = d, p = C(), h = C(), v = C(), i = C(), c = C(), r = C([]), f = C(!1), y = C(((Zt = e.rowOption) == null ? void 0 : Zt.wrapContent) || !1), w = Ea(e, d), x = Ta(e, t), E = Ma(e), {
|
|
4277
4277
|
collapseField: L
|
|
4278
4278
|
} = E, {
|
|
4279
4279
|
showLoading: g,
|
|
4280
4280
|
renderLoading: N
|
|
4281
|
-
} = Ba(e, p), M = ka(e, /* @__PURE__ */ new Map(), x, E,
|
|
4281
|
+
} = Ba(e, p), M = ka(e, /* @__PURE__ */ new Map(), x, E, d), {
|
|
4282
4282
|
dataView: B
|
|
4283
|
-
} = M,
|
|
4283
|
+
} = M, S = Ia(e, M, d, r, t), {
|
|
4284
4284
|
showSelection: T,
|
|
4285
4285
|
selectedValues: b
|
|
4286
|
-
} =
|
|
4286
|
+
} = S, u = Na(e, r, M, d, S, t), F = H(() => e.disabled), k = H(() => e.virtualized ? Math.min(M.dataView.value.length, a.value) : M.dataView.value.length), O = Pa(e, M), {
|
|
4287
4287
|
shouldRenderPagination: j
|
|
4288
4288
|
} = O, {
|
|
4289
4289
|
containerStyleObject: P
|
|
@@ -4302,9 +4302,9 @@ const Yi = /* @__PURE__ */ Fe({
|
|
|
4302
4302
|
updateColumnRenderContext: ne
|
|
4303
4303
|
} = q;
|
|
4304
4304
|
ie(M, $);
|
|
4305
|
-
const he = Da(e, ce), xe = ja(e, t,
|
|
4305
|
+
const he = Da(e, ce), xe = ja(e, t, S, d), ue = Aa(e, t, d, xe, r), K = Ha(e), fe = za(e, ue, K), Ge = _a(e, M, ue, E, d, K, fe), qe = qa(e, l, M, k, 0, Ge), {
|
|
4306
4306
|
getVisualData: Le
|
|
4307
|
-
} = qe, Qe = Ua(e, ce), We = Ga(e,
|
|
4307
|
+
} = qe, Qe = Ua(e, ce), We = Ga(e, S), {
|
|
4308
4308
|
sidebarWidth: Ye
|
|
4309
4309
|
} = We, ye = Wa(e, M, r, ce, qe, k, 0, Ye), {
|
|
4310
4310
|
onWheel: Ze,
|
|
@@ -4315,7 +4315,7 @@ const Yi = /* @__PURE__ */ Fe({
|
|
|
4315
4315
|
updateVisibleRowsOnLatestVisibleScope: ee
|
|
4316
4316
|
} = ye, oe = Ya(e, ce, h, Ne, he), {
|
|
4317
4317
|
calculateColumnsSize: ae
|
|
4318
|
-
} = oe, de = Xa(), be = Ja(h, c, M, de, ye), Ee = Qa(e, t, q, M, he,
|
|
4318
|
+
} = oe, de = Xa(), be = Ja(h, c, M, de, ye), Ee = Qa(e, t, q, M, he, w, ye), D = H(() => {
|
|
4319
4319
|
const Z = {
|
|
4320
4320
|
"fv-grid": !0,
|
|
4321
4321
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -4329,13 +4329,13 @@ const Yi = /* @__PURE__ */ Fe({
|
|
|
4329
4329
|
"fv-grid-wrap-content": y.value
|
|
4330
4330
|
})), {
|
|
4331
4331
|
renderDataArea: Ce
|
|
4332
|
-
} = Wi(e, t, v, i, c, Qe, q, M, ue, E, xe,
|
|
4332
|
+
} = Wi(e, t, v, i, c, Qe, q, M, ue, E, xe, S, u, ye, qe, K, r), {
|
|
4333
4333
|
renderGridHeader: Se,
|
|
4334
4334
|
renderGridColumnResizeOverlay: Ve,
|
|
4335
4335
|
shouldShowHeader: Ue
|
|
4336
|
-
} = Za(e, t, h, i, c, q, M, Ee, be, x, de, oe, he,
|
|
4336
|
+
} = Za(e, t, h, i, c, q, M, Ee, be, x, de, oe, he, S, We, $, ye, Ne, r), {
|
|
4337
4337
|
renderDataGridSidebar: lt
|
|
4338
|
-
} = Ka(e, xe,
|
|
4338
|
+
} = Ka(e, xe, S, We, ye), {
|
|
4339
4339
|
renderDisableMask: st
|
|
4340
4340
|
} = er(), {
|
|
4341
4341
|
renderHorizontalScrollbar: pe
|
|
@@ -4364,7 +4364,7 @@ const Yi = /* @__PURE__ */ Fe({
|
|
|
4364
4364
|
M.expandTo(Z), M.reOrderVisibleIndex(), z();
|
|
4365
4365
|
}
|
|
4366
4366
|
function bt() {
|
|
4367
|
-
const Z =
|
|
4367
|
+
const Z = S.getSelectionRow();
|
|
4368
4368
|
return Z ? Z.dataIndex - 1 : -1;
|
|
4369
4369
|
}
|
|
4370
4370
|
function Rt() {
|
|
@@ -4380,8 +4380,8 @@ const Yi = /* @__PURE__ */ Fe({
|
|
|
4380
4380
|
M.insertNewChildDataItems(Z, Oe);
|
|
4381
4381
|
}
|
|
4382
4382
|
function Dt() {
|
|
4383
|
-
const Z = bt(), le =
|
|
4384
|
-
M.removeHierarchyDataItem(Z), r.value = Le(0, k.value + 0 - 1), le &&
|
|
4383
|
+
const Z = bt(), le = u.getNextSelectableHierarchyItemId(Z);
|
|
4384
|
+
M.removeHierarchyDataItem(Z), r.value = Le(0, k.value + 0 - 1), le && u.selectItemById(le);
|
|
4385
4385
|
}
|
|
4386
4386
|
function Mt(Z) {
|
|
4387
4387
|
ue.onEditingRow(Z);
|
|
@@ -4402,35 +4402,35 @@ const Yi = /* @__PURE__ */ Fe({
|
|
|
4402
4402
|
Z && (M.load(Z), M.reOrderVisibleIndex(), le != null && le.keepScrollPosition ? ye.scrollTo(ye.offsetY.value) : z());
|
|
4403
4403
|
}
|
|
4404
4404
|
function te(Z) {
|
|
4405
|
-
|
|
4405
|
+
u.selectItemById(Z);
|
|
4406
4406
|
}
|
|
4407
4407
|
function me(Z) {
|
|
4408
|
-
const le = r.value.find((ke) => ke.raw[
|
|
4408
|
+
const le = r.value.find((ke) => ke.raw[d.idField.value] === Z);
|
|
4409
4409
|
le && xe.clickRowItem(le);
|
|
4410
4410
|
}
|
|
4411
4411
|
function ve(Z) {
|
|
4412
4412
|
xe.activeRowById(Z);
|
|
4413
4413
|
}
|
|
4414
4414
|
function Xe(Z) {
|
|
4415
|
-
|
|
4415
|
+
u.selectItemByIds(Z);
|
|
4416
4416
|
}
|
|
4417
4417
|
function $e() {
|
|
4418
|
-
return
|
|
4418
|
+
return S.getSelectedItems();
|
|
4419
4419
|
}
|
|
4420
4420
|
function He() {
|
|
4421
|
-
|
|
4421
|
+
S.clearSelection();
|
|
4422
4422
|
}
|
|
4423
4423
|
const et = H(() => !r.value || !r.value.length), {
|
|
4424
4424
|
renderEmpty: Be
|
|
4425
4425
|
} = or(e, t);
|
|
4426
4426
|
function tt() {
|
|
4427
|
-
return
|
|
4427
|
+
return S.getSelectionRow();
|
|
4428
4428
|
}
|
|
4429
4429
|
function ze(Z) {
|
|
4430
|
-
|
|
4430
|
+
u.unSelectItemByIds(Z);
|
|
4431
4431
|
}
|
|
4432
4432
|
function Pe() {
|
|
4433
|
-
return
|
|
4433
|
+
return S.currentSelectedDataId.value;
|
|
4434
4434
|
}
|
|
4435
4435
|
function Ct(Z, le, ke) {
|
|
4436
4436
|
const Oe = B.value.find((_e) => _e[m.value] === Z);
|
|
@@ -4480,11 +4480,11 @@ const Yi = /* @__PURE__ */ Fe({
|
|
|
4480
4480
|
return r.value.filter((le) => Z.includes(le.raw[e.idField]));
|
|
4481
4481
|
}
|
|
4482
4482
|
function Vn(Z) {
|
|
4483
|
-
const le =
|
|
4483
|
+
const le = d.idField.value, ke = r.value.find((Oe) => Oe.raw[le] === Z);
|
|
4484
4484
|
ke && xe.changeRow(ke);
|
|
4485
4485
|
}
|
|
4486
4486
|
function $n() {
|
|
4487
|
-
|
|
4487
|
+
S.keepSelectingOnPaging.value || He(), M.updateVisibleDataSummary(r.value);
|
|
4488
4488
|
}
|
|
4489
4489
|
t.expose({
|
|
4490
4490
|
activeRowById: ve,
|
|
@@ -4522,7 +4522,7 @@ const Yi = /* @__PURE__ */ Fe({
|
|
|
4522
4522
|
...P.value,
|
|
4523
4523
|
borderRadius: "5px"
|
|
4524
4524
|
}));
|
|
4525
|
-
ar(e, t, M, ye, O,
|
|
4525
|
+
ar(e, t, M, ye, O, S);
|
|
4526
4526
|
const An = H(() => ({
|
|
4527
4527
|
"d-flex": !0,
|
|
4528
4528
|
"justify-content-between": j.value && T.value,
|
|
@@ -4994,7 +4994,7 @@ class vt {
|
|
|
4994
4994
|
}
|
|
4995
4995
|
}
|
|
4996
4996
|
function El(e, t) {
|
|
4997
|
-
const n = C(), o = C(), a = C(), l = C(),
|
|
4997
|
+
const n = C(), o = C(), a = C(), l = C(), d = C(), m = C(), p = C(), h = C(), v = C(), i = C(), c = C(), r = C(e.resizeable), f = C(), y = C(e.draggable), w = C(!1);
|
|
4998
4998
|
function x() {
|
|
4999
4999
|
const I = o.value || document.body, V = window.getComputedStyle(I);
|
|
5000
5000
|
if (!V || !n.value)
|
|
@@ -5006,7 +5006,7 @@ function El(e, t) {
|
|
|
5006
5006
|
}
|
|
5007
5007
|
function E(I) {
|
|
5008
5008
|
if (n.value) {
|
|
5009
|
-
l.value = vt.getCurrent(n.value),
|
|
5009
|
+
l.value = vt.getCurrent(n.value), d.value = Te.getCurrent(n.value), m.value = l.value ? vt.copy(l.value) : null, p.value = d.value ? Te.copy(d.value) : null, x();
|
|
5010
5010
|
const V = I.target.getAttribute("type") || "";
|
|
5011
5011
|
h.value = {
|
|
5012
5012
|
n: !!V.match(/n/),
|
|
@@ -5025,23 +5025,23 @@ function El(e, t) {
|
|
|
5025
5025
|
}
|
|
5026
5026
|
function g() {
|
|
5027
5027
|
const I = e.minHeight ? e.minHeight : 1, V = e.minWidth ? e.minWidth : 1;
|
|
5028
|
-
m.value && p.value && h.value && l.value && (m.value.height < I && (m.value.height = I, h.value.n &&
|
|
5028
|
+
m.value && p.value && h.value && l.value && (m.value.height < I && (m.value.height = I, h.value.n && d.value && (p.value.y = d.value.y + (l.value.height - I))), m.value.width < V && (m.value.width = V, h.value.w && d.value && (p.value.x = d.value.x + (l.value.width - V))), e.maxHeight && m.value.height > e.maxHeight && (m.value.height = e.maxHeight, d.value && h.value.n && (p.value.y = d.value.y + (l.value.height - e.maxHeight))), e.maxWidth && m.value.width > e.maxWidth && (m.value.width = e.maxWidth, h.value.w && d.value && (p.value.x = d.value.x + (l.value.width - e.maxWidth))));
|
|
5029
5029
|
}
|
|
5030
5030
|
function N() {
|
|
5031
5031
|
if (o.value) {
|
|
5032
5032
|
const I = i.value;
|
|
5033
5033
|
if (p.value && m.value && h.value && l.value) {
|
|
5034
5034
|
const V = I.width - I.pr - I.deltaL - I.translateX - p.value.x, J = I.height - I.pb - I.deltaT - I.translateY - p.value.y;
|
|
5035
|
-
h.value.n && p.value.y + I.translateY < 0 &&
|
|
5035
|
+
h.value.n && p.value.y + I.translateY < 0 && d.value && (p.value.y = -I.translateY, m.value.height = l.value.height + d.value.y + I.translateY), h.value.w && p.value.x + I.translateX < 0 && d.value && (p.value.x = -I.translateX, m.value.width = l.value.width + d.value.x + I.translateX), m.value.width > V && (m.value.width = V), m.value.height > J && (m.value.height = J);
|
|
5036
5036
|
}
|
|
5037
5037
|
}
|
|
5038
5038
|
}
|
|
5039
5039
|
function M(I) {
|
|
5040
|
-
if (!a.value || !l.value || !
|
|
5040
|
+
if (!a.value || !l.value || !d.value || !h.value)
|
|
5041
5041
|
return;
|
|
5042
5042
|
I.subtract(a.value);
|
|
5043
5043
|
const V = I.x, J = I.y;
|
|
5044
|
-
h.value.n ? (p.value.y =
|
|
5044
|
+
h.value.n ? (p.value.y = d.value.y + J, m.value.height = l.value.height - J) : h.value.s && (m.value.height = l.value.height + J), h.value.e ? m.value.width = l.value.width + V : h.value.w && (m.value.width = l.value.width - V, p.value.x = d.value.x + V), N(), g(), L();
|
|
5045
5045
|
}
|
|
5046
5046
|
function B(I) {
|
|
5047
5047
|
if (!v.value)
|
|
@@ -5049,7 +5049,7 @@ function El(e, t) {
|
|
|
5049
5049
|
const V = Te.fromEvent(I);
|
|
5050
5050
|
V && M(V);
|
|
5051
5051
|
}
|
|
5052
|
-
function
|
|
5052
|
+
function S() {
|
|
5053
5053
|
if (n.value) {
|
|
5054
5054
|
const {
|
|
5055
5055
|
width: I,
|
|
@@ -5072,62 +5072,62 @@ function El(e, t) {
|
|
|
5072
5072
|
}
|
|
5073
5073
|
function T(I) {
|
|
5074
5074
|
if (n.value) {
|
|
5075
|
-
const V =
|
|
5075
|
+
const V = S();
|
|
5076
5076
|
c.value = V;
|
|
5077
5077
|
}
|
|
5078
|
-
a.value = void 0, l.value = null,
|
|
5078
|
+
a.value = void 0, l.value = null, d.value = null, m.value = null, p.value = null, h.value = null, v.value = null, document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", T);
|
|
5079
5079
|
}
|
|
5080
5080
|
function b() {
|
|
5081
5081
|
document.addEventListener("mousemove", B), document.addEventListener("mouseup", T);
|
|
5082
5082
|
}
|
|
5083
|
-
function
|
|
5083
|
+
function u(I) {
|
|
5084
5084
|
I instanceof MouseEvent && I.button === 2 || y.value && (document.body.click(), I.stopPropagation(), I.preventDefault(), a.value = Te.fromEvent(I), v.value = I.target, E(I), b());
|
|
5085
5085
|
}
|
|
5086
5086
|
function F(I) {
|
|
5087
5087
|
return n.value = I, r.value && s(it, null, [s("div", {
|
|
5088
5088
|
class: "fv-resizable-handle fv-resizable-n",
|
|
5089
5089
|
type: "n",
|
|
5090
|
-
onMousedown: (V) =>
|
|
5090
|
+
onMousedown: (V) => u(V)
|
|
5091
5091
|
}, null), s("div", {
|
|
5092
5092
|
class: "fv-resizable-handle fv-resizable-e",
|
|
5093
5093
|
type: "e",
|
|
5094
|
-
onMousedown: (V) =>
|
|
5094
|
+
onMousedown: (V) => u(V)
|
|
5095
5095
|
}, null), s("div", {
|
|
5096
5096
|
class: "fv-resizable-handle fv-resizable-s",
|
|
5097
5097
|
type: "s",
|
|
5098
|
-
onMousedown: (V) =>
|
|
5098
|
+
onMousedown: (V) => u(V)
|
|
5099
5099
|
}, null), s("div", {
|
|
5100
5100
|
class: "fv-resizable-handle fv-resizable-w",
|
|
5101
5101
|
type: "w",
|
|
5102
|
-
onMousedown: (V) =>
|
|
5102
|
+
onMousedown: (V) => u(V)
|
|
5103
5103
|
}, null), s("div", {
|
|
5104
5104
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
5105
5105
|
type: "ne",
|
|
5106
|
-
onMousedown: (V) =>
|
|
5106
|
+
onMousedown: (V) => u(V)
|
|
5107
5107
|
}, null), s("div", {
|
|
5108
5108
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
5109
5109
|
type: "se",
|
|
5110
|
-
onMousedown: (V) =>
|
|
5110
|
+
onMousedown: (V) => u(V)
|
|
5111
5111
|
}, null), s("div", {
|
|
5112
5112
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
5113
5113
|
type: "sw",
|
|
5114
|
-
onMousedown: (V) =>
|
|
5114
|
+
onMousedown: (V) => u(V)
|
|
5115
5115
|
}, null), s("div", {
|
|
5116
5116
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
5117
5117
|
type: "nw",
|
|
5118
|
-
onMousedown: (V) =>
|
|
5118
|
+
onMousedown: (V) => u(V)
|
|
5119
5119
|
}, null)]);
|
|
5120
5120
|
}
|
|
5121
5121
|
function k(I = !0) {
|
|
5122
5122
|
document.body.click();
|
|
5123
5123
|
const V = o.value || document.body, J = vt.getCurrent(V), q = n.value;
|
|
5124
|
-
I && q && (f.value =
|
|
5124
|
+
I && q && (f.value = S(), f.value.transform = q.style.transform), J && q && (m.value = J, m.value.height -= 14, m.value.width -= 14, q.style.height = m.value.height + "px", q.style.width = m.value.width + "px", q.style.left = "7px", q.style.top = "7px", q.style.transform = "", c.value = {
|
|
5125
5125
|
size: m.value,
|
|
5126
5126
|
position: {
|
|
5127
5127
|
x: 0,
|
|
5128
5128
|
y: 0
|
|
5129
5129
|
}
|
|
5130
|
-
}, y.value = !1,
|
|
5130
|
+
}, y.value = !1, w.value = !0);
|
|
5131
5131
|
}
|
|
5132
5132
|
function O() {
|
|
5133
5133
|
var I, V;
|
|
@@ -5144,7 +5144,7 @@ function El(e, t) {
|
|
|
5144
5144
|
$.style.height = J.height + "px", $.style.width = J.width + "px", $.style.left = `${q.x}px`, $.style.top = `${q.y}px`, $.style.transform = "", c.value = {
|
|
5145
5145
|
size: J,
|
|
5146
5146
|
position: q
|
|
5147
|
-
}, y.value = e.draggable,
|
|
5147
|
+
}, y.value = e.draggable, w.value = !1;
|
|
5148
5148
|
}
|
|
5149
5149
|
}
|
|
5150
5150
|
function j() {
|
|
@@ -5161,7 +5161,7 @@ function El(e, t) {
|
|
|
5161
5161
|
}
|
|
5162
5162
|
function P() {
|
|
5163
5163
|
const I = () => {
|
|
5164
|
-
|
|
5164
|
+
w.value ? k(!1) : j(), document.body.click();
|
|
5165
5165
|
};
|
|
5166
5166
|
return window.addEventListener("resize", I), () => {
|
|
5167
5167
|
window.removeEventListener("resize", I);
|
|
@@ -5175,56 +5175,56 @@ function El(e, t) {
|
|
|
5175
5175
|
maximize: k,
|
|
5176
5176
|
restore: O,
|
|
5177
5177
|
allowDrag: y,
|
|
5178
|
-
isMaximized:
|
|
5178
|
+
isMaximized: w,
|
|
5179
5179
|
unWindowResizeHandle: A,
|
|
5180
5180
|
moveToCenter: j
|
|
5181
5181
|
};
|
|
5182
5182
|
}
|
|
5183
5183
|
function Tl(e, t, n) {
|
|
5184
|
-
const o = C(), a = C(e.draggable), l = C(e.lockAxis),
|
|
5184
|
+
const o = C(), a = C(e.draggable), l = C(e.lockAxis), d = C(), m = C(), p = C(!1), h = C(new Te(0, 0)), v = C(new Te(0, 0)), i = C(new Te(0, 0)), c = C(new Te(0, 0));
|
|
5185
5185
|
Me(() => n.value, (B) => {
|
|
5186
|
-
|
|
5186
|
+
d.value.style.cursor = B ? "move" : "default";
|
|
5187
5187
|
});
|
|
5188
|
-
function r(B,
|
|
5189
|
-
if (
|
|
5188
|
+
function r(B, S) {
|
|
5189
|
+
if (S.tagName === "BUTTON")
|
|
5190
5190
|
return !1;
|
|
5191
|
-
if (
|
|
5191
|
+
if (S === B)
|
|
5192
5192
|
return !0;
|
|
5193
|
-
for (const T in
|
|
5194
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
5193
|
+
for (const T in S.children)
|
|
5194
|
+
if (Object.prototype.hasOwnProperty.call(S.children, T) && r(B, S.children[T]))
|
|
5195
5195
|
return !0;
|
|
5196
5196
|
return !1;
|
|
5197
5197
|
}
|
|
5198
5198
|
function f() {
|
|
5199
|
-
var b,
|
|
5200
|
-
let B = i.value.x + v.value.x,
|
|
5201
|
-
l.value === "x" ? (B = ((b = h.value) == null ? void 0 : b.x) || 0, i.value.x = 0) : l.value === "y" && (
|
|
5202
|
-
const T = `translate3d(${Math.round(B)}px, ${Math.round(
|
|
5203
|
-
o.value && (o.value.style.transform = T), c.value.x = B, c.value.y =
|
|
5199
|
+
var b, u;
|
|
5200
|
+
let B = i.value.x + v.value.x, S = i.value.y + v.value.y;
|
|
5201
|
+
l.value === "x" ? (B = ((b = h.value) == null ? void 0 : b.x) || 0, i.value.x = 0) : l.value === "y" && (S = ((u = h.value) == null ? void 0 : u.y) || 0, i.value.y = 0);
|
|
5202
|
+
const T = `translate3d(${Math.round(B)}px, ${Math.round(S)}px, 0px)`;
|
|
5203
|
+
o.value && (o.value.style.transform = T), c.value.x = B, c.value.y = S;
|
|
5204
5204
|
}
|
|
5205
5205
|
function y() {
|
|
5206
5206
|
if (!m.value || !o.value)
|
|
5207
5207
|
return null;
|
|
5208
|
-
const B = m.value.getBoundingClientRect(),
|
|
5209
|
-
top: B.top <
|
|
5210
|
-
right: B.right >
|
|
5211
|
-
bottom: B.bottom >
|
|
5212
|
-
left: B.left <
|
|
5208
|
+
const B = m.value.getBoundingClientRect(), S = o.value.getBoundingClientRect(), T = {
|
|
5209
|
+
top: B.top < S.top,
|
|
5210
|
+
right: B.right > S.right,
|
|
5211
|
+
bottom: B.bottom > S.bottom,
|
|
5212
|
+
left: B.left < S.left
|
|
5213
5213
|
};
|
|
5214
|
-
return T.top || (i.value.y -=
|
|
5214
|
+
return T.top || (i.value.y -= S.top - B.top), T.bottom || (i.value.y -= S.bottom - B.bottom), T.right || (i.value.x -= S.right - B.right), T.left || (i.value.x -= S.left - B.left), f(), T;
|
|
5215
5215
|
}
|
|
5216
|
-
function
|
|
5216
|
+
function w(B) {
|
|
5217
5217
|
B && (h.value && B.subtract(h.value), i.value.set(B), f(), y());
|
|
5218
5218
|
}
|
|
5219
5219
|
function x(B) {
|
|
5220
|
-
p.value && a.value && (B.stopPropagation(), B.preventDefault(),
|
|
5220
|
+
p.value && a.value && (B.stopPropagation(), B.preventDefault(), w(Te.fromEvent(B, d.value)));
|
|
5221
5221
|
}
|
|
5222
5222
|
function E() {
|
|
5223
5223
|
var B;
|
|
5224
5224
|
p.value && (p.value = !1, v.value.add(i.value), i.value.reset(), (B = o.value) == null || B.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", E));
|
|
5225
5225
|
}
|
|
5226
5226
|
function L() {
|
|
5227
|
-
!p.value &&
|
|
5227
|
+
!p.value && d.value && (p.value = !0, d.value.classList.add("ng-dragging"), document.addEventListener("mousemove", x), document.addEventListener("mouseup", E));
|
|
5228
5228
|
}
|
|
5229
5229
|
function g() {
|
|
5230
5230
|
if (o.value) {
|
|
@@ -5237,22 +5237,22 @@ function Tl(e, t, n) {
|
|
|
5237
5237
|
function N(B) {
|
|
5238
5238
|
if (!n.value || B instanceof MouseEvent && B.button === 2)
|
|
5239
5239
|
return;
|
|
5240
|
-
const
|
|
5241
|
-
|
|
5240
|
+
const S = B.target || B.srcElement;
|
|
5241
|
+
d.value !== void 0 && S && !r(S, d.value) || a.value !== !1 && (document.body.click(), B.stopPropagation(), B.preventDefault(), h.value = Te.fromEvent(B, o.value), g(), L());
|
|
5242
5242
|
}
|
|
5243
|
-
function M(B,
|
|
5244
|
-
if (a.value &&
|
|
5243
|
+
function M(B, S, T) {
|
|
5244
|
+
if (a.value && S) {
|
|
5245
5245
|
if (B)
|
|
5246
|
-
|
|
5246
|
+
d.value = B;
|
|
5247
5247
|
else if (e.dragHandle) {
|
|
5248
5248
|
if (e.dragHandle instanceof HTMLElement)
|
|
5249
|
-
|
|
5249
|
+
d.value = e.dragHandle;
|
|
5250
5250
|
else if (typeof e.dragHandle == "string") {
|
|
5251
|
-
const b =
|
|
5252
|
-
b && (
|
|
5251
|
+
const b = S.querySelector(e.dragHandle);
|
|
5252
|
+
b && (d.value = b);
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
5255
|
-
o.value =
|
|
5255
|
+
o.value = S, m.value = T, d.value ? (d.value.classList.add("ng-draggable"), d.value.addEventListener("mousedown", N)) : a.value = !1;
|
|
5256
5256
|
}
|
|
5257
5257
|
}
|
|
5258
5258
|
return {
|
|
@@ -5293,7 +5293,7 @@ const pt = /* @__PURE__ */ Fe({
|
|
|
5293
5293
|
props: In,
|
|
5294
5294
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
5295
5295
|
setup(e, t) {
|
|
5296
|
-
const n = C(e.width || 300), o = C(e.height || 200), a = C(e.modelValue), l = C(""),
|
|
5296
|
+
const n = C(e.width || 300), o = C(e.height || 200), a = C(e.modelValue), l = C(""), d = C(e.class), m = C(e.fitContent), p = C(e.showHeader), h = C(""), v = C(e.showCloseButton), i = C(e.showMaxButton), c = C(!1), r = C(e.dialogType), f = C(e.src), y = C(""), w = C(e.showButtons), x = C(e.title), E = C(e.containment || null), L = C(), {
|
|
5297
5297
|
t: g
|
|
5298
5298
|
} = Wt();
|
|
5299
5299
|
x.value === "错误提示" && (x.value = g("messageBox.errorTitle"));
|
|
@@ -5323,7 +5323,7 @@ const pt = /* @__PURE__ */ Fe({
|
|
|
5323
5323
|
handle: (D) => {
|
|
5324
5324
|
M(D, !0);
|
|
5325
5325
|
}
|
|
5326
|
-
}],
|
|
5326
|
+
}], S = C(e.buttons && e.buttons.length ? e.buttons : B), T = H(() => !!h.value), b = H(() => !!w.value && !!S.value), u = C(), F = C(), k = C(!1), {
|
|
5327
5327
|
renderResizeBar: O,
|
|
5328
5328
|
maximize: j,
|
|
5329
5329
|
restore: P,
|
|
@@ -5346,12 +5346,12 @@ const pt = /* @__PURE__ */ Fe({
|
|
|
5346
5346
|
D !== re && (x.value = D);
|
|
5347
5347
|
}), Me(() => e.modelValue, (D, re) => {
|
|
5348
5348
|
D !== re && (a.value = D, a.value && e.draggable && qt(() => {
|
|
5349
|
-
F.value && !E.value && (E.value = F.value.parentElement, A.value = E.value, $(
|
|
5349
|
+
F.value && !E.value && (E.value = F.value.parentElement, A.value = E.value, $(u.value, F.value, A.value), q());
|
|
5350
5350
|
}), D || (E.value && (E.value = null), ce())), a.value ? N.value = ie() : (k.value = !1, V.value = e.draggable);
|
|
5351
5351
|
}), Me(() => e.showHeader, (D, re) => {
|
|
5352
5352
|
D !== re && (p.value = D);
|
|
5353
5353
|
}), Me(() => e.showButtons, (D, re) => {
|
|
5354
|
-
D !== re && (
|
|
5354
|
+
D !== re && (w.value = D);
|
|
5355
5355
|
}), Me(() => I.value, (D, re) => {
|
|
5356
5356
|
const Ce = D || {}, Se = re || {};
|
|
5357
5357
|
JSON.stringify(Ce) !== JSON.stringify(Se) && t.emit("resize", {
|
|
@@ -5374,7 +5374,7 @@ const pt = /* @__PURE__ */ Fe({
|
|
|
5374
5374
|
var Ce;
|
|
5375
5375
|
const D = {
|
|
5376
5376
|
"modal-dialog": !0
|
|
5377
|
-
}, re = (Ce =
|
|
5377
|
+
}, re = (Ce = d.value) == null ? void 0 : Ce.split(" ");
|
|
5378
5378
|
return re == null || re.reduce((Se, Ve) => (Se[Ve] = !0, Se), D), D;
|
|
5379
5379
|
}), ue = H(() => {
|
|
5380
5380
|
const D = {
|
|
@@ -5430,13 +5430,13 @@ const pt = /* @__PURE__ */ Fe({
|
|
|
5430
5430
|
D.handle && await D.handle(re, D) && t.emit("closed", re);
|
|
5431
5431
|
}
|
|
5432
5432
|
function je(D) {
|
|
5433
|
-
D.width && (n.value = D.width), D.height && (o.value = D.height), D.buttons && (
|
|
5433
|
+
D.width && (n.value = D.width), D.height && (o.value = D.height), D.buttons && (S.value = D.buttons), D.title && (x.value = D.title);
|
|
5434
5434
|
}
|
|
5435
5435
|
let Re = null, Ne = null;
|
|
5436
5436
|
_t(() => {
|
|
5437
5437
|
N.value = ie();
|
|
5438
5438
|
}), ot(() => {
|
|
5439
|
-
F.value && !E.value && (E.value = F.value.parentElement, A.value = E.value, $(
|
|
5439
|
+
F.value && !E.value && (E.value = F.value.parentElement, A.value = E.value, $(u.value, F.value, A.value)), ne.value && document.body.classList.add("modal-open"), Re = Ml(e, t), Ne = Bl(e, t);
|
|
5440
5440
|
}), xt(() => {
|
|
5441
5441
|
J && J(), Re && Re.remove(), Ne && Ne.remove();
|
|
5442
5442
|
}), t.expose({
|
|
@@ -5469,7 +5469,7 @@ const pt = /* @__PURE__ */ Fe({
|
|
|
5469
5469
|
return s("div", {
|
|
5470
5470
|
class: "modal-footer",
|
|
5471
5471
|
style: Ye.value
|
|
5472
|
-
}, [
|
|
5472
|
+
}, [S.value && S.value.map((D) => {
|
|
5473
5473
|
const re = C(D.disabled);
|
|
5474
5474
|
return s("button", {
|
|
5475
5475
|
name: D.name,
|
|
@@ -5486,7 +5486,7 @@ const pt = /* @__PURE__ */ Fe({
|
|
|
5486
5486
|
}
|
|
5487
5487
|
function oe() {
|
|
5488
5488
|
return s("div", {
|
|
5489
|
-
ref:
|
|
5489
|
+
ref: u,
|
|
5490
5490
|
class: "modal-header",
|
|
5491
5491
|
style: qe.value
|
|
5492
5492
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : s("div", {
|
|
@@ -5563,11 +5563,11 @@ function kl(e) {
|
|
|
5563
5563
|
xt(() => {
|
|
5564
5564
|
document.body.removeChild(t);
|
|
5565
5565
|
});
|
|
5566
|
-
const l = C(),
|
|
5566
|
+
const l = C(), d = C(e.class || ""), m = C(!!e.showButtons), p = C(!!e.showHeader), h = C(e.showCloseButton == null ? !0 : e.showCloseButton), v = C(!0), i = C(e.title || ""), c = e.acceptCallback || (() => {
|
|
5567
5567
|
}), r = e.rejectCallback || (() => {
|
|
5568
5568
|
}), f = e.closedCallback || ((L) => {
|
|
5569
5569
|
}), y = e.resizeHandle || ((L) => {
|
|
5570
|
-
}),
|
|
5570
|
+
}), w = e.stopMoveHandle || ((L) => {
|
|
5571
5571
|
}), x = Pn(e), E = (L) => {
|
|
5572
5572
|
v.value = !1, n.unmount(), f(L);
|
|
5573
5573
|
};
|
|
@@ -5576,7 +5576,7 @@ function kl(e) {
|
|
|
5576
5576
|
modalRef: l
|
|
5577
5577
|
}), () => s(pt, {
|
|
5578
5578
|
ref: l,
|
|
5579
|
-
class:
|
|
5579
|
+
class: d.value,
|
|
5580
5580
|
modelValue: v.value,
|
|
5581
5581
|
"onUpdate:modelValue": (L) => v.value = L,
|
|
5582
5582
|
title: i.value,
|
|
@@ -5592,7 +5592,7 @@ function kl(e) {
|
|
|
5592
5592
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
5593
5593
|
onClosed: E,
|
|
5594
5594
|
onResize: y,
|
|
5595
|
-
onStopMove:
|
|
5595
|
+
onStopMove: w
|
|
5596
5596
|
}, {
|
|
5597
5597
|
default: () => [x && x(n)]
|
|
5598
5598
|
});
|
|
@@ -5646,7 +5646,7 @@ class On {
|
|
|
5646
5646
|
showButtons: !0,
|
|
5647
5647
|
showHeader: !0
|
|
5648
5648
|
}, t)), a = C(!0), l = o.value.acceptCallback || (() => {
|
|
5649
|
-
}),
|
|
5649
|
+
}), d = o.value.rejectCallback || (() => {
|
|
5650
5650
|
}), m = o.value.closedCallback || ((N, M) => {
|
|
5651
5651
|
}), p = o.value.resizeHandle || ((N) => {
|
|
5652
5652
|
}), h = t.stopMoveHandle || ((N) => {
|
|
@@ -5670,8 +5670,8 @@ class On {
|
|
|
5670
5670
|
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((M = this.activeModalInstance.value) == null || M.close(N == null ? void 0 : N.event));
|
|
5671
5671
|
}, {
|
|
5672
5672
|
width: y,
|
|
5673
|
-
height:
|
|
5674
|
-
} = o.value, x = this.adaptToWindow(y || 500,
|
|
5673
|
+
height: w
|
|
5674
|
+
} = o.value, x = this.adaptToWindow(y || 500, w || 320);
|
|
5675
5675
|
Object.assign(o.value, x);
|
|
5676
5676
|
const E = () => s(pt, Ot({
|
|
5677
5677
|
ref: this.modalRef,
|
|
@@ -5679,7 +5679,7 @@ class On {
|
|
|
5679
5679
|
"onUpdate:modelValue": (N) => a.value = N
|
|
5680
5680
|
}, o.value, {
|
|
5681
5681
|
onAccept: l,
|
|
5682
|
-
onCancel:
|
|
5682
|
+
onCancel: d,
|
|
5683
5683
|
onClosed: r,
|
|
5684
5684
|
onResize: p,
|
|
5685
5685
|
onEsc: f,
|
|
@@ -5828,7 +5828,7 @@ function Ul() {
|
|
|
5828
5828
|
return { onCopy: e };
|
|
5829
5829
|
}
|
|
5830
5830
|
function Gl(e, t, n, o) {
|
|
5831
|
-
const a = C(14), l = C(140),
|
|
5831
|
+
const a = C(14), l = C(140), d = C(""), m = C(o.value.length), p = H(() => o.value), h = H(() => ({
|
|
5832
5832
|
"font-size": `${a.value}px`,
|
|
5833
5833
|
height: "100%"
|
|
5834
5834
|
}));
|
|
@@ -5848,16 +5848,16 @@ function Gl(e, t, n, o) {
|
|
|
5848
5848
|
onInput: (i) => v(i)
|
|
5849
5849
|
}, [p.value]), s("span", {
|
|
5850
5850
|
class: "textarea-wordcount",
|
|
5851
|
-
title:
|
|
5851
|
+
title: d.value,
|
|
5852
5852
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
5853
5853
|
}, [m.value + " / " + l.value])]);
|
|
5854
5854
|
}
|
|
5855
5855
|
function Wl(e, t, n, o) {
|
|
5856
5856
|
const a = Gl(e, t, n, o), l = /* @__PURE__ */ new Map([["text-area", a]]);
|
|
5857
|
-
function
|
|
5857
|
+
function d(m) {
|
|
5858
5858
|
return l.get(m) || null;
|
|
5859
5859
|
}
|
|
5860
|
-
return { getEditorRender:
|
|
5860
|
+
return { getEditorRender: d };
|
|
5861
5861
|
}
|
|
5862
5862
|
function Yl() {
|
|
5863
5863
|
const e = C(!1), t = C("复制成功");
|
|
@@ -5896,8 +5896,8 @@ function Jl(e, t) {
|
|
|
5896
5896
|
return 0;
|
|
5897
5897
|
let f = 0;
|
|
5898
5898
|
for (let y = 0; y < r.length; y++) {
|
|
5899
|
-
const
|
|
5900
|
-
|
|
5899
|
+
const w = r.charCodeAt(y);
|
|
5900
|
+
w >= 0 && w <= 128 ? f++ : f = f + 2;
|
|
5901
5901
|
}
|
|
5902
5902
|
return f;
|
|
5903
5903
|
}
|
|
@@ -5905,11 +5905,11 @@ function Jl(e, t) {
|
|
|
5905
5905
|
if (r !== "" && r !== void 0 && r !== null) {
|
|
5906
5906
|
r = "" + r;
|
|
5907
5907
|
const y = r.length;
|
|
5908
|
-
let
|
|
5908
|
+
let w = "", x = 0;
|
|
5909
5909
|
for (let E = 0; E < y; E++) {
|
|
5910
5910
|
const L = r.charAt(E);
|
|
5911
|
-
if (x++, encodeURI(L).length > 4 && x++,
|
|
5912
|
-
return
|
|
5911
|
+
if (x++, encodeURI(L).length > 4 && x++, w = w.concat(L), x >= f)
|
|
5912
|
+
return w = w.concat("..."), w;
|
|
5913
5913
|
}
|
|
5914
5914
|
if (x < f)
|
|
5915
5915
|
return r;
|
|
@@ -5919,7 +5919,7 @@ function Jl(e, t) {
|
|
|
5919
5919
|
const a = H(() => !!e.value && !!e.value.date), l = H(() => {
|
|
5920
5920
|
const r = e.value && e.value.date || "";
|
|
5921
5921
|
return `${t.exception.happend} : ${r}`;
|
|
5922
|
-
}),
|
|
5922
|
+
}), d = H(() => !!e.value && !!e.value.detail), m = H(() => e.value ? n(e.value.detail) > 160 : !1), p = C(!1), h = H(() => p.value ? t.exception.collapse : t.exception.expand), v = H(() => {
|
|
5923
5923
|
const r = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
5924
5924
|
return p.value ? r : o(r, 160);
|
|
5925
5925
|
}), i = H(() => ({
|
|
@@ -5934,7 +5934,7 @@ function Jl(e, t) {
|
|
|
5934
5934
|
}
|
|
5935
5935
|
return () => s("div", {
|
|
5936
5936
|
class: "toast-msg-detail"
|
|
5937
|
-
}, [a.value && s("div", null, [l.value]),
|
|
5937
|
+
}, [a.value && s("div", null, [l.value]), d.value && s("div", {
|
|
5938
5938
|
class: "exception_wrap"
|
|
5939
5939
|
}, [s("div", {
|
|
5940
5940
|
class: "exception_error_msg"
|
|
@@ -5952,11 +5952,11 @@ function Ql(e) {
|
|
|
5952
5952
|
}, null);
|
|
5953
5953
|
}
|
|
5954
5954
|
function Zl(e, t, n, o, a) {
|
|
5955
|
-
const l = C(e.exceptionInfo),
|
|
5955
|
+
const l = C(e.exceptionInfo), d = H(() => {
|
|
5956
5956
|
const f = t.value === "question" ? "warning" : t.value, y = {
|
|
5957
5957
|
"f-icon": !0
|
|
5958
|
-
},
|
|
5959
|
-
return y[
|
|
5958
|
+
}, w = `f-icon-${f}`;
|
|
5959
|
+
return y[w] = !0, y;
|
|
5960
5960
|
}), m = H(() => n.value || l.value && l.value.message), p = H(() => o.value), h = H(() => !!o.value), v = H(() => !!l.value);
|
|
5961
5961
|
function i() {
|
|
5962
5962
|
return v.value ? Jl(l, a) : h.value ? Ql(p) : () => null;
|
|
@@ -5968,7 +5968,7 @@ function Zl(e, t, n, o, a) {
|
|
|
5968
5968
|
return () => s(it, null, [s("div", {
|
|
5969
5969
|
class: "float-left modal-tips-iconwrap"
|
|
5970
5970
|
}, [s("span", {
|
|
5971
|
-
class:
|
|
5971
|
+
class: d.value
|
|
5972
5972
|
}, null)]), s("div", {
|
|
5973
5973
|
class: "modal-tips-content"
|
|
5974
5974
|
}, [s("p", {
|
|
@@ -5982,14 +5982,14 @@ function Kl(e, t, n, o) {
|
|
|
5982
5982
|
onCopy: a
|
|
5983
5983
|
} = t, {
|
|
5984
5984
|
toShowFeedback: l
|
|
5985
|
-
} = n,
|
|
5985
|
+
} = n, d = C(o.exception.copySuccess || "复制成功"), m = C(o.exception.copy || "复制详细信息"), p = C(e.exceptionInfo || {
|
|
5986
5986
|
date: "",
|
|
5987
5987
|
message: "",
|
|
5988
5988
|
detail: ""
|
|
5989
5989
|
}), h = H(() => p.value && p.value.detail || "");
|
|
5990
5990
|
function v(i) {
|
|
5991
5991
|
a(h.value).catch((c) => {
|
|
5992
|
-
|
|
5992
|
+
d.value = o.exception.copyFailed || "复制失败";
|
|
5993
5993
|
}).finally(() => {
|
|
5994
5994
|
l.value = !0, setTimeout(() => {
|
|
5995
5995
|
l.value = !1;
|
|
@@ -6004,9 +6004,9 @@ function Kl(e, t, n, o) {
|
|
|
6004
6004
|
}, [m.value])]);
|
|
6005
6005
|
}
|
|
6006
6006
|
function es(e, t, n, o, a) {
|
|
6007
|
-
const l = C(e.type),
|
|
6007
|
+
const l = C(e.type), d = C(e.buttons), m = C(e.exceptionInfo), p = C(a.ok || e.okButtonText), h = C(a.cancel || e.cancelButtonText), v = C(e.showCancelButton), i = C(e.showOkButton), c = H(() => !!(d.value && d.value.length)), r = H(() => !!(m.value && m.value.detail)), f = H(() => !(d.value && d.value.length) && (i.value || v.value)), y = Kl(e, n, o, a);
|
|
6008
6008
|
p.value === "关闭" ? p.value = a.close : p.value === "知道了" && (p.value = a.exception.roger);
|
|
6009
|
-
function
|
|
6009
|
+
function w(E) {
|
|
6010
6010
|
l.value === "question" && t.emit("reject"), t.emit("close");
|
|
6011
6011
|
}
|
|
6012
6012
|
function x(E) {
|
|
@@ -6017,12 +6017,12 @@ function es(e, t, n, o, a) {
|
|
|
6017
6017
|
}, [r.value && y(), f.value && v.value && s("button", {
|
|
6018
6018
|
type: "button",
|
|
6019
6019
|
class: "btn btn-secondary btn-lg",
|
|
6020
|
-
onClick:
|
|
6020
|
+
onClick: w
|
|
6021
6021
|
}, [h.value]), f.value && i.value && s("button", {
|
|
6022
6022
|
type: "button",
|
|
6023
6023
|
class: "btn btn-primary btn-lg",
|
|
6024
6024
|
onClick: x
|
|
6025
|
-
}, [p.value]), c.value &&
|
|
6025
|
+
}, [p.value]), c.value && d.value.length && d.value.map((E) => s("button", {
|
|
6026
6026
|
type: "button",
|
|
6027
6027
|
onClick: E.handle,
|
|
6028
6028
|
class: E.class
|
|
@@ -6032,8 +6032,8 @@ function es(e, t, n, o, a) {
|
|
|
6032
6032
|
}
|
|
6033
6033
|
function ts(e) {
|
|
6034
6034
|
const { t, locale: n } = Wt();
|
|
6035
|
-
function o(a, l,
|
|
6036
|
-
return l ===
|
|
6035
|
+
function o(a, l, d) {
|
|
6036
|
+
return l === d ? t(a) : l;
|
|
6037
6037
|
}
|
|
6038
6038
|
return {
|
|
6039
6039
|
yes: o("messageBox.yes") || "是",
|
|
@@ -6061,7 +6061,7 @@ const Nt = /* @__PURE__ */ Fe({
|
|
|
6061
6061
|
props: Hl,
|
|
6062
6062
|
emits: ["accept", "reject", "close"],
|
|
6063
6063
|
setup(e, t) {
|
|
6064
|
-
const n = ts(e), o = C(e.type), a = C(e.title), l = C(e.detail),
|
|
6064
|
+
const n = ts(e), o = C(e.type), a = C(e.title), l = C(e.detail), d = H(() => {
|
|
6065
6065
|
const x = {
|
|
6066
6066
|
"modal-tips": !0,
|
|
6067
6067
|
"d-flex": !0,
|
|
@@ -6091,22 +6091,22 @@ const Nt = /* @__PURE__ */ Fe({
|
|
|
6091
6091
|
return Zl(e, o, a, l, n);
|
|
6092
6092
|
}
|
|
6093
6093
|
}
|
|
6094
|
-
const y = f(),
|
|
6094
|
+
const y = f(), w = es(e, t, p, v, n);
|
|
6095
6095
|
return () => s("div", {
|
|
6096
6096
|
class: "farris-messager"
|
|
6097
6097
|
}, [!e.exceptionInfo && s("div", {
|
|
6098
6098
|
style: "height: 30px;width: 100%;position: absolute;",
|
|
6099
6099
|
class: "messager-draggable"
|
|
6100
6100
|
}, null), s("section", {
|
|
6101
|
-
class:
|
|
6101
|
+
class: d.value,
|
|
6102
6102
|
style: m.value
|
|
6103
|
-
}, [y()]),
|
|
6103
|
+
}, [y()]), w(), r()]);
|
|
6104
6104
|
}
|
|
6105
6105
|
}), nt = class nt {
|
|
6106
6106
|
static show(t) {
|
|
6107
6107
|
const n = Je({
|
|
6108
6108
|
...t
|
|
6109
|
-
}), o = !1, a = n.type === "error" || n.type === "prompt", l = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "",
|
|
6109
|
+
}), o = !1, a = n.type === "error" || n.type === "prompt", l = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", d = n.acceptCallback || (() => {
|
|
6110
6110
|
}), m = n.rejectCallback || (() => {
|
|
6111
6111
|
});
|
|
6112
6112
|
let p = null, h = new On(nt.app);
|
|
@@ -6124,7 +6124,7 @@ const Nt = /* @__PURE__ */ Fe({
|
|
|
6124
6124
|
draggable: !0,
|
|
6125
6125
|
dragHandle: ".messager-draggable",
|
|
6126
6126
|
render: () => s(Nt, Ot(n, {
|
|
6127
|
-
onAccept:
|
|
6127
|
+
onAccept: d,
|
|
6128
6128
|
onReject: m,
|
|
6129
6129
|
onClose: v
|
|
6130
6130
|
}), null)
|
|
@@ -6212,36 +6212,36 @@ const ns = /* @__PURE__ */ Fe({
|
|
|
6212
6212
|
n.globalConfig = {
|
|
6213
6213
|
position: "top-center"
|
|
6214
6214
|
};
|
|
6215
|
-
const o = we("FMessageBoxService"), a = C(e.communication), l = C(((b = a.value) == null ? void 0 : b.paramMappings) || []),
|
|
6215
|
+
const o = we("FMessageBoxService"), a = C(e.communication), l = C(((b = a.value) == null ? void 0 : b.paramMappings) || []), d = we("useFormSchema"), m = d.getFormMetadataBasicInfo(), p = C([]), h = C([]), v = C({}), i = C({}), c = H(() => (u) => {
|
|
6216
6216
|
let F = "", k = "";
|
|
6217
|
-
if (
|
|
6218
|
-
const O = h.value.find((j) => j.statePath === `${
|
|
6219
|
-
O && O.name ? (i.value[
|
|
6217
|
+
if (u.sourceValue && u.targetVariable) {
|
|
6218
|
+
const O = h.value.find((j) => j.statePath === `${u.targetVariableViewModelId}.${u.targetVariable}`);
|
|
6219
|
+
O && O.name ? (i.value[u.targetVariable] = !1, F = `${u.sourceValue}--->${O.name}`, k = `将 ${u.sourceValue} 赋值给 ${O.name}`) : (i.value[u.targetVariable] = !0, F = `${u.sourceValue}--->${u.targetVariable}`, k = `将 ${u.sourceValue} 赋值给 ${u.targetVariable}`);
|
|
6220
6220
|
}
|
|
6221
6221
|
return {
|
|
6222
6222
|
displayText: F,
|
|
6223
6223
|
displayTextTip: k
|
|
6224
6224
|
};
|
|
6225
6225
|
});
|
|
6226
|
-
Me(() => e.communication, (
|
|
6227
|
-
a.value =
|
|
6226
|
+
Me(() => e.communication, (u) => {
|
|
6227
|
+
a.value = u, l.value = a.value.paramMappings || [];
|
|
6228
6228
|
}, {
|
|
6229
6229
|
deep: !0
|
|
6230
6230
|
});
|
|
6231
6231
|
function r() {
|
|
6232
6232
|
var F;
|
|
6233
|
-
const
|
|
6234
|
-
l.value.length && (l.value = l.value.filter((k) => !(!k.sourceValue && !k.targetVariable))), a.value.paramMappings = l.value,
|
|
6233
|
+
const u = l.value.length || 0;
|
|
6234
|
+
l.value.length && (l.value = l.value.filter((k) => !(!k.sourceValue && !k.targetVariable))), a.value.paramMappings = l.value, u !== ((F = a.value.paramMappings) == null ? void 0 : F.length) && t.emit("changed");
|
|
6235
6235
|
}
|
|
6236
6236
|
xt(() => {
|
|
6237
6237
|
r();
|
|
6238
6238
|
});
|
|
6239
|
-
function f(
|
|
6239
|
+
function f(u) {
|
|
6240
6240
|
var P, A;
|
|
6241
6241
|
const {
|
|
6242
6242
|
viewmodels: F,
|
|
6243
6243
|
components: k
|
|
6244
|
-
} =
|
|
6244
|
+
} = u.module;
|
|
6245
6245
|
if ((F == null ? void 0 : F.length) === 0 || (k == null ? void 0 : k.length) === 0)
|
|
6246
6246
|
return [];
|
|
6247
6247
|
const O = [];
|
|
@@ -6250,7 +6250,7 @@ const ns = /* @__PURE__ */ Fe({
|
|
|
6250
6250
|
return F.forEach((I) => {
|
|
6251
6251
|
if (!I || !I.states || I.states.length === 0)
|
|
6252
6252
|
return [];
|
|
6253
|
-
const V = [], J = k.find((ie) => ie.viewModel === I.id), q = j && J ? j(J, I.name,
|
|
6253
|
+
const V = [], J = k.find((ie) => ie.viewModel === I.id), q = j && J ? j(J, I.name, u) : "";
|
|
6254
6254
|
I.states.forEach((ie) => {
|
|
6255
6255
|
const ce = {
|
|
6256
6256
|
...ie,
|
|
@@ -6274,44 +6274,44 @@ const ns = /* @__PURE__ */ Fe({
|
|
|
6274
6274
|
}), O;
|
|
6275
6275
|
}
|
|
6276
6276
|
function y() {
|
|
6277
|
-
var
|
|
6278
|
-
if (!((
|
|
6277
|
+
var u, F;
|
|
6278
|
+
if (!((u = a.value) != null && u.target.formId))
|
|
6279
6279
|
return [];
|
|
6280
6280
|
if (a.value.target.formId === m.id)
|
|
6281
|
-
p.value = f(
|
|
6281
|
+
p.value = f(d.getFormSchema());
|
|
6282
6282
|
else {
|
|
6283
|
-
const k =
|
|
6283
|
+
const k = d.externalFormSchema.get(a.value.target.externalContainerId);
|
|
6284
6284
|
(F = k == null ? void 0 : k.content) != null && F.module && (p.value = f(k == null ? void 0 : k.content));
|
|
6285
6285
|
}
|
|
6286
6286
|
}
|
|
6287
|
-
function
|
|
6288
|
-
Object.keys(v.value).forEach((
|
|
6289
|
-
v.value[
|
|
6287
|
+
function w() {
|
|
6288
|
+
Object.keys(v.value).forEach((u) => {
|
|
6289
|
+
v.value[u] = !1;
|
|
6290
6290
|
});
|
|
6291
6291
|
}
|
|
6292
6292
|
function x() {
|
|
6293
|
-
|
|
6294
|
-
const
|
|
6293
|
+
w();
|
|
6294
|
+
const u = Ut().guid();
|
|
6295
6295
|
l.value.push({
|
|
6296
|
-
id:
|
|
6296
|
+
id: u,
|
|
6297
6297
|
sourceValue: "",
|
|
6298
6298
|
targetVariable: "",
|
|
6299
6299
|
targetVariableViewModelId: ""
|
|
6300
|
-
}), a.value.paramMappings = l.value, v.value[
|
|
6300
|
+
}), a.value.paramMappings = l.value, v.value[u] = !0;
|
|
6301
6301
|
}
|
|
6302
|
-
function E(
|
|
6303
|
-
|
|
6302
|
+
function E(u, F, k) {
|
|
6303
|
+
u.stopPropagation();
|
|
6304
6304
|
function O() {
|
|
6305
|
-
l.value = l.value.filter((j) => j.id !== F.id), a.value.paramMappings = l.value,
|
|
6305
|
+
l.value = l.value.filter((j) => j.id !== F.id), a.value.paramMappings = l.value, w(), t.emit("changed");
|
|
6306
6306
|
}
|
|
6307
6307
|
k ? o.question(`确定删除参数【${k}】吗?`, "", () => {
|
|
6308
6308
|
O();
|
|
6309
6309
|
}) : O();
|
|
6310
6310
|
}
|
|
6311
|
-
function L(
|
|
6312
|
-
v.value[
|
|
6311
|
+
function L(u) {
|
|
6312
|
+
v.value[u.id] || (w(), v.value[u.id] = !0);
|
|
6313
6313
|
}
|
|
6314
|
-
function g(
|
|
6314
|
+
function g(u, F) {
|
|
6315
6315
|
if (!F.sourceValue) {
|
|
6316
6316
|
n.warning("请选择源参数");
|
|
6317
6317
|
return;
|
|
@@ -6320,19 +6320,19 @@ const ns = /* @__PURE__ */ Fe({
|
|
|
6320
6320
|
n.warning("请选择目标参数");
|
|
6321
6321
|
return;
|
|
6322
6322
|
}
|
|
6323
|
-
v.value[
|
|
6323
|
+
v.value[u.id] = !1, Object.assign(u, F), delete u.statePath, t.emit("changed");
|
|
6324
6324
|
}
|
|
6325
|
-
function N(
|
|
6326
|
-
v.value[
|
|
6325
|
+
function N(u) {
|
|
6326
|
+
v.value[u.id] = !1, !u.sourceValue && !u.targetVariable && !u.targetVariableViewModelId && (l.value = l.value.filter((F) => F.id !== u.id), a.value.paramMappings = l.value, t.emit("changed"));
|
|
6327
6327
|
}
|
|
6328
6328
|
ot(() => {
|
|
6329
6329
|
y();
|
|
6330
|
-
}), Me(() => e.communication, (
|
|
6330
|
+
}), Me(() => e.communication, (u) => {
|
|
6331
6331
|
y();
|
|
6332
6332
|
}, {
|
|
6333
6333
|
deep: !0
|
|
6334
6334
|
});
|
|
6335
|
-
function M(
|
|
6335
|
+
function M(u, F, k) {
|
|
6336
6336
|
var O;
|
|
6337
6337
|
if ((O = k.newValue) != null && O.length) {
|
|
6338
6338
|
const {
|
|
@@ -6344,7 +6344,7 @@ const ns = /* @__PURE__ */ Fe({
|
|
|
6344
6344
|
}
|
|
6345
6345
|
}
|
|
6346
6346
|
}
|
|
6347
|
-
function B(
|
|
6347
|
+
function B(u) {
|
|
6348
6348
|
return {
|
|
6349
6349
|
type: "combo-tree",
|
|
6350
6350
|
textField: "name",
|
|
@@ -6353,16 +6353,16 @@ const ns = /* @__PURE__ */ Fe({
|
|
|
6353
6353
|
data: p.value,
|
|
6354
6354
|
editable: !1,
|
|
6355
6355
|
enableClear: !1,
|
|
6356
|
-
customRowStatus: (F) => F.raw.parent ? (l.value.find((O) => O.id !==
|
|
6356
|
+
customRowStatus: (F) => F.raw.parent ? (l.value.find((O) => O.id !== u.id && `${O.targetVariableViewModelId}.${O.targetVariable}` === F.raw.statePath) && (F.disabled = !0), F) : (F.disabled = !0, F)
|
|
6357
6357
|
};
|
|
6358
6358
|
}
|
|
6359
|
-
function
|
|
6360
|
-
const F = se(
|
|
6359
|
+
function S(u) {
|
|
6360
|
+
const F = se(u);
|
|
6361
6361
|
F.statePath = `${F.targetVariableViewModelId}.${F.targetVariable}`;
|
|
6362
|
-
const k = B(
|
|
6363
|
-
let O =
|
|
6362
|
+
const k = B(u);
|
|
6363
|
+
let O = d.getFormSchema();
|
|
6364
6364
|
if (a.value.source.formId !== m.id) {
|
|
6365
|
-
const I =
|
|
6365
|
+
const I = d.externalFormSchema.get(a.value.source.externalContainerId);
|
|
6366
6366
|
I != null && I.content && (O = I == null ? void 0 : I.content);
|
|
6367
6367
|
}
|
|
6368
6368
|
const {
|
|
@@ -6403,26 +6403,26 @@ const ns = /* @__PURE__ */ Fe({
|
|
|
6403
6403
|
class: "d-flex justify-content-end"
|
|
6404
6404
|
}, [s("button", {
|
|
6405
6405
|
class: "btn btn-secondary mr-2",
|
|
6406
|
-
onClick: () => N(
|
|
6406
|
+
onClick: () => N(u)
|
|
6407
6407
|
}, [ge("取消")]), s("button", {
|
|
6408
6408
|
class: "btn btn-primary",
|
|
6409
|
-
onClick: () => g(
|
|
6409
|
+
onClick: () => g(u, F)
|
|
6410
6410
|
}, [ge("确定")])])]);
|
|
6411
6411
|
}
|
|
6412
6412
|
t.expose({
|
|
6413
6413
|
addParameter: x,
|
|
6414
|
-
closeAllParameterPanel:
|
|
6414
|
+
closeAllParameterPanel: w
|
|
6415
6415
|
});
|
|
6416
|
-
const T = H(() => (
|
|
6416
|
+
const T = H(() => (u) => ({
|
|
6417
6417
|
"param-container": !0,
|
|
6418
6418
|
"ml-3": !0,
|
|
6419
|
-
invalid:
|
|
6419
|
+
invalid: u
|
|
6420
6420
|
}));
|
|
6421
|
-
return () => l.value.length ? l.value.map((
|
|
6421
|
+
return () => l.value.length ? l.value.map((u) => {
|
|
6422
6422
|
const {
|
|
6423
6423
|
displayText: F,
|
|
6424
6424
|
displayTextTip: k
|
|
6425
|
-
} = c.value(
|
|
6425
|
+
} = c.value(u), O = i.value[u.targetVariable];
|
|
6426
6426
|
return s("div", {
|
|
6427
6427
|
class: T.value(O)
|
|
6428
6428
|
}, [s("div", {
|
|
@@ -6430,7 +6430,7 @@ const ns = /* @__PURE__ */ Fe({
|
|
|
6430
6430
|
}, [s("span", {
|
|
6431
6431
|
class: "form-control mr-3",
|
|
6432
6432
|
title: k,
|
|
6433
|
-
onClick: () => L(
|
|
6433
|
+
onClick: () => L(u)
|
|
6434
6434
|
}, [F || "请配置参数"]), O ? s("span", {
|
|
6435
6435
|
title: "目标参数已失效,请重新选择"
|
|
6436
6436
|
}, [s("i", {
|
|
@@ -6440,8 +6440,8 @@ const ns = /* @__PURE__ */ Fe({
|
|
|
6440
6440
|
}, [s("div", {
|
|
6441
6441
|
class: "f-icon f-icon-yxs_delete",
|
|
6442
6442
|
title: "删除参数",
|
|
6443
|
-
onClick: (j) => E(j,
|
|
6444
|
-
}, null)])]), v.value[
|
|
6443
|
+
onClick: (j) => E(j, u, F)
|
|
6444
|
+
}, null)])]), v.value[u.id] ? S(u) : ""]);
|
|
6445
6445
|
}) : "";
|
|
6446
6446
|
}
|
|
6447
6447
|
}), os = /* @__PURE__ */ Fe({
|
|
@@ -6449,24 +6449,24 @@ const ns = /* @__PURE__ */ Fe({
|
|
|
6449
6449
|
props: Tt,
|
|
6450
6450
|
emits: ["addParameter", "deleteCommand", "toggleParameterPanel"],
|
|
6451
6451
|
setup(e, t) {
|
|
6452
|
-
const n = C(e.communication), o = we("FMessageBoxService"), a = we("useFormSchema"), l = a.getFormMetadataBasicInfo(),
|
|
6453
|
-
var b,
|
|
6452
|
+
const n = C(e.communication), o = we("FMessageBoxService"), a = we("useFormSchema"), l = a.getFormMetadataBasicInfo(), d = C([]), m = C(), p = C(!1), h = C([]), v = C(), i = C(!1), c = C(e.communication.paramMappings && e.communication.paramMappings.length > 0), r = H(() => {
|
|
6453
|
+
var b, u, F, k;
|
|
6454
6454
|
if (!m.value)
|
|
6455
6455
|
return "";
|
|
6456
|
-
const
|
|
6457
|
-
return `${
|
|
6456
|
+
const S = ((b = m.value) == null ? void 0 : b.name) || ((u = m.value) == null ? void 0 : u.code) || "", T = ((F = v.value) == null ? void 0 : F.name) || ((k = v.value) == null ? void 0 : k.code) || "";
|
|
6457
|
+
return `${S}-${T}`;
|
|
6458
6458
|
}), f = H(() => {
|
|
6459
6459
|
var k, O, j, P, A, I;
|
|
6460
6460
|
if (!m.value)
|
|
6461
6461
|
return "";
|
|
6462
|
-
const
|
|
6463
|
-
return `${
|
|
6464
|
-
${T} (${
|
|
6462
|
+
const S = ((k = m.value) == null ? void 0 : k.name) || ((O = m.value) == null ? void 0 : O.code) || "", T = ((j = v.value) == null ? void 0 : j.name) || ((P = v.value) == null ? void 0 : P.code) || "", b = ((A = m.value) == null ? void 0 : A.code) || "", u = ((I = v.value) == null ? void 0 : I.code) || "", F = m.value.containerId ? `, 所属外部容器: ${m.value.containerId}` : "";
|
|
6463
|
+
return `${S} (${b}${F})
|
|
6464
|
+
${T} (${u})`;
|
|
6465
6465
|
}), y = H(() => p.value ? "目标表单已失效,请删除当前方法。" : i.value ? "目标命令已失效,请删除当前方法。" : "");
|
|
6466
|
-
function
|
|
6467
|
-
var
|
|
6468
|
-
if ((T = (
|
|
6469
|
-
const b =
|
|
6466
|
+
function w() {
|
|
6467
|
+
var S, T;
|
|
6468
|
+
if ((T = (S = n.value) == null ? void 0 : S.target) != null && T.formId) {
|
|
6469
|
+
const b = d.value.find((u) => u.id === n.value.target.formId && u.containerId === n.value.target.externalContainerId);
|
|
6470
6470
|
p.value = !b, m.value = b || {
|
|
6471
6471
|
containerId: n.value.target.externalContainerId,
|
|
6472
6472
|
id: n.value.target.formId,
|
|
@@ -6477,50 +6477,50 @@ ${T} (${d})`;
|
|
|
6477
6477
|
}
|
|
6478
6478
|
function x() {
|
|
6479
6479
|
var T, b;
|
|
6480
|
-
const
|
|
6481
|
-
Array.from(
|
|
6480
|
+
const S = a.externalFormSchema;
|
|
6481
|
+
Array.from(S.keys()).forEach((u) => {
|
|
6482
6482
|
var k, O;
|
|
6483
|
-
const F =
|
|
6484
|
-
((O = (k = n.value) == null ? void 0 : k.source) == null ? void 0 : O.externalContainerId) !==
|
|
6485
|
-
containerId:
|
|
6483
|
+
const F = S.get(u);
|
|
6484
|
+
((O = (k = n.value) == null ? void 0 : k.source) == null ? void 0 : O.externalContainerId) !== u && d.value.push({
|
|
6485
|
+
containerId: u,
|
|
6486
6486
|
id: F.id,
|
|
6487
6487
|
code: F.code,
|
|
6488
6488
|
name: F.name
|
|
6489
6489
|
});
|
|
6490
|
-
}), ((b = (T = n.value) == null ? void 0 : T.source) == null ? void 0 : b.formId) !== l.id &&
|
|
6490
|
+
}), ((b = (T = n.value) == null ? void 0 : T.source) == null ? void 0 : b.formId) !== l.id && d.value.unshift({
|
|
6491
6491
|
containerId: "",
|
|
6492
6492
|
id: l.id,
|
|
6493
6493
|
code: l.code,
|
|
6494
6494
|
name: l.name
|
|
6495
|
-
}),
|
|
6495
|
+
}), w();
|
|
6496
6496
|
}
|
|
6497
6497
|
function E() {
|
|
6498
|
-
var
|
|
6499
|
-
if ((T = (
|
|
6498
|
+
var S, T;
|
|
6499
|
+
if ((T = (S = n.value) == null ? void 0 : S.target) != null && T.commandCode) {
|
|
6500
6500
|
const {
|
|
6501
6501
|
commandCode: b,
|
|
6502
|
-
commandViewmodelId:
|
|
6503
|
-
} = n.value.target, F = h.value.find((k) => k.code === b && k.viewmodelId ===
|
|
6502
|
+
commandViewmodelId: u
|
|
6503
|
+
} = n.value.target, F = h.value.find((k) => k.code === b && k.viewmodelId === u);
|
|
6504
6504
|
v.value = F || {
|
|
6505
6505
|
code: n.value.target.commandCode
|
|
6506
6506
|
}, i.value = !F;
|
|
6507
6507
|
} else
|
|
6508
6508
|
v.value = null, i.value = !1;
|
|
6509
6509
|
}
|
|
6510
|
-
function L(
|
|
6510
|
+
function L(S) {
|
|
6511
6511
|
var F, k;
|
|
6512
6512
|
const {
|
|
6513
6513
|
viewmodels: T,
|
|
6514
6514
|
components: b
|
|
6515
|
-
} =
|
|
6515
|
+
} = S.module;
|
|
6516
6516
|
if ((T == null ? void 0 : T.length) === 0 || (b == null ? void 0 : b.length) === 0)
|
|
6517
6517
|
return [];
|
|
6518
6518
|
h.value = [];
|
|
6519
|
-
const
|
|
6519
|
+
const u = (k = (F = e.sourceCommunication) == null ? void 0 : F.parameterData) == null ? void 0 : k.getViewModelName;
|
|
6520
6520
|
T.forEach((O) => {
|
|
6521
6521
|
if (!O || !O.commands || O.commands.length === 0)
|
|
6522
6522
|
return [];
|
|
6523
|
-
const j = b.find((A) => A.viewModel === O.id), P =
|
|
6523
|
+
const j = b.find((A) => A.viewModel === O.id), P = u && j ? u(j, O.name, S) : "";
|
|
6524
6524
|
h.value.push({
|
|
6525
6525
|
id: O.id,
|
|
6526
6526
|
code: O.code,
|
|
@@ -6535,21 +6535,21 @@ ${T} (${d})`;
|
|
|
6535
6535
|
});
|
|
6536
6536
|
}
|
|
6537
6537
|
function g() {
|
|
6538
|
-
var
|
|
6539
|
-
if (!((
|
|
6538
|
+
var S, T, b;
|
|
6539
|
+
if (!((S = m.value) != null && S.id))
|
|
6540
6540
|
return [];
|
|
6541
6541
|
if (m.value.id === l.id)
|
|
6542
6542
|
L(a.getFormSchema());
|
|
6543
6543
|
else {
|
|
6544
|
-
const
|
|
6545
|
-
(b =
|
|
6544
|
+
const u = a.externalFormSchema.get((T = m.value) == null ? void 0 : T.containerId);
|
|
6545
|
+
(b = u == null ? void 0 : u.content) != null && b.module && L(u.content);
|
|
6546
6546
|
}
|
|
6547
6547
|
E();
|
|
6548
6548
|
}
|
|
6549
6549
|
ot(() => {
|
|
6550
6550
|
x(), g();
|
|
6551
|
-
}), Me(() => e.communication, (
|
|
6552
|
-
c.value = e.communication.paramMappings && e.communication.paramMappings.length > 0,
|
|
6551
|
+
}), Me(() => e.communication, (S) => {
|
|
6552
|
+
c.value = e.communication.paramMappings && e.communication.paramMappings.length > 0, w(), g();
|
|
6553
6553
|
}, {
|
|
6554
6554
|
deep: !0
|
|
6555
6555
|
});
|
|
@@ -6580,7 +6580,7 @@ ${T} (${d})`;
|
|
|
6580
6580
|
}, null)]), s("div", {
|
|
6581
6581
|
class: "f-icon f-icon-yxs_delete",
|
|
6582
6582
|
title: "删除命令",
|
|
6583
|
-
onClick: (
|
|
6583
|
+
onClick: (S) => M()
|
|
6584
6584
|
}, null)]) : s(it, null, [s("div", {
|
|
6585
6585
|
class: "f-icon f-icon-home-add",
|
|
6586
6586
|
title: "新增参数",
|
|
@@ -6593,7 +6593,7 @@ ${T} (${d})`;
|
|
|
6593
6593
|
}, null), s("div", {
|
|
6594
6594
|
class: "f-icon f-icon-yxs_delete",
|
|
6595
6595
|
title: "删除命令",
|
|
6596
|
-
onClick: (
|
|
6596
|
+
onClick: (S) => M()
|
|
6597
6597
|
}, null)])])])]);
|
|
6598
6598
|
}
|
|
6599
6599
|
}), as = /* @__PURE__ */ Fe({
|
|
@@ -6604,9 +6604,9 @@ ${T} (${d})`;
|
|
|
6604
6604
|
const n = we("useFormSchema"), {
|
|
6605
6605
|
saveCommunication: o
|
|
6606
6606
|
} = Et(n), a = C(e.communication), l = H(() => {
|
|
6607
|
-
var
|
|
6608
|
-
return ((x = (
|
|
6609
|
-
}),
|
|
6607
|
+
var w, x, E, L;
|
|
6608
|
+
return ((x = (w = a.value) == null ? void 0 : w.source) == null ? void 0 : x.componentId) && ((L = (E = a.value) == null ? void 0 : E.source) == null ? void 0 : L.event);
|
|
6609
|
+
}), d = C(!0), m = C(!0), p = C(), h = C();
|
|
6610
6610
|
function v() {
|
|
6611
6611
|
o(a.value), t.emit("changed", a.value);
|
|
6612
6612
|
}
|
|
@@ -6636,7 +6636,7 @@ ${T} (${d})`;
|
|
|
6636
6636
|
onAddParameter: i,
|
|
6637
6637
|
onDeleteCommand: c,
|
|
6638
6638
|
onToggleParameterPanel: r
|
|
6639
|
-
}, null),
|
|
6639
|
+
}, null), d.value && s("div", {
|
|
6640
6640
|
class: f.value
|
|
6641
6641
|
}, [s(ns, {
|
|
6642
6642
|
ref: p,
|
|
@@ -6650,7 +6650,7 @@ ${T} (${d})`;
|
|
|
6650
6650
|
props: Tt,
|
|
6651
6651
|
emits: ["selectCommand", "addParameter", "deleteCommand", "toggleParameterPanel"],
|
|
6652
6652
|
setup(e, t) {
|
|
6653
|
-
const n = we("useFormSchema"), o = n.getFormMetadataBasicInfo(), a = C([]), l = C(),
|
|
6653
|
+
const n = we("useFormSchema"), o = n.getFormMetadataBasicInfo(), a = C([]), l = C(), d = C([]), m = C(), p = C(!0), h = C(!1);
|
|
6654
6654
|
function v() {
|
|
6655
6655
|
var E;
|
|
6656
6656
|
const x = n.externalFormSchema;
|
|
@@ -6678,18 +6678,18 @@ ${T} (${d})`;
|
|
|
6678
6678
|
} = x.module;
|
|
6679
6679
|
if ((E == null ? void 0 : E.length) === 0 || (L == null ? void 0 : L.length) === 0)
|
|
6680
6680
|
return [];
|
|
6681
|
-
|
|
6681
|
+
d.value = [];
|
|
6682
6682
|
const g = (M = (N = e.sourceCommunication) == null ? void 0 : N.parameterData) == null ? void 0 : M.getViewModelName;
|
|
6683
6683
|
E.forEach((B) => {
|
|
6684
6684
|
if (!B || !B.commands || B.commands.length === 0)
|
|
6685
6685
|
return [];
|
|
6686
|
-
const
|
|
6687
|
-
|
|
6686
|
+
const S = L.find((b) => b.viewModel === B.id), T = g && S ? g(S, B.name, x) : "";
|
|
6687
|
+
d.value.push({
|
|
6688
6688
|
id: B.id,
|
|
6689
6689
|
code: B.code,
|
|
6690
6690
|
name: T || B.name
|
|
6691
6691
|
}), B.commands.forEach((b) => {
|
|
6692
|
-
b.isInvalid ||
|
|
6692
|
+
b.isInvalid || d.value.push({
|
|
6693
6693
|
...b,
|
|
6694
6694
|
viewmodelId: B.id,
|
|
6695
6695
|
isCommandNode: !0
|
|
@@ -6729,7 +6729,7 @@ ${T} (${d})`;
|
|
|
6729
6729
|
disabled: !x.isCommandNode
|
|
6730
6730
|
};
|
|
6731
6731
|
});
|
|
6732
|
-
function
|
|
6732
|
+
function w(x) {
|
|
6733
6733
|
x.isCommandNode && (h.value = !1, m.value = x, t.emit("selectCommand", {
|
|
6734
6734
|
targetForm: l.value,
|
|
6735
6735
|
targetCommand: x
|
|
@@ -6749,10 +6749,10 @@ ${T} (${d})`;
|
|
|
6749
6749
|
class: "item-list"
|
|
6750
6750
|
}, [s("span", {
|
|
6751
6751
|
class: "tip"
|
|
6752
|
-
}, [ge("请选择目标命令")]),
|
|
6752
|
+
}, [ge("请选择目标命令")]), d.value.map((x) => s("span", {
|
|
6753
6753
|
class: y.value(x),
|
|
6754
6754
|
title: x.code,
|
|
6755
|
-
onClick: () =>
|
|
6755
|
+
onClick: () => w(x)
|
|
6756
6756
|
}, [x.name]))]) : ""]);
|
|
6757
6757
|
}
|
|
6758
6758
|
}), is = /* @__PURE__ */ Fe({
|
|
@@ -6765,7 +6765,7 @@ ${T} (${d})`;
|
|
|
6765
6765
|
guid: n
|
|
6766
6766
|
} = Ut(), o = we("FMessageBoxService"), a = we("useMethodsComposition"), {
|
|
6767
6767
|
toggleSelectingMethod: l,
|
|
6768
|
-
emitFinalState:
|
|
6768
|
+
emitFinalState: d,
|
|
6769
6769
|
getViewModeId: m,
|
|
6770
6770
|
getMethodsOnViewModel: p,
|
|
6771
6771
|
getComponentList: h,
|
|
@@ -6775,7 +6775,7 @@ ${T} (${d})`;
|
|
|
6775
6775
|
clearCommunicationById: r,
|
|
6776
6776
|
resolveSourceControlEventTitle: f,
|
|
6777
6777
|
resolveCommunication: y,
|
|
6778
|
-
createNewCommunication:
|
|
6778
|
+
createNewCommunication: w,
|
|
6779
6779
|
saveCommunication: x,
|
|
6780
6780
|
resolveCommunicationSource: E
|
|
6781
6781
|
} = Et(c), L = C(e.controllers), g = C(e.interaction), N = C(!1), M = H(() => {
|
|
@@ -6783,11 +6783,11 @@ ${T} (${d})`;
|
|
|
6783
6783
|
return z.showSection[z.showSwitchNumber][2];
|
|
6784
6784
|
}), B = C(e.sourceCommunication.needSelectSourceControl);
|
|
6785
6785
|
g.value.shouldShowCommunicationPanel = g.value.shouldShowCommunicationPanel === !1 ? !1 : !!((Ne = (Re = g.value) == null ? void 0 : Re.communication) != null && Ne.length) || B.value;
|
|
6786
|
-
const
|
|
6786
|
+
const S = H(() => {
|
|
6787
6787
|
var ae;
|
|
6788
6788
|
const z = !!((ae = g.value.command) != null && ae.id), ee = g.value.showSwitch[0], oe = ee.showSection[ee.showSwitchNumber][3];
|
|
6789
6789
|
return z && oe;
|
|
6790
|
-
}), T = C(g.value.needSelectCommunicationCommand || !1), b = C(),
|
|
6790
|
+
}), T = C(g.value.needSelectCommunicationCommand || !1), b = C(), u = C(), F = C(!1), k = C(), O = C([]);
|
|
6791
6791
|
function j() {
|
|
6792
6792
|
if (B.value) {
|
|
6793
6793
|
const z = f(g.value.communication);
|
|
@@ -6797,18 +6797,18 @@ ${T} (${d})`;
|
|
|
6797
6797
|
titleTip: oe,
|
|
6798
6798
|
isControlInvalid: ae
|
|
6799
6799
|
} = z;
|
|
6800
|
-
b.value = ee,
|
|
6800
|
+
b.value = ee, u.value = ae ? "源表单或事件已失效,请删除" : oe || ee, F.value = ae;
|
|
6801
6801
|
}
|
|
6802
6802
|
} else
|
|
6803
|
-
|
|
6803
|
+
u.value = g.value.event.label, b.value = g.value.event.name;
|
|
6804
6804
|
}
|
|
6805
6805
|
_t(() => {
|
|
6806
6806
|
y(g.value), j(), k.value = E(g.value) || e.sourceCommunication;
|
|
6807
6807
|
});
|
|
6808
6808
|
const P = H(() => ({
|
|
6809
6809
|
"f-icon": !0,
|
|
6810
|
-
"f-icon-arrow-chevron-down":
|
|
6811
|
-
"f-icon-arrow-chevron-left": !
|
|
6810
|
+
"f-icon-arrow-chevron-down": S.value || g.value.shouldShowCommunicationPanel,
|
|
6811
|
+
"f-icon-arrow-chevron-left": !S.value && !g.value.shouldShowCommunicationPanel
|
|
6812
6812
|
}));
|
|
6813
6813
|
function A() {
|
|
6814
6814
|
var oe, ae;
|
|
@@ -6896,7 +6896,7 @@ ${T} (${d})`;
|
|
|
6896
6896
|
isCommon: Ue.isCommon
|
|
6897
6897
|
};
|
|
6898
6898
|
const pe = g.value.showSwitch[0];
|
|
6899
|
-
pe.showSwitchNumber = 2, pe.showSection[pe.showSwitchNumber][2] = !1, pe.showSection[pe.showSwitchNumber][3] = !0, N.value = !0, g.value.communication && g.value.communication.length > 0 && (g.value.shouldShowCommunicationPanel = !0),
|
|
6899
|
+
pe.showSwitchNumber = 2, pe.showSection[pe.showSwitchNumber][2] = !1, pe.showSection[pe.showSwitchNumber][3] = !0, N.value = !0, g.value.communication && g.value.communication.length > 0 && (g.value.shouldShowCommunicationPanel = !0), d(!1, null);
|
|
6900
6900
|
}
|
|
6901
6901
|
function ie() {
|
|
6902
6902
|
g.value.command = {
|
|
@@ -6916,7 +6916,7 @@ ${T} (${d})`;
|
|
|
6916
6916
|
label: "",
|
|
6917
6917
|
name: "",
|
|
6918
6918
|
id: ""
|
|
6919
|
-
},
|
|
6919
|
+
}, d(!0, g.value.event);
|
|
6920
6920
|
const z = g.value.showSwitch[0];
|
|
6921
6921
|
l(z, !0);
|
|
6922
6922
|
}
|
|
@@ -6933,7 +6933,7 @@ ${T} (${d})`;
|
|
|
6933
6933
|
return;
|
|
6934
6934
|
}
|
|
6935
6935
|
let ae;
|
|
6936
|
-
g.value.communication.length === 1 && !((de = g.value.communication[0].target) != null && de.formId) ? (Object.assign(g.value.communication[0].target, z), ae = g.value.communication[0]) : (ae =
|
|
6936
|
+
g.value.communication.length === 1 && !((de = g.value.communication[0].target) != null && de.formId) ? (Object.assign(g.value.communication[0].target, z), ae = g.value.communication[0]) : (ae = w(e, g.value.event.label, z, ee), g.value.communication.push(ae)), d(!1, null), x(ae);
|
|
6937
6937
|
}
|
|
6938
6938
|
function ne(z) {
|
|
6939
6939
|
var oe;
|
|
@@ -6954,7 +6954,7 @@ ${T} (${d})`;
|
|
|
6954
6954
|
}
|
|
6955
6955
|
function he() {
|
|
6956
6956
|
const z = g.value.showSwitch[0];
|
|
6957
|
-
z.showSwitchNumber = 2, z.showSection[z.showSwitchNumber][2] = !1, z.showSection[z.showSwitchNumber][3] = !0, N.value = !1, g.value.communication && g.value.communication.length > 0 && (g.value.shouldShowCommunicationPanel = !0),
|
|
6957
|
+
z.showSwitchNumber = 2, z.showSection[z.showSwitchNumber][2] = !1, z.showSection[z.showSwitchNumber][3] = !0, N.value = !1, g.value.communication && g.value.communication.length > 0 && (g.value.shouldShowCommunicationPanel = !0), d(!1, null);
|
|
6958
6958
|
}
|
|
6959
6959
|
function xe() {
|
|
6960
6960
|
return s(ui, {
|
|
@@ -6975,10 +6975,10 @@ ${T} (${d})`;
|
|
|
6975
6975
|
z.showSection[z.showSwitchNumber][3] = !1;
|
|
6976
6976
|
}
|
|
6977
6977
|
function K(z) {
|
|
6978
|
-
g.value.command = se(z),
|
|
6978
|
+
g.value.command = se(z), d(!1, null);
|
|
6979
6979
|
}
|
|
6980
6980
|
function fe(z) {
|
|
6981
|
-
z.componentLists = h(), v(z), g.value.command = se(z),
|
|
6981
|
+
z.componentLists = h(), v(z), g.value.command = se(z), d(!1, null);
|
|
6982
6982
|
}
|
|
6983
6983
|
function Ge(z) {
|
|
6984
6984
|
var oe;
|
|
@@ -6991,7 +6991,7 @@ ${T} (${d})`;
|
|
|
6991
6991
|
});
|
|
6992
6992
|
}
|
|
6993
6993
|
function qe() {
|
|
6994
|
-
g.value.command = null,
|
|
6994
|
+
g.value.command = null, d(!1, null);
|
|
6995
6995
|
}
|
|
6996
6996
|
function Le() {
|
|
6997
6997
|
return s(mi, {
|
|
@@ -7007,11 +7007,11 @@ ${T} (${d})`;
|
|
|
7007
7007
|
}, null);
|
|
7008
7008
|
}
|
|
7009
7009
|
function Qe(z, ee) {
|
|
7010
|
-
g.value.communication && g.value.communication.length > ee && (g.value.communication[ee] = z,
|
|
7010
|
+
g.value.communication && g.value.communication.length > ee && (g.value.communication[ee] = z, d(!1, null));
|
|
7011
7011
|
}
|
|
7012
7012
|
function We(z, ee) {
|
|
7013
7013
|
var oe;
|
|
7014
|
-
g.value.communication && g.value.communication.length > ee && (g.value.communication.splice(ee, 1), r(z.id), g.value.communication.length === 0 && !((oe = g.value.command) != null && oe.id) ? t.emit("delete", e.displayOrder) :
|
|
7014
|
+
g.value.communication && g.value.communication.length > ee && (g.value.communication.splice(ee, 1), r(z.id), g.value.communication.length === 0 && !((oe = g.value.command) != null && oe.id) ? t.emit("delete", e.displayOrder) : d(!1, null));
|
|
7015
7015
|
}
|
|
7016
7016
|
function Ye(z, ee) {
|
|
7017
7017
|
const {
|
|
@@ -7058,7 +7058,7 @@ ${T} (${d})`;
|
|
|
7058
7058
|
class: "f-page-events-editor-bound-event"
|
|
7059
7059
|
}, [s("div", {
|
|
7060
7060
|
class: "f-page-events-editor-bound-event-name",
|
|
7061
|
-
title:
|
|
7061
|
+
title: u.value
|
|
7062
7062
|
}, [b.value]), !F.value && s("div", {
|
|
7063
7063
|
style: "float:right;margin:5px;"
|
|
7064
7064
|
}, [s("div", {
|
|
@@ -7077,12 +7077,12 @@ ${T} (${d})`;
|
|
|
7077
7077
|
class: "f-icon f-icon-flowline-warning text-danger text-tip",
|
|
7078
7078
|
title: "源表单或事件已失效,请删除",
|
|
7079
7079
|
style: "float:right; font-size: 13px; margin:8px;"
|
|
7080
|
-
}, null)]), M.value && xe(), T.value && je(),
|
|
7080
|
+
}, null)]), M.value && xe(), T.value && je(), S.value && Le(), !F.value && g.value.shouldShowCommunicationPanel && g.value.communication && g.value.communication.length > 0 ? g.value.communication.map((z, ee) => ye(z, ee)) : ""]);
|
|
7081
7081
|
}
|
|
7082
7082
|
});
|
|
7083
7083
|
function ls(e, t, n) {
|
|
7084
7084
|
const { interactions: o } = t, { setComponentLists: a } = Mn(), l = C(e.value.internalCommandList);
|
|
7085
|
-
function
|
|
7085
|
+
function d(b) {
|
|
7086
7086
|
o.value[b].showSwitch = [], o.value[b].showSwitch.push(se({
|
|
7087
7087
|
// 存储所有的展示设定
|
|
7088
7088
|
showSection: [[!1, !1, !1, !1, !1], [!1, !1, !0, !1, !1], [!1, !0, !1, !0, !1]],
|
|
@@ -7092,34 +7092,34 @@ function ls(e, t, n) {
|
|
|
7092
7092
|
}
|
|
7093
7093
|
function m(b) {
|
|
7094
7094
|
var F;
|
|
7095
|
-
const
|
|
7095
|
+
const u = [];
|
|
7096
7096
|
return (F = e.value.newController) == null || F.forEach((k) => {
|
|
7097
7097
|
b.forEach((O) => {
|
|
7098
|
-
k.Code === O.controller.label &&
|
|
7098
|
+
k.Code === O.controller.label && u.push(se(k));
|
|
7099
7099
|
});
|
|
7100
|
-
}),
|
|
7100
|
+
}), u;
|
|
7101
7101
|
}
|
|
7102
7102
|
function p(b) {
|
|
7103
7103
|
if (e.value.repititionCommand.length !== 0)
|
|
7104
|
-
return e.value.repititionCommand.forEach((
|
|
7104
|
+
return e.value.repititionCommand.forEach((u) => {
|
|
7105
7105
|
b.forEach((F) => {
|
|
7106
7106
|
var k, O, j, P;
|
|
7107
|
-
if (
|
|
7108
|
-
|
|
7107
|
+
if (u.command.id === ((k = F.command) == null ? void 0 : k.id)) {
|
|
7108
|
+
u.command.params = se((O = F.command) == null ? void 0 : O.property);
|
|
7109
7109
|
const A = (j = F.command) == null ? void 0 : j.targetComponent;
|
|
7110
7110
|
(P = F.command) == null || P.componentLists.forEach((I) => {
|
|
7111
|
-
|
|
7111
|
+
u.targetComponent = I.componentId === A ? {
|
|
7112
7112
|
id: I.componentId,
|
|
7113
7113
|
viewModelId: I.viewModelId
|
|
7114
|
-
} :
|
|
7114
|
+
} : u.targetComponent;
|
|
7115
7115
|
});
|
|
7116
7116
|
}
|
|
7117
7117
|
});
|
|
7118
7118
|
}), e.value.repititionCommand;
|
|
7119
7119
|
}
|
|
7120
|
-
function h(b = !1,
|
|
7120
|
+
function h(b = !1, u = null) {
|
|
7121
7121
|
var P;
|
|
7122
|
-
e.value.newFuncEvents =
|
|
7122
|
+
e.value.newFuncEvents = u ? se(u) : null, e.value.isAddControllerMethod = b;
|
|
7123
7123
|
const F = [], k = se(e.value.internalCommandList);
|
|
7124
7124
|
o.value.map((A) => {
|
|
7125
7125
|
const I = se(A.controller), V = se(A.command), J = se(A.event), q = se(A.communication), $ = { controller: I, command: V, boundEvents: J, communication: q };
|
|
@@ -7169,16 +7169,16 @@ function ls(e, t, n) {
|
|
|
7169
7169
|
function r(b) {
|
|
7170
7170
|
b.showSection[b.showSwitchNumber][3] = !1;
|
|
7171
7171
|
}
|
|
7172
|
-
function f(b,
|
|
7173
|
-
b.showSection[b.showSwitchNumber][2] ? (i(b),
|
|
7172
|
+
function f(b, u = !1) {
|
|
7173
|
+
b.showSection[b.showSwitchNumber][2] ? (i(b), u && c(b)) : (v(b), u && r(b));
|
|
7174
7174
|
}
|
|
7175
7175
|
function y() {
|
|
7176
7176
|
return e.value.componentLists;
|
|
7177
7177
|
}
|
|
7178
|
-
function
|
|
7179
|
-
e.value.viewModel.forEach((
|
|
7180
|
-
for (let F = 0; F <
|
|
7181
|
-
|
|
7178
|
+
function w(b) {
|
|
7179
|
+
e.value.viewModel.forEach((u) => {
|
|
7180
|
+
for (let F = 0; F < u.controllerList.length; F++)
|
|
7181
|
+
u.controllerList[F].label === b.label && (u.controllerList[F] = se(b));
|
|
7182
7182
|
});
|
|
7183
7183
|
}
|
|
7184
7184
|
function x() {
|
|
@@ -7187,41 +7187,41 @@ function ls(e, t, n) {
|
|
|
7187
7187
|
function E() {
|
|
7188
7188
|
return e.value.getEventPath ? e.value.getEventPath().viewModelDisplay : [];
|
|
7189
7189
|
}
|
|
7190
|
-
function L(b,
|
|
7191
|
-
return a(b,
|
|
7190
|
+
function L(b, u) {
|
|
7191
|
+
return a(b, u, e.value);
|
|
7192
7192
|
}
|
|
7193
7193
|
function g(b) {
|
|
7194
7194
|
e.value.newController = e.value.newController || [], e.value.newController.push(se(b));
|
|
7195
|
-
const
|
|
7196
|
-
for (let F = 0; F <
|
|
7197
|
-
for (let k = F + 1; k <
|
|
7198
|
-
|
|
7195
|
+
const u = e.value.newController;
|
|
7196
|
+
for (let F = 0; F < u.length; F++)
|
|
7197
|
+
for (let k = F + 1; k < u.length; k++)
|
|
7198
|
+
u[F].Id === u[k].Id && (u.splice(k, 1), k--);
|
|
7199
7199
|
}
|
|
7200
7200
|
function N(b) {
|
|
7201
|
-
let
|
|
7201
|
+
let u = !1;
|
|
7202
7202
|
return e.value.internalCommandList.forEach((F) => {
|
|
7203
7203
|
if (F.controllerName.label === b.controllerName.label) {
|
|
7204
|
-
|
|
7204
|
+
u = !0;
|
|
7205
7205
|
return;
|
|
7206
7206
|
}
|
|
7207
|
-
}),
|
|
7207
|
+
}), u || e.value.internalCommandList.push(b), u;
|
|
7208
7208
|
}
|
|
7209
7209
|
function M() {
|
|
7210
7210
|
var b;
|
|
7211
7211
|
if ((b = e.value) != null && b.getEventPath)
|
|
7212
7212
|
return e.value.getEventPath();
|
|
7213
7213
|
}
|
|
7214
|
-
function B(b,
|
|
7214
|
+
function B(b, u) {
|
|
7215
7215
|
o.value.forEach((F) => {
|
|
7216
7216
|
var k;
|
|
7217
|
-
((k = F.command) == null ? void 0 : k.label) ===
|
|
7217
|
+
((k = F.command) == null ? void 0 : k.label) === u.label && (F.command = u);
|
|
7218
7218
|
});
|
|
7219
7219
|
}
|
|
7220
|
-
function
|
|
7221
|
-
B(b,
|
|
7220
|
+
function S(b, u) {
|
|
7221
|
+
B(b, u);
|
|
7222
7222
|
}
|
|
7223
|
-
function T(b,
|
|
7224
|
-
const F = o.value[
|
|
7223
|
+
function T(b, u) {
|
|
7224
|
+
const F = o.value[u];
|
|
7225
7225
|
b.event = b.event.label ? b.event : se(F.event);
|
|
7226
7226
|
let k = !1;
|
|
7227
7227
|
e.value.repititionCommand || (e.value.repititionCommand = []), e.value.repititionCommand.forEach((P) => {
|
|
@@ -7245,16 +7245,16 @@ function ls(e, t, n) {
|
|
|
7245
7245
|
const j = {
|
|
7246
7246
|
controllerName: b.controller
|
|
7247
7247
|
};
|
|
7248
|
-
O = a(j, O, e.value), F.command = se(O), F.controller = se(b.controller),
|
|
7248
|
+
O = a(j, O, e.value), F.command = se(O), F.controller = se(b.controller), S(F, O);
|
|
7249
7249
|
}
|
|
7250
7250
|
return {
|
|
7251
7251
|
controllers: l,
|
|
7252
|
-
onClosed:
|
|
7252
|
+
onClosed: d,
|
|
7253
7253
|
emitFinalState: h,
|
|
7254
7254
|
toggleSelectingMethod: f,
|
|
7255
7255
|
getViewModeId: x,
|
|
7256
7256
|
getComponentList: y,
|
|
7257
|
-
updateTarget:
|
|
7257
|
+
updateTarget: w,
|
|
7258
7258
|
updateCommandHasPath: L,
|
|
7259
7259
|
addNewController: g,
|
|
7260
7260
|
checkIfNewControllerExists: N,
|
|
@@ -7270,7 +7270,7 @@ const Ht = /* @__PURE__ */ Fe({
|
|
|
7270
7270
|
setup(e, t) {
|
|
7271
7271
|
const n = C(e.initialData), o = we("designer-host-service"), a = Zr(n), {
|
|
7272
7272
|
loadEvents: l,
|
|
7273
|
-
resetBoundEvents:
|
|
7273
|
+
resetBoundEvents: d
|
|
7274
7274
|
} = a, m = we("useFormSchema"), p = Qr(m, a), {
|
|
7275
7275
|
addNewInteraction: h,
|
|
7276
7276
|
deleteInteracton: v,
|
|
@@ -7281,61 +7281,61 @@ const Ht = /* @__PURE__ */ Fe({
|
|
|
7281
7281
|
controllers: y
|
|
7282
7282
|
} = r;
|
|
7283
7283
|
Bt("useEventsComposition", a), Bt("useInteractionCompostion", p), Bt("useMethodsComposition", r);
|
|
7284
|
-
function
|
|
7284
|
+
function w() {
|
|
7285
7285
|
n.value.isAddControllerMethod = !1;
|
|
7286
7286
|
}
|
|
7287
7287
|
function x() {
|
|
7288
|
-
var
|
|
7289
|
-
const B = (T = (
|
|
7288
|
+
var S, T;
|
|
7289
|
+
const B = (T = (S = n.value) == null ? void 0 : S.sourceCommunication) == null ? void 0 : T.externalContainerId;
|
|
7290
7290
|
if (B) {
|
|
7291
7291
|
const {
|
|
7292
7292
|
assembleSourceOutline: b
|
|
7293
|
-
} = Et(m),
|
|
7294
|
-
Bt("sourceOutlineData",
|
|
7293
|
+
} = Et(m), u = b(o, t, B);
|
|
7294
|
+
Bt("sourceOutlineData", u);
|
|
7295
7295
|
}
|
|
7296
7296
|
}
|
|
7297
7297
|
ot(() => {
|
|
7298
|
-
|
|
7298
|
+
w(), d(), l(), c(), x();
|
|
7299
7299
|
});
|
|
7300
7300
|
function E(B) {
|
|
7301
7301
|
v(B), f(!1, null);
|
|
7302
7302
|
}
|
|
7303
|
-
function L(B,
|
|
7303
|
+
function L(B, S) {
|
|
7304
7304
|
const T = B.showSwitch[0], b = T.showSection[T.showSwitchNumber][3];
|
|
7305
|
-
let
|
|
7306
|
-
return e.initialData.getEventPath && (e.initialData.getEventPath().actionWithPath.length !== 0 ?
|
|
7307
|
-
key: `${
|
|
7305
|
+
let u = !1;
|
|
7306
|
+
return e.initialData.getEventPath && (e.initialData.getEventPath().actionWithPath.length !== 0 ? u = !0 : u = !1), s(is, {
|
|
7307
|
+
key: `${S}`,
|
|
7308
7308
|
controllers: y.value,
|
|
7309
7309
|
interaction: B,
|
|
7310
|
-
displayOrder:
|
|
7310
|
+
displayOrder: S,
|
|
7311
7311
|
collapsed: b,
|
|
7312
7312
|
onDelete: E,
|
|
7313
7313
|
sourceCommunication: n.value.sourceCommunication,
|
|
7314
7314
|
viewSourceHandle: e.viewSourceHandle,
|
|
7315
|
-
haveBoundCommand:
|
|
7315
|
+
haveBoundCommand: u
|
|
7316
7316
|
}, null);
|
|
7317
7317
|
}
|
|
7318
7318
|
function g() {
|
|
7319
7319
|
var B;
|
|
7320
|
-
return (B = i.value) == null ? void 0 : B.map((
|
|
7321
|
-
var
|
|
7322
|
-
let b =
|
|
7323
|
-
return (
|
|
7320
|
+
return (B = i.value) == null ? void 0 : B.map((S, T) => {
|
|
7321
|
+
var u;
|
|
7322
|
+
let b = S.event.label;
|
|
7323
|
+
return (u = S.communication) != null && u.length && (b = `${S.communication.map((k) => k.id).join("-")}_${b}`), s("div", {
|
|
7324
7324
|
class: "events-display-order",
|
|
7325
7325
|
key: `${b}_${T}`
|
|
7326
|
-
}, [L(
|
|
7326
|
+
}, [L(S, T)]);
|
|
7327
7327
|
});
|
|
7328
7328
|
}
|
|
7329
7329
|
function N(B) {
|
|
7330
7330
|
h(B);
|
|
7331
7331
|
}
|
|
7332
7332
|
function M(B) {
|
|
7333
|
-
const
|
|
7333
|
+
const S = B.source;
|
|
7334
7334
|
if (i.value.find((b) => {
|
|
7335
|
-
var
|
|
7336
|
-
if ((
|
|
7335
|
+
var u;
|
|
7336
|
+
if ((u = b.communication) != null && u.length && b.communication.find((k) => {
|
|
7337
7337
|
var O, j, P;
|
|
7338
|
-
return ((O = k.source) == null ? void 0 : O.formId) ===
|
|
7338
|
+
return ((O = k.source) == null ? void 0 : O.formId) === S.formId && ((j = k.source) == null ? void 0 : j.componentId) === S.componentId && ((P = k.source) == null ? void 0 : P.event) === S.event;
|
|
7339
7339
|
}))
|
|
7340
7340
|
return !0;
|
|
7341
7341
|
})) {
|