@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,93 +1,93 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var A = (t, n, e) =>
|
|
4
|
-
import { ref as E, defineComponent as Le, createVNode as x, inject as ze, Fragment as Ot, createTextVNode as Ue, computed as W, onMounted as lt, reactive as ft, withDirectives as At, resolveDirective as wn, watch as Fe, vModelText as Fn, mergeProps as $t, createApp as
|
|
5
|
-
import { isPlainObject as $n, cloneDeep as ke, isUndefined as gt, throttle as
|
|
6
|
-
import { useGuid as hn, ControllerSchemaRepositorySymbol as
|
|
1
|
+
var Wr = Object.defineProperty;
|
|
2
|
+
var jr = (t, n, e) => n in t ? Wr(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
|
|
3
|
+
var A = (t, n, e) => jr(t, typeof n != "symbol" ? n + "" : n, e);
|
|
4
|
+
import { ref as E, defineComponent as Le, createVNode as x, inject as ze, Fragment as Ot, createTextVNode as Ue, computed as W, onMounted as lt, reactive as ft, withDirectives as At, resolveDirective as wn, watch as Fe, vModelText as Fn, mergeProps as $t, createApp as eo, onUnmounted as mn, Transition as to, onBeforeUnmount as no, nextTick as Jt, provide as nn, triggerRef as Ar, isVNode as zr, onBeforeMount as qr, Teleport as Gr, shallowRef as Yr, render as pn, h as Ur, cloneVNode as Xr } from "vue";
|
|
5
|
+
import { isPlainObject as $n, cloneDeep as ke, isUndefined as gt, throttle as Qr } from "lodash-es";
|
|
6
|
+
import { useGuid as hn, ControllerSchemaRepositorySymbol as Kr, FormSchemaEntityFieldTypeName as Wn, resolveField as ut, useArrayProcessor as oo, useCommonUtils as ro, useDateFormat as Jr, useNumberFormat as Zr, setFieldValue as Cn, getCustomClass as vn, withInstall as ao } from "../common/index.esm.js";
|
|
7
7
|
import { FNotifyService as kn } from "../notify/index.esm.js";
|
|
8
|
-
import
|
|
9
|
-
import { F_MODAL_SERVICE_TOKEN as
|
|
8
|
+
import ea, { FSchemaSelector as ta } from "../schema-selector/index.esm.js";
|
|
9
|
+
import { F_MODAL_SERVICE_TOKEN as na } from "../modal/index.esm.js";
|
|
10
10
|
import sn from "../combo-list/index.esm.js";
|
|
11
|
-
import
|
|
12
|
-
import { createPropsResolver as
|
|
11
|
+
import io from "../event-parameter/index.esm.js";
|
|
12
|
+
import { createPropsResolver as oa } from "../dynamic-resolver/index.esm.js";
|
|
13
13
|
import "../designer-canvas/index.esm.js";
|
|
14
14
|
import "../property-panel/index.esm.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
15
|
+
import ra from "../accordion/index.esm.js";
|
|
16
|
+
import aa from "../avatar/index.esm.js";
|
|
17
|
+
import ia from "../../designer/button-edit/index.esm.js";
|
|
18
|
+
import sa from "../button-group/index.esm.js";
|
|
19
|
+
import la from "../calendar/index.esm.js";
|
|
20
|
+
import ua from "../capsule/index.esm.js";
|
|
21
21
|
import jn from "../../designer/checkbox/index.esm.js";
|
|
22
22
|
import An from "../../designer/checkbox-group/index.esm.js";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
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
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
23
|
+
import ca from "../combo-tree/index.esm.js";
|
|
24
|
+
import da from "../component/index.esm.js";
|
|
25
|
+
import fa from "../color-picker/index.esm.js";
|
|
26
|
+
import ma from "../content-container/index.esm.js";
|
|
27
|
+
import ha from "../date-picker/index.esm.js";
|
|
28
|
+
import pa from "../../designer/data-grid/index.esm.js";
|
|
29
|
+
import va from "../dropdown/index.esm.js";
|
|
30
|
+
import ga, { FDynamicFormGroup as ya, FDynamicFormInput as ba } from "../dynamic-form/index.esm.js";
|
|
31
|
+
import wa from "../events-editor/index.esm.js";
|
|
32
|
+
import Ca from "../filter-bar/index.esm.js";
|
|
33
|
+
import _a from "../field-selector/index.esm.js";
|
|
34
|
+
import xa from "../binding-selector/index.esm.js";
|
|
35
|
+
import Sa from "../image-cropper/index.esm.js";
|
|
36
|
+
import Ea from "../../designer/input-group/index.esm.js";
|
|
37
|
+
import Ta from "../layout/index.esm.js";
|
|
38
|
+
import Fa from "../list-nav/index.esm.js";
|
|
39
|
+
import ka from "../list-view/index.esm.js";
|
|
40
|
+
import Ma from "../lookup/index.esm.js";
|
|
41
|
+
import Oa from "../mapping-editor/index.esm.js";
|
|
42
|
+
import Ia from "../nav/index.esm.js";
|
|
43
|
+
import Na from "../number-range/index.esm.js";
|
|
44
|
+
import Pa from "../number-spinner/index.esm.js";
|
|
45
|
+
import Da from "../order/index.esm.js";
|
|
46
|
+
import Va from "../page-header/index.esm.js";
|
|
47
|
+
import Ba from "../page-footer/index.esm.js";
|
|
48
|
+
import Ra from "../pagination/index.esm.js";
|
|
49
|
+
import La from "../progress/index.esm.js";
|
|
50
|
+
import Ha from "../query-solution/index.esm.js";
|
|
51
|
+
import $a from "../../designer/radio-group/index.esm.js";
|
|
52
|
+
import Wa from "../rate/index.esm.js";
|
|
53
|
+
import ja from "../response-toolbar/index.esm.js";
|
|
54
|
+
import Aa from "../response-layout/index.esm.js";
|
|
55
|
+
import za from "../response-layout-editor/index.esm.js";
|
|
56
|
+
import qa from "../search-box/index.esm.js";
|
|
57
|
+
import Ga from "../section/index.esm.js";
|
|
58
|
+
import Ya from "../smoke-detector/index.esm.js";
|
|
59
|
+
import Ua from "../splitter/index.esm.js";
|
|
60
|
+
import Xa from "../step/index.esm.js";
|
|
61
|
+
import Qa from "../switch/index.esm.js";
|
|
62
|
+
import Ka from "../tabs/index.esm.js";
|
|
63
|
+
import Ja from "../tags/index.esm.js";
|
|
64
|
+
import Za from "../text/index.esm.js";
|
|
65
|
+
import ei from "../time-picker/index.esm.js";
|
|
66
|
+
import ti from "../transfer/index.esm.js";
|
|
67
|
+
import ni from "../tree-view/index.esm.js";
|
|
68
|
+
import oi from "../uploader/index.esm.js";
|
|
69
|
+
import ri from "../verify-detail/index.esm.js";
|
|
70
|
+
import ai from "../video/index.esm.js";
|
|
71
|
+
import ii from "../textarea/index.esm.js";
|
|
72
|
+
import si from "../tree-grid/index.esm.js";
|
|
73
|
+
import li from "../filter-condition-editor/index.esm.js";
|
|
74
|
+
import ui from "../fieldset/index.esm.js";
|
|
75
|
+
import ci from "../sort-condition-editor/index.esm.js";
|
|
76
|
+
import di from "../menu-lookup/index.esm.js";
|
|
77
|
+
import fi from "../drawer/index.esm.js";
|
|
78
|
+
import mi from "../json-editor/index.esm.js";
|
|
79
|
+
import hi from "../property-editor/index.esm.js";
|
|
80
|
+
import pi from "../expression-editor/index.esm.js";
|
|
81
|
+
import vi from "../code-editor/index.esm.js";
|
|
82
|
+
import gi from "../html-template/index.esm.js";
|
|
83
83
|
import "../external-container/index.esm.js";
|
|
84
84
|
import { useResizeObserver as Mn } from "@vueuse/core";
|
|
85
|
-
import { useIdentify as
|
|
85
|
+
import { useIdentify as so, useGroupData as yi, useFilter as lo, useHierarchy as uo, useLoading as bi, useDataView as co, useSelection as fo, useSelectHierarchyItem as wi, useDataViewContainerStyle as mo, useCommandColumn as Ci, useColumn as ho, useSort as _i, useGroupColumn as po, useRow as vo, useEdit as go, useVisualDataBound as yo, useVisualDataCell as bo, useVisualDataRow as wo, useVisualData as Co, useCellPosition as _o, useSidebar as xo, useVirtualScroll as So, useFitColumn as Eo, useFilterHistory as xi, useColumnFilter as Si, useDragColumn as Ei, getColumnHeader as Ti, getSidebar as To, getDisableMask as Fi, getHorizontalScrollbar as Fo, getVerticalScrollbar as ko, getEmpty as Mo } from "../data-view/index.esm.js";
|
|
86
86
|
import "../condition/index.esm.js";
|
|
87
|
-
import { FCheckbox as
|
|
88
|
-
import
|
|
87
|
+
import { FCheckbox as ki } from "../checkbox/index.esm.js";
|
|
88
|
+
import Mi from "../tooltip/index.esm.js";
|
|
89
89
|
import Oi from "../button/index.esm.js";
|
|
90
|
-
const
|
|
90
|
+
const Oo = {}, Io = {};
|
|
91
91
|
function On(t) {
|
|
92
92
|
const { properties: n, title: e, ignore: o } = t, r = o && Array.isArray(o), a = Object.keys(n).reduce((i, s) => ((!r || !o.find((u) => u === s)) && (i[s] = n[s].type === "object" && n[s].properties ? On(n[s]) : ke(n[s].default)), i), {});
|
|
93
93
|
if (e && (!r || !o.find((i) => i === "id"))) {
|
|
@@ -110,12 +110,12 @@ function Ii(t) {
|
|
|
110
110
|
type: e
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
const o =
|
|
113
|
+
function No(t, n = {}, e) {
|
|
114
|
+
const o = Oo[t];
|
|
115
115
|
if (o) {
|
|
116
116
|
let r = Ii(o);
|
|
117
|
-
const a =
|
|
118
|
-
return r = a ? a({ getSchemaByType:
|
|
117
|
+
const a = Io[t];
|
|
118
|
+
return r = a ? a({ getSchemaByType: No }, r, n, e) : r, r;
|
|
119
119
|
}
|
|
120
120
|
return null;
|
|
121
121
|
}
|
|
@@ -123,7 +123,7 @@ function Ni(t, n) {
|
|
|
123
123
|
const e = On(n);
|
|
124
124
|
return Object.keys(e).reduce((o, r) => (Object.prototype.hasOwnProperty.call(t, r) && (o[r] && $n(o[r]) && $n(t[r] || !t[r]) ? Object.assign(o[r], t[r] || {}) : o[r] = t[r]), o), e), e;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Po(t, n) {
|
|
127
127
|
return Object.keys(t).filter((o) => t[o] != null).reduce((o, r) => {
|
|
128
128
|
if (n.has(r)) {
|
|
129
129
|
const a = n.get(r);
|
|
@@ -140,7 +140,7 @@ function Do(t, n) {
|
|
|
140
140
|
}
|
|
141
141
|
function Pi(t, n, e = /* @__PURE__ */ new Map()) {
|
|
142
142
|
const o = Ni(t, n);
|
|
143
|
-
return
|
|
143
|
+
return Po(o, e);
|
|
144
144
|
}
|
|
145
145
|
function Di(t = {}) {
|
|
146
146
|
function n(l, m, c, f) {
|
|
@@ -244,9 +244,9 @@ const fe = {
|
|
|
244
244
|
}, Vi = {}, Bi = {};
|
|
245
245
|
Di();
|
|
246
246
|
function Nt(t, n, e = /* @__PURE__ */ new Map(), o = (i, s, u, l) => s, r = {}, a = (i) => i) {
|
|
247
|
-
return
|
|
247
|
+
return Oo[n.title] = n, Io[n.title] = o, Vi[n.title] = r, Bi[n.title] = a, (i = {}, s = !0) => {
|
|
248
248
|
if (!s)
|
|
249
|
-
return
|
|
249
|
+
return Po(i, e);
|
|
250
250
|
const u = Pi(i, n, e), l = Object.keys(t).reduce((m, c) => (m[c] = t[c].default, m), {});
|
|
251
251
|
return Object.assign(l, u);
|
|
252
252
|
};
|
|
@@ -317,7 +317,7 @@ const ji = "https://json-schema.org/draft/2020-12/schema", Ai = "https://farris-
|
|
|
317
317
|
description: Ki,
|
|
318
318
|
type: Ji,
|
|
319
319
|
categories: Zi
|
|
320
|
-
},
|
|
320
|
+
}, zn = [
|
|
321
321
|
{
|
|
322
322
|
label: "pageChange",
|
|
323
323
|
name: "MockMock切换页码"
|
|
@@ -402,7 +402,7 @@ const ji = "https://json-schema.org/draft/2020-12/schema", Ai = "https://farris-
|
|
|
402
402
|
}
|
|
403
403
|
],
|
|
404
404
|
/** (事件设定)可绑定事件默认列表; */
|
|
405
|
-
events:
|
|
405
|
+
events: zn,
|
|
406
406
|
/** 已绑定的事件(拼接已有的参数值,拼接当前事件->待集成-从dom结构中取值,事件及对应的字符串) */
|
|
407
407
|
boundEventsList: [],
|
|
408
408
|
/** 视图模型已有命令 */
|
|
@@ -420,17 +420,17 @@ const ji = "https://json-schema.org/draft/2020-12/schema", Ai = "https://farris-
|
|
|
420
420
|
/** 初始为空,用于存储用户点击「导入新命令」的控制器值 */
|
|
421
421
|
newController: [],
|
|
422
422
|
isAddControllerMethod: !1,
|
|
423
|
-
getEventList: () => ({ events:
|
|
424
|
-
},
|
|
423
|
+
getEventList: () => ({ events: zn, boundEventsList: [] })
|
|
424
|
+
}, Do = {
|
|
425
425
|
initialData: { type: Object, default: ts }
|
|
426
426
|
}, ns = Nt(
|
|
427
|
-
|
|
427
|
+
Do,
|
|
428
428
|
Xi,
|
|
429
429
|
$i,
|
|
430
430
|
Wi,
|
|
431
431
|
es
|
|
432
432
|
);
|
|
433
|
-
function
|
|
433
|
+
function Vo() {
|
|
434
434
|
function t(e, o) {
|
|
435
435
|
const r = [
|
|
436
436
|
{
|
|
@@ -776,7 +776,7 @@ function os(t, n, e) {
|
|
|
776
776
|
};
|
|
777
777
|
}
|
|
778
778
|
function rs(t) {
|
|
779
|
-
const n = E([]), e = E([]), o = E([]), { isContextDependent: r } =
|
|
779
|
+
const n = E([]), e = E([]), o = E([]), { isContextDependent: r } = Vo();
|
|
780
780
|
function a() {
|
|
781
781
|
const { allComponentList: f } = t.value;
|
|
782
782
|
t.value.componentLists.length && t.value.viewModel && t.value.viewModel.forEach((h) => {
|
|
@@ -988,7 +988,7 @@ const as = {
|
|
|
988
988
|
margin: "5px",
|
|
989
989
|
color: "#226eff",
|
|
990
990
|
flex: "1 1 0"
|
|
991
|
-
})), h = ze("useFormSchema"), d = ze(
|
|
991
|
+
})), h = ze("useFormSchema"), d = ze(na);
|
|
992
992
|
let M;
|
|
993
993
|
const F = E(!1);
|
|
994
994
|
lt(() => {
|
|
@@ -1017,8 +1017,8 @@ const as = {
|
|
|
1017
1017
|
const k = {
|
|
1018
1018
|
formBasicInfo: h == null ? void 0 : h.getFormMetadataBasicInfo()
|
|
1019
1019
|
};
|
|
1020
|
-
return x(
|
|
1021
|
-
injectSymbolToken:
|
|
1020
|
+
return x(ta, {
|
|
1021
|
+
injectSymbolToken: Kr,
|
|
1022
1022
|
"view-type": "NavList",
|
|
1023
1023
|
editorParams: k,
|
|
1024
1024
|
showFooter: !0,
|
|
@@ -1195,14 +1195,14 @@ const as = {
|
|
|
1195
1195
|
n.emit("change", o.value);
|
|
1196
1196
|
}
|
|
1197
1197
|
function b(k) {
|
|
1198
|
-
var j, P, I, U, $, L, Y, Q, K, Z,
|
|
1198
|
+
var j, P, I, U, $, L, Y, Q, K, Z, ce, pe, be, Me, Oe, X, ie, G, ne;
|
|
1199
1199
|
const N = ft(k.context.data), {
|
|
1200
1200
|
assembleSchemaFieldsByComponent: z,
|
|
1201
1201
|
assembleOutline: H,
|
|
1202
1202
|
assembleStateVariables: R,
|
|
1203
1203
|
assembleSchemaFieldsUnderBoundEntity: B
|
|
1204
1204
|
} = k.context.generalData;
|
|
1205
|
-
return x(
|
|
1205
|
+
return x(io, {
|
|
1206
1206
|
defaultValue: k == null ? void 0 : k.origin.defaultValue,
|
|
1207
1207
|
modelValue: k.value,
|
|
1208
1208
|
"onUpdate:modelValue": (ge) => k.value = ge,
|
|
@@ -1213,9 +1213,9 @@ const as = {
|
|
|
1213
1213
|
activeViewModelFieldData: B(f.value),
|
|
1214
1214
|
editorType: ((P = (j = k == null ? void 0 : k.origin) == null ? void 0 : j.controlSource) == null ? void 0 : P.type) || "Default",
|
|
1215
1215
|
editorControlSource: (I = k == null ? void 0 : k.origin) == null ? void 0 : I.controlSource,
|
|
1216
|
-
idField: ((Y = (L = ($ = (U = k == null ? void 0 : k.origin) == null ? void 0 : U.controlSource) == null ? void 0 : $.context) == null ? void 0 : L.valueField) == null ? void 0 : Y.value) || ((
|
|
1216
|
+
idField: ((Y = (L = ($ = (U = k == null ? void 0 : k.origin) == null ? void 0 : U.controlSource) == null ? void 0 : $.context) == null ? void 0 : L.valueField) == null ? void 0 : Y.value) || ((ce = (Z = (K = (Q = k == null ? void 0 : k.origin) == null ? void 0 : Q.controlSource) == null ? void 0 : K.context) == null ? void 0 : Z.idField) == null ? void 0 : ce.value) || "id",
|
|
1217
1217
|
textField: ((Oe = (Me = (be = (pe = k == null ? void 0 : k.origin) == null ? void 0 : pe.controlSource) == null ? void 0 : be.context) == null ? void 0 : Me.textField) == null ? void 0 : Oe.value) || "label",
|
|
1218
|
-
editable: (
|
|
1218
|
+
editable: (ne = (G = (ie = (X = k == null ? void 0 : k.origin) == null ? void 0 : X.controlSource) == null ? void 0 : ie.context) == null ? void 0 : G.editable) == null ? void 0 : ne.value,
|
|
1219
1219
|
onConfirm: (ge) => {
|
|
1220
1220
|
v(ge, k), p();
|
|
1221
1221
|
},
|
|
@@ -1620,7 +1620,7 @@ const Is = "https://json-schema.org/draft/2020-12/schema", Ns = "https://farris-
|
|
|
1620
1620
|
"id",
|
|
1621
1621
|
"type",
|
|
1622
1622
|
"editor"
|
|
1623
|
-
],
|
|
1623
|
+
], Bo = {
|
|
1624
1624
|
$schema: Is,
|
|
1625
1625
|
$id: Ns,
|
|
1626
1626
|
title: Ps,
|
|
@@ -1628,7 +1628,7 @@ const Is = "https://json-schema.org/draft/2020-12/schema", Ns = "https://farris-
|
|
|
1628
1628
|
type: Vs,
|
|
1629
1629
|
properties: Bs,
|
|
1630
1630
|
required: Rs
|
|
1631
|
-
},
|
|
1631
|
+
}, Ro = {
|
|
1632
1632
|
id: { type: String, default: "" },
|
|
1633
1633
|
customClass: { type: String, default: "" },
|
|
1634
1634
|
customStyle: { type: String, default: "" },
|
|
@@ -1646,12 +1646,12 @@ const Is = "https://json-schema.org/draft/2020-12/schema", Ns = "https://farris-
|
|
|
1646
1646
|
errors: { type: Object, default: null }
|
|
1647
1647
|
};
|
|
1648
1648
|
Nt(
|
|
1649
|
-
Lo,
|
|
1650
1649
|
Ro,
|
|
1650
|
+
Bo,
|
|
1651
1651
|
Nn,
|
|
1652
1652
|
void 0
|
|
1653
1653
|
);
|
|
1654
|
-
function
|
|
1654
|
+
function Lo(t, n, e) {
|
|
1655
1655
|
var p;
|
|
1656
1656
|
const o = e && e.getStyles && e.getStyles() || "", r = e && e.getDesignerClass && e.getDesignerClass() || "", a = E();
|
|
1657
1657
|
function i() {
|
|
@@ -1698,7 +1698,7 @@ function Ho(t, n, e) {
|
|
|
1698
1698
|
}
|
|
1699
1699
|
function F(b, C) {
|
|
1700
1700
|
const { componentType: O } = b;
|
|
1701
|
-
let _ =
|
|
1701
|
+
let _ = No(O, b, C);
|
|
1702
1702
|
e && e.onResolveNewComponentSchema && (_ = e.onResolveNewComponentSchema(b, _));
|
|
1703
1703
|
const V = O.toLowerCase().replace(/-/g, "_");
|
|
1704
1704
|
return _ && !_.id && _.type === O && (_.id = `${V}_${Math.random().toString().slice(2, 6)}`), _;
|
|
@@ -1805,7 +1805,7 @@ function js(t) {
|
|
|
1805
1805
|
return o;
|
|
1806
1806
|
}
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1808
|
+
function Ho(t) {
|
|
1809
1809
|
if (!t)
|
|
1810
1810
|
return;
|
|
1811
1811
|
const n = t.getBoundingClientRect();
|
|
@@ -1826,7 +1826,7 @@ function As(t) {
|
|
|
1826
1826
|
if (!t)
|
|
1827
1827
|
return;
|
|
1828
1828
|
let n;
|
|
1829
|
-
t.className.includes("dgComponentSelected") ? n = t : n = t.querySelector(".dgComponentSelected"), n &&
|
|
1829
|
+
t.className.includes("dgComponentSelected") ? n = t : n = t.querySelector(".dgComponentSelected"), n && Ho(n);
|
|
1830
1830
|
}
|
|
1831
1831
|
function zs(t) {
|
|
1832
1832
|
const { formSchemaUtils: n, formStateMachineUtils: e } = t;
|
|
@@ -2408,21 +2408,21 @@ const Ys = {
|
|
|
2408
2408
|
class: "farris-label-text"
|
|
2409
2409
|
}, [o.value])]);
|
|
2410
2410
|
}
|
|
2411
|
-
}),
|
|
2412
|
-
let
|
|
2411
|
+
}), se = {}, le = {}, ue = {}, de = {};
|
|
2412
|
+
let qn = !1;
|
|
2413
2413
|
function Xs() {
|
|
2414
|
-
|
|
2414
|
+
qn || (qn = !0, aa.register(se, le, ue, de), ra.register(se, le, ue, de), ia.register(se, le, ue, de), sa.register(se, le, ue, de), la.register(se, le, ue, de), ua.register(se, le, ue, de), jn.register(se, le, ue, de), An.register(se, le, ue, de), jn.register(se, le, ue, de), An.register(se, le, ue, de), sn.register(se, le, ue, de), ca.register(se, le, ue, de), da.register(se, le, ue, de), ma.register(se, le, ue, de), fa.register(se, le, ue, de), ha.register(se, le, ue, de), pa.register(se, le, ue, de), va.register(se, le, ue, de), ga.register(se, le, ue, de), wa.register(se, le, ue, de), pi.register(se, le, ue, de), Ca.register(se, le, ue, de), _a.register(se, le, ue, de), li.register(se, le, ue, de), Sa.register(se, le, ue, de), Ea.register(se, le, ue, de), Ta.register(se, le, ue, de), ka.register(se, le, ue, de), Fa.register(se, le, ue, de), Ma.register(se, le, ue, de), Oa.register(se, le, ue, de), Ia.register(se, le, ue, de), Na.register(se, le, ue, de), Pa.register(se, le, ue, de), Da.register(se, le, ue, de), Va.register(se, le, ue, de), Ba.register(se, le, ue, de), Ra.register(se, le, ue, de), La.register(se, le, ue, de), Ha.register(se, le, ue, de), $a.register(se, le, ue, de), Wa.register(se, le, ue, de), Aa.register(se, le, ue, de), za.register(se, le, ue, de), ja.register(se, le, ue, de), ea.register(se, le, ue), qa.register(se, le, ue, de), Ga.register(se, le, ue, de), Ya.register(se, le, ue, de), Ua.register(se, le, ue, de), Xa.register(se, le, ue, de), Qa.register(se, le, ue, de), ci.register(se, le, ue, de), Ka.register(se, le, ue, de), Ja.register(se, le, ue, de), Za.register(se, le, ue, de), ei.register(se, le, ue, de), ti.register(se, le, ue, de), ni.register(se, le, ue, de), ri.register(se, le, ue, de), oi.register(se, le, ue, de), ai.register(se, le, ue, de), ii.register(se, le, ue, de), si.register(se, le, ue, de), xa.register(se, le, ue, de), io.register(se, le, ue, de), ui.register(se, le, ue, de), di.register(se, le, ue, de), fi.register(se, le, ue, de), mi.register(se, le, ue, de), hi.register(se, le, ue, de), vi.register(se, le, ue, de), gi.register(se, le, ue, de));
|
|
2415
2415
|
}
|
|
2416
2416
|
function Qs() {
|
|
2417
2417
|
Xs();
|
|
2418
2418
|
function t(i) {
|
|
2419
|
-
const s =
|
|
2419
|
+
const s = se[i];
|
|
2420
2420
|
if (!s)
|
|
2421
2421
|
throw new Error(`Could not find the editor of type '${i}'`);
|
|
2422
2422
|
return s;
|
|
2423
2423
|
}
|
|
2424
2424
|
function n(i, s) {
|
|
2425
|
-
const u =
|
|
2425
|
+
const u = le[i];
|
|
2426
2426
|
return u ? u(s) : {};
|
|
2427
2427
|
}
|
|
2428
2428
|
function e(i) {
|
|
@@ -2561,7 +2561,7 @@ const Ks = {
|
|
|
2561
2561
|
}
|
|
2562
2562
|
}), _n = /* @__PURE__ */ Le({
|
|
2563
2563
|
name: "FDynamicFormGroup",
|
|
2564
|
-
props:
|
|
2564
|
+
props: Ro,
|
|
2565
2565
|
emits: ["change", "update:modelValue"],
|
|
2566
2566
|
setup(t, n) {
|
|
2567
2567
|
var v;
|
|
@@ -2708,7 +2708,7 @@ A(jt, "fieldControlTypeMapping", {
|
|
|
2708
2708
|
{ key: fe["radio-group"].type, value: fe["radio-group"].name }
|
|
2709
2709
|
]
|
|
2710
2710
|
});
|
|
2711
|
-
let
|
|
2711
|
+
let Gn = jt;
|
|
2712
2712
|
var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2713
2713
|
function tn(t) {
|
|
2714
2714
|
throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -2768,7 +2768,7 @@ var tl = { exports: {} };
|
|
|
2768
2768
|
D === 1 && Array.isArray(_) === !1 && (V = _, _ = []);
|
|
2769
2769
|
var k, N, z, H, R, B, j, P, I, U = null, $, L, Y = !1, Q = 0, K, Z = V || {};
|
|
2770
2770
|
Z.moves === void 0 && (Z.moves = S), Z.accepts === void 0 && (Z.accepts = S), Z.invalid === void 0 && (Z.invalid = mt), Z.containers === void 0 && (Z.containers = _ || []), Z.isContainer === void 0 && (Z.isContainer = y), 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 = l.body);
|
|
2771
|
-
var
|
|
2771
|
+
var ce = i({
|
|
2772
2772
|
containers: Z.containers,
|
|
2773
2773
|
start: Ve,
|
|
2774
2774
|
end: ct,
|
|
@@ -2778,21 +2778,21 @@ var tl = { exports: {} };
|
|
|
2778
2778
|
canMove: Ie,
|
|
2779
2779
|
dragging: !1
|
|
2780
2780
|
});
|
|
2781
|
-
return Z.removeOnSpill === !0 &&
|
|
2781
|
+
return Z.removeOnSpill === !0 && ce.on("over", St).on("out", _t), be(), ce;
|
|
2782
2782
|
function pe(q) {
|
|
2783
|
-
return
|
|
2783
|
+
return ce.containers.indexOf(q) !== -1 || Z.isContainer(q);
|
|
2784
2784
|
}
|
|
2785
2785
|
function be(q) {
|
|
2786
|
-
var
|
|
2787
|
-
d(m,
|
|
2786
|
+
var te = q ? "remove" : "add";
|
|
2787
|
+
d(m, te, "mousedown", G), d(m, te, "mouseup", Ee);
|
|
2788
2788
|
}
|
|
2789
2789
|
function Me(q) {
|
|
2790
|
-
var
|
|
2791
|
-
d(m,
|
|
2790
|
+
var te = q ? "remove" : "add";
|
|
2791
|
+
d(m, te, "mousemove", ne);
|
|
2792
2792
|
}
|
|
2793
2793
|
function Oe(q) {
|
|
2794
|
-
var
|
|
2795
|
-
s[
|
|
2794
|
+
var te = q ? "remove" : "add";
|
|
2795
|
+
s[te](m, "selectstart", ie), s[te](m, "click", ie);
|
|
2796
2796
|
}
|
|
2797
2797
|
function X() {
|
|
2798
2798
|
be(!0), Ee({});
|
|
@@ -2802,13 +2802,13 @@ var tl = { exports: {} };
|
|
|
2802
2802
|
}
|
|
2803
2803
|
function G(q) {
|
|
2804
2804
|
H = q.clientX, R = q.clientY;
|
|
2805
|
-
var
|
|
2806
|
-
if (!
|
|
2805
|
+
var te = M(q) !== 1 || q.metaKey || q.ctrlKey;
|
|
2806
|
+
if (!te) {
|
|
2807
2807
|
var re = q.target, oe = ge(re);
|
|
2808
2808
|
oe && ($ = oe, Me(), q.type === "mousedown" && (v(re) ? re.focus() : q.preventDefault()));
|
|
2809
2809
|
}
|
|
2810
2810
|
}
|
|
2811
|
-
function
|
|
2811
|
+
function ne(q) {
|
|
2812
2812
|
if ($) {
|
|
2813
2813
|
if (M(q) === 0) {
|
|
2814
2814
|
Ee({});
|
|
@@ -2816,7 +2816,7 @@ var tl = { exports: {} };
|
|
|
2816
2816
|
}
|
|
2817
2817
|
if (!(q.clientX !== void 0 && Math.abs(q.clientX - H) <= (Z.slideFactorX || 0) && q.clientY !== void 0 && Math.abs(q.clientY - R) <= (Z.slideFactorY || 0))) {
|
|
2818
2818
|
if (Z.ignoreInputTextSelection) {
|
|
2819
|
-
var
|
|
2819
|
+
var te = O("clientX", q) || 0, re = O("clientY", q) || 0, oe = l.elementFromPoint(te, re);
|
|
2820
2820
|
if (v(oe))
|
|
2821
2821
|
return;
|
|
2822
2822
|
}
|
|
@@ -2826,13 +2826,13 @@ var tl = { exports: {} };
|
|
|
2826
2826
|
}
|
|
2827
2827
|
}
|
|
2828
2828
|
function ge(q) {
|
|
2829
|
-
if (!(
|
|
2830
|
-
for (var
|
|
2831
|
-
if (Z.invalid(q,
|
|
2829
|
+
if (!(ce.dragging && k) && !pe(q)) {
|
|
2830
|
+
for (var te = q; w(q) && pe(w(q)) === !1; )
|
|
2831
|
+
if (Z.invalid(q, te) || (q = w(q), !q))
|
|
2832
2832
|
return;
|
|
2833
2833
|
var re = w(q);
|
|
2834
|
-
if (re && !Z.invalid(q,
|
|
2835
|
-
var oe = Z.moves(q, re,
|
|
2834
|
+
if (re && !Z.invalid(q, te)) {
|
|
2835
|
+
var oe = Z.moves(q, re, te, b(q));
|
|
2836
2836
|
if (oe)
|
|
2837
2837
|
return {
|
|
2838
2838
|
item: q,
|
|
@@ -2845,17 +2845,17 @@ var tl = { exports: {} };
|
|
|
2845
2845
|
return !!ge(q);
|
|
2846
2846
|
}
|
|
2847
2847
|
function Ve(q) {
|
|
2848
|
-
var
|
|
2849
|
-
|
|
2848
|
+
var te = ge(q);
|
|
2849
|
+
te && tt(te);
|
|
2850
2850
|
}
|
|
2851
2851
|
function tt(q) {
|
|
2852
|
-
Be(q.item, q.source) && (P = q.item.cloneNode(!0),
|
|
2852
|
+
Be(q.item, q.source) && (P = q.item.cloneNode(!0), ce.emit("cloned", P, q.item, "copy")), N = q.source, z = q.item, B = j = b(q.item), ce.dragging = !0, ce.emit("drag", z, N);
|
|
2853
2853
|
}
|
|
2854
2854
|
function mt() {
|
|
2855
2855
|
return !1;
|
|
2856
2856
|
}
|
|
2857
2857
|
function ct() {
|
|
2858
|
-
if (
|
|
2858
|
+
if (ce.dragging) {
|
|
2859
2859
|
var q = P || z;
|
|
2860
2860
|
Pe(q, w(q));
|
|
2861
2861
|
}
|
|
@@ -2864,36 +2864,36 @@ var tl = { exports: {} };
|
|
|
2864
2864
|
$ = !1, Me(!0), Oe(!0);
|
|
2865
2865
|
}
|
|
2866
2866
|
function Ee(q) {
|
|
2867
|
-
if (ee(), !!
|
|
2868
|
-
var
|
|
2869
|
-
Ce && (P && Z.copySortSource || !P || Ce !== N) ? Pe(
|
|
2867
|
+
if (ee(), !!ce.dragging) {
|
|
2868
|
+
var te = P || z, re = O("clientX", q) || 0, oe = O("clientY", q) || 0, _e = F(k, re, oe), Ce = xt(_e, re, oe);
|
|
2869
|
+
Ce && (P && Z.copySortSource || !P || Ce !== N) ? Pe(te, Ce) : Z.removeOnSpill ? we() : Te();
|
|
2870
2870
|
}
|
|
2871
2871
|
}
|
|
2872
|
-
function Pe(q,
|
|
2872
|
+
function Pe(q, te) {
|
|
2873
2873
|
var re = w(q);
|
|
2874
|
-
P && Z.copySortSource &&
|
|
2874
|
+
P && Z.copySortSource && te === N && re.removeChild(z), ht(te) ? ce.emit("cancel", q, N) : ce.emit("drop", q, te, N, j), Ze();
|
|
2875
2875
|
}
|
|
2876
2876
|
function we() {
|
|
2877
|
-
if (
|
|
2878
|
-
var q = P || z,
|
|
2879
|
-
|
|
2877
|
+
if (ce.dragging) {
|
|
2878
|
+
var q = P || z, te = w(q);
|
|
2879
|
+
te && te.removeChild(q), ce.emit(P ? "cancel" : "remove", q, te, N), Ze();
|
|
2880
2880
|
}
|
|
2881
2881
|
}
|
|
2882
2882
|
function Te(q) {
|
|
2883
|
-
if (
|
|
2884
|
-
var
|
|
2885
|
-
_e === !1 &&
|
|
2883
|
+
if (ce.dragging) {
|
|
2884
|
+
var te = arguments.length > 0 ? q : Z.revertOnSpill, re = P || z, oe = w(re), _e = ht(oe);
|
|
2885
|
+
_e === !1 && te && (P ? oe && oe.removeChild(P) : N.insertBefore(re, B)), _e || te ? ce.emit("cancel", re, N, N) : ce.emit("drop", re, oe, N, j), Ze();
|
|
2886
2886
|
}
|
|
2887
2887
|
}
|
|
2888
2888
|
function Ze() {
|
|
2889
2889
|
var q = P || z;
|
|
2890
|
-
ee(), ae(), me(), q && u.rm(q, "gu-transit"), I && clearTimeout(I),
|
|
2890
|
+
ee(), ae(), me(), q && u.rm(q, "gu-transit"), I && clearTimeout(I), ce.dragging = !1, U && ce.emit("out", q, U, N), ce.emit("dragend", q, Q), N = z = P = B = j = I = U = null;
|
|
2891
2891
|
}
|
|
2892
|
-
function ht(q,
|
|
2892
|
+
function ht(q, te) {
|
|
2893
2893
|
var re;
|
|
2894
|
-
return
|
|
2894
|
+
return te !== void 0 ? re = te : k ? re = j : re = b(P || z), q === N && re === B;
|
|
2895
2895
|
}
|
|
2896
|
-
function xt(q,
|
|
2896
|
+
function xt(q, te, re) {
|
|
2897
2897
|
for (var oe = q; oe && !_e(); )
|
|
2898
2898
|
oe = w(oe);
|
|
2899
2899
|
return oe;
|
|
@@ -2901,7 +2901,7 @@ var tl = { exports: {} };
|
|
|
2901
2901
|
var Ce = pe(oe);
|
|
2902
2902
|
if (Ce === !1)
|
|
2903
2903
|
return !1;
|
|
2904
|
-
var $e = ye(oe, q), Ne = xe(oe, $e,
|
|
2904
|
+
var $e = ye(oe, q), Ne = xe(oe, $e, te, re), We = ht(oe, Ne);
|
|
2905
2905
|
return We ? !0 : Z.accepts(z, oe, N, Ne);
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
@@ -2909,9 +2909,9 @@ var tl = { exports: {} };
|
|
|
2909
2909
|
if (!k)
|
|
2910
2910
|
return;
|
|
2911
2911
|
q.preventDefault();
|
|
2912
|
-
var
|
|
2913
|
-
k.style.left =
|
|
2914
|
-
var oe = P || z, _e = F(k,
|
|
2912
|
+
var te = O("clientX", q) || 0, re = O("clientY", q) || 0;
|
|
2913
|
+
k.style.left = te - 2 + "px", k.style.top = re - 2 + "px";
|
|
2914
|
+
var oe = P || z, _e = F(k, te, re), Ce = xt(_e, te, re), $e = Ce !== null && Ce !== U;
|
|
2915
2915
|
($e || Ce === null) && (ve(), U = Ce, pt()), he(_e, re);
|
|
2916
2916
|
var Ne = w(oe);
|
|
2917
2917
|
if (Ce === N && P && !Z.copySortSource) {
|
|
@@ -2920,7 +2920,7 @@ var tl = { exports: {} };
|
|
|
2920
2920
|
}
|
|
2921
2921
|
var We, dt = ye(Ce, _e);
|
|
2922
2922
|
if (Y = He(dt, Ce), dt !== null)
|
|
2923
|
-
We = xe(Ce, dt,
|
|
2923
|
+
We = xe(Ce, dt, te, re);
|
|
2924
2924
|
else if (Z.revertOnSpill === !0 && !P)
|
|
2925
2925
|
We = B, Ce = N;
|
|
2926
2926
|
else {
|
|
@@ -2929,7 +2929,7 @@ var tl = { exports: {} };
|
|
|
2929
2929
|
}
|
|
2930
2930
|
L.style.display = "block", Pt(We, oe, $e), We ? ot(dt, We) : J(Ce);
|
|
2931
2931
|
function Je(Se) {
|
|
2932
|
-
|
|
2932
|
+
ce.emit(Se, oe, U, N);
|
|
2933
2933
|
}
|
|
2934
2934
|
function pt() {
|
|
2935
2935
|
$e && Je("over");
|
|
@@ -2938,17 +2938,17 @@ var tl = { exports: {} };
|
|
|
2938
2938
|
U && Je("out");
|
|
2939
2939
|
}
|
|
2940
2940
|
}
|
|
2941
|
-
function Pt(q,
|
|
2942
|
-
(q ===
|
|
2941
|
+
function Pt(q, te, re) {
|
|
2942
|
+
(q === te || q === b(te)) && (j = b(te)), (q === null && re || q !== te && q !== b(te)) && (j = q);
|
|
2943
2943
|
}
|
|
2944
2944
|
function St(q) {
|
|
2945
2945
|
u.rm(q, "gu-hide");
|
|
2946
2946
|
}
|
|
2947
2947
|
function _t(q) {
|
|
2948
|
-
|
|
2948
|
+
ce.dragging && u.add(q, "gu-hide");
|
|
2949
2949
|
}
|
|
2950
2950
|
function Dt() {
|
|
2951
|
-
k || (k = document.createElement("div"), k.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;", k.innerHTML = Z.getMirrorText && Z.getMirrorText(z) || "控件", u.add(k, "gu-mirror"), Z.mirrorContainer.appendChild(k), d(m, "add", "mousemove", yt), u.add(Z.mirrorContainer, "gu-unselectable"),
|
|
2951
|
+
k || (k = document.createElement("div"), k.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;", k.innerHTML = Z.getMirrorText && Z.getMirrorText(z) || "控件", u.add(k, "gu-mirror"), Z.mirrorContainer.appendChild(k), d(m, "add", "mousemove", yt), u.add(Z.mirrorContainer, "gu-unselectable"), ce.emit("cloned", k, z, "mirror"));
|
|
2952
2952
|
}
|
|
2953
2953
|
function Et() {
|
|
2954
2954
|
if (L = document.createElement("div"), u.add(L, "gu-insertion"), z) {
|
|
@@ -2963,26 +2963,26 @@ var tl = { exports: {} };
|
|
|
2963
2963
|
function me() {
|
|
2964
2964
|
L && (w(L).removeChild(L), L = null);
|
|
2965
2965
|
}
|
|
2966
|
-
function ye(q,
|
|
2967
|
-
for (var re =
|
|
2966
|
+
function ye(q, te) {
|
|
2967
|
+
for (var re = te; re !== q && w(re) !== q; )
|
|
2968
2968
|
re = w(re);
|
|
2969
2969
|
return re === m ? null : re;
|
|
2970
2970
|
}
|
|
2971
|
-
function He(q,
|
|
2972
|
-
if (!
|
|
2971
|
+
function He(q, te) {
|
|
2972
|
+
if (!te)
|
|
2973
2973
|
return Y;
|
|
2974
|
-
var re = q ||
|
|
2974
|
+
var re = q || te && te.lastElementChild;
|
|
2975
2975
|
if (!re)
|
|
2976
2976
|
return !0;
|
|
2977
2977
|
var oe = getComputedStyle(q), _e = /^inline/.test(oe.getPropertyValue("display")) || /^(left|right)$/.test(oe.getPropertyValue("float"));
|
|
2978
2978
|
if (_e)
|
|
2979
2979
|
return !0;
|
|
2980
|
-
if (
|
|
2981
|
-
var Ce = getComputedStyle(
|
|
2980
|
+
if (te) {
|
|
2981
|
+
var Ce = getComputedStyle(te), $e = Ce.getPropertyValue("display");
|
|
2982
2982
|
if (/flex$/.test($e)) {
|
|
2983
2983
|
var Ne = Ce.getPropertyValue("flex-direction") || "row";
|
|
2984
2984
|
if (Ne === "row" || Ne === "row-reverse")
|
|
2985
|
-
return !Xe(
|
|
2985
|
+
return !Xe(te);
|
|
2986
2986
|
}
|
|
2987
2987
|
return !1;
|
|
2988
2988
|
}
|
|
@@ -2991,8 +2991,8 @@ var tl = { exports: {} };
|
|
|
2991
2991
|
function Xe(q) {
|
|
2992
2992
|
if (!q.children || !q.children.length)
|
|
2993
2993
|
return !1;
|
|
2994
|
-
for (const
|
|
2995
|
-
const oe = (
|
|
2994
|
+
for (const te of Array.from(q.children)) {
|
|
2995
|
+
const oe = (te.className && te.className.split(" ") || []).filter((_e) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(_e));
|
|
2996
2996
|
if (!oe.length)
|
|
2997
2997
|
return !1;
|
|
2998
2998
|
for (const _e of oe) {
|
|
@@ -3003,8 +3003,8 @@ var tl = { exports: {} };
|
|
|
3003
3003
|
}
|
|
3004
3004
|
return !0;
|
|
3005
3005
|
}
|
|
3006
|
-
function ot(q,
|
|
3007
|
-
const re =
|
|
3006
|
+
function ot(q, te) {
|
|
3007
|
+
const re = te.getBoundingClientRect();
|
|
3008
3008
|
if (L.style.left = re.left + "px", L.style.top = re.top + "px", Y) {
|
|
3009
3009
|
if (L.style.height = re.height + "px", L.style.width = "4px", q) {
|
|
3010
3010
|
const oe = q.getBoundingClientRect();
|
|
@@ -3014,33 +3014,33 @@ var tl = { exports: {} };
|
|
|
3014
3014
|
const oe = K.getBoundingClientRect();
|
|
3015
3015
|
re.top < oe.top && (L.style.display = "none");
|
|
3016
3016
|
}
|
|
3017
|
-
|
|
3017
|
+
te === z && z && (L.style.display = "none");
|
|
3018
3018
|
}
|
|
3019
3019
|
function J(q) {
|
|
3020
3020
|
j = null;
|
|
3021
|
-
var
|
|
3022
|
-
if (
|
|
3023
|
-
var re =
|
|
3024
|
-
Y ? (L.style.left = re.right + "px", L.style.top = re.top + "px", L.style.height = re.height + "px", L.style.width = "4px") : (L.style.left = re.left + "px", L.style.top = re.bottom + "px", L.style.height = "4px", L.style.width = re.width + "px"),
|
|
3021
|
+
var te = q.lastElementChild;
|
|
3022
|
+
if (te) {
|
|
3023
|
+
var re = te.getBoundingClientRect();
|
|
3024
|
+
Y ? (L.style.left = re.right + "px", L.style.top = re.top + "px", L.style.height = re.height + "px", L.style.width = "4px") : (L.style.left = re.left + "px", L.style.top = re.bottom + "px", L.style.height = "4px", L.style.width = re.width + "px"), te === z && z && (L.style.display = "none");
|
|
3025
3025
|
} else
|
|
3026
3026
|
L.style.display = "none";
|
|
3027
3027
|
}
|
|
3028
|
-
function he(q,
|
|
3028
|
+
function he(q, te) {
|
|
3029
3029
|
if (!Z.mirrorContainer.contains(q) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (K = f(q), !K || !K.contains(q)))
|
|
3030
3030
|
return;
|
|
3031
3031
|
const re = document.querySelector(".dgComponentSelected"), oe = K.getBoundingClientRect();
|
|
3032
|
-
if (
|
|
3032
|
+
if (te - 30 < oe.top && K.scrollTop > 0) {
|
|
3033
3033
|
let _e = K.scrollTop < 10 ? K.scrollTop : 10;
|
|
3034
3034
|
K.scrollBy(0, -1 * _e), re && K.contains(re) && (Q = Q + -1 * _e);
|
|
3035
3035
|
}
|
|
3036
|
-
if (
|
|
3036
|
+
if (te + 30 > oe.bottom && K.scrollTop < K.scrollHeight - K.clientHeight) {
|
|
3037
3037
|
const _e = K.scrollHeight - K.clientHeight - K.scrollTop;
|
|
3038
3038
|
let Ce = _e < 10 ? _e : 10;
|
|
3039
3039
|
K.scrollBy(0, Ce), re && K.contains(re) && (Q = Q + Ce);
|
|
3040
3040
|
}
|
|
3041
3041
|
}
|
|
3042
|
-
function xe(q,
|
|
3043
|
-
var _e = Z.direction === "horizontal", Ce = Z.direction === "mixed", $e =
|
|
3042
|
+
function xe(q, te, re, oe) {
|
|
3043
|
+
var _e = Z.direction === "horizontal", Ce = Z.direction === "mixed", $e = te !== q ? We() : Ne();
|
|
3044
3044
|
return $e;
|
|
3045
3045
|
function Ne() {
|
|
3046
3046
|
var Je = q.children.length, pt, ve, Se;
|
|
@@ -3050,7 +3050,7 @@ var tl = { exports: {} };
|
|
|
3050
3050
|
return null;
|
|
3051
3051
|
}
|
|
3052
3052
|
function We() {
|
|
3053
|
-
var Je =
|
|
3053
|
+
var Je = te.getBoundingClientRect();
|
|
3054
3054
|
if (Ce) {
|
|
3055
3055
|
var pt = oe - Je.top, ve = re - Je.left, Se = Je.bottom - oe, rt = Je.right - re, nt = Math.min(ve, rt, pt, Se), at;
|
|
3056
3056
|
return Y ? at = rt < ve : at = Se === nt || rt === nt || ve === nt, dt(at);
|
|
@@ -3058,11 +3058,11 @@ var tl = { exports: {} };
|
|
|
3058
3058
|
return dt(_e ? re > Je.left + g(Je) / 2 : oe > Je.top + T(Je) / 2);
|
|
3059
3059
|
}
|
|
3060
3060
|
function dt(Je) {
|
|
3061
|
-
return Je ? b(
|
|
3061
|
+
return Je ? b(te) : te;
|
|
3062
3062
|
}
|
|
3063
3063
|
}
|
|
3064
|
-
function Be(q,
|
|
3065
|
-
return typeof Z.copy == "boolean" ? Z.copy : Z.copy(q,
|
|
3064
|
+
function Be(q, te) {
|
|
3065
|
+
return typeof Z.copy == "boolean" ? Z.copy : Z.copy(q, te);
|
|
3066
3066
|
}
|
|
3067
3067
|
}
|
|
3068
3068
|
function f(_) {
|
|
@@ -3593,7 +3593,7 @@ const nl = {
|
|
|
3593
3593
|
}, null)]);
|
|
3594
3594
|
}
|
|
3595
3595
|
});
|
|
3596
|
-
class
|
|
3596
|
+
class $o {
|
|
3597
3597
|
constructor() {
|
|
3598
3598
|
A(this, "notifyRefs", []);
|
|
3599
3599
|
A(this, "globalConfig", ft({}));
|
|
@@ -3614,7 +3614,7 @@ class Wo {
|
|
|
3614
3614
|
...n
|
|
3615
3615
|
}), a = document.createElement("div");
|
|
3616
3616
|
a.style.display = "contents";
|
|
3617
|
-
const i =
|
|
3617
|
+
const i = eo({
|
|
3618
3618
|
setup() {
|
|
3619
3619
|
var l;
|
|
3620
3620
|
const s = E();
|
|
@@ -3634,7 +3634,7 @@ class Wo {
|
|
|
3634
3634
|
document.body.removeChild(a);
|
|
3635
3635
|
}), lt(() => {
|
|
3636
3636
|
e.updateNotifyPositionForCreate(r, s);
|
|
3637
|
-
}), () => x(
|
|
3637
|
+
}), () => x(to, {
|
|
3638
3638
|
mode: "out-in",
|
|
3639
3639
|
name: "fade",
|
|
3640
3640
|
appear: !0
|
|
@@ -3715,10 +3715,10 @@ class Wo {
|
|
|
3715
3715
|
const rl = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
3716
3716
|
rn.install = (t) => {
|
|
3717
3717
|
t.component(rn.name, rn), t.component(xn.name, xn);
|
|
3718
|
-
const n = new
|
|
3718
|
+
const n = new $o();
|
|
3719
3719
|
t.provide(rl, n), t.provide("FNotifyService", n);
|
|
3720
3720
|
};
|
|
3721
|
-
const
|
|
3721
|
+
const Wo = /* @__PURE__ */ new Map([
|
|
3722
3722
|
["appearance", Zt],
|
|
3723
3723
|
["column", "columnOption"]
|
|
3724
3724
|
]);
|
|
@@ -3741,7 +3741,7 @@ function sl(t, n, e) {
|
|
|
3741
3741
|
const o = t.getSchemaByType("content-container");
|
|
3742
3742
|
return o.id = `${n.id}-layout`, o.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, o.contents = [n], o;
|
|
3743
3743
|
}
|
|
3744
|
-
function
|
|
3744
|
+
function jo(t, n, e) {
|
|
3745
3745
|
const r = e.parentComponentInstance.schema.type, a = r === "section" || r === "tab-page";
|
|
3746
3746
|
n.appearance = { class: "f-component-grid" };
|
|
3747
3747
|
const s = (a ? sl : il)(t, n, e);
|
|
@@ -4527,7 +4527,7 @@ const ll = "https://json-schema.org/draft/2020-12/schema", ul = "https://farris-
|
|
|
4527
4527
|
], pl = {
|
|
4528
4528
|
onSelectionChange: "行切换事件",
|
|
4529
4529
|
onClickRow: "行点击事件"
|
|
4530
|
-
},
|
|
4530
|
+
}, Ao = {
|
|
4531
4531
|
$schema: ll,
|
|
4532
4532
|
$id: ul,
|
|
4533
4533
|
title: cl,
|
|
@@ -4665,9 +4665,9 @@ const ll = "https://json-schema.org/draft/2020-12/schema", ul = "https://farris-
|
|
|
4665
4665
|
width: { type: Number, default: -1 },
|
|
4666
4666
|
/** 启用虚拟渲染 */
|
|
4667
4667
|
virtualized: { type: Boolean, default: !1 }
|
|
4668
|
-
}, vl = Nt(Pn,
|
|
4668
|
+
}, vl = Nt(Pn, Ao, Wo, jo), gl = Li(), yl = Ri(), zo = Object.assign({}, Pn, { componentId: { type: String, default: "" } }), bl = Nt(zo, Ao, Wo, jo), wl = Hi();
|
|
4669
4669
|
var st = /* @__PURE__ */ ((t) => (t[t.readonly = 0] = "readonly", t[t.editable = 1] = "editable", t[t.editing = 2] = "editing", t))(st || {}), Ct = /* @__PURE__ */ ((t) => (t[t.initial = 0] = "initial", t[t.editing = 1] = "editing", t))(Ct || {}), Ut = /* @__PURE__ */ ((t) => (t[t.data = 0] = "data", t[t.group = 1] = "group", t[t.summary = 2] = "summary", t))(Ut || {}), it = /* @__PURE__ */ ((t) => (t[t.none = 0] = "none", t[t.filterable = 1] = "filterable", t[t.sortable = 2] = "sortable", t[t.filtered = 4] = "filtered", t[t.sorted = 8] = "sorted", t[t.ascending = 16] = "ascending", t[t.descending = 32] = "descending", t))(it || {});
|
|
4670
|
-
function
|
|
4670
|
+
function qo(t, n) {
|
|
4671
4671
|
var h;
|
|
4672
4672
|
const e = String(Date.now()), o = ((h = t.rowOption) == null ? void 0 : h.height) || 28, r = E(n.value.primaryColumnsWidth);
|
|
4673
4673
|
function a(d) {
|
|
@@ -4832,7 +4832,7 @@ function Sl(t) {
|
|
|
4832
4832
|
}
|
|
4833
4833
|
return { cellContentPosition: n, cellContentClass: e, cellContentClassWithEllipsis: o };
|
|
4834
4834
|
}
|
|
4835
|
-
function
|
|
4835
|
+
function Go(t, n, e, o, r, a, i, s, u, l, m, c, f) {
|
|
4836
4836
|
const {
|
|
4837
4837
|
onClickCell: h
|
|
4838
4838
|
} = a, {
|
|
@@ -4862,7 +4862,7 @@ function Yo(t, n, e, o, r, a, i, s, u, l, m, c, f) {
|
|
|
4862
4862
|
cellPosition: N,
|
|
4863
4863
|
rowKey: z,
|
|
4864
4864
|
rowPosition: H
|
|
4865
|
-
} =
|
|
4865
|
+
} = qo(t, e), {
|
|
4866
4866
|
cellContentClass: R,
|
|
4867
4867
|
cellContentPosition: B,
|
|
4868
4868
|
cellContentClassWithEllipsis: j
|
|
@@ -4871,38 +4871,38 @@ function Yo(t, n, e, o, r, a, i, s, u, l, m, c, f) {
|
|
|
4871
4871
|
} = Cl(t, o, i), {
|
|
4872
4872
|
treeNodeIconsClass: I
|
|
4873
4873
|
} = _l(t, b, C);
|
|
4874
|
-
function U(G,
|
|
4874
|
+
function U(G, ne) {
|
|
4875
4875
|
const ge = G.raw[C.value];
|
|
4876
4876
|
return {
|
|
4877
4877
|
"fv-tree-node-toggle": ge && G.collapse,
|
|
4878
4878
|
"fv-tree-node-toggle-minus": ge && !G.collapse
|
|
4879
4879
|
};
|
|
4880
4880
|
}
|
|
4881
|
-
function $(G,
|
|
4882
|
-
G.stopPropagation(), V(
|
|
4881
|
+
function $(G, ne) {
|
|
4882
|
+
G.stopPropagation(), V(ne);
|
|
4883
4883
|
}
|
|
4884
4884
|
function L(G) {
|
|
4885
4885
|
G.stopPropagation();
|
|
4886
4886
|
}
|
|
4887
|
-
function Y(G,
|
|
4887
|
+
function Y(G, ne) {
|
|
4888
4888
|
return x("div", {
|
|
4889
4889
|
class: U(G),
|
|
4890
4890
|
onClick: (ge) => $(ge, G),
|
|
4891
4891
|
onDblclick: L
|
|
4892
4892
|
}, null);
|
|
4893
4893
|
}
|
|
4894
|
-
function Q(G,
|
|
4894
|
+
function Q(G, ne) {
|
|
4895
4895
|
return _.value && x("div", {
|
|
4896
4896
|
id: "treeNodeIcons",
|
|
4897
|
-
class: I(G,
|
|
4897
|
+
class: I(G, ne)
|
|
4898
4898
|
}, null);
|
|
4899
4899
|
}
|
|
4900
4900
|
function K(G) {
|
|
4901
4901
|
T.value ? (G.checked ? w(G) : v(G), D(G)) : p(G);
|
|
4902
4902
|
}
|
|
4903
|
-
function Z(G,
|
|
4904
|
-
return O.value && x(
|
|
4905
|
-
id: "checkbox_for_" + k(G,
|
|
4903
|
+
function Z(G, ne) {
|
|
4904
|
+
return O.value && x(ki, {
|
|
4905
|
+
id: "checkbox_for_" + k(G, ne.index),
|
|
4906
4906
|
indeterminate: G.indeterminate,
|
|
4907
4907
|
disabled: G.disabled,
|
|
4908
4908
|
checked: G.checked,
|
|
@@ -4910,61 +4910,57 @@ function Yo(t, n, e, o, r, a, i, s, u, l, m, c, f) {
|
|
|
4910
4910
|
onChange: () => K(G)
|
|
4911
4911
|
}, null);
|
|
4912
4912
|
}
|
|
4913
|
-
function
|
|
4913
|
+
function ce(G, ne) {
|
|
4914
4914
|
return x("span", {
|
|
4915
|
-
title: te.data,
|
|
4916
4915
|
style: "user-select:none"
|
|
4917
4916
|
}, [n.slots.cellTemplate ? n.slots.cellTemplate({
|
|
4918
|
-
cell:
|
|
4917
|
+
cell: ne,
|
|
4919
4918
|
row: G
|
|
4920
|
-
}) :
|
|
4919
|
+
}) : ne.mode === st.editing ? ne.getEditor(ne) : ne.formatter ? ne.formatter(ne, G) : ne.showTips ? x(Mi, null, {
|
|
4920
|
+
default: () => ne.data,
|
|
4921
|
+
contentTemplate: () => ne.data
|
|
4922
|
+
}) : ne.data]);
|
|
4921
4923
|
}
|
|
4922
|
-
function pe(G,
|
|
4924
|
+
function pe(G, ne) {
|
|
4923
4925
|
return x("div", {
|
|
4924
|
-
class: j(
|
|
4925
|
-
}, [
|
|
4926
|
-
default: () => se(G, te),
|
|
4927
|
-
contentTemplate: () => se(G, te)
|
|
4928
|
-
}) : se(G, te)]);
|
|
4926
|
+
class: j(ne)
|
|
4927
|
+
}, [ce(G, ne)]);
|
|
4929
4928
|
}
|
|
4930
|
-
function be(G,
|
|
4929
|
+
function be(G, ne, ge) {
|
|
4931
4930
|
const Ie = P(G);
|
|
4932
4931
|
return x("div", {
|
|
4933
|
-
ref:
|
|
4934
|
-
key: k(G,
|
|
4932
|
+
ref: ne.setRef,
|
|
4933
|
+
key: k(G, ne.index),
|
|
4935
4934
|
class: "fv-grid-hierarchy-cell",
|
|
4936
|
-
style: N(
|
|
4935
|
+
style: N(ne, ge)
|
|
4937
4936
|
}, [x("div", {
|
|
4938
|
-
class: R(
|
|
4937
|
+
class: R(ne),
|
|
4939
4938
|
style: Ie
|
|
4940
|
-
}, [Y(G), Q(G,
|
|
4939
|
+
}, [Y(G), Q(G, ne), Z(G, ne), pe(G, ne)])]);
|
|
4941
4940
|
}
|
|
4942
|
-
function Me(G,
|
|
4941
|
+
function Me(G, ne, ge) {
|
|
4943
4942
|
return x("div", {
|
|
4944
|
-
ref:
|
|
4945
|
-
key: k(G,
|
|
4946
|
-
class: d(
|
|
4947
|
-
style: N(
|
|
4948
|
-
onClick: (Ie) => h(Ie,
|
|
4943
|
+
ref: ne.setRef,
|
|
4944
|
+
key: k(G, ne.index),
|
|
4945
|
+
class: d(ne),
|
|
4946
|
+
style: N(ne, ge),
|
|
4947
|
+
onClick: (Ie) => h(Ie, ne, G, ne.column)
|
|
4949
4948
|
}, [x("div", {
|
|
4950
|
-
class: R(
|
|
4949
|
+
class: R(ne)
|
|
4951
4950
|
}, [x("div", {
|
|
4952
|
-
class: j(
|
|
4953
|
-
}, [
|
|
4954
|
-
default: () => se(G, te),
|
|
4955
|
-
contentTemplate: () => se(G, te)
|
|
4956
|
-
}) : se(G, te)])])]);
|
|
4951
|
+
class: j(ne)
|
|
4952
|
+
}, [ce(G, ne)])])]);
|
|
4957
4953
|
}
|
|
4958
|
-
function Oe(G,
|
|
4959
|
-
return
|
|
4954
|
+
function Oe(G, ne) {
|
|
4955
|
+
return ne === "left" && e.value.leftColumns.length > 0 && e.value.leftColumns[0].field === G.field || ne === "primary" && e.value.primaryColumns.length > 0 && e.value.primaryColumns[0].field === G.field;
|
|
4960
4956
|
}
|
|
4961
|
-
function X(G,
|
|
4957
|
+
function X(G, ne) {
|
|
4962
4958
|
n.emit("dblclickNode", {
|
|
4963
4959
|
$event: G,
|
|
4964
|
-
node:
|
|
4960
|
+
node: ne.raw
|
|
4965
4961
|
});
|
|
4966
4962
|
}
|
|
4967
|
-
function ie(G,
|
|
4963
|
+
function ie(G, ne, ge = "primary", Ie) {
|
|
4968
4964
|
return x("div", {
|
|
4969
4965
|
ref: G.setRef,
|
|
4970
4966
|
key: z(G),
|
|
@@ -4974,7 +4970,7 @@ function Yo(t, n, e, o, r, a, i, s, u, l, m, c, f) {
|
|
|
4974
4970
|
onMouseout: (Ve) => g(Ve, G),
|
|
4975
4971
|
onClick: (Ve) => y(Ve, G),
|
|
4976
4972
|
onDblclick: (Ve) => X(Ve, G)
|
|
4977
|
-
}, [Object.values(G.data).filter((Ve) =>
|
|
4973
|
+
}, [Object.values(G.data).filter((Ve) => ne[Ve.field] && Ve.rowSpan === 1).map((Ve) => Oe(Ve, ge) ? be(G, Ve, ne) : Me(G, Ve, ne))]);
|
|
4978
4974
|
}
|
|
4979
4975
|
return {
|
|
4980
4976
|
renderDataRow: ie
|
|
@@ -5040,7 +5036,7 @@ function Tl() {
|
|
|
5040
5036
|
renderCommandColumn: e
|
|
5041
5037
|
};
|
|
5042
5038
|
}
|
|
5043
|
-
function
|
|
5039
|
+
function Yo(t) {
|
|
5044
5040
|
const n = E(t.minHeight), e = E(t.minWidth), o = E(t.height), r = E(t.width), a = W(() => o.value <= 0 ? 0 : Math.max(o.value, n.value)), i = W(() => r.value <= 0 ? 0 : Math.max(r.value, e.value));
|
|
5045
5041
|
return Fe([
|
|
5046
5042
|
() => t.height,
|
|
@@ -5394,8 +5390,8 @@ function Nl(t, n, e, o) {
|
|
|
5394
5390
|
c.clear(), $.reduce((Y, Q) => {
|
|
5395
5391
|
const K = Q[l.value] !== void 0 ? Q[l.value] : "";
|
|
5396
5392
|
if (K && L.has(K)) {
|
|
5397
|
-
const
|
|
5398
|
-
Q.__fv_layer__ = pe + 1, Q.__fv_parent_index__ =
|
|
5393
|
+
const ce = L.get(K), pe = isNaN(Number(ce.__fv_layer__)) ? 1 : Number(ce.__fv_layer__);
|
|
5394
|
+
Q.__fv_layer__ = pe + 1, Q.__fv_parent_index__ = ce.__fv_index__, ce.__fv_hasChildren__ = !0;
|
|
5399
5395
|
} else
|
|
5400
5396
|
Q.__fv_layer__ = 1;
|
|
5401
5397
|
const Z = Y.has(K) ? Y.get(K) : [];
|
|
@@ -5443,8 +5439,8 @@ function Nl(t, n, e, o) {
|
|
|
5443
5439
|
}
|
|
5444
5440
|
function T($, L, Y) {
|
|
5445
5441
|
Array.from(L.keys()).forEach((Q) => {
|
|
5446
|
-
L.get(Q).reduce((Z,
|
|
5447
|
-
const pe =
|
|
5442
|
+
L.get(Q).reduce((Z, ce) => {
|
|
5443
|
+
const pe = ce[i.value], be = $.get(ce[i.value]), Me = $.get(Q), Oe = Y.get(Q);
|
|
5448
5444
|
return Me && Oe && (Me.children.set(pe, be), Me.children.set(pe, be), be.parentId = Q, be.parentIndex = Me.index, be.parents.set(Q, Me)), Z;
|
|
5449
5445
|
}, $);
|
|
5450
5446
|
});
|
|
@@ -5508,7 +5504,7 @@ function Nl(t, n, e, o) {
|
|
|
5508
5504
|
}
|
|
5509
5505
|
function z($, L, Y = 0) {
|
|
5510
5506
|
$.forEach((Q) => {
|
|
5511
|
-
const K = O(Q), Z = Q.__fv_layer__ <= Y,
|
|
5507
|
+
const K = O(Q), Z = Q.__fv_layer__ <= Y, ce = L === "ToCollapse" ? Q.__fv_layer__ <= Y : !(Q.__fv_layer__ <= Y), pe = Z ? ce : Q[s.value];
|
|
5512
5508
|
Q[s.value] = K || pe;
|
|
5513
5509
|
});
|
|
5514
5510
|
for (const [Q, K] of c.entries())
|
|
@@ -5523,8 +5519,8 @@ function Nl(t, n, e, o) {
|
|
|
5523
5519
|
}
|
|
5524
5520
|
function B($) {
|
|
5525
5521
|
$.forEach((L, Y) => {
|
|
5526
|
-
var
|
|
5527
|
-
const Q = L[i.value], K = c.has(Q) ? (
|
|
5522
|
+
var ce;
|
|
5523
|
+
const Q = L[i.value], K = c.has(Q) ? (ce = c.get(Q)) == null ? void 0 : ce.map((pe) => pe.__fv_index__) : [], Z = g(Q, Y);
|
|
5528
5524
|
L.__fv_graph_node__ = Z, L.__fv_children_index__ = K, L.__fv_descendant_index__ = [...K], L.__fv_parents__ = /* @__PURE__ */ new Map(), O(L) && (L[s.value] = !0);
|
|
5529
5525
|
});
|
|
5530
5526
|
}
|
|
@@ -5537,18 +5533,18 @@ function Nl(t, n, e, o) {
|
|
|
5537
5533
|
function P($, L, Y) {
|
|
5538
5534
|
const K = Y.value[$][i.value], Z = m.get(K);
|
|
5539
5535
|
if (Z) {
|
|
5540
|
-
const
|
|
5536
|
+
const ce = m.get(Z.parentId);
|
|
5541
5537
|
let pe = Y.value.length - 1;
|
|
5542
|
-
if (
|
|
5543
|
-
const be = Array.from(
|
|
5544
|
-
if (be ===
|
|
5545
|
-
const Oe = Array.from(
|
|
5538
|
+
if (ce) {
|
|
5539
|
+
const be = Array.from(ce.children.keys()).indexOf(Z.id);
|
|
5540
|
+
if (be === ce.children.size - 1) {
|
|
5541
|
+
const Oe = Array.from(ce.descendant.values())[ce.descendant.size - 1];
|
|
5546
5542
|
pe = Y.value.findIndex((ie) => ie[i.value] === Oe.id) + 1;
|
|
5547
5543
|
} else {
|
|
5548
|
-
const Oe = Array.from(
|
|
5544
|
+
const Oe = Array.from(ce.children.values())[be + 1];
|
|
5549
5545
|
pe = Y.value.findIndex((ie) => ie[i.value] === Oe.id);
|
|
5550
5546
|
}
|
|
5551
|
-
L[u.value] = !1, L[l.value] =
|
|
5547
|
+
L[u.value] = !1, L[l.value] = ce.id, Y.value.splice(pe, 0, L);
|
|
5552
5548
|
}
|
|
5553
5549
|
}
|
|
5554
5550
|
}
|
|
@@ -5583,7 +5579,7 @@ function Nl(t, n, e, o) {
|
|
|
5583
5579
|
trimmedOriginalData: U
|
|
5584
5580
|
};
|
|
5585
5581
|
}
|
|
5586
|
-
function
|
|
5582
|
+
function Uo(t, n, e, o, r) {
|
|
5587
5583
|
var ot;
|
|
5588
5584
|
const a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), m = E([]), c = E([]), f = Il(t, r), { generateGroupData: h, groupFields: d, shouldGroupingData: M } = f, F = E(t.data), y = Nl(t, F, o, r), {
|
|
5589
5585
|
collapseTo: S,
|
|
@@ -5614,18 +5610,18 @@ function Xo(t, n, e, o, r) {
|
|
|
5614
5610
|
function L() {
|
|
5615
5611
|
return $.value && $.value.enable && $.value.size > 0 ? $.value.size : z.value.length;
|
|
5616
5612
|
}
|
|
5617
|
-
const Y = E(1), Q = W(() => $.value && $.value.enable && $.value.mode !== "server"), K = W(() => $.value && $.value.enable && $.value.mode === "server"), Z = new
|
|
5618
|
-
function
|
|
5613
|
+
const Y = E(1), Q = W(() => $.value && $.value.enable && $.value.mode !== "server"), K = W(() => $.value && $.value.enable && $.value.mode === "server"), Z = new $o();
|
|
5614
|
+
function ce(J, he) {
|
|
5619
5615
|
const xe = Math.ceil(J.length / he);
|
|
5620
5616
|
let Be = 0;
|
|
5621
|
-
const q = [],
|
|
5617
|
+
const q = [], te = [], re = [];
|
|
5622
5618
|
for (; Be < xe; ) {
|
|
5623
5619
|
const oe = J.slice(Be * he, (Be + 1) * he), _e = h(d.value, oe, n);
|
|
5624
|
-
|
|
5620
|
+
te[Be] = _e.filter((Ce) => Ce.__fv_data_grid_group_row__).length, q.push(..._e), Be++;
|
|
5625
5621
|
}
|
|
5626
|
-
return
|
|
5622
|
+
return te.reduce((oe, _e, Ce) => (oe = oe + _e, re.push(oe), oe), 0), {
|
|
5627
5623
|
groupData: q,
|
|
5628
|
-
groupRowSizeList:
|
|
5624
|
+
groupRowSizeList: te,
|
|
5629
5625
|
accumulateGroupRowSize: re
|
|
5630
5626
|
};
|
|
5631
5627
|
}
|
|
@@ -5633,19 +5629,19 @@ function Xo(t, n, e, o, r) {
|
|
|
5633
5629
|
var _e;
|
|
5634
5630
|
z.value = F.value, Q.value && (U.value = z.value.length), M.value && !Q.value && (z.value = h(d.value, F.value, n)), I = P.value.reduce((Ce, $e) => (Ce.set($e, 0), Ce), I);
|
|
5635
5631
|
const J = 0, he = L(), xe = (Y.value - 1) * he;
|
|
5636
|
-
let q = xe > z.value.length - 1 || K.value ? J : xe,
|
|
5632
|
+
let q = xe > z.value.length - 1 || K.value ? J : xe, te = K.value ? z.value.length : Math.min(q + he, z.value.length);
|
|
5637
5633
|
if (M.value && Q.value) {
|
|
5638
|
-
const { accumulateGroupRowSize: Ce, groupData: $e, groupRowSizeList: Ne } =
|
|
5634
|
+
const { accumulateGroupRowSize: Ce, groupData: $e, groupRowSizeList: Ne } = ce(F.value, he);
|
|
5639
5635
|
z.value = $e;
|
|
5640
5636
|
const We = Ne[Y.value - 1];
|
|
5641
|
-
q += Y.value - 2 < 0 ? 0 : Ce[Y.value - 2],
|
|
5637
|
+
q += Y.value - 2 < 0 ? 0 : Ce[Y.value - 2], te = q + he + We;
|
|
5642
5638
|
}
|
|
5643
5639
|
let re = 0;
|
|
5644
5640
|
const oe = [];
|
|
5645
5641
|
if (z.value.length) {
|
|
5646
5642
|
k(z.value);
|
|
5647
5643
|
const Ce = D.value !== t.idField;
|
|
5648
|
-
for (let $e = q; $e <
|
|
5644
|
+
for (let $e = q; $e < te; $e++) {
|
|
5649
5645
|
const Ne = z.value[$e];
|
|
5650
5646
|
Ne.__fv_data_grid_group_row__ ? (re = 0, Ne.__fv_data_index__ = "") : Ne.__fv_data_grid_group_summary__ ? Ne.__fv_data_index__ = "" : (re++, Ne.__fv_data_index__ = re + (Y.value - 1) * he), Ne.__fv_index__ = $e, Ne.__fv_visible_index__ = $e, t.rowOption && t.rowOption.disabledField && (Ne.__fv_disabled__ = Ne[(_e = t.rowOption) == null ? void 0 : _e.disabledField]), Ce && (Ne[D.value] = $e), P.value.forEach((We) => {
|
|
5651
5647
|
const dt = I.get(We) || 0;
|
|
@@ -5660,7 +5656,7 @@ function Xo(t, n, e, o, r) {
|
|
|
5660
5656
|
Me.value.forEach((J, he) => (J.__fv_visible_index__ = he, J));
|
|
5661
5657
|
}
|
|
5662
5658
|
function X(J, he, xe = !1) {
|
|
5663
|
-
const q = (xe ? pe() : [...H.value]).filter((oe) => e.apply(oe)),
|
|
5659
|
+
const q = (xe ? pe() : [...H.value]).filter((oe) => e.apply(oe)), te = J && J.length ? q.filter((oe) => J.reduce((_e, Ce) => _e && Ce.filter(oe), !0)) : q, re = he && he.length ? te.sort((oe, _e) => {
|
|
5664
5660
|
const Ce = [...he], $e = Ce.shift();
|
|
5665
5661
|
let Ne = $e.compare(oe[$e.field], _e[$e.field]);
|
|
5666
5662
|
for (; Ne === 0 && Ce.length !== 0; ) {
|
|
@@ -5668,7 +5664,7 @@ function Xo(t, n, e, o, r) {
|
|
|
5668
5664
|
We && (Ne = We.compare(oe[We.field], _e[We.field]));
|
|
5669
5665
|
}
|
|
5670
5666
|
return Ne;
|
|
5671
|
-
}) :
|
|
5667
|
+
}) : te;
|
|
5672
5668
|
return be.value = re.map((oe, _e) => {
|
|
5673
5669
|
if (oe.__fv_data_grid_group_row__) {
|
|
5674
5670
|
const Ce = `group_of_${oe.__fv_data_grid_group_field__}_${oe.__fv_data_grid_group_value__}`;
|
|
@@ -5683,7 +5679,7 @@ function Xo(t, n, e, o, r) {
|
|
|
5683
5679
|
function G(J, he) {
|
|
5684
5680
|
return l.set(J, he), c.value = Array.from(l.values()), X([], c.value);
|
|
5685
5681
|
}
|
|
5686
|
-
function
|
|
5682
|
+
function ne(J) {
|
|
5687
5683
|
return l.delete(J), c.value = Array.from(l.values()), X([], c.value);
|
|
5688
5684
|
}
|
|
5689
5685
|
function ge(J, he) {
|
|
@@ -5743,7 +5739,7 @@ function Xo(t, n, e, o, r) {
|
|
|
5743
5739
|
F.value = xe, Te();
|
|
5744
5740
|
}
|
|
5745
5741
|
function ht(J, he, xe) {
|
|
5746
|
-
return (J && J.length ? be.value.filter((q,
|
|
5742
|
+
return (J && J.length ? be.value.filter((q, te) => J.reduce((re, oe) => re && oe.filter(q), !0)) : be.value).slice(he, xe);
|
|
5747
5743
|
}
|
|
5748
5744
|
function xt(J) {
|
|
5749
5745
|
const he = L(), xe = Math.ceil(U.value / he);
|
|
@@ -5833,7 +5829,7 @@ function Xo(t, n, e, o, r) {
|
|
|
5833
5829
|
removeDataItemById: Dt,
|
|
5834
5830
|
removeFilter: Ie,
|
|
5835
5831
|
removeHierarchyDataItem: Et,
|
|
5836
|
-
removeSorter:
|
|
5832
|
+
removeSorter: ne,
|
|
5837
5833
|
reOrderVisibleIndex: Oe,
|
|
5838
5834
|
setSorters: ie,
|
|
5839
5835
|
sorters: c,
|
|
@@ -5845,7 +5841,7 @@ function Xo(t, n, e, o, r) {
|
|
|
5845
5841
|
visibleDataItems: Me
|
|
5846
5842
|
};
|
|
5847
5843
|
}
|
|
5848
|
-
const
|
|
5844
|
+
const Xo = {
|
|
5849
5845
|
conditions: { type: Array, default: [] },
|
|
5850
5846
|
fields: { type: Array, default: [] },
|
|
5851
5847
|
key: { type: String, default: "" },
|
|
@@ -5854,7 +5850,7 @@ const Qo = {
|
|
|
5854
5850
|
*/
|
|
5855
5851
|
isControlInline: { type: Boolean, default: !0 }
|
|
5856
5852
|
};
|
|
5857
|
-
class
|
|
5853
|
+
class Qo {
|
|
5858
5854
|
constructor(n = { value: [] }) {
|
|
5859
5855
|
A(this, "editorType", "check-box");
|
|
5860
5856
|
A(this, "value");
|
|
@@ -5878,7 +5874,7 @@ class Ko {
|
|
|
5878
5874
|
return this.value.length === 0;
|
|
5879
5875
|
}
|
|
5880
5876
|
}
|
|
5881
|
-
class
|
|
5877
|
+
class Ko {
|
|
5882
5878
|
constructor(n = { textValue: "", value: "", valueField: "" }) {
|
|
5883
5879
|
A(this, "editorType", "combo-lookup");
|
|
5884
5880
|
A(this, "textValue");
|
|
@@ -5922,11 +5918,11 @@ function Ke(t) {
|
|
|
5922
5918
|
function Ae(t, n) {
|
|
5923
5919
|
return t instanceof Date ? new t.constructor(n) : new Date(n);
|
|
5924
5920
|
}
|
|
5925
|
-
function
|
|
5921
|
+
function Jo(t, n) {
|
|
5926
5922
|
const e = Ke(t);
|
|
5927
5923
|
return isNaN(n) ? Ae(t, NaN) : (n && e.setDate(e.getDate() + n), e);
|
|
5928
5924
|
}
|
|
5929
|
-
const
|
|
5925
|
+
const Zo = 6048e5, Pl = 864e5, Dl = 6e4, Vl = 36e5, Bl = 1e3;
|
|
5930
5926
|
let Rl = {};
|
|
5931
5927
|
function qt() {
|
|
5932
5928
|
return Rl;
|
|
@@ -5939,7 +5935,7 @@ function It(t, n) {
|
|
|
5939
5935
|
function zt(t) {
|
|
5940
5936
|
return It(t, { weekStartsOn: 1 });
|
|
5941
5937
|
}
|
|
5942
|
-
function
|
|
5938
|
+
function er(t) {
|
|
5943
5939
|
const n = Ke(t), e = n.getFullYear(), o = Ae(t, 0);
|
|
5944
5940
|
o.setFullYear(e + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
5945
5941
|
const r = zt(o), a = Ae(t, 0);
|
|
@@ -5947,7 +5943,7 @@ function tr(t) {
|
|
|
5947
5943
|
const i = zt(a);
|
|
5948
5944
|
return n.getTime() >= r.getTime() ? e + 1 : n.getTime() >= i.getTime() ? e : e - 1;
|
|
5949
5945
|
}
|
|
5950
|
-
function
|
|
5946
|
+
function Yn(t) {
|
|
5951
5947
|
const n = Ke(t);
|
|
5952
5948
|
return n.setHours(0, 0, 0, 0), n;
|
|
5953
5949
|
}
|
|
@@ -5966,11 +5962,11 @@ function ln(t) {
|
|
|
5966
5962
|
return e.setUTCFullYear(n.getFullYear()), +t - +e;
|
|
5967
5963
|
}
|
|
5968
5964
|
function Ll(t, n) {
|
|
5969
|
-
const e =
|
|
5965
|
+
const e = Yn(t), o = Yn(n), r = +e - ln(e), a = +o - ln(o);
|
|
5970
5966
|
return Math.round((r - a) / Pl);
|
|
5971
5967
|
}
|
|
5972
5968
|
function Hl(t) {
|
|
5973
|
-
const n =
|
|
5969
|
+
const n = er(t), e = Ae(t, 0);
|
|
5974
5970
|
return e.setFullYear(n, 0, 4), e.setHours(0, 0, 0, 0), zt(e);
|
|
5975
5971
|
}
|
|
5976
5972
|
function $l(t) {
|
|
@@ -6405,7 +6401,7 @@ const lu = /^(\d+)(th|st|nd|rd)?/i, uu = /\d+/i, cu = {
|
|
|
6405
6401
|
parsePatterns: bu,
|
|
6406
6402
|
defaultParseWidth: "any"
|
|
6407
6403
|
})
|
|
6408
|
-
},
|
|
6404
|
+
}, tr = {
|
|
6409
6405
|
code: "en-US",
|
|
6410
6406
|
formatDistance: zl,
|
|
6411
6407
|
formatLong: Ul,
|
|
@@ -6421,9 +6417,9 @@ function Cu(t) {
|
|
|
6421
6417
|
const n = Ke(t);
|
|
6422
6418
|
return Ll(n, jl(n)) + 1;
|
|
6423
6419
|
}
|
|
6424
|
-
function
|
|
6420
|
+
function nr(t) {
|
|
6425
6421
|
const n = Ke(t), e = +zt(n) - +Hl(n);
|
|
6426
|
-
return Math.round(e /
|
|
6422
|
+
return Math.round(e / Zo) + 1;
|
|
6427
6423
|
}
|
|
6428
6424
|
function Dn(t, n) {
|
|
6429
6425
|
var m, c, f, h;
|
|
@@ -6439,9 +6435,9 @@ function _u(t, n) {
|
|
|
6439
6435
|
const e = qt(), o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (s = n == null ? void 0 : n.locale) == null ? void 0 : s.options) == null ? void 0 : u.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((m = (l = e.locale) == null ? void 0 : l.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, r = Dn(t, n), a = Ae(t, 0);
|
|
6440
6436
|
return a.setFullYear(r, 0, o), a.setHours(0, 0, 0, 0), It(a, n);
|
|
6441
6437
|
}
|
|
6442
|
-
function
|
|
6438
|
+
function or(t, n) {
|
|
6443
6439
|
const e = Ke(t), o = +It(e, n) - +_u(e, n);
|
|
6444
|
-
return Math.round(o /
|
|
6440
|
+
return Math.round(o / Zo) + 1;
|
|
6445
6441
|
}
|
|
6446
6442
|
function Re(t, n) {
|
|
6447
6443
|
const e = t < 0 ? "-" : "", o = Math.abs(t).toString().padStart(n, "0");
|
|
@@ -6510,7 +6506,7 @@ const Ft = {
|
|
|
6510
6506
|
afternoon: "afternoon",
|
|
6511
6507
|
evening: "evening",
|
|
6512
6508
|
night: "night"
|
|
6513
|
-
},
|
|
6509
|
+
}, Un = {
|
|
6514
6510
|
// Era
|
|
6515
6511
|
G: function(t, n, e) {
|
|
6516
6512
|
const o = t.getFullYear() > 0 ? 1 : 0;
|
|
@@ -6545,7 +6541,7 @@ const Ft = {
|
|
|
6545
6541
|
},
|
|
6546
6542
|
// ISO week-numbering year
|
|
6547
6543
|
R: function(t, n) {
|
|
6548
|
-
const e =
|
|
6544
|
+
const e = er(t);
|
|
6549
6545
|
return Re(e, n.length);
|
|
6550
6546
|
},
|
|
6551
6547
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -6668,12 +6664,12 @@ const Ft = {
|
|
|
6668
6664
|
},
|
|
6669
6665
|
// Local week of year
|
|
6670
6666
|
w: function(t, n, e, o) {
|
|
6671
|
-
const r =
|
|
6667
|
+
const r = or(t, o);
|
|
6672
6668
|
return n === "wo" ? e.ordinalNumber(r, { unit: "week" }) : Re(r, n.length);
|
|
6673
6669
|
},
|
|
6674
6670
|
// ISO week of year
|
|
6675
6671
|
I: function(t, n, e) {
|
|
6676
|
-
const o =
|
|
6672
|
+
const o = nr(t);
|
|
6677
6673
|
return n === "Io" ? e.ordinalNumber(o, { unit: "week" }) : Re(o, n.length);
|
|
6678
6674
|
},
|
|
6679
6675
|
// Day of the month
|
|
@@ -6936,7 +6932,7 @@ const Ft = {
|
|
|
6936
6932
|
return "Z";
|
|
6937
6933
|
switch (n) {
|
|
6938
6934
|
case "X":
|
|
6939
|
-
return
|
|
6935
|
+
return Qn(o);
|
|
6940
6936
|
case "XXXX":
|
|
6941
6937
|
case "XX":
|
|
6942
6938
|
return Lt(o);
|
|
@@ -6951,7 +6947,7 @@ const Ft = {
|
|
|
6951
6947
|
const o = t.getTimezoneOffset();
|
|
6952
6948
|
switch (n) {
|
|
6953
6949
|
case "x":
|
|
6954
|
-
return
|
|
6950
|
+
return Qn(o);
|
|
6955
6951
|
case "xxxx":
|
|
6956
6952
|
case "xx":
|
|
6957
6953
|
return Lt(o);
|
|
@@ -6968,7 +6964,7 @@ const Ft = {
|
|
|
6968
6964
|
case "O":
|
|
6969
6965
|
case "OO":
|
|
6970
6966
|
case "OOO":
|
|
6971
|
-
return "GMT" +
|
|
6967
|
+
return "GMT" + Xn(o, ":");
|
|
6972
6968
|
case "OOOO":
|
|
6973
6969
|
default:
|
|
6974
6970
|
return "GMT" + Lt(o, ":");
|
|
@@ -6981,7 +6977,7 @@ const Ft = {
|
|
|
6981
6977
|
case "z":
|
|
6982
6978
|
case "zz":
|
|
6983
6979
|
case "zzz":
|
|
6984
|
-
return "GMT" +
|
|
6980
|
+
return "GMT" + Xn(o, ":");
|
|
6985
6981
|
case "zzzz":
|
|
6986
6982
|
default:
|
|
6987
6983
|
return "GMT" + Lt(o, ":");
|
|
@@ -6998,18 +6994,18 @@ const Ft = {
|
|
|
6998
6994
|
return Re(o, n.length);
|
|
6999
6995
|
}
|
|
7000
6996
|
};
|
|
7001
|
-
function
|
|
6997
|
+
function Xn(t, n = "") {
|
|
7002
6998
|
const e = t > 0 ? "-" : "+", o = Math.abs(t), r = Math.trunc(o / 60), a = o % 60;
|
|
7003
6999
|
return a === 0 ? e + String(r) : e + String(r) + n + Re(a, 2);
|
|
7004
7000
|
}
|
|
7005
|
-
function
|
|
7001
|
+
function Qn(t, n) {
|
|
7006
7002
|
return t % 60 === 0 ? (t > 0 ? "-" : "+") + Re(Math.abs(t) / 60, 2) : Lt(t, n);
|
|
7007
7003
|
}
|
|
7008
7004
|
function Lt(t, n = "") {
|
|
7009
7005
|
const e = t > 0 ? "-" : "+", o = Math.abs(t), r = Re(Math.trunc(o / 60), 2), a = Re(o % 60, 2);
|
|
7010
7006
|
return e + r + n + a;
|
|
7011
7007
|
}
|
|
7012
|
-
const
|
|
7008
|
+
const Kn = (t, n) => {
|
|
7013
7009
|
switch (t) {
|
|
7014
7010
|
case "P":
|
|
7015
7011
|
return n.date({ width: "short" });
|
|
@@ -7021,7 +7017,7 @@ const Jn = (t, n) => {
|
|
|
7021
7017
|
default:
|
|
7022
7018
|
return n.date({ width: "full" });
|
|
7023
7019
|
}
|
|
7024
|
-
},
|
|
7020
|
+
}, rr = (t, n) => {
|
|
7025
7021
|
switch (t) {
|
|
7026
7022
|
case "p":
|
|
7027
7023
|
return n.time({ width: "short" });
|
|
@@ -7036,7 +7032,7 @@ const Jn = (t, n) => {
|
|
|
7036
7032
|
}, xu = (t, n) => {
|
|
7037
7033
|
const e = t.match(/(P+)(p+)?/) || [], o = e[1], r = e[2];
|
|
7038
7034
|
if (!r)
|
|
7039
|
-
return
|
|
7035
|
+
return Kn(t, n);
|
|
7040
7036
|
let a;
|
|
7041
7037
|
switch (o) {
|
|
7042
7038
|
case "P":
|
|
@@ -7053,15 +7049,15 @@ const Jn = (t, n) => {
|
|
|
7053
7049
|
a = n.dateTime({ width: "full" });
|
|
7054
7050
|
break;
|
|
7055
7051
|
}
|
|
7056
|
-
return a.replace("{{date}}",
|
|
7052
|
+
return a.replace("{{date}}", Kn(o, n)).replace("{{time}}", rr(r, n));
|
|
7057
7053
|
}, Sn = {
|
|
7058
|
-
p:
|
|
7054
|
+
p: rr,
|
|
7059
7055
|
P: xu
|
|
7060
7056
|
}, Su = /^D+$/, Eu = /^Y+$/, Tu = ["D", "DD", "YY", "YYYY"];
|
|
7061
|
-
function
|
|
7057
|
+
function ar(t) {
|
|
7062
7058
|
return Su.test(t);
|
|
7063
7059
|
}
|
|
7064
|
-
function
|
|
7060
|
+
function ir(t) {
|
|
7065
7061
|
return Eu.test(t);
|
|
7066
7062
|
}
|
|
7067
7063
|
function En(t, n, e) {
|
|
@@ -7073,9 +7069,9 @@ function Fu(t, n, e) {
|
|
|
7073
7069
|
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${o} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
7074
7070
|
}
|
|
7075
7071
|
const ku = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Mu = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ou = /^'([^]*?)'?$/, Iu = /''/g, Nu = /[a-zA-Z]/;
|
|
7076
|
-
function
|
|
7072
|
+
function sr(t, n, e) {
|
|
7077
7073
|
var m, c, f, h;
|
|
7078
|
-
const o = qt(), r = o.locale ??
|
|
7074
|
+
const o = qt(), r = o.locale ?? tr, a = o.firstWeekContainsDate ?? ((c = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, i = o.weekStartsOn ?? ((h = (f = o.locale) == null ? void 0 : f.options) == null ? void 0 : h.weekStartsOn) ?? 0, s = Ke(t);
|
|
7079
7075
|
if (!Wl(s))
|
|
7080
7076
|
throw new RangeError("Invalid time value");
|
|
7081
7077
|
let u = n.match(Mu).map((d) => {
|
|
@@ -7091,7 +7087,7 @@ function lr(t, n, e) {
|
|
|
7091
7087
|
const M = d[0];
|
|
7092
7088
|
if (M === "'")
|
|
7093
7089
|
return { isToken: !1, value: Pu(d) };
|
|
7094
|
-
if (
|
|
7090
|
+
if (Un[M])
|
|
7095
7091
|
return { isToken: !0, value: d };
|
|
7096
7092
|
if (M.match(Nu))
|
|
7097
7093
|
throw new RangeError(
|
|
@@ -7108,8 +7104,8 @@ function lr(t, n, e) {
|
|
|
7108
7104
|
return u.map((d) => {
|
|
7109
7105
|
if (!d.isToken) return d.value;
|
|
7110
7106
|
const M = d.value;
|
|
7111
|
-
(
|
|
7112
|
-
const F =
|
|
7107
|
+
(ir(M) || ar(M)) && En(M, n, String(t));
|
|
7108
|
+
const F = Un[M[0]];
|
|
7113
7109
|
return F(s, M, r.localize, l);
|
|
7114
7110
|
}).join("");
|
|
7115
7111
|
}
|
|
@@ -7138,7 +7134,7 @@ function Bu(t, n) {
|
|
|
7138
7134
|
), e;
|
|
7139
7135
|
}
|
|
7140
7136
|
const Ru = 10;
|
|
7141
|
-
class
|
|
7137
|
+
class lr {
|
|
7142
7138
|
constructor() {
|
|
7143
7139
|
A(this, "subPriority", 0);
|
|
7144
7140
|
}
|
|
@@ -7146,7 +7142,7 @@ class ur {
|
|
|
7146
7142
|
return !0;
|
|
7147
7143
|
}
|
|
7148
7144
|
}
|
|
7149
|
-
class Lu extends
|
|
7145
|
+
class Lu extends lr {
|
|
7150
7146
|
constructor(n, e, o, r, a) {
|
|
7151
7147
|
super(), this.value = n, this.validateValue = e, this.setValue = o, this.priority = r, a && (this.subPriority = a);
|
|
7152
7148
|
}
|
|
@@ -7157,7 +7153,7 @@ class Lu extends ur {
|
|
|
7157
7153
|
return this.setValue(n, e, this.value, o);
|
|
7158
7154
|
}
|
|
7159
7155
|
}
|
|
7160
|
-
class Hu extends
|
|
7156
|
+
class Hu extends lr {
|
|
7161
7157
|
constructor() {
|
|
7162
7158
|
super(...arguments);
|
|
7163
7159
|
A(this, "priority", Ru);
|
|
@@ -7281,7 +7277,7 @@ function wt(t, n) {
|
|
|
7281
7277
|
rest: n.slice(e[0].length)
|
|
7282
7278
|
};
|
|
7283
7279
|
}
|
|
7284
|
-
function
|
|
7280
|
+
function ur(t) {
|
|
7285
7281
|
return je(Ge.anyDigitsSigned, t);
|
|
7286
7282
|
}
|
|
7287
7283
|
function qe(t, n) {
|
|
@@ -7329,7 +7325,7 @@ function Vn(t) {
|
|
|
7329
7325
|
return 0;
|
|
7330
7326
|
}
|
|
7331
7327
|
}
|
|
7332
|
-
function
|
|
7328
|
+
function cr(t, n) {
|
|
7333
7329
|
const e = n > 0, o = e ? n : 1 - n;
|
|
7334
7330
|
let r;
|
|
7335
7331
|
if (o <= 50)
|
|
@@ -7340,7 +7336,7 @@ function dr(t, n) {
|
|
|
7340
7336
|
}
|
|
7341
7337
|
return e ? r : 1 - r;
|
|
7342
7338
|
}
|
|
7343
|
-
function
|
|
7339
|
+
function dr(t) {
|
|
7344
7340
|
return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
|
|
7345
7341
|
}
|
|
7346
7342
|
class Wu extends De {
|
|
@@ -7374,7 +7370,7 @@ class Wu extends De {
|
|
|
7374
7370
|
set(e, o, r) {
|
|
7375
7371
|
const a = e.getFullYear();
|
|
7376
7372
|
if (r.isTwoDigitYear) {
|
|
7377
|
-
const s =
|
|
7373
|
+
const s = cr(
|
|
7378
7374
|
r.year,
|
|
7379
7375
|
a
|
|
7380
7376
|
);
|
|
@@ -7429,7 +7425,7 @@ class ju extends De {
|
|
|
7429
7425
|
set(e, o, r, a) {
|
|
7430
7426
|
const i = Dn(e, a);
|
|
7431
7427
|
if (r.isTwoDigitYear) {
|
|
7432
|
-
const u =
|
|
7428
|
+
const u = cr(
|
|
7433
7429
|
r.year,
|
|
7434
7430
|
i
|
|
7435
7431
|
);
|
|
@@ -7735,7 +7731,7 @@ class Uu extends De {
|
|
|
7735
7731
|
}
|
|
7736
7732
|
}
|
|
7737
7733
|
function Xu(t, n, e) {
|
|
7738
|
-
const o = Ke(t), r =
|
|
7734
|
+
const o = Ke(t), r = or(o, e) - n;
|
|
7739
7735
|
return o.setDate(o.getDate() - r * 7), o;
|
|
7740
7736
|
}
|
|
7741
7737
|
class Qu extends De {
|
|
@@ -7776,7 +7772,7 @@ class Qu extends De {
|
|
|
7776
7772
|
}
|
|
7777
7773
|
}
|
|
7778
7774
|
function Ku(t, n) {
|
|
7779
|
-
const e = Ke(t), o =
|
|
7775
|
+
const e = Ke(t), o = nr(e) - n;
|
|
7780
7776
|
return e.setDate(e.getDate() - o * 7), e;
|
|
7781
7777
|
}
|
|
7782
7778
|
class Ju extends De {
|
|
@@ -7862,7 +7858,7 @@ class tc extends De {
|
|
|
7862
7858
|
}
|
|
7863
7859
|
}
|
|
7864
7860
|
validate(e, o) {
|
|
7865
|
-
const r = e.getFullYear(), a =
|
|
7861
|
+
const r = e.getFullYear(), a = dr(r), i = e.getMonth();
|
|
7866
7862
|
return a ? o >= 1 && o <= ec[i] : o >= 1 && o <= Zu[i];
|
|
7867
7863
|
}
|
|
7868
7864
|
set(e, o, r) {
|
|
@@ -7905,7 +7901,7 @@ class nc extends De {
|
|
|
7905
7901
|
}
|
|
7906
7902
|
validate(e, o) {
|
|
7907
7903
|
const r = e.getFullYear();
|
|
7908
|
-
return
|
|
7904
|
+
return dr(r) ? o >= 1 && o <= 366 : o >= 1 && o <= 365;
|
|
7909
7905
|
}
|
|
7910
7906
|
set(e, o, r) {
|
|
7911
7907
|
return e.setMonth(0, r), e.setHours(0, 0, 0, 0), e;
|
|
@@ -7914,7 +7910,7 @@ class nc extends De {
|
|
|
7914
7910
|
function Bn(t, n, e) {
|
|
7915
7911
|
var c, f, h, d;
|
|
7916
7912
|
const o = qt(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((f = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : f.weekStartsOn) ?? o.weekStartsOn ?? ((d = (h = o.locale) == null ? void 0 : h.options) == null ? void 0 : d.weekStartsOn) ?? 0, a = Ke(t), i = a.getDay(), u = (n % 7 + 7) % 7, l = 7 - r, m = n < 0 || n > 6 ? n - (i + l) % 7 : (u + l) % 7 - (i + l) % 7;
|
|
7917
|
-
return
|
|
7913
|
+
return Jo(a, m);
|
|
7918
7914
|
}
|
|
7919
7915
|
class oc extends De {
|
|
7920
7916
|
constructor() {
|
|
@@ -8085,7 +8081,7 @@ class ac extends De {
|
|
|
8085
8081
|
}
|
|
8086
8082
|
function ic(t, n) {
|
|
8087
8083
|
const e = Ke(t), o = Vu(e), r = n - o;
|
|
8088
|
-
return
|
|
8084
|
+
return Jo(e, r);
|
|
8089
8085
|
}
|
|
8090
8086
|
class sc extends De {
|
|
8091
8087
|
constructor() {
|
|
@@ -8535,7 +8531,7 @@ class wc extends De {
|
|
|
8535
8531
|
A(this, "incompatibleTokens", "*");
|
|
8536
8532
|
}
|
|
8537
8533
|
parse(e) {
|
|
8538
|
-
return
|
|
8534
|
+
return ur(e);
|
|
8539
8535
|
}
|
|
8540
8536
|
set(e, o, r) {
|
|
8541
8537
|
return [Ae(e, r * 1e3), { timestampIsSet: !0 }];
|
|
@@ -8548,7 +8544,7 @@ class Cc extends De {
|
|
|
8548
8544
|
A(this, "incompatibleTokens", "*");
|
|
8549
8545
|
}
|
|
8550
8546
|
parse(e) {
|
|
8551
|
-
return
|
|
8547
|
+
return ur(e);
|
|
8552
8548
|
}
|
|
8553
8549
|
set(e, o, r) {
|
|
8554
8550
|
return [Ae(e, r), { timestampIsSet: !0 }];
|
|
@@ -8587,9 +8583,9 @@ const _c = {
|
|
|
8587
8583
|
t: new wc(),
|
|
8588
8584
|
T: new Cc()
|
|
8589
8585
|
}, xc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Sc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ec = /^'([^]*?)'?$/, Tc = /''/g, Fc = /\S/, kc = /[a-zA-Z]/;
|
|
8590
|
-
function
|
|
8586
|
+
function fr(t, n, e, o) {
|
|
8591
8587
|
var M, F, y, S;
|
|
8592
|
-
const r = Du(), a = r.locale ??
|
|
8588
|
+
const r = Du(), a = r.locale ?? tr, i = r.firstWeekContainsDate ?? ((F = (M = r.locale) == null ? void 0 : M.options) == null ? void 0 : F.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((S = (y = r.locale) == null ? void 0 : y.options) == null ? void 0 : S.weekStartsOn) ?? 0;
|
|
8593
8589
|
if (n === "")
|
|
8594
8590
|
return t === "" ? Ke(e) : Ae(e, NaN);
|
|
8595
8591
|
const u = {
|
|
@@ -8605,7 +8601,7 @@ function mr(t, n, e, o) {
|
|
|
8605
8601
|
return g;
|
|
8606
8602
|
}).join("").match(xc), c = [];
|
|
8607
8603
|
for (let g of m) {
|
|
8608
|
-
|
|
8604
|
+
ir(g) && En(g, n, t), ar(g) && En(g, n, t);
|
|
8609
8605
|
const T = g[0], w = _c[T];
|
|
8610
8606
|
if (w) {
|
|
8611
8607
|
const { incompatibleTokens: v } = w;
|
|
@@ -8662,7 +8658,7 @@ function mr(t, n, e, o) {
|
|
|
8662
8658
|
function Mc(t) {
|
|
8663
8659
|
return t.match(Ec)[1].replace(Tc, "'");
|
|
8664
8660
|
}
|
|
8665
|
-
class
|
|
8661
|
+
class mr {
|
|
8666
8662
|
constructor(n = { value: "", displayFormat: "", valueFormat: "" }) {
|
|
8667
8663
|
A(this, "editorType", "date-picker");
|
|
8668
8664
|
A(this, "value");
|
|
@@ -8679,8 +8675,8 @@ class hr {
|
|
|
8679
8675
|
}
|
|
8680
8676
|
getDisplayText() {
|
|
8681
8677
|
if (typeof this.value == "string" && this.value) {
|
|
8682
|
-
const n =
|
|
8683
|
-
return
|
|
8678
|
+
const n = fr(this.value, this.valueFormat, /* @__PURE__ */ new Date());
|
|
8679
|
+
return sr(n, this.displayFormat);
|
|
8684
8680
|
}
|
|
8685
8681
|
return this.getValue();
|
|
8686
8682
|
}
|
|
@@ -8715,7 +8711,7 @@ class cn {
|
|
|
8715
8711
|
return !this.begin || !this.end;
|
|
8716
8712
|
}
|
|
8717
8713
|
}
|
|
8718
|
-
class
|
|
8714
|
+
class hr {
|
|
8719
8715
|
constructor(n = { value: "", displayFormat: "", valueFormat: "" }) {
|
|
8720
8716
|
A(this, "editorType", "datetime-picker");
|
|
8721
8717
|
A(this, "value");
|
|
@@ -8732,8 +8728,8 @@ class pr {
|
|
|
8732
8728
|
}
|
|
8733
8729
|
getDisplayText() {
|
|
8734
8730
|
if (typeof this.value == "string" && this.value) {
|
|
8735
|
-
const n =
|
|
8736
|
-
return
|
|
8731
|
+
const n = fr(this.value, this.valueFormat, /* @__PURE__ */ new Date());
|
|
8732
|
+
return sr(n, this.displayFormat);
|
|
8737
8733
|
}
|
|
8738
8734
|
return this.getValue();
|
|
8739
8735
|
}
|
|
@@ -8744,7 +8740,7 @@ class pr {
|
|
|
8744
8740
|
return !this.value;
|
|
8745
8741
|
}
|
|
8746
8742
|
}
|
|
8747
|
-
class
|
|
8743
|
+
class pr {
|
|
8748
8744
|
constructor(n = { value: "", valueList: [] }) {
|
|
8749
8745
|
A(this, "editorType", "combo-list");
|
|
8750
8746
|
A(this, "value");
|
|
@@ -8829,7 +8825,7 @@ class Oc {
|
|
|
8829
8825
|
return !this.displayText && !this.value.length;
|
|
8830
8826
|
}
|
|
8831
8827
|
}
|
|
8832
|
-
class
|
|
8828
|
+
class vr {
|
|
8833
8829
|
constructor(n = { mapFields: [], value: "", valueField: "", isInputText: !1, helpId: "" }) {
|
|
8834
8830
|
A(this, "editorType", "lookup");
|
|
8835
8831
|
A(this, "helpId");
|
|
@@ -8857,7 +8853,7 @@ class gr {
|
|
|
8857
8853
|
return !this.mapFields.length;
|
|
8858
8854
|
}
|
|
8859
8855
|
}
|
|
8860
|
-
class
|
|
8856
|
+
class gr {
|
|
8861
8857
|
constructor(n = { value: "" }) {
|
|
8862
8858
|
A(this, "editorType", "month-picker");
|
|
8863
8859
|
A(this, "value");
|
|
@@ -8880,7 +8876,7 @@ class yr {
|
|
|
8880
8876
|
return !this.value;
|
|
8881
8877
|
}
|
|
8882
8878
|
}
|
|
8883
|
-
class
|
|
8879
|
+
class yr {
|
|
8884
8880
|
constructor(n = { begin: "", end: "" }) {
|
|
8885
8881
|
A(this, "editorType", "month-range");
|
|
8886
8882
|
A(this, "begin");
|
|
@@ -8904,7 +8900,7 @@ class br {
|
|
|
8904
8900
|
return !this.begin || !this.end;
|
|
8905
8901
|
}
|
|
8906
8902
|
}
|
|
8907
|
-
class
|
|
8903
|
+
class br {
|
|
8908
8904
|
constructor(n = { begin: null, end: null }) {
|
|
8909
8905
|
A(this, "editorType", "number-range");
|
|
8910
8906
|
A(this, "begin");
|
|
@@ -8931,7 +8927,7 @@ class wr {
|
|
|
8931
8927
|
return this.begin == null && this.end == null;
|
|
8932
8928
|
}
|
|
8933
8929
|
}
|
|
8934
|
-
class
|
|
8930
|
+
class wr {
|
|
8935
8931
|
constructor(n = { value: "" }) {
|
|
8936
8932
|
A(this, "editorType", "number-spinner");
|
|
8937
8933
|
A(this, "value");
|
|
@@ -8955,7 +8951,7 @@ class Cr {
|
|
|
8955
8951
|
return this.value == null || isNaN(this.value);
|
|
8956
8952
|
}
|
|
8957
8953
|
}
|
|
8958
|
-
class
|
|
8954
|
+
class Cr {
|
|
8959
8955
|
constructor(n = { value: null, valueList: [] }) {
|
|
8960
8956
|
A(this, "editorType", "radio-group");
|
|
8961
8957
|
A(this, "value");
|
|
@@ -9003,45 +8999,45 @@ class dn {
|
|
|
9003
8999
|
return !this.value;
|
|
9004
9000
|
}
|
|
9005
9001
|
}
|
|
9006
|
-
function
|
|
9002
|
+
function _r() {
|
|
9007
9003
|
function t(n, e) {
|
|
9008
9004
|
switch (n) {
|
|
9009
9005
|
case "check-box":
|
|
9010
|
-
return new
|
|
9006
|
+
return new Qo(e);
|
|
9011
9007
|
case "combo-list":
|
|
9012
|
-
return new
|
|
9008
|
+
return new pr(e);
|
|
9013
9009
|
case "combo-lookup":
|
|
9014
|
-
return new
|
|
9010
|
+
return new Ko(e);
|
|
9015
9011
|
case "input-group":
|
|
9016
9012
|
return new Oc(e);
|
|
9017
9013
|
case "date-picker":
|
|
9018
|
-
return new
|
|
9014
|
+
return new mr(e);
|
|
9019
9015
|
case "date-range":
|
|
9020
9016
|
return new cn(e);
|
|
9021
9017
|
case "datetime-picker":
|
|
9022
|
-
return new
|
|
9018
|
+
return new hr(e);
|
|
9023
9019
|
case "datetime-range":
|
|
9024
9020
|
return new cn(e);
|
|
9025
9021
|
case "lookup":
|
|
9026
|
-
return new
|
|
9022
|
+
return new vr(e);
|
|
9027
9023
|
case "month-picker":
|
|
9028
|
-
return new
|
|
9024
|
+
return new gr(e);
|
|
9029
9025
|
case "month-range":
|
|
9030
|
-
return new
|
|
9026
|
+
return new yr(e);
|
|
9031
9027
|
case "number-range":
|
|
9032
|
-
return new
|
|
9028
|
+
return new br(e);
|
|
9033
9029
|
case "number-spinner":
|
|
9034
|
-
return new
|
|
9030
|
+
return new wr(e);
|
|
9035
9031
|
case "radio-group":
|
|
9036
|
-
return new
|
|
9032
|
+
return new Cr(e);
|
|
9037
9033
|
default:
|
|
9038
9034
|
return new dn(e);
|
|
9039
9035
|
}
|
|
9040
9036
|
}
|
|
9041
9037
|
return { createConditionValue: t };
|
|
9042
9038
|
}
|
|
9043
|
-
function
|
|
9044
|
-
const e = E(t.fields), o = E([]), r = /* @__PURE__ */ new Map(), { createConditionValue: a } =
|
|
9039
|
+
function xr(t, n) {
|
|
9040
|
+
const e = E(t.fields), o = E([]), r = /* @__PURE__ */ new Map(), { createConditionValue: a } = _r();
|
|
9045
9041
|
function i(m) {
|
|
9046
9042
|
switch (m.editor ? m.editor.type : "input-group") {
|
|
9047
9043
|
case "date-range":
|
|
@@ -9103,14 +9099,14 @@ function Ic(t, n, e) {
|
|
|
9103
9099
|
resizeObserver: o
|
|
9104
9100
|
};
|
|
9105
9101
|
}
|
|
9106
|
-
const
|
|
9102
|
+
const Jn = /* @__PURE__ */ Le({
|
|
9107
9103
|
name: "FConditionFields",
|
|
9108
|
-
props:
|
|
9104
|
+
props: Xo,
|
|
9109
9105
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
9110
9106
|
setup(t, n) {
|
|
9111
9107
|
const e = E(), o = E(t.key);
|
|
9112
9108
|
E(t.isControlInline);
|
|
9113
|
-
const r = E(t.conditions), a =
|
|
9109
|
+
const r = E(t.conditions), a = xr(t), {
|
|
9114
9110
|
initialConditionValue: i,
|
|
9115
9111
|
fieldMap: s,
|
|
9116
9112
|
loadFieldConfigs: u
|
|
@@ -9118,7 +9114,7 @@ const Zn = /* @__PURE__ */ Le({
|
|
|
9118
9114
|
conditionClass: m,
|
|
9119
9115
|
resizeObserver: c
|
|
9120
9116
|
} = l;
|
|
9121
|
-
u(!0), i(r.value),
|
|
9117
|
+
u(!0), i(r.value), no(() => {
|
|
9122
9118
|
var F;
|
|
9123
9119
|
(F = c.value) == null || F.unobserve(e.value);
|
|
9124
9120
|
}), Fe(() => t.conditions, () => {
|
|
@@ -9152,7 +9148,7 @@ const Zn = /* @__PURE__ */ Le({
|
|
|
9152
9148
|
F.value.end = _, d(F, _);
|
|
9153
9149
|
}, g = !1);
|
|
9154
9150
|
let T = ((O = y == null ? void 0 : y.appearance) == null ? void 0 : O.class) || h.value;
|
|
9155
|
-
return y != null && y.multiLineLabel && (T = T + " farris-group-multi-label"), x(
|
|
9151
|
+
return y != null && y.multiLineLabel && (T = T + " farris-group-multi-label"), x(ya, {
|
|
9156
9152
|
id: S,
|
|
9157
9153
|
key: S,
|
|
9158
9154
|
customClass: T,
|
|
@@ -9243,7 +9239,7 @@ function Dc(t, n, e) {
|
|
|
9243
9239
|
}
|
|
9244
9240
|
return { getCompareOperators: r };
|
|
9245
9241
|
}
|
|
9246
|
-
function
|
|
9242
|
+
function Sr() {
|
|
9247
9243
|
const t = E({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), n = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map();
|
|
9248
9244
|
let o = 0;
|
|
9249
9245
|
function r() {
|
|
@@ -9458,15 +9454,15 @@ function Vc(t, n, e) {
|
|
|
9458
9454
|
}
|
|
9459
9455
|
const yn = /* @__PURE__ */ Le({
|
|
9460
9456
|
name: "FConditionList",
|
|
9461
|
-
props:
|
|
9457
|
+
props: Xo,
|
|
9462
9458
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
9463
9459
|
setup(t, n) {
|
|
9464
|
-
const e = E(t.key), o = E(t.conditions), r =
|
|
9460
|
+
const e = E(t.key), o = E(t.conditions), r = xr(t), {
|
|
9465
9461
|
convertToSingleControl: a,
|
|
9466
9462
|
fields: i,
|
|
9467
9463
|
fieldMap: s,
|
|
9468
9464
|
loadFieldConfigs: u
|
|
9469
|
-
} = r, l =
|
|
9465
|
+
} = r, l = Sr(), {
|
|
9470
9466
|
addCondition: m,
|
|
9471
9467
|
changeGroupRelation: c,
|
|
9472
9468
|
getConditions: f,
|
|
@@ -9479,7 +9475,7 @@ const yn = /* @__PURE__ */ Le({
|
|
|
9479
9475
|
unGroup: g
|
|
9480
9476
|
} = l, {
|
|
9481
9477
|
createConditionValue: T
|
|
9482
|
-
} =
|
|
9478
|
+
} = _r(), w = Vc(t, n, l), {
|
|
9483
9479
|
selectedItems: v,
|
|
9484
9480
|
toggleSelect: p
|
|
9485
9481
|
} = w, {
|
|
@@ -9623,7 +9619,7 @@ const yn = /* @__PURE__ */ Le({
|
|
|
9623
9619
|
}
|
|
9624
9620
|
});
|
|
9625
9621
|
yn.install = (t) => {
|
|
9626
|
-
t.component(
|
|
9622
|
+
t.component(Jn.name, Jn).component(yn.name, yn);
|
|
9627
9623
|
};
|
|
9628
9624
|
const Bc = [
|
|
9629
9625
|
"equal",
|
|
@@ -9756,38 +9752,38 @@ const Bc = [
|
|
|
9756
9752
|
["number", Wc],
|
|
9757
9753
|
["text", Rc]
|
|
9758
9754
|
]);
|
|
9759
|
-
function
|
|
9760
|
-
const t = E([]), n = /* @__PURE__ */ new Map(), { loadConditionGroup: e } =
|
|
9755
|
+
function Er() {
|
|
9756
|
+
const t = E([]), n = /* @__PURE__ */ new Map(), { loadConditionGroup: e } = Sr();
|
|
9761
9757
|
function o(F, y) {
|
|
9762
9758
|
switch (F) {
|
|
9763
9759
|
case "check-box":
|
|
9764
|
-
return new
|
|
9760
|
+
return new Qo({ value: y });
|
|
9765
9761
|
case "combo-list":
|
|
9766
|
-
return new
|
|
9762
|
+
return new pr({ value: y });
|
|
9767
9763
|
case "combo-lookup":
|
|
9768
|
-
return new
|
|
9764
|
+
return new Ko({ value: y });
|
|
9769
9765
|
case "input-group":
|
|
9770
9766
|
return new dn({ value: y });
|
|
9771
9767
|
case "date-picker":
|
|
9772
|
-
return new
|
|
9768
|
+
return new mr({ value: y });
|
|
9773
9769
|
case "date-range":
|
|
9774
9770
|
return new cn({ value: y });
|
|
9775
9771
|
case "datetime-picker":
|
|
9776
|
-
return new
|
|
9772
|
+
return new hr({ value: y });
|
|
9777
9773
|
case "datetime-range":
|
|
9778
9774
|
return new cn({ value: y });
|
|
9779
9775
|
case "lookup":
|
|
9780
|
-
return new
|
|
9776
|
+
return new vr({ value: y });
|
|
9781
9777
|
case "month-picker":
|
|
9782
|
-
return new
|
|
9778
|
+
return new gr({ value: y });
|
|
9783
9779
|
case "month-range":
|
|
9784
|
-
return new
|
|
9780
|
+
return new yr({ value: y });
|
|
9785
9781
|
case "number-range":
|
|
9786
|
-
return new
|
|
9782
|
+
return new br({ value: y });
|
|
9787
9783
|
case "number-spinner":
|
|
9788
|
-
return new
|
|
9784
|
+
return new wr({ value: y });
|
|
9789
9785
|
case "radio-group":
|
|
9790
|
-
return new
|
|
9786
|
+
return new Cr({ value: y });
|
|
9791
9787
|
default:
|
|
9792
9788
|
return new dn({ value: y });
|
|
9793
9789
|
}
|
|
@@ -9856,7 +9852,7 @@ function Tr() {
|
|
|
9856
9852
|
}
|
|
9857
9853
|
return { addColumnFilter: s, apply: M, clearCondition: m, conditions: t, getFilterEditorType: i, removeColumnFilter: u, removeCondition: l };
|
|
9858
9854
|
}
|
|
9859
|
-
function
|
|
9855
|
+
function Tr(t) {
|
|
9860
9856
|
E(t.selection.showCheckbox || !1);
|
|
9861
9857
|
const n = W(() => {
|
|
9862
9858
|
var i;
|
|
@@ -9872,7 +9868,7 @@ function Fr(t) {
|
|
|
9872
9868
|
}
|
|
9873
9869
|
function Ac(t, n, e, o, r) {
|
|
9874
9870
|
var S, g, T, w, v, p;
|
|
9875
|
-
const { getDifference: a, isBInA: i } =
|
|
9871
|
+
const { getDifference: a, isBInA: i } = oo(), { dataView: s, visibleDataItems: u } = e, { idField: l } = o, m = E(((g = (S = t.hierarchy) == null ? void 0 : S.cascadeOption) == null ? void 0 : g.autoCheckChildren) || !1), c = E(((w = (T = t.hierarchy) == null ? void 0 : T.cascadeOption) == null ? void 0 : w.autoCheckParent) || !1), f = E(((p = (v = t.hierarchy) == null ? void 0 : v.cascadeOption) == null ? void 0 : p.selectionRange) || "All");
|
|
9876
9872
|
Fe(() => {
|
|
9877
9873
|
var b;
|
|
9878
9874
|
return (b = t.hierarchy) == null ? void 0 : b.cascadeOption;
|
|
@@ -9912,9 +9908,9 @@ function Ac(t, n, e, o, r) {
|
|
|
9912
9908
|
}
|
|
9913
9909
|
return { autoCheckChildren: m, autoCheckParent: c, interactAfterCheckHierarchyItem: y };
|
|
9914
9910
|
}
|
|
9915
|
-
function
|
|
9916
|
-
const { getDifference: i, isBInA: s } =
|
|
9917
|
-
|
|
9911
|
+
function Fr(t, n, e, o, r, a) {
|
|
9912
|
+
const { getDifference: i, isBInA: s } = oo();
|
|
9913
|
+
ro();
|
|
9918
9914
|
const { dataView: u, fold: l, hasRealChildren: m, unFold: c, reOrderVisibleIndex: f } = e, { select: h, selectDataItem: d, unSelect: M, unSelectDataItem: F, indeterminate: y, indeterminateDataItem: S, getSelectedItems: g, selectedValues: T, currentSelectedDataId: w } = r, { autoCheckChildren: v, autoCheckParent: p, interactAfterCheckHierarchyItem: b } = Ac(t, n, e, o), { idField: C } = o;
|
|
9919
9915
|
function O() {
|
|
9920
9916
|
return u.value.filter((B) => !!B.__fv_checked__).map((B) => B.__fv_index__);
|
|
@@ -9989,7 +9985,7 @@ function kr(t, n, e, o, r, a) {
|
|
|
9989
9985
|
}
|
|
9990
9986
|
return { getNextSelectableHierarchyItemId: R, toggleSelectHierarchyItem: N };
|
|
9991
9987
|
}
|
|
9992
|
-
function
|
|
9988
|
+
function kr(t, n, e, o, r, a, i, s, u) {
|
|
9993
9989
|
var Et;
|
|
9994
9990
|
const { dataView: l, visibleDataItems: m } = n, { getVisualData: c, maxVisibleRowIndex: f, minVisibleRowIndex: h } = r, d = W(() => o.value.primaryColumnsWidth), M = W(() => o.value.leftColumnsWidth), F = W(() => o.value.rightColumnsWidth), y = ((Et = t.rowOption) == null ? void 0 : Et.height) || 28, S = E(0), g = E(0);
|
|
9995
9991
|
let T = 0, w = a.value - 1;
|
|
@@ -10069,7 +10065,7 @@ function Mr(t, n, e, o, r, a, i, s, u) {
|
|
|
10069
10065
|
function Z() {
|
|
10070
10066
|
S.value = 0, T = 0, w = a.value - 1, P();
|
|
10071
10067
|
}
|
|
10072
|
-
function
|
|
10068
|
+
function ce() {
|
|
10073
10069
|
const ae = D();
|
|
10074
10070
|
$(S.value, ae);
|
|
10075
10071
|
}
|
|
@@ -10105,7 +10101,7 @@ function Mr(t, n, e, o, r, a, i, s, u) {
|
|
|
10105
10101
|
height: `${l.value.length * y}px`,
|
|
10106
10102
|
width: `${F.value}px`,
|
|
10107
10103
|
transform: `translateY(${S.value}px)`
|
|
10108
|
-
})),
|
|
10104
|
+
})), ne = W(() => ({
|
|
10109
10105
|
transform: `translateY(${S.value}px)`
|
|
10110
10106
|
})), ge = W(() => ({
|
|
10111
10107
|
height: `${l.value.length * y}px`,
|
|
@@ -10154,7 +10150,7 @@ function Mr(t, n, e, o, r, a, i, s, u) {
|
|
|
10154
10150
|
var ot;
|
|
10155
10151
|
Pe.value = !0;
|
|
10156
10152
|
const He = (ot = ae.target) == null ? void 0 : ot.parentElement;
|
|
10157
|
-
He && (He.style.opacity = "1", Ze.value = He), V || (V =
|
|
10153
|
+
He && (He.style.opacity = "1", Ze.value = He), V || (V = Qr(ye === "horizontal" ? ht : xt, 50)), ye === "vertical" && (we.value = ae.pageY), ye === "horizontal" && (Te.value = ae.pageX), me.value && (me.value, document.addEventListener("mousemove", V), document.addEventListener("mouseup", yt), document.body.style.userSelect = "none");
|
|
10158
10154
|
}
|
|
10159
10155
|
function St(ae) {
|
|
10160
10156
|
const me = l.value.length * y - p.value;
|
|
@@ -10186,10 +10182,10 @@ function Mr(t, n, e, o, r, a, i, s, u) {
|
|
|
10186
10182
|
resetScroll: Z,
|
|
10187
10183
|
rightFixedGridDataStyle: G,
|
|
10188
10184
|
rightFixedGridHeaderColumnsStyle: tt,
|
|
10189
|
-
rightFixedGridMergedDataStyle:
|
|
10185
|
+
rightFixedGridMergedDataStyle: ne,
|
|
10190
10186
|
shouldShowHorizontalScrollbar: U,
|
|
10191
10187
|
shouldShowVirticalScrollbar: I,
|
|
10192
|
-
updateVirticalScroll:
|
|
10188
|
+
updateVirticalScroll: ce,
|
|
10193
10189
|
updateVisibleRowsOnLatestVisibleScope: L,
|
|
10194
10190
|
verticalScrollThumbStyle: ct,
|
|
10195
10191
|
viewPortWidth: b,
|
|
@@ -10226,9 +10222,9 @@ function zc(t, n, e, o, r, a, i, s) {
|
|
|
10226
10222
|
}
|
|
10227
10223
|
return { getVisualData: d, maxVisibleRowIndex: u, minVisibleRowIndex: l, toggleGroupRow: M };
|
|
10228
10224
|
}
|
|
10229
|
-
function
|
|
10225
|
+
function Mr(t) {
|
|
10230
10226
|
var a;
|
|
10231
|
-
const { isUndefined: n } =
|
|
10227
|
+
const { isUndefined: n } = ro(), e = ((a = t.rowOption) == null ? void 0 : a.height) || 28;
|
|
10232
10228
|
function o(i, s) {
|
|
10233
10229
|
const u = i.pre;
|
|
10234
10230
|
if (u) {
|
|
@@ -10283,7 +10279,7 @@ function Gc() {
|
|
|
10283
10279
|
function Yc() {
|
|
10284
10280
|
const {
|
|
10285
10281
|
formatTo: t
|
|
10286
|
-
} =
|
|
10282
|
+
} = Jr();
|
|
10287
10283
|
function n(o, r) {
|
|
10288
10284
|
if (o) {
|
|
10289
10285
|
let a = "yyyy-MM-dd";
|
|
@@ -10308,7 +10304,7 @@ function Yc() {
|
|
|
10308
10304
|
function Uc() {
|
|
10309
10305
|
const {
|
|
10310
10306
|
formatTo: t
|
|
10311
|
-
} =
|
|
10307
|
+
} = Zr();
|
|
10312
10308
|
function n(e, o) {
|
|
10313
10309
|
const r = {
|
|
10314
10310
|
precision: o.precision,
|
|
@@ -10365,7 +10361,7 @@ function Qc() {
|
|
|
10365
10361
|
renderFormatColumn: u
|
|
10366
10362
|
};
|
|
10367
10363
|
}
|
|
10368
|
-
function
|
|
10364
|
+
function Or(t, n, e) {
|
|
10369
10365
|
var F;
|
|
10370
10366
|
const o = E(t.mergeCell);
|
|
10371
10367
|
(F = E(t.rowOption).value) != null && F.wrapContent;
|
|
@@ -10432,7 +10428,7 @@ function Ir(t, n, e) {
|
|
|
10432
10428
|
}
|
|
10433
10429
|
return { createCellByColumn: M, createCellByField: u, updateCellByColumn: d };
|
|
10434
10430
|
}
|
|
10435
|
-
function
|
|
10431
|
+
function Ir(t, n, e, o, r, a, i) {
|
|
10436
10432
|
var g, T;
|
|
10437
10433
|
const s = E(t.rowOption), u = ((g = s.value) == null ? void 0 : g.height) || 28, l = ((T = s.value) == null ? void 0 : T.wrapContent) || !1, { idField: m } = r, { collapseField: c } = o, { updateRowPosition: f } = a, { createCellByColumn: h } = i, d = (w, v, p, b) => {
|
|
10438
10434
|
Cn(ut(w, b), v, b), p.data[b].data = ut(v, b), p.data[b].editingData = ut(v, b);
|
|
@@ -10497,7 +10493,7 @@ function Nr(t, n, e, o, r, a, i) {
|
|
|
10497
10493
|
}
|
|
10498
10494
|
return { createEmptyRow: M, createNewRowFromDataItem: F, renderDataRow: S };
|
|
10499
10495
|
}
|
|
10500
|
-
function
|
|
10496
|
+
function Nr(t, n, e, o, r) {
|
|
10501
10497
|
var j;
|
|
10502
10498
|
const {
|
|
10503
10499
|
idField: a
|
|
@@ -10611,7 +10607,7 @@ function Pr(t, n, e, o, r) {
|
|
|
10611
10607
|
column: I,
|
|
10612
10608
|
cell: P,
|
|
10613
10609
|
editor: S
|
|
10614
|
-
}, L.readonly = !1, x(
|
|
10610
|
+
}, L.readonly = !1, x(ba, {
|
|
10615
10611
|
focusOnCreated: t.focusOnEditingCell,
|
|
10616
10612
|
selectOnCreated: t.selectOnEditingCell,
|
|
10617
10613
|
editor: L,
|
|
@@ -10651,7 +10647,7 @@ function Pr(t, n, e, o, r) {
|
|
|
10651
10647
|
onMouseupCell: _
|
|
10652
10648
|
};
|
|
10653
10649
|
}
|
|
10654
|
-
function
|
|
10650
|
+
function Pr(t) {
|
|
10655
10651
|
const n = E(t.idField);
|
|
10656
10652
|
function e(o) {
|
|
10657
10653
|
if (o && o.length) {
|
|
@@ -10661,7 +10657,7 @@ function Dr(t) {
|
|
|
10661
10657
|
}
|
|
10662
10658
|
return { idField: n, reviseIdentifyField: e };
|
|
10663
10659
|
}
|
|
10664
|
-
function
|
|
10660
|
+
function Dr(t, n, e, o) {
|
|
10665
10661
|
const { idField: r } = o, {
|
|
10666
10662
|
currentSelectedDataId: a,
|
|
10667
10663
|
multiSelectOnClickRow: i,
|
|
@@ -10780,7 +10776,7 @@ function Vr(t, n, e, o) {
|
|
|
10780
10776
|
onMouseoutRow: V
|
|
10781
10777
|
};
|
|
10782
10778
|
}
|
|
10783
|
-
function
|
|
10779
|
+
function Vr(t, n, e, o, r) {
|
|
10784
10780
|
const { idField: a } = e, { dataView: i, getSelectionItems: s } = n, u = E(""), l = W(() => t.selection.enableSelectRow), m = E(t.selection.multiSelect ?? !1), c = E(t.selection.multiSelectMode || "DependOnCheck"), f = E(t.selection.showCheckbox), h = E(t.selection.showSelectAll), d = E(t.selectionValues || []), M = E(!!d.value.length && o.value.length === d.value.length), F = E(!!d.value.length && o.value.length !== d.value.length);
|
|
10785
10781
|
Fe(() => t.selection.showSelectAll, (X, ie) => {
|
|
10786
10782
|
X !== ie && (h.value = X);
|
|
@@ -10793,15 +10789,15 @@ function Br(t, n, e, o, r) {
|
|
|
10793
10789
|
return s(d.value);
|
|
10794
10790
|
}
|
|
10795
10791
|
function g() {
|
|
10796
|
-
const X = o.value.reduce((G,
|
|
10792
|
+
const X = o.value.reduce((G, ne) => (G.set(ne.raw[a.value], ne), G), /* @__PURE__ */ new Map());
|
|
10797
10793
|
return d.value.map((G) => X.get(G)).filter((G) => !!G);
|
|
10798
10794
|
}
|
|
10799
10795
|
function T(X) {
|
|
10800
10796
|
var G;
|
|
10801
10797
|
const ie = X.raw.__fv_children_index__;
|
|
10802
10798
|
if (ie && ie.length) {
|
|
10803
|
-
const
|
|
10804
|
-
(G = d.value) != null && G.length &&
|
|
10799
|
+
const ne = ie.map((ge) => i.value[ge]);
|
|
10800
|
+
(G = d.value) != null && G.length && ne.some((Ie) => !d.value.includes(Ie[a.value])) && (X.indeterminate = !0, X.raw.__fv_indeterminate__ = !0);
|
|
10805
10801
|
}
|
|
10806
10802
|
}
|
|
10807
10803
|
const w = W(() => l.value && m.value), v = W(
|
|
@@ -10825,8 +10821,8 @@ function Br(t, n, e, o, r) {
|
|
|
10825
10821
|
}), g().forEach((G) => {
|
|
10826
10822
|
G.checked = !0, G.raw.__fv_checked__ = !0;
|
|
10827
10823
|
}), X.forEach((G) => {
|
|
10828
|
-
const
|
|
10829
|
-
T(
|
|
10824
|
+
const ne = o.value.find((ge) => ge.raw[a.value] === G);
|
|
10825
|
+
T(ne);
|
|
10830
10826
|
});
|
|
10831
10827
|
}
|
|
10832
10828
|
Fe(() => o.value, () => {
|
|
@@ -10897,14 +10893,14 @@ function Br(t, n, e, o, r) {
|
|
|
10897
10893
|
const ie = o.value.find((G) => G.raw[a.value] === X);
|
|
10898
10894
|
ie && K(ie);
|
|
10899
10895
|
}
|
|
10900
|
-
function
|
|
10901
|
-
const ie = o.value.filter((ge) => X.includes(ge.raw[a.value])), G = ie.map((ge) => ge.raw[a.value]),
|
|
10896
|
+
function ce(X) {
|
|
10897
|
+
const ie = o.value.filter((ge) => X.includes(ge.raw[a.value])), G = ie.map((ge) => ge.raw[a.value]), ne = i.value.filter((ge) => {
|
|
10902
10898
|
const Ie = ge[a.value];
|
|
10903
10899
|
return !G.includes(Ie) && X.includes(Ie);
|
|
10904
10900
|
});
|
|
10905
|
-
(ie.length ||
|
|
10901
|
+
(ie.length || ne.length) && (H(), v.value && (u.value = X[0])), ie.forEach((ge) => {
|
|
10906
10902
|
I(ge);
|
|
10907
|
-
}),
|
|
10903
|
+
}), ne.forEach((ge) => {
|
|
10908
10904
|
R(ge);
|
|
10909
10905
|
}), _();
|
|
10910
10906
|
}
|
|
@@ -10912,12 +10908,12 @@ function Br(t, n, e, o, r) {
|
|
|
10912
10908
|
for (const ie of X) {
|
|
10913
10909
|
if (!d.value.includes(ie))
|
|
10914
10910
|
continue;
|
|
10915
|
-
const G = o.value.find((
|
|
10911
|
+
const G = o.value.find((ne) => ne.raw[a.value] === ie);
|
|
10916
10912
|
if (G)
|
|
10917
10913
|
U(G);
|
|
10918
10914
|
else {
|
|
10919
|
-
const
|
|
10920
|
-
|
|
10915
|
+
const ne = i.value.find((ge) => ge[a.value] === ie);
|
|
10916
|
+
ne && B(ne);
|
|
10921
10917
|
}
|
|
10922
10918
|
}
|
|
10923
10919
|
d.value = d.value.filter(
|
|
@@ -10958,7 +10954,7 @@ function Br(t, n, e, o, r) {
|
|
|
10958
10954
|
selectDataItem: R,
|
|
10959
10955
|
selectItem: K,
|
|
10960
10956
|
selectItemById: Z,
|
|
10961
|
-
selectItemByIds:
|
|
10957
|
+
selectItemByIds: ce,
|
|
10962
10958
|
showCheckBox: f,
|
|
10963
10959
|
showSelectAll: h,
|
|
10964
10960
|
toggleSelectItem: Q,
|
|
@@ -11071,7 +11067,7 @@ function rd(t, n, e, o, r, a, i, s, u, l, m, c, f, h, d, M, F) {
|
|
|
11071
11067
|
rightFixedGridDataStyle: p
|
|
11072
11068
|
} = h, {
|
|
11073
11069
|
renderDataRow: b
|
|
11074
|
-
} =
|
|
11070
|
+
} = Go(t, n, S, F, s, u, l, m, c, f, h), C = [b];
|
|
11075
11071
|
function O(N, z) {
|
|
11076
11072
|
const H = y(N);
|
|
11077
11073
|
return F.value.filter((R) => R.visible !== !1).map((R, B) => C[R.type](R, H, z, B));
|
|
@@ -11117,41 +11113,41 @@ const fn = /* @__PURE__ */ Le({
|
|
|
11117
11113
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode"],
|
|
11118
11114
|
setup(t, n) {
|
|
11119
11115
|
var Je, pt;
|
|
11120
|
-
const o = ((Je = t.rowOption) == null ? void 0 : Je.height) || 28, r = E(20), a = E(t.columns), i =
|
|
11116
|
+
const o = ((Je = t.rowOption) == null ? void 0 : Je.height) || 28, r = E(20), a = E(t.columns), i = so(t), {
|
|
11121
11117
|
idField: s
|
|
11122
|
-
} = i, u = E(), l = E(), m = E(), c = E(), f = E(), h = E([]), d = E(!1), M = E(((pt = t.rowOption) == null ? void 0 : pt.wrapContent) || !1), F =
|
|
11118
|
+
} = i, u = E(), l = E(), m = E(), c = E(), f = E(), h = E([]), d = E(!1), M = E(((pt = t.rowOption) == null ? void 0 : pt.wrapContent) || !1), F = yi(t, i), y = lo(), S = uo(t), {
|
|
11123
11119
|
collapseField: g
|
|
11124
11120
|
} = S, {
|
|
11125
11121
|
showLoading: T,
|
|
11126
11122
|
renderLoading: w
|
|
11127
|
-
} =
|
|
11123
|
+
} = bi(t, u), v = co(t, /* @__PURE__ */ new Map(), y, S, i), {
|
|
11128
11124
|
dataView: p
|
|
11129
|
-
} = v, b =
|
|
11125
|
+
} = v, b = fo(t, v, i, h, n), C = wi(t, h, v, i, b, n), O = W(() => t.disabled), _ = W(() => t.virtualized ? Math.min(v.dataView.value.length, r.value) : v.dataView.value.length), {
|
|
11130
11126
|
containerStyleObject: V
|
|
11131
|
-
} =
|
|
11127
|
+
} = mo(t), D = Ci(t), {
|
|
11132
11128
|
applyCommands: k
|
|
11133
11129
|
} = D;
|
|
11134
11130
|
k(a);
|
|
11135
|
-
const N =
|
|
11131
|
+
const N = ho(t), z = _i(t), {
|
|
11136
11132
|
applyColumnSorter: H,
|
|
11137
11133
|
columnContext: R,
|
|
11138
11134
|
updateColumnRenderContext: B
|
|
11139
11135
|
} = N;
|
|
11140
11136
|
H(v, z);
|
|
11141
|
-
const j =
|
|
11137
|
+
const j = po(t, R), P = vo(t, n, b, i), I = go(t, n, i, P, h), U = yo(t), $ = bo(t, I, U), L = wo(t, v, I, S, i, U, $), Y = Co(t, a, v, _, 0, L), {
|
|
11142
11138
|
getVisualData: Q
|
|
11143
|
-
} = Y, K =
|
|
11144
|
-
sidebarWidth:
|
|
11145
|
-
} = Z, pe =
|
|
11139
|
+
} = Y, K = _o(t, R), Z = xo(t, b), {
|
|
11140
|
+
sidebarWidth: ce
|
|
11141
|
+
} = Z, pe = So(t, v, h, R, Y, _, 0, ce), {
|
|
11146
11142
|
onWheel: be,
|
|
11147
11143
|
dataGridWidth: Me,
|
|
11148
11144
|
viewPortHeight: Oe,
|
|
11149
11145
|
viewPortWidth: X,
|
|
11150
11146
|
resetScroll: ie,
|
|
11151
11147
|
updateVisibleRowsOnLatestVisibleScope: G
|
|
11152
|
-
} = pe,
|
|
11148
|
+
} = pe, ne = Eo(t, R, l, X, j), {
|
|
11153
11149
|
calculateColumnsSize: ge
|
|
11154
|
-
} =
|
|
11150
|
+
} = ne, Ie = xi(), Ve = Si(l, f, v, Ie, pe), tt = Ei(t, n, N, v, j, F, pe), mt = W(() => ({
|
|
11155
11151
|
"fv-grid": !0,
|
|
11156
11152
|
"fv-grid-bordered": t.showBorder,
|
|
11157
11153
|
"fv-grid-horizontal-bordered": t.showHorizontalLines,
|
|
@@ -11166,15 +11162,15 @@ const fn = /* @__PURE__ */ Le({
|
|
|
11166
11162
|
renderGridHeader: Ee,
|
|
11167
11163
|
renderGridColumnResizeOverlay: Pe,
|
|
11168
11164
|
shouldShowHeader: we
|
|
11169
|
-
} =
|
|
11165
|
+
} = Ti(t, n, l, c, f, N, v, tt, Ve, y, Ie, ne, j, b, Z, z, pe, X, h), {
|
|
11170
11166
|
renderDataGridSidebar: Te
|
|
11171
|
-
} =
|
|
11167
|
+
} = To(t, P, b, Z, pe), {
|
|
11172
11168
|
renderDisableMask: Ze
|
|
11173
|
-
} =
|
|
11169
|
+
} = Fi(), {
|
|
11174
11170
|
renderHorizontalScrollbar: ht
|
|
11175
|
-
} =
|
|
11171
|
+
} = Fo(t, l, pe), {
|
|
11176
11172
|
renderVerticalScrollbar: xt
|
|
11177
|
-
} =
|
|
11173
|
+
} = ko(t, l, pe);
|
|
11178
11174
|
function yt() {
|
|
11179
11175
|
var ve, Se, rt;
|
|
11180
11176
|
if (l.value && l.value.clientHeight > 0 && ((ve = l.value) == null ? void 0 : ve.clientWidth) > 0) {
|
|
@@ -11243,12 +11239,12 @@ const fn = /* @__PURE__ */ Le({
|
|
|
11243
11239
|
function q() {
|
|
11244
11240
|
return b.getSelectedItems();
|
|
11245
11241
|
}
|
|
11246
|
-
function
|
|
11242
|
+
function te() {
|
|
11247
11243
|
b.clearSelection();
|
|
11248
11244
|
}
|
|
11249
11245
|
const re = W(() => !h.value || !h.value.length), {
|
|
11250
11246
|
renderEmpty: oe
|
|
11251
|
-
} =
|
|
11247
|
+
} = Mo(n);
|
|
11252
11248
|
function _e() {
|
|
11253
11249
|
return b.getSelectionRow();
|
|
11254
11250
|
}
|
|
@@ -11311,7 +11307,7 @@ const fn = /* @__PURE__ */ Le({
|
|
|
11311
11307
|
selectItemById: J,
|
|
11312
11308
|
selectItemByIds: Be,
|
|
11313
11309
|
getSelectedItems: q,
|
|
11314
|
-
clearSelection:
|
|
11310
|
+
clearSelection: te,
|
|
11315
11311
|
getSelectionRow: _e,
|
|
11316
11312
|
clickRowItemById: he,
|
|
11317
11313
|
unSelectItemByIds: Ce,
|
|
@@ -11382,7 +11378,7 @@ const fn = /* @__PURE__ */ Le({
|
|
|
11382
11378
|
}
|
|
11383
11379
|
});
|
|
11384
11380
|
function ld(t) {
|
|
11385
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
11381
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !zr(t);
|
|
11386
11382
|
}
|
|
11387
11383
|
const Tn = /* @__PURE__ */ Le({
|
|
11388
11384
|
name: "FDesignerItem",
|
|
@@ -11529,7 +11525,7 @@ const Tn = /* @__PURE__ */ Le({
|
|
|
11529
11525
|
}
|
|
11530
11526
|
}
|
|
11531
11527
|
Fe(() => t.modelValue, (H) => {
|
|
11532
|
-
i.value = H, e.value = `${H.id}-component`,
|
|
11528
|
+
i.value = H, e.value = `${H.id}-component`, Ar(c);
|
|
11533
11529
|
}, {
|
|
11534
11530
|
deep: !0
|
|
11535
11531
|
});
|
|
@@ -11556,7 +11552,7 @@ const Tn = /* @__PURE__ */ Le({
|
|
|
11556
11552
|
f && H && f.attachComponents(H, i.value), a.value = h.value.canNested !== void 0 ? h.value.canNested : a.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, u.value = h.value.styles || "", l.value = h.value.designerClass || "", c.value && (c.value.componentInstance = h, c.value.designItemContext = M), h.value.belongedComponentId = s.value;
|
|
11557
11553
|
}
|
|
11558
11554
|
N(), on.value++;
|
|
11559
|
-
}),
|
|
11555
|
+
}), no(() => {
|
|
11560
11556
|
c.value && c.value.removeEventListener("scroll", k);
|
|
11561
11557
|
});
|
|
11562
11558
|
function z(H) {
|
|
@@ -11567,7 +11563,7 @@ const Tn = /* @__PURE__ */ Le({
|
|
|
11567
11563
|
const j = document.getElementsByClassName("dgComponentFocused");
|
|
11568
11564
|
j && j.length === 1 && j[0] === c.value || (Array.from(j).forEach((I) => I.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((I) => I.classList.remove("dgComponentSelected")), B.classList.add("dgComponentFocused"), n.emit("selectionChange", i.value.type, i.value, s.value, h.value), h.value.getDraggableDesignItemElement && (R = h.value.getDraggableDesignItemElement(M), R && R.value && R.value.classList.add("dgComponentSelected")));
|
|
11569
11565
|
}
|
|
11570
|
-
|
|
11566
|
+
Ho(R == null ? void 0 : R.value);
|
|
11571
11567
|
}
|
|
11572
11568
|
return () => i.value.type === "component-ref" ? V(i.value) : x("div", {
|
|
11573
11569
|
id: `${i.value.id}-design-item`,
|
|
@@ -12157,15 +12153,15 @@ function pd(t, n, e, o, r, a, i, s) {
|
|
|
12157
12153
|
}
|
|
12158
12154
|
const vd = /* @__PURE__ */ Le({
|
|
12159
12155
|
name: "FTreeGridDesign",
|
|
12160
|
-
props:
|
|
12156
|
+
props: zo,
|
|
12161
12157
|
emits: [],
|
|
12162
12158
|
setup(t, n) {
|
|
12163
|
-
var
|
|
12164
|
-
const e = E(), o = 0, r = ((
|
|
12159
|
+
var ne, ge;
|
|
12160
|
+
const e = E(), o = 0, r = ((ne = t.rowOption) == null ? void 0 : ne.height) || 28, a = E(20), i = E(t.columns), s = Pr(t), u = E(), l = E(), m = E([]), c = E(!1), f = E(((ge = t.rowOption) == null ? void 0 : ge.wrapContent) || !1), h = ze("designer-host-service"), d = ze("design-item-context"), M = dd(d, h), F = Lo(e, d, M);
|
|
12165
12161
|
F.value.designerClass = "f-utils-fill-flex-column";
|
|
12166
|
-
const y =
|
|
12162
|
+
const y = Er(), S = Tr(t), g = Uo(t, /* @__PURE__ */ new Map(), y, S, s), T = Vr(t, g, s, m, n), w = W(() => g.dataView.value.length), {
|
|
12167
12163
|
containerStyleObject: v
|
|
12168
|
-
} =
|
|
12164
|
+
} = Yo(t), p = Ml(t), {
|
|
12169
12165
|
applyCommands: b
|
|
12170
12166
|
} = p;
|
|
12171
12167
|
b(i);
|
|
@@ -12173,21 +12169,21 @@ const vd = /* @__PURE__ */ Le({
|
|
|
12173
12169
|
applyColumnSorter: O,
|
|
12174
12170
|
columnContext: _,
|
|
12175
12171
|
updateColumnRenderContext: V
|
|
12176
|
-
} = C, D = nd(), k = Ol(t, _), N =
|
|
12172
|
+
} = C, D = nd(), k = Ol(t, _), N = Dr(t, n, T, s), z = Nr(t, n, s, N), H = Mr(t), R = Or(t, z, H), B = Ir(t, g, z, S, s, H, R), j = pd(t, i, g, w, o, B), {
|
|
12177
12173
|
getVisualData: P
|
|
12178
12174
|
} = j, I = Kc(t, T), {
|
|
12179
12175
|
sidebarWidth: U
|
|
12180
12176
|
} = I;
|
|
12181
12177
|
m.value = P(0, w.value + o - 1);
|
|
12182
|
-
const $ =
|
|
12178
|
+
const $ = kr(t, g, m, _, j, w, o, U), {
|
|
12183
12179
|
onWheel: L,
|
|
12184
12180
|
dataGridWidth: Y,
|
|
12185
12181
|
viewPortHeight: Q,
|
|
12186
12182
|
viewPortWidth: K,
|
|
12187
12183
|
updateVisibleRowsOnLatestVisibleScope: Z
|
|
12188
|
-
} = $,
|
|
12184
|
+
} = $, ce = fd(t, _, u, K, k), {
|
|
12189
12185
|
calculateColumnsSize: pe
|
|
12190
|
-
} =
|
|
12186
|
+
} = ce, be = W(() => ({
|
|
12191
12187
|
"drag-container": !0,
|
|
12192
12188
|
"fv-grid": !0,
|
|
12193
12189
|
"fv-grid-bordered": t.showBorder,
|
|
@@ -12242,7 +12238,7 @@ fn.register = (t, n, e, o) => {
|
|
|
12242
12238
|
fn.registerDesigner = (t, n, e) => {
|
|
12243
12239
|
t["tree-grid"] = vd, n["tree-grid"] = bl;
|
|
12244
12240
|
};
|
|
12245
|
-
|
|
12241
|
+
ao(fn);
|
|
12246
12242
|
const gd = /* @__PURE__ */ new Map([
|
|
12247
12243
|
["appearance", Zt]
|
|
12248
12244
|
]);
|
|
@@ -12810,7 +12806,7 @@ function Vd(t, n, e) {
|
|
|
12810
12806
|
resetTranslate: T
|
|
12811
12807
|
};
|
|
12812
12808
|
}
|
|
12813
|
-
function
|
|
12809
|
+
function Br(t, n) {
|
|
12814
12810
|
if (t) {
|
|
12815
12811
|
const e = (o) => {
|
|
12816
12812
|
o.key.toLowerCase() === t.toLowerCase() && n({ event: o, key: t });
|
|
@@ -12823,7 +12819,7 @@ function Rr(t, n) {
|
|
|
12823
12819
|
function Bd(t, n) {
|
|
12824
12820
|
const e = E(t.enableEsc);
|
|
12825
12821
|
let o = null;
|
|
12826
|
-
return e.value ? (o =
|
|
12822
|
+
return e.value ? (o = Br("Escape", (r) => {
|
|
12827
12823
|
n.emit("esc", { event: r.event, type: "esc" });
|
|
12828
12824
|
}), {
|
|
12829
12825
|
remove: o
|
|
@@ -12832,7 +12828,7 @@ function Bd(t, n) {
|
|
|
12832
12828
|
function Rd(t, n) {
|
|
12833
12829
|
const e = E(t.enableEnter);
|
|
12834
12830
|
let o = null;
|
|
12835
|
-
return e.value ? (o =
|
|
12831
|
+
return e.value ? (o = Br("Enter", (r) => {
|
|
12836
12832
|
n.emit("enter", { event: r.event, type: "enter" });
|
|
12837
12833
|
}), {
|
|
12838
12834
|
remove: o
|
|
@@ -12940,7 +12936,7 @@ const Qt = /* @__PURE__ */ Le({
|
|
|
12940
12936
|
display: u.value ? "" : "none"
|
|
12941
12937
|
};
|
|
12942
12938
|
return ee["pointer-events"] = R.value ? "auto" : "none", ee;
|
|
12943
|
-
}),
|
|
12939
|
+
}), ce = W(() => ({
|
|
12944
12940
|
"f-icon": !0,
|
|
12945
12941
|
modal_maximize: !0,
|
|
12946
12942
|
modalrevert: V.value
|
|
@@ -12973,13 +12969,13 @@ const Qt = /* @__PURE__ */ Le({
|
|
|
12973
12969
|
function ie(ee) {
|
|
12974
12970
|
ee.width && (e.value = ee.width), ee.height && (o.value = ee.height), ee.buttons && (p.value = ee.buttons), ee.title && (y.value = ee.title);
|
|
12975
12971
|
}
|
|
12976
|
-
let G = null,
|
|
12977
|
-
|
|
12972
|
+
let G = null, ne = null;
|
|
12973
|
+
qr(() => {
|
|
12978
12974
|
T.value = P();
|
|
12979
12975
|
}), lt(() => {
|
|
12980
|
-
_.value && !S.value && (S.value = _.value.parentElement, z.value = S.value, j(O.value, _.value, z.value)), U.value && document.body.classList.add("modal-open"), G = Bd(t, n),
|
|
12976
|
+
_.value && !S.value && (S.value = _.value.parentElement, z.value = S.value, j(O.value, _.value, z.value)), U.value && document.body.classList.add("modal-open"), G = Bd(t, n), ne = Rd(t, n);
|
|
12981
12977
|
}), mn(() => {
|
|
12982
|
-
B && B(), G && G.remove(),
|
|
12978
|
+
B && B(), G && G.remove(), ne && ne.remove();
|
|
12983
12979
|
}), n.expose({
|
|
12984
12980
|
modalElementRef: _,
|
|
12985
12981
|
updateModalOptions: ie,
|
|
@@ -12997,7 +12993,7 @@ const Qt = /* @__PURE__ */ Le({
|
|
|
12997
12993
|
class: "f-btn-icon f-bare",
|
|
12998
12994
|
style: "pointer-events: auto;"
|
|
12999
12995
|
}, [x("span", {
|
|
13000
|
-
class:
|
|
12996
|
+
class: ce.value
|
|
13001
12997
|
}, null)]), m.value && x("li", {
|
|
13002
12998
|
class: "f-btn-icon f-bare",
|
|
13003
12999
|
onClick: (ee) => w(ee, !1),
|
|
@@ -13070,10 +13066,10 @@ const Qt = /* @__PURE__ */ Le({
|
|
|
13070
13066
|
src: d.value
|
|
13071
13067
|
}, null)]), tt()]), !s.value && _.value && !V.value && D(_.value)]);
|
|
13072
13068
|
}
|
|
13073
|
-
return () => x(
|
|
13069
|
+
return () => x(Gr, {
|
|
13074
13070
|
to: "body"
|
|
13075
13071
|
}, {
|
|
13076
|
-
default: () => [U.value && x(
|
|
13072
|
+
default: () => [U.value && x(to, {
|
|
13077
13073
|
name: "fade",
|
|
13078
13074
|
appear: !0
|
|
13079
13075
|
}, {
|
|
@@ -13087,7 +13083,7 @@ const Qt = /* @__PURE__ */ Le({
|
|
|
13087
13083
|
});
|
|
13088
13084
|
}
|
|
13089
13085
|
});
|
|
13090
|
-
function
|
|
13086
|
+
function Rr(t) {
|
|
13091
13087
|
if (t.content && t.content.render)
|
|
13092
13088
|
return t.content.render;
|
|
13093
13089
|
if (t.render && typeof t.render == "function")
|
|
@@ -13096,7 +13092,7 @@ function Lr(t) {
|
|
|
13096
13092
|
function Ld(t) {
|
|
13097
13093
|
const n = document.createElement("div");
|
|
13098
13094
|
n.style.display = "contents";
|
|
13099
|
-
const e =
|
|
13095
|
+
const e = eo({
|
|
13100
13096
|
setup(o, r) {
|
|
13101
13097
|
mn(() => {
|
|
13102
13098
|
document.body.removeChild(n);
|
|
@@ -13106,7 +13102,7 @@ function Ld(t) {
|
|
|
13106
13102
|
}), d = t.closedCallback || ((g) => {
|
|
13107
13103
|
}), M = t.resizeHandle || ((g) => {
|
|
13108
13104
|
}), F = t.stopMoveHandle || ((g) => {
|
|
13109
|
-
}), y =
|
|
13105
|
+
}), y = Rr(t), S = (g) => {
|
|
13110
13106
|
m.value = !1, e.unmount(), d(g);
|
|
13111
13107
|
};
|
|
13112
13108
|
return lt(() => {
|
|
@@ -13138,7 +13134,7 @@ function Ld(t) {
|
|
|
13138
13134
|
});
|
|
13139
13135
|
return document.body.appendChild(n), e.mount(n), e;
|
|
13140
13136
|
}
|
|
13141
|
-
class
|
|
13137
|
+
class Lr {
|
|
13142
13138
|
constructor(n) {
|
|
13143
13139
|
A(this, "appContext", null);
|
|
13144
13140
|
A(this, "modalRef", E());
|
|
@@ -13179,7 +13175,7 @@ class Hr {
|
|
|
13179
13175
|
open(n) {
|
|
13180
13176
|
const e = document.createDocumentFragment();
|
|
13181
13177
|
n.showMaxButton && n.fitContent && (n.showMaxButton = !1);
|
|
13182
|
-
const o =
|
|
13178
|
+
const o = Yr(Object.assign({
|
|
13183
13179
|
title: "",
|
|
13184
13180
|
showButtons: !0,
|
|
13185
13181
|
showHeader: !0
|
|
@@ -13190,7 +13186,7 @@ class Hr {
|
|
|
13190
13186
|
}), l = n.stopMoveHandle || ((w) => {
|
|
13191
13187
|
});
|
|
13192
13188
|
let m;
|
|
13193
|
-
const c =
|
|
13189
|
+
const c = Rr(o.value), f = (w) => {
|
|
13194
13190
|
var p;
|
|
13195
13191
|
r.value = !1;
|
|
13196
13192
|
const v = (p = w == null ? void 0 : w.target) == null ? void 0 : p.classList.contains("modal_close");
|
|
@@ -13226,7 +13222,7 @@ class Hr {
|
|
|
13226
13222
|
default: () => [c && c(this.app)]
|
|
13227
13223
|
});
|
|
13228
13224
|
return m = ((w) => {
|
|
13229
|
-
const v =
|
|
13225
|
+
const v = Ur(S, w);
|
|
13230
13226
|
return v.appContext = this.appContext, pn(v, e), v;
|
|
13231
13227
|
})({
|
|
13232
13228
|
...o.value
|
|
@@ -13236,7 +13232,7 @@ class Hr {
|
|
|
13236
13232
|
o.value = {
|
|
13237
13233
|
...o.value,
|
|
13238
13234
|
...w
|
|
13239
|
-
}, m && pn(
|
|
13235
|
+
}, m && pn(Xr(m, {
|
|
13240
13236
|
...o
|
|
13241
13237
|
}), e);
|
|
13242
13238
|
},
|
|
@@ -13249,7 +13245,7 @@ class Hr {
|
|
|
13249
13245
|
const Hd = Symbol("FModalService");
|
|
13250
13246
|
Qt.install = (t) => {
|
|
13251
13247
|
t.component(Qt.name, Qt);
|
|
13252
|
-
const n = new
|
|
13248
|
+
const n = new Lr(t);
|
|
13253
13249
|
t.provide(Hd, n), t.provide("FModalService", n);
|
|
13254
13250
|
};
|
|
13255
13251
|
const $d = {
|
|
@@ -13269,7 +13265,7 @@ const $d = {
|
|
|
13269
13265
|
};
|
|
13270
13266
|
Nt(
|
|
13271
13267
|
$d,
|
|
13272
|
-
|
|
13268
|
+
Bo,
|
|
13273
13269
|
Nn,
|
|
13274
13270
|
void 0
|
|
13275
13271
|
);
|
|
@@ -13309,7 +13305,7 @@ const Wd = "https://json-schema.org/draft/2020-12/schema", jd = "https://farris-
|
|
|
13309
13305
|
}
|
|
13310
13306
|
}
|
|
13311
13307
|
};
|
|
13312
|
-
|
|
13308
|
+
oa(Xd, Ud, gs, Cs);
|
|
13313
13309
|
const Qd = {
|
|
13314
13310
|
width: { Type: Number, default: 400 },
|
|
13315
13311
|
type: { Type: String, default: "info" },
|
|
@@ -13576,7 +13572,7 @@ class Mt {
|
|
|
13576
13572
|
}), o = !1, r = e.type === "error" || e.type === "prompt", a = e.type === "error" ? "错误提示" : e.type === "prompt" && e.title || "", i = e.acceptCallback || (() => {
|
|
13577
13573
|
}), s = e.rejectCallback || (() => {
|
|
13578
13574
|
});
|
|
13579
|
-
let u = null, l = new
|
|
13575
|
+
let u = null, l = new Lr(u);
|
|
13580
13576
|
const m = () => {
|
|
13581
13577
|
u && (u == null || u.destroy(), l = null);
|
|
13582
13578
|
};
|
|
@@ -14292,8 +14288,8 @@ const gf = "tree-view", yf = "A Farris Component", bf = "object", wf = {
|
|
|
14292
14288
|
showEllipsis: { type: Boolean, default: !1 },
|
|
14293
14289
|
/** 自动高度 **/
|
|
14294
14290
|
autoHeight: { type: Boolean, default: !1 }
|
|
14295
|
-
},
|
|
14296
|
-
function
|
|
14291
|
+
}, Hr = Nt(Ln, Mf, pf, vf, Cf);
|
|
14292
|
+
function $r(t, n, e, o, r, a, i, s, u, l, m, c, f, h, d) {
|
|
14297
14293
|
const {
|
|
14298
14294
|
calculateCellPositionInRow: M
|
|
14299
14295
|
} = o, {
|
|
@@ -14302,7 +14298,7 @@ function Wr(t, n, e, o, r, a, i, s, u, l, m, c, f, h, d) {
|
|
|
14302
14298
|
gridDataStyle: y
|
|
14303
14299
|
} = c, {
|
|
14304
14300
|
renderDataRow: S
|
|
14305
|
-
} =
|
|
14301
|
+
} = Go(t, n, F, e, a, i, s, u, l, m, c);
|
|
14306
14302
|
function g() {
|
|
14307
14303
|
const w = M(F.value.primaryColumns);
|
|
14308
14304
|
return e.value.filter((v) => v.visible !== !1).map((v, p) => S(v, w, "primary", p));
|
|
@@ -14323,7 +14319,7 @@ function Wr(t, n, e, o, r, a, i, s, u, l, m, c, f, h, d) {
|
|
|
14323
14319
|
renderTreeArea: T
|
|
14324
14320
|
};
|
|
14325
14321
|
}
|
|
14326
|
-
function
|
|
14322
|
+
function Zn(t, n) {
|
|
14327
14323
|
function e() {
|
|
14328
14324
|
return n.slots.header && x("div", {
|
|
14329
14325
|
class: "f-tree-view-header"
|
|
@@ -14339,7 +14335,7 @@ const Kt = /* @__PURE__ */ Le({
|
|
|
14339
14335
|
emits: ["outputValue", "currentEvent", "selectionChange", "expandNode", "dblclickNode"],
|
|
14340
14336
|
setup(t, n) {
|
|
14341
14337
|
var Pe;
|
|
14342
|
-
const e = ((Pe = t.rowOption) == null ? void 0 : Pe.height) || 28, o = E(), r = E(!1), a = E(), i = E(20), s = E([]), u =
|
|
14338
|
+
const e = ((Pe = t.rowOption) == null ? void 0 : Pe.height) || 28, o = E(), r = E(!1), a = E(), i = E(20), s = E([]), u = lo(), l = so(t), m = uo(t), c = co(t, /* @__PURE__ */ new Map(), u, m, l), f = fo(t, c, l, s, n), h = Fr(t, s, c, l, f, n), d = W(() => ({
|
|
14343
14339
|
// 'fv-tree': true
|
|
14344
14340
|
"fv-grid": !0,
|
|
14345
14341
|
"fv-tree-view": !0
|
|
@@ -14349,11 +14345,11 @@ const Kt = /* @__PURE__ */ Le({
|
|
|
14349
14345
|
"fv-grid-content-hover": r.value
|
|
14350
14346
|
})), {
|
|
14351
14347
|
containerStyleObject: F
|
|
14352
|
-
} =
|
|
14348
|
+
} = mo(t), y = E(t.columns), S = ho(t), {
|
|
14353
14349
|
columnContext: g
|
|
14354
|
-
} = S, T =
|
|
14350
|
+
} = S, T = po(t, g), w = 0, v = W(() => t.virtualized ? Math.min(c.dataView.value.length, i.value) : c.dataView.value.length), p = W(() => !s.value || !s.value.length), b = vo(t, n, f, l), C = go(t, n, l, b, s), O = yo(t), _ = bo(t, {}, O), V = wo(t, c, C, m, l, O, _), D = Co(t, y, c, v, w, V), {
|
|
14355
14351
|
getVisualData: k
|
|
14356
|
-
} = D, N =
|
|
14352
|
+
} = D, N = _o(t, g), z = So(t, c, s, g, D, v, w, E(0)), H = xo(t, f), {
|
|
14357
14353
|
onWheel: R,
|
|
14358
14354
|
dataGridWidth: B,
|
|
14359
14355
|
viewPortHeight: j,
|
|
@@ -14362,21 +14358,21 @@ const Kt = /* @__PURE__ */ Le({
|
|
|
14362
14358
|
updateVisibleRowsOnLatestVisibleScope: U
|
|
14363
14359
|
} = z, {
|
|
14364
14360
|
renderVerticalScrollbar: $
|
|
14365
|
-
} = Mo(t, o, z), {
|
|
14366
|
-
renderHorizontalScrollbar: L
|
|
14367
14361
|
} = ko(t, o, z), {
|
|
14362
|
+
renderHorizontalScrollbar: L
|
|
14363
|
+
} = Fo(t, o, z), {
|
|
14368
14364
|
renderDataGridSidebar: Y
|
|
14369
|
-
} =
|
|
14365
|
+
} = To(t, b, f, H, z), Q = Eo(t, g, o, P, T), {
|
|
14370
14366
|
calculateColumnsSize: K
|
|
14371
14367
|
} = Q;
|
|
14372
14368
|
function Z() {
|
|
14373
|
-
return t.header === "ContentHeader",
|
|
14369
|
+
return t.header === "ContentHeader", Zn;
|
|
14374
14370
|
}
|
|
14375
|
-
const
|
|
14371
|
+
const ce = Z(), {
|
|
14376
14372
|
renderHeader: pe
|
|
14377
|
-
} =
|
|
14373
|
+
} = ce(t, n), {
|
|
14378
14374
|
renderTreeArea: be
|
|
14379
|
-
} =
|
|
14375
|
+
} = $r(t, n, s, N, S, c, C, m, b, f, h, z, D, O, a);
|
|
14380
14376
|
function Me() {
|
|
14381
14377
|
const we = f.getSelectionRow();
|
|
14382
14378
|
return we ? we.dataIndex - 1 : -1;
|
|
@@ -14388,7 +14384,7 @@ const Kt = /* @__PURE__ */ Le({
|
|
|
14388
14384
|
}
|
|
14389
14385
|
const {
|
|
14390
14386
|
renderEmpty: X
|
|
14391
|
-
} =
|
|
14387
|
+
} = Mo(n);
|
|
14392
14388
|
lt(() => {
|
|
14393
14389
|
o.value && (i.value = Math.max(Math.ceil(o.value.clientHeight / e), i.value), s.value = k(0, v.value + w - 1), Mn(o.value, Oe), K(), Jt(() => {
|
|
14394
14390
|
o.value && (B.value = o.value.clientWidth), a.value && (P.value = a.value.clientWidth, j.value = a.value.clientHeight);
|
|
@@ -14402,7 +14398,7 @@ const Kt = /* @__PURE__ */ Le({
|
|
|
14402
14398
|
const we = Me();
|
|
14403
14399
|
c.insertNewChildDataItem(we), s.value = k(0, v.value + w - 1);
|
|
14404
14400
|
}
|
|
14405
|
-
function
|
|
14401
|
+
function ne() {
|
|
14406
14402
|
const we = Me(), Te = h.getNextSelectableHierarchyItemId(we);
|
|
14407
14403
|
c.removeHierarchyDataItem(we), s.value = k(0, v.value + w - 1), Te && f.selectItemById(Te);
|
|
14408
14404
|
}
|
|
@@ -14440,7 +14436,7 @@ const Kt = /* @__PURE__ */ Le({
|
|
|
14440
14436
|
return n.expose({
|
|
14441
14437
|
addNewDataItem: ie,
|
|
14442
14438
|
addNewChildDataItem: G,
|
|
14443
|
-
removeDataItem:
|
|
14439
|
+
removeDataItem: ne,
|
|
14444
14440
|
editDataItem: ge,
|
|
14445
14441
|
acceptDataItem: Ie,
|
|
14446
14442
|
cancelDataItem: Ve,
|
|
@@ -14469,15 +14465,15 @@ const Kt = /* @__PURE__ */ Le({
|
|
|
14469
14465
|
props: Ln,
|
|
14470
14466
|
emits: ["outputValue", "currentEvent", "selectionChange"],
|
|
14471
14467
|
setup(t, n) {
|
|
14472
|
-
const e = E(), o = ze("design-item-context"), r =
|
|
14468
|
+
const e = E(), o = ze("design-item-context"), r = Lo(e, o), a = E();
|
|
14473
14469
|
E(t.idField);
|
|
14474
|
-
const i = E(), s = E(!1), u = E([]), l =
|
|
14470
|
+
const i = E(), s = E(!1), u = E([]), l = Er(), m = Tr(t), c = Pr(t), f = Uo(t, /* @__PURE__ */ new Map(), l, m, c), h = Vr(t, f, c, u, n), d = Fr(t, u, f, c, h, n), M = W(() => ({
|
|
14475
14471
|
"fv-tree": !0
|
|
14476
14472
|
})), F = W(() => ({
|
|
14477
14473
|
"fv-tree-content": !0
|
|
14478
14474
|
})), {
|
|
14479
14475
|
containerStyleObject: y
|
|
14480
|
-
} =
|
|
14476
|
+
} = Yo(t);
|
|
14481
14477
|
function S(j) {
|
|
14482
14478
|
}
|
|
14483
14479
|
function g() {
|
|
@@ -14488,13 +14484,13 @@ const Kt = /* @__PURE__ */ Le({
|
|
|
14488
14484
|
}
|
|
14489
14485
|
const w = E(t.columns), v = kl(t), {
|
|
14490
14486
|
columnContext: p
|
|
14491
|
-
} = v, b = 0, C = W(() => f.dataView.value.length), O =
|
|
14487
|
+
} = v, b = 0, C = W(() => f.dataView.value.length), O = Dr(t, n, h, c), _ = Nr(t, n, c, O), V = Mr(t), D = Or(t, {}, V), k = Ir(t, f, _, m, c, V, D), N = zc(t, w, f, C, b, k), {
|
|
14492
14488
|
getVisualData: z
|
|
14493
|
-
} = N, H =
|
|
14489
|
+
} = N, H = qo(t, p);
|
|
14494
14490
|
u.value = z(0, C.value + b - 1);
|
|
14495
|
-
const R =
|
|
14491
|
+
const R = kr(t, f, u, p, N, C, b, E(0)), {
|
|
14496
14492
|
renderTreeArea: B
|
|
14497
|
-
} =
|
|
14493
|
+
} = $r(t, n, u, H, v, f, _, m, O, h, d, R, N, V, a);
|
|
14498
14494
|
return n.expose(r.value), () => x("div", {
|
|
14499
14495
|
class: M.value,
|
|
14500
14496
|
style: y.value,
|
|
@@ -14512,12 +14508,12 @@ const Kt = /* @__PURE__ */ Le({
|
|
|
14512
14508
|
}
|
|
14513
14509
|
});
|
|
14514
14510
|
Kt.register = (t, n, e) => {
|
|
14515
|
-
t["tree-view"] = Kt, n["tree-view"] =
|
|
14511
|
+
t["tree-view"] = Kt, n["tree-view"] = Hr;
|
|
14516
14512
|
};
|
|
14517
14513
|
Kt.registerDesigner = (t, n, e) => {
|
|
14518
|
-
t["tree-view"] = Of, n["tree-view"] =
|
|
14514
|
+
t["tree-view"] = Of, n["tree-view"] = Hr;
|
|
14519
14515
|
};
|
|
14520
|
-
|
|
14516
|
+
ao(Kt);
|
|
14521
14517
|
const If = /* @__PURE__ */ Le({
|
|
14522
14518
|
name: "FSelectSourceControl",
|
|
14523
14519
|
props: en,
|
|
@@ -14690,8 +14686,8 @@ const If = /* @__PURE__ */ Le({
|
|
|
14690
14686
|
for (; Y === -1; ) {
|
|
14691
14687
|
let K = !1;
|
|
14692
14688
|
for (let Z = 0; Z < Q.length; Z++)
|
|
14693
|
-
Q[Z].controllerList.forEach((
|
|
14694
|
-
|
|
14689
|
+
Q[Z].controllerList.forEach((ce) => {
|
|
14690
|
+
ce.label || ce.label === "" ? K = ce.label.toLowerCase() === L.toLowerCase() ? !0 : K : K = !1;
|
|
14695
14691
|
});
|
|
14696
14692
|
if (K)
|
|
14697
14693
|
I += 1, L = `${U}${$}${I}`;
|
|
@@ -14715,10 +14711,10 @@ const If = /* @__PURE__ */ Le({
|
|
|
14715
14711
|
property: Q,
|
|
14716
14712
|
componentLists: K,
|
|
14717
14713
|
hasPath: Z
|
|
14718
|
-
} = U,
|
|
14714
|
+
} = U, ce = i().replace(/-/g, "").replace("component", "").replace("viewmodel", ""), pe = L.slice(0, 1).toUpperCase() + L.slice(1), {
|
|
14719
14715
|
newName: be,
|
|
14720
14716
|
suffix: Me
|
|
14721
|
-
} = C(1,
|
|
14717
|
+
} = C(1, ce, pe), {
|
|
14722
14718
|
controllerName: Oe
|
|
14723
14719
|
} = $, X = Oe.id, ie = {
|
|
14724
14720
|
id: e(),
|
|
@@ -14829,7 +14825,7 @@ const If = /* @__PURE__ */ Le({
|
|
|
14829
14825
|
}
|
|
14830
14826
|
});
|
|
14831
14827
|
function Df(t, n, e) {
|
|
14832
|
-
const { interactions: o } = n, { setComponentLists: r } =
|
|
14828
|
+
const { interactions: o } = n, { setComponentLists: r } = Vo(), a = E(t.value.internalCommandList);
|
|
14833
14829
|
function i(v) {
|
|
14834
14830
|
o.value[v].showSwitch = [], o.value[v].showSwitch.push(ke({
|
|
14835
14831
|
// 存储所有的展示设定
|
|
@@ -14953,7 +14949,7 @@ function Df(t, n, e) {
|
|
|
14953
14949
|
}
|
|
14954
14950
|
const bn = /* @__PURE__ */ Le({
|
|
14955
14951
|
name: "FEventsEditor",
|
|
14956
|
-
props:
|
|
14952
|
+
props: Do,
|
|
14957
14953
|
emits: ["savedCommandListChanged"],
|
|
14958
14954
|
setup(t, n) {
|
|
14959
14955
|
const e = E(t.initialData), o = rs(e), {
|
|
@@ -15023,6 +15019,6 @@ const bn = /* @__PURE__ */ Le({
|
|
|
15023
15019
|
export {
|
|
15024
15020
|
bn as FEventsEditor,
|
|
15025
15021
|
hh as default,
|
|
15026
|
-
|
|
15022
|
+
Do as eventsEditorProps,
|
|
15027
15023
|
ns as propsResolver
|
|
15028
15024
|
};
|