@farris/ui-vue 1.6.5 → 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 +1 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +2 -2
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +7 -5
- 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 +1 -1
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +3 -2
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +1 -1
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +498 -495
- 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 +1 -1
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +3 -2
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1 -1
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +256 -254
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-bar/index.esm.js +416 -394
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +388 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- 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/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +80 -81
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +237 -237
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1 -1
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +9 -3
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +114 -112
- package/components/order/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1 -1
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +485 -463
- 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 +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +544 -545
- 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 +6 -4
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.esm.js +1 -1
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +9 -7
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +77 -78
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +5 -3
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +1 -1
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +2 -2
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/video/index.esm.js +1 -1
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +211 -211
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +1 -1
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +25 -26
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +15 -9
- package/designer/data-grid/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +917 -916
- package/designer/farris-designer.all.umd.cjs +5 -5
- package/designer/input-group/index.esm.js +2 -1
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +685 -689
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/radio-group/index.esm.js +7 -3
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +5641 -5603
- package/farris.all.umd.cjs +21 -21
- package/locales/data-grid/ui/en.json +2 -1
- 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 +2 -1
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +2 -1
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { ref as b, computed as z, createVNode as T, Fragment as ot, defineCompon
|
|
|
5
5
|
import { useI18n as Rt } from "vue-i18n";
|
|
6
6
|
import { resolveAppearance as Fn, createPropsResolver as qt } from "../dynamic-resolver/index.esm.js";
|
|
7
7
|
import { getMaxZIndex as kn, getCustomClass as Bn, withInstall as En, FormSchemaEntityField$Type as $t, FormSchemaEntityFieldTypeName as zt } from "../common/index.esm.js";
|
|
8
|
-
import { LocaleService as
|
|
8
|
+
import { LocaleService as pt } from "../locale/index.esm.js";
|
|
9
9
|
import { cloneDeep as Et, isPlainObject as Lt, isUndefined as je } from "lodash-es";
|
|
10
10
|
import "../accordion/index.esm.js";
|
|
11
11
|
import "../avatar/index.esm.js";
|
|
@@ -84,10 +84,10 @@ import "../external-container/index.esm.js";
|
|
|
84
84
|
import "../language-textbox/index.esm.js";
|
|
85
85
|
import "../designer-canvas/index.esm.js";
|
|
86
86
|
import { useResizeObserver as Mn } from "@vueuse/core";
|
|
87
|
-
import { getHierarchyRow as In, useIdentify as On, useGroupData as Rn, useFilter as Nn, useHierarchy as Dn, useLoading as jn, useDataView as Pn, useSelection as Hn, useSelectHierarchyItem as $n, usePagination as zn, useDataViewContainerStyle as Ln, useCommandColumn as An, useSettingColumn as Vn, useColumn as _n, useSort as qn, useGroupColumn as Wn, useRow as Gn, useEdit as Un, useVisualDataBound as Yn, useVisualDataCell as Xn, useVisualDataRow as Jn, useVisualData as Qn, useCellPosition as Zn, useSidebar as Kn, useVirtualScroll as eo, useFitColumn as to, useFilterHistory as no, useColumnFilter as oo, useDragColumn as ro, getColumnHeader as io, getSidebar as ao, getDisableMask as lo, getHorizontalScrollbar as so, getVerticalScrollbar as uo, getEmpty as co, getPagination as fo, getSummary as
|
|
87
|
+
import { getHierarchyRow as In, useIdentify as On, useGroupData as Rn, useFilter as Nn, useHierarchy as Dn, useLoading as jn, useDataView as Pn, useSelection as Hn, useSelectHierarchyItem as $n, usePagination as zn, useDataViewContainerStyle as Ln, useCommandColumn as An, useSettingColumn as Vn, useColumn as _n, useSort as qn, useGroupColumn as Wn, useRow as Gn, useEdit as Un, useVisualDataBound as Yn, useVisualDataCell as Xn, useVisualDataRow as Jn, useVisualData as Qn, useCellPosition as Zn, useSidebar as Kn, useVirtualScroll as eo, useFitColumn as to, useFilterHistory as no, useColumnFilter as oo, useDragColumn as ro, getColumnHeader as io, getSidebar as ao, getDisableMask as lo, getHorizontalScrollbar as so, getVerticalScrollbar as uo, getEmpty as co, getPagination as fo, getSummary as po } from "../data-view/index.esm.js";
|
|
88
88
|
import "../property-panel/index.esm.js";
|
|
89
89
|
import "../notify/index.esm.js";
|
|
90
|
-
const
|
|
90
|
+
const mo = {
|
|
91
91
|
width: { Type: Number, default: 400 },
|
|
92
92
|
type: { Type: String, default: "info" },
|
|
93
93
|
title: { Type: String, default: "" },
|
|
@@ -144,10 +144,10 @@ function bo(e, t, n, o) {
|
|
|
144
144
|
"font-size": `${r.value}px`,
|
|
145
145
|
height: "100%"
|
|
146
146
|
}));
|
|
147
|
-
function
|
|
147
|
+
function m(s) {
|
|
148
148
|
if (s.currentTarget) {
|
|
149
|
-
const
|
|
150
|
-
d.value =
|
|
149
|
+
const p = s.currentTarget.value || "";
|
|
150
|
+
d.value = p.length;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
return () => T(ot, null, [T("textarea", {
|
|
@@ -157,7 +157,7 @@ function bo(e, t, n, o) {
|
|
|
157
157
|
style: l.value,
|
|
158
158
|
rows: "4",
|
|
159
159
|
maxlength: a.value,
|
|
160
|
-
onInput: (s) =>
|
|
160
|
+
onInput: (s) => m(s)
|
|
161
161
|
}, [u.value]), T("span", {
|
|
162
162
|
class: "textarea-wordcount",
|
|
163
163
|
title: i.value,
|
|
@@ -231,7 +231,7 @@ function So(e, t) {
|
|
|
231
231
|
const r = z(() => !!e.value && !!e.value.date), a = z(() => {
|
|
232
232
|
const c = e.value && e.value.date || "";
|
|
233
233
|
return `${t.exception.happend} : ${c}`;
|
|
234
|
-
}), i = z(() => !!e.value && !!e.value.detail), d = z(() => e.value ? n(e.value.detail) > 160 : !1), u = b(!1), l = z(() => u.value ? t.exception.collapse : t.exception.expand),
|
|
234
|
+
}), i = z(() => !!e.value && !!e.value.detail), d = z(() => e.value ? n(e.value.detail) > 160 : !1), u = b(!1), l = z(() => u.value ? t.exception.collapse : t.exception.expand), m = z(() => {
|
|
235
235
|
const c = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
236
236
|
return u.value ? c : o(c, 160);
|
|
237
237
|
}), s = z(() => ({
|
|
@@ -241,7 +241,7 @@ function So(e, t) {
|
|
|
241
241
|
color: "#2A87FF",
|
|
242
242
|
cursor: "pointer"
|
|
243
243
|
}));
|
|
244
|
-
function
|
|
244
|
+
function p() {
|
|
245
245
|
u.value = !u.value;
|
|
246
246
|
}
|
|
247
247
|
return () => T("div", {
|
|
@@ -251,10 +251,10 @@ function So(e, t) {
|
|
|
251
251
|
}, [T("div", {
|
|
252
252
|
class: "exception_error_msg"
|
|
253
253
|
}, [T("div", {
|
|
254
|
-
innerHTML:
|
|
254
|
+
innerHTML: m.value
|
|
255
255
|
}, null), d.value && T("span", {
|
|
256
256
|
style: s.value,
|
|
257
|
-
onClick:
|
|
257
|
+
onClick: p
|
|
258
258
|
}, [l.value])])])]);
|
|
259
259
|
}
|
|
260
260
|
function To(e) {
|
|
@@ -269,11 +269,11 @@ function Fo(e, t, n, o, r) {
|
|
|
269
269
|
"f-icon": !0
|
|
270
270
|
}, F = `f-icon-${f}`;
|
|
271
271
|
return g[F] = !0, g;
|
|
272
|
-
}), d = z(() => n.value || a.value && a.value.message), u = z(() => o.value), l = z(() => !!o.value),
|
|
272
|
+
}), d = z(() => n.value || a.value && a.value.message), u = z(() => o.value), l = z(() => !!o.value), m = z(() => !!a.value);
|
|
273
273
|
function s() {
|
|
274
|
-
return
|
|
274
|
+
return m.value ? So(a, r) : l.value ? To(u) : () => null;
|
|
275
275
|
}
|
|
276
|
-
const
|
|
276
|
+
const p = s(), c = z(() => r.locale === "en" ? {
|
|
277
277
|
wordBreak: "keep-all",
|
|
278
278
|
overflowWrap: "break-word"
|
|
279
279
|
} : {});
|
|
@@ -287,7 +287,7 @@ function Fo(e, t, n, o, r) {
|
|
|
287
287
|
class: "toast-msg-title",
|
|
288
288
|
innerHTML: d.value,
|
|
289
289
|
style: c.value
|
|
290
|
-
}, null),
|
|
290
|
+
}, null), p()])]);
|
|
291
291
|
}
|
|
292
292
|
function ko(e, t, n, o) {
|
|
293
293
|
const {
|
|
@@ -299,8 +299,8 @@ function ko(e, t, n, o) {
|
|
|
299
299
|
message: "",
|
|
300
300
|
detail: ""
|
|
301
301
|
}), l = z(() => u.value && u.value.detail || "");
|
|
302
|
-
function
|
|
303
|
-
r(l.value).catch((
|
|
302
|
+
function m(s) {
|
|
303
|
+
r(l.value).catch((p) => {
|
|
304
304
|
i.value = o.exception.copyFailed || "复制失败";
|
|
305
305
|
}).finally(() => {
|
|
306
306
|
a.value = !0, setTimeout(() => {
|
|
@@ -311,12 +311,12 @@ function ko(e, t, n, o) {
|
|
|
311
311
|
return () => T("span", {
|
|
312
312
|
style: "width: 100%;color: #2A87FF;padding-left: 37px;"
|
|
313
313
|
}, [T("span", {
|
|
314
|
-
onClick:
|
|
314
|
+
onClick: m,
|
|
315
315
|
style: "cursor: pointer;"
|
|
316
316
|
}, [d.value])]);
|
|
317
317
|
}
|
|
318
318
|
function Bo(e, t, n, o, r) {
|
|
319
|
-
const a = b(e.type), i = b(e.buttons), d = b(e.exceptionInfo), u = b(r.ok || e.okButtonText), l = b(r.cancel || e.cancelButtonText),
|
|
319
|
+
const a = b(e.type), i = b(e.buttons), d = b(e.exceptionInfo), u = b(r.ok || e.okButtonText), l = b(r.cancel || e.cancelButtonText), m = b(e.showCancelButton), s = b(e.showOkButton), p = z(() => !!(i.value && i.value.length)), c = z(() => !!(d.value && d.value.detail)), f = z(() => !(i.value && i.value.length) && (s.value || m.value)), g = ko(e, n, o, r);
|
|
320
320
|
u.value === "关闭" ? u.value = r.close : u.value === "知道了" && (u.value = r.exception.roger);
|
|
321
321
|
function F(O) {
|
|
322
322
|
a.value === "question" && t.emit("reject"), t.emit("close");
|
|
@@ -326,7 +326,7 @@ function Bo(e, t, n, o, r) {
|
|
|
326
326
|
}
|
|
327
327
|
return () => T("div", {
|
|
328
328
|
class: "modal-footer"
|
|
329
|
-
}, [c.value && g(), f.value &&
|
|
329
|
+
}, [c.value && g(), f.value && m.value && T("button", {
|
|
330
330
|
type: "button",
|
|
331
331
|
class: "btn btn-secondary btn-lg",
|
|
332
332
|
onClick: F
|
|
@@ -334,7 +334,7 @@ function Bo(e, t, n, o, r) {
|
|
|
334
334
|
type: "button",
|
|
335
335
|
class: "btn btn-primary btn-lg",
|
|
336
336
|
onClick: E
|
|
337
|
-
}, [u.value]),
|
|
337
|
+
}, [u.value]), p.value && i.value.length && i.value.map((O) => T("button", {
|
|
338
338
|
type: "button",
|
|
339
339
|
onClick: O.handle,
|
|
340
340
|
class: O.class
|
|
@@ -370,7 +370,7 @@ function Eo(e) {
|
|
|
370
370
|
}
|
|
371
371
|
const st = /* @__PURE__ */ rt({
|
|
372
372
|
name: "FMessageBox",
|
|
373
|
-
props:
|
|
373
|
+
props: mo,
|
|
374
374
|
emits: ["accept", "reject", "close"],
|
|
375
375
|
setup(e, t) {
|
|
376
376
|
const n = Eo(e), o = b(e.type), r = b(e.title), a = b(e.detail), i = z(() => {
|
|
@@ -385,15 +385,15 @@ const st = /* @__PURE__ */ rt({
|
|
|
385
385
|
cursor: "default"
|
|
386
386
|
};
|
|
387
387
|
return o.value === "prompt" ? E.padding = "0.5rem 0.5rem 1rem 1.5rem" : o.value === "error" && (E.padding = "0.5rem 1.5rem 1rem 1.5rem"), E;
|
|
388
|
-
}), u = yo(), l = wo(e, o, r, a),
|
|
388
|
+
}), u = yo(), l = wo(e, o, r, a), m = Co(), {
|
|
389
389
|
feedbackStyle: s,
|
|
390
|
-
feedbackMessage:
|
|
391
|
-
} =
|
|
392
|
-
|
|
390
|
+
feedbackMessage: p
|
|
391
|
+
} = m;
|
|
392
|
+
p.value = n.exception.copySuccess;
|
|
393
393
|
function c() {
|
|
394
394
|
return T("div", {
|
|
395
395
|
style: s.value
|
|
396
|
-
}, [
|
|
396
|
+
}, [p.value]);
|
|
397
397
|
}
|
|
398
398
|
function f() {
|
|
399
399
|
switch (o.value) {
|
|
@@ -403,7 +403,7 @@ const st = /* @__PURE__ */ rt({
|
|
|
403
403
|
return Fo(e, o, r, a, n);
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
const g = f(), F = Bo(e, t, u,
|
|
406
|
+
const g = f(), F = Bo(e, t, u, m, n);
|
|
407
407
|
return () => T("div", {
|
|
408
408
|
class: "farris-messager"
|
|
409
409
|
}, [!e.exceptionInfo && T("div", {
|
|
@@ -717,7 +717,7 @@ class qe {
|
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
719
|
function _o(e, t) {
|
|
720
|
-
const n = b(), o = b(), r = b(), a = b(), i = b(), d = b(), u = b(), l = b(),
|
|
720
|
+
const n = b(), o = b(), r = b(), a = b(), i = b(), d = b(), u = b(), l = b(), m = b(), s = b(), p = b(), c = b(e.resizeable), f = b(), g = b(e.draggable), F = b(!1);
|
|
721
721
|
function E() {
|
|
722
722
|
const R = o.value || document.body, M = window.getComputedStyle(R);
|
|
723
723
|
if (!M || !n.value)
|
|
@@ -767,7 +767,7 @@ function _o(e, t) {
|
|
|
767
767
|
l.value.n ? (u.value.y = i.value.y + U, d.value.height = a.value.height - U) : l.value.s && (d.value.height = a.value.height + U), l.value.e ? d.value.width = a.value.width + M : l.value.w && (d.value.width = a.value.width - M, u.value.x = i.value.x + M), w(), D(), L();
|
|
768
768
|
}
|
|
769
769
|
function C(R) {
|
|
770
|
-
if (!
|
|
770
|
+
if (!m.value)
|
|
771
771
|
return;
|
|
772
772
|
const M = re.fromEvent(R);
|
|
773
773
|
M && h(M);
|
|
@@ -796,15 +796,15 @@ function _o(e, t) {
|
|
|
796
796
|
function k(R) {
|
|
797
797
|
if (n.value) {
|
|
798
798
|
const M = x();
|
|
799
|
-
|
|
799
|
+
p.value = M;
|
|
800
800
|
}
|
|
801
|
-
r.value = void 0, a.value = null, i.value = null, d.value = null, u.value = null, l.value = null,
|
|
801
|
+
r.value = void 0, a.value = null, i.value = null, d.value = null, u.value = null, l.value = null, m.value = null, document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", k);
|
|
802
802
|
}
|
|
803
803
|
function _() {
|
|
804
804
|
document.addEventListener("mousemove", C), document.addEventListener("mouseup", k);
|
|
805
805
|
}
|
|
806
806
|
function y(R) {
|
|
807
|
-
R instanceof MouseEvent && R.button === 2 || g.value && (document.body.click(), R.stopPropagation(), R.preventDefault(), r.value = re.fromEvent(R),
|
|
807
|
+
R instanceof MouseEvent && R.button === 2 || g.value && (document.body.click(), R.stopPropagation(), R.preventDefault(), r.value = re.fromEvent(R), m.value = R.target, O(R), _());
|
|
808
808
|
}
|
|
809
809
|
function q(R) {
|
|
810
810
|
return n.value = R, c.value && T(ot, null, [T("div", {
|
|
@@ -844,7 +844,7 @@ function _o(e, t) {
|
|
|
844
844
|
function V(R = !0) {
|
|
845
845
|
document.body.click();
|
|
846
846
|
const M = o.value || document.body, U = qe.getCurrent(M), P = n.value;
|
|
847
|
-
R && P && (f.value = x(), f.value.transform = P.style.transform), U && P && (d.value = U, d.value.height -= 14, d.value.width -= 14, P.style.height = d.value.height + "px", P.style.width = d.value.width + "px", P.style.left = "7px", P.style.top = "7px", P.style.transform = "",
|
|
847
|
+
R && P && (f.value = x(), f.value.transform = P.style.transform), U && P && (d.value = U, d.value.height -= 14, d.value.width -= 14, P.style.height = d.value.height + "px", P.style.width = d.value.width + "px", P.style.left = "7px", P.style.top = "7px", P.style.transform = "", p.value = {
|
|
848
848
|
size: d.value,
|
|
849
849
|
position: {
|
|
850
850
|
x: 0,
|
|
@@ -864,7 +864,7 @@ function _o(e, t) {
|
|
|
864
864
|
};
|
|
865
865
|
(R = d.value) == null || R.set(U), (M = u.value) == null || M.set(P);
|
|
866
866
|
const K = n.value;
|
|
867
|
-
K.style.height = U.height + "px", K.style.width = U.width + "px", K.style.left = `${P.x}px`, K.style.top = `${P.y}px`, K.style.transform = "",
|
|
867
|
+
K.style.height = U.height + "px", K.style.width = U.width + "px", K.style.left = `${P.x}px`, K.style.top = `${P.y}px`, K.style.transform = "", p.value = {
|
|
868
868
|
size: U,
|
|
869
869
|
position: P
|
|
870
870
|
}, g.value = e.draggable, F.value = !1;
|
|
@@ -894,7 +894,7 @@ function _o(e, t) {
|
|
|
894
894
|
return {
|
|
895
895
|
renderResizeBar: q,
|
|
896
896
|
boundingElement: o,
|
|
897
|
-
resizedEventParam:
|
|
897
|
+
resizedEventParam: p,
|
|
898
898
|
maximize: V,
|
|
899
899
|
restore: H,
|
|
900
900
|
allowDrag: g,
|
|
@@ -904,7 +904,7 @@ function _o(e, t) {
|
|
|
904
904
|
};
|
|
905
905
|
}
|
|
906
906
|
function qo(e, t, n) {
|
|
907
|
-
const o = b(), r = b(e.draggable), a = b(e.lockAxis), i = b(), d = b(), u = b(!1), l = b(new re(0, 0)),
|
|
907
|
+
const o = b(), r = b(e.draggable), a = b(e.lockAxis), i = b(), d = b(), u = b(!1), l = b(new re(0, 0)), m = b(new re(0, 0)), s = b(new re(0, 0)), p = b(new re(0, 0));
|
|
908
908
|
Be(() => n.value, (C) => {
|
|
909
909
|
i.value.style.cursor = C ? "move" : "default";
|
|
910
910
|
});
|
|
@@ -920,10 +920,10 @@ function qo(e, t, n) {
|
|
|
920
920
|
}
|
|
921
921
|
function f() {
|
|
922
922
|
var _, y;
|
|
923
|
-
let C = s.value.x +
|
|
923
|
+
let C = s.value.x + m.value.x, x = s.value.y + m.value.y;
|
|
924
924
|
a.value === "x" ? (C = ((_ = l.value) == null ? void 0 : _.x) || 0, s.value.x = 0) : a.value === "y" && (x = ((y = l.value) == null ? void 0 : y.y) || 0, s.value.y = 0);
|
|
925
925
|
const k = `translate3d(${Math.round(C)}px, ${Math.round(x)}px, 0px)`;
|
|
926
|
-
o.value && (o.value.style.transform = k),
|
|
926
|
+
o.value && (o.value.style.transform = k), p.value.x = C, p.value.y = x;
|
|
927
927
|
}
|
|
928
928
|
function g() {
|
|
929
929
|
if (!d.value || !o.value)
|
|
@@ -944,7 +944,7 @@ function qo(e, t, n) {
|
|
|
944
944
|
}
|
|
945
945
|
function O() {
|
|
946
946
|
var C;
|
|
947
|
-
u.value && (u.value = !1,
|
|
947
|
+
u.value && (u.value = !1, m.value.add(s.value), s.value.reset(), (C = o.value) == null || C.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", E), document.removeEventListener("mouseup", O));
|
|
948
948
|
}
|
|
949
949
|
function L() {
|
|
950
950
|
!u.value && i.value && (u.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", E), document.addEventListener("mouseup", O));
|
|
@@ -952,10 +952,10 @@ function qo(e, t, n) {
|
|
|
952
952
|
function D() {
|
|
953
953
|
if (o.value) {
|
|
954
954
|
const C = re.getTransformInfo(o.value);
|
|
955
|
-
|
|
955
|
+
m.value.set(C);
|
|
956
956
|
return;
|
|
957
957
|
}
|
|
958
|
-
|
|
958
|
+
m.value.reset();
|
|
959
959
|
}
|
|
960
960
|
function w(C) {
|
|
961
961
|
if (!n.value || C instanceof MouseEvent && C.button === 2)
|
|
@@ -1016,7 +1016,7 @@ const We = /* @__PURE__ */ rt({
|
|
|
1016
1016
|
props: Wt,
|
|
1017
1017
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
1018
1018
|
setup(e, t) {
|
|
1019
|
-
const n = b(e.width || 300), o = b(e.height || 200), r = b(e.modelValue), a = b(""), i = b(e.class), d = b(e.fitContent), u = b(e.showHeader), l = b(""),
|
|
1019
|
+
const n = b(e.width || 300), o = b(e.height || 200), r = b(e.modelValue), a = b(""), i = b(e.class), d = b(e.fitContent), u = b(e.showHeader), l = b(""), m = b(e.showCloseButton), s = b(e.showMaxButton), p = b(!1), c = b(e.dialogType), f = b(e.src), g = b(""), F = b(e.showButtons), E = b(e.title), O = b(e.containment || null), L = b(), {
|
|
1020
1020
|
t: D
|
|
1021
1021
|
} = Rt();
|
|
1022
1022
|
E.value === "错误提示" && (E.value = D("messageBox.errorTitle"));
|
|
@@ -1058,7 +1058,7 @@ const We = /* @__PURE__ */ rt({
|
|
|
1058
1058
|
} = _o(e), {
|
|
1059
1059
|
registerDraggle: K
|
|
1060
1060
|
} = qo(e, t, M);
|
|
1061
|
-
function
|
|
1061
|
+
function me() {
|
|
1062
1062
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
1063
1063
|
}
|
|
1064
1064
|
function ve() {
|
|
@@ -1070,7 +1070,7 @@ const We = /* @__PURE__ */ rt({
|
|
|
1070
1070
|
}), Be(() => e.modelValue, (S, X) => {
|
|
1071
1071
|
S !== X && (r.value = S, r.value && e.draggable && It(() => {
|
|
1072
1072
|
q.value && !O.value && (O.value = q.value.parentElement, oe.value = O.value, K(y.value, q.value, oe.value), P());
|
|
1073
|
-
}), S || (O.value && (O.value = null), ve())), r.value ? w.value =
|
|
1073
|
+
}), S || (O.value && (O.value = null), ve())), r.value ? w.value = me() : (V.value = !1, M.value = e.draggable);
|
|
1074
1074
|
}), Be(() => e.showHeader, (S, X) => {
|
|
1075
1075
|
S !== X && (u.value = S);
|
|
1076
1076
|
}), Be(() => e.showButtons, (S, X) => {
|
|
@@ -1157,7 +1157,7 @@ const We = /* @__PURE__ */ rt({
|
|
|
1157
1157
|
}
|
|
1158
1158
|
let Re = null, Se = null;
|
|
1159
1159
|
bn(() => {
|
|
1160
|
-
w.value =
|
|
1160
|
+
w.value = me();
|
|
1161
1161
|
}), dt(() => {
|
|
1162
1162
|
q.value && !O.value && (O.value = q.value.parentElement, oe.value = O.value, K(y.value, q.value, oe.value)), Y.value && document.body.classList.add("modal-open"), Re = Wo(e, t), Se = Go(e, t);
|
|
1163
1163
|
}), ft(() => {
|
|
@@ -1170,7 +1170,7 @@ const We = /* @__PURE__ */ rt({
|
|
|
1170
1170
|
isMaximized: V
|
|
1171
1171
|
});
|
|
1172
1172
|
function Ne() {
|
|
1173
|
-
return T("ul", null, [
|
|
1173
|
+
return T("ul", null, [p.value && T("li", {
|
|
1174
1174
|
class: "f-btn-icon f-bare"
|
|
1175
1175
|
}, [T("span", {
|
|
1176
1176
|
class: "f-icon modal_minimize"
|
|
@@ -1180,7 +1180,7 @@ const We = /* @__PURE__ */ rt({
|
|
|
1180
1180
|
style: "pointer-events: auto;"
|
|
1181
1181
|
}, [T("span", {
|
|
1182
1182
|
class: xe.value
|
|
1183
|
-
}, null)]),
|
|
1183
|
+
}, null)]), m.value && T("li", {
|
|
1184
1184
|
class: "f-btn-icon f-bare",
|
|
1185
1185
|
onClick: (S) => h(S, !1),
|
|
1186
1186
|
style: "pointer-events: auto;"
|
|
@@ -1286,13 +1286,13 @@ function Uo(e) {
|
|
|
1286
1286
|
ft(() => {
|
|
1287
1287
|
document.body.removeChild(t);
|
|
1288
1288
|
});
|
|
1289
|
-
const a = b(), i = b(e.class || ""), d = b(!!e.showButtons), u = b(!!e.showHeader), l = b(e.showCloseButton == null ? !0 : e.showCloseButton),
|
|
1289
|
+
const a = b(), i = b(e.class || ""), d = b(!!e.showButtons), u = b(!!e.showHeader), l = b(e.showCloseButton == null ? !0 : e.showCloseButton), m = b(!0), s = b(e.title || ""), p = e.acceptCallback || (() => {
|
|
1290
1290
|
}), c = e.rejectCallback || (() => {
|
|
1291
1291
|
}), f = e.closedCallback || ((L) => {
|
|
1292
1292
|
}), g = e.resizeHandle || ((L) => {
|
|
1293
1293
|
}), F = e.stopMoveHandle || ((L) => {
|
|
1294
1294
|
}), E = Ut(e), O = (L) => {
|
|
1295
|
-
|
|
1295
|
+
m.value = !1, n.unmount(), f(L);
|
|
1296
1296
|
};
|
|
1297
1297
|
return dt(() => {
|
|
1298
1298
|
}), r.expose({
|
|
@@ -1300,8 +1300,8 @@ function Uo(e) {
|
|
|
1300
1300
|
}), () => T(We, {
|
|
1301
1301
|
ref: a,
|
|
1302
1302
|
class: i.value,
|
|
1303
|
-
modelValue:
|
|
1304
|
-
"onUpdate:modelValue": (L) =>
|
|
1303
|
+
modelValue: m.value,
|
|
1304
|
+
"onUpdate:modelValue": (L) => m.value = L,
|
|
1305
1305
|
title: s.value,
|
|
1306
1306
|
width: e.width,
|
|
1307
1307
|
height: e.height,
|
|
@@ -1310,7 +1310,7 @@ function Uo(e) {
|
|
|
1310
1310
|
"show-buttons": d.value,
|
|
1311
1311
|
"show-close-button": l.value,
|
|
1312
1312
|
"show-max-button": !1,
|
|
1313
|
-
onAccept:
|
|
1313
|
+
onAccept: p,
|
|
1314
1314
|
onCancel: c,
|
|
1315
1315
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
1316
1316
|
onClosed: O,
|
|
@@ -1321,7 +1321,7 @@ function Uo(e) {
|
|
|
1321
1321
|
});
|
|
1322
1322
|
}
|
|
1323
1323
|
});
|
|
1324
|
-
return document.body.appendChild(t), n.use(
|
|
1324
|
+
return document.body.appendChild(t), n.use(pt.i18n), n.mount(t), n;
|
|
1325
1325
|
}
|
|
1326
1326
|
class Yt {
|
|
1327
1327
|
constructor(t) {
|
|
@@ -1374,15 +1374,15 @@ class Yt {
|
|
|
1374
1374
|
}), u = o.value.resizeHandle || ((w) => {
|
|
1375
1375
|
}), l = t.stopMoveHandle || ((w) => {
|
|
1376
1376
|
});
|
|
1377
|
-
let
|
|
1378
|
-
const s = Ut(o.value),
|
|
1377
|
+
let m;
|
|
1378
|
+
const s = Ut(o.value), p = (w) => {
|
|
1379
1379
|
var C;
|
|
1380
1380
|
r.value = !1;
|
|
1381
1381
|
const h = (C = w == null ? void 0 : w.target) == null ? void 0 : C.classList.contains("modal_close");
|
|
1382
1382
|
d(w, this.isUseEscCloseModal.value ? "esc" : h ? "icon" : "button");
|
|
1383
1383
|
}, c = (w) => {
|
|
1384
|
-
|
|
1385
|
-
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Bt(null, n),
|
|
1384
|
+
p(w), m && It(() => {
|
|
1385
|
+
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Bt(null, n), m = null, this.modalRef.value = null, this.modalRefs) {
|
|
1386
1386
|
const h = Object.keys(this.modalRefs).map((C) => Number(C));
|
|
1387
1387
|
h.length > 0 ? this.activeModalIndex.value = Math.max(...h) : this.activeModalIndex.value = 0;
|
|
1388
1388
|
}
|
|
@@ -1410,7 +1410,7 @@ class Yt {
|
|
|
1410
1410
|
}), {
|
|
1411
1411
|
default: () => [s && s(this.app)]
|
|
1412
1412
|
});
|
|
1413
|
-
return
|
|
1413
|
+
return m = ((w) => {
|
|
1414
1414
|
const h = xn(O, w);
|
|
1415
1415
|
return h.appContext = this.appContext, Bt(h, n), h;
|
|
1416
1416
|
})({
|
|
@@ -1421,7 +1421,7 @@ class Yt {
|
|
|
1421
1421
|
o.value = {
|
|
1422
1422
|
...o.value,
|
|
1423
1423
|
...w
|
|
1424
|
-
},
|
|
1424
|
+
}, m && Bt(Sn(m, {
|
|
1425
1425
|
...o
|
|
1426
1426
|
}), n);
|
|
1427
1427
|
},
|
|
@@ -1432,56 +1432,56 @@ class Yt {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
1434
|
function Yo(e = {}) {
|
|
1435
|
-
function t(l,
|
|
1435
|
+
function t(l, m, s, p) {
|
|
1436
1436
|
if (typeof s == "number")
|
|
1437
|
-
return
|
|
1437
|
+
return p[l].length === s;
|
|
1438
1438
|
if (typeof s == "object") {
|
|
1439
1439
|
const c = Object.keys(s)[0], f = s[c];
|
|
1440
1440
|
if (c === "not")
|
|
1441
|
-
return Number(
|
|
1441
|
+
return Number(p[l].length) !== Number(f);
|
|
1442
1442
|
if (c === "moreThan")
|
|
1443
|
-
return Number(
|
|
1443
|
+
return Number(p[l].length) >= Number(f);
|
|
1444
1444
|
if (c === "lessThan")
|
|
1445
|
-
return Number(
|
|
1445
|
+
return Number(p[l].length) <= Number(f);
|
|
1446
1446
|
}
|
|
1447
1447
|
return !1;
|
|
1448
1448
|
}
|
|
1449
|
-
function n(l,
|
|
1450
|
-
return
|
|
1449
|
+
function n(l, m, s, p) {
|
|
1450
|
+
return p[l] && p[l].propertyValue && String(p[l].propertyValue.value) === String(s);
|
|
1451
1451
|
}
|
|
1452
1452
|
const o = /* @__PURE__ */ new Map([
|
|
1453
1453
|
["length", t],
|
|
1454
1454
|
["getProperty", n]
|
|
1455
1455
|
]);
|
|
1456
|
-
Object.keys(e).reduce((l,
|
|
1457
|
-
function r(l,
|
|
1456
|
+
Object.keys(e).reduce((l, m) => (l.set(m, e[m]), l), o);
|
|
1457
|
+
function r(l, m) {
|
|
1458
1458
|
const s = l;
|
|
1459
|
-
return typeof
|
|
1460
|
-
if (
|
|
1461
|
-
return { target: s, operator: "length", param: null, value: p
|
|
1462
|
-
const c =
|
|
1459
|
+
return typeof m == "number" ? [{ target: s, operator: "length", param: null, value: Number(m) }] : typeof m == "boolean" ? [{ target: s, operator: "getProperty", param: l, value: !!m }] : typeof m == "object" ? Object.keys(m).map((p) => {
|
|
1460
|
+
if (p === "length")
|
|
1461
|
+
return { target: s, operator: "length", param: null, value: m[p] };
|
|
1462
|
+
const c = p, f = m[p];
|
|
1463
1463
|
return { target: s, operator: "getProperty", param: c, value: f };
|
|
1464
1464
|
}) : [];
|
|
1465
1465
|
}
|
|
1466
1466
|
function a(l) {
|
|
1467
|
-
return Object.keys(l).reduce((s,
|
|
1468
|
-
const c = r(
|
|
1467
|
+
return Object.keys(l).reduce((s, p) => {
|
|
1468
|
+
const c = r(p, l[p]);
|
|
1469
1469
|
return s.push(...c), s;
|
|
1470
1470
|
}, []);
|
|
1471
1471
|
}
|
|
1472
|
-
function i(l,
|
|
1472
|
+
function i(l, m) {
|
|
1473
1473
|
if (o.has(l.operator)) {
|
|
1474
1474
|
const s = o.get(l.operator);
|
|
1475
|
-
return s && s(l.target, l.param, l.value,
|
|
1475
|
+
return s && s(l.target, l.param, l.value, m) || !1;
|
|
1476
1476
|
}
|
|
1477
1477
|
return !1;
|
|
1478
1478
|
}
|
|
1479
|
-
function d(l,
|
|
1480
|
-
return a(l).reduce((c, f) => c && i(f,
|
|
1479
|
+
function d(l, m) {
|
|
1480
|
+
return a(l).reduce((c, f) => c && i(f, m), !0);
|
|
1481
1481
|
}
|
|
1482
|
-
function u(l,
|
|
1483
|
-
const s = Object.keys(l),
|
|
1484
|
-
return
|
|
1482
|
+
function u(l, m) {
|
|
1483
|
+
const s = Object.keys(l), p = s.includes("allOf"), c = s.includes("anyOf"), f = p || c, E = (f ? l[f ? p ? "allOf" : "anyOf" : "allOf"] : [l]).map((L) => d(L, m));
|
|
1484
|
+
return p ? !E.includes(!1) : E.includes(!0);
|
|
1485
1485
|
}
|
|
1486
1486
|
return { parseValueSchema: u };
|
|
1487
1487
|
}
|
|
@@ -1690,7 +1690,7 @@ const Xo = {
|
|
|
1690
1690
|
var o, r;
|
|
1691
1691
|
return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (r = e.formatter) == null ? void 0 : r.data : e.formatterEnumData;
|
|
1692
1692
|
}
|
|
1693
|
-
},
|
|
1693
|
+
}, pr = {
|
|
1694
1694
|
convertTo: (e, t, n, o) => {
|
|
1695
1695
|
e.sort || (e.sort = {}), e.sort[t] = n;
|
|
1696
1696
|
},
|
|
@@ -1701,7 +1701,7 @@ const Xo = {
|
|
|
1701
1701
|
if (t === "multiSort")
|
|
1702
1702
|
return !!((r = e.sort) != null && r.multiSort);
|
|
1703
1703
|
}
|
|
1704
|
-
},
|
|
1704
|
+
}, mr = {
|
|
1705
1705
|
convertTo: (e, t, n, o) => {
|
|
1706
1706
|
e.filter || (e.filter = {}), e.filter[t] = n;
|
|
1707
1707
|
},
|
|
@@ -1746,8 +1746,8 @@ function Xt(e, t, n) {
|
|
|
1746
1746
|
["/converter/grid-selection.converter", sr],
|
|
1747
1747
|
["/converter/size.converter", dr],
|
|
1748
1748
|
["/converter/change-formatter-enum.converter", fr],
|
|
1749
|
-
["/converter/grid-sort.converter",
|
|
1750
|
-
["/converter/grid-filter.converter",
|
|
1749
|
+
["/converter/grid-sort.converter", pr],
|
|
1750
|
+
["/converter/grid-filter.converter", mr],
|
|
1751
1751
|
["/converter/row-option.converter", vr]
|
|
1752
1752
|
]), r = /* @__PURE__ */ new Map([
|
|
1753
1753
|
["string", { type: "input-group", enableClear: !1 }],
|
|
@@ -1787,11 +1787,11 @@ function Xt(e, t, n) {
|
|
|
1787
1787
|
const F = f.$converter || g;
|
|
1788
1788
|
return typeof F == "string" && F && o.has(F) ? o.get(F) || null : F || null;
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1790
|
+
function m(f, g, F, E, O, L = "", D = "") {
|
|
1791
1791
|
return Object.keys(f).map((h) => {
|
|
1792
1792
|
const C = b(1), x = h, k = f[h], _ = Object.keys(k), y = k.title, q = k.type, V = r.get(q) || { type: "input-group", enableClear: !1 }, H = k.editor ? Object.assign({}, V, k.editor) : Object.assign({}, V), W = d(_, k, g), J = u(_, k, g);
|
|
1793
1793
|
H.readonly = H.readonly === void 0 ? J() : H.readonly;
|
|
1794
|
-
const oe = k.type === "cascade" ?
|
|
1794
|
+
const oe = k.type === "cascade" ? m(k.properties, g, F, E, O, L, D) : [], R = !0;
|
|
1795
1795
|
let M = l(k, D);
|
|
1796
1796
|
const U = z({
|
|
1797
1797
|
get() {
|
|
@@ -1806,25 +1806,25 @@ function Xt(e, t, n) {
|
|
|
1806
1806
|
set(ne) {
|
|
1807
1807
|
C.value += 1, M && M.convertTo ? (M.convertTo(E, h, ne, O, L), M.convertTo(F, h, ne, O, L)) : (E[h] = ne, F[h] = ne);
|
|
1808
1808
|
}
|
|
1809
|
-
}), { refreshPanelAfterChanged: P, description: K, isExpand:
|
|
1809
|
+
}), { refreshPanelAfterChanged: P, description: K, isExpand: me, parentPropertyID: ve } = k, Y = { propertyID: x, propertyName: y, propertyType: q, propertyValue: U, editor: H, visible: W, readonly: J, cascadeConfig: oe, hideCascadeTitle: R, refreshPanelAfterChanged: P, description: K, isExpand: me, parentPropertyID: ve };
|
|
1810
1810
|
return g[x] = Y, Y;
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
1813
|
function s(f, g, F = {}) {
|
|
1814
1814
|
const E = {}, O = e[f];
|
|
1815
1815
|
return O && O.categories ? Object.keys(O.categories).map((D) => {
|
|
1816
|
-
const w = O.categories[D], h = w == null ? void 0 : w.title, C =
|
|
1816
|
+
const w = O.categories[D], h = w == null ? void 0 : w.title, C = m(w.properties || {}, E, {}, F, g);
|
|
1817
1817
|
return { categoryId: D, categoryName: h, properties: C };
|
|
1818
1818
|
}) : [];
|
|
1819
1819
|
}
|
|
1820
|
-
function
|
|
1820
|
+
function p(f, g, F, E, O = "") {
|
|
1821
1821
|
const L = g.$ref.schema, D = g.$ref.converter, w = F[L], h = w.type, C = n(w), x = {}, k = e[h];
|
|
1822
1822
|
if (k && k.categories) {
|
|
1823
1823
|
const _ = k.categories[f], y = _ == null ? void 0 : _.title;
|
|
1824
1824
|
D && Object.keys(_.properties).forEach((H) => {
|
|
1825
1825
|
_.properties[H].$converter = D;
|
|
1826
1826
|
});
|
|
1827
|
-
const q = (_ == null ? void 0 : _.properties) || {}, V =
|
|
1827
|
+
const q = (_ == null ? void 0 : _.properties) || {}, V = m(q, x, C, w, E, O);
|
|
1828
1828
|
return { categoryId: f, categoryName: y, properties: V };
|
|
1829
1829
|
}
|
|
1830
1830
|
return { categoryId: f, categoryName: "", properties: [] };
|
|
@@ -1837,10 +1837,10 @@ function Xt(e, t, n) {
|
|
|
1837
1837
|
return Object.keys(h.categories).map((x) => {
|
|
1838
1838
|
const k = h.categories[x];
|
|
1839
1839
|
if (k.$ref) {
|
|
1840
|
-
C.push(
|
|
1840
|
+
C.push(p(x, k, f, g, E));
|
|
1841
1841
|
return;
|
|
1842
1842
|
}
|
|
1843
|
-
const _ = k == null ? void 0 : k.title, y = k == null ? void 0 : k.tabId, q = k == null ? void 0 : k.tabName, V = k == null ? void 0 : k.hide, H = k == null ? void 0 : k.hideTitle, W =
|
|
1843
|
+
const _ = k == null ? void 0 : k.title, y = k == null ? void 0 : k.tabId, q = k == null ? void 0 : k.tabName, V = k == null ? void 0 : k.hide, H = k == null ? void 0 : k.hideTitle, W = m(k.properties || {}, w, D, f, g, E, k.$converter), { setPropertyRelates: J } = k, oe = k == null ? void 0 : k.parentPropertyID;
|
|
1844
1844
|
C.push({ categoryId: x, categoryName: _, tabId: y, tabName: q, hide: V, properties: W, hideTitle: H, setPropertyRelates: J, parentPropertyID: oe });
|
|
1845
1845
|
}), C;
|
|
1846
1846
|
}
|
|
@@ -1855,7 +1855,7 @@ function Xt(e, t, n) {
|
|
|
1855
1855
|
function Jt(e, t) {
|
|
1856
1856
|
let n;
|
|
1857
1857
|
function o(s) {
|
|
1858
|
-
const { properties:
|
|
1858
|
+
const { properties: p, title: c, ignore: f } = s, g = f && Array.isArray(f), F = Object.keys(p).reduce((E, O) => ((!g || !f.find((L) => L === O)) && (E[O] = p[O].type === "object" && p[O].properties ? o(p[O]) : Et(p[O].default)), E), {});
|
|
1859
1859
|
if (c && (!g || !f.find((E) => E === "id"))) {
|
|
1860
1860
|
const E = c.toLowerCase().replace(/-/g, "_");
|
|
1861
1861
|
F.id = `${E}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -1863,9 +1863,9 @@ function Jt(e, t) {
|
|
|
1863
1863
|
return F;
|
|
1864
1864
|
}
|
|
1865
1865
|
function r(s) {
|
|
1866
|
-
const { properties:
|
|
1866
|
+
const { properties: p, title: c, required: f } = s;
|
|
1867
1867
|
if (f && Array.isArray(f)) {
|
|
1868
|
-
const g = f.reduce((F, E) => (F[E] =
|
|
1868
|
+
const g = f.reduce((F, E) => (F[E] = p[E].type === "object" && p[E].properties ? o(p[E]) : Et(p[E].default), F), {});
|
|
1869
1869
|
if (c && f.find((F) => F === "id")) {
|
|
1870
1870
|
const F = c.toLowerCase().replace(/-/g, "_");
|
|
1871
1871
|
g.id = `${F}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -1876,23 +1876,23 @@ function Jt(e, t) {
|
|
|
1876
1876
|
type: c
|
|
1877
1877
|
};
|
|
1878
1878
|
}
|
|
1879
|
-
function a(s,
|
|
1879
|
+
function a(s, p = {}, c) {
|
|
1880
1880
|
const f = e[s];
|
|
1881
1881
|
if (f) {
|
|
1882
1882
|
let g = r(f);
|
|
1883
1883
|
const F = t[s];
|
|
1884
|
-
return g = F ? F({ getSchemaByType: a }, g,
|
|
1884
|
+
return g = F ? F({ getSchemaByType: a }, g, p, c) : g, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(g), g;
|
|
1885
1885
|
}
|
|
1886
1886
|
return null;
|
|
1887
1887
|
}
|
|
1888
|
-
function i(s,
|
|
1889
|
-
const c = o(
|
|
1888
|
+
function i(s, p) {
|
|
1889
|
+
const c = o(p);
|
|
1890
1890
|
return Object.keys(c).reduce((f, g) => (Object.prototype.hasOwnProperty.call(s, g) && (f[g] && Lt(f[g]) && Lt(s[g] || !s[g]) ? Object.assign(f[g], s[g] || {}) : f[g] = s[g]), f), c), c;
|
|
1891
1891
|
}
|
|
1892
|
-
function d(s,
|
|
1892
|
+
function d(s, p) {
|
|
1893
1893
|
return Object.keys(s).filter((f) => s[f] != null).reduce((f, g) => {
|
|
1894
|
-
if (
|
|
1895
|
-
const F =
|
|
1894
|
+
if (p.has(g)) {
|
|
1895
|
+
const F = p.get(g);
|
|
1896
1896
|
if (typeof F == "string")
|
|
1897
1897
|
f[F] = s[g];
|
|
1898
1898
|
else {
|
|
@@ -1904,15 +1904,15 @@ function Jt(e, t) {
|
|
|
1904
1904
|
return f;
|
|
1905
1905
|
}, {});
|
|
1906
1906
|
}
|
|
1907
|
-
function u(s,
|
|
1908
|
-
const f = i(s,
|
|
1907
|
+
function u(s, p, c = /* @__PURE__ */ new Map()) {
|
|
1908
|
+
const f = i(s, p);
|
|
1909
1909
|
return d(f, c);
|
|
1910
1910
|
}
|
|
1911
1911
|
function l(s) {
|
|
1912
1912
|
var c;
|
|
1913
|
-
const
|
|
1914
|
-
if (
|
|
1915
|
-
const f = e[
|
|
1913
|
+
const p = s.type;
|
|
1914
|
+
if (p) {
|
|
1915
|
+
const f = e[p];
|
|
1916
1916
|
if (!f)
|
|
1917
1917
|
return s;
|
|
1918
1918
|
const g = i(s, f), F = ((c = s.editor) == null ? void 0 : c.type) || "";
|
|
@@ -1924,20 +1924,20 @@ function Jt(e, t) {
|
|
|
1924
1924
|
}
|
|
1925
1925
|
return s;
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function m(s) {
|
|
1928
1928
|
n = s;
|
|
1929
1929
|
}
|
|
1930
|
-
return { getSchemaByType: a, resolveSchemaWithDefaultValue: l, resolveSchemaToProps: u, mappingSchemaToProps: d, setDesignerContext:
|
|
1930
|
+
return { getSchemaByType: a, resolveSchemaWithDefaultValue: l, resolveSchemaToProps: u, mappingSchemaToProps: d, setDesignerContext: m };
|
|
1931
1931
|
}
|
|
1932
1932
|
const Qt = {}, Zt = {}, { getSchemaByType: nl, resolveSchemaWithDefaultValue: gr, resolveSchemaToProps: ol, mappingSchemaToProps: rl, setDesignerContext: il } = Jt(Qt, Zt), Kt = {}, en = {};
|
|
1933
1933
|
Xt(Kt, en, gr);
|
|
1934
1934
|
const tn = {}, nn = {}, { getSchemaByType: al, resolveSchemaWithDefaultValue: hr, resolveSchemaToProps: yr, mappingSchemaToProps: br, setDesignerContext: ll } = Jt(tn, nn), on = {}, rn = {};
|
|
1935
1935
|
Xt(on, rn, hr);
|
|
1936
|
-
function
|
|
1936
|
+
function mt(e, t, n = /* @__PURE__ */ new Map(), o = (i, d, u, l) => d, r = {}, a = (i) => i) {
|
|
1937
1937
|
return tn[t.title] = t, nn[t.title] = o, on[t.title] = r, rn[t.title] = a, Qt[t.title] = t, Zt[t.title] = o, Kt[t.title] = r, en[t.title] = a, (i = {}, d = !0) => {
|
|
1938
1938
|
if (!d)
|
|
1939
1939
|
return br(i, n);
|
|
1940
|
-
const u = yr(i, t, n), l = Object.keys(e).reduce((
|
|
1940
|
+
const u = yr(i, t, n), l = Object.keys(e).reduce((m, s) => (m[s] = e[s].default, m), {});
|
|
1941
1941
|
return Object.assign(l, u);
|
|
1942
1942
|
};
|
|
1943
1943
|
}
|
|
@@ -2051,7 +2051,7 @@ const Dt = /* @__PURE__ */ new Map([
|
|
|
2051
2051
|
componentId: { type: String, default: "" },
|
|
2052
2052
|
errors: { type: Object, default: null }
|
|
2053
2053
|
};
|
|
2054
|
-
|
|
2054
|
+
mt(
|
|
2055
2055
|
Er,
|
|
2056
2056
|
ln,
|
|
2057
2057
|
Dt,
|
|
@@ -2160,14 +2160,14 @@ var Mr = { exports: {} };
|
|
|
2160
2160
|
})(function() {
|
|
2161
2161
|
return (/* @__PURE__ */ function() {
|
|
2162
2162
|
function n(o, r, a) {
|
|
2163
|
-
function i(l,
|
|
2163
|
+
function i(l, m) {
|
|
2164
2164
|
if (!r[l]) {
|
|
2165
2165
|
if (!o[l]) {
|
|
2166
2166
|
var s = typeof lt == "function" && lt;
|
|
2167
|
-
if (!
|
|
2167
|
+
if (!m && s) return s(l, !0);
|
|
2168
2168
|
if (d) return d(l, !0);
|
|
2169
|
-
var
|
|
2170
|
-
throw
|
|
2169
|
+
var p = new Error("Cannot find module '" + l + "'");
|
|
2170
|
+
throw p.code = "MODULE_NOT_FOUND", p;
|
|
2171
2171
|
}
|
|
2172
2172
|
var c = r[l] = { exports: {} };
|
|
2173
2173
|
o[l][0].call(c.exports, function(f) {
|
|
@@ -2185,28 +2185,28 @@ var Mr = { exports: {} };
|
|
|
2185
2185
|
1: [function(n, o, r) {
|
|
2186
2186
|
var a = {}, i = "(?:^|\\s)", d = "(?:\\s|$)";
|
|
2187
2187
|
function u(s) {
|
|
2188
|
-
var
|
|
2189
|
-
return
|
|
2188
|
+
var p = a[s];
|
|
2189
|
+
return p ? p.lastIndex = 0 : a[s] = p = new RegExp(i + s + d, "g"), p;
|
|
2190
2190
|
}
|
|
2191
|
-
function l(s,
|
|
2191
|
+
function l(s, p) {
|
|
2192
2192
|
var c = s.className;
|
|
2193
|
-
c.length ? u(
|
|
2193
|
+
c.length ? u(p).test(c) || (s.className += " " + p) : s.className = p;
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2196
|
-
s.className = s.className.replace(u(
|
|
2195
|
+
function m(s, p) {
|
|
2196
|
+
s.className = s.className.replace(u(p), " ").trim();
|
|
2197
2197
|
}
|
|
2198
2198
|
o.exports = {
|
|
2199
2199
|
add: l,
|
|
2200
|
-
rm:
|
|
2200
|
+
rm: m
|
|
2201
2201
|
};
|
|
2202
2202
|
}, {}],
|
|
2203
2203
|
2: [function(n, o, r) {
|
|
2204
2204
|
(function(a) {
|
|
2205
|
-
var i = n("contra/emitter"), d = n("crossvent"), u = n("./classes"), l = document,
|
|
2205
|
+
var i = n("contra/emitter"), d = n("crossvent"), u = n("./classes"), l = document, m = l.documentElement;
|
|
2206
2206
|
function s(y, q) {
|
|
2207
2207
|
var V = arguments.length;
|
|
2208
2208
|
V === 1 && Array.isArray(y) === !1 && (q = y, y = []);
|
|
2209
|
-
var H, W, J, oe, R, M, U, P, K,
|
|
2209
|
+
var H, W, J, oe, R, M, U, P, K, me = null, ve, Y, ne = !1, le = 0, ee, $ = q || {};
|
|
2210
2210
|
$.moves === void 0 && ($.moves = O), $.accepts === void 0 && ($.accepts = O), $.invalid === void 0 && ($.invalid = Ze), $.containers === void 0 && ($.containers = y || []), $.isContainer === void 0 && ($.isContainer = E), $.copy === void 0 && ($.copy = !1), $.copySortSource === void 0 && ($.copySortSource = !1), $.revertOnSpill === void 0 && ($.revertOnSpill = !1), $.removeOnSpill === void 0 && ($.removeOnSpill = !1), $.direction === void 0 && ($.direction = "vertical"), $.ignoreInputTextSelection === void 0 && ($.ignoreInputTextSelection = !0), $.mirrorContainer === void 0 && ($.mirrorContainer = l.body);
|
|
2211
2211
|
var te = i({
|
|
2212
2212
|
containers: $.containers,
|
|
@@ -2224,15 +2224,15 @@ var Mr = { exports: {} };
|
|
|
2224
2224
|
}
|
|
2225
2225
|
function Ie(v) {
|
|
2226
2226
|
var B = v ? "remove" : "add";
|
|
2227
|
-
f(
|
|
2227
|
+
f(m, B, "mousedown", ie), f(m, B, "mouseup", De);
|
|
2228
2228
|
}
|
|
2229
2229
|
function xe(v) {
|
|
2230
2230
|
var B = v ? "remove" : "add";
|
|
2231
|
-
f(
|
|
2231
|
+
f(m, B, "mousemove", Qe);
|
|
2232
2232
|
}
|
|
2233
2233
|
function Ge(v) {
|
|
2234
2234
|
var B = v ? "remove" : "add";
|
|
2235
|
-
d[B](
|
|
2235
|
+
d[B](m, "selectstart", Ue), d[B](m, "click", Ue);
|
|
2236
2236
|
}
|
|
2237
2237
|
function ze() {
|
|
2238
2238
|
Ie(!0), De({});
|
|
@@ -2327,7 +2327,7 @@ var Mr = { exports: {} };
|
|
|
2327
2327
|
}
|
|
2328
2328
|
function X() {
|
|
2329
2329
|
var v = P || J;
|
|
2330
|
-
Ee(), wt(), Ct(), v && u.rm(v, "gu-transit"), K && clearTimeout(K), te.dragging = !1,
|
|
2330
|
+
Ee(), wt(), Ct(), v && u.rm(v, "gu-transit"), K && clearTimeout(K), te.dragging = !1, me && te.emit("out", v, me, W), te.emit("dragend", v, le), W = J = P = M = U = K = me = null;
|
|
2331
2331
|
}
|
|
2332
2332
|
function ae(v, B) {
|
|
2333
2333
|
var N;
|
|
@@ -2351,8 +2351,8 @@ var Mr = { exports: {} };
|
|
|
2351
2351
|
v.preventDefault();
|
|
2352
2352
|
var B = _("clientX", v) || 0, N = _("clientY", v) || 0;
|
|
2353
2353
|
H.style.left = B - 2 + "px", H.style.top = N - 2 + "px";
|
|
2354
|
-
var A = P || J, Q = F(H, B, N), Z = se(Q, B, N), Ce = Z !== null && Z !==
|
|
2355
|
-
(Ce || Z === null) && (be(),
|
|
2354
|
+
var A = P || J, Q = F(H, B, N), Z = se(Q, B, N), Ce = Z !== null && Z !== me;
|
|
2355
|
+
(Ce || Z === null) && (be(), me = Z, Fe()), Ft(Q, N);
|
|
2356
2356
|
var ge = w(A);
|
|
2357
2357
|
if (Z === W && P && !$.copySortSource) {
|
|
2358
2358
|
ge && ge.removeChild(A);
|
|
@@ -2369,13 +2369,13 @@ var Mr = { exports: {} };
|
|
|
2369
2369
|
}
|
|
2370
2370
|
Y.style.display = "block", vt(ye, A, Ce), ye ? St(Te, ye) : Tt(Z);
|
|
2371
2371
|
function ue(fe) {
|
|
2372
|
-
te.emit(fe, A,
|
|
2372
|
+
te.emit(fe, A, me, W);
|
|
2373
2373
|
}
|
|
2374
2374
|
function Fe() {
|
|
2375
2375
|
Ce && ue("over");
|
|
2376
2376
|
}
|
|
2377
2377
|
function be() {
|
|
2378
|
-
|
|
2378
|
+
me && ue("out");
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
2381
|
function vt(v, B, N) {
|
|
@@ -2388,7 +2388,7 @@ var Mr = { exports: {} };
|
|
|
2388
2388
|
te.dragging && u.add(v, "gu-hide");
|
|
2389
2389
|
}
|
|
2390
2390
|
function yt() {
|
|
2391
|
-
H || (H = document.createElement("div"), H.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;", H.innerHTML = $.getMirrorText && $.getMirrorText(J) || "控件", u.add(H, "gu-mirror"), $.mirrorContainer.appendChild(H), f(
|
|
2391
|
+
H || (H = document.createElement("div"), H.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;", H.innerHTML = $.getMirrorText && $.getMirrorText(J) || "控件", u.add(H, "gu-mirror"), $.mirrorContainer.appendChild(H), f(m, "add", "mousemove", Me), u.add($.mirrorContainer, "gu-unselectable"), te.emit("cloned", H, J, "mirror"));
|
|
2392
2392
|
}
|
|
2393
2393
|
function bt() {
|
|
2394
2394
|
if (Y = document.createElement("div"), u.add(Y, "gu-insertion"), J) {
|
|
@@ -2398,7 +2398,7 @@ var Mr = { exports: {} };
|
|
|
2398
2398
|
ne = !1, $.mirrorContainer.appendChild(Y);
|
|
2399
2399
|
}
|
|
2400
2400
|
function wt() {
|
|
2401
|
-
H && (u.rm($.mirrorContainer, "gu-unselectable"), f(
|
|
2401
|
+
H && (u.rm($.mirrorContainer, "gu-unselectable"), f(m, "remove", "mousemove", Me), w(H).removeChild(H), H = null);
|
|
2402
2402
|
}
|
|
2403
2403
|
function Ct() {
|
|
2404
2404
|
Y && (w(Y).removeChild(Y), Y = null);
|
|
@@ -2406,7 +2406,7 @@ var Mr = { exports: {} };
|
|
|
2406
2406
|
function it(v, B) {
|
|
2407
2407
|
for (var N = B; N !== v && w(N) !== v; )
|
|
2408
2408
|
N = w(N);
|
|
2409
|
-
return N ===
|
|
2409
|
+
return N === m ? null : N;
|
|
2410
2410
|
}
|
|
2411
2411
|
function Ke(v, B) {
|
|
2412
2412
|
if (!B)
|
|
@@ -2466,7 +2466,7 @@ var Mr = { exports: {} };
|
|
|
2466
2466
|
Y.style.display = "none";
|
|
2467
2467
|
}
|
|
2468
2468
|
function Ft(v, B) {
|
|
2469
|
-
if (!$.mirrorContainer.contains(v) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ee =
|
|
2469
|
+
if (!$.mirrorContainer.contains(v) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ee = p(v), !ee || !ee.contains(v)))
|
|
2470
2470
|
return;
|
|
2471
2471
|
const N = document.querySelector(".dgComponentSelected"), A = ee.getBoundingClientRect();
|
|
2472
2472
|
if (B - 30 < A.top && ee.scrollTop > 0) {
|
|
@@ -2505,7 +2505,7 @@ var Mr = { exports: {} };
|
|
|
2505
2505
|
return typeof $.copy == "boolean" ? $.copy : $.copy(v, B);
|
|
2506
2506
|
}
|
|
2507
2507
|
}
|
|
2508
|
-
function
|
|
2508
|
+
function p(y) {
|
|
2509
2509
|
const q = Array.from(window.scrollContainerList);
|
|
2510
2510
|
if (q.length === 1) {
|
|
2511
2511
|
const H = Array.from(window.scrollContainerList)[0];
|
|
@@ -2618,35 +2618,35 @@ var Mr = { exports: {} };
|
|
|
2618
2618
|
5: [function(n, o, r) {
|
|
2619
2619
|
var a = n("atoa"), i = n("./debounce");
|
|
2620
2620
|
o.exports = function(u, l) {
|
|
2621
|
-
var
|
|
2622
|
-
return u === void 0 && (u = {}), u.on = function(
|
|
2623
|
-
return s[
|
|
2624
|
-
}, u.once = function(
|
|
2625
|
-
return c._once = !0, u.on(
|
|
2626
|
-
}, u.off = function(
|
|
2621
|
+
var m = l || {}, s = {};
|
|
2622
|
+
return u === void 0 && (u = {}), u.on = function(p, c) {
|
|
2623
|
+
return s[p] ? s[p].push(c) : s[p] = [c], u;
|
|
2624
|
+
}, u.once = function(p, c) {
|
|
2625
|
+
return c._once = !0, u.on(p, c), u;
|
|
2626
|
+
}, u.off = function(p, c) {
|
|
2627
2627
|
var f = arguments.length;
|
|
2628
2628
|
if (f === 1)
|
|
2629
|
-
delete s[
|
|
2629
|
+
delete s[p];
|
|
2630
2630
|
else if (f === 0)
|
|
2631
2631
|
s = {};
|
|
2632
2632
|
else {
|
|
2633
|
-
var g = s[
|
|
2633
|
+
var g = s[p];
|
|
2634
2634
|
if (!g)
|
|
2635
2635
|
return u;
|
|
2636
2636
|
g.splice(g.indexOf(c), 1);
|
|
2637
2637
|
}
|
|
2638
2638
|
return u;
|
|
2639
2639
|
}, u.emit = function() {
|
|
2640
|
-
var
|
|
2641
|
-
return u.emitterSnapshot(
|
|
2642
|
-
}, u.emitterSnapshot = function(
|
|
2643
|
-
var c = (s[
|
|
2640
|
+
var p = a(arguments);
|
|
2641
|
+
return u.emitterSnapshot(p.shift()).apply(this, p);
|
|
2642
|
+
}, u.emitterSnapshot = function(p) {
|
|
2643
|
+
var c = (s[p] || []).slice(0);
|
|
2644
2644
|
return function() {
|
|
2645
2645
|
var f = a(arguments), g = this || u;
|
|
2646
|
-
if (
|
|
2646
|
+
if (p === "error" && m.throws !== !1 && !c.length)
|
|
2647
2647
|
throw f.length === 1 ? f[0] : f;
|
|
2648
2648
|
return c.forEach(function(E) {
|
|
2649
|
-
|
|
2649
|
+
m.async ? i(E, f, g) : E.apply(g, f), E._once && u.off(p, E);
|
|
2650
2650
|
}), u;
|
|
2651
2651
|
};
|
|
2652
2652
|
}, u;
|
|
@@ -2654,13 +2654,13 @@ var Mr = { exports: {} };
|
|
|
2654
2654
|
}, { "./debounce": 4, atoa: 3 }],
|
|
2655
2655
|
6: [function(n, o, r) {
|
|
2656
2656
|
(function(a) {
|
|
2657
|
-
var i = n("custom-event"), d = n("./eventmap"), u = a.document, l =
|
|
2658
|
-
a.addEventListener || (l = c,
|
|
2657
|
+
var i = n("custom-event"), d = n("./eventmap"), u = a.document, l = p, m = f, s = [];
|
|
2658
|
+
a.addEventListener || (l = c, m = g), o.exports = {
|
|
2659
2659
|
add: l,
|
|
2660
|
-
remove:
|
|
2660
|
+
remove: m,
|
|
2661
2661
|
fabricate: F
|
|
2662
2662
|
};
|
|
2663
|
-
function
|
|
2663
|
+
function p(w, h, C, x) {
|
|
2664
2664
|
return w.addEventListener(h, C, x);
|
|
2665
2665
|
}
|
|
2666
2666
|
function c(w, h, C) {
|
|
@@ -2740,14 +2740,14 @@ var Mr = { exports: {} };
|
|
|
2740
2740
|
}
|
|
2741
2741
|
o.exports = d() ? i : (
|
|
2742
2742
|
// IE >= 9
|
|
2743
|
-
typeof document < "u" && typeof document.createEvent == "function" ? function(l,
|
|
2743
|
+
typeof document < "u" && typeof document.createEvent == "function" ? function(l, m) {
|
|
2744
2744
|
var s = document.createEvent("CustomEvent");
|
|
2745
|
-
return
|
|
2745
|
+
return m ? s.initCustomEvent(l, m.bubbles, m.cancelable, m.detail) : s.initCustomEvent(l, !1, !1, void 0), s;
|
|
2746
2746
|
} : (
|
|
2747
2747
|
// IE <= 8
|
|
2748
|
-
function(l,
|
|
2748
|
+
function(l, m) {
|
|
2749
2749
|
var s = document.createEventObject();
|
|
2750
|
-
return s.type = l,
|
|
2750
|
+
return s.type = l, m ? (s.bubbles = !!m.bubbles, s.cancelable = !!m.cancelable, s.detail = m.detail) : (s.bubbles = !1, s.cancelable = !1, s.detail = void 0), s;
|
|
2751
2751
|
}
|
|
2752
2752
|
)
|
|
2753
2753
|
);
|
|
@@ -2773,7 +2773,7 @@ var Mr = { exports: {} };
|
|
|
2773
2773
|
d = l;
|
|
2774
2774
|
}
|
|
2775
2775
|
})();
|
|
2776
|
-
function
|
|
2776
|
+
function m(D) {
|
|
2777
2777
|
if (i === setTimeout)
|
|
2778
2778
|
return setTimeout(D, 0);
|
|
2779
2779
|
if ((i === u || !i) && setTimeout)
|
|
@@ -2803,18 +2803,18 @@ var Mr = { exports: {} };
|
|
|
2803
2803
|
}
|
|
2804
2804
|
}
|
|
2805
2805
|
}
|
|
2806
|
-
var
|
|
2806
|
+
var p = [], c = !1, f, g = -1;
|
|
2807
2807
|
function F() {
|
|
2808
|
-
!c || !f || (c = !1, f.length ?
|
|
2808
|
+
!c || !f || (c = !1, f.length ? p = f.concat(p) : g = -1, p.length && E());
|
|
2809
2809
|
}
|
|
2810
2810
|
function E() {
|
|
2811
2811
|
if (!c) {
|
|
2812
|
-
var D =
|
|
2812
|
+
var D = m(F);
|
|
2813
2813
|
c = !0;
|
|
2814
|
-
for (var w =
|
|
2815
|
-
for (f =
|
|
2814
|
+
for (var w = p.length; w; ) {
|
|
2815
|
+
for (f = p, p = []; ++g < w; )
|
|
2816
2816
|
f && f[g].run();
|
|
2817
|
-
g = -1, w =
|
|
2817
|
+
g = -1, w = p.length;
|
|
2818
2818
|
}
|
|
2819
2819
|
f = null, c = !1, s(D);
|
|
2820
2820
|
}
|
|
@@ -2824,7 +2824,7 @@ var Mr = { exports: {} };
|
|
|
2824
2824
|
if (arguments.length > 1)
|
|
2825
2825
|
for (var h = 1; h < arguments.length; h++)
|
|
2826
2826
|
w[h - 1] = arguments[h];
|
|
2827
|
-
|
|
2827
|
+
p.push(new O(D, w)), p.length === 1 && !c && m(E);
|
|
2828
2828
|
};
|
|
2829
2829
|
function O(D, w) {
|
|
2830
2830
|
this.fun = D, this.array = w;
|
|
@@ -2858,19 +2858,19 @@ var Mr = { exports: {} };
|
|
|
2858
2858
|
}, { timers: 11 }],
|
|
2859
2859
|
11: [function(n, o, r) {
|
|
2860
2860
|
(function(a, i) {
|
|
2861
|
-
var d = n("process/browser.js").nextTick, u = Function.prototype.apply, l = Array.prototype.slice,
|
|
2861
|
+
var d = n("process/browser.js").nextTick, u = Function.prototype.apply, l = Array.prototype.slice, m = {}, s = 0;
|
|
2862
2862
|
r.setTimeout = function() {
|
|
2863
|
-
return new
|
|
2863
|
+
return new p(u.call(setTimeout, window, arguments), clearTimeout);
|
|
2864
2864
|
}, r.setInterval = function() {
|
|
2865
|
-
return new
|
|
2865
|
+
return new p(u.call(setInterval, window, arguments), clearInterval);
|
|
2866
2866
|
}, r.clearTimeout = r.clearInterval = function(c) {
|
|
2867
2867
|
c.close();
|
|
2868
2868
|
};
|
|
2869
|
-
function
|
|
2869
|
+
function p(c, f) {
|
|
2870
2870
|
this._id = c, this._clearFn = f;
|
|
2871
2871
|
}
|
|
2872
|
-
|
|
2873
|
-
},
|
|
2872
|
+
p.prototype.unref = p.prototype.ref = function() {
|
|
2873
|
+
}, p.prototype.close = function() {
|
|
2874
2874
|
this._clearFn.call(window, this._id);
|
|
2875
2875
|
}, r.enroll = function(c, f) {
|
|
2876
2876
|
clearTimeout(c._idleTimeoutId), c._idleTimeout = f;
|
|
@@ -2884,11 +2884,11 @@ var Mr = { exports: {} };
|
|
|
2884
2884
|
}, f));
|
|
2885
2885
|
}, r.setImmediate = typeof a == "function" ? a : function(c) {
|
|
2886
2886
|
var f = s++, g = arguments.length < 2 ? !1 : l.call(arguments, 1);
|
|
2887
|
-
return
|
|
2888
|
-
|
|
2887
|
+
return m[f] = !0, d(function() {
|
|
2888
|
+
m[f] && (g ? c.apply(null, g) : c.call(null), r.clearImmediate(f));
|
|
2889
2889
|
}), f;
|
|
2890
2890
|
}, r.clearImmediate = typeof i == "function" ? i : function(c) {
|
|
2891
|
-
delete
|
|
2891
|
+
delete m[c];
|
|
2892
2892
|
};
|
|
2893
2893
|
}).call(this, n("timers").setImmediate, n("timers").clearImmediate);
|
|
2894
2894
|
}, { "process/browser.js": 9, timers: 11 }]
|
|
@@ -2920,7 +2920,7 @@ const Ir = {
|
|
|
2920
2920
|
const {
|
|
2921
2921
|
locale: n,
|
|
2922
2922
|
t: o
|
|
2923
|
-
} = Rt(), r = b(e.animate), a = "fadeOut", i = z(() => e.options), d = b(!1), u = z(() => i.value.title && i.value.message), l = z(() => !i.value.title && i.value.message),
|
|
2923
|
+
} = Rt(), r = b(e.animate), a = "fadeOut", i = z(() => e.options), d = b(!1), u = z(() => i.value.title && i.value.message), l = z(() => !i.value.title && i.value.message), m = z(() => {
|
|
2924
2924
|
const D = {
|
|
2925
2925
|
animated: d.value,
|
|
2926
2926
|
toast: !0,
|
|
@@ -2932,7 +2932,7 @@ const Ir = {
|
|
|
2932
2932
|
"f-icon": !0
|
|
2933
2933
|
};
|
|
2934
2934
|
return C[h] = !0, C;
|
|
2935
|
-
}),
|
|
2935
|
+
}), p = z(() => i.value.title || i.value.message), c = z(() => e.showCloseButton), f = z(() => !!i.value.buttons || !!t.slots.default), g = z(() => n.value === "en" ? {
|
|
2936
2936
|
wordBreak: "keep-all",
|
|
2937
2937
|
overflowWrap: "break-word"
|
|
2938
2938
|
} : {});
|
|
@@ -2959,7 +2959,7 @@ const Ir = {
|
|
|
2959
2959
|
}, [w.text]))), t.slots.default && t.slots.default()])]);
|
|
2960
2960
|
};
|
|
2961
2961
|
return () => T("div", {
|
|
2962
|
-
class:
|
|
2962
|
+
class: m.value,
|
|
2963
2963
|
style: "min-height:44px"
|
|
2964
2964
|
}, [c.value && T("button", {
|
|
2965
2965
|
title: o("messageBox.close"),
|
|
@@ -2967,7 +2967,7 @@ const Ir = {
|
|
|
2967
2967
|
onClick: F
|
|
2968
2968
|
}, [T("span", {
|
|
2969
2969
|
class: "f-icon modal_close"
|
|
2970
|
-
}, null)]),
|
|
2970
|
+
}, null)]), p.value && T("section", {
|
|
2971
2971
|
class: "modal-tips"
|
|
2972
2972
|
}, [!u.value && T("div", {
|
|
2973
2973
|
class: "float-left modal-tips-iconwrap"
|
|
@@ -3009,27 +3009,27 @@ const Ir = {
|
|
|
3009
3009
|
top: 20,
|
|
3010
3010
|
bottom: 12
|
|
3011
3011
|
}, r = b(), a = b(e.options), i = b(e.showCloseButton), d = z(() => e.position || "bottom-right"), u = z(() => e.timeout != null ? e.timeout : 3e3), l = z(() => {
|
|
3012
|
-
const
|
|
3012
|
+
const p = e.bottom ? e.bottom : o.bottom, c = e.top ? e.top : o.top, f = {
|
|
3013
3013
|
transition: "all 0.2s ease",
|
|
3014
3014
|
left: d.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
3015
3015
|
right: d.value.indexOf("right") > -1 ? `${e.right ? e.right : o.right}px` : "",
|
|
3016
3016
|
top: d.value.indexOf("top") > -1 ? `${c}px` : "",
|
|
3017
|
-
bottom: d.value.indexOf("bottom") > -1 ? `${
|
|
3017
|
+
bottom: d.value.indexOf("bottom") > -1 ? `${p}px` : ""
|
|
3018
3018
|
};
|
|
3019
3019
|
return d.value.indexOf("center") > -1 && (f.left = "50%", f.marginLeft = "calc(-24rem / 2)", d.value === "center-center" && (f.top = "50%", f.transform = "translate(-50%, -50%)")), f;
|
|
3020
3020
|
});
|
|
3021
|
-
function p
|
|
3021
|
+
function m(p) {
|
|
3022
3022
|
t.emit("close");
|
|
3023
3023
|
}
|
|
3024
3024
|
u.value && setTimeout(() => {
|
|
3025
|
-
|
|
3025
|
+
m();
|
|
3026
3026
|
}, u.value), t.expose({
|
|
3027
|
-
closeToast:
|
|
3027
|
+
closeToast: m,
|
|
3028
3028
|
container: r,
|
|
3029
3029
|
notifyPosition: d
|
|
3030
3030
|
});
|
|
3031
|
-
function s(
|
|
3032
|
-
|
|
3031
|
+
function s(p, c) {
|
|
3032
|
+
m();
|
|
3033
3033
|
}
|
|
3034
3034
|
return () => T("div", {
|
|
3035
3035
|
class: n.value,
|
|
@@ -3039,7 +3039,7 @@ const Ir = {
|
|
|
3039
3039
|
options: a.value,
|
|
3040
3040
|
showCloseButton: i.value,
|
|
3041
3041
|
animate: e.animate,
|
|
3042
|
-
onClose: (
|
|
3042
|
+
onClose: (p) => s(p, a.value)
|
|
3043
3043
|
}, null)]);
|
|
3044
3044
|
}
|
|
3045
3045
|
});
|
|
@@ -3074,10 +3074,10 @@ class Rr {
|
|
|
3074
3074
|
}, 220);
|
|
3075
3075
|
}
|
|
3076
3076
|
if (r.position.indexOf("top") > -1) {
|
|
3077
|
-
const
|
|
3077
|
+
const m = n.getNotifyInstances(r.position), s = m[m.length - 1];
|
|
3078
3078
|
if (s) {
|
|
3079
|
-
const
|
|
3080
|
-
r.top =
|
|
3079
|
+
const p = s.value.container.getBoundingClientRect();
|
|
3080
|
+
r.top = p.bottom;
|
|
3081
3081
|
}
|
|
3082
3082
|
}
|
|
3083
3083
|
return r.safeHtml && ((l = r.options) != null && l.message) && (r.options.message = n.escapeAllHtml(r.options.message)), ft(() => {
|
|
@@ -3097,7 +3097,7 @@ class Rr {
|
|
|
3097
3097
|
});
|
|
3098
3098
|
}
|
|
3099
3099
|
});
|
|
3100
|
-
return i.provide("NotifyService", this), document.body.appendChild(a), i.use(
|
|
3100
|
+
return i.provide("NotifyService", this), document.body.appendChild(a), i.use(pt.i18n), i.mount(a), i;
|
|
3101
3101
|
}
|
|
3102
3102
|
getNotifyInstances(t) {
|
|
3103
3103
|
return this.notifyRefs.filter((n) => n.value.notifyPosition === t);
|
|
@@ -3168,7 +3168,7 @@ ut.install = (e) => {
|
|
|
3168
3168
|
const t = new Rr();
|
|
3169
3169
|
e.provide(Nr, t), e.provide("FNotifyService", t);
|
|
3170
3170
|
};
|
|
3171
|
-
`${
|
|
3171
|
+
`${pt.getLocaleValue("datagrid.loadingMessage")}`;
|
|
3172
3172
|
const Dr = {
|
|
3173
3173
|
/** 自定义样式 */
|
|
3174
3174
|
customClass: { type: String, default: "" },
|
|
@@ -3256,7 +3256,7 @@ const Dr = {
|
|
|
3256
3256
|
default: {
|
|
3257
3257
|
enable: !0,
|
|
3258
3258
|
width: 32,
|
|
3259
|
-
heading:
|
|
3259
|
+
heading: pt.getLocaleValue("datagrid.lineNumberTitle")
|
|
3260
3260
|
}
|
|
3261
3261
|
},
|
|
3262
3262
|
/** 行配置 */
|
|
@@ -3318,7 +3318,7 @@ const Dr = {
|
|
|
3318
3318
|
}
|
|
3319
3319
|
}
|
|
3320
3320
|
};
|
|
3321
|
-
function jr(e, t, n, o, r, a, i, d, u, l,
|
|
3321
|
+
function jr(e, t, n, o, r, a, i, d, u, l, m, s, p, c, f, g, F) {
|
|
3322
3322
|
const {
|
|
3323
3323
|
calculateCellPositionInRow: E
|
|
3324
3324
|
} = a, {
|
|
@@ -3331,7 +3331,7 @@ function jr(e, t, n, o, r, a, i, d, u, l, p, s, m, c, f, g, F) {
|
|
|
3331
3331
|
rightFixedGridDataStyle: C
|
|
3332
3332
|
} = c, {
|
|
3333
3333
|
renderDataRow: x
|
|
3334
|
-
} = In(e, t, O, F, d, u, l,
|
|
3334
|
+
} = In(e, t, O, F, d, u, l, m, s, p, c, f, g), k = [x];
|
|
3335
3335
|
function _(W, J) {
|
|
3336
3336
|
const oe = E(W);
|
|
3337
3337
|
return F.value.filter((R) => R.visible !== !1).map((R, M) => k[R.type](R, oe, J, M));
|
|
@@ -3379,7 +3379,7 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3379
3379
|
var jt, Pt;
|
|
3380
3380
|
const o = ((jt = e.rowOption) == null ? void 0 : jt.height) || 28, r = b(20), a = b(e.columns), i = On(e), {
|
|
3381
3381
|
idField: d
|
|
3382
|
-
} = i, u = b(), l = b(),
|
|
3382
|
+
} = i, u = b(), l = b(), m = b(), s = b(), p = b(), c = b([]), f = b(!1), g = b(((Pt = e.rowOption) == null ? void 0 : Pt.wrapContent) || !1), F = Rn(e, i), E = Nn(e, t), O = Dn(e), {
|
|
3383
3383
|
collapseField: L
|
|
3384
3384
|
} = O, {
|
|
3385
3385
|
showLoading: D,
|
|
@@ -3403,11 +3403,11 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3403
3403
|
} = Vn(e);
|
|
3404
3404
|
e.showSetting && M(a);
|
|
3405
3405
|
const P = _n(e, t), K = qn(e), {
|
|
3406
|
-
applyColumnSorter:
|
|
3406
|
+
applyColumnSorter: me,
|
|
3407
3407
|
columnContext: ve,
|
|
3408
3408
|
updateColumnRenderContext: Y
|
|
3409
3409
|
} = P;
|
|
3410
|
-
|
|
3410
|
+
me(h, K);
|
|
3411
3411
|
const ne = Wn(e, ve), le = Gn(e, t, x, i), ee = Un(e, t, i, le, c), $ = Yn(e), te = Xn(e, ee, $), $e = Jn(e, h, ee, O, i, $, te), Ie = Qn(e, a, h, V, 0, $e), {
|
|
3412
3412
|
getVisualData: xe
|
|
3413
3413
|
} = Ie, Ge = Zn(e, ve), ze = Kn(e, x), {
|
|
@@ -3421,7 +3421,7 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3421
3421
|
updateVisibleRowsOnLatestVisibleScope: Ze
|
|
3422
3422
|
} = ie, Le = to(e, ve, l, Se, ne), {
|
|
3423
3423
|
calculateColumnsSize: Ee
|
|
3424
|
-
} = Le, De = no(), Ye = oo(l,
|
|
3424
|
+
} = Le, De = no(), Ye = oo(l, p, h, De, ie), Xe = ro(e, t, P, h, ne, F, ie), S = z(() => {
|
|
3425
3425
|
const j = {
|
|
3426
3426
|
"fv-grid": !0,
|
|
3427
3427
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -3435,11 +3435,11 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3435
3435
|
"fv-grid-wrap-content": g.value
|
|
3436
3436
|
})), {
|
|
3437
3437
|
renderDataArea: ae
|
|
3438
|
-
} = jr(e, t,
|
|
3438
|
+
} = jr(e, t, m, s, p, Ge, P, h, ee, O, le, x, y, ie, Ie, $, c), {
|
|
3439
3439
|
renderGridHeader: se,
|
|
3440
3440
|
renderGridColumnResizeOverlay: Me,
|
|
3441
3441
|
shouldShowHeader: vt
|
|
3442
|
-
} = io(e, t, l, s,
|
|
3442
|
+
} = io(e, t, l, s, p, P, h, Xe, Ye, E, De, Le, ne, x, ze, K, ie, Se, c), {
|
|
3443
3443
|
renderDataGridSidebar: gt
|
|
3444
3444
|
} = ao(e, le, x, ze, ie), {
|
|
3445
3445
|
renderDisableMask: ht
|
|
@@ -3451,13 +3451,13 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3451
3451
|
function wt() {
|
|
3452
3452
|
var j, G, ce;
|
|
3453
3453
|
if (l.value && l.value.clientHeight > 0 && ((j = l.value) == null ? void 0 : j.clientWidth) > 0) {
|
|
3454
|
-
const
|
|
3455
|
-
|
|
3454
|
+
const pe = Math.ceil(l.value.clientHeight / o);
|
|
3455
|
+
pe > r.value && (r.value = pe, Ze()), Re.value = ((G = m.value) == null ? void 0 : G.clientHeight) || 0, Oe.value = ((ce = l.value) == null ? void 0 : ce.clientWidth) || 0, Ee();
|
|
3456
3456
|
}
|
|
3457
3457
|
}
|
|
3458
3458
|
dt(() => {
|
|
3459
3459
|
l.value && (r.value = Math.max(Math.ceil(l.value.clientHeight / o), r.value), c.value = xe(0, V.value + 0 - 1), Mn(l.value, wt), Ee(), It(() => {
|
|
3460
|
-
l.value && (Oe.value = l.value.clientWidth),
|
|
3460
|
+
l.value && (Oe.value = l.value.clientWidth), m.value && (Se.value = m.value.clientWidth, Re.value = m.value.clientHeight);
|
|
3461
3461
|
})), D.value && w();
|
|
3462
3462
|
}), ft(() => {
|
|
3463
3463
|
}), Be(Se, () => {
|
|
@@ -3482,8 +3482,8 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3482
3482
|
h.insertNewChildDataItem(j), c.value = xe(0, V.value + 0 - 1);
|
|
3483
3483
|
}
|
|
3484
3484
|
function Tt(j, G) {
|
|
3485
|
-
const ce = c.value.find((we) => we.raw[d.value] === G),
|
|
3486
|
-
h.insertNewChildDataItems(j,
|
|
3485
|
+
const ce = c.value.find((we) => we.raw[d.value] === G), pe = ce ? ce.dataIndex - 1 : -1;
|
|
3486
|
+
h.insertNewChildDataItems(j, pe);
|
|
3487
3487
|
}
|
|
3488
3488
|
function Ft() {
|
|
3489
3489
|
const j = Ke(), G = y.getNextSelectableHierarchyItemId(j);
|
|
@@ -3499,7 +3499,7 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3499
3499
|
ee.cancelEditingRow(j);
|
|
3500
3500
|
}
|
|
3501
3501
|
function B(j) {
|
|
3502
|
-
j && (a.value = j, R(a), Y(a.value),
|
|
3502
|
+
j && (a.value = j, R(a), Y(a.value), me(h, K), Ee());
|
|
3503
3503
|
}
|
|
3504
3504
|
Be(() => e.columns, (j) => {
|
|
3505
3505
|
B(j);
|
|
@@ -3539,10 +3539,10 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3539
3539
|
return x.currentSelectedDataId.value;
|
|
3540
3540
|
}
|
|
3541
3541
|
function et(j, G, ce) {
|
|
3542
|
-
const
|
|
3543
|
-
if (
|
|
3544
|
-
if (Object.keys(
|
|
3545
|
-
Object.prototype.hasOwnProperty.call(G, de) && (
|
|
3542
|
+
const pe = C.value.find((we) => we[d.value] === j);
|
|
3543
|
+
if (pe) {
|
|
3544
|
+
if (Object.keys(pe).forEach((de) => {
|
|
3545
|
+
Object.prototype.hasOwnProperty.call(G, de) && (pe[de] = G[de]);
|
|
3546
3546
|
}), ce) {
|
|
3547
3547
|
const {
|
|
3548
3548
|
collapseField: de,
|
|
@@ -3550,12 +3550,12 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3550
3550
|
checkedField: Ve,
|
|
3551
3551
|
visibleField: _e
|
|
3552
3552
|
} = ce;
|
|
3553
|
-
de && !je(G[de]) && (
|
|
3553
|
+
de && !je(G[de]) && (pe.__fv_collapse__ = G[de]), Ve && !je(G[Ve]) && (pe.__fv_checked__ = G[Ve]), Ae && !je(G[Ae]) && (pe.__fv_disabled__ = G[Ae]), _e && !je(G[_e]) && (pe.__fv_visible__ = G[_e]);
|
|
3554
3554
|
}
|
|
3555
3555
|
const we = c.value.find((de) => de.raw[d.value] === j), Ht = c.value.findIndex((de) => de.raw[d.value] === j);
|
|
3556
3556
|
if (we) {
|
|
3557
|
-
if (we.raw =
|
|
3558
|
-
we.data[de].updateData(
|
|
3557
|
+
if (we.raw = pe, Object.keys(we.data).forEach((de) => {
|
|
3558
|
+
we.data[de].updateData(pe);
|
|
3559
3559
|
}), ce) {
|
|
3560
3560
|
const {
|
|
3561
3561
|
collapseField: de,
|
|
@@ -3586,7 +3586,7 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3586
3586
|
return c.value.filter((G) => j.includes(G.raw[e.idField]));
|
|
3587
3587
|
}
|
|
3588
3588
|
function cn(j) {
|
|
3589
|
-
const G = i.idField.value, ce = c.value.find((
|
|
3589
|
+
const G = i.idField.value, ce = c.value.find((pe) => pe.raw[G] === j);
|
|
3590
3590
|
ce && le.changeRow(ce);
|
|
3591
3591
|
}
|
|
3592
3592
|
function dn() {
|
|
@@ -3624,12 +3624,12 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3624
3624
|
const fn = z(() => {
|
|
3625
3625
|
const j = {};
|
|
3626
3626
|
return ie.shouldShowHorizontalScrollbar.value && (j.paddingBottom = "10px"), ie.shouldShowVirticalScrollbar.value && (j.paddingRight = "10px"), j;
|
|
3627
|
-
}),
|
|
3627
|
+
}), pn = z(() => ({
|
|
3628
3628
|
...J.value,
|
|
3629
3629
|
borderRadius: "5px"
|
|
3630
3630
|
}));
|
|
3631
3631
|
fo(e, t, h, ie, H, x);
|
|
3632
|
-
const
|
|
3632
|
+
const mn = z(() => ({
|
|
3633
3633
|
"d-flex": !0,
|
|
3634
3634
|
"justify-content-between": W.value && k.value,
|
|
3635
3635
|
"justify-content-end": W.value && !k.value,
|
|
@@ -3639,11 +3639,11 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3639
3639
|
"align-items-center": !0
|
|
3640
3640
|
})), {
|
|
3641
3641
|
renderDataGridSummary: gn
|
|
3642
|
-
} =
|
|
3642
|
+
} = po(e, h, P);
|
|
3643
3643
|
return () => T("div", {
|
|
3644
3644
|
ref: u,
|
|
3645
3645
|
class: S.value,
|
|
3646
|
-
style:
|
|
3646
|
+
style: pn.value,
|
|
3647
3647
|
onWheel: Qe
|
|
3648
3648
|
}, [l.value && vt.value && se(), T("div", {
|
|
3649
3649
|
ref: l,
|
|
@@ -3652,7 +3652,7 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3652
3652
|
onMouseleave: () => f.value = !1,
|
|
3653
3653
|
style: fn.value
|
|
3654
3654
|
}, [l.value && gt(c), l.value && ae(), l.value && Te.value && ue(), l.value && yt(), l.value && bt()]), l.value && gn(), k.value && T("div", {
|
|
3655
|
-
class:
|
|
3655
|
+
class: mn.value
|
|
3656
3656
|
}, [k.value && T("div", {
|
|
3657
3657
|
class: vn.value
|
|
3658
3658
|
}, [T("div", null, ["已选:" + _.value.length, Tn(" 条")])])]), Me(), q.value && ht()]);
|
|
@@ -3796,7 +3796,7 @@ const zr = "https://json-schema.org/draft/2020-12/schema", Lr = "https://farris-
|
|
|
3796
3796
|
onClick: { type: Function, default: () => {
|
|
3797
3797
|
} }
|
|
3798
3798
|
};
|
|
3799
|
-
|
|
3799
|
+
mt(Zr, Gr, Hr, $r, Qr);
|
|
3800
3800
|
const Kr = "root-viewmodel";
|
|
3801
3801
|
class ei {
|
|
3802
3802
|
constructor(t, n) {
|
|
@@ -3856,8 +3856,8 @@ class ei {
|
|
|
3856
3856
|
const { selectedFields: a } = t;
|
|
3857
3857
|
a == null || a.forEach((d) => {
|
|
3858
3858
|
if (d.$type === $t.SimpleField) {
|
|
3859
|
-
const u = Et(d), l = this.resolveControlClassByFormColumns(t),
|
|
3860
|
-
|
|
3859
|
+
const u = Et(d), l = this.resolveControlClassByFormColumns(t), m = this.controlCreatorUtils.setFormFieldProperty(u, "", l);
|
|
3860
|
+
m && r.push(m);
|
|
3861
3861
|
}
|
|
3862
3862
|
});
|
|
3863
3863
|
const { templateId: i } = this.formSchemaUtils.getFormSchema().module;
|
|
@@ -3924,7 +3924,7 @@ class ei {
|
|
|
3924
3924
|
}
|
|
3925
3925
|
}
|
|
3926
3926
|
function ti(e, t, n, o) {
|
|
3927
|
-
var a, i, d, u, l,
|
|
3927
|
+
var a, i, d, u, l, m;
|
|
3928
3928
|
const r = n.parentComponentInstance;
|
|
3929
3929
|
if (r && o) {
|
|
3930
3930
|
const s = (a = r.schema) == null ? void 0 : a.type, c = {
|
|
@@ -3934,7 +3934,7 @@ function ti(e, t, n, o) {
|
|
|
3934
3934
|
formColumns: s === "splitter-pane" ? 1 : 4,
|
|
3935
3935
|
parentContainerId: r.schema.id,
|
|
3936
3936
|
bindTo: ((l = n.bindingSourceContext) == null ? void 0 : l.bindTo) || "/",
|
|
3937
|
-
selectedFields: (
|
|
3937
|
+
selectedFields: (m = n.bindingSourceContext) == null ? void 0 : m.bindingEntityFields
|
|
3938
3938
|
};
|
|
3939
3939
|
return new ei(e, o).createComponent(c);
|
|
3940
3940
|
} else
|
|
@@ -4006,7 +4006,7 @@ const oi = "https://json-schema.org/draft/2020-12/schema", ri = "https://farris-
|
|
|
4006
4006
|
/** 内部控件布局是否响应国际化 */
|
|
4007
4007
|
adaptForLanguage: { type: Boolean, default: !0 }
|
|
4008
4008
|
};
|
|
4009
|
-
|
|
4009
|
+
mt(di, ci, Dt, ti);
|
|
4010
4010
|
const fi = {
|
|
4011
4011
|
id: { type: String, default: "" },
|
|
4012
4012
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
@@ -4022,13 +4022,13 @@ const fi = {
|
|
|
4022
4022
|
*/
|
|
4023
4023
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
4024
4024
|
};
|
|
4025
|
-
|
|
4025
|
+
mt(
|
|
4026
4026
|
fi,
|
|
4027
4027
|
ln,
|
|
4028
4028
|
Dt,
|
|
4029
4029
|
void 0
|
|
4030
4030
|
);
|
|
4031
|
-
const
|
|
4031
|
+
const pi = "https://json-schema.org/draft/2020-12/schema", mi = "https://farris-design.gitee.io/grid-field-editor.schema.json", vi = "response-form-layout-setting", gi = "A Farris Data Grid Component", hi = "object", yi = {
|
|
4032
4032
|
id: {
|
|
4033
4033
|
description: "The unique identifier for a Input Group",
|
|
4034
4034
|
type: "string"
|
|
@@ -4046,8 +4046,8 @@ const mi = "https://json-schema.org/draft/2020-12/schema", pi = "https://farris-
|
|
|
4046
4046
|
"id",
|
|
4047
4047
|
"type"
|
|
4048
4048
|
], wi = {
|
|
4049
|
-
$schema:
|
|
4050
|
-
$id:
|
|
4049
|
+
$schema: pi,
|
|
4050
|
+
$id: mi,
|
|
4051
4051
|
title: vi,
|
|
4052
4052
|
description: gi,
|
|
4053
4053
|
type: hi,
|
|
@@ -4082,7 +4082,7 @@ const ke = class ke {
|
|
|
4082
4082
|
}), d = n.rejectCallback || (() => {
|
|
4083
4083
|
});
|
|
4084
4084
|
let u = null, l = new Yt(ke.app);
|
|
4085
|
-
const
|
|
4085
|
+
const m = () => {
|
|
4086
4086
|
u && (u == null || u.destroy(), l = null);
|
|
4087
4087
|
};
|
|
4088
4088
|
return u = l == null ? void 0 : l.open({
|
|
@@ -4098,7 +4098,7 @@ const ke = class ke {
|
|
|
4098
4098
|
render: () => T(st, Ot(n, {
|
|
4099
4099
|
onAccept: i,
|
|
4100
4100
|
onReject: d,
|
|
4101
|
-
onClose:
|
|
4101
|
+
onClose: m
|
|
4102
4102
|
}), null)
|
|
4103
4103
|
}), l == null ? void 0 : l.getCurrentModal();
|
|
4104
4104
|
}
|
|
@@ -4178,5 +4178,5 @@ export {
|
|
|
4178
4178
|
st as FMessageBox,
|
|
4179
4179
|
ct as FMessageBoxService,
|
|
4180
4180
|
st as default,
|
|
4181
|
-
|
|
4181
|
+
mo as messageBoxProps
|
|
4182
4182
|
};
|