@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
|
@@ -181,20 +181,20 @@ const Ro = {
|
|
|
181
181
|
function on(e, t) {
|
|
182
182
|
let n;
|
|
183
183
|
function o(r) {
|
|
184
|
-
const { properties: s, title: c, ignore:
|
|
185
|
-
if (c && (!y || !
|
|
184
|
+
const { properties: s, title: c, ignore: f } = r, y = f && Array.isArray(f), b = Object.keys(s).reduce((R, M) => ((!y || !f.find((I) => I === M)) && (R[M] = s[M].type === "object" && s[M].properties ? o(s[M]) : Te(s[M].default)), R), {});
|
|
185
|
+
if (c && (!y || !f.find((R) => R === "id"))) {
|
|
186
186
|
const R = c.toLowerCase().replace(/-/g, "_");
|
|
187
|
-
|
|
187
|
+
b.id = `${R}_${Math.random().toString().slice(2, 6)}`;
|
|
188
188
|
}
|
|
189
|
-
return
|
|
189
|
+
return b;
|
|
190
190
|
}
|
|
191
191
|
function a(r) {
|
|
192
|
-
const { properties: s, title: c, required:
|
|
193
|
-
if (
|
|
194
|
-
const y =
|
|
195
|
-
if (c &&
|
|
196
|
-
const
|
|
197
|
-
y.id = `${
|
|
192
|
+
const { properties: s, title: c, required: f } = r;
|
|
193
|
+
if (f && Array.isArray(f)) {
|
|
194
|
+
const y = f.reduce((b, R) => (b[R] = s[R].type === "object" && s[R].properties ? o(s[R]) : Te(s[R].default), b), {});
|
|
195
|
+
if (c && f.find((b) => b === "id")) {
|
|
196
|
+
const b = c.toLowerCase().replace(/-/g, "_");
|
|
197
|
+
y.id = `${b}_${Math.random().toString().slice(2, 6)}`;
|
|
198
198
|
}
|
|
199
199
|
return y;
|
|
200
200
|
}
|
|
@@ -203,48 +203,48 @@ function on(e, t) {
|
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
function i(r, s = {}, c) {
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
208
|
-
let y = a(
|
|
209
|
-
const
|
|
210
|
-
return y =
|
|
206
|
+
const f = e[r];
|
|
207
|
+
if (f) {
|
|
208
|
+
let y = a(f);
|
|
209
|
+
const b = t[r];
|
|
210
|
+
return y = b ? b({ getSchemaByType: i }, y, s, c) : y, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(y), y;
|
|
211
211
|
}
|
|
212
212
|
return null;
|
|
213
213
|
}
|
|
214
214
|
function l(r, s) {
|
|
215
215
|
const c = o(s);
|
|
216
|
-
return Object.keys(c).reduce((
|
|
216
|
+
return Object.keys(c).reduce((f, y) => (Object.prototype.hasOwnProperty.call(r, y) && (f[y] && Yt(f[y]) && Yt(r[y] || !r[y]) ? Object.assign(f[y], r[y] || {}) : f[y] = r[y]), f), c), c;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
return Object.keys(r).filter((
|
|
218
|
+
function p(r, s) {
|
|
219
|
+
return Object.keys(r).filter((f) => r[f] != null).reduce((f, y) => {
|
|
220
220
|
if (s.has(y)) {
|
|
221
|
-
const
|
|
222
|
-
if (typeof
|
|
223
|
-
|
|
221
|
+
const b = s.get(y);
|
|
222
|
+
if (typeof b == "string")
|
|
223
|
+
f[b] = r[y];
|
|
224
224
|
else {
|
|
225
|
-
const R =
|
|
226
|
-
Object.assign(
|
|
225
|
+
const R = b(y, r[y], r);
|
|
226
|
+
Object.assign(f, R);
|
|
227
227
|
}
|
|
228
228
|
} else
|
|
229
|
-
|
|
230
|
-
return
|
|
229
|
+
f[y] = r[y];
|
|
230
|
+
return f;
|
|
231
231
|
}, {});
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
const
|
|
235
|
-
return f
|
|
233
|
+
function m(r, s, c = /* @__PURE__ */ new Map()) {
|
|
234
|
+
const f = l(r, s);
|
|
235
|
+
return p(f, c);
|
|
236
236
|
}
|
|
237
237
|
function u(r) {
|
|
238
238
|
var c;
|
|
239
239
|
const s = r.type;
|
|
240
240
|
if (s) {
|
|
241
|
-
const
|
|
242
|
-
if (!
|
|
241
|
+
const f = e[s];
|
|
242
|
+
if (!f)
|
|
243
243
|
return r;
|
|
244
|
-
const y = l(r,
|
|
245
|
-
if (
|
|
246
|
-
const R = e[
|
|
247
|
-
y.editor =
|
|
244
|
+
const y = l(r, f), b = ((c = r.editor) == null ? void 0 : c.type) || "";
|
|
245
|
+
if (b) {
|
|
246
|
+
const R = e[b], M = l(r.editor, R);
|
|
247
|
+
y.editor = M;
|
|
248
248
|
}
|
|
249
249
|
return y;
|
|
250
250
|
}
|
|
@@ -253,7 +253,7 @@ function on(e, t) {
|
|
|
253
253
|
function h(r) {
|
|
254
254
|
n = r;
|
|
255
255
|
}
|
|
256
|
-
return { getSchemaByType: i, resolveSchemaWithDefaultValue: u, resolveSchemaToProps:
|
|
256
|
+
return { getSchemaByType: i, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: m, mappingSchemaToProps: p, setDesignerContext: h };
|
|
257
257
|
}
|
|
258
258
|
const an = {}, ln = {}, { getSchemaByType: Su, resolveSchemaWithDefaultValue: Vo, resolveSchemaToProps: Ho, mappingSchemaToProps: zo, setDesignerContext: xu } = on(an, ln);
|
|
259
259
|
function Wo(e = {}) {
|
|
@@ -261,13 +261,13 @@ function Wo(e = {}) {
|
|
|
261
261
|
if (typeof r == "number")
|
|
262
262
|
return s[u].length === r;
|
|
263
263
|
if (typeof r == "object") {
|
|
264
|
-
const c = Object.keys(r)[0],
|
|
264
|
+
const c = Object.keys(r)[0], f = r[c];
|
|
265
265
|
if (c === "not")
|
|
266
|
-
return Number(s[u].length) !== Number(
|
|
266
|
+
return Number(s[u].length) !== Number(f);
|
|
267
267
|
if (c === "moreThan")
|
|
268
|
-
return Number(s[u].length) >= Number(
|
|
268
|
+
return Number(s[u].length) >= Number(f);
|
|
269
269
|
if (c === "lessThan")
|
|
270
|
-
return Number(s[u].length) <= Number(
|
|
270
|
+
return Number(s[u].length) <= Number(f);
|
|
271
271
|
}
|
|
272
272
|
return !1;
|
|
273
273
|
}
|
|
@@ -284,8 +284,8 @@ function Wo(e = {}) {
|
|
|
284
284
|
return typeof h == "number" ? [{ target: r, operator: "length", param: null, value: Number(h) }] : typeof h == "boolean" ? [{ target: r, operator: "getProperty", param: u, value: !!h }] : typeof h == "object" ? Object.keys(h).map((s) => {
|
|
285
285
|
if (s === "length")
|
|
286
286
|
return { target: r, operator: "length", param: null, value: h[s] };
|
|
287
|
-
const c = s,
|
|
288
|
-
return { target: r, operator: "getProperty", param: c, value:
|
|
287
|
+
const c = s, f = h[s];
|
|
288
|
+
return { target: r, operator: "getProperty", param: c, value: f };
|
|
289
289
|
}) : [];
|
|
290
290
|
}
|
|
291
291
|
function i(u) {
|
|
@@ -301,14 +301,14 @@ function Wo(e = {}) {
|
|
|
301
301
|
}
|
|
302
302
|
return !1;
|
|
303
303
|
}
|
|
304
|
-
function f(u, h) {
|
|
305
|
-
return i(u).reduce((c, m) => c && l(m, h), !0);
|
|
306
|
-
}
|
|
307
304
|
function p(u, h) {
|
|
308
|
-
|
|
305
|
+
return i(u).reduce((c, f) => c && l(f, h), !0);
|
|
306
|
+
}
|
|
307
|
+
function m(u, h) {
|
|
308
|
+
const r = Object.keys(u), s = r.includes("allOf"), c = r.includes("anyOf"), f = s || c, R = (f ? u[f ? s ? "allOf" : "anyOf" : "allOf"] : [u]).map((I) => p(I, h));
|
|
309
309
|
return s ? !R.includes(!1) : R.includes(!0);
|
|
310
310
|
}
|
|
311
|
-
return { parseValueSchema:
|
|
311
|
+
return { parseValueSchema: m };
|
|
312
312
|
}
|
|
313
313
|
const qo = {
|
|
314
314
|
convertTo: (e, t, n, o) => {
|
|
@@ -599,75 +599,75 @@ function rn(e, t, n) {
|
|
|
599
599
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
600
600
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
601
601
|
]), i = Wo();
|
|
602
|
-
function l(
|
|
603
|
-
return () => i.parseValueSchema(
|
|
602
|
+
function l(f, y) {
|
|
603
|
+
return () => i.parseValueSchema(f, y);
|
|
604
604
|
}
|
|
605
|
-
function f
|
|
606
|
-
return
|
|
605
|
+
function p(f, y, b) {
|
|
606
|
+
return f.includes("visible") && y.visible !== void 0 ? typeof y.visible == "boolean" ? () => !!y.visible : y.visible === void 0 ? !0 : l(y.visible, b) : () => !0;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
return
|
|
608
|
+
function m(f, y, b) {
|
|
609
|
+
return f.includes("readonly") && y.readonly !== void 0 ? typeof y.readonly == "boolean" ? () => !!y.readonly : l(y.readonly, b) : () => !1;
|
|
610
610
|
}
|
|
611
|
-
function u(
|
|
612
|
-
const
|
|
613
|
-
return typeof
|
|
611
|
+
function u(f, y) {
|
|
612
|
+
const b = f.$converter || y;
|
|
613
|
+
return typeof b == "string" && b && o.has(b) ? o.get(b) || null : b || null;
|
|
614
614
|
}
|
|
615
|
-
function h(
|
|
616
|
-
return Object.keys(
|
|
617
|
-
const
|
|
615
|
+
function h(f, y, b, R, M, I = "", $ = "") {
|
|
616
|
+
return Object.keys(f).map((x) => {
|
|
617
|
+
const w = d(1), C = x, S = f[x], j = Object.keys(S), F = S.title, D = S.type, O = a.get(D) || { type: "input-group", enableClear: !1 }, g = S.editor ? Object.assign({}, O, S.editor) : Object.assign({}, O), B = p(j, S, y), P = m(j, S, y);
|
|
618
618
|
g.readonly = g.readonly === void 0 ? P() : g.readonly;
|
|
619
|
-
const J = S.type === "cascade" ? h(S.properties, y,
|
|
619
|
+
const J = S.type === "cascade" ? h(S.properties, y, b, R, M, I, $) : [], A = !0;
|
|
620
620
|
let E = u(S, $);
|
|
621
621
|
const q = V({
|
|
622
622
|
get() {
|
|
623
|
-
if (
|
|
624
|
-
if (["class", "style"].find((de) => de ===
|
|
625
|
-
return E.convertFrom(
|
|
626
|
-
const ie =
|
|
623
|
+
if (w.value) {
|
|
624
|
+
if (["class", "style"].find((de) => de === C) && !E && (E = o.get("/converter/appearance.converter") || null), E && E.convertFrom)
|
|
625
|
+
return E.convertFrom(b, x, M, I);
|
|
626
|
+
const ie = b[x];
|
|
627
627
|
return Object.prototype.hasOwnProperty.call(S, "defaultValue") && (ie === void 0 || typeof ie == "string" && ie === "") ? S.type === "boolean" ? S.defaultValue : S.defaultValue || "" : ie;
|
|
628
628
|
}
|
|
629
629
|
return null;
|
|
630
630
|
},
|
|
631
631
|
set(ie) {
|
|
632
|
-
|
|
632
|
+
w.value += 1, E && E.convertTo ? (E.convertTo(R, x, ie, M, I), E.convertTo(b, x, ie, M, I)) : (R[x] = ie, b[x] = ie);
|
|
633
633
|
}
|
|
634
|
-
}), { refreshPanelAfterChanged: z, description: ee, isExpand: ge, parentPropertyID: be } = S, Y = { propertyID:
|
|
635
|
-
return y[
|
|
634
|
+
}), { refreshPanelAfterChanged: z, description: ee, isExpand: ge, parentPropertyID: be } = S, Y = { propertyID: C, propertyName: F, propertyType: D, propertyValue: q, editor: g, visible: B, readonly: P, cascadeConfig: J, hideCascadeTitle: A, refreshPanelAfterChanged: z, description: ee, isExpand: ge, parentPropertyID: be };
|
|
635
|
+
return y[C] = Y, Y;
|
|
636
636
|
});
|
|
637
637
|
}
|
|
638
|
-
function r(
|
|
639
|
-
const R = {},
|
|
640
|
-
return
|
|
641
|
-
const T =
|
|
642
|
-
return { categoryId: $, categoryName: x, properties:
|
|
638
|
+
function r(f, y, b = {}) {
|
|
639
|
+
const R = {}, M = e[f];
|
|
640
|
+
return M && M.categories ? Object.keys(M.categories).map(($) => {
|
|
641
|
+
const T = M.categories[$], x = T == null ? void 0 : T.title, w = h(T.properties || {}, R, {}, b, y);
|
|
642
|
+
return { categoryId: $, categoryName: x, properties: w };
|
|
643
643
|
}) : [];
|
|
644
644
|
}
|
|
645
|
-
function s(
|
|
646
|
-
const I = y.$ref.schema, $ = y.$ref.converter, T =
|
|
645
|
+
function s(f, y, b, R, M = "") {
|
|
646
|
+
const I = y.$ref.schema, $ = y.$ref.converter, T = b[I], x = T.type, w = n(T), C = {}, S = e[x];
|
|
647
647
|
if (S && S.categories) {
|
|
648
|
-
const j = S.categories[
|
|
648
|
+
const j = S.categories[f], F = j == null ? void 0 : j.title;
|
|
649
649
|
$ && Object.keys(j.properties).forEach((g) => {
|
|
650
650
|
j.properties[g].$converter = $;
|
|
651
651
|
});
|
|
652
|
-
const D = (j == null ? void 0 : j.properties) || {}, O = h(D,
|
|
653
|
-
return { categoryId:
|
|
654
|
-
}
|
|
655
|
-
return { categoryId:
|
|
656
|
-
}
|
|
657
|
-
function c(
|
|
658
|
-
const I =
|
|
659
|
-
let x =
|
|
660
|
-
if (x && Object.keys(x).length === 0 &&
|
|
661
|
-
const
|
|
662
|
-
return Object.keys(x.categories).map((
|
|
663
|
-
const S = x.categories[
|
|
652
|
+
const D = (j == null ? void 0 : j.properties) || {}, O = h(D, C, w, T, R, M);
|
|
653
|
+
return { categoryId: f, categoryName: F, properties: O };
|
|
654
|
+
}
|
|
655
|
+
return { categoryId: f, categoryName: "", properties: [] };
|
|
656
|
+
}
|
|
657
|
+
function c(f, y, b, R, M) {
|
|
658
|
+
const I = f.type, $ = n(f), T = {};
|
|
659
|
+
let x = M || e[I];
|
|
660
|
+
if (x && Object.keys(x).length === 0 && b && b.getPropConfig && (x = b.getPropConfig(R)), x && x.categories) {
|
|
661
|
+
const w = [];
|
|
662
|
+
return Object.keys(x.categories).map((C) => {
|
|
663
|
+
const S = x.categories[C];
|
|
664
664
|
if (S.$ref) {
|
|
665
|
-
|
|
665
|
+
w.push(s(C, S, f, y, R));
|
|
666
666
|
return;
|
|
667
667
|
}
|
|
668
|
-
const j = S == null ? void 0 : S.title,
|
|
669
|
-
|
|
670
|
-
}),
|
|
668
|
+
const j = S == null ? void 0 : S.title, F = S == null ? void 0 : S.tabId, D = S == null ? void 0 : S.tabName, O = S == null ? void 0 : S.hide, g = S == null ? void 0 : S.hideTitle, B = h(S.properties || {}, T, $, f, y, R, S.$converter), { setPropertyRelates: P } = S, J = S == null ? void 0 : S.parentPropertyID;
|
|
669
|
+
w.push({ categoryId: C, categoryName: j, tabId: F, tabName: D, hide: O, properties: B, hideTitle: g, setPropertyRelates: P, parentPropertyID: J });
|
|
670
|
+
}), w;
|
|
671
671
|
}
|
|
672
672
|
return [];
|
|
673
673
|
}
|
|
@@ -681,12 +681,12 @@ const sn = {}, un = {};
|
|
|
681
681
|
rn(sn, un, Vo);
|
|
682
682
|
const cn = {}, dn = {}, { getSchemaByType: Tu, resolveSchemaWithDefaultValue: da, resolveSchemaToProps: Fu, mappingSchemaToProps: Bu, setDesignerContext: Mu } = on(cn, dn), fn = {}, pn = {};
|
|
683
683
|
rn(fn, pn, da);
|
|
684
|
-
function je(e, t, n = /* @__PURE__ */ new Map(), o = (l,
|
|
685
|
-
return an[t.title] = t, ln[t.title] = o, sn[t.title] = a, un[t.title] = i, cn[t.title] = t, dn[t.title] = o, fn[t.title] = a, pn[t.title] = i, (l = {},
|
|
686
|
-
if (!
|
|
684
|
+
function je(e, t, n = /* @__PURE__ */ new Map(), o = (l, p, m, u) => p, a = {}, i = (l) => l) {
|
|
685
|
+
return an[t.title] = t, ln[t.title] = o, sn[t.title] = a, un[t.title] = i, cn[t.title] = t, dn[t.title] = o, fn[t.title] = a, pn[t.title] = i, (l = {}, p = !0) => {
|
|
686
|
+
if (!p)
|
|
687
687
|
return zo(l, n);
|
|
688
|
-
const
|
|
689
|
-
return Object.assign(u,
|
|
688
|
+
const m = Ho(l, t, n), u = Object.keys(e).reduce((h, r) => (h[r] = e[r].default, h), {});
|
|
689
|
+
return Object.assign(u, m);
|
|
690
690
|
};
|
|
691
691
|
}
|
|
692
692
|
function at(e, t) {
|
|
@@ -784,78 +784,78 @@ const wa = /* @__PURE__ */ le({
|
|
|
784
784
|
props: mn,
|
|
785
785
|
emits: ["change", "update:modelValue"],
|
|
786
786
|
setup(e, t) {
|
|
787
|
-
const n = d(e.items), o = d(), a = 2, i = d(e.modelValue), l = d("none"),
|
|
788
|
-
const
|
|
787
|
+
const n = d(e.items), o = d(), a = 2, i = d(e.modelValue), l = d("none"), p = d(e.type), m = V(() => {
|
|
788
|
+
const C = {
|
|
789
789
|
"f-capsule-container": !0
|
|
790
790
|
};
|
|
791
|
-
return
|
|
791
|
+
return p.value && (C[p.value] = !0), C;
|
|
792
792
|
}), u = V(() => ({})), h = V(() => ({
|
|
793
793
|
"f-capsule": !0
|
|
794
|
-
})), r = d(a), s = d(0), c = d(0),
|
|
794
|
+
})), r = d(a), s = d(0), c = d(0), f = V(() => ({
|
|
795
795
|
left: `${r.value}px`,
|
|
796
796
|
width: `${s.value}px`,
|
|
797
797
|
transition: l.value
|
|
798
798
|
})), y = V(() => ({
|
|
799
799
|
width: `${c.value}px`
|
|
800
|
-
})),
|
|
801
|
-
function R(
|
|
800
|
+
})), b = /* @__PURE__ */ new Map();
|
|
801
|
+
function R(C) {
|
|
802
802
|
var S;
|
|
803
|
-
if (
|
|
804
|
-
const j = (S =
|
|
803
|
+
if (b.has(C.value)) {
|
|
804
|
+
const j = (S = b.get(C.value)) == null ? void 0 : S.value;
|
|
805
805
|
if (j) {
|
|
806
|
-
const
|
|
807
|
-
r.value =
|
|
806
|
+
const F = j.getBoundingClientRect(), D = o.value.getBoundingClientRect();
|
|
807
|
+
r.value = F.left - D.left + a + o.value.scrollLeft, s.value = F.width - 2 * a;
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
|
-
function
|
|
812
|
-
const j =
|
|
813
|
-
i.value = j, t.emit("update:modelValue", j), R(
|
|
811
|
+
function M(C, S) {
|
|
812
|
+
const j = C.value;
|
|
813
|
+
i.value = j, t.emit("update:modelValue", j), R(C), S && t.emit("change", j);
|
|
814
814
|
}
|
|
815
|
-
function I(
|
|
816
|
-
const S = n.value.findIndex((j) => j.value ===
|
|
817
|
-
S > -1 &&
|
|
815
|
+
function I(C) {
|
|
816
|
+
const S = n.value.findIndex((j) => j.value === C);
|
|
817
|
+
S > -1 && M(n.value[S], !1);
|
|
818
818
|
}
|
|
819
|
-
Z(() => e.modelValue, (
|
|
820
|
-
i.value =
|
|
819
|
+
Z(() => e.modelValue, (C) => {
|
|
820
|
+
i.value = C, I(i.value);
|
|
821
821
|
}), Be(async () => {
|
|
822
|
-
I(i.value), await nt(), l.value = "0.1s ease-out all", c.value = Array.from(
|
|
822
|
+
I(i.value), await nt(), l.value = "0.1s ease-out all", c.value = Array.from(b.values()).reduce((C, S) => (C += S.value.clientWidth, C), 0);
|
|
823
823
|
});
|
|
824
|
-
function $(
|
|
825
|
-
|
|
824
|
+
function $(C, S) {
|
|
825
|
+
M(S, !0);
|
|
826
826
|
}
|
|
827
|
-
function T(
|
|
828
|
-
|
|
827
|
+
function T(C, S) {
|
|
828
|
+
b.set(S, C);
|
|
829
829
|
}
|
|
830
|
-
function x(
|
|
831
|
-
Array.from(
|
|
832
|
-
|
|
830
|
+
function x(C) {
|
|
831
|
+
Array.from(b.keys()).forEach((S) => {
|
|
832
|
+
C.find((F) => F.value === S) || b.delete(S);
|
|
833
833
|
});
|
|
834
834
|
}
|
|
835
|
-
function C
|
|
835
|
+
function w(C, S) {
|
|
836
836
|
return v(wa, {
|
|
837
|
-
name:
|
|
838
|
-
value:
|
|
839
|
-
isActive:
|
|
837
|
+
name: C.name,
|
|
838
|
+
value: C.value,
|
|
839
|
+
isActive: C.value === i.value,
|
|
840
840
|
index: S,
|
|
841
|
-
disabled:
|
|
842
|
-
key:
|
|
841
|
+
disabled: C.disabled,
|
|
842
|
+
key: C.value,
|
|
843
843
|
onMounted: T,
|
|
844
844
|
onActive: $
|
|
845
845
|
}, null);
|
|
846
846
|
}
|
|
847
|
-
return Z(() => e.items, async (
|
|
848
|
-
const S =
|
|
849
|
-
x(S), n.value = S, await nt(), I(i.value), c.value = Array.from(
|
|
847
|
+
return Z(() => e.items, async (C) => {
|
|
848
|
+
const S = C.filter((j) => j.show);
|
|
849
|
+
x(S), n.value = S, await nt(), I(i.value), c.value = Array.from(b.values()).reduce((j, F) => (j += F.value.clientWidth, j), 0);
|
|
850
850
|
}), () => v("span", {
|
|
851
851
|
ref: o,
|
|
852
|
-
class:
|
|
852
|
+
class: m.value,
|
|
853
853
|
style: u.value
|
|
854
854
|
}, [v("span", {
|
|
855
855
|
class: "f-capsule-pane"
|
|
856
|
-
}, [n.value.map((
|
|
856
|
+
}, [n.value.map((C, S) => w(C, S))]), v("small", {
|
|
857
857
|
class: h.value,
|
|
858
|
-
style:
|
|
858
|
+
style: f.value
|
|
859
859
|
}, null), v("div", {
|
|
860
860
|
class: "f-capsule-board",
|
|
861
861
|
style: y.value
|
|
@@ -1008,37 +1008,37 @@ const Ia = /* @__PURE__ */ le({
|
|
|
1008
1008
|
onLabel: a,
|
|
1009
1009
|
offLabel: i,
|
|
1010
1010
|
onBackground: l,
|
|
1011
|
-
offBackground:
|
|
1012
|
-
onColor:
|
|
1011
|
+
offBackground: p,
|
|
1012
|
+
onColor: m,
|
|
1013
1013
|
offColor: u,
|
|
1014
1014
|
readonly: h
|
|
1015
|
-
} = In(e), r = d(e.modelValue), s = d(), c = d(""),
|
|
1015
|
+
} = In(e), r = d(e.modelValue), s = d(), c = d(""), f = V(() => e.trueValue != null ? r.value === e.trueValue : !!r.value), y = V(() => ({
|
|
1016
1016
|
switch: !0,
|
|
1017
1017
|
"f-cmp-switch": !0,
|
|
1018
|
-
checked:
|
|
1018
|
+
checked: f.value,
|
|
1019
1019
|
disabled: h.value || n.value,
|
|
1020
1020
|
"switch-large": o.value === "large",
|
|
1021
1021
|
"switch-medium": o.value === "medium",
|
|
1022
1022
|
"switch-small": o.value === "small"
|
|
1023
|
-
})),
|
|
1023
|
+
})), b = V(() => f.value ? {
|
|
1024
1024
|
outline: "none",
|
|
1025
1025
|
background: l.value
|
|
1026
1026
|
} : {
|
|
1027
1027
|
outline: "none",
|
|
1028
|
-
backgroundColor:
|
|
1029
|
-
}), R = V(() =>
|
|
1030
|
-
background:
|
|
1028
|
+
backgroundColor: p.value
|
|
1029
|
+
}), R = V(() => f.value ? {
|
|
1030
|
+
background: m.value
|
|
1031
1031
|
} : {
|
|
1032
1032
|
backgroundColor: u.value
|
|
1033
|
-
}),
|
|
1033
|
+
}), M = V(() => (a == null ? void 0 : a.value) || (i == null ? void 0 : i.value));
|
|
1034
1034
|
function I() {
|
|
1035
|
-
!
|
|
1035
|
+
!M.value || s.value || nt(() => {
|
|
1036
1036
|
const T = r.value, x = s.value.querySelector(T ? ".switch-label-checked" : ".switch-label-unchecked");
|
|
1037
1037
|
x && x.scrollWidth > x.clientWidth ? c.value = T ? a == null ? void 0 : a.value : i == null ? void 0 : i.value : c.value = "";
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
function $() {
|
|
1041
|
-
h.value || n.value || (r.value =
|
|
1041
|
+
h.value || n.value || (r.value = f.value ? e.falseValue : e.trueValue, t.emit("update:modelValue", r.value), I());
|
|
1042
1042
|
}
|
|
1043
1043
|
return Z(r, (T, x) => {
|
|
1044
1044
|
T !== x && t.emit("modelValueChanged", T);
|
|
@@ -1052,10 +1052,10 @@ const Ia = /* @__PURE__ */ le({
|
|
|
1052
1052
|
tabindex: "0",
|
|
1053
1053
|
role: "button",
|
|
1054
1054
|
class: y.value,
|
|
1055
|
-
style:
|
|
1055
|
+
style: b.value,
|
|
1056
1056
|
onClick: $,
|
|
1057
1057
|
title: c.value
|
|
1058
|
-
}, [
|
|
1058
|
+
}, [M.value && v("span", {
|
|
1059
1059
|
class: "switch-pane"
|
|
1060
1060
|
}, [v("span", {
|
|
1061
1061
|
class: "switch-label-checked"
|
|
@@ -1091,17 +1091,17 @@ const Ia = /* @__PURE__ */ le({
|
|
|
1091
1091
|
value: "EL",
|
|
1092
1092
|
active: !1
|
|
1093
1093
|
}]), o = d(e.defaultStates), a = d("MD"), i = d("中等屏幕"), l = d(!0);
|
|
1094
|
-
function
|
|
1094
|
+
function p(h) {
|
|
1095
1095
|
n.value.forEach((r) => {
|
|
1096
1096
|
r.active = r.code === h, r.active && (a.value = r.code, i.value = r.name, t.emit("screenNameChanged", i.value), t.emit("currentScreenResolutionChanged", a.value));
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function m() {
|
|
1100
1100
|
t.emit("switchInStandardModeChanged", l.value);
|
|
1101
1101
|
}
|
|
1102
1102
|
Z(l, () => {
|
|
1103
1103
|
}), wt(() => {
|
|
1104
|
-
o.value.model === "standard" ? l.value = !0 : (l.value = !1,
|
|
1104
|
+
o.value.model === "standard" ? l.value = !0 : (l.value = !1, m());
|
|
1105
1105
|
});
|
|
1106
1106
|
function u() {
|
|
1107
1107
|
return v(Ca, {
|
|
@@ -1109,7 +1109,7 @@ const Ia = /* @__PURE__ */ le({
|
|
|
1109
1109
|
items: n.value,
|
|
1110
1110
|
modelValue: a.value,
|
|
1111
1111
|
"onUpdate:modelValue": (h) => a.value = h,
|
|
1112
|
-
onChange:
|
|
1112
|
+
onChange: p
|
|
1113
1113
|
}, null);
|
|
1114
1114
|
}
|
|
1115
1115
|
return () => v("div", {
|
|
@@ -1124,7 +1124,7 @@ const Ia = /* @__PURE__ */ le({
|
|
|
1124
1124
|
class: "f-layout-editor-show-switch",
|
|
1125
1125
|
modelValue: l.value,
|
|
1126
1126
|
"onUpdate:modelValue": (h) => l.value = h,
|
|
1127
|
-
onModelValueChanged:
|
|
1127
|
+
onModelValueChanged: m
|
|
1128
1128
|
}, null), l.value ? v("div", {
|
|
1129
1129
|
class: "f-layout-editor-show-switch-label"
|
|
1130
1130
|
}, [ce("标准模式")]) : v("div", {
|
|
@@ -1153,8 +1153,8 @@ const Ia = /* @__PURE__ */ le({
|
|
|
1153
1153
|
emits: [],
|
|
1154
1154
|
setup(e, t) {
|
|
1155
1155
|
const n = d(e.item), o = d(e.currentScreenResolution), a = V(() => `col-${n.value[`columnIn${o.value}`]}`);
|
|
1156
|
-
return Z([() => e.item, () => e.currentScreenResolution], ([i, l], [
|
|
1157
|
-
i !==
|
|
1156
|
+
return Z([() => e.item, () => e.currentScreenResolution], ([i, l], [p, m]) => {
|
|
1157
|
+
i !== p && (n.value = i), l !== m && (o.value = l);
|
|
1158
1158
|
}), () => v("div", {
|
|
1159
1159
|
class: a.value
|
|
1160
1160
|
}, [v("div", {
|
|
@@ -1170,26 +1170,26 @@ const Ia = /* @__PURE__ */ le({
|
|
|
1170
1170
|
emits: ["update:twoDimensionalArray"],
|
|
1171
1171
|
setup(e, t) {
|
|
1172
1172
|
const n = d(e.currentScreenResolution), o = d(e.switchInStandardMode), a = d(e.currentArea), i = d(e.twoDimensionalArray), l = d([]);
|
|
1173
|
-
Z([() => e.currentArea, () => e.switchInStandardMode, () => e.currentScreenResolution], ([r, s, c], [
|
|
1174
|
-
r !==
|
|
1173
|
+
Z([() => e.currentArea, () => e.switchInStandardMode, () => e.currentScreenResolution], ([r, s, c], [f, y, b]) => {
|
|
1174
|
+
r !== f && (a.value = r), s !== y && (o.value = s), c !== b && (n.value = c);
|
|
1175
1175
|
});
|
|
1176
|
-
function
|
|
1176
|
+
function p(r, s) {
|
|
1177
1177
|
const c = [];
|
|
1178
|
-
let
|
|
1178
|
+
let f = [];
|
|
1179
1179
|
return r.forEach((y) => {
|
|
1180
|
-
s !== y.componentRow && (s += 1, c.push(
|
|
1181
|
-
}), c.push(
|
|
1180
|
+
s !== y.componentRow && (s += 1, c.push(f), f = []), f.push(y);
|
|
1181
|
+
}), c.push(f), c;
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1183
|
+
function m() {
|
|
1184
1184
|
const r = [];
|
|
1185
1185
|
let s = 1;
|
|
1186
1186
|
return l.value.forEach((c) => {
|
|
1187
|
-
const
|
|
1188
|
-
s +=
|
|
1187
|
+
const f = p(c, s);
|
|
1188
|
+
s += f.length, r.push(f);
|
|
1189
1189
|
}), r;
|
|
1190
1190
|
}
|
|
1191
1191
|
function u() {
|
|
1192
|
-
l.value = Te(i.value), l.value =
|
|
1192
|
+
l.value = Te(i.value), l.value = m();
|
|
1193
1193
|
}
|
|
1194
1194
|
Z(() => e.twoDimensionalArray, () => {
|
|
1195
1195
|
i.value = e.twoDimensionalArray, u();
|
|
@@ -1220,11 +1220,11 @@ const Ia = /* @__PURE__ */ le({
|
|
|
1220
1220
|
class: "f-layout-editor-preview-row-group"
|
|
1221
1221
|
}, [l.value.map((r) => {
|
|
1222
1222
|
var s, c;
|
|
1223
|
-
return ((s = r[0][0]) == null ? void 0 : s.group.toString()) === ((c = a.value[0]) == null ? void 0 : c.id) && r.map((
|
|
1223
|
+
return ((s = r[0][0]) == null ? void 0 : s.group.toString()) === ((c = a.value[0]) == null ? void 0 : c.id) && r.map((f) => v("div", {
|
|
1224
1224
|
class: "f-layout-editor-row"
|
|
1225
|
-
}, [
|
|
1225
|
+
}, [f.map((y) => v(Aa, {
|
|
1226
1226
|
item: y,
|
|
1227
|
-
"onUpdate:item": (
|
|
1227
|
+
"onUpdate:item": (b) => y = b,
|
|
1228
1228
|
currentScreenResolution: n.value,
|
|
1229
1229
|
switchInStandardMode: o.value
|
|
1230
1230
|
}, null))]));
|
|
@@ -1252,8 +1252,8 @@ function Va(e, t) {
|
|
|
1252
1252
|
const n = d(-1), o = d(!1);
|
|
1253
1253
|
function a(r) {
|
|
1254
1254
|
if (r.target.offsetParent) {
|
|
1255
|
-
const s = r.target.offsetParent, c = s.offsetWidth - r.target.offsetWidth / 2 - 4,
|
|
1256
|
-
r.dataTransfer && r.dataTransfer.setDragImage(s, c,
|
|
1255
|
+
const s = r.target.offsetParent, c = s.offsetWidth - r.target.offsetWidth / 2 - 4, f = s.offsetHeight / 2;
|
|
1256
|
+
r.dataTransfer && r.dataTransfer.setDragImage(s, c, f);
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
function i(r) {
|
|
@@ -1267,15 +1267,15 @@ function Va(e, t) {
|
|
|
1267
1267
|
function l(r, s) {
|
|
1268
1268
|
r.stopPropagation(), a(r), i(s);
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function p(r) {
|
|
1271
1271
|
const s = e.value.findIndex((c) => c.label === r.label);
|
|
1272
1272
|
if (n.value !== s) {
|
|
1273
|
-
const c = e.value[n.value],
|
|
1274
|
-
|
|
1273
|
+
const c = e.value[n.value], f = e.value;
|
|
1274
|
+
f.splice(n.value, 1), f.splice(s, 0, c), n.value = s, t && t();
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1278
|
-
r.preventDefault(),
|
|
1277
|
+
function m(r, s) {
|
|
1278
|
+
r.preventDefault(), p(s);
|
|
1279
1279
|
}
|
|
1280
1280
|
function u(r) {
|
|
1281
1281
|
r.preventDefault(), r.dataTransfer && (r.dataTransfer.dropEffect = "move");
|
|
@@ -1285,7 +1285,7 @@ function Va(e, t) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
return {
|
|
1287
1287
|
dragstart: l,
|
|
1288
|
-
dragenter:
|
|
1288
|
+
dragenter: m,
|
|
1289
1289
|
dragover: u,
|
|
1290
1290
|
dragend: h,
|
|
1291
1291
|
isDragging: o
|
|
@@ -1696,7 +1696,7 @@ const Za = {
|
|
|
1696
1696
|
props: Za,
|
|
1697
1697
|
emits: ["selectionChange"],
|
|
1698
1698
|
setup(e, t) {
|
|
1699
|
-
const n = d(), o = d(e.dataSource), a = d([]), i = d(e.separator), l = d(e.width),
|
|
1699
|
+
const n = d(), o = d(e.dataSource), a = d([]), i = d(e.separator), l = d(e.width), p = d(e.maxHeight), m = d(String(e.selectedValues).split(i.value)), u = V(() => e.multiSelect), h = V(() => ({
|
|
1700
1700
|
enableSelectRow: !0,
|
|
1701
1701
|
multiSelect: e.multiSelect,
|
|
1702
1702
|
multiSelectMode: "OnCheckAndClick",
|
|
@@ -1708,38 +1708,38 @@ const Za = {
|
|
|
1708
1708
|
o.value = e.dataSource;
|
|
1709
1709
|
}), V(() => e.enableSearch ? "SearchBar" : "ContentHeader");
|
|
1710
1710
|
const r = V(() => {
|
|
1711
|
-
const
|
|
1712
|
-
return l.value !== void 0 && (
|
|
1711
|
+
const b = {};
|
|
1712
|
+
return l.value !== void 0 && (b.width = `${l.value}px`), p.value !== void 0 && p.value > 0 && (b.maxHeight = `${p.value}px`), b;
|
|
1713
1713
|
});
|
|
1714
|
-
function s(
|
|
1715
|
-
n.value.search(
|
|
1714
|
+
function s(b) {
|
|
1715
|
+
n.value.search(b);
|
|
1716
1716
|
}
|
|
1717
|
-
function c(
|
|
1718
|
-
a.value =
|
|
1717
|
+
function c(b) {
|
|
1718
|
+
a.value = b.map((R) => Object.assign({}, R)), m.value = b.map((R) => R[e.idField]), t.emit("selectionChange", a.value);
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function f(b) {
|
|
1721
1721
|
if (e.enableHighlightSearch)
|
|
1722
1722
|
return;
|
|
1723
1723
|
let R = [];
|
|
1724
1724
|
const {
|
|
1725
|
-
searchOption:
|
|
1725
|
+
searchOption: M
|
|
1726
1726
|
} = e;
|
|
1727
|
-
typeof
|
|
1727
|
+
typeof M == "function" ? R = o.value.filter((I) => M(b, I)) : R = o.value.filter((I) => I[e.valueField].indexOf(b) > -1 || I[e.textField].indexOf(b) > -1), n.value.updateDataSource(R);
|
|
1728
1728
|
}
|
|
1729
|
-
Z([() => e.selectedValues], ([
|
|
1730
|
-
e.multiSelect ?
|
|
1729
|
+
Z([() => e.selectedValues], ([b]) => {
|
|
1730
|
+
e.multiSelect ? m.value = b.split(i.value) : m.value = [b];
|
|
1731
1731
|
});
|
|
1732
|
-
function y(
|
|
1733
|
-
n.value.activeRowById(
|
|
1732
|
+
function y(b) {
|
|
1733
|
+
n.value.activeRowById(b);
|
|
1734
1734
|
}
|
|
1735
1735
|
return Be(() => {
|
|
1736
|
-
var
|
|
1736
|
+
var b, R;
|
|
1737
1737
|
if (!e.multiSelect) {
|
|
1738
|
-
const
|
|
1739
|
-
let I =
|
|
1740
|
-
if (!$e(
|
|
1741
|
-
const $ = typeof
|
|
1742
|
-
T === "number" && $ !== T && (I = Number(
|
|
1738
|
+
const M = (b = m.value) == null ? void 0 : b[0];
|
|
1739
|
+
let I = M;
|
|
1740
|
+
if (!$e(M)) {
|
|
1741
|
+
const $ = typeof M, T = typeof ((R = o.value[0]) == null ? void 0 : R[e.valueField || e.idField]);
|
|
1742
|
+
T === "number" && $ !== T && (I = Number(M)), T === "boolean" && $ !== T && (I = M === "true" ? !0 : M === "false" ? !1 : M), y(I);
|
|
1743
1743
|
}
|
|
1744
1744
|
}
|
|
1745
1745
|
}), t.expose({
|
|
@@ -1762,29 +1762,29 @@ const Za = {
|
|
|
1762
1762
|
multiSelect: e.multiSelect,
|
|
1763
1763
|
selection: h.value,
|
|
1764
1764
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
1765
|
-
selectionValues:
|
|
1765
|
+
selectionValues: m.value,
|
|
1766
1766
|
onSelectionUpdate: c,
|
|
1767
|
-
onAfterSearch:
|
|
1767
|
+
onAfterSearch: f
|
|
1768
1768
|
}, null)]);
|
|
1769
1769
|
}
|
|
1770
1770
|
});
|
|
1771
1771
|
function ei(e) {
|
|
1772
1772
|
const { t } = ft(), n = d(""), o = d(e.modelValue), a = d(e.data || []), i = d(e.editable);
|
|
1773
1773
|
function l(s) {
|
|
1774
|
-
const c = e.multiSelect ? String(s).split(e.separator) : [String(s)],
|
|
1775
|
-
return a.value.filter((R) => y.has(String(R[e.valueField]))).sort((R,
|
|
1776
|
-
const I = c.indexOf(R[e.valueField]), $ = c.indexOf(
|
|
1774
|
+
const c = e.multiSelect ? String(s).split(e.separator) : [String(s)], f = c.map((R) => [R, !0]), y = new Map(f);
|
|
1775
|
+
return a.value.filter((R) => y.has(String(R[e.valueField]))).sort((R, M) => {
|
|
1776
|
+
const I = c.indexOf(R[e.valueField]), $ = c.indexOf(M[e.valueField]);
|
|
1777
1777
|
return I - $;
|
|
1778
1778
|
});
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1781
|
-
const c = l(s).map((
|
|
1780
|
+
function p(s) {
|
|
1781
|
+
const c = l(s).map((f) => f[e.textField]).join(e.separator);
|
|
1782
1782
|
n.value = i.value ? c || s : c;
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function m(s) {
|
|
1785
1785
|
if (e.multiSelect) {
|
|
1786
|
-
const c = s.split(e.separator).map((y) => [y, !0]),
|
|
1787
|
-
return a.value.filter((y) =>
|
|
1786
|
+
const c = s.split(e.separator).map((y) => [y, !0]), f = new Map(c);
|
|
1787
|
+
return a.value.filter((y) => f.has(y[e.textField]));
|
|
1788
1788
|
}
|
|
1789
1789
|
return a.value.filter((c) => "" + c[e.textField] === s);
|
|
1790
1790
|
}
|
|
@@ -1793,34 +1793,34 @@ function ei(e) {
|
|
|
1793
1793
|
return c[e.idField] = s, c[e.textField] = s, [c];
|
|
1794
1794
|
}
|
|
1795
1795
|
function h(s) {
|
|
1796
|
-
let c =
|
|
1797
|
-
const
|
|
1798
|
-
return i.value && !
|
|
1796
|
+
let c = m(s);
|
|
1797
|
+
const f = c && c.length > 0;
|
|
1798
|
+
return i.value && !f && (c = u(s)), c;
|
|
1799
1799
|
}
|
|
1800
1800
|
function r() {
|
|
1801
|
-
const { url: s, method: c = "GET", headers:
|
|
1801
|
+
const { url: s, method: c = "GET", headers: f = { "Content-Type": "application/json;charset=utf-8;" }, body: y = null } = e.remote, b = c.toLowerCase() === "get" ? { method: c, headers: f } : { method: c, headers: f, body: y };
|
|
1802
1802
|
let R = !1;
|
|
1803
|
-
fetch(new Request(s,
|
|
1803
|
+
fetch(new Request(s, b)).then((M) => {
|
|
1804
1804
|
var $, T;
|
|
1805
|
-
if (
|
|
1806
|
-
return R = !!((T = ($ =
|
|
1807
|
-
throw
|
|
1808
|
-
}).then((
|
|
1809
|
-
|
|
1810
|
-
}).catch((
|
|
1811
|
-
console.warn(
|
|
1805
|
+
if (M.status === 200)
|
|
1806
|
+
return R = !!((T = ($ = M.headers) == null ? void 0 : $.get("content-type")) != null && T.includes("application/json")), R ? M.text() : M.json();
|
|
1807
|
+
throw M.status === 405 ? new Error(t("comboList.remoteError")) : new Error(M.statusText);
|
|
1808
|
+
}).then((M) => {
|
|
1809
|
+
M.length && (a.value = R ? JSON.parse(M) : M);
|
|
1810
|
+
}).catch((M) => {
|
|
1811
|
+
console.warn(M);
|
|
1812
1812
|
});
|
|
1813
1813
|
}
|
|
1814
1814
|
return e.remote && r(), Z(() => e.data, () => {
|
|
1815
1815
|
a.value = e.data;
|
|
1816
1816
|
}), Z([a], ([s]) => {
|
|
1817
1817
|
if (e.modelValue != null) {
|
|
1818
|
-
const c = s.find((
|
|
1818
|
+
const c = s.find((f) => f[e.valueField] === e.modelValue);
|
|
1819
1819
|
c && (n.value = c[e.textField]);
|
|
1820
1820
|
}
|
|
1821
1821
|
}), Z(() => e.modelValue, (s) => {
|
|
1822
|
-
o.value = s,
|
|
1823
|
-
}),
|
|
1822
|
+
o.value = s, p(s);
|
|
1823
|
+
}), p(e.modelValue), { dataSource: a, displayText: n, editable: i, modelValue: o, getItemsByDisplayText: m, getItemsByValue: l, getSelectedItemsByDisplayText: h };
|
|
1824
1824
|
}
|
|
1825
1825
|
const ti = /* @__PURE__ */ le({
|
|
1826
1826
|
name: "FComboList",
|
|
@@ -1829,54 +1829,56 @@ const ti = /* @__PURE__ */ le({
|
|
|
1829
1829
|
setup(e, t) {
|
|
1830
1830
|
const {
|
|
1831
1831
|
t: n
|
|
1832
|
-
} = ft(), o = d(), a = d(), i = d(e.disabled || e.readonly), l = d(e.enableClear),
|
|
1832
|
+
} = ft(), o = d(), a = d(), i = d(e.disabled || e.readonly), l = d(e.enableClear), p = d(e.enableSearch), m = d(e.readonly), {
|
|
1833
1833
|
dataSource: u,
|
|
1834
1834
|
displayText: h,
|
|
1835
1835
|
editable: r,
|
|
1836
1836
|
modelValue: s,
|
|
1837
1837
|
getSelectedItemsByDisplayText: c,
|
|
1838
|
-
getItemsByDisplayText:
|
|
1838
|
+
getItemsByDisplayText: f,
|
|
1839
1839
|
getItemsByValue: y
|
|
1840
|
-
} = ei(e),
|
|
1841
|
-
|
|
1842
|
-
const R = V(() => e.multiSelect),
|
|
1840
|
+
} = ei(e), b = d(e.dropDownIcon);
|
|
1841
|
+
b.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (b.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
|
|
1842
|
+
const R = V(() => e.multiSelect), M = V(() => a.value ? a.value.elementRef.getBoundingClientRect().width : 0);
|
|
1843
1843
|
function I() {
|
|
1844
1844
|
!R.value && a.value && a.value.hidePopup();
|
|
1845
1845
|
}
|
|
1846
1846
|
function $(O) {
|
|
1847
|
-
h.value = O.map((
|
|
1847
|
+
h.value = O.map((B) => B[e.textField]).join(e.separator);
|
|
1848
1848
|
let g = "";
|
|
1849
|
-
O.length === 1 ? g = O[0][e.valueField] : g = O.map((
|
|
1849
|
+
O.length === 1 ? g = O[0][e.valueField] : g = O.map((B) => B[e.valueField]).join(e.separator), s.value !== g && (s.value = g, t.emit("update:modelValue", s.value), t.emit("change", O, s.value));
|
|
1850
1850
|
}
|
|
1851
1851
|
function T() {
|
|
1852
1852
|
const O = y(s.value);
|
|
1853
1853
|
$(O);
|
|
1854
1854
|
}
|
|
1855
1855
|
function x() {
|
|
1856
|
-
|
|
1856
|
+
m.value || h.value;
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1858
|
+
function w(O) {
|
|
1859
1859
|
var g;
|
|
1860
1860
|
s.value = "", (g = o.value) == null || g.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1863
|
-
var g,
|
|
1864
|
-
e.enableSearch && e.enableHighlightSearch && ((g = o.value) == null || g.search(O)), (
|
|
1862
|
+
function C(O) {
|
|
1863
|
+
var g, B;
|
|
1864
|
+
e.enableSearch && e.enableHighlightSearch && ((g = o.value) == null || g.search(O)), (B = o.value) == null || B.activeRowById(O), t.emit("change", [s.value], s.value);
|
|
1865
1865
|
}
|
|
1866
1866
|
function S(O) {
|
|
1867
1867
|
if (e.multiSelect) {
|
|
1868
|
-
const g =
|
|
1868
|
+
const g = f(O);
|
|
1869
|
+
e.viewType;
|
|
1870
|
+
const P = g.map((J) => J[e.idField || e.valueField]).join(e.separator);
|
|
1869
1871
|
s.value !== P && (s.value = P, t.emit("update:modelValue", s.value), t.emit("change", g, s.value));
|
|
1870
1872
|
}
|
|
1871
1873
|
}
|
|
1872
1874
|
function j() {
|
|
1873
1875
|
return h.value;
|
|
1874
1876
|
}
|
|
1875
|
-
function
|
|
1877
|
+
function F(O) {
|
|
1876
1878
|
const {
|
|
1877
1879
|
value: g
|
|
1878
1880
|
} = O.target;
|
|
1879
|
-
|
|
1881
|
+
C(g), t.emit("input", g);
|
|
1880
1882
|
}
|
|
1881
1883
|
function D() {
|
|
1882
1884
|
a.value.hidePopup();
|
|
@@ -1884,16 +1886,16 @@ const ti = /* @__PURE__ */ le({
|
|
|
1884
1886
|
return t.expose({
|
|
1885
1887
|
getDisplayText: j,
|
|
1886
1888
|
hidePopup: D
|
|
1887
|
-
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([O, g,
|
|
1888
|
-
i.value = O, r.value = g, l.value =
|
|
1889
|
+
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([O, g, B, P, J]) => {
|
|
1890
|
+
i.value = O, r.value = g, l.value = B, p.value = P, m.value = J;
|
|
1889
1891
|
}), () => v(Vn, {
|
|
1890
1892
|
ref: a,
|
|
1891
1893
|
id: e.id,
|
|
1892
1894
|
disable: i.value,
|
|
1893
|
-
readonly:
|
|
1895
|
+
readonly: m.value,
|
|
1894
1896
|
forcePlaceholder: e.forcePlaceholder,
|
|
1895
1897
|
editable: r.value,
|
|
1896
|
-
buttonContent:
|
|
1898
|
+
buttonContent: b.value,
|
|
1897
1899
|
placeholder: e.placeholder === "请选择" ? n("comboList.placeholder") : e.placeholder,
|
|
1898
1900
|
enableClear: l.value,
|
|
1899
1901
|
maxLength: e.maxLength,
|
|
@@ -1905,11 +1907,11 @@ const ti = /* @__PURE__ */ le({
|
|
|
1905
1907
|
"onUpdate:modelValue": (O) => h.value = O,
|
|
1906
1908
|
focusOnCreated: e.focusOnCreated,
|
|
1907
1909
|
selectOnCreated: e.selectOnCreated,
|
|
1908
|
-
onClear:
|
|
1910
|
+
onClear: w,
|
|
1909
1911
|
onClick: x,
|
|
1910
1912
|
onChange: S,
|
|
1911
1913
|
onBlur: T,
|
|
1912
|
-
onInput:
|
|
1914
|
+
onInput: F,
|
|
1913
1915
|
beforeOpen: e.beforeOpen,
|
|
1914
1916
|
placement: e.placement,
|
|
1915
1917
|
popupMinWidth: e.minPanelWidth,
|
|
@@ -1927,10 +1929,10 @@ const ti = /* @__PURE__ */ le({
|
|
|
1927
1929
|
selectedValues: s.value,
|
|
1928
1930
|
separator: e.separator,
|
|
1929
1931
|
multiSelect: e.multiSelect,
|
|
1930
|
-
enableSearch:
|
|
1932
|
+
enableSearch: p.value,
|
|
1931
1933
|
maxHeight: e.maxHeight,
|
|
1932
1934
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
1933
|
-
width: e.fitEditor ?
|
|
1935
|
+
width: e.fitEditor ? M.value : void 0,
|
|
1934
1936
|
onSelectionChange: (O) => {
|
|
1935
1937
|
$(O), I();
|
|
1936
1938
|
}
|
|
@@ -2078,9 +2080,9 @@ const gi = /* @__PURE__ */ le({
|
|
|
2078
2080
|
function o(i, l) {
|
|
2079
2081
|
if (i.currentTarget.classList.value = "btn btn-secondary active", i.currentTarget.tagName.toLowerCase() === "label") {
|
|
2080
2082
|
const {
|
|
2081
|
-
currentTarget:
|
|
2082
|
-
} = i,
|
|
2083
|
-
Array.from(
|
|
2083
|
+
currentTarget: p
|
|
2084
|
+
} = i, m = p.parentElement;
|
|
2085
|
+
Array.from(m.querySelectorAll("label")).filter((h) => h !== p).forEach((h) => h.classList.remove("active"));
|
|
2084
2086
|
}
|
|
2085
2087
|
t.emit("selectedValueChanged", l);
|
|
2086
2088
|
}
|
|
@@ -2095,7 +2097,7 @@ const gi = /* @__PURE__ */ le({
|
|
|
2095
2097
|
class: ["farris-input-wrap"]
|
|
2096
2098
|
}, [n.value.map((i, l) => v(ot, null, [v("label", {
|
|
2097
2099
|
class: i.active ? "btn btn-secondary active" : "btn btn-secondary",
|
|
2098
|
-
onClick: (
|
|
2100
|
+
onClick: (p) => o(p, i)
|
|
2099
2101
|
}, [v("span", {
|
|
2100
2102
|
class: "f-radio-button-text"
|
|
2101
2103
|
}, [a(i)])])]))])]);
|
|
@@ -2249,24 +2251,24 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2249
2251
|
props: yn,
|
|
2250
2252
|
emits: ["selectedValue", "update:modelValue"],
|
|
2251
2253
|
setup(e, t) {
|
|
2252
|
-
const n = d(e.size), o = d(e.enableHalf), a = d(e.enableClear), i = d(e.disabled), l = d(e.pointSystem),
|
|
2254
|
+
const n = d(e.size), o = d(e.enableHalf), a = d(e.enableClear), i = d(e.disabled), l = d(e.pointSystem), p = d(e.lightColor), m = d(e.darkColor), u = d(e.iconClass), h = d(e.numOfStar), r = d(e.toolTipDisabled), s = d(e.toolTipContents), c = d(e.enableScore), f = d(e.enableSatisfaction);
|
|
2253
2255
|
let y;
|
|
2254
|
-
const
|
|
2255
|
-
let $ = 1, T, x,
|
|
2256
|
-
const
|
|
2256
|
+
const b = d(0), R = d(0), M = d(0), I = d(e.modelValue);
|
|
2257
|
+
let $ = 1, T, x, w;
|
|
2258
|
+
const C = 4;
|
|
2257
2259
|
function S() {
|
|
2258
2260
|
const E = h.value;
|
|
2259
|
-
|
|
2261
|
+
w = [];
|
|
2260
2262
|
for (let q = 1; q <= E; q++)
|
|
2261
|
-
|
|
2263
|
+
w.push({
|
|
2262
2264
|
id: q
|
|
2263
2265
|
});
|
|
2264
2266
|
}
|
|
2265
2267
|
function j() {
|
|
2266
2268
|
let E;
|
|
2267
|
-
o.value ? E = Math.ceil(I.value / $) : E = I.value, R.value = (y * I.value + Math.floor(I.value) *
|
|
2269
|
+
o.value ? E = Math.ceil(I.value / $) : E = I.value, R.value = (y * I.value + Math.floor(I.value) * C) / $, T = s.value[E - 1];
|
|
2268
2270
|
}
|
|
2269
|
-
function
|
|
2271
|
+
function F() {
|
|
2270
2272
|
switch (n.value) {
|
|
2271
2273
|
case "small":
|
|
2272
2274
|
y = 14;
|
|
@@ -2283,47 +2285,47 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2283
2285
|
}
|
|
2284
2286
|
S(), h.value && ($ = l.value / h.value), I.value && j();
|
|
2285
2287
|
}
|
|
2286
|
-
|
|
2288
|
+
F();
|
|
2287
2289
|
function D(E) {
|
|
2288
2290
|
return E.className.indexOf("f-icon") !== -1;
|
|
2289
2291
|
}
|
|
2290
2292
|
function O() {
|
|
2291
|
-
return I.value ===
|
|
2293
|
+
return I.value === M.value && a.value && R.value !== 0 ? (R.value = 0, I.value = 0, x = null, b.value = 0, M.value = 0, t.emit("selectedValue", I.value), t.emit("update:modelValue", I.value), !0) : !1;
|
|
2292
2294
|
}
|
|
2293
2295
|
function g(E, q, z) {
|
|
2294
|
-
if (!i.value && ((E.movementX || E.movementY) && (
|
|
2296
|
+
if (!i.value && ((E.movementX || E.movementY) && (f.value && (T = s.value[q - 1]), E.offsetX < y / 2 && o.value === !0 ? (b.value = y * q - y / 2 + C * (q - 1), M.value = $ * q - $ / 2) : (b.value = y * q + C * (q - 1), M.value = $ * q)), z === !0)) {
|
|
2295
2297
|
if (O())
|
|
2296
2298
|
return;
|
|
2297
|
-
I.value =
|
|
2299
|
+
I.value = M.value, R.value = b.value, x = T, t.emit("update:modelValue", I.value), t.emit("selectedValue", I.value);
|
|
2298
2300
|
}
|
|
2299
2301
|
}
|
|
2300
|
-
function
|
|
2302
|
+
function B(E, q) {
|
|
2301
2303
|
var z;
|
|
2302
2304
|
if (D(E.target) && E.target) {
|
|
2303
2305
|
const ee = parseInt((z = E.target) == null ? void 0 : z.id);
|
|
2304
2306
|
g(E, ee, q);
|
|
2305
2307
|
}
|
|
2306
2308
|
}
|
|
2307
|
-
const P = V(() =>
|
|
2308
|
-
width: (
|
|
2309
|
+
const P = V(() => M.value ? M.value + "分" : I.value + "分"), J = V(() => ({
|
|
2310
|
+
width: (b.value || R.value) + "px"
|
|
2309
2311
|
}));
|
|
2310
2312
|
function A() {
|
|
2311
|
-
|
|
2313
|
+
b.value = 0, M.value = I.value;
|
|
2312
2314
|
}
|
|
2313
2315
|
return Z(() => e.modelValue, (E) => {
|
|
2314
|
-
|
|
2316
|
+
M.value = E, I.value = E, j();
|
|
2315
2317
|
}), Z(() => [e.disabled, e.enableClear], ([E, q]) => {
|
|
2316
2318
|
i.value = E, a.value = q;
|
|
2317
2319
|
}), () => v("div", {
|
|
2318
2320
|
class: "farris-star-rating",
|
|
2319
|
-
onMouseover: vt((E) =>
|
|
2320
|
-
onMousemove: vt((E) =>
|
|
2321
|
+
onMouseover: vt((E) => B(E, !1), ["prevent"]),
|
|
2322
|
+
onMousemove: vt((E) => B(E, !1), ["prevent"]),
|
|
2321
2323
|
onMouseleave: vt((E) => A(), ["prevent"]),
|
|
2322
|
-
onClick: vt((E) =>
|
|
2324
|
+
onClick: vt((E) => B(E, !0), ["prevent"])
|
|
2323
2325
|
}, [v("div", {
|
|
2324
2326
|
class: "star-light-area",
|
|
2325
2327
|
style: J.value
|
|
2326
|
-
}, [
|
|
2328
|
+
}, [w.map((E) => v("span", {
|
|
2327
2329
|
class: ["f-icon default-light-color ", u.value, {
|
|
2328
2330
|
"f-star-sm": n.value === "small"
|
|
2329
2331
|
}, {
|
|
@@ -2337,7 +2339,7 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2337
2339
|
}],
|
|
2338
2340
|
id: E.id,
|
|
2339
2341
|
style: {
|
|
2340
|
-
color:
|
|
2342
|
+
color: p.value
|
|
2341
2343
|
}
|
|
2342
2344
|
}, null))]), v("div", {
|
|
2343
2345
|
class: ["star-dark-area", {
|
|
@@ -2347,7 +2349,7 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2347
2349
|
}, {
|
|
2348
2350
|
large: n.value === "large"
|
|
2349
2351
|
}]
|
|
2350
|
-
}, [
|
|
2352
|
+
}, [w.map((E) => v("span", {
|
|
2351
2353
|
class: ["f-icon default-dark-color", u.value, {
|
|
2352
2354
|
"f-star-sm": n.value === "small"
|
|
2353
2355
|
}, {
|
|
@@ -2359,7 +2361,7 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2359
2361
|
}],
|
|
2360
2362
|
id: E.id,
|
|
2361
2363
|
style: {
|
|
2362
|
-
color:
|
|
2364
|
+
color: m.value
|
|
2363
2365
|
}
|
|
2364
2366
|
}, null))]), v("div", {
|
|
2365
2367
|
class: ["f-utils-fill", {
|
|
@@ -2371,7 +2373,7 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2371
2373
|
}, {
|
|
2372
2374
|
"font-exlarge": n.value === "extraLarge"
|
|
2373
2375
|
}]
|
|
2374
|
-
}, [c.value && v("span", null, [ce(" "), P.value, ce(" ")]),
|
|
2376
|
+
}, [c.value && v("span", null, [ce(" "), P.value, ce(" ")]), f.value && (x || T) && v("span", null, [ce(" "), T || x])])]);
|
|
2375
2377
|
}
|
|
2376
2378
|
}), Ai = /* @__PURE__ */ le({
|
|
2377
2379
|
name: "FColumnWidthEditor",
|
|
@@ -2383,24 +2385,24 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2383
2385
|
MD: ["1", "2"],
|
|
2384
2386
|
LG: ["1", "2", "3", "4"],
|
|
2385
2387
|
EL: ["1", "2", "3", "4", "5", "6"]
|
|
2386
|
-
}, o = d(e.currentScreenResolution), a = d(e.field), i = d(e.switchInStandardMode), l = d(),
|
|
2388
|
+
}, o = d(e.currentScreenResolution), a = d(e.field), i = d(e.switchInStandardMode), l = d(), p = d(""), m = d(), u = d("customize"), h = d(), r = en("ResponseLayoutEditorDraggableComposition"), {
|
|
2387
2389
|
dragstart: s,
|
|
2388
2390
|
dragenter: c,
|
|
2389
|
-
dragover:
|
|
2391
|
+
dragover: f,
|
|
2390
2392
|
dragend: y
|
|
2391
2393
|
} = r;
|
|
2392
|
-
function
|
|
2393
|
-
l.value = n == null ? void 0 : n[o.value], i.value ? (
|
|
2394
|
+
function b() {
|
|
2395
|
+
l.value = n == null ? void 0 : n[o.value], i.value ? (p.value = `displayWidthIn${o.value}`, u.value = `${a.value[p.value]}`) : (p.value = `columnIn${o.value}`, h.value = a.value[p.value]);
|
|
2394
2396
|
}
|
|
2395
2397
|
function R(S) {
|
|
2396
2398
|
if (i.value === !0) {
|
|
2397
2399
|
const j = Number(S == null ? void 0 : S.text);
|
|
2398
|
-
|
|
2399
|
-
const
|
|
2400
|
-
a.value[`columnIn${o.value}`] = j *
|
|
2400
|
+
m.value = j;
|
|
2401
|
+
const F = a.value[`columnIn${o.value}`] / a.value[`displayWidthIn${o.value}`];
|
|
2402
|
+
a.value[`columnIn${o.value}`] = j * F, a.value[`displayWidthIn${o.value}`] = Number(j), t.emit("fieldChanged", a.value);
|
|
2401
2403
|
}
|
|
2402
2404
|
}
|
|
2403
|
-
function
|
|
2405
|
+
function M(S) {
|
|
2404
2406
|
h.value = S;
|
|
2405
2407
|
const j = a.value[`columnIn${o.value}`] / a.value[`displayWidthIn${o.value}`];
|
|
2406
2408
|
a.value[`columnIn${o.value}`] = h.value, a.value[`displayWidthIn${o.value}`] = h.value / j, t.emit("fieldChanged", a.value);
|
|
@@ -2417,17 +2419,17 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2417
2419
|
modelValue: h.value,
|
|
2418
2420
|
"onUpdate:modelValue": (S) => h.value = S,
|
|
2419
2421
|
enableScore: !1,
|
|
2420
|
-
onSelectedValue: () =>
|
|
2422
|
+
onSelectedValue: () => M(h.value)
|
|
2421
2423
|
}, null);
|
|
2422
2424
|
}
|
|
2423
2425
|
function $() {
|
|
2424
2426
|
const S = [];
|
|
2425
2427
|
l.value = n == null ? void 0 : n[o.value];
|
|
2426
2428
|
const j = a.value[`displayWidthIn${o.value}`];
|
|
2427
|
-
return l.value.forEach((
|
|
2429
|
+
return l.value.forEach((F) => {
|
|
2428
2430
|
const D = {
|
|
2429
|
-
text:
|
|
2430
|
-
active: j.toString() ===
|
|
2431
|
+
text: F,
|
|
2432
|
+
active: j.toString() === F
|
|
2431
2433
|
};
|
|
2432
2434
|
S.push(D);
|
|
2433
2435
|
}), S;
|
|
@@ -2455,7 +2457,7 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2455
2457
|
class: "f-layout-editor-column-width-editor-row-right"
|
|
2456
2458
|
}, null)]);
|
|
2457
2459
|
}
|
|
2458
|
-
function
|
|
2460
|
+
function w() {
|
|
2459
2461
|
return i.value ? v("div", {
|
|
2460
2462
|
class: "f-column-width-editor-switch-standard"
|
|
2461
2463
|
}, [v("div", {
|
|
@@ -2464,7 +2466,7 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2464
2466
|
class: "f-column-width-editor-switch-customize",
|
|
2465
2467
|
onDragenter: (S) => c(S, a.value),
|
|
2466
2468
|
onDragend: (S) => y(S, a.value),
|
|
2467
|
-
onDragover: (S) =>
|
|
2469
|
+
onDragover: (S) => f(S)
|
|
2468
2470
|
}, [v("div", {
|
|
2469
2471
|
class: "f-layout-editor-column-width-editor-rectangle"
|
|
2470
2472
|
}, [I(), v("div", {
|
|
@@ -2475,110 +2477,110 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2475
2477
|
onDragstart: (S) => s(S, a.value)
|
|
2476
2478
|
}, null)])]);
|
|
2477
2479
|
}
|
|
2478
|
-
function
|
|
2480
|
+
function C() {
|
|
2479
2481
|
var S, j;
|
|
2480
2482
|
return v("div", {
|
|
2481
2483
|
class: "f-layout-editor-column-width-editor-component"
|
|
2482
2484
|
}, [v("div", {
|
|
2483
2485
|
class: "f-layout-editor-column-width-editor-label",
|
|
2484
2486
|
title: (S = a == null ? void 0 : a.value) == null ? void 0 : S.label
|
|
2485
|
-
}, [(j = a == null ? void 0 : a.value) == null ? void 0 : j.label]),
|
|
2487
|
+
}, [(j = a == null ? void 0 : a.value) == null ? void 0 : j.label]), w()]);
|
|
2486
2488
|
}
|
|
2487
|
-
return Z(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([S, j,
|
|
2488
|
-
|
|
2489
|
+
return Z(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([S, j, F], [D, O, g]) => {
|
|
2490
|
+
F !== g && (o.value = F, l.value = n[o.value], b()), j !== O && (i.value = j), i.value === !1 && b(), S !== D && (a.value = S);
|
|
2489
2491
|
}), Be(() => {
|
|
2490
|
-
|
|
2492
|
+
b();
|
|
2491
2493
|
}), () => v("div", {
|
|
2492
2494
|
class: "f-layout-editor-column-width-editor"
|
|
2493
|
-
}, [x(),
|
|
2495
|
+
}, [x(), C()]);
|
|
2494
2496
|
}
|
|
2495
2497
|
}), Pi = /* @__PURE__ */ le({
|
|
2496
2498
|
name: "FFieldList",
|
|
2497
2499
|
props: La,
|
|
2498
2500
|
emits: ["update:currentArea", "twoDimensionalArrayChanged", "originalDataChanged"],
|
|
2499
2501
|
setup(e, t) {
|
|
2500
|
-
const n = d(e.currentScreenResolution), o = d(e.switchInStandardMode), a = d(e.originalData), i = d(e.originalDataCopy), l = d(e.defaultStates),
|
|
2502
|
+
const n = d(e.currentScreenResolution), o = d(e.switchInStandardMode), a = d(e.originalData), i = d(e.originalDataCopy), l = d(e.defaultStates), p = d(""), m = d([]), u = d(e.currentArea), h = d(0), r = d(), s = d(0), c = d("1"), f = d([]);
|
|
2501
2503
|
function y() {
|
|
2502
2504
|
const g = [];
|
|
2503
|
-
return a.value.forEach((
|
|
2504
|
-
g.indexOf(
|
|
2505
|
+
return a.value.forEach((B) => {
|
|
2506
|
+
g.indexOf(B.group) === -1 && g.push(B.group);
|
|
2505
2507
|
}), g;
|
|
2506
2508
|
}
|
|
2507
|
-
function
|
|
2508
|
-
c.value = l.value.defaultGroupNumber.toString(),
|
|
2509
|
+
function b() {
|
|
2510
|
+
c.value = l.value.defaultGroupNumber.toString(), p.value = `区域${c.value}`, u.value = [m.value[Number(c.value) - 1]], t.emit("update:currentArea", u.value);
|
|
2509
2511
|
}
|
|
2510
2512
|
function R() {
|
|
2511
|
-
var
|
|
2513
|
+
var B;
|
|
2512
2514
|
const g = y();
|
|
2513
2515
|
for (let P = 0; P < g.length; P++) {
|
|
2514
2516
|
const J = {
|
|
2515
|
-
id: (
|
|
2517
|
+
id: (B = g[P]) == null ? void 0 : B.toString(),
|
|
2516
2518
|
label: "区域" + g[P]
|
|
2517
2519
|
};
|
|
2518
|
-
|
|
2520
|
+
m.value.push(J);
|
|
2519
2521
|
}
|
|
2520
|
-
|
|
2522
|
+
b();
|
|
2521
2523
|
}
|
|
2522
|
-
function
|
|
2524
|
+
function M() {
|
|
2523
2525
|
let g = [];
|
|
2524
2526
|
r.value = [];
|
|
2525
|
-
let
|
|
2527
|
+
let B = 1;
|
|
2526
2528
|
a.value.forEach((P) => {
|
|
2527
|
-
P.group ===
|
|
2529
|
+
P.group === B || (B += 1, r.value.push(g), g = []), g.push(P);
|
|
2528
2530
|
}), r.value.push(g);
|
|
2529
2531
|
}
|
|
2530
|
-
function I(g,
|
|
2532
|
+
function I(g, B) {
|
|
2531
2533
|
let J = 12;
|
|
2532
|
-
return h.value = 1 +
|
|
2534
|
+
return h.value = 1 + B, g.forEach((A) => {
|
|
2533
2535
|
A.showTopBorder = 0;
|
|
2534
2536
|
const E = A[`columnIn${n.value}`];
|
|
2535
2537
|
J >= E ? (A.componentRow = h.value, J -= E) : (h.value += 1, A.componentRow = h.value, J = 12 - E, A.showTopBorder = 1);
|
|
2536
2538
|
}), g[0].showTopBorder = 1, g;
|
|
2537
2539
|
}
|
|
2538
2540
|
function $(g) {
|
|
2539
|
-
let
|
|
2541
|
+
let B = [];
|
|
2540
2542
|
for (const P of g)
|
|
2541
|
-
|
|
2542
|
-
a.value = Te(
|
|
2543
|
+
B = B.concat(P);
|
|
2544
|
+
a.value = Te(B), s.value = 0;
|
|
2543
2545
|
}
|
|
2544
2546
|
function T() {
|
|
2545
|
-
r.value[u.value[0].id - 1] = Te(
|
|
2547
|
+
r.value[u.value[0].id - 1] = Te(f.value);
|
|
2546
2548
|
const g = [];
|
|
2547
|
-
s.value = 0, r.value.forEach((
|
|
2548
|
-
const P = I(
|
|
2549
|
+
s.value = 0, r.value.forEach((B) => {
|
|
2550
|
+
const P = I(B, s.value);
|
|
2549
2551
|
g.push(P), s.value = P[P.length - 1].componentRow;
|
|
2550
2552
|
}), $(g);
|
|
2551
2553
|
}
|
|
2552
2554
|
function x() {
|
|
2553
|
-
|
|
2555
|
+
M();
|
|
2554
2556
|
const g = [];
|
|
2555
|
-
return s.value = 0, r.value.forEach((
|
|
2556
|
-
const P = I(
|
|
2557
|
+
return s.value = 0, r.value.forEach((B) => {
|
|
2558
|
+
const P = I(B, s.value);
|
|
2557
2559
|
g.push(P), s.value = P[P.length - 1].componentRow;
|
|
2558
2560
|
}), t.emit("twoDimensionalArrayChanged", r.value), $(g), a.value;
|
|
2559
2561
|
}
|
|
2560
|
-
function
|
|
2561
|
-
|
|
2562
|
-
g.group === Number(u.value[0].id) &&
|
|
2562
|
+
function w() {
|
|
2563
|
+
f.value = [], a.value.forEach((g) => {
|
|
2564
|
+
g.group === Number(u.value[0].id) && f.value.push(g);
|
|
2563
2565
|
});
|
|
2564
2566
|
}
|
|
2565
|
-
function
|
|
2567
|
+
function C() {
|
|
2566
2568
|
a.value = Te(x()), t.emit("originalDataChanged", a.value);
|
|
2567
2569
|
}
|
|
2568
2570
|
function S(g) {
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
}), T(),
|
|
2571
|
+
f.value.forEach((B) => {
|
|
2572
|
+
B.id === g.id && Object.assign(B, g);
|
|
2573
|
+
}), T(), C(), w();
|
|
2572
2574
|
}
|
|
2573
2575
|
function j(g) {
|
|
2574
|
-
for (let
|
|
2576
|
+
for (let B = 0; B < g.length; B++)
|
|
2575
2577
|
u.value = [{
|
|
2576
|
-
id: g[
|
|
2577
|
-
label: g[
|
|
2578
|
+
id: g[B].id,
|
|
2579
|
+
label: g[B].label
|
|
2578
2580
|
}];
|
|
2579
|
-
t.emit("update:currentArea", u.value),
|
|
2581
|
+
t.emit("update:currentArea", u.value), w(), T();
|
|
2580
2582
|
}
|
|
2581
|
-
function
|
|
2583
|
+
function F() {
|
|
2582
2584
|
return v("div", {
|
|
2583
2585
|
class: "f-layout-editor-field-list-top"
|
|
2584
2586
|
}, [v("div", {
|
|
@@ -2592,7 +2594,7 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2592
2594
|
enableClear: !1,
|
|
2593
2595
|
"id-field": "id",
|
|
2594
2596
|
"text-field": "label",
|
|
2595
|
-
data:
|
|
2597
|
+
data: m.value,
|
|
2596
2598
|
editable: !1,
|
|
2597
2599
|
onChange: j
|
|
2598
2600
|
}, null)])]);
|
|
@@ -2600,45 +2602,45 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2600
2602
|
function D() {
|
|
2601
2603
|
return v("div", {
|
|
2602
2604
|
class: "f-layout-editor-field-list-content f-utils-overflow-xhya"
|
|
2603
|
-
}, [
|
|
2605
|
+
}, [f.value.map((g) => v(Ai, {
|
|
2604
2606
|
key: g.label,
|
|
2605
2607
|
currentScreenResolution: n.value,
|
|
2606
2608
|
field: g,
|
|
2607
|
-
"onUpdate:field": (
|
|
2609
|
+
"onUpdate:field": (B) => g = B,
|
|
2608
2610
|
switchInStandardMode: o.value,
|
|
2609
|
-
"onUpdate:switchInStandardMode": (
|
|
2611
|
+
"onUpdate:switchInStandardMode": (B) => o.value = B,
|
|
2610
2612
|
onFieldChanged: S
|
|
2611
2613
|
}, null))]);
|
|
2612
2614
|
}
|
|
2613
|
-
const O = Va(
|
|
2614
|
-
T(),
|
|
2615
|
+
const O = Va(f, () => {
|
|
2616
|
+
T(), C(), w();
|
|
2615
2617
|
});
|
|
2616
|
-
return $n("ResponseLayoutEditorDraggableComposition", O), Z(() => e.currentArea, (g,
|
|
2617
|
-
g !==
|
|
2618
|
-
}), Z(u, (g,
|
|
2619
|
-
g !==
|
|
2620
|
-
}), Z(() => e.currentGroup, (g,
|
|
2621
|
-
g !==
|
|
2622
|
-
}), Z(() => e.currentScreenResolution, (g,
|
|
2623
|
-
g !==
|
|
2624
|
-
}), Z(() => e.switchInStandardMode, (g,
|
|
2625
|
-
g !==
|
|
2626
|
-
}), Z(l, (g,
|
|
2627
|
-
g !==
|
|
2618
|
+
return $n("ResponseLayoutEditorDraggableComposition", O), Z(() => e.currentArea, (g, B) => {
|
|
2619
|
+
g !== B && (u.value = e.currentArea, w());
|
|
2620
|
+
}), Z(u, (g, B) => {
|
|
2621
|
+
g !== B && w();
|
|
2622
|
+
}), Z(() => e.currentGroup, (g, B) => {
|
|
2623
|
+
g !== B && (p.value = e.currentGroup);
|
|
2624
|
+
}), Z(() => e.currentScreenResolution, (g, B) => {
|
|
2625
|
+
g !== B && (n.value = e.currentScreenResolution, C(), M(), u.value[0] && (f.value = Te(r.value[Number(u.value[0].id) - 1])));
|
|
2626
|
+
}), Z(() => e.switchInStandardMode, (g, B) => {
|
|
2627
|
+
g !== B && (o.value = e.switchInStandardMode, a.value = Te(i.value));
|
|
2628
|
+
}), Z(l, (g, B) => {
|
|
2629
|
+
g !== B && C();
|
|
2628
2630
|
}), wt(() => {
|
|
2629
|
-
R(), x(),
|
|
2631
|
+
R(), x(), w();
|
|
2630
2632
|
}), () => v("div", {
|
|
2631
2633
|
class: "f-layout-editor-field-list f-utils-fill-flex-column"
|
|
2632
2634
|
}, [o.value ? (
|
|
2633
2635
|
/* 标准模式 */
|
|
2634
2636
|
v("div", {
|
|
2635
2637
|
class: "f-layout-editor-field-list-standard f-utils-fill-flex-column"
|
|
2636
|
-
}, [
|
|
2638
|
+
}, [F(), D()])
|
|
2637
2639
|
) : (
|
|
2638
2640
|
/* 自定义模式 */
|
|
2639
2641
|
v("div", {
|
|
2640
2642
|
class: "f-layout-editor-field-list-customize f-utils-fill-flex-column"
|
|
2641
|
-
}, [
|
|
2643
|
+
}, [F(), D()])
|
|
2642
2644
|
)]);
|
|
2643
2645
|
}
|
|
2644
2646
|
}), bt = /* @__PURE__ */ le({
|
|
@@ -2646,37 +2648,37 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2646
2648
|
props: Ro,
|
|
2647
2649
|
emits: ["close", "submit"],
|
|
2648
2650
|
setup(e, t) {
|
|
2649
|
-
const n = d(e.initialState), o = d(), a = d(), i = d(""), l = d(""),
|
|
2651
|
+
const n = d(e.initialState), o = d(), a = d(), i = d(""), l = d(""), p = d(!0), m = d([{
|
|
2650
2652
|
id: "1",
|
|
2651
2653
|
label: "区域1"
|
|
2652
2654
|
}]), u = d([]), h = d();
|
|
2653
|
-
d(e.width), d(e.height), Z(() => e.initialState, (
|
|
2654
|
-
n.value =
|
|
2655
|
-
}), Z([() => e.currentArea, () => e.switchInStandardMode], ([
|
|
2656
|
-
|
|
2655
|
+
d(e.width), d(e.height), Z(() => e.initialState, (w) => {
|
|
2656
|
+
n.value = w;
|
|
2657
|
+
}), Z([() => e.currentArea, () => e.switchInStandardMode], ([w, C], [S, j]) => {
|
|
2658
|
+
w !== S && (m.value = w), C !== j && (p.value = C);
|
|
2657
2659
|
});
|
|
2658
|
-
function r(
|
|
2659
|
-
i.value =
|
|
2660
|
+
function r(w) {
|
|
2661
|
+
i.value = w;
|
|
2660
2662
|
}
|
|
2661
|
-
function s(
|
|
2662
|
-
l.value =
|
|
2663
|
+
function s(w) {
|
|
2664
|
+
l.value = w;
|
|
2663
2665
|
}
|
|
2664
|
-
function c(
|
|
2665
|
-
|
|
2666
|
+
function c(w) {
|
|
2667
|
+
p.value = w;
|
|
2666
2668
|
}
|
|
2667
|
-
function
|
|
2668
|
-
|
|
2669
|
+
function f(w) {
|
|
2670
|
+
m.value = [].concat(w);
|
|
2669
2671
|
}
|
|
2670
|
-
function y(
|
|
2671
|
-
o.value = Te(
|
|
2672
|
+
function y(w) {
|
|
2673
|
+
o.value = Te(w);
|
|
2672
2674
|
}
|
|
2673
|
-
function w
|
|
2674
|
-
u.value =
|
|
2675
|
+
function b(w) {
|
|
2676
|
+
u.value = w;
|
|
2675
2677
|
}
|
|
2676
2678
|
function R() {
|
|
2677
2679
|
t.emit("close");
|
|
2678
2680
|
}
|
|
2679
|
-
function
|
|
2681
|
+
function M() {
|
|
2680
2682
|
t.emit("submit", o.value);
|
|
2681
2683
|
}
|
|
2682
2684
|
function I() {
|
|
@@ -2685,34 +2687,34 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2685
2687
|
defaultStates: a.value,
|
|
2686
2688
|
originalDataCopy: h.value,
|
|
2687
2689
|
currentScreenResolution: l.value,
|
|
2688
|
-
"onUpdate:currentScreenResolution": (
|
|
2690
|
+
"onUpdate:currentScreenResolution": (w) => l.value = w,
|
|
2689
2691
|
originalData: o.value,
|
|
2690
|
-
"onUpdate:originalData": (
|
|
2691
|
-
switchInStandardMode:
|
|
2692
|
-
"onUpdate:switchInStandardMode": (
|
|
2693
|
-
currentArea:
|
|
2694
|
-
"onUpdate:currentArea": (
|
|
2695
|
-
onCurrentAreaChanged:
|
|
2696
|
-
onTwoDimensionalArrayChanged:
|
|
2692
|
+
"onUpdate:originalData": (w) => o.value = w,
|
|
2693
|
+
switchInStandardMode: p.value,
|
|
2694
|
+
"onUpdate:switchInStandardMode": (w) => p.value = w,
|
|
2695
|
+
currentArea: m.value,
|
|
2696
|
+
"onUpdate:currentArea": (w) => m.value = w,
|
|
2697
|
+
onCurrentAreaChanged: f,
|
|
2698
|
+
onTwoDimensionalArrayChanged: b,
|
|
2697
2699
|
onOriginalDataChanged: y
|
|
2698
2700
|
}, null);
|
|
2699
2701
|
}
|
|
2700
2702
|
function $() {
|
|
2701
2703
|
return v(Pa, {
|
|
2702
2704
|
class: "f-utils-fill-flex-column",
|
|
2703
|
-
currentArea:
|
|
2704
|
-
"onUpdate:currentArea": (
|
|
2705
|
+
currentArea: m.value,
|
|
2706
|
+
"onUpdate:currentArea": (w) => m.value = w,
|
|
2705
2707
|
currentScreenResolution: l.value,
|
|
2706
|
-
"onUpdate:currentScreenResolution": (
|
|
2707
|
-
switchInStandardMode:
|
|
2708
|
+
"onUpdate:currentScreenResolution": (w) => l.value = w,
|
|
2709
|
+
switchInStandardMode: p.value,
|
|
2708
2710
|
twoDimensionalArray: u.value,
|
|
2709
|
-
"onUpdate:twoDimensionalArray": (
|
|
2711
|
+
"onUpdate:twoDimensionalArray": (w) => u.value = w
|
|
2710
2712
|
}, null);
|
|
2711
2713
|
}
|
|
2712
|
-
const T = V(() =>
|
|
2714
|
+
const T = V(() => p.value ? "f-layout-editor-left-standard f-utils-fill-flex-column" : "f-layout-editor-left-customize f-utils-fill-flex-column"), x = V(() => p.value ? "f-layout-editor-right-standard f-utils-fill-flex-column" : "f-layout-editor-right-customize f-utils-fill-flex-column");
|
|
2713
2715
|
return wt(() => {
|
|
2714
2716
|
o.value = Te(n.value.importData), h.value = Te(n.value.importData), a.value = n.value.defaultState, i.value = "中等屏幕", l.value = "MD";
|
|
2715
|
-
}), (
|
|
2717
|
+
}), (w) => v("div", {
|
|
2716
2718
|
class: "f-layout-editor f-utils-flex-column"
|
|
2717
2719
|
}, [v("div", {
|
|
2718
2720
|
class: "f-layout-editor-top"
|
|
@@ -2742,7 +2744,7 @@ const Ni = /* @__PURE__ */ le({
|
|
|
2742
2744
|
class: "f-layout-editor-text-cancel"
|
|
2743
2745
|
}, [ce("取消")])]), v("div", {
|
|
2744
2746
|
class: "f-layout-editor-sure-btn",
|
|
2745
|
-
onClick:
|
|
2747
|
+
onClick: M
|
|
2746
2748
|
}, [v("span", {
|
|
2747
2749
|
class: "f-layout-editor-text-sure"
|
|
2748
2750
|
}, [ce("确认")])])])])]);
|
|
@@ -3145,19 +3147,19 @@ class Ye {
|
|
|
3145
3147
|
}
|
|
3146
3148
|
}
|
|
3147
3149
|
function hl(e, t) {
|
|
3148
|
-
const n = d(), o = d(), a = d(), i = d(), l = d(),
|
|
3150
|
+
const n = d(), o = d(), a = d(), i = d(), l = d(), p = d(), m = d(), u = d(), h = d(), r = d(), s = d(), c = d(e.resizeable), f = d(), y = d(e.draggable), b = d(!1);
|
|
3149
3151
|
function R() {
|
|
3150
3152
|
const A = o.value || document.body, E = window.getComputedStyle(A);
|
|
3151
3153
|
if (!E || !n.value)
|
|
3152
3154
|
return;
|
|
3153
3155
|
const q = re.getTransformInfo(n.value), z = {};
|
|
3154
|
-
|
|
3156
|
+
m.value && (z.deltaL = n.value.offsetLeft - m.value.x, z.deltaT = n.value.offsetTop - m.value.y);
|
|
3155
3157
|
const ee = E.getPropertyValue("position");
|
|
3156
3158
|
z.width = A.clientWidth, z.height = A.clientHeight, z.pr = parseInt(E.getPropertyValue("padding-right"), 10), z.pb = parseInt(E.getPropertyValue("padding-bottom"), 10), z.position = E.getPropertyValue("position"), ee === "static" && (A.style.position = "relative"), z.translateX = q.x, z.translateY = q.y, r.value = z;
|
|
3157
3159
|
}
|
|
3158
|
-
function
|
|
3160
|
+
function M(A) {
|
|
3159
3161
|
if (n.value) {
|
|
3160
|
-
i.value = Ye.getCurrent(n.value), l.value = re.getCurrent(n.value),
|
|
3162
|
+
i.value = Ye.getCurrent(n.value), l.value = re.getCurrent(n.value), p.value = i.value ? Ye.copy(i.value) : null, m.value = l.value ? re.copy(l.value) : null, R();
|
|
3161
3163
|
const E = A.target.getAttribute("type") || "";
|
|
3162
3164
|
u.value = {
|
|
3163
3165
|
n: !!E.match(/n/),
|
|
@@ -3171,19 +3173,19 @@ function hl(e, t) {
|
|
|
3171
3173
|
var A, E, q, z;
|
|
3172
3174
|
if (n.value) {
|
|
3173
3175
|
const ee = n.value;
|
|
3174
|
-
u.value && ((u.value.n || u.value.s) && ((A =
|
|
3176
|
+
u.value && ((u.value.n || u.value.s) && ((A = p.value) != null && A.height) && (ee.style.height = p.value.height + "px"), (u.value.w || u.value.e) && ((E = p.value) != null && E.width) && (ee.style.width = p.value.width + "px"), m.value && ((q = m.value) != null && q.x && (ee.style.left = m.value.x + "px"), (z = m.value) != null && z.y && (ee.style.top = m.value.y + "px")));
|
|
3175
3177
|
}
|
|
3176
3178
|
}
|
|
3177
3179
|
function $() {
|
|
3178
3180
|
const A = e.minHeight ? e.minHeight : 1, E = e.minWidth ? e.minWidth : 1;
|
|
3179
|
-
|
|
3181
|
+
p.value && m.value && u.value && i.value && (p.value.height < A && (p.value.height = A, u.value.n && l.value && (m.value.y = l.value.y + (i.value.height - A))), p.value.width < E && (p.value.width = E, u.value.w && l.value && (m.value.x = l.value.x + (i.value.width - E))), e.maxHeight && p.value.height > e.maxHeight && (p.value.height = e.maxHeight, l.value && u.value.n && (m.value.y = l.value.y + (i.value.height - e.maxHeight))), e.maxWidth && p.value.width > e.maxWidth && (p.value.width = e.maxWidth, u.value.w && l.value && (m.value.x = l.value.x + (i.value.width - e.maxWidth))));
|
|
3180
3182
|
}
|
|
3181
3183
|
function T() {
|
|
3182
3184
|
if (o.value) {
|
|
3183
3185
|
const A = r.value;
|
|
3184
|
-
if (
|
|
3185
|
-
const E = A.width - A.pr - A.deltaL - A.translateX -
|
|
3186
|
-
u.value.n &&
|
|
3186
|
+
if (m.value && p.value && u.value && i.value) {
|
|
3187
|
+
const E = A.width - A.pr - A.deltaL - A.translateX - m.value.x, q = A.height - A.pb - A.deltaT - A.translateY - m.value.y;
|
|
3188
|
+
u.value.n && m.value.y + A.translateY < 0 && l.value && (m.value.y = -A.translateY, p.value.height = i.value.height + l.value.y + A.translateY), u.value.w && m.value.x + A.translateX < 0 && l.value && (m.value.x = -A.translateX, p.value.width = i.value.width + l.value.x + A.translateX), p.value.width > E && (p.value.width = E), p.value.height > q && (p.value.height = q);
|
|
3187
3189
|
}
|
|
3188
3190
|
}
|
|
3189
3191
|
}
|
|
@@ -3192,15 +3194,15 @@ function hl(e, t) {
|
|
|
3192
3194
|
return;
|
|
3193
3195
|
A.subtract(a.value);
|
|
3194
3196
|
const E = A.x, q = A.y;
|
|
3195
|
-
u.value.n ? (
|
|
3197
|
+
u.value.n ? (m.value.y = l.value.y + q, p.value.height = i.value.height - q) : u.value.s && (p.value.height = i.value.height + q), u.value.e ? p.value.width = i.value.width + E : u.value.w && (p.value.width = i.value.width - E, m.value.x = l.value.x + E), T(), $(), I();
|
|
3196
3198
|
}
|
|
3197
|
-
function
|
|
3199
|
+
function w(A) {
|
|
3198
3200
|
if (!h.value)
|
|
3199
3201
|
return;
|
|
3200
3202
|
const E = re.fromEvent(A);
|
|
3201
3203
|
E && x(E);
|
|
3202
3204
|
}
|
|
3203
|
-
function
|
|
3205
|
+
function C() {
|
|
3204
3206
|
if (n.value) {
|
|
3205
3207
|
const {
|
|
3206
3208
|
width: A,
|
|
@@ -3223,82 +3225,82 @@ function hl(e, t) {
|
|
|
3223
3225
|
}
|
|
3224
3226
|
function S(A) {
|
|
3225
3227
|
if (n.value) {
|
|
3226
|
-
const E =
|
|
3228
|
+
const E = C();
|
|
3227
3229
|
s.value = E;
|
|
3228
3230
|
}
|
|
3229
|
-
a.value = void 0, i.value = null, l.value = null,
|
|
3231
|
+
a.value = void 0, i.value = null, l.value = null, p.value = null, m.value = null, u.value = null, h.value = null, document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", S);
|
|
3230
3232
|
}
|
|
3231
3233
|
function j() {
|
|
3232
|
-
document.addEventListener("mousemove",
|
|
3234
|
+
document.addEventListener("mousemove", w), document.addEventListener("mouseup", S);
|
|
3233
3235
|
}
|
|
3234
|
-
function
|
|
3235
|
-
A instanceof MouseEvent && A.button === 2 || y.value && (document.body.click(), A.stopPropagation(), A.preventDefault(), a.value = re.fromEvent(A), h.value = A.target,
|
|
3236
|
+
function F(A) {
|
|
3237
|
+
A instanceof MouseEvent && A.button === 2 || y.value && (document.body.click(), A.stopPropagation(), A.preventDefault(), a.value = re.fromEvent(A), h.value = A.target, M(A), j());
|
|
3236
3238
|
}
|
|
3237
3239
|
function D(A) {
|
|
3238
3240
|
return n.value = A, c.value && v(ot, null, [v("div", {
|
|
3239
3241
|
class: "fv-resizable-handle fv-resizable-n",
|
|
3240
3242
|
type: "n",
|
|
3241
|
-
onMousedown: (E) =>
|
|
3243
|
+
onMousedown: (E) => F(E)
|
|
3242
3244
|
}, null), v("div", {
|
|
3243
3245
|
class: "fv-resizable-handle fv-resizable-e",
|
|
3244
3246
|
type: "e",
|
|
3245
|
-
onMousedown: (E) =>
|
|
3247
|
+
onMousedown: (E) => F(E)
|
|
3246
3248
|
}, null), v("div", {
|
|
3247
3249
|
class: "fv-resizable-handle fv-resizable-s",
|
|
3248
3250
|
type: "s",
|
|
3249
|
-
onMousedown: (E) =>
|
|
3251
|
+
onMousedown: (E) => F(E)
|
|
3250
3252
|
}, null), v("div", {
|
|
3251
3253
|
class: "fv-resizable-handle fv-resizable-w",
|
|
3252
3254
|
type: "w",
|
|
3253
|
-
onMousedown: (E) =>
|
|
3255
|
+
onMousedown: (E) => F(E)
|
|
3254
3256
|
}, null), v("div", {
|
|
3255
3257
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
3256
3258
|
type: "ne",
|
|
3257
|
-
onMousedown: (E) =>
|
|
3259
|
+
onMousedown: (E) => F(E)
|
|
3258
3260
|
}, null), v("div", {
|
|
3259
3261
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
3260
3262
|
type: "se",
|
|
3261
|
-
onMousedown: (E) =>
|
|
3263
|
+
onMousedown: (E) => F(E)
|
|
3262
3264
|
}, null), v("div", {
|
|
3263
3265
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
3264
3266
|
type: "sw",
|
|
3265
|
-
onMousedown: (E) =>
|
|
3267
|
+
onMousedown: (E) => F(E)
|
|
3266
3268
|
}, null), v("div", {
|
|
3267
3269
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
3268
3270
|
type: "nw",
|
|
3269
|
-
onMousedown: (E) =>
|
|
3271
|
+
onMousedown: (E) => F(E)
|
|
3270
3272
|
}, null)]);
|
|
3271
3273
|
}
|
|
3272
3274
|
function O(A = !0) {
|
|
3273
3275
|
document.body.click();
|
|
3274
3276
|
const E = o.value || document.body, q = Ye.getCurrent(E), z = n.value;
|
|
3275
|
-
A && z && (
|
|
3276
|
-
size:
|
|
3277
|
+
A && z && (f.value = C(), f.value.transform = z.style.transform), q && z && (p.value = q, p.value.height -= 14, p.value.width -= 14, z.style.height = p.value.height + "px", z.style.width = p.value.width + "px", z.style.left = "7px", z.style.top = "7px", z.style.transform = "", s.value = {
|
|
3278
|
+
size: p.value,
|
|
3277
3279
|
position: {
|
|
3278
3280
|
x: 0,
|
|
3279
3281
|
y: 0
|
|
3280
3282
|
}
|
|
3281
|
-
}, y.value = !1,
|
|
3283
|
+
}, y.value = !1, b.value = !0);
|
|
3282
3284
|
}
|
|
3283
3285
|
function g() {
|
|
3284
3286
|
var A, E;
|
|
3285
|
-
if (document.body.click(),
|
|
3287
|
+
if (document.body.click(), f.value) {
|
|
3286
3288
|
const q = {
|
|
3287
|
-
width:
|
|
3288
|
-
height:
|
|
3289
|
+
width: f.value.size.width || 0,
|
|
3290
|
+
height: f.value.size.height || 0
|
|
3289
3291
|
}, z = {
|
|
3290
3292
|
x: (window.innerWidth - q.width) / 2,
|
|
3291
3293
|
y: (window.innerHeight - q.height) / 2
|
|
3292
3294
|
};
|
|
3293
|
-
(A =
|
|
3295
|
+
(A = p.value) == null || A.set(q), (E = m.value) == null || E.set(z);
|
|
3294
3296
|
const ee = n.value;
|
|
3295
3297
|
ee.style.height = q.height + "px", ee.style.width = q.width + "px", ee.style.left = `${z.x}px`, ee.style.top = `${z.y}px`, ee.style.transform = "", s.value = {
|
|
3296
3298
|
size: q,
|
|
3297
3299
|
position: z
|
|
3298
|
-
}, y.value = e.draggable,
|
|
3300
|
+
}, y.value = e.draggable, b.value = !1;
|
|
3299
3301
|
}
|
|
3300
3302
|
}
|
|
3301
|
-
function
|
|
3303
|
+
function B() {
|
|
3302
3304
|
if (n.value) {
|
|
3303
3305
|
const A = Ye.getCurrent(n.value);
|
|
3304
3306
|
if (A) {
|
|
@@ -3312,7 +3314,7 @@ function hl(e, t) {
|
|
|
3312
3314
|
}
|
|
3313
3315
|
function P() {
|
|
3314
3316
|
const A = () => {
|
|
3315
|
-
|
|
3317
|
+
b.value ? O(!1) : B(), document.body.click();
|
|
3316
3318
|
};
|
|
3317
3319
|
return window.addEventListener("resize", A), () => {
|
|
3318
3320
|
window.removeEventListener("resize", A);
|
|
@@ -3326,84 +3328,84 @@ function hl(e, t) {
|
|
|
3326
3328
|
maximize: O,
|
|
3327
3329
|
restore: g,
|
|
3328
3330
|
allowDrag: y,
|
|
3329
|
-
isMaximized:
|
|
3331
|
+
isMaximized: b,
|
|
3330
3332
|
unWindowResizeHandle: J,
|
|
3331
|
-
moveToCenter:
|
|
3333
|
+
moveToCenter: B
|
|
3332
3334
|
};
|
|
3333
3335
|
}
|
|
3334
3336
|
function yl(e, t, n) {
|
|
3335
|
-
const o = d(), a = d(e.draggable), i = d(e.lockAxis), l = d(),
|
|
3336
|
-
Z(() => n.value, (
|
|
3337
|
-
l.value.style.cursor =
|
|
3337
|
+
const o = d(), a = d(e.draggable), i = d(e.lockAxis), l = d(), p = d(), m = d(!1), u = d(new re(0, 0)), h = d(new re(0, 0)), r = d(new re(0, 0)), s = d(new re(0, 0));
|
|
3338
|
+
Z(() => n.value, (w) => {
|
|
3339
|
+
l.value.style.cursor = w ? "move" : "default";
|
|
3338
3340
|
});
|
|
3339
|
-
function c(
|
|
3340
|
-
if (
|
|
3341
|
+
function c(w, C) {
|
|
3342
|
+
if (C.tagName === "BUTTON")
|
|
3341
3343
|
return !1;
|
|
3342
|
-
if (
|
|
3344
|
+
if (C === w)
|
|
3343
3345
|
return !0;
|
|
3344
|
-
for (const S in
|
|
3345
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3346
|
+
for (const S in C.children)
|
|
3347
|
+
if (Object.prototype.hasOwnProperty.call(C.children, S) && c(w, C.children[S]))
|
|
3346
3348
|
return !0;
|
|
3347
3349
|
return !1;
|
|
3348
3350
|
}
|
|
3349
|
-
function
|
|
3350
|
-
var j,
|
|
3351
|
-
let
|
|
3352
|
-
i.value === "x" ? (
|
|
3353
|
-
const S = `translate3d(${Math.round(
|
|
3354
|
-
o.value && (o.value.style.transform = S), s.value.x =
|
|
3351
|
+
function f() {
|
|
3352
|
+
var j, F;
|
|
3353
|
+
let w = r.value.x + h.value.x, C = r.value.y + h.value.y;
|
|
3354
|
+
i.value === "x" ? (w = ((j = u.value) == null ? void 0 : j.x) || 0, r.value.x = 0) : i.value === "y" && (C = ((F = u.value) == null ? void 0 : F.y) || 0, r.value.y = 0);
|
|
3355
|
+
const S = `translate3d(${Math.round(w)}px, ${Math.round(C)}px, 0px)`;
|
|
3356
|
+
o.value && (o.value.style.transform = S), s.value.x = w, s.value.y = C;
|
|
3355
3357
|
}
|
|
3356
3358
|
function y() {
|
|
3357
|
-
if (!
|
|
3359
|
+
if (!p.value || !o.value)
|
|
3358
3360
|
return null;
|
|
3359
|
-
const
|
|
3360
|
-
top:
|
|
3361
|
-
right:
|
|
3362
|
-
bottom:
|
|
3363
|
-
left:
|
|
3361
|
+
const w = p.value.getBoundingClientRect(), C = o.value.getBoundingClientRect(), S = {
|
|
3362
|
+
top: w.top < C.top,
|
|
3363
|
+
right: w.right > C.right,
|
|
3364
|
+
bottom: w.bottom > C.bottom,
|
|
3365
|
+
left: w.left < C.left
|
|
3364
3366
|
};
|
|
3365
|
-
return S.top || (r.value.y -=
|
|
3367
|
+
return S.top || (r.value.y -= C.top - w.top), S.bottom || (r.value.y -= C.bottom - w.bottom), S.right || (r.value.x -= C.right - w.right), S.left || (r.value.x -= C.left - w.left), f(), S;
|
|
3366
3368
|
}
|
|
3367
|
-
function w
|
|
3368
|
-
|
|
3369
|
+
function b(w) {
|
|
3370
|
+
w && (u.value && w.subtract(u.value), r.value.set(w), f(), y());
|
|
3369
3371
|
}
|
|
3370
|
-
function R(
|
|
3371
|
-
|
|
3372
|
+
function R(w) {
|
|
3373
|
+
m.value && a.value && (w.stopPropagation(), w.preventDefault(), b(re.fromEvent(w, l.value)));
|
|
3372
3374
|
}
|
|
3373
|
-
function
|
|
3374
|
-
var
|
|
3375
|
-
|
|
3375
|
+
function M() {
|
|
3376
|
+
var w;
|
|
3377
|
+
m.value && (m.value = !1, h.value.add(r.value), r.value.reset(), (w = o.value) == null || w.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", R), document.removeEventListener("mouseup", M));
|
|
3376
3378
|
}
|
|
3377
3379
|
function I() {
|
|
3378
|
-
!
|
|
3380
|
+
!m.value && l.value && (m.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", R), document.addEventListener("mouseup", M));
|
|
3379
3381
|
}
|
|
3380
3382
|
function $() {
|
|
3381
3383
|
if (o.value) {
|
|
3382
|
-
const
|
|
3383
|
-
h.value.set(
|
|
3384
|
+
const w = re.getTransformInfo(o.value);
|
|
3385
|
+
h.value.set(w);
|
|
3384
3386
|
return;
|
|
3385
3387
|
}
|
|
3386
3388
|
h.value.reset();
|
|
3387
3389
|
}
|
|
3388
|
-
function T(
|
|
3389
|
-
if (!n.value ||
|
|
3390
|
+
function T(w) {
|
|
3391
|
+
if (!n.value || w instanceof MouseEvent && w.button === 2)
|
|
3390
3392
|
return;
|
|
3391
|
-
const
|
|
3392
|
-
l.value !== void 0 &&
|
|
3393
|
+
const C = w.target || w.srcElement;
|
|
3394
|
+
l.value !== void 0 && C && !c(C, l.value) || a.value !== !1 && (document.body.click(), w.stopPropagation(), w.preventDefault(), u.value = re.fromEvent(w, o.value), $(), I());
|
|
3393
3395
|
}
|
|
3394
|
-
function x(
|
|
3395
|
-
if (a.value &&
|
|
3396
|
-
if (
|
|
3397
|
-
l.value =
|
|
3396
|
+
function x(w, C, S) {
|
|
3397
|
+
if (a.value && C) {
|
|
3398
|
+
if (w)
|
|
3399
|
+
l.value = w;
|
|
3398
3400
|
else if (e.dragHandle) {
|
|
3399
3401
|
if (e.dragHandle instanceof HTMLElement)
|
|
3400
3402
|
l.value = e.dragHandle;
|
|
3401
3403
|
else if (typeof e.dragHandle == "string") {
|
|
3402
|
-
const j =
|
|
3404
|
+
const j = C.querySelector(e.dragHandle);
|
|
3403
3405
|
j && (l.value = j);
|
|
3404
3406
|
}
|
|
3405
3407
|
}
|
|
3406
|
-
o.value =
|
|
3408
|
+
o.value = C, p.value = S, l.value ? (l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", T)) : a.value = !1;
|
|
3407
3409
|
}
|
|
3408
3410
|
}
|
|
3409
3411
|
return {
|
|
@@ -3444,7 +3446,7 @@ const Je = /* @__PURE__ */ le({
|
|
|
3444
3446
|
props: gn,
|
|
3445
3447
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
3446
3448
|
setup(e, t) {
|
|
3447
|
-
const n = d(e.width || 300), o = d(e.height || 200), a = d(e.modelValue), i = d(""), l = d(e.class),
|
|
3449
|
+
const n = d(e.width || 300), o = d(e.height || 200), a = d(e.modelValue), i = d(""), l = d(e.class), p = d(e.fitContent), m = d(e.showHeader), u = d(""), h = d(e.showCloseButton), r = d(e.showMaxButton), s = d(!1), c = d(e.dialogType), f = d(e.src), y = d(""), b = d(e.showButtons), R = d(e.title), M = d(e.containment || null), I = d(), {
|
|
3448
3450
|
t: $
|
|
3449
3451
|
} = ft();
|
|
3450
3452
|
R.value === "错误提示" && (R.value = $("messageBox.errorTitle"));
|
|
@@ -3460,7 +3462,7 @@ const Je = /* @__PURE__ */ le({
|
|
|
3460
3462
|
fe && (a.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", N));
|
|
3461
3463
|
});
|
|
3462
3464
|
}
|
|
3463
|
-
const
|
|
3465
|
+
const w = [{
|
|
3464
3466
|
name: "cancel",
|
|
3465
3467
|
text: $("messageBox.cancel") || "取消",
|
|
3466
3468
|
class: "btn btn-secondary",
|
|
@@ -3474,9 +3476,9 @@ const Je = /* @__PURE__ */ le({
|
|
|
3474
3476
|
handle: (N) => {
|
|
3475
3477
|
x(N, !0);
|
|
3476
3478
|
}
|
|
3477
|
-
}],
|
|
3479
|
+
}], C = d(e.buttons && e.buttons.length ? e.buttons : w), S = V(() => !!u.value), j = V(() => !!b.value && !!C.value), F = d(), D = d(), O = d(!1), {
|
|
3478
3480
|
renderResizeBar: g,
|
|
3479
|
-
maximize:
|
|
3481
|
+
maximize: B,
|
|
3480
3482
|
restore: P,
|
|
3481
3483
|
boundingElement: J,
|
|
3482
3484
|
resizedEventParam: A,
|
|
@@ -3497,12 +3499,12 @@ const Je = /* @__PURE__ */ le({
|
|
|
3497
3499
|
N !== Q && (R.value = N);
|
|
3498
3500
|
}), Z(() => e.modelValue, (N, Q) => {
|
|
3499
3501
|
N !== Q && (a.value = N, a.value && e.draggable && nt(() => {
|
|
3500
|
-
D.value && !
|
|
3501
|
-
}), N || (
|
|
3502
|
+
D.value && !M.value && (M.value = D.value.parentElement, J.value = M.value, ee(F.value, D.value, J.value), z());
|
|
3503
|
+
}), N || (M.value && (M.value = null), be())), a.value ? T.value = ge() : (O.value = !1, E.value = e.draggable);
|
|
3502
3504
|
}), Z(() => e.showHeader, (N, Q) => {
|
|
3503
|
-
N !== Q && (
|
|
3505
|
+
N !== Q && (m.value = N);
|
|
3504
3506
|
}), Z(() => e.showButtons, (N, Q) => {
|
|
3505
|
-
N !== Q && (
|
|
3507
|
+
N !== Q && (b.value = N);
|
|
3506
3508
|
}), Z(() => A.value, (N, Q) => {
|
|
3507
3509
|
const ue = N || {}, fe = Q || {};
|
|
3508
3510
|
JSON.stringify(ue) !== JSON.stringify(fe) && t.emit("resize", {
|
|
@@ -3518,7 +3520,7 @@ const Je = /* @__PURE__ */ le({
|
|
|
3518
3520
|
"farris-modal": !0,
|
|
3519
3521
|
fade: !0
|
|
3520
3522
|
};
|
|
3521
|
-
N["f-modal-fitContent"] = !!
|
|
3523
|
+
N["f-modal-fitContent"] = !!p.value, N.show = !!Y.value;
|
|
3522
3524
|
const Q = (ue = e.maskClass) == null ? void 0 : ue.split(" ");
|
|
3523
3525
|
return Q == null || Q.reduce((fe, Ie) => (fe[Ie] = !0, fe), N), N;
|
|
3524
3526
|
}), de = V(() => {
|
|
@@ -3533,7 +3535,7 @@ const Je = /* @__PURE__ */ le({
|
|
|
3533
3535
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
3534
3536
|
left: `${(window.innerWidth - n.value) / 2}px`,
|
|
3535
3537
|
width: `${n.value}px`,
|
|
3536
|
-
height:
|
|
3538
|
+
height: p.value ? "auto" : `${o.value}px`
|
|
3537
3539
|
};
|
|
3538
3540
|
return e.mask || (N.pointerEvents = "auto"), N;
|
|
3539
3541
|
}), U = () => zn() || 1040, ae = V(() => {
|
|
@@ -3544,10 +3546,10 @@ const Je = /* @__PURE__ */ le({
|
|
|
3544
3546
|
return e.mask || (N.pointerEvents = "none", N.backgroundColor = "transparent"), T.value && (N.backgroundColor = "transparent"), N;
|
|
3545
3547
|
}), We = V(() => ({
|
|
3546
3548
|
"modal-content": !0,
|
|
3547
|
-
"modal-content-has-header":
|
|
3549
|
+
"modal-content-has-header": m.value
|
|
3548
3550
|
})), Ne = V(() => {
|
|
3549
3551
|
const N = {
|
|
3550
|
-
display:
|
|
3552
|
+
display: m.value ? "" : "none"
|
|
3551
3553
|
};
|
|
3552
3554
|
return N["pointer-events"] = E.value ? "auto" : "none", N;
|
|
3553
3555
|
}), Me = V(() => ({
|
|
@@ -3575,19 +3577,19 @@ const Je = /* @__PURE__ */ le({
|
|
|
3575
3577
|
O.value = !1, P();
|
|
3576
3578
|
return;
|
|
3577
3579
|
}
|
|
3578
|
-
|
|
3580
|
+
B(), O.value = !0;
|
|
3579
3581
|
}
|
|
3580
3582
|
async function it(N, Q) {
|
|
3581
3583
|
N.handle && await N.handle(Q, N) && t.emit("closed", Q);
|
|
3582
3584
|
}
|
|
3583
3585
|
function Ae(N) {
|
|
3584
|
-
N.width && (n.value = N.width), N.height && (o.value = N.height), N.buttons && (
|
|
3586
|
+
N.width && (n.value = N.width), N.height && (o.value = N.height), N.buttons && (C.value = N.buttons), N.title && (R.value = N.title);
|
|
3585
3587
|
}
|
|
3586
3588
|
let Pe = null, ke = null;
|
|
3587
3589
|
wt(() => {
|
|
3588
3590
|
T.value = ge();
|
|
3589
3591
|
}), Be(() => {
|
|
3590
|
-
D.value && !
|
|
3592
|
+
D.value && !M.value && (M.value = D.value.parentElement, J.value = M.value, ee(F.value, D.value, J.value)), Y.value && document.body.classList.add("modal-open"), Pe = gl(e, t), ke = bl(e, t);
|
|
3591
3593
|
}), Ct(() => {
|
|
3592
3594
|
q && q(), Pe && Pe.remove(), ke && ke.remove();
|
|
3593
3595
|
}), t.expose({
|
|
@@ -3620,7 +3622,7 @@ const Je = /* @__PURE__ */ le({
|
|
|
3620
3622
|
return v("div", {
|
|
3621
3623
|
class: "modal-footer",
|
|
3622
3624
|
style: Ze.value
|
|
3623
|
-
}, [
|
|
3625
|
+
}, [C.value && C.value.map((N) => {
|
|
3624
3626
|
const Q = d(N.disabled);
|
|
3625
3627
|
return v("button", {
|
|
3626
3628
|
name: N.name,
|
|
@@ -3637,7 +3639,7 @@ const Je = /* @__PURE__ */ le({
|
|
|
3637
3639
|
}
|
|
3638
3640
|
function _e() {
|
|
3639
3641
|
return v("div", {
|
|
3640
|
-
ref:
|
|
3642
|
+
ref: F,
|
|
3641
3643
|
class: "modal-header",
|
|
3642
3644
|
style: Ne.value
|
|
3643
3645
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
|
|
@@ -3670,15 +3672,15 @@ const Je = /* @__PURE__ */ le({
|
|
|
3670
3672
|
ref: D
|
|
3671
3673
|
}, [v("div", {
|
|
3672
3674
|
class: We.value
|
|
3673
|
-
}, [
|
|
3675
|
+
}, [m.value && _e(), v("div", {
|
|
3674
3676
|
class: Qe.value
|
|
3675
3677
|
}, [(Q = (N = t.slots).default) == null ? void 0 : Q.call(N), c.value === "iframe" && v("iframe", {
|
|
3676
3678
|
title: i.value,
|
|
3677
3679
|
class: "f-utils-fill",
|
|
3678
3680
|
width: "100%",
|
|
3679
3681
|
frameborder: "0",
|
|
3680
|
-
src:
|
|
3681
|
-
}, null)]), De()]), !
|
|
3682
|
+
src: f.value
|
|
3683
|
+
}, null)]), De()]), !p.value && D.value && !O.value && g(D.value)]);
|
|
3682
3684
|
}
|
|
3683
3685
|
function et(N) {
|
|
3684
3686
|
return N || "body";
|
|
@@ -3714,13 +3716,13 @@ function wl(e) {
|
|
|
3714
3716
|
Ct(() => {
|
|
3715
3717
|
document.body.removeChild(t);
|
|
3716
3718
|
});
|
|
3717
|
-
const i = d(), l = d(e.class || ""),
|
|
3719
|
+
const i = d(), l = d(e.class || ""), p = d(!!e.showButtons), m = d(!!e.showHeader), u = d(e.showCloseButton == null ? !0 : e.showCloseButton), h = d(!0), r = d(e.title || ""), s = e.acceptCallback || (() => {
|
|
3718
3720
|
}), c = e.rejectCallback || (() => {
|
|
3719
|
-
}),
|
|
3721
|
+
}), f = e.closedCallback || ((I) => {
|
|
3720
3722
|
}), y = e.resizeHandle || ((I) => {
|
|
3721
|
-
}),
|
|
3722
|
-
}), R = wn(e),
|
|
3723
|
-
h.value = !1, n.unmount(),
|
|
3723
|
+
}), b = e.stopMoveHandle || ((I) => {
|
|
3724
|
+
}), R = wn(e), M = (I) => {
|
|
3725
|
+
h.value = !1, n.unmount(), f(I);
|
|
3724
3726
|
};
|
|
3725
3727
|
return Be(() => {
|
|
3726
3728
|
}), a.expose({
|
|
@@ -3734,16 +3736,16 @@ function wl(e) {
|
|
|
3734
3736
|
width: e.width,
|
|
3735
3737
|
height: e.height,
|
|
3736
3738
|
buttons: e.buttons,
|
|
3737
|
-
"show-header":
|
|
3738
|
-
"show-buttons":
|
|
3739
|
+
"show-header": m.value,
|
|
3740
|
+
"show-buttons": p.value,
|
|
3739
3741
|
"show-close-button": u.value,
|
|
3740
3742
|
"show-max-button": !1,
|
|
3741
3743
|
onAccept: s,
|
|
3742
3744
|
onCancel: c,
|
|
3743
3745
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
3744
|
-
onClosed:
|
|
3746
|
+
onClosed: M,
|
|
3745
3747
|
onResize: y,
|
|
3746
|
-
onStopMove:
|
|
3748
|
+
onStopMove: b
|
|
3747
3749
|
}, {
|
|
3748
3750
|
default: () => [R && R(n)]
|
|
3749
3751
|
});
|
|
@@ -3798,33 +3800,33 @@ class xt {
|
|
|
3798
3800
|
showHeader: !0
|
|
3799
3801
|
}, t)), a = d(!0), i = o.value.acceptCallback || (() => {
|
|
3800
3802
|
}), l = o.value.rejectCallback || (() => {
|
|
3801
|
-
}),
|
|
3802
|
-
}),
|
|
3803
|
+
}), p = o.value.closedCallback || ((T, x) => {
|
|
3804
|
+
}), m = o.value.resizeHandle || ((T) => {
|
|
3803
3805
|
}), u = t.stopMoveHandle || ((T) => {
|
|
3804
3806
|
});
|
|
3805
3807
|
let h;
|
|
3806
3808
|
const r = wn(o.value), s = (T) => {
|
|
3807
|
-
var
|
|
3809
|
+
var w;
|
|
3808
3810
|
a.value = !1;
|
|
3809
|
-
const x = (
|
|
3810
|
-
|
|
3811
|
+
const x = (w = T == null ? void 0 : T.target) == null ? void 0 : w.classList.contains("modal_close");
|
|
3812
|
+
p(T, this.isUseEscCloseModal.value ? "esc" : x ? "icon" : "button");
|
|
3811
3813
|
}, c = (T) => {
|
|
3812
3814
|
s(T), h && nt(() => {
|
|
3813
3815
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Nt(null, n), h = null, this.modalRef.value = null, this.modalRefs) {
|
|
3814
|
-
const x = Object.keys(this.modalRefs).map((
|
|
3816
|
+
const x = Object.keys(this.modalRefs).map((w) => Number(w));
|
|
3815
3817
|
x.length > 0 ? this.activeModalIndex.value = Math.max(...x) : this.activeModalIndex.value = 0;
|
|
3816
3818
|
}
|
|
3817
3819
|
this.isUseEscCloseModal.value = !1;
|
|
3818
3820
|
});
|
|
3819
|
-
},
|
|
3821
|
+
}, f = (T) => {
|
|
3820
3822
|
var x;
|
|
3821
3823
|
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((x = this.activeModalInstance.value) == null || x.close(T == null ? void 0 : T.event));
|
|
3822
3824
|
}, {
|
|
3823
3825
|
width: y,
|
|
3824
|
-
height:
|
|
3825
|
-
} = o.value, R = this.adaptToWindow(y || 500,
|
|
3826
|
+
height: b
|
|
3827
|
+
} = o.value, R = this.adaptToWindow(y || 500, b || 320);
|
|
3826
3828
|
Object.assign(o.value, R);
|
|
3827
|
-
const
|
|
3829
|
+
const M = () => v(Je, Lt({
|
|
3828
3830
|
ref: this.modalRef,
|
|
3829
3831
|
modelValue: a.value,
|
|
3830
3832
|
"onUpdate:modelValue": (T) => a.value = T
|
|
@@ -3832,14 +3834,14 @@ class xt {
|
|
|
3832
3834
|
onAccept: i,
|
|
3833
3835
|
onCancel: l,
|
|
3834
3836
|
onClosed: c,
|
|
3835
|
-
onResize:
|
|
3836
|
-
onEsc:
|
|
3837
|
+
onResize: m,
|
|
3838
|
+
onEsc: f,
|
|
3837
3839
|
onStopMove: u
|
|
3838
3840
|
}), {
|
|
3839
3841
|
default: () => [r && r(this.app)]
|
|
3840
3842
|
});
|
|
3841
3843
|
return h = ((T) => {
|
|
3842
|
-
const x = An(
|
|
3844
|
+
const x = An(M, T);
|
|
3843
3845
|
return x.appContext = this.appContext, Nt(x, n), x;
|
|
3844
3846
|
})({
|
|
3845
3847
|
...o.value
|
|
@@ -4110,35 +4112,35 @@ var Rl = { exports: {} };
|
|
|
4110
4112
|
if (!o[u]) {
|
|
4111
4113
|
var r = typeof ht == "function" && ht;
|
|
4112
4114
|
if (!h && r) return r(u, !0);
|
|
4113
|
-
if (
|
|
4115
|
+
if (p) return p(u, !0);
|
|
4114
4116
|
var s = new Error("Cannot find module '" + u + "'");
|
|
4115
4117
|
throw s.code = "MODULE_NOT_FOUND", s;
|
|
4116
4118
|
}
|
|
4117
4119
|
var c = a[u] = { exports: {} };
|
|
4118
|
-
o[u][0].call(c.exports, function(
|
|
4119
|
-
var y = o[u][1][
|
|
4120
|
-
return l(y ||
|
|
4120
|
+
o[u][0].call(c.exports, function(f) {
|
|
4121
|
+
var y = o[u][1][f];
|
|
4122
|
+
return l(y || f);
|
|
4121
4123
|
}, c, c.exports, n, o, a, i);
|
|
4122
4124
|
}
|
|
4123
4125
|
return a[u].exports;
|
|
4124
4126
|
}
|
|
4125
|
-
for (var
|
|
4127
|
+
for (var p = typeof ht == "function" && ht, m = 0; m < i.length; m++) l(i[m]);
|
|
4126
4128
|
return l;
|
|
4127
4129
|
}
|
|
4128
4130
|
return n;
|
|
4129
4131
|
}())({
|
|
4130
4132
|
1: [function(n, o, a) {
|
|
4131
|
-
var i = {}, l = "(?:^|\\s)",
|
|
4132
|
-
function
|
|
4133
|
+
var i = {}, l = "(?:^|\\s)", p = "(?:\\s|$)";
|
|
4134
|
+
function m(r) {
|
|
4133
4135
|
var s = i[r];
|
|
4134
|
-
return s ? s.lastIndex = 0 : i[r] = s = new RegExp(l + r +
|
|
4136
|
+
return s ? s.lastIndex = 0 : i[r] = s = new RegExp(l + r + p, "g"), s;
|
|
4135
4137
|
}
|
|
4136
4138
|
function u(r, s) {
|
|
4137
4139
|
var c = r.className;
|
|
4138
|
-
c.length ?
|
|
4140
|
+
c.length ? m(s).test(c) || (r.className += " " + s) : r.className = s;
|
|
4139
4141
|
}
|
|
4140
4142
|
function h(r, s) {
|
|
4141
|
-
r.className = r.className.replace(
|
|
4143
|
+
r.className = r.className.replace(m(s), " ").trim();
|
|
4142
4144
|
}
|
|
4143
4145
|
o.exports = {
|
|
4144
4146
|
add: u,
|
|
@@ -4147,12 +4149,12 @@ var Rl = { exports: {} };
|
|
|
4147
4149
|
}, {}],
|
|
4148
4150
|
2: [function(n, o, a) {
|
|
4149
4151
|
(function(i) {
|
|
4150
|
-
var l = n("contra/emitter"),
|
|
4151
|
-
function r(
|
|
4152
|
+
var l = n("contra/emitter"), p = n("crossvent"), m = n("./classes"), u = document, h = u.documentElement;
|
|
4153
|
+
function r(F, D) {
|
|
4152
4154
|
var O = arguments.length;
|
|
4153
|
-
O === 1 && Array.isArray(
|
|
4154
|
-
var g,
|
|
4155
|
-
U.moves === void 0 && (U.moves =
|
|
4155
|
+
O === 1 && Array.isArray(F) === !1 && (D = F, F = []);
|
|
4156
|
+
var g, B, P, J, A, E, q, z, ee, ge = null, be, Y, ie = !1, de = 0, oe, U = D || {};
|
|
4157
|
+
U.moves === void 0 && (U.moves = M), U.accepts === void 0 && (U.accepts = M), U.invalid === void 0 && (U.invalid = lt), U.containers === void 0 && (U.containers = F || []), U.isContainer === void 0 && (U.isContainer = R), U.copy === void 0 && (U.copy = !1), U.copySortSource === void 0 && (U.copySortSource = !1), U.revertOnSpill === void 0 && (U.revertOnSpill = !1), U.removeOnSpill === void 0 && (U.removeOnSpill = !1), U.direction === void 0 && (U.direction = "vertical"), U.ignoreInputTextSelection === void 0 && (U.ignoreInputTextSelection = !0), U.mirrorContainer === void 0 && (U.mirrorContainer = u.body);
|
|
4156
4158
|
var ae = l({
|
|
4157
4159
|
containers: U.containers,
|
|
4158
4160
|
start: ke,
|
|
@@ -4169,15 +4171,15 @@ var Rl = { exports: {} };
|
|
|
4169
4171
|
}
|
|
4170
4172
|
function Ne(k) {
|
|
4171
4173
|
var L = k ? "remove" : "add";
|
|
4172
|
-
|
|
4174
|
+
f(h, L, "mousedown", se), f(h, L, "mouseup", Ve);
|
|
4173
4175
|
}
|
|
4174
4176
|
function Me(k) {
|
|
4175
4177
|
var L = k ? "remove" : "add";
|
|
4176
|
-
|
|
4178
|
+
f(h, L, "mousemove", it);
|
|
4177
4179
|
}
|
|
4178
4180
|
function Qe(k) {
|
|
4179
4181
|
var L = k ? "remove" : "add";
|
|
4180
|
-
|
|
4182
|
+
p[L](h, "selectstart", Ze), p[L](h, "click", Ze);
|
|
4181
4183
|
}
|
|
4182
4184
|
function qe() {
|
|
4183
4185
|
Ne(!0), Ve({});
|
|
@@ -4206,7 +4208,7 @@ var Rl = { exports: {} };
|
|
|
4206
4208
|
return;
|
|
4207
4209
|
}
|
|
4208
4210
|
var K = be;
|
|
4209
|
-
Me(!0), Qe(), _e(), Le(K),
|
|
4211
|
+
Me(!0), Qe(), _e(), Le(K), m.add(z || P, "gu-transit"), kt(), Mt(), de = 0, Ie(k);
|
|
4210
4212
|
}
|
|
4211
4213
|
}
|
|
4212
4214
|
}
|
|
@@ -4217,7 +4219,7 @@ var Rl = { exports: {} };
|
|
|
4217
4219
|
return;
|
|
4218
4220
|
var W = T(k);
|
|
4219
4221
|
if (W && !U.invalid(k, L)) {
|
|
4220
|
-
var G = U.moves(k, W, L,
|
|
4222
|
+
var G = U.moves(k, W, L, C(k));
|
|
4221
4223
|
if (G)
|
|
4222
4224
|
return {
|
|
4223
4225
|
item: k,
|
|
@@ -4234,7 +4236,7 @@ var Rl = { exports: {} };
|
|
|
4234
4236
|
L && Le(L);
|
|
4235
4237
|
}
|
|
4236
4238
|
function Le(k) {
|
|
4237
|
-
jt(k.item, k.source) && (z = k.item.cloneNode(!0), ae.emit("cloned", z, k.item, "copy")),
|
|
4239
|
+
jt(k.item, k.source) && (z = k.item.cloneNode(!0), ae.emit("cloned", z, k.item, "copy")), B = k.source, P = k.item, E = q = C(k.item), ae.dragging = !0, ae.emit("drag", P, B);
|
|
4238
4240
|
}
|
|
4239
4241
|
function lt() {
|
|
4240
4242
|
return !1;
|
|
@@ -4250,33 +4252,33 @@ var Rl = { exports: {} };
|
|
|
4250
4252
|
}
|
|
4251
4253
|
function Ve(k) {
|
|
4252
4254
|
if (De(), !!ae.dragging) {
|
|
4253
|
-
var L = z || P, W = j("clientX", k) || 0, G = j("clientY", k) || 0, K =
|
|
4254
|
-
te && (z && U.copySortSource || !z || te !==
|
|
4255
|
+
var L = z || P, W = j("clientX", k) || 0, G = j("clientY", k) || 0, K = b(g, W, G), te = fe(K, W, G);
|
|
4256
|
+
te && (z && U.copySortSource || !z || te !== B) ? Ke(L, te) : U.removeOnSpill ? et() : N();
|
|
4255
4257
|
}
|
|
4256
4258
|
}
|
|
4257
4259
|
function Ke(k, L) {
|
|
4258
4260
|
var W = T(k);
|
|
4259
|
-
z && U.copySortSource && L ===
|
|
4261
|
+
z && U.copySortSource && L === B && W.removeChild(P), ue(L) ? ae.emit("cancel", k, B) : ae.emit("drop", k, L, B, q), Q();
|
|
4260
4262
|
}
|
|
4261
4263
|
function et() {
|
|
4262
4264
|
if (ae.dragging) {
|
|
4263
4265
|
var k = z || P, L = T(k);
|
|
4264
|
-
L && L.removeChild(k), ae.emit(z ? "cancel" : "remove", k, L,
|
|
4266
|
+
L && L.removeChild(k), ae.emit(z ? "cancel" : "remove", k, L, B), Q();
|
|
4265
4267
|
}
|
|
4266
4268
|
}
|
|
4267
4269
|
function N(k) {
|
|
4268
4270
|
if (ae.dragging) {
|
|
4269
4271
|
var L = arguments.length > 0 ? k : U.revertOnSpill, W = z || P, G = T(W), K = ue(G);
|
|
4270
|
-
K === !1 && L && (z ? G && G.removeChild(z) :
|
|
4272
|
+
K === !1 && L && (z ? G && G.removeChild(z) : B.insertBefore(W, E)), K || L ? ae.emit("cancel", W, B, B) : ae.emit("drop", W, G, B, q), Q();
|
|
4271
4273
|
}
|
|
4272
4274
|
}
|
|
4273
4275
|
function Q() {
|
|
4274
4276
|
var k = z || P;
|
|
4275
|
-
De(), Et(), Rt(), k &&
|
|
4277
|
+
De(), Et(), Rt(), k && m.rm(k, "gu-transit"), ee && clearTimeout(ee), ae.dragging = !1, ge && ae.emit("out", k, ge, B), ae.emit("dragend", k, de), B = P = z = E = q = ee = ge = null;
|
|
4276
4278
|
}
|
|
4277
4279
|
function ue(k, L) {
|
|
4278
4280
|
var W;
|
|
4279
|
-
return L !== void 0 ? W = L : g ? W = q : W =
|
|
4281
|
+
return L !== void 0 ? W = L : g ? W = q : W = C(z || P), k === B && W === E;
|
|
4280
4282
|
}
|
|
4281
4283
|
function fe(k, L, W) {
|
|
4282
4284
|
for (var G = k; G && !K(); )
|
|
@@ -4287,7 +4289,7 @@ var Rl = { exports: {} };
|
|
|
4287
4289
|
if (te === !1)
|
|
4288
4290
|
return !1;
|
|
4289
4291
|
var Fe = pt(G, k), we = mt(G, Fe, L, W), Ce = ue(G, we);
|
|
4290
|
-
return Ce ? !0 : U.accepts(P, G,
|
|
4292
|
+
return Ce ? !0 : U.accepts(P, G, B, we);
|
|
4291
4293
|
}
|
|
4292
4294
|
}
|
|
4293
4295
|
function Ie(k) {
|
|
@@ -4296,10 +4298,10 @@ var Rl = { exports: {} };
|
|
|
4296
4298
|
k.preventDefault();
|
|
4297
4299
|
var L = j("clientX", k) || 0, W = j("clientY", k) || 0;
|
|
4298
4300
|
g.style.left = L - 2 + "px", g.style.top = W - 2 + "px";
|
|
4299
|
-
var G = z || P, K =
|
|
4301
|
+
var G = z || P, K = b(g, L, W), te = fe(K, L, W), Fe = te !== null && te !== ge;
|
|
4300
4302
|
(Fe || te === null) && (Se(), ge = te, Re()), $t(K, W);
|
|
4301
4303
|
var we = T(G);
|
|
4302
|
-
if (te ===
|
|
4304
|
+
if (te === B && z && !U.copySortSource) {
|
|
4303
4305
|
we && we.removeChild(G);
|
|
4304
4306
|
return;
|
|
4305
4307
|
}
|
|
@@ -4307,14 +4309,14 @@ var Rl = { exports: {} };
|
|
|
4307
4309
|
if (ie = rt(Ee, te), Ee !== null)
|
|
4308
4310
|
Ce = mt(te, Ee, L, W);
|
|
4309
4311
|
else if (U.revertOnSpill === !0 && !z)
|
|
4310
|
-
Ce = E, te =
|
|
4312
|
+
Ce = E, te = B;
|
|
4311
4313
|
else {
|
|
4312
4314
|
z && we && we.removeChild(G), z && Y && (Y.style.display = "none");
|
|
4313
4315
|
return;
|
|
4314
4316
|
}
|
|
4315
4317
|
Y.style.display = "block", Tt(Ce, G, Fe), Ce ? Dt(Ee, Ce) : It(te);
|
|
4316
4318
|
function pe(he) {
|
|
4317
|
-
ae.emit(he, G, ge,
|
|
4319
|
+
ae.emit(he, G, ge, B);
|
|
4318
4320
|
}
|
|
4319
4321
|
function Re() {
|
|
4320
4322
|
Fe && pe("over");
|
|
@@ -4324,26 +4326,26 @@ var Rl = { exports: {} };
|
|
|
4324
4326
|
}
|
|
4325
4327
|
}
|
|
4326
4328
|
function Tt(k, L, W) {
|
|
4327
|
-
(k === L || k ===
|
|
4329
|
+
(k === L || k === C(L)) && (q = C(L)), (k === null && W || k !== L && k !== C(L)) && (q = k);
|
|
4328
4330
|
}
|
|
4329
4331
|
function Ft(k) {
|
|
4330
|
-
|
|
4332
|
+
m.rm(k, "gu-hide");
|
|
4331
4333
|
}
|
|
4332
4334
|
function Bt(k) {
|
|
4333
|
-
ae.dragging &&
|
|
4335
|
+
ae.dragging && m.add(k, "gu-hide");
|
|
4334
4336
|
}
|
|
4335
4337
|
function Mt() {
|
|
4336
|
-
g || (g = document.createElement("div"), g.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", g.innerHTML = U.getMirrorText && U.getMirrorText(P) || "控件",
|
|
4338
|
+
g || (g = document.createElement("div"), g.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", g.innerHTML = U.getMirrorText && U.getMirrorText(P) || "控件", m.add(g, "gu-mirror"), U.mirrorContainer.appendChild(g), f(h, "add", "mousemove", Ie), m.add(U.mirrorContainer, "gu-unselectable"), ae.emit("cloned", g, P, "mirror"));
|
|
4337
4339
|
}
|
|
4338
4340
|
function kt() {
|
|
4339
|
-
if (Y = document.createElement("div"),
|
|
4341
|
+
if (Y = document.createElement("div"), m.add(Y, "gu-insertion"), P) {
|
|
4340
4342
|
var k = P.getBoundingClientRect();
|
|
4341
4343
|
Y.style.left = k.left + "px", Y.style.top = k.top + "px";
|
|
4342
4344
|
}
|
|
4343
4345
|
ie = !1, U.mirrorContainer.appendChild(Y);
|
|
4344
4346
|
}
|
|
4345
4347
|
function Et() {
|
|
4346
|
-
g && (
|
|
4348
|
+
g && (m.rm(U.mirrorContainer, "gu-unselectable"), f(h, "remove", "mousemove", Ie), T(g).removeChild(g), g = null);
|
|
4347
4349
|
}
|
|
4348
4350
|
function Rt() {
|
|
4349
4351
|
Y && (T(Y).removeChild(Y), Y = null);
|
|
@@ -4443,14 +4445,14 @@ var Rl = { exports: {} };
|
|
|
4443
4445
|
return Ee(K ? W > pe.left + I(pe) / 2 : G > pe.top + $(pe) / 2);
|
|
4444
4446
|
}
|
|
4445
4447
|
function Ee(pe) {
|
|
4446
|
-
return pe ?
|
|
4448
|
+
return pe ? C(L) : L;
|
|
4447
4449
|
}
|
|
4448
4450
|
}
|
|
4449
4451
|
function jt(k, L) {
|
|
4450
4452
|
return typeof U.copy == "boolean" ? U.copy : U.copy(k, L);
|
|
4451
4453
|
}
|
|
4452
4454
|
}
|
|
4453
|
-
function s(
|
|
4455
|
+
function s(F) {
|
|
4454
4456
|
const D = Array.from(window.scrollContainerList);
|
|
4455
4457
|
if (D.length === 1) {
|
|
4456
4458
|
const g = Array.from(window.scrollContainerList)[0];
|
|
@@ -4458,19 +4460,19 @@ var Rl = { exports: {} };
|
|
|
4458
4460
|
}
|
|
4459
4461
|
const O = c(D);
|
|
4460
4462
|
for (const g of O)
|
|
4461
|
-
if (g.contains(
|
|
4463
|
+
if (g.contains(F))
|
|
4462
4464
|
return g;
|
|
4463
4465
|
return null;
|
|
4464
4466
|
}
|
|
4465
|
-
function c(
|
|
4467
|
+
function c(F) {
|
|
4466
4468
|
const D = [];
|
|
4467
|
-
return
|
|
4469
|
+
return F.forEach((O) => {
|
|
4468
4470
|
const g = document.getElementById(O);
|
|
4469
4471
|
g && D.push(g);
|
|
4470
4472
|
}), D.sort((O, g) => O.contains(g) ? 1 : g.contains(O) ? -1 : 0), D;
|
|
4471
4473
|
}
|
|
4472
|
-
function
|
|
4473
|
-
var
|
|
4474
|
+
function f(F, D, O, g) {
|
|
4475
|
+
var B = {
|
|
4474
4476
|
mouseup: "touchend",
|
|
4475
4477
|
mousedown: "touchstart",
|
|
4476
4478
|
mousemove: "touchmove"
|
|
@@ -4483,207 +4485,207 @@ var Rl = { exports: {} };
|
|
|
4483
4485
|
mousedown: "MSPointerDown",
|
|
4484
4486
|
mousemove: "MSPointerMove"
|
|
4485
4487
|
};
|
|
4486
|
-
i.navigator.pointerEnabled ?
|
|
4488
|
+
i.navigator.pointerEnabled ? p[D](F, P[O], g) : i.navigator.msPointerEnabled ? p[D](F, J[O], g) : (p[D](F, B[O], g), p[D](F, O, g));
|
|
4487
4489
|
}
|
|
4488
|
-
function y(
|
|
4489
|
-
if (
|
|
4490
|
-
return
|
|
4491
|
-
if (
|
|
4492
|
-
return
|
|
4493
|
-
if (
|
|
4494
|
-
return
|
|
4495
|
-
var D =
|
|
4490
|
+
function y(F) {
|
|
4491
|
+
if (F.touches !== void 0)
|
|
4492
|
+
return F.touches.length;
|
|
4493
|
+
if (F.which !== void 0 && F.which !== 0)
|
|
4494
|
+
return F.which;
|
|
4495
|
+
if (F.buttons !== void 0)
|
|
4496
|
+
return F.buttons;
|
|
4497
|
+
var D = F.button;
|
|
4496
4498
|
if (D !== void 0)
|
|
4497
4499
|
return D & 1 ? 1 : D & 2 ? 3 : D & 4 ? 2 : 0;
|
|
4498
4500
|
}
|
|
4499
|
-
function
|
|
4500
|
-
|
|
4501
|
-
var g =
|
|
4502
|
-
return
|
|
4501
|
+
function b(F, D, O) {
|
|
4502
|
+
F = F || {};
|
|
4503
|
+
var g = F.className || "", B;
|
|
4504
|
+
return F.className += " gu-hide", B = u.elementFromPoint(D, O), F.className = g, B;
|
|
4503
4505
|
}
|
|
4504
4506
|
function R() {
|
|
4505
4507
|
return !1;
|
|
4506
4508
|
}
|
|
4507
|
-
function
|
|
4509
|
+
function M() {
|
|
4508
4510
|
return !0;
|
|
4509
4511
|
}
|
|
4510
|
-
function I(
|
|
4511
|
-
return
|
|
4512
|
+
function I(F) {
|
|
4513
|
+
return F.width || F.right - F.left;
|
|
4512
4514
|
}
|
|
4513
|
-
function $(
|
|
4514
|
-
return
|
|
4515
|
+
function $(F) {
|
|
4516
|
+
return F.height || F.bottom - F.top;
|
|
4515
4517
|
}
|
|
4516
|
-
function T(
|
|
4517
|
-
return
|
|
4518
|
+
function T(F) {
|
|
4519
|
+
return F.parentNode === u ? null : F.parentNode;
|
|
4518
4520
|
}
|
|
4519
|
-
function x(
|
|
4520
|
-
return
|
|
4521
|
+
function x(F) {
|
|
4522
|
+
return F.tagName === "INPUT" || F.tagName === "TEXTAREA" || F.tagName === "SELECT" || w(F);
|
|
4521
4523
|
}
|
|
4522
|
-
function
|
|
4523
|
-
return !
|
|
4524
|
+
function w(F) {
|
|
4525
|
+
return !F || F.contentEditable === "false" ? !1 : F.contentEditable === "true" ? !0 : w(T(F));
|
|
4524
4526
|
}
|
|
4525
|
-
function
|
|
4526
|
-
return
|
|
4527
|
+
function C(F) {
|
|
4528
|
+
return F.nextElementSibling || D();
|
|
4527
4529
|
function D() {
|
|
4528
|
-
var O =
|
|
4530
|
+
var O = F;
|
|
4529
4531
|
do
|
|
4530
4532
|
O = O.nextSibling;
|
|
4531
4533
|
while (O && O.nodeType !== 1);
|
|
4532
4534
|
return O;
|
|
4533
4535
|
}
|
|
4534
4536
|
}
|
|
4535
|
-
function S(
|
|
4536
|
-
return
|
|
4537
|
+
function S(F) {
|
|
4538
|
+
return F.targetTouches && F.targetTouches.length ? F.targetTouches[0] : F.changedTouches && F.changedTouches.length ? F.changedTouches[0] : F;
|
|
4537
4539
|
}
|
|
4538
|
-
function j(
|
|
4540
|
+
function j(F, D) {
|
|
4539
4541
|
var O = S(D), g = {
|
|
4540
4542
|
pageX: "clientX",
|
|
4541
4543
|
// IE8
|
|
4542
4544
|
pageY: "clientY"
|
|
4543
4545
|
// IE8
|
|
4544
4546
|
};
|
|
4545
|
-
return
|
|
4547
|
+
return F in g && !(F in O) && g[F] in O && (F = g[F]), O[F];
|
|
4546
4548
|
}
|
|
4547
4549
|
o.exports = r;
|
|
4548
4550
|
}).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
4549
4551
|
}, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
|
|
4550
4552
|
3: [function(n, o, a) {
|
|
4551
|
-
o.exports = function(l,
|
|
4552
|
-
return Array.prototype.slice.call(l,
|
|
4553
|
+
o.exports = function(l, p) {
|
|
4554
|
+
return Array.prototype.slice.call(l, p);
|
|
4553
4555
|
};
|
|
4554
4556
|
}, {}],
|
|
4555
4557
|
4: [function(n, o, a) {
|
|
4556
4558
|
var i = n("ticky");
|
|
4557
|
-
o.exports = function(
|
|
4558
|
-
|
|
4559
|
-
|
|
4559
|
+
o.exports = function(p, m, u) {
|
|
4560
|
+
p && i(function() {
|
|
4561
|
+
p.apply(u || null, m || []);
|
|
4560
4562
|
});
|
|
4561
4563
|
};
|
|
4562
4564
|
}, { ticky: 10 }],
|
|
4563
4565
|
5: [function(n, o, a) {
|
|
4564
4566
|
var i = n("atoa"), l = n("./debounce");
|
|
4565
|
-
o.exports = function(
|
|
4567
|
+
o.exports = function(m, u) {
|
|
4566
4568
|
var h = u || {}, r = {};
|
|
4567
|
-
return
|
|
4568
|
-
return r[s] ? r[s].push(c) : r[s] = [c],
|
|
4569
|
-
},
|
|
4570
|
-
return c._once = !0,
|
|
4571
|
-
},
|
|
4572
|
-
var
|
|
4573
|
-
if (
|
|
4569
|
+
return m === void 0 && (m = {}), m.on = function(s, c) {
|
|
4570
|
+
return r[s] ? r[s].push(c) : r[s] = [c], m;
|
|
4571
|
+
}, m.once = function(s, c) {
|
|
4572
|
+
return c._once = !0, m.on(s, c), m;
|
|
4573
|
+
}, m.off = function(s, c) {
|
|
4574
|
+
var f = arguments.length;
|
|
4575
|
+
if (f === 1)
|
|
4574
4576
|
delete r[s];
|
|
4575
|
-
else if (
|
|
4577
|
+
else if (f === 0)
|
|
4576
4578
|
r = {};
|
|
4577
4579
|
else {
|
|
4578
4580
|
var y = r[s];
|
|
4579
4581
|
if (!y)
|
|
4580
|
-
return
|
|
4582
|
+
return m;
|
|
4581
4583
|
y.splice(y.indexOf(c), 1);
|
|
4582
4584
|
}
|
|
4583
|
-
return
|
|
4584
|
-
},
|
|
4585
|
+
return m;
|
|
4586
|
+
}, m.emit = function() {
|
|
4585
4587
|
var s = i(arguments);
|
|
4586
|
-
return
|
|
4587
|
-
},
|
|
4588
|
+
return m.emitterSnapshot(s.shift()).apply(this, s);
|
|
4589
|
+
}, m.emitterSnapshot = function(s) {
|
|
4588
4590
|
var c = (r[s] || []).slice(0);
|
|
4589
4591
|
return function() {
|
|
4590
|
-
var
|
|
4592
|
+
var f = i(arguments), y = this || m;
|
|
4591
4593
|
if (s === "error" && h.throws !== !1 && !c.length)
|
|
4592
|
-
throw
|
|
4594
|
+
throw f.length === 1 ? f[0] : f;
|
|
4593
4595
|
return c.forEach(function(R) {
|
|
4594
|
-
h.async ? l(R,
|
|
4595
|
-
}),
|
|
4596
|
+
h.async ? l(R, f, y) : R.apply(y, f), R._once && m.off(s, R);
|
|
4597
|
+
}), m;
|
|
4596
4598
|
};
|
|
4597
|
-
},
|
|
4599
|
+
}, m;
|
|
4598
4600
|
};
|
|
4599
4601
|
}, { "./debounce": 4, atoa: 3 }],
|
|
4600
4602
|
6: [function(n, o, a) {
|
|
4601
4603
|
(function(i) {
|
|
4602
|
-
var l = n("custom-event"),
|
|
4604
|
+
var l = n("custom-event"), p = n("./eventmap"), m = i.document, u = s, h = f, r = [];
|
|
4603
4605
|
i.addEventListener || (u = c, h = y), o.exports = {
|
|
4604
4606
|
add: u,
|
|
4605
4607
|
remove: h,
|
|
4606
|
-
fabricate:
|
|
4608
|
+
fabricate: b
|
|
4607
4609
|
};
|
|
4608
|
-
function s(T, x,
|
|
4609
|
-
return T.addEventListener(x,
|
|
4610
|
+
function s(T, x, w, C) {
|
|
4611
|
+
return T.addEventListener(x, w, C);
|
|
4610
4612
|
}
|
|
4611
|
-
function c(T, x,
|
|
4612
|
-
return T.attachEvent("on" + x,
|
|
4613
|
+
function c(T, x, w) {
|
|
4614
|
+
return T.attachEvent("on" + x, M(T, x, w));
|
|
4613
4615
|
}
|
|
4614
|
-
function
|
|
4615
|
-
return T.removeEventListener(x,
|
|
4616
|
+
function f(T, x, w, C) {
|
|
4617
|
+
return T.removeEventListener(x, w, C);
|
|
4616
4618
|
}
|
|
4617
|
-
function y(T, x,
|
|
4618
|
-
var
|
|
4619
|
-
if (
|
|
4620
|
-
return T.detachEvent("on" + x,
|
|
4619
|
+
function y(T, x, w) {
|
|
4620
|
+
var C = I(T, x, w);
|
|
4621
|
+
if (C)
|
|
4622
|
+
return T.detachEvent("on" + x, C);
|
|
4621
4623
|
}
|
|
4622
|
-
function
|
|
4623
|
-
var
|
|
4624
|
-
T.dispatchEvent ? T.dispatchEvent(
|
|
4624
|
+
function b(T, x, w) {
|
|
4625
|
+
var C = p.indexOf(x) === -1 ? j() : S();
|
|
4626
|
+
T.dispatchEvent ? T.dispatchEvent(C) : T.fireEvent("on" + x, C);
|
|
4625
4627
|
function S() {
|
|
4626
|
-
var
|
|
4627
|
-
return
|
|
4628
|
+
var F;
|
|
4629
|
+
return m.createEvent ? (F = m.createEvent("Event"), F.initEvent(x, !0, !0)) : m.createEventObject && (F = m.createEventObject()), F;
|
|
4628
4630
|
}
|
|
4629
4631
|
function j() {
|
|
4630
|
-
return new l(x, { detail:
|
|
4632
|
+
return new l(x, { detail: w });
|
|
4631
4633
|
}
|
|
4632
4634
|
}
|
|
4633
|
-
function R(T, x,
|
|
4635
|
+
function R(T, x, w) {
|
|
4634
4636
|
return function(S) {
|
|
4635
4637
|
var j = S || i.event;
|
|
4636
4638
|
j.target = j.target || j.srcElement, j.preventDefault = j.preventDefault || function() {
|
|
4637
4639
|
j.returnValue = !1;
|
|
4638
4640
|
}, j.stopPropagation = j.stopPropagation || function() {
|
|
4639
4641
|
j.cancelBubble = !0;
|
|
4640
|
-
}, j.which = j.which || j.keyCode,
|
|
4642
|
+
}, j.which = j.which || j.keyCode, w.call(T, j);
|
|
4641
4643
|
};
|
|
4642
4644
|
}
|
|
4643
|
-
function
|
|
4644
|
-
var
|
|
4645
|
+
function M(T, x, w) {
|
|
4646
|
+
var C = I(T, x, w) || R(T, x, w);
|
|
4645
4647
|
return r.push({
|
|
4646
|
-
wrapper:
|
|
4648
|
+
wrapper: C,
|
|
4647
4649
|
element: T,
|
|
4648
4650
|
type: x,
|
|
4649
|
-
fn:
|
|
4650
|
-
}),
|
|
4651
|
+
fn: w
|
|
4652
|
+
}), C;
|
|
4651
4653
|
}
|
|
4652
|
-
function I(T, x,
|
|
4653
|
-
var
|
|
4654
|
-
if (
|
|
4655
|
-
var S = r[
|
|
4656
|
-
return r.splice(
|
|
4654
|
+
function I(T, x, w) {
|
|
4655
|
+
var C = $(T, x, w);
|
|
4656
|
+
if (C) {
|
|
4657
|
+
var S = r[C].wrapper;
|
|
4658
|
+
return r.splice(C, 1), S;
|
|
4657
4659
|
}
|
|
4658
4660
|
}
|
|
4659
|
-
function $(T, x,
|
|
4660
|
-
var
|
|
4661
|
-
for (
|
|
4662
|
-
if (S = r[
|
|
4663
|
-
return
|
|
4661
|
+
function $(T, x, w) {
|
|
4662
|
+
var C, S;
|
|
4663
|
+
for (C = 0; C < r.length; C++)
|
|
4664
|
+
if (S = r[C], S.element === T && S.type === x && S.fn === w)
|
|
4665
|
+
return C;
|
|
4664
4666
|
}
|
|
4665
4667
|
}).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
4666
4668
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
4667
4669
|
7: [function(n, o, a) {
|
|
4668
4670
|
(function(i) {
|
|
4669
|
-
var l = [],
|
|
4670
|
-
for (
|
|
4671
|
-
|
|
4671
|
+
var l = [], p = "", m = /^on/;
|
|
4672
|
+
for (p in i)
|
|
4673
|
+
m.test(p) && l.push(p.slice(2));
|
|
4672
4674
|
o.exports = l;
|
|
4673
4675
|
}).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
4674
4676
|
}, {}],
|
|
4675
4677
|
8: [function(n, o, a) {
|
|
4676
4678
|
(function(i) {
|
|
4677
4679
|
var l = i.CustomEvent;
|
|
4678
|
-
function
|
|
4680
|
+
function p() {
|
|
4679
4681
|
try {
|
|
4680
|
-
var
|
|
4681
|
-
return
|
|
4682
|
+
var m = new l("cat", { detail: { foo: "bar" } });
|
|
4683
|
+
return m.type === "cat" && m.detail.foo === "bar";
|
|
4682
4684
|
} catch {
|
|
4683
4685
|
}
|
|
4684
4686
|
return !1;
|
|
4685
4687
|
}
|
|
4686
|
-
o.exports =
|
|
4688
|
+
o.exports = p() ? l : (
|
|
4687
4689
|
// IE >= 9
|
|
4688
4690
|
typeof document < "u" && typeof document.createEvent == "function" ? function(u, h) {
|
|
4689
4691
|
var r = document.createEvent("CustomEvent");
|
|
@@ -4699,8 +4701,8 @@ var Rl = { exports: {} };
|
|
|
4699
4701
|
}).call(this, typeof He < "u" ? He : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
4700
4702
|
}, {}],
|
|
4701
4703
|
9: [function(n, o, a) {
|
|
4702
|
-
var i = o.exports = {}, l,
|
|
4703
|
-
function
|
|
4704
|
+
var i = o.exports = {}, l, p;
|
|
4705
|
+
function m() {
|
|
4704
4706
|
throw new Error("setTimeout has not been defined");
|
|
4705
4707
|
}
|
|
4706
4708
|
function u() {
|
|
@@ -4708,20 +4710,20 @@ var Rl = { exports: {} };
|
|
|
4708
4710
|
}
|
|
4709
4711
|
(function() {
|
|
4710
4712
|
try {
|
|
4711
|
-
typeof setTimeout == "function" ? l = setTimeout : l =
|
|
4713
|
+
typeof setTimeout == "function" ? l = setTimeout : l = m;
|
|
4712
4714
|
} catch {
|
|
4713
|
-
l =
|
|
4715
|
+
l = m;
|
|
4714
4716
|
}
|
|
4715
4717
|
try {
|
|
4716
|
-
typeof clearTimeout == "function" ?
|
|
4718
|
+
typeof clearTimeout == "function" ? p = clearTimeout : p = u;
|
|
4717
4719
|
} catch {
|
|
4718
|
-
|
|
4720
|
+
p = u;
|
|
4719
4721
|
}
|
|
4720
4722
|
})();
|
|
4721
4723
|
function h($) {
|
|
4722
4724
|
if (l === setTimeout)
|
|
4723
4725
|
return setTimeout($, 0);
|
|
4724
|
-
if ((l ===
|
|
4726
|
+
if ((l === m || !l) && setTimeout)
|
|
4725
4727
|
return l = setTimeout, setTimeout($, 0);
|
|
4726
4728
|
try {
|
|
4727
4729
|
return l($, 0);
|
|
@@ -4734,34 +4736,34 @@ var Rl = { exports: {} };
|
|
|
4734
4736
|
}
|
|
4735
4737
|
}
|
|
4736
4738
|
function r($) {
|
|
4737
|
-
if (
|
|
4739
|
+
if (p === clearTimeout)
|
|
4738
4740
|
return clearTimeout($);
|
|
4739
|
-
if ((
|
|
4740
|
-
return
|
|
4741
|
+
if ((p === u || !p) && clearTimeout)
|
|
4742
|
+
return p = clearTimeout, clearTimeout($);
|
|
4741
4743
|
try {
|
|
4742
|
-
return
|
|
4744
|
+
return p($);
|
|
4743
4745
|
} catch {
|
|
4744
4746
|
try {
|
|
4745
|
-
return
|
|
4747
|
+
return p.call(null, $);
|
|
4746
4748
|
} catch {
|
|
4747
|
-
return
|
|
4749
|
+
return p.call(this, $);
|
|
4748
4750
|
}
|
|
4749
4751
|
}
|
|
4750
4752
|
}
|
|
4751
|
-
var s = [], c = !1,
|
|
4752
|
-
function
|
|
4753
|
-
!c || !
|
|
4753
|
+
var s = [], c = !1, f, y = -1;
|
|
4754
|
+
function b() {
|
|
4755
|
+
!c || !f || (c = !1, f.length ? s = f.concat(s) : y = -1, s.length && R());
|
|
4754
4756
|
}
|
|
4755
4757
|
function R() {
|
|
4756
4758
|
if (!c) {
|
|
4757
|
-
var $ = h(
|
|
4759
|
+
var $ = h(b);
|
|
4758
4760
|
c = !0;
|
|
4759
4761
|
for (var T = s.length; T; ) {
|
|
4760
|
-
for (
|
|
4761
|
-
|
|
4762
|
+
for (f = s, s = []; ++y < T; )
|
|
4763
|
+
f && f[y].run();
|
|
4762
4764
|
y = -1, T = s.length;
|
|
4763
4765
|
}
|
|
4764
|
-
|
|
4766
|
+
f = null, c = !1, r($);
|
|
4765
4767
|
}
|
|
4766
4768
|
}
|
|
4767
4769
|
i.nextTick = function($) {
|
|
@@ -4769,12 +4771,12 @@ var Rl = { exports: {} };
|
|
|
4769
4771
|
if (arguments.length > 1)
|
|
4770
4772
|
for (var x = 1; x < arguments.length; x++)
|
|
4771
4773
|
T[x - 1] = arguments[x];
|
|
4772
|
-
s.push(new
|
|
4774
|
+
s.push(new M($, T)), s.length === 1 && !c && h(R);
|
|
4773
4775
|
};
|
|
4774
|
-
function
|
|
4776
|
+
function M($, T) {
|
|
4775
4777
|
this.fun = $, this.array = T;
|
|
4776
4778
|
}
|
|
4777
|
-
|
|
4779
|
+
M.prototype.run = function() {
|
|
4778
4780
|
this.fun.apply(null, this.array);
|
|
4779
4781
|
}, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {};
|
|
4780
4782
|
function I() {
|
|
@@ -4793,45 +4795,45 @@ var Rl = { exports: {} };
|
|
|
4793
4795
|
}, {}],
|
|
4794
4796
|
10: [function(n, o, a) {
|
|
4795
4797
|
(function(i) {
|
|
4796
|
-
var l = typeof i == "function",
|
|
4797
|
-
l ?
|
|
4798
|
-
i(
|
|
4799
|
-
} :
|
|
4800
|
-
setTimeout(
|
|
4801
|
-
}, o.exports =
|
|
4798
|
+
var l = typeof i == "function", p;
|
|
4799
|
+
l ? p = function(m) {
|
|
4800
|
+
i(m);
|
|
4801
|
+
} : p = function(m) {
|
|
4802
|
+
setTimeout(m, 0);
|
|
4803
|
+
}, o.exports = p;
|
|
4802
4804
|
}).call(this, n("timers").setImmediate);
|
|
4803
4805
|
}, { timers: 11 }],
|
|
4804
4806
|
11: [function(n, o, a) {
|
|
4805
4807
|
(function(i, l) {
|
|
4806
|
-
var
|
|
4808
|
+
var p = n("process/browser.js").nextTick, m = Function.prototype.apply, u = Array.prototype.slice, h = {}, r = 0;
|
|
4807
4809
|
a.setTimeout = function() {
|
|
4808
|
-
return new s(
|
|
4810
|
+
return new s(m.call(setTimeout, window, arguments), clearTimeout);
|
|
4809
4811
|
}, a.setInterval = function() {
|
|
4810
|
-
return new s(
|
|
4812
|
+
return new s(m.call(setInterval, window, arguments), clearInterval);
|
|
4811
4813
|
}, a.clearTimeout = a.clearInterval = function(c) {
|
|
4812
4814
|
c.close();
|
|
4813
4815
|
};
|
|
4814
|
-
function s(c,
|
|
4815
|
-
this._id = c, this._clearFn =
|
|
4816
|
+
function s(c, f) {
|
|
4817
|
+
this._id = c, this._clearFn = f;
|
|
4816
4818
|
}
|
|
4817
4819
|
s.prototype.unref = s.prototype.ref = function() {
|
|
4818
4820
|
}, s.prototype.close = function() {
|
|
4819
4821
|
this._clearFn.call(window, this._id);
|
|
4820
|
-
}, a.enroll = function(c,
|
|
4821
|
-
clearTimeout(c._idleTimeoutId), c._idleTimeout =
|
|
4822
|
+
}, a.enroll = function(c, f) {
|
|
4823
|
+
clearTimeout(c._idleTimeoutId), c._idleTimeout = f;
|
|
4822
4824
|
}, a.unenroll = function(c) {
|
|
4823
4825
|
clearTimeout(c._idleTimeoutId), c._idleTimeout = -1;
|
|
4824
4826
|
}, a._unrefActive = a.active = function(c) {
|
|
4825
4827
|
clearTimeout(c._idleTimeoutId);
|
|
4826
|
-
var
|
|
4827
|
-
|
|
4828
|
+
var f = c._idleTimeout;
|
|
4829
|
+
f >= 0 && (c._idleTimeoutId = setTimeout(function() {
|
|
4828
4830
|
c._onTimeout && c._onTimeout();
|
|
4829
|
-
},
|
|
4831
|
+
}, f));
|
|
4830
4832
|
}, a.setImmediate = typeof i == "function" ? i : function(c) {
|
|
4831
|
-
var
|
|
4832
|
-
return h[
|
|
4833
|
-
h[
|
|
4834
|
-
}),
|
|
4833
|
+
var f = r++, y = arguments.length < 2 ? !1 : u.call(arguments, 1);
|
|
4834
|
+
return h[f] = !0, p(function() {
|
|
4835
|
+
h[f] && (y ? c.apply(null, y) : c.call(null), a.clearImmediate(f));
|
|
4836
|
+
}), f;
|
|
4835
4837
|
}, a.clearImmediate = typeof l == "function" ? l : function(c) {
|
|
4836
4838
|
delete h[c];
|
|
4837
4839
|
};
|
|
@@ -4865,30 +4867,30 @@ const Ol = {
|
|
|
4865
4867
|
const {
|
|
4866
4868
|
locale: n,
|
|
4867
4869
|
t: o
|
|
4868
|
-
} = ft(), a = d(e.animate), i = "fadeOut", l = V(() => e.options),
|
|
4870
|
+
} = ft(), a = d(e.animate), i = "fadeOut", l = V(() => e.options), p = d(!1), m = V(() => l.value.title && l.value.message), u = V(() => !l.value.title && l.value.message), h = V(() => {
|
|
4869
4871
|
const $ = {
|
|
4870
|
-
animated:
|
|
4872
|
+
animated: p.value,
|
|
4871
4873
|
toast: !0,
|
|
4872
|
-
"toast--only-content": !
|
|
4874
|
+
"toast--only-content": !m.value
|
|
4873
4875
|
};
|
|
4874
|
-
return $[e.animate] = !1, $[i] =
|
|
4876
|
+
return $[e.animate] = !1, $[i] = p.value, $["toasty-type-" + l.value.type] = !0, l.value.theme && ($[l.value.theme] = !0), $;
|
|
4875
4877
|
}), r = V(() => {
|
|
4876
|
-
const x = `f-icon-${l.value && l.value.type ? l.value.type.replace("toasty-type-", "") : "default"}`,
|
|
4878
|
+
const x = `f-icon-${l.value && l.value.type ? l.value.type.replace("toasty-type-", "") : "default"}`, w = {
|
|
4877
4879
|
"f-icon": !0
|
|
4878
4880
|
};
|
|
4879
|
-
return
|
|
4880
|
-
}), s = V(() => l.value.title || l.value.message), c = V(() => e.showCloseButton),
|
|
4881
|
+
return w[x] = !0, w;
|
|
4882
|
+
}), s = V(() => l.value.title || l.value.message), c = V(() => e.showCloseButton), f = V(() => !!l.value.buttons || !!t.slots.default), y = V(() => n.value === "en" ? {
|
|
4881
4883
|
wordBreak: "keep-all",
|
|
4882
4884
|
overflowWrap: "break-word"
|
|
4883
4885
|
} : {});
|
|
4884
|
-
function
|
|
4885
|
-
$.stopPropagation(), $.preventDefault(),
|
|
4886
|
+
function b($) {
|
|
4887
|
+
$.stopPropagation(), $.preventDefault(), p.value = !1, setTimeout(() => {
|
|
4886
4888
|
t.emit("close", l.value);
|
|
4887
4889
|
}, 200);
|
|
4888
4890
|
}
|
|
4889
4891
|
function R($, T) {
|
|
4890
4892
|
}
|
|
4891
|
-
function
|
|
4893
|
+
function M($) {
|
|
4892
4894
|
return `f-preten-link ${$.customClass ? $.customClass : ""}`;
|
|
4893
4895
|
}
|
|
4894
4896
|
Z(a, () => {
|
|
@@ -4899,7 +4901,7 @@ const Ol = {
|
|
|
4899
4901
|
return v(ot, null, [v("div", {
|
|
4900
4902
|
class: "after-toast-msg text-right"
|
|
4901
4903
|
}, [!t.slots.default && (($ = l.value.buttons) == null ? void 0 : $.map((T) => v("span", {
|
|
4902
|
-
class:
|
|
4904
|
+
class: M(T),
|
|
4903
4905
|
onClick: (x) => void 0
|
|
4904
4906
|
}, [T.text]))), t.slots.default && t.slots.default()])]);
|
|
4905
4907
|
};
|
|
@@ -4909,25 +4911,25 @@ const Ol = {
|
|
|
4909
4911
|
}, [c.value && v("button", {
|
|
4910
4912
|
title: o("messageBox.close"),
|
|
4911
4913
|
class: "toast-close f-btn-icon f-bare",
|
|
4912
|
-
onClick:
|
|
4914
|
+
onClick: b
|
|
4913
4915
|
}, [v("span", {
|
|
4914
4916
|
class: "f-icon modal_close"
|
|
4915
4917
|
}, null)]), s.value && v("section", {
|
|
4916
4918
|
class: "modal-tips"
|
|
4917
|
-
}, [!
|
|
4919
|
+
}, [!m.value && v("div", {
|
|
4918
4920
|
class: "float-left modal-tips-iconwrap"
|
|
4919
4921
|
}, [v("span", {
|
|
4920
4922
|
class: r.value
|
|
4921
4923
|
}, null)]), v("div", {
|
|
4922
4924
|
class: "modal-tips-content"
|
|
4923
|
-
}, [
|
|
4925
|
+
}, [m.value && v(ot, null, [v("h5", {
|
|
4924
4926
|
class: "toast-title modal-tips-title",
|
|
4925
4927
|
innerHTML: l.value.title
|
|
4926
4928
|
}, null), v("p", {
|
|
4927
4929
|
class: "toast-msg",
|
|
4928
4930
|
innerHTML: l.value.message,
|
|
4929
4931
|
style: y.value
|
|
4930
|
-
}, null),
|
|
4932
|
+
}, null), f.value && I()]), u.value && (l.value.buttons ? v("div", {
|
|
4931
4933
|
class: "toast-title-btns-wrapper d-flex"
|
|
4932
4934
|
}, [v("h5", {
|
|
4933
4935
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -4953,25 +4955,25 @@ const Ol = {
|
|
|
4953
4955
|
right: 12,
|
|
4954
4956
|
top: 20,
|
|
4955
4957
|
bottom: 12
|
|
4956
|
-
}, a = d(), i = d(e.options), l = d(e.showCloseButton),
|
|
4957
|
-
const s = e.bottom ? e.bottom : o.bottom, c = e.top ? e.top : o.top,
|
|
4958
|
+
}, a = d(), i = d(e.options), l = d(e.showCloseButton), p = V(() => e.position || "bottom-right"), m = V(() => e.timeout != null ? e.timeout : 3e3), u = V(() => {
|
|
4959
|
+
const s = e.bottom ? e.bottom : o.bottom, c = e.top ? e.top : o.top, f = {
|
|
4958
4960
|
transition: "all 0.2s ease",
|
|
4959
|
-
left:
|
|
4960
|
-
right:
|
|
4961
|
-
top:
|
|
4962
|
-
bottom:
|
|
4961
|
+
left: p.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
4962
|
+
right: p.value.indexOf("right") > -1 ? `${e.right ? e.right : o.right}px` : "",
|
|
4963
|
+
top: p.value.indexOf("top") > -1 ? `${c}px` : "",
|
|
4964
|
+
bottom: p.value.indexOf("bottom") > -1 ? `${s}px` : ""
|
|
4963
4965
|
};
|
|
4964
|
-
return
|
|
4966
|
+
return p.value.indexOf("center") > -1 && (f.left = "50%", f.marginLeft = "calc(-24rem / 2)", p.value === "center-center" && (f.top = "50%", f.transform = "translate(-50%, -50%)")), f;
|
|
4965
4967
|
});
|
|
4966
4968
|
function h(s) {
|
|
4967
4969
|
t.emit("close");
|
|
4968
4970
|
}
|
|
4969
|
-
|
|
4971
|
+
m.value && setTimeout(() => {
|
|
4970
4972
|
h();
|
|
4971
|
-
},
|
|
4973
|
+
}, m.value), t.expose({
|
|
4972
4974
|
closeToast: h,
|
|
4973
4975
|
container: a,
|
|
4974
|
-
notifyPosition:
|
|
4976
|
+
notifyPosition: p
|
|
4975
4977
|
});
|
|
4976
4978
|
function r(s, c) {
|
|
4977
4979
|
h();
|
|
@@ -5012,10 +5014,10 @@ class Il {
|
|
|
5012
5014
|
const l = nn({
|
|
5013
5015
|
setup() {
|
|
5014
5016
|
var u;
|
|
5015
|
-
const
|
|
5016
|
-
function
|
|
5017
|
-
|
|
5018
|
-
n.updateNotifyPositionForClose(a,
|
|
5017
|
+
const p = d();
|
|
5018
|
+
function m() {
|
|
5019
|
+
p.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
5020
|
+
n.updateNotifyPositionForClose(a, p), l.unmount();
|
|
5019
5021
|
}, 220);
|
|
5020
5022
|
}
|
|
5021
5023
|
if (a.position.indexOf("top") > -1) {
|
|
@@ -5028,16 +5030,16 @@ class Il {
|
|
|
5028
5030
|
return a.safeHtml && ((u = a.options) != null && u.message) && (a.options.message = n.escapeAllHtml(a.options.message)), Ct(() => {
|
|
5029
5031
|
document.body.removeChild(i);
|
|
5030
5032
|
}), Be(() => {
|
|
5031
|
-
n.updateNotifyPositionForCreate(a,
|
|
5033
|
+
n.updateNotifyPositionForCreate(a, p);
|
|
5032
5034
|
}), () => v(tn, {
|
|
5033
5035
|
mode: "out-in",
|
|
5034
5036
|
name: "fade",
|
|
5035
5037
|
appear: !0
|
|
5036
5038
|
}, {
|
|
5037
5039
|
default: () => [v(yt, Lt({
|
|
5038
|
-
ref:
|
|
5040
|
+
ref: p
|
|
5039
5041
|
}, a, {
|
|
5040
|
-
onClose:
|
|
5042
|
+
onClose: m
|
|
5041
5043
|
}), null)]
|
|
5042
5044
|
});
|
|
5043
5045
|
}
|
|
@@ -5071,8 +5073,8 @@ class Il {
|
|
|
5071
5073
|
return this.createNotifyInstance(t);
|
|
5072
5074
|
}
|
|
5073
5075
|
buildNotifyProps(t, n) {
|
|
5074
|
-
let o = "", a = "", i, l,
|
|
5075
|
-
typeof n == "string" ? o = n : n && (o = n.message || "", a = n.title || "", l = n.position || null,
|
|
5076
|
+
let o = "", a = "", i, l, p;
|
|
5077
|
+
typeof n == "string" ? o = n : n && (o = n.message || "", a = n.title || "", l = n.position || null, p = n.showCloseButton != null ? n.showCloseButton : null, i = n.timeout != null ? n.timeout : null);
|
|
5076
5078
|
const u = {
|
|
5077
5079
|
options: {
|
|
5078
5080
|
type: t,
|
|
@@ -5080,7 +5082,7 @@ class Il {
|
|
|
5080
5082
|
title: a
|
|
5081
5083
|
}
|
|
5082
5084
|
};
|
|
5083
|
-
return l != null && (u.position = l),
|
|
5085
|
+
return l != null && (u.position = l), p != null && (u.showCloseButton = p), i != null && (u.timeout = i), u;
|
|
5084
5086
|
}
|
|
5085
5087
|
info(t) {
|
|
5086
5088
|
const n = this.buildNotifyProps("info", t);
|
|
@@ -5263,32 +5265,32 @@ const jl = {
|
|
|
5263
5265
|
}
|
|
5264
5266
|
}
|
|
5265
5267
|
};
|
|
5266
|
-
function Nl(e, t, n, o, a, i, l,
|
|
5268
|
+
function Nl(e, t, n, o, a, i, l, p, m, u, h, r, s, c, f, y, b) {
|
|
5267
5269
|
const {
|
|
5268
5270
|
calculateCellPositionInRow: R
|
|
5269
5271
|
} = i, {
|
|
5270
|
-
columnContext:
|
|
5272
|
+
columnContext: M,
|
|
5271
5273
|
hasLeftFixedColumn: I,
|
|
5272
5274
|
hasRightFixedColumn: $
|
|
5273
5275
|
} = l, {
|
|
5274
5276
|
gridDataStyle: T,
|
|
5275
5277
|
leftFixedGridDataStyle: x,
|
|
5276
|
-
rightFixedGridDataStyle:
|
|
5278
|
+
rightFixedGridDataStyle: w
|
|
5277
5279
|
} = c, {
|
|
5278
|
-
renderDataRow:
|
|
5279
|
-
} = Un(e, t,
|
|
5280
|
-
function j(
|
|
5281
|
-
const J = R(
|
|
5282
|
-
return
|
|
5280
|
+
renderDataRow: C
|
|
5281
|
+
} = Un(e, t, M, b, p, m, u, h, r, s, c, f, y), S = [C];
|
|
5282
|
+
function j(B, P) {
|
|
5283
|
+
const J = R(B);
|
|
5284
|
+
return b.value.filter((A) => A.visible !== !1).map((A, E) => S[A.type](A, J, P, E));
|
|
5283
5285
|
}
|
|
5284
|
-
function
|
|
5286
|
+
function F() {
|
|
5285
5287
|
return v("div", {
|
|
5286
5288
|
ref: o,
|
|
5287
5289
|
class: "fv-grid-content-left-fixed"
|
|
5288
5290
|
}, [v("div", {
|
|
5289
5291
|
class: "fv-grid-data",
|
|
5290
5292
|
style: x.value
|
|
5291
|
-
}, [j(
|
|
5293
|
+
}, [j(M.value.leftColumns.filter((B) => B.visible), "left")])]);
|
|
5292
5294
|
}
|
|
5293
5295
|
function D() {
|
|
5294
5296
|
return v("div", {
|
|
@@ -5297,7 +5299,7 @@ function Nl(e, t, n, o, a, i, l, f, p, u, h, r, s, c, m, y, w) {
|
|
|
5297
5299
|
}, [v("div", {
|
|
5298
5300
|
class: "fv-grid-data",
|
|
5299
5301
|
style: T.value
|
|
5300
|
-
}, [j(
|
|
5302
|
+
}, [j(M.value.primaryColumns.filter((B) => B.visible), "primary")])]);
|
|
5301
5303
|
}
|
|
5302
5304
|
function O() {
|
|
5303
5305
|
return v("div", {
|
|
@@ -5305,12 +5307,12 @@ function Nl(e, t, n, o, a, i, l, f, p, u, h, r, s, c, m, y, w) {
|
|
|
5305
5307
|
class: "fv-grid-content-right-fixed"
|
|
5306
5308
|
}, [v("div", {
|
|
5307
5309
|
class: "fv-grid-data",
|
|
5308
|
-
style:
|
|
5309
|
-
}, [j(
|
|
5310
|
+
style: w.value
|
|
5311
|
+
}, [j(M.value.rightColumns.filter((B) => B.visible), "right")])]);
|
|
5310
5312
|
}
|
|
5311
5313
|
function g() {
|
|
5312
|
-
const
|
|
5313
|
-
return I.value &&
|
|
5314
|
+
const B = [];
|
|
5315
|
+
return I.value && B.push(F()), B.push(D()), $.value && B.push(O()), B;
|
|
5314
5316
|
}
|
|
5315
5317
|
return {
|
|
5316
5318
|
renderDataArea: g
|
|
@@ -5323,19 +5325,19 @@ const Al = /* @__PURE__ */ le({
|
|
|
5323
5325
|
setup(e, t) {
|
|
5324
5326
|
var Ut, Gt;
|
|
5325
5327
|
const o = ((Ut = e.rowOption) == null ? void 0 : Ut.height) || 28, a = d(20), i = d(e.columns), l = Gn(e), {
|
|
5326
|
-
idField:
|
|
5327
|
-
} = l,
|
|
5328
|
+
idField: p
|
|
5329
|
+
} = l, m = d(), u = d(), h = d(), r = d(), s = d(), c = d([]), f = d(!1), y = d(((Gt = e.rowOption) == null ? void 0 : Gt.wrapContent) || !1), b = Xn(e, l), R = Yn(e, t), M = Jn(e), {
|
|
5328
5330
|
collapseField: I
|
|
5329
|
-
} =
|
|
5331
|
+
} = M, {
|
|
5330
5332
|
showLoading: $,
|
|
5331
5333
|
renderLoading: T
|
|
5332
|
-
} = Qn(e,
|
|
5333
|
-
dataView:
|
|
5334
|
-
} = x,
|
|
5334
|
+
} = Qn(e, m), x = Zn(e, /* @__PURE__ */ new Map(), R, M, l), {
|
|
5335
|
+
dataView: w
|
|
5336
|
+
} = x, C = Kn(e, x, l, c, t), {
|
|
5335
5337
|
showSelection: S,
|
|
5336
5338
|
selectedValues: j
|
|
5337
|
-
} =
|
|
5338
|
-
shouldRenderPagination:
|
|
5339
|
+
} = C, F = eo(e, c, x, l, C, t), D = V(() => e.disabled), O = V(() => e.virtualized ? Math.min(x.dataView.value.length, a.value) : x.dataView.value.length), g = to(e, x), {
|
|
5340
|
+
shouldRenderPagination: B
|
|
5339
5341
|
} = g, {
|
|
5340
5342
|
containerStyleObject: P
|
|
5341
5343
|
} = no(e), J = oo(e), {
|
|
@@ -5353,9 +5355,9 @@ const Al = /* @__PURE__ */ le({
|
|
|
5353
5355
|
updateColumnRenderContext: Y
|
|
5354
5356
|
} = z;
|
|
5355
5357
|
ge(x, ee);
|
|
5356
|
-
const ie = ro(e, be), de = so(e, t,
|
|
5358
|
+
const ie = ro(e, be), de = so(e, t, C, l), oe = uo(e, t, l, de, c), U = co(e), ae = fo(e, oe, U), We = po(e, x, oe, M, l, U, ae), Ne = mo(e, i, x, O, 0, We), {
|
|
5357
5359
|
getVisualData: Me
|
|
5358
|
-
} = Ne, Qe = vo(e, be), qe = ho(e,
|
|
5360
|
+
} = Ne, Qe = vo(e, be), qe = ho(e, C), {
|
|
5359
5361
|
sidebarWidth: Ze
|
|
5360
5362
|
} = qe, se = yo(e, x, c, be, Ne, O, 0, Ze), {
|
|
5361
5363
|
onWheel: it,
|
|
@@ -5366,7 +5368,7 @@ const Al = /* @__PURE__ */ le({
|
|
|
5366
5368
|
updateVisibleRowsOnLatestVisibleScope: lt
|
|
5367
5369
|
} = se, _e = go(e, be, u, ke, ie), {
|
|
5368
5370
|
calculateColumnsSize: De
|
|
5369
|
-
} = _e, Ve = bo(), Ke = wo(u, s, x, Ve, se), et = Co(e, t, z, x, ie,
|
|
5371
|
+
} = _e, Ve = bo(), Ke = wo(u, s, x, Ve, se), et = Co(e, t, z, x, ie, b, se), N = V(() => {
|
|
5370
5372
|
const _ = {
|
|
5371
5373
|
"fv-grid": !0,
|
|
5372
5374
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -5376,17 +5378,17 @@ const Al = /* @__PURE__ */ le({
|
|
|
5376
5378
|
return Wn(_, e.customClass);
|
|
5377
5379
|
}), Q = V(() => ({
|
|
5378
5380
|
"fv-grid-content": !0,
|
|
5379
|
-
"fv-grid-content-hover":
|
|
5381
|
+
"fv-grid-content-hover": f.value,
|
|
5380
5382
|
"fv-grid-wrap-content": y.value
|
|
5381
5383
|
})), {
|
|
5382
5384
|
renderDataArea: ue
|
|
5383
|
-
} = Nl(e, t, h, r, s, Qe, z, x, oe,
|
|
5385
|
+
} = Nl(e, t, h, r, s, Qe, z, x, oe, M, de, C, F, se, Ne, U, c), {
|
|
5384
5386
|
renderGridHeader: fe,
|
|
5385
5387
|
renderGridColumnResizeOverlay: Ie,
|
|
5386
5388
|
shouldShowHeader: Tt
|
|
5387
|
-
} = So(e, t, u, r, s, z, x, et, Ke, R, Ve, _e, ie,
|
|
5389
|
+
} = So(e, t, u, r, s, z, x, et, Ke, R, Ve, _e, ie, C, qe, ee, se, ke, c), {
|
|
5388
5390
|
renderDataGridSidebar: Ft
|
|
5389
|
-
} = xo(e, de,
|
|
5391
|
+
} = xo(e, de, C, qe, se), {
|
|
5390
5392
|
renderDisableMask: Bt
|
|
5391
5393
|
} = To(), {
|
|
5392
5394
|
renderHorizontalScrollbar: Mt
|
|
@@ -5415,7 +5417,7 @@ const Al = /* @__PURE__ */ le({
|
|
|
5415
5417
|
x.expandTo(_), x.reOrderVisibleIndex(), Le();
|
|
5416
5418
|
}
|
|
5417
5419
|
function rt() {
|
|
5418
|
-
const _ =
|
|
5420
|
+
const _ = C.getSelectionRow();
|
|
5419
5421
|
return _ ? _.dataIndex - 1 : -1;
|
|
5420
5422
|
}
|
|
5421
5423
|
function Ot() {
|
|
@@ -5427,12 +5429,12 @@ const Al = /* @__PURE__ */ le({
|
|
|
5427
5429
|
x.insertNewChildDataItem(_), c.value = Me(0, O.value + 0 - 1);
|
|
5428
5430
|
}
|
|
5429
5431
|
function It(_, X) {
|
|
5430
|
-
const me = c.value.find((xe) => xe.raw[
|
|
5432
|
+
const me = c.value.find((xe) => xe.raw[p.value] === X), ye = me ? me.dataIndex - 1 : -1;
|
|
5431
5433
|
x.insertNewChildDataItems(_, ye);
|
|
5432
5434
|
}
|
|
5433
5435
|
function $t() {
|
|
5434
|
-
const _ = rt(), X =
|
|
5435
|
-
x.removeHierarchyDataItem(_), c.value = Me(0, O.value + 0 - 1), X &&
|
|
5436
|
+
const _ = rt(), X = F.getNextSelectableHierarchyItemId(_);
|
|
5437
|
+
x.removeHierarchyDataItem(_), c.value = Me(0, O.value + 0 - 1), X && F.selectItemById(X);
|
|
5436
5438
|
}
|
|
5437
5439
|
function mt(_) {
|
|
5438
5440
|
oe.onEditingRow(_);
|
|
@@ -5453,7 +5455,7 @@ const Al = /* @__PURE__ */ le({
|
|
|
5453
5455
|
_ && (x.load(_), x.reOrderVisibleIndex(), X != null && X.keepScrollPosition ? se.scrollTo(se.offsetY.value) : Le());
|
|
5454
5456
|
}
|
|
5455
5457
|
function G(_) {
|
|
5456
|
-
|
|
5458
|
+
F.selectItemById(_);
|
|
5457
5459
|
}
|
|
5458
5460
|
function K(_) {
|
|
5459
5461
|
const X = c.value.find((me) => me.raw[l.idField.value] === _);
|
|
@@ -5463,28 +5465,28 @@ const Al = /* @__PURE__ */ le({
|
|
|
5463
5465
|
de.activeRowById(_);
|
|
5464
5466
|
}
|
|
5465
5467
|
function Fe(_) {
|
|
5466
|
-
|
|
5468
|
+
F.selectItemByIds(_);
|
|
5467
5469
|
}
|
|
5468
5470
|
function we() {
|
|
5469
|
-
return
|
|
5471
|
+
return C.getSelectedItems();
|
|
5470
5472
|
}
|
|
5471
5473
|
function Ce() {
|
|
5472
|
-
|
|
5474
|
+
C.clearSelection();
|
|
5473
5475
|
}
|
|
5474
5476
|
const Ee = V(() => !c.value || !c.value.length), {
|
|
5475
5477
|
renderEmpty: pe
|
|
5476
5478
|
} = Mo(e, t);
|
|
5477
5479
|
function Re() {
|
|
5478
|
-
return
|
|
5480
|
+
return C.getSelectionRow();
|
|
5479
5481
|
}
|
|
5480
5482
|
function Se(_) {
|
|
5481
|
-
|
|
5483
|
+
F.unSelectItemByIds(_);
|
|
5482
5484
|
}
|
|
5483
5485
|
function he() {
|
|
5484
|
-
return
|
|
5486
|
+
return C.currentSelectedDataId.value;
|
|
5485
5487
|
}
|
|
5486
5488
|
function st(_, X, me) {
|
|
5487
|
-
const ye =
|
|
5489
|
+
const ye = w.value.find((xe) => xe[p.value] === _);
|
|
5488
5490
|
if (ye) {
|
|
5489
5491
|
if (Object.keys(ye).forEach((ve) => {
|
|
5490
5492
|
Object.prototype.hasOwnProperty.call(X, ve) && (ye[ve] = X[ve]);
|
|
@@ -5497,7 +5499,7 @@ const Al = /* @__PURE__ */ le({
|
|
|
5497
5499
|
} = me;
|
|
5498
5500
|
ve && !$e(X[ve]) && (ye.__fv_collapse__ = X[ve]), Ge && !$e(X[Ge]) && (ye.__fv_checked__ = X[Ge]), Ue && !$e(X[Ue]) && (ye.__fv_disabled__ = X[Ue]), Xe && !$e(X[Xe]) && (ye.__fv_visible__ = X[Xe]);
|
|
5499
5501
|
}
|
|
5500
|
-
const xe = c.value.find((ve) => ve.raw[
|
|
5502
|
+
const xe = c.value.find((ve) => ve.raw[p.value] === _), Xt = c.value.findIndex((ve) => ve.raw[p.value] === _);
|
|
5501
5503
|
if (xe) {
|
|
5502
5504
|
if (xe.raw = ye, Object.keys(xe.data).forEach((ve) => {
|
|
5503
5505
|
xe.data[ve].updateData(ye);
|
|
@@ -5518,7 +5520,7 @@ const Al = /* @__PURE__ */ le({
|
|
|
5518
5520
|
return Object.prototype.hasOwnProperty.call(_, "raw") ? x.hasRealChildren(_.raw) : x.hasRealChildren(_);
|
|
5519
5521
|
}
|
|
5520
5522
|
function ct(_) {
|
|
5521
|
-
const X = x.dataView.value.find((me) => me[
|
|
5523
|
+
const X = x.dataView.value.find((me) => me[p.value] === _);
|
|
5522
5524
|
return X ? X[I.value] : "";
|
|
5523
5525
|
}
|
|
5524
5526
|
function Sn() {
|
|
@@ -5535,7 +5537,7 @@ const Al = /* @__PURE__ */ le({
|
|
|
5535
5537
|
me && de.changeRow(me);
|
|
5536
5538
|
}
|
|
5537
5539
|
function Fn() {
|
|
5538
|
-
|
|
5540
|
+
C.keepSelectingOnPaging.value || Ce(), x.updateVisibleDataSummary(c.value);
|
|
5539
5541
|
}
|
|
5540
5542
|
t.expose({
|
|
5541
5543
|
activeRowById: te,
|
|
@@ -5573,11 +5575,11 @@ const Al = /* @__PURE__ */ le({
|
|
|
5573
5575
|
...P.value,
|
|
5574
5576
|
borderRadius: "5px"
|
|
5575
5577
|
}));
|
|
5576
|
-
ko(e, t, x, se, g,
|
|
5578
|
+
ko(e, t, x, se, g, C);
|
|
5577
5579
|
const kn = V(() => ({
|
|
5578
5580
|
"d-flex": !0,
|
|
5579
|
-
"justify-content-between":
|
|
5580
|
-
"justify-content-end":
|
|
5581
|
+
"justify-content-between": B.value && S.value,
|
|
5582
|
+
"justify-content-end": B.value && !S.value,
|
|
5581
5583
|
"position-relative": !0
|
|
5582
5584
|
})), En = V(() => ({
|
|
5583
5585
|
"d-flex": !0,
|
|
@@ -5586,15 +5588,15 @@ const Al = /* @__PURE__ */ le({
|
|
|
5586
5588
|
renderDataGridSummary: Rn
|
|
5587
5589
|
} = Eo(e, x, z);
|
|
5588
5590
|
return () => v("div", {
|
|
5589
|
-
ref:
|
|
5591
|
+
ref: m,
|
|
5590
5592
|
class: N.value,
|
|
5591
5593
|
style: Mn.value,
|
|
5592
5594
|
onWheel: it
|
|
5593
5595
|
}, [u.value && Tt.value && fe(), v("div", {
|
|
5594
5596
|
ref: u,
|
|
5595
5597
|
class: Q.value,
|
|
5596
|
-
onMouseover: () =>
|
|
5597
|
-
onMouseleave: () =>
|
|
5598
|
+
onMouseover: () => f.value = !0,
|
|
5599
|
+
onMouseleave: () => f.value = !1,
|
|
5598
5600
|
style: Bn.value
|
|
5599
5601
|
}, [u.value && Ft(c), u.value && ue(), u.value && Ee.value && pe(), u.value && Mt(), u.value && kt()]), u.value && Rn(), S.value && v("div", {
|
|
5600
5602
|
class: kn.value
|
|
@@ -5743,13 +5745,13 @@ const Vl = "https://json-schema.org/draft/2020-12/schema", Hl = "https://farris-
|
|
|
5743
5745
|
};
|
|
5744
5746
|
je(Kl, Gl, Pl, Ll, Zl);
|
|
5745
5747
|
function er(e, t, n) {
|
|
5746
|
-
var
|
|
5748
|
+
var F;
|
|
5747
5749
|
const o = "", a = "", i = d();
|
|
5748
5750
|
let l;
|
|
5749
|
-
function
|
|
5751
|
+
function p() {
|
|
5750
5752
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
5751
5753
|
}
|
|
5752
|
-
function
|
|
5754
|
+
function m() {
|
|
5753
5755
|
return !1;
|
|
5754
5756
|
}
|
|
5755
5757
|
function u() {
|
|
@@ -5771,28 +5773,28 @@ function er(e, t, n) {
|
|
|
5771
5773
|
const { componentInstance: O, designerItemElementRef: g } = D;
|
|
5772
5774
|
if (!O || !O.value)
|
|
5773
5775
|
return null;
|
|
5774
|
-
const { getCustomButtons:
|
|
5775
|
-
return O.value.canMove ||
|
|
5776
|
+
const { getCustomButtons: B } = O.value;
|
|
5777
|
+
return O.value.canMove || B && ((P = B()) != null && P.length) ? g : s(D.parent);
|
|
5776
5778
|
}
|
|
5777
5779
|
function c(D) {
|
|
5778
5780
|
return !!n;
|
|
5779
5781
|
}
|
|
5780
|
-
function
|
|
5782
|
+
function f() {
|
|
5781
5783
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
5782
5784
|
}
|
|
5783
5785
|
function y() {
|
|
5784
5786
|
}
|
|
5785
|
-
function
|
|
5787
|
+
function b(D, O) {
|
|
5786
5788
|
var g;
|
|
5787
5789
|
!D || !O || (g = t == null ? void 0 : t.setupContext) == null || g.emit("dragEnd");
|
|
5788
5790
|
}
|
|
5789
5791
|
function R(D, O) {
|
|
5790
5792
|
const { componentType: g } = D;
|
|
5791
|
-
let
|
|
5793
|
+
let B = Ln(g, D, O);
|
|
5792
5794
|
const P = g.toLowerCase().replace(/-/g, "_");
|
|
5793
|
-
return
|
|
5795
|
+
return B && !B.id && B.type === g && (B.id = `${P}_${Math.random().toString().slice(2, 6)}`), B;
|
|
5794
5796
|
}
|
|
5795
|
-
function
|
|
5797
|
+
function M(D) {
|
|
5796
5798
|
}
|
|
5797
5799
|
function I(...D) {
|
|
5798
5800
|
}
|
|
@@ -5801,8 +5803,8 @@ function er(e, t, n) {
|
|
|
5801
5803
|
return;
|
|
5802
5804
|
const O = t == null ? void 0 : t.schema, { formSchemaUtils: g } = D;
|
|
5803
5805
|
if (O && g.getExpressions().length) {
|
|
5804
|
-
const
|
|
5805
|
-
|
|
5806
|
+
const B = g.getExpressions().findIndex((P) => P.target === O.id);
|
|
5807
|
+
B > -1 && g.getExpressions().splice(B, 1);
|
|
5806
5808
|
}
|
|
5807
5809
|
}
|
|
5808
5810
|
function T(D) {
|
|
@@ -5815,24 +5817,24 @@ function er(e, t, n) {
|
|
|
5815
5817
|
$(D), T(D), t != null && t.schema.contents && t.schema.contents.map((O) => {
|
|
5816
5818
|
let g = O.id;
|
|
5817
5819
|
O.type === "component-ref" && (g = O.component);
|
|
5818
|
-
const
|
|
5819
|
-
|
|
5820
|
+
const B = e.value.querySelectorAll(`#${g}-design-item`);
|
|
5821
|
+
B != null && B.length && Array.from(B).map((P) => {
|
|
5820
5822
|
var J;
|
|
5821
5823
|
(J = P == null ? void 0 : P.componentInstance) != null && J.value.onRemoveComponent && P.componentInstance.value.onRemoveComponent(D);
|
|
5822
5824
|
});
|
|
5823
5825
|
});
|
|
5824
5826
|
}
|
|
5825
|
-
function
|
|
5827
|
+
function w() {
|
|
5826
5828
|
}
|
|
5827
|
-
function
|
|
5828
|
-
var g,
|
|
5829
|
+
function C(D) {
|
|
5830
|
+
var g, B;
|
|
5829
5831
|
if (!((g = t == null ? void 0 : t.schema) != null && g.id))
|
|
5830
5832
|
return;
|
|
5831
5833
|
!l && D && (l = D.formSchemaUtils);
|
|
5832
5834
|
let O = "";
|
|
5833
5835
|
{
|
|
5834
5836
|
const { text: P, title: J, label: A, mainTitle: E, name: q, type: z } = t.schema;
|
|
5835
|
-
O = P || J || A || E || q || ((
|
|
5837
|
+
O = P || J || A || E || q || ((B = H[z]) == null ? void 0 : B.name);
|
|
5836
5838
|
}
|
|
5837
5839
|
O && l.getControlBasicInfoMap().set(t.schema.id, {
|
|
5838
5840
|
componentTitle: O,
|
|
@@ -5841,15 +5843,15 @@ function er(e, t, n) {
|
|
|
5841
5843
|
}
|
|
5842
5844
|
function S(D) {
|
|
5843
5845
|
var P;
|
|
5844
|
-
const { changeObject: O } = D, { propertyID: g, propertyValue:
|
|
5845
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((P = D == null ? void 0 : D.changeObject) == null ? void 0 : P.propertyID) && g &&
|
|
5846
|
+
const { changeObject: O } = D, { propertyID: g, propertyValue: B } = O;
|
|
5847
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((P = D == null ? void 0 : D.changeObject) == null ? void 0 : P.propertyID) && g && B && (C(), l)) {
|
|
5846
5848
|
const J = l.getControlBasicInfoMap(), A = J.keys().toArray().filter((E) => {
|
|
5847
5849
|
var q, z;
|
|
5848
5850
|
return ((q = J.get(E)) == null ? void 0 : q.reliedComponentId) === ((z = t == null ? void 0 : t.schema) == null ? void 0 : z.id);
|
|
5849
5851
|
});
|
|
5850
5852
|
A != null && A.length && A.forEach((E) => {
|
|
5851
5853
|
const q = J.get(E).parentPathName.split(" > ");
|
|
5852
|
-
q[0] =
|
|
5854
|
+
q[0] = B, J.get(E).parentPathName = q.join(" > ");
|
|
5853
5855
|
});
|
|
5854
5856
|
}
|
|
5855
5857
|
}
|
|
@@ -5857,31 +5859,31 @@ function er(e, t, n) {
|
|
|
5857
5859
|
S(D);
|
|
5858
5860
|
}
|
|
5859
5861
|
return i.value = {
|
|
5860
|
-
canMove:
|
|
5861
|
-
canSelectParent:
|
|
5862
|
+
canMove: p(),
|
|
5863
|
+
canSelectParent: m(),
|
|
5862
5864
|
canDelete: u(),
|
|
5863
5865
|
canNested: !h(),
|
|
5864
5866
|
contents: t == null ? void 0 : t.schema.contents,
|
|
5865
5867
|
elementRef: e,
|
|
5866
|
-
parent: (
|
|
5868
|
+
parent: (F = t == null ? void 0 : t.parent) == null ? void 0 : F.componentInstance,
|
|
5867
5869
|
schema: t == null ? void 0 : t.schema,
|
|
5868
5870
|
styles: o,
|
|
5869
5871
|
designerClass: a,
|
|
5870
5872
|
canAccepts: c,
|
|
5871
5873
|
getBelongedComponentInstance: r,
|
|
5872
5874
|
getDraggableDesignItemElement: s,
|
|
5873
|
-
getDraggingDisplayText:
|
|
5875
|
+
getDraggingDisplayText: f,
|
|
5874
5876
|
getPropConfig: I,
|
|
5875
5877
|
getDragScopeElement: y,
|
|
5876
|
-
onAcceptMovedChildElement:
|
|
5877
|
-
onChildElementMovedOut:
|
|
5878
|
+
onAcceptMovedChildElement: b,
|
|
5879
|
+
onChildElementMovedOut: M,
|
|
5878
5880
|
addNewChildComponentSchema: R,
|
|
5879
5881
|
triggerBelongedComponentToMoveWhenMoved: d(!1),
|
|
5880
5882
|
triggerBelongedComponentToDeleteWhenDeleted: d(!1),
|
|
5881
5883
|
onRemoveComponent: x,
|
|
5882
|
-
getCustomButtons:
|
|
5884
|
+
getCustomButtons: w,
|
|
5883
5885
|
onPropertyChanged: j,
|
|
5884
|
-
setComponentBasicInfoMap:
|
|
5886
|
+
setComponentBasicInfoMap: C,
|
|
5885
5887
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
5886
5888
|
}, i;
|
|
5887
5889
|
}
|
|
@@ -5942,9 +5944,9 @@ class nr {
|
|
|
5942
5944
|
contents: a
|
|
5943
5945
|
}), n.contents = [o];
|
|
5944
5946
|
const { selectedFields: i } = t;
|
|
5945
|
-
i == null || i.forEach((
|
|
5946
|
-
if (
|
|
5947
|
-
const
|
|
5947
|
+
i == null || i.forEach((p) => {
|
|
5948
|
+
if (p.$type === Jt.SimpleField) {
|
|
5949
|
+
const m = Te(p), u = this.resolveControlClassByFormColumns(t), h = this.controlCreatorUtils.setFormFieldProperty(m, "", u);
|
|
5948
5950
|
h && a.push(h);
|
|
5949
5951
|
}
|
|
5950
5952
|
});
|
|
@@ -6012,12 +6014,12 @@ class nr {
|
|
|
6012
6014
|
}
|
|
6013
6015
|
}
|
|
6014
6016
|
function or(e, t, n, o) {
|
|
6015
|
-
var i, l,
|
|
6017
|
+
var i, l, p, m, u, h;
|
|
6016
6018
|
const a = n.parentComponentInstance;
|
|
6017
6019
|
if (a && o) {
|
|
6018
6020
|
const r = (i = a.schema) == null ? void 0 : i.type, c = {
|
|
6019
6021
|
componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
|
|
6020
|
-
componentName: ((l = n.bindingSourceContext) == null ? void 0 : l.entityTitle) || ((
|
|
6022
|
+
componentName: ((l = n.bindingSourceContext) == null ? void 0 : l.entityTitle) || ((m = (p = n.bindingSourceContext) == null ? void 0 : p.bindingEntity) == null ? void 0 : m.name) || "标题",
|
|
6021
6023
|
componentType: "form",
|
|
6022
6024
|
formColumns: r === "splitter-pane" ? 1 : 4,
|
|
6023
6025
|
parentContainerId: a.schema.id,
|
|
@@ -6206,14 +6208,14 @@ function kr() {
|
|
|
6206
6208
|
return { onCopy: e };
|
|
6207
6209
|
}
|
|
6208
6210
|
function Er(e, t, n, o) {
|
|
6209
|
-
const a = d(14), i = d(140), l = d(""),
|
|
6211
|
+
const a = d(14), i = d(140), l = d(""), p = d(o.value.length), m = V(() => o.value), u = V(() => ({
|
|
6210
6212
|
"font-size": `${a.value}px`,
|
|
6211
6213
|
height: "100%"
|
|
6212
6214
|
}));
|
|
6213
6215
|
function h(r) {
|
|
6214
6216
|
if (r.currentTarget) {
|
|
6215
6217
|
const s = r.currentTarget.value || "";
|
|
6216
|
-
|
|
6218
|
+
p.value = s.length;
|
|
6217
6219
|
}
|
|
6218
6220
|
}
|
|
6219
6221
|
return () => v(ot, null, [v("textarea", {
|
|
@@ -6224,16 +6226,16 @@ function Er(e, t, n, o) {
|
|
|
6224
6226
|
rows: "4",
|
|
6225
6227
|
maxlength: i.value,
|
|
6226
6228
|
onInput: (r) => h(r)
|
|
6227
|
-
}, [
|
|
6229
|
+
}, [m.value]), v("span", {
|
|
6228
6230
|
class: "textarea-wordcount",
|
|
6229
6231
|
title: l.value,
|
|
6230
6232
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
6231
|
-
}, [
|
|
6233
|
+
}, [p.value + " / " + i.value])]);
|
|
6232
6234
|
}
|
|
6233
6235
|
function Rr(e, t, n, o) {
|
|
6234
6236
|
const a = Er(e, t, n, o), i = /* @__PURE__ */ new Map([["text-area", a]]);
|
|
6235
|
-
function l(
|
|
6236
|
-
return i.get(
|
|
6237
|
+
function l(p) {
|
|
6238
|
+
return i.get(p) || null;
|
|
6237
6239
|
}
|
|
6238
6240
|
return { getEditorRender: l };
|
|
6239
6241
|
}
|
|
@@ -6272,24 +6274,24 @@ function Ir(e, t) {
|
|
|
6272
6274
|
function n(c) {
|
|
6273
6275
|
if (c == null)
|
|
6274
6276
|
return 0;
|
|
6275
|
-
let
|
|
6277
|
+
let f = 0;
|
|
6276
6278
|
for (let y = 0; y < c.length; y++) {
|
|
6277
|
-
const
|
|
6278
|
-
|
|
6279
|
+
const b = c.charCodeAt(y);
|
|
6280
|
+
b >= 0 && b <= 128 ? f++ : f = f + 2;
|
|
6279
6281
|
}
|
|
6280
|
-
return
|
|
6282
|
+
return f;
|
|
6281
6283
|
}
|
|
6282
|
-
function o(c,
|
|
6284
|
+
function o(c, f) {
|
|
6283
6285
|
if (c !== "" && c !== void 0 && c !== null) {
|
|
6284
6286
|
c = "" + c;
|
|
6285
6287
|
const y = c.length;
|
|
6286
|
-
let
|
|
6287
|
-
for (let
|
|
6288
|
-
const I = c.charAt(
|
|
6289
|
-
if (R++, encodeURI(I).length > 4 && R++,
|
|
6290
|
-
return
|
|
6288
|
+
let b = "", R = 0;
|
|
6289
|
+
for (let M = 0; M < y; M++) {
|
|
6290
|
+
const I = c.charAt(M);
|
|
6291
|
+
if (R++, encodeURI(I).length > 4 && R++, b = b.concat(I), R >= f)
|
|
6292
|
+
return b = b.concat("..."), b;
|
|
6291
6293
|
}
|
|
6292
|
-
if (R <
|
|
6294
|
+
if (R < f)
|
|
6293
6295
|
return c;
|
|
6294
6296
|
}
|
|
6295
6297
|
return "";
|
|
@@ -6297,18 +6299,18 @@ function Ir(e, t) {
|
|
|
6297
6299
|
const a = V(() => !!e.value && !!e.value.date), i = V(() => {
|
|
6298
6300
|
const c = e.value && e.value.date || "";
|
|
6299
6301
|
return `${t.exception.happend} : ${c}`;
|
|
6300
|
-
}), l = V(() => !!e.value && !!e.value.detail),
|
|
6302
|
+
}), l = V(() => !!e.value && !!e.value.detail), p = V(() => e.value ? n(e.value.detail) > 160 : !1), m = d(!1), u = V(() => m.value ? t.exception.collapse : t.exception.expand), h = V(() => {
|
|
6301
6303
|
const c = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
6302
|
-
return
|
|
6304
|
+
return m.value ? c : o(c, 160);
|
|
6303
6305
|
}), r = V(() => ({
|
|
6304
6306
|
position: "absolute",
|
|
6305
6307
|
right: 0,
|
|
6306
|
-
bottom:
|
|
6308
|
+
bottom: m.value ? 0 : "2px",
|
|
6307
6309
|
color: "#2A87FF",
|
|
6308
6310
|
cursor: "pointer"
|
|
6309
6311
|
}));
|
|
6310
6312
|
function s() {
|
|
6311
|
-
|
|
6313
|
+
m.value = !m.value;
|
|
6312
6314
|
}
|
|
6313
6315
|
return () => v("div", {
|
|
6314
6316
|
class: "toast-msg-detail"
|
|
@@ -6318,7 +6320,7 @@ function Ir(e, t) {
|
|
|
6318
6320
|
class: "exception_error_msg"
|
|
6319
6321
|
}, [v("div", {
|
|
6320
6322
|
innerHTML: h.value
|
|
6321
|
-
}, null),
|
|
6323
|
+
}, null), p.value && v("span", {
|
|
6322
6324
|
style: r.value,
|
|
6323
6325
|
onClick: s
|
|
6324
6326
|
}, [u.value])])])]);
|
|
@@ -6331,13 +6333,13 @@ function $r(e) {
|
|
|
6331
6333
|
}
|
|
6332
6334
|
function jr(e, t, n, o, a) {
|
|
6333
6335
|
const i = d(e.exceptionInfo), l = V(() => {
|
|
6334
|
-
const
|
|
6336
|
+
const f = t.value === "question" ? "warning" : t.value, y = {
|
|
6335
6337
|
"f-icon": !0
|
|
6336
|
-
},
|
|
6337
|
-
return y[
|
|
6338
|
-
}),
|
|
6338
|
+
}, b = `f-icon-${f}`;
|
|
6339
|
+
return y[b] = !0, y;
|
|
6340
|
+
}), p = V(() => n.value || i.value && i.value.message), m = V(() => o.value), u = V(() => !!o.value), h = V(() => !!i.value);
|
|
6339
6341
|
function r() {
|
|
6340
|
-
return h.value ? Ir(i, a) : u.value ? $r(
|
|
6342
|
+
return h.value ? Ir(i, a) : u.value ? $r(m) : () => null;
|
|
6341
6343
|
}
|
|
6342
6344
|
const s = r(), c = V(() => a.locale === "en" ? {
|
|
6343
6345
|
wordBreak: "keep-all",
|
|
@@ -6351,7 +6353,7 @@ function jr(e, t, n, o, a) {
|
|
|
6351
6353
|
class: "modal-tips-content"
|
|
6352
6354
|
}, [v("p", {
|
|
6353
6355
|
class: "toast-msg-title",
|
|
6354
|
-
innerHTML:
|
|
6356
|
+
innerHTML: p.value,
|
|
6355
6357
|
style: c.value
|
|
6356
6358
|
}, null), s()])]);
|
|
6357
6359
|
}
|
|
@@ -6360,11 +6362,11 @@ function Nr(e, t, n, o) {
|
|
|
6360
6362
|
onCopy: a
|
|
6361
6363
|
} = t, {
|
|
6362
6364
|
toShowFeedback: i
|
|
6363
|
-
} = n, l = d(o.exception.copySuccess || "复制成功"),
|
|
6365
|
+
} = n, l = d(o.exception.copySuccess || "复制成功"), p = d(o.exception.copy || "复制详细信息"), m = d(e.exceptionInfo || {
|
|
6364
6366
|
date: "",
|
|
6365
6367
|
message: "",
|
|
6366
6368
|
detail: ""
|
|
6367
|
-
}), u = V(() =>
|
|
6369
|
+
}), u = V(() => m.value && m.value.detail || "");
|
|
6368
6370
|
function h(r) {
|
|
6369
6371
|
a(u.value).catch((s) => {
|
|
6370
6372
|
l.value = o.exception.copyFailed || "复制失败";
|
|
@@ -6379,34 +6381,34 @@ function Nr(e, t, n, o) {
|
|
|
6379
6381
|
}, [v("span", {
|
|
6380
6382
|
onClick: h,
|
|
6381
6383
|
style: "cursor: pointer;"
|
|
6382
|
-
}, [
|
|
6384
|
+
}, [p.value])]);
|
|
6383
6385
|
}
|
|
6384
6386
|
function Ar(e, t, n, o, a) {
|
|
6385
|
-
const i = d(e.type), l = d(e.buttons),
|
|
6386
|
-
|
|
6387
|
-
function
|
|
6387
|
+
const i = d(e.type), l = d(e.buttons), p = d(e.exceptionInfo), m = d(a.ok || e.okButtonText), u = d(a.cancel || e.cancelButtonText), h = d(e.showCancelButton), r = d(e.showOkButton), s = V(() => !!(l.value && l.value.length)), c = V(() => !!(p.value && p.value.detail)), f = V(() => !(l.value && l.value.length) && (r.value || h.value)), y = Nr(e, n, o, a);
|
|
6388
|
+
m.value === "关闭" ? m.value = a.close : m.value === "知道了" && (m.value = a.exception.roger);
|
|
6389
|
+
function b(M) {
|
|
6388
6390
|
i.value === "question" && t.emit("reject"), t.emit("close");
|
|
6389
6391
|
}
|
|
6390
|
-
function R(
|
|
6392
|
+
function R(M) {
|
|
6391
6393
|
i.value === "question" && t.emit("accept"), t.emit("close");
|
|
6392
6394
|
}
|
|
6393
6395
|
return () => v("div", {
|
|
6394
6396
|
class: "modal-footer"
|
|
6395
|
-
}, [c.value && y(),
|
|
6397
|
+
}, [c.value && y(), f.value && h.value && v("button", {
|
|
6396
6398
|
type: "button",
|
|
6397
6399
|
class: "btn btn-secondary btn-lg",
|
|
6398
|
-
onClick:
|
|
6399
|
-
}, [u.value]),
|
|
6400
|
+
onClick: b
|
|
6401
|
+
}, [u.value]), f.value && r.value && v("button", {
|
|
6400
6402
|
type: "button",
|
|
6401
6403
|
class: "btn btn-primary btn-lg",
|
|
6402
6404
|
onClick: R
|
|
6403
|
-
}, [
|
|
6405
|
+
}, [m.value]), s.value && l.value.length && l.value.map((M) => v("button", {
|
|
6404
6406
|
type: "button",
|
|
6405
|
-
onClick:
|
|
6406
|
-
class:
|
|
6407
|
-
}, [
|
|
6408
|
-
class:
|
|
6409
|
-
}, null),
|
|
6407
|
+
onClick: M.handle,
|
|
6408
|
+
class: M.class
|
|
6409
|
+
}, [M.iconClass && v("span", {
|
|
6410
|
+
class: M.iconClass
|
|
6411
|
+
}, null), M.text]))]);
|
|
6410
6412
|
}
|
|
6411
6413
|
function Pr(e) {
|
|
6412
6414
|
const { t, locale: n } = ft();
|
|
@@ -6444,14 +6446,14 @@ const gt = /* @__PURE__ */ le({
|
|
|
6444
6446
|
"modal-tips": !0,
|
|
6445
6447
|
"d-flex": !0,
|
|
6446
6448
|
"flex-row": !0
|
|
6447
|
-
},
|
|
6448
|
-
return R[
|
|
6449
|
-
}),
|
|
6449
|
+
}, M = `messager-type-${o.value}`;
|
|
6450
|
+
return R[M] = !0, R;
|
|
6451
|
+
}), p = V(() => {
|
|
6450
6452
|
const R = {
|
|
6451
6453
|
cursor: "default"
|
|
6452
6454
|
};
|
|
6453
6455
|
return o.value === "prompt" ? R.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (R.padding = "0.5rem 1.5rem 1rem 1.5rem"), R;
|
|
6454
|
-
}),
|
|
6456
|
+
}), m = kr(), u = Rr(e, o, a, i), h = Or(), {
|
|
6455
6457
|
feedbackStyle: r,
|
|
6456
6458
|
feedbackMessage: s
|
|
6457
6459
|
} = h;
|
|
@@ -6461,7 +6463,7 @@ const gt = /* @__PURE__ */ le({
|
|
|
6461
6463
|
style: r.value
|
|
6462
6464
|
}, [s.value]);
|
|
6463
6465
|
}
|
|
6464
|
-
function
|
|
6466
|
+
function f() {
|
|
6465
6467
|
switch (o.value) {
|
|
6466
6468
|
case "prompt":
|
|
6467
6469
|
return Dr(e, u);
|
|
@@ -6469,7 +6471,7 @@ const gt = /* @__PURE__ */ le({
|
|
|
6469
6471
|
return jr(e, o, a, i, n);
|
|
6470
6472
|
}
|
|
6471
6473
|
}
|
|
6472
|
-
const y =
|
|
6474
|
+
const y = f(), b = Ar(e, t, m, h, n);
|
|
6473
6475
|
return () => v("div", {
|
|
6474
6476
|
class: "farris-messager"
|
|
6475
6477
|
}, [!e.exceptionInfo && v("div", {
|
|
@@ -6477,21 +6479,21 @@ const gt = /* @__PURE__ */ le({
|
|
|
6477
6479
|
class: "messager-draggable"
|
|
6478
6480
|
}, null), v("section", {
|
|
6479
6481
|
class: l.value,
|
|
6480
|
-
style:
|
|
6481
|
-
}, [y()]),
|
|
6482
|
+
style: p.value
|
|
6483
|
+
}, [y()]), b(), c()]);
|
|
6482
6484
|
}
|
|
6483
6485
|
}), Oe = class Oe {
|
|
6484
6486
|
static show(t) {
|
|
6485
6487
|
const n = ze({
|
|
6486
6488
|
...t
|
|
6487
6489
|
}), o = !1, a = n.type === "error" || n.type === "prompt", i = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", l = n.acceptCallback || (() => {
|
|
6488
|
-
}),
|
|
6490
|
+
}), p = n.rejectCallback || (() => {
|
|
6489
6491
|
});
|
|
6490
|
-
let
|
|
6492
|
+
let m = null, u = new xt(Oe.app);
|
|
6491
6493
|
const h = () => {
|
|
6492
|
-
|
|
6494
|
+
m && (m == null || m.destroy(), u = null);
|
|
6493
6495
|
};
|
|
6494
|
-
return
|
|
6496
|
+
return m = u == null ? void 0 : u.open({
|
|
6495
6497
|
class: "modal-message modal-message-type-info",
|
|
6496
6498
|
title: i,
|
|
6497
6499
|
showButtons: o,
|
|
@@ -6503,7 +6505,7 @@ const gt = /* @__PURE__ */ le({
|
|
|
6503
6505
|
dragHandle: ".messager-draggable",
|
|
6504
6506
|
render: () => v(gt, Lt(n, {
|
|
6505
6507
|
onAccept: l,
|
|
6506
|
-
onReject:
|
|
6508
|
+
onReject: p,
|
|
6507
6509
|
onClose: h
|
|
6508
6510
|
}), null)
|
|
6509
6511
|
}), u == null ? void 0 : u.getCurrentModal();
|
|
@@ -6594,11 +6596,11 @@ const Vr = /* @__PURE__ */ le({
|
|
|
6594
6596
|
props: Wt,
|
|
6595
6597
|
emits: [],
|
|
6596
6598
|
setup(e, t) {
|
|
6597
|
-
const n = d(e.initialState), o = d(e.width), a = d(e.height), i = d(), l = en("design-item-context"),
|
|
6599
|
+
const n = d(e.initialState), o = d(e.width), a = d(e.height), i = d(), l = en("design-item-context"), p = er(i, l);
|
|
6598
6600
|
Be(() => {
|
|
6599
|
-
i.value.componentInstance =
|
|
6600
|
-
}), t.expose(
|
|
6601
|
-
function
|
|
6601
|
+
i.value.componentInstance = p;
|
|
6602
|
+
}), t.expose(p.value);
|
|
6603
|
+
function m() {
|
|
6602
6604
|
const u = xt.show({
|
|
6603
6605
|
// title: '响应式列宽编辑器',
|
|
6604
6606
|
render: () => v(bt, {
|
|
@@ -6628,7 +6630,7 @@ const Vr = /* @__PURE__ */ le({
|
|
|
6628
6630
|
return () => v("div", {
|
|
6629
6631
|
ref: i,
|
|
6630
6632
|
class: "f-column-width-setting-button",
|
|
6631
|
-
onClick:
|
|
6633
|
+
onClick: m
|
|
6632
6634
|
}, [v("div", {
|
|
6633
6635
|
class: "f-icon f-icon-add"
|
|
6634
6636
|
}, null), v("div", {
|
|
@@ -6652,19 +6654,19 @@ const Vr = /* @__PURE__ */ le({
|
|
|
6652
6654
|
function l(u) {
|
|
6653
6655
|
u && u.unmount();
|
|
6654
6656
|
}
|
|
6655
|
-
function
|
|
6657
|
+
function p() {
|
|
6656
6658
|
if (e.width > 0 && e.width > 0)
|
|
6657
6659
|
return;
|
|
6658
6660
|
const u = document.documentElement.clientWidth, h = document.documentElement.clientHeight;
|
|
6659
6661
|
a.value = h < 650 ? 500 : h > 1200 ? 840 : 630, o.value = u < 850 ? 900 : u > 1400 ? 1e3 : 890;
|
|
6660
6662
|
}
|
|
6661
|
-
function
|
|
6663
|
+
function m() {
|
|
6662
6664
|
if (e.beforeOpen && typeof e.beforeOpen == "function" && (n.value = e.beforeOpen()), !n.value.defaultState || !n.value.importData) {
|
|
6663
6665
|
const u = n.value.message || "只可以在响应式表单组件中调整响应式布局配置";
|
|
6664
6666
|
dt.info(u, "");
|
|
6665
6667
|
return;
|
|
6666
6668
|
}
|
|
6667
|
-
|
|
6669
|
+
p(), xt.show({
|
|
6668
6670
|
render: (u) => v(bt, {
|
|
6669
6671
|
initialState: n,
|
|
6670
6672
|
onClose: () => l(u),
|
|
@@ -6680,7 +6682,7 @@ const Vr = /* @__PURE__ */ le({
|
|
|
6680
6682
|
}
|
|
6681
6683
|
return () => v("div", {
|
|
6682
6684
|
class: "f-column-width-setting-button",
|
|
6683
|
-
onClick:
|
|
6685
|
+
onClick: m
|
|
6684
6686
|
}, [v("i", {
|
|
6685
6687
|
class: "f-icon f-icon-add"
|
|
6686
6688
|
}, null), v("div", {
|