@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,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var L = (n, t, e) =>
|
|
4
|
-
import { defineComponent as Qe, onBeforeMount as cn, onMounted as Ct, createVNode as k, ref as S, computed as q, watch as ke, Fragment as Et, reactive as wt, createApp as
|
|
5
|
-
import { isPlainObject as Pn, cloneDeep as at, isUndefined as dt, throttle as
|
|
6
|
-
import { useResizeObserver as
|
|
7
|
-
import { useIdentify as
|
|
1
|
+
var Ko = Object.defineProperty;
|
|
2
|
+
var Jo = (n, t, e) => t in n ? Ko(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var L = (n, t, e) => Jo(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { defineComponent as Qe, onBeforeMount as cn, onMounted as Ct, createVNode as k, ref as S, computed as q, watch as ke, Fragment as Et, reactive as wt, createApp as Xn, onUnmounted as dn, Transition as Qn, mergeProps as $t, createTextVNode as Ve, onBeforeUnmount as Kn, withDirectives as Jn, resolveDirective as Zo, inject as Mt, provide as er, triggerRef as tr, isVNode as nr, nextTick as Zt, Teleport as or, shallowRef as rr, render as mn, h as ir, cloneVNode as ar, vModelText as sr } from "vue";
|
|
5
|
+
import { isPlainObject as Pn, cloneDeep as at, isUndefined as dt, throttle as lr } from "lodash-es";
|
|
6
|
+
import { useResizeObserver as Zn } from "@vueuse/core";
|
|
7
|
+
import { useIdentify as ur, useGroupData as cr, useFilter as dr, useHierarchy as fr, useLoading as pr, useDataView as mr, useSelection as hr, useSelectHierarchyItem as vr, useDataViewContainerStyle as gr, useCommandColumn as yr, useColumn as br, useSort as wr, useGroupColumn as Cr, useRow as xr, useEdit as _r, useVisualDataBound as Sr, useVisualDataCell as Tr, useVisualDataRow as Fr, useVisualData as kr, useCellPosition as Mr, useSidebar as Er, useVirtualScroll as Ir, useFitColumn as Or, useFilterHistory as Dr, useColumnFilter as Vr, useDragColumn as Br, getColumnHeader as Pr, getSidebar as Nr, getDisableMask as Rr, getHorizontalScrollbar as Lr, getVerticalScrollbar as $r, getEmpty as jr } from "../data-view/index.esm.js";
|
|
8
8
|
import "../modal/index.esm.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
9
|
+
import Wr from "../transfer/index.esm.js";
|
|
10
|
+
import Hr from "../tabs/index.esm.js";
|
|
11
|
+
import Ar from "../order/index.esm.js";
|
|
12
12
|
import "../condition/index.esm.js";
|
|
13
|
-
import { FCheckbox as
|
|
14
|
-
import { useGuid as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
13
|
+
import { FCheckbox as qr } from "../checkbox/index.esm.js";
|
|
14
|
+
import { useGuid as Gr, resolveField as it, FormSchemaEntityFieldTypeName as Nn, getCustomClass as nn, useCommonUtils as zr, useDateFormat as Yr, useNumberFormat as Ur, setFieldValue as yn, withInstall as Xr } from "../common/index.esm.js";
|
|
15
|
+
import Qr from "../filter-bar/index.esm.js";
|
|
16
|
+
import Kr from "../tooltip/index.esm.js";
|
|
17
17
|
import Jr from "../pagination/index.esm.js";
|
|
18
18
|
import Zr from "../button/index.esm.js";
|
|
19
19
|
import ei from "../search-box/index.esm.js";
|
|
@@ -28,8 +28,8 @@ import ui from "../../designer/button-edit/index.esm.js";
|
|
|
28
28
|
import ci from "../button-group/index.esm.js";
|
|
29
29
|
import di from "../calendar/index.esm.js";
|
|
30
30
|
import fi from "../capsule/index.esm.js";
|
|
31
|
-
import
|
|
32
|
-
import
|
|
31
|
+
import Rn from "../../designer/checkbox/index.esm.js";
|
|
32
|
+
import Ln from "../../designer/checkbox-group/index.esm.js";
|
|
33
33
|
import bn from "../combo-list/index.esm.js";
|
|
34
34
|
import pi from "../combo-tree/index.esm.js";
|
|
35
35
|
import mi from "../component/index.esm.js";
|
|
@@ -73,7 +73,7 @@ import Ki from "../verify-detail/index.esm.js";
|
|
|
73
73
|
import Ji from "../video/index.esm.js";
|
|
74
74
|
import Zi from "../textarea/index.esm.js";
|
|
75
75
|
import ea from "../schema-selector/index.esm.js";
|
|
76
|
-
import
|
|
76
|
+
import eo from "../tree-grid/index.esm.js";
|
|
77
77
|
import ta from "../event-parameter/index.esm.js";
|
|
78
78
|
import na from "../filter-condition-editor/index.esm.js";
|
|
79
79
|
import oa from "../fieldset/index.esm.js";
|
|
@@ -88,7 +88,7 @@ import da from "../html-template/index.esm.js";
|
|
|
88
88
|
import "../external-container/index.esm.js";
|
|
89
89
|
import { FNotifyService as fa } from "../notify/index.esm.js";
|
|
90
90
|
import "bignumber.js";
|
|
91
|
-
const Fn = {},
|
|
91
|
+
const Fn = {}, to = {};
|
|
92
92
|
function kn(n) {
|
|
93
93
|
const { properties: t, title: e, ignore: o } = n, r = o && Array.isArray(o), i = Object.keys(t).reduce((a, l) => ((!r || !o.find((s) => s === l)) && (a[l] = t[l].type === "object" && t[l].properties ? kn(t[l]) : at(t[l].default)), a), {});
|
|
94
94
|
if (e && (!r || !o.find((a) => a === "id"))) {
|
|
@@ -115,7 +115,7 @@ function Ut(n, t = {}, e) {
|
|
|
115
115
|
const o = Fn[n];
|
|
116
116
|
if (o) {
|
|
117
117
|
let r = pa(o);
|
|
118
|
-
const i =
|
|
118
|
+
const i = to[n];
|
|
119
119
|
return r = i ? i({ getSchemaByType: Ut }, r, t, e) : r, r;
|
|
120
120
|
}
|
|
121
121
|
return null;
|
|
@@ -124,7 +124,7 @@ function ma(n, t) {
|
|
|
124
124
|
const e = kn(t);
|
|
125
125
|
return Object.keys(e).reduce((o, r) => (Object.prototype.hasOwnProperty.call(n, r) && (o[r] && Pn(o[r]) && Pn(n[r] || !n[r]) ? Object.assign(o[r], n[r] || {}) : o[r] = n[r]), o), e), e;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function no(n, t) {
|
|
128
128
|
return Object.keys(n).filter((o) => n[o] != null).reduce((o, r) => {
|
|
129
129
|
if (t.has(r)) {
|
|
130
130
|
const i = t.get(r);
|
|
@@ -141,7 +141,7 @@ function oo(n, t) {
|
|
|
141
141
|
}
|
|
142
142
|
function ha(n, t, e = /* @__PURE__ */ new Map()) {
|
|
143
143
|
const o = ma(n, t);
|
|
144
|
-
return
|
|
144
|
+
return no(o, e);
|
|
145
145
|
}
|
|
146
146
|
function va(n = {}) {
|
|
147
147
|
function t(u, c, d, m) {
|
|
@@ -245,9 +245,9 @@ const de = {
|
|
|
245
245
|
}, ga = {}, ya = {};
|
|
246
246
|
va();
|
|
247
247
|
function Ot(n, t, e = /* @__PURE__ */ new Map(), o = (a, l, s, u) => l, r = {}, i = (a) => a) {
|
|
248
|
-
return Fn[t.title] = t,
|
|
248
|
+
return Fn[t.title] = t, to[t.title] = o, ga[t.title] = r, ya[t.title] = i, (a = {}, l = !0) => {
|
|
249
249
|
if (!l)
|
|
250
|
-
return
|
|
250
|
+
return no(a, e);
|
|
251
251
|
const s = ha(a, t, e), u = Object.keys(n).reduce((c, d) => (c[d] = n[d].default, c), {});
|
|
252
252
|
return Object.assign(u, s);
|
|
253
253
|
};
|
|
@@ -281,7 +281,7 @@ function Ca() {
|
|
|
281
281
|
updateColumns: n
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
const
|
|
284
|
+
const oo = /* @__PURE__ */ new Map([
|
|
285
285
|
["appearance", fn]
|
|
286
286
|
]), xa = "https://json-schema.org/draft/2020-12/schema", _a = "https://farris-design.gitee.io/component.schema.json", Sa = "component", Ta = "A Farris Visual Component", Fa = "object", ka = {
|
|
287
287
|
id: {
|
|
@@ -351,7 +351,7 @@ const ro = /* @__PURE__ */ new Map([
|
|
|
351
351
|
required: Ma,
|
|
352
352
|
events: Ea
|
|
353
353
|
};
|
|
354
|
-
function
|
|
354
|
+
function ro(n, t, e) {
|
|
355
355
|
return t;
|
|
356
356
|
}
|
|
357
357
|
const pn = {
|
|
@@ -360,7 +360,7 @@ const pn = {
|
|
|
360
360
|
customStyle: { type: String, default: "" },
|
|
361
361
|
componentType: { type: String, default: "" },
|
|
362
362
|
formColumns: { type: Number, default: 4 }
|
|
363
|
-
},
|
|
363
|
+
}, $n = Ot(pn, Ia, oo, ro), Lp = Object.assign({}, pn, { componentId: { type: String, default: "" } }), hn = /* @__PURE__ */ Qe({
|
|
364
364
|
name: "FComponent",
|
|
365
365
|
props: pn,
|
|
366
366
|
emits: ["init", "afterViewInit"],
|
|
@@ -374,7 +374,7 @@ const pn = {
|
|
|
374
374
|
}, [t.slots.default && t.slots.default()]);
|
|
375
375
|
}
|
|
376
376
|
});
|
|
377
|
-
function
|
|
377
|
+
function io(n, t, e) {
|
|
378
378
|
var f;
|
|
379
379
|
const o = e && e.getStyles && e.getStyles() || "", r = e && e.getDesignerClass && e.getDesignerClass() || "", i = S();
|
|
380
380
|
function a() {
|
|
@@ -581,7 +581,7 @@ class Oa {
|
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
const Da = S(0);
|
|
584
|
-
function
|
|
584
|
+
function ao() {
|
|
585
585
|
Da.value++;
|
|
586
586
|
}
|
|
587
587
|
const Xt = S(0);
|
|
@@ -620,7 +620,7 @@ function Pa(n) {
|
|
|
620
620
|
return o;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function so(n) {
|
|
624
624
|
if (!n)
|
|
625
625
|
return;
|
|
626
626
|
const t = n.getBoundingClientRect();
|
|
@@ -641,7 +641,7 @@ function Na(n) {
|
|
|
641
641
|
if (!n)
|
|
642
642
|
return;
|
|
643
643
|
let t;
|
|
644
|
-
n.className.includes("dgComponentSelected") ? t = n : t = n.querySelector(".dgComponentSelected"), t &&
|
|
644
|
+
n.className.includes("dgComponentSelected") ? t = n : t = n.querySelector(".dgComponentSelected"), t && so(t);
|
|
645
645
|
}
|
|
646
646
|
function Ra(n) {
|
|
647
647
|
const { formSchemaUtils: t, formStateMachineUtils: e } = n;
|
|
@@ -932,7 +932,7 @@ class La {
|
|
|
932
932
|
};
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
class
|
|
935
|
+
class lo {
|
|
936
936
|
constructor(t, e) {
|
|
937
937
|
L(this, "componentId");
|
|
938
938
|
L(this, "viewModelId");
|
|
@@ -1124,7 +1124,7 @@ class uo {
|
|
|
1124
1124
|
if (!o)
|
|
1125
1125
|
return;
|
|
1126
1126
|
const r = o.contents.findIndex((a) => a.id === t), i = at(o.contents[r]);
|
|
1127
|
-
o.contents.splice(r, 1), o.contents.splice(r, 0, i),
|
|
1127
|
+
o.contents.splice(r, 1), o.contents.splice(r, 0, i), ao();
|
|
1128
1128
|
}
|
|
1129
1129
|
/**
|
|
1130
1130
|
* 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
|
|
@@ -1187,7 +1187,7 @@ class uo {
|
|
|
1187
1187
|
return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item"].indexOf(t.type) > -1 ? "Button" : t.binding && t.binding.field ? "Field" : "Container";
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
|
-
class $a extends
|
|
1190
|
+
class $a extends lo {
|
|
1191
1191
|
constructor(t, e) {
|
|
1192
1192
|
super(t, e);
|
|
1193
1193
|
}
|
|
@@ -1434,7 +1434,7 @@ class en {
|
|
|
1434
1434
|
...t
|
|
1435
1435
|
}), i = document.createElement("div");
|
|
1436
1436
|
i.style.display = "contents";
|
|
1437
|
-
const a =
|
|
1437
|
+
const a = Xn({
|
|
1438
1438
|
setup() {
|
|
1439
1439
|
var u;
|
|
1440
1440
|
const l = S();
|
|
@@ -1454,7 +1454,7 @@ class en {
|
|
|
1454
1454
|
document.body.removeChild(i);
|
|
1455
1455
|
}), Ct(() => {
|
|
1456
1456
|
e.updateNotifyPositionForCreate(r, l);
|
|
1457
|
-
}), () => k(
|
|
1457
|
+
}), () => k(Qn, {
|
|
1458
1458
|
mode: "out-in",
|
|
1459
1459
|
name: "fade",
|
|
1460
1460
|
appear: !0
|
|
@@ -1546,7 +1546,7 @@ const Aa = {
|
|
|
1546
1546
|
bindingEntityId: { type: String, default: "" },
|
|
1547
1547
|
/** 绑定步骤 */
|
|
1548
1548
|
steps: { type: Array, default: ["selectEntity", "selectFields"] }
|
|
1549
|
-
},
|
|
1549
|
+
}, uo = /* @__PURE__ */ new Map([
|
|
1550
1550
|
["appearance", fn],
|
|
1551
1551
|
["column", "columnOption"]
|
|
1552
1552
|
]);
|
|
@@ -1569,7 +1569,7 @@ function za(n, t, e) {
|
|
|
1569
1569
|
const o = n.getSchemaByType("content-container");
|
|
1570
1570
|
return o.id = `${t.id}-layout`, o.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, o.contents = [t], o;
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function co(n, t, e) {
|
|
1573
1573
|
const r = e.parentComponentInstance.schema.type, i = r === "section" || r === "tab-page";
|
|
1574
1574
|
t.appearance = { class: "f-component-grid" };
|
|
1575
1575
|
const l = (i ? za : Ga)(n, t, e);
|
|
@@ -2355,7 +2355,7 @@ const Ya = "https://json-schema.org/draft/2020-12/schema", Ua = "https://farris-
|
|
|
2355
2355
|
], es = {
|
|
2356
2356
|
onSelectionChange: "行切换事件",
|
|
2357
2357
|
onClickRow: "行点击事件"
|
|
2358
|
-
},
|
|
2358
|
+
}, fo = {
|
|
2359
2359
|
$schema: Ya,
|
|
2360
2360
|
$id: Ua,
|
|
2361
2361
|
title: Xa,
|
|
@@ -2493,7 +2493,7 @@ const Ya = "https://json-schema.org/draft/2020-12/schema", Ua = "https://farris-
|
|
|
2493
2493
|
width: { type: Number, default: -1 },
|
|
2494
2494
|
/** 启用虚拟渲染 */
|
|
2495
2495
|
virtualized: { type: Boolean, default: !1 }
|
|
2496
|
-
}, ts = Ot(Mn,
|
|
2496
|
+
}, ts = Ot(Mn, fo, uo, co), ns = wa(), os = ba(), po = Object.assign({}, Mn, { componentId: { type: String, default: "" } }), rs = Ot(po, fo, uo, co), is = Ca();
|
|
2497
2497
|
var ot = /* @__PURE__ */ ((n) => (n[n.readonly = 0] = "readonly", n[n.editable = 1] = "editable", n[n.editing = 2] = "editing", n))(ot || {}), vt = /* @__PURE__ */ ((n) => (n[n.initial = 0] = "initial", n[n.editing = 1] = "editing", n))(vt || {}), Qt = /* @__PURE__ */ ((n) => (n[n.data = 0] = "data", n[n.group = 1] = "group", n[n.summary = 2] = "summary", n))(Qt || {}), nt = /* @__PURE__ */ ((n) => (n[n.none = 0] = "none", n[n.filterable = 1] = "filterable", n[n.sortable = 2] = "sortable", n[n.filtered = 4] = "filtered", n[n.sorted = 8] = "sorted", n[n.ascending = 16] = "ascending", n[n.descending = 32] = "descending", n))(nt || {});
|
|
2498
2498
|
function as(n, t) {
|
|
2499
2499
|
var y;
|
|
@@ -2699,38 +2699,38 @@ function ds(n, t, e, o, r, i, a, l, s, u, c, d, m) {
|
|
|
2699
2699
|
} = ss(n, o, a), {
|
|
2700
2700
|
treeNodeIconsClass: B
|
|
2701
2701
|
} = ls(n, v, w);
|
|
2702
|
-
function Y(G,
|
|
2702
|
+
function Y(G, oe) {
|
|
2703
2703
|
const be = G.raw[w.value];
|
|
2704
2704
|
return {
|
|
2705
2705
|
"fv-tree-node-toggle": be && G.collapse,
|
|
2706
2706
|
"fv-tree-node-toggle-minus": be && !G.collapse
|
|
2707
2707
|
};
|
|
2708
2708
|
}
|
|
2709
|
-
function A(G,
|
|
2710
|
-
G.stopPropagation(), O(
|
|
2709
|
+
function A(G, oe) {
|
|
2710
|
+
G.stopPropagation(), O(oe);
|
|
2711
2711
|
}
|
|
2712
2712
|
function $(G) {
|
|
2713
2713
|
G.stopPropagation();
|
|
2714
2714
|
}
|
|
2715
|
-
function z(G,
|
|
2715
|
+
function z(G, oe) {
|
|
2716
2716
|
return k("div", {
|
|
2717
2717
|
class: Y(G),
|
|
2718
2718
|
onClick: (be) => A(be, G),
|
|
2719
2719
|
onDblclick: $
|
|
2720
2720
|
}, null);
|
|
2721
2721
|
}
|
|
2722
|
-
function K(G,
|
|
2722
|
+
function K(G, oe) {
|
|
2723
2723
|
return h.value && k("div", {
|
|
2724
2724
|
id: "treeNodeIcons",
|
|
2725
|
-
class: B(G,
|
|
2725
|
+
class: B(G, oe)
|
|
2726
2726
|
}, null);
|
|
2727
2727
|
}
|
|
2728
2728
|
function ie(G) {
|
|
2729
2729
|
F.value ? (G.checked ? M(G) : _(G), V(G)) : f(G);
|
|
2730
2730
|
}
|
|
2731
|
-
function Z(G,
|
|
2732
|
-
return T.value && k(
|
|
2733
|
-
id: "checkbox_for_" + E(G,
|
|
2731
|
+
function Z(G, oe) {
|
|
2732
|
+
return T.value && k(qr, {
|
|
2733
|
+
id: "checkbox_for_" + E(G, oe.index),
|
|
2734
2734
|
indeterminate: G.indeterminate,
|
|
2735
2735
|
disabled: G.disabled,
|
|
2736
2736
|
checked: G.checked,
|
|
@@ -2738,61 +2738,57 @@ function ds(n, t, e, o, r, i, a, l, s, u, c, d, m) {
|
|
|
2738
2738
|
onChange: () => ie(G)
|
|
2739
2739
|
}, null);
|
|
2740
2740
|
}
|
|
2741
|
-
function
|
|
2741
|
+
function me(G, oe) {
|
|
2742
2742
|
return k("span", {
|
|
2743
|
-
title: te.data,
|
|
2744
2743
|
style: "user-select:none"
|
|
2745
2744
|
}, [t.slots.cellTemplate ? t.slots.cellTemplate({
|
|
2746
|
-
cell:
|
|
2745
|
+
cell: oe,
|
|
2747
2746
|
row: G
|
|
2748
|
-
}) :
|
|
2747
|
+
}) : oe.mode === ot.editing ? oe.getEditor(oe) : oe.formatter ? oe.formatter(oe, G) : oe.showTips ? k(Kr, null, {
|
|
2748
|
+
default: () => oe.data,
|
|
2749
|
+
contentTemplate: () => oe.data
|
|
2750
|
+
}) : oe.data]);
|
|
2749
2751
|
}
|
|
2750
|
-
function ve(G,
|
|
2752
|
+
function ve(G, oe) {
|
|
2751
2753
|
return k("div", {
|
|
2752
|
-
class: Q(
|
|
2753
|
-
}, [
|
|
2754
|
-
default: () => fe(G, te),
|
|
2755
|
-
contentTemplate: () => fe(G, te)
|
|
2756
|
-
}) : fe(G, te)]);
|
|
2754
|
+
class: Q(oe)
|
|
2755
|
+
}, [me(G, oe)]);
|
|
2757
2756
|
}
|
|
2758
|
-
function _e(G,
|
|
2757
|
+
function _e(G, oe, be) {
|
|
2759
2758
|
const Fe = P(G);
|
|
2760
2759
|
return k("div", {
|
|
2761
|
-
ref:
|
|
2762
|
-
key: E(G,
|
|
2760
|
+
ref: oe.setRef,
|
|
2761
|
+
key: E(G, oe.index),
|
|
2763
2762
|
class: "fv-grid-hierarchy-cell",
|
|
2764
|
-
style: D(
|
|
2763
|
+
style: D(oe, be)
|
|
2765
2764
|
}, [k("div", {
|
|
2766
|
-
class: N(
|
|
2765
|
+
class: N(oe),
|
|
2767
2766
|
style: Fe
|
|
2768
|
-
}, [z(G), K(G,
|
|
2767
|
+
}, [z(G), K(G, oe), Z(G, oe), ve(G, oe)])]);
|
|
2769
2768
|
}
|
|
2770
|
-
function Be(G,
|
|
2769
|
+
function Be(G, oe, be) {
|
|
2771
2770
|
return k("div", {
|
|
2772
|
-
ref:
|
|
2773
|
-
key: E(G,
|
|
2774
|
-
class: p(
|
|
2775
|
-
style: D(
|
|
2776
|
-
onClick: (Fe) => y(Fe,
|
|
2771
|
+
ref: oe.setRef,
|
|
2772
|
+
key: E(G, oe.index),
|
|
2773
|
+
class: p(oe),
|
|
2774
|
+
style: D(oe, be),
|
|
2775
|
+
onClick: (Fe) => y(Fe, oe, G, oe.column)
|
|
2777
2776
|
}, [k("div", {
|
|
2778
|
-
class: N(
|
|
2777
|
+
class: N(oe)
|
|
2779
2778
|
}, [k("div", {
|
|
2780
|
-
class: Q(
|
|
2781
|
-
}, [
|
|
2782
|
-
default: () => fe(G, te),
|
|
2783
|
-
contentTemplate: () => fe(G, te)
|
|
2784
|
-
}) : fe(G, te)])])]);
|
|
2779
|
+
class: Q(oe)
|
|
2780
|
+
}, [me(G, oe)])])]);
|
|
2785
2781
|
}
|
|
2786
|
-
function Le(G,
|
|
2787
|
-
return
|
|
2782
|
+
function Le(G, oe) {
|
|
2783
|
+
return oe === "left" && e.value.leftColumns.length > 0 && e.value.leftColumns[0].field === G.field || oe === "primary" && e.value.primaryColumns.length > 0 && e.value.primaryColumns[0].field === G.field;
|
|
2788
2784
|
}
|
|
2789
|
-
function U(G,
|
|
2785
|
+
function U(G, oe) {
|
|
2790
2786
|
t.emit("dblclickNode", {
|
|
2791
2787
|
$event: G,
|
|
2792
|
-
node:
|
|
2788
|
+
node: oe.raw
|
|
2793
2789
|
});
|
|
2794
2790
|
}
|
|
2795
|
-
function ce(G,
|
|
2791
|
+
function ce(G, oe, be = "primary", Fe) {
|
|
2796
2792
|
return k("div", {
|
|
2797
2793
|
ref: G.setRef,
|
|
2798
2794
|
key: H(G),
|
|
@@ -2802,7 +2798,7 @@ function ds(n, t, e, o, r, i, a, l, s, u, c, d, m) {
|
|
|
2802
2798
|
onMouseout: (De) => b(De, G),
|
|
2803
2799
|
onClick: (De) => g(De, G),
|
|
2804
2800
|
onDblclick: (De) => U(De, G)
|
|
2805
|
-
}, [Object.values(G.data).filter((De) =>
|
|
2801
|
+
}, [Object.values(G.data).filter((De) => oe[De.field] && De.rowSpan === 1).map((De) => Le(De, be) ? _e(G, De, oe) : Be(G, De, oe))]);
|
|
2806
2802
|
}
|
|
2807
2803
|
return {
|
|
2808
2804
|
renderDataRow: ce
|
|
@@ -3015,7 +3011,7 @@ function vs(n, t) {
|
|
|
3015
3011
|
}
|
|
3016
3012
|
function gs(n, t) {
|
|
3017
3013
|
var x;
|
|
3018
|
-
|
|
3014
|
+
Gr();
|
|
3019
3015
|
const { idField: e } = t, o = S(n.summary), r = S(n.group), i = S(((x = n.group) == null ? void 0 : x.groupFields) || []), a = q(() => {
|
|
3020
3016
|
var b;
|
|
3021
3017
|
return (b = n.group) == null ? void 0 : b.enable;
|
|
@@ -3113,8 +3109,8 @@ function ys(n, t, e, o) {
|
|
|
3113
3109
|
d.clear(), A.reduce((z, K) => {
|
|
3114
3110
|
const ie = K[u.value] !== void 0 ? K[u.value] : "";
|
|
3115
3111
|
if (ie && $.has(ie)) {
|
|
3116
|
-
const
|
|
3117
|
-
K.__fv_layer__ = ve + 1, K.__fv_parent_index__ =
|
|
3112
|
+
const me = $.get(ie), ve = isNaN(Number(me.__fv_layer__)) ? 1 : Number(me.__fv_layer__);
|
|
3113
|
+
K.__fv_layer__ = ve + 1, K.__fv_parent_index__ = me.__fv_index__, me.__fv_hasChildren__ = !0;
|
|
3118
3114
|
} else
|
|
3119
3115
|
K.__fv_layer__ = 1;
|
|
3120
3116
|
const Z = z.has(ie) ? z.get(ie) : [];
|
|
@@ -3162,8 +3158,8 @@ function ys(n, t, e, o) {
|
|
|
3162
3158
|
}
|
|
3163
3159
|
function F(A, $, z) {
|
|
3164
3160
|
Array.from($.keys()).forEach((K) => {
|
|
3165
|
-
$.get(K).reduce((Z,
|
|
3166
|
-
const ve =
|
|
3161
|
+
$.get(K).reduce((Z, me) => {
|
|
3162
|
+
const ve = me[a.value], _e = A.get(me[a.value]), Be = A.get(K), Le = z.get(K);
|
|
3167
3163
|
return Be && Le && (Be.children.set(ve, _e), Be.children.set(ve, _e), _e.parentId = K, _e.parentIndex = Be.index, _e.parents.set(K, Be)), Z;
|
|
3168
3164
|
}, A);
|
|
3169
3165
|
});
|
|
@@ -3227,7 +3223,7 @@ function ys(n, t, e, o) {
|
|
|
3227
3223
|
}
|
|
3228
3224
|
function H(A, $, z = 0) {
|
|
3229
3225
|
A.forEach((K) => {
|
|
3230
|
-
const ie = T(K), Z = K.__fv_layer__ <= z,
|
|
3226
|
+
const ie = T(K), Z = K.__fv_layer__ <= z, me = $ === "ToCollapse" ? K.__fv_layer__ <= z : !(K.__fv_layer__ <= z), ve = Z ? me : K[l.value];
|
|
3231
3227
|
K[l.value] = ie || ve;
|
|
3232
3228
|
});
|
|
3233
3229
|
for (const [K, ie] of d.entries())
|
|
@@ -3242,8 +3238,8 @@ function ys(n, t, e, o) {
|
|
|
3242
3238
|
}
|
|
3243
3239
|
function j(A) {
|
|
3244
3240
|
A.forEach(($, z) => {
|
|
3245
|
-
var
|
|
3246
|
-
const K = $[a.value], ie = d.has(K) ? (
|
|
3241
|
+
var me;
|
|
3242
|
+
const K = $[a.value], ie = d.has(K) ? (me = d.get(K)) == null ? void 0 : me.map((ve) => ve.__fv_index__) : [], Z = b(K, z);
|
|
3247
3243
|
$.__fv_graph_node__ = Z, $.__fv_children_index__ = ie, $.__fv_descendant_index__ = [...ie], $.__fv_parents__ = /* @__PURE__ */ new Map(), T($) && ($[l.value] = !0);
|
|
3248
3244
|
});
|
|
3249
3245
|
}
|
|
@@ -3256,18 +3252,18 @@ function ys(n, t, e, o) {
|
|
|
3256
3252
|
function P(A, $, z) {
|
|
3257
3253
|
const ie = z.value[A][a.value], Z = c.get(ie);
|
|
3258
3254
|
if (Z) {
|
|
3259
|
-
const
|
|
3255
|
+
const me = c.get(Z.parentId);
|
|
3260
3256
|
let ve = z.value.length - 1;
|
|
3261
|
-
if (
|
|
3262
|
-
const _e = Array.from(
|
|
3263
|
-
if (_e ===
|
|
3264
|
-
const Le = Array.from(
|
|
3257
|
+
if (me) {
|
|
3258
|
+
const _e = Array.from(me.children.keys()).indexOf(Z.id);
|
|
3259
|
+
if (_e === me.children.size - 1) {
|
|
3260
|
+
const Le = Array.from(me.descendant.values())[me.descendant.size - 1];
|
|
3265
3261
|
ve = z.value.findIndex((ce) => ce[a.value] === Le.id) + 1;
|
|
3266
3262
|
} else {
|
|
3267
|
-
const Le = Array.from(
|
|
3263
|
+
const Le = Array.from(me.children.values())[_e + 1];
|
|
3268
3264
|
ve = z.value.findIndex((ce) => ce[a.value] === Le.id);
|
|
3269
3265
|
}
|
|
3270
|
-
$[s.value] = !1, $[u.value] =
|
|
3266
|
+
$[s.value] = !1, $[u.value] = me.id, z.value.splice(ve, 0, $);
|
|
3271
3267
|
}
|
|
3272
3268
|
}
|
|
3273
3269
|
}
|
|
@@ -3334,79 +3330,79 @@ function bs(n, t, e, o, r) {
|
|
|
3334
3330
|
return A.value && A.value.enable && A.value.size > 0 ? A.value.size : H.value.length;
|
|
3335
3331
|
}
|
|
3336
3332
|
const z = S(1), K = q(() => A.value && A.value.enable && A.value.mode !== "server"), ie = q(() => A.value && A.value.enable && A.value.mode === "server"), Z = new en();
|
|
3337
|
-
function
|
|
3338
|
-
const Ce = Math.ceil(X.length /
|
|
3333
|
+
function me(X, pe) {
|
|
3334
|
+
const Ce = Math.ceil(X.length / pe);
|
|
3339
3335
|
let Ee = 0;
|
|
3340
|
-
const W = [], ee = [],
|
|
3336
|
+
const W = [], ee = [], ne = [];
|
|
3341
3337
|
for (; Ee < Ce; ) {
|
|
3342
|
-
const
|
|
3338
|
+
const te = X.slice(Ee * pe, (Ee + 1) * pe), we = y(p.value, te, t);
|
|
3343
3339
|
ee[Ee] = we.filter((ye) => ye.__fv_data_grid_group_row__).length, W.push(...we), Ee++;
|
|
3344
3340
|
}
|
|
3345
|
-
return ee.reduce((
|
|
3341
|
+
return ee.reduce((te, we, ye) => (te = te + we, ne.push(te), te), 0), {
|
|
3346
3342
|
groupData: W,
|
|
3347
3343
|
groupRowSizeList: ee,
|
|
3348
|
-
accumulateGroupRowSize:
|
|
3344
|
+
accumulateGroupRowSize: ne
|
|
3349
3345
|
};
|
|
3350
3346
|
}
|
|
3351
3347
|
function ve() {
|
|
3352
3348
|
var we;
|
|
3353
3349
|
H.value = C.value, K.value && (Y.value = H.value.length), I.value && !K.value && (H.value = y(p.value, C.value, t)), B = P.value.reduce((ye, Ne) => (ye.set(Ne, 0), ye), B);
|
|
3354
|
-
const X = 0,
|
|
3355
|
-
let W = Ce > H.value.length - 1 || ie.value ? X : Ce, ee = ie.value ? H.value.length : Math.min(W +
|
|
3350
|
+
const X = 0, pe = $(), Ce = (z.value - 1) * pe;
|
|
3351
|
+
let W = Ce > H.value.length - 1 || ie.value ? X : Ce, ee = ie.value ? H.value.length : Math.min(W + pe, H.value.length);
|
|
3356
3352
|
if (I.value && K.value) {
|
|
3357
|
-
const { accumulateGroupRowSize: ye, groupData: Ne, groupRowSizeList: Te } =
|
|
3353
|
+
const { accumulateGroupRowSize: ye, groupData: Ne, groupRowSizeList: Te } = me(C.value, pe);
|
|
3358
3354
|
H.value = Ne;
|
|
3359
3355
|
const $e = Te[z.value - 1];
|
|
3360
|
-
W += z.value - 2 < 0 ? 0 : ye[z.value - 2], ee = W +
|
|
3356
|
+
W += z.value - 2 < 0 ? 0 : ye[z.value - 2], ee = W + pe + $e;
|
|
3361
3357
|
}
|
|
3362
|
-
let
|
|
3363
|
-
const
|
|
3358
|
+
let ne = 0;
|
|
3359
|
+
const te = [];
|
|
3364
3360
|
if (H.value.length) {
|
|
3365
3361
|
E(H.value);
|
|
3366
3362
|
const ye = V.value !== n.idField;
|
|
3367
3363
|
for (let Ne = W; Ne < ee; Ne++) {
|
|
3368
3364
|
const Te = H.value[Ne];
|
|
3369
|
-
Te.__fv_data_grid_group_row__ ? (
|
|
3365
|
+
Te.__fv_data_grid_group_row__ ? (ne = 0, Te.__fv_data_index__ = "") : Te.__fv_data_grid_group_summary__ ? Te.__fv_data_index__ = "" : (ne++, Te.__fv_data_index__ = ne + (z.value - 1) * pe), Te.__fv_index__ = Ne, Te.__fv_visible_index__ = Ne, n.rowOption && n.rowOption.disabledField && (Te.__fv_disabled__ = Te[(we = n.rowOption) == null ? void 0 : we.disabledField]), ye && (Te[V.value] = Ne), P.value.forEach(($e) => {
|
|
3370
3366
|
const st = B.get($e) || 0;
|
|
3371
3367
|
B.set($e, st + Te[$e]);
|
|
3372
|
-
}),
|
|
3368
|
+
}), te.push(Te);
|
|
3373
3369
|
}
|
|
3374
3370
|
}
|
|
3375
|
-
return w.value && F(
|
|
3371
|
+
return w.value && F(te), R.value = [...te], te;
|
|
3376
3372
|
}
|
|
3377
3373
|
const _e = S(ve()), Be = q(() => (O.value, _e.value.filter((X) => w.value ? X.__fv_visible__ !== !1 && v(X) : X.__fv_visible__ !== !1)));
|
|
3378
3374
|
function Le() {
|
|
3379
|
-
Be.value.forEach((X,
|
|
3375
|
+
Be.value.forEach((X, pe) => (X.__fv_visible_index__ = pe, X));
|
|
3380
3376
|
}
|
|
3381
|
-
function U(X,
|
|
3382
|
-
const W = (Ce ? ve() : [...R.value]).filter((
|
|
3383
|
-
const ye = [...
|
|
3384
|
-
let Te = Ne.compare(
|
|
3377
|
+
function U(X, pe, Ce = !1) {
|
|
3378
|
+
const W = (Ce ? ve() : [...R.value]).filter((te) => e.apply(te)), ee = X && X.length ? W.filter((te) => X.reduce((we, ye) => we && ye.filter(te), !0)) : W, ne = pe && pe.length ? ee.sort((te, we) => {
|
|
3379
|
+
const ye = [...pe], Ne = ye.shift();
|
|
3380
|
+
let Te = Ne.compare(te[Ne.field], we[Ne.field]);
|
|
3385
3381
|
for (; Te === 0 && ye.length !== 0; ) {
|
|
3386
3382
|
const $e = ye.shift();
|
|
3387
|
-
$e && (Te = $e.compare(
|
|
3383
|
+
$e && (Te = $e.compare(te[$e.field], we[$e.field]));
|
|
3388
3384
|
}
|
|
3389
3385
|
return Te;
|
|
3390
3386
|
}) : ee;
|
|
3391
|
-
return _e.value =
|
|
3392
|
-
if (
|
|
3393
|
-
const ye = `group_of_${
|
|
3394
|
-
|
|
3387
|
+
return _e.value = ne.map((te, we) => {
|
|
3388
|
+
if (te.__fv_data_grid_group_row__) {
|
|
3389
|
+
const ye = `group_of_${te.__fv_data_grid_group_field__}_${te.__fv_data_grid_group_value__}`;
|
|
3390
|
+
te.__fv_data_grid_group_collapse__ = !!i.get(ye);
|
|
3395
3391
|
}
|
|
3396
|
-
return
|
|
3392
|
+
return te.__fv_index__ = we, te.__fv_visible_index__ = we, te;
|
|
3397
3393
|
}), _e.value;
|
|
3398
3394
|
}
|
|
3399
3395
|
function ce(X) {
|
|
3400
|
-
return u.clear(), d.value = X, d.value.reduce((
|
|
3396
|
+
return u.clear(), d.value = X, d.value.reduce((pe, Ce) => (pe.set(Ce.field, Ce), pe), u), U([], d.value);
|
|
3401
3397
|
}
|
|
3402
|
-
function G(X,
|
|
3403
|
-
return u.set(X,
|
|
3398
|
+
function G(X, pe) {
|
|
3399
|
+
return u.set(X, pe), d.value = Array.from(u.values()), U([], d.value);
|
|
3404
3400
|
}
|
|
3405
|
-
function
|
|
3401
|
+
function oe(X) {
|
|
3406
3402
|
return u.delete(X), d.value = Array.from(u.values()), U([], d.value);
|
|
3407
3403
|
}
|
|
3408
|
-
function be(X,
|
|
3409
|
-
return a.set(X,
|
|
3404
|
+
function be(X, pe) {
|
|
3405
|
+
return a.set(X, pe), c.value = Array.from(a.values()), U([], Array.from(u.values()));
|
|
3410
3406
|
}
|
|
3411
3407
|
function Fe(X) {
|
|
3412
3408
|
return a.delete(X), c.value = Array.from(a.values()), U([], Array.from(u.values()), !0);
|
|
@@ -3414,15 +3410,15 @@ function bs(n, t, e, o, r) {
|
|
|
3414
3410
|
function De() {
|
|
3415
3411
|
return a.clear(), c.value = [], U([], Array.from(u.values()), !0);
|
|
3416
3412
|
}
|
|
3417
|
-
function rt(X,
|
|
3418
|
-
const Ce = `group_of_${X}_${
|
|
3413
|
+
function rt(X, pe) {
|
|
3414
|
+
const Ce = `group_of_${X}_${pe}`;
|
|
3419
3415
|
i.set(Ce, !0);
|
|
3420
|
-
const Ee = (W) => W[X] !==
|
|
3421
|
-
return l.set(`collapse_${X}_${
|
|
3416
|
+
const Ee = (W) => W[X] !== pe;
|
|
3417
|
+
return l.set(`collapse_${X}_${pe}`, {
|
|
3422
3418
|
field: X,
|
|
3423
3419
|
fieldName: X,
|
|
3424
3420
|
fieldType: "string",
|
|
3425
|
-
filterValue:
|
|
3421
|
+
filterValue: pe,
|
|
3426
3422
|
filter: Ee
|
|
3427
3423
|
}), U(Array.from(l.values()), Array.from(u.values()));
|
|
3428
3424
|
}
|
|
@@ -3432,23 +3428,23 @@ function bs(n, t, e, o, r) {
|
|
|
3432
3428
|
function ft(X) {
|
|
3433
3429
|
b(_e.value, X);
|
|
3434
3430
|
}
|
|
3435
|
-
function J(X,
|
|
3436
|
-
const Ce = `group_of_${X}_${
|
|
3437
|
-
return i.set(Ce, !1), l.delete(`collapse_${X}_${
|
|
3431
|
+
function J(X, pe) {
|
|
3432
|
+
const Ce = `group_of_${X}_${pe}`;
|
|
3433
|
+
return i.set(Ce, !1), l.delete(`collapse_${X}_${pe}`), U(Array.from(l.values()), Array.from(u.values()), !0);
|
|
3438
3434
|
}
|
|
3439
3435
|
function Se(X) {
|
|
3440
|
-
const
|
|
3441
|
-
s.set(`fold_${
|
|
3436
|
+
const pe = X.raw[V.value], Ce = (Ee) => !Ee.__fv_parents__.has(pe);
|
|
3437
|
+
s.set(`fold_${pe}`, {
|
|
3442
3438
|
field: "id",
|
|
3443
3439
|
fieldName: "id",
|
|
3444
3440
|
fieldType: "string",
|
|
3445
|
-
filterValue: String(
|
|
3441
|
+
filterValue: String(pe),
|
|
3446
3442
|
filter: Ce
|
|
3447
3443
|
}), U(Array.from(s.values()), Array.from(u.values())), F(_e.value);
|
|
3448
3444
|
}
|
|
3449
3445
|
function Oe(X) {
|
|
3450
|
-
const
|
|
3451
|
-
s.delete(`fold_${
|
|
3446
|
+
const pe = X[V.value];
|
|
3447
|
+
s.delete(`fold_${pe}`);
|
|
3452
3448
|
}
|
|
3453
3449
|
function Ge(X) {
|
|
3454
3450
|
Oe(X.raw), U(Array.from(s.values()), Array.from(u.values()), !0), F(_e.value);
|
|
@@ -3461,11 +3457,11 @@ function bs(n, t, e, o, r) {
|
|
|
3461
3457
|
const Ce = n.hierarchy && X && X.length && X[0].children ? j(X) : X;
|
|
3462
3458
|
C.value = Ce, Re();
|
|
3463
3459
|
}
|
|
3464
|
-
function yt(X,
|
|
3465
|
-
return (X && X.length ? _e.value.filter((W, ee) => X.reduce((
|
|
3460
|
+
function yt(X, pe, Ce) {
|
|
3461
|
+
return (X && X.length ? _e.value.filter((W, ee) => X.reduce((ne, te) => ne && te.filter(W), !0)) : _e.value).slice(pe, Ce);
|
|
3466
3462
|
}
|
|
3467
3463
|
function xt(X) {
|
|
3468
|
-
const
|
|
3464
|
+
const pe = $(), Ce = Math.ceil(Y.value / pe);
|
|
3469
3465
|
0 <= X && X <= Ce && (z.value = X, Re());
|
|
3470
3466
|
}
|
|
3471
3467
|
function pt(X) {
|
|
@@ -3484,32 +3480,32 @@ function bs(n, t, e, o, r) {
|
|
|
3484
3480
|
Oe(Ee), f(X, Ce, C), Re();
|
|
3485
3481
|
}
|
|
3486
3482
|
function bt(X) {
|
|
3487
|
-
const
|
|
3488
|
-
C.value.splice(
|
|
3483
|
+
const pe = X ? X - 1 : 0;
|
|
3484
|
+
C.value.splice(pe, 1), Re();
|
|
3489
3485
|
}
|
|
3490
3486
|
function Vt(X) {
|
|
3491
|
-
const
|
|
3492
|
-
|
|
3487
|
+
const pe = C.value.findIndex((Ce) => Ce[V.value] === X);
|
|
3488
|
+
pe !== -1 && (C.value.splice(pe, 1), Re());
|
|
3493
3489
|
}
|
|
3494
3490
|
function St(X) {
|
|
3495
|
-
const
|
|
3496
|
-
if (!(
|
|
3491
|
+
const pe = X > -1 ? C.value[X] : null;
|
|
3492
|
+
if (!(pe && pe.deletable !== !1))
|
|
3497
3493
|
return !1;
|
|
3498
|
-
C.value = h(
|
|
3494
|
+
C.value = h(pe, C.value), Re();
|
|
3499
3495
|
}
|
|
3500
3496
|
function re() {
|
|
3501
3497
|
const X = l.size > 0 ? Array.from(l.values()) : [];
|
|
3502
3498
|
return U(X, Array.from(u.values()));
|
|
3503
3499
|
}
|
|
3504
|
-
function
|
|
3500
|
+
function fe(X) {
|
|
3505
3501
|
A.value.size = X;
|
|
3506
3502
|
}
|
|
3507
3503
|
function ge(X) {
|
|
3508
|
-
A.value && (
|
|
3504
|
+
A.value && (fe(X), Re());
|
|
3509
3505
|
}
|
|
3510
|
-
function Pe(X,
|
|
3506
|
+
function Pe(X, pe) {
|
|
3511
3507
|
const Ce = C.value[Number(X) - 1];
|
|
3512
|
-
Ce.editable !== !1 ? (Ce.name =
|
|
3508
|
+
Ce.editable !== !1 ? (Ce.name = pe, Re()) : Z.show({
|
|
3513
3509
|
showCloseButton: !1,
|
|
3514
3510
|
timeout: 3e3,
|
|
3515
3511
|
animate: "fadeIn",
|
|
@@ -3526,7 +3522,7 @@ function bs(n, t, e, o, r) {
|
|
|
3526
3522
|
addFilter: be,
|
|
3527
3523
|
addNewDataItem: pt,
|
|
3528
3524
|
addSorter: G,
|
|
3529
|
-
updatePageSize:
|
|
3525
|
+
updatePageSize: fe,
|
|
3530
3526
|
changePageSizeTo: ge,
|
|
3531
3527
|
collapse: rt,
|
|
3532
3528
|
collapseTo: gt,
|
|
@@ -3552,7 +3548,7 @@ function bs(n, t, e, o, r) {
|
|
|
3552
3548
|
removeDataItemById: Vt,
|
|
3553
3549
|
removeFilter: Fe,
|
|
3554
3550
|
removeHierarchyDataItem: St,
|
|
3555
|
-
removeSorter:
|
|
3551
|
+
removeSorter: oe,
|
|
3556
3552
|
reOrderVisibleIndex: Le,
|
|
3557
3553
|
setSorters: ce,
|
|
3558
3554
|
sorters: d,
|
|
@@ -3564,7 +3560,7 @@ function bs(n, t, e, o, r) {
|
|
|
3564
3560
|
visibleDataItems: Be
|
|
3565
3561
|
};
|
|
3566
3562
|
}
|
|
3567
|
-
const
|
|
3563
|
+
const mo = {
|
|
3568
3564
|
conditions: { type: Array, default: [] },
|
|
3569
3565
|
fields: { type: Array, default: [] },
|
|
3570
3566
|
key: { type: String, default: "" },
|
|
@@ -3573,7 +3569,7 @@ const ho = {
|
|
|
3573
3569
|
*/
|
|
3574
3570
|
isControlInline: { type: Boolean, default: !0 }
|
|
3575
3571
|
};
|
|
3576
|
-
class
|
|
3572
|
+
class ho {
|
|
3577
3573
|
constructor(t = { value: [] }) {
|
|
3578
3574
|
L(this, "editorType", "check-box");
|
|
3579
3575
|
L(this, "value");
|
|
@@ -3597,7 +3593,7 @@ class vo {
|
|
|
3597
3593
|
return this.value.length === 0;
|
|
3598
3594
|
}
|
|
3599
3595
|
}
|
|
3600
|
-
class
|
|
3596
|
+
class vo {
|
|
3601
3597
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
3602
3598
|
L(this, "editorType", "combo-lookup");
|
|
3603
3599
|
L(this, "textValue");
|
|
@@ -3641,11 +3637,11 @@ function Ue(n) {
|
|
|
3641
3637
|
function We(n, t) {
|
|
3642
3638
|
return n instanceof Date ? new n.constructor(t) : new Date(t);
|
|
3643
3639
|
}
|
|
3644
|
-
function
|
|
3640
|
+
function go(n, t) {
|
|
3645
3641
|
const e = Ue(n);
|
|
3646
3642
|
return isNaN(t) ? We(n, NaN) : (t && e.setDate(e.getDate() + t), e);
|
|
3647
3643
|
}
|
|
3648
|
-
const
|
|
3644
|
+
const yo = 6048e5, ws = 864e5, Cs = 6e4, xs = 36e5, _s = 1e3;
|
|
3649
3645
|
let Ss = {};
|
|
3650
3646
|
function Gt() {
|
|
3651
3647
|
return Ss;
|
|
@@ -3658,7 +3654,7 @@ function It(n, t) {
|
|
|
3658
3654
|
function At(n) {
|
|
3659
3655
|
return It(n, { weekStartsOn: 1 });
|
|
3660
3656
|
}
|
|
3661
|
-
function
|
|
3657
|
+
function bo(n) {
|
|
3662
3658
|
const t = Ue(n), e = t.getFullYear(), o = We(n, 0);
|
|
3663
3659
|
o.setFullYear(e + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
3664
3660
|
const r = At(o), i = We(n, 0);
|
|
@@ -3666,7 +3662,7 @@ function wo(n) {
|
|
|
3666
3662
|
const a = At(i);
|
|
3667
3663
|
return t.getTime() >= r.getTime() ? e + 1 : t.getTime() >= a.getTime() ? e : e - 1;
|
|
3668
3664
|
}
|
|
3669
|
-
function
|
|
3665
|
+
function jn(n) {
|
|
3670
3666
|
const t = Ue(n);
|
|
3671
3667
|
return t.setHours(0, 0, 0, 0), t;
|
|
3672
3668
|
}
|
|
@@ -3685,11 +3681,11 @@ function an(n) {
|
|
|
3685
3681
|
return e.setUTCFullYear(t.getFullYear()), +n - +e;
|
|
3686
3682
|
}
|
|
3687
3683
|
function Ts(n, t) {
|
|
3688
|
-
const e =
|
|
3684
|
+
const e = jn(n), o = jn(t), r = +e - an(e), i = +o - an(o);
|
|
3689
3685
|
return Math.round((r - i) / ws);
|
|
3690
3686
|
}
|
|
3691
3687
|
function Fs(n) {
|
|
3692
|
-
const t =
|
|
3688
|
+
const t = bo(n), e = We(n, 0);
|
|
3693
3689
|
return e.setFullYear(t, 0, 4), e.setHours(0, 0, 0, 0), At(e);
|
|
3694
3690
|
}
|
|
3695
3691
|
function ks(n) {
|
|
@@ -4124,7 +4120,7 @@ const Xs = /^(\d+)(th|st|nd|rd)?/i, Qs = /\d+/i, Ks = {
|
|
|
4124
4120
|
parsePatterns: al,
|
|
4125
4121
|
defaultParseWidth: "any"
|
|
4126
4122
|
})
|
|
4127
|
-
},
|
|
4123
|
+
}, wo = {
|
|
4128
4124
|
code: "en-US",
|
|
4129
4125
|
formatDistance: Os,
|
|
4130
4126
|
formatLong: Ps,
|
|
@@ -4140,9 +4136,9 @@ function ll(n) {
|
|
|
4140
4136
|
const t = Ue(n);
|
|
4141
4137
|
return Ts(t, Es(t)) + 1;
|
|
4142
4138
|
}
|
|
4143
|
-
function
|
|
4139
|
+
function Co(n) {
|
|
4144
4140
|
const t = Ue(n), e = +At(t) - +Fs(t);
|
|
4145
|
-
return Math.round(e /
|
|
4141
|
+
return Math.round(e / yo) + 1;
|
|
4146
4142
|
}
|
|
4147
4143
|
function En(n, t) {
|
|
4148
4144
|
var c, d, m, y;
|
|
@@ -4158,9 +4154,9 @@ function ul(n, t) {
|
|
|
4158
4154
|
const e = Gt(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : s.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((c = (u = e.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, r = En(n, t), i = We(n, 0);
|
|
4159
4155
|
return i.setFullYear(r, 0, o), i.setHours(0, 0, 0, 0), It(i, t);
|
|
4160
4156
|
}
|
|
4161
|
-
function
|
|
4157
|
+
function xo(n, t) {
|
|
4162
4158
|
const e = Ue(n), o = +It(e, t) - +ul(e, t);
|
|
4163
|
-
return Math.round(o /
|
|
4159
|
+
return Math.round(o / yo) + 1;
|
|
4164
4160
|
}
|
|
4165
4161
|
function Ie(n, t) {
|
|
4166
4162
|
const e = n < 0 ? "-" : "", o = Math.abs(n).toString().padStart(t, "0");
|
|
@@ -4229,7 +4225,7 @@ const Tt = {
|
|
|
4229
4225
|
afternoon: "afternoon",
|
|
4230
4226
|
evening: "evening",
|
|
4231
4227
|
night: "night"
|
|
4232
|
-
},
|
|
4228
|
+
}, Wn = {
|
|
4233
4229
|
// Era
|
|
4234
4230
|
G: function(n, t, e) {
|
|
4235
4231
|
const o = n.getFullYear() > 0 ? 1 : 0;
|
|
@@ -4264,7 +4260,7 @@ const Tt = {
|
|
|
4264
4260
|
},
|
|
4265
4261
|
// ISO week-numbering year
|
|
4266
4262
|
R: function(n, t) {
|
|
4267
|
-
const e =
|
|
4263
|
+
const e = bo(n);
|
|
4268
4264
|
return Ie(e, t.length);
|
|
4269
4265
|
},
|
|
4270
4266
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -4387,12 +4383,12 @@ const Tt = {
|
|
|
4387
4383
|
},
|
|
4388
4384
|
// Local week of year
|
|
4389
4385
|
w: function(n, t, e, o) {
|
|
4390
|
-
const r =
|
|
4386
|
+
const r = xo(n, o);
|
|
4391
4387
|
return t === "wo" ? e.ordinalNumber(r, { unit: "week" }) : Ie(r, t.length);
|
|
4392
4388
|
},
|
|
4393
4389
|
// ISO week of year
|
|
4394
4390
|
I: function(n, t, e) {
|
|
4395
|
-
const o =
|
|
4391
|
+
const o = Co(n);
|
|
4396
4392
|
return t === "Io" ? e.ordinalNumber(o, { unit: "week" }) : Ie(o, t.length);
|
|
4397
4393
|
},
|
|
4398
4394
|
// Day of the month
|
|
@@ -4655,7 +4651,7 @@ const Tt = {
|
|
|
4655
4651
|
return "Z";
|
|
4656
4652
|
switch (t) {
|
|
4657
4653
|
case "X":
|
|
4658
|
-
return
|
|
4654
|
+
return An(o);
|
|
4659
4655
|
case "XXXX":
|
|
4660
4656
|
case "XX":
|
|
4661
4657
|
return Rt(o);
|
|
@@ -4670,7 +4666,7 @@ const Tt = {
|
|
|
4670
4666
|
const o = n.getTimezoneOffset();
|
|
4671
4667
|
switch (t) {
|
|
4672
4668
|
case "x":
|
|
4673
|
-
return
|
|
4669
|
+
return An(o);
|
|
4674
4670
|
case "xxxx":
|
|
4675
4671
|
case "xx":
|
|
4676
4672
|
return Rt(o);
|
|
@@ -4687,7 +4683,7 @@ const Tt = {
|
|
|
4687
4683
|
case "O":
|
|
4688
4684
|
case "OO":
|
|
4689
4685
|
case "OOO":
|
|
4690
|
-
return "GMT" +
|
|
4686
|
+
return "GMT" + Hn(o, ":");
|
|
4691
4687
|
case "OOOO":
|
|
4692
4688
|
default:
|
|
4693
4689
|
return "GMT" + Rt(o, ":");
|
|
@@ -4700,7 +4696,7 @@ const Tt = {
|
|
|
4700
4696
|
case "z":
|
|
4701
4697
|
case "zz":
|
|
4702
4698
|
case "zzz":
|
|
4703
|
-
return "GMT" +
|
|
4699
|
+
return "GMT" + Hn(o, ":");
|
|
4704
4700
|
case "zzzz":
|
|
4705
4701
|
default:
|
|
4706
4702
|
return "GMT" + Rt(o, ":");
|
|
@@ -4717,18 +4713,18 @@ const Tt = {
|
|
|
4717
4713
|
return Ie(o, t.length);
|
|
4718
4714
|
}
|
|
4719
4715
|
};
|
|
4720
|
-
function
|
|
4716
|
+
function Hn(n, t = "") {
|
|
4721
4717
|
const e = n > 0 ? "-" : "+", o = Math.abs(n), r = Math.trunc(o / 60), i = o % 60;
|
|
4722
4718
|
return i === 0 ? e + String(r) : e + String(r) + t + Ie(i, 2);
|
|
4723
4719
|
}
|
|
4724
|
-
function
|
|
4720
|
+
function An(n, t) {
|
|
4725
4721
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + Ie(Math.abs(n) / 60, 2) : Rt(n, t);
|
|
4726
4722
|
}
|
|
4727
4723
|
function Rt(n, t = "") {
|
|
4728
4724
|
const e = n > 0 ? "-" : "+", o = Math.abs(n), r = Ie(Math.trunc(o / 60), 2), i = Ie(o % 60, 2);
|
|
4729
4725
|
return e + r + t + i;
|
|
4730
4726
|
}
|
|
4731
|
-
const
|
|
4727
|
+
const qn = (n, t) => {
|
|
4732
4728
|
switch (n) {
|
|
4733
4729
|
case "P":
|
|
4734
4730
|
return t.date({ width: "short" });
|
|
@@ -4740,7 +4736,7 @@ const Gn = (n, t) => {
|
|
|
4740
4736
|
default:
|
|
4741
4737
|
return t.date({ width: "full" });
|
|
4742
4738
|
}
|
|
4743
|
-
},
|
|
4739
|
+
}, _o = (n, t) => {
|
|
4744
4740
|
switch (n) {
|
|
4745
4741
|
case "p":
|
|
4746
4742
|
return t.time({ width: "short" });
|
|
@@ -4755,7 +4751,7 @@ const Gn = (n, t) => {
|
|
|
4755
4751
|
}, cl = (n, t) => {
|
|
4756
4752
|
const e = n.match(/(P+)(p+)?/) || [], o = e[1], r = e[2];
|
|
4757
4753
|
if (!r)
|
|
4758
|
-
return
|
|
4754
|
+
return qn(n, t);
|
|
4759
4755
|
let i;
|
|
4760
4756
|
switch (o) {
|
|
4761
4757
|
case "P":
|
|
@@ -4772,15 +4768,15 @@ const Gn = (n, t) => {
|
|
|
4772
4768
|
i = t.dateTime({ width: "full" });
|
|
4773
4769
|
break;
|
|
4774
4770
|
}
|
|
4775
|
-
return i.replace("{{date}}",
|
|
4771
|
+
return i.replace("{{date}}", qn(o, t)).replace("{{time}}", _o(r, t));
|
|
4776
4772
|
}, Cn = {
|
|
4777
|
-
p:
|
|
4773
|
+
p: _o,
|
|
4778
4774
|
P: cl
|
|
4779
4775
|
}, dl = /^D+$/, fl = /^Y+$/, pl = ["D", "DD", "YY", "YYYY"];
|
|
4780
|
-
function
|
|
4776
|
+
function So(n) {
|
|
4781
4777
|
return dl.test(n);
|
|
4782
4778
|
}
|
|
4783
|
-
function
|
|
4779
|
+
function To(n) {
|
|
4784
4780
|
return fl.test(n);
|
|
4785
4781
|
}
|
|
4786
4782
|
function xn(n, t, e) {
|
|
@@ -4792,9 +4788,9 @@ function ml(n, t, e) {
|
|
|
4792
4788
|
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${o} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
4793
4789
|
}
|
|
4794
4790
|
const hl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, vl = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, gl = /^'([^]*?)'?$/, yl = /''/g, bl = /[a-zA-Z]/;
|
|
4795
|
-
function
|
|
4791
|
+
function Fo(n, t, e) {
|
|
4796
4792
|
var c, d, m, y;
|
|
4797
|
-
const o = Gt(), r = o.locale ??
|
|
4793
|
+
const o = Gt(), r = o.locale ?? wo, i = o.firstWeekContainsDate ?? ((d = (c = o.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = o.weekStartsOn ?? ((y = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : y.weekStartsOn) ?? 0, l = Ue(n);
|
|
4798
4794
|
if (!Ms(l))
|
|
4799
4795
|
throw new RangeError("Invalid time value");
|
|
4800
4796
|
let s = t.match(vl).map((p) => {
|
|
@@ -4810,7 +4806,7 @@ function ko(n, t, e) {
|
|
|
4810
4806
|
const I = p[0];
|
|
4811
4807
|
if (I === "'")
|
|
4812
4808
|
return { isToken: !1, value: wl(p) };
|
|
4813
|
-
if (
|
|
4809
|
+
if (Wn[I])
|
|
4814
4810
|
return { isToken: !0, value: p };
|
|
4815
4811
|
if (I.match(bl))
|
|
4816
4812
|
throw new RangeError(
|
|
@@ -4827,8 +4823,8 @@ function ko(n, t, e) {
|
|
|
4827
4823
|
return s.map((p) => {
|
|
4828
4824
|
if (!p.isToken) return p.value;
|
|
4829
4825
|
const I = p.value;
|
|
4830
|
-
(
|
|
4831
|
-
const C =
|
|
4826
|
+
(To(I) || So(I)) && xn(I, t, String(n));
|
|
4827
|
+
const C = Wn[I[0]];
|
|
4832
4828
|
return C(l, I, r.localize, u);
|
|
4833
4829
|
}).join("");
|
|
4834
4830
|
}
|
|
@@ -4857,7 +4853,7 @@ function _l(n, t) {
|
|
|
4857
4853
|
), e;
|
|
4858
4854
|
}
|
|
4859
4855
|
const Sl = 10;
|
|
4860
|
-
class
|
|
4856
|
+
class ko {
|
|
4861
4857
|
constructor() {
|
|
4862
4858
|
L(this, "subPriority", 0);
|
|
4863
4859
|
}
|
|
@@ -4865,7 +4861,7 @@ class Mo {
|
|
|
4865
4861
|
return !0;
|
|
4866
4862
|
}
|
|
4867
4863
|
}
|
|
4868
|
-
class Tl extends
|
|
4864
|
+
class Tl extends ko {
|
|
4869
4865
|
constructor(t, e, o, r, i) {
|
|
4870
4866
|
super(), this.value = t, this.validateValue = e, this.setValue = o, this.priority = r, i && (this.subPriority = i);
|
|
4871
4867
|
}
|
|
@@ -4876,7 +4872,7 @@ class Tl extends Mo {
|
|
|
4876
4872
|
return this.setValue(t, e, this.value, o);
|
|
4877
4873
|
}
|
|
4878
4874
|
}
|
|
4879
|
-
class Fl extends
|
|
4875
|
+
class Fl extends ko {
|
|
4880
4876
|
constructor() {
|
|
4881
4877
|
super(...arguments);
|
|
4882
4878
|
L(this, "priority", Sl);
|
|
@@ -5000,7 +4996,7 @@ function ht(n, t) {
|
|
|
5000
4996
|
rest: t.slice(e[0].length)
|
|
5001
4997
|
};
|
|
5002
4998
|
}
|
|
5003
|
-
function
|
|
4999
|
+
function Mo(n) {
|
|
5004
5000
|
return je(Ae.anyDigitsSigned, n);
|
|
5005
5001
|
}
|
|
5006
5002
|
function He(n, t) {
|
|
@@ -5048,7 +5044,7 @@ function In(n) {
|
|
|
5048
5044
|
return 0;
|
|
5049
5045
|
}
|
|
5050
5046
|
}
|
|
5051
|
-
function
|
|
5047
|
+
function Eo(n, t) {
|
|
5052
5048
|
const e = t > 0, o = e ? t : 1 - t;
|
|
5053
5049
|
let r;
|
|
5054
5050
|
if (o <= 50)
|
|
@@ -5059,7 +5055,7 @@ function Io(n, t) {
|
|
|
5059
5055
|
}
|
|
5060
5056
|
return e ? r : 1 - r;
|
|
5061
5057
|
}
|
|
5062
|
-
function
|
|
5058
|
+
function Io(n) {
|
|
5063
5059
|
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
5064
5060
|
}
|
|
5065
5061
|
class Ml extends Me {
|
|
@@ -5093,7 +5089,7 @@ class Ml extends Me {
|
|
|
5093
5089
|
set(e, o, r) {
|
|
5094
5090
|
const i = e.getFullYear();
|
|
5095
5091
|
if (r.isTwoDigitYear) {
|
|
5096
|
-
const l =
|
|
5092
|
+
const l = Eo(
|
|
5097
5093
|
r.year,
|
|
5098
5094
|
i
|
|
5099
5095
|
);
|
|
@@ -5148,7 +5144,7 @@ class El extends Me {
|
|
|
5148
5144
|
set(e, o, r, i) {
|
|
5149
5145
|
const a = En(e, i);
|
|
5150
5146
|
if (r.isTwoDigitYear) {
|
|
5151
|
-
const s =
|
|
5147
|
+
const s = Eo(
|
|
5152
5148
|
r.year,
|
|
5153
5149
|
a
|
|
5154
5150
|
);
|
|
@@ -5454,7 +5450,7 @@ class Pl extends Me {
|
|
|
5454
5450
|
}
|
|
5455
5451
|
}
|
|
5456
5452
|
function Nl(n, t, e) {
|
|
5457
|
-
const o = Ue(n), r =
|
|
5453
|
+
const o = Ue(n), r = xo(o, e) - t;
|
|
5458
5454
|
return o.setDate(o.getDate() - r * 7), o;
|
|
5459
5455
|
}
|
|
5460
5456
|
class Rl extends Me {
|
|
@@ -5495,7 +5491,7 @@ class Rl extends Me {
|
|
|
5495
5491
|
}
|
|
5496
5492
|
}
|
|
5497
5493
|
function Ll(n, t) {
|
|
5498
|
-
const e = Ue(n), o =
|
|
5494
|
+
const e = Ue(n), o = Co(e) - t;
|
|
5499
5495
|
return e.setDate(e.getDate() - o * 7), e;
|
|
5500
5496
|
}
|
|
5501
5497
|
class $l extends Me {
|
|
@@ -5581,7 +5577,7 @@ class Hl extends Me {
|
|
|
5581
5577
|
}
|
|
5582
5578
|
}
|
|
5583
5579
|
validate(e, o) {
|
|
5584
|
-
const r = e.getFullYear(), i =
|
|
5580
|
+
const r = e.getFullYear(), i = Io(r), a = e.getMonth();
|
|
5585
5581
|
return i ? o >= 1 && o <= Wl[a] : o >= 1 && o <= jl[a];
|
|
5586
5582
|
}
|
|
5587
5583
|
set(e, o, r) {
|
|
@@ -5624,7 +5620,7 @@ class Al extends Me {
|
|
|
5624
5620
|
}
|
|
5625
5621
|
validate(e, o) {
|
|
5626
5622
|
const r = e.getFullYear();
|
|
5627
|
-
return
|
|
5623
|
+
return Io(r) ? o >= 1 && o <= 366 : o >= 1 && o <= 365;
|
|
5628
5624
|
}
|
|
5629
5625
|
set(e, o, r) {
|
|
5630
5626
|
return e.setMonth(0, r), e.setHours(0, 0, 0, 0), e;
|
|
@@ -5633,7 +5629,7 @@ class Al extends Me {
|
|
|
5633
5629
|
function On(n, t, e) {
|
|
5634
5630
|
var d, m, y, p;
|
|
5635
5631
|
const o = Gt(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((m = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : m.weekStartsOn) ?? o.weekStartsOn ?? ((p = (y = o.locale) == null ? void 0 : y.options) == null ? void 0 : p.weekStartsOn) ?? 0, i = Ue(n), a = i.getDay(), s = (t % 7 + 7) % 7, u = 7 - r, c = t < 0 || t > 6 ? t - (a + u) % 7 : (s + u) % 7 - (a + u) % 7;
|
|
5636
|
-
return
|
|
5632
|
+
return go(i, c);
|
|
5637
5633
|
}
|
|
5638
5634
|
class ql extends Me {
|
|
5639
5635
|
constructor() {
|
|
@@ -5804,7 +5800,7 @@ class zl extends Me {
|
|
|
5804
5800
|
}
|
|
5805
5801
|
function Yl(n, t) {
|
|
5806
5802
|
const e = Ue(n), o = xl(e), r = t - o;
|
|
5807
|
-
return
|
|
5803
|
+
return go(e, r);
|
|
5808
5804
|
}
|
|
5809
5805
|
class Ul extends Me {
|
|
5810
5806
|
constructor() {
|
|
@@ -6254,7 +6250,7 @@ class su extends Me {
|
|
|
6254
6250
|
L(this, "incompatibleTokens", "*");
|
|
6255
6251
|
}
|
|
6256
6252
|
parse(e) {
|
|
6257
|
-
return
|
|
6253
|
+
return Mo(e);
|
|
6258
6254
|
}
|
|
6259
6255
|
set(e, o, r) {
|
|
6260
6256
|
return [We(e, r * 1e3), { timestampIsSet: !0 }];
|
|
@@ -6267,7 +6263,7 @@ class lu extends Me {
|
|
|
6267
6263
|
L(this, "incompatibleTokens", "*");
|
|
6268
6264
|
}
|
|
6269
6265
|
parse(e) {
|
|
6270
|
-
return
|
|
6266
|
+
return Mo(e);
|
|
6271
6267
|
}
|
|
6272
6268
|
set(e, o, r) {
|
|
6273
6269
|
return [We(e, r), { timestampIsSet: !0 }];
|
|
@@ -6306,9 +6302,9 @@ const uu = {
|
|
|
6306
6302
|
t: new su(),
|
|
6307
6303
|
T: new lu()
|
|
6308
6304
|
}, cu = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, du = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, fu = /^'([^]*?)'?$/, pu = /''/g, mu = /\S/, hu = /[a-zA-Z]/;
|
|
6309
|
-
function
|
|
6305
|
+
function Oo(n, t, e, o) {
|
|
6310
6306
|
var I, C, g, x;
|
|
6311
|
-
const r = Cl(), i = r.locale ??
|
|
6307
|
+
const r = Cl(), i = r.locale ?? wo, a = r.firstWeekContainsDate ?? ((C = (I = r.locale) == null ? void 0 : I.options) == null ? void 0 : C.firstWeekContainsDate) ?? 1, l = r.weekStartsOn ?? ((x = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : x.weekStartsOn) ?? 0;
|
|
6312
6308
|
if (t === "")
|
|
6313
6309
|
return n === "" ? Ue(e) : We(e, NaN);
|
|
6314
6310
|
const s = {
|
|
@@ -6324,7 +6320,7 @@ function Do(n, t, e, o) {
|
|
|
6324
6320
|
return b;
|
|
6325
6321
|
}).join("").match(cu), d = [];
|
|
6326
6322
|
for (let b of c) {
|
|
6327
|
-
|
|
6323
|
+
To(b) && xn(b, t, n), So(b) && xn(b, t, n);
|
|
6328
6324
|
const F = b[0], M = uu[F];
|
|
6329
6325
|
if (M) {
|
|
6330
6326
|
const { incompatibleTokens: _ } = M;
|
|
@@ -6381,7 +6377,7 @@ function Do(n, t, e, o) {
|
|
|
6381
6377
|
function vu(n) {
|
|
6382
6378
|
return n.match(fu)[1].replace(pu, "'");
|
|
6383
6379
|
}
|
|
6384
|
-
class
|
|
6380
|
+
class Do {
|
|
6385
6381
|
constructor(t = { value: "", displayFormat: "", valueFormat: "" }) {
|
|
6386
6382
|
L(this, "editorType", "date-picker");
|
|
6387
6383
|
L(this, "value");
|
|
@@ -6398,8 +6394,8 @@ class Vo {
|
|
|
6398
6394
|
}
|
|
6399
6395
|
getDisplayText() {
|
|
6400
6396
|
if (typeof this.value == "string" && this.value) {
|
|
6401
|
-
const t =
|
|
6402
|
-
return
|
|
6397
|
+
const t = Oo(this.value, this.valueFormat, /* @__PURE__ */ new Date());
|
|
6398
|
+
return Fo(t, this.displayFormat);
|
|
6403
6399
|
}
|
|
6404
6400
|
return this.getValue();
|
|
6405
6401
|
}
|
|
@@ -6434,7 +6430,7 @@ class ln {
|
|
|
6434
6430
|
return !this.begin || !this.end;
|
|
6435
6431
|
}
|
|
6436
6432
|
}
|
|
6437
|
-
class
|
|
6433
|
+
class Vo {
|
|
6438
6434
|
constructor(t = { value: "", displayFormat: "", valueFormat: "" }) {
|
|
6439
6435
|
L(this, "editorType", "datetime-picker");
|
|
6440
6436
|
L(this, "value");
|
|
@@ -6451,8 +6447,8 @@ class Bo {
|
|
|
6451
6447
|
}
|
|
6452
6448
|
getDisplayText() {
|
|
6453
6449
|
if (typeof this.value == "string" && this.value) {
|
|
6454
|
-
const t =
|
|
6455
|
-
return
|
|
6450
|
+
const t = Oo(this.value, this.valueFormat, /* @__PURE__ */ new Date());
|
|
6451
|
+
return Fo(t, this.displayFormat);
|
|
6456
6452
|
}
|
|
6457
6453
|
return this.getValue();
|
|
6458
6454
|
}
|
|
@@ -6463,7 +6459,7 @@ class Bo {
|
|
|
6463
6459
|
return !this.value;
|
|
6464
6460
|
}
|
|
6465
6461
|
}
|
|
6466
|
-
class
|
|
6462
|
+
class Bo {
|
|
6467
6463
|
constructor(t = { value: "", valueList: [] }) {
|
|
6468
6464
|
L(this, "editorType", "combo-list");
|
|
6469
6465
|
L(this, "value");
|
|
@@ -6548,7 +6544,7 @@ class gu {
|
|
|
6548
6544
|
return !this.displayText && !this.value.length;
|
|
6549
6545
|
}
|
|
6550
6546
|
}
|
|
6551
|
-
class
|
|
6547
|
+
class Po {
|
|
6552
6548
|
constructor(t = { mapFields: [], value: "", valueField: "", isInputText: !1, helpId: "" }) {
|
|
6553
6549
|
L(this, "editorType", "lookup");
|
|
6554
6550
|
L(this, "helpId");
|
|
@@ -6576,7 +6572,7 @@ class No {
|
|
|
6576
6572
|
return !this.mapFields.length;
|
|
6577
6573
|
}
|
|
6578
6574
|
}
|
|
6579
|
-
class
|
|
6575
|
+
class No {
|
|
6580
6576
|
constructor(t = { value: "" }) {
|
|
6581
6577
|
L(this, "editorType", "month-picker");
|
|
6582
6578
|
L(this, "value");
|
|
@@ -6599,7 +6595,7 @@ class Ro {
|
|
|
6599
6595
|
return !this.value;
|
|
6600
6596
|
}
|
|
6601
6597
|
}
|
|
6602
|
-
class
|
|
6598
|
+
class Ro {
|
|
6603
6599
|
constructor(t = { begin: "", end: "" }) {
|
|
6604
6600
|
L(this, "editorType", "month-range");
|
|
6605
6601
|
L(this, "begin");
|
|
@@ -6623,7 +6619,7 @@ class Lo {
|
|
|
6623
6619
|
return !this.begin || !this.end;
|
|
6624
6620
|
}
|
|
6625
6621
|
}
|
|
6626
|
-
class
|
|
6622
|
+
class Lo {
|
|
6627
6623
|
constructor(t = { begin: null, end: null }) {
|
|
6628
6624
|
L(this, "editorType", "number-range");
|
|
6629
6625
|
L(this, "begin");
|
|
@@ -6650,7 +6646,7 @@ class $o {
|
|
|
6650
6646
|
return this.begin == null && this.end == null;
|
|
6651
6647
|
}
|
|
6652
6648
|
}
|
|
6653
|
-
class
|
|
6649
|
+
class $o {
|
|
6654
6650
|
constructor(t = { value: "" }) {
|
|
6655
6651
|
L(this, "editorType", "number-spinner");
|
|
6656
6652
|
L(this, "value");
|
|
@@ -6674,7 +6670,7 @@ class jo {
|
|
|
6674
6670
|
return this.value == null || isNaN(this.value);
|
|
6675
6671
|
}
|
|
6676
6672
|
}
|
|
6677
|
-
class
|
|
6673
|
+
class jo {
|
|
6678
6674
|
constructor(t = { value: null, valueList: [] }) {
|
|
6679
6675
|
L(this, "editorType", "radio-group");
|
|
6680
6676
|
L(this, "value");
|
|
@@ -6722,45 +6718,45 @@ class un {
|
|
|
6722
6718
|
return !this.value;
|
|
6723
6719
|
}
|
|
6724
6720
|
}
|
|
6725
|
-
function
|
|
6721
|
+
function Wo() {
|
|
6726
6722
|
function n(t, e) {
|
|
6727
6723
|
switch (t) {
|
|
6728
6724
|
case "check-box":
|
|
6729
|
-
return new
|
|
6725
|
+
return new ho(e);
|
|
6730
6726
|
case "combo-list":
|
|
6731
|
-
return new
|
|
6727
|
+
return new Bo(e);
|
|
6732
6728
|
case "combo-lookup":
|
|
6733
|
-
return new
|
|
6729
|
+
return new vo(e);
|
|
6734
6730
|
case "input-group":
|
|
6735
6731
|
return new gu(e);
|
|
6736
6732
|
case "date-picker":
|
|
6737
|
-
return new
|
|
6733
|
+
return new Do(e);
|
|
6738
6734
|
case "date-range":
|
|
6739
6735
|
return new ln(e);
|
|
6740
6736
|
case "datetime-picker":
|
|
6741
|
-
return new
|
|
6737
|
+
return new Vo(e);
|
|
6742
6738
|
case "datetime-range":
|
|
6743
6739
|
return new ln(e);
|
|
6744
6740
|
case "lookup":
|
|
6745
|
-
return new
|
|
6741
|
+
return new Po(e);
|
|
6746
6742
|
case "month-picker":
|
|
6747
|
-
return new
|
|
6743
|
+
return new No(e);
|
|
6748
6744
|
case "month-range":
|
|
6749
|
-
return new
|
|
6745
|
+
return new Ro(e);
|
|
6750
6746
|
case "number-range":
|
|
6751
|
-
return new
|
|
6747
|
+
return new Lo(e);
|
|
6752
6748
|
case "number-spinner":
|
|
6753
|
-
return new
|
|
6749
|
+
return new $o(e);
|
|
6754
6750
|
case "radio-group":
|
|
6755
|
-
return new
|
|
6751
|
+
return new jo(e);
|
|
6756
6752
|
default:
|
|
6757
6753
|
return new un(e);
|
|
6758
6754
|
}
|
|
6759
6755
|
}
|
|
6760
6756
|
return { createConditionValue: n };
|
|
6761
6757
|
}
|
|
6762
|
-
function
|
|
6763
|
-
const e = S(n.fields), o = S([]), r = /* @__PURE__ */ new Map(), { createConditionValue: i } =
|
|
6758
|
+
function Ho(n, t) {
|
|
6759
|
+
const e = S(n.fields), o = S([]), r = /* @__PURE__ */ new Map(), { createConditionValue: i } = Wo();
|
|
6764
6760
|
function a(c) {
|
|
6765
6761
|
switch (c.editor ? c.editor.type : "input-group") {
|
|
6766
6762
|
case "date-range":
|
|
@@ -6822,14 +6818,14 @@ function yu(n, t, e) {
|
|
|
6822
6818
|
resizeObserver: o
|
|
6823
6819
|
};
|
|
6824
6820
|
}
|
|
6825
|
-
const
|
|
6821
|
+
const Gn = /* @__PURE__ */ Qe({
|
|
6826
6822
|
name: "FConditionFields",
|
|
6827
|
-
props:
|
|
6823
|
+
props: mo,
|
|
6828
6824
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
6829
6825
|
setup(n, t) {
|
|
6830
6826
|
const e = S(), o = S(n.key);
|
|
6831
6827
|
S(n.isControlInline);
|
|
6832
|
-
const r = S(n.conditions), i =
|
|
6828
|
+
const r = S(n.conditions), i = Ho(n), {
|
|
6833
6829
|
initialConditionValue: a,
|
|
6834
6830
|
fieldMap: l,
|
|
6835
6831
|
loadFieldConfigs: s
|
|
@@ -6837,7 +6833,7 @@ const zn = /* @__PURE__ */ Qe({
|
|
|
6837
6833
|
conditionClass: c,
|
|
6838
6834
|
resizeObserver: d
|
|
6839
6835
|
} = u;
|
|
6840
|
-
s(!0), a(r.value),
|
|
6836
|
+
s(!0), a(r.value), Kn(() => {
|
|
6841
6837
|
var C;
|
|
6842
6838
|
(C = d.value) == null || C.unobserve(e.value);
|
|
6843
6839
|
}), ke(() => n.conditions, () => {
|
|
@@ -6886,11 +6882,11 @@ const zn = /* @__PURE__ */ Qe({
|
|
|
6886
6882
|
}, null);
|
|
6887
6883
|
});
|
|
6888
6884
|
}
|
|
6889
|
-
return () =>
|
|
6885
|
+
return () => Jn(k("div", {
|
|
6890
6886
|
class: m.value,
|
|
6891
6887
|
key: o.value,
|
|
6892
6888
|
ref: e
|
|
6893
|
-
}, [I()]), [[
|
|
6889
|
+
}, [I()]), [[Zo("area-response")]]);
|
|
6894
6890
|
}
|
|
6895
6891
|
}), Dn = /* @__PURE__ */ new Map([
|
|
6896
6892
|
["appearance", fn]
|
|
@@ -7159,7 +7155,7 @@ const Vu = "https://json-schema.org/draft/2020-12/schema", Bu = "https://farris-
|
|
|
7159
7155
|
"id",
|
|
7160
7156
|
"type",
|
|
7161
7157
|
"editor"
|
|
7162
|
-
],
|
|
7158
|
+
], Ao = {
|
|
7163
7159
|
$schema: Vu,
|
|
7164
7160
|
$id: Bu,
|
|
7165
7161
|
title: Pu,
|
|
@@ -7167,7 +7163,7 @@ const Vu = "https://json-schema.org/draft/2020-12/schema", Bu = "https://farris-
|
|
|
7167
7163
|
type: Ru,
|
|
7168
7164
|
properties: Lu,
|
|
7169
7165
|
required: $u
|
|
7170
|
-
},
|
|
7166
|
+
}, qo = {
|
|
7171
7167
|
id: { type: String, default: "" },
|
|
7172
7168
|
customClass: { type: String, default: "" },
|
|
7173
7169
|
customStyle: { type: String, default: "" },
|
|
@@ -7185,8 +7181,8 @@ const Vu = "https://json-schema.org/draft/2020-12/schema", Bu = "https://farris-
|
|
|
7185
7181
|
errors: { type: Object, default: null }
|
|
7186
7182
|
};
|
|
7187
7183
|
Ot(
|
|
7188
|
-
Go,
|
|
7189
7184
|
qo,
|
|
7185
|
+
Ao,
|
|
7190
7186
|
Dn,
|
|
7191
7187
|
void 0
|
|
7192
7188
|
);
|
|
@@ -7227,9 +7223,9 @@ const ju = {
|
|
|
7227
7223
|
}, [o.value])]);
|
|
7228
7224
|
}
|
|
7229
7225
|
}), ae = {}, se = {}, le = {}, ue = {};
|
|
7230
|
-
let
|
|
7226
|
+
let zn = !1;
|
|
7231
7227
|
function Hu() {
|
|
7232
|
-
|
|
7228
|
+
zn || (zn = !0, li.register(ae, se, le, ue), si.register(ae, se, le, ue), ui.register(ae, se, le, ue), ci.register(ae, se, le, ue), di.register(ae, se, le, ue), fi.register(ae, se, le, ue), Rn.register(ae, se, le, ue), Ln.register(ae, se, le, ue), Rn.register(ae, se, le, ue), Ln.register(ae, se, le, ue), bn.register(ae, se, le, ue), pi.register(ae, se, le, ue), mi.register(ae, se, le, ue), vi.register(ae, se, le, ue), hi.register(ae, se, le, ue), gi.register(ae, se, le, ue), yi.register(ae, se, le, ue), bi.register(ae, se, le, ue), ni.register(ae, se, le, ue), wi.register(ae, se, le, ue), ua.register(ae, se, le, ue), Qr.register(ae, se, le, ue), Ci.register(ae, se, le, ue), na.register(ae, se, le, ue), _i.register(ae, se, le, ue), Si.register(ae, se, le, ue), Ti.register(ae, se, le, ue), ki.register(ae, se, le, ue), Fi.register(ae, se, le, ue), Mi.register(ae, se, le, ue), Ei.register(ae, se, le, ue), Ii.register(ae, se, le, ue), Oi.register(ae, se, le, ue), Di.register(ae, se, le, ue), Ar.register(ae, se, le, ue), Vi.register(ae, se, le, ue), Bi.register(ae, se, le, ue), Jr.register(ae, se, le, ue), Pi.register(ae, se, le, ue), Ni.register(ae, se, le, ue), Ri.register(ae, se, le, ue), Li.register(ae, se, le, ue), ji.register(ae, se, le, ue), Wi.register(ae, se, le, ue), $i.register(ae, se, le, ue), ea.register(ae, se, le), ei.register(ae, se, le, ue), Hi.register(ae, se, le, ue), Ai.register(ae, se, le, ue), qi.register(ae, se, le, ue), Gi.register(ae, se, le, ue), zi.register(ae, se, le, ue), ra.register(ae, se, le, ue), Hr.register(ae, se, le, ue), ti.register(ae, se, le, ue), Yi.register(ae, se, le, ue), Ui.register(ae, se, le, ue), Wr.register(ae, se, le, ue), Xi.register(ae, se, le, ue), Ki.register(ae, se, le, ue), Qi.register(ae, se, le, ue), Ji.register(ae, se, le, ue), Zi.register(ae, se, le, ue), eo.register(ae, se, le, ue), xi.register(ae, se, le, ue), ta.register(ae, se, le, ue), oa.register(ae, se, le, ue), ia.register(ae, se, le, ue), aa.register(ae, se, le, ue), sa.register(ae, se, le, ue), la.register(ae, se, le, ue), ca.register(ae, se, le, ue), da.register(ae, se, le, ue));
|
|
7233
7229
|
}
|
|
7234
7230
|
function Au() {
|
|
7235
7231
|
Hu();
|
|
@@ -7379,7 +7375,7 @@ const qu = {
|
|
|
7379
7375
|
}
|
|
7380
7376
|
}), _n = /* @__PURE__ */ Qe({
|
|
7381
7377
|
name: "FDynamicFormGroup",
|
|
7382
|
-
props:
|
|
7378
|
+
props: qo,
|
|
7383
7379
|
emits: ["change", "update:modelValue"],
|
|
7384
7380
|
setup(n, t) {
|
|
7385
7381
|
var _;
|
|
@@ -7526,7 +7522,7 @@ L(Ht, "fieldControlTypeMapping", {
|
|
|
7526
7522
|
{ key: de["radio-group"].type, value: de["radio-group"].name }
|
|
7527
7523
|
]
|
|
7528
7524
|
});
|
|
7529
|
-
let
|
|
7525
|
+
let Yn = Ht;
|
|
7530
7526
|
var Sn = /* @__PURE__ */ ((n) => (n.Form = "Form", n.Variable = "Variable", n))(Sn || {}), Ft = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7531
7527
|
function tn(n) {
|
|
7532
7528
|
throw new Error('Could not dynamically require "' + n + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -7586,7 +7582,7 @@ var Uu = { exports: {} };
|
|
|
7586
7582
|
V === 1 && Array.isArray(h) === !1 && (O = h, h = []);
|
|
7587
7583
|
var E, D, H, R, N, j, Q, P, B, Y = null, A, $, z = !1, K = 0, ie, Z = O || {};
|
|
7588
7584
|
Z.moves === void 0 && (Z.moves = x), Z.accepts === void 0 && (Z.accepts = x), Z.invalid === void 0 && (Z.invalid = gt), Z.containers === void 0 && (Z.containers = h || []), Z.isContainer === void 0 && (Z.isContainer = g), Z.copy === void 0 && (Z.copy = !1), Z.copySortSource === void 0 && (Z.copySortSource = !1), Z.revertOnSpill === void 0 && (Z.revertOnSpill = !1), Z.removeOnSpill === void 0 && (Z.removeOnSpill = !1), Z.direction === void 0 && (Z.direction = "vertical"), Z.ignoreInputTextSelection === void 0 && (Z.ignoreInputTextSelection = !0), Z.mirrorContainer === void 0 && (Z.mirrorContainer = u.body);
|
|
7589
|
-
var
|
|
7585
|
+
var me = a({
|
|
7590
7586
|
containers: Z.containers,
|
|
7591
7587
|
start: De,
|
|
7592
7588
|
end: ft,
|
|
@@ -7596,9 +7592,9 @@ var Uu = { exports: {} };
|
|
|
7596
7592
|
canMove: Fe,
|
|
7597
7593
|
dragging: !1
|
|
7598
7594
|
});
|
|
7599
|
-
return Z.removeOnSpill === !0 &&
|
|
7595
|
+
return Z.removeOnSpill === !0 && me.on("over", _t).on("out", bt), _e(), me;
|
|
7600
7596
|
function ve(W) {
|
|
7601
|
-
return
|
|
7597
|
+
return me.containers.indexOf(W) !== -1 || Z.isContainer(W);
|
|
7602
7598
|
}
|
|
7603
7599
|
function _e(W) {
|
|
7604
7600
|
var ee = W ? "remove" : "add";
|
|
@@ -7606,7 +7602,7 @@ var Uu = { exports: {} };
|
|
|
7606
7602
|
}
|
|
7607
7603
|
function Be(W) {
|
|
7608
7604
|
var ee = W ? "remove" : "add";
|
|
7609
|
-
p(c, ee, "mousemove",
|
|
7605
|
+
p(c, ee, "mousemove", oe);
|
|
7610
7606
|
}
|
|
7611
7607
|
function Le(W) {
|
|
7612
7608
|
var ee = W ? "remove" : "add";
|
|
@@ -7622,11 +7618,11 @@ var Uu = { exports: {} };
|
|
|
7622
7618
|
R = W.clientX, N = W.clientY;
|
|
7623
7619
|
var ee = I(W) !== 1 || W.metaKey || W.ctrlKey;
|
|
7624
7620
|
if (!ee) {
|
|
7625
|
-
var
|
|
7626
|
-
|
|
7621
|
+
var ne = W.target, te = be(ne);
|
|
7622
|
+
te && (A = te, Be(), W.type === "mousedown" && (_(ne) ? ne.focus() : W.preventDefault()));
|
|
7627
7623
|
}
|
|
7628
7624
|
}
|
|
7629
|
-
function
|
|
7625
|
+
function oe(W) {
|
|
7630
7626
|
if (A) {
|
|
7631
7627
|
if (I(W) === 0) {
|
|
7632
7628
|
Se({});
|
|
@@ -7634,8 +7630,8 @@ var Uu = { exports: {} };
|
|
|
7634
7630
|
}
|
|
7635
7631
|
if (!(W.clientX !== void 0 && Math.abs(W.clientX - R) <= (Z.slideFactorX || 0) && W.clientY !== void 0 && Math.abs(W.clientY - N) <= (Z.slideFactorY || 0))) {
|
|
7636
7632
|
if (Z.ignoreInputTextSelection) {
|
|
7637
|
-
var ee = T("clientX", W) || 0,
|
|
7638
|
-
if (_(
|
|
7633
|
+
var ee = T("clientX", W) || 0, ne = T("clientY", W) || 0, te = u.elementFromPoint(ee, ne);
|
|
7634
|
+
if (_(te))
|
|
7639
7635
|
return;
|
|
7640
7636
|
}
|
|
7641
7637
|
var we = A;
|
|
@@ -7644,17 +7640,17 @@ var Uu = { exports: {} };
|
|
|
7644
7640
|
}
|
|
7645
7641
|
}
|
|
7646
7642
|
function be(W) {
|
|
7647
|
-
if (!(
|
|
7643
|
+
if (!(me.dragging && E) && !ve(W)) {
|
|
7648
7644
|
for (var ee = W; M(W) && ve(M(W)) === !1; )
|
|
7649
7645
|
if (Z.invalid(W, ee) || (W = M(W), !W))
|
|
7650
7646
|
return;
|
|
7651
|
-
var
|
|
7652
|
-
if (
|
|
7653
|
-
var
|
|
7654
|
-
if (
|
|
7647
|
+
var ne = M(W);
|
|
7648
|
+
if (ne && !Z.invalid(W, ee)) {
|
|
7649
|
+
var te = Z.moves(W, ne, ee, v(W));
|
|
7650
|
+
if (te)
|
|
7655
7651
|
return {
|
|
7656
7652
|
item: W,
|
|
7657
|
-
source:
|
|
7653
|
+
source: ne
|
|
7658
7654
|
};
|
|
7659
7655
|
}
|
|
7660
7656
|
}
|
|
@@ -7667,13 +7663,13 @@ var Uu = { exports: {} };
|
|
|
7667
7663
|
ee && rt(ee);
|
|
7668
7664
|
}
|
|
7669
7665
|
function rt(W) {
|
|
7670
|
-
Ee(W.item, W.source) && (P = W.item.cloneNode(!0),
|
|
7666
|
+
Ee(W.item, W.source) && (P = W.item.cloneNode(!0), me.emit("cloned", P, W.item, "copy")), D = W.source, H = W.item, j = Q = v(W.item), me.dragging = !0, me.emit("drag", H, D);
|
|
7671
7667
|
}
|
|
7672
7668
|
function gt() {
|
|
7673
7669
|
return !1;
|
|
7674
7670
|
}
|
|
7675
7671
|
function ft() {
|
|
7676
|
-
if (
|
|
7672
|
+
if (me.dragging) {
|
|
7677
7673
|
var W = P || H;
|
|
7678
7674
|
Oe(W, M(W));
|
|
7679
7675
|
}
|
|
@@ -7682,72 +7678,72 @@ var Uu = { exports: {} };
|
|
|
7682
7678
|
A = !1, Be(!0), Le(!0);
|
|
7683
7679
|
}
|
|
7684
7680
|
function Se(W) {
|
|
7685
|
-
if (J(), !!
|
|
7686
|
-
var ee = P || H,
|
|
7681
|
+
if (J(), !!me.dragging) {
|
|
7682
|
+
var ee = P || H, ne = T("clientX", W) || 0, te = T("clientY", W) || 0, we = C(E, ne, te), ye = xt(we, ne, te);
|
|
7687
7683
|
ye && (P && Z.copySortSource || !P || ye !== D) ? Oe(ee, ye) : Z.removeOnSpill ? Ge() : Re();
|
|
7688
7684
|
}
|
|
7689
7685
|
}
|
|
7690
7686
|
function Oe(W, ee) {
|
|
7691
|
-
var
|
|
7692
|
-
P && Z.copySortSource && ee === D &&
|
|
7687
|
+
var ne = M(W);
|
|
7688
|
+
P && Z.copySortSource && ee === D && ne.removeChild(H), yt(ee) ? me.emit("cancel", W, D) : me.emit("drop", W, ee, D, Q), lt();
|
|
7693
7689
|
}
|
|
7694
7690
|
function Ge() {
|
|
7695
|
-
if (
|
|
7691
|
+
if (me.dragging) {
|
|
7696
7692
|
var W = P || H, ee = M(W);
|
|
7697
|
-
ee && ee.removeChild(W),
|
|
7693
|
+
ee && ee.removeChild(W), me.emit(P ? "cancel" : "remove", W, ee, D), lt();
|
|
7698
7694
|
}
|
|
7699
7695
|
}
|
|
7700
7696
|
function Re(W) {
|
|
7701
|
-
if (
|
|
7702
|
-
var ee = arguments.length > 0 ? W : Z.revertOnSpill,
|
|
7703
|
-
we === !1 && ee && (P ?
|
|
7697
|
+
if (me.dragging) {
|
|
7698
|
+
var ee = arguments.length > 0 ? W : Z.revertOnSpill, ne = P || H, te = M(ne), we = yt(te);
|
|
7699
|
+
we === !1 && ee && (P ? te && te.removeChild(P) : D.insertBefore(ne, j)), we || ee ? me.emit("cancel", ne, D, D) : me.emit("drop", ne, te, D, Q), lt();
|
|
7704
7700
|
}
|
|
7705
7701
|
}
|
|
7706
7702
|
function lt() {
|
|
7707
7703
|
var W = P || H;
|
|
7708
|
-
J(), re(),
|
|
7704
|
+
J(), re(), fe(), W && s.rm(W, "gu-transit"), B && clearTimeout(B), me.dragging = !1, Y && me.emit("out", W, Y, D), me.emit("dragend", W, K), D = H = P = j = Q = B = Y = null;
|
|
7709
7705
|
}
|
|
7710
7706
|
function yt(W, ee) {
|
|
7711
|
-
var
|
|
7712
|
-
return ee !== void 0 ?
|
|
7707
|
+
var ne;
|
|
7708
|
+
return ee !== void 0 ? ne = ee : E ? ne = Q : ne = v(P || H), W === D && ne === j;
|
|
7713
7709
|
}
|
|
7714
|
-
function xt(W, ee,
|
|
7715
|
-
for (var
|
|
7716
|
-
|
|
7717
|
-
return
|
|
7710
|
+
function xt(W, ee, ne) {
|
|
7711
|
+
for (var te = W; te && !we(); )
|
|
7712
|
+
te = M(te);
|
|
7713
|
+
return te;
|
|
7718
7714
|
function we() {
|
|
7719
|
-
var ye = ve(
|
|
7715
|
+
var ye = ve(te);
|
|
7720
7716
|
if (ye === !1)
|
|
7721
7717
|
return !1;
|
|
7722
|
-
var Ne = ge(
|
|
7723
|
-
return $e ? !0 : Z.accepts(H,
|
|
7718
|
+
var Ne = ge(te, W), Te = Ce(te, Ne, ee, ne), $e = yt(te, Te);
|
|
7719
|
+
return $e ? !0 : Z.accepts(H, te, D, Te);
|
|
7724
7720
|
}
|
|
7725
7721
|
}
|
|
7726
7722
|
function pt(W) {
|
|
7727
7723
|
if (!E)
|
|
7728
7724
|
return;
|
|
7729
7725
|
W.preventDefault();
|
|
7730
|
-
var ee = T("clientX", W) || 0,
|
|
7731
|
-
E.style.left = ee - 2 + "px", E.style.top =
|
|
7732
|
-
var
|
|
7733
|
-
(Ne || ye === null) && (he(), Y = ye, ut()),
|
|
7734
|
-
var Te = M(
|
|
7726
|
+
var ee = T("clientX", W) || 0, ne = T("clientY", W) || 0;
|
|
7727
|
+
E.style.left = ee - 2 + "px", E.style.top = ne - 2 + "px";
|
|
7728
|
+
var te = P || H, we = C(E, ee, ne), ye = xt(we, ee, ne), Ne = ye !== null && ye !== Y;
|
|
7729
|
+
(Ne || ye === null) && (he(), Y = ye, ut()), pe(we, ne);
|
|
7730
|
+
var Te = M(te);
|
|
7735
7731
|
if (ye === D && P && !Z.copySortSource) {
|
|
7736
|
-
Te && Te.removeChild(
|
|
7732
|
+
Te && Te.removeChild(te);
|
|
7737
7733
|
return;
|
|
7738
7734
|
}
|
|
7739
7735
|
var $e, st = ge(ye, we);
|
|
7740
7736
|
if (z = Pe(st, ye), st !== null)
|
|
7741
|
-
$e = Ce(ye, st, ee,
|
|
7737
|
+
$e = Ce(ye, st, ee, ne);
|
|
7742
7738
|
else if (Z.revertOnSpill === !0 && !P)
|
|
7743
7739
|
$e = j, ye = D;
|
|
7744
7740
|
else {
|
|
7745
|
-
P && Te && Te.removeChild(
|
|
7741
|
+
P && Te && Te.removeChild(te), P && $ && ($.style.display = "none");
|
|
7746
7742
|
return;
|
|
7747
7743
|
}
|
|
7748
|
-
$.style.display = "block", Dt($e,
|
|
7744
|
+
$.style.display = "block", Dt($e, te, Ne), $e ? Ze(st, $e) : X(ye);
|
|
7749
7745
|
function Xe(xe) {
|
|
7750
|
-
|
|
7746
|
+
me.emit(xe, te, Y, D);
|
|
7751
7747
|
}
|
|
7752
7748
|
function ut() {
|
|
7753
7749
|
Ne && Xe("over");
|
|
@@ -7756,17 +7752,17 @@ var Uu = { exports: {} };
|
|
|
7756
7752
|
Y && Xe("out");
|
|
7757
7753
|
}
|
|
7758
7754
|
}
|
|
7759
|
-
function Dt(W, ee,
|
|
7760
|
-
(W === ee || W === v(ee)) && (Q = v(ee)), (W === null &&
|
|
7755
|
+
function Dt(W, ee, ne) {
|
|
7756
|
+
(W === ee || W === v(ee)) && (Q = v(ee)), (W === null && ne || W !== ee && W !== v(ee)) && (Q = W);
|
|
7761
7757
|
}
|
|
7762
7758
|
function _t(W) {
|
|
7763
7759
|
s.rm(W, "gu-hide");
|
|
7764
7760
|
}
|
|
7765
7761
|
function bt(W) {
|
|
7766
|
-
|
|
7762
|
+
me.dragging && s.add(W, "gu-hide");
|
|
7767
7763
|
}
|
|
7768
7764
|
function Vt() {
|
|
7769
|
-
E || (E = document.createElement("div"), E.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;", E.innerHTML = Z.getMirrorText && Z.getMirrorText(H) || "控件", s.add(E, "gu-mirror"), Z.mirrorContainer.appendChild(E), p(c, "add", "mousemove", pt), s.add(Z.mirrorContainer, "gu-unselectable"),
|
|
7765
|
+
E || (E = document.createElement("div"), E.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;", E.innerHTML = Z.getMirrorText && Z.getMirrorText(H) || "控件", s.add(E, "gu-mirror"), Z.mirrorContainer.appendChild(E), p(c, "add", "mousemove", pt), s.add(Z.mirrorContainer, "gu-unselectable"), me.emit("cloned", E, H, "mirror"));
|
|
7770
7766
|
}
|
|
7771
7767
|
function St() {
|
|
7772
7768
|
if ($ = document.createElement("div"), s.add($, "gu-insertion"), H) {
|
|
@@ -7778,21 +7774,21 @@ var Uu = { exports: {} };
|
|
|
7778
7774
|
function re() {
|
|
7779
7775
|
E && (s.rm(Z.mirrorContainer, "gu-unselectable"), p(c, "remove", "mousemove", pt), M(E).removeChild(E), E = null);
|
|
7780
7776
|
}
|
|
7781
|
-
function
|
|
7777
|
+
function fe() {
|
|
7782
7778
|
$ && (M($).removeChild($), $ = null);
|
|
7783
7779
|
}
|
|
7784
7780
|
function ge(W, ee) {
|
|
7785
|
-
for (var
|
|
7786
|
-
|
|
7787
|
-
return
|
|
7781
|
+
for (var ne = ee; ne !== W && M(ne) !== W; )
|
|
7782
|
+
ne = M(ne);
|
|
7783
|
+
return ne === c ? null : ne;
|
|
7788
7784
|
}
|
|
7789
7785
|
function Pe(W, ee) {
|
|
7790
7786
|
if (!ee)
|
|
7791
7787
|
return z;
|
|
7792
|
-
var
|
|
7793
|
-
if (!
|
|
7788
|
+
var ne = W || ee && ee.lastElementChild;
|
|
7789
|
+
if (!ne)
|
|
7794
7790
|
return !0;
|
|
7795
|
-
var
|
|
7791
|
+
var te = getComputedStyle(W), we = /^inline/.test(te.getPropertyValue("display")) || /^(left|right)$/.test(te.getPropertyValue("float"));
|
|
7796
7792
|
if (we)
|
|
7797
7793
|
return !0;
|
|
7798
7794
|
if (ee) {
|
|
@@ -7810,10 +7806,10 @@ var Uu = { exports: {} };
|
|
|
7810
7806
|
if (!W.children || !W.children.length)
|
|
7811
7807
|
return !1;
|
|
7812
7808
|
for (const ee of Array.from(W.children)) {
|
|
7813
|
-
const
|
|
7814
|
-
if (!
|
|
7809
|
+
const te = (ee.className && ee.className.split(" ") || []).filter((we) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(we));
|
|
7810
|
+
if (!te.length)
|
|
7815
7811
|
return !1;
|
|
7816
|
-
for (const we of
|
|
7812
|
+
for (const we of te) {
|
|
7817
7813
|
const ye = we.slice(we.lastIndexOf("-") + 1);
|
|
7818
7814
|
if (parseInt(ye, 10) !== 12)
|
|
7819
7815
|
return !1;
|
|
@@ -7822,15 +7818,15 @@ var Uu = { exports: {} };
|
|
|
7822
7818
|
return !0;
|
|
7823
7819
|
}
|
|
7824
7820
|
function Ze(W, ee) {
|
|
7825
|
-
const
|
|
7826
|
-
if ($.style.left =
|
|
7827
|
-
if ($.style.height =
|
|
7828
|
-
const
|
|
7829
|
-
|
|
7821
|
+
const ne = ee.getBoundingClientRect();
|
|
7822
|
+
if ($.style.left = ne.left + "px", $.style.top = ne.top + "px", z) {
|
|
7823
|
+
if ($.style.height = ne.height + "px", $.style.width = "4px", W) {
|
|
7824
|
+
const te = W.getBoundingClientRect();
|
|
7825
|
+
te.top !== ne.top && ($.style.left = te.right + "px", $.style.top = te.top + "px", $.style.height = te.height + "px");
|
|
7830
7826
|
}
|
|
7831
|
-
} else if ($.style.height = "4px", $.style.width =
|
|
7832
|
-
const
|
|
7833
|
-
|
|
7827
|
+
} else if ($.style.height = "4px", $.style.width = ne.width + "px", ie) {
|
|
7828
|
+
const te = ie.getBoundingClientRect();
|
|
7829
|
+
ne.top < te.top && ($.style.display = "none");
|
|
7834
7830
|
}
|
|
7835
7831
|
ee === H && H && ($.style.display = "none");
|
|
7836
7832
|
}
|
|
@@ -7838,42 +7834,42 @@ var Uu = { exports: {} };
|
|
|
7838
7834
|
Q = null;
|
|
7839
7835
|
var ee = W.lastElementChild;
|
|
7840
7836
|
if (ee) {
|
|
7841
|
-
var
|
|
7842
|
-
z ? ($.style.left =
|
|
7837
|
+
var ne = ee.getBoundingClientRect();
|
|
7838
|
+
z ? ($.style.left = ne.right + "px", $.style.top = ne.top + "px", $.style.height = ne.height + "px", $.style.width = "4px") : ($.style.left = ne.left + "px", $.style.top = ne.bottom + "px", $.style.height = "4px", $.style.width = ne.width + "px"), ee === H && H && ($.style.display = "none");
|
|
7843
7839
|
} else
|
|
7844
7840
|
$.style.display = "none";
|
|
7845
7841
|
}
|
|
7846
|
-
function
|
|
7842
|
+
function pe(W, ee) {
|
|
7847
7843
|
if (!Z.mirrorContainer.contains(W) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ie = m(W), !ie || !ie.contains(W)))
|
|
7848
7844
|
return;
|
|
7849
|
-
const
|
|
7850
|
-
if (ee - 30 <
|
|
7845
|
+
const ne = document.querySelector(".dgComponentSelected"), te = ie.getBoundingClientRect();
|
|
7846
|
+
if (ee - 30 < te.top && ie.scrollTop > 0) {
|
|
7851
7847
|
let we = ie.scrollTop < 10 ? ie.scrollTop : 10;
|
|
7852
|
-
ie.scrollBy(0, -1 * we),
|
|
7848
|
+
ie.scrollBy(0, -1 * we), ne && ie.contains(ne) && (K = K + -1 * we);
|
|
7853
7849
|
}
|
|
7854
|
-
if (ee + 30 >
|
|
7850
|
+
if (ee + 30 > te.bottom && ie.scrollTop < ie.scrollHeight - ie.clientHeight) {
|
|
7855
7851
|
const we = ie.scrollHeight - ie.clientHeight - ie.scrollTop;
|
|
7856
7852
|
let ye = we < 10 ? we : 10;
|
|
7857
|
-
ie.scrollBy(0, ye),
|
|
7853
|
+
ie.scrollBy(0, ye), ne && ie.contains(ne) && (K = K + ye);
|
|
7858
7854
|
}
|
|
7859
7855
|
}
|
|
7860
|
-
function Ce(W, ee,
|
|
7856
|
+
function Ce(W, ee, ne, te) {
|
|
7861
7857
|
var we = Z.direction === "horizontal", ye = Z.direction === "mixed", Ne = ee !== W ? $e() : Te();
|
|
7862
7858
|
return Ne;
|
|
7863
7859
|
function Te() {
|
|
7864
7860
|
var Xe = W.children.length, ut, he, xe;
|
|
7865
7861
|
for (ut = 0; ut < Xe; ut++)
|
|
7866
|
-
if (he = W.children[ut], xe = he.getBoundingClientRect(), we && xe.left + xe.width / 2 >
|
|
7862
|
+
if (he = W.children[ut], xe = he.getBoundingClientRect(), we && xe.left + xe.width / 2 > ne || !ye && !we && xe.top + xe.height / 2 > te || ye && xe.left + xe.width > ne && xe.top + xe.height > te)
|
|
7867
7863
|
return he;
|
|
7868
7864
|
return null;
|
|
7869
7865
|
}
|
|
7870
7866
|
function $e() {
|
|
7871
7867
|
var Xe = ee.getBoundingClientRect();
|
|
7872
7868
|
if (ye) {
|
|
7873
|
-
var ut =
|
|
7869
|
+
var ut = te - Xe.top, he = ne - Xe.left, xe = Xe.bottom - te, et = Xe.right - ne, Je = Math.min(he, et, ut, xe), tt;
|
|
7874
7870
|
return z ? tt = et < he : tt = xe === Je || et === Je || he === Je, st(tt);
|
|
7875
7871
|
}
|
|
7876
|
-
return st(we ?
|
|
7872
|
+
return st(we ? ne > Xe.left + b(Xe) / 2 : te > Xe.top + F(Xe) / 2);
|
|
7877
7873
|
}
|
|
7878
7874
|
function st(Xe) {
|
|
7879
7875
|
return Xe ? v(ee) : ee;
|
|
@@ -8324,7 +8320,7 @@ const Xu = {
|
|
|
8324
8320
|
}
|
|
8325
8321
|
});
|
|
8326
8322
|
function Ju(n) {
|
|
8327
|
-
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !
|
|
8323
|
+
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !nr(n);
|
|
8328
8324
|
}
|
|
8329
8325
|
const Tn = /* @__PURE__ */ Qe({
|
|
8330
8326
|
name: "FDesignerItem",
|
|
@@ -8338,7 +8334,7 @@ const Tn = /* @__PURE__ */ Qe({
|
|
|
8338
8334
|
parent: p,
|
|
8339
8335
|
setupContext: t
|
|
8340
8336
|
};
|
|
8341
|
-
|
|
8337
|
+
er("design-item-context", I);
|
|
8342
8338
|
const C = Mt("useFormSchema"), g = Mt("designer-host-service"), x = q(() => {
|
|
8343
8339
|
var Q;
|
|
8344
8340
|
const R = n.modelValue.appearance && n.modelValue.appearance.class || "", N = ((Q = y.value) == null ? void 0 : Q.getCustomButtons) && y.value.getCustomButtons();
|
|
@@ -8471,7 +8467,7 @@ const Tn = /* @__PURE__ */ Qe({
|
|
|
8471
8467
|
}
|
|
8472
8468
|
}
|
|
8473
8469
|
ke(() => n.modelValue, (R) => {
|
|
8474
|
-
a.value = R, e.value = `${R.id}-component`,
|
|
8470
|
+
a.value = R, e.value = `${R.id}-component`, tr(d);
|
|
8475
8471
|
}, {
|
|
8476
8472
|
deep: !0
|
|
8477
8473
|
});
|
|
@@ -8498,7 +8494,7 @@ const Tn = /* @__PURE__ */ Qe({
|
|
|
8498
8494
|
m && R && m.attachComponents(R, a.value), i.value = y.value.canNested !== void 0 ? y.value.canNested : i.value, r.value = y.value.canDelete !== void 0 ? y.value.canDelete : r.value, o.value = y.value.canMove !== void 0 ? y.value.canMove : o.value, s.value = y.value.styles || "", u.value = y.value.designerClass || "", d.value && (d.value.componentInstance = y, d.value.designItemContext = I), y.value.belongedComponentId = l.value;
|
|
8499
8495
|
}
|
|
8500
8496
|
D(), Xt.value++;
|
|
8501
|
-
}),
|
|
8497
|
+
}), Kn(() => {
|
|
8502
8498
|
d.value && d.value.removeEventListener("scroll", E);
|
|
8503
8499
|
});
|
|
8504
8500
|
function H(R) {
|
|
@@ -8509,7 +8505,7 @@ const Tn = /* @__PURE__ */ Qe({
|
|
|
8509
8505
|
const Q = document.getElementsByClassName("dgComponentFocused");
|
|
8510
8506
|
Q && Q.length === 1 && Q[0] === d.value || (Array.from(Q).forEach((B) => B.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((B) => B.classList.remove("dgComponentSelected")), j.classList.add("dgComponentFocused"), t.emit("selectionChange", a.value.type, a.value, l.value, y.value), y.value.getDraggableDesignItemElement && (N = y.value.getDraggableDesignItemElement(I), N && N.value && N.value.classList.add("dgComponentSelected")));
|
|
8511
8507
|
}
|
|
8512
|
-
|
|
8508
|
+
so(N == null ? void 0 : N.value);
|
|
8513
8509
|
}
|
|
8514
8510
|
return () => a.value.type === "component-ref" ? O(a.value) : k("div", {
|
|
8515
8511
|
id: `${a.value.id}-design-item`,
|
|
@@ -8948,7 +8944,7 @@ function tc(n, t, e) {
|
|
|
8948
8944
|
resetTranslate: F
|
|
8949
8945
|
};
|
|
8950
8946
|
}
|
|
8951
|
-
function
|
|
8947
|
+
function Go(n, t) {
|
|
8952
8948
|
if (n) {
|
|
8953
8949
|
const e = (o) => {
|
|
8954
8950
|
o.key.toLowerCase() === n.toLowerCase() && t({ event: o, key: n });
|
|
@@ -8961,7 +8957,7 @@ function zo(n, t) {
|
|
|
8961
8957
|
function nc(n, t) {
|
|
8962
8958
|
const e = S(n.enableEsc);
|
|
8963
8959
|
let o = null;
|
|
8964
|
-
return e.value ? (o =
|
|
8960
|
+
return e.value ? (o = Go("Escape", (r) => {
|
|
8965
8961
|
t.emit("esc", { event: r.event, type: "esc" });
|
|
8966
8962
|
}), {
|
|
8967
8963
|
remove: o
|
|
@@ -8970,7 +8966,7 @@ function nc(n, t) {
|
|
|
8970
8966
|
function oc(n, t) {
|
|
8971
8967
|
const e = S(n.enableEnter);
|
|
8972
8968
|
let o = null;
|
|
8973
|
-
return e.value ? (o =
|
|
8969
|
+
return e.value ? (o = Go("Enter", (r) => {
|
|
8974
8970
|
t.emit("enter", { event: r.event, type: "enter" });
|
|
8975
8971
|
}), {
|
|
8976
8972
|
remove: o
|
|
@@ -9078,7 +9074,7 @@ const Kt = /* @__PURE__ */ Qe({
|
|
|
9078
9074
|
display: s.value ? "" : "none"
|
|
9079
9075
|
};
|
|
9080
9076
|
return J["pointer-events"] = N.value ? "auto" : "none", J;
|
|
9081
|
-
}),
|
|
9077
|
+
}), me = q(() => ({
|
|
9082
9078
|
"f-icon": !0,
|
|
9083
9079
|
modal_maximize: !0,
|
|
9084
9080
|
modalrevert: O.value
|
|
@@ -9111,13 +9107,13 @@ const Kt = /* @__PURE__ */ Qe({
|
|
|
9111
9107
|
function ce(J) {
|
|
9112
9108
|
J.width && (e.value = J.width), J.height && (o.value = J.height), J.buttons && (f.value = J.buttons), J.title && (g.value = J.title);
|
|
9113
9109
|
}
|
|
9114
|
-
let G = null,
|
|
9110
|
+
let G = null, oe = null;
|
|
9115
9111
|
cn(() => {
|
|
9116
9112
|
F.value = P();
|
|
9117
9113
|
}), Ct(() => {
|
|
9118
|
-
h.value && !x.value && (x.value = h.value.parentElement, H.value = x.value, Q(T.value, h.value, H.value)), Y.value && document.body.classList.add("modal-open"), G = nc(n, t),
|
|
9114
|
+
h.value && !x.value && (x.value = h.value.parentElement, H.value = x.value, Q(T.value, h.value, H.value)), Y.value && document.body.classList.add("modal-open"), G = nc(n, t), oe = oc(n, t);
|
|
9119
9115
|
}), dn(() => {
|
|
9120
|
-
j && j(), G && G.remove(),
|
|
9116
|
+
j && j(), G && G.remove(), oe && oe.remove();
|
|
9121
9117
|
}), t.expose({
|
|
9122
9118
|
modalElementRef: h,
|
|
9123
9119
|
updateModalOptions: ce,
|
|
@@ -9135,7 +9131,7 @@ const Kt = /* @__PURE__ */ Qe({
|
|
|
9135
9131
|
class: "f-btn-icon f-bare",
|
|
9136
9132
|
style: "pointer-events: auto;"
|
|
9137
9133
|
}, [k("span", {
|
|
9138
|
-
class:
|
|
9134
|
+
class: me.value
|
|
9139
9135
|
}, null)]), c.value && k("li", {
|
|
9140
9136
|
class: "f-btn-icon f-bare",
|
|
9141
9137
|
onClick: (J) => M(J, !1),
|
|
@@ -9208,10 +9204,10 @@ const Kt = /* @__PURE__ */ Qe({
|
|
|
9208
9204
|
src: p.value
|
|
9209
9205
|
}, null)]), rt()]), !l.value && h.value && !O.value && V(h.value)]);
|
|
9210
9206
|
}
|
|
9211
|
-
return () => k(
|
|
9207
|
+
return () => k(or, {
|
|
9212
9208
|
to: "body"
|
|
9213
9209
|
}, {
|
|
9214
|
-
default: () => [Y.value && k(
|
|
9210
|
+
default: () => [Y.value && k(Qn, {
|
|
9215
9211
|
name: "fade",
|
|
9216
9212
|
appear: !0
|
|
9217
9213
|
}, {
|
|
@@ -9225,7 +9221,7 @@ const Kt = /* @__PURE__ */ Qe({
|
|
|
9225
9221
|
});
|
|
9226
9222
|
}
|
|
9227
9223
|
});
|
|
9228
|
-
function
|
|
9224
|
+
function zo(n) {
|
|
9229
9225
|
if (n.content && n.content.render)
|
|
9230
9226
|
return n.content.render;
|
|
9231
9227
|
if (n.render && typeof n.render == "function")
|
|
@@ -9234,7 +9230,7 @@ function Yo(n) {
|
|
|
9234
9230
|
function rc(n) {
|
|
9235
9231
|
const t = document.createElement("div");
|
|
9236
9232
|
t.style.display = "contents";
|
|
9237
|
-
const e =
|
|
9233
|
+
const e = Xn({
|
|
9238
9234
|
setup(o, r) {
|
|
9239
9235
|
dn(() => {
|
|
9240
9236
|
document.body.removeChild(t);
|
|
@@ -9244,7 +9240,7 @@ function rc(n) {
|
|
|
9244
9240
|
}), p = n.closedCallback || ((b) => {
|
|
9245
9241
|
}), I = n.resizeHandle || ((b) => {
|
|
9246
9242
|
}), C = n.stopMoveHandle || ((b) => {
|
|
9247
|
-
}), g =
|
|
9243
|
+
}), g = zo(n), x = (b) => {
|
|
9248
9244
|
c.value = !1, e.unmount(), p(b);
|
|
9249
9245
|
};
|
|
9250
9246
|
return Ct(() => {
|
|
@@ -9276,7 +9272,7 @@ function rc(n) {
|
|
|
9276
9272
|
});
|
|
9277
9273
|
return document.body.appendChild(t), e.mount(t), e;
|
|
9278
9274
|
}
|
|
9279
|
-
class
|
|
9275
|
+
class Yo {
|
|
9280
9276
|
constructor(t) {
|
|
9281
9277
|
L(this, "appContext", null);
|
|
9282
9278
|
L(this, "modalRef", S());
|
|
@@ -9317,7 +9313,7 @@ class Uo {
|
|
|
9317
9313
|
open(t) {
|
|
9318
9314
|
const e = document.createDocumentFragment();
|
|
9319
9315
|
t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
|
|
9320
|
-
const o =
|
|
9316
|
+
const o = rr(Object.assign({
|
|
9321
9317
|
title: "",
|
|
9322
9318
|
showButtons: !0,
|
|
9323
9319
|
showHeader: !0
|
|
@@ -9328,7 +9324,7 @@ class Uo {
|
|
|
9328
9324
|
}), u = t.stopMoveHandle || ((M) => {
|
|
9329
9325
|
});
|
|
9330
9326
|
let c;
|
|
9331
|
-
const d =
|
|
9327
|
+
const d = zo(o.value), m = (M) => {
|
|
9332
9328
|
var f;
|
|
9333
9329
|
r.value = !1;
|
|
9334
9330
|
const _ = (f = M == null ? void 0 : M.target) == null ? void 0 : f.classList.contains("modal_close");
|
|
@@ -9364,7 +9360,7 @@ class Uo {
|
|
|
9364
9360
|
default: () => [d && d(this.app)]
|
|
9365
9361
|
});
|
|
9366
9362
|
return c = ((M) => {
|
|
9367
|
-
const _ =
|
|
9363
|
+
const _ = ir(x, M);
|
|
9368
9364
|
return _.appContext = this.appContext, mn(_, e), _;
|
|
9369
9365
|
})({
|
|
9370
9366
|
...o.value
|
|
@@ -9374,7 +9370,7 @@ class Uo {
|
|
|
9374
9370
|
o.value = {
|
|
9375
9371
|
...o.value,
|
|
9376
9372
|
...M
|
|
9377
|
-
}, c && mn(
|
|
9373
|
+
}, c && mn(ar(c, {
|
|
9378
9374
|
...o
|
|
9379
9375
|
}), e);
|
|
9380
9376
|
},
|
|
@@ -9387,7 +9383,7 @@ class Uo {
|
|
|
9387
9383
|
const ic = Symbol("FModalService");
|
|
9388
9384
|
Kt.install = (n) => {
|
|
9389
9385
|
n.component(Kt.name, Kt);
|
|
9390
|
-
const t = new
|
|
9386
|
+
const t = new Yo(n);
|
|
9391
9387
|
n.provide(ic, t), n.provide("FModalService", t);
|
|
9392
9388
|
};
|
|
9393
9389
|
const ac = {
|
|
@@ -9407,7 +9403,7 @@ const ac = {
|
|
|
9407
9403
|
};
|
|
9408
9404
|
Ot(
|
|
9409
9405
|
ac,
|
|
9410
|
-
|
|
9406
|
+
Ao,
|
|
9411
9407
|
Dn,
|
|
9412
9408
|
void 0
|
|
9413
9409
|
);
|
|
@@ -9714,7 +9710,7 @@ class kt {
|
|
|
9714
9710
|
}), o = !1, r = e.type === "error" || e.type === "prompt", i = e.type === "error" ? "错误提示" : e.type === "prompt" && e.title || "", a = e.acceptCallback || (() => {
|
|
9715
9711
|
}), l = e.rejectCallback || (() => {
|
|
9716
9712
|
});
|
|
9717
|
-
let s = null, u = new
|
|
9713
|
+
let s = null, u = new Yo(s);
|
|
9718
9714
|
const c = () => {
|
|
9719
9715
|
s && (s == null || s.destroy(), u = null);
|
|
9720
9716
|
};
|
|
@@ -9873,7 +9869,7 @@ function Dc(n, t, e) {
|
|
|
9873
9869
|
}
|
|
9874
9870
|
return { getCompareOperators: r };
|
|
9875
9871
|
}
|
|
9876
|
-
function
|
|
9872
|
+
function Uo() {
|
|
9877
9873
|
const n = S({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map();
|
|
9878
9874
|
let o = 0;
|
|
9879
9875
|
function r() {
|
|
@@ -10088,15 +10084,15 @@ function Vc(n, t, e) {
|
|
|
10088
10084
|
}
|
|
10089
10085
|
const gn = /* @__PURE__ */ Qe({
|
|
10090
10086
|
name: "FConditionList",
|
|
10091
|
-
props:
|
|
10087
|
+
props: mo,
|
|
10092
10088
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
10093
10089
|
setup(n, t) {
|
|
10094
|
-
const e = S(n.key), o = S(n.conditions), r =
|
|
10090
|
+
const e = S(n.key), o = S(n.conditions), r = Ho(n), {
|
|
10095
10091
|
convertToSingleControl: i,
|
|
10096
10092
|
fields: a,
|
|
10097
10093
|
fieldMap: l,
|
|
10098
10094
|
loadFieldConfigs: s
|
|
10099
|
-
} = r, u =
|
|
10095
|
+
} = r, u = Uo(), {
|
|
10100
10096
|
addCondition: c,
|
|
10101
10097
|
changeGroupRelation: d,
|
|
10102
10098
|
getConditions: m,
|
|
@@ -10109,7 +10105,7 @@ const gn = /* @__PURE__ */ Qe({
|
|
|
10109
10105
|
unGroup: b
|
|
10110
10106
|
} = u, {
|
|
10111
10107
|
createConditionValue: F
|
|
10112
|
-
} =
|
|
10108
|
+
} = Wo(), M = Vc(n, t, u), {
|
|
10113
10109
|
selectedItems: _,
|
|
10114
10110
|
toggleSelect: f
|
|
10115
10111
|
} = M, {
|
|
@@ -10253,7 +10249,7 @@ const gn = /* @__PURE__ */ Qe({
|
|
|
10253
10249
|
}
|
|
10254
10250
|
});
|
|
10255
10251
|
gn.install = (n) => {
|
|
10256
|
-
n.component(
|
|
10252
|
+
n.component(Gn.name, Gn).component(gn.name, gn);
|
|
10257
10253
|
};
|
|
10258
10254
|
const Bc = [
|
|
10259
10255
|
"equal",
|
|
@@ -10387,37 +10383,37 @@ const Bc = [
|
|
|
10387
10383
|
["text", Pc]
|
|
10388
10384
|
]);
|
|
10389
10385
|
function Wc() {
|
|
10390
|
-
const n = S([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: e } =
|
|
10386
|
+
const n = S([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: e } = Uo();
|
|
10391
10387
|
function o(C, g) {
|
|
10392
10388
|
switch (C) {
|
|
10393
10389
|
case "check-box":
|
|
10394
|
-
return new
|
|
10390
|
+
return new ho({ value: g });
|
|
10395
10391
|
case "combo-list":
|
|
10396
|
-
return new
|
|
10392
|
+
return new Bo({ value: g });
|
|
10397
10393
|
case "combo-lookup":
|
|
10398
|
-
return new
|
|
10394
|
+
return new vo({ value: g });
|
|
10399
10395
|
case "input-group":
|
|
10400
10396
|
return new un({ value: g });
|
|
10401
10397
|
case "date-picker":
|
|
10402
|
-
return new
|
|
10398
|
+
return new Do({ value: g });
|
|
10403
10399
|
case "date-range":
|
|
10404
10400
|
return new ln({ value: g });
|
|
10405
10401
|
case "datetime-picker":
|
|
10406
|
-
return new
|
|
10402
|
+
return new Vo({ value: g });
|
|
10407
10403
|
case "datetime-range":
|
|
10408
10404
|
return new ln({ value: g });
|
|
10409
10405
|
case "lookup":
|
|
10410
|
-
return new
|
|
10406
|
+
return new Po({ value: g });
|
|
10411
10407
|
case "month-picker":
|
|
10412
|
-
return new
|
|
10408
|
+
return new No({ value: g });
|
|
10413
10409
|
case "month-range":
|
|
10414
|
-
return new
|
|
10410
|
+
return new Ro({ value: g });
|
|
10415
10411
|
case "number-range":
|
|
10416
|
-
return new
|
|
10412
|
+
return new Lo({ value: g });
|
|
10417
10413
|
case "number-spinner":
|
|
10418
|
-
return new
|
|
10414
|
+
return new $o({ value: g });
|
|
10419
10415
|
case "radio-group":
|
|
10420
|
-
return new
|
|
10416
|
+
return new jo({ value: g });
|
|
10421
10417
|
default:
|
|
10422
10418
|
return new un({ value: g });
|
|
10423
10419
|
}
|
|
@@ -10510,69 +10506,69 @@ function Ac(n, t, e, o, r, i, a, l, s) {
|
|
|
10510
10506
|
const re = c.value;
|
|
10511
10507
|
if (re.length <= 0)
|
|
10512
10508
|
return 0;
|
|
10513
|
-
const
|
|
10514
|
-
return
|
|
10509
|
+
const fe = m.value < re.length ? re[m.value] : re[re.length - 1];
|
|
10510
|
+
return fe.__fv_data_position__ > re.length * g ? re.length * g : (fe.__fv_data_position__ || 0) + (fe.__fv_data_height__ || 0) + Math.max(re.length - 1 - m.value, 0) * g;
|
|
10515
10511
|
}
|
|
10516
10512
|
const E = q(() => {
|
|
10517
10513
|
const re = V();
|
|
10518
10514
|
c.value;
|
|
10519
|
-
let
|
|
10515
|
+
let fe = f.value / Math.max(re, f.value), ge = Math.floor(fe * f.value);
|
|
10520
10516
|
for (; f.value > 0 && ge < T; )
|
|
10521
|
-
|
|
10517
|
+
fe *= h, ge = Math.floor(fe * f.value);
|
|
10522
10518
|
return ge;
|
|
10523
10519
|
}), D = q(() => Math.floor(v.value / Math.max(p.value, v.value) * _.value)), H = 0, R = 0, N = q(() => _.value - (I.value + p.value + C.value + l.value));
|
|
10524
10520
|
function j(re) {
|
|
10525
10521
|
const ge = Math.floor(re / g) + 1, Pe = c.value;
|
|
10526
10522
|
return Pe.length > ge ? Pe[ge].__fv_visible_index__ - 1 : 0;
|
|
10527
10523
|
}
|
|
10528
|
-
function Q(re,
|
|
10529
|
-
let Pe = re, ze =
|
|
10530
|
-
const Ze =
|
|
10524
|
+
function Q(re, fe, ge) {
|
|
10525
|
+
let Pe = re, ze = fe;
|
|
10526
|
+
const Ze = fe - re + 1;
|
|
10531
10527
|
if (Ze < a + i.value + a) {
|
|
10532
|
-
const X = a + i.value + a - Ze,
|
|
10533
|
-
if (
|
|
10528
|
+
const X = a + i.value + a - Ze, pe = fe + X <= ge, Ce = 0 + X <= re;
|
|
10529
|
+
if (pe)
|
|
10534
10530
|
ze += X, M = ze;
|
|
10535
10531
|
else if (Ce)
|
|
10536
10532
|
Pe -= X, F = Pe;
|
|
10537
10533
|
else {
|
|
10538
|
-
const Ee = ge -
|
|
10539
|
-
ze = Math.min(
|
|
10534
|
+
const Ee = ge - fe, W = X - Ee;
|
|
10535
|
+
ze = Math.min(fe + Ee, ge), Pe = Math.max(re - W, 0);
|
|
10540
10536
|
}
|
|
10541
10537
|
}
|
|
10542
10538
|
return { actualStart: Pe, actualEnd: ze };
|
|
10543
10539
|
}
|
|
10544
10540
|
function P(re) {
|
|
10545
10541
|
var Ee, W;
|
|
10546
|
-
const
|
|
10547
|
-
if (!
|
|
10542
|
+
const fe = c.value;
|
|
10543
|
+
if (!fe.length) {
|
|
10548
10544
|
e.value = [];
|
|
10549
10545
|
return;
|
|
10550
10546
|
}
|
|
10551
|
-
const ge = (Ee = n.pagination) != null && Ee.enable ? 0 : Math.max(F - a, 0), Pe =
|
|
10547
|
+
const ge = (Ee = n.pagination) != null && Ee.enable ? 0 : Math.max(F - a, 0), Pe = fe[fe.length - 1].__fv_visible_index__, ze = (W = n.pagination) != null && W.enable ? fe.length - 1 : Math.min(M + a, Pe), { actualStart: Ze, actualEnd: X } = Q(ge, ze, Pe), pe = fe[Ze - 1], Ce = d(Ze, X, pe, re);
|
|
10552
10548
|
Ce.length && (e.value = [...Ce]);
|
|
10553
10549
|
}
|
|
10554
10550
|
const B = q(() => V() > f.value), Y = q(() => Math.floor(p.value) > v.value);
|
|
10555
|
-
function A(re,
|
|
10551
|
+
function A(re, fe) {
|
|
10556
10552
|
let ge = re;
|
|
10557
10553
|
const Pe = ge > H, ze = B.value;
|
|
10558
|
-
ze && ge < f.value -
|
|
10554
|
+
ze && ge < f.value - fe && (ge = f.value - fe), (!ze || Pe) && (ge = H), x.value !== ge && (x.value = ge);
|
|
10559
10555
|
}
|
|
10560
10556
|
function $() {
|
|
10561
10557
|
w.value && (F = j(Math.abs(x.value)), M = F + i.value - 1, (F < y.value || M > m.value - a / 2) && P());
|
|
10562
10558
|
}
|
|
10563
10559
|
function z(re) {
|
|
10564
|
-
let
|
|
10565
|
-
|
|
10560
|
+
let fe = x.value + re;
|
|
10561
|
+
fe > H && (fe = H);
|
|
10566
10562
|
const ge = V();
|
|
10567
|
-
A(
|
|
10563
|
+
A(fe, ge), $();
|
|
10568
10564
|
}
|
|
10569
10565
|
function K(re) {
|
|
10570
10566
|
if (!Y.value) {
|
|
10571
10567
|
b.value = 0;
|
|
10572
10568
|
return;
|
|
10573
10569
|
}
|
|
10574
|
-
let
|
|
10575
|
-
|
|
10570
|
+
let fe = b.value + re;
|
|
10571
|
+
fe > R && (fe = R), fe < N.value && (fe = N.value), b.value !== fe && (b.value = fe);
|
|
10576
10572
|
}
|
|
10577
10573
|
function ie() {
|
|
10578
10574
|
Math.abs(b.value) + v.value > p.value && (b.value = Math.min(v.value - p.value, 0));
|
|
@@ -10580,25 +10576,25 @@ function Ac(n, t, e, o, r, i, a, l, s) {
|
|
|
10580
10576
|
function Z() {
|
|
10581
10577
|
x.value = 0, F = 0, M = i.value - 1, P();
|
|
10582
10578
|
}
|
|
10583
|
-
function
|
|
10579
|
+
function me() {
|
|
10584
10580
|
const re = V();
|
|
10585
10581
|
A(x.value, re);
|
|
10586
10582
|
}
|
|
10587
10583
|
ke([v, p], () => {
|
|
10588
10584
|
K(0);
|
|
10589
|
-
}), ke(f, (re,
|
|
10590
|
-
re !==
|
|
10585
|
+
}), ke(f, (re, fe) => {
|
|
10586
|
+
re !== fe && re >= u.value.length * g && z(0);
|
|
10591
10587
|
});
|
|
10592
10588
|
function ve(re) {
|
|
10593
|
-
let { deltaX:
|
|
10594
|
-
return typeof
|
|
10589
|
+
let { deltaX: fe } = re, ge = -1 * re.deltaY;
|
|
10590
|
+
return typeof fe > "u" && (fe = -1 * re.wheelDeltaX / 6), typeof ge > "u" && (ge = re.wheelDeltaY / 6), re.deltaMode && re.deltaMode === 1 && (fe *= 10, ge *= 10), re.shiftKey ? { deltaY: -ge, deltaX: -fe } : { deltaX: fe, deltaY: ge };
|
|
10595
10591
|
}
|
|
10596
10592
|
function _e(re) {
|
|
10597
10593
|
if (n.disabled || !B.value || re.target.tagName === "TEXTAREA")
|
|
10598
10594
|
return;
|
|
10599
10595
|
re.preventDefault(), re.stopPropagation();
|
|
10600
|
-
const { deltaX:
|
|
10601
|
-
z(ge), K(
|
|
10596
|
+
const { deltaX: fe, deltaY: ge } = ve(re);
|
|
10597
|
+
z(ge), K(fe);
|
|
10602
10598
|
}
|
|
10603
10599
|
const Be = q(() => ({
|
|
10604
10600
|
height: `${u.value.length * g}px`,
|
|
@@ -10616,7 +10612,7 @@ function Ac(n, t, e, o, r, i, a, l, s) {
|
|
|
10616
10612
|
height: `${u.value.length * g}px`,
|
|
10617
10613
|
width: `${C.value}px`,
|
|
10618
10614
|
transform: `translateY(${x.value}px)`
|
|
10619
|
-
})),
|
|
10615
|
+
})), oe = q(() => ({
|
|
10620
10616
|
transform: `translateY(${x.value}px)`
|
|
10621
10617
|
})), be = q(() => ({
|
|
10622
10618
|
height: `${u.value.length * g}px`,
|
|
@@ -10642,18 +10638,18 @@ function Ac(n, t, e, o, r, i, a, l, s) {
|
|
|
10642
10638
|
})), Oe = S(!1), Ge = S(-1), Re = S(-1), lt = S();
|
|
10643
10639
|
function yt(re) {
|
|
10644
10640
|
if (Oe.value && Re.value !== -1) {
|
|
10645
|
-
const
|
|
10646
|
-
if (Math.abs(
|
|
10647
|
-
const Pe =
|
|
10641
|
+
const fe = Re.value - re.pageX, ge = _.value - D.value;
|
|
10642
|
+
if (Math.abs(fe) <= ge) {
|
|
10643
|
+
const Pe = fe / (v.value - D.value) * (p.value - v.value);
|
|
10648
10644
|
K(Pe), Re.value = re.pageX;
|
|
10649
10645
|
}
|
|
10650
10646
|
}
|
|
10651
10647
|
}
|
|
10652
10648
|
function xt(re) {
|
|
10653
10649
|
if (Oe.value && Ge.value !== -1) {
|
|
10654
|
-
const
|
|
10655
|
-
if (Math.abs(
|
|
10656
|
-
const ze =
|
|
10650
|
+
const fe = Ge.value - re.pageY, ge = V(), Pe = ge - E.value;
|
|
10651
|
+
if (Math.abs(fe) <= Pe) {
|
|
10652
|
+
const ze = fe / (f.value - E.value) * (ge - f.value);
|
|
10657
10653
|
z(ze), Ge.value = re.pageY;
|
|
10658
10654
|
}
|
|
10659
10655
|
}
|
|
@@ -10661,16 +10657,16 @@ function Ac(n, t, e, o, r, i, a, l, s) {
|
|
|
10661
10657
|
function pt(re) {
|
|
10662
10658
|
Oe.value = !1, Ge.value = -1, Re.value = -1, document.removeEventListener("mouseup", pt), O && (document.removeEventListener("mousemove", O), O = null), document.body.style.userSelect = "", lt.value && (lt.value.style.opacity = null);
|
|
10663
10659
|
}
|
|
10664
|
-
function Dt(re,
|
|
10660
|
+
function Dt(re, fe, ge) {
|
|
10665
10661
|
var Ze;
|
|
10666
10662
|
Oe.value = !0;
|
|
10667
10663
|
const Pe = (Ze = re.target) == null ? void 0 : Ze.parentElement;
|
|
10668
|
-
Pe && (Pe.style.opacity = "1", lt.value = Pe), O || (O =
|
|
10664
|
+
Pe && (Pe.style.opacity = "1", lt.value = Pe), O || (O = lr(ge === "horizontal" ? yt : xt, 50)), ge === "vertical" && (Ge.value = re.pageY), ge === "horizontal" && (Re.value = re.pageX), fe.value && (fe.value, document.addEventListener("mousemove", O), document.addEventListener("mouseup", pt), document.body.style.userSelect = "none");
|
|
10669
10665
|
}
|
|
10670
10666
|
function _t(re) {
|
|
10671
|
-
const
|
|
10667
|
+
const fe = u.value.length * g - f.value;
|
|
10672
10668
|
let ge = re * g;
|
|
10673
|
-
ge >=
|
|
10669
|
+
ge >= fe && (ge = fe), z(-ge - x.value);
|
|
10674
10670
|
}
|
|
10675
10671
|
function bt() {
|
|
10676
10672
|
_t(u.value.length);
|
|
@@ -10697,10 +10693,10 @@ function Ac(n, t, e, o, r, i, a, l, s) {
|
|
|
10697
10693
|
resetScroll: Z,
|
|
10698
10694
|
rightFixedGridDataStyle: G,
|
|
10699
10695
|
rightFixedGridHeaderColumnsStyle: rt,
|
|
10700
|
-
rightFixedGridMergedDataStyle:
|
|
10696
|
+
rightFixedGridMergedDataStyle: oe,
|
|
10701
10697
|
shouldShowHorizontalScrollbar: Y,
|
|
10702
10698
|
shouldShowVirticalScrollbar: B,
|
|
10703
|
-
updateVirticalScroll:
|
|
10699
|
+
updateVirticalScroll: me,
|
|
10704
10700
|
updateVisibleRowsOnLatestVisibleScope: $,
|
|
10705
10701
|
verticalScrollThumbStyle: ft,
|
|
10706
10702
|
viewPortWidth: v,
|
|
@@ -10712,7 +10708,7 @@ function Ac(n, t, e, o, r, i, a, l, s) {
|
|
|
10712
10708
|
}
|
|
10713
10709
|
function qc(n) {
|
|
10714
10710
|
var i;
|
|
10715
|
-
const { isUndefined: t } =
|
|
10711
|
+
const { isUndefined: t } = zr(), e = ((i = n.rowOption) == null ? void 0 : i.height) || 28;
|
|
10716
10712
|
function o(a, l) {
|
|
10717
10713
|
const s = a.pre;
|
|
10718
10714
|
if (s) {
|
|
@@ -10767,7 +10763,7 @@ function zc() {
|
|
|
10767
10763
|
function Yc() {
|
|
10768
10764
|
const {
|
|
10769
10765
|
formatTo: n
|
|
10770
|
-
} =
|
|
10766
|
+
} = Yr();
|
|
10771
10767
|
function t(o, r) {
|
|
10772
10768
|
if (o) {
|
|
10773
10769
|
let i = "yyyy-MM-dd";
|
|
@@ -10792,7 +10788,7 @@ function Yc() {
|
|
|
10792
10788
|
function Uc() {
|
|
10793
10789
|
const {
|
|
10794
10790
|
formatTo: n
|
|
10795
|
-
} =
|
|
10791
|
+
} = Ur();
|
|
10796
10792
|
function t(e, o) {
|
|
10797
10793
|
const r = {
|
|
10798
10794
|
precision: o.precision,
|
|
@@ -11277,15 +11273,15 @@ function nd(n, t, e, o, r) {
|
|
|
11277
11273
|
return l(p.value);
|
|
11278
11274
|
}
|
|
11279
11275
|
function b() {
|
|
11280
|
-
const U = o.value.reduce((G,
|
|
11276
|
+
const U = o.value.reduce((G, oe) => (G.set(oe.raw[i.value], oe), G), /* @__PURE__ */ new Map());
|
|
11281
11277
|
return p.value.map((G) => U.get(G)).filter((G) => !!G);
|
|
11282
11278
|
}
|
|
11283
11279
|
function F(U) {
|
|
11284
11280
|
var G;
|
|
11285
11281
|
const ce = U.raw.__fv_children_index__;
|
|
11286
11282
|
if (ce && ce.length) {
|
|
11287
|
-
const
|
|
11288
|
-
(G = p.value) != null && G.length &&
|
|
11283
|
+
const oe = ce.map((be) => a.value[be]);
|
|
11284
|
+
(G = p.value) != null && G.length && oe.some((Fe) => !p.value.includes(Fe[i.value])) && (U.indeterminate = !0, U.raw.__fv_indeterminate__ = !0);
|
|
11289
11285
|
}
|
|
11290
11286
|
}
|
|
11291
11287
|
const M = q(() => u.value && c.value), _ = q(
|
|
@@ -11309,8 +11305,8 @@ function nd(n, t, e, o, r) {
|
|
|
11309
11305
|
}), b().forEach((G) => {
|
|
11310
11306
|
G.checked = !0, G.raw.__fv_checked__ = !0;
|
|
11311
11307
|
}), U.forEach((G) => {
|
|
11312
|
-
const
|
|
11313
|
-
F(
|
|
11308
|
+
const oe = o.value.find((be) => be.raw[i.value] === G);
|
|
11309
|
+
F(oe);
|
|
11314
11310
|
});
|
|
11315
11311
|
}
|
|
11316
11312
|
ke(() => o.value, () => {
|
|
@@ -11381,14 +11377,14 @@ function nd(n, t, e, o, r) {
|
|
|
11381
11377
|
const ce = o.value.find((G) => G.raw[i.value] === U);
|
|
11382
11378
|
ce && ie(ce);
|
|
11383
11379
|
}
|
|
11384
|
-
function
|
|
11385
|
-
const ce = o.value.filter((be) => U.includes(be.raw[i.value])), G = ce.map((be) => be.raw[i.value]),
|
|
11380
|
+
function me(U) {
|
|
11381
|
+
const ce = o.value.filter((be) => U.includes(be.raw[i.value])), G = ce.map((be) => be.raw[i.value]), oe = a.value.filter((be) => {
|
|
11386
11382
|
const Fe = be[i.value];
|
|
11387
11383
|
return !G.includes(Fe) && U.includes(Fe);
|
|
11388
11384
|
});
|
|
11389
|
-
(ce.length ||
|
|
11385
|
+
(ce.length || oe.length) && (R(), _.value && (s.value = U[0])), ce.forEach((be) => {
|
|
11390
11386
|
B(be);
|
|
11391
|
-
}),
|
|
11387
|
+
}), oe.forEach((be) => {
|
|
11392
11388
|
N(be);
|
|
11393
11389
|
}), h();
|
|
11394
11390
|
}
|
|
@@ -11396,12 +11392,12 @@ function nd(n, t, e, o, r) {
|
|
|
11396
11392
|
for (const ce of U) {
|
|
11397
11393
|
if (!p.value.includes(ce))
|
|
11398
11394
|
continue;
|
|
11399
|
-
const G = o.value.find((
|
|
11395
|
+
const G = o.value.find((oe) => oe.raw[i.value] === ce);
|
|
11400
11396
|
if (G)
|
|
11401
11397
|
Y(G);
|
|
11402
11398
|
else {
|
|
11403
|
-
const
|
|
11404
|
-
|
|
11399
|
+
const oe = a.value.find((be) => be[i.value] === ce);
|
|
11400
|
+
oe && j(oe);
|
|
11405
11401
|
}
|
|
11406
11402
|
}
|
|
11407
11403
|
p.value = p.value.filter(
|
|
@@ -11442,7 +11438,7 @@ function nd(n, t, e, o, r) {
|
|
|
11442
11438
|
selectDataItem: N,
|
|
11443
11439
|
selectItem: ie,
|
|
11444
11440
|
selectItemById: Z,
|
|
11445
|
-
selectItemByIds:
|
|
11441
|
+
selectItemByIds: me,
|
|
11446
11442
|
showCheckBox: m,
|
|
11447
11443
|
showSelectAll: y,
|
|
11448
11444
|
toggleSelectItem: K,
|
|
@@ -11601,41 +11597,41 @@ const qt = /* @__PURE__ */ Qe({
|
|
|
11601
11597
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode"],
|
|
11602
11598
|
setup(n, t) {
|
|
11603
11599
|
var Xe, ut;
|
|
11604
|
-
const o = ((Xe = n.rowOption) == null ? void 0 : Xe.height) || 28, r = S(20), i = S(n.columns), a =
|
|
11600
|
+
const o = ((Xe = n.rowOption) == null ? void 0 : Xe.height) || 28, r = S(20), i = S(n.columns), a = ur(n), {
|
|
11605
11601
|
idField: l
|
|
11606
|
-
} = a, s = S(), u = S(), c = S(), d = S(), m = S(), y = S([]), p = S(!1), I = S(((ut = n.rowOption) == null ? void 0 : ut.wrapContent) || !1), C =
|
|
11602
|
+
} = a, s = S(), u = S(), c = S(), d = S(), m = S(), y = S([]), p = S(!1), I = S(((ut = n.rowOption) == null ? void 0 : ut.wrapContent) || !1), C = cr(n, a), g = dr(), x = fr(n), {
|
|
11607
11603
|
collapseField: b
|
|
11608
11604
|
} = x, {
|
|
11609
11605
|
showLoading: F,
|
|
11610
11606
|
renderLoading: M
|
|
11611
|
-
} =
|
|
11607
|
+
} = pr(n, s), _ = mr(n, /* @__PURE__ */ new Map(), g, x, a), {
|
|
11612
11608
|
dataView: f
|
|
11613
|
-
} = _, v =
|
|
11609
|
+
} = _, v = hr(n, _, a, y, t), w = vr(n, y, _, a, v, t), T = q(() => n.disabled), h = q(() => n.virtualized ? Math.min(_.dataView.value.length, r.value) : _.dataView.value.length), {
|
|
11614
11610
|
containerStyleObject: O
|
|
11615
|
-
} =
|
|
11611
|
+
} = gr(n), V = yr(n), {
|
|
11616
11612
|
applyCommands: E
|
|
11617
11613
|
} = V;
|
|
11618
11614
|
E(i);
|
|
11619
|
-
const D =
|
|
11615
|
+
const D = br(n), H = wr(n), {
|
|
11620
11616
|
applyColumnSorter: R,
|
|
11621
11617
|
columnContext: N,
|
|
11622
11618
|
updateColumnRenderContext: j
|
|
11623
11619
|
} = D;
|
|
11624
11620
|
R(_, H);
|
|
11625
|
-
const Q =
|
|
11621
|
+
const Q = Cr(n, N), P = xr(n, t, v, a), B = _r(n, t, a, P, y), Y = Sr(n), A = Tr(n, B, Y), $ = Fr(n, _, B, x, a, Y, A), z = kr(n, i, _, h, 0, $), {
|
|
11626
11622
|
getVisualData: K
|
|
11627
|
-
} = z, ie =
|
|
11628
|
-
sidebarWidth:
|
|
11629
|
-
} = Z, ve =
|
|
11623
|
+
} = z, ie = Mr(n, N), Z = Er(n, v), {
|
|
11624
|
+
sidebarWidth: me
|
|
11625
|
+
} = Z, ve = Ir(n, _, y, N, z, h, 0, me), {
|
|
11630
11626
|
onWheel: _e,
|
|
11631
11627
|
dataGridWidth: Be,
|
|
11632
11628
|
viewPortHeight: Le,
|
|
11633
11629
|
viewPortWidth: U,
|
|
11634
11630
|
resetScroll: ce,
|
|
11635
11631
|
updateVisibleRowsOnLatestVisibleScope: G
|
|
11636
|
-
} = ve,
|
|
11632
|
+
} = ve, oe = Or(n, N, u, U, Q), {
|
|
11637
11633
|
calculateColumnsSize: be
|
|
11638
|
-
} =
|
|
11634
|
+
} = oe, Fe = Dr(), De = Vr(u, m, _, Fe, ve), rt = Br(n, t, D, _, Q, C, ve), gt = q(() => ({
|
|
11639
11635
|
"fv-grid": !0,
|
|
11640
11636
|
"fv-grid-bordered": n.showBorder,
|
|
11641
11637
|
"fv-grid-horizontal-bordered": n.showHorizontalLines,
|
|
@@ -11650,15 +11646,15 @@ const qt = /* @__PURE__ */ Qe({
|
|
|
11650
11646
|
renderGridHeader: Se,
|
|
11651
11647
|
renderGridColumnResizeOverlay: Oe,
|
|
11652
11648
|
shouldShowHeader: Ge
|
|
11653
|
-
} =
|
|
11649
|
+
} = Pr(n, t, u, d, m, D, _, rt, De, g, Fe, oe, Q, v, Z, H, ve, U, y), {
|
|
11654
11650
|
renderDataGridSidebar: Re
|
|
11655
|
-
} =
|
|
11651
|
+
} = Nr(n, P, v, Z, ve), {
|
|
11656
11652
|
renderDisableMask: lt
|
|
11657
|
-
} =
|
|
11653
|
+
} = Rr(), {
|
|
11658
11654
|
renderHorizontalScrollbar: yt
|
|
11659
|
-
} =
|
|
11655
|
+
} = Lr(n, u, ve), {
|
|
11660
11656
|
renderVerticalScrollbar: xt
|
|
11661
|
-
} =
|
|
11657
|
+
} = $r(n, u, ve);
|
|
11662
11658
|
function pt() {
|
|
11663
11659
|
var he, xe, et;
|
|
11664
11660
|
if (u.value && u.value.clientHeight > 0 && ((he = u.value) == null ? void 0 : he.clientWidth) > 0) {
|
|
@@ -11667,7 +11663,7 @@ const qt = /* @__PURE__ */ Qe({
|
|
|
11667
11663
|
}
|
|
11668
11664
|
}
|
|
11669
11665
|
Ct(() => {
|
|
11670
|
-
u.value && (r.value = Math.max(Math.ceil(u.value.clientHeight / o), r.value), y.value = K(0, h.value + 0 - 1),
|
|
11666
|
+
u.value && (r.value = Math.max(Math.ceil(u.value.clientHeight / o), r.value), y.value = K(0, h.value + 0 - 1), Zn(u.value, pt), be(), Zt(() => {
|
|
11671
11667
|
u.value && (Be.value = u.value.clientWidth), c.value && (U.value = c.value.clientWidth, Le.value = c.value.clientHeight);
|
|
11672
11668
|
})), F.value && M();
|
|
11673
11669
|
}), dn(() => {
|
|
@@ -11696,7 +11692,7 @@ const qt = /* @__PURE__ */ Qe({
|
|
|
11696
11692
|
const he = bt(), xe = w.getNextSelectableHierarchyItemId(he);
|
|
11697
11693
|
_.removeHierarchyDataItem(he), y.value = K(0, h.value + 0 - 1), xe && v.selectItemById(xe);
|
|
11698
11694
|
}
|
|
11699
|
-
function
|
|
11695
|
+
function fe(he) {
|
|
11700
11696
|
B.onEditingRow(he);
|
|
11701
11697
|
}
|
|
11702
11698
|
function ge(he) {
|
|
@@ -11714,7 +11710,7 @@ const qt = /* @__PURE__ */ Qe({
|
|
|
11714
11710
|
function X(he) {
|
|
11715
11711
|
v.selectItemById(he);
|
|
11716
11712
|
}
|
|
11717
|
-
function
|
|
11713
|
+
function pe(he) {
|
|
11718
11714
|
const xe = y.value.find((et) => et.raw[a.idField.value] === he);
|
|
11719
11715
|
xe && P.clickRowItem(xe);
|
|
11720
11716
|
}
|
|
@@ -11730,9 +11726,9 @@ const qt = /* @__PURE__ */ Qe({
|
|
|
11730
11726
|
function ee() {
|
|
11731
11727
|
v.clearSelection();
|
|
11732
11728
|
}
|
|
11733
|
-
const
|
|
11734
|
-
renderEmpty:
|
|
11735
|
-
} =
|
|
11729
|
+
const ne = q(() => !y.value || !y.value.length), {
|
|
11730
|
+
renderEmpty: te
|
|
11731
|
+
} = jr(t);
|
|
11736
11732
|
function we() {
|
|
11737
11733
|
return v.getSelectionRow();
|
|
11738
11734
|
}
|
|
@@ -11787,7 +11783,7 @@ const qt = /* @__PURE__ */ Qe({
|
|
|
11787
11783
|
collapseTo: Dt,
|
|
11788
11784
|
expandTo: _t,
|
|
11789
11785
|
removeDataItem: re,
|
|
11790
|
-
editDataItem:
|
|
11786
|
+
editDataItem: fe,
|
|
11791
11787
|
acceptDataItem: ge,
|
|
11792
11788
|
cancelDataItem: Pe,
|
|
11793
11789
|
updateColumns: ze,
|
|
@@ -11797,7 +11793,7 @@ const qt = /* @__PURE__ */ Qe({
|
|
|
11797
11793
|
getSelectedItems: W,
|
|
11798
11794
|
clearSelection: ee,
|
|
11799
11795
|
getSelectionRow: we,
|
|
11800
|
-
clickRowItemById:
|
|
11796
|
+
clickRowItemById: pe,
|
|
11801
11797
|
unSelectItemByIds: ye,
|
|
11802
11798
|
getCurrentRowId: Ne,
|
|
11803
11799
|
reassignRowData: Te,
|
|
@@ -11813,7 +11809,7 @@ const qt = /* @__PURE__ */ Qe({
|
|
|
11813
11809
|
class: ft.value,
|
|
11814
11810
|
onMouseover: () => p.value = !0,
|
|
11815
11811
|
onMouseleave: () => p.value = !1
|
|
11816
|
-
}, [u.value && Re(y), u.value && J(), u.value &&
|
|
11812
|
+
}, [u.value && Re(y), u.value && J(), u.value && ne.value && te(), u.value && yt(), u.value && xt()]), Oe(), T.value && lt()]);
|
|
11817
11813
|
}
|
|
11818
11814
|
});
|
|
11819
11815
|
function dd(n, t, e, o, r = "data-grid-column") {
|
|
@@ -11921,7 +11917,7 @@ function dd(n, t, e, o, r = "data-grid-column") {
|
|
|
11921
11917
|
renderGridHeader: w
|
|
11922
11918
|
};
|
|
11923
11919
|
}
|
|
11924
|
-
class fd extends
|
|
11920
|
+
class fd extends lo {
|
|
11925
11921
|
constructor(t, e) {
|
|
11926
11922
|
super(t, e);
|
|
11927
11923
|
}
|
|
@@ -12395,11 +12391,11 @@ function gd(n, t, e, o, r, i, a, l) {
|
|
|
12395
12391
|
}
|
|
12396
12392
|
const yd = /* @__PURE__ */ Qe({
|
|
12397
12393
|
name: "FTreeGridDesign",
|
|
12398
|
-
props:
|
|
12394
|
+
props: po,
|
|
12399
12395
|
emits: [],
|
|
12400
12396
|
setup(n, t) {
|
|
12401
|
-
var
|
|
12402
|
-
const e = S(), o = 0, r = ((
|
|
12397
|
+
var oe, be;
|
|
12398
|
+
const e = S(), o = 0, r = ((oe = n.rowOption) == null ? void 0 : oe.height) || 28, i = S(20), a = S(n.columns), l = ed(n), s = S(), u = S(), c = S([]), d = S(!1), m = S(((be = n.rowOption) == null ? void 0 : be.wrapContent) || !1), y = Mt("designer-host-service"), p = Mt("design-item-context"), I = pd(p, y), C = io(e, p, I);
|
|
12403
12399
|
C.value.designerClass = "f-utils-fill-flex-column";
|
|
12404
12400
|
const g = Wc(), x = Hc(n), b = bs(n, /* @__PURE__ */ new Map(), g, x, l), F = nd(n, b, l, c, t), M = q(() => b.dataView.value.length), {
|
|
12405
12401
|
containerStyleObject: _
|
|
@@ -12423,9 +12419,9 @@ const yd = /* @__PURE__ */ Qe({
|
|
|
12423
12419
|
viewPortHeight: K,
|
|
12424
12420
|
viewPortWidth: ie,
|
|
12425
12421
|
updateVisibleRowsOnLatestVisibleScope: Z
|
|
12426
|
-
} = A,
|
|
12422
|
+
} = A, me = md(n, h, s, ie, E), {
|
|
12427
12423
|
calculateColumnsSize: ve
|
|
12428
|
-
} =
|
|
12424
|
+
} = me, _e = q(() => ({
|
|
12429
12425
|
"drag-container": !0,
|
|
12430
12426
|
"fv-grid": !0,
|
|
12431
12427
|
"fv-grid-bordered": n.showBorder,
|
|
@@ -12445,7 +12441,7 @@ const yd = /* @__PURE__ */ Qe({
|
|
|
12445
12441
|
Fe > i.value && (i.value = Fe, Z()), K.value = ((De = u.value) == null ? void 0 : De.clientHeight) || 0, z.value = ((rt = s.value) == null ? void 0 : rt.clientWidth) || 0, ve();
|
|
12446
12442
|
}
|
|
12447
12443
|
Ct(() => {
|
|
12448
|
-
e.value.componentInstance = C, s.value && (i.value = Math.max(Math.ceil(s.value.clientHeight / r), i.value), c.value = P(0, M.value + o - 1),
|
|
12444
|
+
e.value.componentInstance = C, s.value && (i.value = Math.max(Math.ceil(s.value.clientHeight / r), i.value), c.value = P(0, M.value + o - 1), Zn(s.value, ce), ve(), Zt(() => {
|
|
12449
12445
|
s.value && (z.value = s.value.clientWidth), u.value && (ie.value = u.value.clientWidth, K.value = u.value.clientHeight);
|
|
12450
12446
|
}));
|
|
12451
12447
|
});
|
|
@@ -12480,8 +12476,8 @@ qt.register = (n, t, e, o) => {
|
|
|
12480
12476
|
qt.registerDesigner = (n, t, e) => {
|
|
12481
12477
|
n["tree-grid"] = yd, t["tree-grid"] = rs;
|
|
12482
12478
|
};
|
|
12483
|
-
|
|
12484
|
-
function
|
|
12479
|
+
Xr(qt);
|
|
12480
|
+
function Xo(n) {
|
|
12485
12481
|
const { designerHostService: t } = n, e = /* @__PURE__ */ new Map(), o = S(), r = S(), i = S([
|
|
12486
12482
|
{ field: "name", title: "字段名称" },
|
|
12487
12483
|
{ field: "bindingField", title: "绑定字段" },
|
|
@@ -12566,7 +12562,7 @@ function Qo(n) {
|
|
|
12566
12562
|
function bd(n) {
|
|
12567
12563
|
const { designerHostService: t } = n, e = /* @__PURE__ */ new Map(), o = S(), r = S(), i = S([{ field: "name", title: "实体名称" }]), a = S(), l = S(!1);
|
|
12568
12564
|
function s(p) {
|
|
12569
|
-
const I =
|
|
12565
|
+
const I = Xo(n);
|
|
12570
12566
|
return I.resolveFieldDataSource(p), I.hasSelectableField.value ? (a.value = a.value || p, !0) : !1;
|
|
12571
12567
|
}
|
|
12572
12568
|
function u(p) {
|
|
@@ -12724,7 +12720,7 @@ const xd = "https://json-schema.org/draft/2020-12/schema", _d = "https://farris-
|
|
|
12724
12720
|
description: Od,
|
|
12725
12721
|
type: Dd,
|
|
12726
12722
|
categories: Vd
|
|
12727
|
-
},
|
|
12723
|
+
}, Qo = {
|
|
12728
12724
|
/** 步骤条方向 */
|
|
12729
12725
|
direction: { type: String, default: "horizontal" },
|
|
12730
12726
|
/** 是否平铺 */
|
|
@@ -12755,10 +12751,10 @@ const xd = "https://json-schema.org/draft/2020-12/schema", _d = "https://farris-
|
|
|
12755
12751
|
onClick: { type: Function, default: () => {
|
|
12756
12752
|
} }
|
|
12757
12753
|
};
|
|
12758
|
-
Ot(
|
|
12754
|
+
Ot(Qo, Ed, wd, Cd, Bd);
|
|
12759
12755
|
const Pd = /* @__PURE__ */ Qe({
|
|
12760
12756
|
name: "FStep",
|
|
12761
|
-
props:
|
|
12757
|
+
props: Qo,
|
|
12762
12758
|
emits: ["click"],
|
|
12763
12759
|
setup(n, t) {
|
|
12764
12760
|
const e = S(n.direction), o = S(n.fill), r = S(n.height), i = S(n.steps), a = S(n.clickable), l = S(0), s = S(n.activeIndex), u = q(() => ({
|
|
@@ -12873,7 +12869,7 @@ const Pd = /* @__PURE__ */ Qe({
|
|
|
12873
12869
|
entityTreeRowOption: s,
|
|
12874
12870
|
initialSelectedEntity: u,
|
|
12875
12871
|
isMainEntityInitialSelected: c
|
|
12876
|
-
} = e, d =
|
|
12872
|
+
} = e, d = Xo(n), {
|
|
12877
12873
|
fieldColumns: m,
|
|
12878
12874
|
resolveFieldDataSource: y,
|
|
12879
12875
|
fieldDataSource: p,
|
|
@@ -13481,11 +13477,11 @@ const jd = /* @__PURE__ */ Qe({
|
|
|
13481
13477
|
class: "farris-label-text"
|
|
13482
13478
|
}, [Ve(" 组件标题")])]), k("div", {
|
|
13483
13479
|
class: "farris-input-wrap"
|
|
13484
|
-
}, [
|
|
13480
|
+
}, [Jn(k("input", {
|
|
13485
13481
|
class: "form-control",
|
|
13486
13482
|
type: "input",
|
|
13487
13483
|
"onUpdate:modelValue": (p) => e.value = p
|
|
13488
|
-
}, null), [[
|
|
13484
|
+
}, null), [[sr, e.value]])])])])])])]), k("div", {
|
|
13489
13485
|
class: "f-section pl-4 f-utils-fill"
|
|
13490
13486
|
}, [k("div", {
|
|
13491
13487
|
class: "f-section-header"
|
|
@@ -13495,7 +13491,7 @@ const jd = /* @__PURE__ */ Qe({
|
|
|
13495
13491
|
class: "f-title-text"
|
|
13496
13492
|
}, [Ve(" 组件字段 ")])])]), k("div", {
|
|
13497
13493
|
class: "f-section-content border f-utils-fill"
|
|
13498
|
-
}, [k(
|
|
13494
|
+
}, [k(eo, {
|
|
13499
13495
|
key: 1,
|
|
13500
13496
|
ref: o,
|
|
13501
13497
|
fit: !0,
|
|
@@ -13528,7 +13524,7 @@ const jd = /* @__PURE__ */ Qe({
|
|
|
13528
13524
|
}, [Ve("确定")])])]);
|
|
13529
13525
|
}
|
|
13530
13526
|
});
|
|
13531
|
-
function
|
|
13527
|
+
function Un() {
|
|
13532
13528
|
function n() {
|
|
13533
13529
|
const e = (o) => {
|
|
13534
13530
|
const r = Math.random() * 16 | 0;
|
|
@@ -13612,7 +13608,7 @@ function qd(n, t) {
|
|
|
13612
13608
|
if (H && H.type === "Variable" && H.field === h.id) {
|
|
13613
13609
|
let R = w.find((N) => N.id === h.id);
|
|
13614
13610
|
R || (R = Object.assign({}, h, {
|
|
13615
|
-
newId:
|
|
13611
|
+
newId: Un().guid()
|
|
13616
13612
|
}), w.push(R), a.value.push(h.id)), E[D].field = R.newId;
|
|
13617
13613
|
}
|
|
13618
13614
|
});
|
|
@@ -13706,7 +13702,7 @@ function qd(n, t) {
|
|
|
13706
13702
|
return;
|
|
13707
13703
|
const {
|
|
13708
13704
|
formSchemaUtils: w
|
|
13709
|
-
} = t, T =
|
|
13705
|
+
} = t, T = Un().guid(), h = Object.assign({}, v, {
|
|
13710
13706
|
id: T,
|
|
13711
13707
|
code: v.code + T.slice(0, 4),
|
|
13712
13708
|
name: v.name + T.slice(0, 4)
|
|
@@ -13779,7 +13775,7 @@ function qd(n, t) {
|
|
|
13779
13775
|
o.value = v.componentTitle, s(w);
|
|
13780
13776
|
const T = y();
|
|
13781
13777
|
p(), I(), g(T), b(), (h = e == null ? void 0 : e.modalRef) != null && h.value.close && ((O = e == null ? void 0 : e.modalRef) == null || O.value.close()), Xt.value++, Zt(() => {
|
|
13782
|
-
|
|
13778
|
+
ao();
|
|
13783
13779
|
});
|
|
13784
13780
|
}
|
|
13785
13781
|
function M() {
|
|
@@ -13899,7 +13895,7 @@ const zd = /* @__PURE__ */ Qe({
|
|
|
13899
13895
|
props: pn,
|
|
13900
13896
|
emits: ["init", "afterViewInit"],
|
|
13901
13897
|
setup(n, t) {
|
|
13902
|
-
const e = S(), o = Mt("designer-host-service"), r = Mt("design-item-context"), i = Gd(r, o), a =
|
|
13898
|
+
const e = S(), o = Mt("designer-host-service"), r = Mt("design-item-context"), i = Gd(r, o), a = io(e, r, i), l = q(() => nn({
|
|
13903
13899
|
"drag-container": !0
|
|
13904
13900
|
}, n == null ? void 0 : n.customClass));
|
|
13905
13901
|
return Ct(() => {
|
|
@@ -13942,15 +13938,15 @@ const zd = /* @__PURE__ */ Qe({
|
|
|
13942
13938
|
}, tf = {
|
|
13943
13939
|
id: { type: String },
|
|
13944
13940
|
component: { type: String, default: "" }
|
|
13945
|
-
}, nf = Ot(tf, ef,
|
|
13941
|
+
}, nf = Ot(tf, ef, oo, ro), $p = {
|
|
13946
13942
|
install(n) {
|
|
13947
13943
|
n.component(hn.name, hn);
|
|
13948
13944
|
},
|
|
13949
13945
|
register(n, t, e, o) {
|
|
13950
|
-
n.component = hn, t.component =
|
|
13946
|
+
n.component = hn, t.component = $n;
|
|
13951
13947
|
},
|
|
13952
13948
|
registerDesigner(n, t) {
|
|
13953
|
-
n.component = zd, t.component =
|
|
13949
|
+
n.component = zd, t.component = $n, t["component-ref"] = nf;
|
|
13954
13950
|
}
|
|
13955
13951
|
};
|
|
13956
13952
|
export {
|
|
@@ -13959,5 +13955,5 @@ export {
|
|
|
13959
13955
|
Lp as componentDesignProps,
|
|
13960
13956
|
pn as componentProps,
|
|
13961
13957
|
$p as default,
|
|
13962
|
-
|
|
13958
|
+
$n as propsResolver
|
|
13963
13959
|
};
|