@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,27 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var B = (t, n, e) =>
|
|
4
|
-
import { ref as F, createVNode as M, createTextVNode as Ze, computed as N, defineComponent as ze, Fragment as Ot, watch as Fe, onMounted as gt, reactive as Ct, createApp as _n, onUnmounted as en, Transition as
|
|
5
|
-
import { isPlainObject as Dn, cloneDeep as We, isUndefined as dt, throttle as
|
|
6
|
-
import { useConditionValue as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { DgControl as Nn, useDesignerComponent as
|
|
11
|
-
import { useGuid as
|
|
12
|
-
import { useResizeObserver as
|
|
13
|
-
import { useIdentify as
|
|
1
|
+
var nr = Object.defineProperty;
|
|
2
|
+
var or = (t, n, e) => n in t ? nr(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
|
|
3
|
+
var B = (t, n, e) => or(t, typeof n != "symbol" ? n + "" : n, e);
|
|
4
|
+
import { ref as F, createVNode as M, createTextVNode as Ze, computed as N, defineComponent as ze, Fragment as Ot, watch as Fe, onMounted as gt, reactive as Ct, createApp as _n, onUnmounted as en, Transition as Un, mergeProps as It, onBeforeUnmount as Sn, withDirectives as Xn, resolveDirective as rr, nextTick as Ht, onBeforeMount as ir, Teleport as Qn, shallowRef as ar, render as fn, h as lr, cloneVNode as sr, inject as xt, provide as ur, triggerRef as cr, isVNode as dr, vShow as fr } from "vue";
|
|
5
|
+
import { isPlainObject as Dn, cloneDeep as We, isUndefined as dt, throttle as pr } from "lodash-es";
|
|
6
|
+
import { useConditionValue as mr, FConditionFields as hr } from "../condition/index.esm.js";
|
|
7
|
+
import vr, { useCondition as gr } from "../query-solution/index.esm.js";
|
|
8
|
+
import yr, { FDrawer as br } from "../drawer/index.esm.js";
|
|
9
|
+
import wr, { FDynamicFormGroup as Kn, FDynamicFormInput as Cr } from "../dynamic-form/index.esm.js";
|
|
10
|
+
import { DgControl as Nn, useDesignerComponent as xr } from "../designer-canvas/index.esm.js";
|
|
11
|
+
import { useGuid as _r, resolveField as at, FormSchemaEntityFieldTypeName as Rn, useCommonUtils as Sr, useDateFormat as Fr, useNumberFormat as Tr, setFieldValue as gn, getCustomClass as pn, withInstall as kr, FormSchemaEntityField$Type as Ln, FormSchemaEntityFieldType$Type as Mr } from "../common/index.esm.js";
|
|
12
|
+
import { useResizeObserver as Jn } from "@vueuse/core";
|
|
13
|
+
import { useIdentify as Er, useGroupData as Ir, useFilter as Or, useHierarchy as Pr, useLoading as Br, useDataView as Vr, useSelection as Dr, useSelectHierarchyItem as Nr, useDataViewContainerStyle as Rr, useCommandColumn as Lr, useColumn as $r, useSort as Wr, useGroupColumn as Hr, useRow as jr, useEdit as Ar, useVisualDataBound as qr, useVisualDataCell as Gr, useVisualDataRow as zr, useVisualData as Yr, useCellPosition as Ur, useSidebar as Xr, useVirtualScroll as Qr, useFitColumn as Kr, useFilterHistory as Jr, useColumnFilter as Zr, useDragColumn as ei, getColumnHeader as ti, getSidebar as ni, getDisableMask as oi, getHorizontalScrollbar as ri, getVerticalScrollbar as ii, getEmpty as ai } from "../data-view/index.esm.js";
|
|
14
14
|
import "../modal/index.esm.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { FCheckbox as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
15
|
+
import Zn from "../transfer/index.esm.js";
|
|
16
|
+
import li from "../tabs/index.esm.js";
|
|
17
|
+
import si from "../order/index.esm.js";
|
|
18
|
+
import { FCheckbox as ui } from "../checkbox/index.esm.js";
|
|
19
|
+
import ci from "../filter-bar/index.esm.js";
|
|
20
|
+
import di from "../tooltip/index.esm.js";
|
|
21
21
|
import fi from "../pagination/index.esm.js";
|
|
22
22
|
import pi from "../button/index.esm.js";
|
|
23
23
|
import mi from "../search-box/index.esm.js";
|
|
24
|
-
import
|
|
24
|
+
import eo from "../tags/index.esm.js";
|
|
25
25
|
import { createPropsResolver as hi } from "../dynamic-resolver/index.esm.js";
|
|
26
26
|
import { FPropertyPanel as vi } from "../property-panel/index.esm.js";
|
|
27
27
|
import gi from "../accordion/index.esm.js";
|
|
@@ -30,8 +30,8 @@ import bi from "../../designer/button-edit/index.esm.js";
|
|
|
30
30
|
import wi from "../button-group/index.esm.js";
|
|
31
31
|
import Ci from "../calendar/index.esm.js";
|
|
32
32
|
import xi from "../capsule/index.esm.js";
|
|
33
|
-
import
|
|
34
|
-
import
|
|
33
|
+
import $n from "../../designer/checkbox/index.esm.js";
|
|
34
|
+
import Wn from "../../designer/checkbox-group/index.esm.js";
|
|
35
35
|
import yn from "../combo-list/index.esm.js";
|
|
36
36
|
import _i from "../combo-tree/index.esm.js";
|
|
37
37
|
import Si from "../component/index.esm.js";
|
|
@@ -88,7 +88,7 @@ import xa from "../html-template/index.esm.js";
|
|
|
88
88
|
import "../external-container/index.esm.js";
|
|
89
89
|
import "../notify/index.esm.js";
|
|
90
90
|
import _a from "../popover/index.esm.js";
|
|
91
|
-
const
|
|
91
|
+
const to = {}, no = {};
|
|
92
92
|
function Fn(t) {
|
|
93
93
|
const { properties: n, title: e, ignore: o } = t, r = o && Array.isArray(o), i = Object.keys(n).reduce((a, l) => ((!r || !o.find((s) => s === l)) && (a[l] = n[l].type === "object" && n[l].properties ? Fn(n[l]) : We(n[l].default)), a), {});
|
|
94
94
|
if (e && (!r || !o.find((a) => a === "id"))) {
|
|
@@ -111,12 +111,12 @@ function Sa(t) {
|
|
|
111
111
|
type: e
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
const o =
|
|
114
|
+
function oo(t, n = {}, e) {
|
|
115
|
+
const o = to[t];
|
|
116
116
|
if (o) {
|
|
117
117
|
let r = Sa(o);
|
|
118
|
-
const i =
|
|
119
|
-
return r = i ? i({ getSchemaByType:
|
|
118
|
+
const i = no[t];
|
|
119
|
+
return r = i ? i({ getSchemaByType: oo }, r, n, e) : r, r;
|
|
120
120
|
}
|
|
121
121
|
return null;
|
|
122
122
|
}
|
|
@@ -124,7 +124,7 @@ function Fa(t, n) {
|
|
|
124
124
|
const e = Fn(n);
|
|
125
125
|
return Object.keys(e).reduce((o, r) => (Object.prototype.hasOwnProperty.call(t, r) && (o[r] && Dn(o[r]) && Dn(t[r] || !t[r]) ? Object.assign(o[r], t[r] || {}) : o[r] = t[r]), o), e), e;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function ro(t, n) {
|
|
128
128
|
return Object.keys(t).filter((o) => t[o] != null).reduce((o, r) => {
|
|
129
129
|
if (n.has(r)) {
|
|
130
130
|
const i = n.get(r);
|
|
@@ -141,7 +141,7 @@ function io(t, n) {
|
|
|
141
141
|
}
|
|
142
142
|
function Ta(t, n, e = /* @__PURE__ */ new Map()) {
|
|
143
143
|
const o = Fa(t, n);
|
|
144
|
-
return
|
|
144
|
+
return ro(o, e);
|
|
145
145
|
}
|
|
146
146
|
function ka(t = {}) {
|
|
147
147
|
function n(f, d, u, p) {
|
|
@@ -245,9 +245,9 @@ const de = {
|
|
|
245
245
|
}, Ma = {}, Ea = {};
|
|
246
246
|
ka();
|
|
247
247
|
function _t(t, n, e = /* @__PURE__ */ new Map(), o = (a, l, s, f) => l, r = {}, i = (a) => a) {
|
|
248
|
-
return
|
|
248
|
+
return to[n.title] = n, no[n.title] = o, Ma[n.title] = r, Ea[n.title] = i, (a = {}, l = !0) => {
|
|
249
249
|
if (!l)
|
|
250
|
-
return
|
|
250
|
+
return ro(a, e);
|
|
251
251
|
const s = Ta(a, n, e), f = Object.keys(t).reduce((d, u) => (d[u] = t[u].default, d), {});
|
|
252
252
|
return Object.assign(f, s);
|
|
253
253
|
};
|
|
@@ -360,11 +360,11 @@ const Da = "https://json-schema.org/draft/2020-12/schema", Na = "https://farris-
|
|
|
360
360
|
resetText: { type: String, default: "清空" },
|
|
361
361
|
/** 是否显示重置 */
|
|
362
362
|
showReset: { type: Boolean, default: !1 }
|
|
363
|
-
},
|
|
364
|
-
function
|
|
363
|
+
}, io = _t(Tn, ja, Ba, Va);
|
|
364
|
+
function ao(t, n) {
|
|
365
365
|
const e = F([]), o = F([]), r = F([]), i = F("");
|
|
366
366
|
F(!1), F(t.mode);
|
|
367
|
-
const a = /* @__PURE__ */ new Map(), { createConditionValue: l } =
|
|
367
|
+
const a = /* @__PURE__ */ new Map(), { createConditionValue: l } = mr(), s = gr(t, n), { getFilterConditions: f } = s;
|
|
368
368
|
function d(w) {
|
|
369
369
|
return !w.value.isEmpty() && !!w.value.getDisplayText();
|
|
370
370
|
}
|
|
@@ -452,7 +452,7 @@ function qa(t, n, e, o, r) {
|
|
|
452
452
|
n.emit("conditionChange", p);
|
|
453
453
|
}
|
|
454
454
|
function u() {
|
|
455
|
-
return M("div", null, [M(
|
|
455
|
+
return M("div", null, [M(hr, {
|
|
456
456
|
fields: i.value,
|
|
457
457
|
conditions: l.value
|
|
458
458
|
}, null), M("div", null, [M("button", {
|
|
@@ -463,7 +463,7 @@ function qa(t, n, e, o, r) {
|
|
|
463
463
|
onClick: d
|
|
464
464
|
}, [Ze("确定")])])]);
|
|
465
465
|
}
|
|
466
|
-
return () => M(
|
|
466
|
+
return () => M(br, {
|
|
467
467
|
modelValue: e.value,
|
|
468
468
|
"onUpdate:modelValue": (p) => e.value = p,
|
|
469
469
|
showClose: !1,
|
|
@@ -474,7 +474,7 @@ function qa(t, n, e, o, r) {
|
|
|
474
474
|
content: u
|
|
475
475
|
});
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function lo(t, n, e) {
|
|
478
478
|
const o = F([]), r = F("更多"), i = F(t.resetText), a = F(t.showReset), l = F(!1), {
|
|
479
479
|
clearAll: s,
|
|
480
480
|
reset: f,
|
|
@@ -534,7 +534,7 @@ const Ga = {
|
|
|
534
534
|
d.value.begin = c, i(d, c);
|
|
535
535
|
}, f.endValue = d.value.end, f.onEndValueChange = (c) => {
|
|
536
536
|
d.value.end = c, i(d, c);
|
|
537
|
-
}), M(
|
|
537
|
+
}), M(Kn, {
|
|
538
538
|
label: "",
|
|
539
539
|
editor: f,
|
|
540
540
|
required: f == null ? void 0 : f.required,
|
|
@@ -585,7 +585,7 @@ const Ga = {
|
|
|
585
585
|
filterItem: { type: Object, default: null },
|
|
586
586
|
useFilterItemsComposition: { type: Object, default: null },
|
|
587
587
|
disabled: { type: Boolean, default: !1 }
|
|
588
|
-
},
|
|
588
|
+
}, so = /* @__PURE__ */ ze({
|
|
589
589
|
name: "FFilterBarItem",
|
|
590
590
|
props: Ya,
|
|
591
591
|
emits: ["confirm"],
|
|
@@ -705,7 +705,7 @@ const Gt = /* @__PURE__ */ ze({
|
|
|
705
705
|
props: Tn,
|
|
706
706
|
emits: ["clear", "remove", "reset", "conditionChange", "change"],
|
|
707
707
|
setup(t, n) {
|
|
708
|
-
const e = F(!0), o = F(!1), r = F(!1), i = F(!1), a = F(null), l = F(null), s =
|
|
708
|
+
const e = F(!0), o = F(!1), r = F(!1), i = F(!1), a = F(null), l = F(null), s = ao(t, n), f = Ua(l, a, i), {
|
|
709
709
|
cancelWidthObserver: d,
|
|
710
710
|
setupWidthObserver: u
|
|
711
711
|
} = f, {
|
|
@@ -732,7 +732,7 @@ const Gt = /* @__PURE__ */ ze({
|
|
|
732
732
|
"f-icon-arrow-chevron-down": !o.value
|
|
733
733
|
})), w = N(() => m.value.length > 0);
|
|
734
734
|
N(() => r.value && !o.value && i.value);
|
|
735
|
-
const _ =
|
|
735
|
+
const _ = lo(t, n, s);
|
|
736
736
|
function S(k) {
|
|
737
737
|
n.emit("change", k);
|
|
738
738
|
const E = C();
|
|
@@ -742,7 +742,7 @@ const Gt = /* @__PURE__ */ ze({
|
|
|
742
742
|
return M("div", {
|
|
743
743
|
class: x.value,
|
|
744
744
|
ref: a
|
|
745
|
-
}, [m.value.map((k, E) => !k.editor.isExtend && M(
|
|
745
|
+
}, [m.value.map((k, E) => !k.editor.isExtend && M(so, {
|
|
746
746
|
filterItem: k,
|
|
747
747
|
useFilterItemsComposition: s,
|
|
748
748
|
onConfirm: S
|
|
@@ -812,7 +812,7 @@ function Za(t) {
|
|
|
812
812
|
return o;
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function uo(t) {
|
|
816
816
|
if (!t)
|
|
817
817
|
return;
|
|
818
818
|
const n = t.getBoundingClientRect();
|
|
@@ -833,7 +833,7 @@ function el(t) {
|
|
|
833
833
|
if (!t)
|
|
834
834
|
return;
|
|
835
835
|
let n;
|
|
836
|
-
t.className.includes("dgComponentSelected") ? n = t : n = t.querySelector(".dgComponentSelected"), n &&
|
|
836
|
+
t.className.includes("dgComponentSelected") ? n = t : n = t.querySelector(".dgComponentSelected"), n && uo(n);
|
|
837
837
|
}
|
|
838
838
|
function tl(t) {
|
|
839
839
|
const { formSchemaUtils: n, formStateMachineUtils: e } = t;
|
|
@@ -862,7 +862,7 @@ function tl(t) {
|
|
|
862
862
|
}
|
|
863
863
|
return { getVariables: i, getControlName: a, getStateMachines: l };
|
|
864
864
|
}
|
|
865
|
-
class
|
|
865
|
+
class co {
|
|
866
866
|
constructor(n) {
|
|
867
867
|
B(this, "sessionVariables", [
|
|
868
868
|
{
|
|
@@ -1124,7 +1124,7 @@ class fo {
|
|
|
1124
1124
|
};
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
|
-
class
|
|
1127
|
+
class fo {
|
|
1128
1128
|
constructor(n, e) {
|
|
1129
1129
|
B(this, "componentId");
|
|
1130
1130
|
B(this, "viewModelId");
|
|
@@ -1373,7 +1373,7 @@ class po {
|
|
|
1373
1373
|
!s || !s.rules || (s.rules = s.rules.filter((f) => f.type !== i));
|
|
1374
1374
|
}
|
|
1375
1375
|
getExpressionOptions(n, e, o) {
|
|
1376
|
-
return new
|
|
1376
|
+
return new co(this.formSchemaUtils).getExpressionOptions(n, e, o);
|
|
1377
1377
|
}
|
|
1378
1378
|
getRealTargetType(n) {
|
|
1379
1379
|
return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item"].indexOf(n.type) > -1 ? "Button" : n.binding && n.binding.field ? "Field" : "Container";
|
|
@@ -1629,7 +1629,7 @@ var rl = { exports: {} };
|
|
|
1629
1629
|
V === 1 && Array.isArray(b) === !1 && (O = b, b = []);
|
|
1630
1630
|
var I, P, G, j, L, H, Q, R, D, X = null, A, W, z = !1, K = 0, ie, Z = O || {};
|
|
1631
1631
|
Z.moves === void 0 && (Z.moves = x), Z.accepts === void 0 && (Z.accepts = x), Z.invalid === void 0 && (Z.invalid = yt), Z.containers === void 0 && (Z.containers = b || []), Z.isContainer === void 0 && (Z.isContainer = h), 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 = f.body);
|
|
1632
|
-
var
|
|
1632
|
+
var me = a({
|
|
1633
1633
|
containers: Z.containers,
|
|
1634
1634
|
start: Pe,
|
|
1635
1635
|
end: ft,
|
|
@@ -1639,9 +1639,9 @@ var rl = { exports: {} };
|
|
|
1639
1639
|
canMove: ke,
|
|
1640
1640
|
dragging: !1
|
|
1641
1641
|
});
|
|
1642
|
-
return Z.removeOnSpill === !0 &&
|
|
1642
|
+
return Z.removeOnSpill === !0 && me.on("over", Ft).on("out", wt), _e(), me;
|
|
1643
1643
|
function ve($) {
|
|
1644
|
-
return
|
|
1644
|
+
return me.containers.indexOf($) !== -1 || Z.isContainer($);
|
|
1645
1645
|
}
|
|
1646
1646
|
function _e($) {
|
|
1647
1647
|
var ee = $ ? "remove" : "add";
|
|
@@ -1649,7 +1649,7 @@ var rl = { exports: {} };
|
|
|
1649
1649
|
}
|
|
1650
1650
|
function Be($) {
|
|
1651
1651
|
var ee = $ ? "remove" : "add";
|
|
1652
|
-
c(d, ee, "mousemove",
|
|
1652
|
+
c(d, ee, "mousemove", oe);
|
|
1653
1653
|
}
|
|
1654
1654
|
function Re($) {
|
|
1655
1655
|
var ee = $ ? "remove" : "add";
|
|
@@ -1665,11 +1665,11 @@ var rl = { exports: {} };
|
|
|
1665
1665
|
j = $.clientX, L = $.clientY;
|
|
1666
1666
|
var ee = C($) !== 1 || $.metaKey || $.ctrlKey;
|
|
1667
1667
|
if (!ee) {
|
|
1668
|
-
var
|
|
1669
|
-
|
|
1668
|
+
var ne = $.target, te = be(ne);
|
|
1669
|
+
te && (A = te, Be(), $.type === "mousedown" && (S(ne) ? ne.focus() : $.preventDefault()));
|
|
1670
1670
|
}
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function oe($) {
|
|
1673
1673
|
if (A) {
|
|
1674
1674
|
if (C($) === 0) {
|
|
1675
1675
|
Se({});
|
|
@@ -1677,8 +1677,8 @@ var rl = { exports: {} };
|
|
|
1677
1677
|
}
|
|
1678
1678
|
if (!($.clientX !== void 0 && Math.abs($.clientX - j) <= (Z.slideFactorX || 0) && $.clientY !== void 0 && Math.abs($.clientY - L) <= (Z.slideFactorY || 0))) {
|
|
1679
1679
|
if (Z.ignoreInputTextSelection) {
|
|
1680
|
-
var ee = E("clientX", $) || 0,
|
|
1681
|
-
if (S(
|
|
1680
|
+
var ee = E("clientX", $) || 0, ne = E("clientY", $) || 0, te = f.elementFromPoint(ee, ne);
|
|
1681
|
+
if (S(te))
|
|
1682
1682
|
return;
|
|
1683
1683
|
}
|
|
1684
1684
|
var we = A;
|
|
@@ -1687,17 +1687,17 @@ var rl = { exports: {} };
|
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
function be($) {
|
|
1690
|
-
if (!(
|
|
1690
|
+
if (!(me.dragging && I) && !ve($)) {
|
|
1691
1691
|
for (var ee = $; _($) && ve(_($)) === !1; )
|
|
1692
1692
|
if (Z.invalid($, ee) || ($ = _($), !$))
|
|
1693
1693
|
return;
|
|
1694
|
-
var
|
|
1695
|
-
if (
|
|
1696
|
-
var
|
|
1697
|
-
if (
|
|
1694
|
+
var ne = _($);
|
|
1695
|
+
if (ne && !Z.invalid($, ee)) {
|
|
1696
|
+
var te = Z.moves($, ne, ee, T($));
|
|
1697
|
+
if (te)
|
|
1698
1698
|
return {
|
|
1699
1699
|
item: $,
|
|
1700
|
-
source:
|
|
1700
|
+
source: ne
|
|
1701
1701
|
};
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
@@ -1710,13 +1710,13 @@ var rl = { exports: {} };
|
|
|
1710
1710
|
ee && it(ee);
|
|
1711
1711
|
}
|
|
1712
1712
|
function it($) {
|
|
1713
|
-
Ee($.item, $.source) && (R = $.item.cloneNode(!0),
|
|
1713
|
+
Ee($.item, $.source) && (R = $.item.cloneNode(!0), me.emit("cloned", R, $.item, "copy")), P = $.source, G = $.item, H = Q = T($.item), me.dragging = !0, me.emit("drag", G, P);
|
|
1714
1714
|
}
|
|
1715
1715
|
function yt() {
|
|
1716
1716
|
return !1;
|
|
1717
1717
|
}
|
|
1718
1718
|
function ft() {
|
|
1719
|
-
if (
|
|
1719
|
+
if (me.dragging) {
|
|
1720
1720
|
var $ = R || G;
|
|
1721
1721
|
Oe($, _($));
|
|
1722
1722
|
}
|
|
@@ -1725,72 +1725,72 @@ var rl = { exports: {} };
|
|
|
1725
1725
|
A = !1, Be(!0), Re(!0);
|
|
1726
1726
|
}
|
|
1727
1727
|
function Se($) {
|
|
1728
|
-
if (J(), !!
|
|
1729
|
-
var ee = R || G,
|
|
1728
|
+
if (J(), !!me.dragging) {
|
|
1729
|
+
var ee = R || G, ne = E("clientX", $) || 0, te = E("clientY", $) || 0, we = g(I, ne, te), ye = St(we, ne, te);
|
|
1730
1730
|
ye && (R && Z.copySortSource || !R || ye !== P) ? Oe(ee, ye) : Z.removeOnSpill ? Ge() : Ne();
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
1733
|
function Oe($, ee) {
|
|
1734
|
-
var
|
|
1735
|
-
R && Z.copySortSource && ee === P &&
|
|
1734
|
+
var ne = _($);
|
|
1735
|
+
R && Z.copySortSource && ee === P && ne.removeChild(G), bt(ee) ? me.emit("cancel", $, P) : me.emit("drop", $, ee, P, Q), st();
|
|
1736
1736
|
}
|
|
1737
1737
|
function Ge() {
|
|
1738
|
-
if (
|
|
1738
|
+
if (me.dragging) {
|
|
1739
1739
|
var $ = R || G, ee = _($);
|
|
1740
|
-
ee && ee.removeChild($),
|
|
1740
|
+
ee && ee.removeChild($), me.emit(R ? "cancel" : "remove", $, ee, P), st();
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
function Ne($) {
|
|
1744
|
-
if (
|
|
1745
|
-
var ee = arguments.length > 0 ? $ : Z.revertOnSpill,
|
|
1746
|
-
we === !1 && ee && (R ?
|
|
1744
|
+
if (me.dragging) {
|
|
1745
|
+
var ee = arguments.length > 0 ? $ : Z.revertOnSpill, ne = R || G, te = _(ne), we = bt(te);
|
|
1746
|
+
we === !1 && ee && (R ? te && te.removeChild(R) : P.insertBefore(ne, H)), we || ee ? me.emit("cancel", ne, P, P) : me.emit("drop", ne, te, P, Q), st();
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
1749
|
function st() {
|
|
1750
1750
|
var $ = R || G;
|
|
1751
|
-
J(), re(),
|
|
1751
|
+
J(), re(), fe(), $ && s.rm($, "gu-transit"), D && clearTimeout(D), me.dragging = !1, X && me.emit("out", $, X, P), me.emit("dragend", $, K), P = G = R = H = Q = D = X = null;
|
|
1752
1752
|
}
|
|
1753
1753
|
function bt($, ee) {
|
|
1754
|
-
var
|
|
1755
|
-
return ee !== void 0 ?
|
|
1754
|
+
var ne;
|
|
1755
|
+
return ee !== void 0 ? ne = ee : I ? ne = Q : ne = T(R || G), $ === P && ne === H;
|
|
1756
1756
|
}
|
|
1757
|
-
function St($, ee,
|
|
1758
|
-
for (var
|
|
1759
|
-
|
|
1760
|
-
return
|
|
1757
|
+
function St($, ee, ne) {
|
|
1758
|
+
for (var te = $; te && !we(); )
|
|
1759
|
+
te = _(te);
|
|
1760
|
+
return te;
|
|
1761
1761
|
function we() {
|
|
1762
|
-
var ye = ve(
|
|
1762
|
+
var ye = ve(te);
|
|
1763
1763
|
if (ye === !1)
|
|
1764
1764
|
return !1;
|
|
1765
|
-
var De = ge(
|
|
1766
|
-
return Le ? !0 : Z.accepts(G,
|
|
1765
|
+
var De = ge(te, $), Te = Ce(te, De, ee, ne), Le = bt(te, Te);
|
|
1766
|
+
return Le ? !0 : Z.accepts(G, te, P, Te);
|
|
1767
1767
|
}
|
|
1768
1768
|
}
|
|
1769
1769
|
function pt($) {
|
|
1770
1770
|
if (!I)
|
|
1771
1771
|
return;
|
|
1772
1772
|
$.preventDefault();
|
|
1773
|
-
var ee = E("clientX", $) || 0,
|
|
1774
|
-
I.style.left = ee - 2 + "px", I.style.top =
|
|
1775
|
-
var
|
|
1776
|
-
(De || ye === null) && (he(), X = ye, ut()),
|
|
1777
|
-
var Te = _(
|
|
1773
|
+
var ee = E("clientX", $) || 0, ne = E("clientY", $) || 0;
|
|
1774
|
+
I.style.left = ee - 2 + "px", I.style.top = ne - 2 + "px";
|
|
1775
|
+
var te = R || G, we = g(I, ee, ne), ye = St(we, ee, ne), De = ye !== null && ye !== X;
|
|
1776
|
+
(De || ye === null) && (he(), X = ye, ut()), pe(we, ne);
|
|
1777
|
+
var Te = _(te);
|
|
1778
1778
|
if (ye === P && R && !Z.copySortSource) {
|
|
1779
|
-
Te && Te.removeChild(
|
|
1779
|
+
Te && Te.removeChild(te);
|
|
1780
1780
|
return;
|
|
1781
1781
|
}
|
|
1782
1782
|
var Le, lt = ge(ye, we);
|
|
1783
1783
|
if (z = Ve(lt, ye), lt !== null)
|
|
1784
|
-
Le = Ce(ye, lt, ee,
|
|
1784
|
+
Le = Ce(ye, lt, ee, ne);
|
|
1785
1785
|
else if (Z.revertOnSpill === !0 && !R)
|
|
1786
1786
|
Le = H, ye = P;
|
|
1787
1787
|
else {
|
|
1788
|
-
R && Te && Te.removeChild(
|
|
1788
|
+
R && Te && Te.removeChild(te), R && W && (W.style.display = "none");
|
|
1789
1789
|
return;
|
|
1790
1790
|
}
|
|
1791
|
-
W.style.display = "block", Bt(Le,
|
|
1791
|
+
W.style.display = "block", Bt(Le, te, De), Le ? et(lt, Le) : U(ye);
|
|
1792
1792
|
function Qe(xe) {
|
|
1793
|
-
|
|
1793
|
+
me.emit(xe, te, X, P);
|
|
1794
1794
|
}
|
|
1795
1795
|
function ut() {
|
|
1796
1796
|
De && Qe("over");
|
|
@@ -1799,17 +1799,17 @@ var rl = { exports: {} };
|
|
|
1799
1799
|
X && Qe("out");
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
|
-
function Bt($, ee,
|
|
1803
|
-
($ === ee || $ === T(ee)) && (Q = T(ee)), ($ === null &&
|
|
1802
|
+
function Bt($, ee, ne) {
|
|
1803
|
+
($ === ee || $ === T(ee)) && (Q = T(ee)), ($ === null && ne || $ !== ee && $ !== T(ee)) && (Q = $);
|
|
1804
1804
|
}
|
|
1805
1805
|
function Ft($) {
|
|
1806
1806
|
s.rm($, "gu-hide");
|
|
1807
1807
|
}
|
|
1808
1808
|
function wt($) {
|
|
1809
|
-
|
|
1809
|
+
me.dragging && s.add($, "gu-hide");
|
|
1810
1810
|
}
|
|
1811
1811
|
function Vt() {
|
|
1812
|
-
I || (I = document.createElement("div"), I.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;", I.innerHTML = Z.getMirrorText && Z.getMirrorText(G) || "控件", s.add(I, "gu-mirror"), Z.mirrorContainer.appendChild(I), c(d, "add", "mousemove", pt), s.add(Z.mirrorContainer, "gu-unselectable"),
|
|
1812
|
+
I || (I = document.createElement("div"), I.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;", I.innerHTML = Z.getMirrorText && Z.getMirrorText(G) || "控件", s.add(I, "gu-mirror"), Z.mirrorContainer.appendChild(I), c(d, "add", "mousemove", pt), s.add(Z.mirrorContainer, "gu-unselectable"), me.emit("cloned", I, G, "mirror"));
|
|
1813
1813
|
}
|
|
1814
1814
|
function Tt() {
|
|
1815
1815
|
if (W = document.createElement("div"), s.add(W, "gu-insertion"), G) {
|
|
@@ -1821,21 +1821,21 @@ var rl = { exports: {} };
|
|
|
1821
1821
|
function re() {
|
|
1822
1822
|
I && (s.rm(Z.mirrorContainer, "gu-unselectable"), c(d, "remove", "mousemove", pt), _(I).removeChild(I), I = null);
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1824
|
+
function fe() {
|
|
1825
1825
|
W && (_(W).removeChild(W), W = null);
|
|
1826
1826
|
}
|
|
1827
1827
|
function ge($, ee) {
|
|
1828
|
-
for (var
|
|
1829
|
-
|
|
1830
|
-
return
|
|
1828
|
+
for (var ne = ee; ne !== $ && _(ne) !== $; )
|
|
1829
|
+
ne = _(ne);
|
|
1830
|
+
return ne === d ? null : ne;
|
|
1831
1831
|
}
|
|
1832
1832
|
function Ve($, ee) {
|
|
1833
1833
|
if (!ee)
|
|
1834
1834
|
return z;
|
|
1835
|
-
var
|
|
1836
|
-
if (!
|
|
1835
|
+
var ne = $ || ee && ee.lastElementChild;
|
|
1836
|
+
if (!ne)
|
|
1837
1837
|
return !0;
|
|
1838
|
-
var
|
|
1838
|
+
var te = getComputedStyle($), we = /^inline/.test(te.getPropertyValue("display")) || /^(left|right)$/.test(te.getPropertyValue("float"));
|
|
1839
1839
|
if (we)
|
|
1840
1840
|
return !0;
|
|
1841
1841
|
if (ee) {
|
|
@@ -1853,10 +1853,10 @@ var rl = { exports: {} };
|
|
|
1853
1853
|
if (!$.children || !$.children.length)
|
|
1854
1854
|
return !1;
|
|
1855
1855
|
for (const ee of Array.from($.children)) {
|
|
1856
|
-
const
|
|
1857
|
-
if (!
|
|
1856
|
+
const te = (ee.className && ee.className.split(" ") || []).filter((we) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(we));
|
|
1857
|
+
if (!te.length)
|
|
1858
1858
|
return !1;
|
|
1859
|
-
for (const we of
|
|
1859
|
+
for (const we of te) {
|
|
1860
1860
|
const ye = we.slice(we.lastIndexOf("-") + 1);
|
|
1861
1861
|
if (parseInt(ye, 10) !== 12)
|
|
1862
1862
|
return !1;
|
|
@@ -1865,15 +1865,15 @@ var rl = { exports: {} };
|
|
|
1865
1865
|
return !0;
|
|
1866
1866
|
}
|
|
1867
1867
|
function et($, ee) {
|
|
1868
|
-
const
|
|
1869
|
-
if (W.style.left =
|
|
1870
|
-
if (W.style.height =
|
|
1871
|
-
const
|
|
1872
|
-
|
|
1868
|
+
const ne = ee.getBoundingClientRect();
|
|
1869
|
+
if (W.style.left = ne.left + "px", W.style.top = ne.top + "px", z) {
|
|
1870
|
+
if (W.style.height = ne.height + "px", W.style.width = "4px", $) {
|
|
1871
|
+
const te = $.getBoundingClientRect();
|
|
1872
|
+
te.top !== ne.top && (W.style.left = te.right + "px", W.style.top = te.top + "px", W.style.height = te.height + "px");
|
|
1873
1873
|
}
|
|
1874
|
-
} else if (W.style.height = "4px", W.style.width =
|
|
1875
|
-
const
|
|
1876
|
-
|
|
1874
|
+
} else if (W.style.height = "4px", W.style.width = ne.width + "px", ie) {
|
|
1875
|
+
const te = ie.getBoundingClientRect();
|
|
1876
|
+
ne.top < te.top && (W.style.display = "none");
|
|
1877
1877
|
}
|
|
1878
1878
|
ee === G && G && (W.style.display = "none");
|
|
1879
1879
|
}
|
|
@@ -1881,42 +1881,42 @@ var rl = { exports: {} };
|
|
|
1881
1881
|
Q = null;
|
|
1882
1882
|
var ee = $.lastElementChild;
|
|
1883
1883
|
if (ee) {
|
|
1884
|
-
var
|
|
1885
|
-
z ? (W.style.left =
|
|
1884
|
+
var ne = ee.getBoundingClientRect();
|
|
1885
|
+
z ? (W.style.left = ne.right + "px", W.style.top = ne.top + "px", W.style.height = ne.height + "px", W.style.width = "4px") : (W.style.left = ne.left + "px", W.style.top = ne.bottom + "px", W.style.height = "4px", W.style.width = ne.width + "px"), ee === G && G && (W.style.display = "none");
|
|
1886
1886
|
} else
|
|
1887
1887
|
W.style.display = "none";
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function pe($, ee) {
|
|
1890
1890
|
if (!Z.mirrorContainer.contains($) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ie = p($), !ie || !ie.contains($)))
|
|
1891
1891
|
return;
|
|
1892
|
-
const
|
|
1893
|
-
if (ee - 30 <
|
|
1892
|
+
const ne = document.querySelector(".dgComponentSelected"), te = ie.getBoundingClientRect();
|
|
1893
|
+
if (ee - 30 < te.top && ie.scrollTop > 0) {
|
|
1894
1894
|
let we = ie.scrollTop < 10 ? ie.scrollTop : 10;
|
|
1895
|
-
ie.scrollBy(0, -1 * we),
|
|
1895
|
+
ie.scrollBy(0, -1 * we), ne && ie.contains(ne) && (K = K + -1 * we);
|
|
1896
1896
|
}
|
|
1897
|
-
if (ee + 30 >
|
|
1897
|
+
if (ee + 30 > te.bottom && ie.scrollTop < ie.scrollHeight - ie.clientHeight) {
|
|
1898
1898
|
const we = ie.scrollHeight - ie.clientHeight - ie.scrollTop;
|
|
1899
1899
|
let ye = we < 10 ? we : 10;
|
|
1900
|
-
ie.scrollBy(0, ye),
|
|
1900
|
+
ie.scrollBy(0, ye), ne && ie.contains(ne) && (K = K + ye);
|
|
1901
1901
|
}
|
|
1902
1902
|
}
|
|
1903
|
-
function Ce($, ee,
|
|
1903
|
+
function Ce($, ee, ne, te) {
|
|
1904
1904
|
var we = Z.direction === "horizontal", ye = Z.direction === "mixed", De = ee !== $ ? Le() : Te();
|
|
1905
1905
|
return De;
|
|
1906
1906
|
function Te() {
|
|
1907
1907
|
var Qe = $.children.length, ut, he, xe;
|
|
1908
1908
|
for (ut = 0; ut < Qe; ut++)
|
|
1909
|
-
if (he = $.children[ut], xe = he.getBoundingClientRect(), we && xe.left + xe.width / 2 >
|
|
1909
|
+
if (he = $.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)
|
|
1910
1910
|
return he;
|
|
1911
1911
|
return null;
|
|
1912
1912
|
}
|
|
1913
1913
|
function Le() {
|
|
1914
1914
|
var Qe = ee.getBoundingClientRect();
|
|
1915
1915
|
if (ye) {
|
|
1916
|
-
var ut =
|
|
1916
|
+
var ut = te - Qe.top, he = ne - Qe.left, xe = Qe.bottom - te, tt = Qe.right - ne, Je = Math.min(he, tt, ut, xe), nt;
|
|
1917
1917
|
return z ? nt = tt < he : nt = xe === Je || tt === Je || he === Je, lt(nt);
|
|
1918
1918
|
}
|
|
1919
|
-
return lt(we ?
|
|
1919
|
+
return lt(we ? ne > Qe.left + y(Qe) / 2 : te > Qe.top + w(Qe) / 2);
|
|
1920
1920
|
}
|
|
1921
1921
|
function lt(Qe) {
|
|
1922
1922
|
return Qe ? T(ee) : ee;
|
|
@@ -2454,7 +2454,7 @@ const il = {
|
|
|
2454
2454
|
}, null)]);
|
|
2455
2455
|
}
|
|
2456
2456
|
});
|
|
2457
|
-
class
|
|
2457
|
+
class po {
|
|
2458
2458
|
constructor() {
|
|
2459
2459
|
B(this, "notifyRefs", []);
|
|
2460
2460
|
B(this, "globalConfig", Ct({}));
|
|
@@ -2495,7 +2495,7 @@ class mo {
|
|
|
2495
2495
|
document.body.removeChild(i);
|
|
2496
2496
|
}), gt(() => {
|
|
2497
2497
|
e.updateNotifyPositionForCreate(r, l);
|
|
2498
|
-
}), () => M(
|
|
2498
|
+
}), () => M(Un, {
|
|
2499
2499
|
mode: "out-in",
|
|
2500
2500
|
name: "fade",
|
|
2501
2501
|
appear: !0
|
|
@@ -2576,10 +2576,10 @@ class mo {
|
|
|
2576
2576
|
const ll = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
2577
2577
|
on.install = (t) => {
|
|
2578
2578
|
t.component(on.name, on), t.component(bn.name, bn);
|
|
2579
|
-
const n = new
|
|
2579
|
+
const n = new po();
|
|
2580
2580
|
t.provide(ll, n), t.provide("FNotifyService", n);
|
|
2581
2581
|
};
|
|
2582
|
-
const
|
|
2582
|
+
const mo = /* @__PURE__ */ new Map([
|
|
2583
2583
|
["appearance", Yt],
|
|
2584
2584
|
["column", "columnOption"]
|
|
2585
2585
|
]);
|
|
@@ -2602,7 +2602,7 @@ function cl(t, n, e) {
|
|
|
2602
2602
|
const o = t.getSchemaByType("content-container");
|
|
2603
2603
|
return o.id = `${n.id}-layout`, o.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, o.contents = [n], o;
|
|
2604
2604
|
}
|
|
2605
|
-
function
|
|
2605
|
+
function ho(t, n, e) {
|
|
2606
2606
|
const r = e.parentComponentInstance.schema.type, i = r === "section" || r === "tab-page";
|
|
2607
2607
|
n.appearance = { class: "f-component-grid" };
|
|
2608
2608
|
const l = (i ? cl : ul)(t, n, e);
|
|
@@ -3388,7 +3388,7 @@ const dl = "https://json-schema.org/draft/2020-12/schema", fl = "https://farris-
|
|
|
3388
3388
|
], yl = {
|
|
3389
3389
|
onSelectionChange: "行切换事件",
|
|
3390
3390
|
onClickRow: "行点击事件"
|
|
3391
|
-
},
|
|
3391
|
+
}, vo = {
|
|
3392
3392
|
$schema: dl,
|
|
3393
3393
|
$id: fl,
|
|
3394
3394
|
title: pl,
|
|
@@ -3526,7 +3526,7 @@ const dl = "https://json-schema.org/draft/2020-12/schema", fl = "https://farris-
|
|
|
3526
3526
|
width: { type: Number, default: -1 },
|
|
3527
3527
|
/** 启用虚拟渲染 */
|
|
3528
3528
|
virtualized: { type: Boolean, default: !1 }
|
|
3529
|
-
}, bl = _t(kn,
|
|
3529
|
+
}, bl = _t(kn, vo, mo, ho), wl = Oa(), Cl = Ia(), go = Object.assign({}, kn, { componentId: { type: String, default: "" } }), xl = _t(go, vo, mo, ho), _l = Pa();
|
|
3530
3530
|
var rt = /* @__PURE__ */ ((t) => (t[t.readonly = 0] = "readonly", t[t.editable = 1] = "editable", t[t.editing = 2] = "editing", t))(rt || {}), vt = /* @__PURE__ */ ((t) => (t[t.initial = 0] = "initial", t[t.editing = 1] = "editing", t))(vt || {}), Kt = /* @__PURE__ */ ((t) => (t[t.data = 0] = "data", t[t.group = 1] = "group", t[t.summary = 2] = "summary", t))(Kt || {}), ot = /* @__PURE__ */ ((t) => (t[t.none = 0] = "none", t[t.filterable = 1] = "filterable", t[t.sortable = 2] = "sortable", t[t.filtered = 4] = "filtered", t[t.sorted = 8] = "sorted", t[t.ascending = 16] = "ascending", t[t.descending = 32] = "descending", t))(ot || {});
|
|
3531
3531
|
function Sl(t, n) {
|
|
3532
3532
|
var m;
|
|
@@ -3732,38 +3732,38 @@ function El(t, n, e, o, r, i, a, l, s, f, d, u, p) {
|
|
|
3732
3732
|
} = Fl(t, o, a), {
|
|
3733
3733
|
treeNodeIconsClass: D
|
|
3734
3734
|
} = Tl(t, T, k);
|
|
3735
|
-
function X(q,
|
|
3735
|
+
function X(q, oe) {
|
|
3736
3736
|
const be = q.raw[k.value];
|
|
3737
3737
|
return {
|
|
3738
3738
|
"fv-tree-node-toggle": be && q.collapse,
|
|
3739
3739
|
"fv-tree-node-toggle-minus": be && !q.collapse
|
|
3740
3740
|
};
|
|
3741
3741
|
}
|
|
3742
|
-
function A(q,
|
|
3743
|
-
q.stopPropagation(), O(
|
|
3742
|
+
function A(q, oe) {
|
|
3743
|
+
q.stopPropagation(), O(oe);
|
|
3744
3744
|
}
|
|
3745
3745
|
function W(q) {
|
|
3746
3746
|
q.stopPropagation();
|
|
3747
3747
|
}
|
|
3748
|
-
function z(q,
|
|
3748
|
+
function z(q, oe) {
|
|
3749
3749
|
return M("div", {
|
|
3750
3750
|
class: X(q),
|
|
3751
3751
|
onClick: (be) => A(be, q),
|
|
3752
3752
|
onDblclick: W
|
|
3753
3753
|
}, null);
|
|
3754
3754
|
}
|
|
3755
|
-
function K(q,
|
|
3755
|
+
function K(q, oe) {
|
|
3756
3756
|
return b.value && M("div", {
|
|
3757
3757
|
id: "treeNodeIcons",
|
|
3758
|
-
class: D(q,
|
|
3758
|
+
class: D(q, oe)
|
|
3759
3759
|
}, null);
|
|
3760
3760
|
}
|
|
3761
3761
|
function ie(q) {
|
|
3762
3762
|
w.value ? (q.checked ? _(q) : S(q), V(q)) : v(q);
|
|
3763
3763
|
}
|
|
3764
|
-
function Z(q,
|
|
3765
|
-
return E.value && M(
|
|
3766
|
-
id: "checkbox_for_" + I(q,
|
|
3764
|
+
function Z(q, oe) {
|
|
3765
|
+
return E.value && M(ui, {
|
|
3766
|
+
id: "checkbox_for_" + I(q, oe.index),
|
|
3767
3767
|
indeterminate: q.indeterminate,
|
|
3768
3768
|
disabled: q.disabled,
|
|
3769
3769
|
checked: q.checked,
|
|
@@ -3771,61 +3771,57 @@ function El(t, n, e, o, r, i, a, l, s, f, d, u, p) {
|
|
|
3771
3771
|
onChange: () => ie(q)
|
|
3772
3772
|
}, null);
|
|
3773
3773
|
}
|
|
3774
|
-
function
|
|
3774
|
+
function me(q, oe) {
|
|
3775
3775
|
return M("span", {
|
|
3776
|
-
title: te.data,
|
|
3777
3776
|
style: "user-select:none"
|
|
3778
3777
|
}, [n.slots.cellTemplate ? n.slots.cellTemplate({
|
|
3779
|
-
cell:
|
|
3778
|
+
cell: oe,
|
|
3780
3779
|
row: q
|
|
3781
|
-
}) :
|
|
3780
|
+
}) : oe.mode === rt.editing ? oe.getEditor(oe) : oe.formatter ? oe.formatter(oe, q) : oe.showTips ? M(di, null, {
|
|
3781
|
+
default: () => oe.data,
|
|
3782
|
+
contentTemplate: () => oe.data
|
|
3783
|
+
}) : oe.data]);
|
|
3782
3784
|
}
|
|
3783
|
-
function ve(q,
|
|
3785
|
+
function ve(q, oe) {
|
|
3784
3786
|
return M("div", {
|
|
3785
|
-
class: Q(
|
|
3786
|
-
}, [
|
|
3787
|
-
default: () => fe(q, te),
|
|
3788
|
-
contentTemplate: () => fe(q, te)
|
|
3789
|
-
}) : fe(q, te)]);
|
|
3787
|
+
class: Q(oe)
|
|
3788
|
+
}, [me(q, oe)]);
|
|
3790
3789
|
}
|
|
3791
|
-
function _e(q,
|
|
3790
|
+
function _e(q, oe, be) {
|
|
3792
3791
|
const ke = R(q);
|
|
3793
3792
|
return M("div", {
|
|
3794
|
-
ref:
|
|
3795
|
-
key: I(q,
|
|
3793
|
+
ref: oe.setRef,
|
|
3794
|
+
key: I(q, oe.index),
|
|
3796
3795
|
class: "fv-grid-hierarchy-cell",
|
|
3797
|
-
style: P(
|
|
3796
|
+
style: P(oe, be)
|
|
3798
3797
|
}, [M("div", {
|
|
3799
|
-
class: L(
|
|
3798
|
+
class: L(oe),
|
|
3800
3799
|
style: ke
|
|
3801
|
-
}, [z(q), K(q,
|
|
3800
|
+
}, [z(q), K(q, oe), Z(q, oe), ve(q, oe)])]);
|
|
3802
3801
|
}
|
|
3803
|
-
function Be(q,
|
|
3802
|
+
function Be(q, oe, be) {
|
|
3804
3803
|
return M("div", {
|
|
3805
|
-
ref:
|
|
3806
|
-
key: I(q,
|
|
3807
|
-
class: c(
|
|
3808
|
-
style: P(
|
|
3809
|
-
onClick: (ke) => m(ke,
|
|
3804
|
+
ref: oe.setRef,
|
|
3805
|
+
key: I(q, oe.index),
|
|
3806
|
+
class: c(oe),
|
|
3807
|
+
style: P(oe, be),
|
|
3808
|
+
onClick: (ke) => m(ke, oe, q, oe.column)
|
|
3810
3809
|
}, [M("div", {
|
|
3811
|
-
class: L(
|
|
3810
|
+
class: L(oe)
|
|
3812
3811
|
}, [M("div", {
|
|
3813
|
-
class: Q(
|
|
3814
|
-
}, [
|
|
3815
|
-
default: () => fe(q, te),
|
|
3816
|
-
contentTemplate: () => fe(q, te)
|
|
3817
|
-
}) : fe(q, te)])])]);
|
|
3812
|
+
class: Q(oe)
|
|
3813
|
+
}, [me(q, oe)])])]);
|
|
3818
3814
|
}
|
|
3819
|
-
function Re(q,
|
|
3820
|
-
return
|
|
3815
|
+
function Re(q, oe) {
|
|
3816
|
+
return oe === "left" && e.value.leftColumns.length > 0 && e.value.leftColumns[0].field === q.field || oe === "primary" && e.value.primaryColumns.length > 0 && e.value.primaryColumns[0].field === q.field;
|
|
3821
3817
|
}
|
|
3822
|
-
function Y(q,
|
|
3818
|
+
function Y(q, oe) {
|
|
3823
3819
|
n.emit("dblclickNode", {
|
|
3824
3820
|
$event: q,
|
|
3825
|
-
node:
|
|
3821
|
+
node: oe.raw
|
|
3826
3822
|
});
|
|
3827
3823
|
}
|
|
3828
|
-
function ce(q,
|
|
3824
|
+
function ce(q, oe, be = "primary", ke) {
|
|
3829
3825
|
return M("div", {
|
|
3830
3826
|
ref: q.setRef,
|
|
3831
3827
|
key: G(q),
|
|
@@ -3835,7 +3831,7 @@ function El(t, n, e, o, r, i, a, l, s, f, d, u, p) {
|
|
|
3835
3831
|
onMouseout: (Pe) => y(Pe, q),
|
|
3836
3832
|
onClick: (Pe) => h(Pe, q),
|
|
3837
3833
|
onDblclick: (Pe) => Y(Pe, q)
|
|
3838
|
-
}, [Object.values(q.data).filter((Pe) =>
|
|
3834
|
+
}, [Object.values(q.data).filter((Pe) => oe[Pe.field] && Pe.rowSpan === 1).map((Pe) => Re(Pe, be) ? _e(q, Pe, oe) : Be(q, Pe, oe))]);
|
|
3839
3835
|
}
|
|
3840
3836
|
return {
|
|
3841
3837
|
renderDataRow: ce
|
|
@@ -4048,7 +4044,7 @@ function Vl(t, n) {
|
|
|
4048
4044
|
}
|
|
4049
4045
|
function Dl(t, n) {
|
|
4050
4046
|
var x;
|
|
4051
|
-
|
|
4047
|
+
_r();
|
|
4052
4048
|
const { idField: e } = n, o = F(t.summary), r = F(t.group), i = F(((x = t.group) == null ? void 0 : x.groupFields) || []), a = N(() => {
|
|
4053
4049
|
var y;
|
|
4054
4050
|
return (y = t.group) == null ? void 0 : y.enable;
|
|
@@ -4146,8 +4142,8 @@ function Nl(t, n, e, o) {
|
|
|
4146
4142
|
u.clear(), A.reduce((z, K) => {
|
|
4147
4143
|
const ie = K[f.value] !== void 0 ? K[f.value] : "";
|
|
4148
4144
|
if (ie && W.has(ie)) {
|
|
4149
|
-
const
|
|
4150
|
-
K.__fv_layer__ = ve + 1, K.__fv_parent_index__ =
|
|
4145
|
+
const me = W.get(ie), ve = isNaN(Number(me.__fv_layer__)) ? 1 : Number(me.__fv_layer__);
|
|
4146
|
+
K.__fv_layer__ = ve + 1, K.__fv_parent_index__ = me.__fv_index__, me.__fv_hasChildren__ = !0;
|
|
4151
4147
|
} else
|
|
4152
4148
|
K.__fv_layer__ = 1;
|
|
4153
4149
|
const Z = z.has(ie) ? z.get(ie) : [];
|
|
@@ -4195,8 +4191,8 @@ function Nl(t, n, e, o) {
|
|
|
4195
4191
|
}
|
|
4196
4192
|
function w(A, W, z) {
|
|
4197
4193
|
Array.from(W.keys()).forEach((K) => {
|
|
4198
|
-
W.get(K).reduce((Z,
|
|
4199
|
-
const ve =
|
|
4194
|
+
W.get(K).reduce((Z, me) => {
|
|
4195
|
+
const ve = me[a.value], _e = A.get(me[a.value]), Be = A.get(K), Re = z.get(K);
|
|
4200
4196
|
return Be && Re && (Be.children.set(ve, _e), Be.children.set(ve, _e), _e.parentId = K, _e.parentIndex = Be.index, _e.parents.set(K, Be)), Z;
|
|
4201
4197
|
}, A);
|
|
4202
4198
|
});
|
|
@@ -4260,7 +4256,7 @@ function Nl(t, n, e, o) {
|
|
|
4260
4256
|
}
|
|
4261
4257
|
function G(A, W, z = 0) {
|
|
4262
4258
|
A.forEach((K) => {
|
|
4263
|
-
const ie = E(K), Z = K.__fv_layer__ <= z,
|
|
4259
|
+
const ie = E(K), Z = K.__fv_layer__ <= z, me = W === "ToCollapse" ? K.__fv_layer__ <= z : !(K.__fv_layer__ <= z), ve = Z ? me : K[l.value];
|
|
4264
4260
|
K[l.value] = ie || ve;
|
|
4265
4261
|
});
|
|
4266
4262
|
for (const [K, ie] of u.entries())
|
|
@@ -4275,8 +4271,8 @@ function Nl(t, n, e, o) {
|
|
|
4275
4271
|
}
|
|
4276
4272
|
function H(A) {
|
|
4277
4273
|
A.forEach((W, z) => {
|
|
4278
|
-
var
|
|
4279
|
-
const K = W[a.value], ie = u.has(K) ? (
|
|
4274
|
+
var me;
|
|
4275
|
+
const K = W[a.value], ie = u.has(K) ? (me = u.get(K)) == null ? void 0 : me.map((ve) => ve.__fv_index__) : [], Z = y(K, z);
|
|
4280
4276
|
W.__fv_graph_node__ = Z, W.__fv_children_index__ = ie, W.__fv_descendant_index__ = [...ie], W.__fv_parents__ = /* @__PURE__ */ new Map(), E(W) && (W[l.value] = !0);
|
|
4281
4277
|
});
|
|
4282
4278
|
}
|
|
@@ -4289,18 +4285,18 @@ function Nl(t, n, e, o) {
|
|
|
4289
4285
|
function R(A, W, z) {
|
|
4290
4286
|
const ie = z.value[A][a.value], Z = d.get(ie);
|
|
4291
4287
|
if (Z) {
|
|
4292
|
-
const
|
|
4288
|
+
const me = d.get(Z.parentId);
|
|
4293
4289
|
let ve = z.value.length - 1;
|
|
4294
|
-
if (
|
|
4295
|
-
const _e = Array.from(
|
|
4296
|
-
if (_e ===
|
|
4297
|
-
const Re = Array.from(
|
|
4290
|
+
if (me) {
|
|
4291
|
+
const _e = Array.from(me.children.keys()).indexOf(Z.id);
|
|
4292
|
+
if (_e === me.children.size - 1) {
|
|
4293
|
+
const Re = Array.from(me.descendant.values())[me.descendant.size - 1];
|
|
4298
4294
|
ve = z.value.findIndex((ce) => ce[a.value] === Re.id) + 1;
|
|
4299
4295
|
} else {
|
|
4300
|
-
const Re = Array.from(
|
|
4296
|
+
const Re = Array.from(me.children.values())[_e + 1];
|
|
4301
4297
|
ve = z.value.findIndex((ce) => ce[a.value] === Re.id);
|
|
4302
4298
|
}
|
|
4303
|
-
W[s.value] = !1, W[f.value] =
|
|
4299
|
+
W[s.value] = !1, W[f.value] = me.id, z.value.splice(ve, 0, W);
|
|
4304
4300
|
}
|
|
4305
4301
|
}
|
|
4306
4302
|
}
|
|
@@ -4366,80 +4362,80 @@ function Rl(t, n, e, o, r) {
|
|
|
4366
4362
|
function W() {
|
|
4367
4363
|
return A.value && A.value.enable && A.value.size > 0 ? A.value.size : G.value.length;
|
|
4368
4364
|
}
|
|
4369
|
-
const z = F(1), K = N(() => A.value && A.value.enable && A.value.mode !== "server"), ie = N(() => A.value && A.value.enable && A.value.mode === "server"), Z = new
|
|
4370
|
-
function
|
|
4371
|
-
const Ce = Math.ceil(U.length /
|
|
4365
|
+
const z = F(1), K = N(() => A.value && A.value.enable && A.value.mode !== "server"), ie = N(() => A.value && A.value.enable && A.value.mode === "server"), Z = new po();
|
|
4366
|
+
function me(U, pe) {
|
|
4367
|
+
const Ce = Math.ceil(U.length / pe);
|
|
4372
4368
|
let Ee = 0;
|
|
4373
|
-
const $ = [], ee = [],
|
|
4369
|
+
const $ = [], ee = [], ne = [];
|
|
4374
4370
|
for (; Ee < Ce; ) {
|
|
4375
|
-
const
|
|
4371
|
+
const te = U.slice(Ee * pe, (Ee + 1) * pe), we = m(c.value, te, n);
|
|
4376
4372
|
ee[Ee] = we.filter((ye) => ye.__fv_data_grid_group_row__).length, $.push(...we), Ee++;
|
|
4377
4373
|
}
|
|
4378
|
-
return ee.reduce((
|
|
4374
|
+
return ee.reduce((te, we, ye) => (te = te + we, ne.push(te), te), 0), {
|
|
4379
4375
|
groupData: $,
|
|
4380
4376
|
groupRowSizeList: ee,
|
|
4381
|
-
accumulateGroupRowSize:
|
|
4377
|
+
accumulateGroupRowSize: ne
|
|
4382
4378
|
};
|
|
4383
4379
|
}
|
|
4384
4380
|
function ve() {
|
|
4385
4381
|
var we;
|
|
4386
4382
|
G.value = g.value, K.value && (X.value = G.value.length), C.value && !K.value && (G.value = m(c.value, g.value, n)), D = R.value.reduce((ye, De) => (ye.set(De, 0), ye), D);
|
|
4387
|
-
const U = 0,
|
|
4388
|
-
let $ = Ce > G.value.length - 1 || ie.value ? U : Ce, ee = ie.value ? G.value.length : Math.min($ +
|
|
4383
|
+
const U = 0, pe = W(), Ce = (z.value - 1) * pe;
|
|
4384
|
+
let $ = Ce > G.value.length - 1 || ie.value ? U : Ce, ee = ie.value ? G.value.length : Math.min($ + pe, G.value.length);
|
|
4389
4385
|
if (C.value && K.value) {
|
|
4390
|
-
const { accumulateGroupRowSize: ye, groupData: De, groupRowSizeList: Te } =
|
|
4386
|
+
const { accumulateGroupRowSize: ye, groupData: De, groupRowSizeList: Te } = me(g.value, pe);
|
|
4391
4387
|
G.value = De;
|
|
4392
4388
|
const Le = Te[z.value - 1];
|
|
4393
|
-
$ += z.value - 2 < 0 ? 0 : ye[z.value - 2], ee = $ +
|
|
4389
|
+
$ += z.value - 2 < 0 ? 0 : ye[z.value - 2], ee = $ + pe + Le;
|
|
4394
4390
|
}
|
|
4395
|
-
let
|
|
4396
|
-
const
|
|
4391
|
+
let ne = 0;
|
|
4392
|
+
const te = [];
|
|
4397
4393
|
if (G.value.length) {
|
|
4398
4394
|
I(G.value);
|
|
4399
4395
|
const ye = V.value !== t.idField;
|
|
4400
4396
|
for (let De = $; De < ee; De++) {
|
|
4401
4397
|
const Te = G.value[De];
|
|
4402
|
-
Te.__fv_data_grid_group_row__ ? (
|
|
4398
|
+
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__ = De, Te.__fv_visible_index__ = De, t.rowOption && t.rowOption.disabledField && (Te.__fv_disabled__ = Te[(we = t.rowOption) == null ? void 0 : we.disabledField]), ye && (Te[V.value] = De), R.value.forEach((Le) => {
|
|
4403
4399
|
const lt = D.get(Le) || 0;
|
|
4404
4400
|
D.set(Le, lt + Te[Le]);
|
|
4405
|
-
}),
|
|
4401
|
+
}), te.push(Te);
|
|
4406
4402
|
}
|
|
4407
4403
|
}
|
|
4408
|
-
return k.value && w(
|
|
4404
|
+
return k.value && w(te), j.value = [...te], te;
|
|
4409
4405
|
}
|
|
4410
4406
|
const _e = F(ve()), Be = N(() => (O.value, _e.value.filter((U) => k.value ? U.__fv_visible__ !== !1 && T(U) : U.__fv_visible__ !== !1)));
|
|
4411
4407
|
function Re() {
|
|
4412
|
-
Be.value.forEach((U,
|
|
4408
|
+
Be.value.forEach((U, pe) => (U.__fv_visible_index__ = pe, U));
|
|
4413
4409
|
}
|
|
4414
|
-
function Y(U,
|
|
4415
|
-
const $ = (Ce ? ve() : [...j.value]).filter((
|
|
4416
|
-
const ye = [...
|
|
4417
|
-
let Te = De.compare(
|
|
4410
|
+
function Y(U, pe, Ce = !1) {
|
|
4411
|
+
const $ = (Ce ? ve() : [...j.value]).filter((te) => e.apply(te)), ee = U && U.length ? $.filter((te) => U.reduce((we, ye) => we && ye.filter(te), !0)) : $, ne = pe && pe.length ? ee.sort((te, we) => {
|
|
4412
|
+
const ye = [...pe], De = ye.shift();
|
|
4413
|
+
let Te = De.compare(te[De.field], we[De.field]);
|
|
4418
4414
|
for (; Te === 0 && ye.length !== 0; ) {
|
|
4419
4415
|
const Le = ye.shift();
|
|
4420
|
-
Le && (Te = Le.compare(
|
|
4416
|
+
Le && (Te = Le.compare(te[Le.field], we[Le.field]));
|
|
4421
4417
|
}
|
|
4422
4418
|
return Te;
|
|
4423
4419
|
}) : ee;
|
|
4424
|
-
return _e.value =
|
|
4425
|
-
if (
|
|
4426
|
-
const ye = `group_of_${
|
|
4427
|
-
|
|
4420
|
+
return _e.value = ne.map((te, we) => {
|
|
4421
|
+
if (te.__fv_data_grid_group_row__) {
|
|
4422
|
+
const ye = `group_of_${te.__fv_data_grid_group_field__}_${te.__fv_data_grid_group_value__}`;
|
|
4423
|
+
te.__fv_data_grid_group_collapse__ = !!i.get(ye);
|
|
4428
4424
|
}
|
|
4429
|
-
return
|
|
4425
|
+
return te.__fv_index__ = we, te.__fv_visible_index__ = we, te;
|
|
4430
4426
|
}), _e.value;
|
|
4431
4427
|
}
|
|
4432
4428
|
function ce(U) {
|
|
4433
|
-
return f.clear(), u.value = U, u.value.reduce((
|
|
4429
|
+
return f.clear(), u.value = U, u.value.reduce((pe, Ce) => (pe.set(Ce.field, Ce), pe), f), Y([], u.value);
|
|
4434
4430
|
}
|
|
4435
|
-
function q(U,
|
|
4436
|
-
return f.set(U,
|
|
4431
|
+
function q(U, pe) {
|
|
4432
|
+
return f.set(U, pe), u.value = Array.from(f.values()), Y([], u.value);
|
|
4437
4433
|
}
|
|
4438
|
-
function
|
|
4434
|
+
function oe(U) {
|
|
4439
4435
|
return f.delete(U), u.value = Array.from(f.values()), Y([], u.value);
|
|
4440
4436
|
}
|
|
4441
|
-
function be(U,
|
|
4442
|
-
return a.set(U,
|
|
4437
|
+
function be(U, pe) {
|
|
4438
|
+
return a.set(U, pe), d.value = Array.from(a.values()), Y([], Array.from(f.values()));
|
|
4443
4439
|
}
|
|
4444
4440
|
function ke(U) {
|
|
4445
4441
|
return a.delete(U), d.value = Array.from(a.values()), Y([], Array.from(f.values()), !0);
|
|
@@ -4447,15 +4443,15 @@ function Rl(t, n, e, o, r) {
|
|
|
4447
4443
|
function Pe() {
|
|
4448
4444
|
return a.clear(), d.value = [], Y([], Array.from(f.values()), !0);
|
|
4449
4445
|
}
|
|
4450
|
-
function it(U,
|
|
4451
|
-
const Ce = `group_of_${U}_${
|
|
4446
|
+
function it(U, pe) {
|
|
4447
|
+
const Ce = `group_of_${U}_${pe}`;
|
|
4452
4448
|
i.set(Ce, !0);
|
|
4453
|
-
const Ee = ($) => $[U] !==
|
|
4454
|
-
return l.set(`collapse_${U}_${
|
|
4449
|
+
const Ee = ($) => $[U] !== pe;
|
|
4450
|
+
return l.set(`collapse_${U}_${pe}`, {
|
|
4455
4451
|
field: U,
|
|
4456
4452
|
fieldName: U,
|
|
4457
4453
|
fieldType: "string",
|
|
4458
|
-
filterValue:
|
|
4454
|
+
filterValue: pe,
|
|
4459
4455
|
filter: Ee
|
|
4460
4456
|
}), Y(Array.from(l.values()), Array.from(f.values()));
|
|
4461
4457
|
}
|
|
@@ -4465,23 +4461,23 @@ function Rl(t, n, e, o, r) {
|
|
|
4465
4461
|
function ft(U) {
|
|
4466
4462
|
y(_e.value, U);
|
|
4467
4463
|
}
|
|
4468
|
-
function J(U,
|
|
4469
|
-
const Ce = `group_of_${U}_${
|
|
4470
|
-
return i.set(Ce, !1), l.delete(`collapse_${U}_${
|
|
4464
|
+
function J(U, pe) {
|
|
4465
|
+
const Ce = `group_of_${U}_${pe}`;
|
|
4466
|
+
return i.set(Ce, !1), l.delete(`collapse_${U}_${pe}`), Y(Array.from(l.values()), Array.from(f.values()), !0);
|
|
4471
4467
|
}
|
|
4472
4468
|
function Se(U) {
|
|
4473
|
-
const
|
|
4474
|
-
s.set(`fold_${
|
|
4469
|
+
const pe = U.raw[V.value], Ce = (Ee) => !Ee.__fv_parents__.has(pe);
|
|
4470
|
+
s.set(`fold_${pe}`, {
|
|
4475
4471
|
field: "id",
|
|
4476
4472
|
fieldName: "id",
|
|
4477
4473
|
fieldType: "string",
|
|
4478
|
-
filterValue: String(
|
|
4474
|
+
filterValue: String(pe),
|
|
4479
4475
|
filter: Ce
|
|
4480
4476
|
}), Y(Array.from(s.values()), Array.from(f.values())), w(_e.value);
|
|
4481
4477
|
}
|
|
4482
4478
|
function Oe(U) {
|
|
4483
|
-
const
|
|
4484
|
-
s.delete(`fold_${
|
|
4479
|
+
const pe = U[V.value];
|
|
4480
|
+
s.delete(`fold_${pe}`);
|
|
4485
4481
|
}
|
|
4486
4482
|
function Ge(U) {
|
|
4487
4483
|
Oe(U.raw), Y(Array.from(s.values()), Array.from(f.values()), !0), w(_e.value);
|
|
@@ -4494,11 +4490,11 @@ function Rl(t, n, e, o, r) {
|
|
|
4494
4490
|
const Ce = t.hierarchy && U && U.length && U[0].children ? H(U) : U;
|
|
4495
4491
|
g.value = Ce, Ne();
|
|
4496
4492
|
}
|
|
4497
|
-
function bt(U,
|
|
4498
|
-
return (U && U.length ? _e.value.filter(($, ee) => U.reduce((
|
|
4493
|
+
function bt(U, pe, Ce) {
|
|
4494
|
+
return (U && U.length ? _e.value.filter(($, ee) => U.reduce((ne, te) => ne && te.filter($), !0)) : _e.value).slice(pe, Ce);
|
|
4499
4495
|
}
|
|
4500
4496
|
function St(U) {
|
|
4501
|
-
const
|
|
4497
|
+
const pe = W(), Ce = Math.ceil(X.value / pe);
|
|
4502
4498
|
0 <= U && U <= Ce && (z.value = U, Ne());
|
|
4503
4499
|
}
|
|
4504
4500
|
function pt(U) {
|
|
@@ -4517,32 +4513,32 @@ function Rl(t, n, e, o, r) {
|
|
|
4517
4513
|
Oe(Ee), v(U, Ce, g), Ne();
|
|
4518
4514
|
}
|
|
4519
4515
|
function wt(U) {
|
|
4520
|
-
const
|
|
4521
|
-
g.value.splice(
|
|
4516
|
+
const pe = U ? U - 1 : 0;
|
|
4517
|
+
g.value.splice(pe, 1), Ne();
|
|
4522
4518
|
}
|
|
4523
4519
|
function Vt(U) {
|
|
4524
|
-
const
|
|
4525
|
-
|
|
4520
|
+
const pe = g.value.findIndex((Ce) => Ce[V.value] === U);
|
|
4521
|
+
pe !== -1 && (g.value.splice(pe, 1), Ne());
|
|
4526
4522
|
}
|
|
4527
4523
|
function Tt(U) {
|
|
4528
|
-
const
|
|
4529
|
-
if (!(
|
|
4524
|
+
const pe = U > -1 ? g.value[U] : null;
|
|
4525
|
+
if (!(pe && pe.deletable !== !1))
|
|
4530
4526
|
return !1;
|
|
4531
|
-
g.value = b(
|
|
4527
|
+
g.value = b(pe, g.value), Ne();
|
|
4532
4528
|
}
|
|
4533
4529
|
function re() {
|
|
4534
4530
|
const U = l.size > 0 ? Array.from(l.values()) : [];
|
|
4535
4531
|
return Y(U, Array.from(f.values()));
|
|
4536
4532
|
}
|
|
4537
|
-
function
|
|
4533
|
+
function fe(U) {
|
|
4538
4534
|
A.value.size = U;
|
|
4539
4535
|
}
|
|
4540
4536
|
function ge(U) {
|
|
4541
|
-
A.value && (
|
|
4537
|
+
A.value && (fe(U), Ne());
|
|
4542
4538
|
}
|
|
4543
|
-
function Ve(U,
|
|
4539
|
+
function Ve(U, pe) {
|
|
4544
4540
|
const Ce = g.value[Number(U) - 1];
|
|
4545
|
-
Ce.editable !== !1 ? (Ce.name =
|
|
4541
|
+
Ce.editable !== !1 ? (Ce.name = pe, Ne()) : Z.show({
|
|
4546
4542
|
showCloseButton: !1,
|
|
4547
4543
|
timeout: 3e3,
|
|
4548
4544
|
animate: "fadeIn",
|
|
@@ -4559,7 +4555,7 @@ function Rl(t, n, e, o, r) {
|
|
|
4559
4555
|
addFilter: be,
|
|
4560
4556
|
addNewDataItem: pt,
|
|
4561
4557
|
addSorter: q,
|
|
4562
|
-
updatePageSize:
|
|
4558
|
+
updatePageSize: fe,
|
|
4563
4559
|
changePageSizeTo: ge,
|
|
4564
4560
|
collapse: it,
|
|
4565
4561
|
collapseTo: yt,
|
|
@@ -4585,7 +4581,7 @@ function Rl(t, n, e, o, r) {
|
|
|
4585
4581
|
removeDataItemById: Vt,
|
|
4586
4582
|
removeFilter: ke,
|
|
4587
4583
|
removeHierarchyDataItem: Tt,
|
|
4588
|
-
removeSorter:
|
|
4584
|
+
removeSorter: oe,
|
|
4589
4585
|
reOrderVisibleIndex: Re,
|
|
4590
4586
|
setSorters: ce,
|
|
4591
4587
|
sorters: u,
|
|
@@ -4597,7 +4593,7 @@ function Rl(t, n, e, o, r) {
|
|
|
4597
4593
|
visibleDataItems: Be
|
|
4598
4594
|
};
|
|
4599
4595
|
}
|
|
4600
|
-
const
|
|
4596
|
+
const yo = {
|
|
4601
4597
|
conditions: { type: Array, default: [] },
|
|
4602
4598
|
fields: { type: Array, default: [] },
|
|
4603
4599
|
key: { type: String, default: "" },
|
|
@@ -4606,7 +4602,7 @@ const bo = {
|
|
|
4606
4602
|
*/
|
|
4607
4603
|
isControlInline: { type: Boolean, default: !0 }
|
|
4608
4604
|
};
|
|
4609
|
-
class
|
|
4605
|
+
class bo {
|
|
4610
4606
|
constructor(n = { value: [] }) {
|
|
4611
4607
|
B(this, "editorType", "check-box");
|
|
4612
4608
|
B(this, "value");
|
|
@@ -4630,7 +4626,7 @@ class wo {
|
|
|
4630
4626
|
return this.value.length === 0;
|
|
4631
4627
|
}
|
|
4632
4628
|
}
|
|
4633
|
-
class
|
|
4629
|
+
class wo {
|
|
4634
4630
|
constructor(n = { textValue: "", value: "", valueField: "" }) {
|
|
4635
4631
|
B(this, "editorType", "combo-lookup");
|
|
4636
4632
|
B(this, "textValue");
|
|
@@ -4674,11 +4670,11 @@ function Xe(t) {
|
|
|
4674
4670
|
function He(t, n) {
|
|
4675
4671
|
return t instanceof Date ? new t.constructor(n) : new Date(n);
|
|
4676
4672
|
}
|
|
4677
|
-
function
|
|
4673
|
+
function Co(t, n) {
|
|
4678
4674
|
const e = Xe(t);
|
|
4679
4675
|
return isNaN(n) ? He(t, NaN) : (n && e.setDate(e.getDate() + n), e);
|
|
4680
4676
|
}
|
|
4681
|
-
const
|
|
4677
|
+
const xo = 6048e5, Ll = 864e5, $l = 6e4, Wl = 36e5, Hl = 1e3;
|
|
4682
4678
|
let jl = {};
|
|
4683
4679
|
function Ut() {
|
|
4684
4680
|
return jl;
|
|
@@ -4691,7 +4687,7 @@ function Pt(t, n) {
|
|
|
4691
4687
|
function zt(t) {
|
|
4692
4688
|
return Pt(t, { weekStartsOn: 1 });
|
|
4693
4689
|
}
|
|
4694
|
-
function
|
|
4690
|
+
function _o(t) {
|
|
4695
4691
|
const n = Xe(t), e = n.getFullYear(), o = He(t, 0);
|
|
4696
4692
|
o.setFullYear(e + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
4697
4693
|
const r = zt(o), i = He(t, 0);
|
|
@@ -4699,7 +4695,7 @@ function So(t) {
|
|
|
4699
4695
|
const a = zt(i);
|
|
4700
4696
|
return n.getTime() >= r.getTime() ? e + 1 : n.getTime() >= a.getTime() ? e : e - 1;
|
|
4701
4697
|
}
|
|
4702
|
-
function
|
|
4698
|
+
function Hn(t) {
|
|
4703
4699
|
const n = Xe(t);
|
|
4704
4700
|
return n.setHours(0, 0, 0, 0), n;
|
|
4705
4701
|
}
|
|
@@ -4718,11 +4714,11 @@ function ln(t) {
|
|
|
4718
4714
|
return e.setUTCFullYear(n.getFullYear()), +t - +e;
|
|
4719
4715
|
}
|
|
4720
4716
|
function Al(t, n) {
|
|
4721
|
-
const e =
|
|
4717
|
+
const e = Hn(t), o = Hn(n), r = +e - ln(e), i = +o - ln(o);
|
|
4722
4718
|
return Math.round((r - i) / Ll);
|
|
4723
4719
|
}
|
|
4724
4720
|
function ql(t) {
|
|
4725
|
-
const n =
|
|
4721
|
+
const n = _o(t), e = He(t, 0);
|
|
4726
4722
|
return e.setFullYear(n, 0, 4), e.setHours(0, 0, 0, 0), zt(e);
|
|
4727
4723
|
}
|
|
4728
4724
|
function Gl(t) {
|
|
@@ -5157,7 +5153,7 @@ const ps = /^(\d+)(th|st|nd|rd)?/i, ms = /\d+/i, hs = {
|
|
|
5157
5153
|
parsePatterns: Ss,
|
|
5158
5154
|
defaultParseWidth: "any"
|
|
5159
5155
|
})
|
|
5160
|
-
},
|
|
5156
|
+
}, So = {
|
|
5161
5157
|
code: "en-US",
|
|
5162
5158
|
formatDistance: Xl,
|
|
5163
5159
|
formatLong: Zl,
|
|
@@ -5173,9 +5169,9 @@ function Ts(t) {
|
|
|
5173
5169
|
const n = Xe(t);
|
|
5174
5170
|
return Al(n, Yl(n)) + 1;
|
|
5175
5171
|
}
|
|
5176
|
-
function
|
|
5172
|
+
function Fo(t) {
|
|
5177
5173
|
const n = Xe(t), e = +zt(n) - +ql(n);
|
|
5178
|
-
return Math.round(e /
|
|
5174
|
+
return Math.round(e / xo) + 1;
|
|
5179
5175
|
}
|
|
5180
5176
|
function Mn(t, n) {
|
|
5181
5177
|
var d, u, p, m;
|
|
@@ -5191,9 +5187,9 @@ function ks(t, n) {
|
|
|
5191
5187
|
const e = Ut(), o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((s = (l = n == null ? void 0 : n.locale) == null ? void 0 : l.options) == null ? void 0 : s.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((d = (f = e.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, r = Mn(t, n), i = He(t, 0);
|
|
5192
5188
|
return i.setFullYear(r, 0, o), i.setHours(0, 0, 0, 0), Pt(i, n);
|
|
5193
5189
|
}
|
|
5194
|
-
function
|
|
5190
|
+
function To(t, n) {
|
|
5195
5191
|
const e = Xe(t), o = +Pt(e, n) - +ks(e, n);
|
|
5196
|
-
return Math.round(o /
|
|
5192
|
+
return Math.round(o / xo) + 1;
|
|
5197
5193
|
}
|
|
5198
5194
|
function Ie(t, n) {
|
|
5199
5195
|
const e = t < 0 ? "-" : "", o = Math.abs(t).toString().padStart(n, "0");
|
|
@@ -5262,7 +5258,7 @@ const Mt = {
|
|
|
5262
5258
|
afternoon: "afternoon",
|
|
5263
5259
|
evening: "evening",
|
|
5264
5260
|
night: "night"
|
|
5265
|
-
},
|
|
5261
|
+
}, jn = {
|
|
5266
5262
|
// Era
|
|
5267
5263
|
G: function(t, n, e) {
|
|
5268
5264
|
const o = t.getFullYear() > 0 ? 1 : 0;
|
|
@@ -5297,7 +5293,7 @@ const Mt = {
|
|
|
5297
5293
|
},
|
|
5298
5294
|
// ISO week-numbering year
|
|
5299
5295
|
R: function(t, n) {
|
|
5300
|
-
const e =
|
|
5296
|
+
const e = _o(t);
|
|
5301
5297
|
return Ie(e, n.length);
|
|
5302
5298
|
},
|
|
5303
5299
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -5420,12 +5416,12 @@ const Mt = {
|
|
|
5420
5416
|
},
|
|
5421
5417
|
// Local week of year
|
|
5422
5418
|
w: function(t, n, e, o) {
|
|
5423
|
-
const r =
|
|
5419
|
+
const r = To(t, o);
|
|
5424
5420
|
return n === "wo" ? e.ordinalNumber(r, { unit: "week" }) : Ie(r, n.length);
|
|
5425
5421
|
},
|
|
5426
5422
|
// ISO week of year
|
|
5427
5423
|
I: function(t, n, e) {
|
|
5428
|
-
const o =
|
|
5424
|
+
const o = Fo(t);
|
|
5429
5425
|
return n === "Io" ? e.ordinalNumber(o, { unit: "week" }) : Ie(o, n.length);
|
|
5430
5426
|
},
|
|
5431
5427
|
// Day of the month
|
|
@@ -5688,7 +5684,7 @@ const Mt = {
|
|
|
5688
5684
|
return "Z";
|
|
5689
5685
|
switch (n) {
|
|
5690
5686
|
case "X":
|
|
5691
|
-
return
|
|
5687
|
+
return qn(o);
|
|
5692
5688
|
case "XXXX":
|
|
5693
5689
|
case "XX":
|
|
5694
5690
|
return Lt(o);
|
|
@@ -5703,7 +5699,7 @@ const Mt = {
|
|
|
5703
5699
|
const o = t.getTimezoneOffset();
|
|
5704
5700
|
switch (n) {
|
|
5705
5701
|
case "x":
|
|
5706
|
-
return
|
|
5702
|
+
return qn(o);
|
|
5707
5703
|
case "xxxx":
|
|
5708
5704
|
case "xx":
|
|
5709
5705
|
return Lt(o);
|
|
@@ -5720,7 +5716,7 @@ const Mt = {
|
|
|
5720
5716
|
case "O":
|
|
5721
5717
|
case "OO":
|
|
5722
5718
|
case "OOO":
|
|
5723
|
-
return "GMT" +
|
|
5719
|
+
return "GMT" + An(o, ":");
|
|
5724
5720
|
case "OOOO":
|
|
5725
5721
|
default:
|
|
5726
5722
|
return "GMT" + Lt(o, ":");
|
|
@@ -5733,7 +5729,7 @@ const Mt = {
|
|
|
5733
5729
|
case "z":
|
|
5734
5730
|
case "zz":
|
|
5735
5731
|
case "zzz":
|
|
5736
|
-
return "GMT" +
|
|
5732
|
+
return "GMT" + An(o, ":");
|
|
5737
5733
|
case "zzzz":
|
|
5738
5734
|
default:
|
|
5739
5735
|
return "GMT" + Lt(o, ":");
|
|
@@ -5750,18 +5746,18 @@ const Mt = {
|
|
|
5750
5746
|
return Ie(o, n.length);
|
|
5751
5747
|
}
|
|
5752
5748
|
};
|
|
5753
|
-
function
|
|
5749
|
+
function An(t, n = "") {
|
|
5754
5750
|
const e = t > 0 ? "-" : "+", o = Math.abs(t), r = Math.trunc(o / 60), i = o % 60;
|
|
5755
5751
|
return i === 0 ? e + String(r) : e + String(r) + n + Ie(i, 2);
|
|
5756
5752
|
}
|
|
5757
|
-
function
|
|
5753
|
+
function qn(t, n) {
|
|
5758
5754
|
return t % 60 === 0 ? (t > 0 ? "-" : "+") + Ie(Math.abs(t) / 60, 2) : Lt(t, n);
|
|
5759
5755
|
}
|
|
5760
5756
|
function Lt(t, n = "") {
|
|
5761
5757
|
const e = t > 0 ? "-" : "+", o = Math.abs(t), r = Ie(Math.trunc(o / 60), 2), i = Ie(o % 60, 2);
|
|
5762
5758
|
return e + r + n + i;
|
|
5763
5759
|
}
|
|
5764
|
-
const
|
|
5760
|
+
const Gn = (t, n) => {
|
|
5765
5761
|
switch (t) {
|
|
5766
5762
|
case "P":
|
|
5767
5763
|
return n.date({ width: "short" });
|
|
@@ -5773,7 +5769,7 @@ const zn = (t, n) => {
|
|
|
5773
5769
|
default:
|
|
5774
5770
|
return n.date({ width: "full" });
|
|
5775
5771
|
}
|
|
5776
|
-
},
|
|
5772
|
+
}, ko = (t, n) => {
|
|
5777
5773
|
switch (t) {
|
|
5778
5774
|
case "p":
|
|
5779
5775
|
return n.time({ width: "short" });
|
|
@@ -5788,7 +5784,7 @@ const zn = (t, n) => {
|
|
|
5788
5784
|
}, Ms = (t, n) => {
|
|
5789
5785
|
const e = t.match(/(P+)(p+)?/) || [], o = e[1], r = e[2];
|
|
5790
5786
|
if (!r)
|
|
5791
|
-
return
|
|
5787
|
+
return Gn(t, n);
|
|
5792
5788
|
let i;
|
|
5793
5789
|
switch (o) {
|
|
5794
5790
|
case "P":
|
|
@@ -5805,15 +5801,15 @@ const zn = (t, n) => {
|
|
|
5805
5801
|
i = n.dateTime({ width: "full" });
|
|
5806
5802
|
break;
|
|
5807
5803
|
}
|
|
5808
|
-
return i.replace("{{date}}",
|
|
5804
|
+
return i.replace("{{date}}", Gn(o, n)).replace("{{time}}", ko(r, n));
|
|
5809
5805
|
}, wn = {
|
|
5810
|
-
p:
|
|
5806
|
+
p: ko,
|
|
5811
5807
|
P: Ms
|
|
5812
5808
|
}, Es = /^D+$/, Is = /^Y+$/, Os = ["D", "DD", "YY", "YYYY"];
|
|
5813
|
-
function
|
|
5809
|
+
function Mo(t) {
|
|
5814
5810
|
return Es.test(t);
|
|
5815
5811
|
}
|
|
5816
|
-
function
|
|
5812
|
+
function Eo(t) {
|
|
5817
5813
|
return Is.test(t);
|
|
5818
5814
|
}
|
|
5819
5815
|
function Cn(t, n, e) {
|
|
@@ -5825,9 +5821,9 @@ function Ps(t, n, e) {
|
|
|
5825
5821
|
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${o} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
5826
5822
|
}
|
|
5827
5823
|
const Bs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Vs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ds = /^'([^]*?)'?$/, Ns = /''/g, Rs = /[a-zA-Z]/;
|
|
5828
|
-
function
|
|
5824
|
+
function Io(t, n, e) {
|
|
5829
5825
|
var d, u, p, m;
|
|
5830
|
-
const o = Ut(), r = o.locale ??
|
|
5826
|
+
const o = Ut(), r = o.locale ?? So, i = o.firstWeekContainsDate ?? ((u = (d = o.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, a = o.weekStartsOn ?? ((m = (p = o.locale) == null ? void 0 : p.options) == null ? void 0 : m.weekStartsOn) ?? 0, l = Xe(t);
|
|
5831
5827
|
if (!zl(l))
|
|
5832
5828
|
throw new RangeError("Invalid time value");
|
|
5833
5829
|
let s = n.match(Vs).map((c) => {
|
|
@@ -5843,7 +5839,7 @@ function Oo(t, n, e) {
|
|
|
5843
5839
|
const C = c[0];
|
|
5844
5840
|
if (C === "'")
|
|
5845
5841
|
return { isToken: !1, value: Ls(c) };
|
|
5846
|
-
if (
|
|
5842
|
+
if (jn[C])
|
|
5847
5843
|
return { isToken: !0, value: c };
|
|
5848
5844
|
if (C.match(Rs))
|
|
5849
5845
|
throw new RangeError(
|
|
@@ -5860,8 +5856,8 @@ function Oo(t, n, e) {
|
|
|
5860
5856
|
return s.map((c) => {
|
|
5861
5857
|
if (!c.isToken) return c.value;
|
|
5862
5858
|
const C = c.value;
|
|
5863
|
-
(
|
|
5864
|
-
const g =
|
|
5859
|
+
(Eo(C) || Mo(C)) && Cn(C, n, String(t));
|
|
5860
|
+
const g = jn[C[0]];
|
|
5865
5861
|
return g(l, C, r.localize, f);
|
|
5866
5862
|
}).join("");
|
|
5867
5863
|
}
|
|
@@ -5890,7 +5886,7 @@ function Hs(t, n) {
|
|
|
5890
5886
|
), e;
|
|
5891
5887
|
}
|
|
5892
5888
|
const js = 10;
|
|
5893
|
-
class
|
|
5889
|
+
class Oo {
|
|
5894
5890
|
constructor() {
|
|
5895
5891
|
B(this, "subPriority", 0);
|
|
5896
5892
|
}
|
|
@@ -5898,7 +5894,7 @@ class Po {
|
|
|
5898
5894
|
return !0;
|
|
5899
5895
|
}
|
|
5900
5896
|
}
|
|
5901
|
-
class As extends
|
|
5897
|
+
class As extends Oo {
|
|
5902
5898
|
constructor(n, e, o, r, i) {
|
|
5903
5899
|
super(), this.value = n, this.validateValue = e, this.setValue = o, this.priority = r, i && (this.subPriority = i);
|
|
5904
5900
|
}
|
|
@@ -5909,7 +5905,7 @@ class As extends Po {
|
|
|
5909
5905
|
return this.setValue(n, e, this.value, o);
|
|
5910
5906
|
}
|
|
5911
5907
|
}
|
|
5912
|
-
class qs extends
|
|
5908
|
+
class qs extends Oo {
|
|
5913
5909
|
constructor() {
|
|
5914
5910
|
super(...arguments);
|
|
5915
5911
|
B(this, "priority", js);
|
|
@@ -6033,7 +6029,7 @@ function ht(t, n) {
|
|
|
6033
6029
|
rest: n.slice(e[0].length)
|
|
6034
6030
|
};
|
|
6035
6031
|
}
|
|
6036
|
-
function
|
|
6032
|
+
function Po(t) {
|
|
6037
6033
|
return $e(Ae.anyDigitsSigned, t);
|
|
6038
6034
|
}
|
|
6039
6035
|
function je(t, n) {
|
|
@@ -6081,7 +6077,7 @@ function En(t) {
|
|
|
6081
6077
|
return 0;
|
|
6082
6078
|
}
|
|
6083
6079
|
}
|
|
6084
|
-
function
|
|
6080
|
+
function Bo(t, n) {
|
|
6085
6081
|
const e = n > 0, o = e ? n : 1 - n;
|
|
6086
6082
|
let r;
|
|
6087
6083
|
if (o <= 50)
|
|
@@ -6092,7 +6088,7 @@ function Vo(t, n) {
|
|
|
6092
6088
|
}
|
|
6093
6089
|
return e ? r : 1 - r;
|
|
6094
6090
|
}
|
|
6095
|
-
function
|
|
6091
|
+
function Vo(t) {
|
|
6096
6092
|
return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
|
|
6097
6093
|
}
|
|
6098
6094
|
class zs extends Me {
|
|
@@ -6126,7 +6122,7 @@ class zs extends Me {
|
|
|
6126
6122
|
set(e, o, r) {
|
|
6127
6123
|
const i = e.getFullYear();
|
|
6128
6124
|
if (r.isTwoDigitYear) {
|
|
6129
|
-
const l =
|
|
6125
|
+
const l = Bo(
|
|
6130
6126
|
r.year,
|
|
6131
6127
|
i
|
|
6132
6128
|
);
|
|
@@ -6181,7 +6177,7 @@ class Ys extends Me {
|
|
|
6181
6177
|
set(e, o, r, i) {
|
|
6182
6178
|
const a = Mn(e, i);
|
|
6183
6179
|
if (r.isTwoDigitYear) {
|
|
6184
|
-
const s =
|
|
6180
|
+
const s = Bo(
|
|
6185
6181
|
r.year,
|
|
6186
6182
|
a
|
|
6187
6183
|
);
|
|
@@ -6487,7 +6483,7 @@ class Zs extends Me {
|
|
|
6487
6483
|
}
|
|
6488
6484
|
}
|
|
6489
6485
|
function eu(t, n, e) {
|
|
6490
|
-
const o = Xe(t), r =
|
|
6486
|
+
const o = Xe(t), r = To(o, e) - n;
|
|
6491
6487
|
return o.setDate(o.getDate() - r * 7), o;
|
|
6492
6488
|
}
|
|
6493
6489
|
class tu extends Me {
|
|
@@ -6528,7 +6524,7 @@ class tu extends Me {
|
|
|
6528
6524
|
}
|
|
6529
6525
|
}
|
|
6530
6526
|
function nu(t, n) {
|
|
6531
|
-
const e = Xe(t), o =
|
|
6527
|
+
const e = Xe(t), o = Fo(e) - n;
|
|
6532
6528
|
return e.setDate(e.getDate() - o * 7), e;
|
|
6533
6529
|
}
|
|
6534
6530
|
class ou extends Me {
|
|
@@ -6614,7 +6610,7 @@ class au extends Me {
|
|
|
6614
6610
|
}
|
|
6615
6611
|
}
|
|
6616
6612
|
validate(e, o) {
|
|
6617
|
-
const r = e.getFullYear(), i =
|
|
6613
|
+
const r = e.getFullYear(), i = Vo(r), a = e.getMonth();
|
|
6618
6614
|
return i ? o >= 1 && o <= iu[a] : o >= 1 && o <= ru[a];
|
|
6619
6615
|
}
|
|
6620
6616
|
set(e, o, r) {
|
|
@@ -6657,7 +6653,7 @@ class lu extends Me {
|
|
|
6657
6653
|
}
|
|
6658
6654
|
validate(e, o) {
|
|
6659
6655
|
const r = e.getFullYear();
|
|
6660
|
-
return
|
|
6656
|
+
return Vo(r) ? o >= 1 && o <= 366 : o >= 1 && o <= 365;
|
|
6661
6657
|
}
|
|
6662
6658
|
set(e, o, r) {
|
|
6663
6659
|
return e.setMonth(0, r), e.setHours(0, 0, 0, 0), e;
|
|
@@ -6666,7 +6662,7 @@ class lu extends Me {
|
|
|
6666
6662
|
function In(t, n, e) {
|
|
6667
6663
|
var u, p, m, c;
|
|
6668
6664
|
const o = Ut(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((p = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : p.weekStartsOn) ?? o.weekStartsOn ?? ((c = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : c.weekStartsOn) ?? 0, i = Xe(t), a = i.getDay(), s = (n % 7 + 7) % 7, f = 7 - r, d = n < 0 || n > 6 ? n - (a + f) % 7 : (s + f) % 7 - (a + f) % 7;
|
|
6669
|
-
return
|
|
6665
|
+
return Co(i, d);
|
|
6670
6666
|
}
|
|
6671
6667
|
class su extends Me {
|
|
6672
6668
|
constructor() {
|
|
@@ -6837,7 +6833,7 @@ class cu extends Me {
|
|
|
6837
6833
|
}
|
|
6838
6834
|
function du(t, n) {
|
|
6839
6835
|
const e = Xe(t), o = Ws(e), r = n - o;
|
|
6840
|
-
return
|
|
6836
|
+
return Co(e, r);
|
|
6841
6837
|
}
|
|
6842
6838
|
class fu extends Me {
|
|
6843
6839
|
constructor() {
|
|
@@ -7287,7 +7283,7 @@ class Fu extends Me {
|
|
|
7287
7283
|
B(this, "incompatibleTokens", "*");
|
|
7288
7284
|
}
|
|
7289
7285
|
parse(e) {
|
|
7290
|
-
return
|
|
7286
|
+
return Po(e);
|
|
7291
7287
|
}
|
|
7292
7288
|
set(e, o, r) {
|
|
7293
7289
|
return [He(e, r * 1e3), { timestampIsSet: !0 }];
|
|
@@ -7300,7 +7296,7 @@ class Tu extends Me {
|
|
|
7300
7296
|
B(this, "incompatibleTokens", "*");
|
|
7301
7297
|
}
|
|
7302
7298
|
parse(e) {
|
|
7303
|
-
return
|
|
7299
|
+
return Po(e);
|
|
7304
7300
|
}
|
|
7305
7301
|
set(e, o, r) {
|
|
7306
7302
|
return [He(e, r), { timestampIsSet: !0 }];
|
|
@@ -7339,9 +7335,9 @@ const ku = {
|
|
|
7339
7335
|
t: new Fu(),
|
|
7340
7336
|
T: new Tu()
|
|
7341
7337
|
}, Mu = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Eu = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Iu = /^'([^]*?)'?$/, Ou = /''/g, Pu = /\S/, Bu = /[a-zA-Z]/;
|
|
7342
|
-
function
|
|
7338
|
+
function Do(t, n, e, o) {
|
|
7343
7339
|
var C, g, h, x;
|
|
7344
|
-
const r = $s(), i = r.locale ??
|
|
7340
|
+
const r = $s(), i = r.locale ?? So, a = r.firstWeekContainsDate ?? ((g = (C = r.locale) == null ? void 0 : C.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, l = r.weekStartsOn ?? ((x = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : x.weekStartsOn) ?? 0;
|
|
7345
7341
|
if (n === "")
|
|
7346
7342
|
return t === "" ? Xe(e) : He(e, NaN);
|
|
7347
7343
|
const s = {
|
|
@@ -7357,7 +7353,7 @@ function No(t, n, e, o) {
|
|
|
7357
7353
|
return y;
|
|
7358
7354
|
}).join("").match(Mu), u = [];
|
|
7359
7355
|
for (let y of d) {
|
|
7360
|
-
|
|
7356
|
+
Eo(y) && Cn(y, n, t), Mo(y) && Cn(y, n, t);
|
|
7361
7357
|
const w = y[0], _ = ku[w];
|
|
7362
7358
|
if (_) {
|
|
7363
7359
|
const { incompatibleTokens: S } = _;
|
|
@@ -7414,7 +7410,7 @@ function No(t, n, e, o) {
|
|
|
7414
7410
|
function Vu(t) {
|
|
7415
7411
|
return t.match(Iu)[1].replace(Ou, "'");
|
|
7416
7412
|
}
|
|
7417
|
-
class
|
|
7413
|
+
class No {
|
|
7418
7414
|
constructor(n = { value: "", displayFormat: "", valueFormat: "" }) {
|
|
7419
7415
|
B(this, "editorType", "date-picker");
|
|
7420
7416
|
B(this, "value");
|
|
@@ -7431,8 +7427,8 @@ class Ro {
|
|
|
7431
7427
|
}
|
|
7432
7428
|
getDisplayText() {
|
|
7433
7429
|
if (typeof this.value == "string" && this.value) {
|
|
7434
|
-
const n =
|
|
7435
|
-
return
|
|
7430
|
+
const n = Do(this.value, this.valueFormat, /* @__PURE__ */ new Date());
|
|
7431
|
+
return Io(n, this.displayFormat);
|
|
7436
7432
|
}
|
|
7437
7433
|
return this.getValue();
|
|
7438
7434
|
}
|
|
@@ -7467,7 +7463,7 @@ class un {
|
|
|
7467
7463
|
return !this.begin || !this.end;
|
|
7468
7464
|
}
|
|
7469
7465
|
}
|
|
7470
|
-
class
|
|
7466
|
+
class Ro {
|
|
7471
7467
|
constructor(n = { value: "", displayFormat: "", valueFormat: "" }) {
|
|
7472
7468
|
B(this, "editorType", "datetime-picker");
|
|
7473
7469
|
B(this, "value");
|
|
@@ -7484,8 +7480,8 @@ class Lo {
|
|
|
7484
7480
|
}
|
|
7485
7481
|
getDisplayText() {
|
|
7486
7482
|
if (typeof this.value == "string" && this.value) {
|
|
7487
|
-
const n =
|
|
7488
|
-
return
|
|
7483
|
+
const n = Do(this.value, this.valueFormat, /* @__PURE__ */ new Date());
|
|
7484
|
+
return Io(n, this.displayFormat);
|
|
7489
7485
|
}
|
|
7490
7486
|
return this.getValue();
|
|
7491
7487
|
}
|
|
@@ -7496,7 +7492,7 @@ class Lo {
|
|
|
7496
7492
|
return !this.value;
|
|
7497
7493
|
}
|
|
7498
7494
|
}
|
|
7499
|
-
class
|
|
7495
|
+
class Lo {
|
|
7500
7496
|
constructor(n = { value: "", valueList: [] }) {
|
|
7501
7497
|
B(this, "editorType", "combo-list");
|
|
7502
7498
|
B(this, "value");
|
|
@@ -7581,7 +7577,7 @@ class Du {
|
|
|
7581
7577
|
return !this.displayText && !this.value.length;
|
|
7582
7578
|
}
|
|
7583
7579
|
}
|
|
7584
|
-
class
|
|
7580
|
+
class $o {
|
|
7585
7581
|
constructor(n = { mapFields: [], value: "", valueField: "", isInputText: !1, helpId: "" }) {
|
|
7586
7582
|
B(this, "editorType", "lookup");
|
|
7587
7583
|
B(this, "helpId");
|
|
@@ -7609,7 +7605,7 @@ class Wo {
|
|
|
7609
7605
|
return !this.mapFields.length;
|
|
7610
7606
|
}
|
|
7611
7607
|
}
|
|
7612
|
-
class
|
|
7608
|
+
class Wo {
|
|
7613
7609
|
constructor(n = { value: "" }) {
|
|
7614
7610
|
B(this, "editorType", "month-picker");
|
|
7615
7611
|
B(this, "value");
|
|
@@ -7632,7 +7628,7 @@ class Ho {
|
|
|
7632
7628
|
return !this.value;
|
|
7633
7629
|
}
|
|
7634
7630
|
}
|
|
7635
|
-
class
|
|
7631
|
+
class Ho {
|
|
7636
7632
|
constructor(n = { begin: "", end: "" }) {
|
|
7637
7633
|
B(this, "editorType", "month-range");
|
|
7638
7634
|
B(this, "begin");
|
|
@@ -7656,7 +7652,7 @@ class jo {
|
|
|
7656
7652
|
return !this.begin || !this.end;
|
|
7657
7653
|
}
|
|
7658
7654
|
}
|
|
7659
|
-
class
|
|
7655
|
+
class jo {
|
|
7660
7656
|
constructor(n = { begin: null, end: null }) {
|
|
7661
7657
|
B(this, "editorType", "number-range");
|
|
7662
7658
|
B(this, "begin");
|
|
@@ -7683,7 +7679,7 @@ class Ao {
|
|
|
7683
7679
|
return this.begin == null && this.end == null;
|
|
7684
7680
|
}
|
|
7685
7681
|
}
|
|
7686
|
-
class
|
|
7682
|
+
class Ao {
|
|
7687
7683
|
constructor(n = { value: "" }) {
|
|
7688
7684
|
B(this, "editorType", "number-spinner");
|
|
7689
7685
|
B(this, "value");
|
|
@@ -7707,7 +7703,7 @@ class qo {
|
|
|
7707
7703
|
return this.value == null || isNaN(this.value);
|
|
7708
7704
|
}
|
|
7709
7705
|
}
|
|
7710
|
-
class
|
|
7706
|
+
class qo {
|
|
7711
7707
|
constructor(n = { value: null, valueList: [] }) {
|
|
7712
7708
|
B(this, "editorType", "radio-group");
|
|
7713
7709
|
B(this, "value");
|
|
@@ -7755,45 +7751,45 @@ class cn {
|
|
|
7755
7751
|
return !this.value;
|
|
7756
7752
|
}
|
|
7757
7753
|
}
|
|
7758
|
-
function
|
|
7754
|
+
function Go() {
|
|
7759
7755
|
function t(n, e) {
|
|
7760
7756
|
switch (n) {
|
|
7761
7757
|
case "check-box":
|
|
7762
|
-
return new
|
|
7758
|
+
return new bo(e);
|
|
7763
7759
|
case "combo-list":
|
|
7764
|
-
return new
|
|
7760
|
+
return new Lo(e);
|
|
7765
7761
|
case "combo-lookup":
|
|
7766
|
-
return new
|
|
7762
|
+
return new wo(e);
|
|
7767
7763
|
case "input-group":
|
|
7768
7764
|
return new Du(e);
|
|
7769
7765
|
case "date-picker":
|
|
7770
|
-
return new
|
|
7766
|
+
return new No(e);
|
|
7771
7767
|
case "date-range":
|
|
7772
7768
|
return new un(e);
|
|
7773
7769
|
case "datetime-picker":
|
|
7774
|
-
return new
|
|
7770
|
+
return new Ro(e);
|
|
7775
7771
|
case "datetime-range":
|
|
7776
7772
|
return new un(e);
|
|
7777
7773
|
case "lookup":
|
|
7778
|
-
return new
|
|
7774
|
+
return new $o(e);
|
|
7779
7775
|
case "month-picker":
|
|
7780
|
-
return new
|
|
7776
|
+
return new Wo(e);
|
|
7781
7777
|
case "month-range":
|
|
7782
|
-
return new
|
|
7778
|
+
return new Ho(e);
|
|
7783
7779
|
case "number-range":
|
|
7784
|
-
return new
|
|
7780
|
+
return new jo(e);
|
|
7785
7781
|
case "number-spinner":
|
|
7786
|
-
return new
|
|
7782
|
+
return new Ao(e);
|
|
7787
7783
|
case "radio-group":
|
|
7788
|
-
return new
|
|
7784
|
+
return new qo(e);
|
|
7789
7785
|
default:
|
|
7790
7786
|
return new cn(e);
|
|
7791
7787
|
}
|
|
7792
7788
|
}
|
|
7793
7789
|
return { createConditionValue: t };
|
|
7794
7790
|
}
|
|
7795
|
-
function
|
|
7796
|
-
const e = F(t.fields), o = F([]), r = /* @__PURE__ */ new Map(), { createConditionValue: i } =
|
|
7791
|
+
function zo(t, n) {
|
|
7792
|
+
const e = F(t.fields), o = F([]), r = /* @__PURE__ */ new Map(), { createConditionValue: i } = Go();
|
|
7797
7793
|
function a(d) {
|
|
7798
7794
|
switch (d.editor ? d.editor.type : "input-group") {
|
|
7799
7795
|
case "date-range":
|
|
@@ -7855,14 +7851,14 @@ function Nu(t, n, e) {
|
|
|
7855
7851
|
resizeObserver: o
|
|
7856
7852
|
};
|
|
7857
7853
|
}
|
|
7858
|
-
const
|
|
7854
|
+
const zn = /* @__PURE__ */ ze({
|
|
7859
7855
|
name: "FConditionFields",
|
|
7860
|
-
props:
|
|
7856
|
+
props: yo,
|
|
7861
7857
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
7862
7858
|
setup(t, n) {
|
|
7863
7859
|
const e = F(), o = F(t.key);
|
|
7864
7860
|
F(t.isControlInline);
|
|
7865
|
-
const r = F(t.conditions), i =
|
|
7861
|
+
const r = F(t.conditions), i = zo(t), {
|
|
7866
7862
|
initialConditionValue: a,
|
|
7867
7863
|
fieldMap: l,
|
|
7868
7864
|
loadFieldConfigs: s
|
|
@@ -7904,7 +7900,7 @@ const Yn = /* @__PURE__ */ ze({
|
|
|
7904
7900
|
g.value.end = b, c(g, b);
|
|
7905
7901
|
}, y = !1);
|
|
7906
7902
|
let w = ((E = h == null ? void 0 : h.appearance) == null ? void 0 : E.class) || m.value;
|
|
7907
|
-
return h != null && h.multiLineLabel && (w = w + " farris-group-multi-label"), M(
|
|
7903
|
+
return h != null && h.multiLineLabel && (w = w + " farris-group-multi-label"), M(Kn, {
|
|
7908
7904
|
id: x,
|
|
7909
7905
|
key: x,
|
|
7910
7906
|
customClass: w,
|
|
@@ -7919,11 +7915,11 @@ const Yn = /* @__PURE__ */ ze({
|
|
|
7919
7915
|
}, null);
|
|
7920
7916
|
});
|
|
7921
7917
|
}
|
|
7922
|
-
return () =>
|
|
7918
|
+
return () => Xn(M("div", {
|
|
7923
7919
|
class: p.value,
|
|
7924
7920
|
key: o.value,
|
|
7925
7921
|
ref: e
|
|
7926
|
-
}, [C()]), [[
|
|
7922
|
+
}, [C()]), [[rr("area-response")]]);
|
|
7927
7923
|
}
|
|
7928
7924
|
}), On = /* @__PURE__ */ new Map([
|
|
7929
7925
|
["appearance", Yt]
|
|
@@ -8192,7 +8188,7 @@ const Ku = "https://json-schema.org/draft/2020-12/schema", Ju = "https://farris-
|
|
|
8192
8188
|
"id",
|
|
8193
8189
|
"type",
|
|
8194
8190
|
"editor"
|
|
8195
|
-
],
|
|
8191
|
+
], Yo = {
|
|
8196
8192
|
$schema: Ku,
|
|
8197
8193
|
$id: Ju,
|
|
8198
8194
|
title: Zu,
|
|
@@ -8200,7 +8196,7 @@ const Ku = "https://json-schema.org/draft/2020-12/schema", Ju = "https://farris-
|
|
|
8200
8196
|
type: tc,
|
|
8201
8197
|
properties: nc,
|
|
8202
8198
|
required: oc
|
|
8203
|
-
},
|
|
8199
|
+
}, Uo = {
|
|
8204
8200
|
id: { type: String, default: "" },
|
|
8205
8201
|
customClass: { type: String, default: "" },
|
|
8206
8202
|
customStyle: { type: String, default: "" },
|
|
@@ -8218,8 +8214,8 @@ const Ku = "https://json-schema.org/draft/2020-12/schema", Ju = "https://farris-
|
|
|
8218
8214
|
errors: { type: Object, default: null }
|
|
8219
8215
|
};
|
|
8220
8216
|
_t(
|
|
8221
|
-
Xo,
|
|
8222
8217
|
Uo,
|
|
8218
|
+
Yo,
|
|
8223
8219
|
On,
|
|
8224
8220
|
void 0
|
|
8225
8221
|
);
|
|
@@ -8270,7 +8266,7 @@ function rc(t, n, e) {
|
|
|
8270
8266
|
}
|
|
8271
8267
|
function g(T, k) {
|
|
8272
8268
|
const { componentType: E } = T;
|
|
8273
|
-
let b =
|
|
8269
|
+
let b = oo(E, T, k);
|
|
8274
8270
|
e && e.onResolveNewComponentSchema && (b = e.onResolveNewComponentSchema(T, b));
|
|
8275
8271
|
const O = E.toLowerCase().replace(/-/g, "_");
|
|
8276
8272
|
return b && !b.id && b.type === E && (b.id = `${O}_${Math.random().toString().slice(2, 6)}`), b;
|
|
@@ -8374,9 +8370,9 @@ const ic = {
|
|
|
8374
8370
|
}, [o.value])]);
|
|
8375
8371
|
}
|
|
8376
8372
|
}), ae = {}, le = {}, se = {}, ue = {};
|
|
8377
|
-
let
|
|
8373
|
+
let Yn = !1;
|
|
8378
8374
|
function lc() {
|
|
8379
|
-
|
|
8375
|
+
Yn || (Yn = !0, yi.register(ae, le, se, ue), gi.register(ae, le, se, ue), bi.register(ae, le, se, ue), wi.register(ae, le, se, ue), Ci.register(ae, le, se, ue), xi.register(ae, le, se, ue), $n.register(ae, le, se, ue), Wn.register(ae, le, se, ue), $n.register(ae, le, se, ue), Wn.register(ae, le, se, ue), yn.register(ae, le, se, ue), _i.register(ae, le, se, ue), Si.register(ae, le, se, ue), Ti.register(ae, le, se, ue), Fi.register(ae, le, se, ue), ki.register(ae, le, se, ue), Ei.register(ae, le, se, ue), Ii.register(ae, le, se, ue), wr.register(ae, le, se, ue), Oi.register(ae, le, se, ue), wa.register(ae, le, se, ue), ci.register(ae, le, se, ue), Pi.register(ae, le, se, ue), ma.register(ae, le, se, ue), Vi.register(ae, le, se, ue), Di.register(ae, le, se, ue), Ni.register(ae, le, se, ue), Li.register(ae, le, se, ue), Ri.register(ae, le, se, ue), $i.register(ae, le, se, ue), Hi.register(ae, le, se, ue), ji.register(ae, le, se, ue), Ai.register(ae, le, se, ue), qi.register(ae, le, se, ue), si.register(ae, le, se, ue), Gi.register(ae, le, se, ue), zi.register(ae, le, se, ue), fi.register(ae, le, se, ue), Yi.register(ae, le, se, ue), vr.register(ae, le, se, ue), Ui.register(ae, le, se, ue), Xi.register(ae, le, se, ue), Ki.register(ae, le, se, ue), Ji.register(ae, le, se, ue), Qi.register(ae, le, se, ue), da.register(ae, le, se), mi.register(ae, le, se, ue), Zi.register(ae, le, se, ue), ea.register(ae, le, se, ue), ta.register(ae, le, se, ue), na.register(ae, le, se, ue), oa.register(ae, le, se, ue), va.register(ae, le, se, ue), li.register(ae, le, se, ue), eo.register(ae, le, se, ue), ra.register(ae, le, se, ue), ia.register(ae, le, se, ue), Zn.register(ae, le, se, ue), aa.register(ae, le, se, ue), sa.register(ae, le, se, ue), la.register(ae, le, se, ue), ua.register(ae, le, se, ue), ca.register(ae, le, se, ue), fa.register(ae, le, se, ue), Bi.register(ae, le, se, ue), pa.register(ae, le, se, ue), ha.register(ae, le, se, ue), ga.register(ae, le, se, ue), yr.register(ae, le, se, ue), ya.register(ae, le, se, ue), ba.register(ae, le, se, ue), Ca.register(ae, le, se, ue), xa.register(ae, le, se, ue));
|
|
8380
8376
|
}
|
|
8381
8377
|
function sc() {
|
|
8382
8378
|
lc();
|
|
@@ -8526,7 +8522,7 @@ const uc = {
|
|
|
8526
8522
|
}
|
|
8527
8523
|
}), dc = /* @__PURE__ */ ze({
|
|
8528
8524
|
name: "FDynamicFormGroup",
|
|
8529
|
-
props:
|
|
8525
|
+
props: Uo,
|
|
8530
8526
|
emits: ["change", "update:modelValue"],
|
|
8531
8527
|
setup(t, n) {
|
|
8532
8528
|
var S;
|
|
@@ -8607,7 +8603,7 @@ const uc = {
|
|
|
8607
8603
|
};
|
|
8608
8604
|
_t(
|
|
8609
8605
|
mc,
|
|
8610
|
-
|
|
8606
|
+
Yo,
|
|
8611
8607
|
On,
|
|
8612
8608
|
void 0
|
|
8613
8609
|
);
|
|
@@ -9335,7 +9331,7 @@ function Wc(t, n, e) {
|
|
|
9335
9331
|
resetTranslate: w
|
|
9336
9332
|
};
|
|
9337
9333
|
}
|
|
9338
|
-
function
|
|
9334
|
+
function Xo(t, n) {
|
|
9339
9335
|
if (t) {
|
|
9340
9336
|
const e = (o) => {
|
|
9341
9337
|
o.key.toLowerCase() === t.toLowerCase() && n({ event: o, key: t });
|
|
@@ -9348,7 +9344,7 @@ function Qo(t, n) {
|
|
|
9348
9344
|
function Hc(t, n) {
|
|
9349
9345
|
const e = F(t.enableEsc);
|
|
9350
9346
|
let o = null;
|
|
9351
|
-
return e.value ? (o =
|
|
9347
|
+
return e.value ? (o = Xo("Escape", (r) => {
|
|
9352
9348
|
n.emit("esc", { event: r.event, type: "esc" });
|
|
9353
9349
|
}), {
|
|
9354
9350
|
remove: o
|
|
@@ -9357,7 +9353,7 @@ function Hc(t, n) {
|
|
|
9357
9353
|
function jc(t, n) {
|
|
9358
9354
|
const e = F(t.enableEnter);
|
|
9359
9355
|
let o = null;
|
|
9360
|
-
return e.value ? (o =
|
|
9356
|
+
return e.value ? (o = Xo("Enter", (r) => {
|
|
9361
9357
|
n.emit("enter", { event: r.event, type: "enter" });
|
|
9362
9358
|
}), {
|
|
9363
9359
|
remove: o
|
|
@@ -9465,7 +9461,7 @@ const Jt = /* @__PURE__ */ ze({
|
|
|
9465
9461
|
display: s.value ? "" : "none"
|
|
9466
9462
|
};
|
|
9467
9463
|
return J["pointer-events"] = L.value ? "auto" : "none", J;
|
|
9468
|
-
}),
|
|
9464
|
+
}), me = N(() => ({
|
|
9469
9465
|
"f-icon": !0,
|
|
9470
9466
|
modal_maximize: !0,
|
|
9471
9467
|
modalrevert: O.value
|
|
@@ -9498,13 +9494,13 @@ const Jt = /* @__PURE__ */ ze({
|
|
|
9498
9494
|
function ce(J) {
|
|
9499
9495
|
J.width && (e.value = J.width), J.height && (o.value = J.height), J.buttons && (v.value = J.buttons), J.title && (h.value = J.title);
|
|
9500
9496
|
}
|
|
9501
|
-
let q = null,
|
|
9502
|
-
|
|
9497
|
+
let q = null, oe = null;
|
|
9498
|
+
ir(() => {
|
|
9503
9499
|
w.value = R();
|
|
9504
9500
|
}), gt(() => {
|
|
9505
|
-
b.value && !x.value && (x.value = b.value.parentElement, G.value = x.value, Q(E.value, b.value, G.value)), X.value && document.body.classList.add("modal-open"), q = Hc(t, n),
|
|
9501
|
+
b.value && !x.value && (x.value = b.value.parentElement, G.value = x.value, Q(E.value, b.value, G.value)), X.value && document.body.classList.add("modal-open"), q = Hc(t, n), oe = jc(t, n);
|
|
9506
9502
|
}), en(() => {
|
|
9507
|
-
H && H(), q && q.remove(),
|
|
9503
|
+
H && H(), q && q.remove(), oe && oe.remove();
|
|
9508
9504
|
}), n.expose({
|
|
9509
9505
|
modalElementRef: b,
|
|
9510
9506
|
updateModalOptions: ce,
|
|
@@ -9522,7 +9518,7 @@ const Jt = /* @__PURE__ */ ze({
|
|
|
9522
9518
|
class: "f-btn-icon f-bare",
|
|
9523
9519
|
style: "pointer-events: auto;"
|
|
9524
9520
|
}, [M("span", {
|
|
9525
|
-
class:
|
|
9521
|
+
class: me.value
|
|
9526
9522
|
}, null)]), d.value && M("li", {
|
|
9527
9523
|
class: "f-btn-icon f-bare",
|
|
9528
9524
|
onClick: (J) => _(J, !1),
|
|
@@ -9595,10 +9591,10 @@ const Jt = /* @__PURE__ */ ze({
|
|
|
9595
9591
|
src: c.value
|
|
9596
9592
|
}, null)]), it()]), !l.value && b.value && !O.value && V(b.value)]);
|
|
9597
9593
|
}
|
|
9598
|
-
return () => M(
|
|
9594
|
+
return () => M(Qn, {
|
|
9599
9595
|
to: "body"
|
|
9600
9596
|
}, {
|
|
9601
|
-
default: () => [X.value && M(
|
|
9597
|
+
default: () => [X.value && M(Un, {
|
|
9602
9598
|
name: "fade",
|
|
9603
9599
|
appear: !0
|
|
9604
9600
|
}, {
|
|
@@ -9612,7 +9608,7 @@ const Jt = /* @__PURE__ */ ze({
|
|
|
9612
9608
|
});
|
|
9613
9609
|
}
|
|
9614
9610
|
});
|
|
9615
|
-
function
|
|
9611
|
+
function Qo(t) {
|
|
9616
9612
|
if (t.content && t.content.render)
|
|
9617
9613
|
return t.content.render;
|
|
9618
9614
|
if (t.render && typeof t.render == "function")
|
|
@@ -9631,7 +9627,7 @@ function Ac(t) {
|
|
|
9631
9627
|
}), c = t.closedCallback || ((y) => {
|
|
9632
9628
|
}), C = t.resizeHandle || ((y) => {
|
|
9633
9629
|
}), g = t.stopMoveHandle || ((y) => {
|
|
9634
|
-
}), h =
|
|
9630
|
+
}), h = Qo(t), x = (y) => {
|
|
9635
9631
|
d.value = !1, e.unmount(), c(y);
|
|
9636
9632
|
};
|
|
9637
9633
|
return gt(() => {
|
|
@@ -9663,7 +9659,7 @@ function Ac(t) {
|
|
|
9663
9659
|
});
|
|
9664
9660
|
return document.body.appendChild(n), e.mount(n), e;
|
|
9665
9661
|
}
|
|
9666
|
-
class
|
|
9662
|
+
class Ko {
|
|
9667
9663
|
constructor(n) {
|
|
9668
9664
|
B(this, "appContext", null);
|
|
9669
9665
|
B(this, "modalRef", F());
|
|
@@ -9704,7 +9700,7 @@ class Jo {
|
|
|
9704
9700
|
open(n) {
|
|
9705
9701
|
const e = document.createDocumentFragment();
|
|
9706
9702
|
n.showMaxButton && n.fitContent && (n.showMaxButton = !1);
|
|
9707
|
-
const o =
|
|
9703
|
+
const o = ar(Object.assign({
|
|
9708
9704
|
title: "",
|
|
9709
9705
|
showButtons: !0,
|
|
9710
9706
|
showHeader: !0
|
|
@@ -9715,7 +9711,7 @@ class Jo {
|
|
|
9715
9711
|
}), f = n.stopMoveHandle || ((_) => {
|
|
9716
9712
|
});
|
|
9717
9713
|
let d;
|
|
9718
|
-
const u =
|
|
9714
|
+
const u = Qo(o.value), p = (_) => {
|
|
9719
9715
|
var v;
|
|
9720
9716
|
r.value = !1;
|
|
9721
9717
|
const S = (v = _ == null ? void 0 : _.target) == null ? void 0 : v.classList.contains("modal_close");
|
|
@@ -9751,7 +9747,7 @@ class Jo {
|
|
|
9751
9747
|
default: () => [u && u(this.app)]
|
|
9752
9748
|
});
|
|
9753
9749
|
return d = ((_) => {
|
|
9754
|
-
const S =
|
|
9750
|
+
const S = lr(x, _);
|
|
9755
9751
|
return S.appContext = this.appContext, fn(S, e), S;
|
|
9756
9752
|
})({
|
|
9757
9753
|
...o.value
|
|
@@ -9761,7 +9757,7 @@ class Jo {
|
|
|
9761
9757
|
o.value = {
|
|
9762
9758
|
...o.value,
|
|
9763
9759
|
..._
|
|
9764
|
-
}, d && fn(
|
|
9760
|
+
}, d && fn(sr(d, {
|
|
9765
9761
|
...o
|
|
9766
9762
|
}), e);
|
|
9767
9763
|
},
|
|
@@ -9771,11 +9767,11 @@ class Jo {
|
|
|
9771
9767
|
};
|
|
9772
9768
|
}
|
|
9773
9769
|
}
|
|
9774
|
-
const
|
|
9770
|
+
const Jo = Symbol("FModalService");
|
|
9775
9771
|
Jt.install = (t) => {
|
|
9776
9772
|
t.component(Jt.name, Jt);
|
|
9777
|
-
const n = new
|
|
9778
|
-
t.provide(
|
|
9773
|
+
const n = new Ko(t);
|
|
9774
|
+
t.provide(Jo, n), t.provide("FModalService", n);
|
|
9779
9775
|
};
|
|
9780
9776
|
class Et {
|
|
9781
9777
|
static show(n) {
|
|
@@ -9784,7 +9780,7 @@ class Et {
|
|
|
9784
9780
|
}), o = !1, r = e.type === "error" || e.type === "prompt", i = e.type === "error" ? "错误提示" : e.type === "prompt" && e.title || "", a = e.acceptCallback || (() => {
|
|
9785
9781
|
}), l = e.rejectCallback || (() => {
|
|
9786
9782
|
});
|
|
9787
|
-
let s = null, f = new
|
|
9783
|
+
let s = null, f = new Ko(s);
|
|
9788
9784
|
const d = () => {
|
|
9789
9785
|
s && (s == null || s.destroy(), f = null);
|
|
9790
9786
|
};
|
|
@@ -9943,7 +9939,7 @@ function zc(t, n, e) {
|
|
|
9943
9939
|
}
|
|
9944
9940
|
return { getCompareOperators: r };
|
|
9945
9941
|
}
|
|
9946
|
-
function
|
|
9942
|
+
function Zo() {
|
|
9947
9943
|
const t = F({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), n = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map();
|
|
9948
9944
|
let o = 0;
|
|
9949
9945
|
function r() {
|
|
@@ -10158,15 +10154,15 @@ function Yc(t, n, e) {
|
|
|
10158
10154
|
}
|
|
10159
10155
|
const vn = /* @__PURE__ */ ze({
|
|
10160
10156
|
name: "FConditionList",
|
|
10161
|
-
props:
|
|
10157
|
+
props: yo,
|
|
10162
10158
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
10163
10159
|
setup(t, n) {
|
|
10164
|
-
const e = F(t.key), o = F(t.conditions), r =
|
|
10160
|
+
const e = F(t.key), o = F(t.conditions), r = zo(t), {
|
|
10165
10161
|
convertToSingleControl: i,
|
|
10166
10162
|
fields: a,
|
|
10167
10163
|
fieldMap: l,
|
|
10168
10164
|
loadFieldConfigs: s
|
|
10169
|
-
} = r, f =
|
|
10165
|
+
} = r, f = Zo(), {
|
|
10170
10166
|
addCondition: d,
|
|
10171
10167
|
changeGroupRelation: u,
|
|
10172
10168
|
getConditions: p,
|
|
@@ -10179,7 +10175,7 @@ const vn = /* @__PURE__ */ ze({
|
|
|
10179
10175
|
unGroup: y
|
|
10180
10176
|
} = f, {
|
|
10181
10177
|
createConditionValue: w
|
|
10182
|
-
} =
|
|
10178
|
+
} = Go(), _ = Yc(t, n, f), {
|
|
10183
10179
|
selectedItems: S,
|
|
10184
10180
|
toggleSelect: v
|
|
10185
10181
|
} = _, {
|
|
@@ -10323,7 +10319,7 @@ const vn = /* @__PURE__ */ ze({
|
|
|
10323
10319
|
}
|
|
10324
10320
|
});
|
|
10325
10321
|
vn.install = (t) => {
|
|
10326
|
-
t.component(
|
|
10322
|
+
t.component(zn.name, zn).component(vn.name, vn);
|
|
10327
10323
|
};
|
|
10328
10324
|
const Uc = [
|
|
10329
10325
|
"equal",
|
|
@@ -10457,37 +10453,37 @@ const Uc = [
|
|
|
10457
10453
|
["text", Xc]
|
|
10458
10454
|
]);
|
|
10459
10455
|
function td() {
|
|
10460
|
-
const t = F([]), n = /* @__PURE__ */ new Map(), { loadConditionGroup: e } =
|
|
10456
|
+
const t = F([]), n = /* @__PURE__ */ new Map(), { loadConditionGroup: e } = Zo();
|
|
10461
10457
|
function o(g, h) {
|
|
10462
10458
|
switch (g) {
|
|
10463
10459
|
case "check-box":
|
|
10464
|
-
return new
|
|
10460
|
+
return new bo({ value: h });
|
|
10465
10461
|
case "combo-list":
|
|
10466
|
-
return new
|
|
10462
|
+
return new Lo({ value: h });
|
|
10467
10463
|
case "combo-lookup":
|
|
10468
|
-
return new
|
|
10464
|
+
return new wo({ value: h });
|
|
10469
10465
|
case "input-group":
|
|
10470
10466
|
return new cn({ value: h });
|
|
10471
10467
|
case "date-picker":
|
|
10472
|
-
return new
|
|
10468
|
+
return new No({ value: h });
|
|
10473
10469
|
case "date-range":
|
|
10474
10470
|
return new un({ value: h });
|
|
10475
10471
|
case "datetime-picker":
|
|
10476
|
-
return new
|
|
10472
|
+
return new Ro({ value: h });
|
|
10477
10473
|
case "datetime-range":
|
|
10478
10474
|
return new un({ value: h });
|
|
10479
10475
|
case "lookup":
|
|
10480
|
-
return new
|
|
10476
|
+
return new $o({ value: h });
|
|
10481
10477
|
case "month-picker":
|
|
10482
|
-
return new
|
|
10478
|
+
return new Wo({ value: h });
|
|
10483
10479
|
case "month-range":
|
|
10484
|
-
return new
|
|
10480
|
+
return new Ho({ value: h });
|
|
10485
10481
|
case "number-range":
|
|
10486
|
-
return new
|
|
10482
|
+
return new jo({ value: h });
|
|
10487
10483
|
case "number-spinner":
|
|
10488
|
-
return new
|
|
10484
|
+
return new Ao({ value: h });
|
|
10489
10485
|
case "radio-group":
|
|
10490
|
-
return new
|
|
10486
|
+
return new qo({ value: h });
|
|
10491
10487
|
default:
|
|
10492
10488
|
return new cn({ value: h });
|
|
10493
10489
|
}
|
|
@@ -10580,69 +10576,69 @@ function od(t, n, e, o, r, i, a, l, s) {
|
|
|
10580
10576
|
const re = d.value;
|
|
10581
10577
|
if (re.length <= 0)
|
|
10582
10578
|
return 0;
|
|
10583
|
-
const
|
|
10584
|
-
return
|
|
10579
|
+
const fe = p.value < re.length ? re[p.value] : re[re.length - 1];
|
|
10580
|
+
return fe.__fv_data_position__ > re.length * h ? re.length * h : (fe.__fv_data_position__ || 0) + (fe.__fv_data_height__ || 0) + Math.max(re.length - 1 - p.value, 0) * h;
|
|
10585
10581
|
}
|
|
10586
10582
|
const I = N(() => {
|
|
10587
10583
|
const re = V();
|
|
10588
10584
|
d.value;
|
|
10589
|
-
let
|
|
10585
|
+
let fe = v.value / Math.max(re, v.value), ge = Math.floor(fe * v.value);
|
|
10590
10586
|
for (; v.value > 0 && ge < E; )
|
|
10591
|
-
|
|
10587
|
+
fe *= b, ge = Math.floor(fe * v.value);
|
|
10592
10588
|
return ge;
|
|
10593
10589
|
}), P = N(() => Math.floor(T.value / Math.max(c.value, T.value) * S.value)), G = 0, j = 0, L = N(() => S.value - (C.value + c.value + g.value + l.value));
|
|
10594
10590
|
function H(re) {
|
|
10595
10591
|
const ge = Math.floor(re / h) + 1, Ve = d.value;
|
|
10596
10592
|
return Ve.length > ge ? Ve[ge].__fv_visible_index__ - 1 : 0;
|
|
10597
10593
|
}
|
|
10598
|
-
function Q(re,
|
|
10599
|
-
let Ve = re, Ye =
|
|
10600
|
-
const et =
|
|
10594
|
+
function Q(re, fe, ge) {
|
|
10595
|
+
let Ve = re, Ye = fe;
|
|
10596
|
+
const et = fe - re + 1;
|
|
10601
10597
|
if (et < a + i.value + a) {
|
|
10602
|
-
const U = a + i.value + a - et,
|
|
10603
|
-
if (
|
|
10598
|
+
const U = a + i.value + a - et, pe = fe + U <= ge, Ce = 0 + U <= re;
|
|
10599
|
+
if (pe)
|
|
10604
10600
|
Ye += U, _ = Ye;
|
|
10605
10601
|
else if (Ce)
|
|
10606
10602
|
Ve -= U, w = Ve;
|
|
10607
10603
|
else {
|
|
10608
|
-
const Ee = ge -
|
|
10609
|
-
Ye = Math.min(
|
|
10604
|
+
const Ee = ge - fe, $ = U - Ee;
|
|
10605
|
+
Ye = Math.min(fe + Ee, ge), Ve = Math.max(re - $, 0);
|
|
10610
10606
|
}
|
|
10611
10607
|
}
|
|
10612
10608
|
return { actualStart: Ve, actualEnd: Ye };
|
|
10613
10609
|
}
|
|
10614
10610
|
function R(re) {
|
|
10615
10611
|
var Ee, $;
|
|
10616
|
-
const
|
|
10617
|
-
if (!
|
|
10612
|
+
const fe = d.value;
|
|
10613
|
+
if (!fe.length) {
|
|
10618
10614
|
e.value = [];
|
|
10619
10615
|
return;
|
|
10620
10616
|
}
|
|
10621
|
-
const ge = (Ee = t.pagination) != null && Ee.enable ? 0 : Math.max(w - a, 0), Ve =
|
|
10617
|
+
const ge = (Ee = t.pagination) != null && Ee.enable ? 0 : Math.max(w - a, 0), Ve = fe[fe.length - 1].__fv_visible_index__, Ye = ($ = t.pagination) != null && $.enable ? fe.length - 1 : Math.min(_ + a, Ve), { actualStart: et, actualEnd: U } = Q(ge, Ye, Ve), pe = fe[et - 1], Ce = u(et, U, pe, re);
|
|
10622
10618
|
Ce.length && (e.value = [...Ce]);
|
|
10623
10619
|
}
|
|
10624
10620
|
const D = N(() => V() > v.value), X = N(() => Math.floor(c.value) > T.value);
|
|
10625
|
-
function A(re,
|
|
10621
|
+
function A(re, fe) {
|
|
10626
10622
|
let ge = re;
|
|
10627
10623
|
const Ve = ge > G, Ye = D.value;
|
|
10628
|
-
Ye && ge < v.value -
|
|
10624
|
+
Ye && ge < v.value - fe && (ge = v.value - fe), (!Ye || Ve) && (ge = G), x.value !== ge && (x.value = ge);
|
|
10629
10625
|
}
|
|
10630
10626
|
function W() {
|
|
10631
10627
|
k.value && (w = H(Math.abs(x.value)), _ = w + i.value - 1, (w < m.value || _ > p.value - a / 2) && R());
|
|
10632
10628
|
}
|
|
10633
10629
|
function z(re) {
|
|
10634
|
-
let
|
|
10635
|
-
|
|
10630
|
+
let fe = x.value + re;
|
|
10631
|
+
fe > G && (fe = G);
|
|
10636
10632
|
const ge = V();
|
|
10637
|
-
A(
|
|
10633
|
+
A(fe, ge), W();
|
|
10638
10634
|
}
|
|
10639
10635
|
function K(re) {
|
|
10640
10636
|
if (!X.value) {
|
|
10641
10637
|
y.value = 0;
|
|
10642
10638
|
return;
|
|
10643
10639
|
}
|
|
10644
|
-
let
|
|
10645
|
-
|
|
10640
|
+
let fe = y.value + re;
|
|
10641
|
+
fe > j && (fe = j), fe < L.value && (fe = L.value), y.value !== fe && (y.value = fe);
|
|
10646
10642
|
}
|
|
10647
10643
|
function ie() {
|
|
10648
10644
|
Math.abs(y.value) + T.value > c.value && (y.value = Math.min(T.value - c.value, 0));
|
|
@@ -10650,25 +10646,25 @@ function od(t, n, e, o, r, i, a, l, s) {
|
|
|
10650
10646
|
function Z() {
|
|
10651
10647
|
x.value = 0, w = 0, _ = i.value - 1, R();
|
|
10652
10648
|
}
|
|
10653
|
-
function
|
|
10649
|
+
function me() {
|
|
10654
10650
|
const re = V();
|
|
10655
10651
|
A(x.value, re);
|
|
10656
10652
|
}
|
|
10657
10653
|
Fe([T, c], () => {
|
|
10658
10654
|
K(0);
|
|
10659
|
-
}), Fe(v, (re,
|
|
10660
|
-
re !==
|
|
10655
|
+
}), Fe(v, (re, fe) => {
|
|
10656
|
+
re !== fe && re >= f.value.length * h && z(0);
|
|
10661
10657
|
});
|
|
10662
10658
|
function ve(re) {
|
|
10663
|
-
let { deltaX:
|
|
10664
|
-
return typeof
|
|
10659
|
+
let { deltaX: fe } = re, ge = -1 * re.deltaY;
|
|
10660
|
+
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 };
|
|
10665
10661
|
}
|
|
10666
10662
|
function _e(re) {
|
|
10667
10663
|
if (t.disabled || !D.value || re.target.tagName === "TEXTAREA")
|
|
10668
10664
|
return;
|
|
10669
10665
|
re.preventDefault(), re.stopPropagation();
|
|
10670
|
-
const { deltaX:
|
|
10671
|
-
z(ge), K(
|
|
10666
|
+
const { deltaX: fe, deltaY: ge } = ve(re);
|
|
10667
|
+
z(ge), K(fe);
|
|
10672
10668
|
}
|
|
10673
10669
|
const Be = N(() => ({
|
|
10674
10670
|
height: `${f.value.length * h}px`,
|
|
@@ -10686,7 +10682,7 @@ function od(t, n, e, o, r, i, a, l, s) {
|
|
|
10686
10682
|
height: `${f.value.length * h}px`,
|
|
10687
10683
|
width: `${g.value}px`,
|
|
10688
10684
|
transform: `translateY(${x.value}px)`
|
|
10689
|
-
})),
|
|
10685
|
+
})), oe = N(() => ({
|
|
10690
10686
|
transform: `translateY(${x.value}px)`
|
|
10691
10687
|
})), be = N(() => ({
|
|
10692
10688
|
height: `${f.value.length * h}px`,
|
|
@@ -10712,18 +10708,18 @@ function od(t, n, e, o, r, i, a, l, s) {
|
|
|
10712
10708
|
})), Oe = F(!1), Ge = F(-1), Ne = F(-1), st = F();
|
|
10713
10709
|
function bt(re) {
|
|
10714
10710
|
if (Oe.value && Ne.value !== -1) {
|
|
10715
|
-
const
|
|
10716
|
-
if (Math.abs(
|
|
10717
|
-
const Ve =
|
|
10711
|
+
const fe = Ne.value - re.pageX, ge = S.value - P.value;
|
|
10712
|
+
if (Math.abs(fe) <= ge) {
|
|
10713
|
+
const Ve = fe / (T.value - P.value) * (c.value - T.value);
|
|
10718
10714
|
K(Ve), Ne.value = re.pageX;
|
|
10719
10715
|
}
|
|
10720
10716
|
}
|
|
10721
10717
|
}
|
|
10722
10718
|
function St(re) {
|
|
10723
10719
|
if (Oe.value && Ge.value !== -1) {
|
|
10724
|
-
const
|
|
10725
|
-
if (Math.abs(
|
|
10726
|
-
const Ye =
|
|
10720
|
+
const fe = Ge.value - re.pageY, ge = V(), Ve = ge - I.value;
|
|
10721
|
+
if (Math.abs(fe) <= Ve) {
|
|
10722
|
+
const Ye = fe / (v.value - I.value) * (ge - v.value);
|
|
10727
10723
|
z(Ye), Ge.value = re.pageY;
|
|
10728
10724
|
}
|
|
10729
10725
|
}
|
|
@@ -10731,16 +10727,16 @@ function od(t, n, e, o, r, i, a, l, s) {
|
|
|
10731
10727
|
function pt(re) {
|
|
10732
10728
|
Oe.value = !1, Ge.value = -1, Ne.value = -1, document.removeEventListener("mouseup", pt), O && (document.removeEventListener("mousemove", O), O = null), document.body.style.userSelect = "", st.value && (st.value.style.opacity = null);
|
|
10733
10729
|
}
|
|
10734
|
-
function Bt(re,
|
|
10730
|
+
function Bt(re, fe, ge) {
|
|
10735
10731
|
var et;
|
|
10736
10732
|
Oe.value = !0;
|
|
10737
10733
|
const Ve = (et = re.target) == null ? void 0 : et.parentElement;
|
|
10738
|
-
Ve && (Ve.style.opacity = "1", st.value = Ve), O || (O =
|
|
10734
|
+
Ve && (Ve.style.opacity = "1", st.value = Ve), O || (O = pr(ge === "horizontal" ? bt : St, 50)), ge === "vertical" && (Ge.value = re.pageY), ge === "horizontal" && (Ne.value = re.pageX), fe.value && (fe.value, document.addEventListener("mousemove", O), document.addEventListener("mouseup", pt), document.body.style.userSelect = "none");
|
|
10739
10735
|
}
|
|
10740
10736
|
function Ft(re) {
|
|
10741
|
-
const
|
|
10737
|
+
const fe = f.value.length * h - v.value;
|
|
10742
10738
|
let ge = re * h;
|
|
10743
|
-
ge >=
|
|
10739
|
+
ge >= fe && (ge = fe), z(-ge - x.value);
|
|
10744
10740
|
}
|
|
10745
10741
|
function wt() {
|
|
10746
10742
|
Ft(f.value.length);
|
|
@@ -10767,10 +10763,10 @@ function od(t, n, e, o, r, i, a, l, s) {
|
|
|
10767
10763
|
resetScroll: Z,
|
|
10768
10764
|
rightFixedGridDataStyle: q,
|
|
10769
10765
|
rightFixedGridHeaderColumnsStyle: it,
|
|
10770
|
-
rightFixedGridMergedDataStyle:
|
|
10766
|
+
rightFixedGridMergedDataStyle: oe,
|
|
10771
10767
|
shouldShowHorizontalScrollbar: X,
|
|
10772
10768
|
shouldShowVirticalScrollbar: D,
|
|
10773
|
-
updateVirticalScroll:
|
|
10769
|
+
updateVirticalScroll: me,
|
|
10774
10770
|
updateVisibleRowsOnLatestVisibleScope: W,
|
|
10775
10771
|
verticalScrollThumbStyle: ft,
|
|
10776
10772
|
viewPortWidth: T,
|
|
@@ -10782,7 +10778,7 @@ function od(t, n, e, o, r, i, a, l, s) {
|
|
|
10782
10778
|
}
|
|
10783
10779
|
function rd(t) {
|
|
10784
10780
|
var i;
|
|
10785
|
-
const { isUndefined: n } =
|
|
10781
|
+
const { isUndefined: n } = Sr(), e = ((i = t.rowOption) == null ? void 0 : i.height) || 28;
|
|
10786
10782
|
function o(a, l) {
|
|
10787
10783
|
const s = a.pre;
|
|
10788
10784
|
if (s) {
|
|
@@ -10837,7 +10833,7 @@ function ad() {
|
|
|
10837
10833
|
function ld() {
|
|
10838
10834
|
const {
|
|
10839
10835
|
formatTo: t
|
|
10840
|
-
} =
|
|
10836
|
+
} = Fr();
|
|
10841
10837
|
function n(o, r) {
|
|
10842
10838
|
if (o) {
|
|
10843
10839
|
let i = "yyyy-MM-dd";
|
|
@@ -10862,7 +10858,7 @@ function ld() {
|
|
|
10862
10858
|
function sd() {
|
|
10863
10859
|
const {
|
|
10864
10860
|
formatTo: t
|
|
10865
|
-
} =
|
|
10861
|
+
} = Tr();
|
|
10866
10862
|
function n(e, o) {
|
|
10867
10863
|
const r = {
|
|
10868
10864
|
precision: o.precision,
|
|
@@ -11165,7 +11161,7 @@ function pd(t, n, e, o, r) {
|
|
|
11165
11161
|
column: D,
|
|
11166
11162
|
cell: R,
|
|
11167
11163
|
editor: x
|
|
11168
|
-
}, W.readonly = !1, M(
|
|
11164
|
+
}, W.readonly = !1, M(Cr, {
|
|
11169
11165
|
focusOnCreated: t.focusOnEditingCell,
|
|
11170
11166
|
selectOnCreated: t.selectOnEditingCell,
|
|
11171
11167
|
editor: W,
|
|
@@ -11347,15 +11343,15 @@ function vd(t, n, e, o, r) {
|
|
|
11347
11343
|
return l(c.value);
|
|
11348
11344
|
}
|
|
11349
11345
|
function y() {
|
|
11350
|
-
const Y = o.value.reduce((q,
|
|
11346
|
+
const Y = o.value.reduce((q, oe) => (q.set(oe.raw[i.value], oe), q), /* @__PURE__ */ new Map());
|
|
11351
11347
|
return c.value.map((q) => Y.get(q)).filter((q) => !!q);
|
|
11352
11348
|
}
|
|
11353
11349
|
function w(Y) {
|
|
11354
11350
|
var q;
|
|
11355
11351
|
const ce = Y.raw.__fv_children_index__;
|
|
11356
11352
|
if (ce && ce.length) {
|
|
11357
|
-
const
|
|
11358
|
-
(q = c.value) != null && q.length &&
|
|
11353
|
+
const oe = ce.map((be) => a.value[be]);
|
|
11354
|
+
(q = c.value) != null && q.length && oe.some((ke) => !c.value.includes(ke[i.value])) && (Y.indeterminate = !0, Y.raw.__fv_indeterminate__ = !0);
|
|
11359
11355
|
}
|
|
11360
11356
|
}
|
|
11361
11357
|
const _ = N(() => f.value && d.value), S = N(
|
|
@@ -11379,8 +11375,8 @@ function vd(t, n, e, o, r) {
|
|
|
11379
11375
|
}), y().forEach((q) => {
|
|
11380
11376
|
q.checked = !0, q.raw.__fv_checked__ = !0;
|
|
11381
11377
|
}), Y.forEach((q) => {
|
|
11382
|
-
const
|
|
11383
|
-
w(
|
|
11378
|
+
const oe = o.value.find((be) => be.raw[i.value] === q);
|
|
11379
|
+
w(oe);
|
|
11384
11380
|
});
|
|
11385
11381
|
}
|
|
11386
11382
|
Fe(() => o.value, () => {
|
|
@@ -11451,14 +11447,14 @@ function vd(t, n, e, o, r) {
|
|
|
11451
11447
|
const ce = o.value.find((q) => q.raw[i.value] === Y);
|
|
11452
11448
|
ce && ie(ce);
|
|
11453
11449
|
}
|
|
11454
|
-
function
|
|
11455
|
-
const ce = o.value.filter((be) => Y.includes(be.raw[i.value])), q = ce.map((be) => be.raw[i.value]),
|
|
11450
|
+
function me(Y) {
|
|
11451
|
+
const ce = o.value.filter((be) => Y.includes(be.raw[i.value])), q = ce.map((be) => be.raw[i.value]), oe = a.value.filter((be) => {
|
|
11456
11452
|
const ke = be[i.value];
|
|
11457
11453
|
return !q.includes(ke) && Y.includes(ke);
|
|
11458
11454
|
});
|
|
11459
|
-
(ce.length ||
|
|
11455
|
+
(ce.length || oe.length) && (j(), S.value && (s.value = Y[0])), ce.forEach((be) => {
|
|
11460
11456
|
D(be);
|
|
11461
|
-
}),
|
|
11457
|
+
}), oe.forEach((be) => {
|
|
11462
11458
|
L(be);
|
|
11463
11459
|
}), b();
|
|
11464
11460
|
}
|
|
@@ -11466,12 +11462,12 @@ function vd(t, n, e, o, r) {
|
|
|
11466
11462
|
for (const ce of Y) {
|
|
11467
11463
|
if (!c.value.includes(ce))
|
|
11468
11464
|
continue;
|
|
11469
|
-
const q = o.value.find((
|
|
11465
|
+
const q = o.value.find((oe) => oe.raw[i.value] === ce);
|
|
11470
11466
|
if (q)
|
|
11471
11467
|
X(q);
|
|
11472
11468
|
else {
|
|
11473
|
-
const
|
|
11474
|
-
|
|
11469
|
+
const oe = a.value.find((be) => be[i.value] === ce);
|
|
11470
|
+
oe && H(oe);
|
|
11475
11471
|
}
|
|
11476
11472
|
}
|
|
11477
11473
|
c.value = c.value.filter(
|
|
@@ -11512,7 +11508,7 @@ function vd(t, n, e, o, r) {
|
|
|
11512
11508
|
selectDataItem: L,
|
|
11513
11509
|
selectItem: ie,
|
|
11514
11510
|
selectItemById: Z,
|
|
11515
|
-
selectItemByIds:
|
|
11511
|
+
selectItemByIds: me,
|
|
11516
11512
|
showCheckBox: p,
|
|
11517
11513
|
showSelectAll: m,
|
|
11518
11514
|
toggleSelectItem: K,
|
|
@@ -11671,41 +11667,41 @@ const dn = /* @__PURE__ */ ze({
|
|
|
11671
11667
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode"],
|
|
11672
11668
|
setup(t, n) {
|
|
11673
11669
|
var Qe, ut;
|
|
11674
|
-
const o = ((Qe = t.rowOption) == null ? void 0 : Qe.height) || 28, r = F(20), i = F(t.columns), a =
|
|
11670
|
+
const o = ((Qe = t.rowOption) == null ? void 0 : Qe.height) || 28, r = F(20), i = F(t.columns), a = Er(t), {
|
|
11675
11671
|
idField: l
|
|
11676
|
-
} = a, s = F(), f = F(), d = F(), u = F(), p = F(), m = F([]), c = F(!1), C = F(((ut = t.rowOption) == null ? void 0 : ut.wrapContent) || !1), g =
|
|
11672
|
+
} = a, s = F(), f = F(), d = F(), u = F(), p = F(), m = F([]), c = F(!1), C = F(((ut = t.rowOption) == null ? void 0 : ut.wrapContent) || !1), g = Ir(t, a), h = Or(), x = Pr(t), {
|
|
11677
11673
|
collapseField: y
|
|
11678
11674
|
} = x, {
|
|
11679
11675
|
showLoading: w,
|
|
11680
11676
|
renderLoading: _
|
|
11681
|
-
} =
|
|
11677
|
+
} = Br(t, s), S = Vr(t, /* @__PURE__ */ new Map(), h, x, a), {
|
|
11682
11678
|
dataView: v
|
|
11683
|
-
} = S, T =
|
|
11679
|
+
} = S, T = Dr(t, S, a, m, n), k = Nr(t, m, S, a, T, n), E = N(() => t.disabled), b = N(() => t.virtualized ? Math.min(S.dataView.value.length, r.value) : S.dataView.value.length), {
|
|
11684
11680
|
containerStyleObject: O
|
|
11685
|
-
} =
|
|
11681
|
+
} = Rr(t), V = Lr(t), {
|
|
11686
11682
|
applyCommands: I
|
|
11687
11683
|
} = V;
|
|
11688
11684
|
I(i);
|
|
11689
|
-
const P =
|
|
11685
|
+
const P = $r(t), G = Wr(t), {
|
|
11690
11686
|
applyColumnSorter: j,
|
|
11691
11687
|
columnContext: L,
|
|
11692
11688
|
updateColumnRenderContext: H
|
|
11693
11689
|
} = P;
|
|
11694
11690
|
j(S, G);
|
|
11695
|
-
const Q =
|
|
11691
|
+
const Q = Hr(t, L), R = jr(t, n, T, a), D = Ar(t, n, a, R, m), X = qr(t), A = Gr(t, D, X), W = zr(t, S, D, x, a, X, A), z = Yr(t, i, S, b, 0, W), {
|
|
11696
11692
|
getVisualData: K
|
|
11697
|
-
} = z, ie =
|
|
11698
|
-
sidebarWidth:
|
|
11699
|
-
} = Z, ve =
|
|
11693
|
+
} = z, ie = Ur(t, L), Z = Xr(t, T), {
|
|
11694
|
+
sidebarWidth: me
|
|
11695
|
+
} = Z, ve = Qr(t, S, m, L, z, b, 0, me), {
|
|
11700
11696
|
onWheel: _e,
|
|
11701
11697
|
dataGridWidth: Be,
|
|
11702
11698
|
viewPortHeight: Re,
|
|
11703
11699
|
viewPortWidth: Y,
|
|
11704
11700
|
resetScroll: ce,
|
|
11705
11701
|
updateVisibleRowsOnLatestVisibleScope: q
|
|
11706
|
-
} = ve,
|
|
11702
|
+
} = ve, oe = Kr(t, L, f, Y, Q), {
|
|
11707
11703
|
calculateColumnsSize: be
|
|
11708
|
-
} =
|
|
11704
|
+
} = oe, ke = Jr(), Pe = Zr(f, p, S, ke, ve), it = ei(t, n, P, S, Q, g, ve), yt = N(() => ({
|
|
11709
11705
|
"fv-grid": !0,
|
|
11710
11706
|
"fv-grid-bordered": t.showBorder,
|
|
11711
11707
|
"fv-grid-horizontal-bordered": t.showHorizontalLines,
|
|
@@ -11720,15 +11716,15 @@ const dn = /* @__PURE__ */ ze({
|
|
|
11720
11716
|
renderGridHeader: Se,
|
|
11721
11717
|
renderGridColumnResizeOverlay: Oe,
|
|
11722
11718
|
shouldShowHeader: Ge
|
|
11723
|
-
} =
|
|
11719
|
+
} = ti(t, n, f, u, p, P, S, it, Pe, h, ke, oe, Q, T, Z, G, ve, Y, m), {
|
|
11724
11720
|
renderDataGridSidebar: Ne
|
|
11725
|
-
} =
|
|
11721
|
+
} = ni(t, R, T, Z, ve), {
|
|
11726
11722
|
renderDisableMask: st
|
|
11727
|
-
} =
|
|
11723
|
+
} = oi(), {
|
|
11728
11724
|
renderHorizontalScrollbar: bt
|
|
11729
|
-
} =
|
|
11725
|
+
} = ri(t, f, ve), {
|
|
11730
11726
|
renderVerticalScrollbar: St
|
|
11731
|
-
} =
|
|
11727
|
+
} = ii(t, f, ve);
|
|
11732
11728
|
function pt() {
|
|
11733
11729
|
var he, xe, tt;
|
|
11734
11730
|
if (f.value && f.value.clientHeight > 0 && ((he = f.value) == null ? void 0 : he.clientWidth) > 0) {
|
|
@@ -11737,7 +11733,7 @@ const dn = /* @__PURE__ */ ze({
|
|
|
11737
11733
|
}
|
|
11738
11734
|
}
|
|
11739
11735
|
gt(() => {
|
|
11740
|
-
f.value && (r.value = Math.max(Math.ceil(f.value.clientHeight / o), r.value), m.value = K(0, b.value + 0 - 1),
|
|
11736
|
+
f.value && (r.value = Math.max(Math.ceil(f.value.clientHeight / o), r.value), m.value = K(0, b.value + 0 - 1), Jn(f.value, pt), be(), Ht(() => {
|
|
11741
11737
|
f.value && (Be.value = f.value.clientWidth), d.value && (Y.value = d.value.clientWidth, Re.value = d.value.clientHeight);
|
|
11742
11738
|
})), w.value && _();
|
|
11743
11739
|
}), en(() => {
|
|
@@ -11766,7 +11762,7 @@ const dn = /* @__PURE__ */ ze({
|
|
|
11766
11762
|
const he = wt(), xe = k.getNextSelectableHierarchyItemId(he);
|
|
11767
11763
|
S.removeHierarchyDataItem(he), m.value = K(0, b.value + 0 - 1), xe && T.selectItemById(xe);
|
|
11768
11764
|
}
|
|
11769
|
-
function
|
|
11765
|
+
function fe(he) {
|
|
11770
11766
|
D.onEditingRow(he);
|
|
11771
11767
|
}
|
|
11772
11768
|
function ge(he) {
|
|
@@ -11784,7 +11780,7 @@ const dn = /* @__PURE__ */ ze({
|
|
|
11784
11780
|
function U(he) {
|
|
11785
11781
|
T.selectItemById(he);
|
|
11786
11782
|
}
|
|
11787
|
-
function
|
|
11783
|
+
function pe(he) {
|
|
11788
11784
|
const xe = m.value.find((tt) => tt.raw[a.idField.value] === he);
|
|
11789
11785
|
xe && R.clickRowItem(xe);
|
|
11790
11786
|
}
|
|
@@ -11800,9 +11796,9 @@ const dn = /* @__PURE__ */ ze({
|
|
|
11800
11796
|
function ee() {
|
|
11801
11797
|
T.clearSelection();
|
|
11802
11798
|
}
|
|
11803
|
-
const
|
|
11804
|
-
renderEmpty:
|
|
11805
|
-
} =
|
|
11799
|
+
const ne = N(() => !m.value || !m.value.length), {
|
|
11800
|
+
renderEmpty: te
|
|
11801
|
+
} = ai(n);
|
|
11806
11802
|
function we() {
|
|
11807
11803
|
return T.getSelectionRow();
|
|
11808
11804
|
}
|
|
@@ -11857,7 +11853,7 @@ const dn = /* @__PURE__ */ ze({
|
|
|
11857
11853
|
collapseTo: Bt,
|
|
11858
11854
|
expandTo: Ft,
|
|
11859
11855
|
removeDataItem: re,
|
|
11860
|
-
editDataItem:
|
|
11856
|
+
editDataItem: fe,
|
|
11861
11857
|
acceptDataItem: ge,
|
|
11862
11858
|
cancelDataItem: Ve,
|
|
11863
11859
|
updateColumns: Ye,
|
|
@@ -11867,7 +11863,7 @@ const dn = /* @__PURE__ */ ze({
|
|
|
11867
11863
|
getSelectedItems: $,
|
|
11868
11864
|
clearSelection: ee,
|
|
11869
11865
|
getSelectionRow: we,
|
|
11870
|
-
clickRowItemById:
|
|
11866
|
+
clickRowItemById: pe,
|
|
11871
11867
|
unSelectItemByIds: ye,
|
|
11872
11868
|
getCurrentRowId: De,
|
|
11873
11869
|
reassignRowData: Te,
|
|
@@ -11883,7 +11879,7 @@ const dn = /* @__PURE__ */ ze({
|
|
|
11883
11879
|
class: ft.value,
|
|
11884
11880
|
onMouseover: () => c.value = !0,
|
|
11885
11881
|
onMouseleave: () => c.value = !1
|
|
11886
|
-
}, [f.value && Ne(m), f.value && J(), f.value &&
|
|
11882
|
+
}, [f.value && Ne(m), f.value && J(), f.value && ne.value && te(), f.value && bt(), f.value && St()]), Oe(), E.value && st()]);
|
|
11887
11883
|
}
|
|
11888
11884
|
}), Fd = {
|
|
11889
11885
|
id: { type: String, default: "" },
|
|
@@ -11936,7 +11932,7 @@ const dn = /* @__PURE__ */ ze({
|
|
|
11936
11932
|
}
|
|
11937
11933
|
});
|
|
11938
11934
|
function Md(t) {
|
|
11939
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
11935
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !dr(t);
|
|
11940
11936
|
}
|
|
11941
11937
|
const xn = /* @__PURE__ */ ze({
|
|
11942
11938
|
name: "FDesignerItem",
|
|
@@ -11950,7 +11946,7 @@ const xn = /* @__PURE__ */ ze({
|
|
|
11950
11946
|
parent: c,
|
|
11951
11947
|
setupContext: n
|
|
11952
11948
|
};
|
|
11953
|
-
|
|
11949
|
+
ur("design-item-context", C);
|
|
11954
11950
|
const g = xt("useFormSchema"), h = xt("designer-host-service"), x = N(() => {
|
|
11955
11951
|
var Q;
|
|
11956
11952
|
const j = t.modelValue.appearance && t.modelValue.appearance.class || "", L = ((Q = m.value) == null ? void 0 : Q.getCustomButtons) && m.value.getCustomButtons();
|
|
@@ -12083,7 +12079,7 @@ const xn = /* @__PURE__ */ ze({
|
|
|
12083
12079
|
}
|
|
12084
12080
|
}
|
|
12085
12081
|
Fe(() => t.modelValue, (j) => {
|
|
12086
|
-
a.value = j, e.value = `${j.id}-component`,
|
|
12082
|
+
a.value = j, e.value = `${j.id}-component`, cr(u);
|
|
12087
12083
|
}, {
|
|
12088
12084
|
deep: !0
|
|
12089
12085
|
});
|
|
@@ -12121,7 +12117,7 @@ const xn = /* @__PURE__ */ ze({
|
|
|
12121
12117
|
const Q = document.getElementsByClassName("dgComponentFocused");
|
|
12122
12118
|
Q && Q.length === 1 && Q[0] === u.value || (Array.from(Q).forEach((D) => D.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((D) => D.classList.remove("dgComponentSelected")), H.classList.add("dgComponentFocused"), n.emit("selectionChange", a.value.type, a.value, l.value, m.value), m.value.getDraggableDesignItemElement && (L = m.value.getDraggableDesignItemElement(C), L && L.value && L.value.classList.add("dgComponentSelected")));
|
|
12123
12119
|
}
|
|
12124
|
-
|
|
12120
|
+
uo(L == null ? void 0 : L.value);
|
|
12125
12121
|
}
|
|
12126
12122
|
return () => a.value.type === "component-ref" ? O(a.value) : M("div", {
|
|
12127
12123
|
id: `${a.value.id}-design-item`,
|
|
@@ -12237,7 +12233,7 @@ function Ed(t, n, e, o, r = "data-grid-column") {
|
|
|
12237
12233
|
renderGridHeader: k
|
|
12238
12234
|
};
|
|
12239
12235
|
}
|
|
12240
|
-
class Id extends
|
|
12236
|
+
class Id extends fo {
|
|
12241
12237
|
constructor(n, e) {
|
|
12242
12238
|
super(n, e);
|
|
12243
12239
|
}
|
|
@@ -12711,11 +12707,11 @@ function Dd(t, n, e, o, r, i, a, l) {
|
|
|
12711
12707
|
}
|
|
12712
12708
|
const Nd = /* @__PURE__ */ ze({
|
|
12713
12709
|
name: "FTreeGridDesign",
|
|
12714
|
-
props:
|
|
12710
|
+
props: go,
|
|
12715
12711
|
emits: [],
|
|
12716
12712
|
setup(t, n) {
|
|
12717
|
-
var
|
|
12718
|
-
const e = F(), o = 0, r = ((
|
|
12713
|
+
var oe, be;
|
|
12714
|
+
const e = F(), o = 0, r = ((oe = t.rowOption) == null ? void 0 : oe.height) || 28, i = F(20), a = F(t.columns), l = md(t), s = F(), f = F(), d = F([]), u = F(!1), p = F(((be = t.rowOption) == null ? void 0 : be.wrapContent) || !1), m = xt("designer-host-service"), c = xt("design-item-context"), C = Od(c, m), g = rc(e, c, C);
|
|
12719
12715
|
g.value.designerClass = "f-utils-fill-flex-column";
|
|
12720
12716
|
const h = td(), x = nd(t), y = Rl(t, /* @__PURE__ */ new Map(), h, x, l), w = vd(t, y, l, d, n), _ = N(() => y.dataView.value.length), {
|
|
12721
12717
|
containerStyleObject: S
|
|
@@ -12739,9 +12735,9 @@ const Nd = /* @__PURE__ */ ze({
|
|
|
12739
12735
|
viewPortHeight: K,
|
|
12740
12736
|
viewPortWidth: ie,
|
|
12741
12737
|
updateVisibleRowsOnLatestVisibleScope: Z
|
|
12742
|
-
} = A,
|
|
12738
|
+
} = A, me = Pd(t, b, s, ie, I), {
|
|
12743
12739
|
calculateColumnsSize: ve
|
|
12744
|
-
} =
|
|
12740
|
+
} = me, _e = N(() => ({
|
|
12745
12741
|
"drag-container": !0,
|
|
12746
12742
|
"fv-grid": !0,
|
|
12747
12743
|
"fv-grid-bordered": t.showBorder,
|
|
@@ -12761,7 +12757,7 @@ const Nd = /* @__PURE__ */ ze({
|
|
|
12761
12757
|
ke > i.value && (i.value = ke, Z()), K.value = ((Pe = f.value) == null ? void 0 : Pe.clientHeight) || 0, z.value = ((it = s.value) == null ? void 0 : it.clientWidth) || 0, ve();
|
|
12762
12758
|
}
|
|
12763
12759
|
gt(() => {
|
|
12764
|
-
e.value.componentInstance = g, s.value && (i.value = Math.max(Math.ceil(s.value.clientHeight / r), i.value), d.value = R(0, _.value + o - 1),
|
|
12760
|
+
e.value.componentInstance = g, s.value && (i.value = Math.max(Math.ceil(s.value.clientHeight / r), i.value), d.value = R(0, _.value + o - 1), Jn(s.value, ce), ve(), Ht(() => {
|
|
12765
12761
|
s.value && (z.value = s.value.clientWidth), f.value && (ie.value = f.value.clientWidth, K.value = f.value.clientHeight);
|
|
12766
12762
|
}));
|
|
12767
12763
|
});
|
|
@@ -12796,7 +12792,7 @@ dn.register = (t, n, e, o) => {
|
|
|
12796
12792
|
dn.registerDesigner = (t, n, e) => {
|
|
12797
12793
|
t["tree-grid"] = Nd, n["tree-grid"] = xl;
|
|
12798
12794
|
};
|
|
12799
|
-
|
|
12795
|
+
kr(dn);
|
|
12800
12796
|
const Rd = /* @__PURE__ */ new Map([
|
|
12801
12797
|
["appearance", Yt]
|
|
12802
12798
|
]);
|
|
@@ -12935,7 +12931,7 @@ const $d = "https://json-schema.org/draft/2020-12/schema", Wd = "https://farris-
|
|
|
12935
12931
|
} }
|
|
12936
12932
|
};
|
|
12937
12933
|
_t(Jd, zd, Rd, Ld, Kd);
|
|
12938
|
-
class Zd extends
|
|
12934
|
+
class Zd extends fo {
|
|
12939
12935
|
constructor(e, o) {
|
|
12940
12936
|
super(e, o);
|
|
12941
12937
|
B(this, "responseLayoutEditorFunction");
|
|
@@ -13262,7 +13258,7 @@ class Zd extends po {
|
|
|
13262
13258
|
* @param propertyData 下拉框控件属性值
|
|
13263
13259
|
*/
|
|
13264
13260
|
checkEnumDataReadonly(e) {
|
|
13265
|
-
return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type ===
|
|
13261
|
+
return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === Mr.EnumType);
|
|
13266
13262
|
}
|
|
13267
13263
|
/**
|
|
13268
13264
|
* 将字段值变化前事件、变化后事件追加到交互面板
|
|
@@ -13324,7 +13320,7 @@ class Zd extends po {
|
|
|
13324
13320
|
};
|
|
13325
13321
|
}
|
|
13326
13322
|
getExpressionConfig(e, o, r = ["compute", "dependency", "validate"], i) {
|
|
13327
|
-
return new
|
|
13323
|
+
return new co(this.formSchemaUtils).getExpressionConfig(
|
|
13328
13324
|
e,
|
|
13329
13325
|
o,
|
|
13330
13326
|
r,
|
|
@@ -13465,11 +13461,11 @@ const nf = /* @__PURE__ */ ze({
|
|
|
13465
13461
|
props: Tn,
|
|
13466
13462
|
emits: ["Clear", "Remove", "Reset"],
|
|
13467
13463
|
setup(t, n) {
|
|
13468
|
-
const e = F(!1), o = F(!1), r = F(!1), i = F(!1), a =
|
|
13464
|
+
const e = F(!1), o = F(!1), r = F(!1), i = F(!1), a = ao(t, n), {
|
|
13469
13465
|
filterFields: l,
|
|
13470
13466
|
filterItems: s,
|
|
13471
13467
|
loadFilterItems: f
|
|
13472
|
-
} = a, d = F(), u = xt("design-item-context"), p = xt("designer-host-service"), m = tf(u, p), c =
|
|
13468
|
+
} = a, d = F(), u = xt("design-item-context"), p = xt("designer-host-service"), m = tf(u, p), c = xr(d, u, m), C = N(() => ({
|
|
13473
13469
|
display: l.value && l.value.length ? "" : "none"
|
|
13474
13470
|
}));
|
|
13475
13471
|
gt(() => {
|
|
@@ -13484,12 +13480,12 @@ const nf = /* @__PURE__ */ ze({
|
|
|
13484
13480
|
function y() {
|
|
13485
13481
|
return M("div", {
|
|
13486
13482
|
class: h.value
|
|
13487
|
-
}, [s.value.map((T, k) => M(
|
|
13483
|
+
}, [s.value.map((T, k) => M(so, {
|
|
13488
13484
|
filterItem: T,
|
|
13489
13485
|
useFilterItemsComposition: a
|
|
13490
13486
|
}, null))]);
|
|
13491
13487
|
}
|
|
13492
|
-
const w = N(() => r.value && !o.value && i.value), _ = Aa(), S = N(() => !o.value), v =
|
|
13488
|
+
const w = N(() => r.value && !o.value && i.value), _ = Aa(), S = N(() => !o.value), v = lo(t, n, a);
|
|
13493
13489
|
return () => M("div", {
|
|
13494
13490
|
ref: d,
|
|
13495
13491
|
class: "f-filter-wrapper",
|
|
@@ -13540,7 +13536,7 @@ const nf = /* @__PURE__ */ ze({
|
|
|
13540
13536
|
function df(t, n, e) {
|
|
13541
13537
|
return n;
|
|
13542
13538
|
}
|
|
13543
|
-
const
|
|
13539
|
+
const er = {
|
|
13544
13540
|
fieldsConfig: { type: Array, default: [] },
|
|
13545
13541
|
modelValue: { type: Array, default: [] },
|
|
13546
13542
|
source: { type: String, default: "query-solution" },
|
|
@@ -13551,7 +13547,7 @@ const tr = {
|
|
|
13551
13547
|
eventsEditorUtils: { type: Object, default: {} },
|
|
13552
13548
|
viewModelId: { type: String, default: "" }
|
|
13553
13549
|
};
|
|
13554
|
-
_t(
|
|
13550
|
+
_t(er, uf, cf, df);
|
|
13555
13551
|
const ff = {
|
|
13556
13552
|
class: {
|
|
13557
13553
|
description: "样式",
|
|
@@ -14661,7 +14657,7 @@ function yf(t, n, e, o) {
|
|
|
14661
14657
|
s.value = We(l.value), i.value = !1, e.value = null;
|
|
14662
14658
|
}
|
|
14663
14659
|
function w() {
|
|
14664
|
-
return i.value ? M(
|
|
14660
|
+
return i.value ? M(Zn, {
|
|
14665
14661
|
selections: s.value,
|
|
14666
14662
|
"data-source": f.value,
|
|
14667
14663
|
rowOption: u,
|
|
@@ -14831,7 +14827,7 @@ const bf = {
|
|
|
14831
14827
|
// left: `${position.value.left}px`,
|
|
14832
14828
|
// top: `${position.value.top}px`
|
|
14833
14829
|
}));
|
|
14834
|
-
return () => M(
|
|
14830
|
+
return () => M(Qn, {
|
|
14835
14831
|
to: "body"
|
|
14836
14832
|
}, {
|
|
14837
14833
|
default: () => {
|
|
@@ -14883,7 +14879,7 @@ class Sf {
|
|
|
14883
14879
|
return _f(n);
|
|
14884
14880
|
}
|
|
14885
14881
|
}
|
|
14886
|
-
function
|
|
14882
|
+
function tr(t, n) {
|
|
14887
14883
|
function e() {
|
|
14888
14884
|
const o = t.beforeOpen || t.beforeClickButton || null;
|
|
14889
14885
|
let r = Promise.resolve(!0);
|
|
@@ -14901,7 +14897,7 @@ function Ff(t, n, e, o, r) {
|
|
|
14901
14897
|
const i = F(t.buttonBehavior), a = F(t.popupOnInput), l = N(() => ({
|
|
14902
14898
|
"input-group-append": !0,
|
|
14903
14899
|
"append-force-show": t.showButtonWhenDisabled && (t.readonly || t.disable)
|
|
14904
|
-
})), { judgeCanOpen: s } =
|
|
14900
|
+
})), { judgeCanOpen: s } = tr(t, r), f = N(() => t.showButtonWhenDisabled || (!t.editable || !t.readonly) && !t.disable), d = xt(Jo, null), u = F();
|
|
14905
14901
|
async function p(C) {
|
|
14906
14902
|
if (await s() && f.value) {
|
|
14907
14903
|
const g = !!n.slots.default;
|
|
@@ -15042,7 +15038,7 @@ function kf(t, n, e, o, r) {
|
|
|
15042
15038
|
}
|
|
15043
15039
|
const $t = "FarrisVue_PopoverInstancesKey";
|
|
15044
15040
|
function Mf(t, n, e, o) {
|
|
15045
|
-
const r = F(), i = F(!1), { judgeCanOpen: a } =
|
|
15041
|
+
const r = F(), i = F(!1), { judgeCanOpen: a } = tr(t, o);
|
|
15046
15042
|
Fe(() => r.value, (m, c) => {
|
|
15047
15043
|
window[$t] = window[$t] || /* @__PURE__ */ new WeakMap(), m ? window[$t].set(e.value, m) : window[$t].delete(e.value);
|
|
15048
15044
|
});
|
|
@@ -15136,7 +15132,7 @@ function If(t, n, e) {
|
|
|
15136
15132
|
function l(s) {
|
|
15137
15133
|
r(s.map((f) => f.name).join(o.value), !0);
|
|
15138
15134
|
}
|
|
15139
|
-
return () => M(
|
|
15135
|
+
return () => M(eo, {
|
|
15140
15136
|
id: `${t.id}-tag-editor`,
|
|
15141
15137
|
class: "form-control",
|
|
15142
15138
|
data: a.value,
|
|
@@ -15161,12 +15157,12 @@ function Of(t, n, e, o) {
|
|
|
15161
15157
|
renderButtonGroup: () => M("div", {
|
|
15162
15158
|
id: `${t.id}-button-group`,
|
|
15163
15159
|
class: r.value
|
|
15164
|
-
}, [s.value &&
|
|
15160
|
+
}, [s.value && Xn(M("span", {
|
|
15165
15161
|
class: "input-group-text input-group-clear",
|
|
15166
15162
|
onClick: d
|
|
15167
15163
|
}, [M("i", {
|
|
15168
15164
|
class: "f-icon modal_close"
|
|
15169
|
-
}, null)]), [[
|
|
15165
|
+
}, null)]), [[fr, f.value]]), n.slots.buttonContent ? M("span", {
|
|
15170
15166
|
class: "input-group-text input-group-append-button",
|
|
15171
15167
|
onClick: i,
|
|
15172
15168
|
onMouseenter: a,
|
|
@@ -15277,7 +15273,7 @@ const Bf = /* @__PURE__ */ ze({
|
|
|
15277
15273
|
}
|
|
15278
15274
|
}), Vf = /* @__PURE__ */ ze({
|
|
15279
15275
|
name: "FQuerySolutionConfig",
|
|
15280
|
-
props:
|
|
15276
|
+
props: er,
|
|
15281
15277
|
emits: ["update:modelValue"],
|
|
15282
15278
|
setup(t, n) {
|
|
15283
15279
|
const e = F(null), o = N(() => "共" + t.modelValue.length + "项"), r = /* @__PURE__ */ new Map(), i = gf(t, n, e, r), {
|
|
@@ -15373,14 +15369,14 @@ Gt.install = (t) => {
|
|
|
15373
15369
|
t.component(Gt.name, Gt);
|
|
15374
15370
|
};
|
|
15375
15371
|
Gt.register = (t, n, e, o) => {
|
|
15376
|
-
t["filter-bar"] = Gt, n["filter-bar"] =
|
|
15372
|
+
t["filter-bar"] = Gt, n["filter-bar"] = io, t["filter-bar-config"] = Vf, n["filter-bar-config"] = qf;
|
|
15377
15373
|
};
|
|
15378
15374
|
Gt.registerDesigner = (t, n, e) => {
|
|
15379
|
-
t["filter-bar"] = nf, n["filter-bar"] =
|
|
15375
|
+
t["filter-bar"] = nf, n["filter-bar"] = io;
|
|
15380
15376
|
};
|
|
15381
15377
|
export {
|
|
15382
15378
|
Gt as FFilterBar,
|
|
15383
15379
|
Gt as default,
|
|
15384
15380
|
Tn as filterBarProps,
|
|
15385
|
-
|
|
15381
|
+
io as propsResolver
|
|
15386
15382
|
};
|