@farris/ui-vue 1.6.5-beta.8 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/avatar/index.esm.js +334 -334
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +4 -4
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +136 -133
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/component/index.esm.js +300 -300
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +4 -4
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +295 -295
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3416 -3350
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +4 -4
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +170 -170
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +637 -637
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +699 -696
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +446 -446
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +377 -374
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +204 -204
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +42 -40
- package/components/list-view/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +427 -427
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +212 -212
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +276 -276
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +160 -160
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +314 -314
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +468 -463
- package/components/order/index.umd.cjs +2 -2
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +215 -215
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4 -4
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +282 -282
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +944 -941
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +498 -492
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/search-box/index.esm.js +76 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +211 -211
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +377 -374
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/switch/index.esm.js +78 -77
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +579 -579
- package/components/tabs/index.umd.cjs +2 -2
- package/components/textarea/index.esm.js +362 -362
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +9799 -0
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/time-picker/package.json +8 -0
- package/components/time-picker/style.js +6 -0
- package/components/transfer/index.esm.js +81 -79
- package/components/transfer/index.umd.cjs +2 -2
- package/components/tree-grid/index.esm.js +100 -100
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2361 -2279
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +219 -219
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +4856 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +254 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +382 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +15439 -0
- package/designer/data-grid/index.umd.cjs +23 -0
- package/designer/data-view/index.esm.js +854 -0
- package/designer/data-view/index.umd.cjs +38 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +525 -0
- package/designer/drawer/index.umd.cjs +1 -0
- package/designer/farris-designer.all.esm.js +22330 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1098 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/list-view/index.css +1 -0
- package/designer/list-view/index.esm.js +4689 -0
- package/designer/list-view/index.umd.cjs +40 -0
- package/designer/radio-group/index.css +1 -0
- package/designer/radio-group/index.esm.js +6985 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +1099 -0
- package/designer/tree-grid/index.umd.cjs +1 -0
- package/farris.all.esm.js +9619 -9535
- package/farris.all.umd.cjs +24 -24
- package/locales/data-grid/ui/en.json +2 -2
- package/locales/designer/en.json +7 -6
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +7 -6
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
|
@@ -92,39 +92,39 @@ import "bignumber.js";
|
|
|
92
92
|
function hn(n, e) {
|
|
93
93
|
let t;
|
|
94
94
|
function o(d) {
|
|
95
|
-
const { properties: m, title:
|
|
96
|
-
if (
|
|
97
|
-
const B =
|
|
95
|
+
const { properties: m, title: v, ignore: f } = d, p = f && Array.isArray(f), F = Object.keys(m).reduce((B, V) => ((!p || !f.find((P) => P === V)) && (B[V] = m[V].type === "object" && m[V].properties ? o(m[V]) : Re(m[V].default)), B), {});
|
|
96
|
+
if (v && (!p || !f.find((B) => B === "id"))) {
|
|
97
|
+
const B = v.toLowerCase().replace(/-/g, "_");
|
|
98
98
|
F.id = `${B}_${Math.random().toString().slice(2, 6)}`;
|
|
99
99
|
}
|
|
100
100
|
return F;
|
|
101
101
|
}
|
|
102
102
|
function i(d) {
|
|
103
|
-
const { properties: m, title:
|
|
103
|
+
const { properties: m, title: v, required: f } = d;
|
|
104
104
|
if (f && Array.isArray(f)) {
|
|
105
105
|
const p = f.reduce((F, B) => (F[B] = m[B].type === "object" && m[B].properties ? o(m[B]) : Re(m[B].default), F), {});
|
|
106
|
-
if (
|
|
107
|
-
const F =
|
|
106
|
+
if (v && f.find((F) => F === "id")) {
|
|
107
|
+
const F = v.toLowerCase().replace(/-/g, "_");
|
|
108
108
|
p.id = `${F}_${Math.random().toString().slice(2, 6)}`;
|
|
109
109
|
}
|
|
110
110
|
return p;
|
|
111
111
|
}
|
|
112
112
|
return {
|
|
113
|
-
type:
|
|
113
|
+
type: v
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
function a(d, m = {},
|
|
116
|
+
function a(d, m = {}, v) {
|
|
117
117
|
const f = n[d];
|
|
118
118
|
if (f) {
|
|
119
119
|
let p = i(f);
|
|
120
120
|
const F = e[d];
|
|
121
|
-
return p = F ? F({ getSchemaByType: a }, p, m,
|
|
121
|
+
return p = F ? F({ getSchemaByType: a }, p, m, v) : p, t != null && t.appendIdentifyForNewControl && t.appendIdentifyForNewControl(p), p;
|
|
122
122
|
}
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
125
125
|
function r(d, m) {
|
|
126
|
-
const
|
|
127
|
-
return Object.keys(
|
|
126
|
+
const v = o(m);
|
|
127
|
+
return Object.keys(v).reduce((f, p) => (Object.prototype.hasOwnProperty.call(d, p) && (f[p] && nn(f[p]) && nn(d[p] || !d[p]) ? Object.assign(f[p], d[p] || {}) : f[p] = d[p]), f), v), v;
|
|
128
128
|
}
|
|
129
129
|
function c(d, m) {
|
|
130
130
|
return Object.keys(d).filter((f) => d[f] != null).reduce((f, p) => {
|
|
@@ -141,18 +141,18 @@ function hn(n, e) {
|
|
|
141
141
|
return f;
|
|
142
142
|
}, {});
|
|
143
143
|
}
|
|
144
|
-
function l(d, m,
|
|
144
|
+
function l(d, m, v = /* @__PURE__ */ new Map()) {
|
|
145
145
|
const f = r(d, m);
|
|
146
|
-
return c(f,
|
|
146
|
+
return c(f, v);
|
|
147
147
|
}
|
|
148
148
|
function s(d) {
|
|
149
|
-
var
|
|
149
|
+
var v;
|
|
150
150
|
const m = d.type;
|
|
151
151
|
if (m) {
|
|
152
152
|
const f = n[m];
|
|
153
153
|
if (!f)
|
|
154
154
|
return d;
|
|
155
|
-
const p = r(d, f), F = ((
|
|
155
|
+
const p = r(d, f), F = ((v = d.editor) == null ? void 0 : v.type) || "";
|
|
156
156
|
if (F) {
|
|
157
157
|
const B = n[F], V = r(d.editor, B);
|
|
158
158
|
p.editor = V;
|
|
@@ -172,12 +172,12 @@ function mr(n = {}) {
|
|
|
172
172
|
if (typeof d == "number")
|
|
173
173
|
return m[s].length === d;
|
|
174
174
|
if (typeof d == "object") {
|
|
175
|
-
const
|
|
176
|
-
if (
|
|
175
|
+
const v = Object.keys(d)[0], f = d[v];
|
|
176
|
+
if (v === "not")
|
|
177
177
|
return Number(m[s].length) !== Number(f);
|
|
178
|
-
if (
|
|
178
|
+
if (v === "moreThan")
|
|
179
179
|
return Number(m[s].length) >= Number(f);
|
|
180
|
-
if (
|
|
180
|
+
if (v === "lessThan")
|
|
181
181
|
return Number(m[s].length) <= Number(f);
|
|
182
182
|
}
|
|
183
183
|
return !1;
|
|
@@ -195,14 +195,14 @@ function mr(n = {}) {
|
|
|
195
195
|
return typeof u == "number" ? [{ target: d, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: d, operator: "getProperty", param: s, value: !!u }] : typeof u == "object" ? Object.keys(u).map((m) => {
|
|
196
196
|
if (m === "length")
|
|
197
197
|
return { target: d, operator: "length", param: null, value: u[m] };
|
|
198
|
-
const
|
|
199
|
-
return { target: d, operator: "getProperty", param:
|
|
198
|
+
const v = m, f = u[m];
|
|
199
|
+
return { target: d, operator: "getProperty", param: v, value: f };
|
|
200
200
|
}) : [];
|
|
201
201
|
}
|
|
202
202
|
function a(s) {
|
|
203
203
|
return Object.keys(s).reduce((d, m) => {
|
|
204
|
-
const
|
|
205
|
-
return d.push(...
|
|
204
|
+
const v = i(m, s[m]);
|
|
205
|
+
return d.push(...v), d;
|
|
206
206
|
}, []);
|
|
207
207
|
}
|
|
208
208
|
function r(s, u) {
|
|
@@ -213,10 +213,10 @@ function mr(n = {}) {
|
|
|
213
213
|
return !1;
|
|
214
214
|
}
|
|
215
215
|
function c(s, u) {
|
|
216
|
-
return a(s).reduce((
|
|
216
|
+
return a(s).reduce((v, f) => v && r(f, u), !0);
|
|
217
217
|
}
|
|
218
218
|
function l(s, u) {
|
|
219
|
-
const d = Object.keys(s), m = d.includes("allOf"),
|
|
219
|
+
const d = Object.keys(s), m = d.includes("allOf"), v = d.includes("anyOf"), f = m || v, B = (f ? s[f ? m ? "allOf" : "anyOf" : "allOf"] : [s]).map((P) => c(P, u));
|
|
220
220
|
return m ? !B.includes(!1) : B.includes(!0);
|
|
221
221
|
}
|
|
222
222
|
return { parseValueSchema: l };
|
|
@@ -525,14 +525,14 @@ function yn(n, e, t) {
|
|
|
525
525
|
}
|
|
526
526
|
function u(f, p, F, B, V, P = "", E = "") {
|
|
527
527
|
return Object.keys(f).map((b) => {
|
|
528
|
-
const O = C(1),
|
|
528
|
+
const O = C(1), h = b, T = f[b], x = Object.keys(T), w = T.title, S = T.type, I = i.get(S) || { type: "input-group", enableClear: !1 }, M = T.editor ? Object.assign({}, I, T.editor) : Object.assign({}, I), N = c(x, T, p), H = l(x, T, p);
|
|
529
529
|
M.readonly = M.readonly === void 0 ? H() : M.readonly;
|
|
530
530
|
const Q = T.type === "cascade" ? u(T.properties, p, F, B, V, P, E) : [], j = !0;
|
|
531
531
|
let D = s(T, E);
|
|
532
532
|
const X = W({
|
|
533
533
|
get() {
|
|
534
534
|
if (O.value) {
|
|
535
|
-
if (["class", "style"].find((ve) => ve ===
|
|
535
|
+
if (["class", "style"].find((ve) => ve === h) && !D && (D = o.get("/converter/appearance.converter") || null), D && D.convertFrom)
|
|
536
536
|
return D.convertFrom(F, b, V, P);
|
|
537
537
|
const ue = F[b];
|
|
538
538
|
return Object.prototype.hasOwnProperty.call(T, "defaultValue") && (ue === void 0 || typeof ue == "string" && ue === "") ? T.type === "boolean" ? T.defaultValue : T.defaultValue || "" : ue;
|
|
@@ -542,8 +542,8 @@ function yn(n, e, t) {
|
|
|
542
542
|
set(ue) {
|
|
543
543
|
O.value += 1, D && D.convertTo ? (D.convertTo(B, b, ue, V, P), D.convertTo(F, b, ue, V, P)) : (B[b] = ue, F[b] = ue);
|
|
544
544
|
}
|
|
545
|
-
}), { refreshPanelAfterChanged: q, description: K, isExpand: se, parentPropertyID: de } = T, ee = { propertyID:
|
|
546
|
-
return p[
|
|
545
|
+
}), { refreshPanelAfterChanged: q, description: K, isExpand: se, parentPropertyID: de } = T, ee = { propertyID: h, propertyName: w, propertyType: S, propertyValue: X, editor: M, visible: N, readonly: H, cascadeConfig: Q, hideCascadeTitle: j, refreshPanelAfterChanged: q, description: K, isExpand: se, parentPropertyID: de };
|
|
546
|
+
return p[h] = ee, ee;
|
|
547
547
|
});
|
|
548
548
|
}
|
|
549
549
|
function d(f, p, F = {}) {
|
|
@@ -554,36 +554,36 @@ function yn(n, e, t) {
|
|
|
554
554
|
}) : [];
|
|
555
555
|
}
|
|
556
556
|
function m(f, p, F, B, V = "") {
|
|
557
|
-
const P = p.$ref.schema, E = p.$ref.converter, y = F[P], b = y.type, O = t(y),
|
|
557
|
+
const P = p.$ref.schema, E = p.$ref.converter, y = F[P], b = y.type, O = t(y), h = {}, T = n[b];
|
|
558
558
|
if (T && T.categories) {
|
|
559
559
|
const x = T.categories[f], w = x == null ? void 0 : x.title;
|
|
560
560
|
E && Object.keys(x.properties).forEach((M) => {
|
|
561
561
|
x.properties[M].$converter = E;
|
|
562
562
|
});
|
|
563
|
-
const S = (x == null ? void 0 : x.properties) || {}, I = u(S,
|
|
563
|
+
const S = (x == null ? void 0 : x.properties) || {}, I = u(S, h, O, y, B, V);
|
|
564
564
|
return { categoryId: f, categoryName: w, properties: I };
|
|
565
565
|
}
|
|
566
566
|
return { categoryId: f, categoryName: "", properties: [] };
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function v(f, p, F, B, V) {
|
|
569
569
|
const P = f.type, E = t(f), y = {};
|
|
570
570
|
let b = V || n[P];
|
|
571
571
|
if (b && Object.keys(b).length === 0 && F && F.getPropConfig && (b = F.getPropConfig(B)), b && b.categories) {
|
|
572
572
|
const O = [];
|
|
573
|
-
return Object.keys(b.categories).map((
|
|
574
|
-
const T = b.categories[
|
|
573
|
+
return Object.keys(b.categories).map((h) => {
|
|
574
|
+
const T = b.categories[h];
|
|
575
575
|
if (T.$ref) {
|
|
576
|
-
O.push(m(
|
|
576
|
+
O.push(m(h, T, f, p, B));
|
|
577
577
|
return;
|
|
578
578
|
}
|
|
579
579
|
const x = T == null ? void 0 : T.title, w = T == null ? void 0 : T.tabId, S = T == null ? void 0 : T.tabName, I = T == null ? void 0 : T.hide, M = T == null ? void 0 : T.hideTitle, N = u(T.properties || {}, y, E, f, p, B, T.$converter), { setPropertyRelates: H } = T, Q = T == null ? void 0 : T.parentPropertyID;
|
|
580
|
-
O.push({ categoryId:
|
|
580
|
+
O.push({ categoryId: h, categoryName: x, tabId: w, tabName: S, hide: I, properties: N, hideTitle: M, setPropertyRelates: H, parentPropertyID: Q });
|
|
581
581
|
}), O;
|
|
582
582
|
}
|
|
583
583
|
return [];
|
|
584
584
|
}
|
|
585
585
|
return {
|
|
586
|
-
getPropertyConfigBySchema:
|
|
586
|
+
getPropertyConfigBySchema: v,
|
|
587
587
|
getPropertyConfigByType: d,
|
|
588
588
|
propertyConverterMap: o
|
|
589
589
|
};
|
|
@@ -734,7 +734,7 @@ function _r(n, e, t) {
|
|
|
734
734
|
const { getCustomButtons: N } = I.value;
|
|
735
735
|
return I.value.canMove || N && ((H = N()) != null && H.length) ? M : m(S.parent);
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function v(S) {
|
|
738
738
|
return !!t && t.canAccepts(S);
|
|
739
739
|
}
|
|
740
740
|
function f() {
|
|
@@ -790,7 +790,7 @@ function _r(n, e, t) {
|
|
|
790
790
|
if (t && t.getCustomButtons)
|
|
791
791
|
return t.getCustomButtons();
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function h(S) {
|
|
794
794
|
var M, N;
|
|
795
795
|
if (!((M = e == null ? void 0 : e.schema) != null && M.id))
|
|
796
796
|
return;
|
|
@@ -813,7 +813,7 @@ function _r(n, e, t) {
|
|
|
813
813
|
function T(S) {
|
|
814
814
|
var H;
|
|
815
815
|
const { changeObject: I } = S, { propertyID: M, propertyValue: N } = I;
|
|
816
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((H = S == null ? void 0 : S.changeObject) == null ? void 0 : H.propertyID) && M && N && (
|
|
816
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((H = S == null ? void 0 : S.changeObject) == null ? void 0 : H.propertyID) && M && N && (h(), r)) {
|
|
817
817
|
const Q = r.getControlBasicInfoMap(), j = Q.keys().toArray().filter((D) => {
|
|
818
818
|
var X, q;
|
|
819
819
|
return ((X = Q.get(D)) == null ? void 0 : X.reliedComponentId) === ((q = e == null ? void 0 : e.schema) == null ? void 0 : q.id);
|
|
@@ -839,7 +839,7 @@ function _r(n, e, t) {
|
|
|
839
839
|
schema: e == null ? void 0 : e.schema,
|
|
840
840
|
styles: o,
|
|
841
841
|
designerClass: i,
|
|
842
|
-
canAccepts:
|
|
842
|
+
canAccepts: v,
|
|
843
843
|
getBelongedComponentInstance: d,
|
|
844
844
|
getDraggableDesignItemElement: m,
|
|
845
845
|
getDraggingDisplayText: f,
|
|
@@ -853,7 +853,7 @@ function _r(n, e, t) {
|
|
|
853
853
|
onRemoveComponent: b,
|
|
854
854
|
getCustomButtons: O,
|
|
855
855
|
onPropertyChanged: x,
|
|
856
|
-
setComponentBasicInfoMap:
|
|
856
|
+
setComponentBasicInfoMap: h,
|
|
857
857
|
updateContextSchema: e == null ? void 0 : e.updateContextSchema
|
|
858
858
|
}, a;
|
|
859
859
|
}
|
|
@@ -945,7 +945,7 @@ class Wr {
|
|
|
945
945
|
}
|
|
946
946
|
getComponentContext(e) {
|
|
947
947
|
var p, F, B, V;
|
|
948
|
-
const t = e.schema, o = t.appearance && t.appearance.class || "", i = o.split(" ") || [], a = t.contents || [], r = a.length ? a[0] : null, c = r && r.appearance ? r.appearance.class : "", l = c ? c.split(" ") : [], s = (p = r == null ? void 0 : r.contents) != null && p.length ? r == null ? void 0 : r.contents[0] : null, u = s && s.appearance ? s.appearance.class : "", d = u ? u.split(" ") : [], m = t.type === "component" ? (B = (F = e.parent) == null ? void 0 : F.parent) == null ? void 0 : B.schema : (V = e.parent) == null ? void 0 : V.schema,
|
|
948
|
+
const t = e.schema, o = t.appearance && t.appearance.class || "", i = o.split(" ") || [], a = t.contents || [], r = a.length ? a[0] : null, c = r && r.appearance ? r.appearance.class : "", l = c ? c.split(" ") : [], s = (p = r == null ? void 0 : r.contents) != null && p.length ? r == null ? void 0 : r.contents[0] : null, u = s && s.appearance ? s.appearance.class : "", d = u ? u.split(" ") : [], m = t.type === "component" ? (B = (F = e.parent) == null ? void 0 : F.parent) == null ? void 0 : B.schema : (V = e.parent) == null ? void 0 : V.schema, v = m && m.appearance && m.appearance.class || "", f = v ? v.split(" ") : [];
|
|
949
949
|
return {
|
|
950
950
|
componentClass: o,
|
|
951
951
|
componentClassList: i,
|
|
@@ -957,7 +957,7 @@ class Wr {
|
|
|
957
957
|
secondLevelChildClass: u,
|
|
958
958
|
secondLevelChildClassList: d,
|
|
959
959
|
parentSchema: m,
|
|
960
|
-
parentClass:
|
|
960
|
+
parentClass: v,
|
|
961
961
|
parentClassList: f,
|
|
962
962
|
component: t
|
|
963
963
|
};
|
|
@@ -1383,8 +1383,8 @@ class Qr {
|
|
|
1383
1383
|
type: "property-editor",
|
|
1384
1384
|
propertyTypes: d
|
|
1385
1385
|
};
|
|
1386
|
-
return d.map((
|
|
1387
|
-
switch (
|
|
1386
|
+
return d.map((v) => {
|
|
1387
|
+
switch (v) {
|
|
1388
1388
|
case "Const":
|
|
1389
1389
|
Object.assign(m, {
|
|
1390
1390
|
constType: "enum",
|
|
@@ -1504,9 +1504,9 @@ class Qr {
|
|
|
1504
1504
|
return;
|
|
1505
1505
|
const { expressionId: a, expressionInfo: r } = t, { targetId: c, targetType: l, expressionType: s, value: u, message: d } = r, m = this.formSchemaUtils.getModule();
|
|
1506
1506
|
m.expressions = m.expressions || [];
|
|
1507
|
-
const { expressions:
|
|
1508
|
-
let f =
|
|
1509
|
-
f || (f = { target: c, rules: [], targetType: l },
|
|
1507
|
+
const { expressions: v } = m;
|
|
1508
|
+
let f = v.find((F) => F.target === c);
|
|
1509
|
+
f || (f = { target: c, rules: [], targetType: l }, v.push(f));
|
|
1510
1510
|
const p = f.rules.find((F) => F.type === s);
|
|
1511
1511
|
if (p)
|
|
1512
1512
|
p.value = u, p.message = d;
|
|
@@ -1669,7 +1669,7 @@ const Kr = {
|
|
|
1669
1669
|
"f-icon": !0
|
|
1670
1670
|
};
|
|
1671
1671
|
return O[b] = !0, O;
|
|
1672
|
-
}), m = W(() => r.value.title || r.value.message),
|
|
1672
|
+
}), m = W(() => r.value.title || r.value.message), v = W(() => n.showCloseButton), f = W(() => !!r.value.buttons || !!e.slots.default), p = W(() => t.value === "en" ? {
|
|
1673
1673
|
wordBreak: "keep-all",
|
|
1674
1674
|
overflowWrap: "break-word"
|
|
1675
1675
|
} : {});
|
|
@@ -1698,7 +1698,7 @@ const Kr = {
|
|
|
1698
1698
|
return () => g("div", {
|
|
1699
1699
|
class: u.value,
|
|
1700
1700
|
style: "min-height:44px"
|
|
1701
|
-
}, [
|
|
1701
|
+
}, [v.value && g("button", {
|
|
1702
1702
|
title: o("messageBox.close"),
|
|
1703
1703
|
class: "toast-close f-btn-icon f-bare",
|
|
1704
1704
|
onClick: F
|
|
@@ -1746,11 +1746,11 @@ const Kr = {
|
|
|
1746
1746
|
top: 20,
|
|
1747
1747
|
bottom: 12
|
|
1748
1748
|
}, i = C(), a = C(n.options), r = C(n.showCloseButton), c = W(() => n.position || "bottom-right"), l = W(() => n.timeout != null ? n.timeout : 3e3), s = W(() => {
|
|
1749
|
-
const m = n.bottom ? n.bottom : o.bottom,
|
|
1749
|
+
const m = n.bottom ? n.bottom : o.bottom, v = n.top ? n.top : o.top, f = {
|
|
1750
1750
|
transition: "all 0.2s ease",
|
|
1751
1751
|
left: c.value.indexOf("left") > -1 ? `${n.left ? n.left : o.left}px` : "",
|
|
1752
1752
|
right: c.value.indexOf("right") > -1 ? `${n.right ? n.right : o.right}px` : "",
|
|
1753
|
-
top: c.value.indexOf("top") > -1 ? `${
|
|
1753
|
+
top: c.value.indexOf("top") > -1 ? `${v}px` : "",
|
|
1754
1754
|
bottom: c.value.indexOf("bottom") > -1 ? `${m}px` : ""
|
|
1755
1755
|
};
|
|
1756
1756
|
return c.value.indexOf("center") > -1 && (f.left = "50%", f.marginLeft = "calc(-24rem / 2)", c.value === "center-center" && (f.top = "50%", f.transform = "translate(-50%, -50%)")), f;
|
|
@@ -1765,7 +1765,7 @@ const Kr = {
|
|
|
1765
1765
|
container: i,
|
|
1766
1766
|
notifyPosition: c
|
|
1767
1767
|
});
|
|
1768
|
-
function d(m,
|
|
1768
|
+
function d(m, v) {
|
|
1769
1769
|
u();
|
|
1770
1770
|
}
|
|
1771
1771
|
return () => g("div", {
|
|
@@ -2064,7 +2064,7 @@ const oa = {
|
|
|
2064
2064
|
}
|
|
2065
2065
|
}
|
|
2066
2066
|
};
|
|
2067
|
-
function ia(n, e, t, o, i, a, r, c, l, s, u, d, m,
|
|
2067
|
+
function ia(n, e, t, o, i, a, r, c, l, s, u, d, m, v, f, p, F) {
|
|
2068
2068
|
const {
|
|
2069
2069
|
calculateCellPositionInRow: B
|
|
2070
2070
|
} = a, {
|
|
@@ -2075,9 +2075,9 @@ function ia(n, e, t, o, i, a, r, c, l, s, u, d, m, h, f, p, F) {
|
|
|
2075
2075
|
gridDataStyle: y,
|
|
2076
2076
|
leftFixedGridDataStyle: b,
|
|
2077
2077
|
rightFixedGridDataStyle: O
|
|
2078
|
-
} =
|
|
2079
|
-
renderDataRow:
|
|
2080
|
-
} = ro(n, e, V, F, c, l, s, u, d, m,
|
|
2078
|
+
} = v, {
|
|
2079
|
+
renderDataRow: h
|
|
2080
|
+
} = ro(n, e, V, F, c, l, s, u, d, m, v, f, p), T = [h];
|
|
2081
2081
|
function x(N, H) {
|
|
2082
2082
|
const Q = B(N);
|
|
2083
2083
|
return F.value.filter((j) => j.visible !== !1).map((j, D) => T[j.type](j, Q, H, D));
|
|
@@ -2125,17 +2125,17 @@ const Gt = /* @__PURE__ */ Me({
|
|
|
2125
2125
|
var Zt, Kt;
|
|
2126
2126
|
const o = ((Zt = n.rowOption) == null ? void 0 : Zt.height) || 28, i = C(20), a = C(n.columns), r = ao(n), {
|
|
2127
2127
|
idField: c
|
|
2128
|
-
} = r, l = C(), s = C(), u = C(), d = C(), m = C(),
|
|
2128
|
+
} = r, l = C(), s = C(), u = C(), d = C(), m = C(), v = C([]), f = C(!1), p = C(((Kt = n.rowOption) == null ? void 0 : Kt.wrapContent) || !1), F = lo(n, r), B = so(n, e), V = co(n), {
|
|
2129
2129
|
collapseField: P
|
|
2130
2130
|
} = V, {
|
|
2131
2131
|
showLoading: E,
|
|
2132
2132
|
renderLoading: y
|
|
2133
2133
|
} = uo(n, l), b = fo(n, /* @__PURE__ */ new Map(), B, V, r), {
|
|
2134
2134
|
dataView: O
|
|
2135
|
-
} = b,
|
|
2135
|
+
} = b, h = po(n, b, r, v, e), {
|
|
2136
2136
|
showSelection: T,
|
|
2137
2137
|
selectedValues: x
|
|
2138
|
-
} =
|
|
2138
|
+
} = h, w = mo(n, v, b, r, h, e), S = W(() => n.disabled), I = W(() => n.virtualized ? Math.min(b.dataView.value.length, i.value) : b.dataView.value.length), M = vo(n, b), {
|
|
2139
2139
|
shouldRenderPagination: N
|
|
2140
2140
|
} = M, {
|
|
2141
2141
|
containerStyleObject: H
|
|
@@ -2154,11 +2154,11 @@ const Gt = /* @__PURE__ */ Me({
|
|
|
2154
2154
|
updateColumnRenderContext: ee
|
|
2155
2155
|
} = q;
|
|
2156
2156
|
se(b, K);
|
|
2157
|
-
const ue = Co(n, de), ve = So(n, e,
|
|
2157
|
+
const ue = Co(n, de), ve = So(n, e, h, r), ae = To(n, e, r, ve, v), J = Fo(n), le = xo(n, ae, J), _e = Eo(n, b, ae, V, r, J, le), $e = Mo(n, a, b, I, 0, _e), {
|
|
2158
2158
|
getVisualData: ke
|
|
2159
|
-
} = $e, tt = Bo(n, de), We = ko(n,
|
|
2159
|
+
} = $e, tt = Bo(n, de), We = ko(n, h), {
|
|
2160
2160
|
sidebarWidth: nt
|
|
2161
|
-
} = We, pe = Io(n, b,
|
|
2161
|
+
} = We, pe = Io(n, b, v, de, $e, I, 0, nt), {
|
|
2162
2162
|
onWheel: st,
|
|
2163
2163
|
dataGridWidth: Le,
|
|
2164
2164
|
viewPortHeight: Ae,
|
|
@@ -2181,13 +2181,13 @@ const Gt = /* @__PURE__ */ Me({
|
|
|
2181
2181
|
"fv-grid-wrap-content": p.value
|
|
2182
2182
|
})), {
|
|
2183
2183
|
renderDataArea: me
|
|
2184
|
-
} = ia(n, e, u, d, m, tt, q, b, ae, V, ve,
|
|
2184
|
+
} = ia(n, e, u, d, m, tt, q, b, ae, V, ve, h, w, pe, $e, J, v), {
|
|
2185
2185
|
renderGridHeader: he,
|
|
2186
2186
|
renderGridColumnResizeOverlay: De,
|
|
2187
2187
|
shouldShowHeader: Bt
|
|
2188
|
-
} = Do(n, e, s, d, m, q, b, it, ot, B, ze, Ye, ue,
|
|
2188
|
+
} = Do(n, e, s, d, m, q, b, it, ot, B, ze, Ye, ue, h, We, K, pe, Ie, v), {
|
|
2189
2189
|
renderDataGridSidebar: kt
|
|
2190
|
-
} = Ro(n, ve,
|
|
2190
|
+
} = Ro(n, ve, h, We, pe), {
|
|
2191
2191
|
renderDisableMask: It
|
|
2192
2192
|
} = jo(), {
|
|
2193
2193
|
renderHorizontalScrollbar: Vt
|
|
@@ -2202,7 +2202,7 @@ const Gt = /* @__PURE__ */ Me({
|
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
2204
|
et(() => {
|
|
2205
|
-
s.value && (i.value = Math.max(Math.ceil(s.value.clientHeight / o), i.value),
|
|
2205
|
+
s.value && (i.value = Math.max(Math.ceil(s.value.clientHeight / o), i.value), v.value = ke(0, I.value + 0 - 1), io(s.value, Nt), Pe(), xt(() => {
|
|
2206
2206
|
s.value && (Le.value = s.value.clientWidth), u.value && (Ie.value = u.value.clientWidth, Ae.value = u.value.clientHeight);
|
|
2207
2207
|
})), E.value && y();
|
|
2208
2208
|
}), Tt(() => {
|
|
@@ -2216,24 +2216,24 @@ const Gt = /* @__PURE__ */ Me({
|
|
|
2216
2216
|
b.expandTo(Y), b.reOrderVisibleIndex(), Ue();
|
|
2217
2217
|
}
|
|
2218
2218
|
function ut() {
|
|
2219
|
-
const Y =
|
|
2219
|
+
const Y = h.getSelectionRow();
|
|
2220
2220
|
return Y ? Y.dataIndex - 1 : -1;
|
|
2221
2221
|
}
|
|
2222
2222
|
function Dt() {
|
|
2223
2223
|
const Y = ut();
|
|
2224
|
-
b.insertNewDataItem(Y),
|
|
2224
|
+
b.insertNewDataItem(Y), v.value = ke(0, I.value + 0 - 1);
|
|
2225
2225
|
}
|
|
2226
2226
|
function Rt() {
|
|
2227
2227
|
const Y = ut();
|
|
2228
|
-
b.insertNewChildDataItem(Y),
|
|
2228
|
+
b.insertNewChildDataItem(Y), v.value = ke(0, I.value + 0 - 1);
|
|
2229
2229
|
}
|
|
2230
2230
|
function jt(Y, te) {
|
|
2231
|
-
const ye =
|
|
2231
|
+
const ye = v.value.find((Ee) => Ee.raw[c.value] === te), Ce = ye ? ye.dataIndex - 1 : -1;
|
|
2232
2232
|
b.insertNewChildDataItems(Y, Ce);
|
|
2233
2233
|
}
|
|
2234
2234
|
function $t() {
|
|
2235
2235
|
const Y = ut(), te = w.getNextSelectableHierarchyItemId(Y);
|
|
2236
|
-
b.removeHierarchyDataItem(Y),
|
|
2236
|
+
b.removeHierarchyDataItem(Y), v.value = ke(0, I.value + 0 - 1), te && w.selectItemById(te);
|
|
2237
2237
|
}
|
|
2238
2238
|
function ht(Y) {
|
|
2239
2239
|
ae.onEditingRow(Y);
|
|
@@ -2254,35 +2254,35 @@ const Gt = /* @__PURE__ */ Me({
|
|
|
2254
2254
|
Y && (b.load(Y), b.reOrderVisibleIndex(), te != null && te.keepScrollPosition ? pe.scrollTo(pe.offsetY.value) : Ue());
|
|
2255
2255
|
}
|
|
2256
2256
|
function Z(Y) {
|
|
2257
|
-
|
|
2257
|
+
w.selectItemById(Y);
|
|
2258
2258
|
}
|
|
2259
2259
|
function ie(Y) {
|
|
2260
|
-
const te =
|
|
2260
|
+
const te = v.value.find((ye) => ye.raw[r.idField.value] === Y);
|
|
2261
2261
|
te && ve.clickRowItem(te);
|
|
2262
2262
|
}
|
|
2263
2263
|
function re(Y) {
|
|
2264
2264
|
ve.activeRowById(Y);
|
|
2265
2265
|
}
|
|
2266
2266
|
function Be(Y) {
|
|
2267
|
-
|
|
2267
|
+
w.selectItemByIds(Y);
|
|
2268
2268
|
}
|
|
2269
2269
|
function Te() {
|
|
2270
|
-
return
|
|
2270
|
+
return h.getSelectedItems();
|
|
2271
2271
|
}
|
|
2272
2272
|
function Fe() {
|
|
2273
|
-
|
|
2273
|
+
h.clearSelection();
|
|
2274
2274
|
}
|
|
2275
|
-
const Ve = W(() => !
|
|
2275
|
+
const Ve = W(() => !v.value || !v.value.length), {
|
|
2276
2276
|
renderEmpty: ge
|
|
2277
2277
|
} = Ao(n, e);
|
|
2278
2278
|
function Oe() {
|
|
2279
|
-
return
|
|
2279
|
+
return h.getSelectionRow();
|
|
2280
2280
|
}
|
|
2281
2281
|
function xe(Y) {
|
|
2282
|
-
|
|
2282
|
+
w.unSelectItemByIds(Y);
|
|
2283
2283
|
}
|
|
2284
2284
|
function we() {
|
|
2285
|
-
return
|
|
2285
|
+
return h.currentSelectedDataId.value;
|
|
2286
2286
|
}
|
|
2287
2287
|
function dt(Y, te, ye) {
|
|
2288
2288
|
const Ce = O.value.find((Ee) => Ee[c.value] === Y);
|
|
@@ -2298,7 +2298,7 @@ const Gt = /* @__PURE__ */ Me({
|
|
|
2298
2298
|
} = ye;
|
|
2299
2299
|
be && !qe(te[be]) && (Ce.__fv_collapse__ = te[be]), Je && !qe(te[Je]) && (Ce.__fv_checked__ = te[Je]), Xe && !qe(te[Xe]) && (Ce.__fv_disabled__ = te[Xe]), Qe && !qe(te[Qe]) && (Ce.__fv_visible__ = te[Qe]);
|
|
2300
2300
|
}
|
|
2301
|
-
const Ee =
|
|
2301
|
+
const Ee = v.value.find((be) => be.raw[c.value] === Y), en = v.value.findIndex((be) => be.raw[c.value] === Y);
|
|
2302
2302
|
if (Ee) {
|
|
2303
2303
|
if (Ee.raw = Ce, Object.keys(Ee.data).forEach((be) => {
|
|
2304
2304
|
Ee.data[be].updateData(Ce);
|
|
@@ -2311,7 +2311,7 @@ const Gt = /* @__PURE__ */ Me({
|
|
|
2311
2311
|
} = ye;
|
|
2312
2312
|
be && !qe(te[be]) && (Ee.collapse = te[be]), Je && !qe(te[Je]) && (Ee.checked = te[Je]), Xe && !qe(te[Xe]) && (Ee.disabled = te[Xe]), Qe && !qe(te[Qe]) && (Ee.visible = te[Qe]);
|
|
2313
2313
|
}
|
|
2314
|
-
|
|
2314
|
+
v.value = [...v.value.slice(0, en), Ee, ...v.value.slice(en + 1)], b.updateSummary();
|
|
2315
2315
|
}
|
|
2316
2316
|
}
|
|
2317
2317
|
}
|
|
@@ -2329,14 +2329,14 @@ const Gt = /* @__PURE__ */ Me({
|
|
|
2329
2329
|
Y !== te && (Y ? D(a) : X(a), L(a.value));
|
|
2330
2330
|
});
|
|
2331
2331
|
function $n(Y) {
|
|
2332
|
-
return
|
|
2332
|
+
return v.value.filter((te) => Y.includes(te.raw[n.idField]));
|
|
2333
2333
|
}
|
|
2334
2334
|
function Ln(Y) {
|
|
2335
|
-
const te = r.idField.value, ye =
|
|
2335
|
+
const te = r.idField.value, ye = v.value.find((Ce) => Ce.raw[te] === Y);
|
|
2336
2336
|
ye && ve.changeRow(ye);
|
|
2337
2337
|
}
|
|
2338
2338
|
function An() {
|
|
2339
|
-
|
|
2339
|
+
h.keepSelectingOnPaging.value || Fe(), b.updateVisibleDataSummary(v.value);
|
|
2340
2340
|
}
|
|
2341
2341
|
e.expose({
|
|
2342
2342
|
activeRowById: re,
|
|
@@ -2374,7 +2374,7 @@ const Gt = /* @__PURE__ */ Me({
|
|
|
2374
2374
|
...H.value,
|
|
2375
2375
|
borderRadius: "5px"
|
|
2376
2376
|
}));
|
|
2377
|
-
Uo(n, e, b, pe, M,
|
|
2377
|
+
Uo(n, e, b, pe, M, h);
|
|
2378
2378
|
const qn = W(() => ({
|
|
2379
2379
|
"d-flex": !0,
|
|
2380
2380
|
"justify-content-between": N.value && T.value,
|
|
@@ -2397,7 +2397,7 @@ const Gt = /* @__PURE__ */ Me({
|
|
|
2397
2397
|
onMouseover: () => f.value = !0,
|
|
2398
2398
|
onMouseleave: () => f.value = !1,
|
|
2399
2399
|
style: Un.value
|
|
2400
|
-
}, [s.value && kt(
|
|
2400
|
+
}, [s.value && kt(v), s.value && me(), s.value && Ve.value && ge(), s.value && Vt(), s.value && Ot()]), s.value && Hn(), T.value && g("div", {
|
|
2401
2401
|
class: qn.value
|
|
2402
2402
|
}, [T.value && g("div", {
|
|
2403
2403
|
class: Gn.value
|
|
@@ -2462,7 +2462,7 @@ function kn(n) {
|
|
|
2462
2462
|
const { fields: F } = p.type;
|
|
2463
2463
|
c.value = !1, o.value = s(F), i.value && i.value.updateDataSource(o.value);
|
|
2464
2464
|
}
|
|
2465
|
-
const
|
|
2465
|
+
const v = {
|
|
2466
2466
|
customRowStatus: (p) => (p.disabled = !p.raw.selectable, p)
|
|
2467
2467
|
};
|
|
2468
2468
|
function f() {
|
|
@@ -2473,7 +2473,7 @@ function kn(n) {
|
|
|
2473
2473
|
resolveFieldDataSource: m,
|
|
2474
2474
|
occupiedFieldMap: t,
|
|
2475
2475
|
fieldDataSource: o,
|
|
2476
|
-
fieldTreeRowOption:
|
|
2476
|
+
fieldTreeRowOption: v,
|
|
2477
2477
|
fieldColumns: a,
|
|
2478
2478
|
fieldSelectionOption: r,
|
|
2479
2479
|
checkAndGetSelectedFields: f,
|
|
@@ -2723,7 +2723,7 @@ const Ca = /* @__PURE__ */ Me({
|
|
|
2723
2723
|
"f-icon-check": y
|
|
2724
2724
|
}, E.icon || "");
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2726
|
+
function v(E, y) {
|
|
2727
2727
|
const b = [];
|
|
2728
2728
|
return E.icon ? b.push(g("span", {
|
|
2729
2729
|
class: m(E, !1)
|
|
@@ -2767,7 +2767,7 @@ const Ca = /* @__PURE__ */ Me({
|
|
|
2767
2767
|
class: d(E, y)
|
|
2768
2768
|
}, [g("div", {
|
|
2769
2769
|
class: "f-progress-step-content"
|
|
2770
|
-
}, [
|
|
2770
|
+
}, [v(E, y), p(E, y)]), B(E, y) && g("div", {
|
|
2771
2771
|
class: F(E, y)
|
|
2772
2772
|
}, [g("span", {
|
|
2773
2773
|
class: V.value
|
|
@@ -2914,7 +2914,7 @@ function xa(n, e, t, o) {
|
|
|
2914
2914
|
var a, r, c, l, s, u;
|
|
2915
2915
|
const i = t.parentComponentInstance;
|
|
2916
2916
|
if (i && o) {
|
|
2917
|
-
const d = (a = i.schema) == null ? void 0 : a.type,
|
|
2917
|
+
const d = (a = i.schema) == null ? void 0 : a.type, v = {
|
|
2918
2918
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
2919
2919
|
componentName: ((r = t.bindingSourceContext) == null ? void 0 : r.entityTitle) || ((l = (c = t.bindingSourceContext) == null ? void 0 : c.bindingEntity) == null ? void 0 : l.name) || "标题",
|
|
2920
2920
|
componentType: "form",
|
|
@@ -2923,7 +2923,7 @@ function xa(n, e, t, o) {
|
|
|
2923
2923
|
bindTo: ((s = t.bindingSourceContext) == null ? void 0 : s.bindTo) || "/",
|
|
2924
2924
|
selectedFields: (u = t.bindingSourceContext) == null ? void 0 : u.bindingEntityFields
|
|
2925
2925
|
};
|
|
2926
|
-
return new Fa(n, o).createComponent(
|
|
2926
|
+
return new Fa(n, o).createComponent(v);
|
|
2927
2927
|
} else
|
|
2928
2928
|
return e;
|
|
2929
2929
|
}
|
|
@@ -3306,7 +3306,7 @@ const Wa = {
|
|
|
3306
3306
|
var O;
|
|
3307
3307
|
const t = C(n.id), o = C(n.customClass), i = C(n.editor), a = C(n.label), r = C(n.modelValue), c = C(n.readonly), l = C(((O = n.editor) == null ? void 0 : O.required) || n.required), s = C(n.showLabel), u = C(n.visible);
|
|
3308
3308
|
C(n.type);
|
|
3309
|
-
const d = C(), m = C(n.errors),
|
|
3309
|
+
const d = C(), m = C(n.errors), v = W(() => s.value ? n.showLabelType : "none"), {
|
|
3310
3310
|
resolveEditorProps: f,
|
|
3311
3311
|
resolveEditorType: p,
|
|
3312
3312
|
getChangeFunctionName: F,
|
|
@@ -3317,9 +3317,9 @@ const Wa = {
|
|
|
3317
3317
|
"common-group": !0,
|
|
3318
3318
|
"q-state-readonly": c.value
|
|
3319
3319
|
}));
|
|
3320
|
-
function P(
|
|
3321
|
-
r.value = T !== void 0 ? T :
|
|
3322
|
-
newValue:
|
|
3320
|
+
function P(h, T, x) {
|
|
3321
|
+
r.value = T !== void 0 ? T : h, e.emit("update:modelValue", r.value), e.emit("change", r.value, {
|
|
3322
|
+
newValue: h,
|
|
3323
3323
|
newModelValue: T,
|
|
3324
3324
|
parameters: x
|
|
3325
3325
|
});
|
|
@@ -3328,8 +3328,8 @@ const Wa = {
|
|
|
3328
3328
|
e.emit("update:modelValue", "");
|
|
3329
3329
|
}
|
|
3330
3330
|
const y = W(() => {
|
|
3331
|
-
const
|
|
3332
|
-
return S && (x[S] = E), x[w] = P, (x.id == null || x.id === "") && (x.id = t.value),
|
|
3331
|
+
const h = i.value.type || "input-group", T = p(h), x = f(h, i.value), w = F(h), S = B(i.value.type);
|
|
3332
|
+
return S && (x[S] = E), x[w] = P, (x.id == null || x.id === "") && (x.id = t.value), h === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (x.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (x.onEndValueChange = i.value.onEndValueChange)) : h === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? (x["onUpdate:idValue"] = i.value["onUpdate:idValue"], x.id = t.value) : h === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? x.onSelectionChange = i.value.onSelectionChange : h === "property-editor" && (x.onBeforeOpenVariables = i.value.onBeforeOpenVariables), () => g(T, Ft({
|
|
3333
3333
|
ref: d
|
|
3334
3334
|
}, x, {
|
|
3335
3335
|
modelValue: r.value,
|
|
@@ -3342,9 +3342,9 @@ const Wa = {
|
|
|
3342
3342
|
errors: m.value
|
|
3343
3343
|
}, null);
|
|
3344
3344
|
}
|
|
3345
|
-
return Se([() => n.id, () => n.customClass, () => n.editor, () => n.label, () => n.modelValue, () => n.readonly, () => n.required, () => n.showLabel, () => n.visible, () => n.errors], ([
|
|
3345
|
+
return Se([() => n.id, () => n.customClass, () => n.editor, () => n.label, () => n.modelValue, () => n.readonly, () => n.required, () => n.showLabel, () => n.visible, () => n.errors], ([h, T, x, w, S, I, M, N, H, Q]) => {
|
|
3346
3346
|
var j;
|
|
3347
|
-
t.value =
|
|
3347
|
+
t.value = h, o.value = T, i.value = x, a.value = w, r.value = S, c.value = I, l.value = ((j = i.value) == null ? void 0 : j.required) || M, s.value = N, u.value = H, m.value = Q;
|
|
3348
3348
|
}), e.expose({
|
|
3349
3349
|
editorRef: d
|
|
3350
3350
|
}), () => u.value && g("div", {
|
|
@@ -3357,7 +3357,7 @@ const Wa = {
|
|
|
3357
3357
|
class: V.value
|
|
3358
3358
|
}, [g(Ga, {
|
|
3359
3359
|
id: `${t.value}-lable`,
|
|
3360
|
-
showType:
|
|
3360
|
+
showType: v.value,
|
|
3361
3361
|
required: l.value,
|
|
3362
3362
|
text: a.value,
|
|
3363
3363
|
title: a.value
|
|
@@ -3475,11 +3475,11 @@ var Xa = { exports: {} };
|
|
|
3475
3475
|
var m = new Error("Cannot find module '" + s + "'");
|
|
3476
3476
|
throw m.code = "MODULE_NOT_FOUND", m;
|
|
3477
3477
|
}
|
|
3478
|
-
var
|
|
3479
|
-
o[s][0].call(
|
|
3478
|
+
var v = i[s] = { exports: {} };
|
|
3479
|
+
o[s][0].call(v.exports, function(f) {
|
|
3480
3480
|
var p = o[s][1][f];
|
|
3481
3481
|
return r(p || f);
|
|
3482
|
-
},
|
|
3482
|
+
}, v, v.exports, t, o, i, a);
|
|
3483
3483
|
}
|
|
3484
3484
|
return i[s].exports;
|
|
3485
3485
|
}
|
|
@@ -3495,8 +3495,8 @@ var Xa = { exports: {} };
|
|
|
3495
3495
|
return m ? m.lastIndex = 0 : a[d] = m = new RegExp(r + d + c, "g"), m;
|
|
3496
3496
|
}
|
|
3497
3497
|
function s(d, m) {
|
|
3498
|
-
var
|
|
3499
|
-
|
|
3498
|
+
var v = d.className;
|
|
3499
|
+
v.length ? l(m).test(v) || (d.className += " " + m) : d.className = m;
|
|
3500
3500
|
}
|
|
3501
3501
|
function u(d, m) {
|
|
3502
3502
|
d.className = d.className.replace(l(m), " ").trim();
|
|
@@ -3578,7 +3578,7 @@ var Xa = { exports: {} };
|
|
|
3578
3578
|
return;
|
|
3579
3579
|
var _ = y(k);
|
|
3580
3580
|
if (_ && !J.invalid(k, L)) {
|
|
3581
|
-
var Z = J.moves(k, _, L,
|
|
3581
|
+
var Z = J.moves(k, _, L, h(k));
|
|
3582
3582
|
if (Z)
|
|
3583
3583
|
return {
|
|
3584
3584
|
item: k,
|
|
@@ -3595,7 +3595,7 @@ var Xa = { exports: {} };
|
|
|
3595
3595
|
L && Ue(L);
|
|
3596
3596
|
}
|
|
3597
3597
|
function Ue(k) {
|
|
3598
|
-
Lt(k.item, k.source) && (q = k.item.cloneNode(!0), le.emit("cloned", q, k.item, "copy")), N = k.source, H = k.item, D = X =
|
|
3598
|
+
Lt(k.item, k.source) && (q = k.item.cloneNode(!0), le.emit("cloned", q, k.item, "copy")), N = k.source, H = k.item, D = X = h(k.item), le.dragging = !0, le.emit("drag", H, N);
|
|
3599
3599
|
}
|
|
3600
3600
|
function ct() {
|
|
3601
3601
|
return !1;
|
|
@@ -3637,7 +3637,7 @@ var Xa = { exports: {} };
|
|
|
3637
3637
|
}
|
|
3638
3638
|
function me(k, L) {
|
|
3639
3639
|
var _;
|
|
3640
|
-
return L !== void 0 ? _ = L : M ? _ = X : _ =
|
|
3640
|
+
return L !== void 0 ? _ = L : M ? _ = X : _ = h(q || H), k === N && _ === D;
|
|
3641
3641
|
}
|
|
3642
3642
|
function he(k, L, _) {
|
|
3643
3643
|
for (var Z = k; Z && !ie(); )
|
|
@@ -3685,7 +3685,7 @@ var Xa = { exports: {} };
|
|
|
3685
3685
|
}
|
|
3686
3686
|
}
|
|
3687
3687
|
function Bt(k, L, _) {
|
|
3688
|
-
(k === L || k ===
|
|
3688
|
+
(k === L || k === h(L)) && (X = h(L)), (k === null && _ || k !== L && k !== h(L)) && (X = k);
|
|
3689
3689
|
}
|
|
3690
3690
|
function kt(k) {
|
|
3691
3691
|
l.rm(k, "gu-hide");
|
|
@@ -3804,7 +3804,7 @@ var Xa = { exports: {} };
|
|
|
3804
3804
|
return Ve(ie ? _ > ge.left + P(ge) / 2 : Z > ge.top + E(ge) / 2);
|
|
3805
3805
|
}
|
|
3806
3806
|
function Ve(ge) {
|
|
3807
|
-
return ge ?
|
|
3807
|
+
return ge ? h(L) : L;
|
|
3808
3808
|
}
|
|
3809
3809
|
}
|
|
3810
3810
|
function Lt(k, L) {
|
|
@@ -3817,13 +3817,13 @@ var Xa = { exports: {} };
|
|
|
3817
3817
|
const M = Array.from(window.scrollContainerList)[0];
|
|
3818
3818
|
return document.getElementById(M);
|
|
3819
3819
|
}
|
|
3820
|
-
const I =
|
|
3820
|
+
const I = v(S);
|
|
3821
3821
|
for (const M of I)
|
|
3822
3822
|
if (M.contains(w))
|
|
3823
3823
|
return M;
|
|
3824
3824
|
return null;
|
|
3825
3825
|
}
|
|
3826
|
-
function
|
|
3826
|
+
function v(w) {
|
|
3827
3827
|
const S = [];
|
|
3828
3828
|
return w.forEach((I) => {
|
|
3829
3829
|
const M = document.getElementById(I);
|
|
@@ -3883,7 +3883,7 @@ var Xa = { exports: {} };
|
|
|
3883
3883
|
function O(w) {
|
|
3884
3884
|
return !w || w.contentEditable === "false" ? !1 : w.contentEditable === "true" ? !0 : O(y(w));
|
|
3885
3885
|
}
|
|
3886
|
-
function
|
|
3886
|
+
function h(w) {
|
|
3887
3887
|
return w.nextElementSibling || S();
|
|
3888
3888
|
function S() {
|
|
3889
3889
|
var I = w;
|
|
@@ -3925,11 +3925,11 @@ var Xa = { exports: {} };
|
|
|
3925
3925
|
var a = t("atoa"), r = t("./debounce");
|
|
3926
3926
|
o.exports = function(l, s) {
|
|
3927
3927
|
var u = s || {}, d = {};
|
|
3928
|
-
return l === void 0 && (l = {}), l.on = function(m,
|
|
3929
|
-
return d[m] ? d[m].push(
|
|
3930
|
-
}, l.once = function(m,
|
|
3931
|
-
return
|
|
3932
|
-
}, l.off = function(m,
|
|
3928
|
+
return l === void 0 && (l = {}), l.on = function(m, v) {
|
|
3929
|
+
return d[m] ? d[m].push(v) : d[m] = [v], l;
|
|
3930
|
+
}, l.once = function(m, v) {
|
|
3931
|
+
return v._once = !0, l.on(m, v), l;
|
|
3932
|
+
}, l.off = function(m, v) {
|
|
3933
3933
|
var f = arguments.length;
|
|
3934
3934
|
if (f === 1)
|
|
3935
3935
|
delete d[m];
|
|
@@ -3939,19 +3939,19 @@ var Xa = { exports: {} };
|
|
|
3939
3939
|
var p = d[m];
|
|
3940
3940
|
if (!p)
|
|
3941
3941
|
return l;
|
|
3942
|
-
p.splice(p.indexOf(
|
|
3942
|
+
p.splice(p.indexOf(v), 1);
|
|
3943
3943
|
}
|
|
3944
3944
|
return l;
|
|
3945
3945
|
}, l.emit = function() {
|
|
3946
3946
|
var m = a(arguments);
|
|
3947
3947
|
return l.emitterSnapshot(m.shift()).apply(this, m);
|
|
3948
3948
|
}, l.emitterSnapshot = function(m) {
|
|
3949
|
-
var
|
|
3949
|
+
var v = (d[m] || []).slice(0);
|
|
3950
3950
|
return function() {
|
|
3951
3951
|
var f = a(arguments), p = this || l;
|
|
3952
|
-
if (m === "error" && u.throws !== !1 && !
|
|
3952
|
+
if (m === "error" && u.throws !== !1 && !v.length)
|
|
3953
3953
|
throw f.length === 1 ? f[0] : f;
|
|
3954
|
-
return
|
|
3954
|
+
return v.forEach(function(B) {
|
|
3955
3955
|
u.async ? r(B, f, p) : B.apply(p, f), B._once && l.off(m, B);
|
|
3956
3956
|
}), l;
|
|
3957
3957
|
};
|
|
@@ -3961,28 +3961,28 @@ var Xa = { exports: {} };
|
|
|
3961
3961
|
6: [function(t, o, i) {
|
|
3962
3962
|
(function(a) {
|
|
3963
3963
|
var r = t("custom-event"), c = t("./eventmap"), l = a.document, s = m, u = f, d = [];
|
|
3964
|
-
a.addEventListener || (s =
|
|
3964
|
+
a.addEventListener || (s = v, u = p), o.exports = {
|
|
3965
3965
|
add: s,
|
|
3966
3966
|
remove: u,
|
|
3967
3967
|
fabricate: F
|
|
3968
3968
|
};
|
|
3969
|
-
function m(y, b, O,
|
|
3970
|
-
return y.addEventListener(b, O,
|
|
3969
|
+
function m(y, b, O, h) {
|
|
3970
|
+
return y.addEventListener(b, O, h);
|
|
3971
3971
|
}
|
|
3972
|
-
function
|
|
3972
|
+
function v(y, b, O) {
|
|
3973
3973
|
return y.attachEvent("on" + b, V(y, b, O));
|
|
3974
3974
|
}
|
|
3975
|
-
function f(y, b, O,
|
|
3976
|
-
return y.removeEventListener(b, O,
|
|
3975
|
+
function f(y, b, O, h) {
|
|
3976
|
+
return y.removeEventListener(b, O, h);
|
|
3977
3977
|
}
|
|
3978
3978
|
function p(y, b, O) {
|
|
3979
|
-
var
|
|
3980
|
-
if (
|
|
3981
|
-
return y.detachEvent("on" + b,
|
|
3979
|
+
var h = P(y, b, O);
|
|
3980
|
+
if (h)
|
|
3981
|
+
return y.detachEvent("on" + b, h);
|
|
3982
3982
|
}
|
|
3983
3983
|
function F(y, b, O) {
|
|
3984
|
-
var
|
|
3985
|
-
y.dispatchEvent ? y.dispatchEvent(
|
|
3984
|
+
var h = c.indexOf(b) === -1 ? x() : T();
|
|
3985
|
+
y.dispatchEvent ? y.dispatchEvent(h) : y.fireEvent("on" + b, h);
|
|
3986
3986
|
function T() {
|
|
3987
3987
|
var w;
|
|
3988
3988
|
return l.createEvent ? (w = l.createEvent("Event"), w.initEvent(b, !0, !0)) : l.createEventObject && (w = l.createEventObject()), w;
|
|
@@ -4002,26 +4002,26 @@ var Xa = { exports: {} };
|
|
|
4002
4002
|
};
|
|
4003
4003
|
}
|
|
4004
4004
|
function V(y, b, O) {
|
|
4005
|
-
var
|
|
4005
|
+
var h = P(y, b, O) || B(y, b, O);
|
|
4006
4006
|
return d.push({
|
|
4007
|
-
wrapper:
|
|
4007
|
+
wrapper: h,
|
|
4008
4008
|
element: y,
|
|
4009
4009
|
type: b,
|
|
4010
4010
|
fn: O
|
|
4011
|
-
}),
|
|
4011
|
+
}), h;
|
|
4012
4012
|
}
|
|
4013
4013
|
function P(y, b, O) {
|
|
4014
|
-
var
|
|
4015
|
-
if (
|
|
4016
|
-
var T = d[
|
|
4017
|
-
return d.splice(
|
|
4014
|
+
var h = E(y, b, O);
|
|
4015
|
+
if (h) {
|
|
4016
|
+
var T = d[h].wrapper;
|
|
4017
|
+
return d.splice(h, 1), T;
|
|
4018
4018
|
}
|
|
4019
4019
|
}
|
|
4020
4020
|
function E(y, b, O) {
|
|
4021
|
-
var
|
|
4022
|
-
for (
|
|
4023
|
-
if (T = d[
|
|
4024
|
-
return
|
|
4021
|
+
var h, T;
|
|
4022
|
+
for (h = 0; h < d.length; h++)
|
|
4023
|
+
if (T = d[h], T.element === y && T.type === b && T.fn === O)
|
|
4024
|
+
return h;
|
|
4025
4025
|
}
|
|
4026
4026
|
}).call(this, typeof Ge < "u" ? Ge : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
4027
4027
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -4109,20 +4109,20 @@ var Xa = { exports: {} };
|
|
|
4109
4109
|
}
|
|
4110
4110
|
}
|
|
4111
4111
|
}
|
|
4112
|
-
var m = [],
|
|
4112
|
+
var m = [], v = !1, f, p = -1;
|
|
4113
4113
|
function F() {
|
|
4114
|
-
!
|
|
4114
|
+
!v || !f || (v = !1, f.length ? m = f.concat(m) : p = -1, m.length && B());
|
|
4115
4115
|
}
|
|
4116
4116
|
function B() {
|
|
4117
|
-
if (!
|
|
4117
|
+
if (!v) {
|
|
4118
4118
|
var E = u(F);
|
|
4119
|
-
|
|
4119
|
+
v = !0;
|
|
4120
4120
|
for (var y = m.length; y; ) {
|
|
4121
4121
|
for (f = m, m = []; ++p < y; )
|
|
4122
4122
|
f && f[p].run();
|
|
4123
4123
|
p = -1, y = m.length;
|
|
4124
4124
|
}
|
|
4125
|
-
f = null,
|
|
4125
|
+
f = null, v = !1, d(E);
|
|
4126
4126
|
}
|
|
4127
4127
|
}
|
|
4128
4128
|
a.nextTick = function(E) {
|
|
@@ -4130,7 +4130,7 @@ var Xa = { exports: {} };
|
|
|
4130
4130
|
if (arguments.length > 1)
|
|
4131
4131
|
for (var b = 1; b < arguments.length; b++)
|
|
4132
4132
|
y[b - 1] = arguments[b];
|
|
4133
|
-
m.push(new V(E, y)), m.length === 1 && !
|
|
4133
|
+
m.push(new V(E, y)), m.length === 1 && !v && u(B);
|
|
4134
4134
|
};
|
|
4135
4135
|
function V(E, y) {
|
|
4136
4136
|
this.fun = E, this.array = y;
|
|
@@ -4169,32 +4169,32 @@ var Xa = { exports: {} };
|
|
|
4169
4169
|
return new m(l.call(setTimeout, window, arguments), clearTimeout);
|
|
4170
4170
|
}, i.setInterval = function() {
|
|
4171
4171
|
return new m(l.call(setInterval, window, arguments), clearInterval);
|
|
4172
|
-
}, i.clearTimeout = i.clearInterval = function(
|
|
4173
|
-
|
|
4172
|
+
}, i.clearTimeout = i.clearInterval = function(v) {
|
|
4173
|
+
v.close();
|
|
4174
4174
|
};
|
|
4175
|
-
function m(
|
|
4176
|
-
this._id =
|
|
4175
|
+
function m(v, f) {
|
|
4176
|
+
this._id = v, this._clearFn = f;
|
|
4177
4177
|
}
|
|
4178
4178
|
m.prototype.unref = m.prototype.ref = function() {
|
|
4179
4179
|
}, m.prototype.close = function() {
|
|
4180
4180
|
this._clearFn.call(window, this._id);
|
|
4181
|
-
}, i.enroll = function(
|
|
4182
|
-
clearTimeout(
|
|
4183
|
-
}, i.unenroll = function(
|
|
4184
|
-
clearTimeout(
|
|
4185
|
-
}, i._unrefActive = i.active = function(
|
|
4186
|
-
clearTimeout(
|
|
4187
|
-
var f =
|
|
4188
|
-
f >= 0 && (
|
|
4189
|
-
|
|
4181
|
+
}, i.enroll = function(v, f) {
|
|
4182
|
+
clearTimeout(v._idleTimeoutId), v._idleTimeout = f;
|
|
4183
|
+
}, i.unenroll = function(v) {
|
|
4184
|
+
clearTimeout(v._idleTimeoutId), v._idleTimeout = -1;
|
|
4185
|
+
}, i._unrefActive = i.active = function(v) {
|
|
4186
|
+
clearTimeout(v._idleTimeoutId);
|
|
4187
|
+
var f = v._idleTimeout;
|
|
4188
|
+
f >= 0 && (v._idleTimeoutId = setTimeout(function() {
|
|
4189
|
+
v._onTimeout && v._onTimeout();
|
|
4190
4190
|
}, f));
|
|
4191
|
-
}, i.setImmediate = typeof a == "function" ? a : function(
|
|
4191
|
+
}, i.setImmediate = typeof a == "function" ? a : function(v) {
|
|
4192
4192
|
var f = d++, p = arguments.length < 2 ? !1 : s.call(arguments, 1);
|
|
4193
4193
|
return u[f] = !0, c(function() {
|
|
4194
|
-
u[f] && (p ?
|
|
4194
|
+
u[f] && (p ? v.apply(null, p) : v.call(null), i.clearImmediate(f));
|
|
4195
4195
|
}), f;
|
|
4196
|
-
}, i.clearImmediate = typeof r == "function" ? r : function(
|
|
4197
|
-
delete u[
|
|
4196
|
+
}, i.clearImmediate = typeof r == "function" ? r : function(v) {
|
|
4197
|
+
delete u[v];
|
|
4198
4198
|
};
|
|
4199
4199
|
}).call(this, t("timers").setImmediate, t("timers").clearImmediate);
|
|
4200
4200
|
}, { "process/browser.js": 9, timers: 11 }]
|
|
@@ -4504,7 +4504,7 @@ class Ze {
|
|
|
4504
4504
|
}
|
|
4505
4505
|
}
|
|
4506
4506
|
function ul(n, e) {
|
|
4507
|
-
const t = C(), o = C(), i = C(), a = C(), r = C(), c = C(), l = C(), s = C(), u = C(), d = C(), m = C(),
|
|
4507
|
+
const t = C(), o = C(), i = C(), a = C(), r = C(), c = C(), l = C(), s = C(), u = C(), d = C(), m = C(), v = C(n.resizeable), f = C(), p = C(n.draggable), F = C(!1);
|
|
4508
4508
|
function B() {
|
|
4509
4509
|
const j = o.value || document.body, D = window.getComputedStyle(j);
|
|
4510
4510
|
if (!D || !t.value)
|
|
@@ -4559,7 +4559,7 @@ function ul(n, e) {
|
|
|
4559
4559
|
const D = fe.fromEvent(j);
|
|
4560
4560
|
D && b(D);
|
|
4561
4561
|
}
|
|
4562
|
-
function
|
|
4562
|
+
function h() {
|
|
4563
4563
|
if (t.value) {
|
|
4564
4564
|
const {
|
|
4565
4565
|
width: j,
|
|
@@ -4582,7 +4582,7 @@ function ul(n, e) {
|
|
|
4582
4582
|
}
|
|
4583
4583
|
function T(j) {
|
|
4584
4584
|
if (t.value) {
|
|
4585
|
-
const D =
|
|
4585
|
+
const D = h();
|
|
4586
4586
|
m.value = D;
|
|
4587
4587
|
}
|
|
4588
4588
|
i.value = void 0, a.value = null, r.value = null, c.value = null, l.value = null, s.value = null, u.value = null, document.removeEventListener("mousemove", O), document.removeEventListener("mouseup", T);
|
|
@@ -4594,7 +4594,7 @@ function ul(n, e) {
|
|
|
4594
4594
|
j instanceof MouseEvent && j.button === 2 || p.value && (document.body.click(), j.stopPropagation(), j.preventDefault(), i.value = fe.fromEvent(j), u.value = j.target, V(j), x());
|
|
4595
4595
|
}
|
|
4596
4596
|
function S(j) {
|
|
4597
|
-
return t.value = j,
|
|
4597
|
+
return t.value = j, v.value && g(je, null, [g("div", {
|
|
4598
4598
|
class: "fv-resizable-handle fv-resizable-n",
|
|
4599
4599
|
type: "n",
|
|
4600
4600
|
onMousedown: (D) => w(D)
|
|
@@ -4631,7 +4631,7 @@ function ul(n, e) {
|
|
|
4631
4631
|
function I(j = !0) {
|
|
4632
4632
|
document.body.click();
|
|
4633
4633
|
const D = o.value || document.body, X = Ze.getCurrent(D), q = t.value;
|
|
4634
|
-
j && q && (f.value =
|
|
4634
|
+
j && q && (f.value = h(), f.value.transform = q.style.transform), X && q && (c.value = X, c.value.height -= 14, c.value.width -= 14, q.style.height = c.value.height + "px", q.style.width = c.value.width + "px", q.style.left = "7px", q.style.top = "7px", q.style.transform = "", m.value = {
|
|
4635
4635
|
size: c.value,
|
|
4636
4636
|
position: {
|
|
4637
4637
|
x: 0,
|
|
@@ -4695,33 +4695,33 @@ function dl(n, e, t) {
|
|
|
4695
4695
|
Se(() => t.value, (O) => {
|
|
4696
4696
|
r.value.style.cursor = O ? "move" : "default";
|
|
4697
4697
|
});
|
|
4698
|
-
function
|
|
4699
|
-
if (
|
|
4698
|
+
function v(O, h) {
|
|
4699
|
+
if (h.tagName === "BUTTON")
|
|
4700
4700
|
return !1;
|
|
4701
|
-
if (
|
|
4701
|
+
if (h === O)
|
|
4702
4702
|
return !0;
|
|
4703
|
-
for (const T in
|
|
4704
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4703
|
+
for (const T in h.children)
|
|
4704
|
+
if (Object.prototype.hasOwnProperty.call(h.children, T) && v(O, h.children[T]))
|
|
4705
4705
|
return !0;
|
|
4706
4706
|
return !1;
|
|
4707
4707
|
}
|
|
4708
4708
|
function f() {
|
|
4709
4709
|
var x, w;
|
|
4710
|
-
let O = d.value.x + u.value.x,
|
|
4711
|
-
a.value === "x" ? (O = ((x = s.value) == null ? void 0 : x.x) || 0, d.value.x = 0) : a.value === "y" && (
|
|
4712
|
-
const T = `translate3d(${Math.round(O)}px, ${Math.round(
|
|
4713
|
-
o.value && (o.value.style.transform = T), m.value.x = O, m.value.y =
|
|
4710
|
+
let O = d.value.x + u.value.x, h = d.value.y + u.value.y;
|
|
4711
|
+
a.value === "x" ? (O = ((x = s.value) == null ? void 0 : x.x) || 0, d.value.x = 0) : a.value === "y" && (h = ((w = s.value) == null ? void 0 : w.y) || 0, d.value.y = 0);
|
|
4712
|
+
const T = `translate3d(${Math.round(O)}px, ${Math.round(h)}px, 0px)`;
|
|
4713
|
+
o.value && (o.value.style.transform = T), m.value.x = O, m.value.y = h;
|
|
4714
4714
|
}
|
|
4715
4715
|
function p() {
|
|
4716
4716
|
if (!c.value || !o.value)
|
|
4717
4717
|
return null;
|
|
4718
|
-
const O = c.value.getBoundingClientRect(),
|
|
4719
|
-
top: O.top <
|
|
4720
|
-
right: O.right >
|
|
4721
|
-
bottom: O.bottom >
|
|
4722
|
-
left: O.left <
|
|
4718
|
+
const O = c.value.getBoundingClientRect(), h = o.value.getBoundingClientRect(), T = {
|
|
4719
|
+
top: O.top < h.top,
|
|
4720
|
+
right: O.right > h.right,
|
|
4721
|
+
bottom: O.bottom > h.bottom,
|
|
4722
|
+
left: O.left < h.left
|
|
4723
4723
|
};
|
|
4724
|
-
return T.top || (d.value.y -=
|
|
4724
|
+
return T.top || (d.value.y -= h.top - O.top), T.bottom || (d.value.y -= h.bottom - O.bottom), T.right || (d.value.x -= h.right - O.right), T.left || (d.value.x -= h.left - O.left), f(), T;
|
|
4725
4725
|
}
|
|
4726
4726
|
function F(O) {
|
|
4727
4727
|
O && (s.value && O.subtract(s.value), d.value.set(O), f(), p());
|
|
@@ -4747,22 +4747,22 @@ function dl(n, e, t) {
|
|
|
4747
4747
|
function y(O) {
|
|
4748
4748
|
if (!t.value || O instanceof MouseEvent && O.button === 2)
|
|
4749
4749
|
return;
|
|
4750
|
-
const
|
|
4751
|
-
r.value !== void 0 &&
|
|
4750
|
+
const h = O.target || O.srcElement;
|
|
4751
|
+
r.value !== void 0 && h && !v(h, r.value) || i.value !== !1 && (document.body.click(), O.stopPropagation(), O.preventDefault(), s.value = fe.fromEvent(O, o.value), E(), P());
|
|
4752
4752
|
}
|
|
4753
|
-
function b(O,
|
|
4754
|
-
if (i.value &&
|
|
4753
|
+
function b(O, h, T) {
|
|
4754
|
+
if (i.value && h) {
|
|
4755
4755
|
if (O)
|
|
4756
4756
|
r.value = O;
|
|
4757
4757
|
else if (n.dragHandle) {
|
|
4758
4758
|
if (n.dragHandle instanceof HTMLElement)
|
|
4759
4759
|
r.value = n.dragHandle;
|
|
4760
4760
|
else if (typeof n.dragHandle == "string") {
|
|
4761
|
-
const x =
|
|
4761
|
+
const x = h.querySelector(n.dragHandle);
|
|
4762
4762
|
x && (r.value = x);
|
|
4763
4763
|
}
|
|
4764
4764
|
}
|
|
4765
|
-
o.value =
|
|
4765
|
+
o.value = h, c.value = T, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", y)) : i.value = !1;
|
|
4766
4766
|
}
|
|
4767
4767
|
}
|
|
4768
4768
|
return {
|
|
@@ -4803,7 +4803,7 @@ const Ke = /* @__PURE__ */ Me({
|
|
|
4803
4803
|
props: Nn,
|
|
4804
4804
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
4805
4805
|
setup(n, e) {
|
|
4806
|
-
const t = C(n.width || 300), o = C(n.height || 200), i = C(n.modelValue), a = C(""), r = C(n.class), c = C(n.fitContent), l = C(n.showHeader), s = C(""), u = C(n.showCloseButton), d = C(n.showMaxButton), m = C(!1),
|
|
4806
|
+
const t = C(n.width || 300), o = C(n.height || 200), i = C(n.modelValue), a = C(""), r = C(n.class), c = C(n.fitContent), l = C(n.showHeader), s = C(""), u = C(n.showCloseButton), d = C(n.showMaxButton), m = C(!1), v = C(n.dialogType), f = C(n.src), p = C(""), F = C(n.showButtons), B = C(n.title), V = C(n.containment || null), P = C(), {
|
|
4807
4807
|
t: E
|
|
4808
4808
|
} = _t();
|
|
4809
4809
|
B.value === "错误提示" && (B.value = E("messageBox.errorTitle"));
|
|
@@ -4833,7 +4833,7 @@ const Ke = /* @__PURE__ */ Me({
|
|
|
4833
4833
|
handle: (R) => {
|
|
4834
4834
|
b(R, !0);
|
|
4835
4835
|
}
|
|
4836
|
-
}],
|
|
4836
|
+
}], h = C(n.buttons && n.buttons.length ? n.buttons : O), T = W(() => !!s.value), x = W(() => !!F.value && !!h.value), w = C(), S = C(), I = C(!1), {
|
|
4837
4837
|
renderResizeBar: M,
|
|
4838
4838
|
maximize: N,
|
|
4839
4839
|
restore: H,
|
|
@@ -4915,7 +4915,7 @@ const Ke = /* @__PURE__ */ Me({
|
|
|
4915
4915
|
modalrevert: I.value
|
|
4916
4916
|
})), tt = W(() => ({
|
|
4917
4917
|
"modal-body": !0,
|
|
4918
|
-
"f-utils-flex-column":
|
|
4918
|
+
"f-utils-flex-column": v.value === "iframe",
|
|
4919
4919
|
"f-utils-fill": !0
|
|
4920
4920
|
}));
|
|
4921
4921
|
function We() {
|
|
@@ -4940,7 +4940,7 @@ const Ke = /* @__PURE__ */ Me({
|
|
|
4940
4940
|
R.handle && await R.handle(ne, R) && e.emit("closed", ne);
|
|
4941
4941
|
}
|
|
4942
4942
|
function Le(R) {
|
|
4943
|
-
R.width && (t.value = R.width), R.height && (o.value = R.height), R.buttons && (
|
|
4943
|
+
R.width && (t.value = R.width), R.height && (o.value = R.height), R.buttons && (h.value = R.buttons), R.title && (B.value = R.title);
|
|
4944
4944
|
}
|
|
4945
4945
|
let Ae = null, Ie = null;
|
|
4946
4946
|
St(() => {
|
|
@@ -4979,7 +4979,7 @@ const Ke = /* @__PURE__ */ Me({
|
|
|
4979
4979
|
return g("div", {
|
|
4980
4980
|
class: "modal-footer",
|
|
4981
4981
|
style: nt.value
|
|
4982
|
-
}, [
|
|
4982
|
+
}, [h.value && h.value.map((R) => {
|
|
4983
4983
|
const ne = C(R.disabled);
|
|
4984
4984
|
return g("button", {
|
|
4985
4985
|
name: R.name,
|
|
@@ -5031,7 +5031,7 @@ const Ke = /* @__PURE__ */ Me({
|
|
|
5031
5031
|
class: _e.value
|
|
5032
5032
|
}, [l.value && Ye(), g("div", {
|
|
5033
5033
|
class: tt.value
|
|
5034
|
-
}, [(ne = (R = e.slots).default) == null ? void 0 : ne.call(R),
|
|
5034
|
+
}, [(ne = (R = e.slots).default) == null ? void 0 : ne.call(R), v.value === "iframe" && g("iframe", {
|
|
5035
5035
|
title: a.value,
|
|
5036
5036
|
class: "f-utils-fill",
|
|
5037
5037
|
width: "100%",
|
|
@@ -5074,7 +5074,7 @@ function ml(n) {
|
|
|
5074
5074
|
document.body.removeChild(e);
|
|
5075
5075
|
});
|
|
5076
5076
|
const a = C(), r = C(n.class || ""), c = C(!!n.showButtons), l = C(!!n.showHeader), s = C(n.showCloseButton == null ? !0 : n.showCloseButton), u = C(!0), d = C(n.title || ""), m = n.acceptCallback || (() => {
|
|
5077
|
-
}),
|
|
5077
|
+
}), v = n.rejectCallback || (() => {
|
|
5078
5078
|
}), f = n.closedCallback || ((P) => {
|
|
5079
5079
|
}), p = n.resizeHandle || ((P) => {
|
|
5080
5080
|
}), F = n.stopMoveHandle || ((P) => {
|
|
@@ -5098,7 +5098,7 @@ function ml(n) {
|
|
|
5098
5098
|
"show-close-button": s.value,
|
|
5099
5099
|
"show-max-button": !1,
|
|
5100
5100
|
onAccept: m,
|
|
5101
|
-
onCancel:
|
|
5101
|
+
onCancel: v,
|
|
5102
5102
|
fitContent: n.fitContent == null ? !0 : n.fitContent,
|
|
5103
5103
|
onClosed: V,
|
|
5104
5104
|
onResize: p,
|
|
@@ -5167,7 +5167,7 @@ class Rn {
|
|
|
5167
5167
|
i.value = !1;
|
|
5168
5168
|
const b = (O = y == null ? void 0 : y.target) == null ? void 0 : O.classList.contains("modal_close");
|
|
5169
5169
|
c(y, this.isUseEscCloseModal.value ? "esc" : b ? "icon" : "button");
|
|
5170
|
-
},
|
|
5170
|
+
}, v = (y) => {
|
|
5171
5171
|
m(y), u && xt(() => {
|
|
5172
5172
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], At(null, t), u = null, this.modalRef.value = null, this.modalRefs) {
|
|
5173
5173
|
const b = Object.keys(this.modalRefs).map((O) => Number(O));
|
|
@@ -5190,7 +5190,7 @@ class Rn {
|
|
|
5190
5190
|
}, o.value, {
|
|
5191
5191
|
onAccept: a,
|
|
5192
5192
|
onCancel: r,
|
|
5193
|
-
onClosed:
|
|
5193
|
+
onClosed: v,
|
|
5194
5194
|
onResize: l,
|
|
5195
5195
|
onEsc: f,
|
|
5196
5196
|
onStopMove: s
|
|
@@ -5212,7 +5212,7 @@ class Rn {
|
|
|
5212
5212
|
...o
|
|
5213
5213
|
}), t);
|
|
5214
5214
|
},
|
|
5215
|
-
destroy:
|
|
5215
|
+
destroy: v,
|
|
5216
5216
|
modalRef: this.activeModalInstance,
|
|
5217
5217
|
close: () => this.close()
|
|
5218
5218
|
};
|
|
@@ -5401,37 +5401,37 @@ function Pl(n, e) {
|
|
|
5401
5401
|
return () => t && t();
|
|
5402
5402
|
}
|
|
5403
5403
|
function Dl(n, e) {
|
|
5404
|
-
function t(
|
|
5405
|
-
if (
|
|
5404
|
+
function t(v) {
|
|
5405
|
+
if (v == null)
|
|
5406
5406
|
return 0;
|
|
5407
5407
|
let f = 0;
|
|
5408
|
-
for (let p = 0; p <
|
|
5409
|
-
const F =
|
|
5408
|
+
for (let p = 0; p < v.length; p++) {
|
|
5409
|
+
const F = v.charCodeAt(p);
|
|
5410
5410
|
F >= 0 && F <= 128 ? f++ : f = f + 2;
|
|
5411
5411
|
}
|
|
5412
5412
|
return f;
|
|
5413
5413
|
}
|
|
5414
|
-
function o(
|
|
5415
|
-
if (
|
|
5416
|
-
|
|
5417
|
-
const p =
|
|
5414
|
+
function o(v, f) {
|
|
5415
|
+
if (v !== "" && v !== void 0 && v !== null) {
|
|
5416
|
+
v = "" + v;
|
|
5417
|
+
const p = v.length;
|
|
5418
5418
|
let F = "", B = 0;
|
|
5419
5419
|
for (let V = 0; V < p; V++) {
|
|
5420
|
-
const P =
|
|
5420
|
+
const P = v.charAt(V);
|
|
5421
5421
|
if (B++, encodeURI(P).length > 4 && B++, F = F.concat(P), B >= f)
|
|
5422
5422
|
return F = F.concat("..."), F;
|
|
5423
5423
|
}
|
|
5424
5424
|
if (B < f)
|
|
5425
|
-
return
|
|
5425
|
+
return v;
|
|
5426
5426
|
}
|
|
5427
5427
|
return "";
|
|
5428
5428
|
}
|
|
5429
5429
|
const i = W(() => !!n.value && !!n.value.date), a = W(() => {
|
|
5430
|
-
const
|
|
5431
|
-
return `${e.exception.happend} : ${
|
|
5430
|
+
const v = n.value && n.value.date || "";
|
|
5431
|
+
return `${e.exception.happend} : ${v}`;
|
|
5432
5432
|
}), r = W(() => !!n.value && !!n.value.detail), c = W(() => n.value ? t(n.value.detail) > 160 : !1), l = C(!1), s = W(() => l.value ? e.exception.collapse : e.exception.expand), u = W(() => {
|
|
5433
|
-
const
|
|
5434
|
-
return l.value ?
|
|
5433
|
+
const v = e.exception.detail + " : " + (n.value && n.value.detail) || "";
|
|
5434
|
+
return l.value ? v : o(v, 160);
|
|
5435
5435
|
}), d = W(() => ({
|
|
5436
5436
|
position: "absolute",
|
|
5437
5437
|
right: 0,
|
|
@@ -5471,7 +5471,7 @@ function jl(n, e, t, o, i) {
|
|
|
5471
5471
|
function d() {
|
|
5472
5472
|
return u.value ? Dl(a, i) : s.value ? Rl(l) : () => null;
|
|
5473
5473
|
}
|
|
5474
|
-
const m = d(),
|
|
5474
|
+
const m = d(), v = W(() => i.locale === "en" ? {
|
|
5475
5475
|
wordBreak: "keep-all",
|
|
5476
5476
|
overflowWrap: "break-word"
|
|
5477
5477
|
} : {});
|
|
@@ -5484,7 +5484,7 @@ function jl(n, e, t, o, i) {
|
|
|
5484
5484
|
}, [g("p", {
|
|
5485
5485
|
class: "toast-msg-title",
|
|
5486
5486
|
innerHTML: c.value,
|
|
5487
|
-
style:
|
|
5487
|
+
style: v.value
|
|
5488
5488
|
}, null), m()])]);
|
|
5489
5489
|
}
|
|
5490
5490
|
function $l(n, e, t, o) {
|
|
@@ -5514,7 +5514,7 @@ function $l(n, e, t, o) {
|
|
|
5514
5514
|
}, [c.value])]);
|
|
5515
5515
|
}
|
|
5516
5516
|
function Ll(n, e, t, o, i) {
|
|
5517
|
-
const a = C(n.type), r = C(n.buttons), c = C(n.exceptionInfo), l = C(i.ok || n.okButtonText), s = C(i.cancel || n.cancelButtonText), u = C(n.showCancelButton), d = C(n.showOkButton), m = W(() => !!(r.value && r.value.length)),
|
|
5517
|
+
const a = C(n.type), r = C(n.buttons), c = C(n.exceptionInfo), l = C(i.ok || n.okButtonText), s = C(i.cancel || n.cancelButtonText), u = C(n.showCancelButton), d = C(n.showOkButton), m = W(() => !!(r.value && r.value.length)), v = W(() => c.value && c.value.message && c.value.detail), f = W(() => !(r.value && r.value.length) && (d.value || u.value)), p = $l(n, t, o, i);
|
|
5518
5518
|
l.value === "关闭" ? l.value = i.close : l.value === "知道了" && (l.value = i.exception.roger);
|
|
5519
5519
|
function F(V) {
|
|
5520
5520
|
a.value === "question" && e.emit("reject"), e.emit("close");
|
|
@@ -5524,7 +5524,7 @@ function Ll(n, e, t, o, i) {
|
|
|
5524
5524
|
}
|
|
5525
5525
|
return () => g("div", {
|
|
5526
5526
|
class: "modal-footer"
|
|
5527
|
-
}, [
|
|
5527
|
+
}, [v.value && p(), f.value && u.value && g("button", {
|
|
5528
5528
|
type: "button",
|
|
5529
5529
|
class: "btn btn-secondary btn-lg",
|
|
5530
5530
|
onClick: F
|
|
@@ -5588,7 +5588,7 @@ const bt = /* @__PURE__ */ Me({
|
|
|
5588
5588
|
feedbackMessage: m
|
|
5589
5589
|
} = u;
|
|
5590
5590
|
m.value = t.exception.copySuccess;
|
|
5591
|
-
function
|
|
5591
|
+
function v() {
|
|
5592
5592
|
return g("div", {
|
|
5593
5593
|
style: d.value
|
|
5594
5594
|
}, [m.value]);
|
|
@@ -5610,7 +5610,7 @@ const bt = /* @__PURE__ */ Me({
|
|
|
5610
5610
|
}, null), g("section", {
|
|
5611
5611
|
class: r.value,
|
|
5612
5612
|
style: c.value
|
|
5613
|
-
}, [p()]), F(),
|
|
5613
|
+
}, [p()]), F(), v()]);
|
|
5614
5614
|
}
|
|
5615
5615
|
}), Ne = class Ne {
|
|
5616
5616
|
static show(e) {
|
|
@@ -5728,7 +5728,7 @@ const Ul = /* @__PURE__ */ Me({
|
|
|
5728
5728
|
isMainEntityInitialSelected: u
|
|
5729
5729
|
} = t, d = kn(n), {
|
|
5730
5730
|
fieldColumns: m,
|
|
5731
|
-
resolveFieldDataSource:
|
|
5731
|
+
resolveFieldDataSource: v,
|
|
5732
5732
|
fieldDataSource: f,
|
|
5733
5733
|
fieldTreeGridRef: p,
|
|
5734
5734
|
fieldTreeRowOption: F,
|
|
@@ -5745,7 +5745,7 @@ const Ul = /* @__PURE__ */ Me({
|
|
|
5745
5745
|
}, {
|
|
5746
5746
|
name: "表格",
|
|
5747
5747
|
value: "data-grid"
|
|
5748
|
-
}], b = C(), O = C(""),
|
|
5748
|
+
}], b = C(), O = C(""), h = C([{
|
|
5749
5749
|
id: "selectComponentType",
|
|
5750
5750
|
title: "选择组件类型"
|
|
5751
5751
|
}, {
|
|
@@ -5760,20 +5760,20 @@ const Ul = /* @__PURE__ */ Me({
|
|
|
5760
5760
|
"mx-3": !0,
|
|
5761
5761
|
"my-2": !0,
|
|
5762
5762
|
"position-relative": !0,
|
|
5763
|
-
"d-none":
|
|
5763
|
+
"d-none": h.value[T.value].id !== K
|
|
5764
5764
|
}));
|
|
5765
5765
|
function S() {
|
|
5766
5766
|
n.bindingEntityId && (s != null && s.value) && (O.value = s.value.name), n.componentType || (b.value = u.value ? "response-form" : "data-grid");
|
|
5767
5767
|
}
|
|
5768
5768
|
function I() {
|
|
5769
5769
|
const K = r();
|
|
5770
|
-
K && (
|
|
5770
|
+
K && (v(K), p.value.updateDataSource(f.value));
|
|
5771
5771
|
}
|
|
5772
5772
|
St(() => {
|
|
5773
|
-
n.steps && (
|
|
5773
|
+
n.steps && (h.value = h.value.filter((K) => n.steps.includes(K.id))), x.value = h.value[0].id, c(), S();
|
|
5774
5774
|
}), et(() => {
|
|
5775
5775
|
var K, se;
|
|
5776
|
-
i && ((K = s.value) != null && K.id) && i.value.selectItemById((se = s.value) == null ? void 0 : se.id),
|
|
5776
|
+
i && ((K = s.value) != null && K.id) && i.value.selectItemById((se = s.value) == null ? void 0 : se.id), h.value.length === 1 && h.value[0].id === "selectFields" && I();
|
|
5777
5777
|
});
|
|
5778
5778
|
function M(K) {
|
|
5779
5779
|
var se;
|
|
@@ -5864,7 +5864,7 @@ const Ul = /* @__PURE__ */ Me({
|
|
|
5864
5864
|
}, null)])])])])]);
|
|
5865
5865
|
}
|
|
5866
5866
|
function j() {
|
|
5867
|
-
T.value--, x.value =
|
|
5867
|
+
T.value--, x.value = h.value[T.value].id;
|
|
5868
5868
|
}
|
|
5869
5869
|
function D() {
|
|
5870
5870
|
var K;
|
|
@@ -5882,11 +5882,11 @@ const Ul = /* @__PURE__ */ Me({
|
|
|
5882
5882
|
E.warning("请先填写组件标题");
|
|
5883
5883
|
return;
|
|
5884
5884
|
}
|
|
5885
|
-
P.value = b.value,
|
|
5885
|
+
P.value = b.value, v(s.value), p.value.updateDataSource(f.value);
|
|
5886
5886
|
break;
|
|
5887
5887
|
}
|
|
5888
5888
|
}
|
|
5889
|
-
T.value++, x.value =
|
|
5889
|
+
T.value++, x.value = h.value[T.value].id;
|
|
5890
5890
|
}
|
|
5891
5891
|
function X() {
|
|
5892
5892
|
e.emit("cancel");
|
|
@@ -5908,8 +5908,8 @@ const Ul = /* @__PURE__ */ Me({
|
|
|
5908
5908
|
var K;
|
|
5909
5909
|
return g("div", {
|
|
5910
5910
|
class: "h-100 d-flex flex-column"
|
|
5911
|
-
}, [((K =
|
|
5912
|
-
steps:
|
|
5911
|
+
}, [((K = h.value) == null ? void 0 : K.length) > 1 ? g(Ca, {
|
|
5912
|
+
steps: h,
|
|
5913
5913
|
activeIndex: T,
|
|
5914
5914
|
style: "align-self:center"
|
|
5915
5915
|
}, null) : "", g("div", {
|
|
@@ -5929,10 +5929,10 @@ const Ul = /* @__PURE__ */ Me({
|
|
|
5929
5929
|
}, [ce("取消")]), T.value !== 0 ? g("button", {
|
|
5930
5930
|
class: "btn btn-secondary",
|
|
5931
5931
|
onClick: j
|
|
5932
|
-
}, [ce("上一步")]) : "", T.value !==
|
|
5932
|
+
}, [ce("上一步")]) : "", T.value !== h.value.length - 1 ? g("button", {
|
|
5933
5933
|
class: "btn btn-primary",
|
|
5934
5934
|
onClick: D
|
|
5935
|
-
}, [ce("下一步")]) : "", T.value ===
|
|
5935
|
+
}, [ce("下一步")]) : "", T.value === h.value.length - 1 ? g("button", {
|
|
5936
5936
|
class: "btn btn-primary",
|
|
5937
5937
|
onClick: q
|
|
5938
5938
|
}, [ce("确定")]) : ""])]);
|
|
@@ -5950,8 +5950,8 @@ function zl(n, e) {
|
|
|
5950
5950
|
componentType: "response-form",
|
|
5951
5951
|
bindingSourceContext: l,
|
|
5952
5952
|
parentComponentInstance: s.value
|
|
5953
|
-
}, d = s.value.addNewChildComponentSchema(u, e), m = (P = n.parent) == null ? void 0 : P.schema,
|
|
5954
|
-
|
|
5953
|
+
}, d = s.value.addNewChildComponentSchema(u, e), m = (P = n.parent) == null ? void 0 : P.schema, v = s.value.schema.contents.findIndex((E) => E.id === (m == null ? void 0 : m.id));
|
|
5954
|
+
v > -1 && s.value.schema.contents.splice(v + 1, 0, d);
|
|
5955
5955
|
}
|
|
5956
5956
|
function i(l) {
|
|
5957
5957
|
var s, u;
|
|
@@ -5969,10 +5969,10 @@ function zl(n, e) {
|
|
|
5969
5969
|
formSchemaUtils: s
|
|
5970
5970
|
} = e, {
|
|
5971
5971
|
componentType: u
|
|
5972
|
-
} = n.schema, d = s.getViewModelIdByComponentId(n.componentInstance.value.belongedComponentId), m = l.getTableInfoByViewModelId(d),
|
|
5972
|
+
} = n.schema, d = s.getViewModelIdByComponentId(n.componentInstance.value.belongedComponentId), m = l.getTableInfoByViewModelId(d), v = m == null ? void 0 : m.id, f = ["selectFields"];
|
|
5973
5973
|
return () => g(je, null, [g(Ul, {
|
|
5974
5974
|
componentType: u,
|
|
5975
|
-
bindingEntityId:
|
|
5975
|
+
bindingEntityId: v,
|
|
5976
5976
|
steps: f,
|
|
5977
5977
|
designerHostService: e,
|
|
5978
5978
|
onSubmit: i,
|
|
@@ -6301,7 +6301,7 @@ const Hl = /* @__PURE__ */ Me({
|
|
|
6301
6301
|
componentTitle: t.value
|
|
6302
6302
|
});
|
|
6303
6303
|
}
|
|
6304
|
-
function
|
|
6304
|
+
function v(p, F) {
|
|
6305
6305
|
const B = F.raw;
|
|
6306
6306
|
return g(je, null, [B.isRemoved ? g("span", {
|
|
6307
6307
|
title: "绑定字段不存在,请在视图模型中手动移除。"
|
|
@@ -6372,7 +6372,7 @@ const Hl = /* @__PURE__ */ Me({
|
|
|
6372
6372
|
cellTemplate: ({
|
|
6373
6373
|
cell: p,
|
|
6374
6374
|
row: F
|
|
6375
|
-
}) => p.field === "bindingPath" ?
|
|
6375
|
+
}) => p.field === "bindingPath" ? v(p, F) : f(F)
|
|
6376
6376
|
})])]), g("div", {
|
|
6377
6377
|
class: "modal-footer"
|
|
6378
6378
|
}, [g("button", {
|
|
@@ -6431,18 +6431,18 @@ Yl();
|
|
|
6431
6431
|
function Xl(n, e) {
|
|
6432
6432
|
let t;
|
|
6433
6433
|
const o = C(""), i = C([]), a = C([]), r = C([]), c = n.componentInstance.value.belongedComponentId;
|
|
6434
|
-
function l(
|
|
6435
|
-
|
|
6434
|
+
function l(h) {
|
|
6435
|
+
h.forEach((T) => {
|
|
6436
6436
|
T.isGroupNode || (T.isNoBinding || a.value.push(T.data.id), i.value.push(T.control));
|
|
6437
6437
|
});
|
|
6438
6438
|
}
|
|
6439
|
-
function s(
|
|
6439
|
+
function s(h) {
|
|
6440
6440
|
var M;
|
|
6441
6441
|
const T = n.componentInstance.value.schema;
|
|
6442
6442
|
let x = {};
|
|
6443
6443
|
T.contents && T.contents.length > 0 && (x = T.contents.find((N) => N.type === rt.section.type) || {});
|
|
6444
6444
|
const w = Object.assign({}, x, {
|
|
6445
|
-
id:
|
|
6445
|
+
id: h + "-section",
|
|
6446
6446
|
mainTitle: o.value,
|
|
6447
6447
|
appearance: x.appearance ? Re(x.appearance) : {
|
|
6448
6448
|
class: "f-section-form f-section-in-mainsubcard"
|
|
@@ -6450,19 +6450,19 @@ function Xl(n, e) {
|
|
|
6450
6450
|
contents: []
|
|
6451
6451
|
}), S = ((M = x.contents) == null ? void 0 : M.find((N) => N.type === rt["response-form"].type)) || {}, I = Ut(rt["response-form"].type);
|
|
6452
6452
|
return Object.assign(I, S, {
|
|
6453
|
-
id:
|
|
6453
|
+
id: h + "-form",
|
|
6454
6454
|
appearance: S.appearance ? Re(S.appearance) : {
|
|
6455
6455
|
class: "f-form-layout farris-form farris-form-controls-inline"
|
|
6456
6456
|
},
|
|
6457
6457
|
contents: i.value
|
|
6458
6458
|
}), w.contents = [I], [w];
|
|
6459
6459
|
}
|
|
6460
|
-
function u(
|
|
6460
|
+
function u(h) {
|
|
6461
6461
|
var x;
|
|
6462
|
-
if (!((x =
|
|
6462
|
+
if (!((x = h.states) != null && x.length))
|
|
6463
6463
|
return [];
|
|
6464
6464
|
const T = [];
|
|
6465
|
-
return
|
|
6465
|
+
return h.states.forEach((w) => {
|
|
6466
6466
|
i.value.forEach((S) => {
|
|
6467
6467
|
function I(M) {
|
|
6468
6468
|
Object.keys(M).forEach((N) => {
|
|
@@ -6481,7 +6481,7 @@ function Xl(n, e) {
|
|
|
6481
6481
|
w.id = w.newId, delete w.newId;
|
|
6482
6482
|
}), T;
|
|
6483
6483
|
}
|
|
6484
|
-
function d(
|
|
6484
|
+
function d(h, T) {
|
|
6485
6485
|
const x = [];
|
|
6486
6486
|
a.value.forEach((S) => {
|
|
6487
6487
|
const I = T.fields.find((M) => M.id === S);
|
|
@@ -6492,8 +6492,8 @@ function Xl(n, e) {
|
|
|
6492
6492
|
});
|
|
6493
6493
|
const w = u(T);
|
|
6494
6494
|
return {
|
|
6495
|
-
id:
|
|
6496
|
-
code:
|
|
6495
|
+
id: h + "-viewmodel",
|
|
6496
|
+
code: h + "-viewmodel",
|
|
6497
6497
|
name: o.value,
|
|
6498
6498
|
bindTo: T.bindTo,
|
|
6499
6499
|
parent: T.parent,
|
|
@@ -6503,7 +6503,7 @@ function Xl(n, e) {
|
|
|
6503
6503
|
enableValidation: T.enableValidation
|
|
6504
6504
|
};
|
|
6505
6505
|
}
|
|
6506
|
-
function m(
|
|
6506
|
+
function m(h, T, x) {
|
|
6507
6507
|
var M;
|
|
6508
6508
|
if (!((M = n == null ? void 0 : n.parent) != null && M.parent) || !e)
|
|
6509
6509
|
return;
|
|
@@ -6515,13 +6515,13 @@ function Xl(n, e) {
|
|
|
6515
6515
|
const {
|
|
6516
6516
|
formSchemaUtils: N
|
|
6517
6517
|
} = e;
|
|
6518
|
-
N.getComponents().push(
|
|
6518
|
+
N.getComponents().push(h), N.getViewModels().push(x), S.contents.splice(I + 1, 0, T);
|
|
6519
6519
|
}
|
|
6520
6520
|
}
|
|
6521
|
-
function
|
|
6521
|
+
function v() {
|
|
6522
6522
|
if (!e)
|
|
6523
6523
|
return;
|
|
6524
|
-
const
|
|
6524
|
+
const h = n.componentInstance.value.schema, {
|
|
6525
6525
|
schemaService: T,
|
|
6526
6526
|
formSchemaUtils: x
|
|
6527
6527
|
} = e, w = x.getViewModelIdByComponentId(c), S = x.getViewModelById(w), {
|
|
@@ -6535,9 +6535,9 @@ function Xl(n, e) {
|
|
|
6535
6535
|
return Object.assign(Q, {
|
|
6536
6536
|
id: M + "-component",
|
|
6537
6537
|
viewModel: M + "-viewmodel",
|
|
6538
|
-
componentType:
|
|
6539
|
-
appearance:
|
|
6540
|
-
formColumns:
|
|
6538
|
+
componentType: h.componentType,
|
|
6539
|
+
appearance: h.appearance ? Re(h.appearance) : null,
|
|
6540
|
+
formColumns: h.formColumns,
|
|
6541
6541
|
contents: j
|
|
6542
6542
|
}), m(Q, N, H), H;
|
|
6543
6543
|
}
|
|
@@ -6545,8 +6545,8 @@ function Xl(n, e) {
|
|
|
6545
6545
|
if (!e)
|
|
6546
6546
|
return;
|
|
6547
6547
|
const {
|
|
6548
|
-
formSchemaUtils:
|
|
6549
|
-
} = e, T = n.componentInstance.value.schema, x = i.value.map((S) => S.id), w =
|
|
6548
|
+
formSchemaUtils: h
|
|
6549
|
+
} = e, T = n.componentInstance.value.schema, x = i.value.map((S) => S.id), w = h.selectNode(T, (S) => S.type === rt["response-form"].type);
|
|
6550
6550
|
w.contents.forEach((S) => {
|
|
6551
6551
|
S.type === rt.fieldset.type && (S.contents = S.contents.filter((I) => !x.includes(I.id)));
|
|
6552
6552
|
}), w.contents = w.contents.filter((S) => !(x.includes(S.id) || S.type === rt.fieldset.type && S.contents && S.contents.length === 0));
|
|
@@ -6555,26 +6555,26 @@ function Xl(n, e) {
|
|
|
6555
6555
|
if (!e)
|
|
6556
6556
|
return;
|
|
6557
6557
|
const {
|
|
6558
|
-
formSchemaUtils:
|
|
6559
|
-
} = e, T =
|
|
6558
|
+
formSchemaUtils: h
|
|
6559
|
+
} = e, T = h.getViewModelIdByComponentId(c), x = h.getViewModelById(T);
|
|
6560
6560
|
x && x.fields && (x.fields = x.fields.filter((w) => !a.value.includes(w.id)));
|
|
6561
6561
|
}
|
|
6562
|
-
function F(
|
|
6562
|
+
function F(h) {
|
|
6563
6563
|
if (!e)
|
|
6564
6564
|
return;
|
|
6565
6565
|
const {
|
|
6566
6566
|
formSchemaUtils: T
|
|
6567
|
-
} = e, x = fn().guid(), w = Object.assign({},
|
|
6567
|
+
} = e, x = fn().guid(), w = Object.assign({}, h, {
|
|
6568
6568
|
id: x,
|
|
6569
|
-
code:
|
|
6570
|
-
name:
|
|
6571
|
-
}), I = T.getCommands().find((M) => M.id ===
|
|
6569
|
+
code: h.code + x.slice(0, 4),
|
|
6570
|
+
name: h.name + x.slice(0, 4)
|
|
6571
|
+
}), I = T.getCommands().find((M) => M.id === h.cmpId);
|
|
6572
6572
|
return I && I.refedHandlers.push({
|
|
6573
6573
|
host: x,
|
|
6574
|
-
handler:
|
|
6574
|
+
handler: h.handlerName
|
|
6575
6575
|
}), w;
|
|
6576
6576
|
}
|
|
6577
|
-
function B(
|
|
6577
|
+
function B(h) {
|
|
6578
6578
|
if (!e)
|
|
6579
6579
|
return;
|
|
6580
6580
|
const {
|
|
@@ -6589,13 +6589,13 @@ function Xl(n, e) {
|
|
|
6589
6589
|
const X = w.commands.find((q) => q.code === M[D]);
|
|
6590
6590
|
if (X) {
|
|
6591
6591
|
let q = S[X.code];
|
|
6592
|
-
q || (q = F(X), S[X.code] = q,
|
|
6592
|
+
q || (q = F(X), S[X.code] = q, h.commands.push(q)), M[D] = q.code;
|
|
6593
6593
|
}
|
|
6594
6594
|
}
|
|
6595
6595
|
});
|
|
6596
6596
|
});
|
|
6597
6597
|
const I = ["valueChanging", "valueChanged"];
|
|
6598
|
-
|
|
6598
|
+
h.fields.forEach((M) => {
|
|
6599
6599
|
I.forEach((N) => {
|
|
6600
6600
|
if (M[N]) {
|
|
6601
6601
|
const H = w.commands.find((Q) => Q.code === M[N]);
|
|
@@ -6603,46 +6603,46 @@ function Xl(n, e) {
|
|
|
6603
6603
|
M[N] = S[H.code].code;
|
|
6604
6604
|
else {
|
|
6605
6605
|
const Q = F(H);
|
|
6606
|
-
S[H.code] = Q,
|
|
6606
|
+
S[H.code] = Q, h.commands.push(Q), M[N] = Q.code;
|
|
6607
6607
|
}
|
|
6608
6608
|
}
|
|
6609
6609
|
});
|
|
6610
6610
|
});
|
|
6611
6611
|
}
|
|
6612
|
-
function V(
|
|
6613
|
-
if (
|
|
6614
|
-
for (const w of
|
|
6612
|
+
function V(h, T, x) {
|
|
6613
|
+
if (h && (T(h, x), h.contents))
|
|
6614
|
+
for (const w of h.contents)
|
|
6615
6615
|
V(w, T, x);
|
|
6616
6616
|
}
|
|
6617
6617
|
function P() {
|
|
6618
6618
|
if (!r.value.length)
|
|
6619
6619
|
return;
|
|
6620
|
-
const
|
|
6620
|
+
const h = e == null ? void 0 : e.formSchemaUtils, T = h.getComponentById(c), x = [], w = (M, N) => {
|
|
6621
6621
|
M && (Object.keys(M).forEach((H) => {
|
|
6622
6622
|
const Q = M[H];
|
|
6623
6623
|
Q && typeof Q == "object" && Q.type === qo.Variable && r.value.includes(Q.field) && !N.includes(Q.field) && N.push(Q.field);
|
|
6624
6624
|
}), M.editor && w(M.editor, N));
|
|
6625
6625
|
};
|
|
6626
6626
|
V(T, w, x);
|
|
6627
|
-
const S =
|
|
6627
|
+
const S = h.getViewModelIdByComponentId(c), I = h.getViewModelById(S);
|
|
6628
6628
|
r.value.forEach((M) => {
|
|
6629
6629
|
x.includes(M) || (I.states = I.states.filter((N) => N.id !== M));
|
|
6630
6630
|
});
|
|
6631
6631
|
}
|
|
6632
|
-
function E(
|
|
6632
|
+
function E(h) {
|
|
6633
6633
|
var w, S;
|
|
6634
6634
|
const {
|
|
6635
6635
|
selections: T
|
|
6636
|
-
} =
|
|
6637
|
-
o.value =
|
|
6638
|
-
const x =
|
|
6636
|
+
} = h;
|
|
6637
|
+
o.value = h.componentTitle, l(T);
|
|
6638
|
+
const x = v();
|
|
6639
6639
|
f(), p(), B(x), P(), (w = t == null ? void 0 : t.modalRef) != null && w.value.close && ((S = t == null ? void 0 : t.modalRef) == null || S.value.close()), Bn.value++, xt(() => {
|
|
6640
6640
|
Mn();
|
|
6641
6641
|
});
|
|
6642
6642
|
}
|
|
6643
6643
|
function y() {
|
|
6644
|
-
var
|
|
6645
|
-
(
|
|
6644
|
+
var h, T;
|
|
6645
|
+
(h = t == null ? void 0 : t.modalRef) != null && h.value.close && ((T = t == null ? void 0 : t.modalRef) == null || T.value.close());
|
|
6646
6646
|
}
|
|
6647
6647
|
function b() {
|
|
6648
6648
|
if (e)
|
|
@@ -6655,8 +6655,8 @@ function Xl(n, e) {
|
|
|
6655
6655
|
default: () => [ce(" ")]
|
|
6656
6656
|
}), ce(" ")]);
|
|
6657
6657
|
}
|
|
6658
|
-
function O(
|
|
6659
|
-
|
|
6658
|
+
function O(h) {
|
|
6659
|
+
h.stopPropagation(), h.preventDefault(), e && (t = e.modalService.open({
|
|
6660
6660
|
title: "拆分卡片",
|
|
6661
6661
|
width: 900,
|
|
6662
6662
|
height: 600,
|
|
@@ -6694,12 +6694,12 @@ function Jl(n, e) {
|
|
|
6694
6694
|
return P.getPropertyConfig(E);
|
|
6695
6695
|
}
|
|
6696
6696
|
function d() {
|
|
6697
|
-
var b, O,
|
|
6697
|
+
var b, O, h, T;
|
|
6698
6698
|
const V = n == null ? void 0 : n.schema, E = (e == null ? void 0 : e.formSchemaUtils).getViewModelIdByComponentId(V.id);
|
|
6699
6699
|
if (V.componentType !== "data-grid" && V.componentType !== "form" || !((b = n.componentInstance) != null && b.value.parent))
|
|
6700
6700
|
return;
|
|
6701
6701
|
const y = (O = n.componentInstance) == null ? void 0 : O.value.parent.schema;
|
|
6702
|
-
if ((
|
|
6702
|
+
if ((h = y == null ? void 0 : y.toolbar) != null && h.buttons && y.toolbar.buttons.length) {
|
|
6703
6703
|
y.toolbar.buttons.forEach((w) => {
|
|
6704
6704
|
const S = w.onClick, I = S && S.split(".");
|
|
6705
6705
|
if (!I || I.length < 3)
|
|
@@ -6717,18 +6717,18 @@ function Jl(n, e) {
|
|
|
6717
6717
|
V.deleteViewModelById(y), P.deleteComponent(E.id);
|
|
6718
6718
|
}
|
|
6719
6719
|
}
|
|
6720
|
-
function
|
|
6720
|
+
function v() {
|
|
6721
6721
|
const V = e == null ? void 0 : e.designViewModelUtils, P = e == null ? void 0 : e.formSchemaUtils, E = n == null ? void 0 : n.schema, y = P.getViewModelIdByComponentId(E.id), b = V.getDgViewModel(y);
|
|
6722
6722
|
b != null && b.fields && b.fields.forEach((O) => {
|
|
6723
|
-
const
|
|
6724
|
-
if (
|
|
6725
|
-
const T =
|
|
6723
|
+
const h = P.getExpressions();
|
|
6724
|
+
if (h != null && h.length) {
|
|
6725
|
+
const T = h.findIndex((x) => x.target === O.id);
|
|
6726
6726
|
T > -1 && P.getExpressions().splice(T, 1);
|
|
6727
6727
|
}
|
|
6728
6728
|
});
|
|
6729
6729
|
}
|
|
6730
6730
|
function f() {
|
|
6731
|
-
d(),
|
|
6731
|
+
d(), v(), m();
|
|
6732
6732
|
}
|
|
6733
6733
|
function p() {
|
|
6734
6734
|
const { schema: V } = n, P = [];
|
|
@@ -6774,7 +6774,7 @@ function Jl(n, e) {
|
|
|
6774
6774
|
if (n && e) {
|
|
6775
6775
|
const { formSchemaUtils: y } = e;
|
|
6776
6776
|
let b = "", O = "";
|
|
6777
|
-
const
|
|
6777
|
+
const h = y.getRootViewModelId(), T = y.getComponentByViewModelId(h), x = y.selectNode(T, (S) => S.contents && S.contents.find((I) => I.component === n.schema.id));
|
|
6778
6778
|
(x == null ? void 0 : x.type) === ((V = $["tab-page"]) == null ? void 0 : V.type) && ((P = x == null ? void 0 : x.contents) != null && P.length) && (b = x.title || ""), (x == null ? void 0 : x.type) === ((E = $.section) == null ? void 0 : E.type) && (x == null ? void 0 : x.showHeader) !== !1 && (b = x.mainTitle || ""), b = b ? `${b} > ` : "", O = b ? x.id : "";
|
|
6779
6779
|
const w = F();
|
|
6780
6780
|
y.getControlBasicInfoMap().set(n.schema.id, {
|