@farris/ui-vue 1.5.0-beta.0 → 1.5.0-beta.1
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 +897 -901
- package/components/avatar/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +483 -487
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/component/index.esm.js +482 -486
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +543 -547
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +619 -623
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +439 -440
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +423 -425
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +529 -533
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +723 -727
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +504 -508
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +679 -683
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +503 -507
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +557 -561
- package/components/filter-condition-editor/index.umd.cjs +4 -4
- package/components/flow-canvas/index.esm.js +327 -331
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +502 -506
- package/components/list-view/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +347 -348
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +479 -483
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +1037 -1041
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1238 -1242
- package/components/order/index.umd.cjs +2 -2
- package/components/pagination/index.esm.js +94 -91
- package/components/pagination/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +534 -538
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +785 -789
- package/components/query-solution/index.umd.cjs +5 -5
- package/components/response-layout/index.esm.js +710 -714
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +701 -702
- package/components/schema-selector/index.umd.cjs +3 -3
- package/components/section/index.esm.js +502 -506
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +556 -560
- package/components/sort-condition-editor/index.umd.cjs +4 -4
- package/components/textarea/index.esm.js +480 -484
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.esm.js +594 -598
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +189 -179
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +463 -467
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +629 -633
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +632 -636
- package/components/video/index.umd.cjs +1 -1
- package/farris.all.esm.js +2583 -2569
- package/farris.all.umd.cjs +11 -11
- package/index.css +1 -1
- package/package.json +1 -1
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var R = (n, t, e) =>
|
|
4
|
-
import { ref as T, defineComponent as nt, computed as A, watch as Me, createVNode as M, Fragment as Ht, reactive as St, createApp as
|
|
5
|
-
import { isPlainObject as Rn, cloneDeep as wt, isUndefined as mt, throttle as
|
|
6
|
-
import { useResizeObserver as
|
|
7
|
-
import { useIdentify as
|
|
1
|
+
var Jr = Object.defineProperty;
|
|
2
|
+
var Zr = (n, t, e) => t in n ? Jr(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var R = (n, t, e) => Zr(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { ref as T, defineComponent as nt, computed as A, watch as Me, createVNode as M, Fragment as Ht, reactive as St, createApp as Kn, onUnmounted as en, onMounted as It, Transition as Jn, mergeProps as jt, createTextVNode as tt, onBeforeUnmount as Zn, withDirectives as ei, resolveDirective as ti, nextTick as vn, onBeforeMount as eo, Teleport as ni, shallowRef as oi, render as gn, h as ri, cloneVNode as ii, inject as Je, provide as rn, triggerRef as ai, isVNode as si } from "vue";
|
|
5
|
+
import { isPlainObject as Rn, cloneDeep as wt, isUndefined as mt, throttle as li, merge as nn, findIndex as Ln } from "lodash-es";
|
|
6
|
+
import { useResizeObserver as to } from "@vueuse/core";
|
|
7
|
+
import { useIdentify as ui, useGroupData as ci, useFilter as di, useHierarchy as fi, useLoading as pi, useDataView as mi, useSelection as hi, useSelectHierarchyItem as vi, useDataViewContainerStyle as gi, useCommandColumn as yi, useColumn as bi, useSort as wi, useGroupColumn as Ci, useRow as xi, useEdit as _i, useVisualDataBound as Si, useVisualDataCell as Ti, useVisualDataRow as ki, useVisualData as Fi, useCellPosition as Ei, useSidebar as Mi, useVirtualScroll as Oi, useFitColumn as Di, useFilterHistory as Ii, useColumnFilter as Pi, useDragColumn as Ni, getColumnHeader as Bi, getSidebar as Vi, getDisableMask as Ri, getHorizontalScrollbar as Li, getVerticalScrollbar as Wi, getEmpty as ji } from "../data-view/index.esm.js";
|
|
8
8
|
import "../modal/index.esm.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
9
|
+
import no from "../transfer/index.esm.js";
|
|
10
|
+
import oo from "../tabs/index.esm.js";
|
|
11
|
+
import ro from "../order/index.esm.js";
|
|
12
12
|
import "../condition/index.esm.js";
|
|
13
|
-
import { FCheckbox as
|
|
14
|
-
import { useGuid as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
13
|
+
import { FCheckbox as Hi } from "../checkbox/index.esm.js";
|
|
14
|
+
import { useGuid as $i, resolveField as ut, FormSchemaEntityFieldTypeName as Wn, useCommonUtils as Ai, useDateFormat as qi, useNumberFormat as zi, setFieldValue as Cn, getCustomClass as yn, withInstall as Gi } from "../common/index.esm.js";
|
|
15
|
+
import io from "../filter-bar/index.esm.js";
|
|
16
|
+
import Yi from "../tooltip/index.esm.js";
|
|
17
|
+
import ao from "../pagination/index.esm.js";
|
|
18
18
|
import Ui from "../button/index.esm.js";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
19
|
+
import so from "../search-box/index.esm.js";
|
|
20
|
+
import lo from "../tags/index.esm.js";
|
|
21
|
+
import uo, { FDynamicFormGroup as Xi, FDynamicFormInput as Qi } from "../dynamic-form/index.esm.js";
|
|
22
22
|
import { createPropsResolver as Ki } from "../dynamic-resolver/index.esm.js";
|
|
23
23
|
import "../designer-canvas/index.esm.js";
|
|
24
24
|
import "../property-panel/index.esm.js";
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
25
|
+
import co from "../accordion/index.esm.js";
|
|
26
|
+
import fo from "../avatar/index.esm.js";
|
|
27
|
+
import po from "../../designer/button-edit/index.esm.js";
|
|
28
|
+
import mo from "../button-group/index.esm.js";
|
|
29
|
+
import ho from "../calendar/index.esm.js";
|
|
30
|
+
import vo from "../capsule/index.esm.js";
|
|
31
31
|
import xn from "../../designer/checkbox/index.esm.js";
|
|
32
32
|
import un from "../../designer/checkbox-group/index.esm.js";
|
|
33
33
|
import cn from "../combo-list/index.esm.js";
|
|
34
34
|
import Ji from "../combo-tree/index.esm.js";
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
35
|
+
import go from "../component/index.esm.js";
|
|
36
|
+
import yo from "../color-picker/index.esm.js";
|
|
37
|
+
import bo from "../content-container/index.esm.js";
|
|
38
|
+
import wo from "../date-picker/index.esm.js";
|
|
39
|
+
import Co from "../../designer/data-grid/index.esm.js";
|
|
40
|
+
import xo from "../dropdown/index.esm.js";
|
|
41
41
|
import Zi from "../events-editor/index.esm.js";
|
|
42
42
|
import ea from "../field-selector/index.esm.js";
|
|
43
43
|
import ta, { FBindingSelectorContainer as na } from "../binding-selector/index.esm.js";
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
44
|
+
import _o from "../image-cropper/index.esm.js";
|
|
45
|
+
import So from "../../designer/input-group/index.esm.js";
|
|
46
|
+
import To from "../layout/index.esm.js";
|
|
47
|
+
import ko from "../list-nav/index.esm.js";
|
|
48
|
+
import Fo from "../list-view/index.esm.js";
|
|
49
|
+
import Eo from "../lookup/index.esm.js";
|
|
50
50
|
import oa from "../mapping-editor/index.esm.js";
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
51
|
+
import Mo from "../nav/index.esm.js";
|
|
52
|
+
import Oo from "../number-range/index.esm.js";
|
|
53
|
+
import Do from "../number-spinner/index.esm.js";
|
|
54
|
+
import Io from "../page-header/index.esm.js";
|
|
55
|
+
import Po from "../page-footer/index.esm.js";
|
|
56
|
+
import No from "../progress/index.esm.js";
|
|
57
|
+
import Bo from "../query-solution/index.esm.js";
|
|
58
|
+
import Vo from "../../designer/radio-group/index.esm.js";
|
|
59
|
+
import Ro from "../rate/index.esm.js";
|
|
60
|
+
import Lo from "../response-toolbar/index.esm.js";
|
|
61
|
+
import Wo from "../response-layout/index.esm.js";
|
|
62
|
+
import jo from "../response-layout-editor/index.esm.js";
|
|
63
|
+
import Ho from "../section/index.esm.js";
|
|
64
|
+
import $o from "../smoke-detector/index.esm.js";
|
|
65
|
+
import Ao from "../splitter/index.esm.js";
|
|
66
|
+
import qo from "../step/index.esm.js";
|
|
67
|
+
import zo from "../switch/index.esm.js";
|
|
68
|
+
import Go from "../text/index.esm.js";
|
|
69
|
+
import Yo from "../time-picker/index.esm.js";
|
|
70
|
+
import Uo from "../tree-view/index.esm.js";
|
|
71
|
+
import Xo from "../uploader/index.esm.js";
|
|
72
|
+
import Qo from "../verify-detail/index.esm.js";
|
|
73
|
+
import Ko from "../video/index.esm.js";
|
|
74
|
+
import Jo from "../textarea/index.esm.js";
|
|
75
75
|
import ra from "../schema-selector/index.esm.js";
|
|
76
|
-
import
|
|
76
|
+
import Zo from "../tree-grid/index.esm.js";
|
|
77
77
|
import ia from "../event-parameter/index.esm.js";
|
|
78
78
|
import aa from "../filter-condition-editor/index.esm.js";
|
|
79
|
-
import
|
|
79
|
+
import er from "../fieldset/index.esm.js";
|
|
80
80
|
import sa from "../sort-condition-editor/index.esm.js";
|
|
81
81
|
import la from "../menu-lookup/index.esm.js";
|
|
82
|
-
import
|
|
82
|
+
import tr from "../drawer/index.esm.js";
|
|
83
83
|
import ua from "../json-editor/index.esm.js";
|
|
84
84
|
import ca from "../property-editor/index.esm.js";
|
|
85
85
|
import da from "../expression-editor/index.esm.js";
|
|
86
86
|
import fa from "../code-editor/index.esm.js";
|
|
87
|
-
import
|
|
87
|
+
import nr from "../html-template/index.esm.js";
|
|
88
88
|
import pa from "../external-container/index.esm.js";
|
|
89
89
|
import { FNotifyService as ma } from "../notify/index.esm.js";
|
|
90
90
|
const qt = T(0);
|
|
@@ -123,7 +123,7 @@ function ga(n) {
|
|
|
123
123
|
return o;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function or(n) {
|
|
127
127
|
if (!n)
|
|
128
128
|
return;
|
|
129
129
|
const t = n.getBoundingClientRect();
|
|
@@ -144,7 +144,7 @@ function an(n) {
|
|
|
144
144
|
if (!n)
|
|
145
145
|
return;
|
|
146
146
|
let t;
|
|
147
|
-
n.className.includes("dgComponentSelected") ? t = n : t = n.querySelector(".dgComponentSelected"), t &&
|
|
147
|
+
n.className.includes("dgComponentSelected") ? t = n : t = n.querySelector(".dgComponentSelected"), t && or(t);
|
|
148
148
|
}
|
|
149
149
|
const ya = {
|
|
150
150
|
/**
|
|
@@ -160,7 +160,7 @@ function ba(n) {
|
|
|
160
160
|
function on(n) {
|
|
161
161
|
throw new Error('Could not dynamically require "' + n + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
162
162
|
}
|
|
163
|
-
var
|
|
163
|
+
var rr = { exports: {} };
|
|
164
164
|
(function(n, t) {
|
|
165
165
|
(function(e) {
|
|
166
166
|
n.exports = e();
|
|
@@ -215,7 +215,7 @@ var ir = { exports: {} };
|
|
|
215
215
|
N === 1 && Array.isArray(b) === !1 && (P = b, b = []);
|
|
216
216
|
var O, I, z, $, V, j, Q, B, D, Y = null, H, L, G = !1, K = 0, ae, Z = P || {};
|
|
217
217
|
Z.moves === void 0 && (Z.moves = _), Z.accepts === void 0 && (Z.accepts = _), Z.invalid === void 0 && (Z.invalid = Ct), Z.containers === void 0 && (Z.containers = b || []), Z.isContainer === void 0 && (Z.isContainer = g), Z.copy === void 0 && (Z.copy = !1), Z.copySortSource === void 0 && (Z.copySortSource = !1), Z.revertOnSpill === void 0 && (Z.revertOnSpill = !1), Z.removeOnSpill === void 0 && (Z.removeOnSpill = !1), Z.direction === void 0 && (Z.direction = "vertical"), Z.ignoreInputTextSelection === void 0 && (Z.ignoreInputTextSelection = !0), Z.mirrorContainer === void 0 && (Z.mirrorContainer = u.body);
|
|
218
|
-
var
|
|
218
|
+
var me = a({
|
|
219
219
|
containers: Z.containers,
|
|
220
220
|
start: Be,
|
|
221
221
|
end: ht,
|
|
@@ -225,9 +225,9 @@ var ir = { exports: {} };
|
|
|
225
225
|
canMove: Oe,
|
|
226
226
|
dragging: !1
|
|
227
227
|
});
|
|
228
|
-
return Z.removeOnSpill === !0 &&
|
|
228
|
+
return Z.removeOnSpill === !0 && me.on("over", kt).on("out", _t), ke(), me;
|
|
229
229
|
function be(W) {
|
|
230
|
-
return
|
|
230
|
+
return me.containers.indexOf(W) !== -1 || Z.isContainer(W);
|
|
231
231
|
}
|
|
232
232
|
function ke(W) {
|
|
233
233
|
var ee = W ? "remove" : "add";
|
|
@@ -235,7 +235,7 @@ var ir = { exports: {} };
|
|
|
235
235
|
}
|
|
236
236
|
function Ve(W) {
|
|
237
237
|
var ee = W ? "remove" : "add";
|
|
238
|
-
f(d, ee, "mousemove",
|
|
238
|
+
f(d, ee, "mousemove", oe);
|
|
239
239
|
}
|
|
240
240
|
function je(W) {
|
|
241
241
|
var ee = W ? "remove" : "add";
|
|
@@ -251,11 +251,11 @@ var ir = { exports: {} };
|
|
|
251
251
|
$ = W.clientX, V = W.clientY;
|
|
252
252
|
var ee = F(W) !== 1 || W.metaKey || W.ctrlKey;
|
|
253
253
|
if (!ee) {
|
|
254
|
-
var
|
|
255
|
-
|
|
254
|
+
var ne = W.target, te = xe(ne);
|
|
255
|
+
te && (H = te, Ve(), W.type === "mousedown" && (C(ne) ? ne.focus() : W.preventDefault()));
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function oe(W) {
|
|
259
259
|
if (H) {
|
|
260
260
|
if (F(W) === 0) {
|
|
261
261
|
Fe({});
|
|
@@ -263,8 +263,8 @@ var ir = { exports: {} };
|
|
|
263
263
|
}
|
|
264
264
|
if (!(W.clientX !== void 0 && Math.abs(W.clientX - $) <= (Z.slideFactorX || 0) && W.clientY !== void 0 && Math.abs(W.clientY - V) <= (Z.slideFactorY || 0))) {
|
|
265
265
|
if (Z.ignoreInputTextSelection) {
|
|
266
|
-
var ee = E("clientX", W) || 0,
|
|
267
|
-
if (C(
|
|
266
|
+
var ee = E("clientX", W) || 0, ne = E("clientY", W) || 0, te = u.elementFromPoint(ee, ne);
|
|
267
|
+
if (C(te))
|
|
268
268
|
return;
|
|
269
269
|
}
|
|
270
270
|
var _e = H;
|
|
@@ -273,17 +273,17 @@ var ir = { exports: {} };
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
function xe(W) {
|
|
276
|
-
if (!(
|
|
276
|
+
if (!(me.dragging && O) && !be(W)) {
|
|
277
277
|
for (var ee = W; k(W) && be(k(W)) === !1; )
|
|
278
278
|
if (Z.invalid(W, ee) || (W = k(W), !W))
|
|
279
279
|
return;
|
|
280
|
-
var
|
|
281
|
-
if (
|
|
282
|
-
var
|
|
283
|
-
if (
|
|
280
|
+
var ne = k(W);
|
|
281
|
+
if (ne && !Z.invalid(W, ee)) {
|
|
282
|
+
var te = Z.moves(W, ne, ee, w(W));
|
|
283
|
+
if (te)
|
|
284
284
|
return {
|
|
285
285
|
item: W,
|
|
286
|
-
source:
|
|
286
|
+
source: ne
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
}
|
|
@@ -296,13 +296,13 @@ var ir = { exports: {} };
|
|
|
296
296
|
ee && lt(ee);
|
|
297
297
|
}
|
|
298
298
|
function lt(W) {
|
|
299
|
-
Ie(W.item, W.source) && (B = W.item.cloneNode(!0),
|
|
299
|
+
Ie(W.item, W.source) && (B = W.item.cloneNode(!0), me.emit("cloned", B, W.item, "copy")), I = W.source, z = W.item, j = Q = w(W.item), me.dragging = !0, me.emit("drag", z, I);
|
|
300
300
|
}
|
|
301
301
|
function Ct() {
|
|
302
302
|
return !1;
|
|
303
303
|
}
|
|
304
304
|
function ht() {
|
|
305
|
-
if (
|
|
305
|
+
if (me.dragging) {
|
|
306
306
|
var W = B || z;
|
|
307
307
|
Ne(W, k(W));
|
|
308
308
|
}
|
|
@@ -311,72 +311,72 @@ var ir = { exports: {} };
|
|
|
311
311
|
H = !1, Ve(!0), je(!0);
|
|
312
312
|
}
|
|
313
313
|
function Fe(W) {
|
|
314
|
-
if (J(), !!
|
|
315
|
-
var ee = B || z,
|
|
314
|
+
if (J(), !!me.dragging) {
|
|
315
|
+
var ee = B || z, ne = E("clientX", W) || 0, te = E("clientY", W) || 0, _e = y(O, ne, te), Ce = Tt(_e, ne, te);
|
|
316
316
|
Ce && (B && Z.copySortSource || !B || Ce !== I) ? Ne(ee, Ce) : Z.removeOnSpill ? Ye() : We();
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
function Ne(W, ee) {
|
|
320
|
-
var
|
|
321
|
-
B && Z.copySortSource && ee === I &&
|
|
320
|
+
var ne = k(W);
|
|
321
|
+
B && Z.copySortSource && ee === I && ne.removeChild(z), xt(ee) ? me.emit("cancel", W, I) : me.emit("drop", W, ee, I, Q), dt();
|
|
322
322
|
}
|
|
323
323
|
function Ye() {
|
|
324
|
-
if (
|
|
324
|
+
if (me.dragging) {
|
|
325
325
|
var W = B || z, ee = k(W);
|
|
326
|
-
ee && ee.removeChild(W),
|
|
326
|
+
ee && ee.removeChild(W), me.emit(B ? "cancel" : "remove", W, ee, I), dt();
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
function We(W) {
|
|
330
|
-
if (
|
|
331
|
-
var ee = arguments.length > 0 ? W : Z.revertOnSpill,
|
|
332
|
-
_e === !1 && ee && (B ?
|
|
330
|
+
if (me.dragging) {
|
|
331
|
+
var ee = arguments.length > 0 ? W : Z.revertOnSpill, ne = B || z, te = k(ne), _e = xt(te);
|
|
332
|
+
_e === !1 && ee && (B ? te && te.removeChild(B) : I.insertBefore(ne, j)), _e || ee ? me.emit("cancel", ne, I, I) : me.emit("drop", ne, te, I, Q), dt();
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
function dt() {
|
|
336
336
|
var W = B || z;
|
|
337
|
-
J(), re(),
|
|
337
|
+
J(), re(), fe(), W && l.rm(W, "gu-transit"), D && clearTimeout(D), me.dragging = !1, Y && me.emit("out", W, Y, I), me.emit("dragend", W, K), I = z = B = j = Q = D = Y = null;
|
|
338
338
|
}
|
|
339
339
|
function xt(W, ee) {
|
|
340
|
-
var
|
|
341
|
-
return ee !== void 0 ?
|
|
340
|
+
var ne;
|
|
341
|
+
return ee !== void 0 ? ne = ee : O ? ne = Q : ne = w(B || z), W === I && ne === j;
|
|
342
342
|
}
|
|
343
|
-
function Tt(W, ee,
|
|
344
|
-
for (var
|
|
345
|
-
|
|
346
|
-
return
|
|
343
|
+
function Tt(W, ee, ne) {
|
|
344
|
+
for (var te = W; te && !_e(); )
|
|
345
|
+
te = k(te);
|
|
346
|
+
return te;
|
|
347
347
|
function _e() {
|
|
348
|
-
var Ce = be(
|
|
348
|
+
var Ce = be(te);
|
|
349
349
|
if (Ce === !1)
|
|
350
350
|
return !1;
|
|
351
|
-
var Le = we(
|
|
352
|
-
return He ? !0 : Z.accepts(z,
|
|
351
|
+
var Le = we(te, W), Ee = Se(te, Le, ee, ne), He = xt(te, Ee);
|
|
352
|
+
return He ? !0 : Z.accepts(z, te, I, Ee);
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
function vt(W) {
|
|
356
356
|
if (!O)
|
|
357
357
|
return;
|
|
358
358
|
W.preventDefault();
|
|
359
|
-
var ee = E("clientX", W) || 0,
|
|
360
|
-
O.style.left = ee - 2 + "px", O.style.top =
|
|
361
|
-
var
|
|
362
|
-
(Le || Ce === null) && (ge(), Y = Ce, ft()),
|
|
363
|
-
var Ee = k(
|
|
359
|
+
var ee = E("clientX", W) || 0, ne = E("clientY", W) || 0;
|
|
360
|
+
O.style.left = ee - 2 + "px", O.style.top = ne - 2 + "px";
|
|
361
|
+
var te = B || z, _e = y(O, ee, ne), Ce = Tt(_e, ee, ne), Le = Ce !== null && Ce !== Y;
|
|
362
|
+
(Le || Ce === null) && (ge(), Y = Ce, ft()), pe(_e, ne);
|
|
363
|
+
var Ee = k(te);
|
|
364
364
|
if (Ce === I && B && !Z.copySortSource) {
|
|
365
|
-
Ee && Ee.removeChild(
|
|
365
|
+
Ee && Ee.removeChild(te);
|
|
366
366
|
return;
|
|
367
367
|
}
|
|
368
368
|
var He, ct = we(Ce, _e);
|
|
369
369
|
if (G = Re(ct, Ce), ct !== null)
|
|
370
|
-
He = Se(Ce, ct, ee,
|
|
370
|
+
He = Se(Ce, ct, ee, ne);
|
|
371
371
|
else if (Z.revertOnSpill === !0 && !B)
|
|
372
372
|
He = j, Ce = I;
|
|
373
373
|
else {
|
|
374
|
-
B && Ee && Ee.removeChild(
|
|
374
|
+
B && Ee && Ee.removeChild(te), B && L && (L.style.display = "none");
|
|
375
375
|
return;
|
|
376
376
|
}
|
|
377
|
-
L.style.display = "block", Pt(He,
|
|
377
|
+
L.style.display = "block", Pt(He, te, Le), He ? ot(ct, He) : X(Ce);
|
|
378
378
|
function Ke(Te) {
|
|
379
|
-
|
|
379
|
+
me.emit(Te, te, Y, I);
|
|
380
380
|
}
|
|
381
381
|
function ft() {
|
|
382
382
|
Le && Ke("over");
|
|
@@ -385,17 +385,17 @@ var ir = { exports: {} };
|
|
|
385
385
|
Y && Ke("out");
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
function Pt(W, ee,
|
|
389
|
-
(W === ee || W === w(ee)) && (Q = w(ee)), (W === null &&
|
|
388
|
+
function Pt(W, ee, ne) {
|
|
389
|
+
(W === ee || W === w(ee)) && (Q = w(ee)), (W === null && ne || W !== ee && W !== w(ee)) && (Q = W);
|
|
390
390
|
}
|
|
391
391
|
function kt(W) {
|
|
392
392
|
l.rm(W, "gu-hide");
|
|
393
393
|
}
|
|
394
394
|
function _t(W) {
|
|
395
|
-
|
|
395
|
+
me.dragging && l.add(W, "gu-hide");
|
|
396
396
|
}
|
|
397
397
|
function Nt() {
|
|
398
|
-
O || (O = document.createElement("div"), O.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;", O.innerHTML = Z.getMirrorText && Z.getMirrorText(z) || "控件", l.add(O, "gu-mirror"), Z.mirrorContainer.appendChild(O), f(d, "add", "mousemove", vt), l.add(Z.mirrorContainer, "gu-unselectable"),
|
|
398
|
+
O || (O = document.createElement("div"), O.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;", O.innerHTML = Z.getMirrorText && Z.getMirrorText(z) || "控件", l.add(O, "gu-mirror"), Z.mirrorContainer.appendChild(O), f(d, "add", "mousemove", vt), l.add(Z.mirrorContainer, "gu-unselectable"), me.emit("cloned", O, z, "mirror"));
|
|
399
399
|
}
|
|
400
400
|
function Ft() {
|
|
401
401
|
if (L = document.createElement("div"), l.add(L, "gu-insertion"), z) {
|
|
@@ -407,21 +407,21 @@ var ir = { exports: {} };
|
|
|
407
407
|
function re() {
|
|
408
408
|
O && (l.rm(Z.mirrorContainer, "gu-unselectable"), f(d, "remove", "mousemove", vt), k(O).removeChild(O), O = null);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function fe() {
|
|
411
411
|
L && (k(L).removeChild(L), L = null);
|
|
412
412
|
}
|
|
413
413
|
function we(W, ee) {
|
|
414
|
-
for (var
|
|
415
|
-
|
|
416
|
-
return
|
|
414
|
+
for (var ne = ee; ne !== W && k(ne) !== W; )
|
|
415
|
+
ne = k(ne);
|
|
416
|
+
return ne === d ? null : ne;
|
|
417
417
|
}
|
|
418
418
|
function Re(W, ee) {
|
|
419
419
|
if (!ee)
|
|
420
420
|
return G;
|
|
421
|
-
var
|
|
422
|
-
if (!
|
|
421
|
+
var ne = W || ee && ee.lastElementChild;
|
|
422
|
+
if (!ne)
|
|
423
423
|
return !0;
|
|
424
|
-
var
|
|
424
|
+
var te = getComputedStyle(W), _e = /^inline/.test(te.getPropertyValue("display")) || /^(left|right)$/.test(te.getPropertyValue("float"));
|
|
425
425
|
if (_e)
|
|
426
426
|
return !0;
|
|
427
427
|
if (ee) {
|
|
@@ -439,10 +439,10 @@ var ir = { exports: {} };
|
|
|
439
439
|
if (!W.children || !W.children.length)
|
|
440
440
|
return !1;
|
|
441
441
|
for (const ee of Array.from(W.children)) {
|
|
442
|
-
const
|
|
443
|
-
if (!
|
|
442
|
+
const te = (ee.className && ee.className.split(" ") || []).filter((_e) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(_e));
|
|
443
|
+
if (!te.length)
|
|
444
444
|
return !1;
|
|
445
|
-
for (const _e of
|
|
445
|
+
for (const _e of te) {
|
|
446
446
|
const Ce = _e.slice(_e.lastIndexOf("-") + 1);
|
|
447
447
|
if (parseInt(Ce, 10) !== 12)
|
|
448
448
|
return !1;
|
|
@@ -451,15 +451,15 @@ var ir = { exports: {} };
|
|
|
451
451
|
return !0;
|
|
452
452
|
}
|
|
453
453
|
function ot(W, ee) {
|
|
454
|
-
const
|
|
455
|
-
if (L.style.left =
|
|
456
|
-
if (L.style.height =
|
|
457
|
-
const
|
|
458
|
-
|
|
454
|
+
const ne = ee.getBoundingClientRect();
|
|
455
|
+
if (L.style.left = ne.left + "px", L.style.top = ne.top + "px", G) {
|
|
456
|
+
if (L.style.height = ne.height + "px", L.style.width = "4px", W) {
|
|
457
|
+
const te = W.getBoundingClientRect();
|
|
458
|
+
te.top !== ne.top && (L.style.left = te.right + "px", L.style.top = te.top + "px", L.style.height = te.height + "px");
|
|
459
459
|
}
|
|
460
|
-
} else if (L.style.height = "4px", L.style.width =
|
|
461
|
-
const
|
|
462
|
-
|
|
460
|
+
} else if (L.style.height = "4px", L.style.width = ne.width + "px", ae) {
|
|
461
|
+
const te = ae.getBoundingClientRect();
|
|
462
|
+
ne.top < te.top && (L.style.display = "none");
|
|
463
463
|
}
|
|
464
464
|
ee === z && z && (L.style.display = "none");
|
|
465
465
|
}
|
|
@@ -467,42 +467,42 @@ var ir = { exports: {} };
|
|
|
467
467
|
Q = null;
|
|
468
468
|
var ee = W.lastElementChild;
|
|
469
469
|
if (ee) {
|
|
470
|
-
var
|
|
471
|
-
G ? (L.style.left =
|
|
470
|
+
var ne = ee.getBoundingClientRect();
|
|
471
|
+
G ? (L.style.left = ne.right + "px", L.style.top = ne.top + "px", L.style.height = ne.height + "px", L.style.width = "4px") : (L.style.left = ne.left + "px", L.style.top = ne.bottom + "px", L.style.height = "4px", L.style.width = ne.width + "px"), ee === z && z && (L.style.display = "none");
|
|
472
472
|
} else
|
|
473
473
|
L.style.display = "none";
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function pe(W, ee) {
|
|
476
476
|
if (!Z.mirrorContainer.contains(W) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ae = p(W), !ae || !ae.contains(W)))
|
|
477
477
|
return;
|
|
478
|
-
const
|
|
479
|
-
if (ee - 30 <
|
|
478
|
+
const ne = document.querySelector(".dgComponentSelected"), te = ae.getBoundingClientRect();
|
|
479
|
+
if (ee - 30 < te.top && ae.scrollTop > 0) {
|
|
480
480
|
let _e = ae.scrollTop < 10 ? ae.scrollTop : 10;
|
|
481
|
-
ae.scrollBy(0, -1 * _e),
|
|
481
|
+
ae.scrollBy(0, -1 * _e), ne && ae.contains(ne) && (K = K + -1 * _e);
|
|
482
482
|
}
|
|
483
|
-
if (ee + 30 >
|
|
483
|
+
if (ee + 30 > te.bottom && ae.scrollTop < ae.scrollHeight - ae.clientHeight) {
|
|
484
484
|
const _e = ae.scrollHeight - ae.clientHeight - ae.scrollTop;
|
|
485
485
|
let Ce = _e < 10 ? _e : 10;
|
|
486
|
-
ae.scrollBy(0, Ce),
|
|
486
|
+
ae.scrollBy(0, Ce), ne && ae.contains(ne) && (K = K + Ce);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
function Se(W, ee,
|
|
489
|
+
function Se(W, ee, ne, te) {
|
|
490
490
|
var _e = Z.direction === "horizontal", Ce = Z.direction === "mixed", Le = ee !== W ? He() : Ee();
|
|
491
491
|
return Le;
|
|
492
492
|
function Ee() {
|
|
493
493
|
var Ke = W.children.length, ft, ge, Te;
|
|
494
494
|
for (ft = 0; ft < Ke; ft++)
|
|
495
|
-
if (ge = W.children[ft], Te = ge.getBoundingClientRect(), _e && Te.left + Te.width / 2 >
|
|
495
|
+
if (ge = W.children[ft], Te = ge.getBoundingClientRect(), _e && Te.left + Te.width / 2 > ne || !Ce && !_e && Te.top + Te.height / 2 > te || Ce && Te.left + Te.width > ne && Te.top + Te.height > te)
|
|
496
496
|
return ge;
|
|
497
497
|
return null;
|
|
498
498
|
}
|
|
499
499
|
function He() {
|
|
500
500
|
var Ke = ee.getBoundingClientRect();
|
|
501
501
|
if (Ce) {
|
|
502
|
-
var ft =
|
|
502
|
+
var ft = te - Ke.top, ge = ne - Ke.left, Te = Ke.bottom - te, rt = Ke.right - ne, et = Math.min(ge, rt, ft, Te), it;
|
|
503
503
|
return G ? it = rt < ge : it = Te === et || rt === et || ge === et, ct(it);
|
|
504
504
|
}
|
|
505
|
-
return ct(_e ?
|
|
505
|
+
return ct(_e ? ne > Ke.left + v(Ke) / 2 : te > Ke.top + x(Ke) / 2);
|
|
506
506
|
}
|
|
507
507
|
function ct(Ke) {
|
|
508
508
|
return Ke ? w(ee) : ee;
|
|
@@ -901,9 +901,9 @@ var ir = { exports: {} };
|
|
|
901
901
|
}, { "process/browser.js": 9, timers: 11 }]
|
|
902
902
|
}, {}, [2])(2);
|
|
903
903
|
});
|
|
904
|
-
})(
|
|
905
|
-
var wa =
|
|
906
|
-
const
|
|
904
|
+
})(rr);
|
|
905
|
+
var wa = rr.exports;
|
|
906
|
+
const jn = /* @__PURE__ */ ba(wa), Ca = {
|
|
907
907
|
showCloseButton: { type: Boolean, default: !0 },
|
|
908
908
|
position: { type: String, default: "top-center" },
|
|
909
909
|
timeout: { type: Number, default: 3e3 },
|
|
@@ -1062,7 +1062,7 @@ class tn {
|
|
|
1062
1062
|
...t
|
|
1063
1063
|
}), i = document.createElement("div");
|
|
1064
1064
|
i.style.display = "contents";
|
|
1065
|
-
const a =
|
|
1065
|
+
const a = Kn({
|
|
1066
1066
|
setup() {
|
|
1067
1067
|
var u;
|
|
1068
1068
|
const s = T();
|
|
@@ -1082,7 +1082,7 @@ class tn {
|
|
|
1082
1082
|
document.body.removeChild(i);
|
|
1083
1083
|
}), It(() => {
|
|
1084
1084
|
e.updateNotifyPositionForCreate(r, s);
|
|
1085
|
-
}), () => M(
|
|
1085
|
+
}), () => M(Jn, {
|
|
1086
1086
|
mode: "out-in",
|
|
1087
1087
|
name: "fade",
|
|
1088
1088
|
appear: !0
|
|
@@ -1174,7 +1174,7 @@ const Sa = {
|
|
|
1174
1174
|
bindingEntityId: { type: String, default: "" },
|
|
1175
1175
|
/** 绑定步骤 */
|
|
1176
1176
|
steps: { type: Array, default: ["selectEntity", "selectFields"] }
|
|
1177
|
-
},
|
|
1177
|
+
}, ir = {}, ar = {};
|
|
1178
1178
|
function Fn(n) {
|
|
1179
1179
|
const { properties: t, title: e, ignore: o } = n, r = o && Array.isArray(o), i = Object.keys(t).reduce((a, s) => ((!r || !o.find((l) => l === s)) && (a[s] = t[s].type === "object" && t[s].properties ? Fn(t[s]) : wt(t[s].default)), a), {});
|
|
1180
1180
|
if (e && (!r || !o.find((a) => a === "id"))) {
|
|
@@ -1198,10 +1198,10 @@ function Ta(n) {
|
|
|
1198
1198
|
};
|
|
1199
1199
|
}
|
|
1200
1200
|
function En(n, t = {}, e) {
|
|
1201
|
-
const o =
|
|
1201
|
+
const o = ir[n];
|
|
1202
1202
|
if (o) {
|
|
1203
1203
|
let r = Ta(o);
|
|
1204
|
-
const i =
|
|
1204
|
+
const i = ar[n];
|
|
1205
1205
|
return r = i ? i({ getSchemaByType: En }, r, t, e) : r, r;
|
|
1206
1206
|
}
|
|
1207
1207
|
return null;
|
|
@@ -1210,7 +1210,7 @@ function ka(n, t) {
|
|
|
1210
1210
|
const e = Fn(t);
|
|
1211
1211
|
return Object.keys(e).reduce((o, r) => (Object.prototype.hasOwnProperty.call(n, r) && (o[r] && Rn(o[r]) && Rn(n[r] || !n[r]) ? Object.assign(o[r], n[r] || {}) : o[r] = n[r]), o), e), e;
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function sr(n, t) {
|
|
1214
1214
|
return Object.keys(n).filter((o) => n[o] != null).reduce((o, r) => {
|
|
1215
1215
|
if (t.has(r)) {
|
|
1216
1216
|
const i = t.get(r);
|
|
@@ -1227,7 +1227,7 @@ function lr(n, t) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
function Fa(n, t, e = /* @__PURE__ */ new Map()) {
|
|
1229
1229
|
const o = ka(n, t);
|
|
1230
|
-
return
|
|
1230
|
+
return sr(o, e);
|
|
1231
1231
|
}
|
|
1232
1232
|
function Ea(n = {}) {
|
|
1233
1233
|
function t(u, d, m, p) {
|
|
@@ -1331,9 +1331,9 @@ const ie = {
|
|
|
1331
1331
|
}, Ma = {}, Oa = {};
|
|
1332
1332
|
Ea();
|
|
1333
1333
|
function Yt(n, t, e = /* @__PURE__ */ new Map(), o = (a, s, l, u) => s, r = {}, i = (a) => a) {
|
|
1334
|
-
return
|
|
1334
|
+
return ir[t.title] = t, ar[t.title] = o, Ma[t.title] = r, Oa[t.title] = i, (a = {}, s = !0) => {
|
|
1335
1335
|
if (!s)
|
|
1336
|
-
return
|
|
1336
|
+
return sr(a, e);
|
|
1337
1337
|
const l = Fa(a, t, e), u = Object.keys(n).reduce((d, m) => (d[m] = n[m].default, d), {});
|
|
1338
1338
|
return Object.assign(u, l);
|
|
1339
1339
|
};
|
|
@@ -1367,7 +1367,7 @@ function Pa() {
|
|
|
1367
1367
|
updateColumns: n
|
|
1368
1368
|
};
|
|
1369
1369
|
}
|
|
1370
|
-
const
|
|
1370
|
+
const lr = /* @__PURE__ */ new Map([
|
|
1371
1371
|
["appearance", Mn],
|
|
1372
1372
|
["column", "columnOption"]
|
|
1373
1373
|
]);
|
|
@@ -1390,7 +1390,7 @@ function Va(n, t, e) {
|
|
|
1390
1390
|
const o = n.getSchemaByType("content-container");
|
|
1391
1391
|
return o.id = `${t.id}-layout`, o.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, o.contents = [t], o;
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1393
|
+
function ur(n, t, e) {
|
|
1394
1394
|
const r = e.parentComponentInstance.schema.type, i = r === "section" || r === "tab-page";
|
|
1395
1395
|
t.appearance = { class: "f-component-grid" };
|
|
1396
1396
|
const s = (i ? Va : Ba)(n, t, e);
|
|
@@ -2176,7 +2176,7 @@ const Ra = "https://json-schema.org/draft/2020-12/schema", La = "https://farris-
|
|
|
2176
2176
|
], qa = {
|
|
2177
2177
|
onSelectionChange: "行切换事件",
|
|
2178
2178
|
onClickRow: "行点击事件"
|
|
2179
|
-
},
|
|
2179
|
+
}, cr = {
|
|
2180
2180
|
$schema: Ra,
|
|
2181
2181
|
$id: La,
|
|
2182
2182
|
title: Wa,
|
|
@@ -2314,7 +2314,7 @@ const Ra = "https://json-schema.org/draft/2020-12/schema", La = "https://farris-
|
|
|
2314
2314
|
width: { type: Number, default: -1 },
|
|
2315
2315
|
/** 启用虚拟渲染 */
|
|
2316
2316
|
virtualized: { type: Boolean, default: !1 }
|
|
2317
|
-
}, za = Yt(On,
|
|
2317
|
+
}, za = Yt(On, cr, lr, ur), Ga = Ia(), Ya = Da(), dr = Object.assign({}, On, { componentId: { type: String, default: "" } }), Ua = Yt(dr, cr, lr, ur), Xa = Pa();
|
|
2318
2318
|
var st = /* @__PURE__ */ ((n) => (n[n.readonly = 0] = "readonly", n[n.editable = 1] = "editable", n[n.editing = 2] = "editing", n))(st || {}), bt = /* @__PURE__ */ ((n) => (n[n.initial = 0] = "initial", n[n.editing = 1] = "editing", n))(bt || {}), Kt = /* @__PURE__ */ ((n) => (n[n.data = 0] = "data", n[n.group = 1] = "group", n[n.summary = 2] = "summary", n))(Kt || {}), at = /* @__PURE__ */ ((n) => (n[n.none = 0] = "none", n[n.filterable = 1] = "filterable", n[n.sortable = 2] = "sortable", n[n.filtered = 4] = "filtered", n[n.sorted = 8] = "sorted", n[n.ascending = 16] = "ascending", n[n.descending = 32] = "descending", n))(at || {});
|
|
2319
2319
|
function Qa(n, t) {
|
|
2320
2320
|
var h;
|
|
@@ -2520,38 +2520,38 @@ function ts(n, t, e, o, r, i, a, s, l, u, d, m, p) {
|
|
|
2520
2520
|
} = Ka(n, o, a), {
|
|
2521
2521
|
treeNodeIconsClass: D
|
|
2522
2522
|
} = Ja(n, w, S);
|
|
2523
|
-
function Y(q,
|
|
2523
|
+
function Y(q, oe) {
|
|
2524
2524
|
const xe = q.raw[S.value];
|
|
2525
2525
|
return {
|
|
2526
2526
|
"fv-tree-node-toggle": xe && q.collapse,
|
|
2527
2527
|
"fv-tree-node-toggle-minus": xe && !q.collapse
|
|
2528
2528
|
};
|
|
2529
2529
|
}
|
|
2530
|
-
function H(q,
|
|
2531
|
-
q.stopPropagation(), P(
|
|
2530
|
+
function H(q, oe) {
|
|
2531
|
+
q.stopPropagation(), P(oe);
|
|
2532
2532
|
}
|
|
2533
2533
|
function L(q) {
|
|
2534
2534
|
q.stopPropagation();
|
|
2535
2535
|
}
|
|
2536
|
-
function G(q,
|
|
2536
|
+
function G(q, oe) {
|
|
2537
2537
|
return M("div", {
|
|
2538
2538
|
class: Y(q),
|
|
2539
2539
|
onClick: (xe) => H(xe, q),
|
|
2540
2540
|
onDblclick: L
|
|
2541
2541
|
}, null);
|
|
2542
2542
|
}
|
|
2543
|
-
function K(q,
|
|
2543
|
+
function K(q, oe) {
|
|
2544
2544
|
return b.value && M("div", {
|
|
2545
2545
|
id: "treeNodeIcons",
|
|
2546
|
-
class: D(q,
|
|
2546
|
+
class: D(q, oe)
|
|
2547
2547
|
}, null);
|
|
2548
2548
|
}
|
|
2549
2549
|
function ae(q) {
|
|
2550
2550
|
x.value ? (q.checked ? k(q) : C(q), N(q)) : c(q);
|
|
2551
2551
|
}
|
|
2552
|
-
function Z(q,
|
|
2553
|
-
return E.value && M(
|
|
2554
|
-
id: "checkbox_for_" + O(q,
|
|
2552
|
+
function Z(q, oe) {
|
|
2553
|
+
return E.value && M(Hi, {
|
|
2554
|
+
id: "checkbox_for_" + O(q, oe.index),
|
|
2555
2555
|
indeterminate: q.indeterminate,
|
|
2556
2556
|
disabled: q.disabled,
|
|
2557
2557
|
checked: q.checked,
|
|
@@ -2559,61 +2559,57 @@ function ts(n, t, e, o, r, i, a, s, l, u, d, m, p) {
|
|
|
2559
2559
|
onChange: () => ae(q)
|
|
2560
2560
|
}, null);
|
|
2561
2561
|
}
|
|
2562
|
-
function
|
|
2562
|
+
function me(q, oe) {
|
|
2563
2563
|
return M("span", {
|
|
2564
|
-
title: te.data,
|
|
2565
2564
|
style: "user-select:none"
|
|
2566
2565
|
}, [t.slots.cellTemplate ? t.slots.cellTemplate({
|
|
2567
|
-
cell:
|
|
2566
|
+
cell: oe,
|
|
2568
2567
|
row: q
|
|
2569
|
-
}) :
|
|
2568
|
+
}) : oe.mode === st.editing ? oe.getEditor(oe) : oe.formatter ? oe.formatter(oe, q) : oe.showTips ? M(Yi, null, {
|
|
2569
|
+
default: () => oe.data,
|
|
2570
|
+
contentTemplate: () => oe.data
|
|
2571
|
+
}) : oe.data]);
|
|
2570
2572
|
}
|
|
2571
|
-
function be(q,
|
|
2573
|
+
function be(q, oe) {
|
|
2572
2574
|
return M("div", {
|
|
2573
|
-
class: Q(
|
|
2574
|
-
}, [
|
|
2575
|
-
default: () => fe(q, te),
|
|
2576
|
-
contentTemplate: () => fe(q, te)
|
|
2577
|
-
}) : fe(q, te)]);
|
|
2575
|
+
class: Q(oe)
|
|
2576
|
+
}, [me(q, oe)]);
|
|
2578
2577
|
}
|
|
2579
|
-
function ke(q,
|
|
2578
|
+
function ke(q, oe, xe) {
|
|
2580
2579
|
const Oe = B(q);
|
|
2581
2580
|
return M("div", {
|
|
2582
|
-
ref:
|
|
2583
|
-
key: O(q,
|
|
2581
|
+
ref: oe.setRef,
|
|
2582
|
+
key: O(q, oe.index),
|
|
2584
2583
|
class: "fv-grid-hierarchy-cell",
|
|
2585
|
-
style: I(
|
|
2584
|
+
style: I(oe, xe)
|
|
2586
2585
|
}, [M("div", {
|
|
2587
|
-
class: V(
|
|
2586
|
+
class: V(oe),
|
|
2588
2587
|
style: Oe
|
|
2589
|
-
}, [G(q), K(q,
|
|
2588
|
+
}, [G(q), K(q, oe), Z(q, oe), be(q, oe)])]);
|
|
2590
2589
|
}
|
|
2591
|
-
function Ve(q,
|
|
2590
|
+
function Ve(q, oe, xe) {
|
|
2592
2591
|
return M("div", {
|
|
2593
|
-
ref:
|
|
2594
|
-
key: O(q,
|
|
2595
|
-
class: f(
|
|
2596
|
-
style: I(
|
|
2597
|
-
onClick: (Oe) => h(Oe,
|
|
2592
|
+
ref: oe.setRef,
|
|
2593
|
+
key: O(q, oe.index),
|
|
2594
|
+
class: f(oe),
|
|
2595
|
+
style: I(oe, xe),
|
|
2596
|
+
onClick: (Oe) => h(Oe, oe, q, oe.column)
|
|
2598
2597
|
}, [M("div", {
|
|
2599
|
-
class: V(
|
|
2598
|
+
class: V(oe)
|
|
2600
2599
|
}, [M("div", {
|
|
2601
|
-
class: Q(
|
|
2602
|
-
}, [
|
|
2603
|
-
default: () => fe(q, te),
|
|
2604
|
-
contentTemplate: () => fe(q, te)
|
|
2605
|
-
}) : fe(q, te)])])]);
|
|
2600
|
+
class: Q(oe)
|
|
2601
|
+
}, [me(q, oe)])])]);
|
|
2606
2602
|
}
|
|
2607
|
-
function je(q,
|
|
2608
|
-
return
|
|
2603
|
+
function je(q, oe) {
|
|
2604
|
+
return oe === "left" && e.value.leftColumns.length > 0 && e.value.leftColumns[0].field === q.field || oe === "primary" && e.value.primaryColumns.length > 0 && e.value.primaryColumns[0].field === q.field;
|
|
2609
2605
|
}
|
|
2610
|
-
function U(q,
|
|
2606
|
+
function U(q, oe) {
|
|
2611
2607
|
t.emit("dblclickNode", {
|
|
2612
2608
|
$event: q,
|
|
2613
|
-
node:
|
|
2609
|
+
node: oe.raw
|
|
2614
2610
|
});
|
|
2615
2611
|
}
|
|
2616
|
-
function de(q,
|
|
2612
|
+
function de(q, oe, xe = "primary", Oe) {
|
|
2617
2613
|
return M("div", {
|
|
2618
2614
|
ref: q.setRef,
|
|
2619
2615
|
key: z(q),
|
|
@@ -2623,7 +2619,7 @@ function ts(n, t, e, o, r, i, a, s, l, u, d, m, p) {
|
|
|
2623
2619
|
onMouseout: (Be) => v(Be, q),
|
|
2624
2620
|
onClick: (Be) => g(Be, q),
|
|
2625
2621
|
onDblclick: (Be) => U(Be, q)
|
|
2626
|
-
}, [Object.values(q.data).filter((Be) =>
|
|
2622
|
+
}, [Object.values(q.data).filter((Be) => oe[Be.field] && Be.rowSpan === 1).map((Be) => je(Be, xe) ? ke(q, Be, oe) : Ve(q, Be, oe))]);
|
|
2627
2623
|
}
|
|
2628
2624
|
return {
|
|
2629
2625
|
renderDataRow: de
|
|
@@ -2836,7 +2832,7 @@ function as(n, t) {
|
|
|
2836
2832
|
}
|
|
2837
2833
|
function ss(n, t) {
|
|
2838
2834
|
var _;
|
|
2839
|
-
|
|
2835
|
+
$i();
|
|
2840
2836
|
const { idField: e } = t, o = T(n.summary), r = T(n.group), i = T(((_ = n.group) == null ? void 0 : _.groupFields) || []), a = A(() => {
|
|
2841
2837
|
var v;
|
|
2842
2838
|
return (v = n.group) == null ? void 0 : v.enable;
|
|
@@ -2934,8 +2930,8 @@ function ls(n, t, e, o) {
|
|
|
2934
2930
|
m.clear(), H.reduce((G, K) => {
|
|
2935
2931
|
const ae = K[u.value] !== void 0 ? K[u.value] : "";
|
|
2936
2932
|
if (ae && L.has(ae)) {
|
|
2937
|
-
const
|
|
2938
|
-
K.__fv_layer__ = be + 1, K.__fv_parent_index__ =
|
|
2933
|
+
const me = L.get(ae), be = isNaN(Number(me.__fv_layer__)) ? 1 : Number(me.__fv_layer__);
|
|
2934
|
+
K.__fv_layer__ = be + 1, K.__fv_parent_index__ = me.__fv_index__, me.__fv_hasChildren__ = !0;
|
|
2939
2935
|
} else
|
|
2940
2936
|
K.__fv_layer__ = 1;
|
|
2941
2937
|
const Z = G.has(ae) ? G.get(ae) : [];
|
|
@@ -2983,8 +2979,8 @@ function ls(n, t, e, o) {
|
|
|
2983
2979
|
}
|
|
2984
2980
|
function x(H, L, G) {
|
|
2985
2981
|
Array.from(L.keys()).forEach((K) => {
|
|
2986
|
-
L.get(K).reduce((Z,
|
|
2987
|
-
const be =
|
|
2982
|
+
L.get(K).reduce((Z, me) => {
|
|
2983
|
+
const be = me[a.value], ke = H.get(me[a.value]), Ve = H.get(K), je = G.get(K);
|
|
2988
2984
|
return Ve && je && (Ve.children.set(be, ke), Ve.children.set(be, ke), ke.parentId = K, ke.parentIndex = Ve.index, ke.parents.set(K, Ve)), Z;
|
|
2989
2985
|
}, H);
|
|
2990
2986
|
});
|
|
@@ -3048,7 +3044,7 @@ function ls(n, t, e, o) {
|
|
|
3048
3044
|
}
|
|
3049
3045
|
function z(H, L, G = 0) {
|
|
3050
3046
|
H.forEach((K) => {
|
|
3051
|
-
const ae = E(K), Z = K.__fv_layer__ <= G,
|
|
3047
|
+
const ae = E(K), Z = K.__fv_layer__ <= G, me = L === "ToCollapse" ? K.__fv_layer__ <= G : !(K.__fv_layer__ <= G), be = Z ? me : K[s.value];
|
|
3052
3048
|
K[s.value] = ae || be;
|
|
3053
3049
|
});
|
|
3054
3050
|
for (const [K, ae] of m.entries())
|
|
@@ -3063,8 +3059,8 @@ function ls(n, t, e, o) {
|
|
|
3063
3059
|
}
|
|
3064
3060
|
function j(H) {
|
|
3065
3061
|
H.forEach((L, G) => {
|
|
3066
|
-
var
|
|
3067
|
-
const K = L[a.value], ae = m.has(K) ? (
|
|
3062
|
+
var me;
|
|
3063
|
+
const K = L[a.value], ae = m.has(K) ? (me = m.get(K)) == null ? void 0 : me.map((be) => be.__fv_index__) : [], Z = v(K, G);
|
|
3068
3064
|
L.__fv_graph_node__ = Z, L.__fv_children_index__ = ae, L.__fv_descendant_index__ = [...ae], L.__fv_parents__ = /* @__PURE__ */ new Map(), E(L) && (L[s.value] = !0);
|
|
3069
3065
|
});
|
|
3070
3066
|
}
|
|
@@ -3077,18 +3073,18 @@ function ls(n, t, e, o) {
|
|
|
3077
3073
|
function B(H, L, G) {
|
|
3078
3074
|
const ae = G.value[H][a.value], Z = d.get(ae);
|
|
3079
3075
|
if (Z) {
|
|
3080
|
-
const
|
|
3076
|
+
const me = d.get(Z.parentId);
|
|
3081
3077
|
let be = G.value.length - 1;
|
|
3082
|
-
if (
|
|
3083
|
-
const ke = Array.from(
|
|
3084
|
-
if (ke ===
|
|
3085
|
-
const je = Array.from(
|
|
3078
|
+
if (me) {
|
|
3079
|
+
const ke = Array.from(me.children.keys()).indexOf(Z.id);
|
|
3080
|
+
if (ke === me.children.size - 1) {
|
|
3081
|
+
const je = Array.from(me.descendant.values())[me.descendant.size - 1];
|
|
3086
3082
|
be = G.value.findIndex((de) => de[a.value] === je.id) + 1;
|
|
3087
3083
|
} else {
|
|
3088
|
-
const je = Array.from(
|
|
3084
|
+
const je = Array.from(me.children.values())[ke + 1];
|
|
3089
3085
|
be = G.value.findIndex((de) => de[a.value] === je.id);
|
|
3090
3086
|
}
|
|
3091
|
-
L[l.value] = !1, L[u.value] =
|
|
3087
|
+
L[l.value] = !1, L[u.value] = me.id, G.value.splice(be, 0, L);
|
|
3092
3088
|
}
|
|
3093
3089
|
}
|
|
3094
3090
|
}
|
|
@@ -3155,79 +3151,79 @@ function us(n, t, e, o, r) {
|
|
|
3155
3151
|
return H.value && H.value.enable && H.value.size > 0 ? H.value.size : z.value.length;
|
|
3156
3152
|
}
|
|
3157
3153
|
const G = T(1), K = A(() => H.value && H.value.enable && H.value.mode !== "server"), ae = A(() => H.value && H.value.enable && H.value.mode === "server"), Z = new tn();
|
|
3158
|
-
function
|
|
3159
|
-
const Se = Math.ceil(X.length /
|
|
3154
|
+
function me(X, pe) {
|
|
3155
|
+
const Se = Math.ceil(X.length / pe);
|
|
3160
3156
|
let Ie = 0;
|
|
3161
|
-
const W = [], ee = [],
|
|
3157
|
+
const W = [], ee = [], ne = [];
|
|
3162
3158
|
for (; Ie < Se; ) {
|
|
3163
|
-
const
|
|
3159
|
+
const te = X.slice(Ie * pe, (Ie + 1) * pe), _e = h(f.value, te, t);
|
|
3164
3160
|
ee[Ie] = _e.filter((Ce) => Ce.__fv_data_grid_group_row__).length, W.push(..._e), Ie++;
|
|
3165
3161
|
}
|
|
3166
|
-
return ee.reduce((
|
|
3162
|
+
return ee.reduce((te, _e, Ce) => (te = te + _e, ne.push(te), te), 0), {
|
|
3167
3163
|
groupData: W,
|
|
3168
3164
|
groupRowSizeList: ee,
|
|
3169
|
-
accumulateGroupRowSize:
|
|
3165
|
+
accumulateGroupRowSize: ne
|
|
3170
3166
|
};
|
|
3171
3167
|
}
|
|
3172
3168
|
function be() {
|
|
3173
3169
|
var _e;
|
|
3174
3170
|
z.value = y.value, K.value && (Y.value = z.value.length), F.value && !K.value && (z.value = h(f.value, y.value, t)), D = B.value.reduce((Ce, Le) => (Ce.set(Le, 0), Ce), D);
|
|
3175
|
-
const X = 0,
|
|
3176
|
-
let W = Se > z.value.length - 1 || ae.value ? X : Se, ee = ae.value ? z.value.length : Math.min(W +
|
|
3171
|
+
const X = 0, pe = L(), Se = (G.value - 1) * pe;
|
|
3172
|
+
let W = Se > z.value.length - 1 || ae.value ? X : Se, ee = ae.value ? z.value.length : Math.min(W + pe, z.value.length);
|
|
3177
3173
|
if (F.value && K.value) {
|
|
3178
|
-
const { accumulateGroupRowSize: Ce, groupData: Le, groupRowSizeList: Ee } =
|
|
3174
|
+
const { accumulateGroupRowSize: Ce, groupData: Le, groupRowSizeList: Ee } = me(y.value, pe);
|
|
3179
3175
|
z.value = Le;
|
|
3180
3176
|
const He = Ee[G.value - 1];
|
|
3181
|
-
W += G.value - 2 < 0 ? 0 : Ce[G.value - 2], ee = W +
|
|
3177
|
+
W += G.value - 2 < 0 ? 0 : Ce[G.value - 2], ee = W + pe + He;
|
|
3182
3178
|
}
|
|
3183
|
-
let
|
|
3184
|
-
const
|
|
3179
|
+
let ne = 0;
|
|
3180
|
+
const te = [];
|
|
3185
3181
|
if (z.value.length) {
|
|
3186
3182
|
O(z.value);
|
|
3187
3183
|
const Ce = N.value !== n.idField;
|
|
3188
3184
|
for (let Le = W; Le < ee; Le++) {
|
|
3189
3185
|
const Ee = z.value[Le];
|
|
3190
|
-
Ee.__fv_data_grid_group_row__ ? (
|
|
3186
|
+
Ee.__fv_data_grid_group_row__ ? (ne = 0, Ee.__fv_data_index__ = "") : Ee.__fv_data_grid_group_summary__ ? Ee.__fv_data_index__ = "" : (ne++, Ee.__fv_data_index__ = ne + (G.value - 1) * pe), Ee.__fv_index__ = Le, Ee.__fv_visible_index__ = Le, n.rowOption && n.rowOption.disabledField && (Ee.__fv_disabled__ = Ee[(_e = n.rowOption) == null ? void 0 : _e.disabledField]), Ce && (Ee[N.value] = Le), B.value.forEach((He) => {
|
|
3191
3187
|
const ct = D.get(He) || 0;
|
|
3192
3188
|
D.set(He, ct + Ee[He]);
|
|
3193
|
-
}),
|
|
3189
|
+
}), te.push(Ee);
|
|
3194
3190
|
}
|
|
3195
3191
|
}
|
|
3196
|
-
return S.value && x(
|
|
3192
|
+
return S.value && x(te), $.value = [...te], te;
|
|
3197
3193
|
}
|
|
3198
3194
|
const ke = T(be()), Ve = A(() => (P.value, ke.value.filter((X) => S.value ? X.__fv_visible__ !== !1 && w(X) : X.__fv_visible__ !== !1)));
|
|
3199
3195
|
function je() {
|
|
3200
|
-
Ve.value.forEach((X,
|
|
3196
|
+
Ve.value.forEach((X, pe) => (X.__fv_visible_index__ = pe, X));
|
|
3201
3197
|
}
|
|
3202
|
-
function U(X,
|
|
3203
|
-
const W = (Se ? be() : [...$.value]).filter((
|
|
3204
|
-
const Ce = [...
|
|
3205
|
-
let Ee = Le.compare(
|
|
3198
|
+
function U(X, pe, Se = !1) {
|
|
3199
|
+
const W = (Se ? be() : [...$.value]).filter((te) => e.apply(te)), ee = X && X.length ? W.filter((te) => X.reduce((_e, Ce) => _e && Ce.filter(te), !0)) : W, ne = pe && pe.length ? ee.sort((te, _e) => {
|
|
3200
|
+
const Ce = [...pe], Le = Ce.shift();
|
|
3201
|
+
let Ee = Le.compare(te[Le.field], _e[Le.field]);
|
|
3206
3202
|
for (; Ee === 0 && Ce.length !== 0; ) {
|
|
3207
3203
|
const He = Ce.shift();
|
|
3208
|
-
He && (Ee = He.compare(
|
|
3204
|
+
He && (Ee = He.compare(te[He.field], _e[He.field]));
|
|
3209
3205
|
}
|
|
3210
3206
|
return Ee;
|
|
3211
3207
|
}) : ee;
|
|
3212
|
-
return ke.value =
|
|
3213
|
-
if (
|
|
3214
|
-
const Ce = `group_of_${
|
|
3215
|
-
|
|
3208
|
+
return ke.value = ne.map((te, _e) => {
|
|
3209
|
+
if (te.__fv_data_grid_group_row__) {
|
|
3210
|
+
const Ce = `group_of_${te.__fv_data_grid_group_field__}_${te.__fv_data_grid_group_value__}`;
|
|
3211
|
+
te.__fv_data_grid_group_collapse__ = !!i.get(Ce);
|
|
3216
3212
|
}
|
|
3217
|
-
return
|
|
3213
|
+
return te.__fv_index__ = _e, te.__fv_visible_index__ = _e, te;
|
|
3218
3214
|
}), ke.value;
|
|
3219
3215
|
}
|
|
3220
3216
|
function de(X) {
|
|
3221
|
-
return u.clear(), m.value = X, m.value.reduce((
|
|
3217
|
+
return u.clear(), m.value = X, m.value.reduce((pe, Se) => (pe.set(Se.field, Se), pe), u), U([], m.value);
|
|
3222
3218
|
}
|
|
3223
|
-
function q(X,
|
|
3224
|
-
return u.set(X,
|
|
3219
|
+
function q(X, pe) {
|
|
3220
|
+
return u.set(X, pe), m.value = Array.from(u.values()), U([], m.value);
|
|
3225
3221
|
}
|
|
3226
|
-
function
|
|
3222
|
+
function oe(X) {
|
|
3227
3223
|
return u.delete(X), m.value = Array.from(u.values()), U([], m.value);
|
|
3228
3224
|
}
|
|
3229
|
-
function xe(X,
|
|
3230
|
-
return a.set(X,
|
|
3225
|
+
function xe(X, pe) {
|
|
3226
|
+
return a.set(X, pe), d.value = Array.from(a.values()), U([], Array.from(u.values()));
|
|
3231
3227
|
}
|
|
3232
3228
|
function Oe(X) {
|
|
3233
3229
|
return a.delete(X), d.value = Array.from(a.values()), U([], Array.from(u.values()), !0);
|
|
@@ -3235,15 +3231,15 @@ function us(n, t, e, o, r) {
|
|
|
3235
3231
|
function Be() {
|
|
3236
3232
|
return a.clear(), d.value = [], U([], Array.from(u.values()), !0);
|
|
3237
3233
|
}
|
|
3238
|
-
function lt(X,
|
|
3239
|
-
const Se = `group_of_${X}_${
|
|
3234
|
+
function lt(X, pe) {
|
|
3235
|
+
const Se = `group_of_${X}_${pe}`;
|
|
3240
3236
|
i.set(Se, !0);
|
|
3241
|
-
const Ie = (W) => W[X] !==
|
|
3242
|
-
return s.set(`collapse_${X}_${
|
|
3237
|
+
const Ie = (W) => W[X] !== pe;
|
|
3238
|
+
return s.set(`collapse_${X}_${pe}`, {
|
|
3243
3239
|
field: X,
|
|
3244
3240
|
fieldName: X,
|
|
3245
3241
|
fieldType: "string",
|
|
3246
|
-
filterValue:
|
|
3242
|
+
filterValue: pe,
|
|
3247
3243
|
filter: Ie
|
|
3248
3244
|
}), U(Array.from(s.values()), Array.from(u.values()));
|
|
3249
3245
|
}
|
|
@@ -3253,23 +3249,23 @@ function us(n, t, e, o, r) {
|
|
|
3253
3249
|
function ht(X) {
|
|
3254
3250
|
v(ke.value, X);
|
|
3255
3251
|
}
|
|
3256
|
-
function J(X,
|
|
3257
|
-
const Se = `group_of_${X}_${
|
|
3258
|
-
return i.set(Se, !1), s.delete(`collapse_${X}_${
|
|
3252
|
+
function J(X, pe) {
|
|
3253
|
+
const Se = `group_of_${X}_${pe}`;
|
|
3254
|
+
return i.set(Se, !1), s.delete(`collapse_${X}_${pe}`), U(Array.from(s.values()), Array.from(u.values()), !0);
|
|
3259
3255
|
}
|
|
3260
3256
|
function Fe(X) {
|
|
3261
|
-
const
|
|
3262
|
-
l.set(`fold_${
|
|
3257
|
+
const pe = X.raw[N.value], Se = (Ie) => !Ie.__fv_parents__.has(pe);
|
|
3258
|
+
l.set(`fold_${pe}`, {
|
|
3263
3259
|
field: "id",
|
|
3264
3260
|
fieldName: "id",
|
|
3265
3261
|
fieldType: "string",
|
|
3266
|
-
filterValue: String(
|
|
3262
|
+
filterValue: String(pe),
|
|
3267
3263
|
filter: Se
|
|
3268
3264
|
}), U(Array.from(l.values()), Array.from(u.values())), x(ke.value);
|
|
3269
3265
|
}
|
|
3270
3266
|
function Ne(X) {
|
|
3271
|
-
const
|
|
3272
|
-
l.delete(`fold_${
|
|
3267
|
+
const pe = X[N.value];
|
|
3268
|
+
l.delete(`fold_${pe}`);
|
|
3273
3269
|
}
|
|
3274
3270
|
function Ye(X) {
|
|
3275
3271
|
Ne(X.raw), U(Array.from(l.values()), Array.from(u.values()), !0), x(ke.value);
|
|
@@ -3282,11 +3278,11 @@ function us(n, t, e, o, r) {
|
|
|
3282
3278
|
const Se = n.hierarchy && X && X.length && X[0].children ? j(X) : X;
|
|
3283
3279
|
y.value = Se, We();
|
|
3284
3280
|
}
|
|
3285
|
-
function xt(X,
|
|
3286
|
-
return (X && X.length ? ke.value.filter((W, ee) => X.reduce((
|
|
3281
|
+
function xt(X, pe, Se) {
|
|
3282
|
+
return (X && X.length ? ke.value.filter((W, ee) => X.reduce((ne, te) => ne && te.filter(W), !0)) : ke.value).slice(pe, Se);
|
|
3287
3283
|
}
|
|
3288
3284
|
function Tt(X) {
|
|
3289
|
-
const
|
|
3285
|
+
const pe = L(), Se = Math.ceil(Y.value / pe);
|
|
3290
3286
|
0 <= X && X <= Se && (G.value = X, We());
|
|
3291
3287
|
}
|
|
3292
3288
|
function vt(X) {
|
|
@@ -3305,32 +3301,32 @@ function us(n, t, e, o, r) {
|
|
|
3305
3301
|
Ne(Ie), c(X, Se, y), We();
|
|
3306
3302
|
}
|
|
3307
3303
|
function _t(X) {
|
|
3308
|
-
const
|
|
3309
|
-
y.value.splice(
|
|
3304
|
+
const pe = X ? X - 1 : 0;
|
|
3305
|
+
y.value.splice(pe, 1), We();
|
|
3310
3306
|
}
|
|
3311
3307
|
function Nt(X) {
|
|
3312
|
-
const
|
|
3313
|
-
|
|
3308
|
+
const pe = y.value.findIndex((Se) => Se[N.value] === X);
|
|
3309
|
+
pe !== -1 && (y.value.splice(pe, 1), We());
|
|
3314
3310
|
}
|
|
3315
3311
|
function Ft(X) {
|
|
3316
|
-
const
|
|
3317
|
-
if (!(
|
|
3312
|
+
const pe = X > -1 ? y.value[X] : null;
|
|
3313
|
+
if (!(pe && pe.deletable !== !1))
|
|
3318
3314
|
return !1;
|
|
3319
|
-
y.value = b(
|
|
3315
|
+
y.value = b(pe, y.value), We();
|
|
3320
3316
|
}
|
|
3321
3317
|
function re() {
|
|
3322
3318
|
const X = s.size > 0 ? Array.from(s.values()) : [];
|
|
3323
3319
|
return U(X, Array.from(u.values()));
|
|
3324
3320
|
}
|
|
3325
|
-
function
|
|
3321
|
+
function fe(X) {
|
|
3326
3322
|
H.value.size = X;
|
|
3327
3323
|
}
|
|
3328
3324
|
function we(X) {
|
|
3329
|
-
H.value && (
|
|
3325
|
+
H.value && (fe(X), We());
|
|
3330
3326
|
}
|
|
3331
|
-
function Re(X,
|
|
3327
|
+
function Re(X, pe) {
|
|
3332
3328
|
const Se = y.value[Number(X) - 1];
|
|
3333
|
-
Se.editable !== !1 ? (Se.name =
|
|
3329
|
+
Se.editable !== !1 ? (Se.name = pe, We()) : Z.show({
|
|
3334
3330
|
showCloseButton: !1,
|
|
3335
3331
|
timeout: 3e3,
|
|
3336
3332
|
animate: "fadeIn",
|
|
@@ -3347,7 +3343,7 @@ function us(n, t, e, o, r) {
|
|
|
3347
3343
|
addFilter: xe,
|
|
3348
3344
|
addNewDataItem: vt,
|
|
3349
3345
|
addSorter: q,
|
|
3350
|
-
updatePageSize:
|
|
3346
|
+
updatePageSize: fe,
|
|
3351
3347
|
changePageSizeTo: we,
|
|
3352
3348
|
collapse: lt,
|
|
3353
3349
|
collapseTo: Ct,
|
|
@@ -3373,7 +3369,7 @@ function us(n, t, e, o, r) {
|
|
|
3373
3369
|
removeDataItemById: Nt,
|
|
3374
3370
|
removeFilter: Oe,
|
|
3375
3371
|
removeHierarchyDataItem: Ft,
|
|
3376
|
-
removeSorter:
|
|
3372
|
+
removeSorter: oe,
|
|
3377
3373
|
reOrderVisibleIndex: je,
|
|
3378
3374
|
setSorters: de,
|
|
3379
3375
|
sorters: m,
|
|
@@ -3385,7 +3381,7 @@ function us(n, t, e, o, r) {
|
|
|
3385
3381
|
visibleDataItems: Ve
|
|
3386
3382
|
};
|
|
3387
3383
|
}
|
|
3388
|
-
const
|
|
3384
|
+
const fr = {
|
|
3389
3385
|
conditions: { type: Array, default: [] },
|
|
3390
3386
|
fields: { type: Array, default: [] },
|
|
3391
3387
|
key: { type: String, default: "" },
|
|
@@ -3394,7 +3390,7 @@ const pr = {
|
|
|
3394
3390
|
*/
|
|
3395
3391
|
isControlInline: { type: Boolean, default: !0 }
|
|
3396
3392
|
};
|
|
3397
|
-
class
|
|
3393
|
+
class pr {
|
|
3398
3394
|
constructor(t = { value: [] }) {
|
|
3399
3395
|
R(this, "editorType", "check-box");
|
|
3400
3396
|
R(this, "value");
|
|
@@ -3418,7 +3414,7 @@ class mr {
|
|
|
3418
3414
|
return this.value.length === 0;
|
|
3419
3415
|
}
|
|
3420
3416
|
}
|
|
3421
|
-
class
|
|
3417
|
+
class mr {
|
|
3422
3418
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
3423
3419
|
R(this, "editorType", "combo-lookup");
|
|
3424
3420
|
R(this, "textValue");
|
|
@@ -3462,11 +3458,11 @@ function Qe(n) {
|
|
|
3462
3458
|
function Ae(n, t) {
|
|
3463
3459
|
return n instanceof Date ? new n.constructor(t) : new Date(t);
|
|
3464
3460
|
}
|
|
3465
|
-
function
|
|
3461
|
+
function hr(n, t) {
|
|
3466
3462
|
const e = Qe(n);
|
|
3467
3463
|
return isNaN(t) ? Ae(n, NaN) : (t && e.setDate(e.getDate() + t), e);
|
|
3468
3464
|
}
|
|
3469
|
-
const
|
|
3465
|
+
const vr = 6048e5, cs = 864e5, ds = 6e4, fs = 36e5, ps = 1e3;
|
|
3470
3466
|
let ms = {};
|
|
3471
3467
|
function Ut() {
|
|
3472
3468
|
return ms;
|
|
@@ -3479,7 +3475,7 @@ function Dt(n, t) {
|
|
|
3479
3475
|
function zt(n) {
|
|
3480
3476
|
return Dt(n, { weekStartsOn: 1 });
|
|
3481
3477
|
}
|
|
3482
|
-
function
|
|
3478
|
+
function gr(n) {
|
|
3483
3479
|
const t = Qe(n), e = t.getFullYear(), o = Ae(n, 0);
|
|
3484
3480
|
o.setFullYear(e + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
3485
3481
|
const r = zt(o), i = Ae(n, 0);
|
|
@@ -3487,7 +3483,7 @@ function yr(n) {
|
|
|
3487
3483
|
const a = zt(i);
|
|
3488
3484
|
return t.getTime() >= r.getTime() ? e + 1 : t.getTime() >= a.getTime() ? e : e - 1;
|
|
3489
3485
|
}
|
|
3490
|
-
function
|
|
3486
|
+
function Hn(n) {
|
|
3491
3487
|
const t = Qe(n);
|
|
3492
3488
|
return t.setHours(0, 0, 0, 0), t;
|
|
3493
3489
|
}
|
|
@@ -3506,11 +3502,11 @@ function dn(n) {
|
|
|
3506
3502
|
return e.setUTCFullYear(t.getFullYear()), +n - +e;
|
|
3507
3503
|
}
|
|
3508
3504
|
function hs(n, t) {
|
|
3509
|
-
const e =
|
|
3505
|
+
const e = Hn(n), o = Hn(t), r = +e - dn(e), i = +o - dn(o);
|
|
3510
3506
|
return Math.round((r - i) / cs);
|
|
3511
3507
|
}
|
|
3512
3508
|
function vs(n) {
|
|
3513
|
-
const t =
|
|
3509
|
+
const t = gr(n), e = Ae(n, 0);
|
|
3514
3510
|
return e.setFullYear(t, 0, 4), e.setHours(0, 0, 0, 0), zt(e);
|
|
3515
3511
|
}
|
|
3516
3512
|
function gs(n) {
|
|
@@ -3945,7 +3941,7 @@ const Ws = /^(\d+)(th|st|nd|rd)?/i, js = /\d+/i, Hs = {
|
|
|
3945
3941
|
parsePatterns: Qs,
|
|
3946
3942
|
defaultParseWidth: "any"
|
|
3947
3943
|
})
|
|
3948
|
-
},
|
|
3944
|
+
}, yr = {
|
|
3949
3945
|
code: "en-US",
|
|
3950
3946
|
formatDistance: Cs,
|
|
3951
3947
|
formatLong: Ts,
|
|
@@ -3961,9 +3957,9 @@ function Js(n) {
|
|
|
3961
3957
|
const t = Qe(n);
|
|
3962
3958
|
return hs(t, bs(t)) + 1;
|
|
3963
3959
|
}
|
|
3964
|
-
function
|
|
3960
|
+
function br(n) {
|
|
3965
3961
|
const t = Qe(n), e = +zt(t) - +vs(t);
|
|
3966
|
-
return Math.round(e /
|
|
3962
|
+
return Math.round(e / vr) + 1;
|
|
3967
3963
|
}
|
|
3968
3964
|
function Dn(n, t) {
|
|
3969
3965
|
var d, m, p, h;
|
|
@@ -3979,9 +3975,9 @@ function Zs(n, t) {
|
|
|
3979
3975
|
const e = Ut(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((d = (u = e.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, r = Dn(n, t), i = Ae(n, 0);
|
|
3980
3976
|
return i.setFullYear(r, 0, o), i.setHours(0, 0, 0, 0), Dt(i, t);
|
|
3981
3977
|
}
|
|
3982
|
-
function
|
|
3978
|
+
function wr(n, t) {
|
|
3983
3979
|
const e = Qe(n), o = +Dt(e, t) - +Zs(e, t);
|
|
3984
|
-
return Math.round(o /
|
|
3980
|
+
return Math.round(o / vr) + 1;
|
|
3985
3981
|
}
|
|
3986
3982
|
function Pe(n, t) {
|
|
3987
3983
|
const e = n < 0 ? "-" : "", o = Math.abs(n).toString().padStart(t, "0");
|
|
@@ -4050,7 +4046,7 @@ const Mt = {
|
|
|
4050
4046
|
afternoon: "afternoon",
|
|
4051
4047
|
evening: "evening",
|
|
4052
4048
|
night: "night"
|
|
4053
|
-
},
|
|
4049
|
+
}, $n = {
|
|
4054
4050
|
// Era
|
|
4055
4051
|
G: function(n, t, e) {
|
|
4056
4052
|
const o = n.getFullYear() > 0 ? 1 : 0;
|
|
@@ -4085,7 +4081,7 @@ const Mt = {
|
|
|
4085
4081
|
},
|
|
4086
4082
|
// ISO week-numbering year
|
|
4087
4083
|
R: function(n, t) {
|
|
4088
|
-
const e =
|
|
4084
|
+
const e = gr(n);
|
|
4089
4085
|
return Pe(e, t.length);
|
|
4090
4086
|
},
|
|
4091
4087
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -4208,12 +4204,12 @@ const Mt = {
|
|
|
4208
4204
|
},
|
|
4209
4205
|
// Local week of year
|
|
4210
4206
|
w: function(n, t, e, o) {
|
|
4211
|
-
const r =
|
|
4207
|
+
const r = wr(n, o);
|
|
4212
4208
|
return t === "wo" ? e.ordinalNumber(r, { unit: "week" }) : Pe(r, t.length);
|
|
4213
4209
|
},
|
|
4214
4210
|
// ISO week of year
|
|
4215
4211
|
I: function(n, t, e) {
|
|
4216
|
-
const o =
|
|
4212
|
+
const o = br(n);
|
|
4217
4213
|
return t === "Io" ? e.ordinalNumber(o, { unit: "week" }) : Pe(o, t.length);
|
|
4218
4214
|
},
|
|
4219
4215
|
// Day of the month
|
|
@@ -4476,7 +4472,7 @@ const Mt = {
|
|
|
4476
4472
|
return "Z";
|
|
4477
4473
|
switch (t) {
|
|
4478
4474
|
case "X":
|
|
4479
|
-
return
|
|
4475
|
+
return qn(o);
|
|
4480
4476
|
case "XXXX":
|
|
4481
4477
|
case "XX":
|
|
4482
4478
|
return Lt(o);
|
|
@@ -4491,7 +4487,7 @@ const Mt = {
|
|
|
4491
4487
|
const o = n.getTimezoneOffset();
|
|
4492
4488
|
switch (t) {
|
|
4493
4489
|
case "x":
|
|
4494
|
-
return
|
|
4490
|
+
return qn(o);
|
|
4495
4491
|
case "xxxx":
|
|
4496
4492
|
case "xx":
|
|
4497
4493
|
return Lt(o);
|
|
@@ -4508,7 +4504,7 @@ const Mt = {
|
|
|
4508
4504
|
case "O":
|
|
4509
4505
|
case "OO":
|
|
4510
4506
|
case "OOO":
|
|
4511
|
-
return "GMT" +
|
|
4507
|
+
return "GMT" + An(o, ":");
|
|
4512
4508
|
case "OOOO":
|
|
4513
4509
|
default:
|
|
4514
4510
|
return "GMT" + Lt(o, ":");
|
|
@@ -4521,7 +4517,7 @@ const Mt = {
|
|
|
4521
4517
|
case "z":
|
|
4522
4518
|
case "zz":
|
|
4523
4519
|
case "zzz":
|
|
4524
|
-
return "GMT" +
|
|
4520
|
+
return "GMT" + An(o, ":");
|
|
4525
4521
|
case "zzzz":
|
|
4526
4522
|
default:
|
|
4527
4523
|
return "GMT" + Lt(o, ":");
|
|
@@ -4538,18 +4534,18 @@ const Mt = {
|
|
|
4538
4534
|
return Pe(o, t.length);
|
|
4539
4535
|
}
|
|
4540
4536
|
};
|
|
4541
|
-
function
|
|
4537
|
+
function An(n, t = "") {
|
|
4542
4538
|
const e = n > 0 ? "-" : "+", o = Math.abs(n), r = Math.trunc(o / 60), i = o % 60;
|
|
4543
4539
|
return i === 0 ? e + String(r) : e + String(r) + t + Pe(i, 2);
|
|
4544
4540
|
}
|
|
4545
|
-
function
|
|
4541
|
+
function qn(n, t) {
|
|
4546
4542
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + Pe(Math.abs(n) / 60, 2) : Lt(n, t);
|
|
4547
4543
|
}
|
|
4548
4544
|
function Lt(n, t = "") {
|
|
4549
4545
|
const e = n > 0 ? "-" : "+", o = Math.abs(n), r = Pe(Math.trunc(o / 60), 2), i = Pe(o % 60, 2);
|
|
4550
4546
|
return e + r + t + i;
|
|
4551
4547
|
}
|
|
4552
|
-
const
|
|
4548
|
+
const zn = (n, t) => {
|
|
4553
4549
|
switch (n) {
|
|
4554
4550
|
case "P":
|
|
4555
4551
|
return t.date({ width: "short" });
|
|
@@ -4561,7 +4557,7 @@ const Gn = (n, t) => {
|
|
|
4561
4557
|
default:
|
|
4562
4558
|
return t.date({ width: "full" });
|
|
4563
4559
|
}
|
|
4564
|
-
},
|
|
4560
|
+
}, Cr = (n, t) => {
|
|
4565
4561
|
switch (n) {
|
|
4566
4562
|
case "p":
|
|
4567
4563
|
return t.time({ width: "short" });
|
|
@@ -4576,7 +4572,7 @@ const Gn = (n, t) => {
|
|
|
4576
4572
|
}, el = (n, t) => {
|
|
4577
4573
|
const e = n.match(/(P+)(p+)?/) || [], o = e[1], r = e[2];
|
|
4578
4574
|
if (!r)
|
|
4579
|
-
return
|
|
4575
|
+
return zn(n, t);
|
|
4580
4576
|
let i;
|
|
4581
4577
|
switch (o) {
|
|
4582
4578
|
case "P":
|
|
@@ -4593,15 +4589,15 @@ const Gn = (n, t) => {
|
|
|
4593
4589
|
i = t.dateTime({ width: "full" });
|
|
4594
4590
|
break;
|
|
4595
4591
|
}
|
|
4596
|
-
return i.replace("{{date}}",
|
|
4592
|
+
return i.replace("{{date}}", zn(o, t)).replace("{{time}}", Cr(r, t));
|
|
4597
4593
|
}, Sn = {
|
|
4598
|
-
p:
|
|
4594
|
+
p: Cr,
|
|
4599
4595
|
P: el
|
|
4600
4596
|
}, tl = /^D+$/, nl = /^Y+$/, ol = ["D", "DD", "YY", "YYYY"];
|
|
4601
|
-
function
|
|
4597
|
+
function xr(n) {
|
|
4602
4598
|
return tl.test(n);
|
|
4603
4599
|
}
|
|
4604
|
-
function
|
|
4600
|
+
function _r(n) {
|
|
4605
4601
|
return nl.test(n);
|
|
4606
4602
|
}
|
|
4607
4603
|
function Tn(n, t, e) {
|
|
@@ -4613,9 +4609,9 @@ function rl(n, t, e) {
|
|
|
4613
4609
|
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${o} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
4614
4610
|
}
|
|
4615
4611
|
const il = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, al = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, sl = /^'([^]*?)'?$/, ll = /''/g, ul = /[a-zA-Z]/;
|
|
4616
|
-
function
|
|
4612
|
+
function Sr(n, t, e) {
|
|
4617
4613
|
var d, m, p, h;
|
|
4618
|
-
const o = Ut(), r = o.locale ??
|
|
4614
|
+
const o = Ut(), r = o.locale ?? yr, i = o.firstWeekContainsDate ?? ((m = (d = o.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = o.weekStartsOn ?? ((h = (p = o.locale) == null ? void 0 : p.options) == null ? void 0 : h.weekStartsOn) ?? 0, s = Qe(n);
|
|
4619
4615
|
if (!ys(s))
|
|
4620
4616
|
throw new RangeError("Invalid time value");
|
|
4621
4617
|
let l = t.match(al).map((f) => {
|
|
@@ -4631,7 +4627,7 @@ function Tr(n, t, e) {
|
|
|
4631
4627
|
const F = f[0];
|
|
4632
4628
|
if (F === "'")
|
|
4633
4629
|
return { isToken: !1, value: cl(f) };
|
|
4634
|
-
if (
|
|
4630
|
+
if ($n[F])
|
|
4635
4631
|
return { isToken: !0, value: f };
|
|
4636
4632
|
if (F.match(ul))
|
|
4637
4633
|
throw new RangeError(
|
|
@@ -4648,8 +4644,8 @@ function Tr(n, t, e) {
|
|
|
4648
4644
|
return l.map((f) => {
|
|
4649
4645
|
if (!f.isToken) return f.value;
|
|
4650
4646
|
const F = f.value;
|
|
4651
|
-
(
|
|
4652
|
-
const y =
|
|
4647
|
+
(_r(F) || xr(F)) && Tn(F, t, String(n));
|
|
4648
|
+
const y = $n[F[0]];
|
|
4653
4649
|
return y(s, F, r.localize, u);
|
|
4654
4650
|
}).join("");
|
|
4655
4651
|
}
|
|
@@ -4678,7 +4674,7 @@ function pl(n, t) {
|
|
|
4678
4674
|
), e;
|
|
4679
4675
|
}
|
|
4680
4676
|
const ml = 10;
|
|
4681
|
-
class
|
|
4677
|
+
class Tr {
|
|
4682
4678
|
constructor() {
|
|
4683
4679
|
R(this, "subPriority", 0);
|
|
4684
4680
|
}
|
|
@@ -4686,7 +4682,7 @@ class kr {
|
|
|
4686
4682
|
return !0;
|
|
4687
4683
|
}
|
|
4688
4684
|
}
|
|
4689
|
-
class hl extends
|
|
4685
|
+
class hl extends Tr {
|
|
4690
4686
|
constructor(t, e, o, r, i) {
|
|
4691
4687
|
super(), this.value = t, this.validateValue = e, this.setValue = o, this.priority = r, i && (this.subPriority = i);
|
|
4692
4688
|
}
|
|
@@ -4697,7 +4693,7 @@ class hl extends kr {
|
|
|
4697
4693
|
return this.setValue(t, e, this.value, o);
|
|
4698
4694
|
}
|
|
4699
4695
|
}
|
|
4700
|
-
class vl extends
|
|
4696
|
+
class vl extends Tr {
|
|
4701
4697
|
constructor() {
|
|
4702
4698
|
super(...arguments);
|
|
4703
4699
|
R(this, "priority", ml);
|
|
@@ -4821,7 +4817,7 @@ function yt(n, t) {
|
|
|
4821
4817
|
rest: t.slice(e[0].length)
|
|
4822
4818
|
};
|
|
4823
4819
|
}
|
|
4824
|
-
function
|
|
4820
|
+
function kr(n) {
|
|
4825
4821
|
return $e(ze.anyDigitsSigned, n);
|
|
4826
4822
|
}
|
|
4827
4823
|
function qe(n, t) {
|
|
@@ -4869,7 +4865,7 @@ function In(n) {
|
|
|
4869
4865
|
return 0;
|
|
4870
4866
|
}
|
|
4871
4867
|
}
|
|
4872
|
-
function
|
|
4868
|
+
function Fr(n, t) {
|
|
4873
4869
|
const e = t > 0, o = e ? t : 1 - t;
|
|
4874
4870
|
let r;
|
|
4875
4871
|
if (o <= 50)
|
|
@@ -4880,7 +4876,7 @@ function Er(n, t) {
|
|
|
4880
4876
|
}
|
|
4881
4877
|
return e ? r : 1 - r;
|
|
4882
4878
|
}
|
|
4883
|
-
function
|
|
4879
|
+
function Er(n) {
|
|
4884
4880
|
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
4885
4881
|
}
|
|
4886
4882
|
class yl extends De {
|
|
@@ -4914,7 +4910,7 @@ class yl extends De {
|
|
|
4914
4910
|
set(e, o, r) {
|
|
4915
4911
|
const i = e.getFullYear();
|
|
4916
4912
|
if (r.isTwoDigitYear) {
|
|
4917
|
-
const s =
|
|
4913
|
+
const s = Fr(
|
|
4918
4914
|
r.year,
|
|
4919
4915
|
i
|
|
4920
4916
|
);
|
|
@@ -4969,7 +4965,7 @@ class bl extends De {
|
|
|
4969
4965
|
set(e, o, r, i) {
|
|
4970
4966
|
const a = Dn(e, i);
|
|
4971
4967
|
if (r.isTwoDigitYear) {
|
|
4972
|
-
const l =
|
|
4968
|
+
const l = Fr(
|
|
4973
4969
|
r.year,
|
|
4974
4970
|
a
|
|
4975
4971
|
);
|
|
@@ -5275,7 +5271,7 @@ class Tl extends De {
|
|
|
5275
5271
|
}
|
|
5276
5272
|
}
|
|
5277
5273
|
function kl(n, t, e) {
|
|
5278
|
-
const o = Qe(n), r =
|
|
5274
|
+
const o = Qe(n), r = wr(o, e) - t;
|
|
5279
5275
|
return o.setDate(o.getDate() - r * 7), o;
|
|
5280
5276
|
}
|
|
5281
5277
|
class Fl extends De {
|
|
@@ -5316,7 +5312,7 @@ class Fl extends De {
|
|
|
5316
5312
|
}
|
|
5317
5313
|
}
|
|
5318
5314
|
function El(n, t) {
|
|
5319
|
-
const e = Qe(n), o =
|
|
5315
|
+
const e = Qe(n), o = br(e) - t;
|
|
5320
5316
|
return e.setDate(e.getDate() - o * 7), e;
|
|
5321
5317
|
}
|
|
5322
5318
|
class Ml extends De {
|
|
@@ -5402,7 +5398,7 @@ class Il extends De {
|
|
|
5402
5398
|
}
|
|
5403
5399
|
}
|
|
5404
5400
|
validate(e, o) {
|
|
5405
|
-
const r = e.getFullYear(), i =
|
|
5401
|
+
const r = e.getFullYear(), i = Er(r), a = e.getMonth();
|
|
5406
5402
|
return i ? o >= 1 && o <= Dl[a] : o >= 1 && o <= Ol[a];
|
|
5407
5403
|
}
|
|
5408
5404
|
set(e, o, r) {
|
|
@@ -5445,7 +5441,7 @@ class Pl extends De {
|
|
|
5445
5441
|
}
|
|
5446
5442
|
validate(e, o) {
|
|
5447
5443
|
const r = e.getFullYear();
|
|
5448
|
-
return
|
|
5444
|
+
return Er(r) ? o >= 1 && o <= 366 : o >= 1 && o <= 365;
|
|
5449
5445
|
}
|
|
5450
5446
|
set(e, o, r) {
|
|
5451
5447
|
return e.setMonth(0, r), e.setHours(0, 0, 0, 0), e;
|
|
@@ -5454,7 +5450,7 @@ class Pl extends De {
|
|
|
5454
5450
|
function Pn(n, t, e) {
|
|
5455
5451
|
var m, p, h, f;
|
|
5456
5452
|
const o = Ut(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((p = (m = e == null ? void 0 : e.locale) == null ? void 0 : m.options) == null ? void 0 : p.weekStartsOn) ?? o.weekStartsOn ?? ((f = (h = o.locale) == null ? void 0 : h.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = Qe(n), a = i.getDay(), l = (t % 7 + 7) % 7, u = 7 - r, d = t < 0 || t > 6 ? t - (a + u) % 7 : (l + u) % 7 - (a + u) % 7;
|
|
5457
|
-
return
|
|
5453
|
+
return hr(i, d);
|
|
5458
5454
|
}
|
|
5459
5455
|
class Nl extends De {
|
|
5460
5456
|
constructor() {
|
|
@@ -5625,7 +5621,7 @@ class Vl extends De {
|
|
|
5625
5621
|
}
|
|
5626
5622
|
function Rl(n, t) {
|
|
5627
5623
|
const e = Qe(n), o = fl(e), r = t - o;
|
|
5628
|
-
return
|
|
5624
|
+
return hr(e, r);
|
|
5629
5625
|
}
|
|
5630
5626
|
class Ll extends De {
|
|
5631
5627
|
constructor() {
|
|
@@ -6075,7 +6071,7 @@ class Kl extends De {
|
|
|
6075
6071
|
R(this, "incompatibleTokens", "*");
|
|
6076
6072
|
}
|
|
6077
6073
|
parse(e) {
|
|
6078
|
-
return
|
|
6074
|
+
return kr(e);
|
|
6079
6075
|
}
|
|
6080
6076
|
set(e, o, r) {
|
|
6081
6077
|
return [Ae(e, r * 1e3), { timestampIsSet: !0 }];
|
|
@@ -6088,7 +6084,7 @@ class Jl extends De {
|
|
|
6088
6084
|
R(this, "incompatibleTokens", "*");
|
|
6089
6085
|
}
|
|
6090
6086
|
parse(e) {
|
|
6091
|
-
return
|
|
6087
|
+
return kr(e);
|
|
6092
6088
|
}
|
|
6093
6089
|
set(e, o, r) {
|
|
6094
6090
|
return [Ae(e, r), { timestampIsSet: !0 }];
|
|
@@ -6127,9 +6123,9 @@ const Zl = {
|
|
|
6127
6123
|
t: new Kl(),
|
|
6128
6124
|
T: new Jl()
|
|
6129
6125
|
}, eu = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, tu = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, nu = /^'([^]*?)'?$/, ou = /''/g, ru = /\S/, iu = /[a-zA-Z]/;
|
|
6130
|
-
function
|
|
6126
|
+
function Mr(n, t, e, o) {
|
|
6131
6127
|
var F, y, g, _;
|
|
6132
|
-
const r = dl(), i = r.locale ??
|
|
6128
|
+
const r = dl(), i = r.locale ?? yr, a = r.firstWeekContainsDate ?? ((y = (F = r.locale) == null ? void 0 : F.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((_ = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : _.weekStartsOn) ?? 0;
|
|
6133
6129
|
if (t === "")
|
|
6134
6130
|
return n === "" ? Qe(e) : Ae(e, NaN);
|
|
6135
6131
|
const l = {
|
|
@@ -6145,7 +6141,7 @@ function Or(n, t, e, o) {
|
|
|
6145
6141
|
return v;
|
|
6146
6142
|
}).join("").match(eu), m = [];
|
|
6147
6143
|
for (let v of d) {
|
|
6148
|
-
|
|
6144
|
+
_r(v) && Tn(v, t, n), xr(v) && Tn(v, t, n);
|
|
6149
6145
|
const x = v[0], k = Zl[x];
|
|
6150
6146
|
if (k) {
|
|
6151
6147
|
const { incompatibleTokens: C } = k;
|
|
@@ -6202,7 +6198,7 @@ function Or(n, t, e, o) {
|
|
|
6202
6198
|
function au(n) {
|
|
6203
6199
|
return n.match(nu)[1].replace(ou, "'");
|
|
6204
6200
|
}
|
|
6205
|
-
class
|
|
6201
|
+
class Or {
|
|
6206
6202
|
constructor(t = { value: "", displayFormat: "", valueFormat: "" }) {
|
|
6207
6203
|
R(this, "editorType", "date-picker");
|
|
6208
6204
|
R(this, "value");
|
|
@@ -6219,8 +6215,8 @@ class Dr {
|
|
|
6219
6215
|
}
|
|
6220
6216
|
getDisplayText() {
|
|
6221
6217
|
if (typeof this.value == "string" && this.value) {
|
|
6222
|
-
const t =
|
|
6223
|
-
return
|
|
6218
|
+
const t = Mr(this.value, this.valueFormat, /* @__PURE__ */ new Date());
|
|
6219
|
+
return Sr(t, this.displayFormat);
|
|
6224
6220
|
}
|
|
6225
6221
|
return this.getValue();
|
|
6226
6222
|
}
|
|
@@ -6255,7 +6251,7 @@ class pn {
|
|
|
6255
6251
|
return !this.begin || !this.end;
|
|
6256
6252
|
}
|
|
6257
6253
|
}
|
|
6258
|
-
class
|
|
6254
|
+
class Dr {
|
|
6259
6255
|
constructor(t = { value: "", displayFormat: "", valueFormat: "" }) {
|
|
6260
6256
|
R(this, "editorType", "datetime-picker");
|
|
6261
6257
|
R(this, "value");
|
|
@@ -6272,8 +6268,8 @@ class Ir {
|
|
|
6272
6268
|
}
|
|
6273
6269
|
getDisplayText() {
|
|
6274
6270
|
if (typeof this.value == "string" && this.value) {
|
|
6275
|
-
const t =
|
|
6276
|
-
return
|
|
6271
|
+
const t = Mr(this.value, this.valueFormat, /* @__PURE__ */ new Date());
|
|
6272
|
+
return Sr(t, this.displayFormat);
|
|
6277
6273
|
}
|
|
6278
6274
|
return this.getValue();
|
|
6279
6275
|
}
|
|
@@ -6284,7 +6280,7 @@ class Ir {
|
|
|
6284
6280
|
return !this.value;
|
|
6285
6281
|
}
|
|
6286
6282
|
}
|
|
6287
|
-
class
|
|
6283
|
+
class Ir {
|
|
6288
6284
|
constructor(t = { value: "", valueList: [] }) {
|
|
6289
6285
|
R(this, "editorType", "combo-list");
|
|
6290
6286
|
R(this, "value");
|
|
@@ -6369,7 +6365,7 @@ class su {
|
|
|
6369
6365
|
return !this.displayText && !this.value.length;
|
|
6370
6366
|
}
|
|
6371
6367
|
}
|
|
6372
|
-
class
|
|
6368
|
+
class Pr {
|
|
6373
6369
|
constructor(t = { mapFields: [], value: "", valueField: "", isInputText: !1, helpId: "" }) {
|
|
6374
6370
|
R(this, "editorType", "lookup");
|
|
6375
6371
|
R(this, "helpId");
|
|
@@ -6397,7 +6393,7 @@ class Nr {
|
|
|
6397
6393
|
return !this.mapFields.length;
|
|
6398
6394
|
}
|
|
6399
6395
|
}
|
|
6400
|
-
class
|
|
6396
|
+
class Nr {
|
|
6401
6397
|
constructor(t = { value: "" }) {
|
|
6402
6398
|
R(this, "editorType", "month-picker");
|
|
6403
6399
|
R(this, "value");
|
|
@@ -6420,7 +6416,7 @@ class Br {
|
|
|
6420
6416
|
return !this.value;
|
|
6421
6417
|
}
|
|
6422
6418
|
}
|
|
6423
|
-
class
|
|
6419
|
+
class Br {
|
|
6424
6420
|
constructor(t = { begin: "", end: "" }) {
|
|
6425
6421
|
R(this, "editorType", "month-range");
|
|
6426
6422
|
R(this, "begin");
|
|
@@ -6444,7 +6440,7 @@ class Vr {
|
|
|
6444
6440
|
return !this.begin || !this.end;
|
|
6445
6441
|
}
|
|
6446
6442
|
}
|
|
6447
|
-
class
|
|
6443
|
+
class Vr {
|
|
6448
6444
|
constructor(t = { begin: null, end: null }) {
|
|
6449
6445
|
R(this, "editorType", "number-range");
|
|
6450
6446
|
R(this, "begin");
|
|
@@ -6471,7 +6467,7 @@ class Rr {
|
|
|
6471
6467
|
return this.begin == null && this.end == null;
|
|
6472
6468
|
}
|
|
6473
6469
|
}
|
|
6474
|
-
class
|
|
6470
|
+
class Rr {
|
|
6475
6471
|
constructor(t = { value: "" }) {
|
|
6476
6472
|
R(this, "editorType", "number-spinner");
|
|
6477
6473
|
R(this, "value");
|
|
@@ -6495,7 +6491,7 @@ class Lr {
|
|
|
6495
6491
|
return this.value == null || isNaN(this.value);
|
|
6496
6492
|
}
|
|
6497
6493
|
}
|
|
6498
|
-
class
|
|
6494
|
+
class Lr {
|
|
6499
6495
|
constructor(t = { value: null, valueList: [] }) {
|
|
6500
6496
|
R(this, "editorType", "radio-group");
|
|
6501
6497
|
R(this, "value");
|
|
@@ -6543,45 +6539,45 @@ class mn {
|
|
|
6543
6539
|
return !this.value;
|
|
6544
6540
|
}
|
|
6545
6541
|
}
|
|
6546
|
-
function
|
|
6542
|
+
function Wr() {
|
|
6547
6543
|
function n(t, e) {
|
|
6548
6544
|
switch (t) {
|
|
6549
6545
|
case "check-box":
|
|
6550
|
-
return new
|
|
6546
|
+
return new pr(e);
|
|
6551
6547
|
case "combo-list":
|
|
6552
|
-
return new
|
|
6548
|
+
return new Ir(e);
|
|
6553
6549
|
case "combo-lookup":
|
|
6554
|
-
return new
|
|
6550
|
+
return new mr(e);
|
|
6555
6551
|
case "input-group":
|
|
6556
6552
|
return new su(e);
|
|
6557
6553
|
case "date-picker":
|
|
6558
|
-
return new
|
|
6554
|
+
return new Or(e);
|
|
6559
6555
|
case "date-range":
|
|
6560
6556
|
return new pn(e);
|
|
6561
6557
|
case "datetime-picker":
|
|
6562
|
-
return new
|
|
6558
|
+
return new Dr(e);
|
|
6563
6559
|
case "datetime-range":
|
|
6564
6560
|
return new pn(e);
|
|
6565
6561
|
case "lookup":
|
|
6566
|
-
return new
|
|
6562
|
+
return new Pr(e);
|
|
6567
6563
|
case "month-picker":
|
|
6568
|
-
return new
|
|
6564
|
+
return new Nr(e);
|
|
6569
6565
|
case "month-range":
|
|
6570
|
-
return new
|
|
6566
|
+
return new Br(e);
|
|
6571
6567
|
case "number-range":
|
|
6572
|
-
return new
|
|
6568
|
+
return new Vr(e);
|
|
6573
6569
|
case "number-spinner":
|
|
6574
|
-
return new
|
|
6570
|
+
return new Rr(e);
|
|
6575
6571
|
case "radio-group":
|
|
6576
|
-
return new
|
|
6572
|
+
return new Lr(e);
|
|
6577
6573
|
default:
|
|
6578
6574
|
return new mn(e);
|
|
6579
6575
|
}
|
|
6580
6576
|
}
|
|
6581
6577
|
return { createConditionValue: n };
|
|
6582
6578
|
}
|
|
6583
|
-
function
|
|
6584
|
-
const e = T(n.fields), o = T([]), r = /* @__PURE__ */ new Map(), { createConditionValue: i } =
|
|
6579
|
+
function jr(n, t) {
|
|
6580
|
+
const e = T(n.fields), o = T([]), r = /* @__PURE__ */ new Map(), { createConditionValue: i } = Wr();
|
|
6585
6581
|
function a(d) {
|
|
6586
6582
|
switch (d.editor ? d.editor.type : "input-group") {
|
|
6587
6583
|
case "date-range":
|
|
@@ -6643,14 +6639,14 @@ function lu(n, t, e) {
|
|
|
6643
6639
|
resizeObserver: o
|
|
6644
6640
|
};
|
|
6645
6641
|
}
|
|
6646
|
-
const
|
|
6642
|
+
const Gn = /* @__PURE__ */ nt({
|
|
6647
6643
|
name: "FConditionFields",
|
|
6648
|
-
props:
|
|
6644
|
+
props: fr,
|
|
6649
6645
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
6650
6646
|
setup(n, t) {
|
|
6651
6647
|
const e = T(), o = T(n.key);
|
|
6652
6648
|
T(n.isControlInline);
|
|
6653
|
-
const r = T(n.conditions), i =
|
|
6649
|
+
const r = T(n.conditions), i = jr(n), {
|
|
6654
6650
|
initialConditionValue: a,
|
|
6655
6651
|
fieldMap: s,
|
|
6656
6652
|
loadFieldConfigs: l
|
|
@@ -6658,7 +6654,7 @@ const Yn = /* @__PURE__ */ nt({
|
|
|
6658
6654
|
conditionClass: d,
|
|
6659
6655
|
resizeObserver: m
|
|
6660
6656
|
} = u;
|
|
6661
|
-
l(!0), a(r.value),
|
|
6657
|
+
l(!0), a(r.value), Zn(() => {
|
|
6662
6658
|
var y;
|
|
6663
6659
|
(y = m.value) == null || y.unobserve(e.value);
|
|
6664
6660
|
}), Me(() => n.conditions, () => {
|
|
@@ -6707,11 +6703,11 @@ const Yn = /* @__PURE__ */ nt({
|
|
|
6707
6703
|
}, null);
|
|
6708
6704
|
});
|
|
6709
6705
|
}
|
|
6710
|
-
return () =>
|
|
6706
|
+
return () => ei(M("div", {
|
|
6711
6707
|
class: p.value,
|
|
6712
6708
|
key: o.value,
|
|
6713
6709
|
ref: e
|
|
6714
|
-
}, [F()]), [[
|
|
6710
|
+
}, [F()]), [[ti("area-response")]]);
|
|
6715
6711
|
}
|
|
6716
6712
|
}), Nn = /* @__PURE__ */ new Map([
|
|
6717
6713
|
["appearance", Mn]
|
|
@@ -6980,7 +6976,7 @@ const _u = "https://json-schema.org/draft/2020-12/schema", Su = "https://farris-
|
|
|
6980
6976
|
"id",
|
|
6981
6977
|
"type",
|
|
6982
6978
|
"editor"
|
|
6983
|
-
],
|
|
6979
|
+
], Hr = {
|
|
6984
6980
|
$schema: _u,
|
|
6985
6981
|
$id: Su,
|
|
6986
6982
|
title: Tu,
|
|
@@ -6988,7 +6984,7 @@ const _u = "https://json-schema.org/draft/2020-12/schema", Su = "https://farris-
|
|
|
6988
6984
|
type: Fu,
|
|
6989
6985
|
properties: Eu,
|
|
6990
6986
|
required: Mu
|
|
6991
|
-
},
|
|
6987
|
+
}, $r = {
|
|
6992
6988
|
id: { type: String, default: "" },
|
|
6993
6989
|
customClass: { type: String, default: "" },
|
|
6994
6990
|
customStyle: { type: String, default: "" },
|
|
@@ -7006,8 +7002,8 @@ const _u = "https://json-schema.org/draft/2020-12/schema", Su = "https://farris-
|
|
|
7006
7002
|
errors: { type: Object, default: null }
|
|
7007
7003
|
};
|
|
7008
7004
|
Yt(
|
|
7009
|
-
Ar,
|
|
7010
7005
|
$r,
|
|
7006
|
+
Hr,
|
|
7011
7007
|
Nn,
|
|
7012
7008
|
void 0
|
|
7013
7009
|
);
|
|
@@ -7232,9 +7228,9 @@ class cp {
|
|
|
7232
7228
|
};
|
|
7233
7229
|
}
|
|
7234
7230
|
}
|
|
7235
|
-
const
|
|
7236
|
-
function
|
|
7237
|
-
|
|
7231
|
+
const Ar = T(0);
|
|
7232
|
+
function qr() {
|
|
7233
|
+
Ar.value++;
|
|
7238
7234
|
}
|
|
7239
7235
|
function Du(n) {
|
|
7240
7236
|
const { formSchemaUtils: t, formStateMachineUtils: e } = n;
|
|
@@ -7717,7 +7713,7 @@ class Pu {
|
|
|
7717
7713
|
if (!o)
|
|
7718
7714
|
return;
|
|
7719
7715
|
const r = o.contents.findIndex((a) => a.id === t), i = wt(o.contents[r]);
|
|
7720
|
-
o.contents.splice(r, 1), o.contents.splice(r, 0, i),
|
|
7716
|
+
o.contents.splice(r, 1), o.contents.splice(r, 0, i), qr();
|
|
7721
7717
|
}
|
|
7722
7718
|
/**
|
|
7723
7719
|
* 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
|
|
@@ -7817,9 +7813,9 @@ const Nu = {
|
|
|
7817
7813
|
}, [o.value])]);
|
|
7818
7814
|
}
|
|
7819
7815
|
}), se = {}, le = {}, ue = {}, ce = {};
|
|
7820
|
-
let
|
|
7816
|
+
let Yn = !1;
|
|
7821
7817
|
function Vu() {
|
|
7822
|
-
|
|
7818
|
+
Yn || (Yn = !0, fo.register(se, le, ue, ce), co.register(se, le, ue, ce), po.register(se, le, ue, ce), mo.register(se, le, ue, ce), ho.register(se, le, ue, ce), vo.register(se, le, ue, ce), xn.register(se, le, ue, ce), un.register(se, le, ue, ce), xn.register(se, le, ue, ce), un.register(se, le, ue, ce), cn.register(se, le, ue, ce), Ji.register(se, le, ue, ce), go.register(se, le, ue, ce), bo.register(se, le, ue, ce), yo.register(se, le, ue, ce), wo.register(se, le, ue, ce), Co.register(se, le, ue, ce), xo.register(se, le, ue, ce), uo.register(se, le, ue, ce), Zi.register(se, le, ue, ce), da.register(se, le, ue, ce), io.register(se, le, ue, ce), ea.register(se, le, ue, ce), aa.register(se, le, ue, ce), _o.register(se, le, ue, ce), So.register(se, le, ue, ce), To.register(se, le, ue, ce), Fo.register(se, le, ue, ce), ko.register(se, le, ue, ce), Eo.register(se, le, ue, ce), oa.register(se, le, ue, ce), Mo.register(se, le, ue, ce), Oo.register(se, le, ue, ce), Do.register(se, le, ue, ce), ro.register(se, le, ue, ce), Io.register(se, le, ue, ce), Po.register(se, le, ue, ce), ao.register(se, le, ue, ce), No.register(se, le, ue, ce), Bo.register(se, le, ue, ce), Vo.register(se, le, ue, ce), Ro.register(se, le, ue, ce), Wo.register(se, le, ue, ce), jo.register(se, le, ue, ce), Lo.register(se, le, ue, ce), ra.register(se, le, ue), so.register(se, le, ue, ce), Ho.register(se, le, ue, ce), $o.register(se, le, ue, ce), Ao.register(se, le, ue, ce), qo.register(se, le, ue, ce), zo.register(se, le, ue, ce), sa.register(se, le, ue, ce), oo.register(se, le, ue, ce), lo.register(se, le, ue, ce), Go.register(se, le, ue, ce), Yo.register(se, le, ue, ce), no.register(se, le, ue, ce), Uo.register(se, le, ue, ce), Qo.register(se, le, ue, ce), Xo.register(se, le, ue, ce), Ko.register(se, le, ue, ce), Jo.register(se, le, ue, ce), Zo.register(se, le, ue, ce), ta.register(se, le, ue, ce), ia.register(se, le, ue, ce), er.register(se, le, ue, ce), la.register(se, le, ue, ce), tr.register(se, le, ue, ce), ua.register(se, le, ue, ce), ca.register(se, le, ue, ce), fa.register(se, le, ue, ce), nr.register(se, le, ue, ce));
|
|
7823
7819
|
}
|
|
7824
7820
|
function Ru() {
|
|
7825
7821
|
Vu();
|
|
@@ -7969,7 +7965,7 @@ const Lu = {
|
|
|
7969
7965
|
}
|
|
7970
7966
|
}), kn = /* @__PURE__ */ nt({
|
|
7971
7967
|
name: "FDynamicFormGroup",
|
|
7972
|
-
props:
|
|
7968
|
+
props: $r,
|
|
7973
7969
|
emits: ["change", "update:modelValue"],
|
|
7974
7970
|
setup(n, t) {
|
|
7975
7971
|
var C;
|
|
@@ -8034,9 +8030,9 @@ const Lu = {
|
|
|
8034
8030
|
}, [x.value(), k()])])])]);
|
|
8035
8031
|
}
|
|
8036
8032
|
}), he = {}, ve = {}, ye = {};
|
|
8037
|
-
let
|
|
8033
|
+
let Un = !1;
|
|
8038
8034
|
function ju() {
|
|
8039
|
-
|
|
8035
|
+
Un || (Un = !0, fo.registerDesigner(he, ve, ye), co.registerDesigner(he, ve, ye), po.registerDesigner(he, ve, ye), mo.registerDesigner(he, ve, ye), ho.registerDesigner(he, ve, ye), vo.registerDesigner(he, ve, ye), xn.registerDesigner(he, ve, ye), un.registerDesigner(he, ve, ye), un.registerDesigner(he, ve, ye), yo.registerDesigner(he, ve, ye), cn.registerDesigner(he, ve, ye), bo.registerDesigner(he, ve, ye), Co.registerDesigner(he, ve, ye), wo.registerDesigner(he, ve, ye), xo.registerDesigner(he, ve, ye), uo.registerDesigner(he, ve, ye), pa.registerDesigner(he, ve, ye), io.registerDesigner(he, ve, ye), _o.registerDesigner(he, ve, ye), So.registerDesigner(he, ve, ye), To.registerDesigner(he, ve, ye), Fo.registerDesigner(he, ve, ye), ko.registerDesigner(he, ve, ye), Mo.registerDesigner(he, ve, ye), Eo.registerDesigner(he, ve, ye), Oo.registerDesigner(he, ve, ye), Do.registerDesigner(he, ve, ye), ro.registerDesigner(he, ve, ye), Io.registerDesigner(he, ve, ye), Po.registerDesigner(he, ve, ye), ao.registerDesigner(he, ve, ye), No.registerDesigner(he, ve, ye), Bo.registerDesigner(he, ve, ye), Vo.registerDesigner(he, ve, ye), Wo.registerDesigner(he, ve, ye), jo.registerDesigner(he, ve, ye), Lo.registerDesigner(he, ve, ye), Ro.registerDesigner(he, ve, ye), so.registerDesigner(he, ve, ye), Ho.registerDesigner(he, ve, ye), $o.registerDesigner(he, ve, ye), Ao.registerDesigner(he, ve, ye), qo.registerDesigner(he, ve, ye), zo.registerDesigner(he, ve, ye), oo.registerDesigner(he, ve, ye), lo.registerDesigner(he, ve, ye), Go.registerDesigner(he, ve, ye), Yo.registerDesigner(he, ve, ye), no.registerDesigner(he, ve, ye), Uo.registerDesigner(he, ve, ye), Xo.registerDesigner(he, ve, ye), Qo.registerDesigner(he, ve, ye), go.registerDesigner(he, ve), Ko.registerDesigner(he, ve, ye), Jo.registerDesigner(he, ve, ye), Zo.registerDesigner(he, ve, ye), er.registerDesigner(he, ve, ye), tr.registerDesigner(he, ve, ye), nr.registerDesigner(he, ve, ye));
|
|
8040
8036
|
}
|
|
8041
8037
|
const At = class At {
|
|
8042
8038
|
/**
|
|
@@ -8121,7 +8117,7 @@ R(At, "fieldControlTypeMapping", {
|
|
|
8121
8117
|
{ key: ie["radio-group"].type, value: ie["radio-group"].name }
|
|
8122
8118
|
]
|
|
8123
8119
|
});
|
|
8124
|
-
let
|
|
8120
|
+
let Xn = At;
|
|
8125
8121
|
const Hu = {
|
|
8126
8122
|
id: { type: String, default: "" },
|
|
8127
8123
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
@@ -8139,7 +8135,7 @@ const Hu = {
|
|
|
8139
8135
|
};
|
|
8140
8136
|
Yt(
|
|
8141
8137
|
Hu,
|
|
8142
|
-
|
|
8138
|
+
Hr,
|
|
8143
8139
|
Nn,
|
|
8144
8140
|
void 0
|
|
8145
8141
|
);
|
|
@@ -8867,7 +8863,7 @@ function pc(n, t, e) {
|
|
|
8867
8863
|
resetTranslate: x
|
|
8868
8864
|
};
|
|
8869
8865
|
}
|
|
8870
|
-
function
|
|
8866
|
+
function zr(n, t) {
|
|
8871
8867
|
if (n) {
|
|
8872
8868
|
const e = (o) => {
|
|
8873
8869
|
o.key.toLowerCase() === n.toLowerCase() && t({ event: o, key: n });
|
|
@@ -8880,7 +8876,7 @@ function Gr(n, t) {
|
|
|
8880
8876
|
function mc(n, t) {
|
|
8881
8877
|
const e = T(n.enableEsc);
|
|
8882
8878
|
let o = null;
|
|
8883
|
-
return e.value ? (o =
|
|
8879
|
+
return e.value ? (o = zr("Escape", (r) => {
|
|
8884
8880
|
t.emit("esc", { event: r.event, type: "esc" });
|
|
8885
8881
|
}), {
|
|
8886
8882
|
remove: o
|
|
@@ -8889,7 +8885,7 @@ function mc(n, t) {
|
|
|
8889
8885
|
function hc(n, t) {
|
|
8890
8886
|
const e = T(n.enableEnter);
|
|
8891
8887
|
let o = null;
|
|
8892
|
-
return e.value ? (o =
|
|
8888
|
+
return e.value ? (o = zr("Enter", (r) => {
|
|
8893
8889
|
t.emit("enter", { event: r.event, type: "enter" });
|
|
8894
8890
|
}), {
|
|
8895
8891
|
remove: o
|
|
@@ -8997,7 +8993,7 @@ const Jt = /* @__PURE__ */ nt({
|
|
|
8997
8993
|
display: l.value ? "" : "none"
|
|
8998
8994
|
};
|
|
8999
8995
|
return J["pointer-events"] = V.value ? "auto" : "none", J;
|
|
9000
|
-
}),
|
|
8996
|
+
}), me = A(() => ({
|
|
9001
8997
|
"f-icon": !0,
|
|
9002
8998
|
modal_maximize: !0,
|
|
9003
8999
|
modalrevert: P.value
|
|
@@ -9030,13 +9026,13 @@ const Jt = /* @__PURE__ */ nt({
|
|
|
9030
9026
|
function de(J) {
|
|
9031
9027
|
J.width && (e.value = J.width), J.height && (o.value = J.height), J.buttons && (c.value = J.buttons), J.title && (g.value = J.title);
|
|
9032
9028
|
}
|
|
9033
|
-
let q = null,
|
|
9034
|
-
|
|
9029
|
+
let q = null, oe = null;
|
|
9030
|
+
eo(() => {
|
|
9035
9031
|
x.value = B();
|
|
9036
9032
|
}), It(() => {
|
|
9037
|
-
b.value && !_.value && (_.value = b.value.parentElement, z.value = _.value, Q(E.value, b.value, z.value)), Y.value && document.body.classList.add("modal-open"), q = mc(n, t),
|
|
9033
|
+
b.value && !_.value && (_.value = b.value.parentElement, z.value = _.value, Q(E.value, b.value, z.value)), Y.value && document.body.classList.add("modal-open"), q = mc(n, t), oe = hc(n, t);
|
|
9038
9034
|
}), en(() => {
|
|
9039
|
-
j && j(), q && q.remove(),
|
|
9035
|
+
j && j(), q && q.remove(), oe && oe.remove();
|
|
9040
9036
|
}), t.expose({
|
|
9041
9037
|
modalElementRef: b,
|
|
9042
9038
|
updateModalOptions: de,
|
|
@@ -9054,7 +9050,7 @@ const Jt = /* @__PURE__ */ nt({
|
|
|
9054
9050
|
class: "f-btn-icon f-bare",
|
|
9055
9051
|
style: "pointer-events: auto;"
|
|
9056
9052
|
}, [M("span", {
|
|
9057
|
-
class:
|
|
9053
|
+
class: me.value
|
|
9058
9054
|
}, null)]), d.value && M("li", {
|
|
9059
9055
|
class: "f-btn-icon f-bare",
|
|
9060
9056
|
onClick: (J) => k(J, !1),
|
|
@@ -9127,10 +9123,10 @@ const Jt = /* @__PURE__ */ nt({
|
|
|
9127
9123
|
src: f.value
|
|
9128
9124
|
}, null)]), lt()]), !s.value && b.value && !P.value && N(b.value)]);
|
|
9129
9125
|
}
|
|
9130
|
-
return () => M(
|
|
9126
|
+
return () => M(ni, {
|
|
9131
9127
|
to: "body"
|
|
9132
9128
|
}, {
|
|
9133
|
-
default: () => [Y.value && M(
|
|
9129
|
+
default: () => [Y.value && M(Jn, {
|
|
9134
9130
|
name: "fade",
|
|
9135
9131
|
appear: !0
|
|
9136
9132
|
}, {
|
|
@@ -9144,7 +9140,7 @@ const Jt = /* @__PURE__ */ nt({
|
|
|
9144
9140
|
});
|
|
9145
9141
|
}
|
|
9146
9142
|
});
|
|
9147
|
-
function
|
|
9143
|
+
function Gr(n) {
|
|
9148
9144
|
if (n.content && n.content.render)
|
|
9149
9145
|
return n.content.render;
|
|
9150
9146
|
if (n.render && typeof n.render == "function")
|
|
@@ -9153,7 +9149,7 @@ function Yr(n) {
|
|
|
9153
9149
|
function vc(n) {
|
|
9154
9150
|
const t = document.createElement("div");
|
|
9155
9151
|
t.style.display = "contents";
|
|
9156
|
-
const e =
|
|
9152
|
+
const e = Kn({
|
|
9157
9153
|
setup(o, r) {
|
|
9158
9154
|
en(() => {
|
|
9159
9155
|
document.body.removeChild(t);
|
|
@@ -9163,7 +9159,7 @@ function vc(n) {
|
|
|
9163
9159
|
}), f = n.closedCallback || ((v) => {
|
|
9164
9160
|
}), F = n.resizeHandle || ((v) => {
|
|
9165
9161
|
}), y = n.stopMoveHandle || ((v) => {
|
|
9166
|
-
}), g =
|
|
9162
|
+
}), g = Gr(n), _ = (v) => {
|
|
9167
9163
|
d.value = !1, e.unmount(), f(v);
|
|
9168
9164
|
};
|
|
9169
9165
|
return It(() => {
|
|
@@ -9195,7 +9191,7 @@ function vc(n) {
|
|
|
9195
9191
|
});
|
|
9196
9192
|
return document.body.appendChild(t), e.mount(t), e;
|
|
9197
9193
|
}
|
|
9198
|
-
class
|
|
9194
|
+
class Yr {
|
|
9199
9195
|
constructor(t) {
|
|
9200
9196
|
R(this, "appContext", null);
|
|
9201
9197
|
R(this, "modalRef", T());
|
|
@@ -9236,7 +9232,7 @@ class Ur {
|
|
|
9236
9232
|
open(t) {
|
|
9237
9233
|
const e = document.createDocumentFragment();
|
|
9238
9234
|
t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
|
|
9239
|
-
const o =
|
|
9235
|
+
const o = oi(Object.assign({
|
|
9240
9236
|
title: "",
|
|
9241
9237
|
showButtons: !0,
|
|
9242
9238
|
showHeader: !0
|
|
@@ -9247,7 +9243,7 @@ class Ur {
|
|
|
9247
9243
|
}), u = t.stopMoveHandle || ((k) => {
|
|
9248
9244
|
});
|
|
9249
9245
|
let d;
|
|
9250
|
-
const m =
|
|
9246
|
+
const m = Gr(o.value), p = (k) => {
|
|
9251
9247
|
var c;
|
|
9252
9248
|
r.value = !1;
|
|
9253
9249
|
const C = (c = k == null ? void 0 : k.target) == null ? void 0 : c.classList.contains("modal_close");
|
|
@@ -9283,7 +9279,7 @@ class Ur {
|
|
|
9283
9279
|
default: () => [m && m(this.app)]
|
|
9284
9280
|
});
|
|
9285
9281
|
return d = ((k) => {
|
|
9286
|
-
const C =
|
|
9282
|
+
const C = ri(_, k);
|
|
9287
9283
|
return C.appContext = this.appContext, gn(C, e), C;
|
|
9288
9284
|
})({
|
|
9289
9285
|
...o.value
|
|
@@ -9293,7 +9289,7 @@ class Ur {
|
|
|
9293
9289
|
o.value = {
|
|
9294
9290
|
...o.value,
|
|
9295
9291
|
...k
|
|
9296
|
-
}, d && gn(
|
|
9292
|
+
}, d && gn(ii(d, {
|
|
9297
9293
|
...o
|
|
9298
9294
|
}), e);
|
|
9299
9295
|
},
|
|
@@ -9303,11 +9299,11 @@ class Ur {
|
|
|
9303
9299
|
};
|
|
9304
9300
|
}
|
|
9305
9301
|
}
|
|
9306
|
-
const
|
|
9302
|
+
const Ur = Symbol("FModalService");
|
|
9307
9303
|
Jt.install = (n) => {
|
|
9308
9304
|
n.component(Jt.name, Jt);
|
|
9309
|
-
const t = new
|
|
9310
|
-
n.provide(
|
|
9305
|
+
const t = new Yr(n);
|
|
9306
|
+
n.provide(Ur, t), n.provide("FModalService", t);
|
|
9311
9307
|
};
|
|
9312
9308
|
class Ot {
|
|
9313
9309
|
static show(t) {
|
|
@@ -9316,7 +9312,7 @@ class Ot {
|
|
|
9316
9312
|
}), o = !1, r = e.type === "error" || e.type === "prompt", i = e.type === "error" ? "错误提示" : e.type === "prompt" && e.title || "", a = e.acceptCallback || (() => {
|
|
9317
9313
|
}), s = e.rejectCallback || (() => {
|
|
9318
9314
|
});
|
|
9319
|
-
let l = null, u = new
|
|
9315
|
+
let l = null, u = new Yr(l);
|
|
9320
9316
|
const d = () => {
|
|
9321
9317
|
l && (l == null || l.destroy(), u = null);
|
|
9322
9318
|
};
|
|
@@ -9475,7 +9471,7 @@ function bc(n, t, e) {
|
|
|
9475
9471
|
}
|
|
9476
9472
|
return { getCompareOperators: r };
|
|
9477
9473
|
}
|
|
9478
|
-
function
|
|
9474
|
+
function Xr() {
|
|
9479
9475
|
const n = T({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map();
|
|
9480
9476
|
let o = 0;
|
|
9481
9477
|
function r() {
|
|
@@ -9690,15 +9686,15 @@ function wc(n, t, e) {
|
|
|
9690
9686
|
}
|
|
9691
9687
|
const wn = /* @__PURE__ */ nt({
|
|
9692
9688
|
name: "FConditionList",
|
|
9693
|
-
props:
|
|
9689
|
+
props: fr,
|
|
9694
9690
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
9695
9691
|
setup(n, t) {
|
|
9696
|
-
const e = T(n.key), o = T(n.conditions), r =
|
|
9692
|
+
const e = T(n.key), o = T(n.conditions), r = jr(n), {
|
|
9697
9693
|
convertToSingleControl: i,
|
|
9698
9694
|
fields: a,
|
|
9699
9695
|
fieldMap: s,
|
|
9700
9696
|
loadFieldConfigs: l
|
|
9701
|
-
} = r, u =
|
|
9697
|
+
} = r, u = Xr(), {
|
|
9702
9698
|
addCondition: d,
|
|
9703
9699
|
changeGroupRelation: m,
|
|
9704
9700
|
getConditions: p,
|
|
@@ -9711,7 +9707,7 @@ const wn = /* @__PURE__ */ nt({
|
|
|
9711
9707
|
unGroup: v
|
|
9712
9708
|
} = u, {
|
|
9713
9709
|
createConditionValue: x
|
|
9714
|
-
} =
|
|
9710
|
+
} = Wr(), k = wc(n, t, u), {
|
|
9715
9711
|
selectedItems: C,
|
|
9716
9712
|
toggleSelect: c
|
|
9717
9713
|
} = k, {
|
|
@@ -9855,7 +9851,7 @@ const wn = /* @__PURE__ */ nt({
|
|
|
9855
9851
|
}
|
|
9856
9852
|
});
|
|
9857
9853
|
wn.install = (n) => {
|
|
9858
|
-
n.component(
|
|
9854
|
+
n.component(Gn.name, Gn).component(wn.name, wn);
|
|
9859
9855
|
};
|
|
9860
9856
|
const Cc = [
|
|
9861
9857
|
"equal",
|
|
@@ -9989,37 +9985,37 @@ const Cc = [
|
|
|
9989
9985
|
["text", xc]
|
|
9990
9986
|
]);
|
|
9991
9987
|
function Ec() {
|
|
9992
|
-
const n = T([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: e } =
|
|
9988
|
+
const n = T([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: e } = Xr();
|
|
9993
9989
|
function o(y, g) {
|
|
9994
9990
|
switch (y) {
|
|
9995
9991
|
case "check-box":
|
|
9996
|
-
return new
|
|
9992
|
+
return new pr({ value: g });
|
|
9997
9993
|
case "combo-list":
|
|
9998
|
-
return new
|
|
9994
|
+
return new Ir({ value: g });
|
|
9999
9995
|
case "combo-lookup":
|
|
10000
|
-
return new
|
|
9996
|
+
return new mr({ value: g });
|
|
10001
9997
|
case "input-group":
|
|
10002
9998
|
return new mn({ value: g });
|
|
10003
9999
|
case "date-picker":
|
|
10004
|
-
return new
|
|
10000
|
+
return new Or({ value: g });
|
|
10005
10001
|
case "date-range":
|
|
10006
10002
|
return new pn({ value: g });
|
|
10007
10003
|
case "datetime-picker":
|
|
10008
|
-
return new
|
|
10004
|
+
return new Dr({ value: g });
|
|
10009
10005
|
case "datetime-range":
|
|
10010
10006
|
return new pn({ value: g });
|
|
10011
10007
|
case "lookup":
|
|
10012
|
-
return new
|
|
10008
|
+
return new Pr({ value: g });
|
|
10013
10009
|
case "month-picker":
|
|
10014
|
-
return new
|
|
10010
|
+
return new Nr({ value: g });
|
|
10015
10011
|
case "month-range":
|
|
10016
|
-
return new
|
|
10012
|
+
return new Br({ value: g });
|
|
10017
10013
|
case "number-range":
|
|
10018
|
-
return new
|
|
10014
|
+
return new Vr({ value: g });
|
|
10019
10015
|
case "number-spinner":
|
|
10020
|
-
return new
|
|
10016
|
+
return new Rr({ value: g });
|
|
10021
10017
|
case "radio-group":
|
|
10022
|
-
return new
|
|
10018
|
+
return new Lr({ value: g });
|
|
10023
10019
|
default:
|
|
10024
10020
|
return new mn({ value: g });
|
|
10025
10021
|
}
|
|
@@ -10112,69 +10108,69 @@ function Oc(n, t, e, o, r, i, a, s, l) {
|
|
|
10112
10108
|
const re = d.value;
|
|
10113
10109
|
if (re.length <= 0)
|
|
10114
10110
|
return 0;
|
|
10115
|
-
const
|
|
10116
|
-
return
|
|
10111
|
+
const fe = p.value < re.length ? re[p.value] : re[re.length - 1];
|
|
10112
|
+
return fe.__fv_data_position__ > re.length * g ? re.length * g : (fe.__fv_data_position__ || 0) + (fe.__fv_data_height__ || 0) + Math.max(re.length - 1 - p.value, 0) * g;
|
|
10117
10113
|
}
|
|
10118
10114
|
const O = A(() => {
|
|
10119
10115
|
const re = N();
|
|
10120
10116
|
d.value;
|
|
10121
|
-
let
|
|
10117
|
+
let fe = c.value / Math.max(re, c.value), we = Math.floor(fe * c.value);
|
|
10122
10118
|
for (; c.value > 0 && we < E; )
|
|
10123
|
-
|
|
10119
|
+
fe *= b, we = Math.floor(fe * c.value);
|
|
10124
10120
|
return we;
|
|
10125
10121
|
}), I = A(() => Math.floor(w.value / Math.max(f.value, w.value) * C.value)), z = 0, $ = 0, V = A(() => C.value - (F.value + f.value + y.value + s.value));
|
|
10126
10122
|
function j(re) {
|
|
10127
10123
|
const we = Math.floor(re / g) + 1, Re = d.value;
|
|
10128
10124
|
return Re.length > we ? Re[we].__fv_visible_index__ - 1 : 0;
|
|
10129
10125
|
}
|
|
10130
|
-
function Q(re,
|
|
10131
|
-
let Re = re, Ue =
|
|
10132
|
-
const ot =
|
|
10126
|
+
function Q(re, fe, we) {
|
|
10127
|
+
let Re = re, Ue = fe;
|
|
10128
|
+
const ot = fe - re + 1;
|
|
10133
10129
|
if (ot < a + i.value + a) {
|
|
10134
|
-
const X = a + i.value + a - ot,
|
|
10135
|
-
if (
|
|
10130
|
+
const X = a + i.value + a - ot, pe = fe + X <= we, Se = 0 + X <= re;
|
|
10131
|
+
if (pe)
|
|
10136
10132
|
Ue += X, k = Ue;
|
|
10137
10133
|
else if (Se)
|
|
10138
10134
|
Re -= X, x = Re;
|
|
10139
10135
|
else {
|
|
10140
|
-
const Ie = we -
|
|
10141
|
-
Ue = Math.min(
|
|
10136
|
+
const Ie = we - fe, W = X - Ie;
|
|
10137
|
+
Ue = Math.min(fe + Ie, we), Re = Math.max(re - W, 0);
|
|
10142
10138
|
}
|
|
10143
10139
|
}
|
|
10144
10140
|
return { actualStart: Re, actualEnd: Ue };
|
|
10145
10141
|
}
|
|
10146
10142
|
function B(re) {
|
|
10147
10143
|
var Ie, W;
|
|
10148
|
-
const
|
|
10149
|
-
if (!
|
|
10144
|
+
const fe = d.value;
|
|
10145
|
+
if (!fe.length) {
|
|
10150
10146
|
e.value = [];
|
|
10151
10147
|
return;
|
|
10152
10148
|
}
|
|
10153
|
-
const we = (Ie = n.pagination) != null && Ie.enable ? 0 : Math.max(x - a, 0), Re =
|
|
10149
|
+
const we = (Ie = n.pagination) != null && Ie.enable ? 0 : Math.max(x - a, 0), Re = fe[fe.length - 1].__fv_visible_index__, Ue = (W = n.pagination) != null && W.enable ? fe.length - 1 : Math.min(k + a, Re), { actualStart: ot, actualEnd: X } = Q(we, Ue, Re), pe = fe[ot - 1], Se = m(ot, X, pe, re);
|
|
10154
10150
|
Se.length && (e.value = [...Se]);
|
|
10155
10151
|
}
|
|
10156
10152
|
const D = A(() => N() > c.value), Y = A(() => Math.floor(f.value) > w.value);
|
|
10157
|
-
function H(re,
|
|
10153
|
+
function H(re, fe) {
|
|
10158
10154
|
let we = re;
|
|
10159
10155
|
const Re = we > z, Ue = D.value;
|
|
10160
|
-
Ue && we < c.value -
|
|
10156
|
+
Ue && we < c.value - fe && (we = c.value - fe), (!Ue || Re) && (we = z), _.value !== we && (_.value = we);
|
|
10161
10157
|
}
|
|
10162
10158
|
function L() {
|
|
10163
10159
|
S.value && (x = j(Math.abs(_.value)), k = x + i.value - 1, (x < h.value || k > p.value - a / 2) && B());
|
|
10164
10160
|
}
|
|
10165
10161
|
function G(re) {
|
|
10166
|
-
let
|
|
10167
|
-
|
|
10162
|
+
let fe = _.value + re;
|
|
10163
|
+
fe > z && (fe = z);
|
|
10168
10164
|
const we = N();
|
|
10169
|
-
H(
|
|
10165
|
+
H(fe, we), L();
|
|
10170
10166
|
}
|
|
10171
10167
|
function K(re) {
|
|
10172
10168
|
if (!Y.value) {
|
|
10173
10169
|
v.value = 0;
|
|
10174
10170
|
return;
|
|
10175
10171
|
}
|
|
10176
|
-
let
|
|
10177
|
-
|
|
10172
|
+
let fe = v.value + re;
|
|
10173
|
+
fe > $ && (fe = $), fe < V.value && (fe = V.value), v.value !== fe && (v.value = fe);
|
|
10178
10174
|
}
|
|
10179
10175
|
function ae() {
|
|
10180
10176
|
Math.abs(v.value) + w.value > f.value && (v.value = Math.min(w.value - f.value, 0));
|
|
@@ -10182,25 +10178,25 @@ function Oc(n, t, e, o, r, i, a, s, l) {
|
|
|
10182
10178
|
function Z() {
|
|
10183
10179
|
_.value = 0, x = 0, k = i.value - 1, B();
|
|
10184
10180
|
}
|
|
10185
|
-
function
|
|
10181
|
+
function me() {
|
|
10186
10182
|
const re = N();
|
|
10187
10183
|
H(_.value, re);
|
|
10188
10184
|
}
|
|
10189
10185
|
Me([w, f], () => {
|
|
10190
10186
|
K(0);
|
|
10191
|
-
}), Me(c, (re,
|
|
10192
|
-
re !==
|
|
10187
|
+
}), Me(c, (re, fe) => {
|
|
10188
|
+
re !== fe && re >= u.value.length * g && G(0);
|
|
10193
10189
|
});
|
|
10194
10190
|
function be(re) {
|
|
10195
|
-
let { deltaX:
|
|
10196
|
-
return typeof
|
|
10191
|
+
let { deltaX: fe } = re, we = -1 * re.deltaY;
|
|
10192
|
+
return typeof fe > "u" && (fe = -1 * re.wheelDeltaX / 6), typeof we > "u" && (we = re.wheelDeltaY / 6), re.deltaMode && re.deltaMode === 1 && (fe *= 10, we *= 10), re.shiftKey ? { deltaY: -we, deltaX: -fe } : { deltaX: fe, deltaY: we };
|
|
10197
10193
|
}
|
|
10198
10194
|
function ke(re) {
|
|
10199
10195
|
if (n.disabled || !D.value || re.target.tagName === "TEXTAREA")
|
|
10200
10196
|
return;
|
|
10201
10197
|
re.preventDefault(), re.stopPropagation();
|
|
10202
|
-
const { deltaX:
|
|
10203
|
-
G(we), K(
|
|
10198
|
+
const { deltaX: fe, deltaY: we } = be(re);
|
|
10199
|
+
G(we), K(fe);
|
|
10204
10200
|
}
|
|
10205
10201
|
const Ve = A(() => ({
|
|
10206
10202
|
height: `${u.value.length * g}px`,
|
|
@@ -10218,7 +10214,7 @@ function Oc(n, t, e, o, r, i, a, s, l) {
|
|
|
10218
10214
|
height: `${u.value.length * g}px`,
|
|
10219
10215
|
width: `${y.value}px`,
|
|
10220
10216
|
transform: `translateY(${_.value}px)`
|
|
10221
|
-
})),
|
|
10217
|
+
})), oe = A(() => ({
|
|
10222
10218
|
transform: `translateY(${_.value}px)`
|
|
10223
10219
|
})), xe = A(() => ({
|
|
10224
10220
|
height: `${u.value.length * g}px`,
|
|
@@ -10244,18 +10240,18 @@ function Oc(n, t, e, o, r, i, a, s, l) {
|
|
|
10244
10240
|
})), Ne = T(!1), Ye = T(-1), We = T(-1), dt = T();
|
|
10245
10241
|
function xt(re) {
|
|
10246
10242
|
if (Ne.value && We.value !== -1) {
|
|
10247
|
-
const
|
|
10248
|
-
if (Math.abs(
|
|
10249
|
-
const Re =
|
|
10243
|
+
const fe = We.value - re.pageX, we = C.value - I.value;
|
|
10244
|
+
if (Math.abs(fe) <= we) {
|
|
10245
|
+
const Re = fe / (w.value - I.value) * (f.value - w.value);
|
|
10250
10246
|
K(Re), We.value = re.pageX;
|
|
10251
10247
|
}
|
|
10252
10248
|
}
|
|
10253
10249
|
}
|
|
10254
10250
|
function Tt(re) {
|
|
10255
10251
|
if (Ne.value && Ye.value !== -1) {
|
|
10256
|
-
const
|
|
10257
|
-
if (Math.abs(
|
|
10258
|
-
const Ue =
|
|
10252
|
+
const fe = Ye.value - re.pageY, we = N(), Re = we - O.value;
|
|
10253
|
+
if (Math.abs(fe) <= Re) {
|
|
10254
|
+
const Ue = fe / (c.value - O.value) * (we - c.value);
|
|
10259
10255
|
G(Ue), Ye.value = re.pageY;
|
|
10260
10256
|
}
|
|
10261
10257
|
}
|
|
@@ -10263,16 +10259,16 @@ function Oc(n, t, e, o, r, i, a, s, l) {
|
|
|
10263
10259
|
function vt(re) {
|
|
10264
10260
|
Ne.value = !1, Ye.value = -1, We.value = -1, document.removeEventListener("mouseup", vt), P && (document.removeEventListener("mousemove", P), P = null), document.body.style.userSelect = "", dt.value && (dt.value.style.opacity = null);
|
|
10265
10261
|
}
|
|
10266
|
-
function Pt(re,
|
|
10262
|
+
function Pt(re, fe, we) {
|
|
10267
10263
|
var ot;
|
|
10268
10264
|
Ne.value = !0;
|
|
10269
10265
|
const Re = (ot = re.target) == null ? void 0 : ot.parentElement;
|
|
10270
|
-
Re && (Re.style.opacity = "1", dt.value = Re), P || (P =
|
|
10266
|
+
Re && (Re.style.opacity = "1", dt.value = Re), P || (P = li(we === "horizontal" ? xt : Tt, 50)), we === "vertical" && (Ye.value = re.pageY), we === "horizontal" && (We.value = re.pageX), fe.value && (fe.value, document.addEventListener("mousemove", P), document.addEventListener("mouseup", vt), document.body.style.userSelect = "none");
|
|
10271
10267
|
}
|
|
10272
10268
|
function kt(re) {
|
|
10273
|
-
const
|
|
10269
|
+
const fe = u.value.length * g - c.value;
|
|
10274
10270
|
let we = re * g;
|
|
10275
|
-
we >=
|
|
10271
|
+
we >= fe && (we = fe), G(-we - _.value);
|
|
10276
10272
|
}
|
|
10277
10273
|
function _t() {
|
|
10278
10274
|
kt(u.value.length);
|
|
@@ -10299,10 +10295,10 @@ function Oc(n, t, e, o, r, i, a, s, l) {
|
|
|
10299
10295
|
resetScroll: Z,
|
|
10300
10296
|
rightFixedGridDataStyle: q,
|
|
10301
10297
|
rightFixedGridHeaderColumnsStyle: lt,
|
|
10302
|
-
rightFixedGridMergedDataStyle:
|
|
10298
|
+
rightFixedGridMergedDataStyle: oe,
|
|
10303
10299
|
shouldShowHorizontalScrollbar: Y,
|
|
10304
10300
|
shouldShowVirticalScrollbar: D,
|
|
10305
|
-
updateVirticalScroll:
|
|
10301
|
+
updateVirticalScroll: me,
|
|
10306
10302
|
updateVisibleRowsOnLatestVisibleScope: L,
|
|
10307
10303
|
verticalScrollThumbStyle: ht,
|
|
10308
10304
|
viewPortWidth: w,
|
|
@@ -10314,7 +10310,7 @@ function Oc(n, t, e, o, r, i, a, s, l) {
|
|
|
10314
10310
|
}
|
|
10315
10311
|
function Dc(n) {
|
|
10316
10312
|
var i;
|
|
10317
|
-
const { isUndefined: t } =
|
|
10313
|
+
const { isUndefined: t } = Ai(), e = ((i = n.rowOption) == null ? void 0 : i.height) || 28;
|
|
10318
10314
|
function o(a, s) {
|
|
10319
10315
|
const l = a.pre;
|
|
10320
10316
|
if (l) {
|
|
@@ -10369,7 +10365,7 @@ function Pc() {
|
|
|
10369
10365
|
function Nc() {
|
|
10370
10366
|
const {
|
|
10371
10367
|
formatTo: n
|
|
10372
|
-
} =
|
|
10368
|
+
} = qi();
|
|
10373
10369
|
function t(o, r) {
|
|
10374
10370
|
if (o) {
|
|
10375
10371
|
let i = "yyyy-MM-dd";
|
|
@@ -10394,7 +10390,7 @@ function Nc() {
|
|
|
10394
10390
|
function Bc() {
|
|
10395
10391
|
const {
|
|
10396
10392
|
formatTo: n
|
|
10397
|
-
} =
|
|
10393
|
+
} = zi();
|
|
10398
10394
|
function t(e, o) {
|
|
10399
10395
|
const r = {
|
|
10400
10396
|
precision: o.precision,
|
|
@@ -10879,15 +10875,15 @@ function Ac(n, t, e, o, r) {
|
|
|
10879
10875
|
return s(f.value);
|
|
10880
10876
|
}
|
|
10881
10877
|
function v() {
|
|
10882
|
-
const U = o.value.reduce((q,
|
|
10878
|
+
const U = o.value.reduce((q, oe) => (q.set(oe.raw[i.value], oe), q), /* @__PURE__ */ new Map());
|
|
10883
10879
|
return f.value.map((q) => U.get(q)).filter((q) => !!q);
|
|
10884
10880
|
}
|
|
10885
10881
|
function x(U) {
|
|
10886
10882
|
var q;
|
|
10887
10883
|
const de = U.raw.__fv_children_index__;
|
|
10888
10884
|
if (de && de.length) {
|
|
10889
|
-
const
|
|
10890
|
-
(q = f.value) != null && q.length &&
|
|
10885
|
+
const oe = de.map((xe) => a.value[xe]);
|
|
10886
|
+
(q = f.value) != null && q.length && oe.some((Oe) => !f.value.includes(Oe[i.value])) && (U.indeterminate = !0, U.raw.__fv_indeterminate__ = !0);
|
|
10891
10887
|
}
|
|
10892
10888
|
}
|
|
10893
10889
|
const k = A(() => u.value && d.value), C = A(
|
|
@@ -10911,8 +10907,8 @@ function Ac(n, t, e, o, r) {
|
|
|
10911
10907
|
}), v().forEach((q) => {
|
|
10912
10908
|
q.checked = !0, q.raw.__fv_checked__ = !0;
|
|
10913
10909
|
}), U.forEach((q) => {
|
|
10914
|
-
const
|
|
10915
|
-
x(
|
|
10910
|
+
const oe = o.value.find((xe) => xe.raw[i.value] === q);
|
|
10911
|
+
x(oe);
|
|
10916
10912
|
});
|
|
10917
10913
|
}
|
|
10918
10914
|
Me(() => o.value, () => {
|
|
@@ -10983,14 +10979,14 @@ function Ac(n, t, e, o, r) {
|
|
|
10983
10979
|
const de = o.value.find((q) => q.raw[i.value] === U);
|
|
10984
10980
|
de && ae(de);
|
|
10985
10981
|
}
|
|
10986
|
-
function
|
|
10987
|
-
const de = o.value.filter((xe) => U.includes(xe.raw[i.value])), q = de.map((xe) => xe.raw[i.value]),
|
|
10982
|
+
function me(U) {
|
|
10983
|
+
const de = o.value.filter((xe) => U.includes(xe.raw[i.value])), q = de.map((xe) => xe.raw[i.value]), oe = a.value.filter((xe) => {
|
|
10988
10984
|
const Oe = xe[i.value];
|
|
10989
10985
|
return !q.includes(Oe) && U.includes(Oe);
|
|
10990
10986
|
});
|
|
10991
|
-
(de.length ||
|
|
10987
|
+
(de.length || oe.length) && ($(), C.value && (l.value = U[0])), de.forEach((xe) => {
|
|
10992
10988
|
D(xe);
|
|
10993
|
-
}),
|
|
10989
|
+
}), oe.forEach((xe) => {
|
|
10994
10990
|
V(xe);
|
|
10995
10991
|
}), b();
|
|
10996
10992
|
}
|
|
@@ -10998,12 +10994,12 @@ function Ac(n, t, e, o, r) {
|
|
|
10998
10994
|
for (const de of U) {
|
|
10999
10995
|
if (!f.value.includes(de))
|
|
11000
10996
|
continue;
|
|
11001
|
-
const q = o.value.find((
|
|
10997
|
+
const q = o.value.find((oe) => oe.raw[i.value] === de);
|
|
11002
10998
|
if (q)
|
|
11003
10999
|
Y(q);
|
|
11004
11000
|
else {
|
|
11005
|
-
const
|
|
11006
|
-
|
|
11001
|
+
const oe = a.value.find((xe) => xe[i.value] === de);
|
|
11002
|
+
oe && j(oe);
|
|
11007
11003
|
}
|
|
11008
11004
|
}
|
|
11009
11005
|
f.value = f.value.filter(
|
|
@@ -11044,7 +11040,7 @@ function Ac(n, t, e, o, r) {
|
|
|
11044
11040
|
selectDataItem: V,
|
|
11045
11041
|
selectItem: ae,
|
|
11046
11042
|
selectItemById: Z,
|
|
11047
|
-
selectItemByIds:
|
|
11043
|
+
selectItemByIds: me,
|
|
11048
11044
|
showCheckBox: p,
|
|
11049
11045
|
showSelectAll: h,
|
|
11050
11046
|
toggleSelectItem: K,
|
|
@@ -11203,41 +11199,41 @@ const Gt = /* @__PURE__ */ nt({
|
|
|
11203
11199
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode"],
|
|
11204
11200
|
setup(n, t) {
|
|
11205
11201
|
var Ke, ft;
|
|
11206
|
-
const o = ((Ke = n.rowOption) == null ? void 0 : Ke.height) || 28, r = T(20), i = T(n.columns), a =
|
|
11202
|
+
const o = ((Ke = n.rowOption) == null ? void 0 : Ke.height) || 28, r = T(20), i = T(n.columns), a = ui(n), {
|
|
11207
11203
|
idField: s
|
|
11208
|
-
} = a, l = T(), u = T(), d = T(), m = T(), p = T(), h = T([]), f = T(!1), F = T(((ft = n.rowOption) == null ? void 0 : ft.wrapContent) || !1), y =
|
|
11204
|
+
} = a, l = T(), u = T(), d = T(), m = T(), p = T(), h = T([]), f = T(!1), F = T(((ft = n.rowOption) == null ? void 0 : ft.wrapContent) || !1), y = ci(n, a), g = di(), _ = fi(n), {
|
|
11209
11205
|
collapseField: v
|
|
11210
11206
|
} = _, {
|
|
11211
11207
|
showLoading: x,
|
|
11212
11208
|
renderLoading: k
|
|
11213
|
-
} =
|
|
11209
|
+
} = pi(n, l), C = mi(n, /* @__PURE__ */ new Map(), g, _, a), {
|
|
11214
11210
|
dataView: c
|
|
11215
|
-
} = C, w =
|
|
11211
|
+
} = C, w = hi(n, C, a, h, t), S = vi(n, h, C, a, w, t), E = A(() => n.disabled), b = A(() => n.virtualized ? Math.min(C.dataView.value.length, r.value) : C.dataView.value.length), {
|
|
11216
11212
|
containerStyleObject: P
|
|
11217
|
-
} =
|
|
11213
|
+
} = gi(n), N = yi(n), {
|
|
11218
11214
|
applyCommands: O
|
|
11219
11215
|
} = N;
|
|
11220
11216
|
O(i);
|
|
11221
|
-
const I =
|
|
11217
|
+
const I = bi(n), z = wi(n), {
|
|
11222
11218
|
applyColumnSorter: $,
|
|
11223
11219
|
columnContext: V,
|
|
11224
11220
|
updateColumnRenderContext: j
|
|
11225
11221
|
} = I;
|
|
11226
11222
|
$(C, z);
|
|
11227
|
-
const Q =
|
|
11223
|
+
const Q = Ci(n, V), B = xi(n, t, w, a), D = _i(n, t, a, B, h), Y = Si(n), H = Ti(n, D, Y), L = ki(n, C, D, _, a, Y, H), G = Fi(n, i, C, b, 0, L), {
|
|
11228
11224
|
getVisualData: K
|
|
11229
|
-
} = G, ae =
|
|
11230
|
-
sidebarWidth:
|
|
11231
|
-
} = Z, be =
|
|
11225
|
+
} = G, ae = Ei(n, V), Z = Mi(n, w), {
|
|
11226
|
+
sidebarWidth: me
|
|
11227
|
+
} = Z, be = Oi(n, C, h, V, G, b, 0, me), {
|
|
11232
11228
|
onWheel: ke,
|
|
11233
11229
|
dataGridWidth: Ve,
|
|
11234
11230
|
viewPortHeight: je,
|
|
11235
11231
|
viewPortWidth: U,
|
|
11236
11232
|
resetScroll: de,
|
|
11237
11233
|
updateVisibleRowsOnLatestVisibleScope: q
|
|
11238
|
-
} = be,
|
|
11234
|
+
} = be, oe = Di(n, V, u, U, Q), {
|
|
11239
11235
|
calculateColumnsSize: xe
|
|
11240
|
-
} =
|
|
11236
|
+
} = oe, Oe = Ii(), Be = Pi(u, p, C, Oe, be), lt = Ni(n, t, I, C, Q, y, be), Ct = A(() => ({
|
|
11241
11237
|
"fv-grid": !0,
|
|
11242
11238
|
"fv-grid-bordered": n.showBorder,
|
|
11243
11239
|
"fv-grid-horizontal-bordered": n.showHorizontalLines,
|
|
@@ -11252,15 +11248,15 @@ const Gt = /* @__PURE__ */ nt({
|
|
|
11252
11248
|
renderGridHeader: Fe,
|
|
11253
11249
|
renderGridColumnResizeOverlay: Ne,
|
|
11254
11250
|
shouldShowHeader: Ye
|
|
11255
|
-
} =
|
|
11251
|
+
} = Bi(n, t, u, m, p, I, C, lt, Be, g, Oe, oe, Q, w, Z, z, be, U, h), {
|
|
11256
11252
|
renderDataGridSidebar: We
|
|
11257
|
-
} =
|
|
11253
|
+
} = Vi(n, B, w, Z, be), {
|
|
11258
11254
|
renderDisableMask: dt
|
|
11259
|
-
} =
|
|
11255
|
+
} = Ri(), {
|
|
11260
11256
|
renderHorizontalScrollbar: xt
|
|
11261
|
-
} =
|
|
11257
|
+
} = Li(n, u, be), {
|
|
11262
11258
|
renderVerticalScrollbar: Tt
|
|
11263
|
-
} =
|
|
11259
|
+
} = Wi(n, u, be);
|
|
11264
11260
|
function vt() {
|
|
11265
11261
|
var ge, Te, rt;
|
|
11266
11262
|
if (u.value && u.value.clientHeight > 0 && ((ge = u.value) == null ? void 0 : ge.clientWidth) > 0) {
|
|
@@ -11269,7 +11265,7 @@ const Gt = /* @__PURE__ */ nt({
|
|
|
11269
11265
|
}
|
|
11270
11266
|
}
|
|
11271
11267
|
It(() => {
|
|
11272
|
-
u.value && (r.value = Math.max(Math.ceil(u.value.clientHeight / o), r.value), h.value = K(0, b.value + 0 - 1),
|
|
11268
|
+
u.value && (r.value = Math.max(Math.ceil(u.value.clientHeight / o), r.value), h.value = K(0, b.value + 0 - 1), to(u.value, vt), xe(), vn(() => {
|
|
11273
11269
|
u.value && (Ve.value = u.value.clientWidth), d.value && (U.value = d.value.clientWidth, je.value = d.value.clientHeight);
|
|
11274
11270
|
})), x.value && k();
|
|
11275
11271
|
}), en(() => {
|
|
@@ -11298,7 +11294,7 @@ const Gt = /* @__PURE__ */ nt({
|
|
|
11298
11294
|
const ge = _t(), Te = S.getNextSelectableHierarchyItemId(ge);
|
|
11299
11295
|
C.removeHierarchyDataItem(ge), h.value = K(0, b.value + 0 - 1), Te && w.selectItemById(Te);
|
|
11300
11296
|
}
|
|
11301
|
-
function
|
|
11297
|
+
function fe(ge) {
|
|
11302
11298
|
D.onEditingRow(ge);
|
|
11303
11299
|
}
|
|
11304
11300
|
function we(ge) {
|
|
@@ -11316,7 +11312,7 @@ const Gt = /* @__PURE__ */ nt({
|
|
|
11316
11312
|
function X(ge) {
|
|
11317
11313
|
w.selectItemById(ge);
|
|
11318
11314
|
}
|
|
11319
|
-
function
|
|
11315
|
+
function pe(ge) {
|
|
11320
11316
|
const Te = h.value.find((rt) => rt.raw[a.idField.value] === ge);
|
|
11321
11317
|
Te && B.clickRowItem(Te);
|
|
11322
11318
|
}
|
|
@@ -11332,9 +11328,9 @@ const Gt = /* @__PURE__ */ nt({
|
|
|
11332
11328
|
function ee() {
|
|
11333
11329
|
w.clearSelection();
|
|
11334
11330
|
}
|
|
11335
|
-
const
|
|
11336
|
-
renderEmpty:
|
|
11337
|
-
} =
|
|
11331
|
+
const ne = A(() => !h.value || !h.value.length), {
|
|
11332
|
+
renderEmpty: te
|
|
11333
|
+
} = ji(t);
|
|
11338
11334
|
function _e() {
|
|
11339
11335
|
return w.getSelectionRow();
|
|
11340
11336
|
}
|
|
@@ -11389,7 +11385,7 @@ const Gt = /* @__PURE__ */ nt({
|
|
|
11389
11385
|
collapseTo: Pt,
|
|
11390
11386
|
expandTo: kt,
|
|
11391
11387
|
removeDataItem: re,
|
|
11392
|
-
editDataItem:
|
|
11388
|
+
editDataItem: fe,
|
|
11393
11389
|
acceptDataItem: we,
|
|
11394
11390
|
cancelDataItem: Re,
|
|
11395
11391
|
updateColumns: Ue,
|
|
@@ -11399,7 +11395,7 @@ const Gt = /* @__PURE__ */ nt({
|
|
|
11399
11395
|
getSelectedItems: W,
|
|
11400
11396
|
clearSelection: ee,
|
|
11401
11397
|
getSelectionRow: _e,
|
|
11402
|
-
clickRowItemById:
|
|
11398
|
+
clickRowItemById: pe,
|
|
11403
11399
|
unSelectItemByIds: Ce,
|
|
11404
11400
|
getCurrentRowId: Le,
|
|
11405
11401
|
reassignRowData: Ee,
|
|
@@ -11415,7 +11411,7 @@ const Gt = /* @__PURE__ */ nt({
|
|
|
11415
11411
|
class: ht.value,
|
|
11416
11412
|
onMouseover: () => f.value = !0,
|
|
11417
11413
|
onMouseleave: () => f.value = !1
|
|
11418
|
-
}, [u.value && We(h), u.value && J(), u.value &&
|
|
11414
|
+
}, [u.value && We(h), u.value && J(), u.value && ne.value && te(), u.value && xt(), u.value && Tt()]), Ne(), E.value && dt()]);
|
|
11419
11415
|
}
|
|
11420
11416
|
}), Jc = {
|
|
11421
11417
|
id: { type: String, default: "" },
|
|
@@ -11468,7 +11464,7 @@ const Gt = /* @__PURE__ */ nt({
|
|
|
11468
11464
|
}
|
|
11469
11465
|
});
|
|
11470
11466
|
function td(n) {
|
|
11471
|
-
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !
|
|
11467
|
+
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !si(n);
|
|
11472
11468
|
}
|
|
11473
11469
|
const hn = /* @__PURE__ */ nt({
|
|
11474
11470
|
name: "FDesignerItem",
|
|
@@ -11615,7 +11611,7 @@ const hn = /* @__PURE__ */ nt({
|
|
|
11615
11611
|
}
|
|
11616
11612
|
}
|
|
11617
11613
|
Me(() => n.modelValue, ($) => {
|
|
11618
|
-
a.value = $, e.value = `${$.id}-component`,
|
|
11614
|
+
a.value = $, e.value = `${$.id}-component`, ai(m);
|
|
11619
11615
|
}, {
|
|
11620
11616
|
deep: !0
|
|
11621
11617
|
});
|
|
@@ -11642,7 +11638,7 @@ const hn = /* @__PURE__ */ nt({
|
|
|
11642
11638
|
p && $ && p.attachComponents($, a.value), i.value = h.value.canNested !== void 0 ? h.value.canNested : i.value, r.value = h.value.canDelete !== void 0 ? h.value.canDelete : r.value, o.value = h.value.canMove !== void 0 ? h.value.canMove : o.value, l.value = h.value.styles || "", u.value = h.value.designerClass || "", m.value && (m.value.componentInstance = h, m.value.designItemContext = F), h.value.belongedComponentId = s.value;
|
|
11643
11639
|
}
|
|
11644
11640
|
I(), qt.value++;
|
|
11645
|
-
}),
|
|
11641
|
+
}), Zn(() => {
|
|
11646
11642
|
m.value && m.value.removeEventListener("scroll", O);
|
|
11647
11643
|
});
|
|
11648
11644
|
function z($) {
|
|
@@ -11653,7 +11649,7 @@ const hn = /* @__PURE__ */ nt({
|
|
|
11653
11649
|
const Q = document.getElementsByClassName("dgComponentFocused");
|
|
11654
11650
|
Q && Q.length === 1 && Q[0] === m.value || (Array.from(Q).forEach((D) => D.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((D) => D.classList.remove("dgComponentSelected")), j.classList.add("dgComponentFocused"), t.emit("selectionChange", a.value.type, a.value, s.value, h.value), h.value.getDraggableDesignItemElement && (V = h.value.getDraggableDesignItemElement(F), V && V.value && V.value.classList.add("dgComponentSelected")));
|
|
11655
11651
|
}
|
|
11656
|
-
|
|
11652
|
+
or(V == null ? void 0 : V.value);
|
|
11657
11653
|
}
|
|
11658
11654
|
return () => a.value.type === "component-ref" ? P(a.value) : M("div", {
|
|
11659
11655
|
id: `${a.value.id}-design-item`,
|
|
@@ -12243,11 +12239,11 @@ function ld(n, t, e, o, r, i, a, s) {
|
|
|
12243
12239
|
}
|
|
12244
12240
|
const ud = /* @__PURE__ */ nt({
|
|
12245
12241
|
name: "FTreeGridDesign",
|
|
12246
|
-
props:
|
|
12242
|
+
props: dr,
|
|
12247
12243
|
emits: [],
|
|
12248
12244
|
setup(n, t) {
|
|
12249
|
-
var
|
|
12250
|
-
const e = T(), o = 0, r = ((
|
|
12245
|
+
var oe, xe;
|
|
12246
|
+
const e = T(), o = 0, r = ((oe = n.rowOption) == null ? void 0 : oe.height) || 28, i = T(20), a = T(n.columns), s = Hc(n), l = T(), u = T(), d = T([]), m = T(!1), p = T(((xe = n.rowOption) == null ? void 0 : xe.wrapContent) || !1), h = Je("designer-host-service"), f = Je("design-item-context"), F = rd(f, h), y = Ou(e, f, F);
|
|
12251
12247
|
y.value.designerClass = "f-utils-fill-flex-column";
|
|
12252
12248
|
const g = Ec(), _ = Mc(n), v = us(n, /* @__PURE__ */ new Map(), g, _, s), x = Ac(n, v, s, d, t), k = A(() => v.dataView.value.length), {
|
|
12253
12249
|
containerStyleObject: C
|
|
@@ -12271,9 +12267,9 @@ const ud = /* @__PURE__ */ nt({
|
|
|
12271
12267
|
viewPortHeight: K,
|
|
12272
12268
|
viewPortWidth: ae,
|
|
12273
12269
|
updateVisibleRowsOnLatestVisibleScope: Z
|
|
12274
|
-
} = H,
|
|
12270
|
+
} = H, me = id(n, b, l, ae, O), {
|
|
12275
12271
|
calculateColumnsSize: be
|
|
12276
|
-
} =
|
|
12272
|
+
} = me, ke = A(() => ({
|
|
12277
12273
|
"drag-container": !0,
|
|
12278
12274
|
"fv-grid": !0,
|
|
12279
12275
|
"fv-grid-bordered": n.showBorder,
|
|
@@ -12293,7 +12289,7 @@ const ud = /* @__PURE__ */ nt({
|
|
|
12293
12289
|
Oe > i.value && (i.value = Oe, Z()), K.value = ((Be = u.value) == null ? void 0 : Be.clientHeight) || 0, G.value = ((lt = l.value) == null ? void 0 : lt.clientWidth) || 0, be();
|
|
12294
12290
|
}
|
|
12295
12291
|
It(() => {
|
|
12296
|
-
e.value.componentInstance = y, l.value && (i.value = Math.max(Math.ceil(l.value.clientHeight / r), i.value), d.value = B(0, k.value + o - 1),
|
|
12292
|
+
e.value.componentInstance = y, l.value && (i.value = Math.max(Math.ceil(l.value.clientHeight / r), i.value), d.value = B(0, k.value + o - 1), to(l.value, de), be(), vn(() => {
|
|
12297
12293
|
l.value && (G.value = l.value.clientWidth), u.value && (ae.value = u.value.clientWidth, K.value = u.value.clientHeight);
|
|
12298
12294
|
}));
|
|
12299
12295
|
});
|
|
@@ -12328,8 +12324,8 @@ Gt.register = (n, t, e, o) => {
|
|
|
12328
12324
|
Gt.registerDesigner = (n, t, e) => {
|
|
12329
12325
|
n["tree-grid"] = ud, t["tree-grid"] = Ua;
|
|
12330
12326
|
};
|
|
12331
|
-
|
|
12332
|
-
function
|
|
12327
|
+
Gi(Gt);
|
|
12328
|
+
function Qr(n) {
|
|
12333
12329
|
const { designerHostService: t } = n, e = /* @__PURE__ */ new Map(), o = T(), r = T(), i = T([
|
|
12334
12330
|
{ field: "name", title: "字段名称" },
|
|
12335
12331
|
{ field: "bindingField", title: "绑定字段" },
|
|
@@ -12414,7 +12410,7 @@ function Kr(n) {
|
|
|
12414
12410
|
function cd(n) {
|
|
12415
12411
|
const { designerHostService: t } = n, e = /* @__PURE__ */ new Map(), o = T(), r = T(), i = T([{ field: "name", title: "实体名称" }]), a = T(), s = T(!1);
|
|
12416
12412
|
function l(f) {
|
|
12417
|
-
const F =
|
|
12413
|
+
const F = Qr(n);
|
|
12418
12414
|
return F.resolveFieldDataSource(f), F.hasSelectableField.value ? (a.value = a.value || f, !0) : !1;
|
|
12419
12415
|
}
|
|
12420
12416
|
function u(f) {
|
|
@@ -12572,7 +12568,7 @@ const pd = "https://json-schema.org/draft/2020-12/schema", md = "https://farris-
|
|
|
12572
12568
|
description: xd,
|
|
12573
12569
|
type: _d,
|
|
12574
12570
|
categories: Sd
|
|
12575
|
-
},
|
|
12571
|
+
}, Kr = {
|
|
12576
12572
|
/** 步骤条方向 */
|
|
12577
12573
|
direction: { type: String, default: "horizontal" },
|
|
12578
12574
|
/** 是否平铺 */
|
|
@@ -12603,10 +12599,10 @@ const pd = "https://json-schema.org/draft/2020-12/schema", md = "https://farris-
|
|
|
12603
12599
|
onClick: { type: Function, default: () => {
|
|
12604
12600
|
} }
|
|
12605
12601
|
};
|
|
12606
|
-
Yt(
|
|
12602
|
+
Yt(Kr, wd, dd, fd, Td);
|
|
12607
12603
|
const kd = /* @__PURE__ */ nt({
|
|
12608
12604
|
name: "FStep",
|
|
12609
|
-
props:
|
|
12605
|
+
props: Kr,
|
|
12610
12606
|
emits: ["click"],
|
|
12611
12607
|
setup(n, t) {
|
|
12612
12608
|
const e = T(n.direction), o = T(n.fill), r = T(n.height), i = T(n.steps), a = T(n.clickable), s = T(0), l = T(n.activeIndex), u = A(() => ({
|
|
@@ -12721,7 +12717,7 @@ const kd = /* @__PURE__ */ nt({
|
|
|
12721
12717
|
entityTreeRowOption: l,
|
|
12722
12718
|
initialSelectedEntity: u,
|
|
12723
12719
|
isMainEntityInitialSelected: d
|
|
12724
|
-
} = e, m =
|
|
12720
|
+
} = e, m = Qr(n), {
|
|
12725
12721
|
fieldColumns: p,
|
|
12726
12722
|
resolveFieldDataSource: h,
|
|
12727
12723
|
fieldDataSource: f,
|
|
@@ -12764,7 +12760,7 @@ const kd = /* @__PURE__ */ nt({
|
|
|
12764
12760
|
const D = a();
|
|
12765
12761
|
D && (h(D), F.value.updateDataSource(f.value));
|
|
12766
12762
|
}
|
|
12767
|
-
|
|
12763
|
+
eo(() => {
|
|
12768
12764
|
n.steps && (w.value = w.value.filter((D) => n.steps.includes(D.id))), E.value = w.value[0].id, s(), P();
|
|
12769
12765
|
}), It(() => {
|
|
12770
12766
|
var D, Y;
|
|
@@ -12934,7 +12930,7 @@ const kd = /* @__PURE__ */ nt({
|
|
|
12934
12930
|
};
|
|
12935
12931
|
}
|
|
12936
12932
|
});
|
|
12937
|
-
function
|
|
12933
|
+
function Qn(n) {
|
|
12938
12934
|
let t, e;
|
|
12939
12935
|
function o(v, x, k) {
|
|
12940
12936
|
var c;
|
|
@@ -13177,7 +13173,7 @@ function Ed(n) {
|
|
|
13177
13173
|
return !1;
|
|
13178
13174
|
}
|
|
13179
13175
|
if (h.componentInstance && h.componentInstance.value.canAccepts) {
|
|
13180
|
-
const g =
|
|
13176
|
+
const g = Qn(n).getComponentResolveContext(p, f, h);
|
|
13181
13177
|
return h.componentInstance.value.canAccepts(g);
|
|
13182
13178
|
}
|
|
13183
13179
|
return F;
|
|
@@ -13218,7 +13214,7 @@ function Ed(n) {
|
|
|
13218
13214
|
return F;
|
|
13219
13215
|
}
|
|
13220
13216
|
function a(p, h, f, F) {
|
|
13221
|
-
|
|
13217
|
+
Qn(n).resolveComponentCreationContextByDrop(p, f, h).then((g) => {
|
|
13222
13218
|
if (!g)
|
|
13223
13219
|
return;
|
|
13224
13220
|
const _ = g.componentSchema;
|
|
@@ -13251,7 +13247,7 @@ function Ed(n) {
|
|
|
13251
13247
|
qt.value++;
|
|
13252
13248
|
}
|
|
13253
13249
|
function u(p) {
|
|
13254
|
-
t && t.destroy(),
|
|
13250
|
+
t && t.destroy(), jn && (t = jn([], {
|
|
13255
13251
|
// 镜像容器
|
|
13256
13252
|
mirrorContainer: p,
|
|
13257
13253
|
direction: "mixed",
|
|
@@ -13313,7 +13309,7 @@ const dp = /* @__PURE__ */ nt({
|
|
|
13313
13309
|
metadataService: Je("Meatdata_Http_Service_Token"),
|
|
13314
13310
|
schemaService: Je("schemaService"),
|
|
13315
13311
|
useFormCommand: Je("useFormCommand"),
|
|
13316
|
-
modalService: Je(
|
|
13312
|
+
modalService: Je(Ur),
|
|
13317
13313
|
formStateMachineUtils: Je("useFormStateMachine"),
|
|
13318
13314
|
messagerService: Je("FMessageBoxService")
|
|
13319
13315
|
};
|
|
@@ -13358,7 +13354,7 @@ const dp = /* @__PURE__ */ nt({
|
|
|
13358
13354
|
}), en(() => {
|
|
13359
13355
|
u && (u.unobserve(r.value), u.disconnect(), u = null);
|
|
13360
13356
|
}), t.expose({
|
|
13361
|
-
refreshCanvas:
|
|
13357
|
+
refreshCanvas: qr,
|
|
13362
13358
|
designerCanvasElementRef: r
|
|
13363
13359
|
}), () => M("div", {
|
|
13364
13360
|
class: "editorDiv flex-fill h-100",
|
|
@@ -13369,7 +13365,7 @@ const dp = /* @__PURE__ */ nt({
|
|
|
13369
13365
|
ref: r,
|
|
13370
13366
|
class: h.value
|
|
13371
13367
|
}, [e.value && M(hn, {
|
|
13372
|
-
key:
|
|
13368
|
+
key: Ar.value,
|
|
13373
13369
|
modelValue: e.value,
|
|
13374
13370
|
"onUpdate:modelValue": (_) => e.value = _,
|
|
13375
13371
|
onSelectionChange: F,
|