@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var hn = Object.defineProperty;
|
|
2
2
|
var yn = (e, t, n) => t in e ? hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var he = (e, t, n) => yn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as
|
|
4
|
+
import { ref as b, computed as z, createVNode as T, Fragment as ot, defineComponent as rt, watch as Be, nextTick as It, onBeforeMount as bn, onMounted as dt, onUnmounted as ft, Teleport as wn, Transition as Vt, shallowRef as Cn, createApp as _t, render as Bt, h as xn, cloneVNode as Sn, mergeProps as Ot, reactive as He, createTextVNode as Tn } from "vue";
|
|
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: "" },
|
|
@@ -140,14 +140,14 @@ function yo() {
|
|
|
140
140
|
return { onCopy: e };
|
|
141
141
|
}
|
|
142
142
|
function bo(e, t, n, o) {
|
|
143
|
-
const r =
|
|
143
|
+
const r = b(14), a = b(140), i = b(""), d = b(o.value.length), u = z(() => o.value), l = z(() => ({
|
|
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,
|
|
@@ -172,7 +172,7 @@ function wo(e, t, n, o) {
|
|
|
172
172
|
return { getEditorRender: i };
|
|
173
173
|
}
|
|
174
174
|
function Co() {
|
|
175
|
-
const e =
|
|
175
|
+
const e = b(!1), t = b("复制成功");
|
|
176
176
|
return {
|
|
177
177
|
feedbackStyle: z(() => {
|
|
178
178
|
const o = {
|
|
@@ -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 =
|
|
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) {
|
|
@@ -264,16 +264,16 @@ function To(e) {
|
|
|
264
264
|
}, null);
|
|
265
265
|
}
|
|
266
266
|
function Fo(e, t, n, o, r) {
|
|
267
|
-
const a =
|
|
267
|
+
const a = b(e.exceptionInfo), i = z(() => {
|
|
268
268
|
const f = t.value === "question" ? "warning" : t.value, g = {
|
|
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,20 +287,20 @@ 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 {
|
|
294
294
|
onCopy: r
|
|
295
295
|
} = t, {
|
|
296
296
|
toShowFeedback: a
|
|
297
|
-
} = n, i =
|
|
297
|
+
} = n, i = b(o.exception.copySuccess || "复制成功"), d = b(o.exception.copy || "复制详细信息"), u = b(e.exceptionInfo || {
|
|
298
298
|
date: "",
|
|
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 =
|
|
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,10 +370,10 @@ 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
|
-
const n = Eo(e), o =
|
|
376
|
+
const n = Eo(e), o = b(e.type), r = b(e.title), a = b(e.detail), i = z(() => {
|
|
377
377
|
const E = {
|
|
378
378
|
"modal-tips": !0,
|
|
379
379
|
"d-flex": !0,
|
|
@@ -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 =
|
|
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)
|
|
@@ -766,13 +766,13 @@ function _o(e, t) {
|
|
|
766
766
|
const M = R.x, U = R.y;
|
|
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
|
-
function
|
|
770
|
-
if (!
|
|
769
|
+
function C(R) {
|
|
770
|
+
if (!m.value)
|
|
771
771
|
return;
|
|
772
772
|
const M = re.fromEvent(R);
|
|
773
773
|
M && h(M);
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function x() {
|
|
776
776
|
if (n.value) {
|
|
777
777
|
const {
|
|
778
778
|
width: R,
|
|
@@ -795,56 +795,56 @@ function _o(e, t) {
|
|
|
795
795
|
}
|
|
796
796
|
function k(R) {
|
|
797
797
|
if (n.value) {
|
|
798
|
-
const M =
|
|
799
|
-
|
|
798
|
+
const M = x();
|
|
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
|
-
document.addEventListener("mousemove",
|
|
804
|
+
document.addEventListener("mousemove", C), document.addEventListener("mouseup", k);
|
|
805
805
|
}
|
|
806
|
-
function
|
|
807
|
-
R instanceof MouseEvent && R.button === 2 || g.value && (document.body.click(), R.stopPropagation(), R.preventDefault(), r.value = re.fromEvent(R),
|
|
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), 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", {
|
|
811
811
|
class: "fv-resizable-handle fv-resizable-n",
|
|
812
812
|
type: "n",
|
|
813
|
-
onMousedown: (M) =>
|
|
813
|
+
onMousedown: (M) => y(M)
|
|
814
814
|
}, null), T("div", {
|
|
815
815
|
class: "fv-resizable-handle fv-resizable-e",
|
|
816
816
|
type: "e",
|
|
817
|
-
onMousedown: (M) =>
|
|
817
|
+
onMousedown: (M) => y(M)
|
|
818
818
|
}, null), T("div", {
|
|
819
819
|
class: "fv-resizable-handle fv-resizable-s",
|
|
820
820
|
type: "s",
|
|
821
|
-
onMousedown: (M) =>
|
|
821
|
+
onMousedown: (M) => y(M)
|
|
822
822
|
}, null), T("div", {
|
|
823
823
|
class: "fv-resizable-handle fv-resizable-w",
|
|
824
824
|
type: "w",
|
|
825
|
-
onMousedown: (M) =>
|
|
825
|
+
onMousedown: (M) => y(M)
|
|
826
826
|
}, null), T("div", {
|
|
827
827
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
828
828
|
type: "ne",
|
|
829
|
-
onMousedown: (M) =>
|
|
829
|
+
onMousedown: (M) => y(M)
|
|
830
830
|
}, null), T("div", {
|
|
831
831
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
832
832
|
type: "se",
|
|
833
|
-
onMousedown: (M) =>
|
|
833
|
+
onMousedown: (M) => y(M)
|
|
834
834
|
}, null), T("div", {
|
|
835
835
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
836
836
|
type: "sw",
|
|
837
|
-
onMousedown: (M) =>
|
|
837
|
+
onMousedown: (M) => y(M)
|
|
838
838
|
}, null), T("div", {
|
|
839
839
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
840
840
|
type: "nw",
|
|
841
|
-
onMousedown: (M) =>
|
|
841
|
+
onMousedown: (M) => y(M)
|
|
842
842
|
}, null)]);
|
|
843
843
|
}
|
|
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 =
|
|
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,78 +904,78 @@ function _o(e, t) {
|
|
|
904
904
|
};
|
|
905
905
|
}
|
|
906
906
|
function qo(e, t, n) {
|
|
907
|
-
const o =
|
|
908
|
-
Be(() => n.value, (
|
|
909
|
-
i.value.style.cursor =
|
|
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
|
+
Be(() => n.value, (C) => {
|
|
909
|
+
i.value.style.cursor = C ? "move" : "default";
|
|
910
910
|
});
|
|
911
|
-
function c(
|
|
912
|
-
if (
|
|
911
|
+
function c(C, x) {
|
|
912
|
+
if (x.tagName === "BUTTON")
|
|
913
913
|
return !1;
|
|
914
|
-
if (
|
|
914
|
+
if (x === C)
|
|
915
915
|
return !0;
|
|
916
|
-
for (const k in
|
|
917
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
916
|
+
for (const k in x.children)
|
|
917
|
+
if (Object.prototype.hasOwnProperty.call(x.children, k) && c(C, x.children[k]))
|
|
918
918
|
return !0;
|
|
919
919
|
return !1;
|
|
920
920
|
}
|
|
921
921
|
function f() {
|
|
922
|
-
var _,
|
|
923
|
-
let
|
|
924
|
-
a.value === "x" ? (
|
|
925
|
-
const k = `translate3d(${Math.round(
|
|
926
|
-
o.value && (o.value.style.transform = k),
|
|
922
|
+
var _, y;
|
|
923
|
+
let C = s.value.x + m.value.x, x = s.value.y + m.value.y;
|
|
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
|
+
const k = `translate3d(${Math.round(C)}px, ${Math.round(x)}px, 0px)`;
|
|
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)
|
|
930
930
|
return null;
|
|
931
|
-
const
|
|
932
|
-
top:
|
|
933
|
-
right:
|
|
934
|
-
bottom:
|
|
935
|
-
left:
|
|
931
|
+
const C = d.value.getBoundingClientRect(), x = o.value.getBoundingClientRect(), k = {
|
|
932
|
+
top: C.top < x.top,
|
|
933
|
+
right: C.right > x.right,
|
|
934
|
+
bottom: C.bottom > x.bottom,
|
|
935
|
+
left: C.left < x.left
|
|
936
936
|
};
|
|
937
|
-
return k.top || (s.value.y -=
|
|
937
|
+
return k.top || (s.value.y -= x.top - C.top), k.bottom || (s.value.y -= x.bottom - C.bottom), k.right || (s.value.x -= x.right - C.right), k.left || (s.value.x -= x.left - C.left), f(), k;
|
|
938
938
|
}
|
|
939
|
-
function F(
|
|
940
|
-
|
|
939
|
+
function F(C) {
|
|
940
|
+
C && (l.value && C.subtract(l.value), s.value.set(C), f(), g());
|
|
941
941
|
}
|
|
942
|
-
function E(
|
|
943
|
-
u.value && r.value && (
|
|
942
|
+
function E(C) {
|
|
943
|
+
u.value && r.value && (C.stopPropagation(), C.preventDefault(), F(re.fromEvent(C, i.value)));
|
|
944
944
|
}
|
|
945
945
|
function O() {
|
|
946
|
-
var
|
|
947
|
-
u.value && (u.value = !1,
|
|
946
|
+
var C;
|
|
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));
|
|
951
951
|
}
|
|
952
952
|
function D() {
|
|
953
953
|
if (o.value) {
|
|
954
|
-
const
|
|
955
|
-
|
|
954
|
+
const C = re.getTransformInfo(o.value);
|
|
955
|
+
m.value.set(C);
|
|
956
956
|
return;
|
|
957
957
|
}
|
|
958
|
-
|
|
958
|
+
m.value.reset();
|
|
959
959
|
}
|
|
960
|
-
function w(
|
|
961
|
-
if (!n.value ||
|
|
960
|
+
function w(C) {
|
|
961
|
+
if (!n.value || C instanceof MouseEvent && C.button === 2)
|
|
962
962
|
return;
|
|
963
|
-
const
|
|
964
|
-
i.value !== void 0 &&
|
|
963
|
+
const x = C.target || C.srcElement;
|
|
964
|
+
i.value !== void 0 && x && !c(x, i.value) || r.value !== !1 && (document.body.click(), C.stopPropagation(), C.preventDefault(), l.value = re.fromEvent(C, o.value), D(), L());
|
|
965
965
|
}
|
|
966
|
-
function h(
|
|
967
|
-
if (r.value &&
|
|
968
|
-
if (
|
|
969
|
-
i.value =
|
|
966
|
+
function h(C, x, k) {
|
|
967
|
+
if (r.value && x) {
|
|
968
|
+
if (C)
|
|
969
|
+
i.value = C;
|
|
970
970
|
else if (e.dragHandle) {
|
|
971
971
|
if (e.dragHandle instanceof HTMLElement)
|
|
972
972
|
i.value = e.dragHandle;
|
|
973
973
|
else if (typeof e.dragHandle == "string") {
|
|
974
|
-
const _ =
|
|
974
|
+
const _ = x.querySelector(e.dragHandle);
|
|
975
975
|
_ && (i.value = _);
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
o.value =
|
|
978
|
+
o.value = x, d.value = k, i.value ? (i.value.classList.add("ng-draggable"), i.value.addEventListener("mousedown", w)) : r.value = !1;
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
return {
|
|
@@ -994,7 +994,7 @@ function Gt(e, t) {
|
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
996
|
function Wo(e, t) {
|
|
997
|
-
const n =
|
|
997
|
+
const n = b(e.enableEsc);
|
|
998
998
|
let o = null;
|
|
999
999
|
return n.value ? (o = Gt("Escape", (r) => {
|
|
1000
1000
|
t.emit("esc", { event: r.event, type: "esc" });
|
|
@@ -1003,7 +1003,7 @@ function Wo(e, t) {
|
|
|
1003
1003
|
}) : null;
|
|
1004
1004
|
}
|
|
1005
1005
|
function Go(e, t) {
|
|
1006
|
-
const n =
|
|
1006
|
+
const n = b(e.enableEnter);
|
|
1007
1007
|
let o = null;
|
|
1008
1008
|
return n.value ? (o = Gt("Enter", (r) => {
|
|
1009
1009
|
t.emit("enter", { event: r.event, type: "enter" });
|
|
@@ -1016,11 +1016,11 @@ 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 =
|
|
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"));
|
|
1023
|
-
const w =
|
|
1023
|
+
const w = b(!1);
|
|
1024
1024
|
function h(S, X) {
|
|
1025
1025
|
const ae = X ? "accept" : "cancel";
|
|
1026
1026
|
Promise.resolve().then(() => {
|
|
@@ -1032,7 +1032,7 @@ const We = /* @__PURE__ */ rt({
|
|
|
1032
1032
|
se && (r.value = !1, t.emit("update:modelValue", !1), X != null && t.emit(X ? "accept" : "cancel"), t.emit("closed", S));
|
|
1033
1033
|
});
|
|
1034
1034
|
}
|
|
1035
|
-
const
|
|
1035
|
+
const C = [{
|
|
1036
1036
|
name: "cancel",
|
|
1037
1037
|
text: D("messageBox.cancel") || "取消",
|
|
1038
1038
|
class: "btn btn-secondary",
|
|
@@ -1046,7 +1046,7 @@ const We = /* @__PURE__ */ rt({
|
|
|
1046
1046
|
handle: (S) => {
|
|
1047
1047
|
h(S, !0);
|
|
1048
1048
|
}
|
|
1049
|
-
}],
|
|
1049
|
+
}], x = b(e.buttons && e.buttons.length ? e.buttons : C), k = z(() => !!l.value), _ = z(() => !!F.value && !!x.value), y = b(), q = b(), V = b(!1), {
|
|
1050
1050
|
renderResizeBar: H,
|
|
1051
1051
|
maximize: W,
|
|
1052
1052
|
restore: J,
|
|
@@ -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() {
|
|
@@ -1069,8 +1069,8 @@ const We = /* @__PURE__ */ rt({
|
|
|
1069
1069
|
S !== X && (E.value = S);
|
|
1070
1070
|
}), Be(() => e.modelValue, (S, X) => {
|
|
1071
1071
|
S !== X && (r.value = S, r.value && e.draggable && It(() => {
|
|
1072
|
-
q.value && !O.value && (O.value = q.value.parentElement, oe.value = O.value, K(
|
|
1073
|
-
}), S || (O.value && (O.value = null), ve())), r.value ? w.value =
|
|
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 = 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) => {
|
|
@@ -1153,13 +1153,13 @@ const We = /* @__PURE__ */ rt({
|
|
|
1153
1153
|
S.handle && await S.handle(X, S) && t.emit("closed", X);
|
|
1154
1154
|
}
|
|
1155
1155
|
function Oe(S) {
|
|
1156
|
-
S.width && (n.value = S.width), S.height && (o.value = S.height), S.buttons && (
|
|
1156
|
+
S.width && (n.value = S.width), S.height && (o.value = S.height), S.buttons && (x.value = S.buttons), S.title && (E.value = S.title);
|
|
1157
1157
|
}
|
|
1158
1158
|
let Re = null, Se = null;
|
|
1159
1159
|
bn(() => {
|
|
1160
|
-
w.value =
|
|
1160
|
+
w.value = me();
|
|
1161
1161
|
}), dt(() => {
|
|
1162
|
-
q.value && !O.value && (O.value = q.value.parentElement, oe.value = O.value, K(
|
|
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(() => {
|
|
1164
1164
|
U && U(), Re && Re.remove(), Se && Se.remove();
|
|
1165
1165
|
}), t.expose({
|
|
@@ -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;"
|
|
@@ -1192,8 +1192,8 @@ const We = /* @__PURE__ */ rt({
|
|
|
1192
1192
|
return T("div", {
|
|
1193
1193
|
class: "modal-footer",
|
|
1194
1194
|
style: Ue.value
|
|
1195
|
-
}, [
|
|
1196
|
-
const X =
|
|
1195
|
+
}, [x.value && x.value.map((S) => {
|
|
1196
|
+
const X = b(S.disabled);
|
|
1197
1197
|
return T("button", {
|
|
1198
1198
|
name: S.name,
|
|
1199
1199
|
type: "button",
|
|
@@ -1209,7 +1209,7 @@ const We = /* @__PURE__ */ rt({
|
|
|
1209
1209
|
}
|
|
1210
1210
|
function Le() {
|
|
1211
1211
|
return T("div", {
|
|
1212
|
-
ref:
|
|
1212
|
+
ref: y,
|
|
1213
1213
|
class: "modal-header",
|
|
1214
1214
|
style: Ie.value
|
|
1215
1215
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : T("div", {
|
|
@@ -1286,13 +1286,13 @@ function Uo(e) {
|
|
|
1286
1286
|
ft(() => {
|
|
1287
1287
|
document.body.removeChild(t);
|
|
1288
1288
|
});
|
|
1289
|
-
const a =
|
|
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,15 +1321,15 @@ 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) {
|
|
1328
1328
|
he(this, "appContext", null);
|
|
1329
|
-
he(this, "modalRef",
|
|
1330
|
-
he(this, "activeModalIndex",
|
|
1329
|
+
he(this, "modalRef", b());
|
|
1330
|
+
he(this, "activeModalIndex", b(0));
|
|
1331
1331
|
he(this, "modalRefs", {});
|
|
1332
|
-
he(this, "isUseEscCloseModal",
|
|
1332
|
+
he(this, "isUseEscCloseModal", b(!1));
|
|
1333
1333
|
he(this, "activeModalInstance", z(() => this.modalRefs[this.activeModalIndex.value]));
|
|
1334
1334
|
this.app = t, this.appContext = t ? t._context : null;
|
|
1335
1335
|
}
|
|
@@ -1368,22 +1368,22 @@ class Yt {
|
|
|
1368
1368
|
title: "",
|
|
1369
1369
|
showButtons: !0,
|
|
1370
1370
|
showHeader: !0
|
|
1371
|
-
}, t)), r =
|
|
1371
|
+
}, t)), r = b(!0), a = o.value.acceptCallback || (() => {
|
|
1372
1372
|
}), i = o.value.rejectCallback || (() => {
|
|
1373
1373
|
}), d = o.value.closedCallback || ((w, h) => {
|
|
1374
1374
|
}), u = o.value.resizeHandle || ((w) => {
|
|
1375
1375
|
}), l = t.stopMoveHandle || ((w) => {
|
|
1376
1376
|
});
|
|
1377
|
-
let
|
|
1378
|
-
const s = Ut(o.value),
|
|
1379
|
-
var
|
|
1377
|
+
let m;
|
|
1378
|
+
const s = Ut(o.value), p = (w) => {
|
|
1379
|
+
var C;
|
|
1380
1380
|
r.value = !1;
|
|
1381
|
-
const h = (
|
|
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),
|
|
1386
|
-
const h = Object.keys(this.modalRefs).map((
|
|
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
|
+
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
|
}
|
|
1389
1389
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -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,16 +1787,16 @@ 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
|
-
const
|
|
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() {
|
|
1798
|
-
if (
|
|
1799
|
-
if (["class", "style"].find((le) => le ===
|
|
1798
|
+
if (C.value) {
|
|
1799
|
+
if (["class", "style"].find((le) => le === x) && !M && (M = o.get("/converter/appearance.converter") || null), M && M.convertFrom)
|
|
1800
1800
|
return M.convertFrom(F, h, O, L);
|
|
1801
1801
|
const ne = F[h];
|
|
1802
1802
|
return Object.prototype.hasOwnProperty.call(k, "defaultValue") && (ne === void 0 || typeof ne == "string" && ne === "") ? k.type === "boolean" ? k.defaultValue : k.defaultValue || "" : ne;
|
|
@@ -1804,28 +1804,28 @@ function Xt(e, t, n) {
|
|
|
1804
1804
|
return null;
|
|
1805
1805
|
},
|
|
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:
|
|
1810
|
-
return g[
|
|
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
|
+
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,
|
|
1817
|
-
return { categoryId: D, categoryName: h, properties:
|
|
1816
|
+
const w = O.categories[D], h = w == null ? void 0 : w.title, C = m(w.properties || {}, E, {}, F, g);
|
|
1817
|
+
return { categoryId: D, categoryName: h, properties: C };
|
|
1818
1818
|
}) : [];
|
|
1819
1819
|
}
|
|
1820
|
-
function
|
|
1821
|
-
const L = g.$ref.schema, D = g.$ref.converter, w = F[L], h = w.type,
|
|
1820
|
+
function p(f, g, F, E, O = "") {
|
|
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
|
-
const _ = k.categories[f],
|
|
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 =
|
|
1828
|
-
return { categoryId: f, categoryName:
|
|
1827
|
+
const q = (_ == null ? void 0 : _.properties) || {}, V = m(q, x, C, w, E, O);
|
|
1828
|
+
return { categoryId: f, categoryName: y, properties: V };
|
|
1829
1829
|
}
|
|
1830
1830
|
return { categoryId: f, categoryName: "", properties: [] };
|
|
1831
1831
|
}
|
|
@@ -1833,16 +1833,16 @@ function Xt(e, t, n) {
|
|
|
1833
1833
|
const L = f.type, D = n(f), w = {};
|
|
1834
1834
|
let h = O || e[L];
|
|
1835
1835
|
if (h && Object.keys(h).length === 0 && F && F.getPropConfig && (h = F.getPropConfig(E)), h && h.categories) {
|
|
1836
|
-
const
|
|
1837
|
-
return Object.keys(h.categories).map((
|
|
1838
|
-
const k = h.categories[
|
|
1836
|
+
const C = [];
|
|
1837
|
+
return Object.keys(h.categories).map((x) => {
|
|
1838
|
+
const k = h.categories[x];
|
|
1839
1839
|
if (k.$ref) {
|
|
1840
|
-
|
|
1840
|
+
C.push(p(x, k, f, g, E));
|
|
1841
1841
|
return;
|
|
1842
1842
|
}
|
|
1843
|
-
const _ = k == null ? void 0 : k.title,
|
|
1844
|
-
|
|
1845
|
-
}),
|
|
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
|
+
C.push({ categoryId: x, categoryName: _, tabId: y, tabName: q, hide: V, properties: W, hideTitle: H, setPropertyRelates: J, parentPropertyID: oe });
|
|
1845
|
+
}), C;
|
|
1846
1846
|
}
|
|
1847
1847
|
return [];
|
|
1848
1848
|
}
|
|
@@ -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,14 +2051,14 @@ 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,
|
|
2058
2058
|
void 0
|
|
2059
2059
|
);
|
|
2060
|
-
|
|
2061
|
-
|
|
2060
|
+
b(0);
|
|
2061
|
+
b(0);
|
|
2062
2062
|
const Je = class Je {
|
|
2063
2063
|
/**
|
|
2064
2064
|
* 根据绑定字段类型获取可用的输入类控件
|
|
@@ -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,29 +2185,29 @@ 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,
|
|
2206
|
-
function s(
|
|
2205
|
+
var i = n("contra/emitter"), d = n("crossvent"), u = n("./classes"), l = document, m = l.documentElement;
|
|
2206
|
+
function s(y, q) {
|
|
2207
2207
|
var V = arguments.length;
|
|
2208
|
-
V === 1 && Array.isArray(
|
|
2209
|
-
var H, W, J, oe, R, M, U, P, K,
|
|
2210
|
-
$.moves === void 0 && ($.moves = O), $.accepts === void 0 && ($.accepts = O), $.invalid === void 0 && ($.invalid = Ze), $.containers === void 0 && ($.containers =
|
|
2208
|
+
V === 1 && Array.isArray(y) === !1 && (q = y, y = []);
|
|
2209
|
+
var H, W, J, oe, R, M, U, P, K, me = null, ve, Y, ne = !1, le = 0, ee, $ = q || {};
|
|
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,
|
|
2213
2213
|
start: Se,
|
|
@@ -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({});
|
|
@@ -2272,7 +2272,7 @@ var Mr = { exports: {} };
|
|
|
2272
2272
|
return;
|
|
2273
2273
|
var N = w(v);
|
|
2274
2274
|
if (N && !$.invalid(v, B)) {
|
|
2275
|
-
var A = $.moves(v, N, B,
|
|
2275
|
+
var A = $.moves(v, N, B, x(v));
|
|
2276
2276
|
if (A)
|
|
2277
2277
|
return {
|
|
2278
2278
|
item: v,
|
|
@@ -2289,7 +2289,7 @@ var Mr = { exports: {} };
|
|
|
2289
2289
|
B && Ne(B);
|
|
2290
2290
|
}
|
|
2291
2291
|
function Ne(v) {
|
|
2292
|
-
kt(v.item, v.source) && (P = v.item.cloneNode(!0), te.emit("cloned", P, v.item, "copy")), W = v.source, J = v.item, M = U =
|
|
2292
|
+
kt(v.item, v.source) && (P = v.item.cloneNode(!0), te.emit("cloned", P, v.item, "copy")), W = v.source, J = v.item, M = U = x(v.item), te.dragging = !0, te.emit("drag", J, W);
|
|
2293
2293
|
}
|
|
2294
2294
|
function Ze() {
|
|
2295
2295
|
return !1;
|
|
@@ -2327,11 +2327,11 @@ 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;
|
|
2334
|
-
return B !== void 0 ? N = B : H ? N = U : N =
|
|
2334
|
+
return B !== void 0 ? N = B : H ? N = U : N = x(P || J), v === W && N === M;
|
|
2335
2335
|
}
|
|
2336
2336
|
function se(v, B, N) {
|
|
2337
2337
|
for (var A = v; A && !Q(); )
|
|
@@ -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,17 +2369,17 @@ 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) {
|
|
2382
|
-
(v === B || v ===
|
|
2382
|
+
(v === B || v === x(B)) && (U = x(B)), (v === null && N || v !== B && v !== x(B)) && (U = v);
|
|
2383
2383
|
}
|
|
2384
2384
|
function gt(v) {
|
|
2385
2385
|
u.rm(v, "gu-hide");
|
|
@@ -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) {
|
|
@@ -2498,14 +2498,14 @@ var Mr = { exports: {} };
|
|
|
2498
2498
|
return Te(Q ? N > ue.left + L(ue) / 2 : A > ue.top + D(ue) / 2);
|
|
2499
2499
|
}
|
|
2500
2500
|
function Te(ue) {
|
|
2501
|
-
return ue ?
|
|
2501
|
+
return ue ? x(B) : B;
|
|
2502
2502
|
}
|
|
2503
2503
|
}
|
|
2504
2504
|
function kt(v, B) {
|
|
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];
|
|
@@ -2513,18 +2513,18 @@ var Mr = { exports: {} };
|
|
|
2513
2513
|
}
|
|
2514
2514
|
const V = c(q);
|
|
2515
2515
|
for (const H of V)
|
|
2516
|
-
if (H.contains(
|
|
2516
|
+
if (H.contains(y))
|
|
2517
2517
|
return H;
|
|
2518
2518
|
return null;
|
|
2519
2519
|
}
|
|
2520
|
-
function c(
|
|
2520
|
+
function c(y) {
|
|
2521
2521
|
const q = [];
|
|
2522
|
-
return
|
|
2522
|
+
return y.forEach((V) => {
|
|
2523
2523
|
const H = document.getElementById(V);
|
|
2524
2524
|
H && q.push(H);
|
|
2525
2525
|
}), q.sort((V, H) => V.contains(H) ? 1 : H.contains(V) ? -1 : 0), q;
|
|
2526
2526
|
}
|
|
2527
|
-
function f(
|
|
2527
|
+
function f(y, q, V, H) {
|
|
2528
2528
|
var W = {
|
|
2529
2529
|
mouseup: "touchend",
|
|
2530
2530
|
mousedown: "touchstart",
|
|
@@ -2538,23 +2538,23 @@ var Mr = { exports: {} };
|
|
|
2538
2538
|
mousedown: "MSPointerDown",
|
|
2539
2539
|
mousemove: "MSPointerMove"
|
|
2540
2540
|
};
|
|
2541
|
-
a.navigator.pointerEnabled ? d[q](
|
|
2541
|
+
a.navigator.pointerEnabled ? d[q](y, J[V], H) : a.navigator.msPointerEnabled ? d[q](y, oe[V], H) : (d[q](y, W[V], H), d[q](y, V, H));
|
|
2542
2542
|
}
|
|
2543
|
-
function g(
|
|
2544
|
-
if (
|
|
2545
|
-
return
|
|
2546
|
-
if (
|
|
2547
|
-
return
|
|
2548
|
-
if (
|
|
2549
|
-
return
|
|
2550
|
-
var q =
|
|
2543
|
+
function g(y) {
|
|
2544
|
+
if (y.touches !== void 0)
|
|
2545
|
+
return y.touches.length;
|
|
2546
|
+
if (y.which !== void 0 && y.which !== 0)
|
|
2547
|
+
return y.which;
|
|
2548
|
+
if (y.buttons !== void 0)
|
|
2549
|
+
return y.buttons;
|
|
2550
|
+
var q = y.button;
|
|
2551
2551
|
if (q !== void 0)
|
|
2552
2552
|
return q & 1 ? 1 : q & 2 ? 3 : q & 4 ? 2 : 0;
|
|
2553
2553
|
}
|
|
2554
|
-
function F(
|
|
2555
|
-
|
|
2556
|
-
var H =
|
|
2557
|
-
return
|
|
2554
|
+
function F(y, q, V) {
|
|
2555
|
+
y = y || {};
|
|
2556
|
+
var H = y.className || "", W;
|
|
2557
|
+
return y.className += " gu-hide", W = l.elementFromPoint(q, V), y.className = H, W;
|
|
2558
2558
|
}
|
|
2559
2559
|
function E() {
|
|
2560
2560
|
return !1;
|
|
@@ -2562,42 +2562,42 @@ var Mr = { exports: {} };
|
|
|
2562
2562
|
function O() {
|
|
2563
2563
|
return !0;
|
|
2564
2564
|
}
|
|
2565
|
-
function L(
|
|
2566
|
-
return
|
|
2565
|
+
function L(y) {
|
|
2566
|
+
return y.width || y.right - y.left;
|
|
2567
2567
|
}
|
|
2568
|
-
function D(
|
|
2569
|
-
return
|
|
2568
|
+
function D(y) {
|
|
2569
|
+
return y.height || y.bottom - y.top;
|
|
2570
2570
|
}
|
|
2571
|
-
function w(
|
|
2572
|
-
return
|
|
2571
|
+
function w(y) {
|
|
2572
|
+
return y.parentNode === l ? null : y.parentNode;
|
|
2573
2573
|
}
|
|
2574
|
-
function h(
|
|
2575
|
-
return
|
|
2574
|
+
function h(y) {
|
|
2575
|
+
return y.tagName === "INPUT" || y.tagName === "TEXTAREA" || y.tagName === "SELECT" || C(y);
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2578
|
-
return !
|
|
2577
|
+
function C(y) {
|
|
2578
|
+
return !y || y.contentEditable === "false" ? !1 : y.contentEditable === "true" ? !0 : C(w(y));
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2581
|
-
return
|
|
2580
|
+
function x(y) {
|
|
2581
|
+
return y.nextElementSibling || q();
|
|
2582
2582
|
function q() {
|
|
2583
|
-
var V =
|
|
2583
|
+
var V = y;
|
|
2584
2584
|
do
|
|
2585
2585
|
V = V.nextSibling;
|
|
2586
2586
|
while (V && V.nodeType !== 1);
|
|
2587
2587
|
return V;
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
|
-
function k(
|
|
2591
|
-
return
|
|
2590
|
+
function k(y) {
|
|
2591
|
+
return y.targetTouches && y.targetTouches.length ? y.targetTouches[0] : y.changedTouches && y.changedTouches.length ? y.changedTouches[0] : y;
|
|
2592
2592
|
}
|
|
2593
|
-
function _(
|
|
2593
|
+
function _(y, q) {
|
|
2594
2594
|
var V = k(q), H = {
|
|
2595
2595
|
pageX: "clientX",
|
|
2596
2596
|
// IE8
|
|
2597
2597
|
pageY: "clientY"
|
|
2598
2598
|
// IE8
|
|
2599
2599
|
};
|
|
2600
|
-
return
|
|
2600
|
+
return y in H && !(y in V) && H[y] in V && (y = H[y]), V[y];
|
|
2601
2601
|
}
|
|
2602
2602
|
o.exports = s;
|
|
2603
2603
|
}).call(this, typeof Pe < "u" ? Pe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -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,68 +2654,68 @@ 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
|
|
2664
|
-
return w.addEventListener(h,
|
|
2663
|
+
function p(w, h, C, x) {
|
|
2664
|
+
return w.addEventListener(h, C, x);
|
|
2665
2665
|
}
|
|
2666
|
-
function c(w, h,
|
|
2667
|
-
return w.attachEvent("on" + h, O(w, h,
|
|
2666
|
+
function c(w, h, C) {
|
|
2667
|
+
return w.attachEvent("on" + h, O(w, h, C));
|
|
2668
2668
|
}
|
|
2669
|
-
function f(w, h,
|
|
2670
|
-
return w.removeEventListener(h,
|
|
2669
|
+
function f(w, h, C, x) {
|
|
2670
|
+
return w.removeEventListener(h, C, x);
|
|
2671
2671
|
}
|
|
2672
|
-
function g(w, h,
|
|
2673
|
-
var
|
|
2674
|
-
if (
|
|
2675
|
-
return w.detachEvent("on" + h,
|
|
2672
|
+
function g(w, h, C) {
|
|
2673
|
+
var x = L(w, h, C);
|
|
2674
|
+
if (x)
|
|
2675
|
+
return w.detachEvent("on" + h, x);
|
|
2676
2676
|
}
|
|
2677
|
-
function F(w, h,
|
|
2678
|
-
var
|
|
2679
|
-
w.dispatchEvent ? w.dispatchEvent(
|
|
2677
|
+
function F(w, h, C) {
|
|
2678
|
+
var x = d.indexOf(h) === -1 ? _() : k();
|
|
2679
|
+
w.dispatchEvent ? w.dispatchEvent(x) : w.fireEvent("on" + h, x);
|
|
2680
2680
|
function k() {
|
|
2681
|
-
var
|
|
2682
|
-
return u.createEvent ? (
|
|
2681
|
+
var y;
|
|
2682
|
+
return u.createEvent ? (y = u.createEvent("Event"), y.initEvent(h, !0, !0)) : u.createEventObject && (y = u.createEventObject()), y;
|
|
2683
2683
|
}
|
|
2684
2684
|
function _() {
|
|
2685
|
-
return new i(h, { detail:
|
|
2685
|
+
return new i(h, { detail: C });
|
|
2686
2686
|
}
|
|
2687
2687
|
}
|
|
2688
|
-
function E(w, h,
|
|
2688
|
+
function E(w, h, C) {
|
|
2689
2689
|
return function(k) {
|
|
2690
2690
|
var _ = k || a.event;
|
|
2691
2691
|
_.target = _.target || _.srcElement, _.preventDefault = _.preventDefault || function() {
|
|
2692
2692
|
_.returnValue = !1;
|
|
2693
2693
|
}, _.stopPropagation = _.stopPropagation || function() {
|
|
2694
2694
|
_.cancelBubble = !0;
|
|
2695
|
-
}, _.which = _.which || _.keyCode,
|
|
2695
|
+
}, _.which = _.which || _.keyCode, C.call(w, _);
|
|
2696
2696
|
};
|
|
2697
2697
|
}
|
|
2698
|
-
function O(w, h,
|
|
2699
|
-
var
|
|
2698
|
+
function O(w, h, C) {
|
|
2699
|
+
var x = L(w, h, C) || E(w, h, C);
|
|
2700
2700
|
return s.push({
|
|
2701
|
-
wrapper:
|
|
2701
|
+
wrapper: x,
|
|
2702
2702
|
element: w,
|
|
2703
2703
|
type: h,
|
|
2704
|
-
fn:
|
|
2705
|
-
}),
|
|
2704
|
+
fn: C
|
|
2705
|
+
}), x;
|
|
2706
2706
|
}
|
|
2707
|
-
function L(w, h,
|
|
2708
|
-
var
|
|
2709
|
-
if (
|
|
2710
|
-
var k = s[
|
|
2711
|
-
return s.splice(
|
|
2707
|
+
function L(w, h, C) {
|
|
2708
|
+
var x = D(w, h, C);
|
|
2709
|
+
if (x) {
|
|
2710
|
+
var k = s[x].wrapper;
|
|
2711
|
+
return s.splice(x, 1), k;
|
|
2712
2712
|
}
|
|
2713
2713
|
}
|
|
2714
|
-
function D(w, h,
|
|
2715
|
-
var
|
|
2716
|
-
for (
|
|
2717
|
-
if (k = s[
|
|
2718
|
-
return
|
|
2714
|
+
function D(w, h, C) {
|
|
2715
|
+
var x, k;
|
|
2716
|
+
for (x = 0; x < s.length; x++)
|
|
2717
|
+
if (k = s[x], k.element === w && k.type === h && k.fn === C)
|
|
2718
|
+
return x;
|
|
2719
2719
|
}
|
|
2720
2720
|
}).call(this, typeof Pe < "u" ? Pe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2721
2721
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -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 =
|
|
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,
|
|
@@ -2928,11 +2928,11 @@ const Ir = {
|
|
|
2928
2928
|
};
|
|
2929
2929
|
return D[e.animate] = !1, D[a] = d.value, D["toasty-type-" + i.value.type] = !0, i.value.theme && (D[i.value.theme] = !0), D;
|
|
2930
2930
|
}), s = z(() => {
|
|
2931
|
-
const h = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`,
|
|
2931
|
+
const h = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, C = {
|
|
2932
2932
|
"f-icon": !0
|
|
2933
2933
|
};
|
|
2934
|
-
return
|
|
2935
|
-
}),
|
|
2934
|
+
return C[h] = !0, C;
|
|
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"
|
|
@@ -3008,28 +3008,28 @@ const Ir = {
|
|
|
3008
3008
|
right: 12,
|
|
3009
3009
|
top: 20,
|
|
3010
3010
|
bottom: 12
|
|
3011
|
-
}, r =
|
|
3012
|
-
const
|
|
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 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
|
});
|
|
@@ -3067,17 +3067,17 @@ class Rr {
|
|
|
3067
3067
|
const i = _t({
|
|
3068
3068
|
setup() {
|
|
3069
3069
|
var l;
|
|
3070
|
-
const d =
|
|
3070
|
+
const d = b();
|
|
3071
3071
|
function u() {
|
|
3072
3072
|
d.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
3073
3073
|
n.updateNotifyPositionForClose(r, d), i.unmount();
|
|
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, {
|
|
@@ -3328,15 +3328,15 @@ function jr(e, t, n, o, r, a, i, d, u, l, p, s, m, c, f, g, F) {
|
|
|
3328
3328
|
} = i, {
|
|
3329
3329
|
gridDataStyle: w,
|
|
3330
3330
|
leftFixedGridDataStyle: h,
|
|
3331
|
-
rightFixedGridDataStyle:
|
|
3331
|
+
rightFixedGridDataStyle: C
|
|
3332
3332
|
} = c, {
|
|
3333
|
-
renderDataRow:
|
|
3334
|
-
} = In(e, t, O, F, d, u, l,
|
|
3333
|
+
renderDataRow: x
|
|
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));
|
|
3338
3338
|
}
|
|
3339
|
-
function
|
|
3339
|
+
function y() {
|
|
3340
3340
|
return T("div", {
|
|
3341
3341
|
ref: o,
|
|
3342
3342
|
class: "fv-grid-content-left-fixed"
|
|
@@ -3360,12 +3360,12 @@ function jr(e, t, n, o, r, a, i, d, u, l, p, s, m, c, f, g, F) {
|
|
|
3360
3360
|
class: "fv-grid-content-right-fixed"
|
|
3361
3361
|
}, [T("div", {
|
|
3362
3362
|
class: "fv-grid-data",
|
|
3363
|
-
style:
|
|
3363
|
+
style: C.value
|
|
3364
3364
|
}, [_(O.value.rightColumns.filter((W) => W.visible), "right")])]);
|
|
3365
3365
|
}
|
|
3366
3366
|
function H() {
|
|
3367
3367
|
const W = [];
|
|
3368
|
-
return L.value && W.push(
|
|
3368
|
+
return L.value && W.push(y()), W.push(q()), D.value && W.push(V()), W;
|
|
3369
3369
|
}
|
|
3370
3370
|
return {
|
|
3371
3371
|
renderDataArea: H
|
|
@@ -3377,19 +3377,19 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3377
3377
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged", "selectionUpdate"],
|
|
3378
3378
|
setup(e, t) {
|
|
3379
3379
|
var jt, Pt;
|
|
3380
|
-
const o = ((jt = e.rowOption) == null ? void 0 : jt.height) || 28, r =
|
|
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 =
|
|
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,
|
|
3386
3386
|
renderLoading: w
|
|
3387
3387
|
} = jn(e, u), h = Pn(e, /* @__PURE__ */ new Map(), E, O, i), {
|
|
3388
|
-
dataView:
|
|
3389
|
-
} = h,
|
|
3388
|
+
dataView: C
|
|
3389
|
+
} = h, x = Hn(e, h, i, c, t), {
|
|
3390
3390
|
showSelection: k,
|
|
3391
3391
|
selectedValues: _
|
|
3392
|
-
} =
|
|
3392
|
+
} = x, y = $n(e, c, h, i, x, t), q = z(() => e.disabled), V = z(() => e.virtualized ? Math.min(h.dataView.value.length, r.value) : h.dataView.value.length), H = zn(e, h), {
|
|
3393
3393
|
shouldRenderPagination: W
|
|
3394
3394
|
} = H, {
|
|
3395
3395
|
containerStyleObject: J
|
|
@@ -3403,14 +3403,14 @@ 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
|
-
|
|
3411
|
-
const ne = Wn(e, ve), le = Gn(e, t,
|
|
3410
|
+
me(h, K);
|
|
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
|
-
} = Ie, Ge = Zn(e, ve), ze = Kn(e,
|
|
3413
|
+
} = Ie, Ge = Zn(e, ve), ze = Kn(e, x), {
|
|
3414
3414
|
sidebarWidth: Ue
|
|
3415
3415
|
} = ze, ie = eo(e, h, c, ve, Ie, V, 0, Ue), {
|
|
3416
3416
|
onWheel: Qe,
|
|
@@ -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,13 +3435,13 @@ 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
|
-
} = ao(e, le,
|
|
3444
|
+
} = ao(e, le, x, ze, ie), {
|
|
3445
3445
|
renderDisableMask: ht
|
|
3446
3446
|
} = lo(), {
|
|
3447
3447
|
renderHorizontalScrollbar: yt
|
|
@@ -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, () => {
|
|
@@ -3470,7 +3470,7 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3470
3470
|
h.expandTo(j), h.reOrderVisibleIndex(), Ne();
|
|
3471
3471
|
}
|
|
3472
3472
|
function Ke() {
|
|
3473
|
-
const j =
|
|
3473
|
+
const j = x.getSelectionRow();
|
|
3474
3474
|
return j ? j.dataIndex - 1 : -1;
|
|
3475
3475
|
}
|
|
3476
3476
|
function xt() {
|
|
@@ -3482,12 +3482,12 @@ 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
|
-
const j = Ke(), G =
|
|
3490
|
-
h.removeHierarchyDataItem(j), c.value = xe(0, V.value + 0 - 1), G &&
|
|
3489
|
+
const j = Ke(), G = y.getNextSelectableHierarchyItemId(j);
|
|
3490
|
+
h.removeHierarchyDataItem(j), c.value = xe(0, V.value + 0 - 1), G && y.selectItemById(G);
|
|
3491
3491
|
}
|
|
3492
3492
|
function at(j) {
|
|
3493
3493
|
ee.onEditingRow(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);
|
|
@@ -3508,7 +3508,7 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3508
3508
|
j && (h.load(j), h.reOrderVisibleIndex(), G != null && G.keepScrollPosition ? ie.scrollTo(ie.offsetY.value) : Ne());
|
|
3509
3509
|
}
|
|
3510
3510
|
function A(j) {
|
|
3511
|
-
|
|
3511
|
+
y.selectItemById(j);
|
|
3512
3512
|
}
|
|
3513
3513
|
function Q(j) {
|
|
3514
3514
|
const G = c.value.find((ce) => ce.raw[i.idField.value] === j);
|
|
@@ -3518,31 +3518,31 @@ const Pr = /* @__PURE__ */ rt({
|
|
|
3518
3518
|
le.activeRowById(j);
|
|
3519
3519
|
}
|
|
3520
3520
|
function Ce(j) {
|
|
3521
|
-
|
|
3521
|
+
y.selectItemByIds(j);
|
|
3522
3522
|
}
|
|
3523
3523
|
function ge() {
|
|
3524
|
-
return
|
|
3524
|
+
return x.getSelectedItems();
|
|
3525
3525
|
}
|
|
3526
3526
|
function ye() {
|
|
3527
|
-
|
|
3527
|
+
x.clearSelection();
|
|
3528
3528
|
}
|
|
3529
3529
|
const Te = z(() => !c.value || !c.value.length), {
|
|
3530
3530
|
renderEmpty: ue
|
|
3531
3531
|
} = co(e, t);
|
|
3532
3532
|
function Fe() {
|
|
3533
|
-
return
|
|
3533
|
+
return x.getSelectionRow();
|
|
3534
3534
|
}
|
|
3535
3535
|
function be(j) {
|
|
3536
|
-
|
|
3536
|
+
y.unSelectItemByIds(j);
|
|
3537
3537
|
}
|
|
3538
3538
|
function fe() {
|
|
3539
|
-
return
|
|
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,11 +3586,11 @@ 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() {
|
|
3593
|
-
|
|
3593
|
+
x.keepSelectingOnPaging.value || ye(), h.updateVisibleDataSummary(c.value);
|
|
3594
3594
|
}
|
|
3595
3595
|
t.expose({
|
|
3596
3596
|
activeRowById: Z,
|
|
@@ -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
|
-
fo(e, t, h, ie, H,
|
|
3632
|
-
const
|
|
3631
|
+
fo(e, t, h, ie, H, x);
|
|
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
|
};
|