@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
|
@@ -90,17 +90,17 @@ import "../notify/index.esm.js";
|
|
|
90
90
|
function pn(t, e) {
|
|
91
91
|
let n;
|
|
92
92
|
function o(u) {
|
|
93
|
-
const { properties: m, title: d, ignore: f } = u, h = f && Array.isArray(f), g = Object.keys(m).reduce((
|
|
94
|
-
if (d && (!h || !f.find((
|
|
95
|
-
const
|
|
96
|
-
g.id = `${
|
|
93
|
+
const { properties: m, title: d, ignore: f } = u, h = f && Array.isArray(f), g = Object.keys(m).reduce((B, S) => ((!h || !f.find((k) => k === S)) && (B[S] = m[S].type === "object" && m[S].properties ? o(m[S]) : Je(m[S].default)), B), {});
|
|
94
|
+
if (d && (!h || !f.find((B) => B === "id"))) {
|
|
95
|
+
const B = d.toLowerCase().replace(/-/g, "_");
|
|
96
|
+
g.id = `${B}_${Math.random().toString().slice(2, 6)}`;
|
|
97
97
|
}
|
|
98
98
|
return g;
|
|
99
99
|
}
|
|
100
100
|
function i(u) {
|
|
101
101
|
const { properties: m, title: d, required: f } = u;
|
|
102
102
|
if (f && Array.isArray(f)) {
|
|
103
|
-
const h = f.reduce((g,
|
|
103
|
+
const h = f.reduce((g, B) => (g[B] = m[B].type === "object" && m[B].properties ? o(m[B]) : Je(m[B].default), g), {});
|
|
104
104
|
if (d && f.find((g) => g === "id")) {
|
|
105
105
|
const g = d.toLowerCase().replace(/-/g, "_");
|
|
106
106
|
h.id = `${g}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -131,8 +131,8 @@ function pn(t, e) {
|
|
|
131
131
|
if (typeof g == "string")
|
|
132
132
|
f[g] = u[h];
|
|
133
133
|
else {
|
|
134
|
-
const
|
|
135
|
-
Object.assign(f,
|
|
134
|
+
const B = g(h, u[h], u);
|
|
135
|
+
Object.assign(f, B);
|
|
136
136
|
}
|
|
137
137
|
} else
|
|
138
138
|
f[h] = u[h];
|
|
@@ -152,7 +152,7 @@ function pn(t, e) {
|
|
|
152
152
|
return u;
|
|
153
153
|
const h = a(u, f), g = ((d = u.editor) == null ? void 0 : d.type) || "";
|
|
154
154
|
if (g) {
|
|
155
|
-
const
|
|
155
|
+
const B = t[g], S = a(u.editor, B);
|
|
156
156
|
h.editor = S;
|
|
157
157
|
}
|
|
158
158
|
return h;
|
|
@@ -214,8 +214,8 @@ function Qo(t = {}) {
|
|
|
214
214
|
return r(l).reduce((d, f) => d && a(f, p), !0);
|
|
215
215
|
}
|
|
216
216
|
function s(l, p) {
|
|
217
|
-
const u = Object.keys(l), m = u.includes("allOf"), d = u.includes("anyOf"), f = m || d,
|
|
218
|
-
return m ? !
|
|
217
|
+
const u = Object.keys(l), m = u.includes("allOf"), d = u.includes("anyOf"), f = m || d, B = (f ? l[f ? m ? "allOf" : "anyOf" : "allOf"] : [l]).map((k) => c(k, p));
|
|
218
|
+
return m ? !B.includes(!1) : B.includes(!0);
|
|
219
219
|
}
|
|
220
220
|
return { parseValueSchema: s };
|
|
221
221
|
}
|
|
@@ -521,11 +521,11 @@ function hn(t, e, n) {
|
|
|
521
521
|
const g = f.$converter || h;
|
|
522
522
|
return typeof g == "string" && g && o.has(g) ? o.get(g) || null : g || null;
|
|
523
523
|
}
|
|
524
|
-
function p(f, h, g,
|
|
524
|
+
function p(f, h, g, B, S, k = "", b = "") {
|
|
525
525
|
return Object.keys(f).map((x) => {
|
|
526
|
-
const R = E(1), $ = x, N = f[x], j = Object.keys(N),
|
|
526
|
+
const R = E(1), $ = x, N = f[x], j = Object.keys(N), M = N.title, y = N.type, v = i.get(y) || { type: "input-group", enableClear: !1 }, T = N.editor ? Object.assign({}, v, N.editor) : Object.assign({}, v), F = c(j, N, h), P = s(j, N, h);
|
|
527
527
|
T.readonly = T.readonly === void 0 ? P() : T.readonly;
|
|
528
|
-
const A = N.type === "cascade" ? p(N.properties, h, g,
|
|
528
|
+
const A = N.type === "cascade" ? p(N.properties, h, g, B, S, k, b) : [], I = !0;
|
|
529
529
|
let O = l(N, b);
|
|
530
530
|
const z = H({
|
|
531
531
|
get() {
|
|
@@ -538,44 +538,44 @@ function hn(t, e, n) {
|
|
|
538
538
|
return null;
|
|
539
539
|
},
|
|
540
540
|
set(ae) {
|
|
541
|
-
R.value += 1, O && O.convertTo ? (O.convertTo(
|
|
541
|
+
R.value += 1, O && O.convertTo ? (O.convertTo(B, x, ae, S, k), O.convertTo(g, x, ae, S, k)) : (B[x] = ae, g[x] = ae);
|
|
542
542
|
}
|
|
543
|
-
}), { refreshPanelAfterChanged: L, description: J, isExpand: K, parentPropertyID: te } = N, Y = { propertyID: $, propertyName:
|
|
543
|
+
}), { refreshPanelAfterChanged: L, description: J, isExpand: K, parentPropertyID: te } = N, Y = { propertyID: $, propertyName: M, propertyType: y, propertyValue: z, editor: T, visible: F, readonly: P, cascadeConfig: A, hideCascadeTitle: I, refreshPanelAfterChanged: L, description: J, isExpand: K, parentPropertyID: te };
|
|
544
544
|
return h[$] = Y, Y;
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
function u(f, h, g = {}) {
|
|
548
|
-
const
|
|
548
|
+
const B = {}, S = t[f];
|
|
549
549
|
return S && S.categories ? Object.keys(S.categories).map((b) => {
|
|
550
|
-
const C = S.categories[b], x = C == null ? void 0 : C.title, R = p(C.properties || {},
|
|
550
|
+
const C = S.categories[b], x = C == null ? void 0 : C.title, R = p(C.properties || {}, B, {}, g, h);
|
|
551
551
|
return { categoryId: b, categoryName: x, properties: R };
|
|
552
552
|
}) : [];
|
|
553
553
|
}
|
|
554
|
-
function m(f, h, g,
|
|
554
|
+
function m(f, h, g, B, S = "") {
|
|
555
555
|
const k = h.$ref.schema, b = h.$ref.converter, C = g[k], x = C.type, R = n(C), $ = {}, N = t[x];
|
|
556
556
|
if (N && N.categories) {
|
|
557
|
-
const j = N.categories[f],
|
|
557
|
+
const j = N.categories[f], M = j == null ? void 0 : j.title;
|
|
558
558
|
b && Object.keys(j.properties).forEach((T) => {
|
|
559
559
|
j.properties[T].$converter = b;
|
|
560
560
|
});
|
|
561
|
-
const y = (j == null ? void 0 : j.properties) || {}, v = p(y, $, R, C,
|
|
562
|
-
return { categoryId: f, categoryName:
|
|
561
|
+
const y = (j == null ? void 0 : j.properties) || {}, v = p(y, $, R, C, B, S);
|
|
562
|
+
return { categoryId: f, categoryName: M, properties: v };
|
|
563
563
|
}
|
|
564
564
|
return { categoryId: f, categoryName: "", properties: [] };
|
|
565
565
|
}
|
|
566
|
-
function d(f, h, g,
|
|
566
|
+
function d(f, h, g, B, S) {
|
|
567
567
|
const k = f.type, b = n(f), C = {};
|
|
568
568
|
let x = S || t[k];
|
|
569
|
-
if (x && Object.keys(x).length === 0 && g && g.getPropConfig && (x = g.getPropConfig(
|
|
569
|
+
if (x && Object.keys(x).length === 0 && g && g.getPropConfig && (x = g.getPropConfig(B)), x && x.categories) {
|
|
570
570
|
const R = [];
|
|
571
571
|
return Object.keys(x.categories).map(($) => {
|
|
572
572
|
const N = x.categories[$];
|
|
573
573
|
if (N.$ref) {
|
|
574
|
-
R.push(m($, N, f, h,
|
|
574
|
+
R.push(m($, N, f, h, B));
|
|
575
575
|
return;
|
|
576
576
|
}
|
|
577
|
-
const j = N == null ? void 0 : N.title,
|
|
578
|
-
R.push({ categoryId: $, categoryName: j, tabId:
|
|
577
|
+
const j = N == null ? void 0 : N.title, M = N == null ? void 0 : N.tabId, y = N == null ? void 0 : N.tabName, v = N == null ? void 0 : N.hide, T = N == null ? void 0 : N.hideTitle, F = p(N.properties || {}, C, b, f, h, B, N.$converter), { setPropertyRelates: P } = N, A = N == null ? void 0 : N.parentPropertyID;
|
|
578
|
+
R.push({ categoryId: $, categoryName: j, tabId: M, tabName: y, hide: v, properties: F, hideTitle: T, setPropertyRelates: P, parentPropertyID: A });
|
|
579
579
|
}), R;
|
|
580
580
|
}
|
|
581
581
|
return [];
|
|
@@ -1304,13 +1304,13 @@ function fr(t, e, n, o, i, r) {
|
|
|
1304
1304
|
class: b.value
|
|
1305
1305
|
}, [t.headerContentRenderFunction()]) : null;
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function B() {
|
|
1308
1308
|
return e.slots.headerTitle ? e.slots.headerTitle() : t.headerTitleRenderFunction ? t.headerTitleRenderFunction() : h();
|
|
1309
1309
|
}
|
|
1310
1310
|
function S() {
|
|
1311
1311
|
return w("div", {
|
|
1312
1312
|
class: m.value
|
|
1313
|
-
}, [
|
|
1313
|
+
}, [B(), g(), c.value === "inHead" && s(), (p.value || u.value) && f()]);
|
|
1314
1314
|
}
|
|
1315
1315
|
function k() {
|
|
1316
1316
|
return e.slots.header ? w("div", {
|
|
@@ -1351,8 +1351,8 @@ const bt = /* @__PURE__ */ Pe({
|
|
|
1351
1351
|
class: m.value
|
|
1352
1352
|
}, [c.value === "inContent" && p(), e.slots.default && e.slots.default()]);
|
|
1353
1353
|
}
|
|
1354
|
-
return xe(() => t.expandStatus, (g,
|
|
1355
|
-
g !==
|
|
1354
|
+
return xe(() => t.expandStatus, (g, B) => {
|
|
1355
|
+
g !== B && (a.value = g);
|
|
1356
1356
|
}), Oe(() => {
|
|
1357
1357
|
n.value && n.value && (o.value = n.value.parentElement);
|
|
1358
1358
|
}), () => t.visible ? w("div", {
|
|
@@ -2297,8 +2297,8 @@ class Sr {
|
|
|
2297
2297
|
return !i;
|
|
2298
2298
|
}
|
|
2299
2299
|
getComponentContext(e) {
|
|
2300
|
-
var h, g,
|
|
2301
|
-
const n = e.schema, o = n.appearance && n.appearance.class || "", i = o.split(" ") || [], r = n.contents || [], a = r.length ? r[0] : null, c = a && a.appearance ? a.appearance.class : "", s = c ? c.split(" ") : [], l = (h = a == null ? void 0 : a.contents) != null && h.length ? a == null ? void 0 : a.contents[0] : null, p = l && l.appearance ? l.appearance.class : "", u = p ? p.split(" ") : [], m = n.type === "component" ? (
|
|
2300
|
+
var h, g, B, S;
|
|
2301
|
+
const n = e.schema, o = n.appearance && n.appearance.class || "", i = o.split(" ") || [], r = n.contents || [], a = r.length ? r[0] : null, c = a && a.appearance ? a.appearance.class : "", s = c ? c.split(" ") : [], l = (h = a == null ? void 0 : a.contents) != null && h.length ? a == null ? void 0 : a.contents[0] : null, p = l && l.appearance ? l.appearance.class : "", u = p ? p.split(" ") : [], m = n.type === "component" ? (B = (g = e.parent) == null ? void 0 : g.parent) == null ? void 0 : B.schema : (S = e.parent) == null ? void 0 : S.schema, d = m && m.appearance && m.appearance.class || "", f = d ? d.split(" ") : [];
|
|
2302
2302
|
return {
|
|
2303
2303
|
componentClass: o,
|
|
2304
2304
|
componentClassList: i,
|
|
@@ -2373,11 +2373,11 @@ var Pn = { exports: {} };
|
|
|
2373
2373
|
2: [function(n, o, i) {
|
|
2374
2374
|
(function(r) {
|
|
2375
2375
|
var a = n("contra/emitter"), c = n("crossvent"), s = n("./classes"), l = document, p = l.documentElement;
|
|
2376
|
-
function u(
|
|
2376
|
+
function u(M, y) {
|
|
2377
2377
|
var v = arguments.length;
|
|
2378
|
-
v === 1 && Array.isArray(
|
|
2378
|
+
v === 1 && Array.isArray(M) === !1 && (y = M, M = []);
|
|
2379
2379
|
var T, F, P, A, I, O, z, L, J, K = null, te, Y, ae = !1, ue = 0, ie, G = y || {};
|
|
2380
|
-
G.moves === void 0 && (G.moves = S), G.accepts === void 0 && (G.accepts = S), G.invalid === void 0 && (G.invalid = st), G.containers === void 0 && (G.containers =
|
|
2380
|
+
G.moves === void 0 && (G.moves = S), G.accepts === void 0 && (G.accepts = S), G.invalid === void 0 && (G.invalid = st), G.containers === void 0 && (G.containers = M || []), G.isContainer === void 0 && (G.isContainer = B), G.copy === void 0 && (G.copy = !1), G.copySortSource === void 0 && (G.copySortSource = !1), G.revertOnSpill === void 0 && (G.revertOnSpill = !1), G.removeOnSpill === void 0 && (G.removeOnSpill = !1), G.direction === void 0 && (G.direction = "vertical"), G.ignoreInputTextSelection === void 0 && (G.ignoreInputTextSelection = !0), G.mirrorContainer === void 0 && (G.mirrorContainer = l.body);
|
|
2381
2381
|
var re = a({
|
|
2382
2382
|
containers: G.containers,
|
|
2383
2383
|
start: Be,
|
|
@@ -2675,7 +2675,7 @@ var Pn = { exports: {} };
|
|
|
2675
2675
|
return typeof G.copy == "boolean" ? G.copy : G.copy(D, _);
|
|
2676
2676
|
}
|
|
2677
2677
|
}
|
|
2678
|
-
function m(
|
|
2678
|
+
function m(M) {
|
|
2679
2679
|
const y = Array.from(window.scrollContainerList);
|
|
2680
2680
|
if (y.length === 1) {
|
|
2681
2681
|
const T = Array.from(window.scrollContainerList)[0];
|
|
@@ -2683,18 +2683,18 @@ var Pn = { exports: {} };
|
|
|
2683
2683
|
}
|
|
2684
2684
|
const v = d(y);
|
|
2685
2685
|
for (const T of v)
|
|
2686
|
-
if (T.contains(
|
|
2686
|
+
if (T.contains(M))
|
|
2687
2687
|
return T;
|
|
2688
2688
|
return null;
|
|
2689
2689
|
}
|
|
2690
|
-
function d(
|
|
2690
|
+
function d(M) {
|
|
2691
2691
|
const y = [];
|
|
2692
|
-
return
|
|
2692
|
+
return M.forEach((v) => {
|
|
2693
2693
|
const T = document.getElementById(v);
|
|
2694
2694
|
T && y.push(T);
|
|
2695
2695
|
}), y.sort((v, T) => v.contains(T) ? 1 : T.contains(v) ? -1 : 0), y;
|
|
2696
2696
|
}
|
|
2697
|
-
function f(
|
|
2697
|
+
function f(M, y, v, T) {
|
|
2698
2698
|
var F = {
|
|
2699
2699
|
mouseup: "touchend",
|
|
2700
2700
|
mousedown: "touchstart",
|
|
@@ -2708,66 +2708,66 @@ var Pn = { exports: {} };
|
|
|
2708
2708
|
mousedown: "MSPointerDown",
|
|
2709
2709
|
mousemove: "MSPointerMove"
|
|
2710
2710
|
};
|
|
2711
|
-
r.navigator.pointerEnabled ? c[y](
|
|
2711
|
+
r.navigator.pointerEnabled ? c[y](M, P[v], T) : r.navigator.msPointerEnabled ? c[y](M, A[v], T) : (c[y](M, F[v], T), c[y](M, v, T));
|
|
2712
2712
|
}
|
|
2713
|
-
function h(
|
|
2714
|
-
if (
|
|
2715
|
-
return
|
|
2716
|
-
if (
|
|
2717
|
-
return
|
|
2718
|
-
if (
|
|
2719
|
-
return
|
|
2720
|
-
var y =
|
|
2713
|
+
function h(M) {
|
|
2714
|
+
if (M.touches !== void 0)
|
|
2715
|
+
return M.touches.length;
|
|
2716
|
+
if (M.which !== void 0 && M.which !== 0)
|
|
2717
|
+
return M.which;
|
|
2718
|
+
if (M.buttons !== void 0)
|
|
2719
|
+
return M.buttons;
|
|
2720
|
+
var y = M.button;
|
|
2721
2721
|
if (y !== void 0)
|
|
2722
2722
|
return y & 1 ? 1 : y & 2 ? 3 : y & 4 ? 2 : 0;
|
|
2723
2723
|
}
|
|
2724
|
-
function g(
|
|
2725
|
-
|
|
2726
|
-
var T =
|
|
2727
|
-
return
|
|
2724
|
+
function g(M, y, v) {
|
|
2725
|
+
M = M || {};
|
|
2726
|
+
var T = M.className || "", F;
|
|
2727
|
+
return M.className += " gu-hide", F = l.elementFromPoint(y, v), M.className = T, F;
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2729
|
+
function B() {
|
|
2730
2730
|
return !1;
|
|
2731
2731
|
}
|
|
2732
2732
|
function S() {
|
|
2733
2733
|
return !0;
|
|
2734
2734
|
}
|
|
2735
|
-
function k(
|
|
2736
|
-
return
|
|
2735
|
+
function k(M) {
|
|
2736
|
+
return M.width || M.right - M.left;
|
|
2737
2737
|
}
|
|
2738
|
-
function b(
|
|
2739
|
-
return
|
|
2738
|
+
function b(M) {
|
|
2739
|
+
return M.height || M.bottom - M.top;
|
|
2740
2740
|
}
|
|
2741
|
-
function C(
|
|
2742
|
-
return
|
|
2741
|
+
function C(M) {
|
|
2742
|
+
return M.parentNode === l ? null : M.parentNode;
|
|
2743
2743
|
}
|
|
2744
|
-
function x(
|
|
2745
|
-
return
|
|
2744
|
+
function x(M) {
|
|
2745
|
+
return M.tagName === "INPUT" || M.tagName === "TEXTAREA" || M.tagName === "SELECT" || R(M);
|
|
2746
2746
|
}
|
|
2747
|
-
function R(
|
|
2748
|
-
return !
|
|
2747
|
+
function R(M) {
|
|
2748
|
+
return !M || M.contentEditable === "false" ? !1 : M.contentEditable === "true" ? !0 : R(C(M));
|
|
2749
2749
|
}
|
|
2750
|
-
function $(
|
|
2751
|
-
return
|
|
2750
|
+
function $(M) {
|
|
2751
|
+
return M.nextElementSibling || y();
|
|
2752
2752
|
function y() {
|
|
2753
|
-
var v =
|
|
2753
|
+
var v = M;
|
|
2754
2754
|
do
|
|
2755
2755
|
v = v.nextSibling;
|
|
2756
2756
|
while (v && v.nodeType !== 1);
|
|
2757
2757
|
return v;
|
|
2758
2758
|
}
|
|
2759
2759
|
}
|
|
2760
|
-
function N(
|
|
2761
|
-
return
|
|
2760
|
+
function N(M) {
|
|
2761
|
+
return M.targetTouches && M.targetTouches.length ? M.targetTouches[0] : M.changedTouches && M.changedTouches.length ? M.changedTouches[0] : M;
|
|
2762
2762
|
}
|
|
2763
|
-
function j(
|
|
2763
|
+
function j(M, y) {
|
|
2764
2764
|
var v = N(y), T = {
|
|
2765
2765
|
pageX: "clientX",
|
|
2766
2766
|
// IE8
|
|
2767
2767
|
pageY: "clientY"
|
|
2768
2768
|
// IE8
|
|
2769
2769
|
};
|
|
2770
|
-
return
|
|
2770
|
+
return M in T && !(M in v) && T[M] in v && (M = T[M]), v[M];
|
|
2771
2771
|
}
|
|
2772
2772
|
o.exports = u;
|
|
2773
2773
|
}).call(this, typeof ze < "u" ? ze : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2815,8 +2815,8 @@ var Pn = { exports: {} };
|
|
|
2815
2815
|
var f = r(arguments), h = this || s;
|
|
2816
2816
|
if (m === "error" && p.throws !== !1 && !d.length)
|
|
2817
2817
|
throw f.length === 1 ? f[0] : f;
|
|
2818
|
-
return d.forEach(function(
|
|
2819
|
-
p.async ? a(
|
|
2818
|
+
return d.forEach(function(B) {
|
|
2819
|
+
p.async ? a(B, f, h) : B.apply(h, f), B._once && s.off(m, B);
|
|
2820
2820
|
}), s;
|
|
2821
2821
|
};
|
|
2822
2822
|
}, s;
|
|
@@ -2848,14 +2848,14 @@ var Pn = { exports: {} };
|
|
|
2848
2848
|
var $ = c.indexOf(x) === -1 ? j() : N();
|
|
2849
2849
|
C.dispatchEvent ? C.dispatchEvent($) : C.fireEvent("on" + x, $);
|
|
2850
2850
|
function N() {
|
|
2851
|
-
var
|
|
2852
|
-
return s.createEvent ? (
|
|
2851
|
+
var M;
|
|
2852
|
+
return s.createEvent ? (M = s.createEvent("Event"), M.initEvent(x, !0, !0)) : s.createEventObject && (M = s.createEventObject()), M;
|
|
2853
2853
|
}
|
|
2854
2854
|
function j() {
|
|
2855
2855
|
return new a(x, { detail: R });
|
|
2856
2856
|
}
|
|
2857
2857
|
}
|
|
2858
|
-
function
|
|
2858
|
+
function B(C, x, R) {
|
|
2859
2859
|
return function(N) {
|
|
2860
2860
|
var j = N || r.event;
|
|
2861
2861
|
j.target = j.target || j.srcElement, j.preventDefault = j.preventDefault || function() {
|
|
@@ -2866,7 +2866,7 @@ var Pn = { exports: {} };
|
|
|
2866
2866
|
};
|
|
2867
2867
|
}
|
|
2868
2868
|
function S(C, x, R) {
|
|
2869
|
-
var $ = k(C, x, R) ||
|
|
2869
|
+
var $ = k(C, x, R) || B(C, x, R);
|
|
2870
2870
|
return u.push({
|
|
2871
2871
|
wrapper: $,
|
|
2872
2872
|
element: C,
|
|
@@ -2975,9 +2975,9 @@ var Pn = { exports: {} };
|
|
|
2975
2975
|
}
|
|
2976
2976
|
var m = [], d = !1, f, h = -1;
|
|
2977
2977
|
function g() {
|
|
2978
|
-
!d || !f || (d = !1, f.length ? m = f.concat(m) : h = -1, m.length &&
|
|
2978
|
+
!d || !f || (d = !1, f.length ? m = f.concat(m) : h = -1, m.length && B());
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function B() {
|
|
2981
2981
|
if (!d) {
|
|
2982
2982
|
var b = p(g);
|
|
2983
2983
|
d = !0;
|
|
@@ -2994,7 +2994,7 @@ var Pn = { exports: {} };
|
|
|
2994
2994
|
if (arguments.length > 1)
|
|
2995
2995
|
for (var x = 1; x < arguments.length; x++)
|
|
2996
2996
|
C[x - 1] = arguments[x];
|
|
2997
|
-
m.push(new S(b, C)), m.length === 1 && !d && p(
|
|
2997
|
+
m.push(new S(b, C)), m.length === 1 && !d && p(B);
|
|
2998
2998
|
};
|
|
2999
2999
|
function S(b, C) {
|
|
3000
3000
|
this.fun = b, this.array = C;
|
|
@@ -3112,7 +3112,7 @@ const tn = /* @__PURE__ */ Tr(Mr), Br = {
|
|
|
3112
3112
|
e.emit("close", a.value);
|
|
3113
3113
|
}, 200);
|
|
3114
3114
|
}
|
|
3115
|
-
function
|
|
3115
|
+
function B(b, C) {
|
|
3116
3116
|
}
|
|
3117
3117
|
function S(b) {
|
|
3118
3118
|
return `f-preten-link ${b.customClass ? b.customClass : ""}`;
|
|
@@ -3491,7 +3491,7 @@ const Pr = {
|
|
|
3491
3491
|
};
|
|
3492
3492
|
function Fr(t, e, n, o, i, r, a, c, s, l, p, u, m, d, f, h, g) {
|
|
3493
3493
|
const {
|
|
3494
|
-
calculateCellPositionInRow:
|
|
3494
|
+
calculateCellPositionInRow: B
|
|
3495
3495
|
} = r, {
|
|
3496
3496
|
columnContext: S,
|
|
3497
3497
|
hasLeftFixedColumn: k,
|
|
@@ -3504,10 +3504,10 @@ function Fr(t, e, n, o, i, r, a, c, s, l, p, u, m, d, f, h, g) {
|
|
|
3504
3504
|
renderDataRow: $
|
|
3505
3505
|
} = so(t, e, S, g, c, s, l, p, u, m, d, f, h), N = [$];
|
|
3506
3506
|
function j(F, P) {
|
|
3507
|
-
const A =
|
|
3507
|
+
const A = B(F);
|
|
3508
3508
|
return g.value.filter((I) => I.visible !== !1).map((I, O) => N[I.type](I, A, P, O));
|
|
3509
3509
|
}
|
|
3510
|
-
function
|
|
3510
|
+
function M() {
|
|
3511
3511
|
return w("div", {
|
|
3512
3512
|
ref: o,
|
|
3513
3513
|
class: "fv-grid-content-left-fixed"
|
|
@@ -3536,7 +3536,7 @@ function Fr(t, e, n, o, i, r, a, c, s, l, p, u, m, d, f, h, g) {
|
|
|
3536
3536
|
}
|
|
3537
3537
|
function T() {
|
|
3538
3538
|
const F = [];
|
|
3539
|
-
return k.value && F.push(
|
|
3539
|
+
return k.value && F.push(M()), F.push(y()), b.value && F.push(v()), F;
|
|
3540
3540
|
}
|
|
3541
3541
|
return {
|
|
3542
3542
|
renderDataArea: T
|
|
@@ -3550,17 +3550,17 @@ const Dr = /* @__PURE__ */ Pe({
|
|
|
3550
3550
|
var Xt, Jt;
|
|
3551
3551
|
const o = ((Xt = t.rowOption) == null ? void 0 : Xt.height) || 28, i = E(20), r = E(t.columns), a = lo(t), {
|
|
3552
3552
|
idField: c
|
|
3553
|
-
} = a, s = E(), l = E(), p = E(), u = E(), m = E(), d = E([]), f = E(!1), h = E(((Jt = t.rowOption) == null ? void 0 : Jt.wrapContent) || !1), g = co(t, a),
|
|
3553
|
+
} = a, s = E(), l = E(), p = E(), u = E(), m = E(), d = E([]), f = E(!1), h = E(((Jt = t.rowOption) == null ? void 0 : Jt.wrapContent) || !1), g = co(t, a), B = uo(t, e), S = fo(t), {
|
|
3554
3554
|
collapseField: k
|
|
3555
3555
|
} = S, {
|
|
3556
3556
|
showLoading: b,
|
|
3557
3557
|
renderLoading: C
|
|
3558
|
-
} = po(t, s), x = mo(t, /* @__PURE__ */ new Map(),
|
|
3558
|
+
} = po(t, s), x = mo(t, /* @__PURE__ */ new Map(), B, S, a), {
|
|
3559
3559
|
dataView: R
|
|
3560
3560
|
} = x, $ = vo(t, x, a, d, e), {
|
|
3561
3561
|
showSelection: N,
|
|
3562
3562
|
selectedValues: j
|
|
3563
|
-
} = $,
|
|
3563
|
+
} = $, M = ho(t, d, x, a, $, e), y = H(() => t.disabled), v = H(() => t.virtualized ? Math.min(x.dataView.value.length, i.value) : x.dataView.value.length), T = go(t, x), {
|
|
3564
3564
|
shouldRenderPagination: F
|
|
3565
3565
|
} = T, {
|
|
3566
3566
|
containerStyleObject: P
|
|
@@ -3606,11 +3606,11 @@ const Dr = /* @__PURE__ */ Pe({
|
|
|
3606
3606
|
"fv-grid-wrap-content": h.value
|
|
3607
3607
|
})), {
|
|
3608
3608
|
renderDataArea: ce
|
|
3609
|
-
} = Fr(t, e, p, u, m, et, L, x, ie, S, ue, $,
|
|
3609
|
+
} = Fr(t, e, p, u, m, et, L, x, ie, S, ue, $, M, le, $e, G, d), {
|
|
3610
3610
|
renderGridHeader: de,
|
|
3611
3611
|
renderGridColumnResizeOverlay: Re,
|
|
3612
3612
|
shouldShowHeader: St
|
|
3613
|
-
} = jo(t, e, l, u, m, L, x, ot, nt,
|
|
3613
|
+
} = jo(t, e, l, u, m, L, x, ot, nt, B, Le, Ue, ae, $, _e, J, le, Be, d), {
|
|
3614
3614
|
renderDataGridSidebar: Tt
|
|
3615
3615
|
} = Ao(t, ue, $, _e, le), {
|
|
3616
3616
|
renderDisableMask: Mt
|
|
@@ -3657,8 +3657,8 @@ const Dr = /* @__PURE__ */ Pe({
|
|
|
3657
3657
|
x.insertNewChildDataItems(W, he);
|
|
3658
3658
|
}
|
|
3659
3659
|
function Rt() {
|
|
3660
|
-
const W = lt(), Q =
|
|
3661
|
-
x.removeHierarchyDataItem(W), d.value = Me(0, v.value + 0 - 1), Q &&
|
|
3660
|
+
const W = lt(), Q = M.getNextSelectableHierarchyItemId(W);
|
|
3661
|
+
x.removeHierarchyDataItem(W), d.value = Me(0, v.value + 0 - 1), Q && M.selectItemById(Q);
|
|
3662
3662
|
}
|
|
3663
3663
|
function vt(W) {
|
|
3664
3664
|
ie.onEditingRow(W);
|
|
@@ -3679,7 +3679,7 @@ const Dr = /* @__PURE__ */ Pe({
|
|
|
3679
3679
|
W && (x.load(W), x.reOrderVisibleIndex(), Q != null && Q.keepScrollPosition ? le.scrollTo(le.offsetY.value) : Ae());
|
|
3680
3680
|
}
|
|
3681
3681
|
function X(W) {
|
|
3682
|
-
|
|
3682
|
+
M.selectItemById(W);
|
|
3683
3683
|
}
|
|
3684
3684
|
function ne(W) {
|
|
3685
3685
|
const Q = d.value.find((pe) => pe.raw[a.idField.value] === W);
|
|
@@ -3689,7 +3689,7 @@ const Dr = /* @__PURE__ */ Pe({
|
|
|
3689
3689
|
ue.activeRowById(W);
|
|
3690
3690
|
}
|
|
3691
3691
|
function Te(W) {
|
|
3692
|
-
|
|
3692
|
+
M.selectItemByIds(W);
|
|
3693
3693
|
}
|
|
3694
3694
|
function ye() {
|
|
3695
3695
|
return $.getSelectedItems();
|
|
@@ -3704,7 +3704,7 @@ const Dr = /* @__PURE__ */ Pe({
|
|
|
3704
3704
|
return $.getSelectionRow();
|
|
3705
3705
|
}
|
|
3706
3706
|
function Ce(W) {
|
|
3707
|
-
|
|
3707
|
+
M.unSelectItemByIds(W);
|
|
3708
3708
|
}
|
|
3709
3709
|
function ve() {
|
|
3710
3710
|
return $.currentSelectedDataId.value;
|
|
@@ -3969,7 +3969,7 @@ const $r = "https://json-schema.org/draft/2020-12/schema", Nr = "https://farris-
|
|
|
3969
3969
|
};
|
|
3970
3970
|
Fe(Yr, Hr, Rr, Or, Gr);
|
|
3971
3971
|
function Xr(t, e, n) {
|
|
3972
|
-
var
|
|
3972
|
+
var M;
|
|
3973
3973
|
const o = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", r = E();
|
|
3974
3974
|
let a;
|
|
3975
3975
|
function c() {
|
|
@@ -4014,7 +4014,7 @@ function Xr(t, e, n) {
|
|
|
4014
4014
|
var T;
|
|
4015
4015
|
!y || !v || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(y, v), (T = e == null ? void 0 : e.setupContext) == null || T.emit("dragEnd"));
|
|
4016
4016
|
}
|
|
4017
|
-
function
|
|
4017
|
+
function B(y, v) {
|
|
4018
4018
|
const { componentType: T } = y;
|
|
4019
4019
|
let F = dn(T, y, v);
|
|
4020
4020
|
n && n.onResolveNewComponentSchema && (F = n.onResolveNewComponentSchema(y, F));
|
|
@@ -4103,7 +4103,7 @@ function Xr(t, e, n) {
|
|
|
4103
4103
|
canNested: !p(),
|
|
4104
4104
|
contents: e == null ? void 0 : e.schema.contents,
|
|
4105
4105
|
elementRef: t,
|
|
4106
|
-
parent: (
|
|
4106
|
+
parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
|
|
4107
4107
|
schema: e == null ? void 0 : e.schema,
|
|
4108
4108
|
styles: o,
|
|
4109
4109
|
designerClass: i,
|
|
@@ -4115,7 +4115,7 @@ function Xr(t, e, n) {
|
|
|
4115
4115
|
getDragScopeElement: h,
|
|
4116
4116
|
onAcceptMovedChildElement: g,
|
|
4117
4117
|
onChildElementMovedOut: S,
|
|
4118
|
-
addNewChildComponentSchema:
|
|
4118
|
+
addNewChildComponentSchema: B,
|
|
4119
4119
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || E(!1),
|
|
4120
4120
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || E(!1),
|
|
4121
4121
|
onRemoveComponent: x,
|
|
@@ -4726,13 +4726,13 @@ function ja(t, e) {
|
|
|
4726
4726
|
if (d !== "" && d !== void 0 && d !== null) {
|
|
4727
4727
|
d = "" + d;
|
|
4728
4728
|
const h = d.length;
|
|
4729
|
-
let g = "",
|
|
4729
|
+
let g = "", B = 0;
|
|
4730
4730
|
for (let S = 0; S < h; S++) {
|
|
4731
4731
|
const k = d.charAt(S);
|
|
4732
|
-
if (
|
|
4732
|
+
if (B++, encodeURI(k).length > 4 && B++, g = g.concat(k), B >= f)
|
|
4733
4733
|
return g = g.concat("..."), g;
|
|
4734
4734
|
}
|
|
4735
|
-
if (
|
|
4735
|
+
if (B < f)
|
|
4736
4736
|
return d;
|
|
4737
4737
|
}
|
|
4738
4738
|
return "";
|
|
@@ -4825,12 +4825,12 @@ function Va(t, e, n, o) {
|
|
|
4825
4825
|
}, [c.value])]);
|
|
4826
4826
|
}
|
|
4827
4827
|
function za(t, e, n, o, i) {
|
|
4828
|
-
const r = E(t.type), a = E(t.buttons), c = E(t.exceptionInfo), s = E(i.ok || t.okButtonText), l = E(i.cancel || t.cancelButtonText), p = E(t.showCancelButton), u = E(t.showOkButton), m = H(() => !!(a.value && a.value.length)), d = H(() => c.value && c.value.
|
|
4828
|
+
const r = E(t.type), a = E(t.buttons), c = E(t.exceptionInfo), s = E(i.ok || t.okButtonText), l = E(i.cancel || t.cancelButtonText), p = E(t.showCancelButton), u = E(t.showOkButton), m = H(() => !!(a.value && a.value.length)), d = H(() => !!(c.value && c.value.detail)), f = H(() => !(a.value && a.value.length) && (u.value || p.value)), h = Va(t, n, o, i);
|
|
4829
4829
|
s.value === "关闭" ? s.value = i.close : s.value === "知道了" && (s.value = i.exception.roger);
|
|
4830
4830
|
function g(S) {
|
|
4831
4831
|
r.value === "question" && e.emit("reject"), e.emit("close");
|
|
4832
4832
|
}
|
|
4833
|
-
function
|
|
4833
|
+
function B(S) {
|
|
4834
4834
|
r.value === "question" && e.emit("accept"), e.emit("close");
|
|
4835
4835
|
}
|
|
4836
4836
|
return () => w("div", {
|
|
@@ -4842,7 +4842,7 @@ function za(t, e, n, o, i) {
|
|
|
4842
4842
|
}, [l.value]), f.value && u.value && w("button", {
|
|
4843
4843
|
type: "button",
|
|
4844
4844
|
class: "btn btn-primary btn-lg",
|
|
4845
|
-
onClick:
|
|
4845
|
+
onClick: B
|
|
4846
4846
|
}, [s.value]), m.value && a.value.length && a.value.map((S) => w("button", {
|
|
4847
4847
|
type: "button",
|
|
4848
4848
|
onClick: S.handle,
|
|
@@ -4883,17 +4883,17 @@ const yt = /* @__PURE__ */ Pe({
|
|
|
4883
4883
|
emits: ["accept", "reject", "close"],
|
|
4884
4884
|
setup(t, e) {
|
|
4885
4885
|
const n = Ha(t), o = E(t.type), i = E(t.title), r = E(t.detail), a = H(() => {
|
|
4886
|
-
const
|
|
4886
|
+
const B = {
|
|
4887
4887
|
"modal-tips": !0,
|
|
4888
4888
|
"d-flex": !0,
|
|
4889
4889
|
"flex-row": !0
|
|
4890
4890
|
}, S = `messager-type-${o.value}`;
|
|
4891
|
-
return
|
|
4891
|
+
return B[S] = !0, B;
|
|
4892
4892
|
}), c = H(() => {
|
|
4893
|
-
const
|
|
4893
|
+
const B = {
|
|
4894
4894
|
cursor: "default"
|
|
4895
4895
|
};
|
|
4896
|
-
return o.value === "prompt" ?
|
|
4896
|
+
return o.value === "prompt" ? B.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (B.padding = "0.5rem 1.5rem 1rem 1.5rem"), B;
|
|
4897
4897
|
}), s = Da(), l = Oa(t, o, i, r), p = $a(), {
|
|
4898
4898
|
feedbackStyle: u,
|
|
4899
4899
|
feedbackMessage: m
|
|
@@ -5227,7 +5227,7 @@ class Xe {
|
|
|
5227
5227
|
}
|
|
5228
5228
|
function os(t, e) {
|
|
5229
5229
|
const n = E(), o = E(), i = E(), r = E(), a = E(), c = E(), s = E(), l = E(), p = E(), u = E(), m = E(), d = E(t.resizeable), f = E(), h = E(t.draggable), g = E(!1);
|
|
5230
|
-
function
|
|
5230
|
+
function B() {
|
|
5231
5231
|
const I = o.value || document.body, O = window.getComputedStyle(I);
|
|
5232
5232
|
if (!O || !n.value)
|
|
5233
5233
|
return;
|
|
@@ -5238,7 +5238,7 @@ function os(t, e) {
|
|
|
5238
5238
|
}
|
|
5239
5239
|
function S(I) {
|
|
5240
5240
|
if (n.value) {
|
|
5241
|
-
r.value = Xe.getCurrent(n.value), a.value = se.getCurrent(n.value), c.value = r.value ? Xe.copy(r.value) : null, s.value = a.value ? se.copy(a.value) : null,
|
|
5241
|
+
r.value = Xe.getCurrent(n.value), a.value = se.getCurrent(n.value), c.value = r.value ? Xe.copy(r.value) : null, s.value = a.value ? se.copy(a.value) : null, B();
|
|
5242
5242
|
const O = I.target.getAttribute("type") || "";
|
|
5243
5243
|
l.value = {
|
|
5244
5244
|
n: !!O.match(/n/),
|
|
@@ -5312,42 +5312,42 @@ function os(t, e) {
|
|
|
5312
5312
|
function j() {
|
|
5313
5313
|
document.addEventListener("mousemove", R), document.addEventListener("mouseup", N);
|
|
5314
5314
|
}
|
|
5315
|
-
function
|
|
5315
|
+
function M(I) {
|
|
5316
5316
|
I instanceof MouseEvent && I.button === 2 || h.value && (document.body.click(), I.stopPropagation(), I.preventDefault(), i.value = se.fromEvent(I), p.value = I.target, S(I), j());
|
|
5317
5317
|
}
|
|
5318
5318
|
function y(I) {
|
|
5319
5319
|
return n.value = I, d.value && w(ft, null, [w("div", {
|
|
5320
5320
|
class: "fv-resizable-handle fv-resizable-n",
|
|
5321
5321
|
type: "n",
|
|
5322
|
-
onMousedown: (O) =>
|
|
5322
|
+
onMousedown: (O) => M(O)
|
|
5323
5323
|
}, null), w("div", {
|
|
5324
5324
|
class: "fv-resizable-handle fv-resizable-e",
|
|
5325
5325
|
type: "e",
|
|
5326
|
-
onMousedown: (O) =>
|
|
5326
|
+
onMousedown: (O) => M(O)
|
|
5327
5327
|
}, null), w("div", {
|
|
5328
5328
|
class: "fv-resizable-handle fv-resizable-s",
|
|
5329
5329
|
type: "s",
|
|
5330
|
-
onMousedown: (O) =>
|
|
5330
|
+
onMousedown: (O) => M(O)
|
|
5331
5331
|
}, null), w("div", {
|
|
5332
5332
|
class: "fv-resizable-handle fv-resizable-w",
|
|
5333
5333
|
type: "w",
|
|
5334
|
-
onMousedown: (O) =>
|
|
5334
|
+
onMousedown: (O) => M(O)
|
|
5335
5335
|
}, null), w("div", {
|
|
5336
5336
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
5337
5337
|
type: "ne",
|
|
5338
|
-
onMousedown: (O) =>
|
|
5338
|
+
onMousedown: (O) => M(O)
|
|
5339
5339
|
}, null), w("div", {
|
|
5340
5340
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
5341
5341
|
type: "se",
|
|
5342
|
-
onMousedown: (O) =>
|
|
5342
|
+
onMousedown: (O) => M(O)
|
|
5343
5343
|
}, null), w("div", {
|
|
5344
5344
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
5345
5345
|
type: "sw",
|
|
5346
|
-
onMousedown: (O) =>
|
|
5346
|
+
onMousedown: (O) => M(O)
|
|
5347
5347
|
}, null), w("div", {
|
|
5348
5348
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
5349
5349
|
type: "nw",
|
|
5350
|
-
onMousedown: (O) =>
|
|
5350
|
+
onMousedown: (O) => M(O)
|
|
5351
5351
|
}, null)]);
|
|
5352
5352
|
}
|
|
5353
5353
|
function v(I = !0) {
|
|
@@ -5428,9 +5428,9 @@ function is(t, e, n) {
|
|
|
5428
5428
|
return !1;
|
|
5429
5429
|
}
|
|
5430
5430
|
function f() {
|
|
5431
|
-
var j,
|
|
5431
|
+
var j, M;
|
|
5432
5432
|
let R = u.value.x + p.value.x, $ = u.value.y + p.value.y;
|
|
5433
|
-
r.value === "x" ? (R = ((j = l.value) == null ? void 0 : j.x) || 0, u.value.x = 0) : r.value === "y" && ($ = ((
|
|
5433
|
+
r.value === "x" ? (R = ((j = l.value) == null ? void 0 : j.x) || 0, u.value.x = 0) : r.value === "y" && ($ = ((M = l.value) == null ? void 0 : M.y) || 0, u.value.y = 0);
|
|
5434
5434
|
const N = `translate3d(${Math.round(R)}px, ${Math.round($)}px, 0px)`;
|
|
5435
5435
|
o.value && (o.value.style.transform = N), m.value.x = R, m.value.y = $;
|
|
5436
5436
|
}
|
|
@@ -5448,15 +5448,15 @@ function is(t, e, n) {
|
|
|
5448
5448
|
function g(R) {
|
|
5449
5449
|
R && (l.value && R.subtract(l.value), u.value.set(R), f(), h());
|
|
5450
5450
|
}
|
|
5451
|
-
function
|
|
5451
|
+
function B(R) {
|
|
5452
5452
|
s.value && i.value && (R.stopPropagation(), R.preventDefault(), g(se.fromEvent(R, a.value)));
|
|
5453
5453
|
}
|
|
5454
5454
|
function S() {
|
|
5455
5455
|
var R;
|
|
5456
|
-
s.value && (s.value = !1, p.value.add(u.value), u.value.reset(), (R = o.value) == null || R.classList.remove("ng-dragging"), e.emit("stopMove"), document.removeEventListener("mousemove",
|
|
5456
|
+
s.value && (s.value = !1, p.value.add(u.value), u.value.reset(), (R = o.value) == null || R.classList.remove("ng-dragging"), e.emit("stopMove"), document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", S));
|
|
5457
5457
|
}
|
|
5458
5458
|
function k() {
|
|
5459
|
-
!s.value && a.value && (s.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove",
|
|
5459
|
+
!s.value && a.value && (s.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", B), document.addEventListener("mouseup", S));
|
|
5460
5460
|
}
|
|
5461
5461
|
function b() {
|
|
5462
5462
|
if (o.value) {
|
|
@@ -5525,10 +5525,10 @@ const Qe = /* @__PURE__ */ Pe({
|
|
|
5525
5525
|
props: Dn,
|
|
5526
5526
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
5527
5527
|
setup(t, e) {
|
|
5528
|
-
const n = E(t.width || 300), o = E(t.height || 200), i = E(t.modelValue), r = E(""), a = E(t.class), c = E(t.fitContent), s = E(t.showHeader), l = E(""), p = E(t.showCloseButton), u = E(t.showMaxButton), m = E(!1), d = E(t.dialogType), f = E(t.src), h = E(""), g = E(t.showButtons),
|
|
5528
|
+
const n = E(t.width || 300), o = E(t.height || 200), i = E(t.modelValue), r = E(""), a = E(t.class), c = E(t.fitContent), s = E(t.showHeader), l = E(""), p = E(t.showCloseButton), u = E(t.showMaxButton), m = E(!1), d = E(t.dialogType), f = E(t.src), h = E(""), g = E(t.showButtons), B = E(t.title), S = E(t.containment || null), k = E(), {
|
|
5529
5529
|
t: b
|
|
5530
5530
|
} = Vt();
|
|
5531
|
-
|
|
5531
|
+
B.value === "错误提示" && (B.value = b("messageBox.errorTitle"));
|
|
5532
5532
|
const C = E(!1);
|
|
5533
5533
|
function x(q, Z) {
|
|
5534
5534
|
const ce = Z ? "accept" : "cancel";
|
|
@@ -5555,7 +5555,7 @@ const Qe = /* @__PURE__ */ Pe({
|
|
|
5555
5555
|
handle: (q) => {
|
|
5556
5556
|
x(q, !0);
|
|
5557
5557
|
}
|
|
5558
|
-
}], $ = E(t.buttons && t.buttons.length ? t.buttons : R), N = H(() => !!l.value), j = H(() => !!g.value && !!$.value),
|
|
5558
|
+
}], $ = E(t.buttons && t.buttons.length ? t.buttons : R), N = H(() => !!l.value), j = H(() => !!g.value && !!$.value), M = E(), y = E(), v = E(!1), {
|
|
5559
5559
|
renderResizeBar: T,
|
|
5560
5560
|
maximize: F,
|
|
5561
5561
|
restore: P,
|
|
@@ -5575,10 +5575,10 @@ const Qe = /* @__PURE__ */ Pe({
|
|
|
5575
5575
|
(!q || q - 1 <= 0) && document.body.classList.remove("modal-open"), k.value && k.value.classList.remove("show");
|
|
5576
5576
|
}
|
|
5577
5577
|
xe(() => t.title, (q, Z) => {
|
|
5578
|
-
q !== Z && (
|
|
5578
|
+
q !== Z && (B.value = q);
|
|
5579
5579
|
}), xe(() => t.modelValue, (q, Z) => {
|
|
5580
5580
|
q !== Z && (i.value = q, i.value && t.draggable && Ke(() => {
|
|
5581
|
-
y.value && !S.value && (S.value = y.value.parentElement, A.value = S.value, J(
|
|
5581
|
+
y.value && !S.value && (S.value = y.value.parentElement, A.value = S.value, J(M.value, y.value, A.value), L());
|
|
5582
5582
|
}), q || (S.value && (S.value = null), te())), i.value ? C.value = K() : (v.value = !1, O.value = t.draggable);
|
|
5583
5583
|
}), xe(() => t.showHeader, (q, Z) => {
|
|
5584
5584
|
q !== Z && (s.value = q);
|
|
@@ -5662,13 +5662,13 @@ const Qe = /* @__PURE__ */ Pe({
|
|
|
5662
5662
|
q.handle && await q.handle(Z, q) && e.emit("closed", Z);
|
|
5663
5663
|
}
|
|
5664
5664
|
function Ne(q) {
|
|
5665
|
-
q.width && (n.value = q.width), q.height && (o.value = q.height), q.buttons && ($.value = q.buttons), q.title && (
|
|
5665
|
+
q.width && (n.value = q.width), q.height && (o.value = q.height), q.buttons && ($.value = q.buttons), q.title && (B.value = q.title);
|
|
5666
5666
|
}
|
|
5667
5667
|
let je = null, Be = null;
|
|
5668
5668
|
Qn(() => {
|
|
5669
5669
|
C.value = K();
|
|
5670
5670
|
}), Oe(() => {
|
|
5671
|
-
y.value && !S.value && (S.value = y.value.parentElement, A.value = S.value, J(
|
|
5671
|
+
y.value && !S.value && (S.value = y.value.parentElement, A.value = S.value, J(M.value, y.value, A.value)), Y.value && document.body.classList.add("modal-open"), je = rs(t, e), Be = as(t, e);
|
|
5672
5672
|
}), pt(() => {
|
|
5673
5673
|
z && z(), je && je.remove(), Be && Be.remove();
|
|
5674
5674
|
}), e.expose({
|
|
@@ -5718,7 +5718,7 @@ const Qe = /* @__PURE__ */ Pe({
|
|
|
5718
5718
|
}
|
|
5719
5719
|
function Ue() {
|
|
5720
5720
|
return w("div", {
|
|
5721
|
-
ref:
|
|
5721
|
+
ref: M,
|
|
5722
5722
|
class: "modal-header",
|
|
5723
5723
|
style: $e.value
|
|
5724
5724
|
}, [e.slots.headerTemplate ? e.slots.headerTemplate() : w("div", {
|
|
@@ -5728,7 +5728,7 @@ const Qe = /* @__PURE__ */ Pe({
|
|
|
5728
5728
|
style: "margin-right: 8px"
|
|
5729
5729
|
}, null), w("span", {
|
|
5730
5730
|
class: "modal-title-label"
|
|
5731
|
-
}, [
|
|
5731
|
+
}, [B.value])]), w("div", {
|
|
5732
5732
|
class: "actions"
|
|
5733
5733
|
}, [Ae()])]);
|
|
5734
5734
|
}
|
|
@@ -5800,7 +5800,7 @@ function ss(t) {
|
|
|
5800
5800
|
}), f = t.closedCallback || ((k) => {
|
|
5801
5801
|
}), h = t.resizeHandle || ((k) => {
|
|
5802
5802
|
}), g = t.stopMoveHandle || ((k) => {
|
|
5803
|
-
}),
|
|
5803
|
+
}), B = On(t), S = (k) => {
|
|
5804
5804
|
p.value = !1, n.unmount(), f(k);
|
|
5805
5805
|
};
|
|
5806
5806
|
return Oe(() => {
|
|
@@ -5826,7 +5826,7 @@ function ss(t) {
|
|
|
5826
5826
|
onResize: h,
|
|
5827
5827
|
onStopMove: g
|
|
5828
5828
|
}, {
|
|
5829
|
-
default: () => [
|
|
5829
|
+
default: () => [B && B(n)]
|
|
5830
5830
|
});
|
|
5831
5831
|
}
|
|
5832
5832
|
});
|
|
@@ -5903,8 +5903,8 @@ class $n {
|
|
|
5903
5903
|
}, {
|
|
5904
5904
|
width: h,
|
|
5905
5905
|
height: g
|
|
5906
|
-
} = o.value,
|
|
5907
|
-
Object.assign(o.value,
|
|
5906
|
+
} = o.value, B = this.adaptToWindow(h || 500, g || 320);
|
|
5907
|
+
Object.assign(o.value, B);
|
|
5908
5908
|
const S = () => w(Qe, Lt({
|
|
5909
5909
|
ref: this.modalRef,
|
|
5910
5910
|
modelValue: i.value,
|
|
@@ -6085,16 +6085,16 @@ function us(t, e, n) {
|
|
|
6085
6085
|
function u(j) {
|
|
6086
6086
|
if (!j || !j.value)
|
|
6087
6087
|
return null;
|
|
6088
|
-
const
|
|
6088
|
+
const M = E(j == null ? void 0 : j.value.parent), y = u(M);
|
|
6089
6089
|
return y || null;
|
|
6090
6090
|
}
|
|
6091
6091
|
function m(j = e) {
|
|
6092
6092
|
var T;
|
|
6093
|
-
const { componentInstance:
|
|
6094
|
-
if (!
|
|
6093
|
+
const { componentInstance: M, designerItemElementRef: y } = j;
|
|
6094
|
+
if (!M || !M.value)
|
|
6095
6095
|
return null;
|
|
6096
|
-
const { getCustomButtons: v } =
|
|
6097
|
-
return
|
|
6096
|
+
const { getCustomButtons: v } = M.value;
|
|
6097
|
+
return M.value.canMove || M.value.canAdd || M.value.canDelete || v && ((T = v()) != null && T.length) ? y : m(j.parent);
|
|
6098
6098
|
}
|
|
6099
6099
|
function d() {
|
|
6100
6100
|
}
|
|
@@ -6106,13 +6106,13 @@ function us(t, e, n) {
|
|
|
6106
6106
|
}
|
|
6107
6107
|
function g() {
|
|
6108
6108
|
}
|
|
6109
|
-
function
|
|
6109
|
+
function B(j, M) {
|
|
6110
6110
|
}
|
|
6111
6111
|
function S(j) {
|
|
6112
|
-
const { componentType:
|
|
6113
|
-
let v = dn(
|
|
6114
|
-
const T =
|
|
6115
|
-
return v && !v.id && v.type ===
|
|
6112
|
+
const { componentType: M } = j, y = Se("designer-host-service");
|
|
6113
|
+
let v = dn(M, j, y);
|
|
6114
|
+
const T = M.toLowerCase().replace(/-/g, "_");
|
|
6115
|
+
return v && !v.id && v.type === M && (v.id = `${T}_${Math.random().toString().slice(2, 6)}`), v;
|
|
6116
6116
|
}
|
|
6117
6117
|
function k(j) {
|
|
6118
6118
|
}
|
|
@@ -6125,19 +6125,19 @@ function us(t, e, n) {
|
|
|
6125
6125
|
var y;
|
|
6126
6126
|
if (!(e != null && e.schema))
|
|
6127
6127
|
return;
|
|
6128
|
-
let
|
|
6128
|
+
let M = "";
|
|
6129
6129
|
{
|
|
6130
6130
|
const { text: v, title: T, label: F, mainTitle: P, name: A, type: I } = e.schema;
|
|
6131
|
-
|
|
6131
|
+
M = v || T || F || P || A || ((y = V[I]) == null ? void 0 : y.name);
|
|
6132
6132
|
}
|
|
6133
|
-
|
|
6134
|
-
componentTitle:
|
|
6135
|
-
parentPathName:
|
|
6133
|
+
M && (!r && j && (r = j.formSchemaUtils), r.getControlBasicInfoMap().set(e.schema.id, {
|
|
6134
|
+
componentTitle: M,
|
|
6135
|
+
parentPathName: M
|
|
6136
6136
|
}));
|
|
6137
6137
|
}
|
|
6138
6138
|
function R(j) {
|
|
6139
6139
|
var T;
|
|
6140
|
-
const { changeObject:
|
|
6140
|
+
const { changeObject: M } = j, { propertyID: y, propertyValue: v } = M;
|
|
6141
6141
|
["text", "title", "label", "name", "mainTitle"].includes((T = j == null ? void 0 : j.changeObject) == null ? void 0 : T.propertyID) && y && v && x();
|
|
6142
6142
|
}
|
|
6143
6143
|
function $(j) {
|
|
@@ -6160,7 +6160,7 @@ function us(t, e, n) {
|
|
|
6160
6160
|
getDraggingDisplayText: h,
|
|
6161
6161
|
getPropConfig: b,
|
|
6162
6162
|
getDragScopeElement: g,
|
|
6163
|
-
onAcceptMovedChildElement:
|
|
6163
|
+
onAcceptMovedChildElement: B,
|
|
6164
6164
|
onChildElementMovedOut: k,
|
|
6165
6165
|
addNewChildComponentSchema: S,
|
|
6166
6166
|
onRemoveComponent: C,
|
|
@@ -6184,7 +6184,7 @@ const Nn = /* @__PURE__ */ Pe({
|
|
|
6184
6184
|
setupContext: e
|
|
6185
6185
|
};
|
|
6186
6186
|
cn("design-item-context", h);
|
|
6187
|
-
const g = Se("designer-host-service"),
|
|
6187
|
+
const g = Se("designer-host-service"), B = Se("external-container-id"), S = H(() => {
|
|
6188
6188
|
var I;
|
|
6189
6189
|
const P = ((I = d.value) == null ? void 0 : I.getCustomButtons) && d.value.getCustomButtons();
|
|
6190
6190
|
return {
|
|
@@ -6282,14 +6282,14 @@ const Nn = /* @__PURE__ */ Pe({
|
|
|
6282
6282
|
xe(() => t.modelValue, (P) => {
|
|
6283
6283
|
l.value = P, h.schema = P;
|
|
6284
6284
|
});
|
|
6285
|
-
function
|
|
6285
|
+
function M(P) {
|
|
6286
6286
|
window.scrollContainerList || (window.scrollContainerList = /* @__PURE__ */ new Set());
|
|
6287
6287
|
const A = P.getAttribute("id");
|
|
6288
6288
|
A && window.scrollContainerList.add(A);
|
|
6289
6289
|
}
|
|
6290
6290
|
function y(P) {
|
|
6291
6291
|
const A = P.target;
|
|
6292
|
-
|
|
6292
|
+
M(A), hr(A);
|
|
6293
6293
|
}
|
|
6294
6294
|
function v() {
|
|
6295
6295
|
var P, A;
|
|
@@ -6309,8 +6309,8 @@ const Nn = /* @__PURE__ */ Pe({
|
|
|
6309
6309
|
u.value && u.value.removeEventListener("scroll", y);
|
|
6310
6310
|
});
|
|
6311
6311
|
function F(P) {
|
|
6312
|
-
if (P && (P.preventDefault(), P.stopPropagation()),
|
|
6313
|
-
const O = document.getElementById(`${
|
|
6312
|
+
if (P && (P.preventDefault(), P.stopPropagation()), B) {
|
|
6313
|
+
const O = document.getElementById(`${B}-design-item`);
|
|
6314
6314
|
O && O.click();
|
|
6315
6315
|
return;
|
|
6316
6316
|
}
|
|
@@ -6338,15 +6338,15 @@ function ds(t, e) {
|
|
|
6338
6338
|
}
|
|
6339
6339
|
function r(g) {
|
|
6340
6340
|
var b;
|
|
6341
|
-
const { componentType:
|
|
6342
|
-
return !!(S === "control" &&
|
|
6341
|
+
const { componentType: B, sourceType: S, sourceElement: k } = g;
|
|
6342
|
+
return !!(S === "control" && B === V["filter-bar"].type || S === "move" && B === V["content-container"].type && ((b = k == null ? void 0 : k.className) != null && b.includes("f-filter-container")));
|
|
6343
6343
|
}
|
|
6344
6344
|
function a(g) {
|
|
6345
6345
|
var R;
|
|
6346
6346
|
if (!e)
|
|
6347
6347
|
return !1;
|
|
6348
|
-
const
|
|
6349
|
-
if (!(
|
|
6348
|
+
const B = (R = o.appearance) == null ? void 0 : R.class, { sourceType: S } = g, { formSchemaUtils: k } = e;
|
|
6349
|
+
if (!(B && B.includes("f-section-grid")))
|
|
6350
6350
|
return !1;
|
|
6351
6351
|
const C = k.getViewModelIdByComponentId(t.componentInstance.value.belongedComponentId), x = k.getViewModelById(C);
|
|
6352
6352
|
if (x && x.bindTo !== "/")
|
|
@@ -6355,12 +6355,12 @@ function ds(t, e) {
|
|
|
6355
6355
|
return !0;
|
|
6356
6356
|
if (S === "control") {
|
|
6357
6357
|
if (o.contents && o.contents.find((j) => {
|
|
6358
|
-
var
|
|
6359
|
-
return j.type === V["content-container"].type && ((y = (
|
|
6358
|
+
var M, y;
|
|
6359
|
+
return j.type === V["content-container"].type && ((y = (M = j.appearance) == null ? void 0 : M.class) == null ? void 0 : y.includes("f-filter-container"));
|
|
6360
6360
|
}))
|
|
6361
6361
|
return !1;
|
|
6362
6362
|
const N = k.getComponentById("root-component");
|
|
6363
|
-
if (N && k.selectNode(N, (
|
|
6363
|
+
if (N && k.selectNode(N, (M) => M.type === V["query-solution"].type))
|
|
6364
6364
|
return !1;
|
|
6365
6365
|
}
|
|
6366
6366
|
return !0;
|
|
@@ -6382,22 +6382,22 @@ function ds(t, e) {
|
|
|
6382
6382
|
return g;
|
|
6383
6383
|
}
|
|
6384
6384
|
function p() {
|
|
6385
|
-
const { canMove: g, canDelete:
|
|
6386
|
-
return !g && !
|
|
6385
|
+
const { canMove: g, canDelete: B } = n.getTemplateRule(t, e);
|
|
6386
|
+
return !g && !B;
|
|
6387
6387
|
}
|
|
6388
6388
|
function u(g) {
|
|
6389
6389
|
g && (g.stopPropagation(), g.preventDefault());
|
|
6390
|
-
const { schema:
|
|
6391
|
-
(!
|
|
6390
|
+
const { schema: B } = t;
|
|
6391
|
+
(!B.toolbar || !B.toolbar.buttons) && (B.toolbar = { id: `${B.id}_toolbar`, type: "section-toolbar", buttons: [] });
|
|
6392
6392
|
const S = zt("section-toolbar-item");
|
|
6393
|
-
S.id = `section_toolbar_item_${Math.random().toString().slice(2, 6)}`,
|
|
6393
|
+
S.id = `section_toolbar_item_${Math.random().toString().slice(2, 6)}`, B.toolbar.buttons.push(S);
|
|
6394
6394
|
}
|
|
6395
6395
|
function m() {
|
|
6396
6396
|
var b;
|
|
6397
|
-
const { schema: g } = t,
|
|
6398
|
-
if (g.showHeader === !1 || !
|
|
6397
|
+
const { schema: g } = t, B = e == null ? void 0 : e.formSchemaUtils;
|
|
6398
|
+
if (g.showHeader === !1 || !B)
|
|
6399
6399
|
return;
|
|
6400
|
-
const S =
|
|
6400
|
+
const S = B.selectNode(g, (C) => C.type === V["response-form"].type), k = ((b = g.toolbar) == null ? void 0 : b.buttons) || [];
|
|
6401
6401
|
if (!S && k.length === 0)
|
|
6402
6402
|
return [{
|
|
6403
6403
|
id: "appendToolbar",
|
|
@@ -6413,8 +6413,8 @@ function ds(t, e) {
|
|
|
6413
6413
|
const g = e.formSchemaUtils.getExpressions();
|
|
6414
6414
|
if (!g || !g.length)
|
|
6415
6415
|
return;
|
|
6416
|
-
const { schema:
|
|
6417
|
-
if (!((b = (k =
|
|
6416
|
+
const { schema: B } = t;
|
|
6417
|
+
if (!((b = (k = B.toolbar) == null ? void 0 : k.buttons) != null && b.length))
|
|
6418
6418
|
return;
|
|
6419
6419
|
const S = (C) => {
|
|
6420
6420
|
C.forEach((x) => {
|
|
@@ -6422,19 +6422,19 @@ function ds(t, e) {
|
|
|
6422
6422
|
R > -1 && g.splice(R, 1), x.children && x.children.length && S(x.children);
|
|
6423
6423
|
});
|
|
6424
6424
|
};
|
|
6425
|
-
S(
|
|
6425
|
+
S(B.toolbar.buttons);
|
|
6426
6426
|
}
|
|
6427
6427
|
function f() {
|
|
6428
6428
|
d();
|
|
6429
6429
|
}
|
|
6430
6430
|
function h() {
|
|
6431
|
-
var g,
|
|
6431
|
+
var g, B;
|
|
6432
6432
|
if (t && e) {
|
|
6433
6433
|
const { formSchemaUtils: S } = e, k = S.getControlBasicInfoMap(), { schema: b } = t;
|
|
6434
6434
|
k.set(b.id, {
|
|
6435
6435
|
componentTitle: b.mainTitle,
|
|
6436
6436
|
parentPathName: b.mainTitle
|
|
6437
|
-
}), (
|
|
6437
|
+
}), (B = (g = b.toolbar) == null ? void 0 : g.buttons) != null && B.length && b.toolbar.buttons.map((C) => {
|
|
6438
6438
|
var x;
|
|
6439
6439
|
k.set(C.id, {
|
|
6440
6440
|
componentTitle: C.text,
|
|
@@ -6558,8 +6558,8 @@ function ps(t, e, n) {
|
|
|
6558
6558
|
const k = (S = t.parent) == null ? void 0 : S.schema.type;
|
|
6559
6559
|
g = k === "tabs" ? "tab-toolbar-item" : k === "section" ? "section-toolbar-item" : "response-toolbar-item";
|
|
6560
6560
|
}
|
|
6561
|
-
const
|
|
6562
|
-
|
|
6561
|
+
const B = zt(g);
|
|
6562
|
+
B.id = `toolbar_item_${Math.random().toString().slice(2, 6)}`, h.buttons.push(B), n.updateToolbarItems(), n.changeSelectedId("");
|
|
6563
6563
|
}
|
|
6564
6564
|
function d() {
|
|
6565
6565
|
return [
|
|
@@ -6704,7 +6704,7 @@ function vs(t, e, n) {
|
|
|
6704
6704
|
left: N,
|
|
6705
6705
|
top: j
|
|
6706
6706
|
} = C[0], {
|
|
6707
|
-
width:
|
|
6707
|
+
width: M,
|
|
6708
6708
|
height: y
|
|
6709
6709
|
} = b.getBoundingClientRect(), {
|
|
6710
6710
|
marginTop: v,
|
|
@@ -6713,7 +6713,7 @@ function vs(t, e, n) {
|
|
|
6713
6713
|
function I() {
|
|
6714
6714
|
let J = 0, K = "left";
|
|
6715
6715
|
const te = A ? A.right : window.innerWidth, Y = A ? A.left : 0;
|
|
6716
|
-
return J = te - N - 10, te - N <
|
|
6716
|
+
return J = te - N - 10, te - N < M && N - Y > te - N && (K = "right", J = N - Y - 10), {
|
|
6717
6717
|
hposition: K,
|
|
6718
6718
|
maxWidth: Math.min(J, 300)
|
|
6719
6719
|
};
|
|
@@ -6748,18 +6748,18 @@ function vs(t, e, n) {
|
|
|
6748
6748
|
if (!j || S.expanded !== !0)
|
|
6749
6749
|
return b;
|
|
6750
6750
|
j.style.visibility = "hidden", j.style.display = "block", j.style.maxHeight = "auto", j.style.maxWidth = k;
|
|
6751
|
-
let
|
|
6751
|
+
let M;
|
|
6752
6752
|
switch (i.toolbarPosition) {
|
|
6753
6753
|
case "tabs":
|
|
6754
|
-
|
|
6754
|
+
M = (R = r.value) == null ? void 0 : R.closest(".farris-tabs");
|
|
6755
6755
|
break;
|
|
6756
6756
|
case "section":
|
|
6757
|
-
|
|
6757
|
+
M = ($ = r.value) == null ? void 0 : $.closest(".f-section");
|
|
6758
6758
|
break;
|
|
6759
6759
|
default:
|
|
6760
|
-
|
|
6760
|
+
M = (N = r.value) == null ? void 0 : N.closest(".f-page");
|
|
6761
6761
|
}
|
|
6762
|
-
const y = h(i.toolbarPosition,
|
|
6762
|
+
const y = h(i.toolbarPosition, M, j, x), {
|
|
6763
6763
|
position: v,
|
|
6764
6764
|
maxHeight: T,
|
|
6765
6765
|
maxWidth: F
|
|
@@ -6785,7 +6785,7 @@ function vs(t, e, n) {
|
|
|
6785
6785
|
id: S.id + "_menu"
|
|
6786
6786
|
}, [f(S)]);
|
|
6787
6787
|
};
|
|
6788
|
-
function
|
|
6788
|
+
function B(S = "") {
|
|
6789
6789
|
S && m.has(S) ? m.forEach((k, b) => {
|
|
6790
6790
|
b !== S && (k.expanded = !1, m.delete(b));
|
|
6791
6791
|
}) : (m.forEach((k) => {
|
|
@@ -6794,7 +6794,7 @@ function vs(t, e, n) {
|
|
|
6794
6794
|
}
|
|
6795
6795
|
return {
|
|
6796
6796
|
renderDropdownMenu: u,
|
|
6797
|
-
clearAllDropDownMenu:
|
|
6797
|
+
clearAllDropDownMenu: B,
|
|
6798
6798
|
setResponseToolbarRef: a
|
|
6799
6799
|
};
|
|
6800
6800
|
}
|
|
@@ -7117,7 +7117,7 @@ function bs(t, e, n) {
|
|
|
7117
7117
|
e.formSchemaUtils.removeCommunicationInComponent(v);
|
|
7118
7118
|
});
|
|
7119
7119
|
}
|
|
7120
|
-
function
|
|
7120
|
+
function B() {
|
|
7121
7121
|
var F, P, A;
|
|
7122
7122
|
if ((F = e == null ? void 0 : e.designerContext) != null && F.checkCanDeleteControl && !e.designerContext.checkCanDeleteControl(t.schema))
|
|
7123
7123
|
return;
|
|
@@ -7182,7 +7182,7 @@ function bs(t, e, n) {
|
|
|
7182
7182
|
text: "",
|
|
7183
7183
|
icon: "f-icon-yxs_delete",
|
|
7184
7184
|
onClick: (v) => {
|
|
7185
|
-
$(v), d() ?
|
|
7185
|
+
$(v), d() ? B() : S();
|
|
7186
7186
|
}
|
|
7187
7187
|
}, {
|
|
7188
7188
|
id: "copy",
|
|
@@ -7218,7 +7218,7 @@ function bs(t, e, n) {
|
|
|
7218
7218
|
const { schema: y } = t;
|
|
7219
7219
|
f(y);
|
|
7220
7220
|
}
|
|
7221
|
-
function
|
|
7221
|
+
function M() {
|
|
7222
7222
|
var y, v, T, F;
|
|
7223
7223
|
if (t && e) {
|
|
7224
7224
|
const { formSchemaUtils: P } = e, { schema: A } = t;
|
|
@@ -7247,7 +7247,7 @@ function bs(t, e, n) {
|
|
|
7247
7247
|
getPropsConfig: R,
|
|
7248
7248
|
getCustomButtons: N,
|
|
7249
7249
|
onRemoveComponent: j,
|
|
7250
|
-
setComponentBasicInfoMap:
|
|
7250
|
+
setComponentBasicInfoMap: M
|
|
7251
7251
|
};
|
|
7252
7252
|
}
|
|
7253
7253
|
const Cs = /* @__PURE__ */ Pe({
|
|
@@ -7321,7 +7321,7 @@ const Cs = /* @__PURE__ */ Pe({
|
|
|
7321
7321
|
isDP: t.isDP
|
|
7322
7322
|
});
|
|
7323
7323
|
}
|
|
7324
|
-
function
|
|
7324
|
+
function B() {
|
|
7325
7325
|
return {
|
|
7326
7326
|
"btn-group": !0,
|
|
7327
7327
|
"no-drag": !0,
|
|
@@ -7337,7 +7337,7 @@ const Cs = /* @__PURE__ */ Pe({
|
|
|
7337
7337
|
class: "farris-component position-relative",
|
|
7338
7338
|
style: "display:inline-block!important;"
|
|
7339
7339
|
}, [w("div", {
|
|
7340
|
-
class:
|
|
7340
|
+
class: B(),
|
|
7341
7341
|
id: t.id
|
|
7342
7342
|
}, [w("div", {
|
|
7343
7343
|
class: m.value,
|
|
@@ -7394,8 +7394,8 @@ function ws(t, e, n, o) {
|
|
|
7394
7394
|
o.clearAllDropdown(m.isDP ? m.id : "");
|
|
7395
7395
|
}
|
|
7396
7396
|
function s(m, d = "") {
|
|
7397
|
-
const f = t.items || [], h = d || m, g = f.find((
|
|
7398
|
-
return d ? g.children.find((
|
|
7397
|
+
const f = t.items || [], h = d || m, g = f.find((B) => B.id === h);
|
|
7398
|
+
return d ? g.children.find((B) => B.id === m) : g;
|
|
7399
7399
|
}
|
|
7400
7400
|
function l(m, d = !1) {
|
|
7401
7401
|
if (!d)
|
|
@@ -7415,7 +7415,7 @@ function ws(t, e, n, o) {
|
|
|
7415
7415
|
key: h.id,
|
|
7416
7416
|
class: ["p-0", f ? "d-block no-drag" : "d-inline-block"],
|
|
7417
7417
|
modelValue: g.value,
|
|
7418
|
-
"onUpdate:modelValue": (
|
|
7418
|
+
"onUpdate:modelValue": (B) => g.value = B,
|
|
7419
7419
|
canMove: !1,
|
|
7420
7420
|
childType: "response-toolbar-item",
|
|
7421
7421
|
childLabel: "按钮",
|
|
@@ -7424,11 +7424,11 @@ function ws(t, e, n, o) {
|
|
|
7424
7424
|
id: h.id,
|
|
7425
7425
|
onSelectionChange: i,
|
|
7426
7426
|
onRemoveComponent: r,
|
|
7427
|
-
onMouseenter: (
|
|
7428
|
-
onMouseleave: (
|
|
7427
|
+
onMouseenter: (B) => l(B, f),
|
|
7428
|
+
onMouseleave: (B) => p(B, f)
|
|
7429
7429
|
}, {
|
|
7430
7430
|
default: () => {
|
|
7431
|
-
var
|
|
7431
|
+
var B;
|
|
7432
7432
|
return [w(Cs, {
|
|
7433
7433
|
id: h.id,
|
|
7434
7434
|
disabled: h.disabled,
|
|
@@ -7438,7 +7438,7 @@ function ws(t, e, n, o) {
|
|
|
7438
7438
|
item: m,
|
|
7439
7439
|
split: h.split,
|
|
7440
7440
|
isDPItem: m.isDPItem,
|
|
7441
|
-
class: ((
|
|
7441
|
+
class: ((B = m.appearance) == null ? void 0 : B.class) || "btn-secondary",
|
|
7442
7442
|
alignment: t.alignment || "right",
|
|
7443
7443
|
onDropdown: () => a(m),
|
|
7444
7444
|
onClearAll: (S) => c(S),
|
|
@@ -7498,7 +7498,7 @@ const An = /* @__PURE__ */ Pe({
|
|
|
7498
7498
|
}, m = ps(p, l, u), d = Go(r, p, m), f = Se("toolbar-item-handler"), {
|
|
7499
7499
|
initDragula: h,
|
|
7500
7500
|
dragulaInstance: g
|
|
7501
|
-
} = ms(p),
|
|
7501
|
+
} = ms(p), B = jn(), S = ws(t, i, p, u), k = vs(B, n, S), {
|
|
7502
7502
|
renderToolbarItemDesigner: b
|
|
7503
7503
|
} = S, {
|
|
7504
7504
|
clearAllDropDownMenu: C,
|
|
@@ -7533,10 +7533,10 @@ const An = /* @__PURE__ */ Pe({
|
|
|
7533
7533
|
}), C(z);
|
|
7534
7534
|
}
|
|
7535
7535
|
u.clearAllDropdown = j;
|
|
7536
|
-
function
|
|
7536
|
+
function M() {
|
|
7537
7537
|
f && f.updateToolbarItems && f.updateToolbarItems();
|
|
7538
7538
|
}
|
|
7539
|
-
u.updateToolbarItems =
|
|
7539
|
+
u.updateToolbarItems = M;
|
|
7540
7540
|
function y(z) {
|
|
7541
7541
|
if (z) {
|
|
7542
7542
|
const L = r.value.querySelector("#" + z.id), J = L.querySelector("#" + z.id + "_menu"), K = u.changeMenuPosition(z, L);
|
|
@@ -7580,7 +7580,7 @@ const An = /* @__PURE__ */ Pe({
|
|
|
7580
7580
|
}
|
|
7581
7581
|
});
|
|
7582
7582
|
Oe(() => {
|
|
7583
|
-
T.observe(r.value), c = r.value.clientWidth, r.value.componentInstance = d, h(i.value, o.value,
|
|
7583
|
+
T.observe(r.value), c = r.value.clientWidth, r.value.componentInstance = d, h(i.value, o.value, M);
|
|
7584
7584
|
}), pt(() => {
|
|
7585
7585
|
T.disconnect(), g && g.destroy && g.destroy();
|
|
7586
7586
|
}), e.expose(d.value);
|
|
@@ -7757,7 +7757,7 @@ function xs(t, e, n, o, i, r, a) {
|
|
|
7757
7757
|
innerHTML: t.headerTitleHtml
|
|
7758
7758
|
}, null) : f();
|
|
7759
7759
|
}
|
|
7760
|
-
function
|
|
7760
|
+
function B() {
|
|
7761
7761
|
return w("div", {
|
|
7762
7762
|
class: u.value
|
|
7763
7763
|
}, [g(), h(), c.value === "inHead" && Ln(t, a), (l.value || p.value) && d()]);
|
|
@@ -7768,7 +7768,7 @@ function xs(t, e, n, o, i, r, a) {
|
|
|
7768
7768
|
}, [e.slots.header()]) : t.headerHtml ? w("div", {
|
|
7769
7769
|
class: u.value,
|
|
7770
7770
|
innerHTML: t.headerHtml
|
|
7771
|
-
}, null) :
|
|
7771
|
+
}, null) : B();
|
|
7772
7772
|
}
|
|
7773
7773
|
return () => t.showHeader && S();
|
|
7774
7774
|
}
|
|
@@ -7796,7 +7796,7 @@ const Ss = /* @__PURE__ */ Pe({
|
|
|
7796
7796
|
}), g = H(() => ge({
|
|
7797
7797
|
"f-section-content": !0,
|
|
7798
7798
|
"drag-container": !0
|
|
7799
|
-
}, t.contentClass)),
|
|
7799
|
+
}, t.contentClass)), B = H(() => ({
|
|
7800
7800
|
visibility: (p.value === "default" || p.value === "custom") && !u.value ? "hidden" : "visible"
|
|
7801
7801
|
})), S = H(() => ge({
|
|
7802
7802
|
"f-section-extend": !0
|
|
@@ -7811,7 +7811,7 @@ const Ss = /* @__PURE__ */ Pe({
|
|
|
7811
7811
|
class: g.value,
|
|
7812
7812
|
ref: n,
|
|
7813
7813
|
"data-dragref": `${a.schema.id}-container`,
|
|
7814
|
-
style:
|
|
7814
|
+
style: B.value
|
|
7815
7815
|
}, [m.value === "inContent" && Ln(t, a), e.slots.default && e.slots.default()]);
|
|
7816
7816
|
}
|
|
7817
7817
|
return () => w("div", {
|