@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,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var j = (n, t, e) =>
|
|
4
|
-
import { createVNode as O, resolveComponent as mt, createTextVNode as tt, ref as M, isVNode as
|
|
5
|
-
import { F_MODAL_SERVICE_TOKEN as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
var Ar = Object.defineProperty;
|
|
2
|
+
var zr = (n, t, e) => t in n ? Ar(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var j = (n, t, e) => zr(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { createVNode as O, resolveComponent as mt, createTextVNode as tt, ref as M, isVNode as An, nextTick as At, computed as A, inject as Ot, Fragment as $t, watch as Fe, withDirectives as zn, vModelCheckbox as Gr, defineComponent as ht, reactive as St, createApp as Gn, onUnmounted as sn, onMounted as zt, Transition as qn, mergeProps as Bt, onBeforeUnmount as Yn, resolveDirective as qr, provide as Yr, triggerRef as Ur, onBeforeMount as Xr, Teleport as Qr, shallowRef as Kr, render as ln, h as Jr, cloneVNode as Zr } from "vue";
|
|
5
|
+
import { F_MODAL_SERVICE_TOKEN as eo } from "../modal/index.esm.js";
|
|
6
|
+
import Un from "../transfer/index.esm.js";
|
|
7
|
+
import Xn, { FTabPage as un } from "../tabs/index.esm.js";
|
|
8
|
+
import to, { FOrder as no } from "../order/index.esm.js";
|
|
9
|
+
import ro from "../condition/index.esm.js";
|
|
10
10
|
import { FCheckbox as mn } from "../checkbox/index.esm.js";
|
|
11
|
-
import { useArrayProcessor as wn, useGuid as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { isUndefined as wt, cloneDeep as Mt, isPlainObject as
|
|
15
|
-
import
|
|
11
|
+
import { useArrayProcessor as wn, useGuid as oo, resolveField as ft, FormSchemaEntityFieldTypeName as In, getCustomClass as cn, withInstall as ao, useCommonUtils as Cn, useDateFormat as io, useNumberFormat as so, setFieldValue as hn } from "../common/index.esm.js";
|
|
12
|
+
import lo, { FFilterBar as uo } from "../filter-bar/index.esm.js";
|
|
13
|
+
import co from "../tooltip/index.esm.js";
|
|
14
|
+
import { isUndefined as wt, cloneDeep as Mt, isPlainObject as Dn, throttle as fo } from "lodash-es";
|
|
15
|
+
import Qn from "../pagination/index.esm.js";
|
|
16
16
|
import mo from "../button/index.esm.js";
|
|
17
17
|
import ho, { FSearchBox as po } from "../search-box/index.esm.js";
|
|
18
18
|
import vo, { FTags as go } from "../tags/index.esm.js";
|
|
@@ -26,8 +26,8 @@ import So from "../../designer/button-edit/index.esm.js";
|
|
|
26
26
|
import To from "../button-group/index.esm.js";
|
|
27
27
|
import ko from "../calendar/index.esm.js";
|
|
28
28
|
import Fo from "../capsule/index.esm.js";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
29
|
+
import Pn from "../../designer/checkbox/index.esm.js";
|
|
30
|
+
import Nn from "../../designer/checkbox-group/index.esm.js";
|
|
31
31
|
import pn from "../combo-list/index.esm.js";
|
|
32
32
|
import Eo from "../combo-tree/index.esm.js";
|
|
33
33
|
import Oo from "../component/index.esm.js";
|
|
@@ -84,7 +84,7 @@ import Ta from "../expression-editor/index.esm.js";
|
|
|
84
84
|
import ka from "../code-editor/index.esm.js";
|
|
85
85
|
import Fa from "../html-template/index.esm.js";
|
|
86
86
|
import "../external-container/index.esm.js";
|
|
87
|
-
import { useResizeObserver as
|
|
87
|
+
import { useResizeObserver as Kn } from "@vueuse/core";
|
|
88
88
|
import { useIdentify as Ea, useGroupData as Oa, useFilter as Ma, useHierarchy as Ia, useLoading as Da, useDataView as Pa, useSelection as Na, useSelectHierarchyItem as Va, useDataViewContainerStyle as Ra, useCommandColumn as Ba, useColumn as Wa, useSort as Ha, useGroupColumn as La, useRow as $a, useEdit as ja, useVisualDataBound as Aa, useVisualDataCell as za, useVisualDataRow as Ga, useVisualData as qa, useCellPosition as Ya, useSidebar as Ua, useVirtualScroll as Xa, useFitColumn as Qa, useFilterHistory as Ka, useColumnFilter as Ja, useDragColumn as Za, getColumnHeader as ei, getSidebar as ti, getDisableMask as ni, getHorizontalScrollbar as ri, getVerticalScrollbar as oi, getEmpty as ai } from "../data-view/index.esm.js";
|
|
89
89
|
import "../notify/index.esm.js";
|
|
90
90
|
var Ke = /* @__PURE__ */ ((n) => (n[n.readonly = 0] = "readonly", n[n.editable = 1] = "editable", n[n.editing = 2] = "editing", n))(Ke || {}), xt = /* @__PURE__ */ ((n) => (n[n.initial = 0] = "initial", n[n.editing = 1] = "editing", n))(xt || {}), Wt = /* @__PURE__ */ ((n) => (n[n.data = 0] = "data", n[n.group = 1] = "group", n[n.summary = 2] = "summary", n))(Wt || {});
|
|
@@ -217,7 +217,7 @@ function si(n, t, e, r, o, a, i) {
|
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
219
|
function li(n) {
|
|
220
|
-
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !
|
|
220
|
+
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !An(n);
|
|
221
221
|
}
|
|
222
222
|
function ui(n, t, e, r, o, a, i, s, l, u, c) {
|
|
223
223
|
function d(E) {
|
|
@@ -374,7 +374,7 @@ function ci(n, t, e, r, o, a, i, s, l, u) {
|
|
|
374
374
|
function $(B) {
|
|
375
375
|
return O("div", {
|
|
376
376
|
class: "fv-grid-settings"
|
|
377
|
-
}, [O(
|
|
377
|
+
}, [O(Xn, {
|
|
378
378
|
"tab-type": "pills",
|
|
379
379
|
"justify-content": "center"
|
|
380
380
|
}, {
|
|
@@ -388,7 +388,7 @@ function ci(n, t, e, r, o, a, i, s, l, u) {
|
|
|
388
388
|
title: "显示列",
|
|
389
389
|
class: "container"
|
|
390
390
|
}, {
|
|
391
|
-
default: () => [O(
|
|
391
|
+
default: () => [O(Un, {
|
|
392
392
|
style: "height: 480px",
|
|
393
393
|
"identify-field": c,
|
|
394
394
|
"data-source": p.value,
|
|
@@ -400,7 +400,7 @@ function ci(n, t, e, r, o, a, i, s, l, u) {
|
|
|
400
400
|
title: "列排序",
|
|
401
401
|
class: "container"
|
|
402
402
|
}, {
|
|
403
|
-
default: () => [O(
|
|
403
|
+
default: () => [O(no, {
|
|
404
404
|
style: "height: 480px",
|
|
405
405
|
"data-source": p.value,
|
|
406
406
|
items: S.value,
|
|
@@ -411,7 +411,7 @@ function ci(n, t, e, r, o, a, i, s, l, u) {
|
|
|
411
411
|
title: "筛选",
|
|
412
412
|
class: "container"
|
|
413
413
|
}, {
|
|
414
|
-
default: () => [O(
|
|
414
|
+
default: () => [O(ro, {
|
|
415
415
|
ref: d,
|
|
416
416
|
style: "height: 480px",
|
|
417
417
|
fields: F.value,
|
|
@@ -469,7 +469,7 @@ function ci(n, t, e, r, o, a, i, s, l, u) {
|
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
471
|
function di(n, t, e, r, o, a, i, s, l) {
|
|
472
|
-
const u = Ot(
|
|
472
|
+
const u = Ot(eo);
|
|
473
473
|
function c(v) {
|
|
474
474
|
const {
|
|
475
475
|
openSettingPanel: w
|
|
@@ -558,7 +558,7 @@ function bm(n, t, e, r, o, a, i, s, l, u, c, d, v, w, g, k, C, f, b) {
|
|
|
558
558
|
dragenter: K,
|
|
559
559
|
dragover: Z,
|
|
560
560
|
dragend: ee
|
|
561
|
-
} = s,
|
|
561
|
+
} = s, he = A(() => T.value || I.value || E.value), ge = W.value.defaultColumnWidth, _e = 32, De = /* @__PURE__ */ new Map([[0, 0]]), We = A(() => n.showHeader);
|
|
562
562
|
function Q(we, $e) {
|
|
563
563
|
const Re = De.get($e) || 0, je = {
|
|
564
564
|
height: `${we.depth * _e}px`,
|
|
@@ -573,7 +573,7 @@ function bm(n, t, e, r, o, a, i, s, l, u, c, d, v, w, g, k, C, f, b) {
|
|
|
573
573
|
"fv-grid-header-group-columns": W.value.headerDepth > 1
|
|
574
574
|
})), Y = A(() => ({
|
|
575
575
|
height: `${W.value.headerDepth * _e}px`
|
|
576
|
-
})),
|
|
576
|
+
})), oe = function(we) {
|
|
577
577
|
return (we.status & U.sortable) === U.sortable || (we.status & U.filterable) === U.filterable;
|
|
578
578
|
}, {
|
|
579
579
|
renderHeaderCellHandler: be
|
|
@@ -609,7 +609,7 @@ function bm(n, t, e, r, o, a, i, s, l, u, c, d, v, w, g, k, C, f, b) {
|
|
|
609
609
|
columnIndex: Re
|
|
610
610
|
}) : O("span", {
|
|
611
611
|
class: "fv-column-title"
|
|
612
|
-
}, [we.title]),
|
|
612
|
+
}, [we.title]), oe(we) && be(we, Re, $e), Ee(we) && Pe(), we.resizable && O("span", {
|
|
613
613
|
class: "fv-column-resize-bar",
|
|
614
614
|
onMousedown: (nt) => z(nt, we.field)
|
|
615
615
|
}, null)]);
|
|
@@ -683,7 +683,7 @@ function bm(n, t, e, r, o, a, i, s, l, u, c, d, v, w, g, k, C, f, b) {
|
|
|
683
683
|
return O("div", {
|
|
684
684
|
class: ue.value,
|
|
685
685
|
style: Y.value
|
|
686
|
-
}, [
|
|
686
|
+
}, [he.value && Ge(), H.value && te(), O("div", {
|
|
687
687
|
class: "fv-grid-header-primary"
|
|
688
688
|
}, [O("div", {
|
|
689
689
|
class: "fv-grid-header-columns",
|
|
@@ -758,7 +758,7 @@ function Cm(n, t, e, r, o) {
|
|
|
758
758
|
function g() {
|
|
759
759
|
return O("div", {
|
|
760
760
|
class: "fv-grid-filter-panel"
|
|
761
|
-
}, [O(
|
|
761
|
+
}, [O(uo, {
|
|
762
762
|
data: i.value,
|
|
763
763
|
fields: u.value,
|
|
764
764
|
mode: "display-only",
|
|
@@ -1009,38 +1009,38 @@ function yi(n, t, e, r, o, a, i, s, l, u, c, d, v) {
|
|
|
1009
1009
|
} = hi(n, r, i), {
|
|
1010
1010
|
treeNodeIconsClass: R
|
|
1011
1011
|
} = pi(n, h, S);
|
|
1012
|
-
function X(Y,
|
|
1012
|
+
function X(Y, oe) {
|
|
1013
1013
|
const be = Y.raw[S.value];
|
|
1014
1014
|
return {
|
|
1015
1015
|
"fv-tree-node-toggle": be && Y.collapse,
|
|
1016
1016
|
"fv-tree-node-toggle-minus": be && !Y.collapse
|
|
1017
1017
|
};
|
|
1018
1018
|
}
|
|
1019
|
-
function B(Y,
|
|
1020
|
-
Y.stopPropagation(), P(
|
|
1019
|
+
function B(Y, oe) {
|
|
1020
|
+
Y.stopPropagation(), P(oe);
|
|
1021
1021
|
}
|
|
1022
1022
|
function L(Y) {
|
|
1023
1023
|
Y.stopPropagation();
|
|
1024
1024
|
}
|
|
1025
|
-
function G(Y,
|
|
1025
|
+
function G(Y, oe) {
|
|
1026
1026
|
return O("div", {
|
|
1027
1027
|
class: X(Y),
|
|
1028
1028
|
onClick: (be) => B(be, Y),
|
|
1029
1029
|
onDblclick: L
|
|
1030
1030
|
}, null);
|
|
1031
1031
|
}
|
|
1032
|
-
function K(Y,
|
|
1032
|
+
function K(Y, oe) {
|
|
1033
1033
|
return x.value && O("div", {
|
|
1034
1034
|
id: "treeNodeIcons",
|
|
1035
|
-
class: R(Y,
|
|
1035
|
+
class: R(Y, oe)
|
|
1036
1036
|
}, null);
|
|
1037
1037
|
}
|
|
1038
1038
|
function Z(Y) {
|
|
1039
1039
|
_.value ? (Y.checked ? T(Y) : y(Y), E(Y)) : p(Y);
|
|
1040
1040
|
}
|
|
1041
|
-
function ee(Y,
|
|
1041
|
+
function ee(Y, oe) {
|
|
1042
1042
|
return F.value && O(mn, {
|
|
1043
|
-
id: "checkbox_for_" + I(Y,
|
|
1043
|
+
id: "checkbox_for_" + I(Y, oe.index),
|
|
1044
1044
|
indeterminate: Y.indeterminate,
|
|
1045
1045
|
disabled: Y.disabled,
|
|
1046
1046
|
checked: Y.checked,
|
|
@@ -1048,61 +1048,57 @@ function yi(n, t, e, r, o, a, i, s, l, u, c, d, v) {
|
|
|
1048
1048
|
onChange: () => Z(Y)
|
|
1049
1049
|
}, null);
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function he(Y, oe) {
|
|
1052
1052
|
return O("span", {
|
|
1053
|
-
title: re.data,
|
|
1054
1053
|
style: "user-select:none"
|
|
1055
1054
|
}, [t.slots.cellTemplate ? t.slots.cellTemplate({
|
|
1056
|
-
cell:
|
|
1055
|
+
cell: oe,
|
|
1057
1056
|
row: Y
|
|
1058
|
-
}) :
|
|
1057
|
+
}) : oe.mode === Ke.editing ? oe.getEditor(oe) : oe.formatter ? oe.formatter(oe, Y) : oe.showTips ? O(co, null, {
|
|
1058
|
+
default: () => oe.data,
|
|
1059
|
+
contentTemplate: () => oe.data
|
|
1060
|
+
}) : oe.data]);
|
|
1059
1061
|
}
|
|
1060
|
-
function ge(Y,
|
|
1062
|
+
function ge(Y, oe) {
|
|
1061
1063
|
return O("div", {
|
|
1062
|
-
class: z(
|
|
1063
|
-
}, [
|
|
1064
|
-
default: () => fe(Y, re),
|
|
1065
|
-
contentTemplate: () => fe(Y, re)
|
|
1066
|
-
}) : fe(Y, re)]);
|
|
1064
|
+
class: z(oe)
|
|
1065
|
+
}, [he(Y, oe)]);
|
|
1067
1066
|
}
|
|
1068
|
-
function _e(Y,
|
|
1067
|
+
function _e(Y, oe, be) {
|
|
1069
1068
|
const Ee = N(Y);
|
|
1070
1069
|
return O("div", {
|
|
1071
|
-
ref:
|
|
1072
|
-
key: I(Y,
|
|
1070
|
+
ref: oe.setRef,
|
|
1071
|
+
key: I(Y, oe.index),
|
|
1073
1072
|
class: "fv-grid-hierarchy-cell",
|
|
1074
|
-
style: D(
|
|
1073
|
+
style: D(oe, be)
|
|
1075
1074
|
}, [O("div", {
|
|
1076
|
-
class: H(
|
|
1075
|
+
class: H(oe),
|
|
1077
1076
|
style: Ee
|
|
1078
|
-
}, [G(Y), K(Y,
|
|
1077
|
+
}, [G(Y), K(Y, oe), ee(Y, oe), ge(Y, oe)])]);
|
|
1079
1078
|
}
|
|
1080
|
-
function De(Y,
|
|
1079
|
+
function De(Y, oe, be) {
|
|
1081
1080
|
return O("div", {
|
|
1082
|
-
ref:
|
|
1083
|
-
key: I(Y,
|
|
1084
|
-
class: g(
|
|
1085
|
-
style: D(
|
|
1086
|
-
onClick: (Ee) => w(Ee,
|
|
1081
|
+
ref: oe.setRef,
|
|
1082
|
+
key: I(Y, oe.index),
|
|
1083
|
+
class: g(oe),
|
|
1084
|
+
style: D(oe, be),
|
|
1085
|
+
onClick: (Ee) => w(Ee, oe, Y, oe.column)
|
|
1087
1086
|
}, [O("div", {
|
|
1088
|
-
class: H(
|
|
1087
|
+
class: H(oe)
|
|
1089
1088
|
}, [O("div", {
|
|
1090
|
-
class: z(
|
|
1091
|
-
}, [
|
|
1092
|
-
default: () => fe(Y, re),
|
|
1093
|
-
contentTemplate: () => fe(Y, re)
|
|
1094
|
-
}) : fe(Y, re)])])]);
|
|
1089
|
+
class: z(oe)
|
|
1090
|
+
}, [he(Y, oe)])])]);
|
|
1095
1091
|
}
|
|
1096
|
-
function We(Y,
|
|
1097
|
-
return
|
|
1092
|
+
function We(Y, oe) {
|
|
1093
|
+
return oe === "left" && e.value.leftColumns.length > 0 && e.value.leftColumns[0].field === Y.field || oe === "primary" && e.value.primaryColumns.length > 0 && e.value.primaryColumns[0].field === Y.field;
|
|
1098
1094
|
}
|
|
1099
|
-
function Q(Y,
|
|
1095
|
+
function Q(Y, oe) {
|
|
1100
1096
|
t.emit("dblclickNode", {
|
|
1101
1097
|
$event: Y,
|
|
1102
|
-
node:
|
|
1098
|
+
node: oe.raw
|
|
1103
1099
|
});
|
|
1104
1100
|
}
|
|
1105
|
-
function ue(Y,
|
|
1101
|
+
function ue(Y, oe, be = "primary", Ee) {
|
|
1106
1102
|
return O("div", {
|
|
1107
1103
|
ref: Y.setRef,
|
|
1108
1104
|
key: $(Y),
|
|
@@ -1112,7 +1108,7 @@ function yi(n, t, e, r, o, a, i, s, l, u, c, d, v) {
|
|
|
1112
1108
|
onMouseout: (Pe) => m(Pe, Y),
|
|
1113
1109
|
onClick: (Pe) => f(Pe, Y),
|
|
1114
1110
|
onDblclick: (Pe) => Q(Pe, Y)
|
|
1115
|
-
}, [Object.values(Y.data).filter((Pe) =>
|
|
1111
|
+
}, [Object.values(Y.data).filter((Pe) => oe[Pe.field] && Pe.rowSpan === 1).map((Pe) => We(Pe, be) ? _e(Y, Pe, oe) : De(Y, Pe, oe))]);
|
|
1116
1112
|
}
|
|
1117
1113
|
return {
|
|
1118
1114
|
renderDataRow: ue
|
|
@@ -1183,16 +1179,18 @@ function xm(n, t, e, r, o) {
|
|
|
1183
1179
|
});
|
|
1184
1180
|
}
|
|
1185
1181
|
function _() {
|
|
1182
|
+
var T;
|
|
1186
1183
|
return O("div", {
|
|
1187
1184
|
class: "fv-datagrid-pagination position-relative"
|
|
1188
|
-
}, [O(
|
|
1185
|
+
}, [O(Qn, {
|
|
1189
1186
|
ref: l,
|
|
1190
1187
|
mode: "default",
|
|
1191
1188
|
disabled: k.value,
|
|
1192
1189
|
currentPage: a.value,
|
|
1193
|
-
"onUpdate:currentPage": (
|
|
1190
|
+
"onUpdate:currentPage": (y) => a.value = y,
|
|
1194
1191
|
pageSize: u.value,
|
|
1195
|
-
"onUpdate:pageSize": (
|
|
1192
|
+
"onUpdate:pageSize": (y) => u.value = y,
|
|
1193
|
+
showPageInfo: (T = n.pagination) == null ? void 0 : T.showPageInfo,
|
|
1196
1194
|
showGoButton: d.value,
|
|
1197
1195
|
showPageList: w.value,
|
|
1198
1196
|
showPageNumbers: v.value,
|
|
@@ -1241,7 +1239,7 @@ function Sm(n, t, e, r, o) {
|
|
|
1241
1239
|
}, [O("div", {
|
|
1242
1240
|
class: "custom-control custom-checkbox f-checkradio-single",
|
|
1243
1241
|
style: "margin:0;padding-left:0.5rem"
|
|
1244
|
-
}, [
|
|
1242
|
+
}, [zn(O("input", {
|
|
1245
1243
|
id: m(P),
|
|
1246
1244
|
title: m(P),
|
|
1247
1245
|
type: "checkbox",
|
|
@@ -1249,7 +1247,7 @@ function Sm(n, t, e, r, o) {
|
|
|
1249
1247
|
disabled: P.disabled,
|
|
1250
1248
|
"onUpdate:modelValue": (E) => P.checked = E,
|
|
1251
1249
|
class: "custom-control-input"
|
|
1252
|
-
}, null), [[
|
|
1250
|
+
}, null), [[Gr, P.checked]]), O("label", {
|
|
1253
1251
|
class: "custom-control-label",
|
|
1254
1252
|
for: m(P),
|
|
1255
1253
|
onClick: T
|
|
@@ -2087,7 +2085,7 @@ function Di(n, t) {
|
|
|
2087
2085
|
}
|
|
2088
2086
|
function Pi(n, t) {
|
|
2089
2087
|
var b;
|
|
2090
|
-
|
|
2088
|
+
oo();
|
|
2091
2089
|
const { idField: e } = t, r = M(n.summary), o = M(n.group), a = M(((b = n.group) == null ? void 0 : b.groupFields) || []), i = A(() => {
|
|
2092
2090
|
var m;
|
|
2093
2091
|
return (m = n.group) == null ? void 0 : m.enable;
|
|
@@ -2185,8 +2183,8 @@ function Ni(n, t, e, r) {
|
|
|
2185
2183
|
d.clear(), B.reduce((G, K) => {
|
|
2186
2184
|
const Z = K[u.value] !== void 0 ? K[u.value] : "";
|
|
2187
2185
|
if (Z && L.has(Z)) {
|
|
2188
|
-
const
|
|
2189
|
-
K.__fv_layer__ = ge + 1, K.__fv_parent_index__ =
|
|
2186
|
+
const he = L.get(Z), ge = isNaN(Number(he.__fv_layer__)) ? 1 : Number(he.__fv_layer__);
|
|
2187
|
+
K.__fv_layer__ = ge + 1, K.__fv_parent_index__ = he.__fv_index__, he.__fv_hasChildren__ = !0;
|
|
2190
2188
|
} else
|
|
2191
2189
|
K.__fv_layer__ = 1;
|
|
2192
2190
|
const ee = G.has(Z) ? G.get(Z) : [];
|
|
@@ -2234,8 +2232,8 @@ function Ni(n, t, e, r) {
|
|
|
2234
2232
|
}
|
|
2235
2233
|
function _(B, L, G) {
|
|
2236
2234
|
Array.from(L.keys()).forEach((K) => {
|
|
2237
|
-
L.get(K).reduce((ee,
|
|
2238
|
-
const ge =
|
|
2235
|
+
L.get(K).reduce((ee, he) => {
|
|
2236
|
+
const ge = he[i.value], _e = B.get(he[i.value]), De = B.get(K), We = G.get(K);
|
|
2239
2237
|
return De && We && (De.children.set(ge, _e), De.children.set(ge, _e), _e.parentId = K, _e.parentIndex = De.index, _e.parents.set(K, De)), ee;
|
|
2240
2238
|
}, B);
|
|
2241
2239
|
});
|
|
@@ -2299,7 +2297,7 @@ function Ni(n, t, e, r) {
|
|
|
2299
2297
|
}
|
|
2300
2298
|
function $(B, L, G = 0) {
|
|
2301
2299
|
B.forEach((K) => {
|
|
2302
|
-
const Z = F(K), ee = K.__fv_layer__ <= G,
|
|
2300
|
+
const Z = F(K), ee = K.__fv_layer__ <= G, he = L === "ToCollapse" ? K.__fv_layer__ <= G : !(K.__fv_layer__ <= G), ge = ee ? he : K[s.value];
|
|
2303
2301
|
K[s.value] = Z || ge;
|
|
2304
2302
|
});
|
|
2305
2303
|
for (const [K, Z] of d.entries())
|
|
@@ -2314,8 +2312,8 @@ function Ni(n, t, e, r) {
|
|
|
2314
2312
|
}
|
|
2315
2313
|
function V(B) {
|
|
2316
2314
|
B.forEach((L, G) => {
|
|
2317
|
-
var
|
|
2318
|
-
const K = L[i.value], Z = d.has(K) ? (
|
|
2315
|
+
var he;
|
|
2316
|
+
const K = L[i.value], Z = d.has(K) ? (he = d.get(K)) == null ? void 0 : he.map((ge) => ge.__fv_index__) : [], ee = m(K, G);
|
|
2319
2317
|
L.__fv_graph_node__ = ee, L.__fv_children_index__ = Z, L.__fv_descendant_index__ = [...Z], L.__fv_parents__ = /* @__PURE__ */ new Map(), F(L) && (L[s.value] = !0);
|
|
2320
2318
|
});
|
|
2321
2319
|
}
|
|
@@ -2328,18 +2326,18 @@ function Ni(n, t, e, r) {
|
|
|
2328
2326
|
function N(B, L, G) {
|
|
2329
2327
|
const Z = G.value[B][i.value], ee = c.get(Z);
|
|
2330
2328
|
if (ee) {
|
|
2331
|
-
const
|
|
2329
|
+
const he = c.get(ee.parentId);
|
|
2332
2330
|
let ge = G.value.length - 1;
|
|
2333
|
-
if (
|
|
2334
|
-
const _e = Array.from(
|
|
2335
|
-
if (_e ===
|
|
2336
|
-
const We = Array.from(
|
|
2331
|
+
if (he) {
|
|
2332
|
+
const _e = Array.from(he.children.keys()).indexOf(ee.id);
|
|
2333
|
+
if (_e === he.children.size - 1) {
|
|
2334
|
+
const We = Array.from(he.descendant.values())[he.descendant.size - 1];
|
|
2337
2335
|
ge = G.value.findIndex((ue) => ue[i.value] === We.id) + 1;
|
|
2338
2336
|
} else {
|
|
2339
|
-
const We = Array.from(
|
|
2337
|
+
const We = Array.from(he.children.values())[_e + 1];
|
|
2340
2338
|
ge = G.value.findIndex((ue) => ue[i.value] === We.id);
|
|
2341
2339
|
}
|
|
2342
|
-
L[l.value] = !1, L[u.value] =
|
|
2340
|
+
L[l.value] = !1, L[u.value] = he.id, G.value.splice(ge, 0, L);
|
|
2343
2341
|
}
|
|
2344
2342
|
}
|
|
2345
2343
|
}
|
|
@@ -2512,7 +2510,7 @@ const Vi = {
|
|
|
2512
2510
|
}, null)]);
|
|
2513
2511
|
}
|
|
2514
2512
|
});
|
|
2515
|
-
class
|
|
2513
|
+
class Jn {
|
|
2516
2514
|
constructor() {
|
|
2517
2515
|
j(this, "notifyRefs", []);
|
|
2518
2516
|
j(this, "globalConfig", St({}));
|
|
@@ -2533,7 +2531,7 @@ class Zn {
|
|
|
2533
2531
|
...t
|
|
2534
2532
|
}), a = document.createElement("div");
|
|
2535
2533
|
a.style.display = "contents";
|
|
2536
|
-
const i =
|
|
2534
|
+
const i = Gn({
|
|
2537
2535
|
setup() {
|
|
2538
2536
|
var u;
|
|
2539
2537
|
const s = M();
|
|
@@ -2553,7 +2551,7 @@ class Zn {
|
|
|
2553
2551
|
document.body.removeChild(a);
|
|
2554
2552
|
}), zt(() => {
|
|
2555
2553
|
e.updateNotifyPositionForCreate(o, s);
|
|
2556
|
-
}), () => O(
|
|
2554
|
+
}), () => O(qn, {
|
|
2557
2555
|
mode: "out-in",
|
|
2558
2556
|
name: "fade",
|
|
2559
2557
|
appear: !0
|
|
@@ -2634,7 +2632,7 @@ class Zn {
|
|
|
2634
2632
|
const Bi = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
2635
2633
|
Jt.install = (n) => {
|
|
2636
2634
|
n.component(Jt.name, Jt), n.component(vn.name, vn);
|
|
2637
|
-
const t = new
|
|
2635
|
+
const t = new Jn();
|
|
2638
2636
|
n.provide(Bi, t), n.provide("FNotifyService", t);
|
|
2639
2637
|
};
|
|
2640
2638
|
function Wi(n, t, e, r, o) {
|
|
@@ -2668,16 +2666,16 @@ function Wi(n, t, e, r, o) {
|
|
|
2668
2666
|
function L() {
|
|
2669
2667
|
return B.value && B.value.enable && B.value.size > 0 ? B.value.size : $.value.length;
|
|
2670
2668
|
}
|
|
2671
|
-
const G = M(1), K = A(() => B.value && B.value.enable && B.value.mode !== "server"), Z = A(() => B.value && B.value.enable && B.value.mode === "server"), ee = new
|
|
2672
|
-
function
|
|
2669
|
+
const G = M(1), K = A(() => B.value && B.value.enable && B.value.mode !== "server"), Z = A(() => B.value && B.value.enable && B.value.mode === "server"), ee = new Jn();
|
|
2670
|
+
function he(J, pe) {
|
|
2673
2671
|
const Se = Math.ceil(J.length / pe);
|
|
2674
2672
|
let Ne = 0;
|
|
2675
2673
|
const q = [], ne = [], ae = [];
|
|
2676
2674
|
for (; Ne < Se; ) {
|
|
2677
|
-
const
|
|
2675
|
+
const re = J.slice(Ne * pe, (Ne + 1) * pe), xe = w(g.value, re, t);
|
|
2678
2676
|
ne[Ne] = xe.filter((Ce) => Ce.__fv_data_grid_group_row__).length, q.push(...xe), Ne++;
|
|
2679
2677
|
}
|
|
2680
|
-
return ne.reduce((
|
|
2678
|
+
return ne.reduce((re, xe, Ce) => (re = re + xe, ae.push(re), re), 0), {
|
|
2681
2679
|
groupData: q,
|
|
2682
2680
|
groupRowSizeList: ne,
|
|
2683
2681
|
accumulateGroupRowSize: ae
|
|
@@ -2689,13 +2687,13 @@ function Wi(n, t, e, r, o) {
|
|
|
2689
2687
|
const J = 0, pe = L(), Se = (G.value - 1) * pe;
|
|
2690
2688
|
let q = Se > $.value.length - 1 || Z.value ? J : Se, ne = Z.value ? $.value.length : Math.min(q + pe, $.value.length);
|
|
2691
2689
|
if (k.value && K.value) {
|
|
2692
|
-
const { accumulateGroupRowSize: Ce, groupData: Le, groupRowSizeList: Oe } =
|
|
2690
|
+
const { accumulateGroupRowSize: Ce, groupData: Le, groupRowSizeList: Oe } = he(C.value, pe);
|
|
2693
2691
|
$.value = Le;
|
|
2694
2692
|
const Ae = Oe[G.value - 1];
|
|
2695
2693
|
q += G.value - 2 < 0 ? 0 : Ce[G.value - 2], ne = q + pe + Ae;
|
|
2696
2694
|
}
|
|
2697
2695
|
let ae = 0;
|
|
2698
|
-
const
|
|
2696
|
+
const re = [];
|
|
2699
2697
|
if ($.value.length) {
|
|
2700
2698
|
I($.value);
|
|
2701
2699
|
const Ce = E.value !== n.idField;
|
|
@@ -2704,31 +2702,31 @@ function Wi(n, t, e, r, o) {
|
|
|
2704
2702
|
Oe.__fv_data_grid_group_row__ ? (ae = 0, Oe.__fv_data_index__ = "") : Oe.__fv_data_grid_group_summary__ ? Oe.__fv_data_index__ = "" : (ae++, Oe.__fv_data_index__ = ae + (G.value - 1) * pe), Oe.__fv_index__ = Le, Oe.__fv_visible_index__ = Le, n.rowOption && n.rowOption.disabledField && (Oe.__fv_disabled__ = Oe[(xe = n.rowOption) == null ? void 0 : xe.disabledField]), Ce && (Oe[E.value] = Le), N.value.forEach((Ae) => {
|
|
2705
2703
|
const vt = R.get(Ae) || 0;
|
|
2706
2704
|
R.set(Ae, vt + Oe[Ae]);
|
|
2707
|
-
}),
|
|
2705
|
+
}), re.push(Oe);
|
|
2708
2706
|
}
|
|
2709
2707
|
}
|
|
2710
|
-
return S.value && _(
|
|
2708
|
+
return S.value && _(re), W.value = [...re], re;
|
|
2711
2709
|
}
|
|
2712
2710
|
const _e = M(ge()), De = A(() => (P.value, _e.value.filter((J) => S.value ? J.__fv_visible__ !== !1 && h(J) : J.__fv_visible__ !== !1)));
|
|
2713
2711
|
function We() {
|
|
2714
2712
|
De.value.forEach((J, pe) => (J.__fv_visible_index__ = pe, J));
|
|
2715
2713
|
}
|
|
2716
2714
|
function Q(J, pe, Se = !1) {
|
|
2717
|
-
const q = (Se ? ge() : [...W.value]).filter((
|
|
2715
|
+
const q = (Se ? ge() : [...W.value]).filter((re) => e.apply(re)), ne = J && J.length ? q.filter((re) => J.reduce((xe, Ce) => xe && Ce.filter(re), !0)) : q, ae = pe && pe.length ? ne.sort((re, xe) => {
|
|
2718
2716
|
const Ce = [...pe], Le = Ce.shift();
|
|
2719
|
-
let Oe = Le.compare(
|
|
2717
|
+
let Oe = Le.compare(re[Le.field], xe[Le.field]);
|
|
2720
2718
|
for (; Oe === 0 && Ce.length !== 0; ) {
|
|
2721
2719
|
const Ae = Ce.shift();
|
|
2722
|
-
Ae && (Oe = Ae.compare(
|
|
2720
|
+
Ae && (Oe = Ae.compare(re[Ae.field], xe[Ae.field]));
|
|
2723
2721
|
}
|
|
2724
2722
|
return Oe;
|
|
2725
2723
|
}) : ne;
|
|
2726
|
-
return _e.value = ae.map((
|
|
2727
|
-
if (
|
|
2728
|
-
const Ce = `group_of_${
|
|
2729
|
-
|
|
2724
|
+
return _e.value = ae.map((re, xe) => {
|
|
2725
|
+
if (re.__fv_data_grid_group_row__) {
|
|
2726
|
+
const Ce = `group_of_${re.__fv_data_grid_group_field__}_${re.__fv_data_grid_group_value__}`;
|
|
2727
|
+
re.__fv_data_grid_group_collapse__ = !!a.get(Ce);
|
|
2730
2728
|
}
|
|
2731
|
-
return
|
|
2729
|
+
return re.__fv_index__ = xe, re.__fv_visible_index__ = xe, re;
|
|
2732
2730
|
}), _e.value;
|
|
2733
2731
|
}
|
|
2734
2732
|
function ue(J) {
|
|
@@ -2737,7 +2735,7 @@ function Wi(n, t, e, r, o) {
|
|
|
2737
2735
|
function Y(J, pe) {
|
|
2738
2736
|
return u.set(J, pe), d.value = Array.from(u.values()), Q([], d.value);
|
|
2739
2737
|
}
|
|
2740
|
-
function
|
|
2738
|
+
function oe(J) {
|
|
2741
2739
|
return u.delete(J), d.value = Array.from(u.values()), Q([], d.value);
|
|
2742
2740
|
}
|
|
2743
2741
|
function be(J, pe) {
|
|
@@ -2797,7 +2795,7 @@ function Wi(n, t, e, r, o) {
|
|
|
2797
2795
|
C.value = Se, Be();
|
|
2798
2796
|
}
|
|
2799
2797
|
function we(J, pe, Se) {
|
|
2800
|
-
return (J && J.length ? _e.value.filter((q, ne) => J.reduce((ae,
|
|
2798
|
+
return (J && J.length ? _e.value.filter((q, ne) => J.reduce((ae, re) => ae && re.filter(q), !0)) : _e.value).slice(pe, Se);
|
|
2801
2799
|
}
|
|
2802
2800
|
function $e(J) {
|
|
2803
2801
|
const pe = L(), Se = Math.ceil(X.value / pe);
|
|
@@ -2836,11 +2834,11 @@ function Wi(n, t, e, r, o) {
|
|
|
2836
2834
|
const J = s.size > 0 ? Array.from(s.values()) : [];
|
|
2837
2835
|
return Q(J, Array.from(u.values()));
|
|
2838
2836
|
}
|
|
2839
|
-
function
|
|
2837
|
+
function me(J) {
|
|
2840
2838
|
B.value.size = J;
|
|
2841
2839
|
}
|
|
2842
2840
|
function ye(J) {
|
|
2843
|
-
B.value && (
|
|
2841
|
+
B.value && (me(J), Be());
|
|
2844
2842
|
}
|
|
2845
2843
|
function He(J, pe) {
|
|
2846
2844
|
const Se = C.value[Number(J) - 1];
|
|
@@ -2861,7 +2859,7 @@ function Wi(n, t, e, r, o) {
|
|
|
2861
2859
|
addFilter: be,
|
|
2862
2860
|
addNewDataItem: Re,
|
|
2863
2861
|
addSorter: Y,
|
|
2864
|
-
updatePageSize:
|
|
2862
|
+
updatePageSize: me,
|
|
2865
2863
|
changePageSizeTo: ye,
|
|
2866
2864
|
collapse: at,
|
|
2867
2865
|
collapseTo: gt,
|
|
@@ -2887,7 +2885,7 @@ function Wi(n, t, e, r, o) {
|
|
|
2887
2885
|
removeDataItemById: nt,
|
|
2888
2886
|
removeFilter: Ee,
|
|
2889
2887
|
removeHierarchyDataItem: Tt,
|
|
2890
|
-
removeSorter:
|
|
2888
|
+
removeSorter: oe,
|
|
2891
2889
|
reOrderVisibleIndex: We,
|
|
2892
2890
|
setSorters: ue,
|
|
2893
2891
|
sorters: d,
|
|
@@ -2899,7 +2897,7 @@ function Wi(n, t, e, r, o) {
|
|
|
2899
2897
|
visibleDataItems: De
|
|
2900
2898
|
};
|
|
2901
2899
|
}
|
|
2902
|
-
const
|
|
2900
|
+
const Zn = {
|
|
2903
2901
|
conditions: { type: Array, default: [] },
|
|
2904
2902
|
fields: { type: Array, default: [] },
|
|
2905
2903
|
key: { type: String, default: "" },
|
|
@@ -2908,7 +2906,7 @@ const er = {
|
|
|
2908
2906
|
*/
|
|
2909
2907
|
isControlInline: { type: Boolean, default: !0 }
|
|
2910
2908
|
};
|
|
2911
|
-
class
|
|
2909
|
+
class er {
|
|
2912
2910
|
constructor(t = { value: [] }) {
|
|
2913
2911
|
j(this, "editorType", "check-box");
|
|
2914
2912
|
j(this, "value");
|
|
@@ -2932,7 +2930,7 @@ class tr {
|
|
|
2932
2930
|
return this.value.length === 0;
|
|
2933
2931
|
}
|
|
2934
2932
|
}
|
|
2935
|
-
class
|
|
2933
|
+
class tr {
|
|
2936
2934
|
constructor(t = { textValue: "", value: "", valueField: "" }) {
|
|
2937
2935
|
j(this, "editorType", "combo-lookup");
|
|
2938
2936
|
j(this, "textValue");
|
|
@@ -2976,11 +2974,11 @@ function Ze(n) {
|
|
|
2976
2974
|
function qe(n, t) {
|
|
2977
2975
|
return n instanceof Date ? new n.constructor(t) : new Date(t);
|
|
2978
2976
|
}
|
|
2979
|
-
function
|
|
2977
|
+
function nr(n, t) {
|
|
2980
2978
|
const e = Ze(n);
|
|
2981
2979
|
return isNaN(t) ? qe(n, NaN) : (t && e.setDate(e.getDate() + t), e);
|
|
2982
2980
|
}
|
|
2983
|
-
const
|
|
2981
|
+
const rr = 6048e5, Hi = 864e5, Li = 6e4, $i = 36e5, ji = 1e3;
|
|
2984
2982
|
let Ai = {};
|
|
2985
2983
|
function Gt() {
|
|
2986
2984
|
return Ai;
|
|
@@ -2993,7 +2991,7 @@ function It(n, t) {
|
|
|
2993
2991
|
function jt(n) {
|
|
2994
2992
|
return It(n, { weekStartsOn: 1 });
|
|
2995
2993
|
}
|
|
2996
|
-
function
|
|
2994
|
+
function or(n) {
|
|
2997
2995
|
const t = Ze(n), e = t.getFullYear(), r = qe(n, 0);
|
|
2998
2996
|
r.setFullYear(e + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
2999
2997
|
const o = jt(r), a = qe(n, 0);
|
|
@@ -3001,7 +2999,7 @@ function ar(n) {
|
|
|
3001
2999
|
const i = jt(a);
|
|
3002
3000
|
return t.getTime() >= o.getTime() ? e + 1 : t.getTime() >= i.getTime() ? e : e - 1;
|
|
3003
3001
|
}
|
|
3004
|
-
function
|
|
3002
|
+
function Vn(n) {
|
|
3005
3003
|
const t = Ze(n);
|
|
3006
3004
|
return t.setHours(0, 0, 0, 0), t;
|
|
3007
3005
|
}
|
|
@@ -3020,11 +3018,11 @@ function tn(n) {
|
|
|
3020
3018
|
return e.setUTCFullYear(t.getFullYear()), +n - +e;
|
|
3021
3019
|
}
|
|
3022
3020
|
function zi(n, t) {
|
|
3023
|
-
const e =
|
|
3021
|
+
const e = Vn(n), r = Vn(t), o = +e - tn(e), a = +r - tn(r);
|
|
3024
3022
|
return Math.round((o - a) / Hi);
|
|
3025
3023
|
}
|
|
3026
3024
|
function Gi(n) {
|
|
3027
|
-
const t =
|
|
3025
|
+
const t = or(n), e = qe(n, 0);
|
|
3028
3026
|
return e.setFullYear(t, 0, 4), e.setHours(0, 0, 0, 0), jt(e);
|
|
3029
3027
|
}
|
|
3030
3028
|
function qi(n) {
|
|
@@ -3459,7 +3457,7 @@ const hs = /^(\d+)(th|st|nd|rd)?/i, ps = /\d+/i, vs = {
|
|
|
3459
3457
|
parsePatterns: Ts,
|
|
3460
3458
|
defaultParseWidth: "any"
|
|
3461
3459
|
})
|
|
3462
|
-
},
|
|
3460
|
+
}, ar = {
|
|
3463
3461
|
code: "en-US",
|
|
3464
3462
|
formatDistance: Qi,
|
|
3465
3463
|
formatLong: es,
|
|
@@ -3475,9 +3473,9 @@ function Fs(n) {
|
|
|
3475
3473
|
const t = Ze(n);
|
|
3476
3474
|
return zi(t, Ui(t)) + 1;
|
|
3477
3475
|
}
|
|
3478
|
-
function
|
|
3476
|
+
function ir(n) {
|
|
3479
3477
|
const t = Ze(n), e = +jt(t) - +Gi(t);
|
|
3480
|
-
return Math.round(e /
|
|
3478
|
+
return Math.round(e / rr) + 1;
|
|
3481
3479
|
}
|
|
3482
3480
|
function _n(n, t) {
|
|
3483
3481
|
var c, d, v, w;
|
|
@@ -3493,9 +3491,9 @@ function Es(n, t) {
|
|
|
3493
3491
|
const e = Gt(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((c = (u = e.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, o = _n(n, t), a = qe(n, 0);
|
|
3494
3492
|
return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), It(a, t);
|
|
3495
3493
|
}
|
|
3496
|
-
function
|
|
3494
|
+
function sr(n, t) {
|
|
3497
3495
|
const e = Ze(n), r = +It(e, t) - +Es(e, t);
|
|
3498
|
-
return Math.round(r /
|
|
3496
|
+
return Math.round(r / rr) + 1;
|
|
3499
3497
|
}
|
|
3500
3498
|
function Ve(n, t) {
|
|
3501
3499
|
const e = n < 0 ? "-" : "", r = Math.abs(n).toString().padStart(t, "0");
|
|
@@ -3564,7 +3562,7 @@ const kt = {
|
|
|
3564
3562
|
afternoon: "afternoon",
|
|
3565
3563
|
evening: "evening",
|
|
3566
3564
|
night: "night"
|
|
3567
|
-
},
|
|
3565
|
+
}, Rn = {
|
|
3568
3566
|
// Era
|
|
3569
3567
|
G: function(n, t, e) {
|
|
3570
3568
|
const r = n.getFullYear() > 0 ? 1 : 0;
|
|
@@ -3599,7 +3597,7 @@ const kt = {
|
|
|
3599
3597
|
},
|
|
3600
3598
|
// ISO week-numbering year
|
|
3601
3599
|
R: function(n, t) {
|
|
3602
|
-
const e =
|
|
3600
|
+
const e = or(n);
|
|
3603
3601
|
return Ve(e, t.length);
|
|
3604
3602
|
},
|
|
3605
3603
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -3722,12 +3720,12 @@ const kt = {
|
|
|
3722
3720
|
},
|
|
3723
3721
|
// Local week of year
|
|
3724
3722
|
w: function(n, t, e, r) {
|
|
3725
|
-
const o =
|
|
3723
|
+
const o = sr(n, r);
|
|
3726
3724
|
return t === "wo" ? e.ordinalNumber(o, { unit: "week" }) : Ve(o, t.length);
|
|
3727
3725
|
},
|
|
3728
3726
|
// ISO week of year
|
|
3729
3727
|
I: function(n, t, e) {
|
|
3730
|
-
const r =
|
|
3728
|
+
const r = ir(n);
|
|
3731
3729
|
return t === "Io" ? e.ordinalNumber(r, { unit: "week" }) : Ve(r, t.length);
|
|
3732
3730
|
},
|
|
3733
3731
|
// Day of the month
|
|
@@ -3990,7 +3988,7 @@ const kt = {
|
|
|
3990
3988
|
return "Z";
|
|
3991
3989
|
switch (t) {
|
|
3992
3990
|
case "X":
|
|
3993
|
-
return
|
|
3991
|
+
return Wn(r);
|
|
3994
3992
|
case "XXXX":
|
|
3995
3993
|
case "XX":
|
|
3996
3994
|
return Vt(r);
|
|
@@ -4005,7 +4003,7 @@ const kt = {
|
|
|
4005
4003
|
const r = n.getTimezoneOffset();
|
|
4006
4004
|
switch (t) {
|
|
4007
4005
|
case "x":
|
|
4008
|
-
return
|
|
4006
|
+
return Wn(r);
|
|
4009
4007
|
case "xxxx":
|
|
4010
4008
|
case "xx":
|
|
4011
4009
|
return Vt(r);
|
|
@@ -4022,7 +4020,7 @@ const kt = {
|
|
|
4022
4020
|
case "O":
|
|
4023
4021
|
case "OO":
|
|
4024
4022
|
case "OOO":
|
|
4025
|
-
return "GMT" +
|
|
4023
|
+
return "GMT" + Bn(r, ":");
|
|
4026
4024
|
case "OOOO":
|
|
4027
4025
|
default:
|
|
4028
4026
|
return "GMT" + Vt(r, ":");
|
|
@@ -4035,7 +4033,7 @@ const kt = {
|
|
|
4035
4033
|
case "z":
|
|
4036
4034
|
case "zz":
|
|
4037
4035
|
case "zzz":
|
|
4038
|
-
return "GMT" +
|
|
4036
|
+
return "GMT" + Bn(r, ":");
|
|
4039
4037
|
case "zzzz":
|
|
4040
4038
|
default:
|
|
4041
4039
|
return "GMT" + Vt(r, ":");
|
|
@@ -4052,18 +4050,18 @@ const kt = {
|
|
|
4052
4050
|
return Ve(r, t.length);
|
|
4053
4051
|
}
|
|
4054
4052
|
};
|
|
4055
|
-
function
|
|
4053
|
+
function Bn(n, t = "") {
|
|
4056
4054
|
const e = n > 0 ? "-" : "+", r = Math.abs(n), o = Math.trunc(r / 60), a = r % 60;
|
|
4057
4055
|
return a === 0 ? e + String(o) : e + String(o) + t + Ve(a, 2);
|
|
4058
4056
|
}
|
|
4059
|
-
function
|
|
4057
|
+
function Wn(n, t) {
|
|
4060
4058
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + Ve(Math.abs(n) / 60, 2) : Vt(n, t);
|
|
4061
4059
|
}
|
|
4062
4060
|
function Vt(n, t = "") {
|
|
4063
4061
|
const e = n > 0 ? "-" : "+", r = Math.abs(n), o = Ve(Math.trunc(r / 60), 2), a = Ve(r % 60, 2);
|
|
4064
4062
|
return e + o + t + a;
|
|
4065
4063
|
}
|
|
4066
|
-
const
|
|
4064
|
+
const Hn = (n, t) => {
|
|
4067
4065
|
switch (n) {
|
|
4068
4066
|
case "P":
|
|
4069
4067
|
return t.date({ width: "short" });
|
|
@@ -4075,7 +4073,7 @@ const Ln = (n, t) => {
|
|
|
4075
4073
|
default:
|
|
4076
4074
|
return t.date({ width: "full" });
|
|
4077
4075
|
}
|
|
4078
|
-
},
|
|
4076
|
+
}, lr = (n, t) => {
|
|
4079
4077
|
switch (n) {
|
|
4080
4078
|
case "p":
|
|
4081
4079
|
return t.time({ width: "short" });
|
|
@@ -4090,7 +4088,7 @@ const Ln = (n, t) => {
|
|
|
4090
4088
|
}, Os = (n, t) => {
|
|
4091
4089
|
const e = n.match(/(P+)(p+)?/) || [], r = e[1], o = e[2];
|
|
4092
4090
|
if (!o)
|
|
4093
|
-
return
|
|
4091
|
+
return Hn(n, t);
|
|
4094
4092
|
let a;
|
|
4095
4093
|
switch (r) {
|
|
4096
4094
|
case "P":
|
|
@@ -4107,15 +4105,15 @@ const Ln = (n, t) => {
|
|
|
4107
4105
|
a = t.dateTime({ width: "full" });
|
|
4108
4106
|
break;
|
|
4109
4107
|
}
|
|
4110
|
-
return a.replace("{{date}}",
|
|
4108
|
+
return a.replace("{{date}}", Hn(r, t)).replace("{{time}}", lr(o, t));
|
|
4111
4109
|
}, gn = {
|
|
4112
|
-
p:
|
|
4110
|
+
p: lr,
|
|
4113
4111
|
P: Os
|
|
4114
4112
|
}, Ms = /^D+$/, Is = /^Y+$/, Ds = ["D", "DD", "YY", "YYYY"];
|
|
4115
|
-
function
|
|
4113
|
+
function ur(n) {
|
|
4116
4114
|
return Ms.test(n);
|
|
4117
4115
|
}
|
|
4118
|
-
function
|
|
4116
|
+
function cr(n) {
|
|
4119
4117
|
return Is.test(n);
|
|
4120
4118
|
}
|
|
4121
4119
|
function yn(n, t, e) {
|
|
@@ -4127,9 +4125,9 @@ function Ps(n, t, e) {
|
|
|
4127
4125
|
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
4128
4126
|
}
|
|
4129
4127
|
const Ns = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Vs = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Rs = /^'([^]*?)'?$/, Bs = /''/g, Ws = /[a-zA-Z]/;
|
|
4130
|
-
function
|
|
4128
|
+
function dr(n, t, e) {
|
|
4131
4129
|
var c, d, v, w;
|
|
4132
|
-
const r = Gt(), o = r.locale ??
|
|
4130
|
+
const r = Gt(), o = r.locale ?? ar, a = r.firstWeekContainsDate ?? ((d = (c = r.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, i = r.weekStartsOn ?? ((w = (v = r.locale) == null ? void 0 : v.options) == null ? void 0 : w.weekStartsOn) ?? 0, s = Ze(n);
|
|
4133
4131
|
if (!Yi(s))
|
|
4134
4132
|
throw new RangeError("Invalid time value");
|
|
4135
4133
|
let l = t.match(Vs).map((g) => {
|
|
@@ -4145,7 +4143,7 @@ function fr(n, t, e) {
|
|
|
4145
4143
|
const k = g[0];
|
|
4146
4144
|
if (k === "'")
|
|
4147
4145
|
return { isToken: !1, value: Hs(g) };
|
|
4148
|
-
if (
|
|
4146
|
+
if (Rn[k])
|
|
4149
4147
|
return { isToken: !0, value: g };
|
|
4150
4148
|
if (k.match(Ws))
|
|
4151
4149
|
throw new RangeError(
|
|
@@ -4162,8 +4160,8 @@ function fr(n, t, e) {
|
|
|
4162
4160
|
return l.map((g) => {
|
|
4163
4161
|
if (!g.isToken) return g.value;
|
|
4164
4162
|
const k = g.value;
|
|
4165
|
-
(
|
|
4166
|
-
const C =
|
|
4163
|
+
(cr(k) || ur(k)) && yn(k, t, String(n));
|
|
4164
|
+
const C = Rn[k[0]];
|
|
4167
4165
|
return C(s, k, o.localize, u);
|
|
4168
4166
|
}).join("");
|
|
4169
4167
|
}
|
|
@@ -4192,7 +4190,7 @@ function js(n, t) {
|
|
|
4192
4190
|
), e;
|
|
4193
4191
|
}
|
|
4194
4192
|
const As = 10;
|
|
4195
|
-
class
|
|
4193
|
+
class fr {
|
|
4196
4194
|
constructor() {
|
|
4197
4195
|
j(this, "subPriority", 0);
|
|
4198
4196
|
}
|
|
@@ -4200,7 +4198,7 @@ class mr {
|
|
|
4200
4198
|
return !0;
|
|
4201
4199
|
}
|
|
4202
4200
|
}
|
|
4203
|
-
class zs extends
|
|
4201
|
+
class zs extends fr {
|
|
4204
4202
|
constructor(t, e, r, o, a) {
|
|
4205
4203
|
super(), this.value = t, this.validateValue = e, this.setValue = r, this.priority = o, a && (this.subPriority = a);
|
|
4206
4204
|
}
|
|
@@ -4211,7 +4209,7 @@ class zs extends mr {
|
|
|
4211
4209
|
return this.setValue(t, e, this.value, r);
|
|
4212
4210
|
}
|
|
4213
4211
|
}
|
|
4214
|
-
class Gs extends
|
|
4212
|
+
class Gs extends fr {
|
|
4215
4213
|
constructor() {
|
|
4216
4214
|
super(...arguments);
|
|
4217
4215
|
j(this, "priority", As);
|
|
@@ -4335,7 +4333,7 @@ function _t(n, t) {
|
|
|
4335
4333
|
rest: t.slice(e[0].length)
|
|
4336
4334
|
};
|
|
4337
4335
|
}
|
|
4338
|
-
function
|
|
4336
|
+
function mr(n) {
|
|
4339
4337
|
return ze(Ue.anyDigitsSigned, n);
|
|
4340
4338
|
}
|
|
4341
4339
|
function Ye(n, t) {
|
|
@@ -4383,7 +4381,7 @@ function xn(n) {
|
|
|
4383
4381
|
return 0;
|
|
4384
4382
|
}
|
|
4385
4383
|
}
|
|
4386
|
-
function
|
|
4384
|
+
function hr(n, t) {
|
|
4387
4385
|
const e = t > 0, r = e ? t : 1 - t;
|
|
4388
4386
|
let o;
|
|
4389
4387
|
if (r <= 50)
|
|
@@ -4394,7 +4392,7 @@ function pr(n, t) {
|
|
|
4394
4392
|
}
|
|
4395
4393
|
return e ? o : 1 - o;
|
|
4396
4394
|
}
|
|
4397
|
-
function
|
|
4395
|
+
function pr(n) {
|
|
4398
4396
|
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
4399
4397
|
}
|
|
4400
4398
|
class Ys extends Me {
|
|
@@ -4428,7 +4426,7 @@ class Ys extends Me {
|
|
|
4428
4426
|
set(e, r, o) {
|
|
4429
4427
|
const a = e.getFullYear();
|
|
4430
4428
|
if (o.isTwoDigitYear) {
|
|
4431
|
-
const s =
|
|
4429
|
+
const s = hr(
|
|
4432
4430
|
o.year,
|
|
4433
4431
|
a
|
|
4434
4432
|
);
|
|
@@ -4483,7 +4481,7 @@ class Us extends Me {
|
|
|
4483
4481
|
set(e, r, o, a) {
|
|
4484
4482
|
const i = _n(e, a);
|
|
4485
4483
|
if (o.isTwoDigitYear) {
|
|
4486
|
-
const l =
|
|
4484
|
+
const l = hr(
|
|
4487
4485
|
o.year,
|
|
4488
4486
|
i
|
|
4489
4487
|
);
|
|
@@ -4789,7 +4787,7 @@ class el extends Me {
|
|
|
4789
4787
|
}
|
|
4790
4788
|
}
|
|
4791
4789
|
function tl(n, t, e) {
|
|
4792
|
-
const r = Ze(n), o =
|
|
4790
|
+
const r = Ze(n), o = sr(r, e) - t;
|
|
4793
4791
|
return r.setDate(r.getDate() - o * 7), r;
|
|
4794
4792
|
}
|
|
4795
4793
|
class nl extends Me {
|
|
@@ -4830,7 +4828,7 @@ class nl extends Me {
|
|
|
4830
4828
|
}
|
|
4831
4829
|
}
|
|
4832
4830
|
function rl(n, t) {
|
|
4833
|
-
const e = Ze(n), r =
|
|
4831
|
+
const e = Ze(n), r = ir(e) - t;
|
|
4834
4832
|
return e.setDate(e.getDate() - r * 7), e;
|
|
4835
4833
|
}
|
|
4836
4834
|
class ol extends Me {
|
|
@@ -4916,7 +4914,7 @@ class sl extends Me {
|
|
|
4916
4914
|
}
|
|
4917
4915
|
}
|
|
4918
4916
|
validate(e, r) {
|
|
4919
|
-
const o = e.getFullYear(), a =
|
|
4917
|
+
const o = e.getFullYear(), a = pr(o), i = e.getMonth();
|
|
4920
4918
|
return a ? r >= 1 && r <= il[i] : r >= 1 && r <= al[i];
|
|
4921
4919
|
}
|
|
4922
4920
|
set(e, r, o) {
|
|
@@ -4959,7 +4957,7 @@ class ll extends Me {
|
|
|
4959
4957
|
}
|
|
4960
4958
|
validate(e, r) {
|
|
4961
4959
|
const o = e.getFullYear();
|
|
4962
|
-
return
|
|
4960
|
+
return pr(o) ? r >= 1 && r <= 366 : r >= 1 && r <= 365;
|
|
4963
4961
|
}
|
|
4964
4962
|
set(e, r, o) {
|
|
4965
4963
|
return e.setMonth(0, o), e.setHours(0, 0, 0, 0), e;
|
|
@@ -4968,7 +4966,7 @@ class ll extends Me {
|
|
|
4968
4966
|
function Sn(n, t, e) {
|
|
4969
4967
|
var d, v, w, g;
|
|
4970
4968
|
const r = Gt(), o = (e == null ? void 0 : e.weekStartsOn) ?? ((v = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : v.weekStartsOn) ?? r.weekStartsOn ?? ((g = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : g.weekStartsOn) ?? 0, a = Ze(n), i = a.getDay(), l = (t % 7 + 7) % 7, u = 7 - o, c = t < 0 || t > 6 ? t - (i + u) % 7 : (l + u) % 7 - (i + u) % 7;
|
|
4971
|
-
return
|
|
4969
|
+
return nr(a, c);
|
|
4972
4970
|
}
|
|
4973
4971
|
class ul extends Me {
|
|
4974
4972
|
constructor() {
|
|
@@ -5139,7 +5137,7 @@ class dl extends Me {
|
|
|
5139
5137
|
}
|
|
5140
5138
|
function fl(n, t) {
|
|
5141
5139
|
const e = Ze(n), r = $s(e), o = t - r;
|
|
5142
|
-
return
|
|
5140
|
+
return nr(e, o);
|
|
5143
5141
|
}
|
|
5144
5142
|
class ml extends Me {
|
|
5145
5143
|
constructor() {
|
|
@@ -5589,7 +5587,7 @@ class kl extends Me {
|
|
|
5589
5587
|
j(this, "incompatibleTokens", "*");
|
|
5590
5588
|
}
|
|
5591
5589
|
parse(e) {
|
|
5592
|
-
return
|
|
5590
|
+
return mr(e);
|
|
5593
5591
|
}
|
|
5594
5592
|
set(e, r, o) {
|
|
5595
5593
|
return [qe(e, o * 1e3), { timestampIsSet: !0 }];
|
|
@@ -5602,7 +5600,7 @@ class Fl extends Me {
|
|
|
5602
5600
|
j(this, "incompatibleTokens", "*");
|
|
5603
5601
|
}
|
|
5604
5602
|
parse(e) {
|
|
5605
|
-
return
|
|
5603
|
+
return mr(e);
|
|
5606
5604
|
}
|
|
5607
5605
|
set(e, r, o) {
|
|
5608
5606
|
return [qe(e, o), { timestampIsSet: !0 }];
|
|
@@ -5641,9 +5639,9 @@ const El = {
|
|
|
5641
5639
|
t: new kl(),
|
|
5642
5640
|
T: new Fl()
|
|
5643
5641
|
}, Ol = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ml = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Il = /^'([^]*?)'?$/, Dl = /''/g, Pl = /\S/, Nl = /[a-zA-Z]/;
|
|
5644
|
-
function
|
|
5642
|
+
function vr(n, t, e, r) {
|
|
5645
5643
|
var k, C, f, b;
|
|
5646
|
-
const o = Ls(), a = o.locale ??
|
|
5644
|
+
const o = Ls(), a = o.locale ?? ar, i = o.firstWeekContainsDate ?? ((C = (k = o.locale) == null ? void 0 : k.options) == null ? void 0 : C.firstWeekContainsDate) ?? 1, s = o.weekStartsOn ?? ((b = (f = o.locale) == null ? void 0 : f.options) == null ? void 0 : b.weekStartsOn) ?? 0;
|
|
5647
5645
|
if (t === "")
|
|
5648
5646
|
return n === "" ? Ze(e) : qe(e, NaN);
|
|
5649
5647
|
const l = {
|
|
@@ -5659,7 +5657,7 @@ function gr(n, t, e, r) {
|
|
|
5659
5657
|
return m;
|
|
5660
5658
|
}).join("").match(Ol), d = [];
|
|
5661
5659
|
for (let m of c) {
|
|
5662
|
-
|
|
5660
|
+
cr(m) && yn(m, t, n), ur(m) && yn(m, t, n);
|
|
5663
5661
|
const _ = m[0], T = El[_];
|
|
5664
5662
|
if (T) {
|
|
5665
5663
|
const { incompatibleTokens: y } = T;
|
|
@@ -5716,7 +5714,7 @@ function gr(n, t, e, r) {
|
|
|
5716
5714
|
function Vl(n) {
|
|
5717
5715
|
return n.match(Il)[1].replace(Dl, "'");
|
|
5718
5716
|
}
|
|
5719
|
-
class
|
|
5717
|
+
class gr {
|
|
5720
5718
|
constructor(t = { value: "", displayFormat: "", valueFormat: "" }) {
|
|
5721
5719
|
j(this, "editorType", "date-picker");
|
|
5722
5720
|
j(this, "value");
|
|
@@ -5733,8 +5731,8 @@ class yr {
|
|
|
5733
5731
|
}
|
|
5734
5732
|
getDisplayText() {
|
|
5735
5733
|
if (typeof this.value == "string" && this.value) {
|
|
5736
|
-
const t =
|
|
5737
|
-
return
|
|
5734
|
+
const t = vr(this.value, this.valueFormat, /* @__PURE__ */ new Date());
|
|
5735
|
+
return dr(t, this.displayFormat);
|
|
5738
5736
|
}
|
|
5739
5737
|
return this.getValue();
|
|
5740
5738
|
}
|
|
@@ -5769,7 +5767,7 @@ class rn {
|
|
|
5769
5767
|
return !this.begin || !this.end;
|
|
5770
5768
|
}
|
|
5771
5769
|
}
|
|
5772
|
-
class
|
|
5770
|
+
class yr {
|
|
5773
5771
|
constructor(t = { value: "", displayFormat: "", valueFormat: "" }) {
|
|
5774
5772
|
j(this, "editorType", "datetime-picker");
|
|
5775
5773
|
j(this, "value");
|
|
@@ -5786,8 +5784,8 @@ class br {
|
|
|
5786
5784
|
}
|
|
5787
5785
|
getDisplayText() {
|
|
5788
5786
|
if (typeof this.value == "string" && this.value) {
|
|
5789
|
-
const t =
|
|
5790
|
-
return
|
|
5787
|
+
const t = vr(this.value, this.valueFormat, /* @__PURE__ */ new Date());
|
|
5788
|
+
return dr(t, this.displayFormat);
|
|
5791
5789
|
}
|
|
5792
5790
|
return this.getValue();
|
|
5793
5791
|
}
|
|
@@ -5798,7 +5796,7 @@ class br {
|
|
|
5798
5796
|
return !this.value;
|
|
5799
5797
|
}
|
|
5800
5798
|
}
|
|
5801
|
-
class
|
|
5799
|
+
class br {
|
|
5802
5800
|
constructor(t = { value: "", valueList: [] }) {
|
|
5803
5801
|
j(this, "editorType", "combo-list");
|
|
5804
5802
|
j(this, "value");
|
|
@@ -5883,7 +5881,7 @@ class Rl {
|
|
|
5883
5881
|
return !this.displayText && !this.value.length;
|
|
5884
5882
|
}
|
|
5885
5883
|
}
|
|
5886
|
-
class
|
|
5884
|
+
class wr {
|
|
5887
5885
|
constructor(t = { mapFields: [], value: "", valueField: "", isInputText: !1, helpId: "" }) {
|
|
5888
5886
|
j(this, "editorType", "lookup");
|
|
5889
5887
|
j(this, "helpId");
|
|
@@ -5911,7 +5909,7 @@ class Cr {
|
|
|
5911
5909
|
return !this.mapFields.length;
|
|
5912
5910
|
}
|
|
5913
5911
|
}
|
|
5914
|
-
class
|
|
5912
|
+
class Cr {
|
|
5915
5913
|
constructor(t = { value: "" }) {
|
|
5916
5914
|
j(this, "editorType", "month-picker");
|
|
5917
5915
|
j(this, "value");
|
|
@@ -5934,7 +5932,7 @@ class _r {
|
|
|
5934
5932
|
return !this.value;
|
|
5935
5933
|
}
|
|
5936
5934
|
}
|
|
5937
|
-
class
|
|
5935
|
+
class _r {
|
|
5938
5936
|
constructor(t = { begin: "", end: "" }) {
|
|
5939
5937
|
j(this, "editorType", "month-range");
|
|
5940
5938
|
j(this, "begin");
|
|
@@ -5958,7 +5956,7 @@ class xr {
|
|
|
5958
5956
|
return !this.begin || !this.end;
|
|
5959
5957
|
}
|
|
5960
5958
|
}
|
|
5961
|
-
class
|
|
5959
|
+
class xr {
|
|
5962
5960
|
constructor(t = { begin: null, end: null }) {
|
|
5963
5961
|
j(this, "editorType", "number-range");
|
|
5964
5962
|
j(this, "begin");
|
|
@@ -5985,7 +5983,7 @@ class Sr {
|
|
|
5985
5983
|
return this.begin == null && this.end == null;
|
|
5986
5984
|
}
|
|
5987
5985
|
}
|
|
5988
|
-
class
|
|
5986
|
+
class Sr {
|
|
5989
5987
|
constructor(t = { value: "" }) {
|
|
5990
5988
|
j(this, "editorType", "number-spinner");
|
|
5991
5989
|
j(this, "value");
|
|
@@ -6009,7 +6007,7 @@ class Tr {
|
|
|
6009
6007
|
return this.value == null || isNaN(this.value);
|
|
6010
6008
|
}
|
|
6011
6009
|
}
|
|
6012
|
-
class
|
|
6010
|
+
class Tr {
|
|
6013
6011
|
constructor(t = { value: null, valueList: [] }) {
|
|
6014
6012
|
j(this, "editorType", "radio-group");
|
|
6015
6013
|
j(this, "value");
|
|
@@ -6057,45 +6055,45 @@ class on {
|
|
|
6057
6055
|
return !this.value;
|
|
6058
6056
|
}
|
|
6059
6057
|
}
|
|
6060
|
-
function
|
|
6058
|
+
function kr() {
|
|
6061
6059
|
function n(t, e) {
|
|
6062
6060
|
switch (t) {
|
|
6063
6061
|
case "check-box":
|
|
6064
|
-
return new
|
|
6062
|
+
return new er(e);
|
|
6065
6063
|
case "combo-list":
|
|
6066
|
-
return new
|
|
6064
|
+
return new br(e);
|
|
6067
6065
|
case "combo-lookup":
|
|
6068
|
-
return new
|
|
6066
|
+
return new tr(e);
|
|
6069
6067
|
case "input-group":
|
|
6070
6068
|
return new Rl(e);
|
|
6071
6069
|
case "date-picker":
|
|
6072
|
-
return new
|
|
6070
|
+
return new gr(e);
|
|
6073
6071
|
case "date-range":
|
|
6074
6072
|
return new rn(e);
|
|
6075
6073
|
case "datetime-picker":
|
|
6076
|
-
return new
|
|
6074
|
+
return new yr(e);
|
|
6077
6075
|
case "datetime-range":
|
|
6078
6076
|
return new rn(e);
|
|
6079
6077
|
case "lookup":
|
|
6080
|
-
return new
|
|
6078
|
+
return new wr(e);
|
|
6081
6079
|
case "month-picker":
|
|
6082
|
-
return new
|
|
6080
|
+
return new Cr(e);
|
|
6083
6081
|
case "month-range":
|
|
6084
|
-
return new
|
|
6082
|
+
return new _r(e);
|
|
6085
6083
|
case "number-range":
|
|
6086
|
-
return new
|
|
6084
|
+
return new xr(e);
|
|
6087
6085
|
case "number-spinner":
|
|
6088
|
-
return new
|
|
6086
|
+
return new Sr(e);
|
|
6089
6087
|
case "radio-group":
|
|
6090
|
-
return new
|
|
6088
|
+
return new Tr(e);
|
|
6091
6089
|
default:
|
|
6092
6090
|
return new on(e);
|
|
6093
6091
|
}
|
|
6094
6092
|
}
|
|
6095
6093
|
return { createConditionValue: n };
|
|
6096
6094
|
}
|
|
6097
|
-
function
|
|
6098
|
-
const e = M(n.fields), r = M([]), o = /* @__PURE__ */ new Map(), { createConditionValue: a } =
|
|
6095
|
+
function Fr(n, t) {
|
|
6096
|
+
const e = M(n.fields), r = M([]), o = /* @__PURE__ */ new Map(), { createConditionValue: a } = kr();
|
|
6099
6097
|
function i(c) {
|
|
6100
6098
|
switch (c.editor ? c.editor.type : "input-group") {
|
|
6101
6099
|
case "date-range":
|
|
@@ -6157,14 +6155,14 @@ function Bl(n, t, e) {
|
|
|
6157
6155
|
resizeObserver: r
|
|
6158
6156
|
};
|
|
6159
6157
|
}
|
|
6160
|
-
const
|
|
6158
|
+
const Ln = /* @__PURE__ */ ht({
|
|
6161
6159
|
name: "FConditionFields",
|
|
6162
|
-
props:
|
|
6160
|
+
props: Zn,
|
|
6163
6161
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
6164
6162
|
setup(n, t) {
|
|
6165
6163
|
const e = M(), r = M(n.key);
|
|
6166
6164
|
M(n.isControlInline);
|
|
6167
|
-
const o = M(n.conditions), a =
|
|
6165
|
+
const o = M(n.conditions), a = Fr(n), {
|
|
6168
6166
|
initialConditionValue: i,
|
|
6169
6167
|
fieldMap: s,
|
|
6170
6168
|
loadFieldConfigs: l
|
|
@@ -6172,7 +6170,7 @@ const $n = /* @__PURE__ */ ht({
|
|
|
6172
6170
|
conditionClass: c,
|
|
6173
6171
|
resizeObserver: d
|
|
6174
6172
|
} = u;
|
|
6175
|
-
l(!0), i(o.value),
|
|
6173
|
+
l(!0), i(o.value), Yn(() => {
|
|
6176
6174
|
var C;
|
|
6177
6175
|
(C = d.value) == null || C.unobserve(e.value);
|
|
6178
6176
|
}), Fe(() => n.conditions, () => {
|
|
@@ -6221,13 +6219,13 @@ const $n = /* @__PURE__ */ ht({
|
|
|
6221
6219
|
}, null);
|
|
6222
6220
|
});
|
|
6223
6221
|
}
|
|
6224
|
-
return () =>
|
|
6222
|
+
return () => zn(O("div", {
|
|
6225
6223
|
class: v.value,
|
|
6226
6224
|
key: r.value,
|
|
6227
6225
|
ref: e
|
|
6228
|
-
}, [k()]), [[
|
|
6226
|
+
}, [k()]), [[qr("area-response")]]);
|
|
6229
6227
|
}
|
|
6230
|
-
}),
|
|
6228
|
+
}), Er = {}, Or = {};
|
|
6231
6229
|
function Tn(n) {
|
|
6232
6230
|
const { properties: t, title: e, ignore: r } = n, o = r && Array.isArray(r), a = Object.keys(t).reduce((i, s) => ((!o || !r.find((l) => l === s)) && (i[s] = t[s].type === "object" && t[s].properties ? Tn(t[s]) : Mt(t[s].default)), i), {});
|
|
6233
6231
|
if (e && (!o || !r.find((i) => i === "id"))) {
|
|
@@ -6250,20 +6248,20 @@ function Wl(n) {
|
|
|
6250
6248
|
type: e
|
|
6251
6249
|
};
|
|
6252
6250
|
}
|
|
6253
|
-
function
|
|
6254
|
-
const r =
|
|
6251
|
+
function Mr(n, t = {}, e) {
|
|
6252
|
+
const r = Er[n];
|
|
6255
6253
|
if (r) {
|
|
6256
6254
|
let o = Wl(r);
|
|
6257
|
-
const a =
|
|
6258
|
-
return o = a ? a({ getSchemaByType:
|
|
6255
|
+
const a = Or[n];
|
|
6256
|
+
return o = a ? a({ getSchemaByType: Mr }, o, t, e) : o, o;
|
|
6259
6257
|
}
|
|
6260
6258
|
return null;
|
|
6261
6259
|
}
|
|
6262
6260
|
function Hl(n, t) {
|
|
6263
6261
|
const e = Tn(t);
|
|
6264
|
-
return Object.keys(e).reduce((r, o) => (Object.prototype.hasOwnProperty.call(n, o) && (r[o] &&
|
|
6262
|
+
return Object.keys(e).reduce((r, o) => (Object.prototype.hasOwnProperty.call(n, o) && (r[o] && Dn(r[o]) && Dn(n[o] || !n[o]) ? Object.assign(r[o], n[o] || {}) : r[o] = n[o]), r), e), e;
|
|
6265
6263
|
}
|
|
6266
|
-
function
|
|
6264
|
+
function Ir(n, t) {
|
|
6267
6265
|
return Object.keys(n).filter((r) => n[r] != null).reduce((r, o) => {
|
|
6268
6266
|
if (t.has(o)) {
|
|
6269
6267
|
const a = t.get(o);
|
|
@@ -6280,7 +6278,7 @@ function Dr(n, t) {
|
|
|
6280
6278
|
}
|
|
6281
6279
|
function Ll(n, t, e = /* @__PURE__ */ new Map()) {
|
|
6282
6280
|
const r = Hl(n, t);
|
|
6283
|
-
return
|
|
6281
|
+
return Ir(r, e);
|
|
6284
6282
|
}
|
|
6285
6283
|
function $l(n = {}) {
|
|
6286
6284
|
function t(u, c, d, v) {
|
|
@@ -6336,7 +6334,7 @@ function $l(n = {}) {
|
|
|
6336
6334
|
}
|
|
6337
6335
|
return { parseValueSchema: l };
|
|
6338
6336
|
}
|
|
6339
|
-
const
|
|
6337
|
+
const fe = {
|
|
6340
6338
|
button: { type: "button", name: "按钮" },
|
|
6341
6339
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
6342
6340
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -6384,9 +6382,9 @@ const me = {
|
|
|
6384
6382
|
}, jl = {}, Al = {};
|
|
6385
6383
|
$l();
|
|
6386
6384
|
function qt(n, t, e = /* @__PURE__ */ new Map(), r = (i, s, l, u) => s, o = {}, a = (i) => i) {
|
|
6387
|
-
return
|
|
6385
|
+
return Er[t.title] = t, Or[t.title] = r, jl[t.title] = o, Al[t.title] = a, (i = {}, s = !0) => {
|
|
6388
6386
|
if (!s)
|
|
6389
|
-
return
|
|
6387
|
+
return Ir(i, e);
|
|
6390
6388
|
const l = Ll(i, t, e), u = Object.keys(n).reduce((c, d) => (c[d] = n[d].default, c), {});
|
|
6391
6389
|
return Object.assign(u, l);
|
|
6392
6390
|
};
|
|
@@ -6687,7 +6685,7 @@ const su = "https://json-schema.org/draft/2020-12/schema", lu = "https://farris-
|
|
|
6687
6685
|
"id",
|
|
6688
6686
|
"type",
|
|
6689
6687
|
"editor"
|
|
6690
|
-
],
|
|
6688
|
+
], Dr = {
|
|
6691
6689
|
$schema: su,
|
|
6692
6690
|
$id: lu,
|
|
6693
6691
|
title: uu,
|
|
@@ -6695,7 +6693,7 @@ const su = "https://json-schema.org/draft/2020-12/schema", lu = "https://farris-
|
|
|
6695
6693
|
type: du,
|
|
6696
6694
|
properties: fu,
|
|
6697
6695
|
required: mu
|
|
6698
|
-
},
|
|
6696
|
+
}, Pr = {
|
|
6699
6697
|
id: { type: String, default: "" },
|
|
6700
6698
|
customClass: { type: String, default: "" },
|
|
6701
6699
|
customStyle: { type: String, default: "" },
|
|
@@ -6713,8 +6711,8 @@ const su = "https://json-schema.org/draft/2020-12/schema", lu = "https://farris-
|
|
|
6713
6711
|
errors: { type: Object, default: null }
|
|
6714
6712
|
};
|
|
6715
6713
|
qt(
|
|
6716
|
-
Nr,
|
|
6717
6714
|
Pr,
|
|
6715
|
+
Dr,
|
|
6718
6716
|
Fn,
|
|
6719
6717
|
void 0
|
|
6720
6718
|
);
|
|
@@ -6765,7 +6763,7 @@ function hu(n, t, e) {
|
|
|
6765
6763
|
}
|
|
6766
6764
|
function C(h, S) {
|
|
6767
6765
|
const { componentType: F } = h;
|
|
6768
|
-
let x =
|
|
6766
|
+
let x = Mr(F, h, S);
|
|
6769
6767
|
e && e.onResolveNewComponentSchema && (x = e.onResolveNewComponentSchema(h, x));
|
|
6770
6768
|
const P = F.toLowerCase().replace(/-/g, "_");
|
|
6771
6769
|
return x && !x.id && x.type === F && (x.id = `${P}_${Math.random().toString().slice(2, 6)}`), x;
|
|
@@ -6872,7 +6870,7 @@ function bu(n) {
|
|
|
6872
6870
|
return r;
|
|
6873
6871
|
}
|
|
6874
6872
|
}
|
|
6875
|
-
function
|
|
6873
|
+
function Nr(n) {
|
|
6876
6874
|
if (!n)
|
|
6877
6875
|
return;
|
|
6878
6876
|
const t = n.getBoundingClientRect();
|
|
@@ -6893,7 +6891,7 @@ function wu(n) {
|
|
|
6893
6891
|
if (!n)
|
|
6894
6892
|
return;
|
|
6895
6893
|
let t;
|
|
6896
|
-
n.className.includes("dgComponentSelected") ? t = n : t = n.querySelector(".dgComponentSelected"), t &&
|
|
6894
|
+
n.className.includes("dgComponentSelected") ? t = n : t = n.querySelector(".dgComponentSelected"), t && Nr(t);
|
|
6897
6895
|
}
|
|
6898
6896
|
function Cu(n) {
|
|
6899
6897
|
const { formSchemaUtils: t, formStateMachineUtils: e } = n;
|
|
@@ -7240,7 +7238,7 @@ class xu {
|
|
|
7240
7238
|
valueField: "value",
|
|
7241
7239
|
idField: "value",
|
|
7242
7240
|
editable: !1,
|
|
7243
|
-
data: [{ value: t.type, name:
|
|
7241
|
+
data: [{ value: t.type, name: fe[t.type].name }]
|
|
7244
7242
|
}
|
|
7245
7243
|
}
|
|
7246
7244
|
}
|
|
@@ -7476,9 +7474,9 @@ const Su = {
|
|
|
7476
7474
|
}, [r.value])]);
|
|
7477
7475
|
}
|
|
7478
7476
|
}), se = {}, le = {}, ce = {}, de = {};
|
|
7479
|
-
let
|
|
7477
|
+
let $n = !1;
|
|
7480
7478
|
function ku() {
|
|
7481
|
-
|
|
7479
|
+
$n || ($n = !0, xo.register(se, le, ce, de), _o.register(se, le, ce, de), So.register(se, le, ce, de), To.register(se, le, ce, de), ko.register(se, le, ce, de), Fo.register(se, le, ce, de), Pn.register(se, le, ce, de), Nn.register(se, le, ce, de), Pn.register(se, le, ce, de), Nn.register(se, le, ce, de), pn.register(se, le, ce, de), Eo.register(se, le, ce, de), Oo.register(se, le, ce, de), Io.register(se, le, ce, de), Mo.register(se, le, ce, de), Do.register(se, le, ce, de), Po.register(se, le, ce, de), No.register(se, le, ce, de), yo.register(se, le, ce, de), Vo.register(se, le, ce, de), Ta.register(se, le, ce, de), lo.register(se, le, ce, de), Ro.register(se, le, ce, de), ya.register(se, le, ce, de), Wo.register(se, le, ce, de), Ho.register(se, le, ce, de), Lo.register(se, le, ce, de), jo.register(se, le, ce, de), $o.register(se, le, ce, de), Ao.register(se, le, ce, de), zo.register(se, le, ce, de), Go.register(se, le, ce, de), qo.register(se, le, ce, de), Yo.register(se, le, ce, de), to.register(se, le, ce, de), Uo.register(se, le, ce, de), Xo.register(se, le, ce, de), Qn.register(se, le, ce, de), Qo.register(se, le, ce, de), Ko.register(se, le, ce, de), Jo.register(se, le, ce, de), Zo.register(se, le, ce, de), ta.register(se, le, ce, de), na.register(se, le, ce, de), ea.register(se, le, ce, de), pa.register(se, le, ce), ho.register(se, le, ce, de), ra.register(se, le, ce, de), oa.register(se, le, ce, de), aa.register(se, le, ce, de), ia.register(se, le, ce, de), sa.register(se, le, ce, de), wa.register(se, le, ce, de), Xn.register(se, le, ce, de), vo.register(se, le, ce, de), la.register(se, le, ce, de), ua.register(se, le, ce, de), Un.register(se, le, ce, de), ca.register(se, le, ce, de), fa.register(se, le, ce, de), da.register(se, le, ce, de), ma.register(se, le, ce, de), ha.register(se, le, ce, de), va.register(se, le, ce, de), Bo.register(se, le, ce, de), ga.register(se, le, ce, de), ba.register(se, le, ce, de), Ca.register(se, le, ce, de), _a.register(se, le, ce, de), xa.register(se, le, ce, de), Sa.register(se, le, ce, de), ka.register(se, le, ce, de), Fa.register(se, le, ce, de));
|
|
7482
7480
|
}
|
|
7483
7481
|
function Fu() {
|
|
7484
7482
|
ku();
|
|
@@ -7628,7 +7626,7 @@ const Eu = {
|
|
|
7628
7626
|
}
|
|
7629
7627
|
}), Mu = /* @__PURE__ */ ht({
|
|
7630
7628
|
name: "FDynamicFormGroup",
|
|
7631
|
-
props:
|
|
7629
|
+
props: Pr,
|
|
7632
7630
|
emits: ["change", "update:modelValue"],
|
|
7633
7631
|
setup(n, t) {
|
|
7634
7632
|
var y;
|
|
@@ -7699,7 +7697,7 @@ const Eu = {
|
|
|
7699
7697
|
static getEditorTypesByMDataType(t, e = "") {
|
|
7700
7698
|
let r = Lt.fieldControlTypeMapping[t];
|
|
7701
7699
|
if (e === "data-grid-column" && (r != null && r.length)) {
|
|
7702
|
-
const o = [
|
|
7700
|
+
const o = [fe["check-group"].type, fe["radio-group"].type];
|
|
7703
7701
|
r = r.filter((a) => !o.includes(a.key));
|
|
7704
7702
|
}
|
|
7705
7703
|
return r;
|
|
@@ -7722,7 +7720,7 @@ const Eu = {
|
|
|
7722
7720
|
static mappingDomPropAndSchemaProp(t, e) {
|
|
7723
7721
|
var a;
|
|
7724
7722
|
const r = (a = t.editor) == null ? void 0 : a.type, o = [];
|
|
7725
|
-
return (t.type ===
|
|
7723
|
+
return (t.type === fe["data-grid-column"].type || t.type === fe["tree-grid-column"].type) && e && e.categoryId && e.categoryId.indexOf("gridFieldEditor") < 0 && o.push({ domField: "title", schemaField: "name" }), o.push({ domField: "label", schemaField: "name" }), o.push({ domField: "editor.required", schemaField: "require" }), o.push({ domField: "editor.readonly", schemaField: "readonly" }), (r === fe["input-group"].type || r === fe.textarea.type || r === fe["number-spinner"].type) && o.push({ domField: "editor.maxLength", schemaField: "type.length" }), r === fe["number-spinner"].type && o.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === fe["data-grid-column"].type || t.type === fe["tree-grid-column"].type) && o.push({ domField: "formatter.precision", schemaField: "type.precision" }), (r === fe["combo-list"].type || r === fe["radio-group"].type) && o.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === fe["data-grid-column"].type || t.type === fe["tree-grid-column"].type) && o.push({ domField: "formatter.data", schemaField: "type.enumValues" }), r === fe["date-picker"].type && (o.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), o.push({ domField: "editor.fieldType", schemaField: "type.name" })), r === fe["number-spinner"].type && (o.push({ domField: "editor.max", schemaField: "editor.maxValue" }), o.push({ domField: "editor.min", schemaField: "editor.minValue" })), r === fe.lookup.type && (o.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), o.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), o.push({ domField: "editor.textField", schemaField: "editor.textField" }), o.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), o.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), o.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), o.push({ domField: "path", schemaField: "bindingPath" }), o.push({ domField: "binding.path", schemaField: "bindingField" }), o.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === fe["data-grid-column"].type || t.type === fe["tree-grid-column"].type) && o.push({ domField: "field", schemaField: "bindingPath" }), o;
|
|
7726
7724
|
}
|
|
7727
7725
|
};
|
|
7728
7726
|
/**
|
|
@@ -7730,52 +7728,52 @@ const Eu = {
|
|
|
7730
7728
|
*/
|
|
7731
7729
|
j(Lt, "fieldControlTypeMapping", {
|
|
7732
7730
|
String: [
|
|
7733
|
-
{ key:
|
|
7734
|
-
{ key:
|
|
7735
|
-
{ key:
|
|
7736
|
-
{ key:
|
|
7737
|
-
{ key:
|
|
7738
|
-
{ key:
|
|
7739
|
-
{ key:
|
|
7740
|
-
{ key:
|
|
7731
|
+
{ key: fe["input-group"].type, value: fe["input-group"].name },
|
|
7732
|
+
{ key: fe.lookup.type, value: fe.lookup.name },
|
|
7733
|
+
{ key: fe["date-picker"].type, value: fe["date-picker"].name },
|
|
7734
|
+
{ key: fe["check-group"].type, value: fe["check-group"].name },
|
|
7735
|
+
{ key: fe["radio-group"].type, value: fe["radio-group"].name },
|
|
7736
|
+
{ key: fe["combo-list"].type, value: fe["combo-list"].name },
|
|
7737
|
+
{ key: fe.textarea.type, value: fe.textarea.name },
|
|
7738
|
+
{ key: fe["time-picker"].type, value: fe["time-picker"].name }
|
|
7741
7739
|
],
|
|
7742
7740
|
Text: [
|
|
7743
|
-
{ key:
|
|
7744
|
-
{ key:
|
|
7741
|
+
{ key: fe.textarea.type, value: fe.textarea.name },
|
|
7742
|
+
{ key: fe.lookup.type, value: fe.lookup.name }
|
|
7745
7743
|
],
|
|
7746
7744
|
Decimal: [
|
|
7747
|
-
{ key:
|
|
7745
|
+
{ key: fe["number-spinner"].type, value: fe["number-spinner"].name }
|
|
7748
7746
|
],
|
|
7749
7747
|
Integer: [
|
|
7750
|
-
{ key:
|
|
7748
|
+
{ key: fe["number-spinner"].type, value: fe["number-spinner"].name }
|
|
7751
7749
|
],
|
|
7752
7750
|
Number: [
|
|
7753
|
-
{ key:
|
|
7751
|
+
{ key: fe["number-spinner"].type, value: fe["number-spinner"].name }
|
|
7754
7752
|
],
|
|
7755
7753
|
BigNumber: [
|
|
7756
|
-
{ key:
|
|
7754
|
+
{ key: fe["number-spinner"].type, value: fe["number-spinner"].name }
|
|
7757
7755
|
],
|
|
7758
7756
|
Date: [
|
|
7759
|
-
{ key:
|
|
7757
|
+
{ key: fe["date-picker"].type, value: fe["date-picker"].name }
|
|
7760
7758
|
],
|
|
7761
7759
|
DateTime: [
|
|
7762
|
-
{ key:
|
|
7760
|
+
{ key: fe["date-picker"].type, value: fe["date-picker"].name }
|
|
7763
7761
|
],
|
|
7764
7762
|
Boolean: [
|
|
7765
|
-
{ key:
|
|
7766
|
-
{ key:
|
|
7763
|
+
{ key: fe.switch.type, value: fe.switch.name },
|
|
7764
|
+
{ key: fe["check-box"].type, value: fe["check-box"].name }
|
|
7767
7765
|
],
|
|
7768
7766
|
Enum: [
|
|
7769
|
-
{ key:
|
|
7770
|
-
{ key:
|
|
7767
|
+
{ key: fe["combo-list"].type, value: fe["combo-list"].name },
|
|
7768
|
+
{ key: fe["radio-group"].type, value: fe["radio-group"].name }
|
|
7771
7769
|
],
|
|
7772
7770
|
Object: [
|
|
7773
|
-
{ key:
|
|
7774
|
-
{ key:
|
|
7775
|
-
{ key:
|
|
7771
|
+
{ key: fe.lookup.type, value: fe.lookup.name },
|
|
7772
|
+
{ key: fe["combo-list"].type, value: fe["combo-list"].name },
|
|
7773
|
+
{ key: fe["radio-group"].type, value: fe["radio-group"].name }
|
|
7776
7774
|
]
|
|
7777
7775
|
});
|
|
7778
|
-
let
|
|
7776
|
+
let jn = Lt;
|
|
7779
7777
|
var Ft = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7780
7778
|
function Kt(n) {
|
|
7781
7779
|
throw new Error('Could not dynamically require "' + n + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -7835,7 +7833,7 @@ var Pu = { exports: {} };
|
|
|
7835
7833
|
E === 1 && Array.isArray(x) === !1 && (P = x, x = []);
|
|
7836
7834
|
var I, D, $, W, H, V, z, N, R, X = null, B, L, G = !1, K = 0, Z, ee = P || {};
|
|
7837
7835
|
ee.moves === void 0 && (ee.moves = b), ee.accepts === void 0 && (ee.accepts = b), ee.invalid === void 0 && (ee.invalid = gt), ee.containers === void 0 && (ee.containers = x || []), ee.isContainer === void 0 && (ee.isContainer = f), ee.copy === void 0 && (ee.copy = !1), ee.copySortSource === void 0 && (ee.copySortSource = !1), ee.revertOnSpill === void 0 && (ee.revertOnSpill = !1), ee.removeOnSpill === void 0 && (ee.removeOnSpill = !1), ee.direction === void 0 && (ee.direction = "vertical"), ee.ignoreInputTextSelection === void 0 && (ee.ignoreInputTextSelection = !0), ee.mirrorContainer === void 0 && (ee.mirrorContainer = u.body);
|
|
7838
|
-
var
|
|
7836
|
+
var he = i({
|
|
7839
7837
|
containers: ee.containers,
|
|
7840
7838
|
start: Pe,
|
|
7841
7839
|
end: it,
|
|
@@ -7845,9 +7843,9 @@ var Pu = { exports: {} };
|
|
|
7845
7843
|
canMove: Ee,
|
|
7846
7844
|
dragging: !1
|
|
7847
7845
|
});
|
|
7848
|
-
return ee.removeOnSpill === !0 &&
|
|
7846
|
+
return ee.removeOnSpill === !0 && he.on("over", dt).on("out", pt), _e(), he;
|
|
7849
7847
|
function ge(q) {
|
|
7850
|
-
return
|
|
7848
|
+
return he.containers.indexOf(q) !== -1 || ee.isContainer(q);
|
|
7851
7849
|
}
|
|
7852
7850
|
function _e(q) {
|
|
7853
7851
|
var ne = q ? "remove" : "add";
|
|
@@ -7855,7 +7853,7 @@ var Pu = { exports: {} };
|
|
|
7855
7853
|
}
|
|
7856
7854
|
function De(q) {
|
|
7857
7855
|
var ne = q ? "remove" : "add";
|
|
7858
|
-
g(c, ne, "mousemove",
|
|
7856
|
+
g(c, ne, "mousemove", oe);
|
|
7859
7857
|
}
|
|
7860
7858
|
function We(q) {
|
|
7861
7859
|
var ne = q ? "remove" : "add";
|
|
@@ -7871,11 +7869,11 @@ var Pu = { exports: {} };
|
|
|
7871
7869
|
W = q.clientX, H = q.clientY;
|
|
7872
7870
|
var ne = k(q) !== 1 || q.metaKey || q.ctrlKey;
|
|
7873
7871
|
if (!ne) {
|
|
7874
|
-
var ae = q.target,
|
|
7875
|
-
|
|
7872
|
+
var ae = q.target, re = be(ae);
|
|
7873
|
+
re && (B = re, De(), q.type === "mousedown" && (y(ae) ? ae.focus() : q.preventDefault()));
|
|
7876
7874
|
}
|
|
7877
7875
|
}
|
|
7878
|
-
function
|
|
7876
|
+
function oe(q) {
|
|
7879
7877
|
if (B) {
|
|
7880
7878
|
if (k(q) === 0) {
|
|
7881
7879
|
ke({});
|
|
@@ -7883,8 +7881,8 @@ var Pu = { exports: {} };
|
|
|
7883
7881
|
}
|
|
7884
7882
|
if (!(q.clientX !== void 0 && Math.abs(q.clientX - W) <= (ee.slideFactorX || 0) && q.clientY !== void 0 && Math.abs(q.clientY - H) <= (ee.slideFactorY || 0))) {
|
|
7885
7883
|
if (ee.ignoreInputTextSelection) {
|
|
7886
|
-
var ne = F("clientX", q) || 0, ae = F("clientY", q) || 0,
|
|
7887
|
-
if (y(
|
|
7884
|
+
var ne = F("clientX", q) || 0, ae = F("clientY", q) || 0, re = u.elementFromPoint(ne, ae);
|
|
7885
|
+
if (y(re))
|
|
7888
7886
|
return;
|
|
7889
7887
|
}
|
|
7890
7888
|
var xe = B;
|
|
@@ -7893,14 +7891,14 @@ var Pu = { exports: {} };
|
|
|
7893
7891
|
}
|
|
7894
7892
|
}
|
|
7895
7893
|
function be(q) {
|
|
7896
|
-
if (!(
|
|
7894
|
+
if (!(he.dragging && I) && !ge(q)) {
|
|
7897
7895
|
for (var ne = q; T(q) && ge(T(q)) === !1; )
|
|
7898
7896
|
if (ee.invalid(q, ne) || (q = T(q), !q))
|
|
7899
7897
|
return;
|
|
7900
7898
|
var ae = T(q);
|
|
7901
7899
|
if (ae && !ee.invalid(q, ne)) {
|
|
7902
|
-
var
|
|
7903
|
-
if (
|
|
7900
|
+
var re = ee.moves(q, ae, ne, h(q));
|
|
7901
|
+
if (re)
|
|
7904
7902
|
return {
|
|
7905
7903
|
item: q,
|
|
7906
7904
|
source: ae
|
|
@@ -7916,13 +7914,13 @@ var Pu = { exports: {} };
|
|
|
7916
7914
|
ne && at(ne);
|
|
7917
7915
|
}
|
|
7918
7916
|
function at(q) {
|
|
7919
|
-
Ne(q.item, q.source) && (N = q.item.cloneNode(!0),
|
|
7917
|
+
Ne(q.item, q.source) && (N = q.item.cloneNode(!0), he.emit("cloned", N, q.item, "copy")), D = q.source, $ = q.item, V = z = h(q.item), he.dragging = !0, he.emit("drag", $, D);
|
|
7920
7918
|
}
|
|
7921
7919
|
function gt() {
|
|
7922
7920
|
return !1;
|
|
7923
7921
|
}
|
|
7924
7922
|
function it() {
|
|
7925
|
-
if (
|
|
7923
|
+
if (he.dragging) {
|
|
7926
7924
|
var q = N || $;
|
|
7927
7925
|
Ie(q, T(q));
|
|
7928
7926
|
}
|
|
@@ -7931,45 +7929,45 @@ var Pu = { exports: {} };
|
|
|
7931
7929
|
B = !1, De(!0), We(!0);
|
|
7932
7930
|
}
|
|
7933
7931
|
function ke(q) {
|
|
7934
|
-
if (te(), !!
|
|
7935
|
-
var ne = N || $, ae = F("clientX", q) || 0,
|
|
7932
|
+
if (te(), !!he.dragging) {
|
|
7933
|
+
var ne = N || $, ae = F("clientX", q) || 0, re = F("clientY", q) || 0, xe = C(I, ae, re), Ce = $e(xe, ae, re);
|
|
7936
7934
|
Ce && (N && ee.copySortSource || !N || Ce !== D) ? Ie(ne, Ce) : ee.removeOnSpill ? Ge() : Be();
|
|
7937
7935
|
}
|
|
7938
7936
|
}
|
|
7939
7937
|
function Ie(q, ne) {
|
|
7940
7938
|
var ae = T(q);
|
|
7941
|
-
N && ee.copySortSource && ne === D && ae.removeChild($), we(ne) ?
|
|
7939
|
+
N && ee.copySortSource && ne === D && ae.removeChild($), we(ne) ? he.emit("cancel", q, D) : he.emit("drop", q, ne, D, z), ct();
|
|
7942
7940
|
}
|
|
7943
7941
|
function Ge() {
|
|
7944
|
-
if (
|
|
7942
|
+
if (he.dragging) {
|
|
7945
7943
|
var q = N || $, ne = T(q);
|
|
7946
|
-
ne && ne.removeChild(q),
|
|
7944
|
+
ne && ne.removeChild(q), he.emit(N ? "cancel" : "remove", q, ne, D), ct();
|
|
7947
7945
|
}
|
|
7948
7946
|
}
|
|
7949
7947
|
function Be(q) {
|
|
7950
|
-
if (
|
|
7951
|
-
var ne = arguments.length > 0 ? q : ee.revertOnSpill, ae = N || $,
|
|
7952
|
-
xe === !1 && ne && (N ?
|
|
7948
|
+
if (he.dragging) {
|
|
7949
|
+
var ne = arguments.length > 0 ? q : ee.revertOnSpill, ae = N || $, re = T(ae), xe = we(re);
|
|
7950
|
+
xe === !1 && ne && (N ? re && re.removeChild(N) : D.insertBefore(ae, V)), xe || ne ? he.emit("cancel", ae, D, D) : he.emit("drop", ae, re, D, z), ct();
|
|
7953
7951
|
}
|
|
7954
7952
|
}
|
|
7955
7953
|
function ct() {
|
|
7956
7954
|
var q = N || $;
|
|
7957
|
-
te(), ie(),
|
|
7955
|
+
te(), ie(), me(), q && l.rm(q, "gu-transit"), R && clearTimeout(R), he.dragging = !1, X && he.emit("out", q, X, D), he.emit("dragend", q, K), D = $ = N = V = z = R = X = null;
|
|
7958
7956
|
}
|
|
7959
7957
|
function we(q, ne) {
|
|
7960
7958
|
var ae;
|
|
7961
7959
|
return ne !== void 0 ? ae = ne : I ? ae = z : ae = h(N || $), q === D && ae === V;
|
|
7962
7960
|
}
|
|
7963
7961
|
function $e(q, ne, ae) {
|
|
7964
|
-
for (var
|
|
7965
|
-
|
|
7966
|
-
return
|
|
7962
|
+
for (var re = q; re && !xe(); )
|
|
7963
|
+
re = T(re);
|
|
7964
|
+
return re;
|
|
7967
7965
|
function xe() {
|
|
7968
|
-
var Ce = ge(
|
|
7966
|
+
var Ce = ge(re);
|
|
7969
7967
|
if (Ce === !1)
|
|
7970
7968
|
return !1;
|
|
7971
|
-
var Le = ye(
|
|
7972
|
-
return Ae ? !0 : ee.accepts($,
|
|
7969
|
+
var Le = ye(re, q), Oe = Se(re, Le, ne, ae), Ae = we(re, Oe);
|
|
7970
|
+
return Ae ? !0 : ee.accepts($, re, D, Oe);
|
|
7973
7971
|
}
|
|
7974
7972
|
}
|
|
7975
7973
|
function Re(q) {
|
|
@@ -7978,11 +7976,11 @@ var Pu = { exports: {} };
|
|
|
7978
7976
|
q.preventDefault();
|
|
7979
7977
|
var ne = F("clientX", q) || 0, ae = F("clientY", q) || 0;
|
|
7980
7978
|
I.style.left = ne - 2 + "px", I.style.top = ae - 2 + "px";
|
|
7981
|
-
var
|
|
7979
|
+
var re = N || $, xe = C(I, ne, ae), Ce = $e(xe, ne, ae), Le = Ce !== null && Ce !== X;
|
|
7982
7980
|
(Le || Ce === null) && (ve(), X = Ce, yt()), pe(xe, ae);
|
|
7983
|
-
var Oe = T(
|
|
7981
|
+
var Oe = T(re);
|
|
7984
7982
|
if (Ce === D && N && !ee.copySortSource) {
|
|
7985
|
-
Oe && Oe.removeChild(
|
|
7983
|
+
Oe && Oe.removeChild(re);
|
|
7986
7984
|
return;
|
|
7987
7985
|
}
|
|
7988
7986
|
var Ae, vt = ye(Ce, xe);
|
|
@@ -7991,12 +7989,12 @@ var Pu = { exports: {} };
|
|
|
7991
7989
|
else if (ee.revertOnSpill === !0 && !N)
|
|
7992
7990
|
Ae = V, Ce = D;
|
|
7993
7991
|
else {
|
|
7994
|
-
N && Oe && Oe.removeChild(
|
|
7992
|
+
N && Oe && Oe.removeChild(re), N && L && (L.style.display = "none");
|
|
7995
7993
|
return;
|
|
7996
7994
|
}
|
|
7997
|
-
L.style.display = "block", je(Ae,
|
|
7995
|
+
L.style.display = "block", je(Ae, re, Le), Ae ? st(vt, Ae) : J(Ce);
|
|
7998
7996
|
function et(Te) {
|
|
7999
|
-
|
|
7997
|
+
he.emit(Te, re, X, D);
|
|
8000
7998
|
}
|
|
8001
7999
|
function yt() {
|
|
8002
8000
|
Le && et("over");
|
|
@@ -8012,10 +8010,10 @@ var Pu = { exports: {} };
|
|
|
8012
8010
|
l.rm(q, "gu-hide");
|
|
8013
8011
|
}
|
|
8014
8012
|
function pt(q) {
|
|
8015
|
-
|
|
8013
|
+
he.dragging && l.add(q, "gu-hide");
|
|
8016
8014
|
}
|
|
8017
8015
|
function nt() {
|
|
8018
|
-
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 = ee.getMirrorText && ee.getMirrorText($) || "控件", l.add(I, "gu-mirror"), ee.mirrorContainer.appendChild(I), g(c, "add", "mousemove", Re), l.add(ee.mirrorContainer, "gu-unselectable"),
|
|
8016
|
+
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 = ee.getMirrorText && ee.getMirrorText($) || "控件", l.add(I, "gu-mirror"), ee.mirrorContainer.appendChild(I), g(c, "add", "mousemove", Re), l.add(ee.mirrorContainer, "gu-unselectable"), he.emit("cloned", I, $, "mirror"));
|
|
8019
8017
|
}
|
|
8020
8018
|
function Tt() {
|
|
8021
8019
|
if (L = document.createElement("div"), l.add(L, "gu-insertion"), $) {
|
|
@@ -8027,7 +8025,7 @@ var Pu = { exports: {} };
|
|
|
8027
8025
|
function ie() {
|
|
8028
8026
|
I && (l.rm(ee.mirrorContainer, "gu-unselectable"), g(c, "remove", "mousemove", Re), T(I).removeChild(I), I = null);
|
|
8029
8027
|
}
|
|
8030
|
-
function
|
|
8028
|
+
function me() {
|
|
8031
8029
|
L && (T(L).removeChild(L), L = null);
|
|
8032
8030
|
}
|
|
8033
8031
|
function ye(q, ne) {
|
|
@@ -8041,7 +8039,7 @@ var Pu = { exports: {} };
|
|
|
8041
8039
|
var ae = q || ne && ne.lastElementChild;
|
|
8042
8040
|
if (!ae)
|
|
8043
8041
|
return !0;
|
|
8044
|
-
var
|
|
8042
|
+
var re = getComputedStyle(q), xe = /^inline/.test(re.getPropertyValue("display")) || /^(left|right)$/.test(re.getPropertyValue("float"));
|
|
8045
8043
|
if (xe)
|
|
8046
8044
|
return !0;
|
|
8047
8045
|
if (ne) {
|
|
@@ -8059,10 +8057,10 @@ var Pu = { exports: {} };
|
|
|
8059
8057
|
if (!q.children || !q.children.length)
|
|
8060
8058
|
return !1;
|
|
8061
8059
|
for (const ne of Array.from(q.children)) {
|
|
8062
|
-
const
|
|
8063
|
-
if (!
|
|
8060
|
+
const re = (ne.className && ne.className.split(" ") || []).filter((xe) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(xe));
|
|
8061
|
+
if (!re.length)
|
|
8064
8062
|
return !1;
|
|
8065
|
-
for (const xe of
|
|
8063
|
+
for (const xe of re) {
|
|
8066
8064
|
const Ce = xe.slice(xe.lastIndexOf("-") + 1);
|
|
8067
8065
|
if (parseInt(Ce, 10) !== 12)
|
|
8068
8066
|
return !1;
|
|
@@ -8074,12 +8072,12 @@ var Pu = { exports: {} };
|
|
|
8074
8072
|
const ae = ne.getBoundingClientRect();
|
|
8075
8073
|
if (L.style.left = ae.left + "px", L.style.top = ae.top + "px", G) {
|
|
8076
8074
|
if (L.style.height = ae.height + "px", L.style.width = "4px", q) {
|
|
8077
|
-
const
|
|
8078
|
-
|
|
8075
|
+
const re = q.getBoundingClientRect();
|
|
8076
|
+
re.top !== ae.top && (L.style.left = re.right + "px", L.style.top = re.top + "px", L.style.height = re.height + "px");
|
|
8079
8077
|
}
|
|
8080
8078
|
} else if (L.style.height = "4px", L.style.width = ae.width + "px", Z) {
|
|
8081
|
-
const
|
|
8082
|
-
ae.top <
|
|
8079
|
+
const re = Z.getBoundingClientRect();
|
|
8080
|
+
ae.top < re.top && (L.style.display = "none");
|
|
8083
8081
|
}
|
|
8084
8082
|
ne === $ && $ && (L.style.display = "none");
|
|
8085
8083
|
}
|
|
@@ -8095,34 +8093,34 @@ var Pu = { exports: {} };
|
|
|
8095
8093
|
function pe(q, ne) {
|
|
8096
8094
|
if (!ee.mirrorContainer.contains(q) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (Z = v(q), !Z || !Z.contains(q)))
|
|
8097
8095
|
return;
|
|
8098
|
-
const ae = document.querySelector(".dgComponentSelected"),
|
|
8099
|
-
if (ne - 30 <
|
|
8096
|
+
const ae = document.querySelector(".dgComponentSelected"), re = Z.getBoundingClientRect();
|
|
8097
|
+
if (ne - 30 < re.top && Z.scrollTop > 0) {
|
|
8100
8098
|
let xe = Z.scrollTop < 10 ? Z.scrollTop : 10;
|
|
8101
8099
|
Z.scrollBy(0, -1 * xe), ae && Z.contains(ae) && (K = K + -1 * xe);
|
|
8102
8100
|
}
|
|
8103
|
-
if (ne + 30 >
|
|
8101
|
+
if (ne + 30 > re.bottom && Z.scrollTop < Z.scrollHeight - Z.clientHeight) {
|
|
8104
8102
|
const xe = Z.scrollHeight - Z.clientHeight - Z.scrollTop;
|
|
8105
8103
|
let Ce = xe < 10 ? xe : 10;
|
|
8106
8104
|
Z.scrollBy(0, Ce), ae && Z.contains(ae) && (K = K + Ce);
|
|
8107
8105
|
}
|
|
8108
8106
|
}
|
|
8109
|
-
function Se(q, ne, ae,
|
|
8107
|
+
function Se(q, ne, ae, re) {
|
|
8110
8108
|
var xe = ee.direction === "horizontal", Ce = ee.direction === "mixed", Le = ne !== q ? Ae() : Oe();
|
|
8111
8109
|
return Le;
|
|
8112
8110
|
function Oe() {
|
|
8113
8111
|
var et = q.children.length, yt, ve, Te;
|
|
8114
8112
|
for (yt = 0; yt < et; yt++)
|
|
8115
|
-
if (ve = q.children[yt], Te = ve.getBoundingClientRect(), xe && Te.left + Te.width / 2 > ae || !Ce && !xe && Te.top + Te.height / 2 >
|
|
8113
|
+
if (ve = q.children[yt], Te = ve.getBoundingClientRect(), xe && Te.left + Te.width / 2 > ae || !Ce && !xe && Te.top + Te.height / 2 > re || Ce && Te.left + Te.width > ae && Te.top + Te.height > re)
|
|
8116
8114
|
return ve;
|
|
8117
8115
|
return null;
|
|
8118
8116
|
}
|
|
8119
8117
|
function Ae() {
|
|
8120
8118
|
var et = ne.getBoundingClientRect();
|
|
8121
8119
|
if (Ce) {
|
|
8122
|
-
var yt =
|
|
8120
|
+
var yt = re - et.top, ve = ae - et.left, Te = et.bottom - re, lt = et.right - ae, ot = Math.min(ve, lt, yt, Te), ut;
|
|
8123
8121
|
return G ? ut = lt < ve : ut = Te === ot || lt === ot || ve === ot, vt(ut);
|
|
8124
8122
|
}
|
|
8125
|
-
return vt(xe ? ae > et.left + m(et) / 2 :
|
|
8123
|
+
return vt(xe ? ae > et.left + m(et) / 2 : re > et.top + _(et) / 2);
|
|
8126
8124
|
}
|
|
8127
8125
|
function vt(et) {
|
|
8128
8126
|
return et ? h(ne) : ne;
|
|
@@ -8522,7 +8520,7 @@ var Pu = { exports: {} };
|
|
|
8522
8520
|
}, {}, [2])(2);
|
|
8523
8521
|
});
|
|
8524
8522
|
})(Pu);
|
|
8525
|
-
const
|
|
8523
|
+
const Vr = /* @__PURE__ */ new Map([
|
|
8526
8524
|
["appearance", kn],
|
|
8527
8525
|
["column", "columnOption"]
|
|
8528
8526
|
]);
|
|
@@ -8545,7 +8543,7 @@ function Ru(n, t, e) {
|
|
|
8545
8543
|
const r = n.getSchemaByType("content-container");
|
|
8546
8544
|
return r.id = `${t.id}-layout`, r.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, r.contents = [t], r;
|
|
8547
8545
|
}
|
|
8548
|
-
function
|
|
8546
|
+
function Rr(n, t, e) {
|
|
8549
8547
|
const o = e.parentComponentInstance.schema.type, a = o === "section" || o === "tab-page";
|
|
8550
8548
|
t.appearance = { class: "f-component-grid" };
|
|
8551
8549
|
const s = (a ? Ru : Vu)(n, t, e);
|
|
@@ -9331,7 +9329,7 @@ const Bu = "https://json-schema.org/draft/2020-12/schema", Wu = "https://farris-
|
|
|
9331
9329
|
], zu = {
|
|
9332
9330
|
onSelectionChange: "行切换事件",
|
|
9333
9331
|
onClickRow: "行点击事件"
|
|
9334
|
-
},
|
|
9332
|
+
}, Br = {
|
|
9335
9333
|
$schema: Bu,
|
|
9336
9334
|
$id: Wu,
|
|
9337
9335
|
title: Hu,
|
|
@@ -9469,7 +9467,7 @@ const Bu = "https://json-schema.org/draft/2020-12/schema", Wu = "https://farris-
|
|
|
9469
9467
|
width: { type: Number, default: -1 },
|
|
9470
9468
|
/** 启用虚拟渲染 */
|
|
9471
9469
|
virtualized: { type: Boolean, default: !1 }
|
|
9472
|
-
}, Gu = qt(En,
|
|
9470
|
+
}, Gu = qt(En, Br, Vr, Rr), qu = Gl(), Yu = zl(), Wr = Object.assign({}, En, { componentId: { type: String, default: "" } }), Uu = qt(Wr, Br, Vr, Rr), Xu = ql();
|
|
9473
9471
|
function Qu(n, t, e, r, o, a, i, s, l, u, c, d, v, w, g, k, C) {
|
|
9474
9472
|
const {
|
|
9475
9473
|
calculateCellPositionInRow: f
|
|
@@ -9553,17 +9551,17 @@ const an = /* @__PURE__ */ ht({
|
|
|
9553
9551
|
const z = La(n, H), N = $a(n, t, h, i), R = ja(n, t, i, N, w), X = Aa(n), B = za(n, R, X), L = Ga(n, y, R, b, i, X, B), G = qa(n, a, y, x, 0, L), {
|
|
9554
9552
|
getVisualData: K
|
|
9555
9553
|
} = G, Z = Ya(n, H), ee = Ua(n, h), {
|
|
9556
|
-
sidebarWidth:
|
|
9557
|
-
} = ee, ge = Xa(n, y, w, H, G, x, 0,
|
|
9554
|
+
sidebarWidth: he
|
|
9555
|
+
} = ee, ge = Xa(n, y, w, H, G, x, 0, he), {
|
|
9558
9556
|
onWheel: _e,
|
|
9559
9557
|
dataGridWidth: De,
|
|
9560
9558
|
viewPortHeight: We,
|
|
9561
9559
|
viewPortWidth: Q,
|
|
9562
9560
|
resetScroll: ue,
|
|
9563
9561
|
updateVisibleRowsOnLatestVisibleScope: Y
|
|
9564
|
-
} = ge,
|
|
9562
|
+
} = ge, oe = Qa(n, H, u, Q, z), {
|
|
9565
9563
|
calculateColumnsSize: be
|
|
9566
|
-
} =
|
|
9564
|
+
} = oe, Ee = Ka(), Pe = Ja(u, v, y, Ee, ge), at = Za(n, t, D, y, z, C, ge), gt = A(() => ({
|
|
9567
9565
|
"fv-grid": !0,
|
|
9568
9566
|
"fv-grid-bordered": n.showBorder,
|
|
9569
9567
|
"fv-grid-horizontal-bordered": n.showHorizontalLines,
|
|
@@ -9578,7 +9576,7 @@ const an = /* @__PURE__ */ ht({
|
|
|
9578
9576
|
renderGridHeader: ke,
|
|
9579
9577
|
renderGridColumnResizeOverlay: Ie,
|
|
9580
9578
|
shouldShowHeader: Ge
|
|
9581
|
-
} = ei(n, t, u, d, v, D, y, at, Pe, f, Ee,
|
|
9579
|
+
} = ei(n, t, u, d, v, D, y, at, Pe, f, Ee, oe, z, h, ee, $, ge, Q, w), {
|
|
9582
9580
|
renderDataGridSidebar: Be
|
|
9583
9581
|
} = ti(n, N, h, ee, ge), {
|
|
9584
9582
|
renderDisableMask: ct
|
|
@@ -9595,7 +9593,7 @@ const an = /* @__PURE__ */ ht({
|
|
|
9595
9593
|
}
|
|
9596
9594
|
}
|
|
9597
9595
|
zt(() => {
|
|
9598
|
-
u.value && (o.value = Math.max(Math.ceil(u.value.clientHeight / r), o.value), w.value = K(0, x.value + 0 - 1),
|
|
9596
|
+
u.value && (o.value = Math.max(Math.ceil(u.value.clientHeight / r), o.value), w.value = K(0, x.value + 0 - 1), Kn(u.value, Re), be(), At(() => {
|
|
9599
9597
|
u.value && (De.value = u.value.clientWidth), c.value && (Q.value = c.value.clientWidth, We.value = c.value.clientHeight);
|
|
9600
9598
|
})), _.value && T();
|
|
9601
9599
|
}), sn(() => {
|
|
@@ -9624,7 +9622,7 @@ const an = /* @__PURE__ */ ht({
|
|
|
9624
9622
|
const ve = pt(), Te = S.getNextSelectableHierarchyItemId(ve);
|
|
9625
9623
|
y.removeHierarchyDataItem(ve), w.value = K(0, x.value + 0 - 1), Te && h.selectItemById(Te);
|
|
9626
9624
|
}
|
|
9627
|
-
function
|
|
9625
|
+
function me(ve) {
|
|
9628
9626
|
R.onEditingRow(ve);
|
|
9629
9627
|
}
|
|
9630
9628
|
function ye(ve) {
|
|
@@ -9659,7 +9657,7 @@ const an = /* @__PURE__ */ ht({
|
|
|
9659
9657
|
h.clearSelection();
|
|
9660
9658
|
}
|
|
9661
9659
|
const ae = A(() => !w.value || !w.value.length), {
|
|
9662
|
-
renderEmpty:
|
|
9660
|
+
renderEmpty: re
|
|
9663
9661
|
} = ai(t);
|
|
9664
9662
|
function xe() {
|
|
9665
9663
|
return h.getSelectionRow();
|
|
@@ -9715,7 +9713,7 @@ const an = /* @__PURE__ */ ht({
|
|
|
9715
9713
|
collapseTo: je,
|
|
9716
9714
|
expandTo: dt,
|
|
9717
9715
|
removeDataItem: ie,
|
|
9718
|
-
editDataItem:
|
|
9716
|
+
editDataItem: me,
|
|
9719
9717
|
acceptDataItem: ye,
|
|
9720
9718
|
cancelDataItem: He,
|
|
9721
9719
|
updateColumns: Qe,
|
|
@@ -9741,7 +9739,7 @@ const an = /* @__PURE__ */ ht({
|
|
|
9741
9739
|
class: it.value,
|
|
9742
9740
|
onMouseover: () => g.value = !0,
|
|
9743
9741
|
onMouseleave: () => g.value = !1
|
|
9744
|
-
}, [u.value && Be(w), u.value && te(), u.value && ae.value &&
|
|
9742
|
+
}, [u.value && Be(w), u.value && te(), u.value && ae.value && re(), u.value && we(), u.value && $e()]), Ie(), F.value && ct()]);
|
|
9745
9743
|
}
|
|
9746
9744
|
}), Ku = {
|
|
9747
9745
|
id: { type: String, default: "" },
|
|
@@ -9794,7 +9792,7 @@ const an = /* @__PURE__ */ ht({
|
|
|
9794
9792
|
}
|
|
9795
9793
|
});
|
|
9796
9794
|
function ec(n) {
|
|
9797
|
-
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !
|
|
9795
|
+
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !An(n);
|
|
9798
9796
|
}
|
|
9799
9797
|
const bn = /* @__PURE__ */ ht({
|
|
9800
9798
|
name: "FDesignerItem",
|
|
@@ -9808,7 +9806,7 @@ const bn = /* @__PURE__ */ ht({
|
|
|
9808
9806
|
parent: g,
|
|
9809
9807
|
setupContext: t
|
|
9810
9808
|
};
|
|
9811
|
-
|
|
9809
|
+
Yr("design-item-context", k);
|
|
9812
9810
|
const C = Ot("useFormSchema"), f = Ot("designer-host-service"), b = A(() => {
|
|
9813
9811
|
var z;
|
|
9814
9812
|
const W = n.modelValue.appearance && n.modelValue.appearance.class || "", H = ((z = w.value) == null ? void 0 : z.getCustomButtons) && w.value.getCustomButtons();
|
|
@@ -9941,7 +9939,7 @@ const bn = /* @__PURE__ */ ht({
|
|
|
9941
9939
|
}
|
|
9942
9940
|
}
|
|
9943
9941
|
Fe(() => n.modelValue, (W) => {
|
|
9944
|
-
i.value = W, e.value = `${W.id}-component`,
|
|
9942
|
+
i.value = W, e.value = `${W.id}-component`, Ur(d);
|
|
9945
9943
|
}, {
|
|
9946
9944
|
deep: !0
|
|
9947
9945
|
});
|
|
@@ -9968,7 +9966,7 @@ const bn = /* @__PURE__ */ ht({
|
|
|
9968
9966
|
v && W && v.attachComponents(W, i.value), a.value = w.value.canNested !== void 0 ? w.value.canNested : a.value, o.value = w.value.canDelete !== void 0 ? w.value.canDelete : o.value, r.value = w.value.canMove !== void 0 ? w.value.canMove : r.value, l.value = w.value.styles || "", u.value = w.value.designerClass || "", d.value && (d.value.componentInstance = w, d.value.designItemContext = k), w.value.belongedComponentId = s.value;
|
|
9969
9967
|
}
|
|
9970
9968
|
D(), Zt.value++;
|
|
9971
|
-
}),
|
|
9969
|
+
}), Yn(() => {
|
|
9972
9970
|
d.value && d.value.removeEventListener("scroll", I);
|
|
9973
9971
|
});
|
|
9974
9972
|
function $(W) {
|
|
@@ -9979,7 +9977,7 @@ const bn = /* @__PURE__ */ ht({
|
|
|
9979
9977
|
const z = document.getElementsByClassName("dgComponentFocused");
|
|
9980
9978
|
z && z.length === 1 && z[0] === d.value || (Array.from(z).forEach((R) => R.classList.remove("dgComponentFocused")), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach((R) => R.classList.remove("dgComponentSelected")), V.classList.add("dgComponentFocused"), t.emit("selectionChange", i.value.type, i.value, s.value, w.value), w.value.getDraggableDesignItemElement && (H = w.value.getDraggableDesignItemElement(k), H && H.value && H.value.classList.add("dgComponentSelected")));
|
|
9981
9979
|
}
|
|
9982
|
-
|
|
9980
|
+
Nr(H == null ? void 0 : H.value);
|
|
9983
9981
|
}
|
|
9984
9982
|
return () => i.value.type === "component-ref" ? P(i.value) : O("div", {
|
|
9985
9983
|
id: `${i.value.id}-design-item`,
|
|
@@ -10569,11 +10567,11 @@ function sc(n, t, e, r, o, a, i, s) {
|
|
|
10569
10567
|
}
|
|
10570
10568
|
const lc = /* @__PURE__ */ ht({
|
|
10571
10569
|
name: "FTreeGridDesign",
|
|
10572
|
-
props:
|
|
10570
|
+
props: Wr,
|
|
10573
10571
|
emits: [],
|
|
10574
10572
|
setup(n, t) {
|
|
10575
|
-
var
|
|
10576
|
-
const e = M(), r = 0, o = ((
|
|
10573
|
+
var oe, be;
|
|
10574
|
+
const e = M(), r = 0, o = ((oe = n.rowOption) == null ? void 0 : oe.height) || 28, a = M(20), i = M(n.columns), s = Fd(n), l = M(), u = M(), c = M([]), d = M(!1), v = M(((be = n.rowOption) == null ? void 0 : be.wrapContent) || !1), w = Ot("designer-host-service"), g = Ot("design-item-context"), k = rc(g, w), C = hu(e, g, k);
|
|
10577
10575
|
C.value.designerClass = "f-utils-fill-flex-column";
|
|
10578
10576
|
const f = md(), b = hd(n), m = Wi(n, /* @__PURE__ */ new Map(), f, b, s), _ = Od(n, m, s, c, t), T = A(() => m.dataView.value.length), {
|
|
10579
10577
|
containerStyleObject: y
|
|
@@ -10597,9 +10595,9 @@ const lc = /* @__PURE__ */ ht({
|
|
|
10597
10595
|
viewPortHeight: K,
|
|
10598
10596
|
viewPortWidth: Z,
|
|
10599
10597
|
updateVisibleRowsOnLatestVisibleScope: ee
|
|
10600
|
-
} = B,
|
|
10598
|
+
} = B, he = oc(n, x, l, Z, I), {
|
|
10601
10599
|
calculateColumnsSize: ge
|
|
10602
|
-
} =
|
|
10600
|
+
} = he, _e = A(() => ({
|
|
10603
10601
|
"drag-container": !0,
|
|
10604
10602
|
"fv-grid": !0,
|
|
10605
10603
|
"fv-grid-bordered": n.showBorder,
|
|
@@ -10619,7 +10617,7 @@ const lc = /* @__PURE__ */ ht({
|
|
|
10619
10617
|
Ee > a.value && (a.value = Ee, ee()), K.value = ((Pe = u.value) == null ? void 0 : Pe.clientHeight) || 0, G.value = ((at = l.value) == null ? void 0 : at.clientWidth) || 0, ge();
|
|
10620
10618
|
}
|
|
10621
10619
|
zt(() => {
|
|
10622
|
-
e.value.componentInstance = C, l.value && (a.value = Math.max(Math.ceil(l.value.clientHeight / o), a.value), c.value = N(0, T.value + r - 1),
|
|
10620
|
+
e.value.componentInstance = C, l.value && (a.value = Math.max(Math.ceil(l.value.clientHeight / o), a.value), c.value = N(0, T.value + r - 1), Kn(l.value, ue), ge(), At(() => {
|
|
10623
10621
|
l.value && (G.value = l.value.clientWidth), u.value && (Z.value = u.value.clientWidth, K.value = u.value.clientHeight);
|
|
10624
10622
|
}));
|
|
10625
10623
|
});
|
|
@@ -10654,7 +10652,7 @@ an.register = (n, t, e, r) => {
|
|
|
10654
10652
|
an.registerDesigner = (n, t, e) => {
|
|
10655
10653
|
n["tree-grid"] = lc, t["tree-grid"] = Uu;
|
|
10656
10654
|
};
|
|
10657
|
-
|
|
10655
|
+
ao(an);
|
|
10658
10656
|
const uc = /* @__PURE__ */ new Map([
|
|
10659
10657
|
["appearance", kn]
|
|
10660
10658
|
]);
|
|
@@ -11222,7 +11220,7 @@ function Fc(n, t, e) {
|
|
|
11222
11220
|
resetTranslate: _
|
|
11223
11221
|
};
|
|
11224
11222
|
}
|
|
11225
|
-
function
|
|
11223
|
+
function Hr(n, t) {
|
|
11226
11224
|
if (n) {
|
|
11227
11225
|
const e = (r) => {
|
|
11228
11226
|
r.key.toLowerCase() === n.toLowerCase() && t({ event: r, key: n });
|
|
@@ -11235,7 +11233,7 @@ function Lr(n, t) {
|
|
|
11235
11233
|
function Ec(n, t) {
|
|
11236
11234
|
const e = M(n.enableEsc);
|
|
11237
11235
|
let r = null;
|
|
11238
|
-
return e.value ? (r =
|
|
11236
|
+
return e.value ? (r = Hr("Escape", (o) => {
|
|
11239
11237
|
t.emit("esc", { event: o.event, type: "esc" });
|
|
11240
11238
|
}), {
|
|
11241
11239
|
remove: r
|
|
@@ -11244,7 +11242,7 @@ function Ec(n, t) {
|
|
|
11244
11242
|
function Oc(n, t) {
|
|
11245
11243
|
const e = M(n.enableEnter);
|
|
11246
11244
|
let r = null;
|
|
11247
|
-
return e.value ? (r =
|
|
11245
|
+
return e.value ? (r = Hr("Enter", (o) => {
|
|
11248
11246
|
t.emit("enter", { event: o.event, type: "enter" });
|
|
11249
11247
|
}), {
|
|
11250
11248
|
remove: r
|
|
@@ -11352,7 +11350,7 @@ const Xt = /* @__PURE__ */ ht({
|
|
|
11352
11350
|
display: l.value ? "" : "none"
|
|
11353
11351
|
};
|
|
11354
11352
|
return te["pointer-events"] = H.value ? "auto" : "none", te;
|
|
11355
|
-
}),
|
|
11353
|
+
}), he = A(() => ({
|
|
11356
11354
|
"f-icon": !0,
|
|
11357
11355
|
modal_maximize: !0,
|
|
11358
11356
|
modalrevert: P.value
|
|
@@ -11385,13 +11383,13 @@ const Xt = /* @__PURE__ */ ht({
|
|
|
11385
11383
|
function ue(te) {
|
|
11386
11384
|
te.width && (e.value = te.width), te.height && (r.value = te.height), te.buttons && (p.value = te.buttons), te.title && (f.value = te.title);
|
|
11387
11385
|
}
|
|
11388
|
-
let Y = null,
|
|
11389
|
-
|
|
11386
|
+
let Y = null, oe = null;
|
|
11387
|
+
Xr(() => {
|
|
11390
11388
|
_.value = N();
|
|
11391
11389
|
}), zt(() => {
|
|
11392
|
-
x.value && !b.value && (b.value = x.value.parentElement, $.value = b.value, z(F.value, x.value, $.value)), X.value && document.body.classList.add("modal-open"), Y = Ec(n, t),
|
|
11390
|
+
x.value && !b.value && (b.value = x.value.parentElement, $.value = b.value, z(F.value, x.value, $.value)), X.value && document.body.classList.add("modal-open"), Y = Ec(n, t), oe = Oc(n, t);
|
|
11393
11391
|
}), sn(() => {
|
|
11394
|
-
V && V(), Y && Y.remove(),
|
|
11392
|
+
V && V(), Y && Y.remove(), oe && oe.remove();
|
|
11395
11393
|
}), t.expose({
|
|
11396
11394
|
modalElementRef: x,
|
|
11397
11395
|
updateModalOptions: ue,
|
|
@@ -11409,7 +11407,7 @@ const Xt = /* @__PURE__ */ ht({
|
|
|
11409
11407
|
class: "f-btn-icon f-bare",
|
|
11410
11408
|
style: "pointer-events: auto;"
|
|
11411
11409
|
}, [O("span", {
|
|
11412
|
-
class:
|
|
11410
|
+
class: he.value
|
|
11413
11411
|
}, null)]), c.value && O("li", {
|
|
11414
11412
|
class: "f-btn-icon f-bare",
|
|
11415
11413
|
onClick: (te) => T(te, !1),
|
|
@@ -11482,10 +11480,10 @@ const Xt = /* @__PURE__ */ ht({
|
|
|
11482
11480
|
src: g.value
|
|
11483
11481
|
}, null)]), at()]), !s.value && x.value && !P.value && E(x.value)]);
|
|
11484
11482
|
}
|
|
11485
|
-
return () => O(
|
|
11483
|
+
return () => O(Qr, {
|
|
11486
11484
|
to: "body"
|
|
11487
11485
|
}, {
|
|
11488
|
-
default: () => [X.value && O(
|
|
11486
|
+
default: () => [X.value && O(qn, {
|
|
11489
11487
|
name: "fade",
|
|
11490
11488
|
appear: !0
|
|
11491
11489
|
}, {
|
|
@@ -11499,7 +11497,7 @@ const Xt = /* @__PURE__ */ ht({
|
|
|
11499
11497
|
});
|
|
11500
11498
|
}
|
|
11501
11499
|
});
|
|
11502
|
-
function
|
|
11500
|
+
function Lr(n) {
|
|
11503
11501
|
if (n.content && n.content.render)
|
|
11504
11502
|
return n.content.render;
|
|
11505
11503
|
if (n.render && typeof n.render == "function")
|
|
@@ -11508,7 +11506,7 @@ function $r(n) {
|
|
|
11508
11506
|
function Mc(n) {
|
|
11509
11507
|
const t = document.createElement("div");
|
|
11510
11508
|
t.style.display = "contents";
|
|
11511
|
-
const e =
|
|
11509
|
+
const e = Gn({
|
|
11512
11510
|
setup(r, o) {
|
|
11513
11511
|
sn(() => {
|
|
11514
11512
|
document.body.removeChild(t);
|
|
@@ -11518,7 +11516,7 @@ function Mc(n) {
|
|
|
11518
11516
|
}), g = n.closedCallback || ((m) => {
|
|
11519
11517
|
}), k = n.resizeHandle || ((m) => {
|
|
11520
11518
|
}), C = n.stopMoveHandle || ((m) => {
|
|
11521
|
-
}), f =
|
|
11519
|
+
}), f = Lr(n), b = (m) => {
|
|
11522
11520
|
c.value = !1, e.unmount(), g(m);
|
|
11523
11521
|
};
|
|
11524
11522
|
return zt(() => {
|
|
@@ -11550,7 +11548,7 @@ function Mc(n) {
|
|
|
11550
11548
|
});
|
|
11551
11549
|
return document.body.appendChild(t), e.mount(t), e;
|
|
11552
11550
|
}
|
|
11553
|
-
class
|
|
11551
|
+
class $r {
|
|
11554
11552
|
constructor(t) {
|
|
11555
11553
|
j(this, "appContext", null);
|
|
11556
11554
|
j(this, "modalRef", M());
|
|
@@ -11591,7 +11589,7 @@ class jr {
|
|
|
11591
11589
|
open(t) {
|
|
11592
11590
|
const e = document.createDocumentFragment();
|
|
11593
11591
|
t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
|
|
11594
|
-
const r =
|
|
11592
|
+
const r = Kr(Object.assign({
|
|
11595
11593
|
title: "",
|
|
11596
11594
|
showButtons: !0,
|
|
11597
11595
|
showHeader: !0
|
|
@@ -11602,7 +11600,7 @@ class jr {
|
|
|
11602
11600
|
}), u = t.stopMoveHandle || ((T) => {
|
|
11603
11601
|
});
|
|
11604
11602
|
let c;
|
|
11605
|
-
const d =
|
|
11603
|
+
const d = Lr(r.value), v = (T) => {
|
|
11606
11604
|
var p;
|
|
11607
11605
|
o.value = !1;
|
|
11608
11606
|
const y = (p = T == null ? void 0 : T.target) == null ? void 0 : p.classList.contains("modal_close");
|
|
@@ -11638,7 +11636,7 @@ class jr {
|
|
|
11638
11636
|
default: () => [d && d(this.app)]
|
|
11639
11637
|
});
|
|
11640
11638
|
return c = ((T) => {
|
|
11641
|
-
const y =
|
|
11639
|
+
const y = Jr(b, T);
|
|
11642
11640
|
return y.appContext = this.appContext, ln(y, e), y;
|
|
11643
11641
|
})({
|
|
11644
11642
|
...r.value
|
|
@@ -11648,7 +11646,7 @@ class jr {
|
|
|
11648
11646
|
r.value = {
|
|
11649
11647
|
...r.value,
|
|
11650
11648
|
...T
|
|
11651
|
-
}, c && ln(
|
|
11649
|
+
}, c && ln(Zr(c, {
|
|
11652
11650
|
...r
|
|
11653
11651
|
}), e);
|
|
11654
11652
|
},
|
|
@@ -11661,7 +11659,7 @@ class jr {
|
|
|
11661
11659
|
const Ic = Symbol("FModalService");
|
|
11662
11660
|
Xt.install = (n) => {
|
|
11663
11661
|
n.component(Xt.name, Xt);
|
|
11664
|
-
const t = new
|
|
11662
|
+
const t = new $r(n);
|
|
11665
11663
|
n.provide(Ic, t), n.provide("FModalService", t);
|
|
11666
11664
|
};
|
|
11667
11665
|
const Dc = {
|
|
@@ -11681,7 +11679,7 @@ const Dc = {
|
|
|
11681
11679
|
};
|
|
11682
11680
|
qt(
|
|
11683
11681
|
Dc,
|
|
11684
|
-
|
|
11682
|
+
Dr,
|
|
11685
11683
|
Fn,
|
|
11686
11684
|
void 0
|
|
11687
11685
|
);
|
|
@@ -11988,7 +11986,7 @@ class Et {
|
|
|
11988
11986
|
}), r = !1, o = e.type === "error" || e.type === "prompt", a = e.type === "error" ? "错误提示" : e.type === "prompt" && e.title || "", i = e.acceptCallback || (() => {
|
|
11989
11987
|
}), s = e.rejectCallback || (() => {
|
|
11990
11988
|
});
|
|
11991
|
-
let l = null, u = new
|
|
11989
|
+
let l = null, u = new $r(l);
|
|
11992
11990
|
const c = () => {
|
|
11993
11991
|
l && (l == null || l.destroy(), u = null);
|
|
11994
11992
|
};
|
|
@@ -12147,7 +12145,7 @@ function od(n, t, e) {
|
|
|
12147
12145
|
}
|
|
12148
12146
|
return { getCompareOperators: o };
|
|
12149
12147
|
}
|
|
12150
|
-
function
|
|
12148
|
+
function jr() {
|
|
12151
12149
|
const n = M({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map();
|
|
12152
12150
|
let r = 0;
|
|
12153
12151
|
function o() {
|
|
@@ -12362,15 +12360,15 @@ function ad(n, t, e) {
|
|
|
12362
12360
|
}
|
|
12363
12361
|
const fn = /* @__PURE__ */ ht({
|
|
12364
12362
|
name: "FConditionList",
|
|
12365
|
-
props:
|
|
12363
|
+
props: Zn,
|
|
12366
12364
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
12367
12365
|
setup(n, t) {
|
|
12368
|
-
const e = M(n.key), r = M(n.conditions), o =
|
|
12366
|
+
const e = M(n.key), r = M(n.conditions), o = Fr(n), {
|
|
12369
12367
|
convertToSingleControl: a,
|
|
12370
12368
|
fields: i,
|
|
12371
12369
|
fieldMap: s,
|
|
12372
12370
|
loadFieldConfigs: l
|
|
12373
|
-
} = o, u =
|
|
12371
|
+
} = o, u = jr(), {
|
|
12374
12372
|
addCondition: c,
|
|
12375
12373
|
changeGroupRelation: d,
|
|
12376
12374
|
getConditions: v,
|
|
@@ -12383,7 +12381,7 @@ const fn = /* @__PURE__ */ ht({
|
|
|
12383
12381
|
unGroup: m
|
|
12384
12382
|
} = u, {
|
|
12385
12383
|
createConditionValue: _
|
|
12386
|
-
} =
|
|
12384
|
+
} = kr(), T = ad(n, t, u), {
|
|
12387
12385
|
selectedItems: y,
|
|
12388
12386
|
toggleSelect: p
|
|
12389
12387
|
} = T, {
|
|
@@ -12527,7 +12525,7 @@ const fn = /* @__PURE__ */ ht({
|
|
|
12527
12525
|
}
|
|
12528
12526
|
});
|
|
12529
12527
|
fn.install = (n) => {
|
|
12530
|
-
n.component(
|
|
12528
|
+
n.component(Ln.name, Ln).component(fn.name, fn);
|
|
12531
12529
|
};
|
|
12532
12530
|
const id = [
|
|
12533
12531
|
"equal",
|
|
@@ -12661,37 +12659,37 @@ const id = [
|
|
|
12661
12659
|
["text", sd]
|
|
12662
12660
|
]);
|
|
12663
12661
|
function md() {
|
|
12664
|
-
const n = M([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: e } =
|
|
12662
|
+
const n = M([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: e } = jr();
|
|
12665
12663
|
function r(C, f) {
|
|
12666
12664
|
switch (C) {
|
|
12667
12665
|
case "check-box":
|
|
12668
|
-
return new
|
|
12666
|
+
return new er({ value: f });
|
|
12669
12667
|
case "combo-list":
|
|
12670
|
-
return new
|
|
12668
|
+
return new br({ value: f });
|
|
12671
12669
|
case "combo-lookup":
|
|
12672
|
-
return new
|
|
12670
|
+
return new tr({ value: f });
|
|
12673
12671
|
case "input-group":
|
|
12674
12672
|
return new on({ value: f });
|
|
12675
12673
|
case "date-picker":
|
|
12676
|
-
return new
|
|
12674
|
+
return new gr({ value: f });
|
|
12677
12675
|
case "date-range":
|
|
12678
12676
|
return new rn({ value: f });
|
|
12679
12677
|
case "datetime-picker":
|
|
12680
|
-
return new
|
|
12678
|
+
return new yr({ value: f });
|
|
12681
12679
|
case "datetime-range":
|
|
12682
12680
|
return new rn({ value: f });
|
|
12683
12681
|
case "lookup":
|
|
12684
|
-
return new
|
|
12682
|
+
return new wr({ value: f });
|
|
12685
12683
|
case "month-picker":
|
|
12686
|
-
return new
|
|
12684
|
+
return new Cr({ value: f });
|
|
12687
12685
|
case "month-range":
|
|
12688
|
-
return new
|
|
12686
|
+
return new _r({ value: f });
|
|
12689
12687
|
case "number-range":
|
|
12690
|
-
return new
|
|
12688
|
+
return new xr({ value: f });
|
|
12691
12689
|
case "number-spinner":
|
|
12692
|
-
return new
|
|
12690
|
+
return new Sr({ value: f });
|
|
12693
12691
|
case "radio-group":
|
|
12694
|
-
return new
|
|
12692
|
+
return new Tr({ value: f });
|
|
12695
12693
|
default:
|
|
12696
12694
|
return new on({ value: f });
|
|
12697
12695
|
}
|
|
@@ -12927,69 +12925,69 @@ function vd(n, t, e, r, o, a, i, s, l) {
|
|
|
12927
12925
|
const ie = c.value;
|
|
12928
12926
|
if (ie.length <= 0)
|
|
12929
12927
|
return 0;
|
|
12930
|
-
const
|
|
12931
|
-
return
|
|
12928
|
+
const me = v.value < ie.length ? ie[v.value] : ie[ie.length - 1];
|
|
12929
|
+
return me.__fv_data_position__ > ie.length * f ? ie.length * f : (me.__fv_data_position__ || 0) + (me.__fv_data_height__ || 0) + Math.max(ie.length - 1 - v.value, 0) * f;
|
|
12932
12930
|
}
|
|
12933
12931
|
const I = A(() => {
|
|
12934
12932
|
const ie = E();
|
|
12935
12933
|
c.value;
|
|
12936
|
-
let
|
|
12934
|
+
let me = p.value / Math.max(ie, p.value), ye = Math.floor(me * p.value);
|
|
12937
12935
|
for (; p.value > 0 && ye < F; )
|
|
12938
|
-
|
|
12936
|
+
me *= x, ye = Math.floor(me * p.value);
|
|
12939
12937
|
return ye;
|
|
12940
12938
|
}), D = A(() => Math.floor(h.value / Math.max(g.value, h.value) * y.value)), $ = 0, W = 0, H = A(() => y.value - (k.value + g.value + C.value + s.value));
|
|
12941
12939
|
function V(ie) {
|
|
12942
12940
|
const ye = Math.floor(ie / f) + 1, He = c.value;
|
|
12943
12941
|
return He.length > ye ? He[ye].__fv_visible_index__ - 1 : 0;
|
|
12944
12942
|
}
|
|
12945
|
-
function z(ie,
|
|
12946
|
-
let He = ie, Qe =
|
|
12947
|
-
const st =
|
|
12943
|
+
function z(ie, me, ye) {
|
|
12944
|
+
let He = ie, Qe = me;
|
|
12945
|
+
const st = me - ie + 1;
|
|
12948
12946
|
if (st < i + a.value + i) {
|
|
12949
|
-
const J = i + a.value + i - st, pe =
|
|
12947
|
+
const J = i + a.value + i - st, pe = me + J <= ye, Se = 0 + J <= ie;
|
|
12950
12948
|
if (pe)
|
|
12951
12949
|
Qe += J, T = Qe;
|
|
12952
12950
|
else if (Se)
|
|
12953
12951
|
He -= J, _ = He;
|
|
12954
12952
|
else {
|
|
12955
|
-
const Ne = ye -
|
|
12956
|
-
Qe = Math.min(
|
|
12953
|
+
const Ne = ye - me, q = J - Ne;
|
|
12954
|
+
Qe = Math.min(me + Ne, ye), He = Math.max(ie - q, 0);
|
|
12957
12955
|
}
|
|
12958
12956
|
}
|
|
12959
12957
|
return { actualStart: He, actualEnd: Qe };
|
|
12960
12958
|
}
|
|
12961
12959
|
function N(ie) {
|
|
12962
12960
|
var Ne, q;
|
|
12963
|
-
const
|
|
12964
|
-
if (!
|
|
12961
|
+
const me = c.value;
|
|
12962
|
+
if (!me.length) {
|
|
12965
12963
|
e.value = [];
|
|
12966
12964
|
return;
|
|
12967
12965
|
}
|
|
12968
|
-
const ye = (Ne = n.pagination) != null && Ne.enable ? 0 : Math.max(_ - i, 0), He =
|
|
12966
|
+
const ye = (Ne = n.pagination) != null && Ne.enable ? 0 : Math.max(_ - i, 0), He = me[me.length - 1].__fv_visible_index__, Qe = (q = n.pagination) != null && q.enable ? me.length - 1 : Math.min(T + i, He), { actualStart: st, actualEnd: J } = z(ye, Qe, He), pe = me[st - 1], Se = d(st, J, pe, ie);
|
|
12969
12967
|
Se.length && (e.value = [...Se]);
|
|
12970
12968
|
}
|
|
12971
12969
|
const R = A(() => E() > p.value), X = A(() => Math.floor(g.value) > h.value);
|
|
12972
|
-
function B(ie,
|
|
12970
|
+
function B(ie, me) {
|
|
12973
12971
|
let ye = ie;
|
|
12974
12972
|
const He = ye > $, Qe = R.value;
|
|
12975
|
-
Qe && ye < p.value -
|
|
12973
|
+
Qe && ye < p.value - me && (ye = p.value - me), (!Qe || He) && (ye = $), b.value !== ye && (b.value = ye);
|
|
12976
12974
|
}
|
|
12977
12975
|
function L() {
|
|
12978
12976
|
S.value && (_ = V(Math.abs(b.value)), T = _ + a.value - 1, (_ < w.value || T > v.value - i / 2) && N());
|
|
12979
12977
|
}
|
|
12980
12978
|
function G(ie) {
|
|
12981
|
-
let
|
|
12982
|
-
|
|
12979
|
+
let me = b.value + ie;
|
|
12980
|
+
me > $ && (me = $);
|
|
12983
12981
|
const ye = E();
|
|
12984
|
-
B(
|
|
12982
|
+
B(me, ye), L();
|
|
12985
12983
|
}
|
|
12986
12984
|
function K(ie) {
|
|
12987
12985
|
if (!X.value) {
|
|
12988
12986
|
m.value = 0;
|
|
12989
12987
|
return;
|
|
12990
12988
|
}
|
|
12991
|
-
let
|
|
12992
|
-
|
|
12989
|
+
let me = m.value + ie;
|
|
12990
|
+
me > W && (me = W), me < H.value && (me = H.value), m.value !== me && (m.value = me);
|
|
12993
12991
|
}
|
|
12994
12992
|
function Z() {
|
|
12995
12993
|
Math.abs(m.value) + h.value > g.value && (m.value = Math.min(h.value - g.value, 0));
|
|
@@ -12997,25 +12995,25 @@ function vd(n, t, e, r, o, a, i, s, l) {
|
|
|
12997
12995
|
function ee() {
|
|
12998
12996
|
b.value = 0, _ = 0, T = a.value - 1, N();
|
|
12999
12997
|
}
|
|
13000
|
-
function
|
|
12998
|
+
function he() {
|
|
13001
12999
|
const ie = E();
|
|
13002
13000
|
B(b.value, ie);
|
|
13003
13001
|
}
|
|
13004
13002
|
Fe([h, g], () => {
|
|
13005
13003
|
K(0);
|
|
13006
|
-
}), Fe(p, (ie,
|
|
13007
|
-
ie !==
|
|
13004
|
+
}), Fe(p, (ie, me) => {
|
|
13005
|
+
ie !== me && ie >= u.value.length * f && G(0);
|
|
13008
13006
|
});
|
|
13009
13007
|
function ge(ie) {
|
|
13010
|
-
let { deltaX:
|
|
13011
|
-
return typeof
|
|
13008
|
+
let { deltaX: me } = ie, ye = -1 * ie.deltaY;
|
|
13009
|
+
return typeof me > "u" && (me = -1 * ie.wheelDeltaX / 6), typeof ye > "u" && (ye = ie.wheelDeltaY / 6), ie.deltaMode && ie.deltaMode === 1 && (me *= 10, ye *= 10), ie.shiftKey ? { deltaY: -ye, deltaX: -me } : { deltaX: me, deltaY: ye };
|
|
13012
13010
|
}
|
|
13013
13011
|
function _e(ie) {
|
|
13014
13012
|
if (n.disabled || !R.value || ie.target.tagName === "TEXTAREA")
|
|
13015
13013
|
return;
|
|
13016
13014
|
ie.preventDefault(), ie.stopPropagation();
|
|
13017
|
-
const { deltaX:
|
|
13018
|
-
G(ye), K(
|
|
13015
|
+
const { deltaX: me, deltaY: ye } = ge(ie);
|
|
13016
|
+
G(ye), K(me);
|
|
13019
13017
|
}
|
|
13020
13018
|
const De = A(() => ({
|
|
13021
13019
|
height: `${u.value.length * f}px`,
|
|
@@ -13033,7 +13031,7 @@ function vd(n, t, e, r, o, a, i, s, l) {
|
|
|
13033
13031
|
height: `${u.value.length * f}px`,
|
|
13034
13032
|
width: `${C.value}px`,
|
|
13035
13033
|
transform: `translateY(${b.value}px)`
|
|
13036
|
-
})),
|
|
13034
|
+
})), oe = A(() => ({
|
|
13037
13035
|
transform: `translateY(${b.value}px)`
|
|
13038
13036
|
})), be = A(() => ({
|
|
13039
13037
|
height: `${u.value.length * f}px`,
|
|
@@ -13059,18 +13057,18 @@ function vd(n, t, e, r, o, a, i, s, l) {
|
|
|
13059
13057
|
})), Ie = M(!1), Ge = M(-1), Be = M(-1), ct = M();
|
|
13060
13058
|
function we(ie) {
|
|
13061
13059
|
if (Ie.value && Be.value !== -1) {
|
|
13062
|
-
const
|
|
13063
|
-
if (Math.abs(
|
|
13064
|
-
const He =
|
|
13060
|
+
const me = Be.value - ie.pageX, ye = y.value - D.value;
|
|
13061
|
+
if (Math.abs(me) <= ye) {
|
|
13062
|
+
const He = me / (h.value - D.value) * (g.value - h.value);
|
|
13065
13063
|
K(He), Be.value = ie.pageX;
|
|
13066
13064
|
}
|
|
13067
13065
|
}
|
|
13068
13066
|
}
|
|
13069
13067
|
function $e(ie) {
|
|
13070
13068
|
if (Ie.value && Ge.value !== -1) {
|
|
13071
|
-
const
|
|
13072
|
-
if (Math.abs(
|
|
13073
|
-
const Qe =
|
|
13069
|
+
const me = Ge.value - ie.pageY, ye = E(), He = ye - I.value;
|
|
13070
|
+
if (Math.abs(me) <= He) {
|
|
13071
|
+
const Qe = me / (p.value - I.value) * (ye - p.value);
|
|
13074
13072
|
G(Qe), Ge.value = ie.pageY;
|
|
13075
13073
|
}
|
|
13076
13074
|
}
|
|
@@ -13078,16 +13076,16 @@ function vd(n, t, e, r, o, a, i, s, l) {
|
|
|
13078
13076
|
function Re(ie) {
|
|
13079
13077
|
Ie.value = !1, Ge.value = -1, Be.value = -1, document.removeEventListener("mouseup", Re), P && (document.removeEventListener("mousemove", P), P = null), document.body.style.userSelect = "", ct.value && (ct.value.style.opacity = null);
|
|
13080
13078
|
}
|
|
13081
|
-
function je(ie,
|
|
13079
|
+
function je(ie, me, ye) {
|
|
13082
13080
|
var st;
|
|
13083
13081
|
l == null || l.onClickOutOfCell(ie), Ie.value = !0;
|
|
13084
13082
|
const He = (st = ie.target) == null ? void 0 : st.parentElement;
|
|
13085
|
-
He && (He.style.opacity = "1", ct.value = He), P || (P = fo(ye === "horizontal" ? we : $e, 50)), ye === "vertical" && (Ge.value = ie.pageY), ye === "horizontal" && (Be.value = ie.pageX),
|
|
13083
|
+
He && (He.style.opacity = "1", ct.value = He), P || (P = fo(ye === "horizontal" ? we : $e, 50)), ye === "vertical" && (Ge.value = ie.pageY), ye === "horizontal" && (Be.value = ie.pageX), me.value && (me.value, document.addEventListener("mousemove", P), document.addEventListener("mouseup", Re), document.body.style.userSelect = "none");
|
|
13086
13084
|
}
|
|
13087
13085
|
function dt(ie) {
|
|
13088
|
-
const
|
|
13086
|
+
const me = u.value.length * f - p.value;
|
|
13089
13087
|
let ye = ie * f;
|
|
13090
|
-
ye >=
|
|
13088
|
+
ye >= me && (ye = me), G(-ye - b.value);
|
|
13091
13089
|
}
|
|
13092
13090
|
function pt() {
|
|
13093
13091
|
dt(u.value.length);
|
|
@@ -13114,10 +13112,10 @@ function vd(n, t, e, r, o, a, i, s, l) {
|
|
|
13114
13112
|
resetScroll: ee,
|
|
13115
13113
|
rightFixedGridDataStyle: Y,
|
|
13116
13114
|
rightFixedGridHeaderColumnsStyle: at,
|
|
13117
|
-
rightFixedGridMergedDataStyle:
|
|
13115
|
+
rightFixedGridMergedDataStyle: oe,
|
|
13118
13116
|
shouldShowHorizontalScrollbar: X,
|
|
13119
13117
|
shouldShowVirticalScrollbar: R,
|
|
13120
|
-
updateVirticalScroll:
|
|
13118
|
+
updateVirticalScroll: he,
|
|
13121
13119
|
updateVisibleRowsOnLatestVisibleScope: L,
|
|
13122
13120
|
verticalScrollThumbStyle: it,
|
|
13123
13121
|
viewPortWidth: h,
|
|
@@ -13211,7 +13209,7 @@ function bd() {
|
|
|
13211
13209
|
function wd() {
|
|
13212
13210
|
const {
|
|
13213
13211
|
formatTo: n
|
|
13214
|
-
} =
|
|
13212
|
+
} = io();
|
|
13215
13213
|
function t(r, o) {
|
|
13216
13214
|
if (r) {
|
|
13217
13215
|
let a = "yyyy-MM-dd";
|
|
@@ -13236,7 +13234,7 @@ function wd() {
|
|
|
13236
13234
|
function Cd() {
|
|
13237
13235
|
const {
|
|
13238
13236
|
formatTo: n
|
|
13239
|
-
} =
|
|
13237
|
+
} = so();
|
|
13240
13238
|
function t(e, r) {
|
|
13241
13239
|
const o = {
|
|
13242
13240
|
precision: r.precision,
|
|
@@ -13802,15 +13800,15 @@ function Od(n, t, e, r, o) {
|
|
|
13802
13800
|
return s(g.value);
|
|
13803
13801
|
}
|
|
13804
13802
|
function m() {
|
|
13805
|
-
const Q = r.value.reduce((Y,
|
|
13803
|
+
const Q = r.value.reduce((Y, oe) => (Y.set(oe.raw[a.value], oe), Y), /* @__PURE__ */ new Map());
|
|
13806
13804
|
return g.value.map((Y) => Q.get(Y)).filter((Y) => !!Y);
|
|
13807
13805
|
}
|
|
13808
13806
|
function _(Q) {
|
|
13809
13807
|
var Y;
|
|
13810
13808
|
const ue = Q.raw.__fv_children_index__;
|
|
13811
13809
|
if (ue && ue.length) {
|
|
13812
|
-
const
|
|
13813
|
-
(Y = g.value) != null && Y.length &&
|
|
13810
|
+
const oe = ue.map((be) => i.value[be]);
|
|
13811
|
+
(Y = g.value) != null && Y.length && oe.some((Ee) => !g.value.includes(Ee[a.value])) && (Q.indeterminate = !0, Q.raw.__fv_indeterminate__ = !0);
|
|
13814
13812
|
}
|
|
13815
13813
|
}
|
|
13816
13814
|
const T = A(() => u.value && c.value), y = A(
|
|
@@ -13834,8 +13832,8 @@ function Od(n, t, e, r, o) {
|
|
|
13834
13832
|
}), m().forEach((Y) => {
|
|
13835
13833
|
Y.checked = !0, Y.raw.__fv_checked__ = !0;
|
|
13836
13834
|
}), Q.forEach((Y) => {
|
|
13837
|
-
const
|
|
13838
|
-
_(
|
|
13835
|
+
const oe = r.value.find((be) => be.raw[a.value] === Y);
|
|
13836
|
+
_(oe);
|
|
13839
13837
|
});
|
|
13840
13838
|
}
|
|
13841
13839
|
Fe(() => r.value, () => {
|
|
@@ -13906,14 +13904,14 @@ function Od(n, t, e, r, o) {
|
|
|
13906
13904
|
const ue = r.value.find((Y) => Y.raw[a.value] === Q);
|
|
13907
13905
|
ue && Z(ue);
|
|
13908
13906
|
}
|
|
13909
|
-
function
|
|
13910
|
-
const ue = r.value.filter((be) => Q.includes(be.raw[a.value])), Y = ue.map((be) => be.raw[a.value]),
|
|
13907
|
+
function he(Q) {
|
|
13908
|
+
const ue = r.value.filter((be) => Q.includes(be.raw[a.value])), Y = ue.map((be) => be.raw[a.value]), oe = i.value.filter((be) => {
|
|
13911
13909
|
const Ee = be[a.value];
|
|
13912
13910
|
return !Y.includes(Ee) && Q.includes(Ee);
|
|
13913
13911
|
});
|
|
13914
|
-
(ue.length ||
|
|
13912
|
+
(ue.length || oe.length) && (W(), y.value && (l.value = Q[0])), ue.forEach((be) => {
|
|
13915
13913
|
R(be);
|
|
13916
|
-
}),
|
|
13914
|
+
}), oe.forEach((be) => {
|
|
13917
13915
|
H(be);
|
|
13918
13916
|
}), x();
|
|
13919
13917
|
}
|
|
@@ -13921,12 +13919,12 @@ function Od(n, t, e, r, o) {
|
|
|
13921
13919
|
for (const ue of Q) {
|
|
13922
13920
|
if (!g.value.includes(ue))
|
|
13923
13921
|
continue;
|
|
13924
|
-
const Y = r.value.find((
|
|
13922
|
+
const Y = r.value.find((oe) => oe.raw[a.value] === ue);
|
|
13925
13923
|
if (Y)
|
|
13926
13924
|
X(Y);
|
|
13927
13925
|
else {
|
|
13928
|
-
const
|
|
13929
|
-
|
|
13926
|
+
const oe = i.value.find((be) => be[a.value] === ue);
|
|
13927
|
+
oe && V(oe);
|
|
13930
13928
|
}
|
|
13931
13929
|
}
|
|
13932
13930
|
g.value = g.value.filter(
|
|
@@ -13967,7 +13965,7 @@ function Od(n, t, e, r, o) {
|
|
|
13967
13965
|
selectDataItem: H,
|
|
13968
13966
|
selectItem: Z,
|
|
13969
13967
|
selectItemById: ee,
|
|
13970
|
-
selectItemByIds:
|
|
13968
|
+
selectItemByIds: he,
|
|
13971
13969
|
showCheckBox: v,
|
|
13972
13970
|
showSelectAll: w,
|
|
13973
13971
|
toggleSelectItem: K,
|